WordPress/wp-includes/js/dist/url.min.js

2 lines
8.5 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.url=function(t){var r={};function n(e){if(r[e])return r[e].exports;var u=r[e]={i:e,l:!1,exports:{}};return t[e].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:e})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,r){if(1&r&&(t=n(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(n.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var u in t)n.d(e,u,function(r){return t[r]}.bind(null,u));return e},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},n.p="",n(n.s="lbya")}({BsWD:function(t,r,n){"use strict";n.d(r,"a",(function(){return u}));var e=n("a3WO");function u(t,r){if(t){if("string"==typeof t)return Object(e.a)(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(e.a)(t,r):void 0}}},DSFK:function(t,r,n){"use strict";function e(t){if(Array.isArray(t))return t}n.d(r,"a",(function(){return e}))},ODXe:function(t,r,n){"use strict";n.d(r,"a",(function(){return i}));var e=n("DSFK");var u=n("BsWD"),o=n("PYwp");function i(t,r){return Object(e.a)(t)||function(t,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],e=!0,u=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(e=(i=c.next()).done)&&(n.push(i.value),!r||n.length!==r);e=!0);}catch(t){u=!0,o=t}finally{try{e||null==c.return||c.return()}finally{if(u)throw o}}return n}}(t,r)||Object(u.a)(t,r)||Object(o.a)()}},PYwp:function(t,r,n){"use strict";function e(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(r,"a",(function(){return e}))},YLtl:function(t,r){t.exports=window.lodash},a3WO:function(t,r,n){"use strict";function e(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}n.d(r,"a",(function(){return e}))},lbya:function(t,r,n){"use strict";function e(t){try{return new URL(t),!0}catch(t){return!1}}n.r(r),n.d(r,"isURL",(function(){return e})),n.d(r,"isEmail",(function(){return o})),n.d(r,"getProtocol",(function(){return i})),n.d(r,"isValidProtocol",(function(){return c})),n.d(r,"getAuthority",(function(){return a})),n.d(r,"isValidAuthority",(function(){return f})),n.d(r,"getPath",(function(){return l})),n.d(r,"isValidPath",(function(){return s})),n.d(r,"getQueryString",(function(){return d})),n.d(r,"buildQueryString",(function(){return v})),n.d(r,"isValidQueryString",(function(){return g})),n.d(r,"getPathAndQueryString",(function(){return h})),n.d(r,"getFragment",(function(){return O})),n.d(r,"isValidFragment",(function(){return m})),n.d(r,"addQueryArgs",(function(){return P})),n.d(r,"getQueryArg",(function(){return x})),n.d(r,"getQueryArgs",(function(){return A})),n.d(r,"hasQueryArg",(function(){return D})),n.d(r,"removeQueryArgs",(function(){return I})),n.d(r,"prependHTTP",(function(){return $})),n.d(r,"safeDecodeURI",(function(){return R})),n.d(r,"safeDecodeURIComponent",(function(){return Q})),n.d(r,"filterURLForDisplay",(function(){return C})),n.d(r,"cleanForSlug",(function(){return _}));var u=/^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i;function o(t){return u.test(t)}function i(t){var r=/^([^\s:]+:)/.exec(t);if(r)return r[1]}function c(t){return!!t&&/^[a-z\-.\+]+[0-9]*:$/i.test(t)}function a(t){var r=/^[^\/\s:]+:(?:\/\/)?\/?([^\/\s#?]+)[\/#?]{0,1}\S*$/.exec(t);if(r)return r[1]}function f(t){return!!t&&/^[^\s#?]+$/.test(t)}function l(t){var r=/^[^\/\s:]+:(?:\/\/)?[^\/\s#?]+[\/]([^\s#?]+)[#?]{0,1}\S*$/.exec(t);if(r)return r[1]}function s(