nectiasw 0.0.283 → 0.0.284

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/index.umd.js CHANGED
@@ -1372,7 +1372,7 @@ we.version="2.30.1",LE(Pt),we.fn=me,we.min=CS,we.max=ES,we.now=_S,we.utc=si,we.u
1372
1372
  margin-right: 10px;
1373
1373
  }
1374
1374
  }
1375
- `,$D={img:"m-auto my-8 md:m-0 md:mr-[40px]"},g5=F.memo(()=>{const{loading:e}=G0(),t=F.useCallback((r,i)=>{window.gtag&&window.gtag("event",`Click ${i}`,{event_category:"Redes Sociales",event_label:i}),window.open(r,"_blank")},[]),n=F.useCallback(()=>{window.gtag&&window.gtag("event","Click Mesa Ayuda",{event_category:"Footer Mesa de Ayuda",event_label:"Mesa de Ayuda"}),window.location.href="mailto:soporte@ccc.cl"},[]);return y.jsx(y.Fragment,{children:e||y.jsxs(MD,{children:[y.jsxs(ID,{className:"px-16",children:[y.jsxs(Rn,{size:"xl",variant:"quaternary",className:"mobile-btn m-auto w-full justify-center",onClick:()=>n(),children:[y.jsx(M3,{className:"w-6 h-6"}),y.jsx("span",{children:"Mesa de Ayuda"})]}),y.jsx(BD,{className:$D.img,onClick:()=>t("https://www.ccc.cl","Pagina Web CCC")}),y.jsxs(r0,{justifyContent:"center",alignItems:"center",gap:10,children:[y.jsx(PD,{onClick:()=>t("https://www.ccc.cl","Pagina Web CCC")}),y.jsx(LD,{onClick:()=>t("https://www.linkedin.com/company/otic-c-mara-chilena-de-la-construcci-n/?originalSubdomain=cl","Logo LinkedIn")}),y.jsx(ND,{onClick:()=>t("https://www.youtube.com/channel/UCxHlCqIZxdhQvNVuyFr3NYQ","Logo Youtube")})]}),y.jsxs(Rn,{size:"xl",variant:"quaternary",className:"desktop-btn",onClick:n,children:[y.jsx(M3,{className:"w-6 h-6"}),y.jsx("span",{children:"Mesa de Ayuda"})]})]}),y.jsx("span",{})]})})}),HD=({user:e,allow:t,system:n=x5})=>{var a,l;const r=(a=e==null?void 0:e.systems)==null?void 0:a.find(c=>c.name===n),i=(l=r==null?void 0:r.functions)==null?void 0:l.filter(c=>{const u=c.key;return t==null?void 0:t.includes(u)});return(i==null?void 0:i.length)===(t==null?void 0:t.length)},jD=({user:e,passport:t,systems:n})=>{var i;const r=(i=e==null?void 0:e.systems)==null?void 0:i.filter(a=>n==null?void 0:n.includes(a.name));return t?(r==null?void 0:r.length)===(n==null?void 0:n.length):!1},x5="Integra Negocio",K0=F.memo(({allow:e,system:t,passport:n,systems:r,children:i,inject:a})=>{var c,u;const l=F.useMemo(()=>{var d;return(d=a==null?void 0:a.systems)==null?void 0:d.find(f=>f.name===t)},[a,t]);if(a){const d=(c=l==null?void 0:l.functions)==null?void 0:c.filter(f=>{const m=f.key;return e==null?void 0:e.includes(m)});if(n){const f=(u=a==null?void 0:a.systems)==null?void 0:u.filter(m=>r==null?void 0:r.includes(m.name));return y.jsx(y.Fragment,{children:(f==null?void 0:f.length)===(r==null?void 0:r.length)?i:null})}return y.jsx(y.Fragment,{children:(d==null?void 0:d.length)===(e==null?void 0:e.length)?i:null})}return y.jsx(Ha.Consumer,{children:d=>{var b,x,v,g,S;const f=(x=(b=d==null?void 0:d.user)==null?void 0:b.systems)==null?void 0:x.find(_=>_.name===t),m=(v=f==null?void 0:f.functions)==null?void 0:v.filter(_=>{const C=_.key;return e==null?void 0:e.includes(C)}),h=(S=(g=d==null?void 0:d.user)==null?void 0:g.systems)==null?void 0:S.filter(_=>r==null?void 0:r.includes(_.name));return n?y.jsx(y.Fragment,{children:(h==null?void 0:h.length)===(r==null?void 0:r.length)?i:null}):y.jsx(y.Fragment,{children:(m==null?void 0:m.length)===(e==null?void 0:e.length)?y.jsx(y.Fragment,{children:i}):y.jsx(y.Fragment,{children:null})})}})});K0.defaultProps={allow:[],system:x5};var Yr=(e=>(e.CAN_VIEW_CARD="CAN_VIEW_CARD",e.SEE_RENDITION="SEE_RENDITION",e.DIGIT_RENDITION="DIGIT_RENDITION",e.CAN_VIEW_MANTAINER="CAN_VIEW_MANTAINER",e.CAN_EDIT_MANTAINER="CAN_EDIT_MANTAINER",e.CAN_VIEW_MANAGEMENT="CAN_VIEW_MANAGEMENT",e.VISUALIZE_RENDITION="VISUALIZE_RENDITION",e.CAN_VIEW_ATTENDANCE="CAN_VIEW_ATTENDANCE",e.CAN_ADVANCE_PAYMENT="CAN_ADVANCE_PAYMENT",e.CAN_ASSIGN_RESPONSIBLE="CAN_ASSIGN_RESPONSIBLE",e.CAN_CREATE_INSCRIPTION="CAN_CREATE_INSCRIPTION",e.CAN_VIEW_COURSE_CONTENT="CAN_VIEW_COURSE_CONTENT",e.CAN_EDIT_COURSE_CONTENT="CAN_EDIT_COURSE_CONTENT",e.CAN_REGISTER_ATTENDANCE="CAN_REGISTER_ATTENDANCE",e.CAN_GENERATE_LIQUIDATIONS="CAN_GENERATE_LIQUIDATIONS",e.CAN_GENERATE_PURCHASE_ORDER="CAN_GENERATE_PURCHASE_ORDER",e.CAN_DOWNLOAD_PURCHASE_ORDER="CAN_DOWNLOAD_PURCHASE_ORDER",e.CAN_VIEW_FILTER_RESPONSIBLE="CAN_VIEW_FILTER_RESPONSIBLE",e.CAN_VIEW_MOVILIZATION_TRAVEL="CAN_VIEW_MOVILIZATION_TRAVEL",e.CAN_RECTIFY_COURSE_FRANCHISE="CAN_RECTIFY_COURSE_FRANCHISE",e.CAN_RECTIFY_FINANCING_ACCOUNT="CAN_RECTIFY_FINANCING_ACCOUNT",e.CAN_GENERATE_SENCE_LIQUIDATION="CAN_GENERATE_SENCE_LIQUIDATION",e.CAN_REPORT_MOVILIZATION_TRAVEL="CAN_REPORT_MOVILIZATION_TRAVEL",e.CAN_RECTIFY_COURSE_NO_FRANCHISE="CAN_RECTIFY_COURSE_NO_FRANCHISE",e.CAN_GENERATE_SENCE_COMMUNICATION="CAN_GENERATE_SENCE_COMMUNICATION",e.CAN_UPDATE_REQUIREMENTS_MANUALLY="CAN_UPDATE_REQUIREMENTS_MANUALLY",e.CAN_VIEW_SERVICE="CAN_VIEW_SERVICE",e.CAN_GENERATE_PURCHASE_ORDER_SERVICE="CAN_GENERATE_PURCHASE_ORDER_SERVICE",e.CAN_VIEW_DASHBOARD_CLIENT="CAN_VIEW_DASHBOARD_CLIENT",e.CAN_VIEW_DASHBOARD_PROVIDER="CAN_VIEW_DASHBOARD_PROVIDER",e.MAKE_ADVANCE_SERVICE="MAKE_ADVANCE_SERVICE",e.CAN_IMPORT_EXTENDED_DATA="CAN_IMPORT_EXTENDED_DATA",e.CAN_VIEW_SERVICE_PROVIDER="CAN_VIEW_SERVICE_PROVIDER",e.CAN_VIEW_SERVICE_CLIENT="CAN_VIEW_SERVICE_CLIENT",e.CAN_VIEW_CLIENT="CAN_VIEW_CLIENT",e.CAN_EDIT_SERVICE="CAN_EDIT_SERVICE",e.CAN_CREATE_SCHEDULE="CAN_CREATE_SCHEDULE",e.CAN_EDIT_PLANNED_COURSE="CAN_EDIT_PLANNED_COURSE",e.CAN_SEE_REPORT="CAN_SEE_REPORT",e))(Yr||{}),b5=(e=>(e.CAN_VIEW_MENU="MOSTRAR_MENU_LATERAL",e.CAN_CREATE_SYSTEMS="CREAR_SISTEMAS",e.CAN_UPDATE_SYSTEMS="EDITAR_SISTEMAS",e.CAN_CREATE_PROFILES="CREAR_PERFILES",e.CAN_UPDATE_PROFILES="EDITAR_PERFILES",e.CAN_CREATE_FUNCTIONS="CREAR_FUNCIONES",e.CAN_DELETE_SYSTEMS="ELIMINAR_SISTEMAS",e.CAN_VIEW_USERS_LIST="LISTADO_USUARIOS",e.CAN_TOGGLE_SYSTEMS="HABILITAR_SISTEMAS",e.CAN_DELETE_PROFILES="ELIMINAR_PERFILES",e.CAN_DELETE_FUNCTIONS="ELIMINAR_FUNCIONES",e.CAN_VIEW_SYSTEMS_LIST="LISTADO_DE_SISTEMAS",e.CAN_VIEW_PROFILES_LIST="LISTADO_DE_PERFILES",e.CAN_UPDATE_USER_INFO="EDITAR_INFORMACION_USUARIO",e.CAN_ASSIGN_TEMPORARY_PERMISSION="ASIGNAR_PERMISOS_TEMPORALES",e.CAN_DELETE_TEMPORARY_PERMISSION="ELIMINAR_PERMISOS_TEMPORALES",e))(b5||{});const Pn={content:"fixed col-span-3",container:"col-span-3 grid grid-cols-3",show:"font-normal text-base transition-all duration-700 ease-in-out",hidden:"hidden",background:"bg-transparent h-screen relative flex flex-col",backgroundSize:{open:"transition-all duration-400 ease-in-out",closed:"transition-all duration-400 ease-in-out"},list:{item:"text-sm flex items-center rounded-md mb-1",wrap:"flex items-center space-x-3 mx-1"},menu:{icon:"w-6 h-6"},separator:"max-w-[11.875rem] border-b-2 border-solid mt-4 mb-4"};var ji=(e=>(e.SIGN="Firma Digital",e.SP_V2="Sistema de Perfilamiento v2",e.OPTIMUS="Integra Negocio",e))(ji||{});function y5(e){return`Bearer ${e}`}function w5(e,t){return function(){return e.apply(t,arguments)}}const{toString:RD}=Object.prototype,{getPrototypeOf:Pd}=Object,{iterator:X0,toStringTag:C5}=Symbol,Q0=(e=>t=>{const n=RD.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),qr=e=>(e=e.toLowerCase(),t=>Q0(t)===e),J0=e=>t=>typeof t===e,{isArray:ja}=Array,Ra=J0("undefined");function sl(e){return e!==null&&!Ra(e)&&e.constructor!==null&&!Ra(e.constructor)&&Un(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const E5=qr("ArrayBuffer");function WD(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&E5(e.buffer),t}const zD=J0("string"),Un=J0("function"),_5=J0("number"),ll=e=>e!==null&&typeof e=="object",UD=e=>e===!0||e===!1,ec=e=>{if(Q0(e)!=="object")return!1;const t=Pd(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(C5 in e)&&!(X0 in e)},VD=e=>{if(!ll(e)||sl(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},YD=qr("Date"),qD=qr("File"),ZD=qr("Blob"),GD=qr("FileList"),KD=e=>ll(e)&&Un(e.pipe),XD=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Un(e.append)&&((t=Q0(e))==="formdata"||t==="object"&&Un(e.toString)&&e.toString()==="[object FormData]"))},QD=qr("URLSearchParams"),[JD,eO,tO,nO]=["ReadableStream","Request","Response","Headers"].map(qr),rO=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function cl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),ja(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(sl(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),l=a.length;let c;for(r=0;r<l;r++)c=a[r],t.call(null,e[c],c,e)}}function S5(e,t){if(sl(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Vo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,A5=e=>!Ra(e)&&e!==Vo;function Ld(){const{caseless:e,skipUndefined:t}=A5(this)&&this||{},n={},r=(i,a)=>{const l=e&&S5(n,a)||a;ec(n[l])&&ec(i)?n[l]=Ld(n[l],i):ec(i)?n[l]=Ld({},i):ja(i)?n[l]=i.slice():(!t||!Ra(i))&&(n[l]=i)};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&cl(arguments[i],r);return n}const iO=(e,t,n,{allOwnKeys:r}={})=>(cl(t,(i,a)=>{n&&Un(i)?e[a]=w5(i,n):e[a]=i},{allOwnKeys:r}),e),oO=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),aO=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},sO=(e,t,n,r)=>{let i,a,l;const c={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)l=i[a],(!r||r(l,e,t))&&!c[l]&&(t[l]=e[l],c[l]=!0);e=n!==!1&&Pd(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},lO=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},cO=e=>{if(!e)return null;if(ja(e))return e;let t=e.length;if(!_5(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},uO=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Pd(Uint8Array)),dO=(e,t)=>{const r=(e&&e[X0]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},fO=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},pO=qr("HTMLFormElement"),hO=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),k5=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),mO=qr("RegExp"),D5=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};cl(n,(i,a)=>{let l;(l=t(i,a,e))!==!1&&(r[a]=l||i)}),Object.defineProperties(e,r)},vO=e=>{D5(e,(t,n)=>{if(Un(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Un(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},gO=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return ja(e)?r(e):r(String(e).split(t)),n},xO=()=>{},bO=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function yO(e){return!!(e&&Un(e.append)&&e[C5]==="FormData"&&e[X0])}const wO=e=>{const t=new Array(10),n=(r,i)=>{if(ll(r)){if(t.indexOf(r)>=0)return;if(sl(r))return r;if(!("toJSON"in r)){t[i]=r;const a=ja(r)?[]:{};return cl(r,(l,c)=>{const u=n(l,i+1);!Ra(u)&&(a[c]=u)}),t[i]=void 0,a}}return r};return n(e,0)},CO=qr("AsyncFunction"),EO=e=>e&&(ll(e)||Un(e))&&Un(e.then)&&Un(e.catch),O5=((e,t)=>e?setImmediate:t?((n,r)=>(Vo.addEventListener("message",({source:i,data:a})=>{i===Vo&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Vo.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Un(Vo.postMessage)),_O=typeof queueMicrotask<"u"?queueMicrotask.bind(Vo):typeof process<"u"&&process.nextTick||O5,Q={isArray:ja,isArrayBuffer:E5,isBuffer:sl,isFormData:XD,isArrayBufferView:WD,isString:zD,isNumber:_5,isBoolean:UD,isObject:ll,isPlainObject:ec,isEmptyObject:VD,isReadableStream:JD,isRequest:eO,isResponse:tO,isHeaders:nO,isUndefined:Ra,isDate:YD,isFile:qD,isBlob:ZD,isRegExp:mO,isFunction:Un,isStream:KD,isURLSearchParams:QD,isTypedArray:uO,isFileList:GD,forEach:cl,merge:Ld,extend:iO,trim:rO,stripBOM:oO,inherits:aO,toFlatObject:sO,kindOf:Q0,kindOfTest:qr,endsWith:lO,toArray:cO,forEachEntry:dO,matchAll:fO,isHTMLForm:pO,hasOwnProperty:k5,hasOwnProp:k5,reduceDescriptors:D5,freezeMethods:vO,toObjectSet:gO,toCamelCase:hO,noop:xO,toFiniteNumber:bO,findKey:S5,global:Vo,isContextDefined:A5,isSpecCompliantForm:yO,toJSONObject:wO,isAsyncFn:CO,isThenable:EO,setImmediate:O5,asap:_O,isIterable:e=>e!=null&&Un(e[X0])};function Ve(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}Q.inherits(Ve,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q.toJSONObject(this.config),code:this.code,status:this.status}}});const T5=Ve.prototype,F5={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{F5[e]={value:e}}),Object.defineProperties(Ve,F5),Object.defineProperty(T5,"isAxiosError",{value:!0}),Ve.from=(e,t,n,r,i,a)=>{const l=Object.create(T5);Q.toFlatObject(e,l,function(f){return f!==Error.prototype},d=>d!=="isAxiosError");const c=e&&e.message?e.message:"Error",u=t==null&&e?e.code:t;return Ve.call(l,c,u,n,r,i),e&&l.cause==null&&Object.defineProperty(l,"cause",{value:e,configurable:!0}),l.name=e&&e.name||"Error",a&&Object.assign(l,a),l};const SO=null;function Nd(e){return Q.isPlainObject(e)||Q.isArray(e)}function B5(e){return Q.endsWith(e,"[]")?e.slice(0,-2):e}function P5(e,t,n){return e?e.concat(t).map(function(i,a){return i=B5(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function AO(e){return Q.isArray(e)&&!e.some(Nd)}const kO=Q.toFlatObject(Q,{},null,function(t){return/^is[A-Z]/.test(t)});function tc(e,t,n){if(!Q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,g){return!Q.isUndefined(g[v])});const r=n.metaTokens,i=n.visitor||f,a=n.dots,l=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&Q.isSpecCompliantForm(t);if(!Q.isFunction(i))throw new TypeError("visitor must be a function");function d(x){if(x===null)return"";if(Q.isDate(x))return x.toISOString();if(Q.isBoolean(x))return x.toString();if(!u&&Q.isBlob(x))throw new Ve("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(x)||Q.isTypedArray(x)?u&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function f(x,v,g){let S=x;if(x&&!g&&typeof x=="object"){if(Q.endsWith(v,"{}"))v=r?v:v.slice(0,-2),x=JSON.stringify(x);else if(Q.isArray(x)&&AO(x)||(Q.isFileList(x)||Q.endsWith(v,"[]"))&&(S=Q.toArray(x)))return v=B5(v),S.forEach(function(C,E){!(Q.isUndefined(C)||C===null)&&t.append(l===!0?P5([v],E,a):l===null?v:v+"[]",d(C))}),!1}return Nd(x)?!0:(t.append(P5(g,v,a),d(x)),!1)}const m=[],h=Object.assign(kO,{defaultVisitor:f,convertValue:d,isVisitable:Nd});function b(x,v){if(!Q.isUndefined(x)){if(m.indexOf(x)!==-1)throw Error("Circular reference detected in "+v.join("."));m.push(x),Q.forEach(x,function(S,_){(!(Q.isUndefined(S)||S===null)&&i.call(t,S,Q.isString(_)?_.trim():_,v,h))===!0&&b(S,v?v.concat(_):[_])}),m.pop()}}if(!Q.isObject(e))throw new TypeError("data must be an object");return b(e),t}function L5(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Md(e,t){this._pairs=[],e&&tc(e,this,t)}const N5=Md.prototype;N5.append=function(t,n){this._pairs.push([t,n])},N5.toString=function(t){const n=t?function(r){return t.call(this,r,L5)}:L5;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function DO(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function M5(e,t,n){if(!t)return e;const r=n&&n.encode||DO;Q.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let a;if(i?a=i(t,n):a=Q.isURLSearchParams(t)?t.toString():new Md(t,n).toString(r),a){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class I5{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Q.forEach(this.handlers,function(r){r!==null&&t(r)})}}const $5={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},OO={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Md,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Id=typeof window<"u"&&typeof document<"u",$d=typeof navigator=="object"&&navigator||void 0,TO=Id&&(!$d||["ReactNative","NativeScript","NS"].indexOf($d.product)<0),FO=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",BO=Id&&window.location.href||"http://localhost",kn={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Id,hasStandardBrowserEnv:TO,hasStandardBrowserWebWorkerEnv:FO,navigator:$d,origin:BO},Symbol.toStringTag,{value:"Module"})),...OO};function PO(e,t){return tc(e,new kn.classes.URLSearchParams,{visitor:function(n,r,i,a){return kn.isNode&&Q.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function LO(e){return Q.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function NO(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function H5(e){function t(n,r,i,a){let l=n[a++];if(l==="__proto__")return!0;const c=Number.isFinite(+l),u=a>=n.length;return l=!l&&Q.isArray(i)?i.length:l,u?(Q.hasOwnProp(i,l)?i[l]=[i[l],r]:i[l]=r,!c):((!i[l]||!Q.isObject(i[l]))&&(i[l]=[]),t(n,r,i[l],a)&&Q.isArray(i[l])&&(i[l]=NO(i[l])),!c)}if(Q.isFormData(e)&&Q.isFunction(e.entries)){const n={};return Q.forEachEntry(e,(r,i)=>{t(LO(r),i,n,0)}),n}return null}function MO(e,t,n){if(Q.isString(e))try{return(t||JSON.parse)(e),Q.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ul={transitional:$5,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=Q.isObject(t);if(a&&Q.isHTMLForm(t)&&(t=new FormData(t)),Q.isFormData(t))return i?JSON.stringify(H5(t)):t;if(Q.isArrayBuffer(t)||Q.isBuffer(t)||Q.isStream(t)||Q.isFile(t)||Q.isBlob(t)||Q.isReadableStream(t))return t;if(Q.isArrayBufferView(t))return t.buffer;if(Q.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return PO(t,this.formSerializer).toString();if((c=Q.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return tc(c?{"files[]":t}:t,u&&new u,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),MO(t)):t}],transformResponse:[function(t){const n=this.transitional||ul.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(Q.isResponse(t)||Q.isReadableStream(t))return t;if(t&&Q.isString(t)&&(r&&!this.responseType||i)){const l=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(c){if(l)throw c.name==="SyntaxError"?Ve.from(c,Ve.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:kn.classes.FormData,Blob:kn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],e=>{ul.headers[e]={}});const IO=Q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),$O=e=>{const t={};let n,r,i;return e&&e.split(`
1375
+ `,$D={img:"m-auto my-8 md:m-0 md:mr-[40px]"},g5=F.memo(()=>{const{loading:e}=G0(),t=F.useCallback((r,i)=>{window.gtag&&window.gtag("event",`Click ${i}`,{event_category:"Redes Sociales",event_label:i}),window.open(r,"_blank")},[]),n=F.useCallback(()=>{window.gtag&&window.gtag("event","Click Mesa Ayuda",{event_category:"Footer Mesa de Ayuda",event_label:"Mesa de Ayuda"}),window.location.href="mailto:soporte@ccc.cl"},[]);return y.jsx(y.Fragment,{children:e||y.jsxs(MD,{children:[y.jsxs(ID,{className:"px-16",children:[y.jsxs(Rn,{size:"xl",variant:"quaternary",className:"mobile-btn m-auto w-full justify-center",onClick:()=>n(),children:[y.jsx(M3,{className:"w-6 h-6"}),y.jsx("span",{children:"Mesa de Ayuda"})]}),y.jsx(BD,{className:$D.img,onClick:()=>t("https://www.ccc.cl","Pagina Web CCC")}),y.jsxs(r0,{justifyContent:"center",alignItems:"center",gap:10,children:[y.jsx(PD,{onClick:()=>t("https://www.ccc.cl","Pagina Web CCC")}),y.jsx(LD,{onClick:()=>t("https://www.linkedin.com/company/otic-c-mara-chilena-de-la-construcci-n/?originalSubdomain=cl","Logo LinkedIn")}),y.jsx(ND,{onClick:()=>t("https://www.youtube.com/channel/UCxHlCqIZxdhQvNVuyFr3NYQ","Logo Youtube")})]}),y.jsxs(Rn,{size:"xl",variant:"quaternary",className:"desktop-btn",onClick:n,children:[y.jsx(M3,{className:"w-6 h-6"}),y.jsx("span",{children:"Mesa de Ayuda"})]})]}),y.jsx("span",{})]})})}),HD=({user:e,allow:t,system:n=x5})=>{var a,l;const r=(a=e==null?void 0:e.systems)==null?void 0:a.find(c=>c.name===n),i=(l=r==null?void 0:r.functions)==null?void 0:l.filter(c=>{const u=c.key;return t==null?void 0:t.includes(u)});return(i==null?void 0:i.length)===(t==null?void 0:t.length)},jD=({user:e,passport:t,systems:n})=>{var i;const r=(i=e==null?void 0:e.systems)==null?void 0:i.filter(a=>n==null?void 0:n.includes(a.name));return t?(r==null?void 0:r.length)===(n==null?void 0:n.length):!1},x5="Integra Negocio",K0=F.memo(({allow:e,system:t,passport:n,systems:r,children:i,inject:a})=>{var c,u;const l=F.useMemo(()=>{var d;return(d=a==null?void 0:a.systems)==null?void 0:d.find(f=>f.name===t)},[a,t]);if(a){const d=(c=l==null?void 0:l.functions)==null?void 0:c.filter(f=>{const m=f.key;return e==null?void 0:e.includes(m)});if(n){const f=(u=a==null?void 0:a.systems)==null?void 0:u.filter(m=>r==null?void 0:r.includes(m.name));return y.jsx(y.Fragment,{children:(f==null?void 0:f.length)===(r==null?void 0:r.length)?i:null})}return y.jsx(y.Fragment,{children:(d==null?void 0:d.length)===(e==null?void 0:e.length)?i:null})}return y.jsx(Ha.Consumer,{children:d=>{var b,x,v,g,S;const f=(x=(b=d==null?void 0:d.user)==null?void 0:b.systems)==null?void 0:x.find(_=>_.name===t),m=(v=f==null?void 0:f.functions)==null?void 0:v.filter(_=>{const C=_.key;return e==null?void 0:e.includes(C)}),h=(S=(g=d==null?void 0:d.user)==null?void 0:g.systems)==null?void 0:S.filter(_=>r==null?void 0:r.includes(_.name));return n?y.jsx(y.Fragment,{children:(h==null?void 0:h.length)===(r==null?void 0:r.length)?i:null}):y.jsx(y.Fragment,{children:(m==null?void 0:m.length)===(e==null?void 0:e.length)?y.jsx(y.Fragment,{children:i}):y.jsx(y.Fragment,{children:null})})}})});K0.defaultProps={allow:[],system:x5};var Yr=(e=>(e.CAN_VIEW_CARD="CAN_VIEW_CARD",e.SEE_RENDITION="SEE_RENDITION",e.DIGIT_RENDITION="DIGIT_RENDITION",e.CAN_VIEW_MANTAINER="CAN_VIEW_MANTAINER",e.CAN_EDIT_MANTAINER="CAN_EDIT_MANTAINER",e.CAN_VIEW_MANAGEMENT="CAN_VIEW_MANAGEMENT",e.VISUALIZE_RENDITION="VISUALIZE_RENDITION",e.CAN_VIEW_ATTENDANCE="CAN_VIEW_ATTENDANCE",e.CAN_ADVANCE_PAYMENT="CAN_ADVANCE_PAYMENT",e.CAN_ASSIGN_RESPONSIBLE="CAN_ASSIGN_RESPONSIBLE",e.CAN_CREATE_INSCRIPTION="CAN_CREATE_INSCRIPTION",e.CAN_VIEW_COURSE_CONTENT="CAN_VIEW_COURSE_CONTENT",e.CAN_EDIT_COURSE_CONTENT="CAN_EDIT_COURSE_CONTENT",e.CAN_REGISTER_ATTENDANCE="CAN_REGISTER_ATTENDANCE",e.CAN_GENERATE_LIQUIDATIONS="CAN_GENERATE_LIQUIDATIONS",e.CAN_GENERATE_PURCHASE_ORDER="CAN_GENERATE_PURCHASE_ORDER",e.CAN_DOWNLOAD_PURCHASE_ORDER="CAN_DOWNLOAD_PURCHASE_ORDER",e.CAN_VIEW_FILTER_RESPONSIBLE="CAN_VIEW_FILTER_RESPONSIBLE",e.CAN_VIEW_MOVILIZATION_TRAVEL="CAN_VIEW_MOVILIZATION_TRAVEL",e.CAN_RECTIFY_COURSE_FRANCHISE="CAN_RECTIFY_COURSE_FRANCHISE",e.CAN_RECTIFY_FINANCING_ACCOUNT="CAN_RECTIFY_FINANCING_ACCOUNT",e.CAN_GENERATE_SENCE_LIQUIDATION="CAN_GENERATE_SENCE_LIQUIDATION",e.CAN_REPORT_MOVILIZATION_TRAVEL="CAN_REPORT_MOVILIZATION_TRAVEL",e.CAN_RECTIFY_COURSE_NO_FRANCHISE="CAN_RECTIFY_COURSE_NO_FRANCHISE",e.CAN_GENERATE_SENCE_COMMUNICATION="CAN_GENERATE_SENCE_COMMUNICATION",e.CAN_UPDATE_REQUIREMENTS_MANUALLY="CAN_UPDATE_REQUIREMENTS_MANUALLY",e.CAN_VIEW_SERVICE="CAN_VIEW_SERVICE",e.CAN_GENERATE_PURCHASE_ORDER_SERVICE="CAN_GENERATE_PURCHASE_ORDER_SERVICE",e.CAN_VIEW_DASHBOARD_CLIENT="CAN_VIEW_DASHBOARD_CLIENT",e.CAN_VIEW_DASHBOARD_PROVIDER="CAN_VIEW_DASHBOARD_PROVIDER",e.MAKE_ADVANCE_SERVICE="MAKE_ADVANCE_SERVICE",e.CAN_IMPORT_EXTENDED_DATA="CAN_IMPORT_EXTENDED_DATA",e.CAN_VIEW_SERVICE_PROVIDER="CAN_VIEW_SERVICE_PROVIDER",e.CAN_VIEW_SERVICE_CLIENT="CAN_VIEW_SERVICE_CLIENT",e.CAN_VIEW_CLIENT="CAN_VIEW_CLIENT",e.CAN_EDIT_SERVICE="CAN_EDIT_SERVICE",e.CAN_CREATE_SCHEDULE="CAN_CREATE_SCHEDULE",e.CAN_EDIT_PLANNED_COURSE="CAN_EDIT_PLANNED_COURSE",e.CAN_SEE_REPORT="CAN_SEE_REPORT",e.CAN_CREATE_USER="CAN_CREATE_USER",e))(Yr||{}),b5=(e=>(e.CAN_VIEW_MENU="MOSTRAR_MENU_LATERAL",e.CAN_CREATE_SYSTEMS="CREAR_SISTEMAS",e.CAN_UPDATE_SYSTEMS="EDITAR_SISTEMAS",e.CAN_CREATE_PROFILES="CREAR_PERFILES",e.CAN_UPDATE_PROFILES="EDITAR_PERFILES",e.CAN_CREATE_FUNCTIONS="CREAR_FUNCIONES",e.CAN_DELETE_SYSTEMS="ELIMINAR_SISTEMAS",e.CAN_VIEW_USERS_LIST="LISTADO_USUARIOS",e.CAN_TOGGLE_SYSTEMS="HABILITAR_SISTEMAS",e.CAN_DELETE_PROFILES="ELIMINAR_PERFILES",e.CAN_DELETE_FUNCTIONS="ELIMINAR_FUNCIONES",e.CAN_VIEW_SYSTEMS_LIST="LISTADO_DE_SISTEMAS",e.CAN_VIEW_PROFILES_LIST="LISTADO_DE_PERFILES",e.CAN_UPDATE_USER_INFO="EDITAR_INFORMACION_USUARIO",e.CAN_ASSIGN_TEMPORARY_PERMISSION="ASIGNAR_PERMISOS_TEMPORALES",e.CAN_DELETE_TEMPORARY_PERMISSION="ELIMINAR_PERMISOS_TEMPORALES",e))(b5||{});const Pn={content:"fixed col-span-3",container:"col-span-3 grid grid-cols-3",show:"font-normal text-base transition-all duration-700 ease-in-out",hidden:"hidden",background:"bg-transparent h-screen relative flex flex-col",backgroundSize:{open:"transition-all duration-400 ease-in-out",closed:"transition-all duration-400 ease-in-out"},list:{item:"text-sm flex items-center rounded-md mb-1",wrap:"flex items-center space-x-3 mx-1"},menu:{icon:"w-6 h-6"},separator:"max-w-[11.875rem] border-b-2 border-solid mt-4 mb-4"};var ji=(e=>(e.SIGN="Firma Digital",e.SP_V2="Sistema de Perfilamiento v2",e.OPTIMUS="Integra Negocio",e))(ji||{});function y5(e){return`Bearer ${e}`}function w5(e,t){return function(){return e.apply(t,arguments)}}const{toString:RD}=Object.prototype,{getPrototypeOf:Pd}=Object,{iterator:X0,toStringTag:C5}=Symbol,Q0=(e=>t=>{const n=RD.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),qr=e=>(e=e.toLowerCase(),t=>Q0(t)===e),J0=e=>t=>typeof t===e,{isArray:ja}=Array,Ra=J0("undefined");function sl(e){return e!==null&&!Ra(e)&&e.constructor!==null&&!Ra(e.constructor)&&Un(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const E5=qr("ArrayBuffer");function WD(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&E5(e.buffer),t}const zD=J0("string"),Un=J0("function"),_5=J0("number"),ll=e=>e!==null&&typeof e=="object",UD=e=>e===!0||e===!1,ec=e=>{if(Q0(e)!=="object")return!1;const t=Pd(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(C5 in e)&&!(X0 in e)},VD=e=>{if(!ll(e)||sl(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},YD=qr("Date"),qD=qr("File"),ZD=qr("Blob"),GD=qr("FileList"),KD=e=>ll(e)&&Un(e.pipe),XD=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Un(e.append)&&((t=Q0(e))==="formdata"||t==="object"&&Un(e.toString)&&e.toString()==="[object FormData]"))},QD=qr("URLSearchParams"),[JD,eO,tO,nO]=["ReadableStream","Request","Response","Headers"].map(qr),rO=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function cl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),ja(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(sl(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),l=a.length;let c;for(r=0;r<l;r++)c=a[r],t.call(null,e[c],c,e)}}function S5(e,t){if(sl(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Vo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,A5=e=>!Ra(e)&&e!==Vo;function Ld(){const{caseless:e,skipUndefined:t}=A5(this)&&this||{},n={},r=(i,a)=>{const l=e&&S5(n,a)||a;ec(n[l])&&ec(i)?n[l]=Ld(n[l],i):ec(i)?n[l]=Ld({},i):ja(i)?n[l]=i.slice():(!t||!Ra(i))&&(n[l]=i)};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&cl(arguments[i],r);return n}const iO=(e,t,n,{allOwnKeys:r}={})=>(cl(t,(i,a)=>{n&&Un(i)?e[a]=w5(i,n):e[a]=i},{allOwnKeys:r}),e),oO=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),aO=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},sO=(e,t,n,r)=>{let i,a,l;const c={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)l=i[a],(!r||r(l,e,t))&&!c[l]&&(t[l]=e[l],c[l]=!0);e=n!==!1&&Pd(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},lO=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},cO=e=>{if(!e)return null;if(ja(e))return e;let t=e.length;if(!_5(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},uO=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Pd(Uint8Array)),dO=(e,t)=>{const r=(e&&e[X0]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},fO=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},pO=qr("HTMLFormElement"),hO=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),k5=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),mO=qr("RegExp"),D5=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};cl(n,(i,a)=>{let l;(l=t(i,a,e))!==!1&&(r[a]=l||i)}),Object.defineProperties(e,r)},vO=e=>{D5(e,(t,n)=>{if(Un(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Un(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},gO=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return ja(e)?r(e):r(String(e).split(t)),n},xO=()=>{},bO=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function yO(e){return!!(e&&Un(e.append)&&e[C5]==="FormData"&&e[X0])}const wO=e=>{const t=new Array(10),n=(r,i)=>{if(ll(r)){if(t.indexOf(r)>=0)return;if(sl(r))return r;if(!("toJSON"in r)){t[i]=r;const a=ja(r)?[]:{};return cl(r,(l,c)=>{const u=n(l,i+1);!Ra(u)&&(a[c]=u)}),t[i]=void 0,a}}return r};return n(e,0)},CO=qr("AsyncFunction"),EO=e=>e&&(ll(e)||Un(e))&&Un(e.then)&&Un(e.catch),O5=((e,t)=>e?setImmediate:t?((n,r)=>(Vo.addEventListener("message",({source:i,data:a})=>{i===Vo&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Vo.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Un(Vo.postMessage)),_O=typeof queueMicrotask<"u"?queueMicrotask.bind(Vo):typeof process<"u"&&process.nextTick||O5,Q={isArray:ja,isArrayBuffer:E5,isBuffer:sl,isFormData:XD,isArrayBufferView:WD,isString:zD,isNumber:_5,isBoolean:UD,isObject:ll,isPlainObject:ec,isEmptyObject:VD,isReadableStream:JD,isRequest:eO,isResponse:tO,isHeaders:nO,isUndefined:Ra,isDate:YD,isFile:qD,isBlob:ZD,isRegExp:mO,isFunction:Un,isStream:KD,isURLSearchParams:QD,isTypedArray:uO,isFileList:GD,forEach:cl,merge:Ld,extend:iO,trim:rO,stripBOM:oO,inherits:aO,toFlatObject:sO,kindOf:Q0,kindOfTest:qr,endsWith:lO,toArray:cO,forEachEntry:dO,matchAll:fO,isHTMLForm:pO,hasOwnProperty:k5,hasOwnProp:k5,reduceDescriptors:D5,freezeMethods:vO,toObjectSet:gO,toCamelCase:hO,noop:xO,toFiniteNumber:bO,findKey:S5,global:Vo,isContextDefined:A5,isSpecCompliantForm:yO,toJSONObject:wO,isAsyncFn:CO,isThenable:EO,setImmediate:O5,asap:_O,isIterable:e=>e!=null&&Un(e[X0])};function Ve(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}Q.inherits(Ve,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q.toJSONObject(this.config),code:this.code,status:this.status}}});const T5=Ve.prototype,F5={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{F5[e]={value:e}}),Object.defineProperties(Ve,F5),Object.defineProperty(T5,"isAxiosError",{value:!0}),Ve.from=(e,t,n,r,i,a)=>{const l=Object.create(T5);Q.toFlatObject(e,l,function(f){return f!==Error.prototype},d=>d!=="isAxiosError");const c=e&&e.message?e.message:"Error",u=t==null&&e?e.code:t;return Ve.call(l,c,u,n,r,i),e&&l.cause==null&&Object.defineProperty(l,"cause",{value:e,configurable:!0}),l.name=e&&e.name||"Error",a&&Object.assign(l,a),l};const SO=null;function Nd(e){return Q.isPlainObject(e)||Q.isArray(e)}function B5(e){return Q.endsWith(e,"[]")?e.slice(0,-2):e}function P5(e,t,n){return e?e.concat(t).map(function(i,a){return i=B5(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function AO(e){return Q.isArray(e)&&!e.some(Nd)}const kO=Q.toFlatObject(Q,{},null,function(t){return/^is[A-Z]/.test(t)});function tc(e,t,n){if(!Q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,g){return!Q.isUndefined(g[v])});const r=n.metaTokens,i=n.visitor||f,a=n.dots,l=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&Q.isSpecCompliantForm(t);if(!Q.isFunction(i))throw new TypeError("visitor must be a function");function d(x){if(x===null)return"";if(Q.isDate(x))return x.toISOString();if(Q.isBoolean(x))return x.toString();if(!u&&Q.isBlob(x))throw new Ve("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(x)||Q.isTypedArray(x)?u&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function f(x,v,g){let S=x;if(x&&!g&&typeof x=="object"){if(Q.endsWith(v,"{}"))v=r?v:v.slice(0,-2),x=JSON.stringify(x);else if(Q.isArray(x)&&AO(x)||(Q.isFileList(x)||Q.endsWith(v,"[]"))&&(S=Q.toArray(x)))return v=B5(v),S.forEach(function(C,E){!(Q.isUndefined(C)||C===null)&&t.append(l===!0?P5([v],E,a):l===null?v:v+"[]",d(C))}),!1}return Nd(x)?!0:(t.append(P5(g,v,a),d(x)),!1)}const m=[],h=Object.assign(kO,{defaultVisitor:f,convertValue:d,isVisitable:Nd});function b(x,v){if(!Q.isUndefined(x)){if(m.indexOf(x)!==-1)throw Error("Circular reference detected in "+v.join("."));m.push(x),Q.forEach(x,function(S,_){(!(Q.isUndefined(S)||S===null)&&i.call(t,S,Q.isString(_)?_.trim():_,v,h))===!0&&b(S,v?v.concat(_):[_])}),m.pop()}}if(!Q.isObject(e))throw new TypeError("data must be an object");return b(e),t}function L5(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Md(e,t){this._pairs=[],e&&tc(e,this,t)}const N5=Md.prototype;N5.append=function(t,n){this._pairs.push([t,n])},N5.toString=function(t){const n=t?function(r){return t.call(this,r,L5)}:L5;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function DO(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function M5(e,t,n){if(!t)return e;const r=n&&n.encode||DO;Q.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let a;if(i?a=i(t,n):a=Q.isURLSearchParams(t)?t.toString():new Md(t,n).toString(r),a){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class I5{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Q.forEach(this.handlers,function(r){r!==null&&t(r)})}}const $5={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},OO={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Md,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Id=typeof window<"u"&&typeof document<"u",$d=typeof navigator=="object"&&navigator||void 0,TO=Id&&(!$d||["ReactNative","NativeScript","NS"].indexOf($d.product)<0),FO=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",BO=Id&&window.location.href||"http://localhost",kn={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Id,hasStandardBrowserEnv:TO,hasStandardBrowserWebWorkerEnv:FO,navigator:$d,origin:BO},Symbol.toStringTag,{value:"Module"})),...OO};function PO(e,t){return tc(e,new kn.classes.URLSearchParams,{visitor:function(n,r,i,a){return kn.isNode&&Q.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function LO(e){return Q.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function NO(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function H5(e){function t(n,r,i,a){let l=n[a++];if(l==="__proto__")return!0;const c=Number.isFinite(+l),u=a>=n.length;return l=!l&&Q.isArray(i)?i.length:l,u?(Q.hasOwnProp(i,l)?i[l]=[i[l],r]:i[l]=r,!c):((!i[l]||!Q.isObject(i[l]))&&(i[l]=[]),t(n,r,i[l],a)&&Q.isArray(i[l])&&(i[l]=NO(i[l])),!c)}if(Q.isFormData(e)&&Q.isFunction(e.entries)){const n={};return Q.forEachEntry(e,(r,i)=>{t(LO(r),i,n,0)}),n}return null}function MO(e,t,n){if(Q.isString(e))try{return(t||JSON.parse)(e),Q.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ul={transitional:$5,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=Q.isObject(t);if(a&&Q.isHTMLForm(t)&&(t=new FormData(t)),Q.isFormData(t))return i?JSON.stringify(H5(t)):t;if(Q.isArrayBuffer(t)||Q.isBuffer(t)||Q.isStream(t)||Q.isFile(t)||Q.isBlob(t)||Q.isReadableStream(t))return t;if(Q.isArrayBufferView(t))return t.buffer;if(Q.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return PO(t,this.formSerializer).toString();if((c=Q.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return tc(c?{"files[]":t}:t,u&&new u,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),MO(t)):t}],transformResponse:[function(t){const n=this.transitional||ul.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(Q.isResponse(t)||Q.isReadableStream(t))return t;if(t&&Q.isString(t)&&(r&&!this.responseType||i)){const l=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(c){if(l)throw c.name==="SyntaxError"?Ve.from(c,Ve.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:kn.classes.FormData,Blob:kn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],e=>{ul.headers[e]={}});const IO=Q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),$O=e=>{const t={};let n,r,i;return e&&e.split(`
1376
1376
  `).forEach(function(l){i=l.indexOf(":"),n=l.substring(0,i).trim().toLowerCase(),r=l.substring(i+1).trim(),!(!n||t[n]&&IO[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},j5=Symbol("internals");function dl(e){return e&&String(e).trim().toLowerCase()}function nc(e){return e===!1||e==null?e:Q.isArray(e)?e.map(nc):String(e)}function HO(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const jO=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Hd(e,t,n,r,i){if(Q.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!Q.isString(t)){if(Q.isString(r))return t.indexOf(r)!==-1;if(Q.isRegExp(r))return r.test(t)}}function RO(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function WO(e,t){const n=Q.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,l){return this[r].call(this,t,i,a,l)},configurable:!0})})}let Vn=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(c,u,d){const f=dl(u);if(!f)throw new Error("header name must be a non-empty string");const m=Q.findKey(i,f);(!m||i[m]===void 0||d===!0||d===void 0&&i[m]!==!1)&&(i[m||u]=nc(c))}const l=(c,u)=>Q.forEach(c,(d,f)=>a(d,f,u));if(Q.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(Q.isString(t)&&(t=t.trim())&&!jO(t))l($O(t),n);else if(Q.isObject(t)&&Q.isIterable(t)){let c={},u,d;for(const f of t){if(!Q.isArray(f))throw TypeError("Object iterator must return a key-value pair");c[d=f[0]]=(u=c[d])?Q.isArray(u)?[...u,f[1]]:[u,f[1]]:f[1]}l(c,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=dl(t),t){const r=Q.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return HO(i);if(Q.isFunction(n))return n.call(this,i,r);if(Q.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=dl(t),t){const r=Q.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Hd(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(l){if(l=dl(l),l){const c=Q.findKey(r,l);c&&(!n||Hd(r,r[c],c,n))&&(delete r[c],i=!0)}}return Q.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||Hd(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return Q.forEach(this,(i,a)=>{const l=Q.findKey(r,a);if(l){n[l]=nc(i),delete n[a];return}const c=t?RO(a):String(a).trim();c!==a&&delete n[a],n[c]=nc(i),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Q.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&Q.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
1377
1377
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[j5]=this[j5]={accessors:{}}).accessors,i=this.prototype;function a(l){const c=dl(l);r[c]||(WO(i,l),r[c]=!0)}return Q.isArray(t)?t.forEach(a):a(t),this}};Vn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Q.reduceDescriptors(Vn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),Q.freezeMethods(Vn);function jd(e,t){const n=this||ul,r=t||n,i=Vn.from(r.headers);let a=r.data;return Q.forEach(e,function(c){a=c.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function R5(e){return!!(e&&e.__CANCEL__)}function Wa(e,t,n){Ve.call(this,e??"canceled",Ve.ERR_CANCELED,t,n),this.name="CanceledError"}Q.inherits(Wa,Ve,{__CANCEL__:!0});function W5(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ve("Request failed with status code "+n.status,[Ve.ERR_BAD_REQUEST,Ve.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function zO(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function UO(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,l;return t=t!==void 0?t:1e3,function(u){const d=Date.now(),f=r[a];l||(l=d),n[i]=u,r[i]=d;let m=a,h=0;for(;m!==i;)h+=n[m++],m=m%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),d-l<t)return;const b=f&&d-f;return b?Math.round(h*1e3/b):void 0}}function VO(e,t){let n=0,r=1e3/t,i,a;const l=(d,f=Date.now())=>{n=f,i=null,a&&(clearTimeout(a),a=null),e(...d)};return[(...d)=>{const f=Date.now(),m=f-n;m>=r?l(d,f):(i=d,a||(a=setTimeout(()=>{a=null,l(i)},r-m)))},()=>i&&l(i)]}const rc=(e,t,n=3)=>{let r=0;const i=UO(50,250);return VO(a=>{const l=a.loaded,c=a.lengthComputable?a.total:void 0,u=l-r,d=i(u),f=l<=c;r=l;const m={loaded:l,total:c,progress:c?l/c:void 0,bytes:u,rate:d||void 0,estimated:d&&c&&f?(c-l)/d:void 0,event:a,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(m)},n)},z5=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},U5=e=>(...t)=>Q.asap(()=>e(...t)),YO=kn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,kn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(kn.origin),kn.navigator&&/(msie|trident)/i.test(kn.navigator.userAgent)):()=>!0,qO=kn.hasStandardBrowserEnv?{write(e,t,n,r,i,a,l){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];Q.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),Q.isString(r)&&c.push(`path=${r}`),Q.isString(i)&&c.push(`domain=${i}`),a===!0&&c.push("secure"),Q.isString(l)&&c.push(`SameSite=${l}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function ZO(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function GO(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function V5(e,t,n){let r=!ZO(t);return e&&(r||n==!1)?GO(e,t):t}const Y5=e=>e instanceof Vn?{...e}:e;function Yo(e,t){t=t||{};const n={};function r(d,f,m,h){return Q.isPlainObject(d)&&Q.isPlainObject(f)?Q.merge.call({caseless:h},d,f):Q.isPlainObject(f)?Q.merge({},f):Q.isArray(f)?f.slice():f}function i(d,f,m,h){if(Q.isUndefined(f)){if(!Q.isUndefined(d))return r(void 0,d,m,h)}else return r(d,f,m,h)}function a(d,f){if(!Q.isUndefined(f))return r(void 0,f)}function l(d,f){if(Q.isUndefined(f)){if(!Q.isUndefined(d))return r(void 0,d)}else return r(void 0,f)}function c(d,f,m){if(m in t)return r(d,f);if(m in e)return r(void 0,d)}const u={url:a,method:a,data:a,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:c,headers:(d,f,m)=>i(Y5(d),Y5(f),m,!0)};return Q.forEach(Object.keys({...e,...t}),function(f){const m=u[f]||i,h=m(e[f],t[f],f);Q.isUndefined(h)&&m!==c||(n[f]=h)}),n}const q5=e=>{const t=Yo({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:l,auth:c}=t;if(t.headers=l=Vn.from(l),t.url=M5(V5(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&l.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),Q.isFormData(n)){if(kn.hasStandardBrowserEnv||kn.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(Q.isFunction(n.getHeaders)){const u=n.getHeaders(),d=["content-type","content-length"];Object.entries(u).forEach(([f,m])=>{d.includes(f.toLowerCase())&&l.set(f,m)})}}if(kn.hasStandardBrowserEnv&&(r&&Q.isFunction(r)&&(r=r(t)),r||r!==!1&&YO(t.url))){const u=i&&a&&qO.read(a);u&&l.set(i,u)}return t},KO=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const i=q5(e);let a=i.data;const l=Vn.from(i.headers).normalize();let{responseType:c,onUploadProgress:u,onDownloadProgress:d}=i,f,m,h,b,x;function v(){b&&b(),x&&x(),i.cancelToken&&i.cancelToken.unsubscribe(f),i.signal&&i.signal.removeEventListener("abort",f)}let g=new XMLHttpRequest;g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout;function S(){if(!g)return;const C=Vn.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),O={data:!c||c==="text"||c==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:C,config:e,request:g};W5(function(B){n(B),v()},function(B){r(B),v()},O),g=null}"onloadend"in g?g.onloadend=S:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(S)},g.onabort=function(){g&&(r(new Ve("Request aborted",Ve.ECONNABORTED,e,g)),g=null)},g.onerror=function(E){const O=E&&E.message?E.message:"Network Error",A=new Ve(O,Ve.ERR_NETWORK,e,g);A.event=E||null,r(A),g=null},g.ontimeout=function(){let E=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const O=i.transitional||$5;i.timeoutErrorMessage&&(E=i.timeoutErrorMessage),r(new Ve(E,O.clarifyTimeoutError?Ve.ETIMEDOUT:Ve.ECONNABORTED,e,g)),g=null},a===void 0&&l.setContentType(null),"setRequestHeader"in g&&Q.forEach(l.toJSON(),function(E,O){g.setRequestHeader(O,E)}),Q.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),c&&c!=="json"&&(g.responseType=i.responseType),d&&([h,x]=rc(d,!0),g.addEventListener("progress",h)),u&&g.upload&&([m,b]=rc(u),g.upload.addEventListener("progress",m),g.upload.addEventListener("loadend",b)),(i.cancelToken||i.signal)&&(f=C=>{g&&(r(!C||C.type?new Wa(null,e,g):C),g.abort(),g=null)},i.cancelToken&&i.cancelToken.subscribe(f),i.signal&&(i.signal.aborted?f():i.signal.addEventListener("abort",f)));const _=zO(i.url);if(_&&kn.protocols.indexOf(_)===-1){r(new Ve("Unsupported protocol "+_+":",Ve.ERR_BAD_REQUEST,e));return}g.send(a||null)})},XO=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const a=function(d){if(!i){i=!0,c();const f=d instanceof Error?d:this.reason;r.abort(f instanceof Ve?f:new Wa(f instanceof Error?f.message:f))}};let l=t&&setTimeout(()=>{l=null,a(new Ve(`timeout ${t} of ms exceeded`,Ve.ETIMEDOUT))},t);const c=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(a):d.removeEventListener("abort",a)}),e=null)};e.forEach(d=>d.addEventListener("abort",a));const{signal:u}=r;return u.unsubscribe=()=>Q.asap(c),u}},QO=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},JO=async function*(e,t){for await(const n of eT(e))yield*QO(n,t)},eT=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Z5=(e,t,n,r)=>{const i=JO(e,t);let a=0,l,c=u=>{l||(l=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:d,value:f}=await i.next();if(d){c(),u.close();return}let m=f.byteLength;if(n){let h=a+=m;n(h)}u.enqueue(new Uint8Array(f))}catch(d){throw c(d),d}},cancel(u){return c(u),i.return()}},{highWaterMark:2})},G5=64*1024,{isFunction:ic}=Q,tT=(({Request:e,Response:t})=>({Request:e,Response:t}))(Q.global),{ReadableStream:K5,TextEncoder:X5}=Q.global,Q5=(e,...t)=>{try{return!!e(...t)}catch{return!1}},nT=e=>{e=Q.merge.call({skipUndefined:!0},tT,e);const{fetch:t,Request:n,Response:r}=e,i=t?ic(t):typeof fetch=="function",a=ic(n),l=ic(r);if(!i)return!1;const c=i&&ic(K5),u=i&&(typeof X5=="function"?(x=>v=>x.encode(v))(new X5):async x=>new Uint8Array(await new n(x).arrayBuffer())),d=a&&c&&Q5(()=>{let x=!1;const v=new n(kn.origin,{body:new K5,method:"POST",get duplex(){return x=!0,"half"}}).headers.has("Content-Type");return x&&!v}),f=l&&c&&Q5(()=>Q.isReadableStream(new r("").body)),m={stream:f&&(x=>x.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(x=>{!m[x]&&(m[x]=(v,g)=>{let S=v&&v[x];if(S)return S.call(v);throw new Ve(`Response type '${x}' is not supported`,Ve.ERR_NOT_SUPPORT,g)})});const h=async x=>{if(x==null)return 0;if(Q.isBlob(x))return x.size;if(Q.isSpecCompliantForm(x))return(await new n(kn.origin,{method:"POST",body:x}).arrayBuffer()).byteLength;if(Q.isArrayBufferView(x)||Q.isArrayBuffer(x))return x.byteLength;if(Q.isURLSearchParams(x)&&(x=x+""),Q.isString(x))return(await u(x)).byteLength},b=async(x,v)=>{const g=Q.toFiniteNumber(x.getContentLength());return g??h(v)};return async x=>{let{url:v,method:g,data:S,signal:_,cancelToken:C,timeout:E,onDownloadProgress:O,onUploadProgress:A,responseType:B,headers:D,withCredentials:N="same-origin",fetchOptions:L}=q5(x),M=t||fetch;B=B?(B+"").toLowerCase():"text";let j=XO([_,C&&C.toAbortSignal()],E),z=null;const K=j&&j.unsubscribe&&(()=>{j.unsubscribe()});let q;try{if(A&&d&&g!=="get"&&g!=="head"&&(q=await b(D,S))!==0){let $=new n(v,{method:"POST",body:S,duplex:"half"}),V;if(Q.isFormData(S)&&(V=$.headers.get("content-type"))&&D.setContentType(V),$.body){const[G,W]=z5(q,rc(U5(A)));S=Z5($.body,G5,G,W)}}Q.isString(N)||(N=N?"include":"omit");const ne=a&&"credentials"in n.prototype,ce={...L,signal:j,method:g.toUpperCase(),headers:D.normalize().toJSON(),body:S,duplex:"half",credentials:ne?N:void 0};z=a&&new n(v,ce);let ae=await(a?M(z,L):M(v,ce));const pe=f&&(B==="stream"||B==="response");if(f&&(O||pe&&K)){const $={};["status","statusText","headers"].forEach(de=>{$[de]=ae[de]});const V=Q.toFiniteNumber(ae.headers.get("content-length")),[G,W]=O&&z5(V,rc(U5(O),!0))||[];ae=new r(Z5(ae.body,G5,G,()=>{W&&W(),K&&K()}),$)}B=B||"text";let Z=await m[Q.findKey(m,B)||"text"](ae,x);return!pe&&K&&K(),await new Promise(($,V)=>{W5($,V,{data:Z,headers:Vn.from(ae.headers),status:ae.status,statusText:ae.statusText,config:x,request:z})})}catch(ne){throw K&&K(),ne&&ne.name==="TypeError"&&/Load failed|fetch/i.test(ne.message)?Object.assign(new Ve("Network Error",Ve.ERR_NETWORK,x,z),{cause:ne.cause||ne}):Ve.from(ne,ne&&ne.code,x,z)}}},rT=new Map,J5=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,a=[r,i,n];let l=a.length,c=l,u,d,f=rT;for(;c--;)u=a[c],d=f.get(u),d===void 0&&f.set(u,d=c?new Map:nT(t)),f=d;return d};J5();const Rd={http:SO,xhr:KO,fetch:{get:J5}};Q.forEach(Rd,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const em=e=>`- ${e}`,iT=e=>Q.isFunction(e)||e===null||e===!1;function oT(e,t){e=Q.isArray(e)?e:[e];const{length:n}=e;let r,i;const a={};for(let l=0;l<n;l++){r=e[l];let c;if(i=r,!iT(r)&&(i=Rd[(c=String(r)).toLowerCase()],i===void 0))throw new Ve(`Unknown adapter '${c}'`);if(i&&(Q.isFunction(i)||(i=i.get(t))))break;a[c||"#"+l]=i}if(!i){const l=Object.entries(a).map(([u,d])=>`adapter ${u} `+(d===!1?"is not supported by the environment":"is not available in the build"));let c=n?l.length>1?`since :
1378
1378
  `+l.map(em).join(`