PluginProbe
Gutenberg / 14.5.2
Gutenberg v14.5.2
24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 All 403 releases
← All changes | build/url/index.js +554 -78 12.6.0 → 14.5.2 View file →
@@ -1,14 +1,476 @@
1 -/******/ (function() { // webpackBootstrap
2 -/******/ "use strict";
3 -/******/ // The require scope
4 -/******/ var __webpack_require__ = {};
1 +/******/ (() => { // webpackBootstrap
2 +/******/ var __webpack_modules__ = ({
3 +
4 +/***/ 4793:
5 +/***/ ((module) => {
6 +
7 +var characterMap = {
8 + "À": "A",
9 + "Á": "A",
10 + "Â": "A",
11 + "Ã": "A",
12 + "Ä": "A",
13 + "Å": "A",
14 + "Ấ": "A",
15 + "Ắ": "A",
16 + "Ẳ": "A",
17 + "Ẵ": "A",
18 + "Ặ": "A",
19 + "Æ": "AE",
20 + "Ầ": "A",
21 + "Ằ": "A",
22 + "Ȃ": "A",
23 + "Ç": "C",
24 + "Ḉ": "C",
25 + "È": "E",
26 + "É": "E",
27 + "Ê": "E",
28 + "Ë": "E",
29 + "Ế": "E",
30 + "Ḗ": "E",
31 + "Ề": "E",
32 + "Ḕ": "E",
33 + "Ḝ": "E",
34 + "Ȇ": "E",
35 + "Ì": "I",
36 + "Í": "I",
37 + "Î": "I",
38 + "Ï": "I",
39 + "Ḯ": "I",
40 + "Ȋ": "I",
41 + "Ð": "D",
42 + "Ñ": "N",
43 + "Ò": "O",
44 + "Ó": "O",
45 + "Ô": "O",
46 + "Õ": "O",
47 + "Ö": "O",
48 + "Ø": "O",
49 + "Ố": "O",
50 + "Ṍ": "O",
51 + "Ṓ": "O",
52 + "Ȏ": "O",
53 + "Ù": "U",
54 + "Ú": "U",
55 + "Û": "U",
56 + "Ü": "U",
57 + "Ý": "Y",
58 + "à": "a",
59 + "á": "a",
60 + "â": "a",
61 + "ã": "a",
62 + "ä": "a",
63 + "å": "a",
64 + "ấ": "a",
65 + "ắ": "a",
66 + "ẳ": "a",
67 + "ẵ": "a",
68 + "ặ": "a",
69 + "æ": "ae",
70 + "ầ": "a",
71 + "ằ": "a",
72 + "ȃ": "a",
73 + "ç": "c",
74 + "ḉ": "c",
75 + "è": "e",
76 + "é": "e",
77 + "ê": "e",
78 + "ë": "e",
79 + "ế": "e",
80 + "ḗ": "e",
81 + "ề": "e",
82 + "ḕ": "e",
83 + "ḝ": "e",
84 + "ȇ": "e",
85 + "ì": "i",
86 + "í": "i",
87 + "î": "i",
88 + "ï": "i",
89 + "ḯ": "i",
90 + "ȋ": "i",
91 + "ð": "d",
92 + "ñ": "n",
93 + "ò": "o",
94 + "ó": "o",
95 + "ô": "o",
96 + "õ": "o",
97 + "ö": "o",
98 + "ø": "o",
99 + "ố": "o",
100 + "ṍ": "o",
101 + "ṓ": "o",
102 + "ȏ": "o",
103 + "ù": "u",
104 + "ú": "u",
105 + "û": "u",
106 + "ü": "u",
107 + "ý": "y",
108 + "ÿ": "y",
109 + "Ā": "A",
110 + "ā": "a",
111 + "Ă": "A",
112 + "ă": "a",
113 + "Ą": "A",
114 + "ą": "a",
115 + "Ć": "C",
116 + "ć": "c",
117 + "Ĉ": "C",
118 + "ĉ": "c",
119 + "Ċ": "C",
120 + "ċ": "c",
121 + "Č": "C",
122 + "č": "c",
123 + "C̆": "C",
124 + "c̆": "c",
125 + "Ď": "D",
126 + "ď": "d",
127 + "Đ": "D",
128 + "đ": "d",
129 + "Ē": "E",
130 + "ē": "e",
131 + "Ĕ": "E",
132 + "ĕ": "e",
133 + "Ė": "E",
134 + "ė": "e",
135 + "Ę": "E",
136 + "ę": "e",
137 + "Ě": "E",
138 + "ě": "e",
139 + "Ĝ": "G",
140 + "Ǵ": "G",
141 + "ĝ": "g",
142 + "ǵ": "g",
143 + "Ğ": "G",
144 + "ğ": "g",
145 + "Ġ": "G",
146 + "ġ": "g",
147 + "Ģ": "G",
148 + "ģ": "g",
149 + "Ĥ": "H",
150 + "ĥ": "h",
151 + "Ħ": "H",
152 + "ħ": "h",
153 + "Ḫ": "H",
154 + "ḫ": "h",
155 + "Ĩ": "I",
156 + "ĩ": "i",
157 + "Ī": "I",
158 + "ī": "i",
159 + "Ĭ": "I",
160 + "ĭ": "i",
161 + "Į": "I",
162 + "į": "i",
163 + "İ": "I",
164 + "ı": "i",
165 + "IJ": "IJ",
166 + "ij": "ij",
167 + "Ĵ": "J",
168 + "ĵ": "j",
169 + "Ķ": "K",
170 + "ķ": "k",
171 + "Ḱ": "K",
172 + "ḱ": "k",
173 + "K̆": "K",
174 + "k̆": "k",
175 + "Ĺ": "L",
176 + "ĺ": "l",
177 + "Ļ": "L",
178 + "ļ": "l",
179 + "Ľ": "L",
180 + "ľ": "l",
181 + "Ŀ": "L",
182 + "ŀ": "l",
183 + "Ł": "l",
184 + "ł": "l",
185 + "Ḿ": "M",
186 + "ḿ": "m",
187 + "M̆": "M",
188 + "m̆": "m",
189 + "Ń": "N",
190 + "ń": "n",
191 + "Ņ": "N",
192 + "ņ": "n",
193 + "Ň": "N",
194 + "ň": "n",
195 + "ʼn": "n",
196 + "N̆": "N",
197 + "n̆": "n",
198 + "Ō": "O",
199 + "ō": "o",
200 + "Ŏ": "O",
201 + "ŏ": "o",
202 + "Ő": "O",
203 + "ő": "o",
204 + "Œ": "OE",
205 + "œ": "oe",
206 + "P̆": "P",
207 + "p̆": "p",
208 + "Ŕ": "R",
209 + "ŕ": "r",
210 + "Ŗ": "R",
211 + "ŗ": "r",
212 + "Ř": "R",
213 + "ř": "r",
214 + "R̆": "R",
215 + "r̆": "r",
216 + "Ȓ": "R",
217 + "ȓ": "r",
218 + "Ś": "S",
219 + "ś": "s",
220 + "Ŝ": "S",
221 + "ŝ": "s",
222 + "Ş": "S",
223 + "Ș": "S",
224 + "ș": "s",
225 + "ş": "s",
226 + "Š": "S",
227 + "š": "s",
228 + "Ţ": "T",
229 + "ţ": "t",
230 + "ț": "t",
231 + "Ț": "T",
232 + "Ť": "T",
233 + "ť": "t",
234 + "Ŧ": "T",
235 + "ŧ": "t",
236 + "T̆": "T",
237 + "t̆": "t",
238 + "Ũ": "U",
239 + "ũ": "u",
240 + "Ū": "U",
241 + "ū": "u",
242 + "Ŭ": "U",
243 + "ŭ": "u",
244 + "Ů": "U",
245 + "ů": "u",
246 + "Ű": "U",
247 + "ű": "u",
248 + "Ų": "U",
249 + "ų": "u",
250 + "Ȗ": "U",
251 + "ȗ": "u",
252 + "V̆": "V",
253 + "v̆": "v",
254 + "Ŵ": "W",
255 + "ŵ": "w",
256 + "Ẃ": "W",
257 + "ẃ": "w",
258 + "X̆": "X",
259 + "x̆": "x",
260 + "Ŷ": "Y",
261 + "ŷ": "y",
262 + "Ÿ": "Y",
263 + "Y̆": "Y",
264 + "y̆": "y",
265 + "Ź": "Z",
266 + "ź": "z",
267 + "Ż": "Z",
268 + "ż": "z",
269 + "Ž": "Z",
270 + "ž": "z",
271 + "ſ": "s",
272 + "ƒ": "f",
273 + "Ơ": "O",
274 + "ơ": "o",
275 + "Ư": "U",
276 + "ư": "u",
277 + "Ǎ": "A",
278 + "ǎ": "a",
279 + "Ǐ": "I",
280 + "ǐ": "i",
281 + "Ǒ": "O",
282 + "ǒ": "o",
283 + "Ǔ": "U",
284 + "ǔ": "u",
285 + "Ǖ": "U",
286 + "ǖ": "u",
287 + "Ǘ": "U",
288 + "ǘ": "u",
289 + "Ǚ": "U",
290 + "ǚ": "u",
291 + "Ǜ": "U",
292 + "ǜ": "u",
293 + "Ứ": "U",
294 + "ứ": "u",
295 + "Ṹ": "U",
296 + "ṹ": "u",
297 + "Ǻ": "A",
298 + "ǻ": "a",
299 + "Ǽ": "AE",
300 + "ǽ": "ae",
301 + "Ǿ": "O",
302 + "ǿ": "o",
303 + "Þ": "TH",
304 + "þ": "th",
305 + "Ṕ": "P",
306 + "ṕ": "p",
307 + "Ṥ": "S",
308 + "ṥ": "s",
309 + "X́": "X",
310 + "x́": "x",
311 + "Ѓ": "Г",
312 + "ѓ": "г",
313 + "Ќ": "К",
314 + "ќ": "к",
315 + "A̋": "A",
316 + "a̋": "a",
317 + "E̋": "E",
318 + "e̋": "e",
319 + "I̋": "I",
320 + "i̋": "i",
321 + "Ǹ": "N",
322 + "ǹ": "n",
323 + "Ồ": "O",
324 + "ồ": "o",
325 + "Ṑ": "O",
326 + "ṑ": "o",
327 + "Ừ": "U",
328 + "ừ": "u",
329 + "Ẁ": "W",
330 + "ẁ": "w",
331 + "Ỳ": "Y",
332 + "ỳ": "y",
333 + "Ȁ": "A",
334 + "ȁ": "a",
335 + "Ȅ": "E",
336 + "ȅ": "e",
337 + "Ȉ": "I",
338 + "ȉ": "i",
339 + "Ȍ": "O",
340 + "ȍ": "o",
341 + "Ȑ": "R",
342 + "ȑ": "r",
343 + "Ȕ": "U",
344 + "ȕ": "u",
345 + "B̌": "B",
346 + "b̌": "b",
347 + "Č̣": "C",
348 + "č̣": "c",
349 + "Ê̌": "E",
350 + "ê̌": "e",
351 + "F̌": "F",
352 + "f̌": "f",
353 + "Ǧ": "G",
354 + "ǧ": "g",
355 + "Ȟ": "H",
356 + "ȟ": "h",
357 + "J̌": "J",
358 + "ǰ": "j",
359 + "Ǩ": "K",
360 + "ǩ": "k",
361 + "M̌": "M",
362 + "m̌": "m",
363 + "P̌": "P",
364 + "p̌": "p",
365 + "Q̌": "Q",
366 + "q̌": "q",
367 + "Ř̩": "R",
368 + "ř̩": "r",
369 + "Ṧ": "S",
370 + "ṧ": "s",
371 + "V̌": "V",
372 + "v̌": "v",
373 + "W̌": "W",
374 + "w̌": "w",
375 + "X̌": "X",
376 + "x̌": "x",
377 + "Y̌": "Y",
378 + "y̌": "y",
379 + "A̧": "A",
380 + "a̧": "a",
381 + "B̧": "B",
382 + "b̧": "b",
383 + "Ḑ": "D",
384 + "ḑ": "d",
385 + "Ȩ": "E",
386 + "ȩ": "e",
387 + "Ɛ̧": "E",
388 + "ɛ̧": "e",
389 + "Ḩ": "H",
390 + "ḩ": "h",
391 + "I̧": "I",
392 + "i̧": "i",
393 + "Ɨ̧": "I",
394 + "ɨ̧": "i",
395 + "M̧": "M",
396 + "m̧": "m",
397 + "O̧": "O",
398 + "o̧": "o",
399 + "Q̧": "Q",
400 + "q̧": "q",
401 + "U̧": "U",
402 + "u̧": "u",
403 + "X̧": "X",
404 + "x̧": "x",
405 + "Z̧": "Z",
406 + "z̧": "z",
407 +};
408 +
409 +var chars = Object.keys(characterMap).join('|');
410 +var allAccents = new RegExp(chars, 'g');
411 +var firstAccent = new RegExp(chars, '');
412 +
413 +var removeAccents = function(string) {
414 + return string.replace(allAccents, function(match) {
415 + return characterMap[match];
416 + });
417 +};
418 +
419 +var hasAccents = function(string) {
420 + return !!string.match(firstAccent);
421 +};
422 +
423 +module.exports = removeAccents;
424 +module.exports.has = hasAccents;
425 +module.exports.remove = removeAccents;
426 +
427 +
428 +/***/ })
429 +
430 +/******/ });
431 +/************************************************************************/
432 +/******/ // The module cache
433 +/******/ var __webpack_module_cache__ = {};
5 434 /******/
435 +/******/ // The require function
436 +/******/ function __webpack_require__(moduleId) {
437 +/******/ // Check if module is in cache
438 +/******/ var cachedModule = __webpack_module_cache__[moduleId];
439 +/******/ if (cachedModule !== undefined) {
440 +/******/ return cachedModule.exports;
441 +/******/ }
442 +/******/ // Create a new module (and put it into the cache)
443 +/******/ var module = __webpack_module_cache__[moduleId] = {
444 +/******/ // no module.id needed
445 +/******/ // no module.loaded needed
446 +/******/ exports: {}
447 +/******/ };
448 +/******/
449 +/******/ // Execute the module function
450 +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
451 +/******/
452 +/******/ // Return the exports of the module
453 +/******/ return module.exports;
454 +/******/ }
455 +/******/
6 456 /************************************************************************/
457 +/******/ /* webpack/runtime/compat get default export */
458 +/******/ (() => {
459 +/******/ // getDefaultExport function for compatibility with non-harmony modules
460 +/******/ __webpack_require__.n = (module) => {
461 +/******/ var getter = module && module.__esModule ?
462 +/******/ () => (module['default']) :
463 +/******/ () => (module);
464 +/******/ __webpack_require__.d(getter, { a: getter });
465 +/******/ return getter;
466 +/******/ };
467 +/******/ })();
468 +/******/
7 469 /******/ /* webpack/runtime/define property getters */
8 -/******/ !function() {
470 +/******/ (() => {
9 471 /******/ // define getter functions for harmony exports
10 -/******/ __webpack_require__.d = function(exports, definition) {
472 +/******/ __webpack_require__.d = (exports, definition) => {
11 473 /******/ for(var key in definition) {
12 474 /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
13 475 /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
14 476 /******/ }
@@ -13,59 +475,62 @@
13 475 /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
14 476 /******/ }
15 477 /******/ }
16 478 /******/ };
17 -/******/ }();
479 +/******/ })();
18 480 /******/
19 481 /******/ /* webpack/runtime/hasOwnProperty shorthand */
20 -/******/ !function() {
21 -/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
22 -/******/ }();
482 +/******/ (() => {
483 +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
484 +/******/ })();
23 485 /******/
24 486 /******/ /* webpack/runtime/make namespace object */
25 -/******/ !function() {
487 +/******/ (() => {
26 488 /******/ // define __esModule on exports
27 -/******/ __webpack_require__.r = function(exports) {
489 +/******/ __webpack_require__.r = (exports) => {
28 490 /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
29 491 /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
30 492 /******/ }
31 493 /******/ Object.defineProperty(exports, '__esModule', { value: true });
32 494 /******/ };
33 -/******/ }();
495 +/******/ })();
34 496 /******/
35 497 /************************************************************************/
36 498 var __webpack_exports__ = {};
499 +// This entry need to be wrapped in an IIFE because it need to be in strict mode.
500 +(() => {
501 +"use strict";
37 502 // ESM COMPAT FLAG
38 503 __webpack_require__.r(__webpack_exports__);
39 504
40 505 // EXPORTS
41 506 __webpack_require__.d(__webpack_exports__, {
42 - "addQueryArgs": function() { return /* reexport */ addQueryArgs; },
43 - "buildQueryString": function() { return /* reexport */ buildQueryString; },
44 - "cleanForSlug": function() { return /* reexport */ cleanForSlug; },
45 - "filterURLForDisplay": function() { return /* reexport */ filterURLForDisplay; },
46 - "getAuthority": function() { return /* reexport */ getAuthority; },
47 - "getFilename": function() { return /* reexport */ getFilename; },
48 - "getFragment": function() { return /* reexport */ getFragment; },
49 - "getPath": function() { return /* reexport */ getPath; },
50 - "getPathAndQueryString": function() { return /* reexport */ getPathAndQueryString; },
51 - "getProtocol": function() { return /* reexport */ getProtocol; },
52 - "getQueryArg": function() { return /* reexport */ getQueryArg; },
53 - "getQueryArgs": function() { return /* reexport */ getQueryArgs; },
54 - "getQueryString": function() { return /* reexport */ getQueryString; },
55 - "hasQueryArg": function() { return /* reexport */ hasQueryArg; },
56 - "isEmail": function() { return /* reexport */ isEmail; },
57 - "isURL": function() { return /* reexport */ isURL; },
58 - "isValidAuthority": function() { return /* reexport */ isValidAuthority; },
59 - "isValidFragment": function() { return /* reexport */ isValidFragment; },
60 - "isValidPath": function() { return /* reexport */ isValidPath; },
61 - "isValidProtocol": function() { return /* reexport */ isValidProtocol; },
62 - "isValidQueryString": function() { return /* reexport */ isValidQueryString; },
63 - "normalizePath": function() { return /* reexport */ normalizePath; },
64 - "prependHTTP": function() { return /* reexport */ prependHTTP; },
65 - "removeQueryArgs": function() { return /* reexport */ removeQueryArgs; },
66 - "safeDecodeURI": function() { return /* reexport */ safeDecodeURI; },
67 - "safeDecodeURIComponent": function() { return /* reexport */ safeDecodeURIComponent; }
507 + "addQueryArgs": () => (/* reexport */ addQueryArgs),
508 + "buildQueryString": () => (/* reexport */ buildQueryString),
509 + "cleanForSlug": () => (/* reexport */ cleanForSlug),
510 + "filterURLForDisplay": () => (/* reexport */ filterURLForDisplay),
511 + "getAuthority": () => (/* reexport */ getAuthority),
512 + "getFilename": () => (/* reexport */ getFilename),
513 + "getFragment": () => (/* reexport */ getFragment),
514 + "getPath": () => (/* reexport */ getPath),
515 + "getPathAndQueryString": () => (/* reexport */ getPathAndQueryString),
516 + "getProtocol": () => (/* reexport */ getProtocol),
517 + "getQueryArg": () => (/* reexport */ getQueryArg),
518 + "getQueryArgs": () => (/* reexport */ getQueryArgs),
519 + "getQueryString": () => (/* reexport */ getQueryString),
520 + "hasQueryArg": () => (/* reexport */ hasQueryArg),
521 + "isEmail": () => (/* reexport */ isEmail),
522 + "isURL": () => (/* reexport */ isURL),
523 + "isValidAuthority": () => (/* reexport */ isValidAuthority),
524 + "isValidFragment": () => (/* reexport */ isValidFragment),
525 + "isValidPath": () => (/* reexport */ isValidPath),
526 + "isValidProtocol": () => (/* reexport */ isValidProtocol),
527 + "isValidQueryString": () => (/* reexport */ isValidQueryString),
528 + "normalizePath": () => (/* reexport */ normalizePath),
529 + "prependHTTP": () => (/* reexport */ prependHTTP),
530 + "removeQueryArgs": () => (/* reexport */ removeQueryArgs),
531 + "safeDecodeURI": () => (/* reexport */ safeDecodeURI),
532 + "safeDecodeURIComponent": () => (/* reexport */ safeDecodeURIComponent)
68 533 });
69 534
70 535 ;// CONCATENATED MODULE: ./packages/url/build-module/is-url.js
71 536 /**
@@ -92,9 +557,9 @@
92 557 } catch {
93 558 return false;
94 559 }
95 560 }
96 -//# sourceMappingURL=is-url.js.map
561 +
97 562 ;// CONCATENATED MODULE: ./packages/url/build-module/is-email.js
98 563 const EMAIL_REGEXP = /^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i;
99 564 /**
100 565 * Determines whether the given string looks like an email.
@@ -111,9 +576,9 @@
111 576
112 577 function isEmail(email) {
113 578 return EMAIL_REGEXP.test(email);
114 579 }
115 -//# sourceMappingURL=is-email.js.map
580 +
116 581 ;// CONCATENATED MODULE: ./packages/url/build-module/get-protocol.js
117 582 /**
118 583 * Returns the protocol part of the URL.
119 584 *
@@ -133,9 +598,9 @@
133 598 if (matches) {
134 599 return matches[1];
135 600 }
136 601 }
137 -//# sourceMappingURL=get-protocol.js.map
602 +
138 603 ;// CONCATENATED MODULE: ./packages/url/build-module/is-valid-protocol.js
139 604 /**
140 605 * Tests if a url protocol is valid.
141 606 *
@@ -155,9 +620,9 @@
155 620 }
156 621
157 622 return /^[a-z\-.\+]+[0-9]*:$/i.test(protocol);
158 623 }
159 -//# sourceMappingURL=is-valid-protocol.js.map
624 +
160 625 ;// CONCATENATED MODULE: ./packages/url/build-module/get-authority.js
161 626 /**
162 627 * Returns the authority part of the URL.
163 628 *
@@ -177,9 +642,9 @@
177 642 if (matches) {
178 643 return matches[1];
179 644 }
180 645 }
181 -//# sourceMappingURL=get-authority.js.map
646 +
182 647 ;// CONCATENATED MODULE: ./packages/url/build-module/is-valid-authority.js
183 648 /**
184 649 * Checks for invalid characters within the provided authority.
185 650 *
@@ -199,9 +664,9 @@
199 664 }
200 665
201 666 return /^[^\s#?]+$/.test(authority);
202 667 }
203 -//# sourceMappingURL=is-valid-authority.js.map
668 +
204 669 ;// CONCATENATED MODULE: ./packages/url/build-module/get-path.js
205 670 /**
206 671 * Returns the path part of the URL.
207 672 *
@@ -221,9 +686,9 @@
221 686 if (matches) {
222 687 return matches[1];
223 688 }
224 689 }
225 -//# sourceMappingURL=get-path.js.map
690 +
226 691 ;// CONCATENATED MODULE: ./packages/url/build-module/is-valid-path.js
227 692 /**
228 693 * Checks for invalid characters within the provided path.
229 694 *
@@ -243,9 +708,9 @@
243 708 }
244 709
245 710 return /^[^\s#?]+$/.test(path);
246 711 }
247 -//# sourceMappingURL=is-valid-path.js.map
712 +
248 713 ;// CONCATENATED MODULE: ./packages/url/build-module/get-query-string.js
249 714 /**
250 715 * Returns the query string part of the URL.
251 716 *
@@ -268,9 +733,9 @@
268 733 if (query) {
269 734 return query;
270 735 }
271 736 }
272 -//# sourceMappingURL=get-query-string.js.map
737 +
273 738 ;// CONCATENATED MODULE: ./packages/url/build-module/build-query-string.js
274 739 /**
275 740 * Generates URL-encoded query string using input query data.
276 741 *
@@ -328,9 +793,9 @@
328 793
329 794
330 795 return string.substr(1);
331 796 }
332 -//# sourceMappingURL=build-query-string.js.map
797 +
333 798 ;// CONCATENATED MODULE: ./packages/url/build-module/is-valid-query-string.js
334 799 /**
335 800 * Checks for invalid characters within the provided query string.
336 801 *
@@ -350,9 +815,9 @@
350 815 }
351 816
352 817 return /^[^\s#?\/]+$/.test(queryString);
353 818 }
354 -//# sourceMappingURL=is-valid-query-string.js.map
819 +
355 820 ;// CONCATENATED MODULE: ./packages/url/build-module/get-path-and-query-string.js
356 821 /**
357 822 * Internal dependencies
358 823 */
@@ -378,9 +843,9 @@
378 843 if (path) value += path;
379 844 if (queryString) value += `?${queryString}`;
380 845 return value;
381 846 }
382 -//# sourceMappingURL=get-path-and-query-string.js.map
847 +
383 848 ;// CONCATENATED MODULE: ./packages/url/build-module/get-fragment.js
384 849 /**
385 850 * Returns the fragment part of the URL.
386 851 *
@@ -400,9 +865,9 @@
400 865 if (matches) {
401 866 return matches[1];
402 867 }
403 868 }
404 -//# sourceMappingURL=get-fragment.js.map
869 +
405 870 ;// CONCATENATED MODULE: ./packages/url/build-module/is-valid-fragment.js
406 871 /**
407 872 * Checks for invalid characters within the provided fragment.
408 873 *
@@ -422,9 +887,9 @@
422 887 }
423 888
424 889 return /^#[^\s#?\/]*$/.test(fragment);
425 890 }
426 -//# sourceMappingURL=is-valid-fragment.js.map
891 +
427 892 ;// CONCATENATED MODULE: ./packages/url/build-module/get-query-args.js
428 893 /**
429 894 * Internal dependencies
430 895 */
@@ -454,12 +919,13 @@
454 919 if (!key && Array.isArray(object)) {
455 920 // If key is empty string and next value is array, derive key from
456 921 // the current length of the array.
457 922 key = object.length.toString();
458 - } // If the next key in the path is numeric (or empty string), it will be
923 + }
924 +
925 + key = ['__proto__', 'constructor', 'prototype'].includes(key) ? key.toUpperCase() : key; // If the next key in the path is numeric (or empty string), it will be
459 926 // created as an array. Otherwise, it will be created as an object.
460 927
461 -
462 928 const isNextKeyArrayIndex = !isNaN(Number(path[i + 1]));
463 929 object[key] = i === lastIndex ? // If at end of path, assign the intended value.
464 930 value : // Otherwise, advance to the next object in the path, creating
465 931 // it if it does not yet exist.
@@ -507,11 +973,11 @@
507 973 setPath(accumulator, segments, value);
508 974 }
509 975
510 976 return accumulator;
511 - }, {});
977 + }, Object.create(null));
512 978 }
513 -//# sourceMappingURL=get-query-args.js.map
979 +
514 980 ;// CONCATENATED MODULE: ./packages/url/build-module/add-query-args.js
515 981 /**
516 982 * Internal dependencies
517 983 */
@@ -555,9 +1021,9 @@
555 1021 }
556 1022
557 1023 return baseUrl + '?' + buildQueryString(args);
558 1024 }
559 -//# sourceMappingURL=add-query-args.js.map
1025 +
560 1026 ;// CONCATENATED MODULE: ./packages/url/build-module/get-query-arg.js
561 1027 /**
562 1028 * Internal dependencies
563 1029 */
@@ -586,9 +1052,9 @@
586 1052
587 1053 function getQueryArg(url, arg) {
588 1054 return getQueryArgs(url)[arg];
589 1055 }
590 -//# sourceMappingURL=get-query-arg.js.map
1056 +
591 1057 ;// CONCATENATED MODULE: ./packages/url/build-module/has-query-arg.js
592 1058 /**
593 1059 * Internal dependencies
594 1060 */
@@ -609,9 +1075,9 @@
609 1075
610 1076 function hasQueryArg(url, arg) {
611 1077 return getQueryArg(url, arg) !== undefined;
612 1078 }
613 -//# sourceMappingURL=has-query-arg.js.map
1079 +
614 1080 ;// CONCATENATED MODULE: ./packages/url/build-module/remove-query-args.js
615 1081 /**
616 1082 * Internal dependencies
617 1083 */
@@ -648,9 +1114,9 @@
648 1114 args.forEach(arg => delete query[arg]);
649 1115 const queryString = buildQueryString(query);
650 1116 return queryString ? baseURL + '?' + queryString : baseURL;
651 1117 }
652 -//# sourceMappingURL=remove-query-args.js.map
1118 +
653 1119 ;// CONCATENATED MODULE: ./packages/url/build-module/prepend-http.js
654 1120 /**
655 1121 * Internal dependencies
656 1122 */
@@ -681,9 +1147,9 @@
681 1147 }
682 1148
683 1149 return url;
684 1150 }
685 -//# sourceMappingURL=prepend-http.js.map
1151 +
686 1152 ;// CONCATENATED MODULE: ./packages/url/build-module/safe-decode-uri.js
687 1153 /**
688 1154 * Safely decodes a URI with `decodeURI`. Returns the URI unmodified if
689 1155 * `decodeURI` throws an error.
@@ -703,9 +1169,9 @@
703 1169 } catch (uriError) {
704 1170 return uri;
705 1171 }
706 1172 }
707 -//# sourceMappingURL=safe-decode-uri.js.map
1173 +
708 1174 ;// CONCATENATED MODULE: ./packages/url/build-module/safe-decode-uri-component.js
709 1175 /**
710 1176 * Safely decodes a URI component with `decodeURIComponent`. Returns the URI component unmodified if
711 1177 * `decodeURIComponent` throws an error.
@@ -720,9 +1186,9 @@
720 1186 } catch (uriComponentError) {
721 1187 return uriComponent;
722 1188 }
723 1189 }
724 -//# sourceMappingURL=safe-decode-uri-component.js.map
1190 +
725 1191 ;// CONCATENATED MODULE: ./packages/url/build-module/filter-url-for-display.js
726 1192 /**
727 1193 * Returns a URL for display.
728 1194 *
@@ -766,11 +1232,12 @@
766 1232 const [fileName, extension] = [file.slice(0, index), file.slice(index + 1)];
767 1233 const truncatedFile = fileName.slice(-3) + '.' + extension;
768 1234 return file.slice(0, maxLength - truncatedFile.length - 1) + '…' + truncatedFile;
769 1235 }
770 -//# sourceMappingURL=filter-url-for-display.js.map
771 -;// CONCATENATED MODULE: external "lodash"
772 -var external_lodash_namespaceObject = window["lodash"];
1236 +
1237 +// EXTERNAL MODULE: ./node_modules/remove-accents/index.js
1238 +var remove_accents = __webpack_require__(4793);
1239 +var remove_accents_default = /*#__PURE__*/__webpack_require__.n(remove_accents);
773 1240 ;// CONCATENATED MODULE: ./packages/url/build-module/clean-for-slug.js
774 1241 /**
775 1242 * External dependencies
776 1243 */
@@ -796,11 +1263,16 @@
796 1263 if (!string) {
797 1264 return '';
798 1265 }
799 1266
800 - return (0,external_lodash_namespaceObject.trim)((0,external_lodash_namespaceObject.deburr)(string).replace(/[\s\./]+/g, '-').replace(/[^\w-]+/g, '').toLowerCase(), '-');
1267 + return remove_accents_default()(string) // Convert each group of whitespace, periods, and forward slashes to a hyphen.
1268 + .replace(/[\s\./]+/g, '-') // Remove anything that's not a letter, number, underscore or hyphen.
1269 + .replace(/[^\p{L}\p{N}_-]+/gu, '') // Convert to lowercase
1270 + .toLowerCase() // Replace multiple hyphens with a single one.
1271 + .replace(/-+/g, '-') // Remove any remaining leading or trailing hyphens.
1272 + .replace(/(^-+)|(-+$)/g, '');
801 1273 }
802 -//# sourceMappingURL=clean-for-slug.js.map
1274 +
803 1275 ;// CONCATENATED MODULE: ./packages/url/build-module/get-filename.js
804 1276 /**
805 1277 * Returns the filename part of the URL.
806 1278 *
@@ -824,9 +1296,9 @@
824 1296 if (filename) {
825 1297 return filename;
826 1298 }
827 1299 }
828 -//# sourceMappingURL=get-filename.js.map
1300 +
829 1301 ;// CONCATENATED MODULE: ./packages/url/build-module/normalize-path.js
830 1302 /**
831 1303 * Given a path, returns a normalized path where equal query parameter values
832 1304 * will be treated as identical, regardless of order they appear in the original
@@ -842,19 +1314,21 @@
842 1314 const base = splitted[0];
843 1315
844 1316 if (!query) {
845 1317 return base;
846 - } // 'b=1&c=2&a=5'
1318 + } // 'b=1%2C2&c=2&a=5'
847 1319
848 1320
849 - return base + '?' + query // [ 'b=1', 'c=2', 'a=5' ]
850 - .split('&') // [ [ 'b, '1' ], [ 'c', '2' ], [ 'a', '5' ] ]
851 - .map(entry => entry.split('=')) // [ [ 'a', '5' ], [ 'b, '1' ], [ 'c', '2' ] ]
852 - .sort((a, b) => a[0].localeCompare(b[0])) // [ 'a=5', 'b=1', 'c=2' ]
853 - .map(pair => pair.join('=')) // 'a=5&b=1&c=2'
1321 + return base + '?' + query // [ 'b=1%2C2', 'c=2', 'a=5' ]
1322 + .split('&') // [ [ 'b, '1%2C2' ], [ 'c', '2' ], [ 'a', '5' ] ]
1323 + .map(entry => entry.split('=')) // [ [ 'b', '1,2' ], [ 'c', '2' ], [ 'a', '5' ] ]
1324 + .map(pair => pair.map(decodeURIComponent)) // [ [ 'a', '5' ], [ 'b, '1,2' ], [ 'c', '2' ] ]
1325 + .sort((a, b) => a[0].localeCompare(b[0])) // [ [ 'a', '5' ], [ 'b, '1%2C2' ], [ 'c', '2' ] ]
1326 + .map(pair => pair.map(encodeURIComponent)) // [ 'a=5', 'b=1%2C2', 'c=2' ]
1327 + .map(pair => pair.join('=')) // 'a=5&b=1%2C2&c=2'
854 1328 .join('&');
855 1329 }
856 -//# sourceMappingURL=normalize-path.js.map
1330 +
857 1331 ;// CONCATENATED MODULE: ./packages/url/build-module/index.js
858 1332
859 1333
860 1334
@@ -880,8 +1354,10 @@
880 1354
881 1355
882 1356
883 1357
884 -//# sourceMappingURL=index.js.map
1358 +
1359 +})();
1360 +
885 1361 (window.wp = window.wp || {}).url = __webpack_exports__;
886 1362 /******/ })()
887 1363 ;