pangea-lib 4.0.44 → 4.0.45

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 CHANGED
@@ -3,7 +3,7 @@
3
3
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(U){return U instanceof this?U:new this(U)}static concat(U,...B){const K=new this(U);return B.forEach(Q=>K.set(Q)),K}static accessor(U){const B=(this[G2]=this[G2]={accessors:{}}).accessors,K=this.prototype;function Q(o1){const s1=m2(o1);B[s1]||(function(x1,V1){const L1=T.toCamelCase(" "+V1);["get","set","has"].forEach(w1=>{Object.defineProperty(x1,w1+L1,{value:function(N1,I1,J1){return this[w1].call(this,V1,N1,I1,J1)},configurable:!0})})}(K,o1),B[s1]=!0)}return T.isArray(U)?U.forEach(Q):Q(U),this}}y1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),T.reduceDescriptors(y1.prototype,({value:D},U)=>{let B=U[0].toUpperCase()+U.slice(1);return{get:()=>D,set(K){this[B]=K}}}),T.freezeMethods(y1);var m1=y1;function S1(D,U){const B=this||O1,K=U||B,Q=m1.from(K.headers);let o1=K.data;return T.forEach(D,function(s1){o1=s1.call(B,o1,Q.normalize(),U?U.status:void 0)}),Q.normalize(),o1}function T1(D){return!(!D||!D.__CANCEL__)}function Q1(D,U,B){I.call(this,D??"canceled",I.ERR_CANCELED,U,B),this.name="CanceledError"}T.inherits(Q1,I,{__CANCEL__:!0});var J2=d2.hasStandardBrowserEnv?{write(D,U,B,K,Q,o1){const s1=[D+"="+encodeURIComponent(U)];T.isNumber(B)&&s1.push("expires="+new Date(B).toGMTString()),T.isString(K)&&s1.push("path="+K),T.isString(Q)&&s1.push("domain="+Q),o1===!0&&s1.push("secure"),document.cookie=s1.join("; ")},read(D){const U=document.cookie.match(new RegExp("(^|;\\s*)("+D+")=([^;]*)"));return U?decodeURIComponent(U[3]):null},remove(D){this.write(D,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function _e(D,U){return D&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(U)?function(B,K){return K?B.replace(/\/?\/$/,"")+"/"+K.replace(/^\/+/,""):B}(D,U):U}var h3=d2.hasStandardBrowserEnv?function(){const D=/(msie|trident)/i.test(navigator.userAgent),U=document.createElement("a");let B;function K(Q){let o1=Q;return D&&(U.setAttribute("href",o1),o1=U.href),U.setAttribute("href",o1),{href:U.href,protocol:U.protocol?U.protocol.replace(/:$/,""):"",host:U.host,search:U.search?U.search.replace(/^\?/,""):"",hash:U.hash?U.hash.replace(/^#/,""):"",hostname:U.hostname,port:U.port,pathname:U.pathname.charAt(0)==="/"?U.pathname:"/"+U.pathname}}return B=K(window.location.href),function(Q){const o1=T.isString(Q)?K(Q):Q;return o1.protocol===B.protocol&&o1.host===B.host}}():function(){return!0};function j3(D,U){let B=0;const K=function(Q,o1){Q=Q||10;const s1=new Array(Q),x1=new Array(Q);let V1,L1=0,w1=0;return o1=o1!==void 0?o1:1e3,function(N1){const I1=Date.now(),J1=x1[w1];V1||(V1=I1),s1[L1]=N1,x1[L1]=I1;let U1=w1,i2=0;for(;U1!==L1;)i2+=s1[U1++],U1%=Q;if(L1=(L1+1)%Q,L1===w1&&(w1=(w1+1)%Q),I1-V1<o1)return;const P2=J1&&I1-J1;return P2?Math.round(1e3*i2/P2):void 0}}(50,250);return Q=>{const o1=Q.loaded,s1=Q.lengthComputable?Q.total:void 0,x1=o1-B,V1=K(x1);B=o1;const L1={loaded:o1,total:s1,progress:s1?o1/s1:void 0,bytes:x1,rate:V1||void 0,estimated:V1&&s1&&o1<=s1?(s1-o1)/V1:void 0,event:Q};L1[U?"download":"upload"]=!0,D(L1)}}const k2={http:null,xhr:typeof XMLHttpRequest<"u"&&function(D){return new Promise(function(U,B){let K=D.data;const Q=m1.from(D.headers).normalize();let o1,s1,{responseType:x1,withXSRFToken:V1}=D;function L1(){D.cancelToken&&D.cancelToken.unsubscribe(o1),D.signal&&D.signal.removeEventListener("abort",o1)}if(T.isFormData(K)){if(d2.hasStandardBrowserEnv||d2.hasStandardBrowserWebWorkerEnv)Q.setContentType(!1);else if((s1=Q.getContentType())!==!1){const[U1,...i2]=s1?s1.split(";").map(P2=>P2.trim()).filter(Boolean):[];Q.setContentType([U1||"multipart/form-data",...i2].join("; "))}}let w1=new XMLHttpRequest;if(D.auth){const U1=D.auth.username||"",i2=D.auth.password?unescape(encodeURIComponent(D.auth.password)):"";Q.set("Authorization","Basic "+btoa(U1+":"+i2))}const N1=_e(D.baseURL,D.url);function I1(){if(!w1)return;const U1=m1.from("getAllResponseHeaders"in w1&&w1.getAllResponseHeaders());(function(i2,P2,ue){const Vf=ue.config.validateStatus;ue.status&&Vf&&!Vf(ue.status)?P2(new I("Request failed with status code "+ue.status,[I.ERR_BAD_REQUEST,I.ERR_BAD_RESPONSE][Math.floor(ue.status/100)-4],ue.config,ue.request,ue)):i2(ue)})(function(i2){U(i2),L1()},function(i2){B(i2),L1()},{data:x1&&x1!=="text"&&x1!=="json"?w1.response:w1.responseText,status:w1.status,statusText:w1.statusText,headers:U1,config:D,request:w1}),w1=null}if(w1.open(D.method.toUpperCase(),g1(N1,D.params,D.paramsSerializer),!0),w1.timeout=D.timeout,"onloadend"in w1?w1.onloadend=I1:w1.onreadystatechange=function(){w1&&w1.readyState===4&&(w1.status!==0||w1.responseURL&&w1.responseURL.indexOf("file:")===0)&&setTimeout(I1)},w1.onabort=function(){w1&&(B(new I("Request aborted",I.ECONNABORTED,D,w1)),w1=null)},w1.onerror=function(){B(new I("Network Error",I.ERR_NETWORK,D,w1)),w1=null},w1.ontimeout=function(){let U1=D.timeout?"timeout of "+D.timeout+"ms exceeded":"timeout exceeded";const i2=D.transitional||b1;D.timeoutErrorMessage&&(U1=D.timeoutErrorMessage),B(new I(U1,i2.clarifyTimeoutError?I.ETIMEDOUT:I.ECONNABORTED,D,w1)),w1=null},d2.hasStandardBrowserEnv&&(V1&&T.isFunction(V1)&&(V1=V1(D)),V1||V1!==!1&&h3(N1))){const U1=D.xsrfHeaderName&&D.xsrfCookieName&&J2.read(D.xsrfCookieName);U1&&Q.set(D.xsrfHeaderName,U1)}K===void 0&&Q.setContentType(null),"setRequestHeader"in w1&&T.forEach(Q.toJSON(),function(U1,i2){w1.setRequestHeader(i2,U1)}),T.isUndefined(D.withCredentials)||(w1.withCredentials=!!D.withCredentials),x1&&x1!=="json"&&(w1.responseType=D.responseType),typeof D.onDownloadProgress=="function"&&w1.addEventListener("progress",j3(D.onDownloadProgress,!0)),typeof D.onUploadProgress=="function"&&w1.upload&&w1.upload.addEventListener("progress",j3(D.onUploadProgress)),(D.cancelToken||D.signal)&&(o1=U1=>{w1&&(B(!U1||U1.type?new Q1(null,D,w1):U1),w1.abort(),w1=null)},D.cancelToken&&D.cancelToken.subscribe(o1),D.signal&&(D.signal.aborted?o1():D.signal.addEventListener("abort",o1)));const J1=function(U1){const i2=/^([-+\w]{1,25})(:?\/\/|:)/.exec(U1);return i2&&i2[1]||""}(N1);J1&&d2.protocols.indexOf(J1)===-1?B(new I("Unsupported protocol "+J1+":",I.ERR_BAD_REQUEST,D)):w1.send(K||null)})}};T.forEach(k2,(D,U)=>{if(D){try{Object.defineProperty(D,"name",{value:U})}catch{}Object.defineProperty(D,"adapterName",{value:U})}});const xe=D=>`- ${D}`,K4=D=>T.isFunction(D)||D===null||D===!1;var Z4=D=>{D=T.isArray(D)?D:[D];const{length:U}=D;let B,K;const Q={};for(let o1=0;o1<U;o1++){let s1;if(B=D[o1],K=B,!K4(B)&&(K=k2[(s1=String(B)).toLowerCase()],K===void 0))throw new I(`Unknown adapter '${s1}'`);if(K)break;Q[s1||"#"+o1]=K}if(!K){const o1=Object.entries(Q).map(([s1,x1])=>`adapter ${s1} `+(x1===!1?"is not supported by the environment":"is not available in the build"));throw new I("There is no suitable adapter to dispatch the request "+(U?o1.length>1?`since :
4
4
  `+o1.map(xe).join(`
5
5
  `):" "+xe(o1[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return K};function Q4(D){if(D.cancelToken&&D.cancelToken.throwIfRequested(),D.signal&&D.signal.aborted)throw new Q1(null,D)}function M0(D){return Q4(D),D.headers=m1.from(D.headers),D.data=S1.call(D,D.transformRequest),["post","put","patch"].indexOf(D.method)!==-1&&D.headers.setContentType("application/x-www-form-urlencoded",!1),Z4(D.adapter||O1.adapter)(D).then(function(U){return Q4(D),U.data=S1.call(D,D.transformResponse,U),U.headers=m1.from(U.headers),U},function(U){return T1(U)||(Q4(D),U&&U.response&&(U.response.data=S1.call(D,D.transformResponse,U.response),U.response.headers=m1.from(U.response.headers))),Promise.reject(U)})}const z0=D=>D instanceof m1?{...D}:D;function E3(D,U){U=U||{};const B={};function K(L1,w1,N1){return T.isPlainObject(L1)&&T.isPlainObject(w1)?T.merge.call({caseless:N1},L1,w1):T.isPlainObject(w1)?T.merge({},w1):T.isArray(w1)?w1.slice():w1}function Q(L1,w1,N1){return T.isUndefined(w1)?T.isUndefined(L1)?void 0:K(void 0,L1,N1):K(L1,w1,N1)}function o1(L1,w1){if(!T.isUndefined(w1))return K(void 0,w1)}function s1(L1,w1){return T.isUndefined(w1)?T.isUndefined(L1)?void 0:K(void 0,L1):K(void 0,w1)}function x1(L1,w1,N1){return N1 in U?K(L1,w1):N1 in D?K(void 0,L1):void 0}const V1={url:o1,method:o1,data:o1,baseURL:s1,transformRequest:s1,transformResponse:s1,paramsSerializer:s1,timeout:s1,timeoutMessage:s1,withCredentials:s1,withXSRFToken:s1,adapter:s1,responseType:s1,xsrfCookieName:s1,xsrfHeaderName:s1,onUploadProgress:s1,onDownloadProgress:s1,decompress:s1,maxContentLength:s1,maxBodyLength:s1,beforeRedirect:s1,transport:s1,httpAgent:s1,httpsAgent:s1,cancelToken:s1,socketPath:s1,responseEncoding:s1,validateStatus:x1,headers:(L1,w1)=>Q(z0(L1),z0(w1),!0)};return T.forEach(Object.keys(Object.assign({},D,U)),function(L1){const w1=V1[L1]||Q,N1=w1(D[L1],U[L1],L1);T.isUndefined(N1)&&w1!==x1||(B[L1]=N1)}),B}const $e={};["object","boolean","number","function","string","symbol"].forEach((D,U)=>{$e[D]=function(B){return typeof B===D||"a"+(U<1?"n ":" ")+D}});const J4={};$e.transitional=function(D,U,B){function K(Q,o1){return"[Axios v1.6.8] Transitional option '"+Q+"'"+o1+(B?". "+B:"")}return(Q,o1,s1)=>{if(D===!1)throw new I(K(o1," has been removed"+(U?" in "+U:"")),I.ERR_DEPRECATED);return U&&!J4[o1]&&(J4[o1]=!0,console.warn(K(o1," has been deprecated since v"+U+" and will be removed in the near future"))),!D||D(Q,o1,s1)}};var Tt={assertOptions:function(D,U,B){if(typeof D!="object")throw new I("options must be an object",I.ERR_BAD_OPTION_VALUE);const K=Object.keys(D);let Q=K.length;for(;Q-- >0;){const o1=K[Q],s1=U[o1];if(s1){const x1=D[o1],V1=x1===void 0||s1(x1,o1,D);if(V1!==!0)throw new I("option "+o1+" must be "+V1,I.ERR_BAD_OPTION_VALUE)}else if(B!==!0)throw new I("Unknown option "+o1,I.ERR_BAD_OPTION)}},validators:$e};const X=Tt.validators;class r1{constructor(U){this.defaults=U,this.interceptors={request:new k1,response:new k1}}async request(U,B){try{return await this._request(U,B)}catch(K){if(K instanceof Error){let Q;Error.captureStackTrace?Error.captureStackTrace(Q={}):Q=new Error;const o1=Q.stack?Q.stack.replace(/^.+\n/,""):"";K.stack?o1&&!String(K.stack).endsWith(o1.replace(/^.+\n.+\n/,""))&&(K.stack+=`
6
- `+o1):K.stack=o1}throw K}}_request(U,B){typeof U=="string"?(B=B||{}).url=U:B=U||{},B=E3(this.defaults,B);const{transitional:K,paramsSerializer:Q,headers:o1}=B;K!==void 0&&Tt.assertOptions(K,{silentJSONParsing:X.transitional(X.boolean),forcedJSONParsing:X.transitional(X.boolean),clarifyTimeoutError:X.transitional(X.boolean)},!1),Q!=null&&(T.isFunction(Q)?B.paramsSerializer={serialize:Q}:Tt.assertOptions(Q,{encode:X.function,serialize:X.function},!0)),B.method=(B.method||this.defaults.method||"get").toLowerCase();let s1=o1&&T.merge(o1.common,o1[B.method]);o1&&T.forEach(["delete","get","head","post","put","patch","common"],U1=>{delete o1[U1]}),B.headers=m1.concat(s1,o1);const x1=[];let V1=!0;this.interceptors.request.forEach(function(U1){typeof U1.runWhen=="function"&&U1.runWhen(B)===!1||(V1=V1&&U1.synchronous,x1.unshift(U1.fulfilled,U1.rejected))});const L1=[];let w1;this.interceptors.response.forEach(function(U1){L1.push(U1.fulfilled,U1.rejected)});let N1,I1=0;if(!V1){const U1=[M0.bind(this),void 0];for(U1.unshift.apply(U1,x1),U1.push.apply(U1,L1),N1=U1.length,w1=Promise.resolve(B);I1<N1;)w1=w1.then(U1[I1++],U1[I1++]);return w1}N1=x1.length;let J1=B;for(I1=0;I1<N1;){const U1=x1[I1++],i2=x1[I1++];try{J1=U1(J1)}catch(P2){i2.call(this,P2);break}}try{w1=M0.call(this,J1)}catch(U1){return Promise.reject(U1)}for(I1=0,N1=L1.length;I1<N1;)w1=w1.then(L1[I1++],L1[I1++]);return w1}getUri(U){return g1(_e((U=E3(this.defaults,U)).baseURL,U.url),U.params,U.paramsSerializer)}}T.forEach(["delete","get","head","options"],function(D){r1.prototype[D]=function(U,B){return this.request(E3(B||{},{method:D,url:U,data:(B||{}).data}))}}),T.forEach(["post","put","patch"],function(D){function U(B){return function(K,Q,o1){return this.request(E3(o1||{},{method:D,headers:B?{"Content-Type":"multipart/form-data"}:{},url:K,data:Q}))}}r1.prototype[D]=U(),r1.prototype[D+"Form"]=U(!0)});var J=r1;class e1{constructor(U){if(typeof U!="function")throw new TypeError("executor must be a function.");let B;this.promise=new Promise(function(Q){B=Q});const K=this;this.promise.then(Q=>{if(!K._listeners)return;let o1=K._listeners.length;for(;o1-- >0;)K._listeners[o1](Q);K._listeners=null}),this.promise.then=Q=>{let o1;const s1=new Promise(x1=>{K.subscribe(x1),o1=x1}).then(Q);return s1.cancel=function(){K.unsubscribe(o1)},s1},U(function(Q,o1,s1){K.reason||(K.reason=new Q1(Q,o1,s1),B(K.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(U){this.reason?U(this.reason):this._listeners?this._listeners.push(U):this._listeners=[U]}unsubscribe(U){if(!this._listeners)return;const B=this._listeners.indexOf(U);B!==-1&&this._listeners.splice(B,1)}static source(){let U;return{token:new e1(function(B){U=B}),cancel:U}}}var c1=e1;const i1={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(i1).forEach(([D,U])=>{i1[U]=D});var C1=i1;const M1=function D(U){const B=new J(U),K=l(J.prototype.request,B);return T.extend(K,J.prototype,B,{allOwnKeys:!0}),T.extend(K,B,null,{allOwnKeys:!0}),K.create=function(Q){return D(E3(U,Q))},K}(O1);M1.Axios=J,M1.CanceledError=Q1,M1.CancelToken=c1,M1.isCancel=T1,M1.VERSION="1.6.8",M1.toFormData=z1,M1.AxiosError=I,M1.Cancel=M1.CanceledError,M1.all=function(D){return Promise.all(D)},M1.spread=function(D){return function(U){return D.apply(null,U)}},M1.isAxiosError=function(D){return T.isObject(D)&&D.isAxiosError===!0},M1.mergeConfig=E3,M1.AxiosHeaders=m1,M1.formToJSON=D=>G1(T.isHTMLForm(D)?new FormData(D):D),M1.getAdapter=Z4,M1.HttpStatusCode=C1,M1.default=M1,c.exports=M1}},r={};function n(c){var i=r[c];if(i!==void 0)return i.exports;var s=r[c]={exports:{}};return a[c].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)})())})(Tp);var Ge=Tp.exports,E4;let Q2=(E4=class{constructor(t){v1(this,"config");this.config=t}static init(t){if(E4.instance)throw new Error("Config is already initialized");E4.instance=new E4(t)}static getConfig(){if(!E4.instance)throw new Error("Config is not initialized. Call init() first.");return E4.instance.config}},v1(E4,"instance"),E4);const m4=I4.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}}),r=o.computed({get(){return t.value.theme},set(l){t.value.theme=l}});o.watch(r,()=>To());function n(l){e.value||(e.value=!0,t.value=Ge.mergeDeep(t.value,l))}function c(l){a.value=l}function i(l){r.value=l}function s(){r.value=r.value==="light"?"dark":"light"}return{options:t,language:a,theme:r,init:n,setLanguage:c,setTheme:i,changeTheme:s}},{persist:!0}),b4=I4.defineStore("pga-route",()=>{const e=o.ref(),t=o.ref(!Er()),a=o.computed(()=>e.value&&Pv(e.value)),r=o.computed(()=>a.value&&e.value&&Cn(a.value,e.value.name)),n=o.computed(()=>e.value&&e.value.meta),c=o.computed(()=>{var u;return(u=n.value)==null?void 0:u.access}),i=o.computed(()=>{var u;return Oe((u=n.value)==null?void 0:u.description)}),s=o.computed(()=>{var u;return!!Oe((u=n.value)==null?void 0:u.preventDisplayNavigationBars)}),l=o.computed(()=>!s.value&&t.value),f=o.computed(()=>{var u;return!!Oe((u=n.value)==null?void 0:u.preventScrollOnView)});return{currentRoute:e,isSideBarOpen:t,routeType:a,routeTitle:r,routeMeta:n,routeAccess:c,routeDescription:i,preventDisplayNavigationBars:s,isDisplayingSideBar:l,preventScrollOnView:f}});function Ep(){const e=Q2.getConfig().stores.useAuthStore(),t=b4().routeType,a=`auth${Ge.getFirstChartInUppercase(t)}`;return e[a].accessToken}async function Np(e,t,a){const r=Q2.getConfig(),n=r.stores.useAuthStore(),c=`${e}s/login`,i={basicAuth:t,isLoadingRef:a==null?void 0:a.isLoadingRef},s=await r.api.postOne(c,void 0,i);n.setAuthUser(e,s.data);const l={name:(a==null?void 0:a.redirectToName)||r.defaultRoutes[e].auth};r.router.push(l)}async function Dp(){const e=Q2.getConfig(),t=e.stores.useAuthStore(),a=b4().routeType;try{const r=`${a}s/validateAccessToken`,n=await e.api.getOne(r,void 0,void 0,{preventDisplayError:!0});t.setAuthUser(a,n.data)}catch{t.setAuthUser(a,null)}}function sT(e){const t=Q2.getConfig();t.stores.useAuthStore().setAuthUser(e,null);const r={name:`login${Ge.getFirstChartInUppercase(e)}`};t.router.push(r)}function oc(e,t,a){const r=document.querySelector(":root"),n="--pga-",c=a!=null&&a.preventConvertToKebab?e:Ge.camelToKebab(e);r.style.setProperty(`${n}${c}`,t)}function lc(e){const t=e?"visible":"hidden";document.body.style.overflow=t}function oT(e,t,a="animate__"){return new Promise(r=>{const n=`${a}${t}`,c=document.querySelector(e);if(!c)return;c.classList.add(`${a}animated`,n);const i=s=>{s.stopPropagation(),c==null||c.classList.remove(`${a}animated`,n),r("Animation ended")};c.addEventListener("animationend",i,{once:!0})})}function vn(e){return Object.keys(Sp).includes(e)}function Op(e,t){let a=0,r=0,n=0,c=0;if(e.startsWith("rgb")||e.startsWith("rgba")){const s=e.replace(/rgba?\((.*?)\)/,"$1").replace(/\s/g,""),[,l,f,u,d="1"]=s.match(/(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?/);a=parseInt(l),r=parseInt(f),n=parseInt(u),c=parseFloat(d)}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,d]=s.match(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i).map((h,m)=>m===4?parseInt(h,16)/255:parseInt(h,16));d=d?parseFloat(d.toFixed(3)):1,a=l,r=f,n=u,c=d}const i=t/100;return`rgba(${a}, ${r}, ${n}, ${c*i})`}function Ss(e,t){const r=`color-${Ge.camelToKebab(e)}`,n={preventConvertToKebab:!0};oc(r,t,n);for(let c=5;c<=95;c+=5){const i=c<10?`0${c}`:c%10===0?`${c/10}`:`${c}`;oc(`${r}-0${i}`,Op(t,c),n)}}function lT(){const e=Ap,t=Math.floor(Math.random()*Object.keys(e).length);return e[Object.keys(e)[t]]}const fT={es:{successfulLogout:"¡Vuelva pronto!"}},uT={es:{today:"Hoy",tomorrow:"Mañana",yesterday:"Ayer"}},dT={es:{alertTitle:"¿Estás seguro?",cancelBtn:"Cancelar",acceptBtn:"Eliminar"}},hT={es:{INTERNAL_SERVER_ERROR:"Ha ocurrido un error",DUPLICATE_KEY:"Item ya creado",FOREIGN_KEY_INTEGRITY:"El item no existe",MODELS_ASSOCIATED:"No se puede eliminar porque tiene items asociados",INVALID_INPUT_DATA:"Los datos ingresados no son correctos",ENTITY_NOT_FOUND:"El item no existe",INVALID_CREDENTIALS:"Usuario o contraseña incorrectos",UNAUTHORIZED:"No autorizado"}},mT={es:{_LOGIN:"¡Bienvenido!"}},pT={es:{backBtn:"Volver",copyBtn:"Copiar",textCopied:"Copiado",deleteBtn:"Eliminar",confirmDeleteText:"",editBtn:"Editar",logoutBtn:"Cerrar sesión",navigateToBtn:"Ver más",seeDetailsBtn:"Detalles"}},vT={es:{noItemsText:"No hay resultados",showAll:"Mostrar todo",hide:"Ocultar"}},gT={es:{savedMsg:"Guardado",saveErrorMsg:"Texto demasiado largo"}},yT={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"}},xT={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"}},bT={es:{header:{switchToLightMode:"Cambiar a modo claro",switchToDarkMode:"Cambiar a modo oscuro"},footer:{allRightsReserved:"Todos los derechos reservados",designedBy:"Diseñado por"}}},CT={es:{cancelBtn:"Cancelar",acceptBtn:"Guardar"}},MT={es:{columnTitleActions:"",selectAllBtn:"Seleccionar todo",withTheSelectedItemsText:"Con los seleccionados:",filtersBtn:"Filtros",filtersModalTitle:"Filtros",confirmDeleteText:'¿Eliminar "{description}"?'}},zT={es:{removeAllBtn:"Eliminar todo"}},wT={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}"}},_T={authHelpers:fT,datetime:uT,alert:dT,apiConnectionsError:hT,apiConnectionsSuccess:mT,pgaButton:pT,pgaDisplay:vT,pgaEditor:gT,pgaFile:yT,pgaForm:xT,pgaLayout:bT,pgaModal:CT,pgaTable:MT,notifications:zT,validations:wT};function Pp(e){function t(a,r){return function(n,c,i){var y;const s=m4().language,l=e==null?void 0:e[a],f=l==null?void 0:l[s],u=r?r.split(".").reduce((x,C)=>x==null?void 0:x[C],f):f,d=(y=e==null?void 0:e.global)==null?void 0:y[s],h=n,m=(u==null?void 0:u[h])||(d==null?void 0:d[h])||"",v=(c==null?void 0:c.count)||1,p=m.split("|").map(x=>x.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 x in c||{})x!=="count"&&c[x]!==void 0&&c[x]!==null&&(g=g.replace(new RegExp(`{${x}}`,"g"),c[x].toString()));return i!=null&&i.singular?g=p[0]:i!=null&&i.uppercase&&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 w2=Pp(_T),xi=w2("datetime");function p4(e,t){if(!e)return"-";const r={...{format:"short",withoutYear:!1,withoutDay:!1,withTime:!0,justTime:!1},...t},n={year:r.withoutYear||r.justTime?void 0:"numeric",month:r.justTime?void 0:r.format==="numeric"?"2-digit":r.format,day:r.withoutDay||r.justTime?void 0:"2-digit",weekday:r.withoutDay||r.justTime||r.format==="numeric"?void 0:r.format,hour:r.withTime||r.justTime?"2-digit":void 0,minute:r.withTime||r.justTime?"2-digit":void 0},c=e.toLocaleString(m4().language,n);return c.charAt(0).toUpperCase()+c.slice(1)}function kT(e){return p4(e,{format:"short",withoutDay:!0,withTime:!1})}function Wa(e){return p4(e,{format:"numeric",withTime:!1})}function As(e){if(!e)return"";const t=Wa(e),a=new Date,r=new Date(a);r.setDate(a.getDate()+1);const n=new Date(a);if(n.setDate(a.getDate()-1),t===Wa(a))return xi("today");if(t===Wa(r))return xi("tomorrow");if(t===Wa(n))return xi("yesterday");const c={format:"long",withTime:!1};return e.getFullYear()===a.getFullYear()?p4(e,{...c,withoutYear:!0}):p4(e,c)}function Bp(e){return p4(e,{justTime:!0})}/*! @license DOMPurify 3.2.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.3/LICENSE */const{entries:Fp,setPrototypeOf:Lf,isFrozen:HT,getPrototypeOf:VT,getOwnPropertyDescriptor:LT}=Object;let{freeze:u3,seal:I3,create:Rp}=Object,{apply:Ts,construct:Es}=typeof Reflect<"u"&&Reflect;u3||(u3=function(t){return t});I3||(I3=function(t){return t});Ts||(Ts=function(t,a,r){return t.apply(a,r)});Es||(Es=function(t,a){return new t(...a)});const Xn=k3(Array.prototype.forEach),Sf=k3(Array.prototype.pop),Ma=k3(Array.prototype.push),B8=k3(String.prototype.toLowerCase),bi=k3(String.prototype.toString),Af=k3(String.prototype.match),za=k3(String.prototype.replace),ST=k3(String.prototype.indexOf),AT=k3(String.prototype.trim),K3=k3(Object.prototype.hasOwnProperty),c3=k3(RegExp.prototype.test),wa=TT(TypeError);function k3(e){return function(t){for(var a=arguments.length,r=new Array(a>1?a-1:0),n=1;n<a;n++)r[n-1]=arguments[n];return Ts(e,t,r)}}function TT(e){return function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return Es(e,a)}}function s2(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:B8;Lf&&Lf(e,null);let r=t.length;for(;r--;){let n=t[r];if(typeof n=="string"){const c=a(n);c!==n&&(HT(t)||(t[r]=c),n=c)}e[n]=!0}return e}function ET(e){for(let t=0;t<e.length;t++)K3(e,t)||(e[t]=null);return e}function S0(e){const t=Rp(null);for(const[a,r]of Fp(e))K3(e,a)&&(Array.isArray(r)?t[a]=ET(r):r&&typeof r=="object"&&r.constructor===Object?t[a]=S0(r):t[a]=r);return t}function _a(e,t){for(;e!==null;){const r=LT(e,t);if(r){if(r.get)return k3(r.get);if(typeof r.value=="function")return k3(r.value)}e=VT(e)}function a(){return null}return a}const Tf=u3(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ci=u3(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Mi=u3(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),NT=u3(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),zi=u3(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),DT=u3(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ef=u3(["#text"]),Nf=u3(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),wi=u3(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Df=u3(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Kn=u3(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),OT=I3(/\{\{[\w\W]*|[\w\W]*\}\}/gm),PT=I3(/<%[\w\W]*|[\w\W]*%>/gm),BT=I3(/\$\{[\w\W]*}/gm),FT=I3(/^data-[\-\w.\u00B7-\uFFFF]+$/),RT=I3(/^aria-[\-\w]+$/),Ip=I3(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IT=I3(/^(?:\w+script|data):/i),$T=I3(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$p=I3(/^html$/i),UT=I3(/^[a-z][.\w]*(-[.\w]+)+$/i);var Of=Object.freeze({__proto__:null,ARIA_ATTR:RT,ATTR_WHITESPACE:$T,CUSTOM_ELEMENT:UT,DATA_ATTR:FT,DOCTYPE_NAME:$p,ERB_EXPR:PT,IS_ALLOWED_URI:Ip,IS_SCRIPT_OR_DATA:IT,MUSTACHE_EXPR:OT,TMPLIT_EXPR:BT});const ka={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},WT=function(){return typeof window>"u"?null:window},qT=function(t,a){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";a&&a.hasAttribute(n)&&(r=a.getAttribute(n));const c="dompurify"+(r?"#"+r:"");try{return t.createPolicy(c,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+c+" could not be created."),null}},Pf=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Up(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:WT();const t=U=>Up(U);if(t.version="3.2.3",t.removed=[],!e||!e.document||e.document.nodeType!==ka.document)return t.isSupported=!1,t;let{document:a}=e;const r=a,n=r.currentScript,{DocumentFragment:c,HTMLTemplateElement:i,Node:s,Element:l,NodeFilter:f,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:h,trustedTypes:m}=e,v=l.prototype,p=_a(v,"cloneNode"),g=_a(v,"remove"),y=_a(v,"nextSibling"),x=_a(v,"childNodes"),C=_a(v,"parentNode");if(typeof i=="function"){const U=a.createElement("template");U.content&&U.content.ownerDocument&&(a=U.content.ownerDocument)}let b,M="";const{implementation:w,createNodeIterator:z,createDocumentFragment:k,getElementsByTagName:S}=a,{importNode:L}=r;let H=Pf();t.isSupported=typeof Fp=="function"&&typeof C=="function"&&w&&w.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:_,ERB_EXPR:E,TMPLIT_EXPR:j,DATA_ATTR:P,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:F,ATTR_WHITESPACE:Z,CUSTOM_ELEMENT:q}=Of;let{IS_ALLOWED_URI:G}=Of,N=null;const A=s2({},[...Tf,...Ci,...Mi,...zi,...Ef]);let V=null;const W=s2({},[...Nf,...wi,...Df,...Kn]);let Y=Object.seal(Rp(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),T=null,I=null,a1=!0,n1=!0,t1=!1,d1=!0,R=!1,p1=!0,z1=!1,h1=!1,l1=!1,f1=!1,u1=!1,g1=!1,k1=!0,b1=!1;const H1="user-content-";let F1=!0,$1=!1,W1={},K1=null;const d2=s2({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let G1=null;const Y2=s2({},["audio","video","img","source","image","track"]);let O1=null;const c2=s2({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),G2="http://www.w3.org/1998/Math/MathML",m2="http://www.w3.org/2000/svg",A2="http://www.w3.org/1999/xhtml";let Be=A2,y1=!1,m1=null;const S1=s2({},[G2,m2,A2],bi);let T1=s2({},["mi","mo","mn","ms","mtext"]),Q1=s2({},["annotation-xml"]);const J2=s2({},["title","style","font","a","script"]);let _e=null;const h3=["application/xhtml+xml","text/html"],j3="text/html";let k2=null,xe=null;const K4=a.createElement("form"),Z4=function(B){return B instanceof RegExp||B instanceof Function},Q4=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(xe&&xe===B)){if((!B||typeof B!="object")&&(B={}),B=S0(B),_e=h3.indexOf(B.PARSER_MEDIA_TYPE)===-1?j3:B.PARSER_MEDIA_TYPE,k2=_e==="application/xhtml+xml"?bi:B8,N=K3(B,"ALLOWED_TAGS")?s2({},B.ALLOWED_TAGS,k2):A,V=K3(B,"ALLOWED_ATTR")?s2({},B.ALLOWED_ATTR,k2):W,m1=K3(B,"ALLOWED_NAMESPACES")?s2({},B.ALLOWED_NAMESPACES,bi):S1,O1=K3(B,"ADD_URI_SAFE_ATTR")?s2(S0(c2),B.ADD_URI_SAFE_ATTR,k2):c2,G1=K3(B,"ADD_DATA_URI_TAGS")?s2(S0(Y2),B.ADD_DATA_URI_TAGS,k2):Y2,K1=K3(B,"FORBID_CONTENTS")?s2({},B.FORBID_CONTENTS,k2):d2,T=K3(B,"FORBID_TAGS")?s2({},B.FORBID_TAGS,k2):{},I=K3(B,"FORBID_ATTR")?s2({},B.FORBID_ATTR,k2):{},W1=K3(B,"USE_PROFILES")?B.USE_PROFILES:!1,a1=B.ALLOW_ARIA_ATTR!==!1,n1=B.ALLOW_DATA_ATTR!==!1,t1=B.ALLOW_UNKNOWN_PROTOCOLS||!1,d1=B.ALLOW_SELF_CLOSE_IN_ATTR!==!1,R=B.SAFE_FOR_TEMPLATES||!1,p1=B.SAFE_FOR_XML!==!1,z1=B.WHOLE_DOCUMENT||!1,f1=B.RETURN_DOM||!1,u1=B.RETURN_DOM_FRAGMENT||!1,g1=B.RETURN_TRUSTED_TYPE||!1,l1=B.FORCE_BODY||!1,k1=B.SANITIZE_DOM!==!1,b1=B.SANITIZE_NAMED_PROPS||!1,F1=B.KEEP_CONTENT!==!1,$1=B.IN_PLACE||!1,G=B.ALLOWED_URI_REGEXP||Ip,Be=B.NAMESPACE||A2,T1=B.MATHML_TEXT_INTEGRATION_POINTS||T1,Q1=B.HTML_INTEGRATION_POINTS||Q1,Y=B.CUSTOM_ELEMENT_HANDLING||{},B.CUSTOM_ELEMENT_HANDLING&&Z4(B.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Y.tagNameCheck=B.CUSTOM_ELEMENT_HANDLING.tagNameCheck),B.CUSTOM_ELEMENT_HANDLING&&Z4(B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Y.attributeNameCheck=B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),B.CUSTOM_ELEMENT_HANDLING&&typeof B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Y.allowCustomizedBuiltInElements=B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),R&&(n1=!1),u1&&(f1=!0),W1&&(N=s2({},Ef),V=[],W1.html===!0&&(s2(N,Tf),s2(V,Nf)),W1.svg===!0&&(s2(N,Ci),s2(V,wi),s2(V,Kn)),W1.svgFilters===!0&&(s2(N,Mi),s2(V,wi),s2(V,Kn)),W1.mathMl===!0&&(s2(N,zi),s2(V,Df),s2(V,Kn))),B.ADD_TAGS&&(N===A&&(N=S0(N)),s2(N,B.ADD_TAGS,k2)),B.ADD_ATTR&&(V===W&&(V=S0(V)),s2(V,B.ADD_ATTR,k2)),B.ADD_URI_SAFE_ATTR&&s2(O1,B.ADD_URI_SAFE_ATTR,k2),B.FORBID_CONTENTS&&(K1===d2&&(K1=S0(K1)),s2(K1,B.FORBID_CONTENTS,k2)),F1&&(N["#text"]=!0),z1&&s2(N,["html","head","body"]),N.table&&(s2(N,["tbody"]),delete T.tbody),B.TRUSTED_TYPES_POLICY){if(typeof B.TRUSTED_TYPES_POLICY.createHTML!="function")throw wa('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof B.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw wa('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');b=B.TRUSTED_TYPES_POLICY,M=b.createHTML("")}else b===void 0&&(b=qT(m,n)),b!==null&&typeof M=="string"&&(M=b.createHTML(""));u3&&u3(B),xe=B}},M0=s2({},[...Ci,...Mi,...NT]),z0=s2({},[...zi,...DT]),E3=function(B){let K=C(B);(!K||!K.tagName)&&(K={namespaceURI:Be,tagName:"template"});const Q=B8(B.tagName),o1=B8(K.tagName);return m1[B.namespaceURI]?B.namespaceURI===m2?K.namespaceURI===A2?Q==="svg":K.namespaceURI===G2?Q==="svg"&&(o1==="annotation-xml"||T1[o1]):!!M0[Q]:B.namespaceURI===G2?K.namespaceURI===A2?Q==="math":K.namespaceURI===m2?Q==="math"&&Q1[o1]:!!z0[Q]:B.namespaceURI===A2?K.namespaceURI===m2&&!Q1[o1]||K.namespaceURI===G2&&!T1[o1]?!1:!z0[Q]&&(J2[Q]||!M0[Q]):!!(_e==="application/xhtml+xml"&&m1[B.namespaceURI]):!1},$e=function(B){Ma(t.removed,{element:B});try{C(B).removeChild(B)}catch{g(B)}},J4=function(B,K){try{Ma(t.removed,{attribute:K.getAttributeNode(B),from:K})}catch{Ma(t.removed,{attribute:null,from:K})}if(K.removeAttribute(B),B==="is")if(f1||u1)try{$e(K)}catch{}else try{K.setAttribute(B,"")}catch{}},Tt=function(B){let K=null,Q=null;if(l1)B="<remove></remove>"+B;else{const x1=Af(B,/^[\r\n\t ]+/);Q=x1&&x1[0]}_e==="application/xhtml+xml"&&Be===A2&&(B='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+B+"</body></html>");const o1=b?b.createHTML(B):B;if(Be===A2)try{K=new h().parseFromString(o1,_e)}catch{}if(!K||!K.documentElement){K=w.createDocument(Be,"template",null);try{K.documentElement.innerHTML=y1?M:o1}catch{}}const s1=K.body||K.documentElement;return B&&Q&&s1.insertBefore(a.createTextNode(Q),s1.childNodes[0]||null),Be===A2?S.call(K,z1?"html":"body")[0]:z1?K.documentElement:s1},X=function(B){return z.call(B.ownerDocument||B,B,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},r1=function(B){return B instanceof d&&(typeof B.nodeName!="string"||typeof B.textContent!="string"||typeof B.removeChild!="function"||!(B.attributes instanceof u)||typeof B.removeAttribute!="function"||typeof B.setAttribute!="function"||typeof B.namespaceURI!="string"||typeof B.insertBefore!="function"||typeof B.hasChildNodes!="function")},J=function(B){return typeof s=="function"&&B instanceof s};function e1(U,B,K){Xn(U,Q=>{Q.call(t,B,K,xe)})}const c1=function(B){let K=null;if(e1(H.beforeSanitizeElements,B,null),r1(B))return $e(B),!0;const Q=k2(B.nodeName);if(e1(H.uponSanitizeElement,B,{tagName:Q,allowedTags:N}),B.hasChildNodes()&&!J(B.firstElementChild)&&c3(/<[/\w]/g,B.innerHTML)&&c3(/<[/\w]/g,B.textContent)||B.nodeType===ka.progressingInstruction||p1&&B.nodeType===ka.comment&&c3(/<[/\w]/g,B.data))return $e(B),!0;if(!N[Q]||T[Q]){if(!T[Q]&&C1(Q)&&(Y.tagNameCheck instanceof RegExp&&c3(Y.tagNameCheck,Q)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(Q)))return!1;if(F1&&!K1[Q]){const o1=C(B)||B.parentNode,s1=x(B)||B.childNodes;if(s1&&o1){const x1=s1.length;for(let V1=x1-1;V1>=0;--V1){const L1=p(s1[V1],!0);L1.__removalCount=(B.__removalCount||0)+1,o1.insertBefore(L1,y(B))}}}return $e(B),!0}return B instanceof l&&!E3(B)||(Q==="noscript"||Q==="noembed"||Q==="noframes")&&c3(/<\/no(script|embed|frames)/i,B.innerHTML)?($e(B),!0):(R&&B.nodeType===ka.text&&(K=B.textContent,Xn([_,E,j],o1=>{K=za(K,o1," ")}),B.textContent!==K&&(Ma(t.removed,{element:B.cloneNode()}),B.textContent=K)),e1(H.afterSanitizeElements,B,null),!1)},i1=function(B,K,Q){if(k1&&(K==="id"||K==="name")&&(Q in a||Q in K4))return!1;if(!(n1&&!I[K]&&c3(P,K))){if(!(a1&&c3(O,K))){if(!V[K]||I[K]){if(!(C1(B)&&(Y.tagNameCheck instanceof RegExp&&c3(Y.tagNameCheck,B)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(B))&&(Y.attributeNameCheck instanceof RegExp&&c3(Y.attributeNameCheck,K)||Y.attributeNameCheck instanceof Function&&Y.attributeNameCheck(K))||K==="is"&&Y.allowCustomizedBuiltInElements&&(Y.tagNameCheck instanceof RegExp&&c3(Y.tagNameCheck,Q)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(Q))))return!1}else if(!O1[K]){if(!c3(G,za(Q,Z,""))){if(!((K==="src"||K==="xlink:href"||K==="href")&&B!=="script"&&ST(Q,"data:")===0&&G1[B])){if(!(t1&&!c3(F,za(Q,Z,"")))){if(Q)return!1}}}}}}return!0},C1=function(B){return B!=="annotation-xml"&&Af(B,q)},M1=function(B){e1(H.beforeSanitizeAttributes,B,null);const{attributes:K}=B;if(!K||r1(B))return;const Q={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0};let o1=K.length;for(;o1--;){const s1=K[o1],{name:x1,namespaceURI:V1,value:L1}=s1,w1=k2(x1);let N1=x1==="value"?L1:AT(L1);if(Q.attrName=w1,Q.attrValue=N1,Q.keepAttr=!0,Q.forceKeepAttr=void 0,e1(H.uponSanitizeAttribute,B,Q),N1=Q.attrValue,b1&&(w1==="id"||w1==="name")&&(J4(x1,B),N1=H1+N1),p1&&c3(/((--!?|])>)|<\/(style|title)/i,N1)){J4(x1,B);continue}if(Q.forceKeepAttr||(J4(x1,B),!Q.keepAttr))continue;if(!d1&&c3(/\/>/i,N1)){J4(x1,B);continue}R&&Xn([_,E,j],J1=>{N1=za(N1,J1," ")});const I1=k2(B.nodeName);if(i1(I1,w1,N1)){if(b&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!V1)switch(m.getAttributeType(I1,w1)){case"TrustedHTML":{N1=b.createHTML(N1);break}case"TrustedScriptURL":{N1=b.createScriptURL(N1);break}}try{V1?B.setAttributeNS(V1,x1,N1):B.setAttribute(x1,N1),r1(B)?$e(B):Sf(t.removed)}catch{}}}e1(H.afterSanitizeAttributes,B,null)},D=function U(B){let K=null;const Q=X(B);for(e1(H.beforeSanitizeShadowDOM,B,null);K=Q.nextNode();)e1(H.uponSanitizeShadowNode,K,null),c1(K),M1(K),K.content instanceof c&&U(K.content);e1(H.afterSanitizeShadowDOM,B,null)};return t.sanitize=function(U){let B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=null,Q=null,o1=null,s1=null;if(y1=!U,y1&&(U="<!-->"),typeof U!="string"&&!J(U))if(typeof U.toString=="function"){if(U=U.toString(),typeof U!="string")throw wa("dirty is not a string, aborting")}else throw wa("toString is not a function");if(!t.isSupported)return U;if(h1||Q4(B),t.removed=[],typeof U=="string"&&($1=!1),$1){if(U.nodeName){const L1=k2(U.nodeName);if(!N[L1]||T[L1])throw wa("root node is forbidden and cannot be sanitized in-place")}}else if(U instanceof s)K=Tt("<!---->"),Q=K.ownerDocument.importNode(U,!0),Q.nodeType===ka.element&&Q.nodeName==="BODY"||Q.nodeName==="HTML"?K=Q:K.appendChild(Q);else{if(!f1&&!R&&!z1&&U.indexOf("<")===-1)return b&&g1?b.createHTML(U):U;if(K=Tt(U),!K)return f1?null:g1?M:""}K&&l1&&$e(K.firstChild);const x1=X($1?U:K);for(;o1=x1.nextNode();)c1(o1),M1(o1),o1.content instanceof c&&D(o1.content);if($1)return U;if(f1){if(u1)for(s1=k.call(K.ownerDocument);K.firstChild;)s1.appendChild(K.firstChild);else s1=K;return(V.shadowroot||V.shadowrootmode)&&(s1=L.call(r,s1,!0)),s1}let V1=z1?K.outerHTML:K.innerHTML;return z1&&N["!doctype"]&&K.ownerDocument&&K.ownerDocument.doctype&&K.ownerDocument.doctype.name&&c3($p,K.ownerDocument.doctype.name)&&(V1="<!DOCTYPE "+K.ownerDocument.doctype.name+`>
6
+ `+o1):K.stack=o1}throw K}}_request(U,B){typeof U=="string"?(B=B||{}).url=U:B=U||{},B=E3(this.defaults,B);const{transitional:K,paramsSerializer:Q,headers:o1}=B;K!==void 0&&Tt.assertOptions(K,{silentJSONParsing:X.transitional(X.boolean),forcedJSONParsing:X.transitional(X.boolean),clarifyTimeoutError:X.transitional(X.boolean)},!1),Q!=null&&(T.isFunction(Q)?B.paramsSerializer={serialize:Q}:Tt.assertOptions(Q,{encode:X.function,serialize:X.function},!0)),B.method=(B.method||this.defaults.method||"get").toLowerCase();let s1=o1&&T.merge(o1.common,o1[B.method]);o1&&T.forEach(["delete","get","head","post","put","patch","common"],U1=>{delete o1[U1]}),B.headers=m1.concat(s1,o1);const x1=[];let V1=!0;this.interceptors.request.forEach(function(U1){typeof U1.runWhen=="function"&&U1.runWhen(B)===!1||(V1=V1&&U1.synchronous,x1.unshift(U1.fulfilled,U1.rejected))});const L1=[];let w1;this.interceptors.response.forEach(function(U1){L1.push(U1.fulfilled,U1.rejected)});let N1,I1=0;if(!V1){const U1=[M0.bind(this),void 0];for(U1.unshift.apply(U1,x1),U1.push.apply(U1,L1),N1=U1.length,w1=Promise.resolve(B);I1<N1;)w1=w1.then(U1[I1++],U1[I1++]);return w1}N1=x1.length;let J1=B;for(I1=0;I1<N1;){const U1=x1[I1++],i2=x1[I1++];try{J1=U1(J1)}catch(P2){i2.call(this,P2);break}}try{w1=M0.call(this,J1)}catch(U1){return Promise.reject(U1)}for(I1=0,N1=L1.length;I1<N1;)w1=w1.then(L1[I1++],L1[I1++]);return w1}getUri(U){return g1(_e((U=E3(this.defaults,U)).baseURL,U.url),U.params,U.paramsSerializer)}}T.forEach(["delete","get","head","options"],function(D){r1.prototype[D]=function(U,B){return this.request(E3(B||{},{method:D,url:U,data:(B||{}).data}))}}),T.forEach(["post","put","patch"],function(D){function U(B){return function(K,Q,o1){return this.request(E3(o1||{},{method:D,headers:B?{"Content-Type":"multipart/form-data"}:{},url:K,data:Q}))}}r1.prototype[D]=U(),r1.prototype[D+"Form"]=U(!0)});var J=r1;class e1{constructor(U){if(typeof U!="function")throw new TypeError("executor must be a function.");let B;this.promise=new Promise(function(Q){B=Q});const K=this;this.promise.then(Q=>{if(!K._listeners)return;let o1=K._listeners.length;for(;o1-- >0;)K._listeners[o1](Q);K._listeners=null}),this.promise.then=Q=>{let o1;const s1=new Promise(x1=>{K.subscribe(x1),o1=x1}).then(Q);return s1.cancel=function(){K.unsubscribe(o1)},s1},U(function(Q,o1,s1){K.reason||(K.reason=new Q1(Q,o1,s1),B(K.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(U){this.reason?U(this.reason):this._listeners?this._listeners.push(U):this._listeners=[U]}unsubscribe(U){if(!this._listeners)return;const B=this._listeners.indexOf(U);B!==-1&&this._listeners.splice(B,1)}static source(){let U;return{token:new e1(function(B){U=B}),cancel:U}}}var c1=e1;const i1={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(i1).forEach(([D,U])=>{i1[U]=D});var C1=i1;const M1=function D(U){const B=new J(U),K=l(J.prototype.request,B);return T.extend(K,J.prototype,B,{allOwnKeys:!0}),T.extend(K,B,null,{allOwnKeys:!0}),K.create=function(Q){return D(E3(U,Q))},K}(O1);M1.Axios=J,M1.CanceledError=Q1,M1.CancelToken=c1,M1.isCancel=T1,M1.VERSION="1.6.8",M1.toFormData=z1,M1.AxiosError=I,M1.Cancel=M1.CanceledError,M1.all=function(D){return Promise.all(D)},M1.spread=function(D){return function(U){return D.apply(null,U)}},M1.isAxiosError=function(D){return T.isObject(D)&&D.isAxiosError===!0},M1.mergeConfig=E3,M1.AxiosHeaders=m1,M1.formToJSON=D=>G1(T.isHTMLForm(D)?new FormData(D):D),M1.getAdapter=Z4,M1.HttpStatusCode=C1,M1.default=M1,c.exports=M1}},r={};function n(c){var i=r[c];if(i!==void 0)return i.exports;var s=r[c]={exports:{}};return a[c].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)})())})(Tp);var Ge=Tp.exports,E4;let Q2=(E4=class{constructor(t){v1(this,"config");this.config=t}static init(t){if(E4.instance)throw new Error("Config is already initialized");E4.instance=new E4(t)}static getConfig(){if(!E4.instance)throw new Error("Config is not initialized. Call init() first.");return E4.instance.config}},v1(E4,"instance"),E4);const m4=I4.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}}),r=o.computed({get(){return t.value.theme},set(l){t.value.theme=l}});o.watch(r,()=>To());function n(l){e.value||(e.value=!0,t.value=Ge.mergeDeep(t.value,l))}function c(l){a.value=l}function i(l){r.value=l}function s(){r.value=r.value==="light"?"dark":"light"}return{options:t,language:a,theme:r,init:n,setLanguage:c,setTheme:i,changeTheme:s}},{persist:!0}),b4=I4.defineStore("pga-route",()=>{const e=o.ref(),t=o.ref(!Er()),a=o.computed(()=>e.value&&Pv(e.value)),r=o.computed(()=>a.value&&e.value&&Cn(a.value,e.value.name)),n=o.computed(()=>e.value&&e.value.meta),c=o.computed(()=>{var u;return(u=n.value)==null?void 0:u.access}),i=o.computed(()=>{var u;return Oe((u=n.value)==null?void 0:u.description)}),s=o.computed(()=>{var u;return!!Oe((u=n.value)==null?void 0:u.preventDisplayNavigationBars)}),l=o.computed(()=>!s.value&&t.value),f=o.computed(()=>{var u;return!!Oe((u=n.value)==null?void 0:u.preventScrollOnView)});return{currentRoute:e,isSideBarOpen:t,routeType:a,routeTitle:r,routeMeta:n,routeAccess:c,routeDescription:i,preventDisplayNavigationBars:s,isDisplayingSideBar:l,preventScrollOnView:f}});function Ep(){const e=Q2.getConfig().stores.useAuthStore(),t=b4().routeType,a=`auth${Ge.getFirstChartInUppercase(t)}`;return e[a].accessToken}async function Np(e,t,a){const r=Q2.getConfig(),n=r.stores.useAuthStore(),c=`${e}s/login`,i={basicAuth:t,isLoadingRef:a==null?void 0:a.isLoadingRef},s=await r.api.postOne(c,void 0,i);n.setAuthUser(e,s.data);const l={name:(a==null?void 0:a.redirectToName)||r.defaultRoutes[e].auth};r.router.push(l)}async function Dp(){const e=Q2.getConfig(),t=e.stores.useAuthStore(),a=b4().routeType;try{const r=`${a}s/validateAccessToken`,n=await e.api.getOne(r,void 0,void 0,{preventDisplayError:!0});t.setAuthUser(a,n.data)}catch{t.setAuthUser(a,null)}}function sT(e){const t=Q2.getConfig();t.stores.useAuthStore().setAuthUser(e,null);const r={name:`login${Ge.getFirstChartInUppercase(e)}`};t.router.push(r)}function oc(e,t,a){const r=document.querySelector(":root"),n="--pga-",c=a!=null&&a.preventConvertToKebab?e:Ge.camelToKebab(e);r.style.setProperty(`${n}${c}`,t)}function lc(e){const t=e?"visible":"hidden";document.body.style.overflow=t}function oT(e,t,a="animate__"){return new Promise(r=>{const n=`${a}${t}`,c=document.querySelector(e);if(!c)return;c.classList.add(`${a}animated`,n);const i=s=>{s.stopPropagation(),c==null||c.classList.remove(`${a}animated`,n),r("Animation ended")};c.addEventListener("animationend",i,{once:!0})})}function vn(e){return Object.keys(Sp).includes(e)}function Op(e,t){let a=0,r=0,n=0,c=0;if(e.startsWith("rgb")||e.startsWith("rgba")){const s=e.replace(/rgba?\((.*?)\)/,"$1").replace(/\s/g,""),[,l,f,u,d="1"]=s.match(/(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?/);a=parseInt(l),r=parseInt(f),n=parseInt(u),c=parseFloat(d)}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,d]=s.match(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i).map((h,m)=>m===4?parseInt(h,16)/255:parseInt(h,16));d=d?parseFloat(d.toFixed(3)):1,a=l,r=f,n=u,c=d}const i=t/100;return`rgba(${a}, ${r}, ${n}, ${c*i})`}function Ss(e,t){const r=`color-${Ge.camelToKebab(e)}`,n={preventConvertToKebab:!0};oc(r,t,n);for(let c=5;c<=95;c+=5){const i=c<10?`0${c}`:c%10===0?`${c/10}`:`${c}`;oc(`${r}-0${i}`,Op(t,c),n)}}function lT(){const e=Ap,t=Math.floor(Math.random()*Object.keys(e).length);return e[Object.keys(e)[t]]}const fT={es:{successfulLogout:"¡Vuelva pronto!"}},uT={es:{today:"Hoy",tomorrow:"Mañana",yesterday:"Ayer"}},dT={es:{alertTitle:"¿Estás seguro?",cancelBtn:"Cancelar",acceptBtn:"Eliminar"}},hT={es:{INTERNAL_SERVER_ERROR:"Ha ocurrido un error",DUPLICATE_KEY:"Item ya creado",FOREIGN_KEY_INTEGRITY:"El item no existe",MODELS_ASSOCIATED:"No se puede eliminar porque tiene items asociados",INVALID_INPUT_DATA:"Los datos ingresados no son correctos",ENTITY_NOT_FOUND:"El item no existe",INVALID_CREDENTIALS:"Usuario o contraseña incorrectos",UNAUTHORIZED:"No autorizado"}},mT={es:{_LOGIN:"¡Bienvenido!"}},pT={es:{backBtn:"Volver",copyBtn:"Copiar",textCopied:"Copiado",deleteBtn:"Eliminar",confirmDeleteText:"",editBtn:"Editar",logoutBtn:"Cerrar sesión",navigateToBtn:"Ver más",seeDetailsBtn:"Detalles"}},vT={es:{noItemsText:"No hay resultados",showAll:"Mostrar todo",hide:"Ocultar"}},gT={es:{savedMsg:"Guardado",saveErrorMsg:"Texto demasiado largo"}},yT={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"}},xT={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"}},bT={es:{header:{switchToLightMode:"Cambiar a modo claro",switchToDarkMode:"Cambiar a modo oscuro"},footer:{allRightsReserved:"Todos los derechos reservados",designedBy:"Diseñado por"}}},CT={es:{cancelBtn:"Cancelar",acceptBtn:"Guardar"}},MT={es:{columnTitleActions:"",selectAllBtn:"Seleccionar todo",withTheSelectedItemsText:"Con los seleccionados:",filtersBtn:"Filtros",filtersModalTitle:"Filtros",confirmDeleteText:'¿Eliminar "{description}"?'}},zT={es:{removeAllBtn:"Eliminar todo"}},wT={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}"}},_T={authHelpers:fT,datetime:uT,alert:dT,apiConnectionsError:hT,apiConnectionsSuccess:mT,pgaButton:pT,pgaDisplay:vT,pgaEditor:gT,pgaFile:yT,pgaForm:xT,pgaLayout:bT,pgaModal:CT,pgaTable:MT,notifications:zT,validations:wT};function Pp(e){function t(a,r){return function(n,c,i){var y;const s=m4().language,l=e==null?void 0:e[a],f=l==null?void 0:l[s],u=r?r.split(".").reduce((x,C)=>x==null?void 0:x[C],f):f,d=(y=e==null?void 0:e.global)==null?void 0:y[s],h=n,m=(u==null?void 0:u[h])||(d==null?void 0:d[h])||"",v=(c==null?void 0:c.count)||1,p=m.split("|").map(x=>x.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 x in c||{})x!=="count"&&c[x]!==void 0&&c[x]!==null&&(g=g.replace(new RegExp(`{${x}}`,"g"),c[x].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 w2=Pp(_T),xi=w2("datetime");function p4(e,t){if(!e)return"-";const r={...{format:"short",withoutYear:!1,withoutDay:!1,withTime:!0,justTime:!1},...t},n={year:r.withoutYear||r.justTime?void 0:"numeric",month:r.justTime?void 0:r.format==="numeric"?"2-digit":r.format,day:r.withoutDay||r.justTime?void 0:"2-digit",weekday:r.withoutDay||r.justTime||r.format==="numeric"?void 0:r.format,hour:r.withTime||r.justTime?"2-digit":void 0,minute:r.withTime||r.justTime?"2-digit":void 0},c=e.toLocaleString(m4().language,n);return c.charAt(0).toUpperCase()+c.slice(1)}function kT(e){return p4(e,{format:"short",withoutDay:!0,withTime:!1})}function Wa(e){return p4(e,{format:"numeric",withTime:!1})}function As(e){if(!e)return"";const t=Wa(e),a=new Date,r=new Date(a);r.setDate(a.getDate()+1);const n=new Date(a);if(n.setDate(a.getDate()-1),t===Wa(a))return xi("today");if(t===Wa(r))return xi("tomorrow");if(t===Wa(n))return xi("yesterday");const c={format:"long",withTime:!1};return e.getFullYear()===a.getFullYear()?p4(e,{...c,withoutYear:!0}):p4(e,c)}function Bp(e){return p4(e,{justTime:!0})}/*! @license DOMPurify 3.2.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.3/LICENSE */const{entries:Fp,setPrototypeOf:Lf,isFrozen:HT,getPrototypeOf:VT,getOwnPropertyDescriptor:LT}=Object;let{freeze:u3,seal:I3,create:Rp}=Object,{apply:Ts,construct:Es}=typeof Reflect<"u"&&Reflect;u3||(u3=function(t){return t});I3||(I3=function(t){return t});Ts||(Ts=function(t,a,r){return t.apply(a,r)});Es||(Es=function(t,a){return new t(...a)});const Xn=k3(Array.prototype.forEach),Sf=k3(Array.prototype.pop),Ma=k3(Array.prototype.push),B8=k3(String.prototype.toLowerCase),bi=k3(String.prototype.toString),Af=k3(String.prototype.match),za=k3(String.prototype.replace),ST=k3(String.prototype.indexOf),AT=k3(String.prototype.trim),K3=k3(Object.prototype.hasOwnProperty),c3=k3(RegExp.prototype.test),wa=TT(TypeError);function k3(e){return function(t){for(var a=arguments.length,r=new Array(a>1?a-1:0),n=1;n<a;n++)r[n-1]=arguments[n];return Ts(e,t,r)}}function TT(e){return function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return Es(e,a)}}function s2(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:B8;Lf&&Lf(e,null);let r=t.length;for(;r--;){let n=t[r];if(typeof n=="string"){const c=a(n);c!==n&&(HT(t)||(t[r]=c),n=c)}e[n]=!0}return e}function ET(e){for(let t=0;t<e.length;t++)K3(e,t)||(e[t]=null);return e}function S0(e){const t=Rp(null);for(const[a,r]of Fp(e))K3(e,a)&&(Array.isArray(r)?t[a]=ET(r):r&&typeof r=="object"&&r.constructor===Object?t[a]=S0(r):t[a]=r);return t}function _a(e,t){for(;e!==null;){const r=LT(e,t);if(r){if(r.get)return k3(r.get);if(typeof r.value=="function")return k3(r.value)}e=VT(e)}function a(){return null}return a}const Tf=u3(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ci=u3(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Mi=u3(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),NT=u3(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),zi=u3(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),DT=u3(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ef=u3(["#text"]),Nf=u3(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),wi=u3(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Df=u3(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Kn=u3(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),OT=I3(/\{\{[\w\W]*|[\w\W]*\}\}/gm),PT=I3(/<%[\w\W]*|[\w\W]*%>/gm),BT=I3(/\$\{[\w\W]*}/gm),FT=I3(/^data-[\-\w.\u00B7-\uFFFF]+$/),RT=I3(/^aria-[\-\w]+$/),Ip=I3(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IT=I3(/^(?:\w+script|data):/i),$T=I3(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$p=I3(/^html$/i),UT=I3(/^[a-z][.\w]*(-[.\w]+)+$/i);var Of=Object.freeze({__proto__:null,ARIA_ATTR:RT,ATTR_WHITESPACE:$T,CUSTOM_ELEMENT:UT,DATA_ATTR:FT,DOCTYPE_NAME:$p,ERB_EXPR:PT,IS_ALLOWED_URI:Ip,IS_SCRIPT_OR_DATA:IT,MUSTACHE_EXPR:OT,TMPLIT_EXPR:BT});const ka={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},WT=function(){return typeof window>"u"?null:window},qT=function(t,a){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";a&&a.hasAttribute(n)&&(r=a.getAttribute(n));const c="dompurify"+(r?"#"+r:"");try{return t.createPolicy(c,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+c+" could not be created."),null}},Pf=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Up(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:WT();const t=U=>Up(U);if(t.version="3.2.3",t.removed=[],!e||!e.document||e.document.nodeType!==ka.document)return t.isSupported=!1,t;let{document:a}=e;const r=a,n=r.currentScript,{DocumentFragment:c,HTMLTemplateElement:i,Node:s,Element:l,NodeFilter:f,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:h,trustedTypes:m}=e,v=l.prototype,p=_a(v,"cloneNode"),g=_a(v,"remove"),y=_a(v,"nextSibling"),x=_a(v,"childNodes"),C=_a(v,"parentNode");if(typeof i=="function"){const U=a.createElement("template");U.content&&U.content.ownerDocument&&(a=U.content.ownerDocument)}let b,M="";const{implementation:w,createNodeIterator:z,createDocumentFragment:k,getElementsByTagName:S}=a,{importNode:L}=r;let H=Pf();t.isSupported=typeof Fp=="function"&&typeof C=="function"&&w&&w.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:_,ERB_EXPR:E,TMPLIT_EXPR:j,DATA_ATTR:P,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:F,ATTR_WHITESPACE:Z,CUSTOM_ELEMENT:q}=Of;let{IS_ALLOWED_URI:G}=Of,N=null;const A=s2({},[...Tf,...Ci,...Mi,...zi,...Ef]);let V=null;const W=s2({},[...Nf,...wi,...Df,...Kn]);let Y=Object.seal(Rp(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),T=null,I=null,a1=!0,n1=!0,t1=!1,d1=!0,R=!1,p1=!0,z1=!1,h1=!1,l1=!1,f1=!1,u1=!1,g1=!1,k1=!0,b1=!1;const H1="user-content-";let F1=!0,$1=!1,W1={},K1=null;const d2=s2({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let G1=null;const Y2=s2({},["audio","video","img","source","image","track"]);let O1=null;const c2=s2({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),G2="http://www.w3.org/1998/Math/MathML",m2="http://www.w3.org/2000/svg",A2="http://www.w3.org/1999/xhtml";let Be=A2,y1=!1,m1=null;const S1=s2({},[G2,m2,A2],bi);let T1=s2({},["mi","mo","mn","ms","mtext"]),Q1=s2({},["annotation-xml"]);const J2=s2({},["title","style","font","a","script"]);let _e=null;const h3=["application/xhtml+xml","text/html"],j3="text/html";let k2=null,xe=null;const K4=a.createElement("form"),Z4=function(B){return B instanceof RegExp||B instanceof Function},Q4=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(xe&&xe===B)){if((!B||typeof B!="object")&&(B={}),B=S0(B),_e=h3.indexOf(B.PARSER_MEDIA_TYPE)===-1?j3:B.PARSER_MEDIA_TYPE,k2=_e==="application/xhtml+xml"?bi:B8,N=K3(B,"ALLOWED_TAGS")?s2({},B.ALLOWED_TAGS,k2):A,V=K3(B,"ALLOWED_ATTR")?s2({},B.ALLOWED_ATTR,k2):W,m1=K3(B,"ALLOWED_NAMESPACES")?s2({},B.ALLOWED_NAMESPACES,bi):S1,O1=K3(B,"ADD_URI_SAFE_ATTR")?s2(S0(c2),B.ADD_URI_SAFE_ATTR,k2):c2,G1=K3(B,"ADD_DATA_URI_TAGS")?s2(S0(Y2),B.ADD_DATA_URI_TAGS,k2):Y2,K1=K3(B,"FORBID_CONTENTS")?s2({},B.FORBID_CONTENTS,k2):d2,T=K3(B,"FORBID_TAGS")?s2({},B.FORBID_TAGS,k2):{},I=K3(B,"FORBID_ATTR")?s2({},B.FORBID_ATTR,k2):{},W1=K3(B,"USE_PROFILES")?B.USE_PROFILES:!1,a1=B.ALLOW_ARIA_ATTR!==!1,n1=B.ALLOW_DATA_ATTR!==!1,t1=B.ALLOW_UNKNOWN_PROTOCOLS||!1,d1=B.ALLOW_SELF_CLOSE_IN_ATTR!==!1,R=B.SAFE_FOR_TEMPLATES||!1,p1=B.SAFE_FOR_XML!==!1,z1=B.WHOLE_DOCUMENT||!1,f1=B.RETURN_DOM||!1,u1=B.RETURN_DOM_FRAGMENT||!1,g1=B.RETURN_TRUSTED_TYPE||!1,l1=B.FORCE_BODY||!1,k1=B.SANITIZE_DOM!==!1,b1=B.SANITIZE_NAMED_PROPS||!1,F1=B.KEEP_CONTENT!==!1,$1=B.IN_PLACE||!1,G=B.ALLOWED_URI_REGEXP||Ip,Be=B.NAMESPACE||A2,T1=B.MATHML_TEXT_INTEGRATION_POINTS||T1,Q1=B.HTML_INTEGRATION_POINTS||Q1,Y=B.CUSTOM_ELEMENT_HANDLING||{},B.CUSTOM_ELEMENT_HANDLING&&Z4(B.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Y.tagNameCheck=B.CUSTOM_ELEMENT_HANDLING.tagNameCheck),B.CUSTOM_ELEMENT_HANDLING&&Z4(B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Y.attributeNameCheck=B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),B.CUSTOM_ELEMENT_HANDLING&&typeof B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Y.allowCustomizedBuiltInElements=B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),R&&(n1=!1),u1&&(f1=!0),W1&&(N=s2({},Ef),V=[],W1.html===!0&&(s2(N,Tf),s2(V,Nf)),W1.svg===!0&&(s2(N,Ci),s2(V,wi),s2(V,Kn)),W1.svgFilters===!0&&(s2(N,Mi),s2(V,wi),s2(V,Kn)),W1.mathMl===!0&&(s2(N,zi),s2(V,Df),s2(V,Kn))),B.ADD_TAGS&&(N===A&&(N=S0(N)),s2(N,B.ADD_TAGS,k2)),B.ADD_ATTR&&(V===W&&(V=S0(V)),s2(V,B.ADD_ATTR,k2)),B.ADD_URI_SAFE_ATTR&&s2(O1,B.ADD_URI_SAFE_ATTR,k2),B.FORBID_CONTENTS&&(K1===d2&&(K1=S0(K1)),s2(K1,B.FORBID_CONTENTS,k2)),F1&&(N["#text"]=!0),z1&&s2(N,["html","head","body"]),N.table&&(s2(N,["tbody"]),delete T.tbody),B.TRUSTED_TYPES_POLICY){if(typeof B.TRUSTED_TYPES_POLICY.createHTML!="function")throw wa('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof B.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw wa('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');b=B.TRUSTED_TYPES_POLICY,M=b.createHTML("")}else b===void 0&&(b=qT(m,n)),b!==null&&typeof M=="string"&&(M=b.createHTML(""));u3&&u3(B),xe=B}},M0=s2({},[...Ci,...Mi,...NT]),z0=s2({},[...zi,...DT]),E3=function(B){let K=C(B);(!K||!K.tagName)&&(K={namespaceURI:Be,tagName:"template"});const Q=B8(B.tagName),o1=B8(K.tagName);return m1[B.namespaceURI]?B.namespaceURI===m2?K.namespaceURI===A2?Q==="svg":K.namespaceURI===G2?Q==="svg"&&(o1==="annotation-xml"||T1[o1]):!!M0[Q]:B.namespaceURI===G2?K.namespaceURI===A2?Q==="math":K.namespaceURI===m2?Q==="math"&&Q1[o1]:!!z0[Q]:B.namespaceURI===A2?K.namespaceURI===m2&&!Q1[o1]||K.namespaceURI===G2&&!T1[o1]?!1:!z0[Q]&&(J2[Q]||!M0[Q]):!!(_e==="application/xhtml+xml"&&m1[B.namespaceURI]):!1},$e=function(B){Ma(t.removed,{element:B});try{C(B).removeChild(B)}catch{g(B)}},J4=function(B,K){try{Ma(t.removed,{attribute:K.getAttributeNode(B),from:K})}catch{Ma(t.removed,{attribute:null,from:K})}if(K.removeAttribute(B),B==="is")if(f1||u1)try{$e(K)}catch{}else try{K.setAttribute(B,"")}catch{}},Tt=function(B){let K=null,Q=null;if(l1)B="<remove></remove>"+B;else{const x1=Af(B,/^[\r\n\t ]+/);Q=x1&&x1[0]}_e==="application/xhtml+xml"&&Be===A2&&(B='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+B+"</body></html>");const o1=b?b.createHTML(B):B;if(Be===A2)try{K=new h().parseFromString(o1,_e)}catch{}if(!K||!K.documentElement){K=w.createDocument(Be,"template",null);try{K.documentElement.innerHTML=y1?M:o1}catch{}}const s1=K.body||K.documentElement;return B&&Q&&s1.insertBefore(a.createTextNode(Q),s1.childNodes[0]||null),Be===A2?S.call(K,z1?"html":"body")[0]:z1?K.documentElement:s1},X=function(B){return z.call(B.ownerDocument||B,B,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},r1=function(B){return B instanceof d&&(typeof B.nodeName!="string"||typeof B.textContent!="string"||typeof B.removeChild!="function"||!(B.attributes instanceof u)||typeof B.removeAttribute!="function"||typeof B.setAttribute!="function"||typeof B.namespaceURI!="string"||typeof B.insertBefore!="function"||typeof B.hasChildNodes!="function")},J=function(B){return typeof s=="function"&&B instanceof s};function e1(U,B,K){Xn(U,Q=>{Q.call(t,B,K,xe)})}const c1=function(B){let K=null;if(e1(H.beforeSanitizeElements,B,null),r1(B))return $e(B),!0;const Q=k2(B.nodeName);if(e1(H.uponSanitizeElement,B,{tagName:Q,allowedTags:N}),B.hasChildNodes()&&!J(B.firstElementChild)&&c3(/<[/\w]/g,B.innerHTML)&&c3(/<[/\w]/g,B.textContent)||B.nodeType===ka.progressingInstruction||p1&&B.nodeType===ka.comment&&c3(/<[/\w]/g,B.data))return $e(B),!0;if(!N[Q]||T[Q]){if(!T[Q]&&C1(Q)&&(Y.tagNameCheck instanceof RegExp&&c3(Y.tagNameCheck,Q)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(Q)))return!1;if(F1&&!K1[Q]){const o1=C(B)||B.parentNode,s1=x(B)||B.childNodes;if(s1&&o1){const x1=s1.length;for(let V1=x1-1;V1>=0;--V1){const L1=p(s1[V1],!0);L1.__removalCount=(B.__removalCount||0)+1,o1.insertBefore(L1,y(B))}}}return $e(B),!0}return B instanceof l&&!E3(B)||(Q==="noscript"||Q==="noembed"||Q==="noframes")&&c3(/<\/no(script|embed|frames)/i,B.innerHTML)?($e(B),!0):(R&&B.nodeType===ka.text&&(K=B.textContent,Xn([_,E,j],o1=>{K=za(K,o1," ")}),B.textContent!==K&&(Ma(t.removed,{element:B.cloneNode()}),B.textContent=K)),e1(H.afterSanitizeElements,B,null),!1)},i1=function(B,K,Q){if(k1&&(K==="id"||K==="name")&&(Q in a||Q in K4))return!1;if(!(n1&&!I[K]&&c3(P,K))){if(!(a1&&c3(O,K))){if(!V[K]||I[K]){if(!(C1(B)&&(Y.tagNameCheck instanceof RegExp&&c3(Y.tagNameCheck,B)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(B))&&(Y.attributeNameCheck instanceof RegExp&&c3(Y.attributeNameCheck,K)||Y.attributeNameCheck instanceof Function&&Y.attributeNameCheck(K))||K==="is"&&Y.allowCustomizedBuiltInElements&&(Y.tagNameCheck instanceof RegExp&&c3(Y.tagNameCheck,Q)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(Q))))return!1}else if(!O1[K]){if(!c3(G,za(Q,Z,""))){if(!((K==="src"||K==="xlink:href"||K==="href")&&B!=="script"&&ST(Q,"data:")===0&&G1[B])){if(!(t1&&!c3(F,za(Q,Z,"")))){if(Q)return!1}}}}}}return!0},C1=function(B){return B!=="annotation-xml"&&Af(B,q)},M1=function(B){e1(H.beforeSanitizeAttributes,B,null);const{attributes:K}=B;if(!K||r1(B))return;const Q={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0};let o1=K.length;for(;o1--;){const s1=K[o1],{name:x1,namespaceURI:V1,value:L1}=s1,w1=k2(x1);let N1=x1==="value"?L1:AT(L1);if(Q.attrName=w1,Q.attrValue=N1,Q.keepAttr=!0,Q.forceKeepAttr=void 0,e1(H.uponSanitizeAttribute,B,Q),N1=Q.attrValue,b1&&(w1==="id"||w1==="name")&&(J4(x1,B),N1=H1+N1),p1&&c3(/((--!?|])>)|<\/(style|title)/i,N1)){J4(x1,B);continue}if(Q.forceKeepAttr||(J4(x1,B),!Q.keepAttr))continue;if(!d1&&c3(/\/>/i,N1)){J4(x1,B);continue}R&&Xn([_,E,j],J1=>{N1=za(N1,J1," ")});const I1=k2(B.nodeName);if(i1(I1,w1,N1)){if(b&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!V1)switch(m.getAttributeType(I1,w1)){case"TrustedHTML":{N1=b.createHTML(N1);break}case"TrustedScriptURL":{N1=b.createScriptURL(N1);break}}try{V1?B.setAttributeNS(V1,x1,N1):B.setAttribute(x1,N1),r1(B)?$e(B):Sf(t.removed)}catch{}}}e1(H.afterSanitizeAttributes,B,null)},D=function U(B){let K=null;const Q=X(B);for(e1(H.beforeSanitizeShadowDOM,B,null);K=Q.nextNode();)e1(H.uponSanitizeShadowNode,K,null),c1(K),M1(K),K.content instanceof c&&U(K.content);e1(H.afterSanitizeShadowDOM,B,null)};return t.sanitize=function(U){let B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=null,Q=null,o1=null,s1=null;if(y1=!U,y1&&(U="<!-->"),typeof U!="string"&&!J(U))if(typeof U.toString=="function"){if(U=U.toString(),typeof U!="string")throw wa("dirty is not a string, aborting")}else throw wa("toString is not a function");if(!t.isSupported)return U;if(h1||Q4(B),t.removed=[],typeof U=="string"&&($1=!1),$1){if(U.nodeName){const L1=k2(U.nodeName);if(!N[L1]||T[L1])throw wa("root node is forbidden and cannot be sanitized in-place")}}else if(U instanceof s)K=Tt("<!---->"),Q=K.ownerDocument.importNode(U,!0),Q.nodeType===ka.element&&Q.nodeName==="BODY"||Q.nodeName==="HTML"?K=Q:K.appendChild(Q);else{if(!f1&&!R&&!z1&&U.indexOf("<")===-1)return b&&g1?b.createHTML(U):U;if(K=Tt(U),!K)return f1?null:g1?M:""}K&&l1&&$e(K.firstChild);const x1=X($1?U:K);for(;o1=x1.nextNode();)c1(o1),M1(o1),o1.content instanceof c&&D(o1.content);if($1)return U;if(f1){if(u1)for(s1=k.call(K.ownerDocument);K.firstChild;)s1.appendChild(K.firstChild);else s1=K;return(V.shadowroot||V.shadowrootmode)&&(s1=L.call(r,s1,!0)),s1}let V1=z1?K.outerHTML:K.innerHTML;return z1&&N["!doctype"]&&K.ownerDocument&&K.ownerDocument.doctype&&K.ownerDocument.doctype.name&&c3($p,K.ownerDocument.doctype.name)&&(V1="<!DOCTYPE "+K.ownerDocument.doctype.name+`>
7
7
  `+V1),R&&Xn([_,E,j],L1=>{V1=za(V1,L1," ")}),b&&g1?b.createHTML(V1):V1},t.setConfig=function(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Q4(U),h1=!0},t.clearConfig=function(){xe=null,h1=!1},t.isValidAttribute=function(U,B,K){xe||Q4({});const Q=k2(U),o1=k2(B);return i1(Q,o1,K)},t.addHook=function(U,B){typeof B=="function"&&Ma(H[U],B)},t.removeHook=function(U){return Sf(H[U])},t.removeHooks=function(U){H[U]=[]},t.removeAllHooks=function(){H=Pf()},t}var Wp=Up();function jT(e){return Wp.sanitize(e)}function qp(e){return Wp.sanitize(e,{ALLOWED_TAGS:[]})}function Ns(e,t){const a=m4().language;let r=e.toLocaleString(a,{maximumFractionDigits:t==null?void 0:t.maxDecimals});return r==="-0"&&(r="0"),t!=null&&t.prefix&&(r=`${t.prefix} ${r}`),t!=null&&t.suffix&&(r=`${r} ${t.suffix}`),r}//! moment.js
8
8
  //! version : 2.30.1
9
9
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
package/dist/main.es.js CHANGED
@@ -1435,7 +1435,7 @@ function LE(e) {
1435
1435
  m.length === 2 ? v = p === 1 ? m[0] : m[1] : m.length === 3 && (v = p === 0 ? m[0] : p === 1 ? m[1] : m[2]), v = v.replace(new RegExp("{count}", "g"), p.toString());
1436
1436
  for (const y in i || {})
1437
1437
  y !== "count" && i[y] !== void 0 && i[y] !== null && (v = v.replace(new RegExp(`{${y}}`, "g"), i[y].toString()));
1438
- return c != null && c.singular ? v = m[0] : c != null && c.uppercase && m.length === 2 && (v = m[1]), c != null && c.lowercase ? v.toLowerCase() : c != null && c.uppercase ? v.toUpperCase() : c != null && c.capitalize ? `${v.charAt(0).toUpperCase()}${v.slice(1).toLowerCase()}` : v;
1438
+ return c != null && c.singular ? v = m[0] : c != null && c.plural && m.length === 2 && (v = m[1]), c != null && c.lowercase ? v.toLowerCase() : c != null && c.uppercase ? v.toUpperCase() : c != null && c.capitalize ? `${v.charAt(0).toUpperCase()}${v.slice(1).toLowerCase()}` : v;
1439
1439
  };
1440
1440
  }
1441
1441
  return t;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-lib",
3
3
  "description": "",
4
- "version": "4.0.44",
4
+ "version": "4.0.45",
5
5
  "author": "Gianfranco Raselli",
6
6
  "license": "ISC",
7
7
  "homepage": "https://github.com/GianfrancoRaselli/pangea-lib#readme",