pangea-lib 4.0.210 → 4.0.211
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.
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +1 -1
- package/package.json +1 -1
package/dist/main.cjs.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(E){return E instanceof this?E:new this(E)}static concat(E,...I){const Z=new this(E);return I.forEach(Q=>Z.set(Q)),Z}static accessor(E){const I=(this[A2]=this[A2]={accessors:{}}).accessors,Z=this.prototype;function Q(c1){const t1=h2(c1);I[t1]||(function(M1,V1){const w1=A.toCamelCase(" "+V1);["get","set","has"].forEach(b1=>{Object.defineProperty(M1,b1+w1,{value:function(D1,O1,G1){return this[b1].call(this,V1,D1,O1,G1)},configurable:!0})})}(Z,c1),I[t1]=!0)}return A.isArray(E)?E.forEach(Q):Q(E),this}}f1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),A.reduceDescriptors(f1.prototype,({value:P},E)=>{let I=E[0].toUpperCase()+E.slice(1);return{get:()=>P,set(Z){this[I]=Z}}}),A.freezeMethods(f1);var i1=f1;function H1(P,E){const I=this||$1,Z=E||I,Q=i1.from(Z.headers);let c1=Z.data;return A.forEach(P,function(t1){c1=t1.call(I,c1,Q.normalize(),E?E.status:void 0)}),Q.normalize(),c1}function _1(P){return!(!P||!P.__CANCEL__)}function U1(P,E,I){R.call(this,P??"canceled",R.ERR_CANCELED,E,I),this.name="CanceledError"}A.inherits(U1,R,{__CANCEL__:!0});var g2=Y1.hasStandardBrowserEnv?{write(P,E,I,Z,Q,c1){const t1=[P+"="+encodeURIComponent(E)];A.isNumber(I)&&t1.push("expires="+new Date(I).toGMTString()),A.isString(Z)&&t1.push("path="+Z),A.isString(Q)&&t1.push("domain="+Q),c1===!0&&t1.push("secure"),document.cookie=t1.join("; ")},read(P){const E=document.cookie.match(new RegExp("(^|;\\s*)("+P+")=([^;]*)"));return E?decodeURIComponent(E[3]):null},remove(P){this.write(P,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function L2(P,E){return P&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(E)?function(I,Z){return Z?I.replace(/\/?\/$/,"")+"/"+Z.replace(/^\/+/,""):I}(P,E):E}var B3=Y1.hasStandardBrowserEnv?function(){const P=/(msie|trident)/i.test(navigator.userAgent),E=document.createElement("a");let I;function Z(Q){let c1=Q;return P&&(E.setAttribute("href",c1),c1=E.href),E.setAttribute("href",c1),{href:E.href,protocol:E.protocol?E.protocol.replace(/:$/,""):"",host:E.host,search:E.search?E.search.replace(/^\?/,""):"",hash:E.hash?E.hash.replace(/^#/,""):"",hostname:E.hostname,port:E.port,pathname:E.pathname.charAt(0)==="/"?E.pathname:"/"+E.pathname}}return I=Z(window.location.href),function(Q){const c1=A.isString(Q)?Z(Q):Q;return c1.protocol===I.protocol&&c1.host===I.host}}():function(){return!0};function f4(P,E){let I=0;const Z=function(Q,c1){Q=Q||10;const t1=new Array(Q),M1=new Array(Q);let V1,w1=0,b1=0;return c1=c1!==void 0?c1:1e3,function(D1){const O1=Date.now(),G1=M1[b1];V1||(V1=O1),t1[w1]=D1,M1[w1]=O1;let P1=b1,Q1=0;for(;P1!==w1;)Q1+=t1[P1++],P1%=Q;if(w1=(w1+1)%Q,w1===b1&&(b1=(b1+1)%Q),O1-V1<c1)return;const p2=G1&&O1-G1;return p2?Math.round(1e3*Q1/p2):void 0}}(50,250);return Q=>{const c1=Q.loaded,t1=Q.lengthComputable?Q.total:void 0,M1=c1-I,V1=Z(M1);I=c1;const w1={loaded:c1,total:t1,progress:t1?c1/t1:void 0,bytes:M1,rate:V1||void 0,estimated:V1&&t1&&c1<=t1?(t1-c1)/V1:void 0,event:Q};w1[E?"download":"upload"]=!0,P(w1)}}const s2={http:null,xhr:typeof XMLHttpRequest<"u"&&function(P){return new Promise(function(E,I){let Z=P.data;const Q=i1.from(P.headers).normalize();let c1,t1,{responseType:M1,withXSRFToken:V1}=P;function w1(){P.cancelToken&&P.cancelToken.unsubscribe(c1),P.signal&&P.signal.removeEventListener("abort",c1)}if(A.isFormData(Z)){if(Y1.hasStandardBrowserEnv||Y1.hasStandardBrowserWebWorkerEnv)Q.setContentType(!1);else if((t1=Q.getContentType())!==!1){const[P1,...Q1]=t1?t1.split(";").map(p2=>p2.trim()).filter(Boolean):[];Q.setContentType([P1||"multipart/form-data",...Q1].join("; "))}}let b1=new XMLHttpRequest;if(P.auth){const P1=P.auth.username||"",Q1=P.auth.password?unescape(encodeURIComponent(P.auth.password)):"";Q.set("Authorization","Basic "+btoa(P1+":"+Q1))}const D1=L2(P.baseURL,P.url);function O1(){if(!b1)return;const P1=i1.from("getAllResponseHeaders"in b1&&b1.getAllResponseHeaders());(function(Q1,p2,Z2){const vn=Z2.config.validateStatus;Z2.status&&vn&&!vn(Z2.status)?p2(new R("Request failed with status code "+Z2.status,[R.ERR_BAD_REQUEST,R.ERR_BAD_RESPONSE][Math.floor(Z2.status/100)-4],Z2.config,Z2.request,Z2)):Q1(Z2)})(function(Q1){E(Q1),w1()},function(Q1){I(Q1),w1()},{data:M1&&M1!=="text"&&M1!=="json"?b1.response:b1.responseText,status:b1.status,statusText:b1.statusText,headers:P1,config:P,request:b1}),b1=null}if(b1.open(P.method.toUpperCase(),d1(D1,P.params,P.paramsSerializer),!0),b1.timeout=P.timeout,"onloadend"in b1?b1.onloadend=O1:b1.onreadystatechange=function(){b1&&b1.readyState===4&&(b1.status!==0||b1.responseURL&&b1.responseURL.indexOf("file:")===0)&&setTimeout(O1)},b1.onabort=function(){b1&&(I(new R("Request aborted",R.ECONNABORTED,P,b1)),b1=null)},b1.onerror=function(){I(new R("Network Error",R.ERR_NETWORK,P,b1)),b1=null},b1.ontimeout=function(){let P1=P.timeout?"timeout of "+P.timeout+"ms exceeded":"timeout exceeded";const Q1=P.transitional||p1;P.timeoutErrorMessage&&(P1=P.timeoutErrorMessage),I(new R(P1,Q1.clarifyTimeoutError?R.ETIMEDOUT:R.ECONNABORTED,P,b1)),b1=null},Y1.hasStandardBrowserEnv&&(V1&&A.isFunction(V1)&&(V1=V1(P)),V1||V1!==!1&&B3(D1))){const P1=P.xsrfHeaderName&&P.xsrfCookieName&&g2.read(P.xsrfCookieName);P1&&Q.set(P.xsrfHeaderName,P1)}Z===void 0&&Q.setContentType(null),"setRequestHeader"in b1&&A.forEach(Q.toJSON(),function(P1,Q1){b1.setRequestHeader(Q1,P1)}),A.isUndefined(P.withCredentials)||(b1.withCredentials=!!P.withCredentials),M1&&M1!=="json"&&(b1.responseType=P.responseType),typeof P.onDownloadProgress=="function"&&b1.addEventListener("progress",f4(P.onDownloadProgress,!0)),typeof P.onUploadProgress=="function"&&b1.upload&&b1.upload.addEventListener("progress",f4(P.onUploadProgress)),(P.cancelToken||P.signal)&&(c1=P1=>{b1&&(I(!P1||P1.type?new U1(null,P,b1):P1),b1.abort(),b1=null)},P.cancelToken&&P.cancelToken.subscribe(c1),P.signal&&(P.signal.aborted?c1():P.signal.addEventListener("abort",c1)));const G1=function(P1){const Q1=/^([-+\w]{1,25})(:?\/\/|:)/.exec(P1);return Q1&&Q1[1]||""}(D1);G1&&Y1.protocols.indexOf(G1)===-1?I(new R("Unsupported protocol "+G1+":",R.ERR_BAD_REQUEST,P)):b1.send(Z||null)})}};A.forEach(s2,(P,E)=>{if(P){try{Object.defineProperty(P,"name",{value:E})}catch{}Object.defineProperty(P,"adapterName",{value:E})}});const _2=P=>`- ${P}`,K4=P=>A.isFunction(P)||P===null||P===!1;var Q4=P=>{P=A.isArray(P)?P:[P];const{length:E}=P;let I,Z;const Q={};for(let c1=0;c1<E;c1++){let t1;if(I=P[c1],Z=I,!K4(I)&&(Z=s2[(t1=String(I)).toLowerCase()],Z===void 0))throw new R(`Unknown adapter '${t1}'`);if(Z)break;Q[t1||"#"+c1]=Z}if(!Z){const c1=Object.entries(Q).map(([t1,M1])=>`adapter ${t1} `+(M1===!1?"is not supported by the environment":"is not available in the build"));throw new R("There is no suitable adapter to dispatch the request "+(E?c1.length>1?`since :
|
|
4
4
|
`+c1.map(_2).join(`
|
|
5
5
|
`):" "+_2(c1[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return Z};function J4(P){if(P.cancelToken&&P.cancelToken.throwIfRequested(),P.signal&&P.signal.aborted)throw new U1(null,P)}function Ze(P){return J4(P),P.headers=i1.from(P.headers),P.data=H1.call(P,P.transformRequest),["post","put","patch"].indexOf(P.method)!==-1&&P.headers.setContentType("application/x-www-form-urlencoded",!1),Q4(P.adapter||$1.adapter)(P).then(function(E){return J4(P),E.data=H1.call(P,P.transformResponse,E),E.headers=i1.from(E.headers),E},function(E){return _1(E)||(J4(P),E&&E.response&&(E.response.data=H1.call(P,P.transformResponse,E.response),E.response.headers=i1.from(E.response.headers))),Promise.reject(E)})}const Xe=P=>P instanceof i1?{...P}:P;function u4(P,E){E=E||{};const I={};function Z(w1,b1,D1){return A.isPlainObject(w1)&&A.isPlainObject(b1)?A.merge.call({caseless:D1},w1,b1):A.isPlainObject(b1)?A.merge({},b1):A.isArray(b1)?b1.slice():b1}function Q(w1,b1,D1){return A.isUndefined(b1)?A.isUndefined(w1)?void 0:Z(void 0,w1,D1):Z(w1,b1,D1)}function c1(w1,b1){if(!A.isUndefined(b1))return Z(void 0,b1)}function t1(w1,b1){return A.isUndefined(b1)?A.isUndefined(w1)?void 0:Z(void 0,w1):Z(void 0,b1)}function M1(w1,b1,D1){return D1 in E?Z(w1,b1):D1 in P?Z(void 0,w1):void 0}const V1={url:c1,method:c1,data:c1,baseURL:t1,transformRequest:t1,transformResponse:t1,paramsSerializer:t1,timeout:t1,timeoutMessage:t1,withCredentials:t1,withXSRFToken:t1,adapter:t1,responseType:t1,xsrfCookieName:t1,xsrfHeaderName:t1,onUploadProgress:t1,onDownloadProgress:t1,decompress:t1,maxContentLength:t1,maxBodyLength:t1,beforeRedirect:t1,transport:t1,httpAgent:t1,httpsAgent:t1,cancelToken:t1,socketPath:t1,responseEncoding:t1,validateStatus:M1,headers:(w1,b1)=>Q(Xe(w1),Xe(b1),!0)};return A.forEach(Object.keys(Object.assign({},P,E)),function(w1){const b1=V1[w1]||Q,D1=b1(P[w1],E[w1],w1);A.isUndefined(D1)&&b1!==M1||(I[w1]=D1)}),I}const d3={};["object","boolean","number","function","string","symbol"].forEach((P,E)=>{d3[P]=function(I){return typeof I===P||"a"+(E<1?"n ":" ")+P}});const ee={};d3.transitional=function(P,E,I){function Z(Q,c1){return"[Axios v1.6.8] Transitional option '"+Q+"'"+c1+(I?". "+I:"")}return(Q,c1,t1)=>{if(P===!1)throw new R(Z(c1," has been removed"+(E?" in "+E:"")),R.ERR_DEPRECATED);return E&&!ee[c1]&&(ee[c1]=!0,console.warn(Z(c1," has been deprecated since v"+E+" and will be removed in the near future"))),!P||P(Q,c1,t1)}};var Ve={assertOptions:function(P,E,I){if(typeof P!="object")throw new R("options must be an object",R.ERR_BAD_OPTION_VALUE);const Z=Object.keys(P);let Q=Z.length;for(;Q-- >0;){const c1=Z[Q],t1=E[c1];if(t1){const M1=P[c1],V1=M1===void 0||t1(M1,c1,P);if(V1!==!0)throw new R("option "+c1+" must be "+V1,R.ERR_BAD_OPTION_VALUE)}else if(I!==!0)throw new R("Unknown option "+c1,R.ERR_BAD_OPTION)}},validators:d3};const n1=Ve.validators;class v1{constructor(E){this.defaults=E,this.interceptors={request:new x1,response:new x1}}async request(E,I){try{return await this._request(E,I)}catch(Z){if(Z instanceof Error){let Q;Error.captureStackTrace?Error.captureStackTrace(Q={}):Q=new Error;const c1=Q.stack?Q.stack.replace(/^.+\n/,""):"";Z.stack?c1&&!String(Z.stack).endsWith(c1.replace(/^.+\n.+\n/,""))&&(Z.stack+=`
|
|
6
|
-
`+c1):Z.stack=c1}throw Z}}_request(E,I){typeof E=="string"?(I=I||{}).url=E:I=E||{},I=u4(this.defaults,I);const{transitional:Z,paramsSerializer:Q,headers:c1}=I;Z!==void 0&&Ve.assertOptions(Z,{silentJSONParsing:n1.transitional(n1.boolean),forcedJSONParsing:n1.transitional(n1.boolean),clarifyTimeoutError:n1.transitional(n1.boolean)},!1),Q!=null&&(A.isFunction(Q)?I.paramsSerializer={serialize:Q}:Ve.assertOptions(Q,{encode:n1.function,serialize:n1.function},!0)),I.method=(I.method||this.defaults.method||"get").toLowerCase();let t1=c1&&A.merge(c1.common,c1[I.method]);c1&&A.forEach(["delete","get","head","post","put","patch","common"],P1=>{delete c1[P1]}),I.headers=i1.concat(t1,c1);const M1=[];let V1=!0;this.interceptors.request.forEach(function(P1){typeof P1.runWhen=="function"&&P1.runWhen(I)===!1||(V1=V1&&P1.synchronous,M1.unshift(P1.fulfilled,P1.rejected))});const w1=[];let b1;this.interceptors.response.forEach(function(P1){w1.push(P1.fulfilled,P1.rejected)});let D1,O1=0;if(!V1){const P1=[Ze.bind(this),void 0];for(P1.unshift.apply(P1,M1),P1.push.apply(P1,w1),D1=P1.length,b1=Promise.resolve(I);O1<D1;)b1=b1.then(P1[O1++],P1[O1++]);return b1}D1=M1.length;let G1=I;for(O1=0;O1<D1;){const P1=M1[O1++],Q1=M1[O1++];try{G1=P1(G1)}catch(p2){Q1.call(this,p2);break}}try{b1=Ze.call(this,G1)}catch(P1){return Promise.reject(P1)}for(O1=0,D1=w1.length;O1<D1;)b1=b1.then(w1[O1++],w1[O1++]);return b1}getUri(E){return d1(L2((E=u4(this.defaults,E)).baseURL,E.url),E.params,E.paramsSerializer)}}A.forEach(["delete","get","head","options"],function(P){v1.prototype[P]=function(E,I){return this.request(u4(I||{},{method:P,url:E,data:(I||{}).data}))}}),A.forEach(["post","put","patch"],function(P){function E(I){return function(Z,Q,c1){return this.request(u4(c1||{},{method:P,headers:I?{"Content-Type":"multipart/form-data"}:{},url:Z,data:Q}))}}v1.prototype[P]=E(),v1.prototype[P+"Form"]=E(!0)});var h1=v1;class m1{constructor(E){if(typeof E!="function")throw new TypeError("executor must be a function.");let I;this.promise=new Promise(function(Q){I=Q});const Z=this;this.promise.then(Q=>{if(!Z._listeners)return;let c1=Z._listeners.length;for(;c1-- >0;)Z._listeners[c1](Q);Z._listeners=null}),this.promise.then=Q=>{let c1;const t1=new Promise(M1=>{Z.subscribe(M1),c1=M1}).then(Q);return t1.cancel=function(){Z.unsubscribe(c1)},t1},E(function(Q,c1,t1){Z.reason||(Z.reason=new U1(Q,c1,t1),I(Z.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(E){this.reason?E(this.reason):this._listeners?this._listeners.push(E):this._listeners=[E]}unsubscribe(E){if(!this._listeners)return;const I=this._listeners.indexOf(E);I!==-1&&this._listeners.splice(I,1)}static source(){let E;return{token:new m1(function(I){E=I}),cancel:E}}}var g1=m1;const y1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(y1).forEach(([P,E])=>{y1[E]=P});var S1=y1;const L1=function P(E){const I=new h1(E),Z=l(h1.prototype.request,I);return A.extend(Z,h1.prototype,I,{allOwnKeys:!0}),A.extend(Z,I,null,{allOwnKeys:!0}),Z.create=function(Q){return P(u4(E,Q))},Z}($1);L1.Axios=h1,L1.CanceledError=U1,L1.CancelToken=g1,L1.isCancel=_1,L1.VERSION="1.6.8",L1.toFormData=z1,L1.AxiosError=R,L1.Cancel=L1.CanceledError,L1.all=function(P){return Promise.all(P)},L1.spread=function(P){return function(E){return P.apply(null,E)}},L1.isAxiosError=function(P){return A.isObject(P)&&P.isAxiosError===!0},L1.mergeConfig=u4,L1.AxiosHeaders=i1,L1.formToJSON=P=>c2(A.isHTMLForm(P)?new FormData(P):P),L1.getAdapter=Q4,L1.HttpStatusCode=S1,L1.default=L1,r.exports=L1}},c={};function n(r){var i=c[r];if(i!==void 0)return i.exports;var s=c[r]={exports:{}};return a[r].call(s.exports,s,s.exports,n),s.exports}return n.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),n(927)})())})(eT);var ue=eT.exports,Z0;let N4=(Z0=class{constructor(t){k1(this,"config");this.config=t}static init(t){if(Z0.instance)throw new Error("Config is already initialized");Z0.instance=new Z0(t)}static getConfig(){if(!Z0.instance)throw new Error("Config is not initialized. Call init() first.");return Z0.instance.config}},k1(Z0,"instance"),Z0);const b0=Ge.defineStore("pga-app-options",()=>{const e=o.ref(!1),t=o.ref({language:"es",theme:"light"}),a=o.computed({get(){return t.value.language},set(l){t.value.language=l}}),c=o.computed({get(){return t.value.theme},set(l){t.value.theme=l}});o.watch(c,()=>Gy());function n(l){e.value||(e.value=!0,t.value=ue.mergeDeep(t.value,l))}function r(l){a.value=l}function i(l){c.value=l}function s(){c.value=c.value==="light"?"dark":"light"}return{options:t,language:a,theme:c,init:n,setLanguage:r,setTheme:i,changeTheme:s}},{persist:!0}),T6=Ge.defineStore("pga-route",()=>{const e=o.ref(),t=o.ref(!mi()),a=o.ref(!1),c=o.computed(()=>e.value&&kE(e.value)),n=o.computed(()=>c.value&&e.value&&Vs(c.value,e.value.name)),r=o.computed(()=>e.value&&e.value.meta),i=o.computed(()=>{var d;return(d=r.value)==null?void 0:d.access}),s=o.computed(()=>{var d;return b4((d=r.value)==null?void 0:d.description)}),l=o.computed(()=>{var d;return!!b4((d=r.value)==null?void 0:d.preventDisplayNavigationBars)}),f=o.computed(()=>!l.value&&t.value),u=o.computed(()=>{var d;return!!b4((d=r.value)==null?void 0:d.useFullPage)}),h=o.computed(()=>{var d;return!!b4((d=r.value)==null?void 0:d.paddingX)});return{currentRoute:e,isSideBarOpen:t,isDisplayingBanner:a,routeType:c,routeTitle:n,routeMeta:r,routeAccess:i,routeDescription:s,preventDisplayNavigationBars:l,isDisplayingSideBar:f,useFullPage:u,paddingX:h}});function tT(){var c;const e=N4.getConfig().stores.useAuthStore(),t=T6().routeType,a=`auth${ue.getFirstChartInUppercase(t)}`;return((c=e[a])==null?void 0:c.accessToken)||""}async function aT(e,t,a){const c=N4.getConfig(),n=c.stores.useAuthStore(),r=`${e}s/login`,i={basicAuth:t,isLoadingRef:a==null?void 0:a.isLoadingRef},s=await c.api.postOne(r,void 0,i);n.setAuthUser(e,s.data);const l={name:(a==null?void 0:a.redirectToName)||c.defaultRoutes[e].auth};c.router.push(l)}async function cT(){const e=N4.getConfig(),t=e.stores.useAuthStore(),a=T6().routeType;try{const c=`${a}s/validateAccessToken`,n=await e.api.getOne(c,void 0,void 0,{preventDisplayError:!0});t.setAuthUser(a,n.data)}catch{t.setAuthUser(a,null)}}function S51(e){const t=N4.getConfig();t.stores.useAuthStore().setAuthUser(e,null);const c={name:`login${ue.getFirstChartInUppercase(e)}`};t.router.push(c)}function Sl(e,t,a){const c=document.querySelector(":root"),n="--pga-",r=a!=null&&a.preventConvertToKebab?e:ue.camelToKebab(e);c.style.setProperty(`${n}${r}`,t)}function oi(e){const t=e?"visible":"hidden";document.body.style.overflow=t}function A51(e,t,a="animate__"){return new Promise(c=>{const n=`${a}${t}`,r=document.querySelector(e);if(!r)return;r.classList.add(`${a}animated`,n);const i=s=>{s.stopPropagation(),r==null||r.classList.remove(`${a}animated`,n),c("Animation ended")};r.addEventListener("animationend",i,{once:!0})})}function bs(e){return Object.keys(vy).includes(e)}function nT(e,t){let a=0,c=0,n=0,r=0;if(e.startsWith("rgb")||e.startsWith("rgba")){const s=e.replace(/rgba?\((.*?)\)/,"$1").replace(/\s/g,""),[,l,f,u,h="1"]=s.match(/(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?/);a=parseInt(l),c=parseInt(f),n=parseInt(u),r=parseFloat(h)}if(e.startsWith("#")){let s=e;s.length===4&&(s="#"+s[1]+s[1]+s[2]+s[2]+s[3]+s[3]);let[,l,f,u,h]=s.match(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i).map((d,m)=>m===4?parseInt(d,16)/255:parseInt(d,16));h=h?parseFloat(h.toFixed(3)):1,a=l,c=f,n=u,r=h}const i=t/100;return`rgba(${a}, ${c}, ${n}, ${r*i})`}function Ip(e,t){const c=`color-${ue.camelToKebab(e)}`,n={preventConvertToKebab:!0};Sl(c,t,n);for(let r=5;r<=95;r+=5){const i=r<10?`0${r}`:r%10===0?`${r/10}`:`${r}`;Sl(`${c}-0${i}`,nT(t,r),n)}}function N51(){const e=gy,t=Math.floor(Math.random()*Object.keys(e).length);return e[Object.keys(e)[t]]}const T51={es:{successfulLogout:"¡Vuelva pronto!"}},E51={es:{today:"Hoy",tomorrow:"Mañana",yesterday:"Ayer"}},O51={es:{alertTitle:"¿Estás seguro?",cancelBtn:"Cancelar",acceptBtn:"Eliminar"}},D51={es:{INTERNAL_SERVER_ERROR:"Ocurrió un error inesperado. Intente nuevamente.",DUPLICATE_KEY:"El registro ya existe.",FOREIGN_KEY_INTEGRITY:"El registro relacionado no existe.",MODELS_ASSOCIATED:"No se puede eliminar porque tiene registros asociados.",INVALID_INPUT_DATA:"Los datos ingresados no son válidos.",ENTITY_NOT_FOUND:"El registro no existe.",VOUCHER_CREATION_FAILED:"No se pudo emitir la factura.",INVALID_CREDENTIALS:"Usuario o contraseña incorrectos.",UNAUTHORIZED:"No tiene permisos para realizar esta acción."}},P51={es:{_LOGIN:"¡Bienvenido!"}},B51={es:{backBtn:"Volver",copyBtn:"Copiar",textCopied:"Copiado",deleteBtn:"Eliminar",confirmDeleteText:"",editBtn:"Editar",logoutBtn:"Cerrar sesión",navigateToBtn:"Ver más",seeDetailsBtn:"Detalles"}},R51={es:{createEvent:"Nuevo evento",day:"Día",week:"Semana",month:"Mes",configModalTitle:"Ajustes de visualización",configBtn:"Ajustes",displayWeekends:"Mostrar fines de semana",timeFrom:"Hora de inicio",timeTo:"Hora de fin",timeStep:"Intervalo (min)",timeFromDescription:"Indica la hora a la que empezará a mostrarse el calendario.",timeToDescription:"Indica la hora a la que terminará de mostrarse el calendario.",timeStepDescription:"Determina en bloques de cuántos minutos se divide la cuadrícula.",errorTimeRange:"La hora de fin debe ser posterior a la de inicio.",applyBtn:"Aplicar"}},F51={es:{noItemsText:"No hay resultados",noItemsDescriptionText:"Intenta ajustar los filtros de búsqueda o crear un nuevo registro.",showAll:"Mostrar todo",hide:"Ocultar"}},I51={es:{savedMsg:"Guardado",saveErrorMsg:"Texto demasiado largo"}},$51={es:{selectImages:"Seleccionar imágenes",confirmDeleteImage:"La imagen se eliminará permanentemente.",maxImagesQuantityAlert:"Solo puede cargar {maxQuantity} imágenes",selectVideos:"Seleccionar videos",confirmDeleteVideo:"El video se eliminará permanentemente.",maxVideosQuantityAlert:"Solo puede cargar {maxQuantity} videos"}},j51={es:{submitBtn:"Guardar",selectFileLabel:"Seleccionar archivo",selectFilesLabel:"Seleccionar archivos",removeBtn:"Eliminar archivo",newFileError:"Formato inválido",requiredLabel:"Requerido",optionalLabel:"Opcional",usernameLabel:"Usuario",passwordLabel:"Contraseña",loginBtn:"Iniciar sesión",emptyOptionsText:"No hay opciones",cancelBtn:"Cancelar",selectBtn:"Seleccionar"}},q51={es:{header:{switchToLightMode:"Cambiar a modo claro",switchToDarkMode:"Cambiar a modo oscuro"},footer:{allRightsReserved:"Todos los derechos reservados",designedBy:"Diseñado por"},notFound:{title:"404",subtitle:"Esta no es la página que estás buscando.",goBackBtn:"Volver al inicio"}}},U51={es:{cancelBtn:"Cancelar",acceptBtn:"Guardar"}},W51={es:{columnTitleActions:"",selectAllBtn:"Seleccionar todo",withTheSelectedItemsText:"Con los seleccionados:",filtersBtn:"Filtros",filtersModalTitle:"Filtros",confirmDeleteText:'¿Eliminar "{description}"?'}},Y51={es:{removeAllBtn:"Eliminar todo"}},G51={es:{requiredRuleError:"Campo requerido",minLengthRuleError:"Longitud mínima: {length} caracteres",maxLengthRuleError:"Longitud máxima: {length} caracteres",integerRuleError:"Ingrese un valor entero",lessEqualRuleError:"Ingrese un valor menor o igual a {number}",greaterEqualRuleError:"Ingrese un valor mayor o igual a {number}",lessThanRuleError:"Ingrese un valor menor a {number}",greaterThanRuleError:"Ingrese un valor mayor a {number}"}},Z51={authHelpers:T51,datetime:E51,alert:O51,apiConnectionsError:D51,apiConnectionsSuccess:P51,pgaButton:B51,pgaCalendar:R51,pgaDisplay:F51,pgaEditor:I51,pgaFile:$51,pgaForm:j51,pgaLayout:q51,pgaModal:U51,pgaTable:W51,notifications:Y51,validations:G51};function rT(e){function t(a,c){return function(n,r,i){var y;const s=b0().language,l=e==null?void 0:e[a],f=l==null?void 0:l[s],u=c?c.split(".").reduce((b,x)=>b==null?void 0:b[x],f):f,h=(y=e==null?void 0:e.global)==null?void 0:y[s],d=n,m=(u==null?void 0:u[d])||(h==null?void 0:h[d])||"",v=(r==null?void 0:r.count)||1,p=m.split("|").map(b=>b.trim());let g=p[0];p.length===2?g=v===1?p[0]:p[1]:p.length===3&&(g=v===0?p[0]:v===1?p[1]:p[2]),g=g.replace(new RegExp("{count}","g"),v.toString());for(const b in r||{})b!=="count"&&r[b]!==void 0&&r[b]!==null&&(g=g.replace(new RegExp(`{${b}}`,"g"),r[b].toString()));return i!=null&&i.singular?g=p[0]:i!=null&&i.plural&&p.length===2&&(g=p[1]),i!=null&&i.lowercase?g.toLowerCase():i!=null&&i.uppercase?g.toUpperCase():i!=null&&i.capitalize?`${g.charAt(0).toUpperCase()}${g.slice(1).toLowerCase()}`:g}}return t}const I2=rT(Z51),Hd=I2("datetime");function z0(e,t){if(!e)return"-";const c={...{format:"short",withoutYear:!1,withoutDay:!1,withTime:!0,justTime:!1},...t},n={year:c.withoutYear||c.justTime?void 0:"numeric",month:c.justTime?void 0:c.format==="numeric"?"2-digit":c.format,day:c.withoutDay||c.justTime?void 0:"2-digit",weekday:c.withoutDay||c.justTime||c.format==="numeric"?void 0:c.format,hour:c.withTime||c.justTime?"2-digit":void 0,minute:c.withTime||c.justTime?"2-digit":void 0},r=e.toLocaleString(b0().language,n);return r.charAt(0).toUpperCase()+r.slice(1)}function X51(e){return z0(e,{format:"short",withoutDay:!0,withTime:!1})}function nr(e){return z0(e,{format:"numeric",withTime:!1})}function $p(e,{format:t}={format:"long"}){if(!e)return"";const a=nr(e),c=new Date,n=new Date(c);n.setDate(c.getDate()+1);const r=new Date(c);if(r.setDate(c.getDate()-1),a===nr(c))return Hd("today");if(a===nr(n))return Hd("tomorrow");if(a===nr(r))return Hd("yesterday");const i={format:t,withTime:!1};return e.getFullYear()===c.getFullYear()?z0(e,{...i,withoutYear:!0}):z0(e,i)}function iT(e){return z0(e,{justTime:!0})}function sT(e,t){return function(){return e.apply(t,arguments)}}const{toString:K51}=Object.prototype,{getPrototypeOf:yy}=Object,su=(e=>t=>{const a=K51.call(t);return e[a]||(e[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),L0=e=>(e=e.toLowerCase(),t=>su(t)===e),ou=e=>t=>typeof t===e,{isArray:K7}=Array,li=ou("undefined");function Q51(e){return e!==null&&!li(e)&&e.constructor!==null&&!li(e.constructor)&&r6(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const oT=L0("ArrayBuffer");function J51(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&oT(e.buffer),t}const ea1=ou("string"),r6=ou("function"),lT=ou("number"),lu=e=>e!==null&&typeof e=="object",ta1=e=>e===!0||e===!1,W9=e=>{if(su(e)!=="object")return!1;const t=yy(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},aa1=L0("Date"),ca1=L0("File"),na1=L0("Blob"),ra1=L0("FileList"),ia1=e=>lu(e)&&r6(e.pipe),sa1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||r6(e.append)&&((t=su(e))==="formdata"||t==="object"&&r6(e.toString)&&e.toString()==="[object FormData]"))},oa1=L0("URLSearchParams"),[la1,fa1,ua1,ha1]=["ReadableStream","Request","Response","Headers"].map(L0),da1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zs(e,t,{allOwnKeys:a=!1}={}){if(e===null||typeof e>"u")return;let c,n;if(typeof e!="object"&&(e=[e]),K7(e))for(c=0,n=e.length;c<n;c++)t.call(null,e[c],c,e);else{const r=a?Object.getOwnPropertyNames(e):Object.keys(e),i=r.length;let s;for(c=0;c<i;c++)s=r[c],t.call(null,e[s],s,e)}}function fT(e,t){t=t.toLowerCase();const a=Object.keys(e);let c=a.length,n;for(;c-- >0;)if(n=a[c],t===n.toLowerCase())return n;return null}const ba=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),uT=e=>!li(e)&&e!==ba;function jp(){const{caseless:e}=uT(this)&&this||{},t={},a=(c,n)=>{const r=e&&fT(t,n)||n;W9(t[r])&&W9(c)?t[r]=jp(t[r],c):W9(c)?t[r]=jp({},c):K7(c)?t[r]=c.slice():t[r]=c};for(let c=0,n=arguments.length;c<n;c++)arguments[c]&&zs(arguments[c],a);return t}const ma1=(e,t,a,{allOwnKeys:c}={})=>(zs(t,(n,r)=>{a&&r6(n)?e[r]=sT(n,a):e[r]=n},{allOwnKeys:c}),e),pa1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),va1=(e,t,a,c)=>{e.prototype=Object.create(t.prototype,c),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),a&&Object.assign(e.prototype,a)},ga1=(e,t,a,c)=>{let n,r,i;const s={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),r=n.length;r-- >0;)i=n[r],(!c||c(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=a!==!1&&yy(e)}while(e&&(!a||a(e,t))&&e!==Object.prototype);return t},ya1=(e,t,a)=>{e=String(e),(a===void 0||a>e.length)&&(a=e.length),a-=t.length;const c=e.indexOf(t,a);return c!==-1&&c===a},ba1=e=>{if(!e)return null;if(K7(e))return e;let t=e.length;if(!lT(t))return null;const a=new Array(t);for(;t-- >0;)a[t]=e[t];return a},za1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&yy(Uint8Array)),xa1=(e,t)=>{const c=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=c.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},Ma1=(e,t)=>{let a;const c=[];for(;(a=e.exec(t))!==null;)c.push(a);return c},Ca1=L0("HTMLFormElement"),Ha1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,c,n){return c.toUpperCase()+n}),bH=(({hasOwnProperty:e})=>(t,a)=>e.call(t,a))(Object.prototype),Va1=L0("RegExp"),hT=(e,t)=>{const a=Object.getOwnPropertyDescriptors(e),c={};zs(a,(n,r)=>{let i;(i=t(n,r,e))!==!1&&(c[r]=i||n)}),Object.defineProperties(e,c)},wa1=e=>{hT(e,(t,a)=>{if(r6(e)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const c=e[a];if(r6(c)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},_a1=(e,t)=>{const a={},c=n=>{n.forEach(r=>{a[r]=!0})};return K7(e)?c(e):c(String(e).split(t)),a},La1=()=>{},ka1=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Vd="abcdefghijklmnopqrstuvwxyz",zH="0123456789",dT={DIGIT:zH,ALPHA:Vd,ALPHA_DIGIT:Vd+Vd.toUpperCase()+zH},Sa1=(e=16,t=dT.ALPHA_DIGIT)=>{let a="";const{length:c}=t;for(;e--;)a+=t[Math.random()*c|0];return a};function Aa1(e){return!!(e&&r6(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Na1=e=>{const t=new Array(10),a=(c,n)=>{if(lu(c)){if(t.indexOf(c)>=0)return;if(!("toJSON"in c)){t[n]=c;const r=K7(c)?[]:{};return zs(c,(i,s)=>{const l=a(i,n+1);!li(l)&&(r[s]=l)}),t[n]=void 0,r}}return c};return a(e,0)},Ta1=L0("AsyncFunction"),Ea1=e=>e&&(lu(e)||r6(e))&&r6(e.then)&&r6(e.catch),mT=((e,t)=>e?setImmediate:t?((a,c)=>(ba.addEventListener("message",({source:n,data:r})=>{n===ba&&r===a&&c.length&&c.shift()()},!1),n=>{c.push(n),ba.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",r6(ba.postMessage)),Oa1=typeof queueMicrotask<"u"?queueMicrotask.bind(ba):typeof process<"u"&&process.nextTick||mT,N1={isArray:K7,isArrayBuffer:oT,isBuffer:Q51,isFormData:sa1,isArrayBufferView:J51,isString:ea1,isNumber:lT,isBoolean:ta1,isObject:lu,isPlainObject:W9,isReadableStream:la1,isRequest:fa1,isResponse:ua1,isHeaders:ha1,isUndefined:li,isDate:aa1,isFile:ca1,isBlob:na1,isRegExp:Va1,isFunction:r6,isStream:ia1,isURLSearchParams:oa1,isTypedArray:za1,isFileList:ra1,forEach:zs,merge:jp,extend:ma1,trim:da1,stripBOM:pa1,inherits:va1,toFlatObject:ga1,kindOf:su,kindOfTest:L0,endsWith:ya1,toArray:ba1,forEachEntry:xa1,matchAll:Ma1,isHTMLForm:Ca1,hasOwnProperty:bH,hasOwnProp:bH,reduceDescriptors:hT,freezeMethods:wa1,toObjectSet:_a1,toCamelCase:Ha1,noop:La1,toFiniteNumber:ka1,findKey:fT,global:ba,isContextDefined:uT,ALPHABET:dT,generateString:Sa1,isSpecCompliantForm:Aa1,toJSONObject:Na1,isAsyncFn:Ta1,isThenable:Ea1,setImmediate:mT,asap:Oa1};function z2(e,t,a,c,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),a&&(this.config=a),c&&(this.request=c),n&&(this.response=n,this.status=n.status?n.status:null)}N1.inherits(z2,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:N1.toJSONObject(this.config),code:this.code,status:this.status}}});const pT=z2.prototype,vT={};["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=>{vT[e]={value:e}});Object.defineProperties(z2,vT);Object.defineProperty(pT,"isAxiosError",{value:!0});z2.from=(e,t,a,c,n,r)=>{const i=Object.create(pT);return N1.toFlatObject(e,i,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),z2.call(i,e.message,t,a,c,n),i.cause=e,i.name=e.name,r&&Object.assign(i,r),i};const Da1=null;function qp(e){return N1.isPlainObject(e)||N1.isArray(e)}function gT(e){return N1.endsWith(e,"[]")?e.slice(0,-2):e}function xH(e,t,a){return e?e.concat(t).map(function(n,r){return n=gT(n),!a&&r?"["+n+"]":n}).join(a?".":""):t}function Pa1(e){return N1.isArray(e)&&!e.some(qp)}const Ba1=N1.toFlatObject(N1,{},null,function(t){return/^is[A-Z]/.test(t)});function fu(e,t,a){if(!N1.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,a=N1.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,g){return!N1.isUndefined(g[p])});const c=a.metaTokens,n=a.visitor||u,r=a.dots,i=a.indexes,l=(a.Blob||typeof Blob<"u"&&Blob)&&N1.isSpecCompliantForm(t);if(!N1.isFunction(n))throw new TypeError("visitor must be a function");function f(v){if(v===null)return"";if(N1.isDate(v))return v.toISOString();if(!l&&N1.isBlob(v))throw new z2("Blob is not supported. Use a Buffer instead.");return N1.isArrayBuffer(v)||N1.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function u(v,p,g){let y=v;if(v&&!g&&typeof v=="object"){if(N1.endsWith(p,"{}"))p=c?p:p.slice(0,-2),v=JSON.stringify(v);else if(N1.isArray(v)&&Pa1(v)||(N1.isFileList(v)||N1.endsWith(p,"[]"))&&(y=N1.toArray(v)))return p=gT(p),y.forEach(function(x,z){!(N1.isUndefined(x)||x===null)&&t.append(i===!0?xH([p],z,r):i===null?p:p+"[]",f(x))}),!1}return qp(v)?!0:(t.append(xH(g,p,r),f(v)),!1)}const h=[],d=Object.assign(Ba1,{defaultVisitor:u,convertValue:f,isVisitable:qp});function m(v,p){if(!N1.isUndefined(v)){if(h.indexOf(v)!==-1)throw Error("Circular reference detected in "+p.join("."));h.push(v),N1.forEach(v,function(y,b){(!(N1.isUndefined(y)||y===null)&&n.call(t,y,N1.isString(b)?b.trim():b,p,d))===!0&&m(y,p?p.concat(b):[b])}),h.pop()}}if(!N1.isObject(e))throw new TypeError("data must be an object");return m(e),t}function MH(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(c){return t[c]})}function by(e,t){this._pairs=[],e&&fu(e,this,t)}const yT=by.prototype;yT.append=function(t,a){this._pairs.push([t,a])};yT.toString=function(t){const a=t?function(c){return t.call(this,c,MH)}:MH;return this._pairs.map(function(n){return a(n[0])+"="+a(n[1])},"").join("&")};function Ra1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function bT(e,t,a){if(!t)return e;const c=a&&a.encode||Ra1;N1.isFunction(a)&&(a={serialize:a});const n=a&&a.serialize;let r;if(n?r=n(t,a):r=N1.isURLSearchParams(t)?t.toString():new by(t,a).toString(c),r){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class Fa1{constructor(){this.handlers=[]}use(t,a,c){return this.handlers.push({fulfilled:t,rejected:a,synchronous:c?c.synchronous:!1,runWhen:c?c.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){N1.forEach(this.handlers,function(c){c!==null&&t(c)})}}const CH=Fa1,zT={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ia1=typeof URLSearchParams<"u"?URLSearchParams:by,$a1=typeof FormData<"u"?FormData:null,ja1=typeof Blob<"u"?Blob:null,qa1={isBrowser:!0,classes:{URLSearchParams:Ia1,FormData:$a1,Blob:ja1},protocols:["http","https","file","blob","url","data"]},zy=typeof window<"u"&&typeof document<"u",Up=typeof navigator=="object"&&navigator||void 0,Ua1=zy&&(!Up||["ReactNative","NativeScript","NS"].indexOf(Up.product)<0),Wa1=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ya1=zy&&window.location.href||"http://localhost",Ga1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:zy,hasStandardBrowserEnv:Ua1,hasStandardBrowserWebWorkerEnv:Wa1,navigator:Up,origin:Ya1},Symbol.toStringTag,{value:"Module"})),he={...Ga1,...qa1};function Za1(e,t){return fu(e,new he.classes.URLSearchParams,Object.assign({visitor:function(a,c,n,r){return he.isNode&&N1.isBuffer(a)?(this.append(c,a.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function Xa1(e){return N1.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ka1(e){const t={},a=Object.keys(e);let c;const n=a.length;let r;for(c=0;c<n;c++)r=a[c],t[r]=e[r];return t}function xT(e){function t(a,c,n,r){let i=a[r++];if(i==="__proto__")return!0;const s=Number.isFinite(+i),l=r>=a.length;return i=!i&&N1.isArray(n)?n.length:i,l?(N1.hasOwnProp(n,i)?n[i]=[n[i],c]:n[i]=c,!s):((!n[i]||!N1.isObject(n[i]))&&(n[i]=[]),t(a,c,n[i],r)&&N1.isArray(n[i])&&(n[i]=Ka1(n[i])),!s)}if(N1.isFormData(e)&&N1.isFunction(e.entries)){const a={};return N1.forEachEntry(e,(c,n)=>{t(Xa1(c),n,a,0)}),a}return null}function Qa1(e,t,a){if(N1.isString(e))try{return(t||JSON.parse)(e),N1.trim(e)}catch(c){if(c.name!=="SyntaxError")throw c}return(a||JSON.stringify)(e)}const xy={transitional:zT,adapter:["xhr","http","fetch"],transformRequest:[function(t,a){const c=a.getContentType()||"",n=c.indexOf("application/json")>-1,r=N1.isObject(t);if(r&&N1.isHTMLForm(t)&&(t=new FormData(t)),N1.isFormData(t))return n?JSON.stringify(xT(t)):t;if(N1.isArrayBuffer(t)||N1.isBuffer(t)||N1.isStream(t)||N1.isFile(t)||N1.isBlob(t)||N1.isReadableStream(t))return t;if(N1.isArrayBufferView(t))return t.buffer;if(N1.isURLSearchParams(t))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(r){if(c.indexOf("application/x-www-form-urlencoded")>-1)return Za1(t,this.formSerializer).toString();if((s=N1.isFileList(t))||c.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return fu(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return r||n?(a.setContentType("application/json",!1),Qa1(t)):t}],transformResponse:[function(t){const a=this.transitional||xy.transitional,c=a&&a.forcedJSONParsing,n=this.responseType==="json";if(N1.isResponse(t)||N1.isReadableStream(t))return t;if(t&&N1.isString(t)&&(c&&!this.responseType||n)){const i=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?z2.from(s,z2.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:he.classes.FormData,Blob:he.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};N1.forEach(["delete","get","head","post","put","patch"],e=>{xy.headers[e]={}});const My=xy,Ja1=N1.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"]),ec1=e=>{const t={};let a,c,n;return e&&e.split(`
|
|
6
|
+
`+c1):Z.stack=c1}throw Z}}_request(E,I){typeof E=="string"?(I=I||{}).url=E:I=E||{},I=u4(this.defaults,I);const{transitional:Z,paramsSerializer:Q,headers:c1}=I;Z!==void 0&&Ve.assertOptions(Z,{silentJSONParsing:n1.transitional(n1.boolean),forcedJSONParsing:n1.transitional(n1.boolean),clarifyTimeoutError:n1.transitional(n1.boolean)},!1),Q!=null&&(A.isFunction(Q)?I.paramsSerializer={serialize:Q}:Ve.assertOptions(Q,{encode:n1.function,serialize:n1.function},!0)),I.method=(I.method||this.defaults.method||"get").toLowerCase();let t1=c1&&A.merge(c1.common,c1[I.method]);c1&&A.forEach(["delete","get","head","post","put","patch","common"],P1=>{delete c1[P1]}),I.headers=i1.concat(t1,c1);const M1=[];let V1=!0;this.interceptors.request.forEach(function(P1){typeof P1.runWhen=="function"&&P1.runWhen(I)===!1||(V1=V1&&P1.synchronous,M1.unshift(P1.fulfilled,P1.rejected))});const w1=[];let b1;this.interceptors.response.forEach(function(P1){w1.push(P1.fulfilled,P1.rejected)});let D1,O1=0;if(!V1){const P1=[Ze.bind(this),void 0];for(P1.unshift.apply(P1,M1),P1.push.apply(P1,w1),D1=P1.length,b1=Promise.resolve(I);O1<D1;)b1=b1.then(P1[O1++],P1[O1++]);return b1}D1=M1.length;let G1=I;for(O1=0;O1<D1;){const P1=M1[O1++],Q1=M1[O1++];try{G1=P1(G1)}catch(p2){Q1.call(this,p2);break}}try{b1=Ze.call(this,G1)}catch(P1){return Promise.reject(P1)}for(O1=0,D1=w1.length;O1<D1;)b1=b1.then(w1[O1++],w1[O1++]);return b1}getUri(E){return d1(L2((E=u4(this.defaults,E)).baseURL,E.url),E.params,E.paramsSerializer)}}A.forEach(["delete","get","head","options"],function(P){v1.prototype[P]=function(E,I){return this.request(u4(I||{},{method:P,url:E,data:(I||{}).data}))}}),A.forEach(["post","put","patch"],function(P){function E(I){return function(Z,Q,c1){return this.request(u4(c1||{},{method:P,headers:I?{"Content-Type":"multipart/form-data"}:{},url:Z,data:Q}))}}v1.prototype[P]=E(),v1.prototype[P+"Form"]=E(!0)});var h1=v1;class m1{constructor(E){if(typeof E!="function")throw new TypeError("executor must be a function.");let I;this.promise=new Promise(function(Q){I=Q});const Z=this;this.promise.then(Q=>{if(!Z._listeners)return;let c1=Z._listeners.length;for(;c1-- >0;)Z._listeners[c1](Q);Z._listeners=null}),this.promise.then=Q=>{let c1;const t1=new Promise(M1=>{Z.subscribe(M1),c1=M1}).then(Q);return t1.cancel=function(){Z.unsubscribe(c1)},t1},E(function(Q,c1,t1){Z.reason||(Z.reason=new U1(Q,c1,t1),I(Z.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(E){this.reason?E(this.reason):this._listeners?this._listeners.push(E):this._listeners=[E]}unsubscribe(E){if(!this._listeners)return;const I=this._listeners.indexOf(E);I!==-1&&this._listeners.splice(I,1)}static source(){let E;return{token:new m1(function(I){E=I}),cancel:E}}}var g1=m1;const y1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(y1).forEach(([P,E])=>{y1[E]=P});var S1=y1;const L1=function P(E){const I=new h1(E),Z=l(h1.prototype.request,I);return A.extend(Z,h1.prototype,I,{allOwnKeys:!0}),A.extend(Z,I,null,{allOwnKeys:!0}),Z.create=function(Q){return P(u4(E,Q))},Z}($1);L1.Axios=h1,L1.CanceledError=U1,L1.CancelToken=g1,L1.isCancel=_1,L1.VERSION="1.6.8",L1.toFormData=z1,L1.AxiosError=R,L1.Cancel=L1.CanceledError,L1.all=function(P){return Promise.all(P)},L1.spread=function(P){return function(E){return P.apply(null,E)}},L1.isAxiosError=function(P){return A.isObject(P)&&P.isAxiosError===!0},L1.mergeConfig=u4,L1.AxiosHeaders=i1,L1.formToJSON=P=>c2(A.isHTMLForm(P)?new FormData(P):P),L1.getAdapter=Q4,L1.HttpStatusCode=S1,L1.default=L1,r.exports=L1}},c={};function n(r){var i=c[r];if(i!==void 0)return i.exports;var s=c[r]={exports:{}};return a[r].call(s.exports,s,s.exports,n),s.exports}return n.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),n(927)})())})(eT);var ue=eT.exports,Z0;let N4=(Z0=class{constructor(t){k1(this,"config");this.config=t}static init(t){if(Z0.instance)throw new Error("Config is already initialized");Z0.instance=new Z0(t)}static getConfig(){if(!Z0.instance)throw new Error("Config is not initialized. Call init() first.");return Z0.instance.config}},k1(Z0,"instance"),Z0);const b0=Ge.defineStore("pga-app-options",()=>{const e=o.ref(!1),t=o.ref({language:"es",theme:"light"}),a=o.computed({get(){return t.value.language},set(l){t.value.language=l}}),c=o.computed({get(){return t.value.theme},set(l){t.value.theme=l}});o.watch(c,()=>Gy());function n(l){e.value||(e.value=!0,t.value=ue.mergeDeep(t.value,l))}function r(l){a.value=l}function i(l){c.value=l}function s(){c.value=c.value==="light"?"dark":"light"}return{options:t,language:a,theme:c,init:n,setLanguage:r,setTheme:i,changeTheme:s}},{persist:!0}),T6=Ge.defineStore("pga-route",()=>{const e=o.ref(),t=o.ref(!mi()),a=o.ref(!1),c=o.computed(()=>e.value&&kE(e.value)),n=o.computed(()=>c.value&&e.value&&Vs(c.value,e.value.name)),r=o.computed(()=>e.value&&e.value.meta),i=o.computed(()=>{var d;return(d=r.value)==null?void 0:d.access}),s=o.computed(()=>{var d;return b4((d=r.value)==null?void 0:d.description)}),l=o.computed(()=>{var d;return!!b4((d=r.value)==null?void 0:d.preventDisplayNavigationBars)}),f=o.computed(()=>!l.value&&t.value),u=o.computed(()=>{var d;return!!b4((d=r.value)==null?void 0:d.useFullPage)}),h=o.computed(()=>{var d;return!!b4((d=r.value)==null?void 0:d.paddingX)});return{currentRoute:e,isSideBarOpen:t,isDisplayingBanner:a,routeType:c,routeTitle:n,routeMeta:r,routeAccess:i,routeDescription:s,preventDisplayNavigationBars:l,isDisplayingSideBar:f,useFullPage:u,paddingX:h}});function tT(){var c;const e=N4.getConfig().stores.useAuthStore(),t=T6().routeType,a=`auth${ue.getFirstChartInUppercase(t)}`;return((c=e[a])==null?void 0:c.accessToken)||""}async function aT(e,t,a){const c=N4.getConfig(),n=c.stores.useAuthStore(),r=`${e}s/login`,i={basicAuth:t,isLoadingRef:a==null?void 0:a.isLoadingRef},s=await c.api.postOne(r,void 0,i);n.setAuthUser(e,s.data);const l={name:(a==null?void 0:a.redirectToName)||c.defaultRoutes[e].auth};c.router.push(l)}async function cT(){const e=N4.getConfig(),t=e.stores.useAuthStore(),a=T6().routeType;try{const c=`${a}s/validateAccessToken`,n=await e.api.getOne(c,void 0,void 0,{preventDisplayError:!0});t.setAuthUser(a,n.data)}catch{t.setAuthUser(a,null)}}function S51(e){const t=N4.getConfig();t.stores.useAuthStore().setAuthUser(e,null);const c={name:`login${ue.getFirstChartInUppercase(e)}`};t.router.push(c)}function Sl(e,t,a){const c=document.querySelector(":root"),n="--pga-",r=a!=null&&a.preventConvertToKebab?e:ue.camelToKebab(e);c.style.setProperty(`${n}${r}`,t)}function oi(e){const t=e?"visible":"hidden";document.body.style.overflow=t}function A51(e,t,a="animate__"){return new Promise(c=>{const n=`${a}${t}`,r=document.querySelector(e);if(!r)return;r.classList.add(`${a}animated`,n);const i=s=>{s.stopPropagation(),r==null||r.classList.remove(`${a}animated`,n),c("Animation ended")};r.addEventListener("animationend",i,{once:!0})})}function bs(e){return Object.keys(vy).includes(e)}function nT(e,t){let a=0,c=0,n=0,r=0;if(e.startsWith("rgb")||e.startsWith("rgba")){const s=e.replace(/rgba?\((.*?)\)/,"$1").replace(/\s/g,""),[,l,f,u,h="1"]=s.match(/(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?/);a=parseInt(l),c=parseInt(f),n=parseInt(u),r=parseFloat(h)}if(e.startsWith("#")){let s=e;s.length===4&&(s="#"+s[1]+s[1]+s[2]+s[2]+s[3]+s[3]);let[,l,f,u,h]=s.match(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i).map((d,m)=>m===4?parseInt(d,16)/255:parseInt(d,16));h=h?parseFloat(h.toFixed(3)):1,a=l,c=f,n=u,r=h}const i=t/100;return`rgba(${a}, ${c}, ${n}, ${r*i})`}function Ip(e,t){const c=`color-${ue.camelToKebab(e)}`,n={preventConvertToKebab:!0};Sl(c,t,n);for(let r=5;r<=95;r+=5){const i=r<10?`0${r}`:r%10===0?`${r/10}`:`${r}`;Sl(`${c}-0${i}`,nT(t,r),n)}}function N51(){const e=gy,t=Math.floor(Math.random()*Object.keys(e).length);return e[Object.keys(e)[t]]}const T51={es:{successfulLogout:"¡Vuelva pronto!"}},E51={es:{today:"Hoy",tomorrow:"Mañana",yesterday:"Ayer"}},O51={es:{alertTitle:"¿Estás seguro?",cancelBtn:"Cancelar",acceptBtn:"Eliminar"}},D51={es:{INTERNAL_SERVER_ERROR:"Ocurrió un error inesperado. Intente nuevamente.",DUPLICATE_KEY:"El registro ya existe.",FOREIGN_KEY_INTEGRITY:"El registro relacionado no existe.",MODELS_ASSOCIATED:"No se puede eliminar porque tiene registros asociados.",INVALID_INPUT_DATA:"Los datos ingresados no son válidos.",ENTITY_NOT_FOUND:"El registro no existe.",VOUCHER_CREATION_FAILED:"No se pudo emitir la factura.",INVALID_CREDENTIALS:"Usuario o contraseña incorrectos.",UNAUTHORIZED:"No tiene permisos para realizar esta acción."}},P51={es:{_LOGIN:"¡Bienvenido!"}},B51={es:{backBtn:"Volver",copyBtn:"Copiar",textCopied:"Copiado",deleteBtn:"Eliminar",confirmDeleteText:"",editBtn:"Editar",logoutBtn:"Cerrar sesión",navigateToBtn:"Ver más",seeDetailsBtn:"Detalles"}},R51={es:{createEvent:"Nuevo evento",day:"Día",week:"Semana",month:"Mes",configModalTitle:"Ajustes de visualización",configBtn:"Ajustes",displayWeekends:"¿Mostrar fines de semana?",timeFrom:"Hora de inicio",timeTo:"Hora de fin",timeStep:"Intervalo (min)",timeFromDescription:"Indica la hora a la que empezará a mostrarse el calendario.",timeToDescription:"Indica la hora a la que terminará de mostrarse el calendario.",timeStepDescription:"Determina en bloques de cuántos minutos se divide la cuadrícula.",errorTimeRange:"La hora de fin debe ser posterior a la de inicio.",applyBtn:"Aplicar"}},F51={es:{noItemsText:"No hay resultados",noItemsDescriptionText:"Intenta ajustar los filtros de búsqueda o crear un nuevo registro.",showAll:"Mostrar todo",hide:"Ocultar"}},I51={es:{savedMsg:"Guardado",saveErrorMsg:"Texto demasiado largo"}},$51={es:{selectImages:"Seleccionar imágenes",confirmDeleteImage:"La imagen se eliminará permanentemente.",maxImagesQuantityAlert:"Solo puede cargar {maxQuantity} imágenes",selectVideos:"Seleccionar videos",confirmDeleteVideo:"El video se eliminará permanentemente.",maxVideosQuantityAlert:"Solo puede cargar {maxQuantity} videos"}},j51={es:{submitBtn:"Guardar",selectFileLabel:"Seleccionar archivo",selectFilesLabel:"Seleccionar archivos",removeBtn:"Eliminar archivo",newFileError:"Formato inválido",requiredLabel:"Requerido",optionalLabel:"Opcional",usernameLabel:"Usuario",passwordLabel:"Contraseña",loginBtn:"Iniciar sesión",emptyOptionsText:"No hay opciones",cancelBtn:"Cancelar",selectBtn:"Seleccionar"}},q51={es:{header:{switchToLightMode:"Cambiar a modo claro",switchToDarkMode:"Cambiar a modo oscuro"},footer:{allRightsReserved:"Todos los derechos reservados",designedBy:"Diseñado por"},notFound:{title:"404",subtitle:"Esta no es la página que estás buscando.",goBackBtn:"Volver al inicio"}}},U51={es:{cancelBtn:"Cancelar",acceptBtn:"Guardar"}},W51={es:{columnTitleActions:"",selectAllBtn:"Seleccionar todo",withTheSelectedItemsText:"Con los seleccionados:",filtersBtn:"Filtros",filtersModalTitle:"Filtros",confirmDeleteText:'¿Eliminar "{description}"?'}},Y51={es:{removeAllBtn:"Eliminar todo"}},G51={es:{requiredRuleError:"Campo requerido",minLengthRuleError:"Longitud mínima: {length} caracteres",maxLengthRuleError:"Longitud máxima: {length} caracteres",integerRuleError:"Ingrese un valor entero",lessEqualRuleError:"Ingrese un valor menor o igual a {number}",greaterEqualRuleError:"Ingrese un valor mayor o igual a {number}",lessThanRuleError:"Ingrese un valor menor a {number}",greaterThanRuleError:"Ingrese un valor mayor a {number}"}},Z51={authHelpers:T51,datetime:E51,alert:O51,apiConnectionsError:D51,apiConnectionsSuccess:P51,pgaButton:B51,pgaCalendar:R51,pgaDisplay:F51,pgaEditor:I51,pgaFile:$51,pgaForm:j51,pgaLayout:q51,pgaModal:U51,pgaTable:W51,notifications:Y51,validations:G51};function rT(e){function t(a,c){return function(n,r,i){var y;const s=b0().language,l=e==null?void 0:e[a],f=l==null?void 0:l[s],u=c?c.split(".").reduce((b,x)=>b==null?void 0:b[x],f):f,h=(y=e==null?void 0:e.global)==null?void 0:y[s],d=n,m=(u==null?void 0:u[d])||(h==null?void 0:h[d])||"",v=(r==null?void 0:r.count)||1,p=m.split("|").map(b=>b.trim());let g=p[0];p.length===2?g=v===1?p[0]:p[1]:p.length===3&&(g=v===0?p[0]:v===1?p[1]:p[2]),g=g.replace(new RegExp("{count}","g"),v.toString());for(const b in r||{})b!=="count"&&r[b]!==void 0&&r[b]!==null&&(g=g.replace(new RegExp(`{${b}}`,"g"),r[b].toString()));return i!=null&&i.singular?g=p[0]:i!=null&&i.plural&&p.length===2&&(g=p[1]),i!=null&&i.lowercase?g.toLowerCase():i!=null&&i.uppercase?g.toUpperCase():i!=null&&i.capitalize?`${g.charAt(0).toUpperCase()}${g.slice(1).toLowerCase()}`:g}}return t}const I2=rT(Z51),Hd=I2("datetime");function z0(e,t){if(!e)return"-";const c={...{format:"short",withoutYear:!1,withoutDay:!1,withTime:!0,justTime:!1},...t},n={year:c.withoutYear||c.justTime?void 0:"numeric",month:c.justTime?void 0:c.format==="numeric"?"2-digit":c.format,day:c.withoutDay||c.justTime?void 0:"2-digit",weekday:c.withoutDay||c.justTime||c.format==="numeric"?void 0:c.format,hour:c.withTime||c.justTime?"2-digit":void 0,minute:c.withTime||c.justTime?"2-digit":void 0},r=e.toLocaleString(b0().language,n);return r.charAt(0).toUpperCase()+r.slice(1)}function X51(e){return z0(e,{format:"short",withoutDay:!0,withTime:!1})}function nr(e){return z0(e,{format:"numeric",withTime:!1})}function $p(e,{format:t}={format:"long"}){if(!e)return"";const a=nr(e),c=new Date,n=new Date(c);n.setDate(c.getDate()+1);const r=new Date(c);if(r.setDate(c.getDate()-1),a===nr(c))return Hd("today");if(a===nr(n))return Hd("tomorrow");if(a===nr(r))return Hd("yesterday");const i={format:t,withTime:!1};return e.getFullYear()===c.getFullYear()?z0(e,{...i,withoutYear:!0}):z0(e,i)}function iT(e){return z0(e,{justTime:!0})}function sT(e,t){return function(){return e.apply(t,arguments)}}const{toString:K51}=Object.prototype,{getPrototypeOf:yy}=Object,su=(e=>t=>{const a=K51.call(t);return e[a]||(e[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),L0=e=>(e=e.toLowerCase(),t=>su(t)===e),ou=e=>t=>typeof t===e,{isArray:K7}=Array,li=ou("undefined");function Q51(e){return e!==null&&!li(e)&&e.constructor!==null&&!li(e.constructor)&&r6(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const oT=L0("ArrayBuffer");function J51(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&oT(e.buffer),t}const ea1=ou("string"),r6=ou("function"),lT=ou("number"),lu=e=>e!==null&&typeof e=="object",ta1=e=>e===!0||e===!1,W9=e=>{if(su(e)!=="object")return!1;const t=yy(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},aa1=L0("Date"),ca1=L0("File"),na1=L0("Blob"),ra1=L0("FileList"),ia1=e=>lu(e)&&r6(e.pipe),sa1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||r6(e.append)&&((t=su(e))==="formdata"||t==="object"&&r6(e.toString)&&e.toString()==="[object FormData]"))},oa1=L0("URLSearchParams"),[la1,fa1,ua1,ha1]=["ReadableStream","Request","Response","Headers"].map(L0),da1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zs(e,t,{allOwnKeys:a=!1}={}){if(e===null||typeof e>"u")return;let c,n;if(typeof e!="object"&&(e=[e]),K7(e))for(c=0,n=e.length;c<n;c++)t.call(null,e[c],c,e);else{const r=a?Object.getOwnPropertyNames(e):Object.keys(e),i=r.length;let s;for(c=0;c<i;c++)s=r[c],t.call(null,e[s],s,e)}}function fT(e,t){t=t.toLowerCase();const a=Object.keys(e);let c=a.length,n;for(;c-- >0;)if(n=a[c],t===n.toLowerCase())return n;return null}const ba=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),uT=e=>!li(e)&&e!==ba;function jp(){const{caseless:e}=uT(this)&&this||{},t={},a=(c,n)=>{const r=e&&fT(t,n)||n;W9(t[r])&&W9(c)?t[r]=jp(t[r],c):W9(c)?t[r]=jp({},c):K7(c)?t[r]=c.slice():t[r]=c};for(let c=0,n=arguments.length;c<n;c++)arguments[c]&&zs(arguments[c],a);return t}const ma1=(e,t,a,{allOwnKeys:c}={})=>(zs(t,(n,r)=>{a&&r6(n)?e[r]=sT(n,a):e[r]=n},{allOwnKeys:c}),e),pa1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),va1=(e,t,a,c)=>{e.prototype=Object.create(t.prototype,c),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),a&&Object.assign(e.prototype,a)},ga1=(e,t,a,c)=>{let n,r,i;const s={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),r=n.length;r-- >0;)i=n[r],(!c||c(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=a!==!1&&yy(e)}while(e&&(!a||a(e,t))&&e!==Object.prototype);return t},ya1=(e,t,a)=>{e=String(e),(a===void 0||a>e.length)&&(a=e.length),a-=t.length;const c=e.indexOf(t,a);return c!==-1&&c===a},ba1=e=>{if(!e)return null;if(K7(e))return e;let t=e.length;if(!lT(t))return null;const a=new Array(t);for(;t-- >0;)a[t]=e[t];return a},za1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&yy(Uint8Array)),xa1=(e,t)=>{const c=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=c.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},Ma1=(e,t)=>{let a;const c=[];for(;(a=e.exec(t))!==null;)c.push(a);return c},Ca1=L0("HTMLFormElement"),Ha1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,c,n){return c.toUpperCase()+n}),bH=(({hasOwnProperty:e})=>(t,a)=>e.call(t,a))(Object.prototype),Va1=L0("RegExp"),hT=(e,t)=>{const a=Object.getOwnPropertyDescriptors(e),c={};zs(a,(n,r)=>{let i;(i=t(n,r,e))!==!1&&(c[r]=i||n)}),Object.defineProperties(e,c)},wa1=e=>{hT(e,(t,a)=>{if(r6(e)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const c=e[a];if(r6(c)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},_a1=(e,t)=>{const a={},c=n=>{n.forEach(r=>{a[r]=!0})};return K7(e)?c(e):c(String(e).split(t)),a},La1=()=>{},ka1=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Vd="abcdefghijklmnopqrstuvwxyz",zH="0123456789",dT={DIGIT:zH,ALPHA:Vd,ALPHA_DIGIT:Vd+Vd.toUpperCase()+zH},Sa1=(e=16,t=dT.ALPHA_DIGIT)=>{let a="";const{length:c}=t;for(;e--;)a+=t[Math.random()*c|0];return a};function Aa1(e){return!!(e&&r6(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Na1=e=>{const t=new Array(10),a=(c,n)=>{if(lu(c)){if(t.indexOf(c)>=0)return;if(!("toJSON"in c)){t[n]=c;const r=K7(c)?[]:{};return zs(c,(i,s)=>{const l=a(i,n+1);!li(l)&&(r[s]=l)}),t[n]=void 0,r}}return c};return a(e,0)},Ta1=L0("AsyncFunction"),Ea1=e=>e&&(lu(e)||r6(e))&&r6(e.then)&&r6(e.catch),mT=((e,t)=>e?setImmediate:t?((a,c)=>(ba.addEventListener("message",({source:n,data:r})=>{n===ba&&r===a&&c.length&&c.shift()()},!1),n=>{c.push(n),ba.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",r6(ba.postMessage)),Oa1=typeof queueMicrotask<"u"?queueMicrotask.bind(ba):typeof process<"u"&&process.nextTick||mT,N1={isArray:K7,isArrayBuffer:oT,isBuffer:Q51,isFormData:sa1,isArrayBufferView:J51,isString:ea1,isNumber:lT,isBoolean:ta1,isObject:lu,isPlainObject:W9,isReadableStream:la1,isRequest:fa1,isResponse:ua1,isHeaders:ha1,isUndefined:li,isDate:aa1,isFile:ca1,isBlob:na1,isRegExp:Va1,isFunction:r6,isStream:ia1,isURLSearchParams:oa1,isTypedArray:za1,isFileList:ra1,forEach:zs,merge:jp,extend:ma1,trim:da1,stripBOM:pa1,inherits:va1,toFlatObject:ga1,kindOf:su,kindOfTest:L0,endsWith:ya1,toArray:ba1,forEachEntry:xa1,matchAll:Ma1,isHTMLForm:Ca1,hasOwnProperty:bH,hasOwnProp:bH,reduceDescriptors:hT,freezeMethods:wa1,toObjectSet:_a1,toCamelCase:Ha1,noop:La1,toFiniteNumber:ka1,findKey:fT,global:ba,isContextDefined:uT,ALPHABET:dT,generateString:Sa1,isSpecCompliantForm:Aa1,toJSONObject:Na1,isAsyncFn:Ta1,isThenable:Ea1,setImmediate:mT,asap:Oa1};function z2(e,t,a,c,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),a&&(this.config=a),c&&(this.request=c),n&&(this.response=n,this.status=n.status?n.status:null)}N1.inherits(z2,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:N1.toJSONObject(this.config),code:this.code,status:this.status}}});const pT=z2.prototype,vT={};["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=>{vT[e]={value:e}});Object.defineProperties(z2,vT);Object.defineProperty(pT,"isAxiosError",{value:!0});z2.from=(e,t,a,c,n,r)=>{const i=Object.create(pT);return N1.toFlatObject(e,i,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),z2.call(i,e.message,t,a,c,n),i.cause=e,i.name=e.name,r&&Object.assign(i,r),i};const Da1=null;function qp(e){return N1.isPlainObject(e)||N1.isArray(e)}function gT(e){return N1.endsWith(e,"[]")?e.slice(0,-2):e}function xH(e,t,a){return e?e.concat(t).map(function(n,r){return n=gT(n),!a&&r?"["+n+"]":n}).join(a?".":""):t}function Pa1(e){return N1.isArray(e)&&!e.some(qp)}const Ba1=N1.toFlatObject(N1,{},null,function(t){return/^is[A-Z]/.test(t)});function fu(e,t,a){if(!N1.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,a=N1.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,g){return!N1.isUndefined(g[p])});const c=a.metaTokens,n=a.visitor||u,r=a.dots,i=a.indexes,l=(a.Blob||typeof Blob<"u"&&Blob)&&N1.isSpecCompliantForm(t);if(!N1.isFunction(n))throw new TypeError("visitor must be a function");function f(v){if(v===null)return"";if(N1.isDate(v))return v.toISOString();if(!l&&N1.isBlob(v))throw new z2("Blob is not supported. Use a Buffer instead.");return N1.isArrayBuffer(v)||N1.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function u(v,p,g){let y=v;if(v&&!g&&typeof v=="object"){if(N1.endsWith(p,"{}"))p=c?p:p.slice(0,-2),v=JSON.stringify(v);else if(N1.isArray(v)&&Pa1(v)||(N1.isFileList(v)||N1.endsWith(p,"[]"))&&(y=N1.toArray(v)))return p=gT(p),y.forEach(function(x,z){!(N1.isUndefined(x)||x===null)&&t.append(i===!0?xH([p],z,r):i===null?p:p+"[]",f(x))}),!1}return qp(v)?!0:(t.append(xH(g,p,r),f(v)),!1)}const h=[],d=Object.assign(Ba1,{defaultVisitor:u,convertValue:f,isVisitable:qp});function m(v,p){if(!N1.isUndefined(v)){if(h.indexOf(v)!==-1)throw Error("Circular reference detected in "+p.join("."));h.push(v),N1.forEach(v,function(y,b){(!(N1.isUndefined(y)||y===null)&&n.call(t,y,N1.isString(b)?b.trim():b,p,d))===!0&&m(y,p?p.concat(b):[b])}),h.pop()}}if(!N1.isObject(e))throw new TypeError("data must be an object");return m(e),t}function MH(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(c){return t[c]})}function by(e,t){this._pairs=[],e&&fu(e,this,t)}const yT=by.prototype;yT.append=function(t,a){this._pairs.push([t,a])};yT.toString=function(t){const a=t?function(c){return t.call(this,c,MH)}:MH;return this._pairs.map(function(n){return a(n[0])+"="+a(n[1])},"").join("&")};function Ra1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function bT(e,t,a){if(!t)return e;const c=a&&a.encode||Ra1;N1.isFunction(a)&&(a={serialize:a});const n=a&&a.serialize;let r;if(n?r=n(t,a):r=N1.isURLSearchParams(t)?t.toString():new by(t,a).toString(c),r){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class Fa1{constructor(){this.handlers=[]}use(t,a,c){return this.handlers.push({fulfilled:t,rejected:a,synchronous:c?c.synchronous:!1,runWhen:c?c.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){N1.forEach(this.handlers,function(c){c!==null&&t(c)})}}const CH=Fa1,zT={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ia1=typeof URLSearchParams<"u"?URLSearchParams:by,$a1=typeof FormData<"u"?FormData:null,ja1=typeof Blob<"u"?Blob:null,qa1={isBrowser:!0,classes:{URLSearchParams:Ia1,FormData:$a1,Blob:ja1},protocols:["http","https","file","blob","url","data"]},zy=typeof window<"u"&&typeof document<"u",Up=typeof navigator=="object"&&navigator||void 0,Ua1=zy&&(!Up||["ReactNative","NativeScript","NS"].indexOf(Up.product)<0),Wa1=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ya1=zy&&window.location.href||"http://localhost",Ga1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:zy,hasStandardBrowserEnv:Ua1,hasStandardBrowserWebWorkerEnv:Wa1,navigator:Up,origin:Ya1},Symbol.toStringTag,{value:"Module"})),he={...Ga1,...qa1};function Za1(e,t){return fu(e,new he.classes.URLSearchParams,Object.assign({visitor:function(a,c,n,r){return he.isNode&&N1.isBuffer(a)?(this.append(c,a.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function Xa1(e){return N1.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ka1(e){const t={},a=Object.keys(e);let c;const n=a.length;let r;for(c=0;c<n;c++)r=a[c],t[r]=e[r];return t}function xT(e){function t(a,c,n,r){let i=a[r++];if(i==="__proto__")return!0;const s=Number.isFinite(+i),l=r>=a.length;return i=!i&&N1.isArray(n)?n.length:i,l?(N1.hasOwnProp(n,i)?n[i]=[n[i],c]:n[i]=c,!s):((!n[i]||!N1.isObject(n[i]))&&(n[i]=[]),t(a,c,n[i],r)&&N1.isArray(n[i])&&(n[i]=Ka1(n[i])),!s)}if(N1.isFormData(e)&&N1.isFunction(e.entries)){const a={};return N1.forEachEntry(e,(c,n)=>{t(Xa1(c),n,a,0)}),a}return null}function Qa1(e,t,a){if(N1.isString(e))try{return(t||JSON.parse)(e),N1.trim(e)}catch(c){if(c.name!=="SyntaxError")throw c}return(a||JSON.stringify)(e)}const xy={transitional:zT,adapter:["xhr","http","fetch"],transformRequest:[function(t,a){const c=a.getContentType()||"",n=c.indexOf("application/json")>-1,r=N1.isObject(t);if(r&&N1.isHTMLForm(t)&&(t=new FormData(t)),N1.isFormData(t))return n?JSON.stringify(xT(t)):t;if(N1.isArrayBuffer(t)||N1.isBuffer(t)||N1.isStream(t)||N1.isFile(t)||N1.isBlob(t)||N1.isReadableStream(t))return t;if(N1.isArrayBufferView(t))return t.buffer;if(N1.isURLSearchParams(t))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(r){if(c.indexOf("application/x-www-form-urlencoded")>-1)return Za1(t,this.formSerializer).toString();if((s=N1.isFileList(t))||c.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return fu(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return r||n?(a.setContentType("application/json",!1),Qa1(t)):t}],transformResponse:[function(t){const a=this.transitional||xy.transitional,c=a&&a.forcedJSONParsing,n=this.responseType==="json";if(N1.isResponse(t)||N1.isReadableStream(t))return t;if(t&&N1.isString(t)&&(c&&!this.responseType||n)){const i=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?z2.from(s,z2.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:he.classes.FormData,Blob:he.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};N1.forEach(["delete","get","head","post","put","patch"],e=>{xy.headers[e]={}});const My=xy,Ja1=N1.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"]),ec1=e=>{const t={};let a,c,n;return e&&e.split(`
|
|
7
7
|
`).forEach(function(i){n=i.indexOf(":"),a=i.substring(0,n).trim().toLowerCase(),c=i.substring(n+1).trim(),!(!a||t[a]&&Ja1[a])&&(a==="set-cookie"?t[a]?t[a].push(c):t[a]=[c]:t[a]=t[a]?t[a]+", "+c:c)}),t},HH=Symbol("internals");function gn(e){return e&&String(e).trim().toLowerCase()}function Y9(e){return e===!1||e==null?e:N1.isArray(e)?e.map(Y9):String(e)}function tc1(e){const t=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let c;for(;c=a.exec(e);)t[c[1]]=c[2];return t}const ac1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function wd(e,t,a,c,n){if(N1.isFunction(c))return c.call(this,t,a);if(n&&(t=a),!!N1.isString(t)){if(N1.isString(c))return t.indexOf(c)!==-1;if(N1.isRegExp(c))return c.test(t)}}function cc1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,a,c)=>a.toUpperCase()+c)}function nc1(e,t){const a=N1.toCamelCase(" "+t);["get","set","has"].forEach(c=>{Object.defineProperty(e,c+a,{value:function(n,r,i){return this[c].call(this,t,n,r,i)},configurable:!0})})}class uu{constructor(t){t&&this.set(t)}set(t,a,c){const n=this;function r(s,l,f){const u=gn(l);if(!u)throw new Error("header name must be a non-empty string");const h=N1.findKey(n,u);(!h||n[h]===void 0||f===!0||f===void 0&&n[h]!==!1)&&(n[h||l]=Y9(s))}const i=(s,l)=>N1.forEach(s,(f,u)=>r(f,u,l));if(N1.isPlainObject(t)||t instanceof this.constructor)i(t,a);else if(N1.isString(t)&&(t=t.trim())&&!ac1(t))i(ec1(t),a);else if(N1.isHeaders(t))for(const[s,l]of t.entries())r(l,s,c);else t!=null&&r(a,t,c);return this}get(t,a){if(t=gn(t),t){const c=N1.findKey(this,t);if(c){const n=this[c];if(!a)return n;if(a===!0)return tc1(n);if(N1.isFunction(a))return a.call(this,n,c);if(N1.isRegExp(a))return a.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,a){if(t=gn(t),t){const c=N1.findKey(this,t);return!!(c&&this[c]!==void 0&&(!a||wd(this,this[c],c,a)))}return!1}delete(t,a){const c=this;let n=!1;function r(i){if(i=gn(i),i){const s=N1.findKey(c,i);s&&(!a||wd(c,c[s],s,a))&&(delete c[s],n=!0)}}return N1.isArray(t)?t.forEach(r):r(t),n}clear(t){const a=Object.keys(this);let c=a.length,n=!1;for(;c--;){const r=a[c];(!t||wd(this,this[r],r,t,!0))&&(delete this[r],n=!0)}return n}normalize(t){const a=this,c={};return N1.forEach(this,(n,r)=>{const i=N1.findKey(c,r);if(i){a[i]=Y9(n),delete a[r];return}const s=t?cc1(r):String(r).trim();s!==r&&delete a[r],a[s]=Y9(n),c[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const a=Object.create(null);return N1.forEach(this,(c,n)=>{c!=null&&c!==!1&&(a[n]=t&&N1.isArray(c)?c.join(", "):c)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,a])=>t+": "+a).join(`
|
|
8
8
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...a){const c=new this(t);return a.forEach(n=>c.set(n)),c}static accessor(t){const c=(this[HH]=this[HH]={accessors:{}}).accessors,n=this.prototype;function r(i){const s=gn(i);c[s]||(nc1(n,i),c[s]=!0)}return N1.isArray(t)?t.forEach(r):r(t),this}}uu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);N1.reduceDescriptors(uu.prototype,({value:e},t)=>{let a=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(c){this[a]=c}}});N1.freezeMethods(uu);const l0=uu;function _d(e,t){const a=this||My,c=t||a,n=l0.from(c.headers);let r=c.data;return N1.forEach(e,function(s){r=s.call(a,r,n.normalize(),t?t.status:void 0)}),n.normalize(),r}function MT(e){return!!(e&&e.__CANCEL__)}function Q7(e,t,a){z2.call(this,e??"canceled",z2.ERR_CANCELED,t,a),this.name="CanceledError"}N1.inherits(Q7,z2,{__CANCEL__:!0});function CT(e,t,a){const c=a.config.validateStatus;!a.status||!c||c(a.status)?e(a):t(new z2("Request failed with status code "+a.status,[z2.ERR_BAD_REQUEST,z2.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function rc1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ic1(e,t){e=e||10;const a=new Array(e),c=new Array(e);let n=0,r=0,i;return t=t!==void 0?t:1e3,function(l){const f=Date.now(),u=c[r];i||(i=f),a[n]=l,c[n]=f;let h=r,d=0;for(;h!==n;)d+=a[h++],h=h%e;if(n=(n+1)%e,n===r&&(r=(r+1)%e),f-i<t)return;const m=u&&f-u;return m?Math.round(d*1e3/m):void 0}}function sc1(e,t){let a=0,c=1e3/t,n,r;const i=(f,u=Date.now())=>{a=u,n=null,r&&(clearTimeout(r),r=null),e.apply(null,f)};return[(...f)=>{const u=Date.now(),h=u-a;h>=c?i(f,u):(n=f,r||(r=setTimeout(()=>{r=null,i(n)},c-h)))},()=>n&&i(n)]}const Al=(e,t,a=3)=>{let c=0;const n=ic1(50,250);return sc1(r=>{const i=r.loaded,s=r.lengthComputable?r.total:void 0,l=i-c,f=n(l),u=i<=s;c=i;const h={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:f||void 0,estimated:f&&s&&u?(s-i)/f:void 0,event:r,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(h)},a)},VH=(e,t)=>{const a=e!=null;return[c=>t[0]({lengthComputable:a,total:e,loaded:c}),t[1]]},wH=e=>(...t)=>N1.asap(()=>e(...t)),oc1=he.hasStandardBrowserEnv?((e,t)=>a=>(a=new URL(a,he.origin),e.protocol===a.protocol&&e.host===a.host&&(t||e.port===a.port)))(new URL(he.origin),he.navigator&&/(msie|trident)/i.test(he.navigator.userAgent)):()=>!0,lc1=he.hasStandardBrowserEnv?{write(e,t,a,c,n,r){const i=[e+"="+encodeURIComponent(t)];N1.isNumber(a)&&i.push("expires="+new Date(a).toGMTString()),N1.isString(c)&&i.push("path="+c),N1.isString(n)&&i.push("domain="+n),r===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function fc1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function uc1(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function HT(e,t){return e&&!fc1(t)?uc1(e,t):t}const _H=e=>e instanceof l0?{...e}:e;function ja(e,t){t=t||{};const a={};function c(f,u,h,d){return N1.isPlainObject(f)&&N1.isPlainObject(u)?N1.merge.call({caseless:d},f,u):N1.isPlainObject(u)?N1.merge({},u):N1.isArray(u)?u.slice():u}function n(f,u,h,d){if(N1.isUndefined(u)){if(!N1.isUndefined(f))return c(void 0,f,h,d)}else return c(f,u,h,d)}function r(f,u){if(!N1.isUndefined(u))return c(void 0,u)}function i(f,u){if(N1.isUndefined(u)){if(!N1.isUndefined(f))return c(void 0,f)}else return c(void 0,u)}function s(f,u,h){if(h in t)return c(f,u);if(h in e)return c(void 0,f)}const l={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:s,headers:(f,u,h)=>n(_H(f),_H(u),h,!0)};return N1.forEach(Object.keys(Object.assign({},e,t)),function(u){const h=l[u]||n,d=h(e[u],t[u],u);N1.isUndefined(d)&&h!==s||(a[u]=d)}),a}const VT=e=>{const t=ja({},e);let{data:a,withXSRFToken:c,xsrfHeaderName:n,xsrfCookieName:r,headers:i,auth:s}=t;t.headers=i=l0.from(i),t.url=bT(HT(t.baseURL,t.url),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(N1.isFormData(a)){if(he.hasStandardBrowserEnv||he.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){const[f,...u]=l?l.split(";").map(h=>h.trim()).filter(Boolean):[];i.setContentType([f||"multipart/form-data",...u].join("; "))}}if(he.hasStandardBrowserEnv&&(c&&N1.isFunction(c)&&(c=c(t)),c||c!==!1&&oc1(t.url))){const f=n&&r&&lc1.read(r);f&&i.set(n,f)}return t},hc1=typeof XMLHttpRequest<"u",dc1=hc1&&function(e){return new Promise(function(a,c){const n=VT(e);let r=n.data;const i=l0.from(n.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:f}=n,u,h,d,m,v;function p(){m&&m(),v&&v(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}let g=new XMLHttpRequest;g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout;function y(){if(!g)return;const x=l0.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),M={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:x,config:e,request:g};CT(function(C){a(C),p()},function(C){c(C),p()},M),g=null}"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(y)},g.onabort=function(){g&&(c(new z2("Request aborted",z2.ECONNABORTED,e,g)),g=null)},g.onerror=function(){c(new z2("Network Error",z2.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let z=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const M=n.transitional||zT;n.timeoutErrorMessage&&(z=n.timeoutErrorMessage),c(new z2(z,M.clarifyTimeoutError?z2.ETIMEDOUT:z2.ECONNABORTED,e,g)),g=null},r===void 0&&i.setContentType(null),"setRequestHeader"in g&&N1.forEach(i.toJSON(),function(z,M){g.setRequestHeader(M,z)}),N1.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),s&&s!=="json"&&(g.responseType=n.responseType),f&&([d,v]=Al(f,!0),g.addEventListener("progress",d)),l&&g.upload&&([h,m]=Al(l),g.upload.addEventListener("progress",h),g.upload.addEventListener("loadend",m)),(n.cancelToken||n.signal)&&(u=x=>{g&&(c(!x||x.type?new Q7(null,e,g):x),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));const b=rc1(n.url);if(b&&he.protocols.indexOf(b)===-1){c(new z2("Unsupported protocol "+b+":",z2.ERR_BAD_REQUEST,e));return}g.send(r||null)})},mc1=(e,t)=>{const{length:a}=e=e?e.filter(Boolean):[];if(t||a){let c=new AbortController,n;const r=function(f){if(!n){n=!0,s();const u=f instanceof Error?f:this.reason;c.abort(u instanceof z2?u:new Q7(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,r(new z2(`timeout ${t} of ms exceeded`,z2.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(r):f.removeEventListener("abort",r)}),e=null)};e.forEach(f=>f.addEventListener("abort",r));const{signal:l}=c;return l.unsubscribe=()=>N1.asap(s),l}},pc1=mc1,vc1=function*(e,t){let a=e.byteLength;if(!t||a<t){yield e;return}let c=0,n;for(;c<a;)n=c+t,yield e.slice(c,n),c=n},gc1=async function*(e,t){for await(const a of yc1(e))yield*vc1(a,t)},yc1=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:a,value:c}=await t.read();if(a)break;yield c}}finally{await t.cancel()}},LH=(e,t,a,c)=>{const n=gc1(e,t);let r=0,i,s=l=>{i||(i=!0,c&&c(l))};return new ReadableStream({async pull(l){try{const{done:f,value:u}=await n.next();if(f){s(),l.close();return}let h=u.byteLength;if(a){let d=r+=h;a(d)}l.enqueue(new Uint8Array(u))}catch(f){throw s(f),f}},cancel(l){return s(l),n.return()}},{highWaterMark:2})},hu=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",wT=hu&&typeof ReadableStream=="function",bc1=hu&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),_T=(e,...t)=>{try{return!!e(...t)}catch{return!1}},zc1=wT&&_T(()=>{let e=!1;const t=new Request(he.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),kH=64*1024,Wp=wT&&_T(()=>N1.isReadableStream(new Response("").body)),Nl={stream:Wp&&(e=>e.body)};hu&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Nl[t]&&(Nl[t]=N1.isFunction(e[t])?a=>a[t]():(a,c)=>{throw new z2(`Response type '${t}' is not supported`,z2.ERR_NOT_SUPPORT,c)})})})(new Response);const xc1=async e=>{if(e==null)return 0;if(N1.isBlob(e))return e.size;if(N1.isSpecCompliantForm(e))return(await new Request(he.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(N1.isArrayBufferView(e)||N1.isArrayBuffer(e))return e.byteLength;if(N1.isURLSearchParams(e)&&(e=e+""),N1.isString(e))return(await bc1(e)).byteLength},Mc1=async(e,t)=>{const a=N1.toFiniteNumber(e.getContentLength());return a??xc1(t)},Cc1=hu&&(async e=>{let{url:t,method:a,data:c,signal:n,cancelToken:r,timeout:i,onDownloadProgress:s,onUploadProgress:l,responseType:f,headers:u,withCredentials:h="same-origin",fetchOptions:d}=VT(e);f=f?(f+"").toLowerCase():"text";let m=pc1([n,r&&r.toAbortSignal()],i),v;const p=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let g;try{if(l&&zc1&&a!=="get"&&a!=="head"&&(g=await Mc1(u,c))!==0){let M=new Request(t,{method:"POST",body:c,duplex:"half"}),H;if(N1.isFormData(c)&&(H=M.headers.get("content-type"))&&u.setContentType(H),M.body){const[C,w]=VH(g,Al(wH(l)));c=LH(M.body,kH,C,w)}}N1.isString(h)||(h=h?"include":"omit");const y="credentials"in Request.prototype;v=new Request(t,{...d,signal:m,method:a.toUpperCase(),headers:u.normalize().toJSON(),body:c,duplex:"half",credentials:y?h:void 0});let b=await fetch(v);const x=Wp&&(f==="stream"||f==="response");if(Wp&&(s||x&&p)){const M={};["status","statusText","headers"].forEach(L=>{M[L]=b[L]});const H=N1.toFiniteNumber(b.headers.get("content-length")),[C,w]=s&&VH(H,Al(wH(s),!0))||[];b=new Response(LH(b.body,kH,C,()=>{w&&w(),p&&p()}),M)}f=f||"text";let z=await Nl[N1.findKey(Nl,f)||"text"](b,e);return!x&&p&&p(),await new Promise((M,H)=>{CT(M,H,{data:z,headers:l0.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:v})})}catch(y){throw p&&p(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new z2("Network Error",z2.ERR_NETWORK,e,v),{cause:y.cause||y}):z2.from(y,y&&y.code,e,v)}}),Yp={http:Da1,xhr:dc1,fetch:Cc1};N1.forEach(Yp,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const SH=e=>`- ${e}`,Hc1=e=>N1.isFunction(e)||e===null||e===!1,LT={getAdapter:e=>{e=N1.isArray(e)?e:[e];const{length:t}=e;let a,c;const n={};for(let r=0;r<t;r++){a=e[r];let i;if(c=a,!Hc1(a)&&(c=Yp[(i=String(a)).toLowerCase()],c===void 0))throw new z2(`Unknown adapter '${i}'`);if(c)break;n[i||"#"+r]=c}if(!c){const r=Object.entries(n).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=t?r.length>1?`since :
|
|
9
9
|
`+r.map(SH).join(`
|
package/dist/main.es.js
CHANGED
|
@@ -1336,7 +1336,7 @@ const Oa1 = {
|
|
|
1336
1336
|
month: "Mes",
|
|
1337
1337
|
configModalTitle: "Ajustes de visualización",
|
|
1338
1338
|
configBtn: "Ajustes",
|
|
1339
|
-
displayWeekends: "Mostrar fines de semana",
|
|
1339
|
+
displayWeekends: "¿Mostrar fines de semana?",
|
|
1340
1340
|
timeFrom: "Hora de inicio",
|
|
1341
1341
|
timeTo: "Hora de fin",
|
|
1342
1342
|
timeStep: "Intervalo (min)",
|