pangea-lib 2.12.259 → 2.12.261

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,...P){const K=new this(U);return P.forEach(Z=>K.set(Z)),K}static accessor(U){const P=(this[Y2]=this[Y2]={accessors:{}}).accessors,K=this.prototype;function Z(o1){const s1=m2(o1);P[s1]||(function(x1,V1){const L1=E.toCamelCase(" "+V1);["get","set","has"].forEach(w1=>{Object.defineProperty(x1,w1+L1,{value:function(N1,R1,J1){return this[w1].call(this,V1,N1,R1,J1)},configurable:!0})})}(K,o1),P[s1]=!0)}return E.isArray(U)?U.forEach(Z):Z(U),this}}y1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),E.reduceDescriptors(y1.prototype,({value:D},U)=>{let P=U[0].toUpperCase()+U.slice(1);return{get:()=>D,set(K){this[P]=K}}}),E.freezeMethods(y1);var m1=y1;function S1(D,U){const P=this||O1,K=U||P,Z=m1.from(K.headers);let o1=K.data;return E.forEach(D,function(s1){o1=s1.call(P,o1,Z.normalize(),U?U.status:void 0)}),Z.normalize(),o1}function T1(D){return!(!D||!D.__CANCEL__)}function Q1(D,U,P){I.call(this,D??"canceled",I.ERR_CANCELED,U,P),this.name="CanceledError"}E.inherits(Q1,I,{__CANCEL__:!0});var Q2=d2.hasStandardBrowserEnv?{write(D,U,P,K,Z,o1){const s1=[D+"="+encodeURIComponent(U)];E.isNumber(P)&&s1.push("expires="+new Date(P).toGMTString()),E.isString(K)&&s1.push("path="+K),E.isString(Z)&&s1.push("domain="+Z),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 we(D,U){return D&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(U)?function(P,K){return K?P.replace(/\/?\/$/,"")+"/"+K.replace(/^\/+/,""):P}(D,U):U}var d3=d2.hasStandardBrowserEnv?function(){const D=/(msie|trident)/i.test(navigator.userAgent),U=document.createElement("a");let P;function K(Z){let o1=Z;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 P=K(window.location.href),function(Z){const o1=E.isString(Z)?K(Z):Z;return o1.protocol===P.protocol&&o1.host===P.host}}():function(){return!0};function j3(D,U){let P=0;const K=function(Z,o1){Z=Z||10;const s1=new Array(Z),x1=new Array(Z);let V1,L1=0,w1=0;return o1=o1!==void 0?o1:1e3,function(N1){const R1=Date.now(),J1=x1[w1];V1||(V1=R1),s1[L1]=N1,x1[L1]=R1;let U1=w1,i2=0;for(;U1!==L1;)i2+=s1[U1++],U1%=Z;if(L1=(L1+1)%Z,L1===w1&&(w1=(w1+1)%Z),R1-V1<o1)return;const O2=J1&&R1-J1;return O2?Math.round(1e3*i2/O2):void 0}}(50,250);return Z=>{const o1=Z.loaded,s1=Z.lengthComputable?Z.total:void 0,x1=o1-P,V1=K(x1);P=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:Z};L1[U?"download":"upload"]=!0,D(L1)}}const k2={http:null,xhr:typeof XMLHttpRequest<"u"&&function(D){return new Promise(function(U,P){let K=D.data;const Z=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(E.isFormData(K)){if(d2.hasStandardBrowserEnv||d2.hasStandardBrowserWebWorkerEnv)Z.setContentType(!1);else if((s1=Z.getContentType())!==!1){const[U1,...i2]=s1?s1.split(";").map(O2=>O2.trim()).filter(Boolean):[];Z.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)):"";Z.set("Authorization","Basic "+btoa(U1+":"+i2))}const N1=we(D.baseURL,D.url);function R1(){if(!w1)return;const U1=m1.from("getAllResponseHeaders"in w1&&w1.getAllResponseHeaders());(function(i2,O2,fe){const _f=fe.config.validateStatus;fe.status&&_f&&!_f(fe.status)?O2(new I("Request failed with status code "+fe.status,[I.ERR_BAD_REQUEST,I.ERR_BAD_RESPONSE][Math.floor(fe.status/100)-4],fe.config,fe.request,fe)):i2(fe)})(function(i2){U(i2),L1()},function(i2){P(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=R1:w1.onreadystatechange=function(){w1&&w1.readyState===4&&(w1.status!==0||w1.responseURL&&w1.responseURL.indexOf("file:")===0)&&setTimeout(R1)},w1.onabort=function(){w1&&(P(new I("Request aborted",I.ECONNABORTED,D,w1)),w1=null)},w1.onerror=function(){P(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),P(new I(U1,i2.clarifyTimeoutError?I.ETIMEDOUT:I.ECONNABORTED,D,w1)),w1=null},d2.hasStandardBrowserEnv&&(V1&&E.isFunction(V1)&&(V1=V1(D)),V1||V1!==!1&&d3(N1))){const U1=D.xsrfHeaderName&&D.xsrfCookieName&&Q2.read(D.xsrfCookieName);U1&&Z.set(D.xsrfHeaderName,U1)}K===void 0&&Z.setContentType(null),"setRequestHeader"in w1&&E.forEach(Z.toJSON(),function(U1,i2){w1.setRequestHeader(i2,U1)}),E.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&&(P(!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?P(new I("Unsupported protocol "+J1+":",I.ERR_BAD_REQUEST,D)):w1.send(K||null)})}};E.forEach(k2,(D,U)=>{if(D){try{Object.defineProperty(D,"name",{value:U})}catch{}Object.defineProperty(D,"adapterName",{value:U})}});const xe=D=>`- ${D}`,G4=D=>E.isFunction(D)||D===null||D===!1;var X4=D=>{D=E.isArray(D)?D:[D];const{length:U}=D;let P,K;const Z={};for(let o1=0;o1<U;o1++){let s1;if(P=D[o1],K=P,!G4(P)&&(K=k2[(s1=String(P)).toLowerCase()],K===void 0))throw new I(`Unknown adapter '${s1}'`);if(K)break;Z[s1||"#"+o1]=K}if(!K){const o1=Object.entries(Z).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 K4(D){if(D.cancelToken&&D.cancelToken.throwIfRequested(),D.signal&&D.signal.aborted)throw new Q1(null,D)}function M0(D){return K4(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),X4(D.adapter||O1.adapter)(D).then(function(U){return K4(D),U.data=S1.call(D,D.transformResponse,U),U.headers=m1.from(U.headers),U},function(U){return T1(U)||(K4(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 T3(D,U){U=U||{};const P={};function K(L1,w1,N1){return E.isPlainObject(L1)&&E.isPlainObject(w1)?E.merge.call({caseless:N1},L1,w1):E.isPlainObject(w1)?E.merge({},w1):E.isArray(w1)?w1.slice():w1}function Z(L1,w1,N1){return E.isUndefined(w1)?E.isUndefined(L1)?void 0:K(void 0,L1,N1):K(L1,w1,N1)}function o1(L1,w1){if(!E.isUndefined(w1))return K(void 0,w1)}function s1(L1,w1){return E.isUndefined(w1)?E.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)=>Z(z0(L1),z0(w1),!0)};return E.forEach(Object.keys(Object.assign({},D,U)),function(L1){const w1=V1[L1]||Z,N1=w1(D[L1],U[L1],L1);E.isUndefined(N1)&&w1!==x1||(P[L1]=N1)}),P}const Ue={};["object","boolean","number","function","string","symbol"].forEach((D,U)=>{Ue[D]=function(P){return typeof P===D||"a"+(U<1?"n ":" ")+D}});const Z4={};Ue.transitional=function(D,U,P){function K(Z,o1){return"[Axios v1.6.8] Transitional option '"+Z+"'"+o1+(P?". "+P:"")}return(Z,o1,s1)=>{if(D===!1)throw new I(K(o1," has been removed"+(U?" in "+U:"")),I.ERR_DEPRECATED);return U&&!Z4[o1]&&(Z4[o1]=!0,console.warn(K(o1," has been deprecated since v"+U+" and will be removed in the near future"))),!D||D(Z,o1,s1)}};var At={assertOptions:function(D,U,P){if(typeof D!="object")throw new I("options must be an object",I.ERR_BAD_OPTION_VALUE);const K=Object.keys(D);let Z=K.length;for(;Z-- >0;){const o1=K[Z],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(P!==!0)throw new I("Unknown option "+o1,I.ERR_BAD_OPTION)}},validators:Ue};const X=At.validators;class r1{constructor(U){this.defaults=U,this.interceptors={request:new k1,response:new k1}}async request(U,P){try{return await this._request(U,P)}catch(K){if(K instanceof Error){let Z;Error.captureStackTrace?Error.captureStackTrace(Z={}):Z=new Error;const o1=Z.stack?Z.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,P){typeof U=="string"?(P=P||{}).url=U:P=U||{},P=T3(this.defaults,P);const{transitional:K,paramsSerializer:Z,headers:o1}=P;K!==void 0&&At.assertOptions(K,{silentJSONParsing:X.transitional(X.boolean),forcedJSONParsing:X.transitional(X.boolean),clarifyTimeoutError:X.transitional(X.boolean)},!1),Z!=null&&(E.isFunction(Z)?P.paramsSerializer={serialize:Z}:At.assertOptions(Z,{encode:X.function,serialize:X.function},!0)),P.method=(P.method||this.defaults.method||"get").toLowerCase();let s1=o1&&E.merge(o1.common,o1[P.method]);o1&&E.forEach(["delete","get","head","post","put","patch","common"],U1=>{delete o1[U1]}),P.headers=m1.concat(s1,o1);const x1=[];let V1=!0;this.interceptors.request.forEach(function(U1){typeof U1.runWhen=="function"&&U1.runWhen(P)===!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,R1=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(P);R1<N1;)w1=w1.then(U1[R1++],U1[R1++]);return w1}N1=x1.length;let J1=P;for(R1=0;R1<N1;){const U1=x1[R1++],i2=x1[R1++];try{J1=U1(J1)}catch(O2){i2.call(this,O2);break}}try{w1=M0.call(this,J1)}catch(U1){return Promise.reject(U1)}for(R1=0,N1=L1.length;R1<N1;)w1=w1.then(L1[R1++],L1[R1++]);return w1}getUri(U){return g1(we((U=T3(this.defaults,U)).baseURL,U.url),U.params,U.paramsSerializer)}}E.forEach(["delete","get","head","options"],function(D){r1.prototype[D]=function(U,P){return this.request(T3(P||{},{method:D,url:U,data:(P||{}).data}))}}),E.forEach(["post","put","patch"],function(D){function U(P){return function(K,Z,o1){return this.request(T3(o1||{},{method:D,headers:P?{"Content-Type":"multipart/form-data"}:{},url:K,data:Z}))}}r1.prototype[D]=U(),r1.prototype[D+"Form"]=U(!0)});var Q=r1;class J{constructor(U){if(typeof U!="function")throw new TypeError("executor must be a function.");let P;this.promise=new Promise(function(Z){P=Z});const K=this;this.promise.then(Z=>{if(!K._listeners)return;let o1=K._listeners.length;for(;o1-- >0;)K._listeners[o1](Z);K._listeners=null}),this.promise.then=Z=>{let o1;const s1=new Promise(x1=>{K.subscribe(x1),o1=x1}).then(Z);return s1.cancel=function(){K.unsubscribe(o1)},s1},U(function(Z,o1,s1){K.reason||(K.reason=new Q1(Z,o1,s1),P(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 P=this._listeners.indexOf(U);P!==-1&&this._listeners.splice(P,1)}static source(){let U;return{token:new J(function(P){U=P}),cancel:U}}}var c1=J;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 P=new Q(U),K=l(Q.prototype.request,P);return E.extend(K,Q.prototype,P,{allOwnKeys:!0}),E.extend(K,P,null,{allOwnKeys:!0}),K.create=function(Z){return D(T3(U,Z))},K}(O1);M1.Axios=Q,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 E.isObject(D)&&D.isAxiosError===!0},M1.mergeConfig=T3,M1.AxiosHeaders=m1,M1.formToJSON=D=>G1(E.isHTMLForm(D)?new FormData(D):D),M1.getAdapter=X4,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)})())})(Lp);var Fe=Lp.exports,A4;let Z2=(A4=class{constructor(t){v1(this,"config");this.config=t}static init(t){if(A4.instance)throw new Error("Config is already initialized");A4.instance=new A4(t)}static getConfig(){if(!A4.instance)throw new Error("Config is not initialized. Call init() first.");return A4.instance.config}},v1(A4,"instance"),A4);const h4=F4.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,()=>Vo());function n(l){e.value||(e.value=!0,t.value=Fe.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}),$3=F4.defineStore("pga-route",()=>{const e=o.ref(),t=o.ref(!Ho()),a=o.computed(()=>Pv(e.value)),r=o.computed(()=>{var s;return xn(a.value,(s=e.value)==null?void 0:s.name)}),n=o.computed(()=>{var s;return(s=e.value)==null?void 0:s.meta.access}),c=o.computed(()=>{var s;return!!((s=e.value)!=null&&s.meta.preventDisplayNavigationBars)}),i=o.computed(()=>!c.value&&t.value);return{currentRoute:e,isSideBarOpen:t,currentRouteType:a,currentRouteTitle:r,currentRouteAccess:n,preventDisplayNavigationBars:c,isDisplayingSideBar:i}}),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",deleteBtn:"Eliminar",confirmDeleteText:"",editBtn:"Editar",logoutBtn:"Cerrar sesión",navigateToBtn:"Ir",seeDetailsBtn:"Detalles"}},vT={es:{noItemsText:"No hay resultados",showAll:"Mostrar todo",hide:"Ocultar"}},gT={es:{savedMsg:"Guardado",saveErrorMsg:"Texto demasiado largo"}},yT={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"}},xT={es:{selectFileLabel:"Seleccionar imágenes",confirmDeleteText:"La imagen se eliminará permanentemente.",maxImagesQuantityAlert:"Solo puede cargar {maxQuantity} imágenes"}},bT={es:{header:{switchToLightMode:"Cambiar a modo claro",switchToDarkMode:"Cambiar a modo oscuro",logout:"Cerrar sesión"},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,pgaForm:yT,pgaImage:xT,pgaLayout:bT,pgaModal:CT,pgaTable:MT,notifications:zT,validations:wT};function Sp(e){function t(a,r){return function(n,c,i){var y;const s=h4().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)||0,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 _2=Sp(_T),kT=_2("authHelpers");function Ap(){const e=Z2.getConfig().stores.useAuthStore(),t=$3().currentRouteType,a=`auth${Fe.getFirstChartInUppercase(t)}`;return!!e[a].accessToken&&!!e[a].user.id}function Tp(){const e=Z2.getConfig().stores.useAuthStore(),t=$3().currentRouteType,a=`auth${Fe.getFirstChartInUppercase(t)}`;return e[a].accessToken}async function Ep(e,t,a){const r=Z2.getConfig(),n=r.stores.useAuthStore(),c=`authentication/login/${e}`,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 Np(){const e=Z2.getConfig(),t=e.stores.useAuthStore(),a=$3().currentRouteType;try{const r=`authentication/validateAccessToken/${a}`,n=await e.api.getOne(r,void 0,void 0,{preventDisplayError:!0});t.setAuthUser(a,n.data)}catch{t.setAuthUser(a)}}function Dp(e){const t=Z2.getConfig();t.stores.useAuthStore().setAuthUser(e),vt("success",()=>kT("successfulLogout"));const r={name:`login${Fe.getFirstChartInUppercase(e)}`};t.router.push(r)}function nc(e,t,a){const r=document.querySelector(":root"),n="--pga-",c=a!=null&&a.preventConvertToKebab?e:Fe.camelToKebab(e);r.style.setProperty(`${n}${c}`,t)}function cc(e){const t=e?"visible":"hidden";document.body.style.overflow=t}function HT(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 t5(e){return Object.keys(Hp).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 Ls(e,t){const r=`color-${Fe.camelToKebab(e)}`,n={preventConvertToKebab:!0};nc(r,t,n);for(let c=5;c<=95;c+=5){const i=c<10?`0${c}`:c%10===0?`${c/10}`:`${c}`;nc(`${r}-0${i}`,Op(t,c),n)}}function VT(){const e=Vp,t=Math.floor(Math.random()*Object.keys(e).length);return e[Object.keys(e)[t]]}const gi=_2("datetime");function m4(e,t){if(!e)return"-";const r={...{format:"short",withoutYear:!1,withoutDay:!1,withTime:!0,justTime:!1},...t},n={weekday:r.format==="numeric"||r.justTime?void 0:r.format,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",hour:r.withTime||r.justTime?"2-digit":void 0,minute:r.withTime||r.justTime?"2-digit":void 0},c=e.toLocaleString(h4().language,n);return c.charAt(0).toUpperCase()+c.slice(1)}function LT(e){return m4(e,{format:"short",withTime:!1})}function Ua(e){return m4(e,{format:"numeric",withTime:!1})}function Ss(e){if(!e)return"";const t=Ua(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===Ua(a))return gi("today");if(t===Ua(r))return gi("tomorrow");if(t===Ua(n))return gi("yesterday");const c={format:"long",withTime:!1};return e.getFullYear()===a.getFullYear()?m4(e,{...c,withoutYear:!0}):m4(e,c)}function ic(e){return m4(e,{justTime:!0})}function Pp(e){if(!e)return!1;let t=e;const a=["http://","https://"];for(const r of a)if(e.startsWith(r)){t=e.replace(r,"");break}return t=t.replace(/:(\d*)$/,""),window.location.href.includes(t)}const Bp=["production","demo","testing","development"];function ST(e,t){if(t)return t;for(const a of Bp)for(const r of e[a])if(Pp(r))return a;throw Error("Incorrect URL")}/*! @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:kf,isFrozen:AT,getPrototypeOf:TT,getOwnPropertyDescriptor:ET}=Object;let{freeze:f3,seal:R3,create:Rp}=Object,{apply:As,construct:Ts}=typeof Reflect<"u"&&Reflect;f3||(f3=function(t){return t});R3||(R3=function(t){return t});As||(As=function(t,a,r){return t.apply(a,r)});Ts||(Ts=function(t,a){return new t(...a)});const jn=_3(Array.prototype.forEach),Hf=_3(Array.prototype.pop),Ca=_3(Array.prototype.push),N8=_3(String.prototype.toLowerCase),yi=_3(String.prototype.toString),Vf=_3(String.prototype.match),Ma=_3(String.prototype.replace),NT=_3(String.prototype.indexOf),DT=_3(String.prototype.trim),K3=_3(Object.prototype.hasOwnProperty),n3=_3(RegExp.prototype.test),za=OT(TypeError);function _3(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 As(e,t,r)}}function OT(e){return function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return Ts(e,a)}}function s2(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:N8;kf&&kf(e,null);let r=t.length;for(;r--;){let n=t[r];if(typeof n=="string"){const c=a(n);c!==n&&(AT(t)||(t[r]=c),n=c)}e[n]=!0}return e}function PT(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]=PT(r):r&&typeof r=="object"&&r.constructor===Object?t[a]=S0(r):t[a]=r);return t}function wa(e,t){for(;e!==null;){const r=ET(e,t);if(r){if(r.get)return _3(r.get);if(typeof r.value=="function")return _3(r.value)}e=TT(e)}function a(){return null}return a}const Lf=f3(["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"]),xi=f3(["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"]),bi=f3(["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"]),BT=f3(["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"]),Ci=f3(["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"]),FT=f3(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Sf=f3(["#text"]),Af=f3(["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"]),Mi=f3(["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"]),Tf=f3(["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"]),Yn=f3(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),RT=R3(/\{\{[\w\W]*|[\w\W]*\}\}/gm),IT=R3(/<%[\w\W]*|[\w\W]*%>/gm),$T=R3(/\$\{[\w\W]*}/gm),UT=R3(/^data-[\-\w.\u00B7-\uFFFF]+$/),WT=R3(/^aria-[\-\w]+$/),Ip=R3(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),qT=R3(/^(?:\w+script|data):/i),jT=R3(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$p=R3(/^html$/i),YT=R3(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ef=Object.freeze({__proto__:null,ARIA_ATTR:WT,ATTR_WHITESPACE:jT,CUSTOM_ELEMENT:YT,DATA_ATTR:UT,DOCTYPE_NAME:$p,ERB_EXPR:IT,IS_ALLOWED_URI:Ip,IS_SCRIPT_OR_DATA:qT,MUSTACHE_EXPR:RT,TMPLIT_EXPR:$T});const _a={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},GT=function(){return typeof window>"u"?null:window},XT=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}},Nf=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Up(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:GT();const t=U=>Up(U);if(t.version="3.2.3",t.removed=[],!e||!e.document||e.document.nodeType!==_a.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=wa(v,"cloneNode"),g=wa(v,"remove"),y=wa(v,"nextSibling"),x=wa(v,"childNodes"),C=wa(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:V}=r;let H=Nf();t.isSupported=typeof Fp=="function"&&typeof C=="function"&&w&&w.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:_,ERB_EXPR:N,TMPLIT_EXPR:O,DATA_ATTR:T,ARIA_ATTR:B,IS_SCRIPT_OR_DATA:q,ATTR_WHITESPACE:a1,CUSTOM_ELEMENT:j}=Ef;let{IS_ALLOWED_URI:G}=Ef,F=null;const A=s2({},[...Lf,...xi,...bi,...Ci,...Sf]);let L=null;const W=s2({},[...Af,...Mi,...Tf,...Yn]);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}})),E=null,I=null,t1=!0,n1=!0,e1=!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 j2=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"]),Y2="http://www.w3.org/1998/Math/MathML",m2="http://www.w3.org/2000/svg",A2="http://www.w3.org/1999/xhtml";let Pe=A2,y1=!1,m1=null;const S1=s2({},[Y2,m2,A2],yi);let T1=s2({},["mi","mo","mn","ms","mtext"]),Q1=s2({},["annotation-xml"]);const Q2=s2({},["title","style","font","a","script"]);let we=null;const d3=["application/xhtml+xml","text/html"],j3="text/html";let k2=null,xe=null;const G4=a.createElement("form"),X4=function(P){return P instanceof RegExp||P instanceof Function},K4=function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(xe&&xe===P)){if((!P||typeof P!="object")&&(P={}),P=S0(P),we=d3.indexOf(P.PARSER_MEDIA_TYPE)===-1?j3:P.PARSER_MEDIA_TYPE,k2=we==="application/xhtml+xml"?yi:N8,F=K3(P,"ALLOWED_TAGS")?s2({},P.ALLOWED_TAGS,k2):A,L=K3(P,"ALLOWED_ATTR")?s2({},P.ALLOWED_ATTR,k2):W,m1=K3(P,"ALLOWED_NAMESPACES")?s2({},P.ALLOWED_NAMESPACES,yi):S1,O1=K3(P,"ADD_URI_SAFE_ATTR")?s2(S0(c2),P.ADD_URI_SAFE_ATTR,k2):c2,G1=K3(P,"ADD_DATA_URI_TAGS")?s2(S0(j2),P.ADD_DATA_URI_TAGS,k2):j2,K1=K3(P,"FORBID_CONTENTS")?s2({},P.FORBID_CONTENTS,k2):d2,E=K3(P,"FORBID_TAGS")?s2({},P.FORBID_TAGS,k2):{},I=K3(P,"FORBID_ATTR")?s2({},P.FORBID_ATTR,k2):{},W1=K3(P,"USE_PROFILES")?P.USE_PROFILES:!1,t1=P.ALLOW_ARIA_ATTR!==!1,n1=P.ALLOW_DATA_ATTR!==!1,e1=P.ALLOW_UNKNOWN_PROTOCOLS||!1,d1=P.ALLOW_SELF_CLOSE_IN_ATTR!==!1,R=P.SAFE_FOR_TEMPLATES||!1,p1=P.SAFE_FOR_XML!==!1,z1=P.WHOLE_DOCUMENT||!1,f1=P.RETURN_DOM||!1,u1=P.RETURN_DOM_FRAGMENT||!1,g1=P.RETURN_TRUSTED_TYPE||!1,l1=P.FORCE_BODY||!1,k1=P.SANITIZE_DOM!==!1,b1=P.SANITIZE_NAMED_PROPS||!1,F1=P.KEEP_CONTENT!==!1,$1=P.IN_PLACE||!1,G=P.ALLOWED_URI_REGEXP||Ip,Pe=P.NAMESPACE||A2,T1=P.MATHML_TEXT_INTEGRATION_POINTS||T1,Q1=P.HTML_INTEGRATION_POINTS||Q1,Y=P.CUSTOM_ELEMENT_HANDLING||{},P.CUSTOM_ELEMENT_HANDLING&&X4(P.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Y.tagNameCheck=P.CUSTOM_ELEMENT_HANDLING.tagNameCheck),P.CUSTOM_ELEMENT_HANDLING&&X4(P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Y.attributeNameCheck=P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),P.CUSTOM_ELEMENT_HANDLING&&typeof P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Y.allowCustomizedBuiltInElements=P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),R&&(n1=!1),u1&&(f1=!0),W1&&(F=s2({},Sf),L=[],W1.html===!0&&(s2(F,Lf),s2(L,Af)),W1.svg===!0&&(s2(F,xi),s2(L,Mi),s2(L,Yn)),W1.svgFilters===!0&&(s2(F,bi),s2(L,Mi),s2(L,Yn)),W1.mathMl===!0&&(s2(F,Ci),s2(L,Tf),s2(L,Yn))),P.ADD_TAGS&&(F===A&&(F=S0(F)),s2(F,P.ADD_TAGS,k2)),P.ADD_ATTR&&(L===W&&(L=S0(L)),s2(L,P.ADD_ATTR,k2)),P.ADD_URI_SAFE_ATTR&&s2(O1,P.ADD_URI_SAFE_ATTR,k2),P.FORBID_CONTENTS&&(K1===d2&&(K1=S0(K1)),s2(K1,P.FORBID_CONTENTS,k2)),F1&&(F["#text"]=!0),z1&&s2(F,["html","head","body"]),F.table&&(s2(F,["tbody"]),delete E.tbody),P.TRUSTED_TYPES_POLICY){if(typeof P.TRUSTED_TYPES_POLICY.createHTML!="function")throw za('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof P.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw za('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');b=P.TRUSTED_TYPES_POLICY,M=b.createHTML("")}else b===void 0&&(b=XT(m,n)),b!==null&&typeof M=="string"&&(M=b.createHTML(""));f3&&f3(P),xe=P}},M0=s2({},[...xi,...bi,...BT]),z0=s2({},[...Ci,...FT]),T3=function(P){let K=C(P);(!K||!K.tagName)&&(K={namespaceURI:Pe,tagName:"template"});const Z=N8(P.tagName),o1=N8(K.tagName);return m1[P.namespaceURI]?P.namespaceURI===m2?K.namespaceURI===A2?Z==="svg":K.namespaceURI===Y2?Z==="svg"&&(o1==="annotation-xml"||T1[o1]):!!M0[Z]:P.namespaceURI===Y2?K.namespaceURI===A2?Z==="math":K.namespaceURI===m2?Z==="math"&&Q1[o1]:!!z0[Z]:P.namespaceURI===A2?K.namespaceURI===m2&&!Q1[o1]||K.namespaceURI===Y2&&!T1[o1]?!1:!z0[Z]&&(Q2[Z]||!M0[Z]):!!(we==="application/xhtml+xml"&&m1[P.namespaceURI]):!1},Ue=function(P){Ca(t.removed,{element:P});try{C(P).removeChild(P)}catch{g(P)}},Z4=function(P,K){try{Ca(t.removed,{attribute:K.getAttributeNode(P),from:K})}catch{Ca(t.removed,{attribute:null,from:K})}if(K.removeAttribute(P),P==="is")if(f1||u1)try{Ue(K)}catch{}else try{K.setAttribute(P,"")}catch{}},At=function(P){let K=null,Z=null;if(l1)P="<remove></remove>"+P;else{const x1=Vf(P,/^[\r\n\t ]+/);Z=x1&&x1[0]}we==="application/xhtml+xml"&&Pe===A2&&(P='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+P+"</body></html>");const o1=b?b.createHTML(P):P;if(Pe===A2)try{K=new h().parseFromString(o1,we)}catch{}if(!K||!K.documentElement){K=w.createDocument(Pe,"template",null);try{K.documentElement.innerHTML=y1?M:o1}catch{}}const s1=K.body||K.documentElement;return P&&Z&&s1.insertBefore(a.createTextNode(Z),s1.childNodes[0]||null),Pe===A2?S.call(K,z1?"html":"body")[0]:z1?K.documentElement:s1},X=function(P){return z.call(P.ownerDocument||P,P,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},r1=function(P){return P instanceof d&&(typeof P.nodeName!="string"||typeof P.textContent!="string"||typeof P.removeChild!="function"||!(P.attributes instanceof u)||typeof P.removeAttribute!="function"||typeof P.setAttribute!="function"||typeof P.namespaceURI!="string"||typeof P.insertBefore!="function"||typeof P.hasChildNodes!="function")},Q=function(P){return typeof s=="function"&&P instanceof s};function J(U,P,K){jn(U,Z=>{Z.call(t,P,K,xe)})}const c1=function(P){let K=null;if(J(H.beforeSanitizeElements,P,null),r1(P))return Ue(P),!0;const Z=k2(P.nodeName);if(J(H.uponSanitizeElement,P,{tagName:Z,allowedTags:F}),P.hasChildNodes()&&!Q(P.firstElementChild)&&n3(/<[/\w]/g,P.innerHTML)&&n3(/<[/\w]/g,P.textContent)||P.nodeType===_a.progressingInstruction||p1&&P.nodeType===_a.comment&&n3(/<[/\w]/g,P.data))return Ue(P),!0;if(!F[Z]||E[Z]){if(!E[Z]&&C1(Z)&&(Y.tagNameCheck instanceof RegExp&&n3(Y.tagNameCheck,Z)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(Z)))return!1;if(F1&&!K1[Z]){const o1=C(P)||P.parentNode,s1=x(P)||P.childNodes;if(s1&&o1){const x1=s1.length;for(let V1=x1-1;V1>=0;--V1){const L1=p(s1[V1],!0);L1.__removalCount=(P.__removalCount||0)+1,o1.insertBefore(L1,y(P))}}}return Ue(P),!0}return P instanceof l&&!T3(P)||(Z==="noscript"||Z==="noembed"||Z==="noframes")&&n3(/<\/no(script|embed|frames)/i,P.innerHTML)?(Ue(P),!0):(R&&P.nodeType===_a.text&&(K=P.textContent,jn([_,N,O],o1=>{K=Ma(K,o1," ")}),P.textContent!==K&&(Ca(t.removed,{element:P.cloneNode()}),P.textContent=K)),J(H.afterSanitizeElements,P,null),!1)},i1=function(P,K,Z){if(k1&&(K==="id"||K==="name")&&(Z in a||Z in G4))return!1;if(!(n1&&!I[K]&&n3(T,K))){if(!(t1&&n3(B,K))){if(!L[K]||I[K]){if(!(C1(P)&&(Y.tagNameCheck instanceof RegExp&&n3(Y.tagNameCheck,P)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(P))&&(Y.attributeNameCheck instanceof RegExp&&n3(Y.attributeNameCheck,K)||Y.attributeNameCheck instanceof Function&&Y.attributeNameCheck(K))||K==="is"&&Y.allowCustomizedBuiltInElements&&(Y.tagNameCheck instanceof RegExp&&n3(Y.tagNameCheck,Z)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(Z))))return!1}else if(!O1[K]){if(!n3(G,Ma(Z,a1,""))){if(!((K==="src"||K==="xlink:href"||K==="href")&&P!=="script"&&NT(Z,"data:")===0&&G1[P])){if(!(e1&&!n3(q,Ma(Z,a1,"")))){if(Z)return!1}}}}}}return!0},C1=function(P){return P!=="annotation-xml"&&Vf(P,j)},M1=function(P){J(H.beforeSanitizeAttributes,P,null);const{attributes:K}=P;if(!K||r1(P))return;const Z={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:L,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:DT(L1);if(Z.attrName=w1,Z.attrValue=N1,Z.keepAttr=!0,Z.forceKeepAttr=void 0,J(H.uponSanitizeAttribute,P,Z),N1=Z.attrValue,b1&&(w1==="id"||w1==="name")&&(Z4(x1,P),N1=H1+N1),p1&&n3(/((--!?|])>)|<\/(style|title)/i,N1)){Z4(x1,P);continue}if(Z.forceKeepAttr||(Z4(x1,P),!Z.keepAttr))continue;if(!d1&&n3(/\/>/i,N1)){Z4(x1,P);continue}R&&jn([_,N,O],J1=>{N1=Ma(N1,J1," ")});const R1=k2(P.nodeName);if(i1(R1,w1,N1)){if(b&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!V1)switch(m.getAttributeType(R1,w1)){case"TrustedHTML":{N1=b.createHTML(N1);break}case"TrustedScriptURL":{N1=b.createScriptURL(N1);break}}try{V1?P.setAttributeNS(V1,x1,N1):P.setAttribute(x1,N1),r1(P)?Ue(P):Hf(t.removed)}catch{}}}J(H.afterSanitizeAttributes,P,null)},D=function U(P){let K=null;const Z=X(P);for(J(H.beforeSanitizeShadowDOM,P,null);K=Z.nextNode();)J(H.uponSanitizeShadowNode,K,null),c1(K),M1(K),K.content instanceof c&&U(K.content);J(H.afterSanitizeShadowDOM,P,null)};return t.sanitize=function(U){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=null,Z=null,o1=null,s1=null;if(y1=!U,y1&&(U="<!-->"),typeof U!="string"&&!Q(U))if(typeof U.toString=="function"){if(U=U.toString(),typeof U!="string")throw za("dirty is not a string, aborting")}else throw za("toString is not a function");if(!t.isSupported)return U;if(h1||K4(P),t.removed=[],typeof U=="string"&&($1=!1),$1){if(U.nodeName){const L1=k2(U.nodeName);if(!F[L1]||E[L1])throw za("root node is forbidden and cannot be sanitized in-place")}}else if(U instanceof s)K=At("<!---->"),Z=K.ownerDocument.importNode(U,!0),Z.nodeType===_a.element&&Z.nodeName==="BODY"||Z.nodeName==="HTML"?K=Z:K.appendChild(Z);else{if(!f1&&!R&&!z1&&U.indexOf("<")===-1)return b&&g1?b.createHTML(U):U;if(K=At(U),!K)return f1?null:g1?M:""}K&&l1&&Ue(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(L.shadowroot||L.shadowrootmode)&&(s1=V.call(r,s1,!0)),s1}let V1=z1?K.outerHTML:K.innerHTML;return z1&&F["!doctype"]&&K.ownerDocument&&K.ownerDocument.doctype&&K.ownerDocument.doctype.name&&n3($p,K.ownerDocument.doctype.name)&&(V1="<!DOCTYPE "+K.ownerDocument.doctype.name+`>
6
+ `+o1):K.stack=o1}throw K}}_request(U,P){typeof U=="string"?(P=P||{}).url=U:P=U||{},P=T3(this.defaults,P);const{transitional:K,paramsSerializer:Z,headers:o1}=P;K!==void 0&&At.assertOptions(K,{silentJSONParsing:X.transitional(X.boolean),forcedJSONParsing:X.transitional(X.boolean),clarifyTimeoutError:X.transitional(X.boolean)},!1),Z!=null&&(E.isFunction(Z)?P.paramsSerializer={serialize:Z}:At.assertOptions(Z,{encode:X.function,serialize:X.function},!0)),P.method=(P.method||this.defaults.method||"get").toLowerCase();let s1=o1&&E.merge(o1.common,o1[P.method]);o1&&E.forEach(["delete","get","head","post","put","patch","common"],U1=>{delete o1[U1]}),P.headers=m1.concat(s1,o1);const x1=[];let V1=!0;this.interceptors.request.forEach(function(U1){typeof U1.runWhen=="function"&&U1.runWhen(P)===!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,R1=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(P);R1<N1;)w1=w1.then(U1[R1++],U1[R1++]);return w1}N1=x1.length;let J1=P;for(R1=0;R1<N1;){const U1=x1[R1++],i2=x1[R1++];try{J1=U1(J1)}catch(O2){i2.call(this,O2);break}}try{w1=M0.call(this,J1)}catch(U1){return Promise.reject(U1)}for(R1=0,N1=L1.length;R1<N1;)w1=w1.then(L1[R1++],L1[R1++]);return w1}getUri(U){return g1(we((U=T3(this.defaults,U)).baseURL,U.url),U.params,U.paramsSerializer)}}E.forEach(["delete","get","head","options"],function(D){r1.prototype[D]=function(U,P){return this.request(T3(P||{},{method:D,url:U,data:(P||{}).data}))}}),E.forEach(["post","put","patch"],function(D){function U(P){return function(K,Z,o1){return this.request(T3(o1||{},{method:D,headers:P?{"Content-Type":"multipart/form-data"}:{},url:K,data:Z}))}}r1.prototype[D]=U(),r1.prototype[D+"Form"]=U(!0)});var Q=r1;class J{constructor(U){if(typeof U!="function")throw new TypeError("executor must be a function.");let P;this.promise=new Promise(function(Z){P=Z});const K=this;this.promise.then(Z=>{if(!K._listeners)return;let o1=K._listeners.length;for(;o1-- >0;)K._listeners[o1](Z);K._listeners=null}),this.promise.then=Z=>{let o1;const s1=new Promise(x1=>{K.subscribe(x1),o1=x1}).then(Z);return s1.cancel=function(){K.unsubscribe(o1)},s1},U(function(Z,o1,s1){K.reason||(K.reason=new Q1(Z,o1,s1),P(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 P=this._listeners.indexOf(U);P!==-1&&this._listeners.splice(P,1)}static source(){let U;return{token:new J(function(P){U=P}),cancel:U}}}var c1=J;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 P=new Q(U),K=l(Q.prototype.request,P);return E.extend(K,Q.prototype,P,{allOwnKeys:!0}),E.extend(K,P,null,{allOwnKeys:!0}),K.create=function(Z){return D(T3(U,Z))},K}(O1);M1.Axios=Q,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 E.isObject(D)&&D.isAxiosError===!0},M1.mergeConfig=T3,M1.AxiosHeaders=m1,M1.formToJSON=D=>G1(E.isHTMLForm(D)?new FormData(D):D),M1.getAdapter=X4,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)})())})(Lp);var Fe=Lp.exports,A4;let Z2=(A4=class{constructor(t){v1(this,"config");this.config=t}static init(t){if(A4.instance)throw new Error("Config is already initialized");A4.instance=new A4(t)}static getConfig(){if(!A4.instance)throw new Error("Config is not initialized. Call init() first.");return A4.instance.config}},v1(A4,"instance"),A4);const h4=F4.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,()=>Vo());function n(l){e.value||(e.value=!0,t.value=Fe.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}),$3=F4.defineStore("pga-route",()=>{const e=o.ref(),t=o.ref(!Ho()),a=o.computed(()=>Pv(e.value)),r=o.computed(()=>{var s;return xn(a.value,(s=e.value)==null?void 0:s.name)}),n=o.computed(()=>{var s;return(s=e.value)==null?void 0:s.meta.access}),c=o.computed(()=>{var s;return!!((s=e.value)!=null&&s.meta.preventDisplayNavigationBars)}),i=o.computed(()=>!c.value&&t.value);return{currentRoute:e,isSideBarOpen:t,currentRouteType:a,currentRouteTitle:r,currentRouteAccess:n,preventDisplayNavigationBars:c,isDisplayingSideBar:i}}),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",deleteBtn:"Eliminar",confirmDeleteText:"",editBtn:"Editar",logoutBtn:"Cerrar sesión",navigateToBtn:"Ir",seeDetailsBtn:"Detalles"}},vT={es:{noItemsText:"No hay resultados",showAll:"Mostrar todo",hide:"Ocultar"}},gT={es:{savedMsg:"Guardado",saveErrorMsg:"Texto demasiado largo"}},yT={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"}},xT={es:{selectFileLabel:"Seleccionar imágenes",confirmDeleteText:"La imagen se eliminará permanentemente.",maxImagesQuantityAlert:"Solo puede cargar {maxQuantity} imágenes"}},bT={es:{header:{switchToLightMode:"Cambiar a modo claro",switchToDarkMode:"Cambiar a modo oscuro",logout:"Cerrar sesión"},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,pgaForm:yT,pgaImage:xT,pgaLayout:bT,pgaModal:CT,pgaTable:MT,notifications:zT,validations:wT};function Sp(e){function t(a,r){return function(n,c,i){var y;const s=h4().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)||0,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 _2=Sp(_T),kT=_2("authHelpers");function Ap(){const e=Z2.getConfig().stores.useAuthStore(),t=$3().currentRouteType,a=`auth${Fe.getFirstChartInUppercase(t)}`;return!!e[a].accessToken&&!!e[a].user.id}function Tp(){const e=Z2.getConfig().stores.useAuthStore(),t=$3().currentRouteType,a=`auth${Fe.getFirstChartInUppercase(t)}`;return e[a].accessToken}async function Ep(e,t,a){const r=Z2.getConfig(),n=r.stores.useAuthStore(),c=`authentication/login/${e}`,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 Np(){const e=Z2.getConfig(),t=e.stores.useAuthStore(),a=$3().currentRouteType;try{const r=`authentication/validateAccessToken/${a}`,n=await e.api.getOne(r,void 0,void 0,{preventDisplayError:!0});t.setAuthUser(a,n.data)}catch{t.setAuthUser(a)}}function Dp(e){const t=Z2.getConfig();t.stores.useAuthStore().setAuthUser(e),vt("success",()=>kT("successfulLogout"));const r={name:`login${Fe.getFirstChartInUppercase(e)}`};t.router.push(r)}function nc(e,t,a){const r=document.querySelector(":root"),n="--pga-",c=a!=null&&a.preventConvertToKebab?e:Fe.camelToKebab(e);r.style.setProperty(`${n}${c}`,t)}function cc(e){const t=e?"visible":"hidden";document.body.style.overflow=t}function HT(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 t5(e){return Object.keys(Hp).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 Ls(e,t){const r=`color-${Fe.camelToKebab(e)}`,n={preventConvertToKebab:!0};nc(r,t,n);for(let c=5;c<=95;c+=5){const i=c<10?`0${c}`:c%10===0?`${c/10}`:`${c}`;nc(`${r}-0${i}`,Op(t,c),n)}}function VT(){const e=Vp,t=Math.floor(Math.random()*Object.keys(e).length);return e[Object.keys(e)[t]]}const gi=_2("datetime");function m4(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(h4().language,n);return c.charAt(0).toUpperCase()+c.slice(1)}function LT(e){return m4(e,{format:"short",withoutDay:!0,withTime:!1})}function Ua(e){return m4(e,{format:"numeric",withTime:!1})}function Ss(e){if(!e)return"";const t=Ua(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===Ua(a))return gi("today");if(t===Ua(r))return gi("tomorrow");if(t===Ua(n))return gi("yesterday");const c={format:"long",withTime:!1};return e.getFullYear()===a.getFullYear()?m4(e,{...c,withoutYear:!0}):m4(e,c)}function ic(e){return m4(e,{justTime:!0})}function Pp(e){if(!e)return!1;let t=e;const a=["http://","https://"];for(const r of a)if(e.startsWith(r)){t=e.replace(r,"");break}return t=t.replace(/:(\d*)$/,""),window.location.href.includes(t)}const Bp=["production","demo","testing","development"];function ST(e,t){if(t)return t;for(const a of Bp)for(const r of e[a])if(Pp(r))return a;throw Error("Incorrect URL")}/*! @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:kf,isFrozen:AT,getPrototypeOf:TT,getOwnPropertyDescriptor:ET}=Object;let{freeze:f3,seal:R3,create:Rp}=Object,{apply:As,construct:Ts}=typeof Reflect<"u"&&Reflect;f3||(f3=function(t){return t});R3||(R3=function(t){return t});As||(As=function(t,a,r){return t.apply(a,r)});Ts||(Ts=function(t,a){return new t(...a)});const jn=_3(Array.prototype.forEach),Hf=_3(Array.prototype.pop),Ca=_3(Array.prototype.push),N8=_3(String.prototype.toLowerCase),yi=_3(String.prototype.toString),Vf=_3(String.prototype.match),Ma=_3(String.prototype.replace),NT=_3(String.prototype.indexOf),DT=_3(String.prototype.trim),K3=_3(Object.prototype.hasOwnProperty),n3=_3(RegExp.prototype.test),za=OT(TypeError);function _3(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 As(e,t,r)}}function OT(e){return function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return Ts(e,a)}}function s2(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:N8;kf&&kf(e,null);let r=t.length;for(;r--;){let n=t[r];if(typeof n=="string"){const c=a(n);c!==n&&(AT(t)||(t[r]=c),n=c)}e[n]=!0}return e}function PT(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]=PT(r):r&&typeof r=="object"&&r.constructor===Object?t[a]=S0(r):t[a]=r);return t}function wa(e,t){for(;e!==null;){const r=ET(e,t);if(r){if(r.get)return _3(r.get);if(typeof r.value=="function")return _3(r.value)}e=TT(e)}function a(){return null}return a}const Lf=f3(["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"]),xi=f3(["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"]),bi=f3(["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"]),BT=f3(["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"]),Ci=f3(["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"]),FT=f3(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Sf=f3(["#text"]),Af=f3(["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"]),Mi=f3(["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"]),Tf=f3(["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"]),Yn=f3(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),RT=R3(/\{\{[\w\W]*|[\w\W]*\}\}/gm),IT=R3(/<%[\w\W]*|[\w\W]*%>/gm),$T=R3(/\$\{[\w\W]*}/gm),UT=R3(/^data-[\-\w.\u00B7-\uFFFF]+$/),WT=R3(/^aria-[\-\w]+$/),Ip=R3(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),qT=R3(/^(?:\w+script|data):/i),jT=R3(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$p=R3(/^html$/i),YT=R3(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ef=Object.freeze({__proto__:null,ARIA_ATTR:WT,ATTR_WHITESPACE:jT,CUSTOM_ELEMENT:YT,DATA_ATTR:UT,DOCTYPE_NAME:$p,ERB_EXPR:IT,IS_ALLOWED_URI:Ip,IS_SCRIPT_OR_DATA:qT,MUSTACHE_EXPR:RT,TMPLIT_EXPR:$T});const _a={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},GT=function(){return typeof window>"u"?null:window},XT=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}},Nf=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Up(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:GT();const t=U=>Up(U);if(t.version="3.2.3",t.removed=[],!e||!e.document||e.document.nodeType!==_a.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=wa(v,"cloneNode"),g=wa(v,"remove"),y=wa(v,"nextSibling"),x=wa(v,"childNodes"),C=wa(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:V}=r;let H=Nf();t.isSupported=typeof Fp=="function"&&typeof C=="function"&&w&&w.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:_,ERB_EXPR:N,TMPLIT_EXPR:O,DATA_ATTR:T,ARIA_ATTR:B,IS_SCRIPT_OR_DATA:q,ATTR_WHITESPACE:a1,CUSTOM_ELEMENT:j}=Ef;let{IS_ALLOWED_URI:G}=Ef,F=null;const A=s2({},[...Lf,...xi,...bi,...Ci,...Sf]);let L=null;const W=s2({},[...Af,...Mi,...Tf,...Yn]);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}})),E=null,I=null,t1=!0,n1=!0,e1=!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 j2=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"]),Y2="http://www.w3.org/1998/Math/MathML",m2="http://www.w3.org/2000/svg",A2="http://www.w3.org/1999/xhtml";let Pe=A2,y1=!1,m1=null;const S1=s2({},[Y2,m2,A2],yi);let T1=s2({},["mi","mo","mn","ms","mtext"]),Q1=s2({},["annotation-xml"]);const Q2=s2({},["title","style","font","a","script"]);let we=null;const d3=["application/xhtml+xml","text/html"],j3="text/html";let k2=null,xe=null;const G4=a.createElement("form"),X4=function(P){return P instanceof RegExp||P instanceof Function},K4=function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(xe&&xe===P)){if((!P||typeof P!="object")&&(P={}),P=S0(P),we=d3.indexOf(P.PARSER_MEDIA_TYPE)===-1?j3:P.PARSER_MEDIA_TYPE,k2=we==="application/xhtml+xml"?yi:N8,F=K3(P,"ALLOWED_TAGS")?s2({},P.ALLOWED_TAGS,k2):A,L=K3(P,"ALLOWED_ATTR")?s2({},P.ALLOWED_ATTR,k2):W,m1=K3(P,"ALLOWED_NAMESPACES")?s2({},P.ALLOWED_NAMESPACES,yi):S1,O1=K3(P,"ADD_URI_SAFE_ATTR")?s2(S0(c2),P.ADD_URI_SAFE_ATTR,k2):c2,G1=K3(P,"ADD_DATA_URI_TAGS")?s2(S0(j2),P.ADD_DATA_URI_TAGS,k2):j2,K1=K3(P,"FORBID_CONTENTS")?s2({},P.FORBID_CONTENTS,k2):d2,E=K3(P,"FORBID_TAGS")?s2({},P.FORBID_TAGS,k2):{},I=K3(P,"FORBID_ATTR")?s2({},P.FORBID_ATTR,k2):{},W1=K3(P,"USE_PROFILES")?P.USE_PROFILES:!1,t1=P.ALLOW_ARIA_ATTR!==!1,n1=P.ALLOW_DATA_ATTR!==!1,e1=P.ALLOW_UNKNOWN_PROTOCOLS||!1,d1=P.ALLOW_SELF_CLOSE_IN_ATTR!==!1,R=P.SAFE_FOR_TEMPLATES||!1,p1=P.SAFE_FOR_XML!==!1,z1=P.WHOLE_DOCUMENT||!1,f1=P.RETURN_DOM||!1,u1=P.RETURN_DOM_FRAGMENT||!1,g1=P.RETURN_TRUSTED_TYPE||!1,l1=P.FORCE_BODY||!1,k1=P.SANITIZE_DOM!==!1,b1=P.SANITIZE_NAMED_PROPS||!1,F1=P.KEEP_CONTENT!==!1,$1=P.IN_PLACE||!1,G=P.ALLOWED_URI_REGEXP||Ip,Pe=P.NAMESPACE||A2,T1=P.MATHML_TEXT_INTEGRATION_POINTS||T1,Q1=P.HTML_INTEGRATION_POINTS||Q1,Y=P.CUSTOM_ELEMENT_HANDLING||{},P.CUSTOM_ELEMENT_HANDLING&&X4(P.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Y.tagNameCheck=P.CUSTOM_ELEMENT_HANDLING.tagNameCheck),P.CUSTOM_ELEMENT_HANDLING&&X4(P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Y.attributeNameCheck=P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),P.CUSTOM_ELEMENT_HANDLING&&typeof P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Y.allowCustomizedBuiltInElements=P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),R&&(n1=!1),u1&&(f1=!0),W1&&(F=s2({},Sf),L=[],W1.html===!0&&(s2(F,Lf),s2(L,Af)),W1.svg===!0&&(s2(F,xi),s2(L,Mi),s2(L,Yn)),W1.svgFilters===!0&&(s2(F,bi),s2(L,Mi),s2(L,Yn)),W1.mathMl===!0&&(s2(F,Ci),s2(L,Tf),s2(L,Yn))),P.ADD_TAGS&&(F===A&&(F=S0(F)),s2(F,P.ADD_TAGS,k2)),P.ADD_ATTR&&(L===W&&(L=S0(L)),s2(L,P.ADD_ATTR,k2)),P.ADD_URI_SAFE_ATTR&&s2(O1,P.ADD_URI_SAFE_ATTR,k2),P.FORBID_CONTENTS&&(K1===d2&&(K1=S0(K1)),s2(K1,P.FORBID_CONTENTS,k2)),F1&&(F["#text"]=!0),z1&&s2(F,["html","head","body"]),F.table&&(s2(F,["tbody"]),delete E.tbody),P.TRUSTED_TYPES_POLICY){if(typeof P.TRUSTED_TYPES_POLICY.createHTML!="function")throw za('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof P.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw za('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');b=P.TRUSTED_TYPES_POLICY,M=b.createHTML("")}else b===void 0&&(b=XT(m,n)),b!==null&&typeof M=="string"&&(M=b.createHTML(""));f3&&f3(P),xe=P}},M0=s2({},[...xi,...bi,...BT]),z0=s2({},[...Ci,...FT]),T3=function(P){let K=C(P);(!K||!K.tagName)&&(K={namespaceURI:Pe,tagName:"template"});const Z=N8(P.tagName),o1=N8(K.tagName);return m1[P.namespaceURI]?P.namespaceURI===m2?K.namespaceURI===A2?Z==="svg":K.namespaceURI===Y2?Z==="svg"&&(o1==="annotation-xml"||T1[o1]):!!M0[Z]:P.namespaceURI===Y2?K.namespaceURI===A2?Z==="math":K.namespaceURI===m2?Z==="math"&&Q1[o1]:!!z0[Z]:P.namespaceURI===A2?K.namespaceURI===m2&&!Q1[o1]||K.namespaceURI===Y2&&!T1[o1]?!1:!z0[Z]&&(Q2[Z]||!M0[Z]):!!(we==="application/xhtml+xml"&&m1[P.namespaceURI]):!1},Ue=function(P){Ca(t.removed,{element:P});try{C(P).removeChild(P)}catch{g(P)}},Z4=function(P,K){try{Ca(t.removed,{attribute:K.getAttributeNode(P),from:K})}catch{Ca(t.removed,{attribute:null,from:K})}if(K.removeAttribute(P),P==="is")if(f1||u1)try{Ue(K)}catch{}else try{K.setAttribute(P,"")}catch{}},At=function(P){let K=null,Z=null;if(l1)P="<remove></remove>"+P;else{const x1=Vf(P,/^[\r\n\t ]+/);Z=x1&&x1[0]}we==="application/xhtml+xml"&&Pe===A2&&(P='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+P+"</body></html>");const o1=b?b.createHTML(P):P;if(Pe===A2)try{K=new h().parseFromString(o1,we)}catch{}if(!K||!K.documentElement){K=w.createDocument(Pe,"template",null);try{K.documentElement.innerHTML=y1?M:o1}catch{}}const s1=K.body||K.documentElement;return P&&Z&&s1.insertBefore(a.createTextNode(Z),s1.childNodes[0]||null),Pe===A2?S.call(K,z1?"html":"body")[0]:z1?K.documentElement:s1},X=function(P){return z.call(P.ownerDocument||P,P,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},r1=function(P){return P instanceof d&&(typeof P.nodeName!="string"||typeof P.textContent!="string"||typeof P.removeChild!="function"||!(P.attributes instanceof u)||typeof P.removeAttribute!="function"||typeof P.setAttribute!="function"||typeof P.namespaceURI!="string"||typeof P.insertBefore!="function"||typeof P.hasChildNodes!="function")},Q=function(P){return typeof s=="function"&&P instanceof s};function J(U,P,K){jn(U,Z=>{Z.call(t,P,K,xe)})}const c1=function(P){let K=null;if(J(H.beforeSanitizeElements,P,null),r1(P))return Ue(P),!0;const Z=k2(P.nodeName);if(J(H.uponSanitizeElement,P,{tagName:Z,allowedTags:F}),P.hasChildNodes()&&!Q(P.firstElementChild)&&n3(/<[/\w]/g,P.innerHTML)&&n3(/<[/\w]/g,P.textContent)||P.nodeType===_a.progressingInstruction||p1&&P.nodeType===_a.comment&&n3(/<[/\w]/g,P.data))return Ue(P),!0;if(!F[Z]||E[Z]){if(!E[Z]&&C1(Z)&&(Y.tagNameCheck instanceof RegExp&&n3(Y.tagNameCheck,Z)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(Z)))return!1;if(F1&&!K1[Z]){const o1=C(P)||P.parentNode,s1=x(P)||P.childNodes;if(s1&&o1){const x1=s1.length;for(let V1=x1-1;V1>=0;--V1){const L1=p(s1[V1],!0);L1.__removalCount=(P.__removalCount||0)+1,o1.insertBefore(L1,y(P))}}}return Ue(P),!0}return P instanceof l&&!T3(P)||(Z==="noscript"||Z==="noembed"||Z==="noframes")&&n3(/<\/no(script|embed|frames)/i,P.innerHTML)?(Ue(P),!0):(R&&P.nodeType===_a.text&&(K=P.textContent,jn([_,N,O],o1=>{K=Ma(K,o1," ")}),P.textContent!==K&&(Ca(t.removed,{element:P.cloneNode()}),P.textContent=K)),J(H.afterSanitizeElements,P,null),!1)},i1=function(P,K,Z){if(k1&&(K==="id"||K==="name")&&(Z in a||Z in G4))return!1;if(!(n1&&!I[K]&&n3(T,K))){if(!(t1&&n3(B,K))){if(!L[K]||I[K]){if(!(C1(P)&&(Y.tagNameCheck instanceof RegExp&&n3(Y.tagNameCheck,P)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(P))&&(Y.attributeNameCheck instanceof RegExp&&n3(Y.attributeNameCheck,K)||Y.attributeNameCheck instanceof Function&&Y.attributeNameCheck(K))||K==="is"&&Y.allowCustomizedBuiltInElements&&(Y.tagNameCheck instanceof RegExp&&n3(Y.tagNameCheck,Z)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(Z))))return!1}else if(!O1[K]){if(!n3(G,Ma(Z,a1,""))){if(!((K==="src"||K==="xlink:href"||K==="href")&&P!=="script"&&NT(Z,"data:")===0&&G1[P])){if(!(e1&&!n3(q,Ma(Z,a1,"")))){if(Z)return!1}}}}}}return!0},C1=function(P){return P!=="annotation-xml"&&Vf(P,j)},M1=function(P){J(H.beforeSanitizeAttributes,P,null);const{attributes:K}=P;if(!K||r1(P))return;const Z={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:L,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:DT(L1);if(Z.attrName=w1,Z.attrValue=N1,Z.keepAttr=!0,Z.forceKeepAttr=void 0,J(H.uponSanitizeAttribute,P,Z),N1=Z.attrValue,b1&&(w1==="id"||w1==="name")&&(Z4(x1,P),N1=H1+N1),p1&&n3(/((--!?|])>)|<\/(style|title)/i,N1)){Z4(x1,P);continue}if(Z.forceKeepAttr||(Z4(x1,P),!Z.keepAttr))continue;if(!d1&&n3(/\/>/i,N1)){Z4(x1,P);continue}R&&jn([_,N,O],J1=>{N1=Ma(N1,J1," ")});const R1=k2(P.nodeName);if(i1(R1,w1,N1)){if(b&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!V1)switch(m.getAttributeType(R1,w1)){case"TrustedHTML":{N1=b.createHTML(N1);break}case"TrustedScriptURL":{N1=b.createScriptURL(N1);break}}try{V1?P.setAttributeNS(V1,x1,N1):P.setAttribute(x1,N1),r1(P)?Ue(P):Hf(t.removed)}catch{}}}J(H.afterSanitizeAttributes,P,null)},D=function U(P){let K=null;const Z=X(P);for(J(H.beforeSanitizeShadowDOM,P,null);K=Z.nextNode();)J(H.uponSanitizeShadowNode,K,null),c1(K),M1(K),K.content instanceof c&&U(K.content);J(H.afterSanitizeShadowDOM,P,null)};return t.sanitize=function(U){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=null,Z=null,o1=null,s1=null;if(y1=!U,y1&&(U="<!-->"),typeof U!="string"&&!Q(U))if(typeof U.toString=="function"){if(U=U.toString(),typeof U!="string")throw za("dirty is not a string, aborting")}else throw za("toString is not a function");if(!t.isSupported)return U;if(h1||K4(P),t.removed=[],typeof U=="string"&&($1=!1),$1){if(U.nodeName){const L1=k2(U.nodeName);if(!F[L1]||E[L1])throw za("root node is forbidden and cannot be sanitized in-place")}}else if(U instanceof s)K=At("<!---->"),Z=K.ownerDocument.importNode(U,!0),Z.nodeType===_a.element&&Z.nodeName==="BODY"||Z.nodeName==="HTML"?K=Z:K.appendChild(Z);else{if(!f1&&!R&&!z1&&U.indexOf("<")===-1)return b&&g1?b.createHTML(U):U;if(K=At(U),!K)return f1?null:g1?M:""}K&&l1&&Ue(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(L.shadowroot||L.shadowrootmode)&&(s1=V.call(r,s1,!0)),s1}let V1=z1?K.outerHTML:K.innerHTML;return z1&&F["!doctype"]&&K.ownerDocument&&K.ownerDocument.doctype&&K.ownerDocument.doctype.name&&n3($p,K.ownerDocument.doctype.name)&&(V1="<!DOCTYPE "+K.ownerDocument.doctype.name+`>
7
7
  `+V1),R&&jn([_,N,O],L1=>{V1=Ma(V1,L1," ")}),b&&g1?b.createHTML(V1):V1},t.setConfig=function(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};K4(U),h1=!0},t.clearConfig=function(){xe=null,h1=!1},t.isValidAttribute=function(U,P,K){xe||K4({});const Z=k2(U),o1=k2(P);return i1(Z,o1,K)},t.addHook=function(U,P){typeof P=="function"&&Ca(H[U],P)},t.removeHook=function(U){return Hf(H[U])},t.removeHooks=function(U){H[U]=[]},t.removeAllHooks=function(){H=Nf()},t}var Wp=Up();function KT(e){return Wp.sanitize(e)}function qp(e){return Wp.sanitize(e,{ALLOWED_TAGS:[]})}function Es(e,t){const a=h4().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
@@ -1590,17 +1590,17 @@ function pt(e, t) {
1590
1590
  },
1591
1591
  ...t
1592
1592
  }, n = {
1593
- weekday: r.format === "numeric" || r.justTime ? void 0 : r.format,
1594
1593
  year: r.withoutYear || r.justTime ? void 0 : "numeric",
1595
1594
  month: r.justTime ? void 0 : r.format === "numeric" ? "2-digit" : r.format,
1596
1595
  day: r.withoutDay || r.justTime ? void 0 : "2-digit",
1596
+ weekday: r.withoutDay || r.justTime || r.format === "numeric" ? void 0 : r.format,
1597
1597
  hour: r.withTime || r.justTime ? "2-digit" : void 0,
1598
1598
  minute: r.withTime || r.justTime ? "2-digit" : void 0
1599
1599
  }, i = e.toLocaleString(mt().language, n);
1600
1600
  return i.charAt(0).toUpperCase() + i.slice(1);
1601
1601
  }
1602
1602
  function MG1(e) {
1603
- return pt(e, { format: "short", withTime: !1 });
1603
+ return pt(e, { format: "short", withoutDay: !0, withTime: !1 });
1604
1604
  }
1605
1605
  function V8(e) {
1606
1606
  return pt(e, { format: "numeric", withTime: !1 });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-lib",
3
3
  "description": "",
4
- "version": "2.12.259",
4
+ "version": "2.12.261",
5
5
  "author": "Gianfranco Raselli",
6
6
  "license": "ISC",
7
7
  "homepage": "https://github.com/GianfrancoRaselli/pangea#readme",