!function(){"use strict";vare={d:function(r,t){for(varnint)e.o(t,n)&&!e.o(r,n)&&Object.defineProperty(r,n,{enumerable:!0,get:t[n]})},o:function(e,r){returnObject.prototype.hasOwnProperty.call(e,r)}},r={};e.d(r,{default:function(){returnT}});vart=window.wp.i18n;varn=function(e){constr=(e,t)=>{const{headers:n={}}=e;for(constoinn)if("x-wp-nonce"===o.toLowerCase()&&n[o]===r.nonce)returnt(e);returnt({...e,headers:{...n,"X-WP-Nonce":r.nonce}})};returnr.nonce=e,r};varo=(e,r)=>{lett,n,o=e.path;return"string"==typeofe.namespace&&"string"==typeofe.endpoint&&(t=e.namespace.replace(/^\/|\/$/g,""),n=e.endpoint.replace(/^\//,""),o=n?t+"/"+n:t),deletee.namespace,deletee.endpoint,r({...e,path:o})};vara=e=>(r,t)=>o(r,(r=>{letn,o=r.url,a=r.path;return"string"==typeofa&&(n=e,-1!==e.indexOf("?")&&(a=a.replace("?","&")),a=a.replace(/^\//,""),"string"==typeofn&&-1!==n.indexOf("?")&&(a=a.replace("?","&")),o=n+a),t({...r,url:o})})),s=window.wp.url;functioni(e,r){returnPromise.resolve(r?e.body:newwindow.Response(JSON.stringify(e.body),{status:200,statusText:"OK",headers:e.headers}))}varc=function(e){constr=Object.fromEntries(Object.entries(e).map((([e,r])=>[(0,s.normalizePath)(e),r])));return(e,t)=>{const{parse:n=!0}=e;leto=e.path;if(!o&&e.url){const{rest_route:r,...t}=(0,s.getQueryArgs)(e.url);"string"==typeofr&&(o=(0,s.addQueryArgs)(r,t))}if("string"!=typeofo)returnt(e);consta=e.method||"GET",c=(0,s.normalizePath)(o);if("GET"===a&&r[c]){conste=r[c];returndeleter[c],i(e,!!n)}if("OPTIONS"===a&&r[a]&&r[a][c]){conste=r[a][c];returndeleter[a][c],i(e,!!n)}returnt(e)}};constp=({path:e,url:r,...t},n)=>({...t,url:r&&(0,s.addQueryArgs)(r,n),path:e&&(0,s.addQueryArgs)(e,n)}),d=e=>e.json?e.json():Promise.reject(e),u=e=>{const{next:r}=(e=>{if(!e)return{};constr=e.match(/<([^>]+)>; rel="next"/);returnr?{next:r[1]}:{}})(e.headers.get("link"));returnr};varh=async(e,r)=>{if(!1===e.parse)returnr(e);if(!(e=>{constr=!!e.path&&-1!==e.path.indexOf("per_page=-1"),t=!!e.url&&-1!==e.url.indexOf("per_page=-1");returnr||t})(e))returnr(e);constt=awaitT({...p(e,{per_page:100}),parse:!1}),n=awaitd(t);if(!Array.isArray(n))returnn;leto=u(t);if(!o)returnn;leta=[].concat(n);for(;o;){constr=awaitT({...e,path:void0,url:o,parse:!1}),t=awaitd(r);a=a.concat(t),o=u(r)}returna};constl=newSet(["PATCH","PUT","DELETE"]),f="GET";constw=(e,r=!0)=>Promise.resolve(((e,r=!0)=>r?204===e.status?null:e.json?e.json():Promise.reject(e):e)(e,r)).catch((e=>m(e,r)));functionm(e,r=!0){if(!r)throwe;return(e=>{constr={code:"invalid_json",message:(0,t.__)("The response is not a valid JSON response.")};if(!e||!e.json)throwr;returne.json().catch((()=>{throwr}))})(e).then((e=>{constr={code:"unknown_error",message:(0,t.__)("An unknown error occurred.")};throwe||r}))}varg=(e,r)=>{if(!function(e){constr=!!e.method&&"POST"===e.method;return(!!e.path&&-1!==e.path.indexOf("/wp/v2/media")||!!e.url&&-1!==e.url.indexOf("/wp/v2/media"))&&r}(e))returnr(e);letn=0;consto=e=>(n++,r({path:`/wp/v2/media/${e}/post-process`,method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch((()=>n<5?o(e):(r({path:`/wp/v2/media/${e}?force=true`,method:"DELETE"}),Promise.reject()))));returnr({...e,parse:!1}).catch((r=>{constn=r.headers.get("x-wp-upload-attachment-id");returnr.status>=500&&r.status<600&&n?o(n).catch((()=>!1!==e.parse?Promise.reject({code:"post_process",message:(0,t.__)("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(r))):m(r,e.parse)})).then((r=>w(r,e.parse)))};vary=e=>(r,t)=>{if("string"==typeofr.url){constt=(0,s.getQueryArg)(r.url,"wp_theme_preview");void0===t?r.url=(0,s.addQueryArgs)(r.url,{wp_theme_preview:e}):""===t&&(r.url=(0,s.removeQueryArgs)(r.url,"wp_theme_preview"))}if("string"==typeofr.path){constt=(0,s.getQueryArg)(r.path,"wp_theme_preview");void0===t?r.path=(0,s.addQueryArgs)(r.path,{wp_theme_preview:e}):""===t&&(r.path=(0,s.removeQueryArgs)(r.path,"wp_theme_preview"))}returnt(r)};const_={Accept:"application/json, */*;q=0.1"},v={credentials