Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mets.corals.io/wp-content/plugins/amp/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mets.corals.io/wp-content/plugins/amp/assets/js/wp-api-fetch.js
!function(){var e={5318:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},2459:function(e,t,r){"use strict";var n=r(5318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(5736),u=n(r(9887)),i=n(r(1377)),s=n(r(6016)),a=n(r(8887)),c=n(r(5865)),l=n(r(1139)),d=n(r(5637)),f=n(r(2774)),p=r(5028);const h={Accept:"application/json, */*;q=0.1"},g={credentials:"include"},m=[d.default,c.default,l.default,a.default],y=e=>{if(e.status>=200&&e.status<300)return e;throw e};let v=e=>{const{url:t,path:r,data:n,parse:u=!0,...i}=e;let{body:s,headers:a}=e;return a={...h,...a},n&&(s=JSON.stringify(n),a["Content-Type"]="application/json"),window.fetch(t||r||window.location.href,{...g,...i,body:s,headers:a}).then((e=>Promise.resolve(e).then(y).catch((e=>(0,p.parseAndThrowError)(e,u))).then((e=>(0,p.parseResponseAndNormalizeError)(e,u)))),(e=>{if(e&&"AbortError"===e.name)throw e;throw{code:"fetch_error",message:(0,o.__)("You are probably offline.")}}))};function w(e){return m.reduceRight(((e,t)=>r=>t(r,e)),v)(e).catch((t=>"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):window.fetch(w.nonceEndpoint).then(y).then((e=>e.text())).then((t=>(w.nonceMiddleware.nonce=t,w(e))))))}w.use=function(e){m.unshift(e)},w.setFetchHandler=function(e){v=e},w.createNonceMiddleware=u.default,w.createPreloadingMiddleware=s.default,w.createRootURLMiddleware=i.default,w.fetchAllMiddleware=a.default,w.mediaUploadMiddleware=f.default;var _=w;t.default=_},8887:function(e,t,r){"use strict";var n=r(5318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(5934),u=n(r(2459));const i=(e,t)=>{let{path:r,url:n,...u}=e;return{...u,url:n&&(0,o.addQueryArgs)(n,t),path:r&&(0,o.addQueryArgs)(r,t)}},s=e=>e.json?e.json():Promise.reject(e),a=e=>{const{next:t}=(e=>{if(!e)return{};const t=e.match(/<([^>]+)>; rel="next"/);return t?{next:t[1]}:{}})(e.headers.get("link"));return t};t.default=async(e,t)=>{if(!1===e.parse)return t(e);if(!(e=>{const t=!!e.path&&-1!==e.path.indexOf("per_page=-1"),r=!!e.url&&-1!==e.url.indexOf("per_page=-1");return t||r})(e))return t(e);const r=await(0,u.default)({...i(e,{per_page:100}),parse:!1}),n=await s(r);if(!Array.isArray(n))return n;let o=a(r);if(!o)return n;let c=[].concat(n);for(;o;){const t=await(0,u.default)({...e,path:void 0,url:o,parse:!1}),r=await s(t);c=c.concat(r),o=a(t)}return c}},1139:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const r=new Set(["PATCH","PUT","DELETE"]),n="GET";t.default=(e,t)=>{const{method:o=n}=e;return r.has(o.toUpperCase())&&(e={...e,headers:{...e.headers,"X-HTTP-Method-Override":o,"Content-Type":"application/json"},method:"POST"}),t(e)}},2774:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(5736),o=r(5028);t.default=(e,t)=>{if(!function(e){const t=!!e.method&&"POST"===e.method;return(!!e.path&&-1!==e.path.indexOf("/wp/v2/media")||!!e.url&&-1!==e.url.indexOf("/wp/v2/media"))&&t}(e))return t(e);let r=0;const u=e=>(r++,t({path:`/wp/v2/media/${e}/post-process`,method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch((()=>r<5?u(e):(t({path:`/wp/v2/media/${e}?force=true`,method:"DELETE"}),Promise.reject()))));return t({...e,parse:!1}).catch((t=>{const r=t.headers.get("x-wp-upload-attachment-id");return t.status>=500&&t.status<600&&r?u(r).catch((()=>!1!==e.parse?Promise.reject({code:"post_process",message:(0,n.__)("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(t))):(0,o.parseAndThrowError)(t,e.parse)})).then((t=>(0,o.parseResponseAndNormalizeError)(t,e.parse)))}},5865:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=(e,t)=>{let r,n,o=e.path;return"string"==typeof e.namespace&&"string"==typeof e.endpoint&&(r=e.namespace.replace(/^\/|\/$/g,""),n=e.endpoint.replace(/^\//,""),o=n?r+"/"+n:r),delete e.namespace,delete e.endpoint,t({...e,path:o})}},9887:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){const t=(e,r)=>{const{headers:n={}}=e;for(const o in n)if("x-wp-nonce"===o.toLowerCase()&&n[o]===t.nonce)return r(e);return r({...e,headers:{...n,"X-WP-Nonce":t.nonce}})};return t.nonce=e,t}},6016:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(5934);function o(e,t){return Promise.resolve(t?e.body:new window.Response(JSON.stringify(e.body),{status:200,statusText:"OK",headers:e.headers}))}t.default=function(e){const t=Object.fromEntries(Object.entries(e).map((e=>{let[t,r]=e;return[(0,n.normalizePath)(t),r]})));return(e,r)=>{const{parse:u=!0}=e;let i=e.path;if(!i&&e.url){const{rest_route:t,...r}=(0,n.getQueryArgs)(e.url);"string"==typeof t&&(i=(0,n.addQueryArgs)(t,r))}if("string"!=typeof i)return r(e);const s=e.method||"GET",a=(0,n.normalizePath)(i);if("GET"===s&&t[a]){const e=t[a];return delete t[a],o(e,!!u)}if("OPTIONS"===s&&t[s]&&t[s][a]){const e=t[s][a];return delete t[s][a],o(e,!!u)}return r(e)}}},1377:function(e,t,r){"use strict";var n=r(5318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(5865));t.default=e=>(t,r)=>(0,o.default)(t,(t=>{let n,o=t.url,u=t.path;return"string"==typeof u&&(n=e,-1!==e.indexOf("?")&&(u=u.replace("?","&")),u=u.replace(/^\//,""),"string"==typeof n&&-1!==n.indexOf("?")&&(u=u.replace("?","&")),o=n+u),r({...t,url:o})}))},5637:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(5934);t.default=(e,t)=>("string"!=typeof e.url||(0,n.hasQueryArg)(e.url,"_locale")||(e.url=(0,n.addQueryArgs)(e.url,{_locale:"user"})),"string"!=typeof e.path||(0,n.hasQueryArg)(e.path,"_locale")||(e.path=(0,n.addQueryArgs)(e.path,{_locale:"user"})),t(e))},5028:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAndThrowError=i,t.parseResponseAndNormalizeError=void 0;var n=r(5736);const o=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t?204===e.status?null:e.json?e.json():Promise.reject(e):e},u=e=>{const t={code:"invalid_json",message:(0,n.__)("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch((()=>{throw t}))};function i(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t)throw e;return u(e).then((e=>{const t={code:"unknown_error",message:(0,n.__)("An unknown error occurred.")};throw e||t}))}t.parseResponseAndNormalizeError=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Promise.resolve(o(e,t)).catch((e=>i(e,t)))}},5934:function(e,t,r){"use strict";function n(e){try{return new URL(e),!0}catch{return!1}}r.r(t),r.d(t,{addQueryArgs:function(){return w},buildQueryString:function(){return p},cleanForSlug:function(){return S},filterURLForDisplay:function(){return T},getAuthority:function(){return a},getFilename:function(){return E},getFragment:function(){return m},getPath:function(){return l},getPathAndQueryString:function(){return g},getProtocol:function(){return i},getQueryArg:function(){return _},getQueryArgs:function(){return v},getQueryString:function(){return f},hasQueryArg:function(){return b},isEmail:function(){return u},isURL:function(){return n},isValidAuthority:function(){return c},isValidFragment:function(){return y},isValidPath:function(){return d},isValidProtocol:function(){return s},isValidQueryString:function(){return h},normalizePath:function(){return R},prependHTTP:function(){return P},removeQueryArgs:function(){return j},safeDecodeURI:function(){return A},safeDecodeURIComponent:function(){return x}});const o=/^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i;function u(e){return o.test(e)}function i(e){const t=/^([^\s:]+:)/.exec(e);if(t)return t[1]}function s(e){return!!e&&/^[a-z\-.\+]+[0-9]*:$/i.test(e)}function a(e){const t=/^[^\/\s:]+:(?:\/\/)?\/?([^\/\s#?]+)[\/#?]{0,1}\S*$/.exec(e);if(t)return t[1]}function c(e){return!!e&&/^[^\s#?]+$/.test(e)}function l(e){const t=/^[^\/\s:]+:(?:\/\/)?[^\/\s#?]+[\/]([^\s#?]+)[#?]{0,1}\S*$/.exec(e);if(t)return t[1]}function d(e){return!!e&&/^[^\s#?]+$/.test(e)}function f(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch(e){}if(t)return t}function p(e){let t="";const r=Object.entries(e);let n;for(;n=r.shift();){let[e,o]=n;if(Array.isArray(o)||o&&o.constructor===Object){const t=Object.entries(o).reverse();for(const[n,o]of t)r.unshift([`${e}[${n}]`,o])}else void 0!==o&&(null===o&&(o=""),t+="&"+[e,o].map(encodeURIComponent).join("="))}return t.substr(1)}function h(e){return!!e&&/^[^\s#?\/]+$/.test(e)}function g(e){const t=l(e),r=f(e);let n="/";return t&&(n+=t),r&&(n+=`?${r}`),n}function m(e){const t=/^\S+?(#[^\s\?]*)/.exec(e);if(t)return t[1]}function y(e){return!!e&&/^#[^\s#?\/]*$/.test(e)}function v(e){return(f(e)||"").replace(/\+/g,"%20").split("&").reduce(((e,t)=>{const[r,n=""]=t.split("=").filter(Boolean).map(decodeURIComponent);return r&&function(e,t,r){const n=t.length,o=n-1;for(let u=0;u<n;u++){let n=t[u];!n&&Array.isArray(e)&&(n=e.length.toString()),n=["__proto__","constructor","prototype"].includes(n)?n.toUpperCase():n;const i=!isNaN(Number(t[u+1]));e[n]=u===o?r:e[n]||(i?[]:{}),Array.isArray(e[n])&&!i&&(e[n]={...e[n]}),e=e[n]}}(e,r.replace(/\]/g,"").split("["),n),e}),Object.create(null))}function w(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(!t||!Object.keys(t).length)return e;let r=e;const n=e.indexOf("?");return-1!==n&&(t=Object.assign(v(e),t),r=r.substr(0,n)),r+"?"+p(t)}function _(e,t){return v(e)[t]}function b(e,t){return void 0!==_(e,t)}function j(e){const t=e.indexOf("?");if(-1===t)return e;const r=v(e),n=e.substr(0,t);for(var o=arguments.length,u=new Array(o>1?o-1:0),i=1;i<o;i++)u[i-1]=arguments[i];u.forEach((e=>delete r[e]));const s=p(r);return s?n+"?"+s:n}const O=/^(?:[a-z]+:|#|\?|\.|\/)/i;function P(e){return e?(e=e.trim(),O.test(e)||u(e)?e:"http://"+e):e}function A(e){try{return decodeURI(e)}catch(t){return e}}function x(e){try{return decodeURIComponent(e)}catch(t){return e}}function T(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=e.replace(/^(?:https?:)\/\/(?:www\.)?/,"");r.match(/^[^\/]+\/$/)&&(r=r.replace("/",""));const n=/([\w|:])*\.(?:jpg|jpeg|gif|png|svg)/;if(!t||r.length<=t||!r.match(n))return r;r=r.split("?")[0];const o=r.split("/"),u=o[o.length-1];if(u.length<=t)return"…"+r.slice(-t);const i=u.lastIndexOf("."),[s,a]=[u.slice(0,i),u.slice(i+1)],c=s.slice(-3)+"."+a;return u.slice(0,t-c.length-1)+"…"+c}var M=window.lodash;function S(e){return e?(0,M.trim)((0,M.deburr)(e).replace(/[\s\./]+/g,"-").replace(/[^\p{L}\p{N}_-]+/gu,"").toLowerCase(),"-"):""}function E(e){let t;try{t=new URL(e,"http://example.com").pathname.split("/").pop()}catch(e){}if(t)return t}function R(e){const t=e.split("?"),r=t[1],n=t[0];return r?n+"?"+r.split("&").map((e=>e.split("="))).map((e=>e.map(decodeURIComponent))).sort(((e,t)=>e[0].localeCompare(t[0]))).map((e=>e.map(encodeURIComponent))).map((e=>e.join("="))).join("&"):n}},5736:function(e){"use strict";e.exports=window.wp.i18n}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var u=t[n]={exports:{}};return e[n](u,u.exports,r),u.exports}r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e=r(2459);r.g.wp=r.g.wp||{},r.g.wp.apiFetch=e.default}()}();

Spamworldpro Mini