1/******/ (() => { // webpackBootstrap 2/******/ var __webpack_modules__ = ({ 3 4/***/ 9681: 5/***/ ((module) => { 6 7var 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 "Ả": "A", 24 "Ạ": "A", 25 "Ẩ": "A", 26 "Ẫ": "A", 27 "Ậ": "A", 28 "Ã": "C", 29 "á¸": "C", 30 "Ã": "E", 31 "Ã": "E", 32 "Ã": "E", 33 "Ã": "E", 34 "Ế": "E", 35 "á¸": "E", 36 "á»": "E", 37 "á¸": "E", 38 "á¸": "E", 39 "È": "E", 40 "Ẻ": "E", 41 "Ẽ": "E", 42 "Ẹ": "E", 43 "á»": "E", 44 "á»": "E", 45 "á»": "E", 46 "Ã": "I", 47 "Ã": "I", 48 "Ã": "I", 49 "Ã": "I", 50 "Ḯ": "I", 51 "È": "I", 52 "á»": "I", 53 "á»": "I", 54 "Ã": "D", 55 "Ã": "N", 56 "Ã": "O", 57 "Ã": "O", 58 "Ã": "O", 59 "Ã": "O", 60 "Ã": "O", 61 "Ã": "O", 62 "á»": "O", 63 "á¹": "O", 64 "á¹": "O", 65 "È": "O", 66 "á»": "O", 67 "á»": "O", 68 "á»": "O", 69 "á»": "O", 70 "á»": "O", 71 "á»": "O", 72 "á»": "O", 73 "á» ": "O", 74 "á»": "O", 75 "Ợ": "O", 76 "Ã": "U", 77 "Ã": "U", 78 "Ã": "U", 79 "Ã": "U", 80 "Ủ": "U", 81 "Ụ": "U", 82 "Ử": "U", 83 "á»®": "U", 84 "á»°": "U", 85 "Ã": "Y", 86 "à ": "a", 87 "á": "a", 88 "â": "a", 89 "ã": "a", 90 "ä": "a", 91 "Ã¥": "a", 92 "ấ": "a", 93 "ắ": "a", 94 "ẳ": "a", 95 "ẵ": "a", 96 "ặ": "a", 97 "æ": "ae", 98 "ầ": "a", 99 "ằ": "a", 100 "È": "a", 101 "ả": "a", 102 "ạ": "a", 103 "ẩ": "a", 104 "ẫ": "a", 105 "áº": "a", 106 "ç": "c", 107 "á¸": "c", 108 "è": "e", 109 "é": "e", 110 "ê": "e", 111 "ë": "e", 112 "ế": "e", 113 "á¸": "e", 114 "á»": "e", 115 "á¸": "e", 116 "á¸": "e", 117 "È": "e", 118 "ẻ": "e", 119 "ẽ": "e", 120 "ẹ": "e", 121 "á»": "e", 122 "á» ": "e", 123 "á»": "e", 124 "ì": "i", 125 "Ã": "i", 126 "î": "i", 127 "ï": "i", 128 "ḯ": "i", 129 "È": "i", 130 "á»": "i", 131 "á»": "i", 132 "ð": "d", 133 "ñ": "n", 134 "ò": "o", 135 "ó": "o", 136 "ô": "o", 137 "õ": "o", 138 "ö": "o", 139 "ø": "o", 140 "á»": "o", 141 "á¹": "o", 142 "á¹": "o", 143 "È": "o", 144 "á»": "o", 145 "á»": "o", 146 "á»": "o", 147 "á»": "o", 148 "á»": "o", 149 "á»": "o", 150 "á»": "o", 151 "ỡ": "o", 152 "á»": "o", 153 "ợ": "o", 154 "ù": "u", 155 "ú": "u", 156 "û": "u", 157 "ü": "u", 158 "á»§": "u", 159 "ụ": "u", 160 "á»": "u", 161 "ữ": "u", 162 "á»±": "u", 163 "ý": "y", 164 "ÿ": "y", 165 "Ä": "A", 166 "Ä": "a", 167 "Ä": "A", 168 "Ä": "a", 169 "Ä": "A", 170 "Ä ": "a", 171 "Ä": "C", 172 "Ä": "c", 173 "Ä": "C", 174 "Ä": "c", 175 "Ä": "C", 176 "Ä": "c", 177 "Ä": "C", 178 "Ä": "c", 179 "CÌ": "C", 180 "cÌ": "c", 181 "Ä": "D", 182 "Ä": "d", 183 "Ä": "D", 184 "Ä": "d", 185 "Ä": "E", 186 "Ä": "e", 187 "Ä": "E", 188 "Ä": "e", 189 "Ä": "E", 190 "Ä": "e", 191 "Ä": "E", 192 "Ä": "e", 193 "Ä": "E", 194 "Ä": "e", 195 "Ä": "G", 196 "Ç´": "G", 197 "Ä": "g", 198 "ǵ": "g", 199 "Ä": "G", 200 "Ä": "g", 201 "Ä ": "G", 202 "Ä¡": "g", 203 "Ä¢": "G", 204 "Ä£": "g", 205 "Ĥ": "H", 206 "Ä¥": "h", 207 "Ħ": "H", 208 "ħ": "h", 209 "Ḫ": "H", 210 "ḫ": "h", 211 "Ĩ": "I", 212 "Ä©": "i", 213 "Ī": "I", 214 "Ä«": "i", 215 "Ĭ": "I", 216 "Ä": "i", 217 "Ä®": "I", 218 "į": "i", 219 "İ": "I", 220 "ı": "i", 221 "IJ": "IJ", 222 "ij": "ij", 223 "Ä´": "J", 224 "ĵ": "j", 225 "Ķ": "K", 226 "Ä·": "k", 227 "Ḱ": "K", 228 "ḱ": "k", 229 "KÌ": "K", 230 "kÌ": "k", 231 "Ĺ": "L", 232 "ĺ": "l", 233 "Ä»": "L", 234 "ļ": "l", 235 "Ľ": "L", 236 "ľ": "l", 237 "Ä¿": "L", 238 "Å": "l", 239 "Å": "l", 240 "Å": "l", 241 "Ḿ": "M", 242 "ḿ": "m", 243 "MÌ": "M", 244 "mÌ": "m", 245 "Å": "N", 246 "Å": "n", 247 "Å ": "N", 248 "Å": "n", 249 "Å": "N", 250 "Å": "n", 251 "Å": "n", 252 "NÌ": "N", 253 "nÌ": "n", 254 "Å": "O", 255 "Å": "o", 256 "Å": "O", 257 "Å": "o", 258 "Å": "O", 259 "Å": "o", 260 "Å": "OE", 261 "Å": "oe", 262 "PÌ": "P", 263 "pÌ": "p", 264 "Å": "R", 265 "Å": "r", 266 "Å": "R", 267 "Å": "r", 268 "Å": "R", 269 "Å": "r", 270 "RÌ": "R", 271 "rÌ": "r", 272 "È": "R", 273 "È": "r", 274 "Å": "S", 275 "Å": "s", 276 "Å": "S", 277 "Å": "s", 278 "Å": "S", 279 "È": "S", 280 "È": "s", 281 "Å": "s", 282 "Å ": "S", 283 "Å¡": "s", 284 "Å¢": "T", 285 "Å£": "t", 286 "È": "t", 287 "È": "T", 288 "Ť": "T", 289 "Å¥": "t", 290 "Ŧ": "T", 291 "ŧ": "t", 292 "TÌ": "T", 293 "tÌ": "t", 294 "Ũ": "U", 295 "Å©": "u", 296 "Ū": "U", 297 "Å«": "u", 298 "Ŭ": "U", 299 "Å": "u", 300 "Å®": "U", 301 "ů": "u", 302 "Ű": "U", 303 "ű": "u", 304 "Ų": "U", 305 "ų": "u", 306 "È": "U", 307 "È": "u", 308 "VÌ": "V", 309 "vÌ": "v", 310 "Å´": "W", 311 "ŵ": "w", 312 "áº": "W", 313 "áº": "w", 314 "XÌ": "X", 315 "xÌ": "x", 316 "Ŷ": "Y", 317 "Å·": "y", 318 "Ÿ": "Y", 319 "YÌ": "Y", 320 "yÌ": "y", 321 "Ź": "Z", 322 "ź": "z", 323 "Å»": "Z", 324 "ż": "z", 325 "Ž": "Z", 326 "ž": "z", 327 "Å¿": "s", 328 "Æ": "f", 329 "Æ ": "O", 330 "Æ¡": "o", 331 "Ư": "U", 332 "ư": "u", 333 "Ç": "A", 334 "Ç": "a", 335 "Ç": "I", 336 "Ç": "i", 337 "Ç": "O", 338 "Ç": "o", 339 "Ç": "U", 340 "Ç": "u", 341 "Ç": "U", 342 "Ç": "u", 343 "Ç": "U", 344 "Ç": "u", 345 "Ç": "U", 346 "Ç": "u", 347 "Ç": "U", 348 "Ç": "u", 349 "Ứ": "U", 350 "ứ": "u", 351 "Ṹ": "U", 352 "á¹¹": "u", 353 "Ǻ": "A", 354 "Ç»": "a", 355 "Ǽ": "AE", 356 "ǽ": "ae", 357 "Ǿ": "O", 358 "Ç¿": "o", 359 "Ã": "TH", 360 "þ": "th", 361 "á¹": "P", 362 "á¹": "p", 363 "Ṥ": "S", 364 "á¹¥": "s", 365 "XÌ": "X", 366 "xÌ": "x", 367 "Ð": "Ð", 368 "Ñ": "г", 369 "Ð": "Ð", 370 "Ñ": "к", 371 "AÌ": "A", 372 "aÌ": "a", 373 "EÌ": "E", 374 "eÌ": "e", 375 "IÌ": "I", 376 "iÌ": "i", 377 "Ǹ": "N", 378 "ǹ": "n", 379 "á»": "O", 380 "á»": "o", 381 "á¹": "O", 382 "á¹": "o", 383 "Ừ": "U", 384 "ừ": "u", 385 "áº": "W", 386 "áº": "w", 387 "Ỳ": "Y", 388 "ỳ": "y", 389 "È": "A", 390 "È": "a", 391 "È": "E", 392 "È ": "e", 393 "È": "I", 394 "È": "i", 395 "È": "O", 396 "È": "o", 397 "È": "R", 398 "È": "r", 399 "È": "U", 400 "È": "u", 401 "BÌ": "B", 402 "bÌ": "b", 403 "ÄÌ£": "C", 404 "ÄÌ£": "c", 405 "ÃÌ": "E", 406 "êÌ": "e", 407 "FÌ": "F", 408 "fÌ": "f", 409 "Ǧ": "G", 410 "ǧ": "g", 411 "È": "H", 412 "È": "h", 413 "JÌ": "J", 414 "ǰ": "j", 415 "Ǩ": "K", 416 "Ç©": "k", 417 "MÌ": "M", 418 "mÌ": "m", 419 "PÌ": "P", 420 "pÌ": "p", 421 "QÌ": "Q", 422 "qÌ": "q", 423 "ÅÌ©": "R", 424 "ÅÌ©": "r", 425 "Ṧ": "S", 426 "á¹§": "s", 427 "VÌ": "V", 428 "vÌ": "v", 429 "WÌ": "W", 430 "wÌ": "w", 431 "XÌ": "X", 432 "xÌ": "x", 433 "YÌ": "Y", 434 "yÌ": "y", 435 "A̧": "A", 436 "a̧": "a", 437 "B̧": "B", 438 "b̧": "b", 439 "á¸": "D", 440 "á¸": "d", 441 "Ȩ": "E", 442 "È©": "e", 443 "ÆÌ§": "E", 444 "Ȩ́": "e", 445 "Ḩ": "H", 446 "ḩ": "h", 447 "I̧": "I", 448 "i̧": "i", 449 "ÆÌ§": "I", 450 "ɨ̧": "i", 451 "M̧": "M", 452 "m̧": "m", 453 "O̧": "O", 454 "o̧": "o", 455 "Q̧": "Q", 456 "q̧": "q", 457 "U̧": "U", 458 "u̧": "u", 459 "X̧": "X", 460 "x̧": "x", 461 "Z̧": "Z", 462 "z̧": "z", 463 "й":"и", 464 "Ð":"Ð", 465 "Ñ":"е", 466 "Ð":"Ð", 467}; 468 469var chars = Object.keys(characterMap).join('|'); 470var allAccents = new RegExp(chars, 'g'); 471var firstAccent = new RegExp(chars, ''); 472 473function matcher(match) { 474 return characterMap[match]; 475} 476 477var removeAccents = function(string) { 478 return string.replace(allAccents, matcher); 479}; 480 481var hasAccents = function(string) { 482 return !!string.match(firstAccent); 483}; 484 485module.exports = removeAccents; 486module.exports.has = hasAccents; 487module.exports.remove = removeAccents; 488 489 490/***/ }) 491 492/******/ }); 493/************************************************************************/ 494/******/ // The module cache 495/******/ var __webpack_module_cache__ = {}; 496/******/ 497/******/ // The require function 498/******/ function __webpack_require__(moduleId) { 499/******/ // Check if module is in cache 500/******/ var cachedModule = __webpack_module_cache__[moduleId]; 501/******/ if (cachedModule !== undefined) { 502/******/ return cachedModule.exports; 503/******/ } 504/******/ // Create a new module (and put it into the cache) 505/******/ var module = __webpack_module_cache__[moduleId] = { 506/******/ // no module.id needed 507/******/ // no module.loaded needed 508/******/ exports: {} 509/******/ }; 510/******/ 511/******/ // Execute the module function 512/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); 513/******/ 514/******/ // Return the exports of the module 515/******/ return module.exports; 516/******/ } 517/******/ 518/************************************************************************/ 519/******/ /* webpack/runtime/compat get default export */ 520/******/ (() => { 521/******/ // getDefaultExport function for compatibility with non-harmony modules 522/******/ __webpack_require__.n = (module) => {
vendor: 1,617 bytes, lines 523-563
523/******/ var getter = module && module.__esModule ? 524/******/ () => (module['default']) : 525/******/ () => (module); 526/******/ __webpack_require__.d(getter, { a: getter }); 527/******/ return getter; 528/******/ }; 529/******/ })(); 530/******/ 531/******/ /* webpack/runtime/define property getters */ 532/******/ (() => { 533/******/ // define getter functions for harmony exports 534/******/ __webpack_require__.d = (exports, definition) => { 535/******/ for(var key in definition) { 536/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { 537/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); 538/******/ } 539/******/ } 540/******/ }; 541/******/ })(); 542/******/ 543/******/ /* webpack/runtime/hasOwnProperty shorthand */ 544/******/ (() => { 545/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) 546/******/ })(); 547/******/ 548/******/ /* webpack/runtime/make namespace object */ 549/******/ (() => { 550/******/ // define __esModule on exports 551/******/ __webpack_require__.r = (exports) => { 552/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 553/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 554/******/ } 555/******/ Object.defineProperty(exports, '__esModule', { value: true }); 556/******/ }; 557/******/ })(); 558/******/ 559/************************************************************************/ 560var __webpack_exports__ = {}; 561// This entry needs to be wrapped in an IIFE because it needs to be in strict mode. 562(() => { 563"use strict";
564// ESM COMPAT FLAG 565__webpack_require__.r(__webpack_exports__); 566 567// EXPORTS 568__webpack_require__.d(__webpack_exports__, { 569 addQueryArgs: () => (/* reexport */ addQueryArgs), 570 buildQueryString: () => (/* reexport */ buildQueryString), 571 cleanForSlug: () => (/* reexport */ cleanForSlug), 572 filterURLForDisplay: () => (/* reexport */ filterURLForDisplay), 573 getAuthority: () => (/* reexport */ getAuthority), 574 getFilename: () => (/* reexport */ getFilename), 575 getFragment: () => (/* reexport */ getFragment), 576 getPath: () => (/* reexport */ getPath), 577 getPathAndQueryString: () => (/* reexport */ getPathAndQueryString), 578 getProtocol: () => (/* reexport */ getProtocol), 579 getQueryArg: () => (/* reexport */ getQueryArg), 580 getQueryArgs: () => (/* reexport */ getQueryArgs), 581 getQueryString: () => (/* reexport */ getQueryString), 582 hasQueryArg: () => (/* reexport */ hasQueryArg), 583 isEmail: () => (/* reexport */ isEmail), 584 isPhoneNumber: () => (/* reexport */ isPhoneNumber), 585 isURL: () => (/* reexport */ isURL), 586 isValidAuthority: () => (/* reexport */ isValidAuthority), 587 isValidFragment: () => (/* reexport */ isValidFragment), 588 isValidPath: () => (/* reexport */ isValidPath), 589 isValidProtocol: () => (/* reexport */ isValidProtocol), 590 isValidQueryString: () => (/* reexport */ isValidQueryString), 591 normalizePath: () => (/* reexport */ normalizePath), 592 prependHTTP: () => (/* reexport */ prependHTTP), 593 prependHTTPS: () => (/* reexport */ prependHTTPS), 594 removeQueryArgs: () => (/* reexport */ removeQueryArgs), 595 safeDecodeURI: () => (/* reexport */ safeDecodeURI), 596 safeDecodeURIComponent: () => (/* reexport */ safeDecodeURIComponent) 597}); 598 599;// ./node_modules/@wordpress/url/build-module/is-url.js 600function isURL(url) { 601 try { 602 new URL(url); 603 return true; 604 } catch { 605 return false; 606 } 607} 608 609 610;// ./node_modules/@wordpress/url/build-module/is-email.js 611const EMAIL_REGEXP = /^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i; 612function isEmail(email) { 613 return EMAIL_REGEXP.test(email); 614} 615 616 617;// ./node_modules/@wordpress/url/build-module/is-phone-number.js 618const PHONE_REGEXP = /^(tel:)?(\+)?\d{6,15}$/; 619function isPhoneNumber(phoneNumber) { 620 phoneNumber = phoneNumber.replace(/[-.() ]/g, ""); 621 return PHONE_REGEXP.test(phoneNumber); 622} 623 624 625;// ./node_modules/@wordpress/url/build-module/get-protocol.js 626function getProtocol(url) { 627 const matches = /^([^\s:]+:)/.exec(url); 628 if (matches) { 629 return matches[1]; 630 } 631} 632 633 634;// ./node_modules/@wordpress/url/build-module/is-valid-protocol.js 635function isValidProtocol(protocol) { 636 if (!protocol) { 637 return false; 638 } 639 return /^[a-z\-.\+]+[0-9]*:$/i.test(protocol); 640} 641 642 643;// ./node_modules/@wordpress/url/build-module/get-authority.js 644function getAuthority(url) { 645 const matches = /^[^\/\s:]+:(?:\/\/)?\/?([^\/\s#?]+)[\/#?]{0,1}\S*$/.exec( 646 url 647 ); 648 if (matches) { 649 return matches[1]; 650 } 651} 652 653 654;// ./node_modules/@wordpress/url/build-module/is-valid-authority.js 655function isValidAuthority(authority) { 656 if (!authority) { 657 return false; 658 } 659 return /^[^\s#?]+$/.test(authority); 660} 661 662 663;// ./node_modules/@wordpress/url/build-module/get-path.js 664function getPath(url) { 665 const matches = /^[^\/\s:]+:(?:\/\/)?[^\/\s#?]+[\/]([^\s#?]+)[#?]{0,1}\S*$/.exec(url); 666 if (matches) { 667 return matches[1]; 668 } 669} 670 671 672;// ./node_modules/@wordpress/url/build-module/is-valid-path.js 673function isValidPath(path) { 674 if (!path) { 675 return false; 676 } 677 return /^[^\s#?]+$/.test(path); 678} 679 680 681;// ./node_modules/@wordpress/url/build-module/get-query-string.js 682function getQueryString(url) { 683 let query; 684 try { 685 query = new URL(url, "http://example.com").search.substring(1); 686 } catch (error) { 687 } 688 if (query) { 689 return query; 690 } 691} 692 693 694;// ./node_modules/@wordpress/url/build-module/build-query-string.js 695function buildQueryString(data) { 696 let string = ""; 697 const stack = Object.entries(data); 698 let pair; 699 while (pair = stack.shift()) { 700 let [key, value] = pair; 701 const hasNestedData = Array.isArray(value) || value && value.constructor === Object; 702 if (hasNestedData) { 703 const valuePairs = Object.entries(value).reverse(); 704 for (const [member, memberValue] of valuePairs) { 705 stack.unshift([`${key}[${member}]`, memberValue]); 706 } 707 } else if (value !== void 0) { 708 if (value === null) { 709 value = ""; 710 }
711 string += "&" + [key, String(value)].map(encodeURIComponent).join("="); 712 } 713 } 714 return string.substr(1); 715} 716 717 718;// ./node_modules/@wordpress/url/build-module/is-valid-query-string.js 719function isValidQueryString(queryString) { 720 if (!queryString) { 721 return false; 722 } 723 return /^[^\s#?\/]+$/.test(queryString); 724} 725 726 727;// ./node_modules/@wordpress/url/build-module/get-path-and-query-string.js 728 729function getPathAndQueryString(url) { 730 const path = getPath(url); 731 const queryString = getQueryString(url); 732 let value = "/"; 733 if (path) { 734 value += path; 735 } 736 if (queryString) { 737 value += `?${queryString}`; 738 } 739 return value; 740} 741 742 743;// ./node_modules/@wordpress/url/build-module/get-fragment.js 744function getFragment(url) { 745 const matches = /^\S+?(#[^\s\?]*)/.exec(url); 746 if (matches) { 747 return matches[1]; 748 } 749} 750 751 752;// ./node_modules/@wordpress/url/build-module/is-valid-fragment.js 753function isValidFragment(fragment) { 754 if (!fragment) { 755 return false; 756 } 757 return /^#[^\s#?\/]*$/.test(fragment); 758} 759 760 761;// ./node_modules/@wordpress/url/build-module/safe-decode-uri-component.js 762function safeDecodeURIComponent(uriComponent) { 763 try { 764 return decodeURIComponent(uriComponent); 765 } catch (uriComponentError) { 766 return uriComponent; 767 } 768} 769 770 771;// ./node_modules/@wordpress/url/build-module/get-query-args.js 772 773 774function setPath(object, path, value) { 775 const length = path.length; 776 const lastIndex = length - 1; 777 for (let i = 0; i < length; i++) { 778 let key = path[i]; 779 if (!key && Array.isArray(object)) { 780 key = object.length.toString(); 781 } 782 key = ["__proto__", "constructor", "prototype"].includes(key) ? key.toUpperCase() : key; 783 const isNextKeyArrayIndex = !isNaN(Number(path[i + 1])); 784 object[key] = i === lastIndex ? ( 785 // If at end of path, assign the intended value. 786 value 787 ) : ( 788 // Otherwise, advance to the next object in the path, creating 789 // it if it does not yet exist. 790 object[key] || (isNextKeyArrayIndex ? [] : {}) 791 ); 792 if (Array.isArray(object[key]) && !isNextKeyArrayIndex) { 793 object[key] = { ...object[key] }; 794 } 795 object = object[key]; 796 } 797} 798function getQueryArgs(url) { 799 return (getQueryString(url) || "").replace(/\+/g, "%20").split("&").reduce((accumulator, keyValue) => { 800 const [key, value = ""] = keyValue.split("=").filter(Boolean).map(safeDecodeURIComponent); 801 if (key) { 802 const segments = key.replace(/\]/g, "").split("["); 803 setPath(accumulator, segments, value); 804 } 805 return accumulator; 806 }, /* @__PURE__ */ Object.create(null)); 807} 808 809 810;// ./node_modules/@wordpress/url/build-module/add-query-args.js 811 812 813 814function addQueryArgs(url = "", args) { 815 if (!args || !Object.keys(args).length) { 816 return url; 817 } 818 const fragment = getFragment(url) || ""; 819 let baseUrl = url.replace(fragment, ""); 820 const queryStringIndex = url.indexOf("?"); 821 if (queryStringIndex !== -1) { 822 args = Object.assign(getQueryArgs(url), args); 823 baseUrl = baseUrl.substr(0, queryStringIndex); 824 } 825 return baseUrl + "?" + buildQueryString(args) + fragment; 826} 827 828 829;// ./node_modules/@wordpress/url/build-module/get-query-arg.js 830 831function getQueryArg(url, arg) { 832 return getQueryArgs(url)[arg]; 833} 834 835 836;// ./node_modules/@wordpress/url/build-module/has-query-arg.js 837 838function hasQueryArg(url, arg) { 839 return getQueryArg(url, arg) !== void 0; 840} 841 842 843;// ./node_modules/@wordpress/url/build-module/remove-query-args.js 844 845 846function removeQueryArgs(url, ...args) { 847 const fragment = url.replace(/^[^#]*/, ""); 848 url = url.replace(/#.*/, ""); 849 const queryStringIndex = url.indexOf("?"); 850 if (queryStringIndex === -1) { 851 return url + fragment; 852 } 853 const query = getQueryArgs(url); 854 const baseURL = url.substr(0, queryStringIndex); 855 args.forEach((arg) => delete query[arg]); 856 const queryString = buildQueryString(query); 857 const updatedUrl = queryString ? baseURL + "?" + queryString : baseURL; 858 return updatedUrl + fragment; 859} 860 861 862;// ./node_modules/@wordpress/url/build-module/prepend-http.js 863 864const USABLE_HREF_REGEXP = /^(?:[a-z]+:|#|\?|\.|\/)/i; 865function prependHTTP(url) { 866 if (!url) { 867 return url; 868 } 869 url = url.trim(); 870 if (!USABLE_HREF_REGEXP.test(url) && !isEmail(url)) { 871 return "http://" + url; 872 } 873 return url; 874} 875 876 877;// ./node_modules/@wordpress/url/build-module/safe-decode-uri.js 878function safeDecodeURI(uri) { 879 try { 880 return decodeURI(uri); 881 } catch (uriError) { 882 return uri; 883 } 884} 885 886 887;// ./node_modules/@wordpress/url/build-module/filter-url-for-display.js 888function filterURLForDisplay(url, maxLength = null) { 889 if (!url) { 890 return ""; 891 } 892 let filteredURL = url.replace(/^[a-z\-.\+]+[0-9]*:(\/\/)?/i, "").replace(/^www\./i, ""); 893 if (filteredURL.match(/^[^\/]+\/$/)) { 894 filteredURL = filteredURL.replace("/", ""); 895 } 896 const fileRegexp = /\/([^\/?]+)\.(?:[\w]+)(?=\?|$)/; 897 if (!maxLength || filteredURL.length <= maxLength || !filteredURL.match(fileRegexp)) { 898 return filteredURL; 899 } 900 filteredURL = filteredURL.split("?")[0]; 901 const urlPieces = filteredURL.split("/"); 902 const file = urlPieces[urlPieces.length - 1]; 903 if (file.length <= maxLength) { 904 return "\u2026" + filteredURL.slice(-maxLength); 905 } 906 const index = file.lastIndexOf("."); 907 const [fileName, extension] = [ 908 file.slice(0, index), 909 file.slice(index + 1) 910 ]; 911 const truncatedFile = fileName.slice(-3) + "." + extension; 912 return file.slice(0, maxLength - truncatedFile.length - 1) + "\u2026" + truncatedFile; 913} 914 915 916// EXTERNAL MODULE: ./node_modules/remove-accents/index.js 917var remove_accents = __webpack_require__(9681); 918var remove_accents_default = /*#__PURE__*/__webpack_require__.n(remove_accents); 919;// ./node_modules/@wordpress/url/build-module/clean-for-slug.js 920 921function cleanForSlug(string) { 922 if (!string) { 923 return ""; 924 } 925 return remove_accents_default()(string).replace(/( |–|—)/g, "-").replace(/[\s\./]+/g, "-").replace(/&\S+?;/g, "").replace(/[^\p{L}\p{N}_-]+/gu, "").toLowerCase().replace(/-+/g, "-").replace(/(^-+)|(-+$)/g, ""); 926} 927 928 929;// ./node_modules/@wordpress/url/build-module/get-filename.js 930function getFilename(url) { 931 let filename; 932 if (!url) { 933 return; 934 } 935 try { 936 filename = new URL(url, "http://example.com").pathname.split("/").pop(); 937 } catch (error) { 938 } 939 if (filename) { 940 return filename; 941 } 942} 943 944 945;// ./node_modules/@wordpress/url/build-module/normalize-path.js 946function normalizePath(path) { 947 const split = path.split("?"); 948 const query = split[1]; 949 const base = split[0]; 950 if (!query) { 951 return base; 952 } 953 return base + "?" + query.split("&").map((entry) => entry.split("=")).map((pair) => pair.map(decodeURIComponent)).sort((a, b) => a[0].localeCompare(b[0])).map((pair) => pair.map(encodeURIComponent)).map((pair) => pair.join("=")).join("&"); 954} 955 956 957;// ./node_modules/@wordpress/url/build-module/prepend-https.js 958 959function prependHTTPS(url) { 960 if (!url) { 961 return url; 962 } 963 if (url.startsWith("http://")) { 964 return url; 965 } 966 url = prependHTTP(url); 967 return url.replace(/^http:/, "https:"); 968} 969 970 971;// ./node_modules/@wordpress/url/build-module/index.js 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002})(); 1003 1004(window.wp = window.wp || {}).url = __webpack_exports__; 1005/******/ })() 1006;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.