sass-template-common 0.0.99 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -18,7 +18,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
|
18
18
|
src: url("${e.fontS3Url}") format('woff2');
|
|
19
19
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
20
20
|
}
|
|
21
|
-
`;return t.jsx(t.Fragment,{children:e.useS3Font?t.jsxs(t.Fragment,{children:[t.jsx("link",{rel:"preload",as:"font",href:e.fontS3Url,type:"font/woff2",crossOrigin:"anonymous"}),t.jsx("style",{dangerouslySetInnerHTML:{__html:n}})]}):t.jsx("link",{rel:"stylesheet",href:`https://fonts.googleapis.com/css2?${e.googleFontFamily}&display=swap`})})},Bn={404:()=>{},home:()=>({"[author_replace]":"","[section_replace]":"home","[tag_replace]":"","[url_replace]":""}),slug:e=>({"[author_replace]":"","[section_replace]":e.pathname==="/index.html"?"home":e.slug??"","[tag_replace]":"","[url_replace]":""}),news:e=>({"[author_replace]":e.currentNew?.authors[0]?.name??"","[section_replace]":e.currentNew?.info?.section?.slug??"","[tag_replace]":In(e.currentNew?.keywords),"[url_replace]":Ia(e.internalPath??"")}),seccion:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/"+e.config?.paths.seccion+"/")[1]??"","[tag_replace]":"","[url_replace]":""}),tema:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/"+e.config?.paths.tema+"/")[1]??"","[tag_replace]":"","[url_replace]":""}),"ultimas-noticias":e=>({"[author_replace]":"","[section_replace]":e.config?.paths["ultimas-noticias"]??"","[tag_replace]":"","[url_replace]":""}),video:e=>({"[author_replace]":"","[section_replace]":e.slug,"[tag_replace]":"","[url_replace]":""}),videos:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/videos/")[1]??"","[tag_replace]":"","[url_replace]":""}),pages:e=>({"[author_replace]":"","[section_replace]":e.slug??"","[tag_replace]":"","[url_replace]":""}),contacto:e=>({"[author_replace]":"","[section_replace]":e.config?.paths.contacto??"contacto","[tag_replace]":"","[url_replace]":""}),anuncia:e=>({"[author_replace]":"","[section_replace]":e.config?.paths.anuncia??"anuncia","[tag_replace]":"","[url_replace]":""}),buscar:e=>({"[author_replace]":"","[section_replace]":e.config?.paths.buscar??"","[tag_replace]":"","[url_replace]":""}),autor:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/"+e.config?.paths.autor+"/")[1]??"","[tag_replace]":"","[url_replace]":""})},za=e=>{if(e.search("/page/")===-1)return e.replace("/","");const n=e.split("/"),a=n.indexOf("page")-1;return a<0?e:(n[a]??"").replace("/","")},Ha={404:()=>"404",home:()=>"home",slug:e=>e.pathname.replace("/",""),news:e=>Ea(e.pathname)?.slug,seccion:e=>e.pathname.split("/seccion/")[1]??"",tema:e=>e.pathname.split("/tema/")[1]??"",pages:e=>e.pathname.split("/pages/")[1]??"",buscar:e=>e.pathname.split("/buscar/")[1]??"","ultimas-noticias":e=>e.pathname.replace("/",""),anuncia:()=>"anuncia",contacto:()=>"contacto",autor:e=>e.pathname.split("/autor/")[1]??"",video:e=>e.pathname.split("/video/")[1]??"",videos:e=>e.pathname.split("/videos/")[1]??""},Ct=e=>{const n=e.split("/"),a=n[n.length-1]??"1";return Number(a)>0?Number(a):1},wr=(e,n=2)=>{if(!e||e.length===0)return[];const a=[];for(let s=0;s<n;s++){if(!e[s])continue;const o=e[s].preview.sizes;o.length>1?a.push({href:o[0]?.url??"",media:"(min-width: 900px)"},{href:o[1]?.url??"",media:"(max-width: 900px)"}):a.push({href:o[0]?.url??""})}return a};class yr{exclude="keywords,gallery,related,relatedexternal,external,customfields";config={};imgSizes={};axiosApi=void 0;constructor(n,a,s){this.config=n,this.imgSizes=a,this.axiosApi=s}async getNewsListZone(n){if(this.axiosApi)return this.axiosApi.get("/news-list-zone",{params:n}).catch(a=>(console.log(`[/news-list-zone] Error: ${a.message}`),console.log(a),Promise.reject(a)))}async getOutstandingBlock(n){if(this.axiosApi)return this.axiosApi.get("/config/blocks",{params:{...n,path:this.config.servicePrefix+"/.config/columna_derecha.html"}}).catch(a=>(console.log(`[/config/blocks] Error: ${a.message}`),console.log(a),Promise.reject(a)))}getNewsListZoneWrapper(n,a,s){return this.getNewsListZone({zone:"destacadas",size:a,onmainpage:n?"section":void 0,section:n,newstype:this.config.newsType,exclude:this.exclude,imagesizes:s})}async getNewsDestacadoDiario(n){const[a,s]=await Promise.all([await this.getNewsListZoneWrapper(n,1,`${this.imgSizes.xl}${this.imgSizes.lg}`),await this.getNewsListZoneWrapper(n,5)]);return!a?.data?.data||!s?.data?.data?[]:(a.data.data=[...a.data.data,...s.data.data.slice(1)],a)}async getNewsDestacadoDiarioImage(n){const[a,s]=await Promise.all([await this.getNewsListZoneWrapper(n,1,"w:801,h:449,t:2;w:410,h:590,t:2;"),await this.getNewsListZoneWrapper(n,5,"w:180,h:180,t:2;")]);return!a?.data?.data||!s?.data?.data?[]:(a.data.data=[...a.data.data,...s.data.data.slice(1)],a)}async getNewsAltoImpacto(n){return await this.getNewsListZoneWrapper(n,1,"w:1185,h:613,t:2;w:380,h:548,t:2;")}async getNewsDestacadoVertical(n){const[a,s]=await Promise.all([await this.getNewsListZoneWrapper(n,1,`w:590,h:512,t:2;${this.imgSizes.lg}`),await this.getNewsListZoneWrapper(n,3,`${this.imgSizes.lg}w:290,h:512,t:2;`)]);return!a?.data?.data||!s?.data?.data?[]:(a.data.data=[...a.data.data,...s.data.data.slice(1)],a)}async getNewsDestacadoHorizontal(n){const[a,s]=await Promise.all([await this.getNewsListZoneWrapper(n,1,`w:843,h:512,t:2;${this.imgSizes.lg}`),await this.getNewsListZoneWrapper(n,3,"w:437,h:256,t:2;")]);return!a?.data?.data||!s?.data?.data?[]:(a.data.data=[...a.data.data,...s.data.data.slice(1)],a)}GetByOptions={Diario:n=>this.getNewsDestacadoDiario(n),"Diario con imagen":n=>this.getNewsDestacadoDiarioImage(n),Super:n=>this.getNewsAltoImpacto(n),"3 notas verticales":n=>this.getNewsDestacadoVertical(n),"3 notas horizontales":n=>this.getNewsDestacadoHorizontal(n)};async getMainBlockData(n,a){const o=(await this.getOutstandingBlock(n))?.data.data[0]?.value||"";if(!o)return{section:"",news:[]};const r=await this.GetByOptions[o](a);return{section:o,news:r.data}}}function Fa(e,n){return function(){return e.apply(n,arguments)}}const{toString:Cr}=Object.prototype,{getPrototypeOf:Ln}=Object,{iterator:Kt,toStringTag:Va}=Symbol,Jt=(e=>n=>{const a=Cr.call(n);return e[a]||(e[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),be=e=>(e=e.toLowerCase(),n=>Jt(n)===e),Zt=e=>n=>typeof n===e,{isArray:nt}=Array,at=Zt("undefined");function bt(e){return e!==null&&!at(e)&&e.constructor!==null&&!at(e.constructor)&&le(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Wa=be("ArrayBuffer");function br(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&Wa(e.buffer),n}const vr=Zt("string"),le=Zt("function"),Ya=Zt("number"),vt=e=>e!==null&&typeof e=="object",_r=e=>e===!0||e===!1,Xt=e=>{if(Jt(e)!=="object")return!1;const n=Ln(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Va in e)&&!(Kt in e)},Nr=e=>{if(!vt(e)||bt(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Sr=be("Date"),kr=be("File"),Er=be("Blob"),Ir=be("FileList"),Ur=e=>vt(e)&&le(e.pipe),Tr=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||le(e.append)&&((n=Jt(e))==="formdata"||n==="object"&&le(e.toString)&&e.toString()==="[object FormData]"))},xr=be("URLSearchParams"),[qr,Br,Lr,Dr]=["ReadableStream","Request","Response","Headers"].map(be),Mr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _t(e,n,{allOwnKeys:a=!1}={}){if(e===null||typeof e>"u")return;let s,o;if(typeof e!="object"&&(e=[e]),nt(e))for(s=0,o=e.length;s<o;s++)n.call(null,e[s],s,e);else{if(bt(e))return;const r=a?Object.getOwnPropertyNames(e):Object.keys(e),i=r.length;let l;for(s=0;s<i;s++)l=r[s],n.call(null,e[l],l,e)}}function Ka(e,n){if(bt(e))return null;n=n.toLowerCase();const a=Object.keys(e);let s=a.length,o;for(;s-- >0;)if(o=a[s],n===o.toLowerCase())return o;return null}const We=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ja=e=>!at(e)&&e!==We;function Dn(){const{caseless:e,skipUndefined:n}=Ja(this)&&this||{},a={},s=(o,r)=>{const i=e&&Ka(a,r)||r;Xt(a[i])&&Xt(o)?a[i]=Dn(a[i],o):Xt(o)?a[i]=Dn({},o):nt(o)?a[i]=o.slice():(!n||!at(o))&&(a[i]=o)};for(let o=0,r=arguments.length;o<r;o++)arguments[o]&&_t(arguments[o],s);return a}const Pr=(e,n,a,{allOwnKeys:s}={})=>(_t(n,(o,r)=>{a&&le(o)?e[r]=Fa(o,a):e[r]=o},{allOwnKeys:s}),e),Or=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),jr=(e,n,a,s)=>{e.prototype=Object.create(n.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),a&&Object.assign(e.prototype,a)},Qr=(e,n,a,s)=>{let o,r,i;const l={};if(n=n||{},e==null)return n;do{for(o=Object.getOwnPropertyNames(e),r=o.length;r-- >0;)i=o[r],(!s||s(i,e,n))&&!l[i]&&(n[i]=e[i],l[i]=!0);e=a!==!1&&Ln(e)}while(e&&(!a||a(e,n))&&e!==Object.prototype);return n},Gr=(e,n,a)=>{e=String(e),(a===void 0||a>e.length)&&(a=e.length),a-=n.length;const s=e.indexOf(n,a);return s!==-1&&s===a},$r=e=>{if(!e)return null;if(nt(e))return e;let n=e.length;if(!Ya(n))return null;const a=new Array(n);for(;n-- >0;)a[n]=e[n];return a},zr=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&Ln(Uint8Array)),Hr=(e,n)=>{const s=(e&&e[Kt]).call(e);let o;for(;(o=s.next())&&!o.done;){const r=o.value;n.call(e,r[0],r[1])}},Fr=(e,n)=>{let a;const s=[];for(;(a=e.exec(n))!==null;)s.push(a);return s},Vr=be("HTMLFormElement"),Wr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,s,o){return s.toUpperCase()+o}),Za=(({hasOwnProperty:e})=>(n,a)=>e.call(n,a))(Object.prototype),Yr=be("RegExp"),Xa=(e,n)=>{const a=Object.getOwnPropertyDescriptors(e),s={};_t(a,(o,r)=>{let i;(i=n(o,r,e))!==!1&&(s[r]=i||o)}),Object.defineProperties(e,s)},Kr=e=>{Xa(e,(n,a)=>{if(le(e)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const s=e[a];if(le(s)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},Jr=(e,n)=>{const a={},s=o=>{o.forEach(r=>{a[r]=!0})};return nt(e)?s(e):s(String(e).split(n)),a},Zr=()=>{},Xr=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n;function Rr(e){return!!(e&&le(e.append)&&e[Va]==="FormData"&&e[Kt])}const ei=e=>{const n=new Array(10),a=(s,o)=>{if(vt(s)){if(n.indexOf(s)>=0)return;if(bt(s))return s;if(!("toJSON"in s)){n[o]=s;const r=nt(s)?[]:{};return _t(s,(i,l)=>{const c=a(i,o+1);!at(c)&&(r[l]=c)}),n[o]=void 0,r}}return s};return a(e,0)},ti=be("AsyncFunction"),ni=e=>e&&(vt(e)||le(e))&&le(e.then)&&le(e.catch),Ra=((e,n)=>e?setImmediate:n?((a,s)=>(We.addEventListener("message",({source:o,data:r})=>{o===We&&r===a&&s.length&&s.shift()()},!1),o=>{s.push(o),We.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",le(We.postMessage)),ai=typeof queueMicrotask<"u"?queueMicrotask.bind(We):typeof process<"u"&&process.nextTick||Ra,A={isArray:nt,isArrayBuffer:Wa,isBuffer:bt,isFormData:Tr,isArrayBufferView:br,isString:vr,isNumber:Ya,isBoolean:_r,isObject:vt,isPlainObject:Xt,isEmptyObject:Nr,isReadableStream:qr,isRequest:Br,isResponse:Lr,isHeaders:Dr,isUndefined:at,isDate:Sr,isFile:kr,isBlob:Er,isRegExp:Yr,isFunction:le,isStream:Ur,isURLSearchParams:xr,isTypedArray:zr,isFileList:Ir,forEach:_t,merge:Dn,extend:Pr,trim:Mr,stripBOM:Or,inherits:jr,toFlatObject:Qr,kindOf:Jt,kindOfTest:be,endsWith:Gr,toArray:$r,forEachEntry:Hr,matchAll:Fr,isHTMLForm:Vr,hasOwnProperty:Za,hasOwnProp:Za,reduceDescriptors:Xa,freezeMethods:Kr,toObjectSet:Jr,toCamelCase:Wr,noop:Zr,toFiniteNumber:Xr,findKey:Ka,global:We,isContextDefined:Ja,isSpecCompliantForm:Rr,toJSONObject:ei,isAsyncFn:ti,isThenable:ni,setImmediate:Ra,asap:ai,isIterable:e=>e!=null&&le(e[Kt])};function Q(e,n,a,s,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),a&&(this.config=a),s&&(this.request=s),o&&(this.response=o,this.status=o.status?o.status:null)}A.inherits(Q,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:A.toJSONObject(this.config),code:this.code,status:this.status}}});const es=Q.prototype,ts={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ts[e]={value:e}}),Object.defineProperties(Q,ts),Object.defineProperty(es,"isAxiosError",{value:!0}),Q.from=(e,n,a,s,o,r)=>{const i=Object.create(es);A.toFlatObject(e,i,function(d){return d!==Error.prototype},h=>h!=="isAxiosError");const l=e&&e.message?e.message:"Error",c=n==null&&e?e.code:n;return Q.call(i,l,c,a,s,o),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",r&&Object.assign(i,r),i};const si=null;function Mn(e){return A.isPlainObject(e)||A.isArray(e)}function ns(e){return A.endsWith(e,"[]")?e.slice(0,-2):e}function as(e,n,a){return e?e.concat(n).map(function(o,r){return o=ns(o),!a&&r?"["+o+"]":o}).join(a?".":""):n}function oi(e){return A.isArray(e)&&!e.some(Mn)}const ri=A.toFlatObject(A,{},null,function(n){return/^is[A-Z]/.test(n)});function Rt(e,n,a){if(!A.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,a=A.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,y){return!A.isUndefined(y[g])});const s=a.metaTokens,o=a.visitor||d,r=a.dots,i=a.indexes,c=(a.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(n);if(!A.isFunction(o))throw new TypeError("visitor must be a function");function h(f){if(f===null)return"";if(A.isDate(f))return f.toISOString();if(A.isBoolean(f))return f.toString();if(!c&&A.isBlob(f))throw new Q("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(f)||A.isTypedArray(f)?c&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function d(f,g,y){let b=f;if(f&&!y&&typeof f=="object"){if(A.endsWith(g,"{}"))g=s?g:g.slice(0,-2),f=JSON.stringify(f);else if(A.isArray(f)&&oi(f)||(A.isFileList(f)||A.endsWith(g,"[]"))&&(b=A.toArray(f)))return g=ns(g),b.forEach(function(S,M){!(A.isUndefined(S)||S===null)&&n.append(i===!0?as([g],M,r):i===null?g:g+"[]",h(S))}),!1}return Mn(f)?!0:(n.append(as(y,g,r),h(f)),!1)}const u=[],m=Object.assign(ri,{defaultVisitor:d,convertValue:h,isVisitable:Mn});function w(f,g){if(!A.isUndefined(f)){if(u.indexOf(f)!==-1)throw Error("Circular reference detected in "+g.join("."));u.push(f),A.forEach(f,function(b,U){(!(A.isUndefined(b)||b===null)&&o.call(n,b,A.isString(U)?U.trim():U,g,m))===!0&&w(b,g?g.concat(U):[U])}),u.pop()}}if(!A.isObject(e))throw new TypeError("data must be an object");return w(e),n}function ss(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return n[s]})}function Pn(e,n){this._pairs=[],e&&Rt(e,this,n)}const os=Pn.prototype;os.append=function(n,a){this._pairs.push([n,a])},os.toString=function(n){const a=n?function(s){return n.call(this,s,ss)}:ss;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function ii(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rs(e,n,a){if(!n)return e;const s=a&&a.encode||ii;A.isFunction(a)&&(a={serialize:a});const o=a&&a.serialize;let r;if(o?r=o(n,a):r=A.isURLSearchParams(n)?n.toString():new Pn(n,a).toString(s),r){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class is{constructor(){this.handlers=[]}use(n,a,s){return this.handlers.push({fulfilled:n,rejected:a,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){A.forEach(this.handlers,function(s){s!==null&&n(s)})}}const ls={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},li={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Pn,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},On=typeof window<"u"&&typeof document<"u",jn=typeof navigator=="object"&&navigator||void 0,ci=On&&(!jn||["ReactNative","NativeScript","NS"].indexOf(jn.product)<0),di=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",hi=On&&window.location.href||"http://localhost",oe={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:On,hasStandardBrowserEnv:ci,hasStandardBrowserWebWorkerEnv:di,navigator:jn,origin:hi},Symbol.toStringTag,{value:"Module"})),...li};function ui(e,n){return Rt(e,new oe.classes.URLSearchParams,{visitor:function(a,s,o,r){return oe.isNode&&A.isBuffer(a)?(this.append(s,a.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...n})}function mi(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function fi(e){const n={},a=Object.keys(e);let s;const o=a.length;let r;for(s=0;s<o;s++)r=a[s],n[r]=e[r];return n}function cs(e){function n(a,s,o,r){let i=a[r++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),c=r>=a.length;return i=!i&&A.isArray(o)?o.length:i,c?(A.hasOwnProp(o,i)?o[i]=[o[i],s]:o[i]=s,!l):((!o[i]||!A.isObject(o[i]))&&(o[i]=[]),n(a,s,o[i],r)&&A.isArray(o[i])&&(o[i]=fi(o[i])),!l)}if(A.isFormData(e)&&A.isFunction(e.entries)){const a={};return A.forEachEntry(e,(s,o)=>{n(mi(s),o,a,0)}),a}return null}function gi(e,n,a){if(A.isString(e))try{return(n||JSON.parse)(e),A.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(a||JSON.stringify)(e)}const Nt={transitional:ls,adapter:["xhr","http","fetch"],transformRequest:[function(n,a){const s=a.getContentType()||"",o=s.indexOf("application/json")>-1,r=A.isObject(n);if(r&&A.isHTMLForm(n)&&(n=new FormData(n)),A.isFormData(n))return o?JSON.stringify(cs(n)):n;if(A.isArrayBuffer(n)||A.isBuffer(n)||A.isStream(n)||A.isFile(n)||A.isBlob(n)||A.isReadableStream(n))return n;if(A.isArrayBufferView(n))return n.buffer;if(A.isURLSearchParams(n))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let l;if(r){if(s.indexOf("application/x-www-form-urlencoded")>-1)return ui(n,this.formSerializer).toString();if((l=A.isFileList(n))||s.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Rt(l?{"files[]":n}:n,c&&new c,this.formSerializer)}}return r||o?(a.setContentType("application/json",!1),gi(n)):n}],transformResponse:[function(n){const a=this.transitional||Nt.transitional,s=a&&a.forcedJSONParsing,o=this.responseType==="json";if(A.isResponse(n)||A.isReadableStream(n))return n;if(n&&A.isString(n)&&(s&&!this.responseType||o)){const i=!(a&&a.silentJSONParsing)&&o;try{return JSON.parse(n,this.parseReviver)}catch(l){if(i)throw l.name==="SyntaxError"?Q.from(l,Q.ERR_BAD_RESPONSE,this,null,this.response):l}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:oe.classes.FormData,Blob:oe.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],e=>{Nt.headers[e]={}});const pi=A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ai=e=>{const n={};let a,s,o;return e&&e.split(`
|
|
21
|
+
`;return t.jsx(t.Fragment,{children:e.useS3Font?t.jsxs(t.Fragment,{children:[t.jsx("link",{rel:"preload",as:"font",href:e.fontS3Url,type:"font/woff2",crossOrigin:"anonymous"}),t.jsx("style",{dangerouslySetInnerHTML:{__html:n}})]}):t.jsx("link",{rel:"stylesheet",href:`https://fonts.googleapis.com/css2?${e.googleFontFamily}&display=swap`})})},Bn={404:()=>{},home:()=>({"[author_replace]":"","[section_replace]":"home","[tag_replace]":"","[url_replace]":""}),slug:e=>({"[author_replace]":"","[section_replace]":e.pathname==="/index.html"?"home":e.slug??"","[tag_replace]":"","[url_replace]":""}),news:e=>({"[author_replace]":e.currentNew?.authors[0]?.name??"","[section_replace]":e.currentNew?.info?.section?.slug??"","[tag_replace]":In(e.currentNew?.keywords),"[url_replace]":Ia(e.internalPath??"")}),seccion:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/"+e.config?.paths.seccion+"/")[1]??"","[tag_replace]":"","[url_replace]":""}),tema:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/"+e.config?.paths.tema+"/")[1]??"","[tag_replace]":"","[url_replace]":""}),"ultimas-noticias":e=>({"[author_replace]":"","[section_replace]":e.config?.paths["ultimas-noticias"]??"","[tag_replace]":"","[url_replace]":""}),video:e=>({"[author_replace]":"","[section_replace]":e.slug,"[tag_replace]":"","[url_replace]":""}),videos:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/videos/")[1]??"","[tag_replace]":"","[url_replace]":""}),pages:e=>({"[author_replace]":"","[section_replace]":e.slug??"","[tag_replace]":"","[url_replace]":""}),contacto:e=>({"[author_replace]":"","[section_replace]":e.config?.paths.contacto??"contacto","[tag_replace]":"","[url_replace]":""}),anuncia:e=>({"[author_replace]":"","[section_replace]":e.config?.paths.anuncia??"anuncia","[tag_replace]":"","[url_replace]":""}),buscar:e=>({"[author_replace]":"","[section_replace]":e.config?.paths.buscar??"","[tag_replace]":"","[url_replace]":""}),autor:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/"+e.config?.paths.autor+"/")[1]??"","[tag_replace]":"","[url_replace]":""})},za=e=>{if(e.search("/page/")===-1)return e.replace("/","");const n=e.split("/"),a=n.indexOf("page")-1;return a<0?e:(n[a]??"").replace("/","")},Ha={404:()=>"404",home:()=>"home",slug:e=>e.pathname.replace("/",""),news:e=>Ea(e.pathname)?.slug,seccion:e=>e.pathname.split("/seccion/")[1]??"",tema:e=>e.pathname.split("/tema/")[1]??"",pages:e=>e.pathname.split("/pages/")[1]??"",buscar:e=>e.pathname.split("/buscar/")[1]??"","ultimas-noticias":e=>e.pathname.replace("/",""),anuncia:()=>"anuncia",contacto:()=>"contacto",autor:e=>e.pathname.split("/autor/")[1]??"",video:e=>e.pathname.split("/video/")[1]??"",videos:e=>e.pathname.split("/videos/")[1]??""},Ct=e=>{const n=e.split("/"),a=n[n.length-1]??"1";return Number(a)>0?Number(a):1},wr=(e,n=2)=>{if(!e||e.length===0)return[];const a=[];for(let s=0;s<n;s++){if(!e[s])continue;const o=e[s].preview.sizes;o.length>1?a.push({href:o[0]?.url??"",media:"(min-width: 900px)"},{href:o[1]?.url??"",media:"(max-width: 900px)"}):a.push({href:o[0]?.url??""})}return a};class yr{exclude="keywords,gallery,related,relatedexternal,external,customfields";config={};imgSizes={};axiosApi=void 0;constructor(n,a,s){this.config=n,this.imgSizes=a,this.axiosApi=s}async getNewsListZone(n){if(this.axiosApi)return this.axiosApi.get("/news-list-zone",{params:n}).catch(a=>(console.log(`[/news-list-zone] Error: ${a.message}`),console.log(a),Promise.reject(a)))}async getOutstandingBlock(n){if(this.axiosApi)return this.axiosApi.get("/config/blocks",{params:{...n,path:this.config.servicePrefix+"/.config/columna_derecha.html"}}).catch(a=>(console.log(`[/config/blocks] Error: ${a.message}`),console.log(a),Promise.reject(a)))}getNewsListZoneWrapper(n,a,s){return this.getNewsListZone({zone:"destacadas",size:a,onmainpage:n?"section":void 0,section:n,newstype:this.config.newsType,exclude:this.exclude,imagesizes:s})}async getNewsDestacadoDiario(n){const[a,s]=await Promise.all([await this.getNewsListZoneWrapper(n,1,`${this.imgSizes.xl}${this.imgSizes.lg}`),await this.getNewsListZoneWrapper(n,5)]);return!a?.data?.data||!s?.data?.data?[]:(a.data.data=[...a.data.data,...s.data.data.slice(1)],a)}async getNewsDestacadoDiarioImage(n){const[a,s]=await Promise.all([await this.getNewsListZoneWrapper(n,1,"w:801,h:449,t:2;w:410,h:590,t:2;"),await this.getNewsListZoneWrapper(n,5,"w:180,h:180,t:2;")]);return!a?.data?.data||!s?.data?.data?[]:(a.data.data=[...a.data.data,...s.data.data.slice(1)],a)}async getNewsAltoImpacto(n){return await this.getNewsListZoneWrapper(n,1,"w:1185,h:613,t:2;w:380,h:548,t:2;")}async getNewsDestacadoVertical(n){const[a,s]=await Promise.all([await this.getNewsListZoneWrapper(n,1,`w:590,h:512,t:2;${this.imgSizes.lg}`),await this.getNewsListZoneWrapper(n,3,`${this.imgSizes.lg}w:290,h:512,t:2;`)]);return!a?.data?.data||!s?.data?.data?[]:(a.data.data=[...a.data.data,...s.data.data.slice(1)],a)}async getNewsDestacadoHorizontal(n){const[a,s]=await Promise.all([await this.getNewsListZoneWrapper(n,1,`w:843,h:512,t:2;${this.imgSizes.lg}`),await this.getNewsListZoneWrapper(n,3,"w:437,h:256,t:2;")]);return!a?.data?.data||!s?.data?.data?[]:(a.data.data=[...a.data.data,...s.data.data.slice(1)],a)}GetByOptions={Diario:n=>this.getNewsDestacadoDiario(n),"Diario con imagen":n=>this.getNewsDestacadoDiarioImage(n),Super:n=>this.getNewsAltoImpacto(n),"3 notas verticales":n=>this.getNewsDestacadoVertical(n),"3 notas horizontales":n=>this.getNewsDestacadoHorizontal(n)};async getMainBlockData(n,a){const o=(await this.getOutstandingBlock(n))?.data.data[0]?.value||"";if(console.log("option main block",o),!o)return{section:"",news:[]};const r=await this.GetByOptions[o](a);return{section:o,news:r.data}}}function Fa(e,n){return function(){return e.apply(n,arguments)}}const{toString:Cr}=Object.prototype,{getPrototypeOf:Ln}=Object,{iterator:Kt,toStringTag:Va}=Symbol,Jt=(e=>n=>{const a=Cr.call(n);return e[a]||(e[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),be=e=>(e=e.toLowerCase(),n=>Jt(n)===e),Zt=e=>n=>typeof n===e,{isArray:nt}=Array,at=Zt("undefined");function bt(e){return e!==null&&!at(e)&&e.constructor!==null&&!at(e.constructor)&&le(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Wa=be("ArrayBuffer");function br(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&Wa(e.buffer),n}const vr=Zt("string"),le=Zt("function"),Ya=Zt("number"),vt=e=>e!==null&&typeof e=="object",_r=e=>e===!0||e===!1,Xt=e=>{if(Jt(e)!=="object")return!1;const n=Ln(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Va in e)&&!(Kt in e)},Nr=e=>{if(!vt(e)||bt(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Sr=be("Date"),kr=be("File"),Er=be("Blob"),Ir=be("FileList"),Ur=e=>vt(e)&&le(e.pipe),Tr=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||le(e.append)&&((n=Jt(e))==="formdata"||n==="object"&&le(e.toString)&&e.toString()==="[object FormData]"))},xr=be("URLSearchParams"),[qr,Br,Lr,Dr]=["ReadableStream","Request","Response","Headers"].map(be),Mr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _t(e,n,{allOwnKeys:a=!1}={}){if(e===null||typeof e>"u")return;let s,o;if(typeof e!="object"&&(e=[e]),nt(e))for(s=0,o=e.length;s<o;s++)n.call(null,e[s],s,e);else{if(bt(e))return;const r=a?Object.getOwnPropertyNames(e):Object.keys(e),i=r.length;let l;for(s=0;s<i;s++)l=r[s],n.call(null,e[l],l,e)}}function Ka(e,n){if(bt(e))return null;n=n.toLowerCase();const a=Object.keys(e);let s=a.length,o;for(;s-- >0;)if(o=a[s],n===o.toLowerCase())return o;return null}const We=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ja=e=>!at(e)&&e!==We;function Dn(){const{caseless:e,skipUndefined:n}=Ja(this)&&this||{},a={},s=(o,r)=>{const i=e&&Ka(a,r)||r;Xt(a[i])&&Xt(o)?a[i]=Dn(a[i],o):Xt(o)?a[i]=Dn({},o):nt(o)?a[i]=o.slice():(!n||!at(o))&&(a[i]=o)};for(let o=0,r=arguments.length;o<r;o++)arguments[o]&&_t(arguments[o],s);return a}const Pr=(e,n,a,{allOwnKeys:s}={})=>(_t(n,(o,r)=>{a&&le(o)?e[r]=Fa(o,a):e[r]=o},{allOwnKeys:s}),e),Or=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),jr=(e,n,a,s)=>{e.prototype=Object.create(n.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),a&&Object.assign(e.prototype,a)},Qr=(e,n,a,s)=>{let o,r,i;const l={};if(n=n||{},e==null)return n;do{for(o=Object.getOwnPropertyNames(e),r=o.length;r-- >0;)i=o[r],(!s||s(i,e,n))&&!l[i]&&(n[i]=e[i],l[i]=!0);e=a!==!1&&Ln(e)}while(e&&(!a||a(e,n))&&e!==Object.prototype);return n},Gr=(e,n,a)=>{e=String(e),(a===void 0||a>e.length)&&(a=e.length),a-=n.length;const s=e.indexOf(n,a);return s!==-1&&s===a},$r=e=>{if(!e)return null;if(nt(e))return e;let n=e.length;if(!Ya(n))return null;const a=new Array(n);for(;n-- >0;)a[n]=e[n];return a},zr=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&Ln(Uint8Array)),Hr=(e,n)=>{const s=(e&&e[Kt]).call(e);let o;for(;(o=s.next())&&!o.done;){const r=o.value;n.call(e,r[0],r[1])}},Fr=(e,n)=>{let a;const s=[];for(;(a=e.exec(n))!==null;)s.push(a);return s},Vr=be("HTMLFormElement"),Wr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,s,o){return s.toUpperCase()+o}),Za=(({hasOwnProperty:e})=>(n,a)=>e.call(n,a))(Object.prototype),Yr=be("RegExp"),Xa=(e,n)=>{const a=Object.getOwnPropertyDescriptors(e),s={};_t(a,(o,r)=>{let i;(i=n(o,r,e))!==!1&&(s[r]=i||o)}),Object.defineProperties(e,s)},Kr=e=>{Xa(e,(n,a)=>{if(le(e)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const s=e[a];if(le(s)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},Jr=(e,n)=>{const a={},s=o=>{o.forEach(r=>{a[r]=!0})};return nt(e)?s(e):s(String(e).split(n)),a},Zr=()=>{},Xr=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n;function Rr(e){return!!(e&&le(e.append)&&e[Va]==="FormData"&&e[Kt])}const ei=e=>{const n=new Array(10),a=(s,o)=>{if(vt(s)){if(n.indexOf(s)>=0)return;if(bt(s))return s;if(!("toJSON"in s)){n[o]=s;const r=nt(s)?[]:{};return _t(s,(i,l)=>{const c=a(i,o+1);!at(c)&&(r[l]=c)}),n[o]=void 0,r}}return s};return a(e,0)},ti=be("AsyncFunction"),ni=e=>e&&(vt(e)||le(e))&&le(e.then)&&le(e.catch),Ra=((e,n)=>e?setImmediate:n?((a,s)=>(We.addEventListener("message",({source:o,data:r})=>{o===We&&r===a&&s.length&&s.shift()()},!1),o=>{s.push(o),We.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",le(We.postMessage)),ai=typeof queueMicrotask<"u"?queueMicrotask.bind(We):typeof process<"u"&&process.nextTick||Ra,A={isArray:nt,isArrayBuffer:Wa,isBuffer:bt,isFormData:Tr,isArrayBufferView:br,isString:vr,isNumber:Ya,isBoolean:_r,isObject:vt,isPlainObject:Xt,isEmptyObject:Nr,isReadableStream:qr,isRequest:Br,isResponse:Lr,isHeaders:Dr,isUndefined:at,isDate:Sr,isFile:kr,isBlob:Er,isRegExp:Yr,isFunction:le,isStream:Ur,isURLSearchParams:xr,isTypedArray:zr,isFileList:Ir,forEach:_t,merge:Dn,extend:Pr,trim:Mr,stripBOM:Or,inherits:jr,toFlatObject:Qr,kindOf:Jt,kindOfTest:be,endsWith:Gr,toArray:$r,forEachEntry:Hr,matchAll:Fr,isHTMLForm:Vr,hasOwnProperty:Za,hasOwnProp:Za,reduceDescriptors:Xa,freezeMethods:Kr,toObjectSet:Jr,toCamelCase:Wr,noop:Zr,toFiniteNumber:Xr,findKey:Ka,global:We,isContextDefined:Ja,isSpecCompliantForm:Rr,toJSONObject:ei,isAsyncFn:ti,isThenable:ni,setImmediate:Ra,asap:ai,isIterable:e=>e!=null&&le(e[Kt])};function Q(e,n,a,s,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),a&&(this.config=a),s&&(this.request=s),o&&(this.response=o,this.status=o.status?o.status:null)}A.inherits(Q,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:A.toJSONObject(this.config),code:this.code,status:this.status}}});const es=Q.prototype,ts={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ts[e]={value:e}}),Object.defineProperties(Q,ts),Object.defineProperty(es,"isAxiosError",{value:!0}),Q.from=(e,n,a,s,o,r)=>{const i=Object.create(es);A.toFlatObject(e,i,function(d){return d!==Error.prototype},h=>h!=="isAxiosError");const l=e&&e.message?e.message:"Error",c=n==null&&e?e.code:n;return Q.call(i,l,c,a,s,o),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",r&&Object.assign(i,r),i};const si=null;function Mn(e){return A.isPlainObject(e)||A.isArray(e)}function ns(e){return A.endsWith(e,"[]")?e.slice(0,-2):e}function as(e,n,a){return e?e.concat(n).map(function(o,r){return o=ns(o),!a&&r?"["+o+"]":o}).join(a?".":""):n}function oi(e){return A.isArray(e)&&!e.some(Mn)}const ri=A.toFlatObject(A,{},null,function(n){return/^is[A-Z]/.test(n)});function Rt(e,n,a){if(!A.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,a=A.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,y){return!A.isUndefined(y[g])});const s=a.metaTokens,o=a.visitor||d,r=a.dots,i=a.indexes,c=(a.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(n);if(!A.isFunction(o))throw new TypeError("visitor must be a function");function h(f){if(f===null)return"";if(A.isDate(f))return f.toISOString();if(A.isBoolean(f))return f.toString();if(!c&&A.isBlob(f))throw new Q("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(f)||A.isTypedArray(f)?c&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function d(f,g,y){let b=f;if(f&&!y&&typeof f=="object"){if(A.endsWith(g,"{}"))g=s?g:g.slice(0,-2),f=JSON.stringify(f);else if(A.isArray(f)&&oi(f)||(A.isFileList(f)||A.endsWith(g,"[]"))&&(b=A.toArray(f)))return g=ns(g),b.forEach(function(S,M){!(A.isUndefined(S)||S===null)&&n.append(i===!0?as([g],M,r):i===null?g:g+"[]",h(S))}),!1}return Mn(f)?!0:(n.append(as(y,g,r),h(f)),!1)}const u=[],m=Object.assign(ri,{defaultVisitor:d,convertValue:h,isVisitable:Mn});function w(f,g){if(!A.isUndefined(f)){if(u.indexOf(f)!==-1)throw Error("Circular reference detected in "+g.join("."));u.push(f),A.forEach(f,function(b,U){(!(A.isUndefined(b)||b===null)&&o.call(n,b,A.isString(U)?U.trim():U,g,m))===!0&&w(b,g?g.concat(U):[U])}),u.pop()}}if(!A.isObject(e))throw new TypeError("data must be an object");return w(e),n}function ss(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return n[s]})}function Pn(e,n){this._pairs=[],e&&Rt(e,this,n)}const os=Pn.prototype;os.append=function(n,a){this._pairs.push([n,a])},os.toString=function(n){const a=n?function(s){return n.call(this,s,ss)}:ss;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function ii(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rs(e,n,a){if(!n)return e;const s=a&&a.encode||ii;A.isFunction(a)&&(a={serialize:a});const o=a&&a.serialize;let r;if(o?r=o(n,a):r=A.isURLSearchParams(n)?n.toString():new Pn(n,a).toString(s),r){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class is{constructor(){this.handlers=[]}use(n,a,s){return this.handlers.push({fulfilled:n,rejected:a,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){A.forEach(this.handlers,function(s){s!==null&&n(s)})}}const ls={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},li={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Pn,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},On=typeof window<"u"&&typeof document<"u",jn=typeof navigator=="object"&&navigator||void 0,ci=On&&(!jn||["ReactNative","NativeScript","NS"].indexOf(jn.product)<0),di=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",hi=On&&window.location.href||"http://localhost",oe={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:On,hasStandardBrowserEnv:ci,hasStandardBrowserWebWorkerEnv:di,navigator:jn,origin:hi},Symbol.toStringTag,{value:"Module"})),...li};function ui(e,n){return Rt(e,new oe.classes.URLSearchParams,{visitor:function(a,s,o,r){return oe.isNode&&A.isBuffer(a)?(this.append(s,a.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...n})}function mi(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function fi(e){const n={},a=Object.keys(e);let s;const o=a.length;let r;for(s=0;s<o;s++)r=a[s],n[r]=e[r];return n}function cs(e){function n(a,s,o,r){let i=a[r++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),c=r>=a.length;return i=!i&&A.isArray(o)?o.length:i,c?(A.hasOwnProp(o,i)?o[i]=[o[i],s]:o[i]=s,!l):((!o[i]||!A.isObject(o[i]))&&(o[i]=[]),n(a,s,o[i],r)&&A.isArray(o[i])&&(o[i]=fi(o[i])),!l)}if(A.isFormData(e)&&A.isFunction(e.entries)){const a={};return A.forEachEntry(e,(s,o)=>{n(mi(s),o,a,0)}),a}return null}function gi(e,n,a){if(A.isString(e))try{return(n||JSON.parse)(e),A.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(a||JSON.stringify)(e)}const Nt={transitional:ls,adapter:["xhr","http","fetch"],transformRequest:[function(n,a){const s=a.getContentType()||"",o=s.indexOf("application/json")>-1,r=A.isObject(n);if(r&&A.isHTMLForm(n)&&(n=new FormData(n)),A.isFormData(n))return o?JSON.stringify(cs(n)):n;if(A.isArrayBuffer(n)||A.isBuffer(n)||A.isStream(n)||A.isFile(n)||A.isBlob(n)||A.isReadableStream(n))return n;if(A.isArrayBufferView(n))return n.buffer;if(A.isURLSearchParams(n))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let l;if(r){if(s.indexOf("application/x-www-form-urlencoded")>-1)return ui(n,this.formSerializer).toString();if((l=A.isFileList(n))||s.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Rt(l?{"files[]":n}:n,c&&new c,this.formSerializer)}}return r||o?(a.setContentType("application/json",!1),gi(n)):n}],transformResponse:[function(n){const a=this.transitional||Nt.transitional,s=a&&a.forcedJSONParsing,o=this.responseType==="json";if(A.isResponse(n)||A.isReadableStream(n))return n;if(n&&A.isString(n)&&(s&&!this.responseType||o)){const i=!(a&&a.silentJSONParsing)&&o;try{return JSON.parse(n,this.parseReviver)}catch(l){if(i)throw l.name==="SyntaxError"?Q.from(l,Q.ERR_BAD_RESPONSE,this,null,this.response):l}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:oe.classes.FormData,Blob:oe.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],e=>{Nt.headers[e]={}});const pi=A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ai=e=>{const n={};let a,s,o;return e&&e.split(`
|
|
22
22
|
`).forEach(function(i){o=i.indexOf(":"),a=i.substring(0,o).trim().toLowerCase(),s=i.substring(o+1).trim(),!(!a||n[a]&&pi[a])&&(a==="set-cookie"?n[a]?n[a].push(s):n[a]=[s]:n[a]=n[a]?n[a]+", "+s:s)}),n},ds=Symbol("internals");function St(e){return e&&String(e).trim().toLowerCase()}function en(e){return e===!1||e==null?e:A.isArray(e)?e.map(en):String(e)}function wi(e){const n=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=a.exec(e);)n[s[1]]=s[2];return n}const yi=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Qn(e,n,a,s,o){if(A.isFunction(s))return s.call(this,n,a);if(o&&(n=a),!!A.isString(n)){if(A.isString(s))return n.indexOf(s)!==-1;if(A.isRegExp(s))return s.test(n)}}function Ci(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,a,s)=>a.toUpperCase()+s)}function bi(e,n){const a=A.toCamelCase(" "+n);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+a,{value:function(o,r,i){return this[s].call(this,n,o,r,i)},configurable:!0})})}let ce=class{constructor(n){n&&this.set(n)}set(n,a,s){const o=this;function r(l,c,h){const d=St(c);if(!d)throw new Error("header name must be a non-empty string");const u=A.findKey(o,d);(!u||o[u]===void 0||h===!0||h===void 0&&o[u]!==!1)&&(o[u||c]=en(l))}const i=(l,c)=>A.forEach(l,(h,d)=>r(h,d,c));if(A.isPlainObject(n)||n instanceof this.constructor)i(n,a);else if(A.isString(n)&&(n=n.trim())&&!yi(n))i(Ai(n),a);else if(A.isObject(n)&&A.isIterable(n)){let l={},c,h;for(const d of n){if(!A.isArray(d))throw TypeError("Object iterator must return a key-value pair");l[h=d[0]]=(c=l[h])?A.isArray(c)?[...c,d[1]]:[c,d[1]]:d[1]}i(l,a)}else n!=null&&r(a,n,s);return this}get(n,a){if(n=St(n),n){const s=A.findKey(this,n);if(s){const o=this[s];if(!a)return o;if(a===!0)return wi(o);if(A.isFunction(a))return a.call(this,o,s);if(A.isRegExp(a))return a.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,a){if(n=St(n),n){const s=A.findKey(this,n);return!!(s&&this[s]!==void 0&&(!a||Qn(this,this[s],s,a)))}return!1}delete(n,a){const s=this;let o=!1;function r(i){if(i=St(i),i){const l=A.findKey(s,i);l&&(!a||Qn(s,s[l],l,a))&&(delete s[l],o=!0)}}return A.isArray(n)?n.forEach(r):r(n),o}clear(n){const a=Object.keys(this);let s=a.length,o=!1;for(;s--;){const r=a[s];(!n||Qn(this,this[r],r,n,!0))&&(delete this[r],o=!0)}return o}normalize(n){const a=this,s={};return A.forEach(this,(o,r)=>{const i=A.findKey(s,r);if(i){a[i]=en(o),delete a[r];return}const l=n?Ci(r):String(r).trim();l!==r&&delete a[r],a[l]=en(o),s[l]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const a=Object.create(null);return A.forEach(this,(s,o)=>{s!=null&&s!==!1&&(a[o]=n&&A.isArray(s)?s.join(", "):s)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,a])=>n+": "+a).join(`
|
|
23
23
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...a){const s=new this(n);return a.forEach(o=>s.set(o)),s}static accessor(n){const s=(this[ds]=this[ds]={accessors:{}}).accessors,o=this.prototype;function r(i){const l=St(i);s[l]||(bi(o,i),s[l]=!0)}return A.isArray(n)?n.forEach(r):r(n),this}};ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),A.reduceDescriptors(ce.prototype,({value:e},n)=>{let a=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(s){this[a]=s}}}),A.freezeMethods(ce);function Gn(e,n){const a=this||Nt,s=n||a,o=ce.from(s.headers);let r=s.data;return A.forEach(e,function(l){r=l.call(a,r,o.normalize(),n?n.status:void 0)}),o.normalize(),r}function hs(e){return!!(e&&e.__CANCEL__)}function st(e,n,a){Q.call(this,e??"canceled",Q.ERR_CANCELED,n,a),this.name="CanceledError"}A.inherits(st,Q,{__CANCEL__:!0});function us(e,n,a){const s=a.config.validateStatus;!a.status||!s||s(a.status)?e(a):n(new Q("Request failed with status code "+a.status,[Q.ERR_BAD_REQUEST,Q.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function vi(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function _i(e,n){e=e||10;const a=new Array(e),s=new Array(e);let o=0,r=0,i;return n=n!==void 0?n:1e3,function(c){const h=Date.now(),d=s[r];i||(i=h),a[o]=c,s[o]=h;let u=r,m=0;for(;u!==o;)m+=a[u++],u=u%e;if(o=(o+1)%e,o===r&&(r=(r+1)%e),h-i<n)return;const w=d&&h-d;return w?Math.round(m*1e3/w):void 0}}function Ni(e,n){let a=0,s=1e3/n,o,r;const i=(h,d=Date.now())=>{a=d,o=null,r&&(clearTimeout(r),r=null),e(...h)};return[(...h)=>{const d=Date.now(),u=d-a;u>=s?i(h,d):(o=h,r||(r=setTimeout(()=>{r=null,i(o)},s-u)))},()=>o&&i(o)]}const tn=(e,n,a=3)=>{let s=0;const o=_i(50,250);return Ni(r=>{const i=r.loaded,l=r.lengthComputable?r.total:void 0,c=i-s,h=o(c),d=i<=l;s=i;const u={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:h||void 0,estimated:h&&l&&d?(l-i)/h:void 0,event:r,lengthComputable:l!=null,[n?"download":"upload"]:!0};e(u)},a)},ms=(e,n)=>{const a=e!=null;return[s=>n[0]({lengthComputable:a,total:e,loaded:s}),n[1]]},fs=e=>(...n)=>A.asap(()=>e(...n)),Si=oe.hasStandardBrowserEnv?((e,n)=>a=>(a=new URL(a,oe.origin),e.protocol===a.protocol&&e.host===a.host&&(n||e.port===a.port)))(new URL(oe.origin),oe.navigator&&/(msie|trident)/i.test(oe.navigator.userAgent)):()=>!0,ki=oe.hasStandardBrowserEnv?{write(e,n,a,s,o,r,i){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(n)}`];A.isNumber(a)&&l.push(`expires=${new Date(a).toUTCString()}`),A.isString(s)&&l.push(`path=${s}`),A.isString(o)&&l.push(`domain=${o}`),r===!0&&l.push("secure"),A.isString(i)&&l.push(`SameSite=${i}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const n=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return n?decodeURIComponent(n[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Ei(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ii(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}function gs(e,n,a){let s=!Ei(n);return e&&(s||a==!1)?Ii(e,n):n}const ps=e=>e instanceof ce?{...e}:e;function Ye(e,n){n=n||{};const a={};function s(h,d,u,m){return A.isPlainObject(h)&&A.isPlainObject(d)?A.merge.call({caseless:m},h,d):A.isPlainObject(d)?A.merge({},d):A.isArray(d)?d.slice():d}function o(h,d,u,m){if(A.isUndefined(d)){if(!A.isUndefined(h))return s(void 0,h,u,m)}else return s(h,d,u,m)}function r(h,d){if(!A.isUndefined(d))return s(void 0,d)}function i(h,d){if(A.isUndefined(d)){if(!A.isUndefined(h))return s(void 0,h)}else return s(void 0,d)}function l(h,d,u){if(u in n)return s(h,d);if(u in e)return s(void 0,h)}const c={url:r,method:r,data:r,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(h,d,u)=>o(ps(h),ps(d),u,!0)};return A.forEach(Object.keys({...e,...n}),function(d){const u=c[d]||o,m=u(e[d],n[d],d);A.isUndefined(m)&&u!==l||(a[d]=m)}),a}const As=e=>{const n=Ye({},e);let{data:a,withXSRFToken:s,xsrfHeaderName:o,xsrfCookieName:r,headers:i,auth:l}=n;if(n.headers=i=ce.from(i),n.url=rs(gs(n.baseURL,n.url,n.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),A.isFormData(a)){if(oe.hasStandardBrowserEnv||oe.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(A.isFunction(a.getHeaders)){const c=a.getHeaders(),h=["content-type","content-length"];Object.entries(c).forEach(([d,u])=>{h.includes(d.toLowerCase())&&i.set(d,u)})}}if(oe.hasStandardBrowserEnv&&(s&&A.isFunction(s)&&(s=s(n)),s||s!==!1&&Si(n.url))){const c=o&&r&&ki.read(r);c&&i.set(o,c)}return n},Ui=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(a,s){const o=As(e);let r=o.data;const i=ce.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:h}=o,d,u,m,w,f;function g(){w&&w(),f&&f(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,!0),y.timeout=o.timeout;function b(){if(!y)return;const S=ce.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),x={data:!l||l==="text"||l==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:S,config:e,request:y};us(function(P){a(P),g()},function(P){s(P),g()},x),y=null}"onloadend"in y?y.onloadend=b:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(b)},y.onabort=function(){y&&(s(new Q("Request aborted",Q.ECONNABORTED,e,y)),y=null)},y.onerror=function(M){const x=M&&M.message?M.message:"Network Error",I=new Q(x,Q.ERR_NETWORK,e,y);I.event=M||null,s(I),y=null},y.ontimeout=function(){let M=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const x=o.transitional||ls;o.timeoutErrorMessage&&(M=o.timeoutErrorMessage),s(new Q(M,x.clarifyTimeoutError?Q.ETIMEDOUT:Q.ECONNABORTED,e,y)),y=null},r===void 0&&i.setContentType(null),"setRequestHeader"in y&&A.forEach(i.toJSON(),function(M,x){y.setRequestHeader(x,M)}),A.isUndefined(o.withCredentials)||(y.withCredentials=!!o.withCredentials),l&&l!=="json"&&(y.responseType=o.responseType),h&&([m,f]=tn(h,!0),y.addEventListener("progress",m)),c&&y.upload&&([u,w]=tn(c),y.upload.addEventListener("progress",u),y.upload.addEventListener("loadend",w)),(o.cancelToken||o.signal)&&(d=S=>{y&&(s(!S||S.type?new st(null,e,y):S),y.abort(),y=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const U=vi(o.url);if(U&&oe.protocols.indexOf(U)===-1){s(new Q("Unsupported protocol "+U+":",Q.ERR_BAD_REQUEST,e));return}y.send(r||null)})},Ti=(e,n)=>{const{length:a}=e=e?e.filter(Boolean):[];if(n||a){let s=new AbortController,o;const r=function(h){if(!o){o=!0,l();const d=h instanceof Error?h:this.reason;s.abort(d instanceof Q?d:new st(d instanceof Error?d.message:d))}};let i=n&&setTimeout(()=>{i=null,r(new Q(`timeout ${n} of ms exceeded`,Q.ETIMEDOUT))},n);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(r):h.removeEventListener("abort",r)}),e=null)};e.forEach(h=>h.addEventListener("abort",r));const{signal:c}=s;return c.unsubscribe=()=>A.asap(l),c}},xi=function*(e,n){let a=e.byteLength;if(a<n){yield e;return}let s=0,o;for(;s<a;)o=s+n,yield e.slice(s,o),s=o},qi=async function*(e,n){for await(const a of Bi(e))yield*xi(a,n)},Bi=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const n=e.getReader();try{for(;;){const{done:a,value:s}=await n.read();if(a)break;yield s}}finally{await n.cancel()}},ws=(e,n,a,s)=>{const o=qi(e,n);let r=0,i,l=c=>{i||(i=!0,s&&s(c))};return new ReadableStream({async pull(c){try{const{done:h,value:d}=await o.next();if(h){l(),c.close();return}let u=d.byteLength;if(a){let m=r+=u;a(m)}c.enqueue(new Uint8Array(d))}catch(h){throw l(h),h}},cancel(c){return l(c),o.return()}},{highWaterMark:2})},ys=64*1024,{isFunction:nn}=A,Li=(({Request:e,Response:n})=>({Request:e,Response:n}))(A.global),{ReadableStream:Cs,TextEncoder:bs}=A.global,vs=(e,...n)=>{try{return!!e(...n)}catch{return!1}},Di=e=>{e=A.merge.call({skipUndefined:!0},Li,e);const{fetch:n,Request:a,Response:s}=e,o=n?nn(n):typeof fetch=="function",r=nn(a),i=nn(s);if(!o)return!1;const l=o&&nn(Cs),c=o&&(typeof bs=="function"?(f=>g=>f.encode(g))(new bs):async f=>new Uint8Array(await new a(f).arrayBuffer())),h=r&&l&&vs(()=>{let f=!1;const g=new a(oe.origin,{body:new Cs,method:"POST",get duplex(){return f=!0,"half"}}).headers.has("Content-Type");return f&&!g}),d=i&&l&&vs(()=>A.isReadableStream(new s("").body)),u={stream:d&&(f=>f.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!u[f]&&(u[f]=(g,y)=>{let b=g&&g[f];if(b)return b.call(g);throw new Q(`Response type '${f}' is not supported`,Q.ERR_NOT_SUPPORT,y)})});const m=async f=>{if(f==null)return 0;if(A.isBlob(f))return f.size;if(A.isSpecCompliantForm(f))return(await new a(oe.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(A.isArrayBufferView(f)||A.isArrayBuffer(f))return f.byteLength;if(A.isURLSearchParams(f)&&(f=f+""),A.isString(f))return(await c(f)).byteLength},w=async(f,g)=>{const y=A.toFiniteNumber(f.getContentLength());return y??m(g)};return async f=>{let{url:g,method:y,data:b,signal:U,cancelToken:S,timeout:M,onDownloadProgress:x,onUploadProgress:I,responseType:P,headers:$,withCredentials:z="same-origin",fetchOptions:O}=As(f),q=n||fetch;P=P?(P+"").toLowerCase():"text";let H=Ti([U,S&&S.toAbortSignal()],M),ne=null;const B=H&&H.unsubscribe&&(()=>{H.unsubscribe()});let E;try{if(I&&h&&y!=="get"&&y!=="head"&&(E=await w($,b))!==0){let D=new a(g,{method:"POST",body:b,duplex:"half"}),G;if(A.isFormData(b)&&(G=D.headers.get("content-type"))&&$.setContentType(G),D.body){const[Y,F]=ms(E,tn(fs(I)));b=ws(D.body,ys,Y,F)}}A.isString(z)||(z=z?"include":"omit");const v=r&&"credentials"in a.prototype,L={...O,signal:H,method:y.toUpperCase(),headers:$.normalize().toJSON(),body:b,duplex:"half",credentials:v?z:void 0};ne=r&&new a(g,L);let k=await(r?q(ne,O):q(g,L));const j=d&&(P==="stream"||P==="response");if(d&&(x||j&&B)){const D={};["status","statusText","headers"].forEach(X=>{D[X]=k[X]});const G=A.toFiniteNumber(k.headers.get("content-length")),[Y,F]=x&&ms(G,tn(fs(x),!0))||[];k=new s(ws(k.body,ys,Y,()=>{F&&F(),B&&B()}),D)}P=P||"text";let N=await u[A.findKey(u,P)||"text"](k,f);return!j&&B&&B(),await new Promise((D,G)=>{us(D,G,{data:N,headers:ce.from(k.headers),status:k.status,statusText:k.statusText,config:f,request:ne})})}catch(v){throw B&&B(),v&&v.name==="TypeError"&&/Load failed|fetch/i.test(v.message)?Object.assign(new Q("Network Error",Q.ERR_NETWORK,f,ne),{cause:v.cause||v}):Q.from(v,v&&v.code,f,ne)}}},Mi=new Map,_s=e=>{let n=e&&e.env||{};const{fetch:a,Request:s,Response:o}=n,r=[s,o,a];let i=r.length,l=i,c,h,d=Mi;for(;l--;)c=r[l],h=d.get(c),h===void 0&&d.set(c,h=l?new Map:Di(n)),d=h;return h};_s();const $n={http:si,xhr:Ui,fetch:{get:_s}};A.forEach($n,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const Ns=e=>`- ${e}`,Pi=e=>A.isFunction(e)||e===null||e===!1;function Oi(e,n){e=A.isArray(e)?e:[e];const{length:a}=e;let s,o;const r={};for(let i=0;i<a;i++){s=e[i];let l;if(o=s,!Pi(s)&&(o=$n[(l=String(s)).toLowerCase()],o===void 0))throw new Q(`Unknown adapter '${l}'`);if(o&&(A.isFunction(o)||(o=o.get(n))))break;r[l||"#"+i]=o}if(!o){const i=Object.entries(r).map(([c,h])=>`adapter ${c} `+(h===!1?"is not supported by the environment":"is not available in the build"));let l=a?i.length>1?`since :
|
|
24
24
|
`+i.map(Ns).join(`
|