nectiasw 0.0.78 → 0.0.80

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
@@ -896,13 +896,13 @@ vu.version="2.30.1",mu=Kh,vu.fn=Yp,vu.min=function(){return Qh("isBefore",[].sli
896
896
  display: flex;
897
897
  flex-direction: column;
898
898
  min-height: 100vh;
899
- `,pk="grid grid-cols-12 sm:mx-16 mx-[32px] mt-[9rem] gap-[1.75rem] flex-grow",fk="col-span-3 grid grid-cols-3 gap-[1.75rem]",mk="col-span-1 gap-[1.75rem]";const gk=t.memo((({menu:e,children:n,previousPath:r,includeFooter:o=!1,includeNavbar:i=!0,includeSidebar:a=!0,includeNavbarDropdown:s})=>{const[l,c]=t.useState(!0),[u,d]=t.useState("");!function(e,n){t.useEffect((()=>(null==window||window.addEventListener(e,(e=>{e instanceof CustomEvent&&n(null==e?void 0:e.detail)})),()=>{window.removeEventListener(e,(()=>{}))})),[n,e])}("single-spa:routing-event",(e=>{const t=new URL(e.newUrl);d(t.pathname)}));const h=s;return O.jsxs(hk,{children:[O.jsxs("div",{className:pk,children:[i&&O.jsx(A,{top:"0",left:"0",right:"0",height:"0",zIndex:"10",position:"fixed",children:O.jsx(ek,{selected:u,isDropdown:h,previousPath:r})}),a&&O.jsx(dk,{className:l?fk:mk,children:O.jsx(q_,{open:l,selected:u,panel:null==e?void 0:e.panel,options:null==e?void 0:e.options,onToggle:()=>{c((e=>!e))}})}),O.jsx(uk,{open:l,children:n})]}),o&&O.jsx(P_,{})]})}));function vk(e){return"string"==typeof e?e.replace(/^0+|[^0-9kK]+/g,"").toUpperCase():""}var yk={validate:function(e){if("string"!=typeof e)return!1;if(/^0+/.test(e))return!1;if(!/^0*(\d{1,3}(\.?\d{3})*)-?([\dkK])$/.test(e))return!1;e=vk(e);let t=parseInt(e.slice(0,-1),10),n=0,r=1;for(;t>0;)r=(r+t%10*(9-n++%6))%11,t=Math.floor(t/10);return(r>0?""+(r-1):"K")===e.slice(-1)},clean:vk,format:function(e,t={dots:!0}){let n;if(e=vk(e),t.dots){n=e.slice(-4,-1)+"-"+e.substr(e.length-1);for(let t=4;t<e.length;t+=3)n=e.slice(-3-t,-t)+"."+n}else n=e.slice(0,-1)+"-"+e.substr(e.length-1);return n},getCheckDigit:function(e){const t=Array.from(vk(e),Number);if(0===t.length||t.includes(NaN))throw new Error(`"${e}" as RUT is invalid`);const n=11-t.reverse().reduce(((e,t,n)=>e+t*(n%6+2)),0)%11;return 10===n?"K":11===n?"0":n.toString()}};class bk{constructor(e){g(this,"variants",{sm:"text-sm",md:"text-md",lg:"text-lg",xl:"text-xl"}),g(this,"tailwind",""),g(this,"headings",[]),this.headings=this.buildStyle(e.headers??[])}buildStyle(e){return e.map((e=>{if("object"==typeof e)switch(e.size){case"sm":return this.variants.sm;case"md":default:return this.variants.md;case"lg":return this.variants.lg;case"xl":return this.variants.xl}return e}))}}const wk={container:"table-fixed"},xk="rounded-full self-center",_k={delete:"text-sm font-bold hover:cursor-pointer flex items-center justify-center gap-1 text-info hover:text-secondary",sortable:"transition ease-in-out duration-300",container:"border rounded-full p-2 bg-white text-base font-bold",innerText:"text-ellipsis whitespace-nowrap overflow-hidden sm:text-clip sm:overflow-visible"},kk={container:"bg-white h-[52px]",borders:"text-base font-bold"},Ck={grids:"flex items-center",details:"flex items-center"},Sk="inline-flex align-middle mr-4 cursor-pointer",Ek=e=>`flex items-center flex gap-2.5 justify-${e??"center"}`,Dk=n.table`
899
+ `,pk="grid grid-cols-12 sm:mx-16 mx-[32px] mt-[9rem] gap-[1.75rem] flex-grow",fk="col-span-3 grid grid-cols-3 gap-[1.75rem]",mk="col-span-1 gap-[1.75rem]";function gk(e,n){t.useEffect((()=>(null==window||window.addEventListener(e,(e=>{e instanceof CustomEvent&&n(null==e?void 0:e.detail)})),()=>{window.removeEventListener(e,(()=>{}))})),[n,e])}const vk=t.memo((({menu:e,children:n,previousPath:r,includeFooter:o=!1,includeNavbar:i=!0,includeSidebar:a=!0,includeNavbarDropdown:s})=>{const[l,c]=t.useState(!0),[u,d]=t.useState("");gk("single-spa:routing-event",(e=>{const t=new URL(e.newUrl);d(t.pathname)}));const h=s;return O.jsxs(hk,{children:[O.jsxs("div",{className:pk,children:[i&&O.jsx(A,{top:"0",left:"0",right:"0",height:"0",zIndex:"10",position:"fixed",children:O.jsx(ek,{selected:u,isDropdown:h,previousPath:r})}),a&&O.jsx(dk,{className:l?fk:mk,children:O.jsx(q_,{open:l,selected:u,panel:null==e?void 0:e.panel,options:null==e?void 0:e.options,onToggle:()=>{c((e=>!e))}})}),O.jsx(uk,{open:l,children:n})]}),o&&O.jsx(P_,{})]})}));function yk(e){return"string"==typeof e?e.replace(/^0+|[^0-9kK]+/g,"").toUpperCase():""}var bk={validate:function(e){if("string"!=typeof e)return!1;if(/^0+/.test(e))return!1;if(!/^0*(\d{1,3}(\.?\d{3})*)-?([\dkK])$/.test(e))return!1;e=yk(e);let t=parseInt(e.slice(0,-1),10),n=0,r=1;for(;t>0;)r=(r+t%10*(9-n++%6))%11,t=Math.floor(t/10);return(r>0?""+(r-1):"K")===e.slice(-1)},clean:yk,format:function(e,t={dots:!0}){let n;if(e=yk(e),t.dots){n=e.slice(-4,-1)+"-"+e.substr(e.length-1);for(let t=4;t<e.length;t+=3)n=e.slice(-3-t,-t)+"."+n}else n=e.slice(0,-1)+"-"+e.substr(e.length-1);return n},getCheckDigit:function(e){const t=Array.from(yk(e),Number);if(0===t.length||t.includes(NaN))throw new Error(`"${e}" as RUT is invalid`);const n=11-t.reverse().reduce(((e,t,n)=>e+t*(n%6+2)),0)%11;return 10===n?"K":11===n?"0":n.toString()}};class wk{constructor(e){g(this,"variants",{sm:"text-sm",md:"text-md",lg:"text-lg",xl:"text-xl"}),g(this,"tailwind",""),g(this,"headings",[]),this.headings=this.buildStyle(e.headers??[])}buildStyle(e){return e.map((e=>{if("object"==typeof e)switch(e.size){case"sm":return this.variants.sm;case"md":default:return this.variants.md;case"lg":return this.variants.lg;case"xl":return this.variants.xl}return e}))}}const xk={container:"table-fixed"},_k="rounded-full self-center",kk={delete:"text-sm font-bold hover:cursor-pointer flex items-center justify-center gap-1 text-info hover:text-secondary",sortable:"transition ease-in-out duration-300",container:"border rounded-full p-2 bg-white text-base font-bold",innerText:"text-ellipsis whitespace-nowrap overflow-hidden sm:text-clip sm:overflow-visible"},Ck={container:"bg-white h-[52px]",borders:"text-base font-bold"},Sk={grids:"flex items-center",details:"flex items-center"},Ek="inline-flex align-middle mr-4 cursor-pointer",Dk=e=>`flex items-center flex gap-2.5 justify-${e??"center"}`,Ok=n.table`
900
900
  table-layout: fixed;
901
901
  border-collapse: separate;
902
902
  border-spacing: 0 16px;
903
903
  margin-top: -16px;
904
904
  margin-bottom: -16px;
905
- `,Ok=n.thead`
905
+ `,Mk=n.thead`
906
906
  background-color: transparent;
907
907
 
908
908
  ${({fixedHeader:e,index:t})=>e&&n.css`
@@ -914,7 +914,7 @@ vu.version="2.30.1",mu=Kh,vu.fn=Yp,vu.min=function(){return Qh("isBefore",[].sli
914
914
  ${null!=t&&`z-index: ${t};`}
915
915
  }
916
916
  `}
917
- `,Mk=n.th`
917
+ `,Tk=n.th`
918
918
  color: ${({color:e})=>e};
919
919
  text-align: ${({align:e})=>e};
920
920
  padding: 6px 16px;
@@ -946,11 +946,11 @@ vu.version="2.30.1",mu=Kh,vu.fn=Yp,vu.min=function(){return Qh("isBefore",[].sli
946
946
  background-color: #e0dfdf;
947
947
  transform: translateY(-50%);
948
948
  }
949
- `,Tk=n.tr`
949
+ `,Nk=n.tr`
950
950
  background-color: ${({disabled:e})=>e?"#f5f5f5":"transparent"};
951
951
  pointer-events: ${({disabled:e})=>e?"none":"auto"};
952
952
  opacity: ${({disabled:e})=>e?.6:1};
953
- `,Nk=n.td`
953
+ `,Pk=n.td`
954
954
  ${({color:e})=>e&&n.css`
955
955
  color: ${e};
956
956
  `}
@@ -1001,13 +1001,13 @@ vu.version="2.30.1",mu=Kh,vu.fn=Yp,vu.min=function(){return Qh("isBefore",[].sli
1001
1001
  ${({overflowWrap:e})=>e&&n.css`
1002
1002
  overflow-wrap: break-word;
1003
1003
  `}
1004
- `,Pk=n.col((e=>({width:`${e.width}${e.unit};`}))),Ak=n.div`
1004
+ `,Ak=n.col((e=>({width:`${e.width}${e.unit};`}))),jk=n.div`
1005
1005
  display: block;
1006
1006
  width: 1.25rem;
1007
1007
  height: 1.25rem;
1008
1008
  color: ${({color:e})=>e};
1009
1009
  background-color: ${({color:e})=>e};
1010
- `,jk=n.div`
1010
+ `,Rk=n.div`
1011
1011
  display: flex;
1012
1012
  justify-content: space-between;
1013
1013
  align-items: center;
@@ -1019,9 +1019,9 @@ vu.version="2.30.1",mu=Kh,vu.fn=Yp,vu.min=function(){return Qh("isBefore",[].sli
1019
1019
  ${({sortable:e})=>e&&n.css`
1020
1020
  cursor: pointer;
1021
1021
  `}
1022
- `;function Rk({title:e,titleId:t,...n},r){return y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?y.createElement("title",{id:t},e):null,y.createElement("path",{fillRule:"evenodd",d:"M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 0 1 1.06-1.06L12 14.69l6.97-6.97a.75.75 0 1 1 1.06 1.06l-7.5 7.5Z",clipRule:"evenodd"}))}const Lk=y.forwardRef(Rk),Ik=()=>O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4 relative top-[1px] hover:cursor-pointer hover:text-darkened",attributeName:"transform",children:O.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})}),Fk=t.memo((e=>{const{index:n,onSort:r,headers:o,checked:i,children:a,className:s,fixedHeader:l,cellSpacing:u,cellPadding:d,hasCheckbox:h,onChangeCheckbox:p,headerClassName:f}=e,m=new bk(e),[g,v]=t.useState(null),y=t.useMemo((()=>{var t;return null==(t=null==e?void 0:e.widths)?void 0:t.map((e=>({id:c.v4(),width:e})))}),[e.widths]),b=t.useCallback(((e,t)=>{v(e),null==r||r(e,t)}),[r]),w=t.useCallback((e=>{null==p||p(e)}),[p]),x=(t,n)=>{const r="string"==typeof t?t:t.title,i="string"==typeof t?null:t,a="ASC"===(null==i?void 0:i.sort),s=r===g,l="ASC"===(null==i?void 0:i.sort)||"DESC"===(null==i?void 0:i.sort);return(null==i?void 0:i.tooltip)?O.jsx(Nf,{text:null==i?void 0:i.tooltip,maxWidth:1e3,tableHead:!0,className:T(0===n&&h&&"w-full"),children:O.jsxs(jk,{onClick:()=>i&&b(null==i?void 0:i.title,n),sortable:null==i?void 0:i.sortabled,children:[" ",O.jsxs("div",{className:T((null==i?void 0:i.sortabled)&&n===o.length,f),children:[r,(null==i?void 0:i.sortabled)&&n===o.length&&O.jsx("span",{className:T(_k.sortable,s&&a&&"rotate-180",l?"text-darkened":"text-info"),onClick:()=>b(i.title,n),children:O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4 relative top-[1px] hover:cursor-pointer hover:text-darkened",attributeName:"transform",children:O.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})})})]})," ",i&&(null==i?void 0:i.sortabled)&&(n===o.length||O.jsx("span",{className:T(_k.sortable,l?"text-darkened":"text-info",a&&"rotate-180"),onClick:()=>b(i.title,n),children:O.jsx(Ik,{})})),n===o.length&&O.jsx("span",{className:T((null==e?void 0:e.filter)&&e.filter,_k.delete)})]})}):O.jsxs(jk,{onClick:()=>i&&b(null==i?void 0:i.title,n),className:T(0===n&&h&&"w-full"),sortable:null==i?void 0:i.sortabled,children:[O.jsxs("div",{className:T((null==i?void 0:i.sortabled)&&n===o.length-1&&"flex justify-start gap-5"),children:[r,(null==i?void 0:i.sortabled)&&n===o.length-1&&O.jsx("span",{className:T(_k.sortable,a&&"rotate-180",l?"text-darkened":"text-info"),children:O.jsx(Ik,{})})]})," ",O.jsxs("div",{className:"flex justify-between",children:[i&&(null==i?void 0:i.sortabled)&&(n===o.length-1||O.jsx("span",{className:T(_k.sortable,l?"text-darkened":"text-info",a&&"rotate-180"),onClick:()=>b(i.title,n),children:O.jsx(Ik,{})})),n===o.length-1&&O.jsx("span",{className:T((null==e?void 0:e.filter)&&e.filter,_k.delete)})]})]})};return O.jsxs(Dk,{cellPadding:d,cellSpacing:u,className:T(s&&s,wk.container,(null==e?void 0:e.auto)&&"table-auto"),children:[(null==e?void 0:e.widths)&&O.jsx("colgroup",{children:null==y?void 0:y.map((({width:e,id:t})=>O.jsx(Pk,{width:e},t)))}),O.jsx(Ok,{fixedHeader:l,index:n,children:O.jsx("tr",{children:o.map(((e,t)=>{const n="string"==typeof e?e:e.title,r="string"==typeof e?null:e,o=T(m.headings[t],0===t&&!l&&!h,0===t&&!l&&h&&"relative flex items-center"),a="ASC"===(null==r?void 0:r.sort)||"DESC"===(null==r?void 0:r.sort);return O.jsxs(Mk,{index:t,className:o,align:null==r?void 0:r.align,color:a?Li.darkened:null==r?void 0:r.color,children:[0===t&&h&&O.jsx(rc,{checked:i,className:Sk,onChange:w}),x(e,t)]},n)}))})}),O.jsx("tbody",{children:a})]})}));Fk.defaultProps={headers:[],unit:"%",fixedHeader:!1};const Hk=t.memo((e=>{const n=T(kk.borders,kk.container,e.last&&"rounded-r-full",e.first&&"rounded-l-full","text-darkened font-bold text-base",e.overflow&&_k.innerText),r={align:e.align,overflow:e.overflow,innerText:e.innerText,className:n,index:e.first?0:1,overflowWrap:e.overflowWrap},o=t.useMemo((()=>e.first&&e.hasCheckbox&&O.jsx(rc,{checked:e.checked,onChange:t=>{var n;null==(n=e.onChangeCheckbox)||n.call(e,t,e.dataId)},className:Sk})),[e.checked]),i=t.useMemo((()=>{var t;const n=null==(t=e.dataId)?void 0:t.toString();return e.first&&e.hasRadioButton&&O.jsx(rx,{checked:e.checked,onClick:()=>{var t;null==(t=e.onChangeRadioButton)||t.call(e,n)},className:Sk,value:n})}),[e.checked]);if((null==e?void 0:e.formatAsRut)&&(null==e?void 0:e.innerText))return O.jsxs(Nk,{...r,children:[o||i,yk.format(e.innerText,{dots:!0})]});if((null==e?void 0:e.formatAsCLP)&&(null==e?void 0:e.innerText)){const t=Number(e.innerText),n=new Intl.NumberFormat("es-CL",{style:"currency",currency:"CLP"});return O.jsxs(Nk,{...r,children:[o||i,n.format(t)]})}return(null==e?void 0:e.formatAsStatus)?O.jsxs(Nk,{...r,children:[o||i,e.icons&&O.jsx("div",{className:Ek(null==e?void 0:e.iconJustify),children:e.icons.map((e=>e))}),O.jsx(Bk,{color:null==e?void 0:e.color,text:e.detailText,variant:e.detailVariant,onClick:null==e?void 0:e.onClickDetail,disabled:e.detailDisabled,value:null==e?void 0:e.innerText,children:e.children})]}):(null==e?void 0:e.isFixed)?O.jsx(Nk,{isFixed:e.isFixed,right:e.right,children:e.children}):(null==e?void 0:e.innerText)?O.jsxs(Nk,{...r,children:[e.icons&&O.jsx("div",{className:"flex",children:e.icons.map((e=>e))}),o||i,e.innerText]}):O.jsxs(Nk,{...r,children:[e.icons&&O.jsx("div",{className:Ek(null==e?void 0:e.iconJustify),children:e.icons.map((e=>e))}),e.children]})}));Hk.defaultProps={icons:[],align:"left"};const Bk=({text:e,disabled:t,variant:n,children:r,value:o,color:i,onClick:a})=>{const s=()=>a&&a();return O.jsxs("div",{className:a?Ck.details:Ck.grids,children:[O.jsxs("div",{className:"w-1/5 flex justify-start",children:[o&&o," ",r&&r]}),O.jsx("div",{className:"w-3/5 flex justify-center",children:O.jsx(Ak,{color:i,className:xk})}),O.jsx("div",{className:"w-auto flex justify-end",children:a&&"Borrador"===o?O.jsx(__,{size:"base",disabled:t,variant:n??"secondary",orientationIcon:"right",Icon:O.jsx(Lk,{className:"h-5 w-5"}),onClick:s,fontSize:"sm",children:O.jsx("span",{about:"details",children:"Gestionar"})}):a?O.jsx(__,{size:"base",disabled:t,variant:n??"secondary",onClick:s,fontSize:"sm",children:O.jsx("span",{about:"details",children:e})}):null})]})};Bk.defaultProps={variant:"secondary",text:"Ver Detalle"};const Yk={root:"w-full relative whitespace-nowrap ml-2",item:"block px-4 py-2 text-sm hover:cursor-pointer text-darkened font-medium",items:"absolute text-darkened w-auto divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-opaque ring-opacity-5 focus:outline-none rounded-full border-solid border-[1px] border-opaque z-50 ",title:"inline-flex items-center w-full justify-center gap-x-1.5 px-4 py-2 text-lg font-medium text-darkened whitespace-nowrap",container:"border-solid border-[1px] border-opaque flex items-center bg-white"},zk={xcircle:"w-6 h-6 text-gray-400 mr-4 cursor-pointer text-info hover:text-primary"},Wk="",$k=n.css`
1022
+ `;function Lk({title:e,titleId:t,...n},r){return y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?y.createElement("title",{id:t},e):null,y.createElement("path",{fillRule:"evenodd",d:"M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 0 1 1.06-1.06L12 14.69l6.97-6.97a.75.75 0 1 1 1.06 1.06l-7.5 7.5Z",clipRule:"evenodd"}))}const Ik=y.forwardRef(Lk),Fk=()=>O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4 relative top-[1px] hover:cursor-pointer hover:text-darkened",attributeName:"transform",children:O.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})}),Hk=t.memo((e=>{const{index:n,onSort:r,headers:o,checked:i,children:a,className:s,fixedHeader:l,cellSpacing:u,cellPadding:d,hasCheckbox:h,onChangeCheckbox:p,headerClassName:f}=e,m=new wk(e),[g,v]=t.useState(null),y=t.useMemo((()=>{var t;return null==(t=null==e?void 0:e.widths)?void 0:t.map((e=>({id:c.v4(),width:e})))}),[e.widths]),b=t.useCallback(((e,t)=>{v(e),null==r||r(e,t)}),[r]),w=t.useCallback((e=>{null==p||p(e)}),[p]),x=(t,n)=>{const r="string"==typeof t?t:t.title,i="string"==typeof t?null:t,a="ASC"===(null==i?void 0:i.sort),s=r===g,l="ASC"===(null==i?void 0:i.sort)||"DESC"===(null==i?void 0:i.sort);return(null==i?void 0:i.tooltip)?O.jsx(Nf,{text:null==i?void 0:i.tooltip,maxWidth:1e3,tableHead:!0,className:T(0===n&&h&&"w-full"),children:O.jsxs(Rk,{onClick:()=>i&&b(null==i?void 0:i.title,n),sortable:null==i?void 0:i.sortabled,children:[" ",O.jsxs("div",{className:T((null==i?void 0:i.sortabled)&&n===o.length,f),children:[r,(null==i?void 0:i.sortabled)&&n===o.length&&O.jsx("span",{className:T(kk.sortable,s&&a&&"rotate-180",l?"text-darkened":"text-info"),onClick:()=>b(i.title,n),children:O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4 relative top-[1px] hover:cursor-pointer hover:text-darkened",attributeName:"transform",children:O.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})})})]})," ",i&&(null==i?void 0:i.sortabled)&&(n===o.length||O.jsx("span",{className:T(kk.sortable,l?"text-darkened":"text-info",a&&"rotate-180"),onClick:()=>b(i.title,n),children:O.jsx(Fk,{})})),n===o.length&&O.jsx("span",{className:T((null==e?void 0:e.filter)&&e.filter,kk.delete)})]})}):O.jsxs(Rk,{onClick:()=>i&&b(null==i?void 0:i.title,n),className:T(0===n&&h&&"w-full"),sortable:null==i?void 0:i.sortabled,children:[O.jsxs("div",{className:T((null==i?void 0:i.sortabled)&&n===o.length-1&&"flex justify-start gap-5"),children:[r,(null==i?void 0:i.sortabled)&&n===o.length-1&&O.jsx("span",{className:T(kk.sortable,a&&"rotate-180",l?"text-darkened":"text-info"),children:O.jsx(Fk,{})})]})," ",O.jsxs("div",{className:"flex justify-between",children:[i&&(null==i?void 0:i.sortabled)&&(n===o.length-1||O.jsx("span",{className:T(kk.sortable,l?"text-darkened":"text-info",a&&"rotate-180"),onClick:()=>b(i.title,n),children:O.jsx(Fk,{})})),n===o.length-1&&O.jsx("span",{className:T((null==e?void 0:e.filter)&&e.filter,kk.delete)})]})]})};return O.jsxs(Ok,{cellPadding:d,cellSpacing:u,className:T(s&&s,xk.container,(null==e?void 0:e.auto)&&"table-auto"),children:[(null==e?void 0:e.widths)&&O.jsx("colgroup",{children:null==y?void 0:y.map((({width:e,id:t})=>O.jsx(Ak,{width:e},t)))}),O.jsx(Mk,{fixedHeader:l,index:n,children:O.jsx("tr",{children:o.map(((e,t)=>{const n="string"==typeof e?e:e.title,r="string"==typeof e?null:e,o=T(m.headings[t],0===t&&!l&&!h,0===t&&!l&&h&&"relative flex items-center"),a="ASC"===(null==r?void 0:r.sort)||"DESC"===(null==r?void 0:r.sort);return O.jsxs(Tk,{index:t,className:o,align:null==r?void 0:r.align,color:a?Li.darkened:null==r?void 0:r.color,children:[0===t&&h&&O.jsx(rc,{checked:i,className:Ek,onChange:w}),x(e,t)]},n)}))})}),O.jsx("tbody",{children:a})]})}));Hk.defaultProps={headers:[],unit:"%",fixedHeader:!1};const Bk=t.memo((e=>{const n=T(Ck.borders,Ck.container,e.last&&"rounded-r-full",e.first&&"rounded-l-full","text-darkened font-bold text-base",e.overflow&&kk.innerText),r={align:e.align,overflow:e.overflow,innerText:e.innerText,className:n,index:e.first?0:1,overflowWrap:e.overflowWrap},o=t.useMemo((()=>e.first&&e.hasCheckbox&&O.jsx(rc,{checked:e.checked,onChange:t=>{var n;null==(n=e.onChangeCheckbox)||n.call(e,t,e.dataId)},className:Ek})),[e.checked]),i=t.useMemo((()=>{var t;const n=null==(t=e.dataId)?void 0:t.toString();return e.first&&e.hasRadioButton&&O.jsx(rx,{checked:e.checked,onClick:()=>{var t;null==(t=e.onChangeRadioButton)||t.call(e,n)},className:Ek,value:n})}),[e.checked]);if((null==e?void 0:e.formatAsRut)&&(null==e?void 0:e.innerText))return O.jsxs(Pk,{...r,children:[o||i,bk.format(e.innerText,{dots:!0})]});if((null==e?void 0:e.formatAsCLP)&&(null==e?void 0:e.innerText)){const t=Number(e.innerText),n=new Intl.NumberFormat("es-CL",{style:"currency",currency:"CLP"});return O.jsxs(Pk,{...r,children:[o||i,n.format(t)]})}return(null==e?void 0:e.formatAsStatus)?O.jsxs(Pk,{...r,children:[o||i,e.icons&&O.jsx("div",{className:Dk(null==e?void 0:e.iconJustify),children:e.icons.map((e=>e))}),O.jsx(Yk,{color:null==e?void 0:e.color,text:e.detailText,variant:e.detailVariant,onClick:null==e?void 0:e.onClickDetail,disabled:e.detailDisabled,value:null==e?void 0:e.innerText,children:e.children})]}):(null==e?void 0:e.isFixed)?O.jsx(Pk,{isFixed:e.isFixed,right:e.right,children:e.children}):(null==e?void 0:e.innerText)?O.jsxs(Pk,{...r,children:[e.icons&&O.jsx("div",{className:"flex",children:e.icons.map((e=>e))}),o||i,e.innerText]}):O.jsxs(Pk,{...r,children:[e.icons&&O.jsx("div",{className:Dk(null==e?void 0:e.iconJustify),children:e.icons.map((e=>e))}),e.children]})}));Bk.defaultProps={icons:[],align:"left"};const Yk=({text:e,disabled:t,variant:n,children:r,value:o,color:i,onClick:a})=>{const s=()=>a&&a();return O.jsxs("div",{className:a?Sk.details:Sk.grids,children:[O.jsxs("div",{className:"w-1/5 flex justify-start",children:[o&&o," ",r&&r]}),O.jsx("div",{className:"w-3/5 flex justify-center",children:O.jsx(jk,{color:i,className:_k})}),O.jsx("div",{className:"w-auto flex justify-end",children:a&&"Borrador"===o?O.jsx(__,{size:"base",disabled:t,variant:n??"secondary",orientationIcon:"right",Icon:O.jsx(Ik,{className:"h-5 w-5"}),onClick:s,fontSize:"sm",children:O.jsx("span",{about:"details",children:"Gestionar"})}):a?O.jsx(__,{size:"base",disabled:t,variant:n??"secondary",onClick:s,fontSize:"sm",children:O.jsx("span",{about:"details",children:e})}):null})]})};Yk.defaultProps={variant:"secondary",text:"Ver Detalle"};const zk={root:"w-full relative whitespace-nowrap ml-2",item:"block px-4 py-2 text-sm hover:cursor-pointer text-darkened font-medium",items:"absolute text-darkened w-auto divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-opaque ring-opacity-5 focus:outline-none rounded-full border-solid border-[1px] border-opaque z-50 ",title:"inline-flex items-center w-full justify-center gap-x-1.5 px-4 py-2 text-lg font-medium text-darkened whitespace-nowrap",container:"border-solid border-[1px] border-opaque flex items-center bg-white"},Wk={xcircle:"w-6 h-6 text-gray-400 mr-4 cursor-pointer text-info hover:text-primary"},$k="",Vk=n.css`
1023
1023
  margin-left: 1.25rem;
1024
- `,Vk=n(i)`
1024
+ `,Uk=n(i)`
1025
1025
  .react-select__control {
1026
1026
  border: 1px solid #dfdfdf;
1027
1027
  color: #464646;
@@ -1049,11 +1049,11 @@ vu.version="2.30.1",mu=Kh,vu.fn=Yp,vu.min=function(){return Qh("isBefore",[].sli
1049
1049
 
1050
1050
  & .react-select__input-container {
1051
1051
  height: 3.25rem;
1052
- ${e=>!e.dropdown&&$k}
1052
+ ${e=>!e.dropdown&&Vk}
1053
1053
  }
1054
1054
 
1055
1055
  & .react-select__placeholder {
1056
- ${e=>!e.dropdown&&$k}
1056
+ ${e=>!e.dropdown&&Vk}
1057
1057
  }
1058
1058
 
1059
1059
  & .react-select__control--input-container {
@@ -1092,7 +1092,7 @@ vu.version="2.30.1",mu=Kh,vu.fn=Yp,vu.min=function(){return Qh("isBefore",[].sli
1092
1092
  .react-select__se .react-select__control-label {
1093
1093
  display: none;
1094
1094
  }
1095
- `;Vk.defaultProps={classNamePrefix:"react-select"};const Uk=n.div`
1095
+ `;Uk.defaultProps={classNamePrefix:"react-select"};const qk=n.div`
1096
1096
  background: ${e=>e.color??Li.secondary};
1097
1097
  border: 1px solid #dfdfdf;
1098
1098
  border-radius: 0rem 2.25rem 2.25rem 0rem;
@@ -1109,15 +1109,15 @@ vu.version="2.30.1",mu=Kh,vu.fn=Yp,vu.min=function(){return Qh("isBefore",[].sli
1109
1109
  &:hover {
1110
1110
  cursor: pointer;
1111
1111
  }
1112
- `,qk=n(sc)`
1112
+ `,Kk=n(sc)`
1113
1113
  display: flex;
1114
1114
  justify-content: end;
1115
1115
  justify-content: center;
1116
1116
  align-items: center;
1117
1117
  padding: 0.5rem 0.5rem 0.5rem 0.75rem;
1118
- `,Kk=n.div`
1118
+ `,Gk=n.div`
1119
1119
  border-radius: 2.25rem 0 0 2.25rem;
1120
- `,Gk=t.memo((({value:e,values:n=[],length:r,search:o,options:a=["Nombre","ID Sence","SSC"],classNames:s,placeholder:l,onAdding:u,onDelete:d,onSearch:h,onChange:p,onPress:f,dropdown:m=!0,onClearInput:g,onInputChange:v,onReachingLimit:y,backgroundColor:b,placeholderText:w})=>{const x=t.useCallback(((e,{action:t,removedValue:n})=>{"remove-value"===t&&d&&d(n)}),[d]),_=t.useMemo((()=>({multiValue:e=>({...e,color:"#464646",alignItems:"center",padding:"0.5rem 0.5rem 0.5rem 0.75rem",backgroundColor:"#F3F3F3",fontSize:"1.125rem",borderRadius:25,fontWeight:500}),multiValueRemove:e=>({...e}),valueContainer:e=>({...e}),input:e=>({...e})})),[]);return O.jsxs("div",{className:(null==s?void 0:s.root)??"flex justify-start w-full",children:[m&&O.jsx("div",{className:(null==s?void 0:s.dropdown)??"w-1/6 grid",children:O.jsx(Kk,{className:Yk.container,children:O.jsx(qk,{options:a??[],uncontrollable:!1,orientation:"bottom",classNames:{root:Yk.root,item:Yk.item,title:Yk.title,items:Yk.items},selected:e,onChange:e=>{p&&p(e)}})})}),O.jsx("div",{className:(null==s?void 0:s.input)??(m?"w-2/3":"w-5/6"),children:O.jsx(Vk,{isMulti:!0,autoFocus:!0,value:n,options:n,menuIsOpen:!1,inputValue:o,dropdown:m,onKeyDown:e=>{if(r&&n&&(null==n?void 0:n.length)>=r)return y?y():void 0;if(13===e.keyCode&&u){if(o){if(/^([ ]*|\n*)$/.test(o))return;u({value:c.v4(),label:o.trim()})}}else 13===e.keyCode&&h&&h()},onInputChange:(e,{action:t})=>{if("input-change"===t){if(r&&n&&(null==n?void 0:n.length)>=r)return;if("number"===(null==l?void 0:l.type)){return/^\d*$/.test(e)&&v?v(e):void 0}v&&v(e)}},blurInputOnSelect:!1,components:{DropdownIndicator:t.useCallback((()=>O.jsx(t.Fragment,{})),[]),MultiValueRemove:t.useCallback((e=>O.jsx("div",{...e.innerProps,children:O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-5 h-5 text-info hover:cursor-pointer",children:O.jsx("path",{className:"flex items-center justify-center",strokeLinecap:"round",strokeLinejoin:"round",d:"M9.75 9.75l4.5 4.5m0-4.5l-4.5 4.5M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})})),[]),IndicatorsContainer:e=>O.jsxs(O.Fragment,{children:[g&&O.jsx(nu,{className:zk.xcircle,onClick:g}),O.jsx(i.components.IndicatorsContainer,{...e})]})},onChange:(e,t)=>x(e,t),styles:_,isClearable:!1,placeholder:w??(null==l?void 0:l.label)})}),O.jsx("div",{className:(null==s?void 0:s.search)??"w-16 grid",children:O.jsxs(Uk,{color:b,onClick:e=>{if(e.preventDefault(),o||o===Wk){if(o.length>0&&0===(null==n?void 0:n.length)){if(/^([ ]*|\n*)$/.test(o))return;if(f)return void f()}h&&h()}},children:[O.jsx("svg",{"aria-hidden":"true",className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:O.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),O.jsx("span",{className:"sr-only",children:"Search"})]})})]})})),Zk=n.keyframes`
1120
+ `,Zk=t.memo((({value:e,values:n=[],length:r,search:o,options:a=["Nombre","ID Sence","SSC"],classNames:s,placeholder:l,onAdding:u,onDelete:d,onSearch:h,onChange:p,onPress:f,dropdown:m=!0,onClearInput:g,onInputChange:v,onReachingLimit:y,backgroundColor:b,placeholderText:w})=>{const x=t.useCallback(((e,{action:t,removedValue:n})=>{"remove-value"===t&&d&&d(n)}),[d]),_=t.useMemo((()=>({multiValue:e=>({...e,color:"#464646",alignItems:"center",padding:"0.5rem 0.5rem 0.5rem 0.75rem",backgroundColor:"#F3F3F3",fontSize:"1.125rem",borderRadius:25,fontWeight:500}),multiValueRemove:e=>({...e}),valueContainer:e=>({...e}),input:e=>({...e})})),[]);return O.jsxs("div",{className:(null==s?void 0:s.root)??"flex justify-start w-full",children:[m&&O.jsx("div",{className:(null==s?void 0:s.dropdown)??"w-1/6 grid",children:O.jsx(Gk,{className:zk.container,children:O.jsx(Kk,{options:a??[],uncontrollable:!1,orientation:"bottom",classNames:{root:zk.root,item:zk.item,title:zk.title,items:zk.items},selected:e,onChange:e=>{p&&p(e)}})})}),O.jsx("div",{className:(null==s?void 0:s.input)??(m?"w-2/3":"w-5/6"),children:O.jsx(Uk,{isMulti:!0,autoFocus:!0,value:n,options:n,menuIsOpen:!1,inputValue:o,dropdown:m,onKeyDown:e=>{if(r&&n&&(null==n?void 0:n.length)>=r)return y?y():void 0;if(13===e.keyCode&&u){if(o){if(/^([ ]*|\n*)$/.test(o))return;u({value:c.v4(),label:o.trim()})}}else 13===e.keyCode&&h&&h()},onInputChange:(e,{action:t})=>{if("input-change"===t){if(r&&n&&(null==n?void 0:n.length)>=r)return;if("number"===(null==l?void 0:l.type)){return/^\d*$/.test(e)&&v?v(e):void 0}v&&v(e)}},blurInputOnSelect:!1,components:{DropdownIndicator:t.useCallback((()=>O.jsx(t.Fragment,{})),[]),MultiValueRemove:t.useCallback((e=>O.jsx("div",{...e.innerProps,children:O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-5 h-5 text-info hover:cursor-pointer",children:O.jsx("path",{className:"flex items-center justify-center",strokeLinecap:"round",strokeLinejoin:"round",d:"M9.75 9.75l4.5 4.5m0-4.5l-4.5 4.5M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})})),[]),IndicatorsContainer:e=>O.jsxs(O.Fragment,{children:[g&&O.jsx(nu,{className:Wk.xcircle,onClick:g}),O.jsx(i.components.IndicatorsContainer,{...e})]})},onChange:(e,t)=>x(e,t),styles:_,isClearable:!1,placeholder:w??(null==l?void 0:l.label)})}),O.jsx("div",{className:(null==s?void 0:s.search)??"w-16 grid",children:O.jsxs(qk,{color:b,onClick:e=>{if(e.preventDefault(),o||o===$k){if(o.length>0&&0===(null==n?void 0:n.length)){if(/^([ ]*|\n*)$/.test(o))return;if(f)return void f()}h&&h()}},children:[O.jsx("svg",{"aria-hidden":"true",className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:O.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),O.jsx("span",{className:"sr-only",children:"Search"})]})})]})})),Qk=n.keyframes`
1121
1121
 
1122
1122
  0% {
1123
1123
  background-position: -400px 0;
@@ -1126,7 +1126,7 @@ vu.version="2.30.1",mu=Kh,vu.fn=Yp,vu.min=function(){return Qh("isBefore",[].sli
1126
1126
 
1127
1127
  background-position: 400px 0;
1128
1128
  }
1129
- `,Qk=n.div`
1129
+ `,Xk=n.div`
1130
1130
  cursor: pointer;
1131
1131
  color: rgb(49, 103, 114);
1132
1132
  position: relative;
@@ -1135,7 +1135,7 @@ vu.version="2.30.1",mu=Kh,vu.fn=Yp,vu.min=function(){return Qh("isBefore",[].sli
1135
1135
  border-radius: 12px;
1136
1136
  overflow: hidden;
1137
1137
  width: ${e=>(null==e?void 0:e.width)?`${e.width}%`:"auto"};
1138
- animation: 3s linear 0s infinite normal none running ${Zk};
1138
+ animation: 3s linear 0s infinite normal none running ${Qk};
1139
1139
  background: linear-gradient(
1140
1140
  to right,
1141
1141
  rgb(238, 238, 238) 8%,
@@ -1143,16 +1143,16 @@ vu.version="2.30.1",mu=Kh,vu.fn=Yp,vu.min=function(){return Qh("isBefore",[].sli
1143
1143
  rgb(238, 238, 238) 33%
1144
1144
  )
1145
1145
  0% 0% / 400px 104px;
1146
- `,Xk=n.div`
1146
+ `,Jk=n.div`
1147
1147
  margin-top: 1.5rem;
1148
1148
  margin-bottom: 0.75rem;
1149
1149
  position: relative;
1150
- `,Jk=n.div`
1150
+ `,eC=n.div`
1151
1151
  display: flex;
1152
1152
  align-items: center;
1153
1153
  border: ${e=>`solid 1px ${e.theming}`};
1154
1154
  border-radius: 9999px;
1155
- `,eC=n.input`
1155
+ `,tC=n.input`
1156
1156
  border-radius: 25px;
1157
1157
  width: 100%;
1158
1158
  height: 3.25rem;
@@ -1163,7 +1163,7 @@ vu.version="2.30.1",mu=Kh,vu.fn=Yp,vu.min=function(){return Qh("isBefore",[].sli
1163
1163
  color: ${e=>e.placeholderColor};
1164
1164
  opacity: 1; /* Firefox */
1165
1165
  }
1166
- `,tC=n.div`
1166
+ `,nC=n.div`
1167
1167
  position: absolute;
1168
1168
  left: 0;
1169
1169
  margin-top: 0.5rem;
@@ -1180,7 +1180,7 @@ vu.version="2.30.1",mu=Kh,vu.fn=Yp,vu.min=function(){return Qh("isBefore",[].sli
1180
1180
  overflow-y: auto;
1181
1181
  overflow-x: hidden;
1182
1182
  max-height: 25rem;
1183
- `,nC=n.div`
1183
+ `,rC=n.div`
1184
1184
  padding: 0.75rem;
1185
1185
  margin: 1rem;
1186
1186
  cursor: pointer;
@@ -1190,48 +1190,48 @@ vu.version="2.30.1",mu=Kh,vu.fn=Yp,vu.min=function(){return Qh("isBefore",[].sli
1190
1190
  &:hover {
1191
1191
  background-color: rgb(240, 240, 240);
1192
1192
  }
1193
- `,rC=n.div`
1193
+ `,oC=n.div`
1194
1194
  padding: 1rem;
1195
1195
  margin: 0.25rem;
1196
1196
  border-radius: 15px;
1197
1197
  color: ${e=>e.theming};
1198
- `,oC=n.div`
1198
+ `,iC=n.div`
1199
1199
  padding: 0.7rem;
1200
1200
  margin: 0.25rem;
1201
1201
  border-radius: 15px;
1202
1202
  color: ${e=>e.theming};
1203
- `,iC=t.memo(t.forwardRef((function({show:e,search:n,pending:r,shallow:o,results:i,loading:a,onFocus:s,onScroll:l,searching:c,onFocusOut:u,placeholder:d,onInputChange:h,onResultSelect:p,barColor:f,renderItem:m,property:g,searchColor:v,loaderColor:y,spacingColor:b,placeholderColor:w,dropdownItemColor:x},_){const k=i??[],C=r??[],S=f??Li.secondary,E=v??Li.secondary,D=y??Li.secondary,M=b??Li.secondary,T=t.useCallback((e=>{var t;h&&h(null==(t=null==e?void 0:e.target)?void 0:t.value)}),[h]),N=t.useCallback((e=>p&&p(e)),[p]);return O.jsxs(Xk,{children:[O.jsx(Jk,{theming:S,children:O.jsx(eC,{type:"text",autoFocus:!0,value:n,theming:E,onFocus:()=>{s&&s()},onBlur:()=>{s&&u&&u()},onChange:T,placeholder:d??"Escribe el RUT o Nombre del Cliente",placeholderColor:w??Li.secondary})}),O.jsxs(O.Fragment,{children:[c&&O.jsx(tC,{children:O.jsx(oC,{theming:D,children:O.jsx(Yx,{status:!0})})}),e&&O.jsxs(tC,{ref:_,onScroll:e=>{l&&l(e)},children:[null==k?void 0:k.map(((e,t)=>O.jsx(nC,{theming:x??Li.primary,onClick:()=>N(e),children:null==m?void 0:m(e)},g?null==e?void 0:e[g]:t))),a&&(null==C?void 0:C.map((e=>O.jsx(Qk,{width:null==e?void 0:e.width},null==e?void 0:e.uuid))))]}),o&&!1===a&&!1===c&&O.jsx(tC,{children:O.jsx(rC,{theming:M,children:O.jsx("p",{children:"No se encontraron resultados para su búsqueda"})})})]})]})}))),aC="flex items-center justify-between",sC={root:"flex flex-1 justify-between sm:hidden",prev:"relative inline-flex items-center rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-50",next:"relative ml-3 inline-flex items-center rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-50"},lC={root:"sm:flex sm:flex-1 sm:items-center sm:justify-between",end:"flex items-center justify-end flex-2 sm:flex-none gap-3",show:"font-bold text-sm text-gray-700",info:"font-bold mx-3 sm:mx-3"},cC={root:"isolate inline-flex -space-x-px rounded-md shadow-sm",active:"relative z-10 inline-flex items-center bg-secondary px-3.5 py-2 text-sm font-bold text-white focus:z-20 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-6",page:"relative inline-flex items-center border-solid border-secondary px-3.5 py-2 bg-white text-sm font-bold text-gray-900 ring-1 ring-inset ring-secondary focus:z-20 focus:outline-offset-0 hover:cursor-pointer hover:bg-secondary hover:text-white",controlsRight:"relative inline-flex bg-white items-center rounded-r-full border-solid border-secondary px-2 py-2 text-black ring-1 ring-inset ring-secondary focus:z-20 focus:outline-offset-0 hover:cursor-pointer hover:bg-secondary hover:text-white",controlsLeft:"relative inline-flex bg-white items-center rounded-l-full border-solid border-secondary px-2 py-2 text-black ring-1 ring-inset ring-secondary focus:z-20 focus:outline-offset-0 hover:cursor-pointer hover:bg-secondary hover:text-white"},uC=["5","10","15","20","50"],dC=t.memo((({page:e,info:n,limit:r,hasNext:o,hasPrev:i,current:a,className:s,onClickPage:l,onClickLimit:c,total:d})=>{const h=t.useMemo((()=>{if(d&&r){const t=Math.ceil(d/+r),n=e||1;let o=n-2,i=n+2;o<=1&&(i+=Math.abs(o)+1,o=1),i>t&&(o-=i-t,i=t);return u.range(o,i+1).filter((e=>e>0))}return[]}),[e,d,r]),p=t.useCallback((t=>{e!==t&&l&&l(t)}),[e,l]);return O.jsx("div",{className:T(s&&s),children:O.jsxs("div",{className:aC,children:[O.jsxs("div",{className:sC.root,children:[O.jsx("span",{className:sC.prev}),O.jsx("span",{className:sC.next})]}),O.jsxs("div",{className:lC.root,children:[O.jsx("div",{children:O.jsxs("p",{className:lC.show,children:["Mostrar",O.jsx("span",{className:lC.info,children:O.jsx(sc,{selected:r,options:uC,onChange:e=>{r!==e&&c&&c(e)},uncontrollable:!1,orientation:"top"})}),n]})}),O.jsxs("div",{className:lC.end,children:[O.jsx("p",{className:lC.show,children:d&&O.jsx(O.Fragment,{children:d>0&&O.jsxs(O.Fragment,{children:[r&&O.jsx(O.Fragment,{children:o?parseInt(r)*e:a})," ","de ",d," resultados"]})})}),O.jsxs("nav",{className:cC.root,children:[i&&O.jsxs("a",{about:"page",className:cC.controlsLeft,onClick:()=>p(e-1),children:[O.jsx("span",{className:"sr-only",children:"Previous"}),O.jsx("svg",{className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:O.jsx("path",{fillRule:"evenodd",d:"M12.79 5.23a.75.75 0 01-.02 1.06L8.832 10l3.938 3.71a.75.75 0 11-1.04 1.08l-4.5-4.25a.75.75 0 010-1.08l4.5-4.25a.75.75 0 011.06.02z",clipRule:"evenodd"})})]}),h.map((n=>O.jsx(t.Fragment,{children:O.jsx("a",{about:"page",className:n===e?cC.active:cC.page,onClick:()=>p(n),children:n})},n))),o&&O.jsxs("a",{about:"page",className:cC.controlsRight,onClick:()=>p(e+1),children:[O.jsx("span",{className:"sr-only",children:"Next"}),O.jsx("svg",{className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:O.jsx("path",{fillRule:"evenodd",d:"M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z",clipRule:"evenodd"})})]})]})]})]})]})})})),hC={size:"col-span-3",style:"border rounded-3xl bg-white",separator:"my-[1.344rem] mx-[1rem] flex justify-between items-center",title:"text-lg text-gray-400 font-semibold mb-0 ",body:"text-sm text-gray-400 font-medium mr-2 -mt-2",icon:"w-[1.5rem] h-[1.5rem]"},pC={rule:"flex justify-start mb-7",danger:"text-danger font-bold ml-1",alert:"text-warning font-bold ml-1",pass:"text-secondary font-bold ml-1",icon:"w-[1.5rem] h-[1.5rem]"},fC=({title:e,value:t,color:n,titleColor:r,borderColor:o,as:i=wC,prefix:a})=>O.jsx(i,{borderColor:o,children:O.jsxs(gC,{children:[O.jsx(yC,{color:r,children:e}),O.jsx(bC,{color:n,children:a?`${t} ${a}`:t})]})}),mC=n.div`
1203
+ `,aC=t.memo(t.forwardRef((function({show:e,search:n,pending:r,shallow:o,results:i,loading:a,onFocus:s,onScroll:l,searching:c,onFocusOut:u,placeholder:d,onInputChange:h,onResultSelect:p,barColor:f,renderItem:m,property:g,searchColor:v,loaderColor:y,spacingColor:b,placeholderColor:w,dropdownItemColor:x},_){const k=i??[],C=r??[],S=f??Li.secondary,E=v??Li.secondary,D=y??Li.secondary,M=b??Li.secondary,T=t.useCallback((e=>{var t;h&&h(null==(t=null==e?void 0:e.target)?void 0:t.value)}),[h]),N=t.useCallback((e=>p&&p(e)),[p]);return O.jsxs(Jk,{children:[O.jsx(eC,{theming:S,children:O.jsx(tC,{type:"text",autoFocus:!0,value:n,theming:E,onFocus:()=>{s&&s()},onBlur:()=>{s&&u&&u()},onChange:T,placeholder:d??"Escribe el RUT o Nombre del Cliente",placeholderColor:w??Li.secondary})}),O.jsxs(O.Fragment,{children:[c&&O.jsx(nC,{children:O.jsx(iC,{theming:D,children:O.jsx(Yx,{status:!0})})}),e&&O.jsxs(nC,{ref:_,onScroll:e=>{l&&l(e)},children:[null==k?void 0:k.map(((e,t)=>O.jsx(rC,{theming:x??Li.primary,onClick:()=>N(e),children:null==m?void 0:m(e)},g?null==e?void 0:e[g]:t))),a&&(null==C?void 0:C.map((e=>O.jsx(Xk,{width:null==e?void 0:e.width},null==e?void 0:e.uuid))))]}),o&&!1===a&&!1===c&&O.jsx(nC,{children:O.jsx(oC,{theming:M,children:O.jsx("p",{children:"No se encontraron resultados para su búsqueda"})})})]})]})}))),sC="flex items-center justify-between",lC={root:"flex flex-1 justify-between sm:hidden",prev:"relative inline-flex items-center rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-50",next:"relative ml-3 inline-flex items-center rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-50"},cC={root:"sm:flex sm:flex-1 sm:items-center sm:justify-between",end:"flex items-center justify-end flex-2 sm:flex-none gap-3",show:"font-bold text-sm text-gray-700",info:"font-bold mx-3 sm:mx-3"},uC={root:"isolate inline-flex -space-x-px rounded-md shadow-sm",active:"relative z-10 inline-flex items-center bg-secondary px-3.5 py-2 text-sm font-bold text-white focus:z-20 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-6",page:"relative inline-flex items-center border-solid border-secondary px-3.5 py-2 bg-white text-sm font-bold text-gray-900 ring-1 ring-inset ring-secondary focus:z-20 focus:outline-offset-0 hover:cursor-pointer hover:bg-secondary hover:text-white",controlsRight:"relative inline-flex bg-white items-center rounded-r-full border-solid border-secondary px-2 py-2 text-black ring-1 ring-inset ring-secondary focus:z-20 focus:outline-offset-0 hover:cursor-pointer hover:bg-secondary hover:text-white",controlsLeft:"relative inline-flex bg-white items-center rounded-l-full border-solid border-secondary px-2 py-2 text-black ring-1 ring-inset ring-secondary focus:z-20 focus:outline-offset-0 hover:cursor-pointer hover:bg-secondary hover:text-white"},dC=["5","10","15","20","50"],hC=t.memo((({page:e,info:n,limit:r,hasNext:o,hasPrev:i,current:a,className:s,onClickPage:l,onClickLimit:c,total:d})=>{const h=t.useMemo((()=>{if(d&&r){const t=Math.ceil(d/+r),n=e||1;let o=n-2,i=n+2;o<=1&&(i+=Math.abs(o)+1,o=1),i>t&&(o-=i-t,i=t);return u.range(o,i+1).filter((e=>e>0))}return[]}),[e,d,r]),p=t.useCallback((t=>{e!==t&&l&&l(t)}),[e,l]);return O.jsx("div",{className:T(s&&s),children:O.jsxs("div",{className:sC,children:[O.jsxs("div",{className:lC.root,children:[O.jsx("span",{className:lC.prev}),O.jsx("span",{className:lC.next})]}),O.jsxs("div",{className:cC.root,children:[O.jsx("div",{children:O.jsxs("p",{className:cC.show,children:["Mostrar",O.jsx("span",{className:cC.info,children:O.jsx(sc,{selected:r,options:dC,onChange:e=>{r!==e&&c&&c(e)},uncontrollable:!1,orientation:"top"})}),n]})}),O.jsxs("div",{className:cC.end,children:[O.jsx("p",{className:cC.show,children:d&&O.jsx(O.Fragment,{children:d>0&&O.jsxs(O.Fragment,{children:[r&&O.jsx(O.Fragment,{children:o?parseInt(r)*e:a})," ","de ",d," resultados"]})})}),O.jsxs("nav",{className:uC.root,children:[i&&O.jsxs("a",{about:"page",className:uC.controlsLeft,onClick:()=>p(e-1),children:[O.jsx("span",{className:"sr-only",children:"Previous"}),O.jsx("svg",{className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:O.jsx("path",{fillRule:"evenodd",d:"M12.79 5.23a.75.75 0 01-.02 1.06L8.832 10l3.938 3.71a.75.75 0 11-1.04 1.08l-4.5-4.25a.75.75 0 010-1.08l4.5-4.25a.75.75 0 011.06.02z",clipRule:"evenodd"})})]}),h.map((n=>O.jsx(t.Fragment,{children:O.jsx("a",{about:"page",className:n===e?uC.active:uC.page,onClick:()=>p(n),children:n})},n))),o&&O.jsxs("a",{about:"page",className:uC.controlsRight,onClick:()=>p(e+1),children:[O.jsx("span",{className:"sr-only",children:"Next"}),O.jsx("svg",{className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:O.jsx("path",{fillRule:"evenodd",d:"M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z",clipRule:"evenodd"})})]})]})]})]})]})})})),pC={size:"col-span-3",style:"border rounded-3xl bg-white",separator:"my-[1.344rem] mx-[1rem] flex justify-between items-center",title:"text-lg text-gray-400 font-semibold mb-0 ",body:"text-sm text-gray-400 font-medium mr-2 -mt-2",icon:"w-[1.5rem] h-[1.5rem]"},fC={rule:"flex justify-start mb-7",danger:"text-danger font-bold ml-1",alert:"text-warning font-bold ml-1",pass:"text-secondary font-bold ml-1",icon:"w-[1.5rem] h-[1.5rem]"},mC=({title:e,value:t,color:n,titleColor:r,borderColor:o,as:i=xC,prefix:a})=>O.jsx(i,{borderColor:o,children:O.jsxs(vC,{children:[O.jsx(bC,{color:r,children:e}),O.jsx(wC,{color:n,children:a?`${t} ${a}`:t})]})}),gC=n.div`
1204
1204
  display: flex;
1205
1205
  flex-direction: row;
1206
1206
  justify-content: space-between;
1207
1207
  ${e=>e.span&&`grid-column: span ${e.span}`};
1208
- `,gC=n.div`
1209
- align-items: flex-start;
1210
1208
  `,vC=n.div`
1209
+ align-items: flex-start;
1210
+ `,yC=n.div`
1211
1211
  display: flex;
1212
1212
  flex-direction: column;
1213
1213
  justify-content: space-between;
1214
1214
  flex: 1;
1215
1215
  align-items: center;
1216
- `,yC=n.h2`
1216
+ `,bC=n.h2`
1217
1217
  color: ${e=>e.color};
1218
1218
  font-size: 1rem;
1219
1219
  font-style: normal;
1220
1220
  font-weight: 700;
1221
1221
  line-height: 120%;
1222
- `,bC=n.p`
1222
+ `,wC=n.p`
1223
1223
  color: ${e=>e.color};
1224
1224
  font-size: 1.875rem;
1225
1225
  font-style: normal;
1226
1226
  font-weight: 700;
1227
1227
  line-height: 120%;
1228
- `,wC=n(vC)`
1228
+ `,xC=n(yC)`
1229
1229
  padding: 0px 15px 0px 0px;
1230
1230
  margin-left: -11px;
1231
- `,xC=n(vC)`
1231
+ `,_C=n(yC)`
1232
1232
  border-left: 1px solid ${e=>e.borderColor};
1233
1233
  border-right: 1px solid ${e=>e.borderColor};
1234
- `,_C=n(vC)``;var kC=(e=>(e.TOKEN="@CCC/token",e.REFRESH_TOKEN="@CCC/refresh_token",e))(kC||{}),CC=(e=>(e.token="token",e.access="access",e))(CC||{});function SC(e,t){return function(){return e.apply(t,arguments)}}const{toString:EC}=Object.prototype,{getPrototypeOf:DC}=Object,OC=(e=>t=>{const n=EC.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),MC=e=>(e=e.toLowerCase(),t=>OC(t)===e),TC=e=>t=>typeof t===e,{isArray:NC}=Array,PC=TC("undefined");const AC=MC("ArrayBuffer");const jC=TC("string"),RC=TC("function"),LC=TC("number"),IC=e=>null!==e&&"object"==typeof e,FC=e=>{if("object"!==OC(e))return!1;const t=DC(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},HC=MC("Date"),BC=MC("File"),YC=MC("Blob"),zC=MC("FileList"),WC=MC("URLSearchParams"),[$C,VC,UC,qC]=["ReadableStream","Request","Response","Headers"].map(MC);function KC(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),NC(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function GC(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const ZC="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,QC=e=>!PC(e)&&e!==ZC;const XC=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&DC(Uint8Array)),JC=MC("HTMLFormElement"),eS=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),tS=MC("RegExp"),nS=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};KC(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},rS="abcdefghijklmnopqrstuvwxyz",oS="0123456789",iS={DIGIT:oS,ALPHA:rS,ALPHA_DIGIT:rS+rS.toUpperCase()+oS};const aS=MC("AsyncFunction"),sS=(lS="function"==typeof setImmediate,cS=RC(ZC.postMessage),lS?setImmediate:cS?(uS=`axios@${Math.random()}`,dS=[],ZC.addEventListener("message",(({source:e,data:t})=>{e===ZC&&t===uS&&dS.length&&dS.shift()()}),!1),e=>{dS.push(e),ZC.postMessage(uS,"*")}):e=>setTimeout(e));var lS,cS,uS,dS;const hS="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ZC):"undefined"!=typeof process&&process.nextTick||sS,pS={isArray:NC,isArrayBuffer:AC,isBuffer:function(e){return null!==e&&!PC(e)&&null!==e.constructor&&!PC(e.constructor)&&RC(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||RC(e.append)&&("formdata"===(t=OC(e))||"object"===t&&RC(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&AC(e.buffer),t},isString:jC,isNumber:LC,isBoolean:e=>!0===e||!1===e,isObject:IC,isPlainObject:FC,isReadableStream:$C,isRequest:VC,isResponse:UC,isHeaders:qC,isUndefined:PC,isDate:HC,isFile:BC,isBlob:YC,isRegExp:tS,isFunction:RC,isStream:e=>IC(e)&&RC(e.pipe),isURLSearchParams:WC,isTypedArray:XC,isFileList:zC,forEach:KC,merge:function e(){const{caseless:t}=QC(this)&&this||{},n={},r=(r,o)=>{const i=t&&GC(n,o)||o;FC(n[i])&&FC(r)?n[i]=e(n[i],r):FC(r)?n[i]=e({},r):NC(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&KC(arguments[o],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(KC(t,((t,r)=>{n&&RC(t)?e[r]=SC(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(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)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&DC(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:OC,kindOfTest:MC,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(NC(e))return e;let t=e.length;if(!LC(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:JC,hasOwnProperty:eS,hasOwnProp:eS,reduceDescriptors:nS,freezeMethods:e=>{nS(e,((t,n)=>{if(RC(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];RC(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return NC(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:GC,global:ZC,isContextDefined:QC,ALPHABET:iS,generateString:(e=16,t=iS.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&RC(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(IC(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=NC(e)?[]:{};return KC(e,((e,t)=>{const i=n(e,r+1);!PC(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:aS,isThenable:e=>e&&(IC(e)||RC(e))&&RC(e.then)&&RC(e.catch),setImmediate:sS,asap:hS};function fS(e,t,n,r,o){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),o&&(this.response=o)}pS.inherits(fS,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:pS.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const mS=fS.prototype,gS={};["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=>{gS[e]={value:e}})),Object.defineProperties(fS,gS),Object.defineProperty(mS,"isAxiosError",{value:!0}),fS.from=(e,t,n,r,o,i)=>{const a=Object.create(mS);return pS.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),fS.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function vS(e){return pS.isPlainObject(e)||pS.isArray(e)}function yS(e){return pS.endsWith(e,"[]")?e.slice(0,-2):e}function bS(e,t,n){return e?e.concat(t).map((function(e,t){return e=yS(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const wS=pS.toFlatObject(pS,{},null,(function(e){return/^is[A-Z]/.test(e)}));function xS(e,t,n){if(!pS.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=pS.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!pS.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&pS.isSpecCompliantForm(t);if(!pS.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(pS.isDate(e))return e.toISOString();if(!s&&pS.isBlob(e))throw new fS("Blob is not supported. Use a Buffer instead.");return pS.isArrayBuffer(e)||pS.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(pS.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(pS.isArray(e)&&function(e){return pS.isArray(e)&&!e.some(vS)}(e)||(pS.isFileList(e)||pS.endsWith(n,"[]"))&&(s=pS.toArray(e)))return n=yS(n),s.forEach((function(e,r){!pS.isUndefined(e)&&null!==e&&t.append(!0===a?bS([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!vS(e)||(t.append(bS(o,n,i),l(e)),!1)}const u=[],d=Object.assign(wS,{defaultVisitor:c,convertValue:l,isVisitable:vS});if(!pS.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!pS.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),pS.forEach(n,(function(n,i){!0===(!(pS.isUndefined(n)||null===n)&&o.call(t,n,pS.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function _S(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function kS(e,t){this._pairs=[],e&&xS(e,this,t)}const CS=kS.prototype;function SS(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ES(e,t,n){if(!t)return e;const r=n&&n.encode||SS,o=n&&n.serialize;let i;if(i=o?o(t,n):pS.isURLSearchParams(t)?t.toString():new kS(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}CS.append=function(e,t){this._pairs.push([e,t])},CS.toString=function(e){const t=e?function(t){return e.call(this,t,_S)}:_S;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class DS{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){pS.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const OS={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},MS={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:kS,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},TS="undefined"!=typeof window&&"undefined"!=typeof document,NS=(PS="undefined"!=typeof navigator&&navigator.product,TS&&["ReactNative","NativeScript","NS"].indexOf(PS)<0);var PS;const AS="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,jS=TS&&window.location.href||"http://localhost",RS={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:TS,hasStandardBrowserEnv:NS,hasStandardBrowserWebWorkerEnv:AS,origin:jS},Symbol.toStringTag,{value:"Module"})),...MS};function LS(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&pS.isArray(r)?r.length:i,s)return pS.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&pS.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&pS.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(pS.isFormData(e)&&pS.isFunction(e.entries)){const n={};return pS.forEachEntry(e,((e,r)=>{t(function(e){return pS.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const IS={transitional:OS,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=pS.isObject(e);o&&pS.isHTMLForm(e)&&(e=new FormData(e));if(pS.isFormData(e))return r?JSON.stringify(LS(e)):e;if(pS.isArrayBuffer(e)||pS.isBuffer(e)||pS.isStream(e)||pS.isFile(e)||pS.isBlob(e)||pS.isReadableStream(e))return e;if(pS.isArrayBufferView(e))return e.buffer;if(pS.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return xS(e,new RS.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return RS.isNode&&pS.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=pS.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return xS(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(pS.isString(e))try{return(t||JSON.parse)(e),pS.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||IS.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(pS.isResponse(e)||pS.isReadableStream(e))return e;if(e&&pS.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(o){if(n){if("SyntaxError"===o.name)throw fS.from(o,fS.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:RS.classes.FormData,Blob:RS.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};pS.forEach(["delete","get","head","post","put","patch"],(e=>{IS.headers[e]={}}));const FS=pS.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"]),HS=Symbol("internals");function BS(e){return e&&String(e).trim().toLowerCase()}function YS(e){return!1===e||null==e?e:pS.isArray(e)?e.map(YS):String(e)}function zS(e,t,n,r,o){return pS.isFunction(r)?r.call(this,t,n):(o&&(t=n),pS.isString(t)?pS.isString(r)?-1!==t.indexOf(r):pS.isRegExp(r)?r.test(t):void 0:void 0)}let WS=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=BS(t);if(!o)throw new Error("header name must be a non-empty string");const i=pS.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=YS(e))}const i=(e,t)=>pS.forEach(e,((e,n)=>o(e,n,t)));if(pS.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(pS.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&FS[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(pS.isHeaders(e))for(const[a,s]of e.entries())o(s,a,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=BS(e)){const n=pS.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(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}(e);if(pS.isFunction(t))return t.call(this,e,n);if(pS.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=BS(e)){const n=pS.findKey(this,e);return!(!n||void 0===this[n]||t&&!zS(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=BS(e)){const o=pS.findKey(n,e);!o||t&&!zS(0,n[o],o,t)||(delete n[o],r=!0)}}return pS.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!zS(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return pS.forEach(this,((r,o)=>{const i=pS.findKey(n,o);if(i)return t[i]=YS(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=YS(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return pS.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&pS.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[HS]=this[HS]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=BS(e);t[r]||(!function(e,t){const n=pS.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return pS.isArray(e)?e.forEach(r):r(e),this}};function $S(e,t){const n=this||IS,r=t||n,o=WS.from(r.headers);let i=r.data;return pS.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function VS(e){return!(!e||!e.__CANCEL__)}function US(e,t,n){fS.call(this,null==e?"canceled":e,fS.ERR_CANCELED,t,n),this.name="CanceledError"}function qS(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new fS("Request failed with status code "+n.status,[fS.ERR_BAD_REQUEST,fS.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}WS.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),pS.reduceDescriptors(WS.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),pS.freezeMethods(WS),pS.inherits(US,fS,{__CANCEL__:!0});const KS=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const h=c&&l-c;return h?Math.round(1e3*d/h):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},GS=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ZS=e=>(...t)=>pS.asap((()=>e(...t))),QS=RS.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=pS.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}(),XS=RS.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];pS.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),pS.isString(r)&&a.push("path="+r),pS.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function JS(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const eE=e=>e instanceof WS?{...e}:e;function tE(e,t){t=t||{};const n={};function r(e,t,n){return pS.isPlainObject(e)&&pS.isPlainObject(t)?pS.merge.call({caseless:n},e,t):pS.isPlainObject(t)?pS.merge({},t):pS.isArray(t)?t.slice():t}function o(e,t,n){return pS.isUndefined(t)?pS.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!pS.isUndefined(t))return r(void 0,t)}function a(e,t){return pS.isUndefined(t)?pS.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(eE(e),eE(t),!0)};return pS.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);pS.isUndefined(a)&&i!==s||(n[r]=a)})),n}const nE=e=>{const t=tE({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=WS.from(s),t.url=ES(JS(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),pS.isFormData(r))if(RS.hasStandardBrowserEnv||RS.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(RS.hasStandardBrowserEnv&&(o&&pS.isFunction(o)&&(o=o(t)),o||!1!==o&&QS(t.url))){const e=i&&a&&XS.read(a);e&&s.set(i,e)}return t},rE="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=nE(e);let o=r.data;const i=WS.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:h,onDownloadProgress:p}=r;function f(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=WS.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());qS((function(e){t(e),f()}),(function(e){n(e),f()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new fS("Request aborted",fS.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new fS("Network Error",fS.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||OS;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new fS(t,o.clarifyTimeoutError?fS.ETIMEDOUT:fS.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&pS.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),pS.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([l,u]=KS(p,!0),m.addEventListener("progress",l)),h&&m.upload&&([s,c]=KS(h),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new US(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===RS.protocols.indexOf(v)?n(new fS("Unsupported protocol "+v+":",fS.ERR_BAD_REQUEST,e)):m.send(o||null)}))},oE=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof fS?t:new US(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new fS(`timeout ${t} of ms exceeded`,fS.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]},iE=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},aE=(e,t,n,r,o)=>{const i=async function*(e,t,n){for await(const r of e)yield*iE(ArrayBuffer.isView(r)?r:await n(String(r)),t)}(e,t,o);let a,s=0,l=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return l(),void e.close();let o=r.byteLength;if(n){let e=s+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:e=>(l(e),i.return())},{highWaterMark:2})},sE="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,lE=sE&&"function"==typeof ReadableStream,cE=sE&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),uE=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},dE=lE&&uE((()=>{let e=!1;const t=new Request(RS.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),hE=lE&&uE((()=>pS.isReadableStream(new Response("").body))),pE={stream:hE&&(e=>e.body)};var fE;sE&&(fE=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!pE[e]&&(pE[e]=pS.isFunction(fE[e])?t=>t[e]():(t,n)=>{throw new fS(`Response type '${e}' is not supported`,fS.ERR_NOT_SUPPORT,n)})})));const mE=async(e,t)=>{const n=pS.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:pS.isBlob(e)?e.size:pS.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:pS.isArrayBufferView(e)||pS.isArrayBuffer(e)?e.byteLength:(pS.isURLSearchParams(e)&&(e+=""),pS.isString(e)?(await cE(e)).byteLength:void 0))(t):n},gE={http:null,xhr:rE,fetch:sE&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:h}=nE(e);c=c?(c+"").toLowerCase():"text";let p,f,[m,g]=o||i||a?oE([o,i],a):[];const v=()=>{!p&&setTimeout((()=>{m&&m.unsubscribe()})),p=!0};let y;try{if(l&&dE&&"get"!==n&&"head"!==n&&0!==(y=await mE(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(pS.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=GS(y,KS(ZS(l)));r=aE(n.body,65536,e,t,cE)}}pS.isString(d)||(d=d?"include":"omit"),f=new Request(t,{...h,signal:m,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:d});let o=await fetch(f);const i=hE&&("stream"===c||"response"===c);if(hE&&(s||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=pS.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&GS(t,KS(ZS(s),!0))||[];o=new Response(aE(o.body,65536,n,(()=>{r&&r(),i&&v()}),cE),e)}c=c||"text";let a=await pE[pS.findKey(pE,c)||"text"](o,e);return!i&&v(),g&&g(),await new Promise(((t,n)=>{qS(t,n,{data:a,headers:WS.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:f})}))}catch(b){if(v(),b&&"TypeError"===b.name&&/fetch/i.test(b.message))throw Object.assign(new fS("Network Error",fS.ERR_NETWORK,e,f),{cause:b.cause||b});throw fS.from(b,b&&b.code,e,f)}})};pS.forEach(gE,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const vE=e=>`- ${e}`,yE=e=>pS.isFunction(e)||null===e||!1===e,bE=e=>{e=pS.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!yE(n)&&(r=gE[(t=String(n)).toLowerCase()],void 0===r))throw new fS(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new fS("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(vE).join("\n"):" "+vE(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function wE(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new US(null,e)}function xE(e){wE(e),e.headers=WS.from(e.headers),e.data=$S.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return bE(e.adapter||IS.adapter)(e).then((function(t){return wE(e),t.data=$S.call(e,e.transformResponse,t),t.headers=WS.from(t.headers),t}),(function(t){return VS(t)||(wE(e),t&&t.response&&(t.response.data=$S.call(e,e.transformResponse,t.response),t.response.headers=WS.from(t.response.headers))),Promise.reject(t)}))}const _E="1.7.3",kE={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{kE[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const CE={};kE.transitional=function(e,t,n){return(r,o,i)=>{if(!1===e)throw new fS(function(e,t){return"[Axios v1.7.3] Transitional option '"+e+"'"+t+(n?". "+n:"")}(o," has been removed"+(t?" in "+t:"")),fS.ERR_DEPRECATED);return t&&!CE[o]&&(CE[o]=!0),!e||e(r,o,i)}};const SE={assertOptions:function(e,t,n){if("object"!=typeof e)throw new fS("options must be an object",fS.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new fS("option "+i+" must be "+n,fS.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new fS("Unknown option "+i,fS.ERR_BAD_OPTION)}},validators:kE},EE=SE.validators;let DE=class{constructor(e){this.defaults=e,this.interceptors={request:new DS,response:new DS}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=tE(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&SE.assertOptions(n,{silentJSONParsing:EE.transitional(EE.boolean),forcedJSONParsing:EE.transitional(EE.boolean),clarifyTimeoutError:EE.transitional(EE.boolean)},!1),null!=r&&(pS.isFunction(r)?t.paramsSerializer={serialize:r}:SE.assertOptions(r,{encode:EE.function,serialize:EE.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&pS.merge(o.common,o[t.method]);o&&pS.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=WS.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[xE.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let h=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{h=e(h)}catch(p){t.call(this,p);break}}try{c=xE.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return ES(JS((e=tE(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}};pS.forEach(["delete","get","head","options"],(function(e){DE.prototype[e]=function(t,n){return this.request(tE(n||{},{method:e,url:t,data:(n||{}).data}))}})),pS.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(tE(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}DE.prototype[e]=t(),DE.prototype[e+"Form"]=t(!0)}));const OE={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(OE).forEach((([e,t])=>{OE[t]=e}));const ME=function e(t){const n=new DE(t),r=SC(DE.prototype.request,n);return pS.extend(r,DE.prototype,n,{allOwnKeys:!0}),pS.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(tE(t,n))},r}(IS);ME.Axios=DE,ME.CanceledError=US,ME.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new US(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let t;return{token:new e((function(e){t=e})),cancel:t}}},ME.isCancel=VS,ME.VERSION=_E,ME.toFormData=xS,ME.AxiosError=fS,ME.Cancel=ME.CanceledError,ME.all=function(e){return Promise.all(e)},ME.spread=function(e){return function(t){return e.apply(null,t)}},ME.isAxiosError=function(e){return pS.isObject(e)&&!0===e.isAxiosError},ME.mergeConfig=tE,ME.AxiosHeaders=WS,ME.formToJSON=e=>LS(pS.isHTMLForm(e)?new FormData(e):e),ME.getAdapter=bE,ME.HttpStatusCode=OE,ME.default=ME;const{Axios:TE,AxiosError:NE,CanceledError:PE,isCancel:AE,CancelToken:jE,VERSION:RE,all:LE,Cancel:IE,isAxiosError:FE,spread:HE,toFormData:BE,AxiosHeaders:YE,HttpStatusCode:zE,formToJSON:WE,getAdapter:$E,mergeConfig:VE}=ME;class UE{constructor({baseURL:e,timeout:t,headers:n={},logger:r=console.log,requestInterceptor:o=e=>e,responseInterceptor:i=e=>e}={}){g(this,"https"),g(this,"logger"),g(this,"requestInterceptor"),g(this,"responseInterceptor"),this.https=ME.create({baseURL:e,timeout:t,headers:n}),this.logger=r,this.requestInterceptor=this.https.interceptors.request.use(o,(e=>(this.logger("Request Error:",e),Promise.reject(e)))),this.responseInterceptor=this.https.interceptors.response.use(i,(e=>Promise.reject(e)))}get(e,t){return"object"==typeof e&&(null==e?void 0:e.provide)?this.https.get(e.provide,{params:e.query}):this.https.get(e,t)}delete(e,t){return"object"==typeof e&&(null==e?void 0:e.provide)?this.https.delete(e.provide,{params:e.query}):this.https.delete(e,t)}patch(e,t,n){return"object"==typeof e&&(null==e?void 0:e.provide)?this.https.patch(e.provide,t,{params:e.query}):this.https.patch(e,t,n)}post(e,t,n){return"object"==typeof e&&(null==e?void 0:e.provide)?this.https.post(e.provide,t,{params:e.query}):this.https.post(e,t,n)}put(e,t,n){return"object"==typeof e&&(null==e?void 0:e.provide)?this.https.put(e.provide,t,{params:e.query}):this.https.put(e,t,n)}removeInterceptors(){this.https.interceptors.request.eject(this.requestInterceptor),this.https.interceptors.response.eject(this.responseInterceptor)}}function qE(e){return`Bearer ${e}`}var KE=(e=>(e.GET="GET",e.PUT="PUT",e.POST="POST",e.PATCH="PATCH",e.DELETE="DELETE",e))(KE||{});function GE(e,n,r){return t.useEffect((()=>{n&&(n(),r&&JE(e,r))}),[e]),t.useCallback((t=>{JE(e,t)}),[e])}const ZE={},QE={};function XE(e,t){const n=window;if(n[e]){return n[e].subscribe(t)}throw new Error("Cannot find subscription")}function JE(e,t){const n=window;if(n[e]){return n[e].next(t)}throw new Error("Cannot find subscription")}var eD=(e=>(e.SSO_LOGIN="@CCC/SSO",e.SSO_ERROR="@CCC/SSO/failure",e.SSO_LOGOUT="@CCC/SSO/logout",e.SSO_REFRESH="@CCC/SSO/refresh",e.SSO_ATTEMPT="@CCC/SSO/attempt",e.SSO_EXPIRED="@CCC/SSO/expired",e.SSO_SUCCESS="@CCC/SSO/success",e.ON_CONNECT_APP="@CCC/onConnectApp",e.ON_REHYDRATE_APP="@CCC/onRehydrateApp",e.ON_DISCONNECT_APP="@CCC/onDisconnectApp",e.GET_ZUSTAND_INSTANCE="@CCC/getZustandInstance",e.UPDATE_ZUSTAND_INSTANCE="@CCC/updateZustandInstance",e.SIGNAL="@CCC/signal",e))(eD||{});const tD=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{n.clear()}},a=t=e(r,o,i);return i};var nD,rD={exports:{}},oD={},iD={exports:{}},aD={};var sD,lD,cD,uD={};
1234
+ `,kC=n(yC)``;var CC=(e=>(e.TOKEN="@CCC/token",e.REFRESH_TOKEN="@CCC/refresh_token",e))(CC||{}),SC=(e=>(e.token="token",e.access="access",e))(SC||{});function EC(e,t){return function(){return e.apply(t,arguments)}}const{toString:DC}=Object.prototype,{getPrototypeOf:OC}=Object,MC=(e=>t=>{const n=DC.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),TC=e=>(e=e.toLowerCase(),t=>MC(t)===e),NC=e=>t=>typeof t===e,{isArray:PC}=Array,AC=NC("undefined");const jC=TC("ArrayBuffer");const RC=NC("string"),LC=NC("function"),IC=NC("number"),FC=e=>null!==e&&"object"==typeof e,HC=e=>{if("object"!==MC(e))return!1;const t=OC(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},BC=TC("Date"),YC=TC("File"),zC=TC("Blob"),WC=TC("FileList"),$C=TC("URLSearchParams"),[VC,UC,qC,KC]=["ReadableStream","Request","Response","Headers"].map(TC);function GC(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),PC(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function ZC(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const QC="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,XC=e=>!AC(e)&&e!==QC;const JC=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&OC(Uint8Array)),eS=TC("HTMLFormElement"),tS=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),nS=TC("RegExp"),rS=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};GC(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},oS="abcdefghijklmnopqrstuvwxyz",iS="0123456789",aS={DIGIT:iS,ALPHA:oS,ALPHA_DIGIT:oS+oS.toUpperCase()+iS};const sS=TC("AsyncFunction"),lS=(cS="function"==typeof setImmediate,uS=LC(QC.postMessage),cS?setImmediate:uS?(dS=`axios@${Math.random()}`,hS=[],QC.addEventListener("message",(({source:e,data:t})=>{e===QC&&t===dS&&hS.length&&hS.shift()()}),!1),e=>{hS.push(e),QC.postMessage(dS,"*")}):e=>setTimeout(e));var cS,uS,dS,hS;const pS="undefined"!=typeof queueMicrotask?queueMicrotask.bind(QC):"undefined"!=typeof process&&process.nextTick||lS,fS={isArray:PC,isArrayBuffer:jC,isBuffer:function(e){return null!==e&&!AC(e)&&null!==e.constructor&&!AC(e.constructor)&&LC(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||LC(e.append)&&("formdata"===(t=MC(e))||"object"===t&&LC(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&jC(e.buffer),t},isString:RC,isNumber:IC,isBoolean:e=>!0===e||!1===e,isObject:FC,isPlainObject:HC,isReadableStream:VC,isRequest:UC,isResponse:qC,isHeaders:KC,isUndefined:AC,isDate:BC,isFile:YC,isBlob:zC,isRegExp:nS,isFunction:LC,isStream:e=>FC(e)&&LC(e.pipe),isURLSearchParams:$C,isTypedArray:JC,isFileList:WC,forEach:GC,merge:function e(){const{caseless:t}=XC(this)&&this||{},n={},r=(r,o)=>{const i=t&&ZC(n,o)||o;HC(n[i])&&HC(r)?n[i]=e(n[i],r):HC(r)?n[i]=e({},r):PC(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&GC(arguments[o],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(GC(t,((t,r)=>{n&&LC(t)?e[r]=EC(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(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)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&OC(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:MC,kindOfTest:TC,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(PC(e))return e;let t=e.length;if(!IC(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:eS,hasOwnProperty:tS,hasOwnProp:tS,reduceDescriptors:rS,freezeMethods:e=>{rS(e,((t,n)=>{if(LC(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];LC(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return PC(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:ZC,global:QC,isContextDefined:XC,ALPHABET:aS,generateString:(e=16,t=aS.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&LC(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(FC(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=PC(e)?[]:{};return GC(e,((e,t)=>{const i=n(e,r+1);!AC(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:sS,isThenable:e=>e&&(FC(e)||LC(e))&&LC(e.then)&&LC(e.catch),setImmediate:lS,asap:pS};function mS(e,t,n,r,o){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),o&&(this.response=o)}fS.inherits(mS,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:fS.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const gS=mS.prototype,vS={};["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=>{vS[e]={value:e}})),Object.defineProperties(mS,vS),Object.defineProperty(gS,"isAxiosError",{value:!0}),mS.from=(e,t,n,r,o,i)=>{const a=Object.create(gS);return fS.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),mS.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function yS(e){return fS.isPlainObject(e)||fS.isArray(e)}function bS(e){return fS.endsWith(e,"[]")?e.slice(0,-2):e}function wS(e,t,n){return e?e.concat(t).map((function(e,t){return e=bS(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const xS=fS.toFlatObject(fS,{},null,(function(e){return/^is[A-Z]/.test(e)}));function _S(e,t,n){if(!fS.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=fS.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!fS.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&fS.isSpecCompliantForm(t);if(!fS.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(fS.isDate(e))return e.toISOString();if(!s&&fS.isBlob(e))throw new mS("Blob is not supported. Use a Buffer instead.");return fS.isArrayBuffer(e)||fS.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(fS.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(fS.isArray(e)&&function(e){return fS.isArray(e)&&!e.some(yS)}(e)||(fS.isFileList(e)||fS.endsWith(n,"[]"))&&(s=fS.toArray(e)))return n=bS(n),s.forEach((function(e,r){!fS.isUndefined(e)&&null!==e&&t.append(!0===a?wS([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!yS(e)||(t.append(wS(o,n,i),l(e)),!1)}const u=[],d=Object.assign(xS,{defaultVisitor:c,convertValue:l,isVisitable:yS});if(!fS.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!fS.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),fS.forEach(n,(function(n,i){!0===(!(fS.isUndefined(n)||null===n)&&o.call(t,n,fS.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function kS(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function CS(e,t){this._pairs=[],e&&_S(e,this,t)}const SS=CS.prototype;function ES(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function DS(e,t,n){if(!t)return e;const r=n&&n.encode||ES,o=n&&n.serialize;let i;if(i=o?o(t,n):fS.isURLSearchParams(t)?t.toString():new CS(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}SS.append=function(e,t){this._pairs.push([e,t])},SS.toString=function(e){const t=e?function(t){return e.call(this,t,kS)}:kS;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class OS{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){fS.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const MS={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},TS={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:CS,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},NS="undefined"!=typeof window&&"undefined"!=typeof document,PS=(AS="undefined"!=typeof navigator&&navigator.product,NS&&["ReactNative","NativeScript","NS"].indexOf(AS)<0);var AS;const jS="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,RS=NS&&window.location.href||"http://localhost",LS={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:NS,hasStandardBrowserEnv:PS,hasStandardBrowserWebWorkerEnv:jS,origin:RS},Symbol.toStringTag,{value:"Module"})),...TS};function IS(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&fS.isArray(r)?r.length:i,s)return fS.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&fS.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&fS.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(fS.isFormData(e)&&fS.isFunction(e.entries)){const n={};return fS.forEachEntry(e,((e,r)=>{t(function(e){return fS.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const FS={transitional:MS,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=fS.isObject(e);o&&fS.isHTMLForm(e)&&(e=new FormData(e));if(fS.isFormData(e))return r?JSON.stringify(IS(e)):e;if(fS.isArrayBuffer(e)||fS.isBuffer(e)||fS.isStream(e)||fS.isFile(e)||fS.isBlob(e)||fS.isReadableStream(e))return e;if(fS.isArrayBufferView(e))return e.buffer;if(fS.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return _S(e,new LS.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return LS.isNode&&fS.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=fS.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return _S(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(fS.isString(e))try{return(t||JSON.parse)(e),fS.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||FS.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(fS.isResponse(e)||fS.isReadableStream(e))return e;if(e&&fS.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(o){if(n){if("SyntaxError"===o.name)throw mS.from(o,mS.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:LS.classes.FormData,Blob:LS.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};fS.forEach(["delete","get","head","post","put","patch"],(e=>{FS.headers[e]={}}));const HS=fS.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"]),BS=Symbol("internals");function YS(e){return e&&String(e).trim().toLowerCase()}function zS(e){return!1===e||null==e?e:fS.isArray(e)?e.map(zS):String(e)}function WS(e,t,n,r,o){return fS.isFunction(r)?r.call(this,t,n):(o&&(t=n),fS.isString(t)?fS.isString(r)?-1!==t.indexOf(r):fS.isRegExp(r)?r.test(t):void 0:void 0)}let $S=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=YS(t);if(!o)throw new Error("header name must be a non-empty string");const i=fS.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=zS(e))}const i=(e,t)=>fS.forEach(e,((e,n)=>o(e,n,t)));if(fS.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(fS.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&HS[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(fS.isHeaders(e))for(const[a,s]of e.entries())o(s,a,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=YS(e)){const n=fS.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(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}(e);if(fS.isFunction(t))return t.call(this,e,n);if(fS.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=YS(e)){const n=fS.findKey(this,e);return!(!n||void 0===this[n]||t&&!WS(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=YS(e)){const o=fS.findKey(n,e);!o||t&&!WS(0,n[o],o,t)||(delete n[o],r=!0)}}return fS.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!WS(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return fS.forEach(this,((r,o)=>{const i=fS.findKey(n,o);if(i)return t[i]=zS(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=zS(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return fS.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&fS.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[BS]=this[BS]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=YS(e);t[r]||(!function(e,t){const n=fS.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return fS.isArray(e)?e.forEach(r):r(e),this}};function VS(e,t){const n=this||FS,r=t||n,o=$S.from(r.headers);let i=r.data;return fS.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function US(e){return!(!e||!e.__CANCEL__)}function qS(e,t,n){mS.call(this,null==e?"canceled":e,mS.ERR_CANCELED,t,n),this.name="CanceledError"}function KS(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new mS("Request failed with status code "+n.status,[mS.ERR_BAD_REQUEST,mS.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}$S.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),fS.reduceDescriptors($S.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),fS.freezeMethods($S),fS.inherits(qS,mS,{__CANCEL__:!0});const GS=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const h=c&&l-c;return h?Math.round(1e3*d/h):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},ZS=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},QS=e=>(...t)=>fS.asap((()=>e(...t))),XS=LS.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=fS.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}(),JS=LS.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];fS.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),fS.isString(r)&&a.push("path="+r),fS.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function eE(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const tE=e=>e instanceof $S?{...e}:e;function nE(e,t){t=t||{};const n={};function r(e,t,n){return fS.isPlainObject(e)&&fS.isPlainObject(t)?fS.merge.call({caseless:n},e,t):fS.isPlainObject(t)?fS.merge({},t):fS.isArray(t)?t.slice():t}function o(e,t,n){return fS.isUndefined(t)?fS.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!fS.isUndefined(t))return r(void 0,t)}function a(e,t){return fS.isUndefined(t)?fS.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(tE(e),tE(t),!0)};return fS.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);fS.isUndefined(a)&&i!==s||(n[r]=a)})),n}const rE=e=>{const t=nE({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=$S.from(s),t.url=DS(eE(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),fS.isFormData(r))if(LS.hasStandardBrowserEnv||LS.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(LS.hasStandardBrowserEnv&&(o&&fS.isFunction(o)&&(o=o(t)),o||!1!==o&&XS(t.url))){const e=i&&a&&JS.read(a);e&&s.set(i,e)}return t},oE="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=rE(e);let o=r.data;const i=$S.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:h,onDownloadProgress:p}=r;function f(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=$S.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());KS((function(e){t(e),f()}),(function(e){n(e),f()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new mS("Request aborted",mS.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new mS("Network Error",mS.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||MS;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new mS(t,o.clarifyTimeoutError?mS.ETIMEDOUT:mS.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&fS.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),fS.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([l,u]=GS(p,!0),m.addEventListener("progress",l)),h&&m.upload&&([s,c]=GS(h),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new qS(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===LS.protocols.indexOf(v)?n(new mS("Unsupported protocol "+v+":",mS.ERR_BAD_REQUEST,e)):m.send(o||null)}))},iE=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof mS?t:new qS(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new mS(`timeout ${t} of ms exceeded`,mS.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]},aE=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},sE=(e,t,n,r,o)=>{const i=async function*(e,t,n){for await(const r of e)yield*aE(ArrayBuffer.isView(r)?r:await n(String(r)),t)}(e,t,o);let a,s=0,l=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return l(),void e.close();let o=r.byteLength;if(n){let e=s+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:e=>(l(e),i.return())},{highWaterMark:2})},lE="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,cE=lE&&"function"==typeof ReadableStream,uE=lE&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),dE=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},hE=cE&&dE((()=>{let e=!1;const t=new Request(LS.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),pE=cE&&dE((()=>fS.isReadableStream(new Response("").body))),fE={stream:pE&&(e=>e.body)};var mE;lE&&(mE=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!fE[e]&&(fE[e]=fS.isFunction(mE[e])?t=>t[e]():(t,n)=>{throw new mS(`Response type '${e}' is not supported`,mS.ERR_NOT_SUPPORT,n)})})));const gE=async(e,t)=>{const n=fS.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:fS.isBlob(e)?e.size:fS.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:fS.isArrayBufferView(e)||fS.isArrayBuffer(e)?e.byteLength:(fS.isURLSearchParams(e)&&(e+=""),fS.isString(e)?(await uE(e)).byteLength:void 0))(t):n},vE={http:null,xhr:oE,fetch:lE&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:h}=rE(e);c=c?(c+"").toLowerCase():"text";let p,f,[m,g]=o||i||a?iE([o,i],a):[];const v=()=>{!p&&setTimeout((()=>{m&&m.unsubscribe()})),p=!0};let y;try{if(l&&hE&&"get"!==n&&"head"!==n&&0!==(y=await gE(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(fS.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=ZS(y,GS(QS(l)));r=sE(n.body,65536,e,t,uE)}}fS.isString(d)||(d=d?"include":"omit"),f=new Request(t,{...h,signal:m,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:d});let o=await fetch(f);const i=pE&&("stream"===c||"response"===c);if(pE&&(s||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=fS.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&ZS(t,GS(QS(s),!0))||[];o=new Response(sE(o.body,65536,n,(()=>{r&&r(),i&&v()}),uE),e)}c=c||"text";let a=await fE[fS.findKey(fE,c)||"text"](o,e);return!i&&v(),g&&g(),await new Promise(((t,n)=>{KS(t,n,{data:a,headers:$S.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:f})}))}catch(b){if(v(),b&&"TypeError"===b.name&&/fetch/i.test(b.message))throw Object.assign(new mS("Network Error",mS.ERR_NETWORK,e,f),{cause:b.cause||b});throw mS.from(b,b&&b.code,e,f)}})};fS.forEach(vE,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const yE=e=>`- ${e}`,bE=e=>fS.isFunction(e)||null===e||!1===e,wE=e=>{e=fS.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!bE(n)&&(r=vE[(t=String(n)).toLowerCase()],void 0===r))throw new mS(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new mS("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(yE).join("\n"):" "+yE(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function xE(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new qS(null,e)}function _E(e){xE(e),e.headers=$S.from(e.headers),e.data=VS.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return wE(e.adapter||FS.adapter)(e).then((function(t){return xE(e),t.data=VS.call(e,e.transformResponse,t),t.headers=$S.from(t.headers),t}),(function(t){return US(t)||(xE(e),t&&t.response&&(t.response.data=VS.call(e,e.transformResponse,t.response),t.response.headers=$S.from(t.response.headers))),Promise.reject(t)}))}const kE="1.7.3",CE={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{CE[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const SE={};CE.transitional=function(e,t,n){return(r,o,i)=>{if(!1===e)throw new mS(function(e,t){return"[Axios v1.7.3] Transitional option '"+e+"'"+t+(n?". "+n:"")}(o," has been removed"+(t?" in "+t:"")),mS.ERR_DEPRECATED);return t&&!SE[o]&&(SE[o]=!0),!e||e(r,o,i)}};const EE={assertOptions:function(e,t,n){if("object"!=typeof e)throw new mS("options must be an object",mS.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new mS("option "+i+" must be "+n,mS.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new mS("Unknown option "+i,mS.ERR_BAD_OPTION)}},validators:CE},DE=EE.validators;let OE=class{constructor(e){this.defaults=e,this.interceptors={request:new OS,response:new OS}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=nE(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&EE.assertOptions(n,{silentJSONParsing:DE.transitional(DE.boolean),forcedJSONParsing:DE.transitional(DE.boolean),clarifyTimeoutError:DE.transitional(DE.boolean)},!1),null!=r&&(fS.isFunction(r)?t.paramsSerializer={serialize:r}:EE.assertOptions(r,{encode:DE.function,serialize:DE.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&fS.merge(o.common,o[t.method]);o&&fS.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=$S.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[_E.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let h=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{h=e(h)}catch(p){t.call(this,p);break}}try{c=_E.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return DS(eE((e=nE(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}};fS.forEach(["delete","get","head","options"],(function(e){OE.prototype[e]=function(t,n){return this.request(nE(n||{},{method:e,url:t,data:(n||{}).data}))}})),fS.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(nE(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}OE.prototype[e]=t(),OE.prototype[e+"Form"]=t(!0)}));const ME={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(ME).forEach((([e,t])=>{ME[t]=e}));const TE=function e(t){const n=new OE(t),r=EC(OE.prototype.request,n);return fS.extend(r,OE.prototype,n,{allOwnKeys:!0}),fS.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(nE(t,n))},r}(FS);TE.Axios=OE,TE.CanceledError=qS,TE.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new qS(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let t;return{token:new e((function(e){t=e})),cancel:t}}},TE.isCancel=US,TE.VERSION=kE,TE.toFormData=_S,TE.AxiosError=mS,TE.Cancel=TE.CanceledError,TE.all=function(e){return Promise.all(e)},TE.spread=function(e){return function(t){return e.apply(null,t)}},TE.isAxiosError=function(e){return fS.isObject(e)&&!0===e.isAxiosError},TE.mergeConfig=nE,TE.AxiosHeaders=$S,TE.formToJSON=e=>IS(fS.isHTMLForm(e)?new FormData(e):e),TE.getAdapter=wE,TE.HttpStatusCode=ME,TE.default=TE;const{Axios:NE,AxiosError:PE,CanceledError:AE,isCancel:jE,CancelToken:RE,VERSION:LE,all:IE,Cancel:FE,isAxiosError:HE,spread:BE,toFormData:YE,AxiosHeaders:zE,HttpStatusCode:WE,formToJSON:$E,getAdapter:VE,mergeConfig:UE}=TE;class qE{constructor({baseURL:e,timeout:t,headers:n={},logger:r=console.log,requestInterceptor:o=e=>e,responseInterceptor:i=e=>e}={}){g(this,"https"),g(this,"logger"),g(this,"requestInterceptor"),g(this,"responseInterceptor"),this.https=TE.create({baseURL:e,timeout:t,headers:n}),this.logger=r,this.requestInterceptor=this.https.interceptors.request.use(o,(e=>{if(this.logger("error",e),e.status===WE.Unauthorized){const t=new CustomEvent("@unauthorized",{detail:e});dispatchEvent(t)}return Promise.reject(e)})),this.responseInterceptor=this.https.interceptors.response.use(i,(e=>{if(this.logger("error",e),e.status===WE.Unauthorized){const t=new CustomEvent("@unauthorized",{detail:e});dispatchEvent(t)}return Promise.reject(e)}))}get(e,t){return"object"==typeof e&&(null==e?void 0:e.provide)?this.https.get(e.provide,{params:e.query}):this.https.get(e,t)}delete(e,t){return"object"==typeof e&&(null==e?void 0:e.provide)?this.https.delete(e.provide,{params:e.query}):this.https.delete(e,t)}patch(e,t,n){return"object"==typeof e&&(null==e?void 0:e.provide)?this.https.patch(e.provide,t,{params:e.query}):this.https.patch(e,t,n)}post(e,t,n){return"object"==typeof e&&(null==e?void 0:e.provide)?this.https.post(e.provide,t,{params:e.query}):this.https.post(e,t,n)}put(e,t,n){return"object"==typeof e&&(null==e?void 0:e.provide)?this.https.put(e.provide,t,{params:e.query}):this.https.put(e,t,n)}removeInterceptors(){this.https.interceptors.request.eject(this.requestInterceptor),this.https.interceptors.response.eject(this.responseInterceptor)}}function KE(e){return`Bearer ${e}`}var GE=(e=>(e.GET="GET",e.PUT="PUT",e.POST="POST",e.PATCH="PATCH",e.DELETE="DELETE",e))(GE||{});function ZE(e,n,r){return t.useEffect((()=>{n&&(n(),r&&eD(e,r))}),[e]),t.useCallback((t=>{eD(e,t)}),[e])}const QE={},XE={};function JE(e,t){const n=window;if(n[e]){return n[e].subscribe(t)}throw new Error("Cannot find subscription")}function eD(e,t){const n=window;if(n[e]){return n[e].next(t)}throw new Error("Cannot find subscription")}var tD=(e=>(e.SSO_LOGIN="@CCC/SSO",e.SSO_ERROR="@CCC/SSO/failure",e.SSO_LOGOUT="@CCC/SSO/logout",e.SSO_REFRESH="@CCC/SSO/refresh",e.SSO_ATTEMPT="@CCC/SSO/attempt",e.SSO_EXPIRED="@CCC/SSO/expired",e.SSO_SUCCESS="@CCC/SSO/success",e.ON_CONNECT_APP="@CCC/onConnectApp",e.ON_REHYDRATE_APP="@CCC/onRehydrateApp",e.ON_DISCONNECT_APP="@CCC/onDisconnectApp",e.GET_ZUSTAND_INSTANCE="@CCC/getZustandInstance",e.UPDATE_ZUSTAND_INSTANCE="@CCC/updateZustandInstance",e.SIGNAL="@CCC/signal",e))(tD||{});const nD=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{n.clear()}},a=t=e(r,o,i);return i};var rD,oD={exports:{}},iD={},aD={exports:{}},sD={};var lD,cD,uD,dD={};
1235
1235
  /**
1236
1236
  * @license React
1237
1237
  * use-sync-external-store-shim.development.js
@@ -1240,7 +1240,7 @@ vu.version="2.30.1",mu=Kh,vu.fn=Yp,vu.min=function(){return Qh("isBefore",[].sli
1240
1240
  *
1241
1241
  * This source code is licensed under the MIT license found in the
1242
1242
  * LICENSE file in the root directory of this source tree.
1243
- */function dD(){return sD||(sD=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=t,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];!function(e,t,r){var o=n.ReactDebugCurrentFrame.getStackAddendum();""!==o&&(t+="%s",r=r.concat([o]));var i=r.map((function(e){return String(e)}));i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}("error",e,r)}var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=e.useState,a=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue,c=!1,u=!1;function d(e){var t=e.getSnapshot,n=e.value;try{var r=t();return!o(n,r)}catch(i){return!0}}var h=!!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?function(e,t,n){return t()}:function(t,n,h){c||void 0!==e.startTransition&&(c=!0,r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=n();if(!u){var f=n();o(p,f)||(r("The result of getSnapshot should be cached to avoid an infinite loop"),u=!0)}var m=i({inst:{value:p,getSnapshot:n}}),g=m[0].inst,v=m[1];return s((function(){g.value=p,g.getSnapshot=n,d(g)&&v({inst:g})}),[t,p,n]),a((function(){d(g)&&v({inst:g});return t((function(){d(g)&&v({inst:g})}))}),[t]),l(p),p},p=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:h;uD.useSyncExternalStore=p,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),uD}function hD(){return lD||(lD=1,"production"===process.env.NODE_ENV?iD.exports=function(){if(nD)return aD;nD=1;var e=t,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(o){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),l=r({inst:{value:n,getSnapshot:t}}),c=l[0].inst,u=l[1];return i((function(){c.value=n,c.getSnapshot=t,s(c)&&u({inst:c})}),[e,n,t]),o((function(){return s(c)&&u({inst:c}),e((function(){s(c)&&u({inst:c})}))}),[e]),a(n),n};return aD.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:l,aD}():iD.exports=dD()),iD.exports}
1243
+ */function hD(){return lD||(lD=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=t,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];!function(e,t,r){var o=n.ReactDebugCurrentFrame.getStackAddendum();""!==o&&(t+="%s",r=r.concat([o]));var i=r.map((function(e){return String(e)}));i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}("error",e,r)}var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=e.useState,a=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue,c=!1,u=!1;function d(e){var t=e.getSnapshot,n=e.value;try{var r=t();return!o(n,r)}catch(i){return!0}}var h=!!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?function(e,t,n){return t()}:function(t,n,h){c||void 0!==e.startTransition&&(c=!0,r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=n();if(!u){var f=n();o(p,f)||(r("The result of getSnapshot should be cached to avoid an infinite loop"),u=!0)}var m=i({inst:{value:p,getSnapshot:n}}),g=m[0].inst,v=m[1];return s((function(){g.value=p,g.getSnapshot=n,d(g)&&v({inst:g})}),[t,p,n]),a((function(){d(g)&&v({inst:g});return t((function(){d(g)&&v({inst:g})}))}),[t]),l(p),p},p=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:h;dD.useSyncExternalStore=p,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),dD}function pD(){return cD||(cD=1,"production"===process.env.NODE_ENV?aD.exports=function(){if(rD)return sD;rD=1;var e=t,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(o){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),l=r({inst:{value:n,getSnapshot:t}}),c=l[0].inst,u=l[1];return i((function(){c.value=n,c.getSnapshot=t,s(c)&&u({inst:c})}),[e,n,t]),o((function(){return s(c)&&u({inst:c}),e((function(){s(c)&&u({inst:c})}))}),[e]),a(n),n};return sD.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:l,sD}():aD.exports=hD()),aD.exports}
1244
1244
  /**
1245
1245
  * @license React
1246
1246
  * use-sync-external-store-shim/with-selector.production.min.js
@@ -1249,7 +1249,7 @@ vu.version="2.30.1",mu=Kh,vu.fn=Yp,vu.min=function(){return Qh("isBefore",[].sli
1249
1249
  *
1250
1250
  * This source code is licensed under the MIT license found in the
1251
1251
  * LICENSE file in the root directory of this source tree.
1252
- */var pD,fD={};
1252
+ */var fD,mD={};
1253
1253
  /**
1254
1254
  * @license React
1255
1255
  * use-sync-external-store-shim/with-selector.development.js
@@ -1258,13 +1258,13 @@ vu.version="2.30.1",mu=Kh,vu.fn=Yp,vu.min=function(){return Qh("isBefore",[].sli
1258
1258
  *
1259
1259
  * This source code is licensed under the MIT license found in the
1260
1260
  * LICENSE file in the root directory of this source tree.
1261
- */"production"===process.env.NODE_ENV?rD.exports=function(){if(cD)return oD;cD=1;var e=t,n=hD(),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useSyncExternalStore,i=e.useRef,a=e.useEffect,s=e.useMemo,l=e.useDebugValue;return oD.useSyncExternalStoreWithSelector=function(e,t,n,c,u){var d=i(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;d=s((function(){function e(e){if(!a){if(a=!0,o=e,e=c(e),void 0!==u&&h.hasValue){var t=h.value;if(u(t,e))return i=t}return i=e}if(t=i,r(o,e))return t;var n=c(e);return void 0!==u&&u(t,n)?t:(o=e,i=n)}var o,i,a=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,n,c,u]);var p=o(e,d[0],d[1]);return a((function(){h.hasValue=!0,h.value=p}),[p]),l(p),p},oD}():rD.exports=(pD||(pD=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=t,n=hD(),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useSyncExternalStore,i=e.useRef,a=e.useEffect,s=e.useMemo,l=e.useDebugValue;fD.useSyncExternalStoreWithSelector=function(e,t,n,c,u){var d,h=i(null);null===h.current?(d={hasValue:!1,value:null},h.current=d):d=h.current;var p=s((function(){var e,o,i=!1,a=function(t){if(!i){i=!0,e=t;var n=c(t);if(void 0!==u&&d.hasValue){var a=d.value;if(u(a,n))return o=a,a}return o=n,n}var s=o;if(r(e,t))return s;var l=c(t);return void 0!==u&&u(s,l)?s:(e=t,o=l,l)},s=void 0===n?null:n;return[function(){return a(t())},null===s?void 0:function(){return a(s())}]}),[t,n,c,u]),f=p[0],m=p[1],g=o(e,f,m);return a((function(){d.hasValue=!0,d.value=g}),[g]),l(g),g},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),fD);const mD=x(rD.exports);var gD={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};const{useDebugValue:vD}=t,{useSyncExternalStoreWithSelector:yD}=mD;let bD=!1;const wD=e=>e;const xD=e=>{const t="function"==typeof e?(e=>e?tD(e):tD)(e):e,n=(e,n)=>function(e,t=wD,n){"production"!==(gD?"production":void 0)&&n&&!bD&&(bD=!0);const r=yD(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return vD(r),r}(t,e,n);return Object.assign(n,t),n},_D=e=>e?xD(e):xD;class kD extends Error{}function CD(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(n){return atob(t)}}function SD(e,t){if("string"!=typeof e)throw new kD("Invalid token specified: must be a string");t||(t={});const n=!0===t.header?0:1,r=e.split(".")[n];if("string"!=typeof r)throw new kD(`Invalid token specified: missing part #${n+1}`);let o;try{o=CD(r)}catch(i){throw new kD(`Invalid token specified: invalid base64 for part #${n+1} (${i.message})`)}try{return JSON.parse(o)}catch(i){throw new kD(`Invalid token specified: invalid json for part #${n+1} (${i.message})`)}}kD.prototype.name="InvalidTokenError";var ED={exports:{}};var DD={exports:{}};const OD=_(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var MD;function TD(){return MD||(MD=1,DD.exports=(e=e||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==w&&w.crypto&&(n=w.crypto),!n)try{n=OD}catch(m){}var r=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(m){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(m){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),i={},a=i.lib={},s=a.Base=function(){return{extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),l=a.WordArray=s.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var a=n[i>>>2]>>>24-i%4*8&255;t[r+i>>>2]|=a<<24-(r+i)%4*8}else for(var s=0;s<o;s+=4)t[r+s>>>2]=n[s>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new l.init(t,e)}}),c=i.enc={},u=c.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new l.init(n,t/2)}},d=c.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new l.init(n,t)}},h=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},p=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,o=r.words,i=r.sigBytes,a=this.blockSize,s=i/(4*a),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,u=e.min(4*c,i);if(c){for(var d=0;d<c;d+=a)this._doProcessBlock(o,d);n=o.splice(0,c),r.sigBytes-=u}return new l.init(n,u)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=p.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new f.HMAC.init(e,n).finalize(t)}}});var f=i.algo={};return i}(Math),e)),DD.exports;var e}var ND,PD={exports:{}};function AD(){return ND||(ND=1,PD.exports=(a=TD(),n=(t=a).lib,r=n.Base,o=n.WordArray,(i=t.x64={}).Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),i.WordArray=r.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var i=e[r];n.push(i.high),n.push(i.low)}return o.create(n,this.sigBytes)},clone:function(){for(var e=r.clone.call(this),t=e.words=this.words.slice(0),n=t.length,o=0;o<n;o++)t[o]=t[o].clone();return e}}),a)),PD.exports;var e,t,n,r,o,i,a}var jD,RD={exports:{}};function LD(){return jD||(jD=1,RD.exports=(e=TD(),function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,n=t.init,r=t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,r=[],o=0;o<t;o++)r[o>>>2]|=e[o]<<24-o%4*8;n.call(this,r,t)}else n.apply(this,arguments)};r.prototype=t}}(),e.lib.WordArray)),RD.exports;var e}var ID,FD={exports:{}};function HD(){return ID||(ID=1,FD.exports=(e=TD(),function(){var t=e,n=t.lib.WordArray,r=t.enc;function o(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o+=2){var i=t[o>>>2]>>>16-o%4*8&65535;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,r=[],o=0;o<t;o++)r[o>>>1]|=e.charCodeAt(o)<<16-o%2*16;return n.create(r,2*t)}},r.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i+=2){var a=o(t[i>>>2]>>>16-i%4*8&65535);r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i<t;i++)r[i>>>1]|=o(e.charCodeAt(i)<<16-i%2*16);return n.create(r,2*t)}}}(),e.enc.Utf16)),FD.exports;var e}var BD,YD={exports:{}};function zD(){return BD||(BD=1,YD.exports=(e=TD(),function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var o=[],i=0,a=0;a<t;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2|r[e.charCodeAt(a)]>>>6-a%4*2;o[i>>>2]|=s<<24-i%4*8,i++}return n.create(o,i)}t.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],i=0;i<n;i+=3)for(var a=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s<n;s++)o.push(r.charAt(a>>>6*(3-s)&63));var l=r.charAt(64);if(l)for(;o.length%4;)o.push(l);return o.join("")},parse:function(e){var t=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<n.length;i++)o[n.charCodeAt(i)]=i}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return r(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64)),YD.exports;var e}var WD,$D={exports:{}};function VD(){return WD||(WD=1,$D.exports=(e=TD(),function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var o=[],i=0,a=0;a<t;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2|r[e.charCodeAt(a)]>>>6-a%4*2;o[i>>>2]|=s<<24-i%4*8,i++}return n.create(o,i)}t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var n=e.words,r=e.sigBytes,o=t?this._safe_map:this._map;e.clamp();for(var i=[],a=0;a<r;a+=3)for(var s=(n[a>>>2]>>>24-a%4*8&255)<<16|(n[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|n[a+2>>>2]>>>24-(a+2)%4*8&255,l=0;l<4&&a+.75*l<r;l++)i.push(o.charAt(s>>>6*(3-l)&63));var c=o.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,o=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a<o.length;a++)i[o.charCodeAt(a)]=a}var s=o.charAt(64);if(s){var l=e.indexOf(s);-1!==l&&(n=l)}return r(e,n,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url)),$D.exports;var e}var UD,qD={exports:{}};function KD(){return UD||(UD=1,qD.exports=(e=TD(),function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var l=a.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,a=e[t+0],l=e[t+1],p=e[t+2],f=e[t+3],m=e[t+4],g=e[t+5],v=e[t+6],y=e[t+7],b=e[t+8],w=e[t+9],x=e[t+10],_=e[t+11],k=e[t+12],C=e[t+13],S=e[t+14],E=e[t+15],D=i[0],O=i[1],M=i[2],T=i[3];D=c(D,O,M,T,a,7,s[0]),T=c(T,D,O,M,l,12,s[1]),M=c(M,T,D,O,p,17,s[2]),O=c(O,M,T,D,f,22,s[3]),D=c(D,O,M,T,m,7,s[4]),T=c(T,D,O,M,g,12,s[5]),M=c(M,T,D,O,v,17,s[6]),O=c(O,M,T,D,y,22,s[7]),D=c(D,O,M,T,b,7,s[8]),T=c(T,D,O,M,w,12,s[9]),M=c(M,T,D,O,x,17,s[10]),O=c(O,M,T,D,_,22,s[11]),D=c(D,O,M,T,k,7,s[12]),T=c(T,D,O,M,C,12,s[13]),M=c(M,T,D,O,S,17,s[14]),D=u(D,O=c(O,M,T,D,E,22,s[15]),M,T,l,5,s[16]),T=u(T,D,O,M,v,9,s[17]),M=u(M,T,D,O,_,14,s[18]),O=u(O,M,T,D,a,20,s[19]),D=u(D,O,M,T,g,5,s[20]),T=u(T,D,O,M,x,9,s[21]),M=u(M,T,D,O,E,14,s[22]),O=u(O,M,T,D,m,20,s[23]),D=u(D,O,M,T,w,5,s[24]),T=u(T,D,O,M,S,9,s[25]),M=u(M,T,D,O,f,14,s[26]),O=u(O,M,T,D,b,20,s[27]),D=u(D,O,M,T,C,5,s[28]),T=u(T,D,O,M,p,9,s[29]),M=u(M,T,D,O,y,14,s[30]),D=d(D,O=u(O,M,T,D,k,20,s[31]),M,T,g,4,s[32]),T=d(T,D,O,M,b,11,s[33]),M=d(M,T,D,O,_,16,s[34]),O=d(O,M,T,D,S,23,s[35]),D=d(D,O,M,T,l,4,s[36]),T=d(T,D,O,M,m,11,s[37]),M=d(M,T,D,O,y,16,s[38]),O=d(O,M,T,D,x,23,s[39]),D=d(D,O,M,T,C,4,s[40]),T=d(T,D,O,M,a,11,s[41]),M=d(M,T,D,O,f,16,s[42]),O=d(O,M,T,D,v,23,s[43]),D=d(D,O,M,T,w,4,s[44]),T=d(T,D,O,M,k,11,s[45]),M=d(M,T,D,O,E,16,s[46]),D=h(D,O=d(O,M,T,D,p,23,s[47]),M,T,a,6,s[48]),T=h(T,D,O,M,y,10,s[49]),M=h(M,T,D,O,S,15,s[50]),O=h(O,M,T,D,g,21,s[51]),D=h(D,O,M,T,k,6,s[52]),T=h(T,D,O,M,f,10,s[53]),M=h(M,T,D,O,x,15,s[54]),O=h(O,M,T,D,l,21,s[55]),D=h(D,O,M,T,b,6,s[56]),T=h(T,D,O,M,E,10,s[57]),M=h(M,T,D,O,v,15,s[58]),O=h(O,M,T,D,C,21,s[59]),D=h(D,O,M,T,m,6,s[60]),T=h(T,D,O,M,_,10,s[61]),M=h(M,T,D,O,p,15,s[62]),O=h(O,M,T,D,w,21,s[63]),i[0]=i[0]+D|0,i[1]=i[1]+O|0,i[2]=i[2]+M|0,i[3]=i[3]+T|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;n[o>>>5]|=128<<24-o%32;var i=t.floor(r/4294967296),a=r;n[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,r,o,i,a){var s=e+(t&n|~t&r)+o+a;return(s<<i|s>>>32-i)+t}function u(e,t,n,r,o,i,a){var s=e+(t&r|n&~r)+o+a;return(s<<i|s>>>32-i)+t}function d(e,t,n,r,o,i,a){var s=e+(t^n^r)+o+a;return(s<<i|s>>>32-i)+t}function h(e,t,n,r,o,i,a){var s=e+(n^(t|~r))+o+a;return(s<<i|s>>>32-i)+t}n.MD5=i._createHelper(l),n.HmacMD5=i._createHmacHelper(l)}(Math),e.MD5)),qD.exports;var e}var GD,ZD={exports:{}};function QD(){return GD||(GD=1,ZD.exports=(s=TD(),t=(e=s).lib,n=t.WordArray,r=t.Hasher,o=e.algo,i=[],a=o.SHA1=r.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],a=n[2],s=n[3],l=n[4],c=0;c<80;c++){if(c<16)i[c]=0|e[t+c];else{var u=i[c-3]^i[c-8]^i[c-14]^i[c-16];i[c]=u<<1|u>>>31}var d=(r<<5|r>>>27)+l+i[c];d+=c<20?1518500249+(o&a|~o&s):c<40?1859775393+(o^a^s):c<60?(o&a|o&s|a&s)-1894007588:(o^a^s)-899497514,l=s,s=a,a=o<<30|o>>>2,o=r,r=d}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA1=r._createHelper(a),e.HmacSHA1=r._createHmacHelper(a),s.SHA1)),ZD.exports;var e,t,n,r,o,i,a,s}var XD,JD={exports:{}};function eO(){return XD||(XD=1,JD.exports=(e=TD(),function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.algo,s=[],l=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)e(r)&&(o<8&&(s[o]=n(t.pow(r,.5))),l[o]=n(t.pow(r,1/3)),o++),r++}();var c=[],u=a.SHA256=i.extend({_doReset:function(){this._hash=new o.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],u=n[5],d=n[6],h=n[7],p=0;p<64;p++){if(p<16)c[p]=0|e[t+p];else{var f=c[p-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=c[p-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[p]=m+c[p-7]+v+c[p-16]}var y=r&o^r&i^o&i,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&d)+l[p]+c[p];h=d,d=u,u=s,s=a+w|0,a=i,i=o,o=r,r=w+(b+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=t.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=i._createHelper(u),n.HmacSHA256=i._createHmacHelper(u)}(Math),e.SHA256)),JD.exports;var e}var tO,nO={exports:{}};var rO,oO={exports:{}};function iO(){return rO||(rO=1,oO.exports=(e=TD(),AD(),function(){var t=e,n=t.lib.Hasher,r=t.x64,o=r.Word,i=r.WordArray,a=t.algo;function s(){return o.create.apply(o,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var u=a.SHA512=n.extend({_doReset:function(){this._hash=new i.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],u=n[5],d=n[6],h=n[7],p=r.high,f=r.low,m=o.high,g=o.low,v=i.high,y=i.low,b=a.high,w=a.low,x=s.high,_=s.low,k=u.high,C=u.low,S=d.high,E=d.low,D=h.high,O=h.low,M=p,T=f,N=m,P=g,A=v,j=y,R=b,L=w,I=x,F=_,H=k,B=C,Y=S,z=E,W=D,$=O,V=0;V<80;V++){var U,q,K=c[V];if(V<16)q=K.high=0|e[t+2*V],U=K.low=0|e[t+2*V+1];else{var G=c[V-15],Z=G.high,Q=G.low,X=(Z>>>1|Q<<31)^(Z>>>8|Q<<24)^Z>>>7,J=(Q>>>1|Z<<31)^(Q>>>8|Z<<24)^(Q>>>7|Z<<25),ee=c[V-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,oe=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ie=c[V-7],ae=ie.high,se=ie.low,le=c[V-16],ce=le.high,ue=le.low;q=(q=(q=X+ae+((U=J+se)>>>0<J>>>0?1:0))+re+((U+=oe)>>>0<oe>>>0?1:0))+ce+((U+=ue)>>>0<ue>>>0?1:0),K.high=q,K.low=U}var de,he=I&H^~I&Y,pe=F&B^~F&z,fe=M&N^M&A^N&A,me=T&P^T&j^P&j,ge=(M>>>28|T<<4)^(M<<30|T>>>2)^(M<<25|T>>>7),ve=(T>>>28|M<<4)^(T<<30|M>>>2)^(T<<25|M>>>7),ye=(I>>>14|F<<18)^(I>>>18|F<<14)^(I<<23|F>>>9),be=(F>>>14|I<<18)^(F>>>18|I<<14)^(F<<23|I>>>9),we=l[V],xe=we.high,_e=we.low,ke=W+ye+((de=$+be)>>>0<$>>>0?1:0),Ce=ve+me;W=Y,$=z,Y=H,z=B,H=I,B=F,I=R+(ke=(ke=(ke=ke+he+((de+=pe)>>>0<pe>>>0?1:0))+xe+((de+=_e)>>>0<_e>>>0?1:0))+q+((de+=U)>>>0<U>>>0?1:0))+((F=L+de|0)>>>0<L>>>0?1:0)|0,R=A,L=j,A=N,j=P,N=M,P=T,M=ke+(ge+fe+(Ce>>>0<ve>>>0?1:0))+((T=de+Ce|0)>>>0<de>>>0?1:0)|0}f=r.low=f+T,r.high=p+M+(f>>>0<T>>>0?1:0),g=o.low=g+P,o.high=m+N+(g>>>0<P>>>0?1:0),y=i.low=y+j,i.high=v+A+(y>>>0<j>>>0?1:0),w=a.low=w+L,a.high=b+R+(w>>>0<L>>>0?1:0),_=s.low=_+F,s.high=x+I+(_>>>0<F>>>0?1:0),C=u.low=C+B,u.high=k+H+(C>>>0<B>>>0?1:0),E=d.low=E+z,d.high=S+Y+(E>>>0<z>>>0?1:0),O=h.low=O+$,h.high=D+W+(O>>>0<$>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=n._createHelper(u),t.HmacSHA512=n._createHmacHelper(u)}(),e.SHA512)),oO.exports;var e}var aO,sO={exports:{}};var lO,cO={exports:{}};function uO(){return lO||(lO=1,cO.exports=(e=TD(),AD(),function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.x64.Word,s=n.algo,l=[],c=[],u=[];!function(){for(var e=1,t=0,n=0;n<24;n++){l[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,i=0;i<24;i++){for(var s=0,d=0,h=0;h<7;h++){if(1&o){var p=(1<<h)-1;p<32?d^=1<<p:s^=1<<p-32}128&o?o=o<<1^113:o<<=1}u[i]=a.create(s,d)}}();var d=[];!function(){for(var e=0;e<25;e++)d[e]=a.create()}();var h=s.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,o=0;o<r;o++){var i=e[t+2*o],a=e[t+2*o+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(O=n[o]).high^=a,O.low^=i}for(var s=0;s<24;s++){for(var h=0;h<5;h++){for(var p=0,f=0,m=0;m<5;m++)p^=(O=n[h+5*m]).high,f^=O.low;var g=d[h];g.high=p,g.low=f}for(h=0;h<5;h++){var v=d[(h+4)%5],y=d[(h+1)%5],b=y.high,w=y.low;for(p=v.high^(b<<1|w>>>31),f=v.low^(w<<1|b>>>31),m=0;m<5;m++)(O=n[h+5*m]).high^=p,O.low^=f}for(var x=1;x<25;x++){var _=(O=n[x]).high,k=O.low,C=l[x];C<32?(p=_<<C|k>>>32-C,f=k<<C|_>>>32-C):(p=k<<C-32|_>>>64-C,f=_<<C-32|k>>>64-C);var S=d[c[x]];S.high=p,S.low=f}var E=d[0],D=n[0];for(E.high=D.high,E.low=D.low,h=0;h<5;h++)for(m=0;m<5;m++){var O=n[x=h+5*m],M=d[x],T=d[(h+1)%5+5*m],N=d[(h+2)%5+5*m];O.high=M.high^~T.high&N.high,O.low=M.low^~T.low&N.low}O=n[0];var P=u[s];O.high^=P.high,O.low^=P.low}},_doFinalize:function(){var e=this._data,n=e.words;this._nDataBytes;var r=8*e.sigBytes,i=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/i)*i>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],u=0;u<l;u++){var d=a[u],h=d.high,p=d.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),c.push(p),c.push(h)}return new o.init(c,s)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=i._createHelper(h),n.HmacSHA3=i._createHmacHelper(h)}(Math),e.SHA3)),cO.exports;var e}var dO,hO={exports:{}};var pO,fO={exports:{}};function mO(){return pO||(pO=1,fO.exports=(e=TD(),n=(t=e).lib.Base,r=t.enc.Utf8,void(t.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,o=4*n;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),s=i.words,l=a.words,c=0;c<n;c++)s[c]^=1549556828,l[c]^=909522486;i.sigBytes=a.sigBytes=o,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))),fO.exports;var e,t,n,r}var gO,vO={exports:{}};var yO,bO={exports:{}};function wO(){return yO||(yO=1,bO.exports=(s=TD(),QD(),mO(),t=(e=s).lib,n=t.Base,r=t.WordArray,o=e.algo,i=o.MD5,a=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:i,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,o=this.cfg,i=o.hasher.create(),a=r.create(),s=a.words,l=o.keySize,c=o.iterations;s.length<l;){n&&i.update(n),n=i.update(e).finalize(t),i.reset();for(var u=1;u<c;u++)n=i.finalize(n),i.reset();a.concat(n)}return a.sigBytes=4*l,a}}),e.EvpKDF=function(e,t,n){return a.create(n).compute(e,t)},s.EvpKDF)),bO.exports;var e,t,n,r,o,i,a,s}var xO,_O={exports:{}};function kO(){return xO||(xO=1,_O.exports=(e=TD(),wO(),void(e.lib.Cipher||function(t){var n=e,r=n.lib,o=r.Base,i=r.WordArray,a=r.BufferedBlockAlgorithm,s=n.enc;s.Utf8;var l=s.Base64,c=n.algo.EvpKDF,u=r.Cipher=a.extend({cfg:o.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?b:v}return function(t){return{encrypt:function(n,r,o){return e(r).encrypt(t,n,r,o)},decrypt:function(n,r,o){return e(r).decrypt(t,n,r,o)}}}}()});r.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var d=n.mode={},h=r.BlockCipherMode=o.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=d.CBC=function(){var e=h.extend();function n(e,n,r){var o,i=this._iv;i?(o=i,this._iv=t):o=this._prevBlock;for(var a=0;a<r;a++)e[n+a]^=o[a]}return e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize;n.call(this,e,t,o),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+o)}}),e.Decryptor=e.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,i=e.slice(t,t+o);r.decryptBlock(e,t),n.call(this,e,t,o),this._prevBlock=i}}),e}(),f=(n.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,o=r<<24|r<<16|r<<8|r,a=[],s=0;s<r;s+=4)a.push(o);var l=i.create(a,r);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};r.BlockCipher=u.extend({cfg:u.cfg.extend({mode:p,padding:f}),reset:function(){var e;u.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var m=r.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(n.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?i.create([1398893684,1701076831]).concat(n).concat(t):t).toString(l)},parse:function(e){var t,n=l.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=i.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),m.create({ciphertext:n,salt:t})}},v=r.SerializableCipher=o.extend({cfg:o.extend({format:g}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=e.createEncryptor(n,r),i=o.finalize(t),a=o.cfg;return m.create({ciphertext:i,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),y=(n.kdf={}).OpenSSL={execute:function(e,t,n,r,o){if(r||(r=i.random(8)),o)a=c.create({keySize:t+n,hasher:o}).compute(e,r);else var a=c.create({keySize:t+n}).compute(e,r);var s=i.create(a.words.slice(t),4*n);return a.sigBytes=4*t,m.create({key:a,iv:s,salt:r})}},b=r.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:y}),encrypt:function(e,t,n,r){var o=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=o.iv;var i=v.encrypt.call(this,e,t,o.key,r);return i.mixIn(o),i},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var o=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);return r.iv=o.iv,v.decrypt.call(this,e,t,o.key,r)}})}()))),_O.exports;var e}var CO,SO={exports:{}};var EO,DO={exports:{}};var OO,MO={exports:{}};function TO(){return OO||(OO=1,MO.exports=(e=TD(),kO(),
1261
+ */"production"===process.env.NODE_ENV?oD.exports=function(){if(uD)return iD;uD=1;var e=t,n=pD(),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useSyncExternalStore,i=e.useRef,a=e.useEffect,s=e.useMemo,l=e.useDebugValue;return iD.useSyncExternalStoreWithSelector=function(e,t,n,c,u){var d=i(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;d=s((function(){function e(e){if(!a){if(a=!0,o=e,e=c(e),void 0!==u&&h.hasValue){var t=h.value;if(u(t,e))return i=t}return i=e}if(t=i,r(o,e))return t;var n=c(e);return void 0!==u&&u(t,n)?t:(o=e,i=n)}var o,i,a=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,n,c,u]);var p=o(e,d[0],d[1]);return a((function(){h.hasValue=!0,h.value=p}),[p]),l(p),p},iD}():oD.exports=(fD||(fD=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=t,n=pD(),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useSyncExternalStore,i=e.useRef,a=e.useEffect,s=e.useMemo,l=e.useDebugValue;mD.useSyncExternalStoreWithSelector=function(e,t,n,c,u){var d,h=i(null);null===h.current?(d={hasValue:!1,value:null},h.current=d):d=h.current;var p=s((function(){var e,o,i=!1,a=function(t){if(!i){i=!0,e=t;var n=c(t);if(void 0!==u&&d.hasValue){var a=d.value;if(u(a,n))return o=a,a}return o=n,n}var s=o;if(r(e,t))return s;var l=c(t);return void 0!==u&&u(s,l)?s:(e=t,o=l,l)},s=void 0===n?null:n;return[function(){return a(t())},null===s?void 0:function(){return a(s())}]}),[t,n,c,u]),f=p[0],m=p[1],g=o(e,f,m);return a((function(){d.hasValue=!0,d.value=g}),[g]),l(g),g},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),mD);const gD=x(oD.exports);var vD={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};const{useDebugValue:yD}=t,{useSyncExternalStoreWithSelector:bD}=gD;let wD=!1;const xD=e=>e;const _D=e=>{const t="function"==typeof e?(e=>e?nD(e):nD)(e):e,n=(e,n)=>function(e,t=xD,n){"production"!==(vD?"production":void 0)&&n&&!wD&&(wD=!0);const r=bD(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return yD(r),r}(t,e,n);return Object.assign(n,t),n},kD=e=>e?_D(e):_D;class CD extends Error{}function SD(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(n){return atob(t)}}function ED(e,t){if("string"!=typeof e)throw new CD("Invalid token specified: must be a string");t||(t={});const n=!0===t.header?0:1,r=e.split(".")[n];if("string"!=typeof r)throw new CD(`Invalid token specified: missing part #${n+1}`);let o;try{o=SD(r)}catch(i){throw new CD(`Invalid token specified: invalid base64 for part #${n+1} (${i.message})`)}try{return JSON.parse(o)}catch(i){throw new CD(`Invalid token specified: invalid json for part #${n+1} (${i.message})`)}}CD.prototype.name="InvalidTokenError";var DD={exports:{}};var OD={exports:{}};const MD=_(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var TD;function ND(){return TD||(TD=1,OD.exports=(e=e||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==w&&w.crypto&&(n=w.crypto),!n)try{n=MD}catch(m){}var r=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(m){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(m){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),i={},a=i.lib={},s=a.Base=function(){return{extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),l=a.WordArray=s.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var a=n[i>>>2]>>>24-i%4*8&255;t[r+i>>>2]|=a<<24-(r+i)%4*8}else for(var s=0;s<o;s+=4)t[r+s>>>2]=n[s>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new l.init(t,e)}}),c=i.enc={},u=c.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new l.init(n,t/2)}},d=c.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new l.init(n,t)}},h=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},p=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,o=r.words,i=r.sigBytes,a=this.blockSize,s=i/(4*a),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,u=e.min(4*c,i);if(c){for(var d=0;d<c;d+=a)this._doProcessBlock(o,d);n=o.splice(0,c),r.sigBytes-=u}return new l.init(n,u)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=p.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new f.HMAC.init(e,n).finalize(t)}}});var f=i.algo={};return i}(Math),e)),OD.exports;var e}var PD,AD={exports:{}};function jD(){return PD||(PD=1,AD.exports=(a=ND(),n=(t=a).lib,r=n.Base,o=n.WordArray,(i=t.x64={}).Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),i.WordArray=r.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var i=e[r];n.push(i.high),n.push(i.low)}return o.create(n,this.sigBytes)},clone:function(){for(var e=r.clone.call(this),t=e.words=this.words.slice(0),n=t.length,o=0;o<n;o++)t[o]=t[o].clone();return e}}),a)),AD.exports;var e,t,n,r,o,i,a}var RD,LD={exports:{}};function ID(){return RD||(RD=1,LD.exports=(e=ND(),function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,n=t.init,r=t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,r=[],o=0;o<t;o++)r[o>>>2]|=e[o]<<24-o%4*8;n.call(this,r,t)}else n.apply(this,arguments)};r.prototype=t}}(),e.lib.WordArray)),LD.exports;var e}var FD,HD={exports:{}};function BD(){return FD||(FD=1,HD.exports=(e=ND(),function(){var t=e,n=t.lib.WordArray,r=t.enc;function o(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o+=2){var i=t[o>>>2]>>>16-o%4*8&65535;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,r=[],o=0;o<t;o++)r[o>>>1]|=e.charCodeAt(o)<<16-o%2*16;return n.create(r,2*t)}},r.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i+=2){var a=o(t[i>>>2]>>>16-i%4*8&65535);r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i<t;i++)r[i>>>1]|=o(e.charCodeAt(i)<<16-i%2*16);return n.create(r,2*t)}}}(),e.enc.Utf16)),HD.exports;var e}var YD,zD={exports:{}};function WD(){return YD||(YD=1,zD.exports=(e=ND(),function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var o=[],i=0,a=0;a<t;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2|r[e.charCodeAt(a)]>>>6-a%4*2;o[i>>>2]|=s<<24-i%4*8,i++}return n.create(o,i)}t.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],i=0;i<n;i+=3)for(var a=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s<n;s++)o.push(r.charAt(a>>>6*(3-s)&63));var l=r.charAt(64);if(l)for(;o.length%4;)o.push(l);return o.join("")},parse:function(e){var t=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<n.length;i++)o[n.charCodeAt(i)]=i}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return r(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64)),zD.exports;var e}var $D,VD={exports:{}};function UD(){return $D||($D=1,VD.exports=(e=ND(),function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var o=[],i=0,a=0;a<t;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2|r[e.charCodeAt(a)]>>>6-a%4*2;o[i>>>2]|=s<<24-i%4*8,i++}return n.create(o,i)}t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var n=e.words,r=e.sigBytes,o=t?this._safe_map:this._map;e.clamp();for(var i=[],a=0;a<r;a+=3)for(var s=(n[a>>>2]>>>24-a%4*8&255)<<16|(n[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|n[a+2>>>2]>>>24-(a+2)%4*8&255,l=0;l<4&&a+.75*l<r;l++)i.push(o.charAt(s>>>6*(3-l)&63));var c=o.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,o=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a<o.length;a++)i[o.charCodeAt(a)]=a}var s=o.charAt(64);if(s){var l=e.indexOf(s);-1!==l&&(n=l)}return r(e,n,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url)),VD.exports;var e}var qD,KD={exports:{}};function GD(){return qD||(qD=1,KD.exports=(e=ND(),function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var l=a.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,a=e[t+0],l=e[t+1],p=e[t+2],f=e[t+3],m=e[t+4],g=e[t+5],v=e[t+6],y=e[t+7],b=e[t+8],w=e[t+9],x=e[t+10],_=e[t+11],k=e[t+12],C=e[t+13],S=e[t+14],E=e[t+15],D=i[0],O=i[1],M=i[2],T=i[3];D=c(D,O,M,T,a,7,s[0]),T=c(T,D,O,M,l,12,s[1]),M=c(M,T,D,O,p,17,s[2]),O=c(O,M,T,D,f,22,s[3]),D=c(D,O,M,T,m,7,s[4]),T=c(T,D,O,M,g,12,s[5]),M=c(M,T,D,O,v,17,s[6]),O=c(O,M,T,D,y,22,s[7]),D=c(D,O,M,T,b,7,s[8]),T=c(T,D,O,M,w,12,s[9]),M=c(M,T,D,O,x,17,s[10]),O=c(O,M,T,D,_,22,s[11]),D=c(D,O,M,T,k,7,s[12]),T=c(T,D,O,M,C,12,s[13]),M=c(M,T,D,O,S,17,s[14]),D=u(D,O=c(O,M,T,D,E,22,s[15]),M,T,l,5,s[16]),T=u(T,D,O,M,v,9,s[17]),M=u(M,T,D,O,_,14,s[18]),O=u(O,M,T,D,a,20,s[19]),D=u(D,O,M,T,g,5,s[20]),T=u(T,D,O,M,x,9,s[21]),M=u(M,T,D,O,E,14,s[22]),O=u(O,M,T,D,m,20,s[23]),D=u(D,O,M,T,w,5,s[24]),T=u(T,D,O,M,S,9,s[25]),M=u(M,T,D,O,f,14,s[26]),O=u(O,M,T,D,b,20,s[27]),D=u(D,O,M,T,C,5,s[28]),T=u(T,D,O,M,p,9,s[29]),M=u(M,T,D,O,y,14,s[30]),D=d(D,O=u(O,M,T,D,k,20,s[31]),M,T,g,4,s[32]),T=d(T,D,O,M,b,11,s[33]),M=d(M,T,D,O,_,16,s[34]),O=d(O,M,T,D,S,23,s[35]),D=d(D,O,M,T,l,4,s[36]),T=d(T,D,O,M,m,11,s[37]),M=d(M,T,D,O,y,16,s[38]),O=d(O,M,T,D,x,23,s[39]),D=d(D,O,M,T,C,4,s[40]),T=d(T,D,O,M,a,11,s[41]),M=d(M,T,D,O,f,16,s[42]),O=d(O,M,T,D,v,23,s[43]),D=d(D,O,M,T,w,4,s[44]),T=d(T,D,O,M,k,11,s[45]),M=d(M,T,D,O,E,16,s[46]),D=h(D,O=d(O,M,T,D,p,23,s[47]),M,T,a,6,s[48]),T=h(T,D,O,M,y,10,s[49]),M=h(M,T,D,O,S,15,s[50]),O=h(O,M,T,D,g,21,s[51]),D=h(D,O,M,T,k,6,s[52]),T=h(T,D,O,M,f,10,s[53]),M=h(M,T,D,O,x,15,s[54]),O=h(O,M,T,D,l,21,s[55]),D=h(D,O,M,T,b,6,s[56]),T=h(T,D,O,M,E,10,s[57]),M=h(M,T,D,O,v,15,s[58]),O=h(O,M,T,D,C,21,s[59]),D=h(D,O,M,T,m,6,s[60]),T=h(T,D,O,M,_,10,s[61]),M=h(M,T,D,O,p,15,s[62]),O=h(O,M,T,D,w,21,s[63]),i[0]=i[0]+D|0,i[1]=i[1]+O|0,i[2]=i[2]+M|0,i[3]=i[3]+T|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;n[o>>>5]|=128<<24-o%32;var i=t.floor(r/4294967296),a=r;n[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,r,o,i,a){var s=e+(t&n|~t&r)+o+a;return(s<<i|s>>>32-i)+t}function u(e,t,n,r,o,i,a){var s=e+(t&r|n&~r)+o+a;return(s<<i|s>>>32-i)+t}function d(e,t,n,r,o,i,a){var s=e+(t^n^r)+o+a;return(s<<i|s>>>32-i)+t}function h(e,t,n,r,o,i,a){var s=e+(n^(t|~r))+o+a;return(s<<i|s>>>32-i)+t}n.MD5=i._createHelper(l),n.HmacMD5=i._createHmacHelper(l)}(Math),e.MD5)),KD.exports;var e}var ZD,QD={exports:{}};function XD(){return ZD||(ZD=1,QD.exports=(s=ND(),t=(e=s).lib,n=t.WordArray,r=t.Hasher,o=e.algo,i=[],a=o.SHA1=r.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],a=n[2],s=n[3],l=n[4],c=0;c<80;c++){if(c<16)i[c]=0|e[t+c];else{var u=i[c-3]^i[c-8]^i[c-14]^i[c-16];i[c]=u<<1|u>>>31}var d=(r<<5|r>>>27)+l+i[c];d+=c<20?1518500249+(o&a|~o&s):c<40?1859775393+(o^a^s):c<60?(o&a|o&s|a&s)-1894007588:(o^a^s)-899497514,l=s,s=a,a=o<<30|o>>>2,o=r,r=d}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA1=r._createHelper(a),e.HmacSHA1=r._createHmacHelper(a),s.SHA1)),QD.exports;var e,t,n,r,o,i,a,s}var JD,eO={exports:{}};function tO(){return JD||(JD=1,eO.exports=(e=ND(),function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.algo,s=[],l=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)e(r)&&(o<8&&(s[o]=n(t.pow(r,.5))),l[o]=n(t.pow(r,1/3)),o++),r++}();var c=[],u=a.SHA256=i.extend({_doReset:function(){this._hash=new o.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],u=n[5],d=n[6],h=n[7],p=0;p<64;p++){if(p<16)c[p]=0|e[t+p];else{var f=c[p-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=c[p-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[p]=m+c[p-7]+v+c[p-16]}var y=r&o^r&i^o&i,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&d)+l[p]+c[p];h=d,d=u,u=s,s=a+w|0,a=i,i=o,o=r,r=w+(b+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=t.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=i._createHelper(u),n.HmacSHA256=i._createHmacHelper(u)}(Math),e.SHA256)),eO.exports;var e}var nO,rO={exports:{}};var oO,iO={exports:{}};function aO(){return oO||(oO=1,iO.exports=(e=ND(),jD(),function(){var t=e,n=t.lib.Hasher,r=t.x64,o=r.Word,i=r.WordArray,a=t.algo;function s(){return o.create.apply(o,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var u=a.SHA512=n.extend({_doReset:function(){this._hash=new i.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],u=n[5],d=n[6],h=n[7],p=r.high,f=r.low,m=o.high,g=o.low,v=i.high,y=i.low,b=a.high,w=a.low,x=s.high,_=s.low,k=u.high,C=u.low,S=d.high,E=d.low,D=h.high,O=h.low,M=p,T=f,N=m,P=g,A=v,j=y,R=b,L=w,I=x,F=_,H=k,B=C,Y=S,z=E,W=D,$=O,V=0;V<80;V++){var U,q,K=c[V];if(V<16)q=K.high=0|e[t+2*V],U=K.low=0|e[t+2*V+1];else{var G=c[V-15],Z=G.high,Q=G.low,X=(Z>>>1|Q<<31)^(Z>>>8|Q<<24)^Z>>>7,J=(Q>>>1|Z<<31)^(Q>>>8|Z<<24)^(Q>>>7|Z<<25),ee=c[V-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,oe=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ie=c[V-7],ae=ie.high,se=ie.low,le=c[V-16],ce=le.high,ue=le.low;q=(q=(q=X+ae+((U=J+se)>>>0<J>>>0?1:0))+re+((U+=oe)>>>0<oe>>>0?1:0))+ce+((U+=ue)>>>0<ue>>>0?1:0),K.high=q,K.low=U}var de,he=I&H^~I&Y,pe=F&B^~F&z,fe=M&N^M&A^N&A,me=T&P^T&j^P&j,ge=(M>>>28|T<<4)^(M<<30|T>>>2)^(M<<25|T>>>7),ve=(T>>>28|M<<4)^(T<<30|M>>>2)^(T<<25|M>>>7),ye=(I>>>14|F<<18)^(I>>>18|F<<14)^(I<<23|F>>>9),be=(F>>>14|I<<18)^(F>>>18|I<<14)^(F<<23|I>>>9),we=l[V],xe=we.high,_e=we.low,ke=W+ye+((de=$+be)>>>0<$>>>0?1:0),Ce=ve+me;W=Y,$=z,Y=H,z=B,H=I,B=F,I=R+(ke=(ke=(ke=ke+he+((de+=pe)>>>0<pe>>>0?1:0))+xe+((de+=_e)>>>0<_e>>>0?1:0))+q+((de+=U)>>>0<U>>>0?1:0))+((F=L+de|0)>>>0<L>>>0?1:0)|0,R=A,L=j,A=N,j=P,N=M,P=T,M=ke+(ge+fe+(Ce>>>0<ve>>>0?1:0))+((T=de+Ce|0)>>>0<de>>>0?1:0)|0}f=r.low=f+T,r.high=p+M+(f>>>0<T>>>0?1:0),g=o.low=g+P,o.high=m+N+(g>>>0<P>>>0?1:0),y=i.low=y+j,i.high=v+A+(y>>>0<j>>>0?1:0),w=a.low=w+L,a.high=b+R+(w>>>0<L>>>0?1:0),_=s.low=_+F,s.high=x+I+(_>>>0<F>>>0?1:0),C=u.low=C+B,u.high=k+H+(C>>>0<B>>>0?1:0),E=d.low=E+z,d.high=S+Y+(E>>>0<z>>>0?1:0),O=h.low=O+$,h.high=D+W+(O>>>0<$>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=n._createHelper(u),t.HmacSHA512=n._createHmacHelper(u)}(),e.SHA512)),iO.exports;var e}var sO,lO={exports:{}};var cO,uO={exports:{}};function dO(){return cO||(cO=1,uO.exports=(e=ND(),jD(),function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.x64.Word,s=n.algo,l=[],c=[],u=[];!function(){for(var e=1,t=0,n=0;n<24;n++){l[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,i=0;i<24;i++){for(var s=0,d=0,h=0;h<7;h++){if(1&o){var p=(1<<h)-1;p<32?d^=1<<p:s^=1<<p-32}128&o?o=o<<1^113:o<<=1}u[i]=a.create(s,d)}}();var d=[];!function(){for(var e=0;e<25;e++)d[e]=a.create()}();var h=s.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,o=0;o<r;o++){var i=e[t+2*o],a=e[t+2*o+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(O=n[o]).high^=a,O.low^=i}for(var s=0;s<24;s++){for(var h=0;h<5;h++){for(var p=0,f=0,m=0;m<5;m++)p^=(O=n[h+5*m]).high,f^=O.low;var g=d[h];g.high=p,g.low=f}for(h=0;h<5;h++){var v=d[(h+4)%5],y=d[(h+1)%5],b=y.high,w=y.low;for(p=v.high^(b<<1|w>>>31),f=v.low^(w<<1|b>>>31),m=0;m<5;m++)(O=n[h+5*m]).high^=p,O.low^=f}for(var x=1;x<25;x++){var _=(O=n[x]).high,k=O.low,C=l[x];C<32?(p=_<<C|k>>>32-C,f=k<<C|_>>>32-C):(p=k<<C-32|_>>>64-C,f=_<<C-32|k>>>64-C);var S=d[c[x]];S.high=p,S.low=f}var E=d[0],D=n[0];for(E.high=D.high,E.low=D.low,h=0;h<5;h++)for(m=0;m<5;m++){var O=n[x=h+5*m],M=d[x],T=d[(h+1)%5+5*m],N=d[(h+2)%5+5*m];O.high=M.high^~T.high&N.high,O.low=M.low^~T.low&N.low}O=n[0];var P=u[s];O.high^=P.high,O.low^=P.low}},_doFinalize:function(){var e=this._data,n=e.words;this._nDataBytes;var r=8*e.sigBytes,i=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/i)*i>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],u=0;u<l;u++){var d=a[u],h=d.high,p=d.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),c.push(p),c.push(h)}return new o.init(c,s)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=i._createHelper(h),n.HmacSHA3=i._createHmacHelper(h)}(Math),e.SHA3)),uO.exports;var e}var hO,pO={exports:{}};var fO,mO={exports:{}};function gO(){return fO||(fO=1,mO.exports=(e=ND(),n=(t=e).lib.Base,r=t.enc.Utf8,void(t.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,o=4*n;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),s=i.words,l=a.words,c=0;c<n;c++)s[c]^=1549556828,l[c]^=909522486;i.sigBytes=a.sigBytes=o,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))),mO.exports;var e,t,n,r}var vO,yO={exports:{}};var bO,wO={exports:{}};function xO(){return bO||(bO=1,wO.exports=(s=ND(),XD(),gO(),t=(e=s).lib,n=t.Base,r=t.WordArray,o=e.algo,i=o.MD5,a=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:i,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,o=this.cfg,i=o.hasher.create(),a=r.create(),s=a.words,l=o.keySize,c=o.iterations;s.length<l;){n&&i.update(n),n=i.update(e).finalize(t),i.reset();for(var u=1;u<c;u++)n=i.finalize(n),i.reset();a.concat(n)}return a.sigBytes=4*l,a}}),e.EvpKDF=function(e,t,n){return a.create(n).compute(e,t)},s.EvpKDF)),wO.exports;var e,t,n,r,o,i,a,s}var _O,kO={exports:{}};function CO(){return _O||(_O=1,kO.exports=(e=ND(),xO(),void(e.lib.Cipher||function(t){var n=e,r=n.lib,o=r.Base,i=r.WordArray,a=r.BufferedBlockAlgorithm,s=n.enc;s.Utf8;var l=s.Base64,c=n.algo.EvpKDF,u=r.Cipher=a.extend({cfg:o.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?b:v}return function(t){return{encrypt:function(n,r,o){return e(r).encrypt(t,n,r,o)},decrypt:function(n,r,o){return e(r).decrypt(t,n,r,o)}}}}()});r.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var d=n.mode={},h=r.BlockCipherMode=o.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=d.CBC=function(){var e=h.extend();function n(e,n,r){var o,i=this._iv;i?(o=i,this._iv=t):o=this._prevBlock;for(var a=0;a<r;a++)e[n+a]^=o[a]}return e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize;n.call(this,e,t,o),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+o)}}),e.Decryptor=e.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,i=e.slice(t,t+o);r.decryptBlock(e,t),n.call(this,e,t,o),this._prevBlock=i}}),e}(),f=(n.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,o=r<<24|r<<16|r<<8|r,a=[],s=0;s<r;s+=4)a.push(o);var l=i.create(a,r);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};r.BlockCipher=u.extend({cfg:u.cfg.extend({mode:p,padding:f}),reset:function(){var e;u.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var m=r.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(n.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?i.create([1398893684,1701076831]).concat(n).concat(t):t).toString(l)},parse:function(e){var t,n=l.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=i.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),m.create({ciphertext:n,salt:t})}},v=r.SerializableCipher=o.extend({cfg:o.extend({format:g}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=e.createEncryptor(n,r),i=o.finalize(t),a=o.cfg;return m.create({ciphertext:i,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),y=(n.kdf={}).OpenSSL={execute:function(e,t,n,r,o){if(r||(r=i.random(8)),o)a=c.create({keySize:t+n,hasher:o}).compute(e,r);else var a=c.create({keySize:t+n}).compute(e,r);var s=i.create(a.words.slice(t),4*n);return a.sigBytes=4*t,m.create({key:a,iv:s,salt:r})}},b=r.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:y}),encrypt:function(e,t,n,r){var o=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=o.iv;var i=v.encrypt.call(this,e,t,o.key,r);return i.mixIn(o),i},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var o=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);return r.iv=o.iv,v.decrypt.call(this,e,t,o.key,r)}})}()))),kO.exports;var e}var SO,EO={exports:{}};var DO,OO={exports:{}};var MO,TO={exports:{}};function NO(){return MO||(MO=1,TO.exports=(e=ND(),CO(),
1262
1262
  /** @preserve
1263
1263
  * Counter block mode compatible with Dr Brian Gladman fileenc.c
1264
1264
  * derived from CryptoJS.mode.CTR
1265
1265
  * Jan Hruby jhruby.web@gmail.com
1266
1266
  */
1267
- e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function n(e){if(255&~(e>>24))e+=1<<24;else{var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}return e}function r(e){return 0===(e[0]=n(e[0]))&&(e[1]=n(e[1])),e}var o=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize,i=this._iv,a=this._counter;i&&(a=this._counter=i.slice(0),this._iv=void 0),r(a);var s=a.slice(0);n.encryptBlock(s,0);for(var l=0;l<o;l++)e[t+l]^=s[l]}});return t.Decryptor=o,t}(),e.mode.CTRGladman)),MO.exports;var e}var NO,PO={exports:{}};var AO,jO={exports:{}};var RO,LO={exports:{}};var IO,FO={exports:{}};var HO,BO={exports:{}};var YO,zO={exports:{}};var WO,$O={exports:{}};var VO,UO={exports:{}};var qO,KO={exports:{}};var GO,ZO={exports:{}};function QO(){return GO||(GO=1,ZO.exports=(e=TD(),zD(),KD(),wO(),kO(),function(){var t=e,n=t.lib,r=n.WordArray,o=n.BlockCipher,i=t.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=i.DES=o.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=a[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var o=this._subKeys=[],i=0;i<16;i++){var c=o[i]=[],u=l[i];for(n=0;n<24;n++)c[n/6|0]|=t[(s[n]-1+u)%28]<<31-n%6,c[4+(n/6|0)]|=t[28+(s[n+24]-1+u)%28]<<31-n%6;for(c[0]=c[0]<<1|c[0]>>>31,n=1;n<7;n++)c[n]=c[n]>>>4*(n-1)+3;c[7]=c[7]<<5|c[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=o[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],h.call(this,4,252645135),h.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),h.call(this,1,1431655765);for(var r=0;r<16;r++){for(var o=n[r],i=this._lBlock,a=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((a^o[l])&u[l])>>>0];this._lBlock=a,this._rBlock=i^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,h.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function p(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}t.DES=o._createHelper(d);var f=i.TripleDES=o.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(r.create(t)),this._des2=d.createEncryptor(r.create(n)),this._des3=d.createEncryptor(r.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=o._createHelper(f)}(),e.TripleDES)),ZO.exports;var e}var XO,JO={exports:{}};var eM,tM={exports:{}};var nM,rM={exports:{}};var oM,iM,aM,sM,lM,cM,uM,dM={exports:{}};function hM(){return oM||(oM=1,dM.exports=(e=TD(),zD(),KD(),wO(),kO(),function(){var t=e,n=t.lib.BlockCipher,r=t.algo;const o=16,i=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var s={pbox:[],sbox:[]};function l(e,t){let n=t>>24&255,r=t>>16&255,o=t>>8&255,i=255&t,a=e.sbox[0][n]+e.sbox[1][r];return a^=e.sbox[2][o],a+=e.sbox[3][i],a}function c(e,t,n){let r,i=t,a=n;for(let s=0;s<o;++s)i^=e.pbox[s],a=l(e,i)^a,r=i,i=a,a=r;return r=i,i=a,a=r,a^=e.pbox[o],i^=e.pbox[o+1],{left:i,right:a}}function u(e,t,n){let r,i=t,a=n;for(let s=o+1;s>1;--s)i^=e.pbox[s],a=l(e,i)^a,r=i,i=a,a=r;return r=i,i=a,a=r,a^=e.pbox[1],i^=e.pbox[0],{left:i,right:a}}function d(e,t,n){for(let o=0;o<4;o++){e.sbox[o]=[];for(let t=0;t<256;t++)e.sbox[o][t]=a[o][t]}let r=0;for(let a=0;a<o+2;a++)e.pbox[a]=i[a]^t[r],r++,r>=n&&(r=0);let s=0,l=0,u=0;for(let i=0;i<o+2;i+=2)u=c(e,s,l),s=u.left,l=u.right,e.pbox[i]=s,e.pbox[i+1]=l;for(let o=0;o<4;o++)for(let t=0;t<256;t+=2)u=c(e,s,l),s=u.left,l=u.right,e.sbox[o][t]=s,e.sbox[o][t+1]=l;return!0}var h=r.Blowfish=n.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4;d(s,t,n)}},encryptBlock:function(e,t){var n=c(s,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},decryptBlock:function(e,t){var n=u(s,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=n._createHelper(h)}(),e.Blowfish)),dM.exports;var e}ED.exports=function(e){return e}(TD(),AD(),LD(),HD(),zD(),VD(),KD(),QD(),eO(),tO||(tO=1,nO.exports=(uM=TD(),eO(),aM=(iM=uM).lib.WordArray,sM=iM.algo,lM=sM.SHA256,cM=sM.SHA224=lM.extend({_doReset:function(){this._hash=new aM.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=lM._doFinalize.call(this);return e.sigBytes-=4,e}}),iM.SHA224=lM._createHelper(cM),iM.HmacSHA224=lM._createHmacHelper(cM),uM.SHA224)),iO(),function(){return aO||(aO=1,sO.exports=(s=TD(),AD(),iO(),t=(e=s).x64,n=t.Word,r=t.WordArray,o=e.algo,i=o.SHA512,a=o.SHA384=i.extend({_doReset:function(){this._hash=new r.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=16,e}}),e.SHA384=i._createHelper(a),e.HmacSHA384=i._createHmacHelper(a),s.SHA384)),sO.exports;var e,t,n,r,o,i,a,s}(),uO(),function(){return dO||(dO=1,hO.exports=(e=TD(),
1267
+ e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function n(e){if(255&~(e>>24))e+=1<<24;else{var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}return e}function r(e){return 0===(e[0]=n(e[0]))&&(e[1]=n(e[1])),e}var o=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize,i=this._iv,a=this._counter;i&&(a=this._counter=i.slice(0),this._iv=void 0),r(a);var s=a.slice(0);n.encryptBlock(s,0);for(var l=0;l<o;l++)e[t+l]^=s[l]}});return t.Decryptor=o,t}(),e.mode.CTRGladman)),TO.exports;var e}var PO,AO={exports:{}};var jO,RO={exports:{}};var LO,IO={exports:{}};var FO,HO={exports:{}};var BO,YO={exports:{}};var zO,WO={exports:{}};var $O,VO={exports:{}};var UO,qO={exports:{}};var KO,GO={exports:{}};var ZO,QO={exports:{}};function XO(){return ZO||(ZO=1,QO.exports=(e=ND(),WD(),GD(),xO(),CO(),function(){var t=e,n=t.lib,r=n.WordArray,o=n.BlockCipher,i=t.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=i.DES=o.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=a[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var o=this._subKeys=[],i=0;i<16;i++){var c=o[i]=[],u=l[i];for(n=0;n<24;n++)c[n/6|0]|=t[(s[n]-1+u)%28]<<31-n%6,c[4+(n/6|0)]|=t[28+(s[n+24]-1+u)%28]<<31-n%6;for(c[0]=c[0]<<1|c[0]>>>31,n=1;n<7;n++)c[n]=c[n]>>>4*(n-1)+3;c[7]=c[7]<<5|c[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=o[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],h.call(this,4,252645135),h.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),h.call(this,1,1431655765);for(var r=0;r<16;r++){for(var o=n[r],i=this._lBlock,a=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((a^o[l])&u[l])>>>0];this._lBlock=a,this._rBlock=i^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,h.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function p(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}t.DES=o._createHelper(d);var f=i.TripleDES=o.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(r.create(t)),this._des2=d.createEncryptor(r.create(n)),this._des3=d.createEncryptor(r.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=o._createHelper(f)}(),e.TripleDES)),QO.exports;var e}var JO,eM={exports:{}};var tM,nM={exports:{}};var rM,oM={exports:{}};var iM,aM,sM,lM,cM,uM,dM,hM={exports:{}};function pM(){return iM||(iM=1,hM.exports=(e=ND(),WD(),GD(),xO(),CO(),function(){var t=e,n=t.lib.BlockCipher,r=t.algo;const o=16,i=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var s={pbox:[],sbox:[]};function l(e,t){let n=t>>24&255,r=t>>16&255,o=t>>8&255,i=255&t,a=e.sbox[0][n]+e.sbox[1][r];return a^=e.sbox[2][o],a+=e.sbox[3][i],a}function c(e,t,n){let r,i=t,a=n;for(let s=0;s<o;++s)i^=e.pbox[s],a=l(e,i)^a,r=i,i=a,a=r;return r=i,i=a,a=r,a^=e.pbox[o],i^=e.pbox[o+1],{left:i,right:a}}function u(e,t,n){let r,i=t,a=n;for(let s=o+1;s>1;--s)i^=e.pbox[s],a=l(e,i)^a,r=i,i=a,a=r;return r=i,i=a,a=r,a^=e.pbox[1],i^=e.pbox[0],{left:i,right:a}}function d(e,t,n){for(let o=0;o<4;o++){e.sbox[o]=[];for(let t=0;t<256;t++)e.sbox[o][t]=a[o][t]}let r=0;for(let a=0;a<o+2;a++)e.pbox[a]=i[a]^t[r],r++,r>=n&&(r=0);let s=0,l=0,u=0;for(let i=0;i<o+2;i+=2)u=c(e,s,l),s=u.left,l=u.right,e.pbox[i]=s,e.pbox[i+1]=l;for(let o=0;o<4;o++)for(let t=0;t<256;t+=2)u=c(e,s,l),s=u.left,l=u.right,e.sbox[o][t]=s,e.sbox[o][t+1]=l;return!0}var h=r.Blowfish=n.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4;d(s,t,n)}},encryptBlock:function(e,t){var n=c(s,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},decryptBlock:function(e,t){var n=u(s,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=n._createHelper(h)}(),e.Blowfish)),hM.exports;var e}DD.exports=function(e){return e}(ND(),jD(),ID(),BD(),WD(),UD(),GD(),XD(),tO(),nO||(nO=1,rO.exports=(dM=ND(),tO(),sM=(aM=dM).lib.WordArray,lM=aM.algo,cM=lM.SHA256,uM=lM.SHA224=cM.extend({_doReset:function(){this._hash=new sM.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=cM._doFinalize.call(this);return e.sigBytes-=4,e}}),aM.SHA224=cM._createHelper(uM),aM.HmacSHA224=cM._createHmacHelper(uM),dM.SHA224)),aO(),function(){return sO||(sO=1,lO.exports=(s=ND(),jD(),aO(),t=(e=s).x64,n=t.Word,r=t.WordArray,o=e.algo,i=o.SHA512,a=o.SHA384=i.extend({_doReset:function(){this._hash=new r.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=16,e}}),e.SHA384=i._createHelper(a),e.HmacSHA384=i._createHmacHelper(a),s.SHA384)),lO.exports;var e,t,n,r,o,i,a,s}(),dO(),function(){return hO||(hO=1,pO.exports=(e=ND(),
1268
1268
  /** @preserve
1269
1269
  (c) 2012 by Cédric Mesnil. All rights reserved.
1270
1270
 
@@ -1275,12 +1275,12 @@ e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function n(e){
1275
1275
 
1276
1276
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1277
1277
  */
1278
- function(){var t=e,n=t.lib,r=n.WordArray,o=n.Hasher,i=t.algo,a=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=r.create([0,1518500249,1859775393,2400959708,2840853838]),d=r.create([1352829926,1548603684,1836072691,2053994217,0]),h=i.RIPEMD160=o.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,h,b,w,x,_,k,C,S,E,D,O=this._hash.words,M=u.words,T=d.words,N=a.words,P=s.words,A=l.words,j=c.words;for(_=i=O[0],k=h=O[1],C=b=O[2],S=w=O[3],E=x=O[4],n=0;n<80;n+=1)D=i+e[t+N[n]]|0,D+=n<16?p(h,b,w)+M[0]:n<32?f(h,b,w)+M[1]:n<48?m(h,b,w)+M[2]:n<64?g(h,b,w)+M[3]:v(h,b,w)+M[4],D=(D=y(D|=0,A[n]))+x|0,i=x,x=w,w=y(b,10),b=h,h=D,D=_+e[t+P[n]]|0,D+=n<16?v(k,C,S)+T[0]:n<32?g(k,C,S)+T[1]:n<48?m(k,C,S)+T[2]:n<64?f(k,C,S)+T[3]:p(k,C,S)+T[4],D=(D=y(D|=0,j[n]))+E|0,_=E,E=S,S=y(C,10),C=k,k=D;D=O[1]+b+S|0,O[1]=O[2]+w+E|0,O[2]=O[3]+x+_|0,O[3]=O[4]+i+k|0,O[4]=O[0]+h+C|0,O[0]=D},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,a=0;a<5;a++){var s=i[a];i[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,n){return e^t^n}function f(e,t,n){return e&t|~e&n}function m(e,t,n){return(e|~t)^n}function g(e,t,n){return e&n|t&~n}function v(e,t,n){return e^(t|~n)}function y(e,t){return e<<t|e>>>32-t}t.RIPEMD160=o._createHelper(h),t.HmacRIPEMD160=o._createHmacHelper(h)}(),e.RIPEMD160)),hO.exports;var e}(),mO(),function(){return gO||(gO=1,vO.exports=(l=TD(),eO(),mO(),t=(e=l).lib,n=t.Base,r=t.WordArray,o=e.algo,i=o.SHA256,a=o.HMAC,s=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:i,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,o=a.create(n.hasher,e),i=r.create(),s=r.create([1]),l=i.words,c=s.words,u=n.keySize,d=n.iterations;l.length<u;){var h=o.update(t).finalize(s);o.reset();for(var p=h.words,f=p.length,m=h,g=1;g<d;g++){m=o.finalize(m),o.reset();for(var v=m.words,y=0;y<f;y++)p[y]^=v[y]}i.concat(h),c[0]++}return i.sigBytes=4*u,i}}),e.PBKDF2=function(e,t,n){return s.create(n).compute(e,t)},l.PBKDF2)),vO.exports;var e,t,n,r,o,i,a,s,l}(),wO(),kO(),function(){return CO||(CO=1,SO.exports=(e=TD(),kO(),e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function n(e,t,n,r){var o,i=this._iv;i?(o=i.slice(0),this._iv=void 0):o=this._prevBlock,r.encryptBlock(o,0);for(var a=0;a<n;a++)e[t+a]^=o[a]}return t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize;n.call(this,e,t,o,r),this._prevBlock=e.slice(t,t+o)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,i=e.slice(t,t+o);n.call(this,e,t,o,r),this._prevBlock=i}}),t}(),e.mode.CFB)),SO.exports;var e}(),function(){return EO||(EO=1,DO.exports=(n=TD(),kO(),n.mode.CTR=(e=n.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,i=this._counter;o&&(i=this._counter=o.slice(0),this._iv=void 0);var a=i.slice(0);n.encryptBlock(a,0),i[r-1]=i[r-1]+1|0;for(var s=0;s<r;s++)e[t+s]^=a[s]}}),e.Decryptor=t,e),n.mode.CTR)),DO.exports;var e,t,n}(),TO(),function(){return NO||(NO=1,PO.exports=(n=TD(),kO(),n.mode.OFB=(e=n.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,i=this._keystream;o&&(i=this._keystream=o.slice(0),this._iv=void 0),n.encryptBlock(i,0);for(var a=0;a<r;a++)e[t+a]^=i[a]}}),e.Decryptor=t,e),n.mode.OFB)),PO.exports;var e,t,n}(),function(){return AO||(AO=1,jO.exports=(t=TD(),kO(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB)),jO.exports;var e,t}(),function(){return RO||(RO=1,LO.exports=(e=TD(),kO(),e.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=4*t,o=r-n%r,i=n+o-1;e.clamp(),e.words[i>>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923)),LO.exports;var e}(),function(){return IO||(IO=1,FO.exports=(e=TD(),kO(),e.pad.Iso10126={pad:function(t,n){var r=4*n,o=r-t.sigBytes%r;t.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126)),FO.exports;var e}(),function(){return HO||(HO=1,BO.exports=(e=TD(),kO(),e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971)),BO.exports;var e}(),function(){return YO||(YO=1,zO.exports=(e=TD(),kO(),e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},e.pad.ZeroPadding)),zO.exports;var e}(),function(){return WO||(WO=1,$O.exports=(e=TD(),kO(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding)),$O.exports;var e}(),function(){return VO||(VO=1,UO.exports=(r=TD(),kO(),t=(e=r).lib.CipherParams,n=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(n)},parse:function(e){var r=n.parse(e);return t.create({ciphertext:r})}},r.format.Hex)),UO.exports;var e,t,n,r}(),function(){return qO||(qO=1,KO.exports=(e=TD(),zD(),KD(),wO(),kO(),function(){var t=e,n=t.lib.BlockCipher,r=t.algo,o=[],i=[],a=[],s=[],l=[],c=[],u=[],d=[],h=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var f=r^r<<1^r<<2^r<<3^r<<4;f=f>>>8^255&f^99,o[n]=f,i[f]=n;var m=e[n],g=e[m],v=e[g],y=257*e[f]^16843008*f;a[n]=y<<24|y>>>8,s[n]=y<<16|y>>>16,l[n]=y<<8|y>>>24,c[n]=y,y=16843009*v^65537*g^257*m^16843008*n,u[f]=y<<24|y>>>8,d[f]=y<<16|y>>>16,h[f]=y<<8|y>>>24,p[f]=y,n?(n=m^e[e[e[v^m]]],r^=e[e[r]]):n=r=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],m=r.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),i=this._keySchedule=[],a=0;a<r;a++)a<n?i[a]=t[a]:(c=i[a-1],a%n?n>6&&a%n==4&&(c=o[c>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c]):(c=o[(c=c<<8|c>>>24)>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c],c^=f[a/n|0]<<24),i[a]=i[a-n]^c);for(var s=this._invKeySchedule=[],l=0;l<r;l++){if(a=r-l,l%4)var c=i[a];else c=i[a-4];s[l]=l<4||a<=4?c:u[o[c>>>24]]^d[o[c>>>16&255]]^h[o[c>>>8&255]]^p[o[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,l,c,o)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,d,h,p,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,o,i,a,s){for(var l=this._nRounds,c=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],h=e[t+3]^n[3],p=4,f=1;f<l;f++){var m=r[c>>>24]^o[u>>>16&255]^i[d>>>8&255]^a[255&h]^n[p++],g=r[u>>>24]^o[d>>>16&255]^i[h>>>8&255]^a[255&c]^n[p++],v=r[d>>>24]^o[h>>>16&255]^i[c>>>8&255]^a[255&u]^n[p++],y=r[h>>>24]^o[c>>>16&255]^i[u>>>8&255]^a[255&d]^n[p++];c=m,u=g,d=v,h=y}m=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&h])^n[p++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^n[p++],v=(s[d>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[p++],y=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[p++],e[t]=m,e[t+1]=g,e[t+2]=v,e[t+3]=y},keySize:8});t.AES=n._createHelper(m)}(),e.AES)),KO.exports;var e}(),QO(),function(){return XO||(XO=1,JO.exports=(e=TD(),zD(),KD(),wO(),kO(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=r.RC4=n.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],o=0;o<256;o++)r[o]=o;o=0;for(var i=0;o<256;o++){var a=o%n,s=t[a>>>2]>>>24-a%4*8&255;i=(i+r[o]+s)%256;var l=r[o];r[o]=r[i],r[i]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,n=this._j,r=0,o=0;o<4;o++){n=(n+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[n],e[n]=i,r|=e[(e[t]+e[n])%256]<<24-8*o}return this._i=t,this._j=n,r}t.RC4=n._createHelper(o);var a=r.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});t.RC4Drop=n._createHelper(a)}(),e.RC4)),JO.exports;var e}(),function(){return eM||(eM=1,tM.exports=(e=TD(),zD(),KD(),wO(),kO(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=[],i=[],a=[],s=r.Rabbit=n.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)o[n]^=r[n+4&7];if(t){var i=t.words,a=i[0],s=i[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=c>>>16|4294901760&u,h=u<<16|65535&c;for(o[0]^=c,o[1]^=d,o[2]^=u,o[3]^=h,o[4]^=c,o[5]^=d,o[6]^=u,o[7]^=h,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,s=r>>>16,l=((o*o>>>17)+o*s>>>15)+s*s,c=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=l^c}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=n._createHelper(s)}(),e.Rabbit)),tM.exports;var e}(),function(){return nM||(nM=1,rM.exports=(e=TD(),zD(),KD(),wO(),kO(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=[],i=[],a=[],s=r.RabbitLegacy=n.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)l.call(this);for(o=0;o<8;o++)r[o]^=n[o+4&7];if(t){var i=t.words,a=i[0],s=i[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=c>>>16|4294901760&u,h=u<<16|65535&c;for(r[0]^=c,r[1]^=d,r[2]^=u,r[3]^=h,r[4]^=c,r[5]^=d,r[6]^=u,r[7]^=h,o=0;o<4;o++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,s=r>>>16,l=((o*o>>>17)+o*s>>>15)+s*s,c=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=l^c}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=n._createHelper(s)}(),e.RabbitLegacy)),rM.exports;var e}(),hM());const pM=x(ED.exports);var fM={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};const mM=new Map,gM=e=>{const t=mM.get(e);return t?Object.fromEntries(Object.entries(t.stores).map((([e,t])=>[e,t.getState()]))):{}},vM=(e,t={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:a,store:s,...l}=t;let c;try{c=(null!=i?i:"production"!==(fM?"production":void 0))&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(m){}if(!c)return e(n,r,o);const{connection:u,...d}=((e,t,n)=>{if(void 0===e)return{type:"untracked",connection:t.connect(n)};const r=mM.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return mM.set(n.name,o),{type:"tracked",store:e,...o}})(s,c,l);let h=!0;o.setState=(e,t,i)=>{const c=n(e,t);if(!h)return c;const d=void 0===i?{type:a||"anonymous"}:"string"==typeof i?{type:i}:i;return void 0===s?(null==u||u.send(d,r()),c):(null==u||u.send({...d,type:`${s}/${d.type}`},{...gM(l.name),[s]:o.getState()}),c)};const p=(...e)=>{const t=h;h=!1,n(...e),h=t},f=e(o.setState,r,o);if("untracked"===d.type?null==u||u.init(f):(d.stores[d.store]=o,null==u||u.init(Object.fromEntries(Object.entries(d.stores).map((([e,t])=>[e,e===d.store?f:t.getState()]))))),o.dispatchFromDevtools&&"function"==typeof o.dispatch){let e=!1;const t=o.dispatch;o.dispatch=(...n)=>{"production"===(fM?"production":void 0)||"__setState"!==n[0].type||e||(e=!0),t(...n)}}return u.subscribe((e=>{var t;switch(e.type){case"ACTION":if("string"!=typeof e.payload)return;return yM(e.payload,(e=>{if("__setState"!==e.type)o.dispatchFromDevtools&&"function"==typeof o.dispatch&&o.dispatch(e);else{if(void 0===s)return void p(e.state);Object.keys(e.state).length;const t=e.state[s];if(null==t)return;JSON.stringify(o.getState())!==JSON.stringify(t)&&p(t)}}));case"DISPATCH":switch(e.payload.type){case"RESET":return p(f),void 0===s?null==u?void 0:u.init(o.getState()):null==u?void 0:u.init(gM(l.name));case"COMMIT":return void 0===s?void(null==u||u.init(o.getState())):null==u?void 0:u.init(gM(l.name));case"ROLLBACK":return yM(e.state,(e=>{if(void 0===s)return p(e),void(null==u||u.init(o.getState()));p(e[s]),null==u||u.init(gM(l.name))}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return yM(e.state,(e=>{void 0!==s?JSON.stringify(o.getState())!==JSON.stringify(e[s])&&p(e[s]):p(e)}));case"IMPORT_STATE":{const{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return p(void 0===s?r:r[s]),void(null==u||u.send(null,n))}case"PAUSE_RECORDING":return h=!h}return}})),f},yM=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){}void 0!==n&&t(n)};function bM(e,t){let n;try{n=e()}catch(r){return}return{getItem:e=>{var t;const r=e=>null===e?null:JSON.parse(e,void 0),o=null!=(t=n.getItem(e))?t:null;return o instanceof Promise?o.then(r):r(o)},setItem:(e,t)=>n.setItem(e,JSON.stringify(t,void 0)),removeItem:e=>n.removeItem(e)}}const wM=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>wM(e)(n),catch(e){return this}}}catch(n){return{then(e){return this},catch:e=>wM(e)(n)}}},xM=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((e,t)=>(n,r,o)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},a=!1;const s=new Set,l=new Set;let c;try{c=i.getStorage()}catch(g){}if(!c)return e(((...e)=>{n(...e)}),r,o);const u=wM(i.serialize),d=()=>{const e=i.partialize({...r()});let t;const n=u({state:e,version:i.version}).then((e=>c.setItem(i.name,e))).catch((e=>{t=e}));if(t)throw t;return n},h=o.setState;o.setState=(e,t)=>{h(e,t),d()};const p=e(((...e)=>{n(...e),d()}),r,o);let f;const m=()=>{var e;if(!c)return;a=!1,s.forEach((e=>e(r())));const t=(null==(e=i.onRehydrateStorage)?void 0:e.call(i,r()))||void 0;return wM(c.getItem.bind(c))(i.name).then((e=>{if(e)return i.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===i.version)return e.state;if(i.migrate)return i.migrate(e.state,e.version)}})).then((e=>{var t;return f=i.merge(e,null!=(t=r())?t:p),n(f,!0),d()})).then((()=>{null==t||t(f,void 0),a=!0,l.forEach((e=>e(f)))})).catch((e=>{null==t||t(void 0,e)}))};return o.persist={setOptions:e=>{i={...i,...e},e.getStorage&&(c=e.getStorage())},clearStorage:()=>{null==c||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>m(),hasHydrated:()=>a,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},m(),f||p})(e,t):((e,t)=>(n,r,o)=>{let i={storage:bM((()=>localStorage)),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},a=!1;const s=new Set,l=new Set;let c=i.storage;if(!c)return e(((...e)=>{n(...e)}),r,o);const u=()=>{const e=i.partialize({...r()});return c.setItem(i.name,{state:e,version:i.version})},d=o.setState;o.setState=(e,t)=>{d(e,t),u()};const h=e(((...e)=>{n(...e),u()}),r,o);let p;o.getInitialState=()=>h;const f=()=>{var e,t;if(!c)return;a=!1,s.forEach((e=>{var t;return e(null!=(t=r())?t:h)}));const o=(null==(t=i.onRehydrateStorage)?void 0:t.call(i,null!=(e=r())?e:h))||void 0;return wM(c.getItem.bind(c))(i.name).then((e=>{if(e){if("number"!=typeof e.version||e.version===i.version)return e.state;if(i.migrate)return i.migrate(e.state,e.version)}})).then((e=>{var t;return p=i.merge(e,null!=(t=r())?t:h),n(p,!0),u()})).then((()=>{null==o||o(p,void 0),p=r(),a=!0,l.forEach((e=>e(p)))})).catch((e=>{null==o||o(void 0,e)}))};return o.persist={setOptions:e=>{i={...i,...e},e.storage&&(c=e.storage)},clearStorage:()=>{null==c||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>f(),hasHydrated:()=>a,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},i.skipHydration||f(),p||h})(e,t),_M="HA6NDXoc9#!cC§pY",kM={api:null,info:null,user:null,error:null,session:null,active:!1,hasHydrated:!1},CM=_D()(vM(xM(((e,t)=>({...kM,setUser:async(t,n)=>{t&&e({user:n??null,session:t})},reset:()=>{e({...kM})},setHydrated(t){e({hasHydrated:t})},sync:async(n,r)=>{const{api:o,session:i}=t();if(o)try{const t=r??(null==i?void 0:i.refreshToken),a=`Bearer ${n??(null==i?void 0:i.token)}`;if((null==i?void 0:i.refreshToken)&&(null==i?void 0:i.token)){const{status:n,data:r}=await o.get("/api/sso/session",{headers:{Authorization:a,"X-Access-Token":t}});if(n===zE.Ok||n===zE.Created){const t={token:null==r?void 0:r.result.token,refreshToken:null==i?void 0:i.refreshToken};e({active:!0,session:t,user:null==r?void 0:r.result,info:SD(null==r?void 0:r.result.token)})}}else{const t=new Error("Invalid session");e({user:null,info:null,error:t,active:!1,session:null})}}catch(a){e({error:a})}},attempt:async(n,r)=>{var o;if(n&&(null==r?void 0:r.token)&&(null==r?void 0:r.refreshToken)){const{api:n}=t();if(n)try{const{status:t,data:i}=await n.get("/api/sso/session",{headers:{"X-Access-Token":null==r?void 0:r.refreshToken,Authorization:`Bearer ${null==r?void 0:r.token}`}});if(t===zE.Ok||t===zE.Created){const t={token:null==i?void 0:i.result.token,refreshToken:null==r?void 0:r.refreshToken};return e({active:!0,session:t,user:null==i?void 0:i.result,info:SD(null==(o=null==i?void 0:i.result)?void 0:o.token)}),i}{const t=new Error("Invalid session");e({error:t,user:null,info:null,session:null,active:!1})}}catch(i){e({error:i})}}},login:async(n,r)=>{var o;const{api:i}=t();if(i)try{const{status:t,data:a}=await i.get("/api/sso/session",{headers:{"X-Access-Token":r,Authorization:`Bearer ${n}`}});if(t!==zE.Ok&&t!==zE.Created)throw new Error("Invalid session");{const t={token:null==(o=null==a?void 0:a.result)?void 0:o.token,refreshToken:r};e({active:!0,session:t,user:null==a?void 0:a.result,info:SD(null==a?void 0:a.result.token)})}return a}catch(a){e({error:a})}},setError:t=>e({error:t}),setHttp:t=>{const n=new UE(t);e({api:n})}})),{name:"@ccc/store",storage:bM((()=>localStorage)),onRehydrateStorage:()=>e=>{if(null==e?void 0:e.hasHydrated)return{...e,hasHydrated:!0}},partialize:e=>({info:e.info,user:e.user,session:e.session}),serialize:e=>{const{stringify:t}=JSON,n=t(e);return pM.AES.encrypt(n,_M).toString()},deserialize:e=>{const{parse:t}=JSON;return t(pM.AES.decrypt(e,_M).toString(pM.enc.Utf8))}}))),SM=[];
1278
+ function(){var t=e,n=t.lib,r=n.WordArray,o=n.Hasher,i=t.algo,a=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=r.create([0,1518500249,1859775393,2400959708,2840853838]),d=r.create([1352829926,1548603684,1836072691,2053994217,0]),h=i.RIPEMD160=o.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,h,b,w,x,_,k,C,S,E,D,O=this._hash.words,M=u.words,T=d.words,N=a.words,P=s.words,A=l.words,j=c.words;for(_=i=O[0],k=h=O[1],C=b=O[2],S=w=O[3],E=x=O[4],n=0;n<80;n+=1)D=i+e[t+N[n]]|0,D+=n<16?p(h,b,w)+M[0]:n<32?f(h,b,w)+M[1]:n<48?m(h,b,w)+M[2]:n<64?g(h,b,w)+M[3]:v(h,b,w)+M[4],D=(D=y(D|=0,A[n]))+x|0,i=x,x=w,w=y(b,10),b=h,h=D,D=_+e[t+P[n]]|0,D+=n<16?v(k,C,S)+T[0]:n<32?g(k,C,S)+T[1]:n<48?m(k,C,S)+T[2]:n<64?f(k,C,S)+T[3]:p(k,C,S)+T[4],D=(D=y(D|=0,j[n]))+E|0,_=E,E=S,S=y(C,10),C=k,k=D;D=O[1]+b+S|0,O[1]=O[2]+w+E|0,O[2]=O[3]+x+_|0,O[3]=O[4]+i+k|0,O[4]=O[0]+h+C|0,O[0]=D},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,a=0;a<5;a++){var s=i[a];i[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,n){return e^t^n}function f(e,t,n){return e&t|~e&n}function m(e,t,n){return(e|~t)^n}function g(e,t,n){return e&n|t&~n}function v(e,t,n){return e^(t|~n)}function y(e,t){return e<<t|e>>>32-t}t.RIPEMD160=o._createHelper(h),t.HmacRIPEMD160=o._createHmacHelper(h)}(),e.RIPEMD160)),pO.exports;var e}(),gO(),function(){return vO||(vO=1,yO.exports=(l=ND(),tO(),gO(),t=(e=l).lib,n=t.Base,r=t.WordArray,o=e.algo,i=o.SHA256,a=o.HMAC,s=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:i,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,o=a.create(n.hasher,e),i=r.create(),s=r.create([1]),l=i.words,c=s.words,u=n.keySize,d=n.iterations;l.length<u;){var h=o.update(t).finalize(s);o.reset();for(var p=h.words,f=p.length,m=h,g=1;g<d;g++){m=o.finalize(m),o.reset();for(var v=m.words,y=0;y<f;y++)p[y]^=v[y]}i.concat(h),c[0]++}return i.sigBytes=4*u,i}}),e.PBKDF2=function(e,t,n){return s.create(n).compute(e,t)},l.PBKDF2)),yO.exports;var e,t,n,r,o,i,a,s,l}(),xO(),CO(),function(){return SO||(SO=1,EO.exports=(e=ND(),CO(),e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function n(e,t,n,r){var o,i=this._iv;i?(o=i.slice(0),this._iv=void 0):o=this._prevBlock,r.encryptBlock(o,0);for(var a=0;a<n;a++)e[t+a]^=o[a]}return t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize;n.call(this,e,t,o,r),this._prevBlock=e.slice(t,t+o)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,i=e.slice(t,t+o);n.call(this,e,t,o,r),this._prevBlock=i}}),t}(),e.mode.CFB)),EO.exports;var e}(),function(){return DO||(DO=1,OO.exports=(n=ND(),CO(),n.mode.CTR=(e=n.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,i=this._counter;o&&(i=this._counter=o.slice(0),this._iv=void 0);var a=i.slice(0);n.encryptBlock(a,0),i[r-1]=i[r-1]+1|0;for(var s=0;s<r;s++)e[t+s]^=a[s]}}),e.Decryptor=t,e),n.mode.CTR)),OO.exports;var e,t,n}(),NO(),function(){return PO||(PO=1,AO.exports=(n=ND(),CO(),n.mode.OFB=(e=n.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,i=this._keystream;o&&(i=this._keystream=o.slice(0),this._iv=void 0),n.encryptBlock(i,0);for(var a=0;a<r;a++)e[t+a]^=i[a]}}),e.Decryptor=t,e),n.mode.OFB)),AO.exports;var e,t,n}(),function(){return jO||(jO=1,RO.exports=(t=ND(),CO(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB)),RO.exports;var e,t}(),function(){return LO||(LO=1,IO.exports=(e=ND(),CO(),e.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=4*t,o=r-n%r,i=n+o-1;e.clamp(),e.words[i>>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923)),IO.exports;var e}(),function(){return FO||(FO=1,HO.exports=(e=ND(),CO(),e.pad.Iso10126={pad:function(t,n){var r=4*n,o=r-t.sigBytes%r;t.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126)),HO.exports;var e}(),function(){return BO||(BO=1,YO.exports=(e=ND(),CO(),e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971)),YO.exports;var e}(),function(){return zO||(zO=1,WO.exports=(e=ND(),CO(),e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},e.pad.ZeroPadding)),WO.exports;var e}(),function(){return $O||($O=1,VO.exports=(e=ND(),CO(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding)),VO.exports;var e}(),function(){return UO||(UO=1,qO.exports=(r=ND(),CO(),t=(e=r).lib.CipherParams,n=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(n)},parse:function(e){var r=n.parse(e);return t.create({ciphertext:r})}},r.format.Hex)),qO.exports;var e,t,n,r}(),function(){return KO||(KO=1,GO.exports=(e=ND(),WD(),GD(),xO(),CO(),function(){var t=e,n=t.lib.BlockCipher,r=t.algo,o=[],i=[],a=[],s=[],l=[],c=[],u=[],d=[],h=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var f=r^r<<1^r<<2^r<<3^r<<4;f=f>>>8^255&f^99,o[n]=f,i[f]=n;var m=e[n],g=e[m],v=e[g],y=257*e[f]^16843008*f;a[n]=y<<24|y>>>8,s[n]=y<<16|y>>>16,l[n]=y<<8|y>>>24,c[n]=y,y=16843009*v^65537*g^257*m^16843008*n,u[f]=y<<24|y>>>8,d[f]=y<<16|y>>>16,h[f]=y<<8|y>>>24,p[f]=y,n?(n=m^e[e[e[v^m]]],r^=e[e[r]]):n=r=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],m=r.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),i=this._keySchedule=[],a=0;a<r;a++)a<n?i[a]=t[a]:(c=i[a-1],a%n?n>6&&a%n==4&&(c=o[c>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c]):(c=o[(c=c<<8|c>>>24)>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c],c^=f[a/n|0]<<24),i[a]=i[a-n]^c);for(var s=this._invKeySchedule=[],l=0;l<r;l++){if(a=r-l,l%4)var c=i[a];else c=i[a-4];s[l]=l<4||a<=4?c:u[o[c>>>24]]^d[o[c>>>16&255]]^h[o[c>>>8&255]]^p[o[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,l,c,o)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,d,h,p,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,o,i,a,s){for(var l=this._nRounds,c=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],h=e[t+3]^n[3],p=4,f=1;f<l;f++){var m=r[c>>>24]^o[u>>>16&255]^i[d>>>8&255]^a[255&h]^n[p++],g=r[u>>>24]^o[d>>>16&255]^i[h>>>8&255]^a[255&c]^n[p++],v=r[d>>>24]^o[h>>>16&255]^i[c>>>8&255]^a[255&u]^n[p++],y=r[h>>>24]^o[c>>>16&255]^i[u>>>8&255]^a[255&d]^n[p++];c=m,u=g,d=v,h=y}m=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&h])^n[p++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^n[p++],v=(s[d>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[p++],y=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[p++],e[t]=m,e[t+1]=g,e[t+2]=v,e[t+3]=y},keySize:8});t.AES=n._createHelper(m)}(),e.AES)),GO.exports;var e}(),XO(),function(){return JO||(JO=1,eM.exports=(e=ND(),WD(),GD(),xO(),CO(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=r.RC4=n.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],o=0;o<256;o++)r[o]=o;o=0;for(var i=0;o<256;o++){var a=o%n,s=t[a>>>2]>>>24-a%4*8&255;i=(i+r[o]+s)%256;var l=r[o];r[o]=r[i],r[i]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,n=this._j,r=0,o=0;o<4;o++){n=(n+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[n],e[n]=i,r|=e[(e[t]+e[n])%256]<<24-8*o}return this._i=t,this._j=n,r}t.RC4=n._createHelper(o);var a=r.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});t.RC4Drop=n._createHelper(a)}(),e.RC4)),eM.exports;var e}(),function(){return tM||(tM=1,nM.exports=(e=ND(),WD(),GD(),xO(),CO(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=[],i=[],a=[],s=r.Rabbit=n.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)o[n]^=r[n+4&7];if(t){var i=t.words,a=i[0],s=i[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=c>>>16|4294901760&u,h=u<<16|65535&c;for(o[0]^=c,o[1]^=d,o[2]^=u,o[3]^=h,o[4]^=c,o[5]^=d,o[6]^=u,o[7]^=h,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,s=r>>>16,l=((o*o>>>17)+o*s>>>15)+s*s,c=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=l^c}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=n._createHelper(s)}(),e.Rabbit)),nM.exports;var e}(),function(){return rM||(rM=1,oM.exports=(e=ND(),WD(),GD(),xO(),CO(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=[],i=[],a=[],s=r.RabbitLegacy=n.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)l.call(this);for(o=0;o<8;o++)r[o]^=n[o+4&7];if(t){var i=t.words,a=i[0],s=i[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=c>>>16|4294901760&u,h=u<<16|65535&c;for(r[0]^=c,r[1]^=d,r[2]^=u,r[3]^=h,r[4]^=c,r[5]^=d,r[6]^=u,r[7]^=h,o=0;o<4;o++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,s=r>>>16,l=((o*o>>>17)+o*s>>>15)+s*s,c=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=l^c}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=n._createHelper(s)}(),e.RabbitLegacy)),oM.exports;var e}(),pM());const fM=x(DD.exports);var mM={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};const gM=new Map,vM=e=>{const t=gM.get(e);return t?Object.fromEntries(Object.entries(t.stores).map((([e,t])=>[e,t.getState()]))):{}},yM=(e,t={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:a,store:s,...l}=t;let c;try{c=(null!=i?i:"production"!==(mM?"production":void 0))&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(m){}if(!c)return e(n,r,o);const{connection:u,...d}=((e,t,n)=>{if(void 0===e)return{type:"untracked",connection:t.connect(n)};const r=gM.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return gM.set(n.name,o),{type:"tracked",store:e,...o}})(s,c,l);let h=!0;o.setState=(e,t,i)=>{const c=n(e,t);if(!h)return c;const d=void 0===i?{type:a||"anonymous"}:"string"==typeof i?{type:i}:i;return void 0===s?(null==u||u.send(d,r()),c):(null==u||u.send({...d,type:`${s}/${d.type}`},{...vM(l.name),[s]:o.getState()}),c)};const p=(...e)=>{const t=h;h=!1,n(...e),h=t},f=e(o.setState,r,o);if("untracked"===d.type?null==u||u.init(f):(d.stores[d.store]=o,null==u||u.init(Object.fromEntries(Object.entries(d.stores).map((([e,t])=>[e,e===d.store?f:t.getState()]))))),o.dispatchFromDevtools&&"function"==typeof o.dispatch){let e=!1;const t=o.dispatch;o.dispatch=(...n)=>{"production"===(mM?"production":void 0)||"__setState"!==n[0].type||e||(e=!0),t(...n)}}return u.subscribe((e=>{var t;switch(e.type){case"ACTION":if("string"!=typeof e.payload)return;return bM(e.payload,(e=>{if("__setState"!==e.type)o.dispatchFromDevtools&&"function"==typeof o.dispatch&&o.dispatch(e);else{if(void 0===s)return void p(e.state);Object.keys(e.state).length;const t=e.state[s];if(null==t)return;JSON.stringify(o.getState())!==JSON.stringify(t)&&p(t)}}));case"DISPATCH":switch(e.payload.type){case"RESET":return p(f),void 0===s?null==u?void 0:u.init(o.getState()):null==u?void 0:u.init(vM(l.name));case"COMMIT":return void 0===s?void(null==u||u.init(o.getState())):null==u?void 0:u.init(vM(l.name));case"ROLLBACK":return bM(e.state,(e=>{if(void 0===s)return p(e),void(null==u||u.init(o.getState()));p(e[s]),null==u||u.init(vM(l.name))}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return bM(e.state,(e=>{void 0!==s?JSON.stringify(o.getState())!==JSON.stringify(e[s])&&p(e[s]):p(e)}));case"IMPORT_STATE":{const{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return p(void 0===s?r:r[s]),void(null==u||u.send(null,n))}case"PAUSE_RECORDING":return h=!h}return}})),f},bM=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){}void 0!==n&&t(n)};function wM(e,t){let n;try{n=e()}catch(r){return}return{getItem:e=>{var t;const r=e=>null===e?null:JSON.parse(e,void 0),o=null!=(t=n.getItem(e))?t:null;return o instanceof Promise?o.then(r):r(o)},setItem:(e,t)=>n.setItem(e,JSON.stringify(t,void 0)),removeItem:e=>n.removeItem(e)}}const xM=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>xM(e)(n),catch(e){return this}}}catch(n){return{then(e){return this},catch:e=>xM(e)(n)}}},_M=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((e,t)=>(n,r,o)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},a=!1;const s=new Set,l=new Set;let c;try{c=i.getStorage()}catch(g){}if(!c)return e(((...e)=>{n(...e)}),r,o);const u=xM(i.serialize),d=()=>{const e=i.partialize({...r()});let t;const n=u({state:e,version:i.version}).then((e=>c.setItem(i.name,e))).catch((e=>{t=e}));if(t)throw t;return n},h=o.setState;o.setState=(e,t)=>{h(e,t),d()};const p=e(((...e)=>{n(...e),d()}),r,o);let f;const m=()=>{var e;if(!c)return;a=!1,s.forEach((e=>e(r())));const t=(null==(e=i.onRehydrateStorage)?void 0:e.call(i,r()))||void 0;return xM(c.getItem.bind(c))(i.name).then((e=>{if(e)return i.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===i.version)return e.state;if(i.migrate)return i.migrate(e.state,e.version)}})).then((e=>{var t;return f=i.merge(e,null!=(t=r())?t:p),n(f,!0),d()})).then((()=>{null==t||t(f,void 0),a=!0,l.forEach((e=>e(f)))})).catch((e=>{null==t||t(void 0,e)}))};return o.persist={setOptions:e=>{i={...i,...e},e.getStorage&&(c=e.getStorage())},clearStorage:()=>{null==c||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>m(),hasHydrated:()=>a,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},m(),f||p})(e,t):((e,t)=>(n,r,o)=>{let i={storage:wM((()=>localStorage)),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},a=!1;const s=new Set,l=new Set;let c=i.storage;if(!c)return e(((...e)=>{n(...e)}),r,o);const u=()=>{const e=i.partialize({...r()});return c.setItem(i.name,{state:e,version:i.version})},d=o.setState;o.setState=(e,t)=>{d(e,t),u()};const h=e(((...e)=>{n(...e),u()}),r,o);let p;o.getInitialState=()=>h;const f=()=>{var e,t;if(!c)return;a=!1,s.forEach((e=>{var t;return e(null!=(t=r())?t:h)}));const o=(null==(t=i.onRehydrateStorage)?void 0:t.call(i,null!=(e=r())?e:h))||void 0;return xM(c.getItem.bind(c))(i.name).then((e=>{if(e){if("number"!=typeof e.version||e.version===i.version)return e.state;if(i.migrate)return i.migrate(e.state,e.version)}})).then((e=>{var t;return p=i.merge(e,null!=(t=r())?t:h),n(p,!0),u()})).then((()=>{null==o||o(p,void 0),p=r(),a=!0,l.forEach((e=>e(p)))})).catch((e=>{null==o||o(void 0,e)}))};return o.persist={setOptions:e=>{i={...i,...e},e.storage&&(c=e.storage)},clearStorage:()=>{null==c||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>f(),hasHydrated:()=>a,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},i.skipHydration||f(),p||h})(e,t),kM="HA6NDXoc9#!cC§pY",CM={api:null,info:null,user:null,error:null,session:null,active:!1,hasHydrated:!1},SM=kD()(yM(_M(((e,t)=>({...CM,setUser:async(t,n)=>{t&&e({user:n??null,session:t})},reset:()=>{e({...CM})},setHydrated(t){e({hasHydrated:t})},sync:async(n,r)=>{const{api:o,session:i}=t();if(o)try{const t=r??(null==i?void 0:i.refreshToken),a=`Bearer ${n??(null==i?void 0:i.token)}`;if((null==i?void 0:i.refreshToken)&&(null==i?void 0:i.token)){const{status:n,data:r}=await o.get("/api/sso/session",{headers:{Authorization:a,"X-Access-Token":t}});if(n===WE.Ok||n===WE.Created){const t={token:null==r?void 0:r.result.token,refreshToken:null==i?void 0:i.refreshToken};e({active:!0,session:t,user:null==r?void 0:r.result,info:ED(null==r?void 0:r.result.token)})}}else{const t=new Error("Invalid session");e({user:null,info:null,error:t,active:!1,session:null})}}catch(a){e({error:a})}},attempt:async(n,r)=>{var o;if(n&&(null==r?void 0:r.token)&&(null==r?void 0:r.refreshToken)){const{api:n}=t();if(n)try{const{status:t,data:i}=await n.get("/api/sso/session",{headers:{"X-Access-Token":null==r?void 0:r.refreshToken,Authorization:`Bearer ${null==r?void 0:r.token}`}});if(t===WE.Ok||t===WE.Created){const t={token:null==i?void 0:i.result.token,refreshToken:null==r?void 0:r.refreshToken};return e({active:!0,session:t,user:null==i?void 0:i.result,info:ED(null==(o=null==i?void 0:i.result)?void 0:o.token)}),i}{const t=new Error("Invalid session");e({error:t,user:null,info:null,session:null,active:!1})}}catch(i){e({error:i})}}},login:async(n,r)=>{var o;const{api:i}=t();if(i)try{const{status:t,data:a}=await i.get("/api/sso/session",{headers:{"X-Access-Token":r,Authorization:`Bearer ${n}`}});if(t!==WE.Ok&&t!==WE.Created)throw new Error("Invalid session");{const t={token:null==(o=null==a?void 0:a.result)?void 0:o.token,refreshToken:r};e({active:!0,session:t,user:null==a?void 0:a.result,info:ED(null==a?void 0:a.result.token)})}return a}catch(a){e({error:a})}},setError:t=>e({error:t}),setHttp:t=>{const n=new qE(t);e({api:n})}})),{name:"@ccc/store",storage:wM((()=>localStorage)),onRehydrateStorage:()=>e=>{if(null==e?void 0:e.hasHydrated)return{...e,hasHydrated:!0}},partialize:e=>({info:e.info,user:e.user,session:e.session}),serialize:e=>{const{stringify:t}=JSON,n=t(e);return fM.AES.encrypt(n,kM).toString()},deserialize:e=>{const{parse:t}=JSON;return t(fM.AES.decrypt(e,kM).toString(fM.enc.Utf8))}}))),EM=[];
1279
1279
  /*!
1280
1280
  * sweetalert2 v11.14.4
1281
1281
  * Released under the MIT License.
1282
1282
  */
1283
- function EM(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function DM(e,t){return e.get(EM(e,t))}function OM(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}const MM={},TM=e=>new Promise((t=>{if(!e)return t();const n=window.scrollX,r=window.scrollY;MM.restoreFocusTimeout=setTimeout((()=>{MM.previousActiveElement instanceof HTMLElement?(MM.previousActiveElement.focus(),MM.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(n,r)})),NM="swal2-",PM=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"].reduce(((e,t)=>(e[t]=NM+t,e)),{}),AM=["success","warning","info","question","error"].reduce(((e,t)=>(e[t]=NM+t,e)),{}),jM=e=>e.charAt(0).toUpperCase()+e.slice(1),RM=e=>{},LM=[],IM=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;var n;n=`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`,LM.includes(n)||(LM.push(n),RM(n))},FM=e=>"function"==typeof e?e():e,HM=e=>e&&"function"==typeof e.toPromise,BM=e=>HM(e)?e.toPromise():Promise.resolve(e),YM=e=>e&&Promise.resolve(e)===e,zM=()=>document.body.querySelector(`.${PM.container}`),WM=e=>{const t=zM();return t?t.querySelector(e):null},$M=e=>WM(`.${e}`),VM=()=>$M(PM.popup),UM=()=>$M(PM.icon),qM=()=>$M(PM.title),KM=()=>$M(PM["html-container"]),GM=()=>$M(PM.image),ZM=()=>$M(PM["progress-steps"]),QM=()=>$M(PM["validation-message"]),XM=()=>WM(`.${PM.actions} .${PM.confirm}`),JM=()=>WM(`.${PM.actions} .${PM.cancel}`),eT=()=>WM(`.${PM.actions} .${PM.deny}`),tT=()=>WM(`.${PM.loader}`),nT=()=>$M(PM.actions),rT=()=>$M(PM.footer),oT=()=>$M(PM["timer-progress-bar"]),iT=()=>$M(PM.close),aT=()=>{const e=VM();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(t).sort(((e,t)=>{const n=parseInt(e.getAttribute("tabindex")||"0"),r=parseInt(t.getAttribute("tabindex")||"0");return n>r?1:n<r?-1:0})),r=e.querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n'),o=Array.from(r).filter((e=>"-1"!==e.getAttribute("tabindex")));return[...new Set(n.concat(o))].filter((e=>CT(e)))},sT=()=>uT(document.body,PM.shown)&&!uT(document.body,PM["toast-shown"])&&!uT(document.body,PM["no-backdrop"]),lT=()=>{const e=VM();return!!e&&uT(e,PM.toast)},cT=(e,t)=>{if(e.textContent="",t){const n=(new DOMParser).parseFromString(t,"text/html"),r=n.querySelector("head");r&&Array.from(r.childNodes).forEach((t=>{e.appendChild(t)}));const o=n.querySelector("body");o&&Array.from(o.childNodes).forEach((t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)}))}},uT=(e,t)=>{if(!t)return!1;const n=t.split(/\s+/);for(let r=0;r<n.length;r++)if(!e.classList.contains(n[r]))return!1;return!0},dT=(e,t,n)=>{if(((e,t)=>{Array.from(e.classList).forEach((n=>{Object.values(PM).includes(n)||Object.values(AM).includes(n)||Object.values(t.showClass||{}).includes(n)||e.classList.remove(n)}))})(e,t),!t.customClass)return;const r=t.customClass[n];r&&("string"==typeof r||r.forEach?mT(e,r):RM(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof r}"`))},hT=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${PM.popup} > .${PM[t]}`);case"checkbox":return e.querySelector(`.${PM.popup} > .${PM.checkbox} input`);case"radio":return e.querySelector(`.${PM.popup} > .${PM.radio} input:checked`)||e.querySelector(`.${PM.popup} > .${PM.radio} input:first-child`);case"range":return e.querySelector(`.${PM.popup} > .${PM.range} input`);default:return e.querySelector(`.${PM.popup} > .${PM.input}`)}},pT=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},fT=(e,t,n)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{n?e.classList.add(t):e.classList.remove(t)})):n?e.classList.add(t):e.classList.remove(t)})))},mT=(e,t)=>{fT(e,t,!0)},gT=(e,t)=>{fT(e,t,!1)},vT=(e,t)=>{const n=Array.from(e.children);for(let r=0;r<n.length;r++){const e=n[r];if(e instanceof HTMLElement&&uT(e,t))return e}},yT=(e,t,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||0===parseInt(n)?e.style.setProperty(t,"number"==typeof n?`${n}px`:n):e.style.removeProperty(t)},bT=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e&&(e.style.display=t)},wT=e=>{e&&(e.style.display="none")},xT=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"block";e&&new MutationObserver((()=>{kT(e,e.innerHTML,t)})).observe(e,{childList:!0,subtree:!0})},_T=(e,t,n,r)=>{const o=e.querySelector(t);o&&o.style.setProperty(n,r)},kT=function(e,t){t?bT(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):wT(e)},CT=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),ST=e=>!!(e.scrollHeight>e.clientHeight),ET=e=>{const t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),r=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||r>0},DT=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=oT();n&&CT(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout((()=>{n.style.transition=`width ${e/1e3}s linear`,n.style.width="0%"}),10))},OT=`\n <div aria-labelledby="${PM.title}" aria-describedby="${PM["html-container"]}" class="${PM.popup}" tabindex="-1">\n <button type="button" class="${PM.close}"></button>\n <ul class="${PM["progress-steps"]}"></ul>\n <div class="${PM.icon}"></div>\n <img class="${PM.image}" />\n <h2 class="${PM.title}" id="${PM.title}"></h2>\n <div class="${PM["html-container"]}" id="${PM["html-container"]}"></div>\n <input class="${PM.input}" id="${PM.input}" />\n <input type="file" class="${PM.file}" />\n <div class="${PM.range}">\n <input type="range" />\n <output></output>\n </div>\n <select class="${PM.select}" id="${PM.select}"></select>\n <div class="${PM.radio}"></div>\n <label class="${PM.checkbox}">\n <input type="checkbox" id="${PM.checkbox}" />\n <span class="${PM.label}"></span>\n </label>\n <textarea class="${PM.textarea}" id="${PM.textarea}"></textarea>\n <div class="${PM["validation-message"]}" id="${PM["validation-message"]}"></div>\n <div class="${PM.actions}">\n <div class="${PM.loader}"></div>\n <button type="button" class="${PM.confirm}"></button>\n <button type="button" class="${PM.deny}"></button>\n <button type="button" class="${PM.cancel}"></button>\n </div>\n <div class="${PM.footer}"></div>\n <div class="${PM["timer-progress-bar-container"]}">\n <div class="${PM["timer-progress-bar"]}"></div>\n </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),MT=()=>{MM.currentInstance.resetValidationMessage()},TT=e=>{const t=(()=>{const e=zM();return!!e&&(e.remove(),gT([document.documentElement,document.body],[PM["no-backdrop"],PM["toast-shown"],PM["has-column"]]),!0)})();if("undefined"==typeof window||"undefined"==typeof document)return;const n=document.createElement("div");n.className=PM.container,t&&mT(n,PM["no-transition"]),cT(n,OT);const r="string"==typeof(o=e.target)?document.querySelector(o):o;var o;r.appendChild(n),(e=>{const t=VM();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&mT(zM(),PM.rtl)})(r),(()=>{const e=VM(),t=vT(e,PM.input),n=vT(e,PM.file),r=e.querySelector(`.${PM.range} input`),o=e.querySelector(`.${PM.range} output`),i=vT(e,PM.select),a=e.querySelector(`.${PM.checkbox} input`),s=vT(e,PM.textarea);t.oninput=MT,n.onchange=MT,i.onchange=MT,a.onchange=MT,s.oninput=MT,r.oninput=()=>{MT(),o.value=r.value},r.onchange=()=>{MT(),o.value=r.value}})()},NT=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?PT(e,t):e&&cT(t,e)},PT=(e,t)=>{e.jquery?AT(t,e):cT(t,e.toString())},AT=(e,t)=>{if(e.textContent="",0 in t)for(let n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},jT=(e,t)=>{const n=nT(),r=tT();n&&r&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?bT(n):wT(n),dT(n,t,"actions"),function(e,t,n){const r=XM(),o=eT(),i=JM();if(!r||!o||!i)return;RT(r,"confirm",n),RT(o,"deny",n),RT(i,"cancel",n),function(e,t,n,r){if(!r.buttonsStyling)return void gT([e,t,n],PM.styled);mT([e,t,n],PM.styled),r.confirmButtonColor&&(e.style.backgroundColor=r.confirmButtonColor,mT(e,PM["default-outline"]));r.denyButtonColor&&(t.style.backgroundColor=r.denyButtonColor,mT(t,PM["default-outline"]));r.cancelButtonColor&&(n.style.backgroundColor=r.cancelButtonColor,mT(n,PM["default-outline"]))}(r,o,i,n),n.reverseButtons&&(n.toast?(e.insertBefore(i,r),e.insertBefore(o,r)):(e.insertBefore(i,t),e.insertBefore(o,t),e.insertBefore(r,t)))}(n,r,t),cT(r,t.loaderHtml||""),dT(r,t,"loader"))};function RT(e,t,n){const r=jM(t);kT(e,n[`show${r}Button`],"inline-block"),cT(e,n[`${t}ButtonText`]||""),e.setAttribute("aria-label",n[`${t}ButtonAriaLabel`]||""),e.className=PM[t],dT(e,n,`${t}Button`)}const LT=(e,t)=>{const n=zM();n&&(!function(e,t){"string"==typeof t?e.style.background=t:t||mT([document.documentElement,document.body],PM["no-backdrop"])}(n,t.backdrop),function(e,t){if(!t)return;t in PM?mT(e,PM[t]):(RM('The "position" parameter is not valid, defaulting to "center"'),mT(e,PM.center))}(n,t.position),function(e,t){if(!t)return;mT(e,PM[`grow-${t}`])}(n,t.grow),dT(n,t,"container"))};var IT={innerParams:new WeakMap,domCache:new WeakMap};const FT=["input","file","range","select","radio","checkbox","textarea"],HT=e=>{if(!e.input)return;if(!UT[e.input])return Object.keys(UT).join(" | "),void e.input;const t=$T(e.input);if(!t)return;const n=UT[e.input](t,e);bT(t),e.inputAutoFocus&&setTimeout((()=>{pT(n)}))},BT=(e,t)=>{const n=VM();if(!n)return;const r=hT(n,e);if(r){(e=>{for(let t=0;t<e.attributes.length;t++){const n=e.attributes[t].name;["id","type","value","style"].includes(n)||e.removeAttribute(n)}})(r);for(const e in t)r.setAttribute(e,t[e])}},YT=e=>{if(!e.input)return;const t=$T(e.input);t&&dT(t,e,"input")},zT=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},WT=(e,t,n)=>{if(n.inputLabel){const r=document.createElement("label"),o=PM["input-label"];r.setAttribute("for",e.id),r.className=o,"object"==typeof n.customClass&&mT(r,n.customClass.inputLabel),r.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",r)}},$T=e=>{const t=VM();if(t)return vT(t,PM[e]||PM.input)},VT=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:YM(t)||RM(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},UT={};UT.text=UT.email=UT.password=UT.number=UT.tel=UT.url=UT.search=UT.date=UT["datetime-local"]=UT.time=UT.week=UT.month=(e,t)=>(VT(e,t.inputValue),WT(e,e,t),zT(e,t),e.type=t.input,e),UT.file=(e,t)=>(WT(e,e,t),zT(e,t),e),UT.range=(e,t)=>{const n=e.querySelector("input"),r=e.querySelector("output");return VT(n,t.inputValue),n.type=t.input,VT(r,t.inputValue),WT(n,e,t),e},UT.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const n=document.createElement("option");cT(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return WT(e,e,t),e},UT.radio=e=>(e.textContent="",e),UT.checkbox=(e,t)=>{const n=hT(VM(),"checkbox");n.value="1",n.checked=Boolean(t.inputValue);const r=e.querySelector("span");return cT(r,t.inputPlaceholder||t.inputLabel),n},UT.textarea=(e,t)=>{VT(e,t.inputValue),zT(e,t),WT(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const n=parseInt(window.getComputedStyle(VM()).width);new MutationObserver((()=>{if(!document.body.contains(e))return;const r=e.offsetWidth+(o=e,parseInt(window.getComputedStyle(o).marginLeft)+parseInt(window.getComputedStyle(o).marginRight));var o;r>n?VM().style.width=`${r}px`:yT(VM(),"width",t.width)})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const qT=(e,t)=>{const n=KM();n&&(xT(n),dT(n,t,"htmlContainer"),t.html?(NT(t.html,n),bT(n,"block")):t.text?(n.textContent=t.text,bT(n,"block")):wT(n),((e,t)=>{const n=VM();if(!n)return;const r=IT.innerParams.get(e),o=!r||t.input!==r.input;FT.forEach((e=>{const r=vT(n,PM[e]);r&&(BT(e,t.inputAttributes),r.className=PM[e],o&&wT(r))})),t.input&&(o&&HT(t),YT(t))})(e,t))},KT=(e,t)=>{for(const[n,r]of Object.entries(AM))t.icon!==n&&gT(e,r);mT(e,t.icon&&AM[t.icon]),QT(e,t),GT(),dT(e,t,"icon")},GT=()=>{const e=VM();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let r=0;r<n.length;r++)n[r].style.backgroundColor=t},ZT=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let n=e.innerHTML,r="";if(t.iconHtml)r=XT(t.iconHtml);else if("success"===t.icon)r='\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n',n=n.replace(/ style=".*?"/g,"");else if("error"===t.icon)r='\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n';else if(t.icon){r=XT({question:"?",warning:"!",info:"i"}[t.icon])}n.trim()!==r.trim()&&cT(e,r)},QT=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])_T(e,n,"background-color",t.iconColor);_T(e,".swal2-success-ring","border-color",t.iconColor)}},XT=e=>`<div class="${PM["icon-content"]}">${e}</div>`,JT=(e,t)=>{const n=t.showClass||{};e.className=`${PM.popup} ${CT(e)?n.popup:""}`,t.toast?(mT([document.documentElement,document.body],PM["toast-shown"]),mT(e,PM.toast)):mT(e,PM.modal),dT(e,t,"popup"),"string"==typeof t.customClass&&mT(e,t.customClass),t.icon&&mT(e,PM[`icon-${t.icon}`])},eN=e=>{const t=document.createElement("li");return mT(t,PM["progress-step"]),cT(t,e),t},tN=e=>{const t=document.createElement("li");return mT(t,PM["progress-step-line"]),e.progressStepsDistance&&yT(t,"width",e.progressStepsDistance),t},nN=(e,t)=>{((e,t)=>{const n=zM(),r=VM();if(n&&r){if(t.toast){yT(n,"width",t.width),r.style.width="100%";const e=tT();e&&r.insertBefore(e,UM())}else yT(r,"width",t.width);yT(r,"padding",t.padding),t.color&&(r.style.color=t.color),t.background&&(r.style.background=t.background),wT(QM()),JT(r,t)}})(0,t),LT(0,t),((e,t)=>{const n=ZM();if(!n)return;const{progressSteps:r,currentProgressStep:o}=t;r&&0!==r.length&&void 0!==o?(bT(n),n.textContent="",o>=r.length&&RM("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),r.forEach(((e,i)=>{const a=eN(e);if(n.appendChild(a),i===o&&mT(a,PM["active-progress-step"]),i!==r.length-1){const e=tN(t);n.appendChild(e)}}))):wT(n)})(0,t),((e,t)=>{const n=IT.innerParams.get(e),r=UM();if(r){if(n&&t.icon===n.icon)return ZT(r,t),void KT(r,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(AM).indexOf(t.icon))return t.icon,void wT(r);bT(r),ZT(r,t),KT(r,t),mT(r,t.showClass&&t.showClass.icon)}else wT(r)}})(e,t),((e,t)=>{const n=GM();n&&(t.imageUrl?(bT(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt||""),yT(n,"width",t.imageWidth),yT(n,"height",t.imageHeight),n.className=PM.image,dT(n,t,"image")):wT(n))})(0,t),((e,t)=>{const n=qM();n&&(xT(n),kT(n,t.title||t.titleText,"block"),t.title&&NT(t.title,n),t.titleText&&(n.innerText=t.titleText),dT(n,t,"title"))})(0,t),((e,t)=>{const n=iT();n&&(cT(n,t.closeButtonHtml||""),dT(n,t,"closeButton"),kT(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel||""))})(0,t),qT(e,t),jT(0,t),((e,t)=>{const n=rT();n&&(xT(n),kT(n,t.footer,"block"),t.footer&&NT(t.footer,n),dT(n,t,"footer"))})(0,t);const n=VM();"function"==typeof t.didRender&&n&&t.didRender(n),MM.eventEmitter.emit("didRender",n)},rN=()=>{var e;return null===(e=XM())||void 0===e?void 0:e.click()},oN=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),iN=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},aN=(e,t)=>{var n;const r=aT();if(r.length)return(e+=t)===r.length?e=0:-1===e&&(e=r.length-1),void r[e].focus();null===(n=VM())||void 0===n||n.focus()},sN=["ArrowRight","ArrowDown"],lN=["ArrowLeft","ArrowUp"],cN=(e,t,n)=>{e&&(t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?uN(t,e):"Tab"===t.key?dN(t):[...sN,...lN].includes(t.key)?hN(t.key):"Escape"===t.key&&pN(t,e,n)))},uN=(e,t)=>{if(!FM(t.allowEnterKey))return;const n=hT(VM(),t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;rN(),e.preventDefault()}},dN=e=>{const t=e.target,n=aT();let r=-1;for(let o=0;o<n.length;o++)if(t===n[o]){r=o;break}e.shiftKey?aN(r,-1):aN(r,1),e.stopPropagation(),e.preventDefault()},hN=e=>{const t=nT(),n=XM(),r=eT(),o=JM();if(!(t&&n&&r&&o))return;const i=[n,r,o];if(document.activeElement instanceof HTMLElement&&!i.includes(document.activeElement))return;const a=sN.includes(e)?"nextElementSibling":"previousElementSibling";let s=document.activeElement;if(s){for(let e=0;e<t.children.length;e++){if(s=s[a],!s)return;if(s instanceof HTMLButtonElement&&CT(s))break}s instanceof HTMLButtonElement&&s.focus()}},pN=(e,t,n)=>{FM(t.allowEscapeKey)&&(e.preventDefault(),n(oN.esc))};var fN={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const mN=()=>{Array.from(document.body.children).forEach((e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))},gN="undefined"!=typeof window&&!!window.GestureEvent,vN=()=>{const e=zM();if(!e)return;let t;e.ontouchstart=e=>{t=yN(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},yN=e=>{const t=e.target,n=zM(),r=KM();return!(!n||!r)&&(!bN(e)&&!wN(e)&&(t===n||!ST(n)&&t instanceof HTMLElement&&"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&(!ST(r)||!r.contains(t))))},bN=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,wN=e=>e.touches&&e.touches.length>1;let xN=null;const _N=e=>{null===xN&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(xN=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${xN+(()=>{const e=document.createElement("div");e.className=PM["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})()}px`)};function kN(e,t,n,r){lT()?NN(e,r):(TM(n).then((()=>NN(e,r))),iN(MM)),gN?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),sT()&&(null!==xN&&(document.body.style.paddingRight=`${xN}px`,xN=null),(()=>{if(uT(document.body,PM.iosfix)){const e=parseInt(document.body.style.top,10);gT(document.body,PM.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),mN()),gT([document.documentElement,document.body],[PM.shown,PM["height-auto"],PM["no-backdrop"],PM["toast-shown"]])}function CN(e){e=ON(e);const t=fN.swalPromiseResolve.get(this),n=SN(this);this.isAwaitingPromise?e.isDismissed||(DN(this),t(e)):n&&t(e)}const SN=e=>{const t=VM();if(!t)return!1;const n=IT.innerParams.get(e);if(!n||uT(t,n.hideClass.popup))return!1;gT(t,n.showClass.popup),mT(t,n.hideClass.popup);const r=zM();return gT(r,n.showClass.backdrop),mT(r,n.hideClass.backdrop),MN(e,t,n),!0};function EN(e){const t=fN.swalPromiseReject.get(this);DN(this),t&&t(e)}const DN=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,IT.innerParams.get(e)||e._destroy())},ON=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),MN=(e,t,n)=>{const r=zM(),o=ET(t);"function"==typeof n.willClose&&n.willClose(t),MM.eventEmitter.emit("willClose",t),o?TN(e,t,r,n.returnFocus,n.didClose):kN(e,r,n.returnFocus,n.didClose)},TN=(e,t,n,r,o)=>{MM.swalCloseEventFinishedCallback=kN.bind(null,e,n,r,o);const i=function(e){e.target===t&&(MM.swalCloseEventFinishedCallback(),delete MM.swalCloseEventFinishedCallback,t.removeEventListener("animationend",i),t.removeEventListener("transitionend",i))};t.addEventListener("animationend",i),t.addEventListener("transitionend",i)},NN=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),MM.eventEmitter.emit("didClose"),e._destroy&&e._destroy()}))},PN=e=>{let t=VM();if(t||new cA,t=VM(),!t)return;const n=tT();lT()?wT(UM()):AN(t,e),bT(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},AN=(e,t)=>{const n=nT(),r=tT();n&&r&&(!t&&CT(XM())&&(t=XM()),bT(n),t&&(wT(t),r.setAttribute("data-button-to-replace",t.className),n.insertBefore(r,t)),mT([e,n],PM.loading))},jN=e=>e.checked?1:0,RN=e=>e.checked?e.value:null,LN=e=>e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,IN=(e,t)=>{const n=VM();if(!n)return;const r=e=>{"select"===t.input?function(e,t,n){const r=vT(e,PM.select);if(!r)return;const o=(e,t,r)=>{const o=document.createElement("option");o.value=r,cT(o,t),o.selected=BN(r,n.inputValue),e.appendChild(o)};t.forEach((e=>{const t=e[0],n=e[1];if(Array.isArray(n)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,r.appendChild(e),n.forEach((t=>o(e,t[1],t[0])))}else o(r,n,t)})),r.focus()}(n,HN(e),t):"radio"===t.input&&function(e,t,n){const r=vT(e,PM.radio);if(!r)return;t.forEach((e=>{const t=e[0],o=e[1],i=document.createElement("input"),a=document.createElement("label");i.type="radio",i.name=PM.radio,i.value=t,BN(t,n.inputValue)&&(i.checked=!0);const s=document.createElement("span");cT(s,o),s.className=PM.label,a.appendChild(i),a.appendChild(s),r.appendChild(a)}));const o=r.querySelectorAll("input");o.length&&o[0].focus()}(n,HN(e),t)};HM(t.inputOptions)||YM(t.inputOptions)?(PN(XM()),BM(t.inputOptions).then((t=>{e.hideLoading(),r(t)}))):"object"==typeof t.inputOptions?r(t.inputOptions):t.inputOptions},FN=(e,t)=>{const n=e.getInput();n&&(wT(n),BM(t.inputValue).then((r=>{n.value="number"===t.input?`${parseFloat(r)||0}`:`${r}`,bT(n),n.focus(),e.hideLoading()})).catch((t=>{n.value="",bT(n),n.focus(),e.hideLoading()})))};const HN=e=>{const t=[];return e instanceof Map?e.forEach(((e,n)=>{let r=e;"object"==typeof r&&(r=HN(r)),t.push([n,r])})):Object.keys(e).forEach((n=>{let r=e[n];"object"==typeof r&&(r=HN(r)),t.push([n,r])})),t},BN=(e,t)=>!!t&&t.toString()===e.toString(),YN=(e,t)=>{const n=IT.innerParams.get(e);if(!n.input)return void jM(t);const r=e.getInput(),o=((e,t)=>{const n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return jN(n);case"radio":return RN(n);case"file":return LN(n);default:return t.inputAutoTrim?n.value.trim():n.value}})(e,n);n.inputValidator?zN(e,o,t):r&&!r.checkValidity()?(e.enableButtons(),e.showValidationMessage(n.validationMessage||r.validationMessage)):"deny"===t?WN(e,o):UN(e,o)},zN=(e,t,n)=>{const r=IT.innerParams.get(e);e.disableInput();Promise.resolve().then((()=>BM(r.inputValidator(t,r.validationMessage)))).then((r=>{e.enableButtons(),e.enableInput(),r?e.showValidationMessage(r):"deny"===n?WN(e,t):UN(e,t)}))},WN=(e,t)=>{const n=IT.innerParams.get(e||void 0);if(n.showLoaderOnDeny&&PN(eT()),n.preDeny){e.isAwaitingPromise=!0;Promise.resolve().then((()=>BM(n.preDeny(t,n.validationMessage)))).then((n=>{!1===n?(e.hideLoading(),DN(e)):e.close({isDenied:!0,value:void 0===n?t:n})})).catch((t=>VN(e||void 0,t)))}else e.close({isDenied:!0,value:t})},$N=(e,t)=>{e.close({isConfirmed:!0,value:t})},VN=(e,t)=>{e.rejectPromise(t)},UN=(e,t)=>{const n=IT.innerParams.get(e||void 0);if(n.showLoaderOnConfirm&&PN(),n.preConfirm){e.resetValidationMessage(),e.isAwaitingPromise=!0;Promise.resolve().then((()=>BM(n.preConfirm(t,n.validationMessage)))).then((n=>{CT(QM())||!1===n?(e.hideLoading(),DN(e)):$N(e,void 0===n?t:n)})).catch((t=>VN(e||void 0,t)))}else $N(e,t)};function qN(){const e=IT.innerParams.get(this);if(!e)return;const t=IT.domCache.get(this);wT(t.loader),lT()?e.icon&&bT(UM()):KN(t),gT([t.popup,t.actions],PM.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const KN=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?bT(t[0],"inline-block"):CT(XM())||CT(eT())||CT(JM())||wT(e.actions)};function GN(){const e=IT.innerParams.get(this),t=IT.domCache.get(this);return t?hT(t.popup,e.input):null}function ZN(e,t,n){const r=IT.domCache.get(e);t.forEach((e=>{r[e].disabled=n}))}function QN(e,t){const n=VM();if(n&&e)if("radio"===e.type){const e=n.querySelectorAll(`[name="${PM.radio}"]`);for(let n=0;n<e.length;n++)e[n].disabled=t}else e.disabled=t}function XN(){ZN(this,["confirmButton","denyButton","cancelButton"],!1)}function JN(){ZN(this,["confirmButton","denyButton","cancelButton"],!0)}function eP(){QN(this.getInput(),!1)}function tP(){QN(this.getInput(),!0)}function nP(e){const t=IT.domCache.get(this),n=IT.innerParams.get(this);cT(t.validationMessage,e),t.validationMessage.className=PM["validation-message"],n.customClass&&n.customClass.validationMessage&&mT(t.validationMessage,n.customClass.validationMessage),bT(t.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid","true"),r.setAttribute("aria-describedby",PM["validation-message"]),pT(r),mT(r,PM.inputerror))}function rP(){const e=IT.domCache.get(this);e.validationMessage&&wT(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),gT(t,PM.inputerror))}const oP={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},iP=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],aP={allowEnterKey:void 0},sP=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],lP=e=>Object.prototype.hasOwnProperty.call(oP,e),cP=e=>-1!==iP.indexOf(e),uP=e=>aP[e],dP=e=>{lP(e)||RM(`Unknown parameter "${e}"`)},hP=e=>{sP.includes(e)&&RM(`The parameter "${e}" is incompatible with toasts`)},pP=e=>{const t=uP(e);t&&IM(e,t)};function fP(e){const t=VM(),n=IT.innerParams.get(this);if(!t||uT(t,n.hideClass.popup))return void RM("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const r=mP(e),o=Object.assign({},n,r);nN(this,o),IT.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const mP=e=>{const t={};return Object.keys(e).forEach((n=>{cP(n)?t[n]=e[n]:RM(`Invalid parameter to update: ${n}`)})),t};function gP(){const e=IT.domCache.get(this),t=IT.innerParams.get(this);t?(e.popup&&MM.swalCloseEventFinishedCallback&&(MM.swalCloseEventFinishedCallback(),delete MM.swalCloseEventFinishedCallback),"function"==typeof t.didDestroy&&t.didDestroy(),MM.eventEmitter.emit("didDestroy"),vP(this)):yP(this)}const vP=e=>{yP(e),delete e.params,delete MM.keydownHandler,delete MM.keydownTarget,delete MM.currentInstance},yP=e=>{e.isAwaitingPromise?(bP(IT,e),e.isAwaitingPromise=!0):(bP(fN,e),bP(IT,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},bP=(e,t)=>{for(const n in e)e[n].delete(t)};var wP=Object.freeze({__proto__:null,_destroy:gP,close:CN,closeModal:CN,closePopup:CN,closeToast:CN,disableButtons:JN,disableInput:tP,disableLoading:qN,enableButtons:XN,enableInput:eP,getInput:GN,handleAwaitingPromise:DN,hideLoading:qN,rejectPromise:EN,resetValidationMessage:rP,showValidationMessage:nP,update:fP});const xP=(e,t,n)=>{t.popup.onclick=()=>{e&&(_P(e)||e.timer||e.input)||n(oN.close)}},_P=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let kP=!1;const CP=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(kP=!0)}}},SP=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(t){e.popup.onmouseup=()=>{},(t.target===e.popup||t.target instanceof HTMLElement&&e.popup.contains(t.target))&&(kP=!0)}}},EP=(e,t,n)=>{t.container.onclick=r=>{kP?kP=!1:r.target===t.container&&FM(e.allowOutsideClick)&&n(oN.backdrop)}},DP=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const OP=()=>{if(MM.timeout)return(()=>{const e=oT();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const n=t/parseInt(window.getComputedStyle(e).width)*100;e.style.width=`${n}%`})(),MM.timeout.stop()},MP=()=>{if(MM.timeout){const e=MM.timeout.start();return DT(e),e}};let TP=!1;const NP={};const PP=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in NP){const n=t.getAttribute(e);if(n)return void NP[e].fire({template:n})}};MM.eventEmitter=new class{constructor(){this.events={}}_getHandlersByEventName(e){return void 0===this.events[e]&&(this.events[e]=[]),this.events[e]}on(e,t){const n=this._getHandlersByEventName(e);n.includes(t)||n.push(t)}once(e,t){var n=this;const r=function(){n.removeListener(e,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];t.apply(n,i)};this.on(e,r)}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this._getHandlersByEventName(e).forEach((e=>{try{e.apply(this,n)}catch(t){}}))}removeListener(e,t){const n=this._getHandlersByEventName(e),r=n.indexOf(t);r>-1&&n.splice(r,1)}removeAllListeners(e){void 0!==this.events[e]&&(this.events[e].length=0)}reset(){this.events={}}};var AP=Object.freeze({__proto__:null,argsToParams:e=>{const t={};return"object"!=typeof e[0]||DP(e[0])?["title","html","icon"].forEach(((n,r)=>{const o=e[r];("string"==typeof o||DP(o))&&(t[n]=o)})):Object.assign(t,e[0]),t},bindClickHandler:function(){NP[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,TP||(document.body.addEventListener("click",PP),TP=!0)},clickCancel:()=>{var e;return null===(e=JM())||void 0===e?void 0:e.click()},clickConfirm:rN,clickDeny:()=>{var e;return null===(e=eT())||void 0===e?void 0:e.click()},enableLoading:PN,fire:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new this(...t)},getActions:nT,getCancelButton:JM,getCloseButton:iT,getConfirmButton:XM,getContainer:zM,getDenyButton:eT,getFocusableElements:aT,getFooter:rT,getHtmlContainer:KM,getIcon:UM,getIconContent:()=>$M(PM["icon-content"]),getImage:GM,getInputLabel:()=>$M(PM["input-label"]),getLoader:tT,getPopup:VM,getProgressSteps:ZM,getTimerLeft:()=>MM.timeout&&MM.timeout.getTimerLeft(),getTimerProgressBar:oT,getTitle:qM,getValidationMessage:QM,increaseTimer:e=>{if(MM.timeout){const t=MM.timeout.increase(e);return DT(t,!0),t}},isDeprecatedParameter:uP,isLoading:()=>{const e=VM();return!!e&&e.hasAttribute("data-loading")},isTimerRunning:()=>!(!MM.timeout||!MM.timeout.isRunning()),isUpdatableParameter:cP,isValidParameter:lP,isVisible:()=>CT(VM()),mixin:function(e){return class extends(this){_main(t,n){return super._main(t,Object.assign({},e,n))}}},off:(e,t)=>{e?t?MM.eventEmitter.removeListener(e,t):MM.eventEmitter.removeAllListeners(e):MM.eventEmitter.reset()},on:(e,t)=>{MM.eventEmitter.on(e,t)},once:(e,t)=>{MM.eventEmitter.once(e,t)},resumeTimer:MP,showLoading:PN,stopTimer:OP,toggleTimer:()=>{const e=MM.timeout;return e&&(e.running?OP():MP())}});class jP{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const RP=["swal-title","swal-html","swal-footer"],LP=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{$P(e,["name","value"]);const n=e.getAttribute("name"),r=e.getAttribute("value");n&&r&&(t[n]="boolean"==typeof oP[n]?"false"!==r:"object"==typeof oP[n]?JSON.parse(r):r)})),t},IP=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach((e=>{const n=e.getAttribute("name"),r=e.getAttribute("value");n&&r&&(t[n]=new Function(`return ${r}`)())})),t},FP=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{$P(e,["type","color","aria-label"]);const n=e.getAttribute("type");n&&["confirm","cancel","deny"].includes(n)&&(t[`${n}ButtonText`]=e.innerHTML,t[`show${jM(n)}Button`]=!0,e.hasAttribute("color")&&(t[`${n}ButtonColor`]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t[`${n}ButtonAriaLabel`]=e.getAttribute("aria-label")))})),t},HP=e=>{const t={},n=e.querySelector("swal-image");return n&&($P(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")||void 0),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")||void 0),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")||void 0),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt")||void 0)),t},BP=e=>{const t={},n=e.querySelector("swal-icon");return n&&($P(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},YP=e=>{const t={},n=e.querySelector("swal-input");n&&($P(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")));const r=Array.from(e.querySelectorAll("swal-input-option"));return r.length&&(t.inputOptions={},r.forEach((e=>{$P(e,["value"]);const n=e.getAttribute("value");if(!n)return;const r=e.innerHTML;t.inputOptions[n]=r}))),t},zP=(e,t)=>{const n={};for(const r in t){const o=t[r],i=e.querySelector(o);i&&($P(i,[]),n[o.replace(/^swal-/,"")]=i.innerHTML.trim())}return n},WP=e=>{const t=RP.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const n=e.tagName.toLowerCase();t.includes(n)||RM(`Unrecognized element <${n}>`)}))},$P=(e,t)=>{Array.from(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&RM([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`,""+(t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element.")])}))},VP=e=>{const t=zM(),n=VM();"function"==typeof e.willOpen&&e.willOpen(n),MM.eventEmitter.emit("willOpen",n);const r=window.getComputedStyle(document.body).overflowY;GP(t,n,e),setTimeout((()=>{qP(t,n)}),10),sT()&&(KP(t,e.scrollbarPadding,r),(()=>{const e=zM();Array.from(document.body.children).forEach((t=>{t.contains(e)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))}))})()),lT()||MM.previousActiveElement||(MM.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(n))),MM.eventEmitter.emit("didOpen",n),gT(t,PM["no-transition"])},UP=e=>{const t=VM();if(e.target!==t)return;const n=zM();t.removeEventListener("animationend",UP),t.removeEventListener("transitionend",UP),n.style.overflowY="auto"},qP=(e,t)=>{ET(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",UP),t.addEventListener("transitionend",UP)):e.style.overflowY="auto"},KP=(e,t,n)=>{(()=>{if(gN&&!uT(document.body,PM.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",mT(document.body,PM.iosfix),vN()}})(),t&&"hidden"!==n&&_N(n),setTimeout((()=>{e.scrollTop=0}))},GP=(e,t,n)=>{mT(e,n.showClass.backdrop),n.animation?(t.style.setProperty("opacity","0","important"),bT(t,"grid"),setTimeout((()=>{mT(t,n.showClass.popup),t.style.removeProperty("opacity")}),10)):bT(t,"grid"),mT([document.documentElement,document.body],PM.shown),n.heightAuto&&n.backdrop&&!n.toast&&mT([document.documentElement,document.body],PM["height-auto"])};var ZP={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function QP(e){!function(e){e.inputValidator||("email"===e.input&&(e.inputValidator=ZP.email),"url"===e.input&&(e.inputValidator=ZP.url))}(e),e.showLoaderOnConfirm&&!e.preConfirm&&RM("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(RM('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),TT(e)}let XP;var JP=new WeakMap;class eA{constructor(){if(OM(this,JP,void 0),"undefined"==typeof window)return;XP=this;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=Object.freeze(this.constructor.argsToParams(t));var o,i,a;this.params=r,this.isAwaitingPromise=!1,o=JP,i=this,a=this._main(XP.params),o.set(EM(o,i),a)}_main(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((e=>{!1===e.backdrop&&e.allowOutsideClick&&RM('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)dP(t),e.toast&&hP(t),pP(t)})(Object.assign({},t,e)),MM.currentInstance){const e=fN.swalPromiseResolve.get(MM.currentInstance),{isAwaitingPromise:t}=MM.currentInstance;MM.currentInstance._destroy(),t||e({isDismissed:!0}),sT()&&mN()}MM.currentInstance=XP;const n=nA(e,t);QP(n),Object.freeze(n),MM.timeout&&(MM.timeout.stop(),delete MM.timeout),clearTimeout(MM.restoreFocusTimeout);const r=rA(XP);return nN(XP,n),IT.innerParams.set(XP,n),tA(XP,r,n)}then(e){return DM(JP,this).then(e)}finally(e){return DM(JP,this).finally(e)}}const tA=(e,t,n)=>new Promise(((r,o)=>{const i=t=>{e.close({isDismissed:!0,dismiss:t})};fN.swalPromiseResolve.set(e,r),fN.swalPromiseReject.set(e,o),t.confirmButton.onclick=()=>{(e=>{const t=IT.innerParams.get(e);e.disableButtons(),t.input?YN(e,"confirm"):UN(e,!0)})(e)},t.denyButton.onclick=()=>{(e=>{const t=IT.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?YN(e,"deny"):WN(e,!1)})(e)},t.cancelButton.onclick=()=>{((e,t)=>{e.disableButtons(),t(oN.cancel)})(e,i)},t.closeButton.onclick=()=>{i(oN.close)},((e,t,n)=>{e.toast?xP(e,t,n):(CP(t),SP(t),EP(e,t,n))})(n,t,i),((e,t,n)=>{iN(e),t.toast||(e.keydownHandler=e=>cN(t,e,n),e.keydownTarget=t.keydownListenerCapture?window:VM(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)})(MM,n,i),((e,t)=>{"select"===t.input||"radio"===t.input?IN(e,t):["text","email","number","tel","textarea"].some((e=>e===t.input))&&(HM(t.inputValue)||YM(t.inputValue))&&(PN(XM()),FN(e,t))})(e,n),VP(n),oA(MM,n,i),iA(t,n),setTimeout((()=>{t.container.scrollTop=0}))})),nA=(e,t)=>{const n=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const n=t.content;return WP(n),Object.assign(LP(n),IP(n),FP(n),HP(n),BP(n),YP(n),zP(n,RP))})(e),r=Object.assign({},oP,t,n,e);return r.showClass=Object.assign({},oP.showClass,r.showClass),r.hideClass=Object.assign({},oP.hideClass,r.hideClass),!1===r.animation&&(r.showClass={backdrop:"swal2-noanimation"},r.hideClass={}),r},rA=e=>{const t={popup:VM(),container:zM(),actions:nT(),confirmButton:XM(),denyButton:eT(),cancelButton:JM(),loader:tT(),closeButton:iT(),validationMessage:QM(),progressSteps:ZM()};return IT.domCache.set(e,t),t},oA=(e,t,n)=>{const r=oT();wT(r),t.timer&&(e.timeout=new jP((()=>{n("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(bT(r),dT(r,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&DT(t.timer)}))))},iA=(e,t)=>{if(!t.toast)return FM(t.allowEnterKey)?void(aA(e)||sA(e,t)||aN(-1,1)):(IM("allowEnterKey"),void lA())},aA=e=>{const t=e.popup.querySelectorAll("[autofocus]");for(const n of t)if(n instanceof HTMLElement&&CT(n))return n.focus(),!0;return!1},sA=(e,t)=>t.focusDeny&&CT(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&CT(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!CT(e.confirmButton))&&(e.confirmButton.focus(),!0),lA=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const e=new Date,t=localStorage.getItem("swal-initiation");t?(e.getTime()-Date.parse(t))/864e5>3&&setTimeout((()=>{document.body.style.pointerEvents="none";const e=document.createElement("audio");e.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",e.loop=!0,document.body.appendChild(e),setTimeout((()=>{e.play().catch((()=>{}))}),2500)}),500):localStorage.setItem("swal-initiation",`${e}`)}eA.prototype.disableButtons=JN,eA.prototype.enableButtons=XN,eA.prototype.getInput=GN,eA.prototype.disableInput=tP,eA.prototype.enableInput=eP,eA.prototype.hideLoading=qN,eA.prototype.disableLoading=qN,eA.prototype.showValidationMessage=nP,eA.prototype.resetValidationMessage=rP,eA.prototype.close=CN,eA.prototype.closePopup=CN,eA.prototype.closeModal=CN,eA.prototype.closeToast=CN,eA.prototype.rejectPromise=EN,eA.prototype.update=fP,eA.prototype._destroy=gP,Object.assign(eA,AP),Object.keys(wP).forEach((e=>{eA[e]=function(){return XP&&XP[e]?XP[e](...arguments):null}})),eA.DismissReason=oN,eA.version="11.14.4";const cA=eA;var uA,dA;cA.default=cA,"undefined"!=typeof document&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch(r){n.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:hsl(0,0%,33%);font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):focus-visible{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):focus-visible{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):focus-visible{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus-visible{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:0;padding:1em 1.6em .3em;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid hsl(0,0%,85%);border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:hsl(0,0%,94%);color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:rgb(249.95234375,205.965625,167.74765625);color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:rgb(156.7033492823,224.2822966507,246.2966507177);color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:rgb(200.8064516129,217.9677419355,225.1935483871);color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}'),(dA=uA||(uA={})).Pop="POP",dA.Push="PUSH",dA.Replace="REPLACE";var hA="production"!==process.env.NODE_ENV?function(e){return Object.freeze(e)}:function(e){return e};var pA="beforeunload";function fA(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function o(){var e=n.location,t=e.pathname,o=e.search,i=e.hash,a=r.state||{};return[a.idx,hA({pathname:t,search:o,hash:i,state:a.usr||null,key:a.key||"default"})]}var i=null;n.addEventListener("popstate",(function(){if(i)d.call(i),i=null;else{var e=uA.Pop,t=o(),n=t[0],r=t[1];if(d.length)if(null!=n){var a=l-n;a&&(i={action:e,location:r,retry:function(){v(-1*a)}},v(a))}else"production"!==process.env.NODE_ENV&&function(e,t){try{throw new Error(t)}catch(n){}}(0,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation.");else g(e)}}));var a=uA.Pop,s=o(),l=s[0],c=s[1],u=gA(),d=gA();function h(e){return"string"==typeof e?e:function(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,o=void 0===r?"":r,i=e.hash,a=void 0===i?"":i;o&&"?"!==o&&(n+="?"===o.charAt(0)?o:"?"+o);a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a);return n}(e)}function p(e,t){return void 0===t&&(t=null),hA(Qa({pathname:c.pathname,hash:"",search:""},"string"==typeof e?function(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}(e):e,{state:t,key:Math.random().toString(36).substr(2,8)}))}function f(e,t){return[{usr:e.state,key:e.key,idx:t},h(e)]}function m(e,t,n){return!d.length||(d.call({action:e,location:t,retry:n}),!1)}function g(e){a=e;var t=o();l=t[0],c=t[1],u.call({action:a,location:c})}function v(e){r.go(e)}null==l&&(l=0,r.replaceState(Qa({},r.state,{idx:l}),""));var y={get action(){return a},get location(){return c},createHref:h,push:function e(t,o){var i=uA.Push,a=p(t,o);if(m(i,a,(function(){e(t,o)}))){var s=f(a,l+1),c=s[0],u=s[1];try{r.pushState(c,"",u)}catch(d){n.location.assign(u)}g(i)}},replace:function e(t,n){var o=uA.Replace,i=p(t,n);if(m(o,i,(function(){e(t,n)}))){var a=f(i,l),s=a[0],c=a[1];r.replaceState(s,"",c),g(o)}},go:v,back:function(){v(-1)},forward:function(){v(1)},listen:function(e){return u.push(e)},block:function(e){var t=d.push(e);return 1===d.length&&n.addEventListener(pA,mA),function(){t(),d.length||n.removeEventListener(pA,mA)}}};return y}function mA(e){e.preventDefault(),e.returnValue=""}function gA(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}const vA=["otic","otec","empresa"],yA=e=>{const t=vA.find((t=>e.includes(t)));return"empresa"===(null==t?void 0:t.toLowerCase())?"cliente":t??""},bA=e=>e??"",wA=t.memo((e=>{const{app:n,layout:r=!0,navbar:o=()=>!0,sidebar:i=()=>!0,footer:a,navigation:s,environment:l,observerToken:c=!0,previousPath:u=!1,includeNavbarDropdown:d}=e,[h,p]=t.useState({}),f=t.useRef(fA()),m=t.useRef(!0);GE(eD.ON_CONNECT_APP,(()=>{p((e=>({...e,loading:!0})))}),n);const g=t.useCallback((e=>{e&&p(e)}),[]),v=t.useCallback((async e=>{var t;m.current&&(m.current=!1,await cA.fire({icon:"warning",text:"No tiene permisos para acceder a este recurso",title:"Acceso denegado",showCloseButton:!0,showCancelButton:!1,showConfirmButton:!1}),null==(t=f.current)||t.push({pathname:e}),m.current=!0)}),[]);t.useEffect((()=>{"boolean"==typeof e.loading&&p((t=>({...t,loading:e.loading})))}),[e.loading]),t.useEffect((()=>{c&&XE(eD.SIGNAL,(e=>{p({...e,loading:!1})}))}),[n,c]);const y=t.useMemo((()=>{var e,t,n,r;return{...h,onSignal:g,onAcessDenied:v,history:f.current,environment:l,ref:{lastName:bA(null==(e=null==h?void 0:h.user)?void 0:e.lastName),firstName:bA(null==(t=null==h?void 0:h.user)?void 0:t.firstName),role:yA((null==(r=null==(n=null==h?void 0:h.info)?void 0:n.realm_access)?void 0:r.roles)??[])}}}),[h,l,g,v]);return O.jsx(D_.Provider,{value:y,children:r?O.jsx(gk,{menu:s,includeNavbar:null==o?void 0:o(h,h.loading),includeSidebar:null==i?void 0:i(h,h.loading),includeFooter:a,previousPath:u,includeNavbarDropdown:d,children:h.loading?O.jsx(Bx,{status:!0}):e.children}):O.jsx(O.Fragment,{children:h.loading?O.jsx(Bx,{status:!0}):e.children})})}));var xA=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(xA||{}),_A=(e=>(e.INFO="#4caf50",e.WARN="#ff9800",e.ERROR="#f44336",e.DEBUG="#2196f3",e))(_A||{});class kA{constructor(e=1,t=!1){g(this,"logLevel"),g(this,"isDevelopment"),g(this,"logs"),this.logLevel=e,this.isDevelopment=t,this.logs=[]}debug(e,...t){this.logLevel<=0&&this.log("🐛",e,"#2196f3",...t)}info(e,...t){this.logLevel<=1&&this.log("ℹ️",e,"#4caf50",...t)}warn(e,...t){this.logLevel<=2&&this.log("⚠️",e,"#ff9800",...t)}error(e,...t){this.logLevel<=3&&this.log("🚨",e,"#f44336",...t)}log(e,t,n,...r){const o=`${e} ${t}`;this.isDevelopment,this.logs.push(o)}getLogs(){return this.logs}}var CA=(e=>(e.IB="Integra Negocio",e.SP="Sistema de Perfilamiento v2",e))(CA||{});const SA=t.memo((({allow:e,grants:n,children:r})=>{var o;const i=t.useContext(D_),a=new kA(void 0,null==n?void 0:n.debug),[s,l]=t.useState(!1);t.useEffect((()=>{var e,t;(null==(t=null==(e=null==i?void 0:i.user)?void 0:e.systems)?void 0:t.length)&&c(i)}),[null==(o=null==i?void 0:i.user)?void 0:o.systems]);const c=t.useCallback((async t=>{var r,o;const s=null==(o=null==(r=null==t?void 0:t.user)?void 0:r.systems)?void 0:o.find((e=>e.name===(null==n?void 0:n.system)));if(a.debug("ref:",s),null==s?void 0:s.functions){s.functions.filter((t=>{const n=null==t?void 0:t.key;return null==e?void 0:e.includes(n)})).length===(null==e?void 0:e.length)?l(!0):(a.debug("denied"),(null==i?void 0:i.onAcessDenied)&&(null==i||i.onAcessDenied(null==n?void 0:n.redirect)))}}),[null==n?void 0:n.system,null==n?void 0:n.debug,e]);return O.jsx(O.Fragment,{children:s?r:null})}));SA.defaultProps={allow:[],grants:{debug:!1,system:"Integra Negocio",redirect:"/dashboard",popup:{text:"You don't have the required permissions to access this page.",title:"Access Denied"}}};class EA{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const DA="undefined"==typeof window||"Deno"in window;function OA(){}function MA(e){return"number"==typeof e&&e>=0&&e!==1/0}function TA(e,t,n){return r=e,Array.isArray(r)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e;var r}function NA(e,t){if(e===t)return e;const n=AA(e)&&AA(t);if(n||jA(e)&&jA(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{};let s=0;for(let l=0;l<i;l++){const r=n?l:o[l];a[r]=NA(e[r],t[r]),a[r]===e[r]&&s++}return r===i&&s===r?e:a}return t}function PA(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function AA(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function jA(e){if(!RA(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!RA(n)&&!!n.hasOwnProperty("isPrototypeOf")}function RA(e){return"[object Object]"===Object.prototype.toString.call(e)}function LA(e){var t;(t=0,new Promise((e=>{setTimeout(e,t)}))).then(e)}function IA(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?NA(e,t):t}const FA=new class extends EA{constructor(){super(),this.setup=e=>{if(!DA&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach((({listener:e})=>{e()}))}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},HA=["online","offline"];const BA=new class extends EA{constructor(){super(),this.setup=e=>{if(!DA&&window.addEventListener){const t=()=>e();return HA.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{HA.forEach((e=>{window.removeEventListener(e,t)}))}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()}))}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach((({listener:e})=>{e()}))}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};class YA{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}const zA=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()};const o=r=>{t?e.push(r):LA((()=>{n(r)}))},i=()=>{const t=e;e=[],t.length&&LA((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||i()}return n},batchCalls:e=>(...t)=>{o((()=>{e(...t)}))},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e}}}();class WA extends EA{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),$A(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return VA(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return VA(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),"production"!==process.env.NODE_ENV&&void 0!==(null==e?void 0:e.isDataEqual)&&this.client.getLogger().error("The isDataEqual option has been deprecated and will be removed in the next major version. You can achieve the same functionality by passing a function as the structuralSharing option"),PA(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const o=this.hasListeners();o&&UA(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!o||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const i=this.computeRefetchInterval();!o||this.currentQuery===r&&this.options.enabled===n.enabled&&i===this.currentRefetchInterval||this.updateRefetchInterval(i)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){if(n.keepPreviousData)return!1;if(void 0!==n.placeholderData)return t.isPlaceholderData;if(!PA(e.getCurrentResult(),t))return!0;return!1}(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach((n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})})),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,t)))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then((()=>(this.updateResult(),this.currentResult)))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(OA)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),DA||this.currentResult.isStale||!MA(this.options.staleTime))return;var e,t;const n=(e=this.currentResult.dataUpdatedAt,t=this.options.staleTime,Math.max(e+(t||0)-Date.now(),0))+1;this.staleTimeoutId=setTimeout((()=>{this.currentResult.isStale||this.updateResult()}),n)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!DA&&!1!==this.options.enabled&&MA(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||FA.isFocused())&&this.executeFetch()}),this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,r=this.options,o=this.currentResult,i=this.currentResultState,a=this.currentResultOptions,s=e!==n,l=s?e.state:this.currentQueryInitialState,c=s?this.currentResult:this.previousQueryResult,{state:u}=e;let d,{dataUpdatedAt:h,error:p,errorUpdatedAt:f,fetchStatus:m,status:g}=u,v=!1,y=!1;if(t._optimisticResults){const o=this.hasListeners(),i=!o&&$A(e,t),a=o&&UA(e,n,t,r);(i||a)&&(m="online"!==(null!=(b=e.options.networkMode)?b:"online")||BA.isOnline()?"fetching":"paused",h||(g="loading")),"isRestoring"===t._optimisticResults&&(m="idle")}var b;if(t.keepPreviousData&&!u.dataUpdatedAt&&null!=c&&c.isSuccess&&"error"!==g)d=c.data,h=c.dataUpdatedAt,g=c.status,v=!0;else if(t.select&&void 0!==u.data)if(o&&u.data===(null==i?void 0:i.data)&&t.select===this.selectFn)d=this.selectResult;else try{this.selectFn=t.select,d=t.select(u.data),d=IA(null==o?void 0:o.data,d,t),this.selectResult=d,this.selectError=null}catch(k){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(k),this.selectError=k}else d=u.data;if(void 0!==t.placeholderData&&void 0===d&&"loading"===g){let e;if(null!=o&&o.isPlaceholderData&&t.placeholderData===(null==a?void 0:a.placeholderData))e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(k){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(k),this.selectError=k}void 0!==e&&(g="success",d=IA(null==o?void 0:o.data,e,t),y=!0)}this.selectError&&(p=this.selectError,d=this.selectResult,f=Date.now(),g="error");const w="fetching"===m,x="loading"===g,_="error"===g;return{status:g,fetchStatus:m,isLoading:x,isSuccess:"success"===g,isError:_,isInitialLoading:x&&w,data:d,dataUpdatedAt:h,error:p,errorUpdatedAt:f,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:w,isRefetching:w&&!x,isLoadingError:_&&0===u.dataUpdatedAt,isPaused:"paused"===m,isPlaceholderData:y,isPreviousData:v,isRefetchError:_&&0!==u.dataUpdatedAt,isStale:qA(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,PA(n,t))return;this.currentResult=n;const r={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const r=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some((e=>{const n=e;return this.currentResult[n]!==t[n]&&r.has(n)}))})()&&(r.listeners=!0),this.notify({...r,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||e.error instanceof YA||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){zA.batch((()=>{var t,n,r,o;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(r=(o=this.options).onSettled)||r.call(o,this.currentResult.data,null);else if(e.onError){var i,a,s,l;null==(i=(a=this.options).onError)||i.call(a,this.currentResult.error),null==(s=(l=this.options).onSettled)||s.call(l,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)})),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})}))}}function $A(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&VA(e,t,t.refetchOnMount)}function VA(e,t,n){if(!1!==t.enabled){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&qA(e,t)}return!1}function UA(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&qA(e,n)}function qA(e,t){return e.isStaleByTime(t.staleTime)}var KA,GA={exports:{}},ZA={};var QA,XA={};
1283
+ function DM(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function OM(e,t){return e.get(DM(e,t))}function MM(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}const TM={},NM=e=>new Promise((t=>{if(!e)return t();const n=window.scrollX,r=window.scrollY;TM.restoreFocusTimeout=setTimeout((()=>{TM.previousActiveElement instanceof HTMLElement?(TM.previousActiveElement.focus(),TM.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(n,r)})),PM="swal2-",AM=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"].reduce(((e,t)=>(e[t]=PM+t,e)),{}),jM=["success","warning","info","question","error"].reduce(((e,t)=>(e[t]=PM+t,e)),{}),RM=e=>e.charAt(0).toUpperCase()+e.slice(1),LM=e=>{},IM=[],FM=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;var n;n=`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`,IM.includes(n)||(IM.push(n),LM(n))},HM=e=>"function"==typeof e?e():e,BM=e=>e&&"function"==typeof e.toPromise,YM=e=>BM(e)?e.toPromise():Promise.resolve(e),zM=e=>e&&Promise.resolve(e)===e,WM=()=>document.body.querySelector(`.${AM.container}`),$M=e=>{const t=WM();return t?t.querySelector(e):null},VM=e=>$M(`.${e}`),UM=()=>VM(AM.popup),qM=()=>VM(AM.icon),KM=()=>VM(AM.title),GM=()=>VM(AM["html-container"]),ZM=()=>VM(AM.image),QM=()=>VM(AM["progress-steps"]),XM=()=>VM(AM["validation-message"]),JM=()=>$M(`.${AM.actions} .${AM.confirm}`),eT=()=>$M(`.${AM.actions} .${AM.cancel}`),tT=()=>$M(`.${AM.actions} .${AM.deny}`),nT=()=>$M(`.${AM.loader}`),rT=()=>VM(AM.actions),oT=()=>VM(AM.footer),iT=()=>VM(AM["timer-progress-bar"]),aT=()=>VM(AM.close),sT=()=>{const e=UM();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(t).sort(((e,t)=>{const n=parseInt(e.getAttribute("tabindex")||"0"),r=parseInt(t.getAttribute("tabindex")||"0");return n>r?1:n<r?-1:0})),r=e.querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n'),o=Array.from(r).filter((e=>"-1"!==e.getAttribute("tabindex")));return[...new Set(n.concat(o))].filter((e=>ST(e)))},lT=()=>dT(document.body,AM.shown)&&!dT(document.body,AM["toast-shown"])&&!dT(document.body,AM["no-backdrop"]),cT=()=>{const e=UM();return!!e&&dT(e,AM.toast)},uT=(e,t)=>{if(e.textContent="",t){const n=(new DOMParser).parseFromString(t,"text/html"),r=n.querySelector("head");r&&Array.from(r.childNodes).forEach((t=>{e.appendChild(t)}));const o=n.querySelector("body");o&&Array.from(o.childNodes).forEach((t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)}))}},dT=(e,t)=>{if(!t)return!1;const n=t.split(/\s+/);for(let r=0;r<n.length;r++)if(!e.classList.contains(n[r]))return!1;return!0},hT=(e,t,n)=>{if(((e,t)=>{Array.from(e.classList).forEach((n=>{Object.values(AM).includes(n)||Object.values(jM).includes(n)||Object.values(t.showClass||{}).includes(n)||e.classList.remove(n)}))})(e,t),!t.customClass)return;const r=t.customClass[n];r&&("string"==typeof r||r.forEach?gT(e,r):LM(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof r}"`))},pT=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${AM.popup} > .${AM[t]}`);case"checkbox":return e.querySelector(`.${AM.popup} > .${AM.checkbox} input`);case"radio":return e.querySelector(`.${AM.popup} > .${AM.radio} input:checked`)||e.querySelector(`.${AM.popup} > .${AM.radio} input:first-child`);case"range":return e.querySelector(`.${AM.popup} > .${AM.range} input`);default:return e.querySelector(`.${AM.popup} > .${AM.input}`)}},fT=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},mT=(e,t,n)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{n?e.classList.add(t):e.classList.remove(t)})):n?e.classList.add(t):e.classList.remove(t)})))},gT=(e,t)=>{mT(e,t,!0)},vT=(e,t)=>{mT(e,t,!1)},yT=(e,t)=>{const n=Array.from(e.children);for(let r=0;r<n.length;r++){const e=n[r];if(e instanceof HTMLElement&&dT(e,t))return e}},bT=(e,t,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||0===parseInt(n)?e.style.setProperty(t,"number"==typeof n?`${n}px`:n):e.style.removeProperty(t)},wT=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e&&(e.style.display=t)},xT=e=>{e&&(e.style.display="none")},_T=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"block";e&&new MutationObserver((()=>{CT(e,e.innerHTML,t)})).observe(e,{childList:!0,subtree:!0})},kT=(e,t,n,r)=>{const o=e.querySelector(t);o&&o.style.setProperty(n,r)},CT=function(e,t){t?wT(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):xT(e)},ST=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),ET=e=>!!(e.scrollHeight>e.clientHeight),DT=e=>{const t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),r=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||r>0},OT=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=iT();n&&ST(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout((()=>{n.style.transition=`width ${e/1e3}s linear`,n.style.width="0%"}),10))},MT=`\n <div aria-labelledby="${AM.title}" aria-describedby="${AM["html-container"]}" class="${AM.popup}" tabindex="-1">\n <button type="button" class="${AM.close}"></button>\n <ul class="${AM["progress-steps"]}"></ul>\n <div class="${AM.icon}"></div>\n <img class="${AM.image}" />\n <h2 class="${AM.title}" id="${AM.title}"></h2>\n <div class="${AM["html-container"]}" id="${AM["html-container"]}"></div>\n <input class="${AM.input}" id="${AM.input}" />\n <input type="file" class="${AM.file}" />\n <div class="${AM.range}">\n <input type="range" />\n <output></output>\n </div>\n <select class="${AM.select}" id="${AM.select}"></select>\n <div class="${AM.radio}"></div>\n <label class="${AM.checkbox}">\n <input type="checkbox" id="${AM.checkbox}" />\n <span class="${AM.label}"></span>\n </label>\n <textarea class="${AM.textarea}" id="${AM.textarea}"></textarea>\n <div class="${AM["validation-message"]}" id="${AM["validation-message"]}"></div>\n <div class="${AM.actions}">\n <div class="${AM.loader}"></div>\n <button type="button" class="${AM.confirm}"></button>\n <button type="button" class="${AM.deny}"></button>\n <button type="button" class="${AM.cancel}"></button>\n </div>\n <div class="${AM.footer}"></div>\n <div class="${AM["timer-progress-bar-container"]}">\n <div class="${AM["timer-progress-bar"]}"></div>\n </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),TT=()=>{TM.currentInstance.resetValidationMessage()},NT=e=>{const t=(()=>{const e=WM();return!!e&&(e.remove(),vT([document.documentElement,document.body],[AM["no-backdrop"],AM["toast-shown"],AM["has-column"]]),!0)})();if("undefined"==typeof window||"undefined"==typeof document)return;const n=document.createElement("div");n.className=AM.container,t&&gT(n,AM["no-transition"]),uT(n,MT);const r="string"==typeof(o=e.target)?document.querySelector(o):o;var o;r.appendChild(n),(e=>{const t=UM();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&gT(WM(),AM.rtl)})(r),(()=>{const e=UM(),t=yT(e,AM.input),n=yT(e,AM.file),r=e.querySelector(`.${AM.range} input`),o=e.querySelector(`.${AM.range} output`),i=yT(e,AM.select),a=e.querySelector(`.${AM.checkbox} input`),s=yT(e,AM.textarea);t.oninput=TT,n.onchange=TT,i.onchange=TT,a.onchange=TT,s.oninput=TT,r.oninput=()=>{TT(),o.value=r.value},r.onchange=()=>{TT(),o.value=r.value}})()},PT=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?AT(e,t):e&&uT(t,e)},AT=(e,t)=>{e.jquery?jT(t,e):uT(t,e.toString())},jT=(e,t)=>{if(e.textContent="",0 in t)for(let n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},RT=(e,t)=>{const n=rT(),r=nT();n&&r&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?wT(n):xT(n),hT(n,t,"actions"),function(e,t,n){const r=JM(),o=tT(),i=eT();if(!r||!o||!i)return;LT(r,"confirm",n),LT(o,"deny",n),LT(i,"cancel",n),function(e,t,n,r){if(!r.buttonsStyling)return void vT([e,t,n],AM.styled);gT([e,t,n],AM.styled),r.confirmButtonColor&&(e.style.backgroundColor=r.confirmButtonColor,gT(e,AM["default-outline"]));r.denyButtonColor&&(t.style.backgroundColor=r.denyButtonColor,gT(t,AM["default-outline"]));r.cancelButtonColor&&(n.style.backgroundColor=r.cancelButtonColor,gT(n,AM["default-outline"]))}(r,o,i,n),n.reverseButtons&&(n.toast?(e.insertBefore(i,r),e.insertBefore(o,r)):(e.insertBefore(i,t),e.insertBefore(o,t),e.insertBefore(r,t)))}(n,r,t),uT(r,t.loaderHtml||""),hT(r,t,"loader"))};function LT(e,t,n){const r=RM(t);CT(e,n[`show${r}Button`],"inline-block"),uT(e,n[`${t}ButtonText`]||""),e.setAttribute("aria-label",n[`${t}ButtonAriaLabel`]||""),e.className=AM[t],hT(e,n,`${t}Button`)}const IT=(e,t)=>{const n=WM();n&&(!function(e,t){"string"==typeof t?e.style.background=t:t||gT([document.documentElement,document.body],AM["no-backdrop"])}(n,t.backdrop),function(e,t){if(!t)return;t in AM?gT(e,AM[t]):(LM('The "position" parameter is not valid, defaulting to "center"'),gT(e,AM.center))}(n,t.position),function(e,t){if(!t)return;gT(e,AM[`grow-${t}`])}(n,t.grow),hT(n,t,"container"))};var FT={innerParams:new WeakMap,domCache:new WeakMap};const HT=["input","file","range","select","radio","checkbox","textarea"],BT=e=>{if(!e.input)return;if(!qT[e.input])return Object.keys(qT).join(" | "),void e.input;const t=VT(e.input);if(!t)return;const n=qT[e.input](t,e);wT(t),e.inputAutoFocus&&setTimeout((()=>{fT(n)}))},YT=(e,t)=>{const n=UM();if(!n)return;const r=pT(n,e);if(r){(e=>{for(let t=0;t<e.attributes.length;t++){const n=e.attributes[t].name;["id","type","value","style"].includes(n)||e.removeAttribute(n)}})(r);for(const e in t)r.setAttribute(e,t[e])}},zT=e=>{if(!e.input)return;const t=VT(e.input);t&&hT(t,e,"input")},WT=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},$T=(e,t,n)=>{if(n.inputLabel){const r=document.createElement("label"),o=AM["input-label"];r.setAttribute("for",e.id),r.className=o,"object"==typeof n.customClass&&gT(r,n.customClass.inputLabel),r.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",r)}},VT=e=>{const t=UM();if(t)return yT(t,AM[e]||AM.input)},UT=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:zM(t)||LM(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},qT={};qT.text=qT.email=qT.password=qT.number=qT.tel=qT.url=qT.search=qT.date=qT["datetime-local"]=qT.time=qT.week=qT.month=(e,t)=>(UT(e,t.inputValue),$T(e,e,t),WT(e,t),e.type=t.input,e),qT.file=(e,t)=>($T(e,e,t),WT(e,t),e),qT.range=(e,t)=>{const n=e.querySelector("input"),r=e.querySelector("output");return UT(n,t.inputValue),n.type=t.input,UT(r,t.inputValue),$T(n,e,t),e},qT.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const n=document.createElement("option");uT(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return $T(e,e,t),e},qT.radio=e=>(e.textContent="",e),qT.checkbox=(e,t)=>{const n=pT(UM(),"checkbox");n.value="1",n.checked=Boolean(t.inputValue);const r=e.querySelector("span");return uT(r,t.inputPlaceholder||t.inputLabel),n},qT.textarea=(e,t)=>{UT(e,t.inputValue),WT(e,t),$T(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const n=parseInt(window.getComputedStyle(UM()).width);new MutationObserver((()=>{if(!document.body.contains(e))return;const r=e.offsetWidth+(o=e,parseInt(window.getComputedStyle(o).marginLeft)+parseInt(window.getComputedStyle(o).marginRight));var o;r>n?UM().style.width=`${r}px`:bT(UM(),"width",t.width)})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const KT=(e,t)=>{const n=GM();n&&(_T(n),hT(n,t,"htmlContainer"),t.html?(PT(t.html,n),wT(n,"block")):t.text?(n.textContent=t.text,wT(n,"block")):xT(n),((e,t)=>{const n=UM();if(!n)return;const r=FT.innerParams.get(e),o=!r||t.input!==r.input;HT.forEach((e=>{const r=yT(n,AM[e]);r&&(YT(e,t.inputAttributes),r.className=AM[e],o&&xT(r))})),t.input&&(o&&BT(t),zT(t))})(e,t))},GT=(e,t)=>{for(const[n,r]of Object.entries(jM))t.icon!==n&&vT(e,r);gT(e,t.icon&&jM[t.icon]),XT(e,t),ZT(),hT(e,t,"icon")},ZT=()=>{const e=UM();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let r=0;r<n.length;r++)n[r].style.backgroundColor=t},QT=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let n=e.innerHTML,r="";if(t.iconHtml)r=JT(t.iconHtml);else if("success"===t.icon)r='\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n',n=n.replace(/ style=".*?"/g,"");else if("error"===t.icon)r='\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n';else if(t.icon){r=JT({question:"?",warning:"!",info:"i"}[t.icon])}n.trim()!==r.trim()&&uT(e,r)},XT=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])kT(e,n,"background-color",t.iconColor);kT(e,".swal2-success-ring","border-color",t.iconColor)}},JT=e=>`<div class="${AM["icon-content"]}">${e}</div>`,eN=(e,t)=>{const n=t.showClass||{};e.className=`${AM.popup} ${ST(e)?n.popup:""}`,t.toast?(gT([document.documentElement,document.body],AM["toast-shown"]),gT(e,AM.toast)):gT(e,AM.modal),hT(e,t,"popup"),"string"==typeof t.customClass&&gT(e,t.customClass),t.icon&&gT(e,AM[`icon-${t.icon}`])},tN=e=>{const t=document.createElement("li");return gT(t,AM["progress-step"]),uT(t,e),t},nN=e=>{const t=document.createElement("li");return gT(t,AM["progress-step-line"]),e.progressStepsDistance&&bT(t,"width",e.progressStepsDistance),t},rN=(e,t)=>{((e,t)=>{const n=WM(),r=UM();if(n&&r){if(t.toast){bT(n,"width",t.width),r.style.width="100%";const e=nT();e&&r.insertBefore(e,qM())}else bT(r,"width",t.width);bT(r,"padding",t.padding),t.color&&(r.style.color=t.color),t.background&&(r.style.background=t.background),xT(XM()),eN(r,t)}})(0,t),IT(0,t),((e,t)=>{const n=QM();if(!n)return;const{progressSteps:r,currentProgressStep:o}=t;r&&0!==r.length&&void 0!==o?(wT(n),n.textContent="",o>=r.length&&LM("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),r.forEach(((e,i)=>{const a=tN(e);if(n.appendChild(a),i===o&&gT(a,AM["active-progress-step"]),i!==r.length-1){const e=nN(t);n.appendChild(e)}}))):xT(n)})(0,t),((e,t)=>{const n=FT.innerParams.get(e),r=qM();if(r){if(n&&t.icon===n.icon)return QT(r,t),void GT(r,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(jM).indexOf(t.icon))return t.icon,void xT(r);wT(r),QT(r,t),GT(r,t),gT(r,t.showClass&&t.showClass.icon)}else xT(r)}})(e,t),((e,t)=>{const n=ZM();n&&(t.imageUrl?(wT(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt||""),bT(n,"width",t.imageWidth),bT(n,"height",t.imageHeight),n.className=AM.image,hT(n,t,"image")):xT(n))})(0,t),((e,t)=>{const n=KM();n&&(_T(n),CT(n,t.title||t.titleText,"block"),t.title&&PT(t.title,n),t.titleText&&(n.innerText=t.titleText),hT(n,t,"title"))})(0,t),((e,t)=>{const n=aT();n&&(uT(n,t.closeButtonHtml||""),hT(n,t,"closeButton"),CT(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel||""))})(0,t),KT(e,t),RT(0,t),((e,t)=>{const n=oT();n&&(_T(n),CT(n,t.footer,"block"),t.footer&&PT(t.footer,n),hT(n,t,"footer"))})(0,t);const n=UM();"function"==typeof t.didRender&&n&&t.didRender(n),TM.eventEmitter.emit("didRender",n)},oN=()=>{var e;return null===(e=JM())||void 0===e?void 0:e.click()},iN=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),aN=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},sN=(e,t)=>{var n;const r=sT();if(r.length)return(e+=t)===r.length?e=0:-1===e&&(e=r.length-1),void r[e].focus();null===(n=UM())||void 0===n||n.focus()},lN=["ArrowRight","ArrowDown"],cN=["ArrowLeft","ArrowUp"],uN=(e,t,n)=>{e&&(t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?dN(t,e):"Tab"===t.key?hN(t):[...lN,...cN].includes(t.key)?pN(t.key):"Escape"===t.key&&fN(t,e,n)))},dN=(e,t)=>{if(!HM(t.allowEnterKey))return;const n=pT(UM(),t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;oN(),e.preventDefault()}},hN=e=>{const t=e.target,n=sT();let r=-1;for(let o=0;o<n.length;o++)if(t===n[o]){r=o;break}e.shiftKey?sN(r,-1):sN(r,1),e.stopPropagation(),e.preventDefault()},pN=e=>{const t=rT(),n=JM(),r=tT(),o=eT();if(!(t&&n&&r&&o))return;const i=[n,r,o];if(document.activeElement instanceof HTMLElement&&!i.includes(document.activeElement))return;const a=lN.includes(e)?"nextElementSibling":"previousElementSibling";let s=document.activeElement;if(s){for(let e=0;e<t.children.length;e++){if(s=s[a],!s)return;if(s instanceof HTMLButtonElement&&ST(s))break}s instanceof HTMLButtonElement&&s.focus()}},fN=(e,t,n)=>{HM(t.allowEscapeKey)&&(e.preventDefault(),n(iN.esc))};var mN={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const gN=()=>{Array.from(document.body.children).forEach((e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))},vN="undefined"!=typeof window&&!!window.GestureEvent,yN=()=>{const e=WM();if(!e)return;let t;e.ontouchstart=e=>{t=bN(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},bN=e=>{const t=e.target,n=WM(),r=GM();return!(!n||!r)&&(!wN(e)&&!xN(e)&&(t===n||!ET(n)&&t instanceof HTMLElement&&"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&(!ET(r)||!r.contains(t))))},wN=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,xN=e=>e.touches&&e.touches.length>1;let _N=null;const kN=e=>{null===_N&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(_N=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${_N+(()=>{const e=document.createElement("div");e.className=AM["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})()}px`)};function CN(e,t,n,r){cT()?PN(e,r):(NM(n).then((()=>PN(e,r))),aN(TM)),vN?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),lT()&&(null!==_N&&(document.body.style.paddingRight=`${_N}px`,_N=null),(()=>{if(dT(document.body,AM.iosfix)){const e=parseInt(document.body.style.top,10);vT(document.body,AM.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),gN()),vT([document.documentElement,document.body],[AM.shown,AM["height-auto"],AM["no-backdrop"],AM["toast-shown"]])}function SN(e){e=MN(e);const t=mN.swalPromiseResolve.get(this),n=EN(this);this.isAwaitingPromise?e.isDismissed||(ON(this),t(e)):n&&t(e)}const EN=e=>{const t=UM();if(!t)return!1;const n=FT.innerParams.get(e);if(!n||dT(t,n.hideClass.popup))return!1;vT(t,n.showClass.popup),gT(t,n.hideClass.popup);const r=WM();return vT(r,n.showClass.backdrop),gT(r,n.hideClass.backdrop),TN(e,t,n),!0};function DN(e){const t=mN.swalPromiseReject.get(this);ON(this),t&&t(e)}const ON=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,FT.innerParams.get(e)||e._destroy())},MN=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),TN=(e,t,n)=>{const r=WM(),o=DT(t);"function"==typeof n.willClose&&n.willClose(t),TM.eventEmitter.emit("willClose",t),o?NN(e,t,r,n.returnFocus,n.didClose):CN(e,r,n.returnFocus,n.didClose)},NN=(e,t,n,r,o)=>{TM.swalCloseEventFinishedCallback=CN.bind(null,e,n,r,o);const i=function(e){e.target===t&&(TM.swalCloseEventFinishedCallback(),delete TM.swalCloseEventFinishedCallback,t.removeEventListener("animationend",i),t.removeEventListener("transitionend",i))};t.addEventListener("animationend",i),t.addEventListener("transitionend",i)},PN=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),TM.eventEmitter.emit("didClose"),e._destroy&&e._destroy()}))},AN=e=>{let t=UM();if(t||new uA,t=UM(),!t)return;const n=nT();cT()?xT(qM()):jN(t,e),wT(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},jN=(e,t)=>{const n=rT(),r=nT();n&&r&&(!t&&ST(JM())&&(t=JM()),wT(n),t&&(xT(t),r.setAttribute("data-button-to-replace",t.className),n.insertBefore(r,t)),gT([e,n],AM.loading))},RN=e=>e.checked?1:0,LN=e=>e.checked?e.value:null,IN=e=>e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,FN=(e,t)=>{const n=UM();if(!n)return;const r=e=>{"select"===t.input?function(e,t,n){const r=yT(e,AM.select);if(!r)return;const o=(e,t,r)=>{const o=document.createElement("option");o.value=r,uT(o,t),o.selected=YN(r,n.inputValue),e.appendChild(o)};t.forEach((e=>{const t=e[0],n=e[1];if(Array.isArray(n)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,r.appendChild(e),n.forEach((t=>o(e,t[1],t[0])))}else o(r,n,t)})),r.focus()}(n,BN(e),t):"radio"===t.input&&function(e,t,n){const r=yT(e,AM.radio);if(!r)return;t.forEach((e=>{const t=e[0],o=e[1],i=document.createElement("input"),a=document.createElement("label");i.type="radio",i.name=AM.radio,i.value=t,YN(t,n.inputValue)&&(i.checked=!0);const s=document.createElement("span");uT(s,o),s.className=AM.label,a.appendChild(i),a.appendChild(s),r.appendChild(a)}));const o=r.querySelectorAll("input");o.length&&o[0].focus()}(n,BN(e),t)};BM(t.inputOptions)||zM(t.inputOptions)?(AN(JM()),YM(t.inputOptions).then((t=>{e.hideLoading(),r(t)}))):"object"==typeof t.inputOptions?r(t.inputOptions):t.inputOptions},HN=(e,t)=>{const n=e.getInput();n&&(xT(n),YM(t.inputValue).then((r=>{n.value="number"===t.input?`${parseFloat(r)||0}`:`${r}`,wT(n),n.focus(),e.hideLoading()})).catch((t=>{n.value="",wT(n),n.focus(),e.hideLoading()})))};const BN=e=>{const t=[];return e instanceof Map?e.forEach(((e,n)=>{let r=e;"object"==typeof r&&(r=BN(r)),t.push([n,r])})):Object.keys(e).forEach((n=>{let r=e[n];"object"==typeof r&&(r=BN(r)),t.push([n,r])})),t},YN=(e,t)=>!!t&&t.toString()===e.toString(),zN=(e,t)=>{const n=FT.innerParams.get(e);if(!n.input)return void RM(t);const r=e.getInput(),o=((e,t)=>{const n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return RN(n);case"radio":return LN(n);case"file":return IN(n);default:return t.inputAutoTrim?n.value.trim():n.value}})(e,n);n.inputValidator?WN(e,o,t):r&&!r.checkValidity()?(e.enableButtons(),e.showValidationMessage(n.validationMessage||r.validationMessage)):"deny"===t?$N(e,o):qN(e,o)},WN=(e,t,n)=>{const r=FT.innerParams.get(e);e.disableInput();Promise.resolve().then((()=>YM(r.inputValidator(t,r.validationMessage)))).then((r=>{e.enableButtons(),e.enableInput(),r?e.showValidationMessage(r):"deny"===n?$N(e,t):qN(e,t)}))},$N=(e,t)=>{const n=FT.innerParams.get(e||void 0);if(n.showLoaderOnDeny&&AN(tT()),n.preDeny){e.isAwaitingPromise=!0;Promise.resolve().then((()=>YM(n.preDeny(t,n.validationMessage)))).then((n=>{!1===n?(e.hideLoading(),ON(e)):e.close({isDenied:!0,value:void 0===n?t:n})})).catch((t=>UN(e||void 0,t)))}else e.close({isDenied:!0,value:t})},VN=(e,t)=>{e.close({isConfirmed:!0,value:t})},UN=(e,t)=>{e.rejectPromise(t)},qN=(e,t)=>{const n=FT.innerParams.get(e||void 0);if(n.showLoaderOnConfirm&&AN(),n.preConfirm){e.resetValidationMessage(),e.isAwaitingPromise=!0;Promise.resolve().then((()=>YM(n.preConfirm(t,n.validationMessage)))).then((n=>{ST(XM())||!1===n?(e.hideLoading(),ON(e)):VN(e,void 0===n?t:n)})).catch((t=>UN(e||void 0,t)))}else VN(e,t)};function KN(){const e=FT.innerParams.get(this);if(!e)return;const t=FT.domCache.get(this);xT(t.loader),cT()?e.icon&&wT(qM()):GN(t),vT([t.popup,t.actions],AM.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const GN=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?wT(t[0],"inline-block"):ST(JM())||ST(tT())||ST(eT())||xT(e.actions)};function ZN(){const e=FT.innerParams.get(this),t=FT.domCache.get(this);return t?pT(t.popup,e.input):null}function QN(e,t,n){const r=FT.domCache.get(e);t.forEach((e=>{r[e].disabled=n}))}function XN(e,t){const n=UM();if(n&&e)if("radio"===e.type){const e=n.querySelectorAll(`[name="${AM.radio}"]`);for(let n=0;n<e.length;n++)e[n].disabled=t}else e.disabled=t}function JN(){QN(this,["confirmButton","denyButton","cancelButton"],!1)}function eP(){QN(this,["confirmButton","denyButton","cancelButton"],!0)}function tP(){XN(this.getInput(),!1)}function nP(){XN(this.getInput(),!0)}function rP(e){const t=FT.domCache.get(this),n=FT.innerParams.get(this);uT(t.validationMessage,e),t.validationMessage.className=AM["validation-message"],n.customClass&&n.customClass.validationMessage&&gT(t.validationMessage,n.customClass.validationMessage),wT(t.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid","true"),r.setAttribute("aria-describedby",AM["validation-message"]),fT(r),gT(r,AM.inputerror))}function oP(){const e=FT.domCache.get(this);e.validationMessage&&xT(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),vT(t,AM.inputerror))}const iP={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},aP=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],sP={allowEnterKey:void 0},lP=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],cP=e=>Object.prototype.hasOwnProperty.call(iP,e),uP=e=>-1!==aP.indexOf(e),dP=e=>sP[e],hP=e=>{cP(e)||LM(`Unknown parameter "${e}"`)},pP=e=>{lP.includes(e)&&LM(`The parameter "${e}" is incompatible with toasts`)},fP=e=>{const t=dP(e);t&&FM(e,t)};function mP(e){const t=UM(),n=FT.innerParams.get(this);if(!t||dT(t,n.hideClass.popup))return void LM("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const r=gP(e),o=Object.assign({},n,r);rN(this,o),FT.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const gP=e=>{const t={};return Object.keys(e).forEach((n=>{uP(n)?t[n]=e[n]:LM(`Invalid parameter to update: ${n}`)})),t};function vP(){const e=FT.domCache.get(this),t=FT.innerParams.get(this);t?(e.popup&&TM.swalCloseEventFinishedCallback&&(TM.swalCloseEventFinishedCallback(),delete TM.swalCloseEventFinishedCallback),"function"==typeof t.didDestroy&&t.didDestroy(),TM.eventEmitter.emit("didDestroy"),yP(this)):bP(this)}const yP=e=>{bP(e),delete e.params,delete TM.keydownHandler,delete TM.keydownTarget,delete TM.currentInstance},bP=e=>{e.isAwaitingPromise?(wP(FT,e),e.isAwaitingPromise=!0):(wP(mN,e),wP(FT,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},wP=(e,t)=>{for(const n in e)e[n].delete(t)};var xP=Object.freeze({__proto__:null,_destroy:vP,close:SN,closeModal:SN,closePopup:SN,closeToast:SN,disableButtons:eP,disableInput:nP,disableLoading:KN,enableButtons:JN,enableInput:tP,getInput:ZN,handleAwaitingPromise:ON,hideLoading:KN,rejectPromise:DN,resetValidationMessage:oP,showValidationMessage:rP,update:mP});const _P=(e,t,n)=>{t.popup.onclick=()=>{e&&(kP(e)||e.timer||e.input)||n(iN.close)}},kP=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let CP=!1;const SP=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(CP=!0)}}},EP=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(t){e.popup.onmouseup=()=>{},(t.target===e.popup||t.target instanceof HTMLElement&&e.popup.contains(t.target))&&(CP=!0)}}},DP=(e,t,n)=>{t.container.onclick=r=>{CP?CP=!1:r.target===t.container&&HM(e.allowOutsideClick)&&n(iN.backdrop)}},OP=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const MP=()=>{if(TM.timeout)return(()=>{const e=iT();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const n=t/parseInt(window.getComputedStyle(e).width)*100;e.style.width=`${n}%`})(),TM.timeout.stop()},TP=()=>{if(TM.timeout){const e=TM.timeout.start();return OT(e),e}};let NP=!1;const PP={};const AP=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in PP){const n=t.getAttribute(e);if(n)return void PP[e].fire({template:n})}};TM.eventEmitter=new class{constructor(){this.events={}}_getHandlersByEventName(e){return void 0===this.events[e]&&(this.events[e]=[]),this.events[e]}on(e,t){const n=this._getHandlersByEventName(e);n.includes(t)||n.push(t)}once(e,t){var n=this;const r=function(){n.removeListener(e,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];t.apply(n,i)};this.on(e,r)}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this._getHandlersByEventName(e).forEach((e=>{try{e.apply(this,n)}catch(t){}}))}removeListener(e,t){const n=this._getHandlersByEventName(e),r=n.indexOf(t);r>-1&&n.splice(r,1)}removeAllListeners(e){void 0!==this.events[e]&&(this.events[e].length=0)}reset(){this.events={}}};var jP=Object.freeze({__proto__:null,argsToParams:e=>{const t={};return"object"!=typeof e[0]||OP(e[0])?["title","html","icon"].forEach(((n,r)=>{const o=e[r];("string"==typeof o||OP(o))&&(t[n]=o)})):Object.assign(t,e[0]),t},bindClickHandler:function(){PP[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,NP||(document.body.addEventListener("click",AP),NP=!0)},clickCancel:()=>{var e;return null===(e=eT())||void 0===e?void 0:e.click()},clickConfirm:oN,clickDeny:()=>{var e;return null===(e=tT())||void 0===e?void 0:e.click()},enableLoading:AN,fire:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new this(...t)},getActions:rT,getCancelButton:eT,getCloseButton:aT,getConfirmButton:JM,getContainer:WM,getDenyButton:tT,getFocusableElements:sT,getFooter:oT,getHtmlContainer:GM,getIcon:qM,getIconContent:()=>VM(AM["icon-content"]),getImage:ZM,getInputLabel:()=>VM(AM["input-label"]),getLoader:nT,getPopup:UM,getProgressSteps:QM,getTimerLeft:()=>TM.timeout&&TM.timeout.getTimerLeft(),getTimerProgressBar:iT,getTitle:KM,getValidationMessage:XM,increaseTimer:e=>{if(TM.timeout){const t=TM.timeout.increase(e);return OT(t,!0),t}},isDeprecatedParameter:dP,isLoading:()=>{const e=UM();return!!e&&e.hasAttribute("data-loading")},isTimerRunning:()=>!(!TM.timeout||!TM.timeout.isRunning()),isUpdatableParameter:uP,isValidParameter:cP,isVisible:()=>ST(UM()),mixin:function(e){return class extends(this){_main(t,n){return super._main(t,Object.assign({},e,n))}}},off:(e,t)=>{e?t?TM.eventEmitter.removeListener(e,t):TM.eventEmitter.removeAllListeners(e):TM.eventEmitter.reset()},on:(e,t)=>{TM.eventEmitter.on(e,t)},once:(e,t)=>{TM.eventEmitter.once(e,t)},resumeTimer:TP,showLoading:AN,stopTimer:MP,toggleTimer:()=>{const e=TM.timeout;return e&&(e.running?MP():TP())}});class RP{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const LP=["swal-title","swal-html","swal-footer"],IP=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{VP(e,["name","value"]);const n=e.getAttribute("name"),r=e.getAttribute("value");n&&r&&(t[n]="boolean"==typeof iP[n]?"false"!==r:"object"==typeof iP[n]?JSON.parse(r):r)})),t},FP=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach((e=>{const n=e.getAttribute("name"),r=e.getAttribute("value");n&&r&&(t[n]=new Function(`return ${r}`)())})),t},HP=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{VP(e,["type","color","aria-label"]);const n=e.getAttribute("type");n&&["confirm","cancel","deny"].includes(n)&&(t[`${n}ButtonText`]=e.innerHTML,t[`show${RM(n)}Button`]=!0,e.hasAttribute("color")&&(t[`${n}ButtonColor`]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t[`${n}ButtonAriaLabel`]=e.getAttribute("aria-label")))})),t},BP=e=>{const t={},n=e.querySelector("swal-image");return n&&(VP(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")||void 0),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")||void 0),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")||void 0),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt")||void 0)),t},YP=e=>{const t={},n=e.querySelector("swal-icon");return n&&(VP(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},zP=e=>{const t={},n=e.querySelector("swal-input");n&&(VP(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")));const r=Array.from(e.querySelectorAll("swal-input-option"));return r.length&&(t.inputOptions={},r.forEach((e=>{VP(e,["value"]);const n=e.getAttribute("value");if(!n)return;const r=e.innerHTML;t.inputOptions[n]=r}))),t},WP=(e,t)=>{const n={};for(const r in t){const o=t[r],i=e.querySelector(o);i&&(VP(i,[]),n[o.replace(/^swal-/,"")]=i.innerHTML.trim())}return n},$P=e=>{const t=LP.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const n=e.tagName.toLowerCase();t.includes(n)||LM(`Unrecognized element <${n}>`)}))},VP=(e,t)=>{Array.from(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&LM([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`,""+(t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element.")])}))},UP=e=>{const t=WM(),n=UM();"function"==typeof e.willOpen&&e.willOpen(n),TM.eventEmitter.emit("willOpen",n);const r=window.getComputedStyle(document.body).overflowY;ZP(t,n,e),setTimeout((()=>{KP(t,n)}),10),lT()&&(GP(t,e.scrollbarPadding,r),(()=>{const e=WM();Array.from(document.body.children).forEach((t=>{t.contains(e)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))}))})()),cT()||TM.previousActiveElement||(TM.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(n))),TM.eventEmitter.emit("didOpen",n),vT(t,AM["no-transition"])},qP=e=>{const t=UM();if(e.target!==t)return;const n=WM();t.removeEventListener("animationend",qP),t.removeEventListener("transitionend",qP),n.style.overflowY="auto"},KP=(e,t)=>{DT(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",qP),t.addEventListener("transitionend",qP)):e.style.overflowY="auto"},GP=(e,t,n)=>{(()=>{if(vN&&!dT(document.body,AM.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",gT(document.body,AM.iosfix),yN()}})(),t&&"hidden"!==n&&kN(n),setTimeout((()=>{e.scrollTop=0}))},ZP=(e,t,n)=>{gT(e,n.showClass.backdrop),n.animation?(t.style.setProperty("opacity","0","important"),wT(t,"grid"),setTimeout((()=>{gT(t,n.showClass.popup),t.style.removeProperty("opacity")}),10)):wT(t,"grid"),gT([document.documentElement,document.body],AM.shown),n.heightAuto&&n.backdrop&&!n.toast&&gT([document.documentElement,document.body],AM["height-auto"])};var QP={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function XP(e){!function(e){e.inputValidator||("email"===e.input&&(e.inputValidator=QP.email),"url"===e.input&&(e.inputValidator=QP.url))}(e),e.showLoaderOnConfirm&&!e.preConfirm&&LM("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(LM('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),NT(e)}let JP;var eA=new WeakMap;class tA{constructor(){if(MM(this,eA,void 0),"undefined"==typeof window)return;JP=this;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=Object.freeze(this.constructor.argsToParams(t));var o,i,a;this.params=r,this.isAwaitingPromise=!1,o=eA,i=this,a=this._main(JP.params),o.set(DM(o,i),a)}_main(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((e=>{!1===e.backdrop&&e.allowOutsideClick&&LM('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)hP(t),e.toast&&pP(t),fP(t)})(Object.assign({},t,e)),TM.currentInstance){const e=mN.swalPromiseResolve.get(TM.currentInstance),{isAwaitingPromise:t}=TM.currentInstance;TM.currentInstance._destroy(),t||e({isDismissed:!0}),lT()&&gN()}TM.currentInstance=JP;const n=rA(e,t);XP(n),Object.freeze(n),TM.timeout&&(TM.timeout.stop(),delete TM.timeout),clearTimeout(TM.restoreFocusTimeout);const r=oA(JP);return rN(JP,n),FT.innerParams.set(JP,n),nA(JP,r,n)}then(e){return OM(eA,this).then(e)}finally(e){return OM(eA,this).finally(e)}}const nA=(e,t,n)=>new Promise(((r,o)=>{const i=t=>{e.close({isDismissed:!0,dismiss:t})};mN.swalPromiseResolve.set(e,r),mN.swalPromiseReject.set(e,o),t.confirmButton.onclick=()=>{(e=>{const t=FT.innerParams.get(e);e.disableButtons(),t.input?zN(e,"confirm"):qN(e,!0)})(e)},t.denyButton.onclick=()=>{(e=>{const t=FT.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?zN(e,"deny"):$N(e,!1)})(e)},t.cancelButton.onclick=()=>{((e,t)=>{e.disableButtons(),t(iN.cancel)})(e,i)},t.closeButton.onclick=()=>{i(iN.close)},((e,t,n)=>{e.toast?_P(e,t,n):(SP(t),EP(t),DP(e,t,n))})(n,t,i),((e,t,n)=>{aN(e),t.toast||(e.keydownHandler=e=>uN(t,e,n),e.keydownTarget=t.keydownListenerCapture?window:UM(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)})(TM,n,i),((e,t)=>{"select"===t.input||"radio"===t.input?FN(e,t):["text","email","number","tel","textarea"].some((e=>e===t.input))&&(BM(t.inputValue)||zM(t.inputValue))&&(AN(JM()),HN(e,t))})(e,n),UP(n),iA(TM,n,i),aA(t,n),setTimeout((()=>{t.container.scrollTop=0}))})),rA=(e,t)=>{const n=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const n=t.content;return $P(n),Object.assign(IP(n),FP(n),HP(n),BP(n),YP(n),zP(n),WP(n,LP))})(e),r=Object.assign({},iP,t,n,e);return r.showClass=Object.assign({},iP.showClass,r.showClass),r.hideClass=Object.assign({},iP.hideClass,r.hideClass),!1===r.animation&&(r.showClass={backdrop:"swal2-noanimation"},r.hideClass={}),r},oA=e=>{const t={popup:UM(),container:WM(),actions:rT(),confirmButton:JM(),denyButton:tT(),cancelButton:eT(),loader:nT(),closeButton:aT(),validationMessage:XM(),progressSteps:QM()};return FT.domCache.set(e,t),t},iA=(e,t,n)=>{const r=iT();xT(r),t.timer&&(e.timeout=new RP((()=>{n("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(wT(r),hT(r,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&OT(t.timer)}))))},aA=(e,t)=>{if(!t.toast)return HM(t.allowEnterKey)?void(sA(e)||lA(e,t)||sN(-1,1)):(FM("allowEnterKey"),void cA())},sA=e=>{const t=e.popup.querySelectorAll("[autofocus]");for(const n of t)if(n instanceof HTMLElement&&ST(n))return n.focus(),!0;return!1},lA=(e,t)=>t.focusDeny&&ST(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&ST(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!ST(e.confirmButton))&&(e.confirmButton.focus(),!0),cA=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const e=new Date,t=localStorage.getItem("swal-initiation");t?(e.getTime()-Date.parse(t))/864e5>3&&setTimeout((()=>{document.body.style.pointerEvents="none";const e=document.createElement("audio");e.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",e.loop=!0,document.body.appendChild(e),setTimeout((()=>{e.play().catch((()=>{}))}),2500)}),500):localStorage.setItem("swal-initiation",`${e}`)}tA.prototype.disableButtons=eP,tA.prototype.enableButtons=JN,tA.prototype.getInput=ZN,tA.prototype.disableInput=nP,tA.prototype.enableInput=tP,tA.prototype.hideLoading=KN,tA.prototype.disableLoading=KN,tA.prototype.showValidationMessage=rP,tA.prototype.resetValidationMessage=oP,tA.prototype.close=SN,tA.prototype.closePopup=SN,tA.prototype.closeModal=SN,tA.prototype.closeToast=SN,tA.prototype.rejectPromise=DN,tA.prototype.update=mP,tA.prototype._destroy=vP,Object.assign(tA,jP),Object.keys(xP).forEach((e=>{tA[e]=function(){return JP&&JP[e]?JP[e](...arguments):null}})),tA.DismissReason=iN,tA.version="11.14.4";const uA=tA;var dA,hA;uA.default=uA,"undefined"!=typeof document&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch(r){n.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:hsl(0,0%,33%);font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):focus-visible{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):focus-visible{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):focus-visible{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus-visible{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:0;padding:1em 1.6em .3em;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid hsl(0,0%,85%);border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:hsl(0,0%,94%);color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:rgb(249.95234375,205.965625,167.74765625);color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:rgb(156.7033492823,224.2822966507,246.2966507177);color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:rgb(200.8064516129,217.9677419355,225.1935483871);color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}'),(hA=dA||(dA={})).Pop="POP",hA.Push="PUSH",hA.Replace="REPLACE";var pA="production"!==process.env.NODE_ENV?function(e){return Object.freeze(e)}:function(e){return e};var fA="beforeunload";function mA(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function o(){var e=n.location,t=e.pathname,o=e.search,i=e.hash,a=r.state||{};return[a.idx,pA({pathname:t,search:o,hash:i,state:a.usr||null,key:a.key||"default"})]}var i=null;n.addEventListener("popstate",(function(){if(i)d.call(i),i=null;else{var e=dA.Pop,t=o(),n=t[0],r=t[1];if(d.length)if(null!=n){var a=l-n;a&&(i={action:e,location:r,retry:function(){v(-1*a)}},v(a))}else"production"!==process.env.NODE_ENV&&function(e,t){try{throw new Error(t)}catch(n){}}(0,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation.");else g(e)}}));var a=dA.Pop,s=o(),l=s[0],c=s[1],u=vA(),d=vA();function h(e){return"string"==typeof e?e:function(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,o=void 0===r?"":r,i=e.hash,a=void 0===i?"":i;o&&"?"!==o&&(n+="?"===o.charAt(0)?o:"?"+o);a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a);return n}(e)}function p(e,t){return void 0===t&&(t=null),pA(Qa({pathname:c.pathname,hash:"",search:""},"string"==typeof e?function(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}(e):e,{state:t,key:Math.random().toString(36).substr(2,8)}))}function f(e,t){return[{usr:e.state,key:e.key,idx:t},h(e)]}function m(e,t,n){return!d.length||(d.call({action:e,location:t,retry:n}),!1)}function g(e){a=e;var t=o();l=t[0],c=t[1],u.call({action:a,location:c})}function v(e){r.go(e)}null==l&&(l=0,r.replaceState(Qa({},r.state,{idx:l}),""));var y={get action(){return a},get location(){return c},createHref:h,push:function e(t,o){var i=dA.Push,a=p(t,o);if(m(i,a,(function(){e(t,o)}))){var s=f(a,l+1),c=s[0],u=s[1];try{r.pushState(c,"",u)}catch(d){n.location.assign(u)}g(i)}},replace:function e(t,n){var o=dA.Replace,i=p(t,n);if(m(o,i,(function(){e(t,n)}))){var a=f(i,l),s=a[0],c=a[1];r.replaceState(s,"",c),g(o)}},go:v,back:function(){v(-1)},forward:function(){v(1)},listen:function(e){return u.push(e)},block:function(e){var t=d.push(e);return 1===d.length&&n.addEventListener(fA,gA),function(){t(),d.length||n.removeEventListener(fA,gA)}}};return y}function gA(e){e.preventDefault(),e.returnValue=""}function vA(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}const yA=["otic","otec","empresa"],bA=e=>{const t=yA.find((t=>e.includes(t)));return"empresa"===(null==t?void 0:t.toLowerCase())?"cliente":t??""},wA=e=>e??"",xA=t.memo((e=>{const{app:n,layout:r=!0,navbar:o=()=>!0,sidebar:i=()=>!0,footer:a,navigation:s,environment:l,observerToken:c=!0,previousPath:u=!1,includeNavbarDropdown:d}=e,[h,p]=t.useState({}),f=t.useRef(mA()),m=t.useRef(!0);ZE(tD.ON_CONNECT_APP,(()=>{p((e=>({...e,loading:!0})))}),n);const g=t.useCallback((e=>{e&&p(e)}),[]),v=t.useCallback((async e=>{var t;m.current&&(m.current=!1,await uA.fire({icon:"warning",text:"No tiene permisos para acceder a este recurso",title:"Acceso denegado",showCloseButton:!0,showCancelButton:!1,showConfirmButton:!1}),null==(t=f.current)||t.push({pathname:e}),m.current=!0)}),[]);t.useEffect((()=>{"boolean"==typeof e.loading&&p((t=>({...t,loading:e.loading})))}),[e.loading]),t.useEffect((()=>{c&&JE(tD.SIGNAL,(e=>{p({...e,loading:!1})}))}),[n,c]);const y=t.useMemo((()=>{var e,t,n,r;return{...h,onSignal:g,onAcessDenied:v,history:f.current,environment:l,ref:{lastName:wA(null==(e=null==h?void 0:h.user)?void 0:e.lastName),firstName:wA(null==(t=null==h?void 0:h.user)?void 0:t.firstName),role:bA((null==(r=null==(n=null==h?void 0:h.info)?void 0:n.realm_access)?void 0:r.roles)??[])}}}),[h,l,g,v]);return O.jsx(D_.Provider,{value:y,children:r?O.jsx(vk,{menu:s,includeNavbar:null==o?void 0:o(h,h.loading),includeSidebar:null==i?void 0:i(h,h.loading),includeFooter:a,previousPath:u,includeNavbarDropdown:d,children:h.loading?O.jsx(Bx,{status:!0}):e.children}):O.jsx(O.Fragment,{children:h.loading?O.jsx(Bx,{status:!0}):e.children})})}));var _A=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(_A||{}),kA=(e=>(e.INFO="#4caf50",e.WARN="#ff9800",e.ERROR="#f44336",e.DEBUG="#2196f3",e))(kA||{});class CA{constructor(e=1,t=!1){g(this,"logLevel"),g(this,"isDevelopment"),g(this,"logs"),this.logLevel=e,this.isDevelopment=t,this.logs=[]}debug(e,...t){this.logLevel<=0&&this.log("🐛",e,"#2196f3",...t)}info(e,...t){this.logLevel<=1&&this.log("ℹ️",e,"#4caf50",...t)}warn(e,...t){this.logLevel<=2&&this.log("⚠️",e,"#ff9800",...t)}error(e,...t){this.logLevel<=3&&this.log("🚨",e,"#f44336",...t)}log(e,t,n,...r){const o=`${e} ${t}`;this.isDevelopment,this.logs.push(o)}getLogs(){return this.logs}}var SA=(e=>(e.IB="Integra Negocio",e.SP="Sistema de Perfilamiento v2",e))(SA||{});const EA=t.memo((({allow:e,grants:n,children:r})=>{var o;const i=t.useContext(D_),a=new CA(void 0,null==n?void 0:n.debug),[s,l]=t.useState(!1);t.useEffect((()=>{var e,t;(null==(t=null==(e=null==i?void 0:i.user)?void 0:e.systems)?void 0:t.length)&&c(i)}),[null==(o=null==i?void 0:i.user)?void 0:o.systems]);const c=t.useCallback((async t=>{var r,o;const s=null==(o=null==(r=null==t?void 0:t.user)?void 0:r.systems)?void 0:o.find((e=>e.name===(null==n?void 0:n.system)));if(a.debug("ref:",s),null==s?void 0:s.functions){s.functions.filter((t=>{const n=null==t?void 0:t.key;return null==e?void 0:e.includes(n)})).length===(null==e?void 0:e.length)?l(!0):(a.debug("denied"),(null==i?void 0:i.onAcessDenied)&&(null==i||i.onAcessDenied(null==n?void 0:n.redirect)))}}),[null==n?void 0:n.system,null==n?void 0:n.debug,e]);return O.jsx(O.Fragment,{children:s?r:null})}));EA.defaultProps={allow:[],grants:{debug:!1,system:"Integra Negocio",redirect:"/dashboard",popup:{text:"You don't have the required permissions to access this page.",title:"Access Denied"}}};class DA{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const OA="undefined"==typeof window||"Deno"in window;function MA(){}function TA(e){return"number"==typeof e&&e>=0&&e!==1/0}function NA(e,t,n){return r=e,Array.isArray(r)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e;var r}function PA(e,t){if(e===t)return e;const n=jA(e)&&jA(t);if(n||RA(e)&&RA(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{};let s=0;for(let l=0;l<i;l++){const r=n?l:o[l];a[r]=PA(e[r],t[r]),a[r]===e[r]&&s++}return r===i&&s===r?e:a}return t}function AA(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function jA(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function RA(e){if(!LA(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!LA(n)&&!!n.hasOwnProperty("isPrototypeOf")}function LA(e){return"[object Object]"===Object.prototype.toString.call(e)}function IA(e){var t;(t=0,new Promise((e=>{setTimeout(e,t)}))).then(e)}function FA(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?PA(e,t):t}const HA=new class extends DA{constructor(){super(),this.setup=e=>{if(!OA&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach((({listener:e})=>{e()}))}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},BA=["online","offline"];const YA=new class extends DA{constructor(){super(),this.setup=e=>{if(!OA&&window.addEventListener){const t=()=>e();return BA.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{BA.forEach((e=>{window.removeEventListener(e,t)}))}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()}))}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach((({listener:e})=>{e()}))}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};class zA{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}const WA=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()};const o=r=>{t?e.push(r):IA((()=>{n(r)}))},i=()=>{const t=e;e=[],t.length&&IA((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||i()}return n},batchCalls:e=>(...t)=>{o((()=>{e(...t)}))},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e}}}();class $A extends DA{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),VA(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return UA(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return UA(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),"production"!==process.env.NODE_ENV&&void 0!==(null==e?void 0:e.isDataEqual)&&this.client.getLogger().error("The isDataEqual option has been deprecated and will be removed in the next major version. You can achieve the same functionality by passing a function as the structuralSharing option"),AA(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const o=this.hasListeners();o&&qA(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!o||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const i=this.computeRefetchInterval();!o||this.currentQuery===r&&this.options.enabled===n.enabled&&i===this.currentRefetchInterval||this.updateRefetchInterval(i)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){if(n.keepPreviousData)return!1;if(void 0!==n.placeholderData)return t.isPlaceholderData;if(!AA(e.getCurrentResult(),t))return!0;return!1}(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach((n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})})),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,t)))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then((()=>(this.updateResult(),this.currentResult)))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(MA)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),OA||this.currentResult.isStale||!TA(this.options.staleTime))return;var e,t;const n=(e=this.currentResult.dataUpdatedAt,t=this.options.staleTime,Math.max(e+(t||0)-Date.now(),0))+1;this.staleTimeoutId=setTimeout((()=>{this.currentResult.isStale||this.updateResult()}),n)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!OA&&!1!==this.options.enabled&&TA(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||HA.isFocused())&&this.executeFetch()}),this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,r=this.options,o=this.currentResult,i=this.currentResultState,a=this.currentResultOptions,s=e!==n,l=s?e.state:this.currentQueryInitialState,c=s?this.currentResult:this.previousQueryResult,{state:u}=e;let d,{dataUpdatedAt:h,error:p,errorUpdatedAt:f,fetchStatus:m,status:g}=u,v=!1,y=!1;if(t._optimisticResults){const o=this.hasListeners(),i=!o&&VA(e,t),a=o&&qA(e,n,t,r);(i||a)&&(m="online"!==(null!=(b=e.options.networkMode)?b:"online")||YA.isOnline()?"fetching":"paused",h||(g="loading")),"isRestoring"===t._optimisticResults&&(m="idle")}var b;if(t.keepPreviousData&&!u.dataUpdatedAt&&null!=c&&c.isSuccess&&"error"!==g)d=c.data,h=c.dataUpdatedAt,g=c.status,v=!0;else if(t.select&&void 0!==u.data)if(o&&u.data===(null==i?void 0:i.data)&&t.select===this.selectFn)d=this.selectResult;else try{this.selectFn=t.select,d=t.select(u.data),d=FA(null==o?void 0:o.data,d,t),this.selectResult=d,this.selectError=null}catch(k){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(k),this.selectError=k}else d=u.data;if(void 0!==t.placeholderData&&void 0===d&&"loading"===g){let e;if(null!=o&&o.isPlaceholderData&&t.placeholderData===(null==a?void 0:a.placeholderData))e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(k){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(k),this.selectError=k}void 0!==e&&(g="success",d=FA(null==o?void 0:o.data,e,t),y=!0)}this.selectError&&(p=this.selectError,d=this.selectResult,f=Date.now(),g="error");const w="fetching"===m,x="loading"===g,_="error"===g;return{status:g,fetchStatus:m,isLoading:x,isSuccess:"success"===g,isError:_,isInitialLoading:x&&w,data:d,dataUpdatedAt:h,error:p,errorUpdatedAt:f,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:w,isRefetching:w&&!x,isLoadingError:_&&0===u.dataUpdatedAt,isPaused:"paused"===m,isPlaceholderData:y,isPreviousData:v,isRefetchError:_&&0!==u.dataUpdatedAt,isStale:KA(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,AA(n,t))return;this.currentResult=n;const r={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const r=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some((e=>{const n=e;return this.currentResult[n]!==t[n]&&r.has(n)}))})()&&(r.listeners=!0),this.notify({...r,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||e.error instanceof zA||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){WA.batch((()=>{var t,n,r,o;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(r=(o=this.options).onSettled)||r.call(o,this.currentResult.data,null);else if(e.onError){var i,a,s,l;null==(i=(a=this.options).onError)||i.call(a,this.currentResult.error),null==(s=(l=this.options).onSettled)||s.call(l,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)})),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})}))}}function VA(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&UA(e,t,t.refetchOnMount)}function UA(e,t,n){if(!1!==t.enabled){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&KA(e,t)}return!1}function qA(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&KA(e,n)}function KA(e,t){return e.isStaleByTime(t.staleTime)}var GA,ZA={exports:{}},QA={};var XA,JA={};
1284
1284
  /**
1285
1285
  * @license React
1286
1286
  * use-sync-external-store-shim.development.js
@@ -1289,13 +1289,13 @@ function EM(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.lengt
1289
1289
  *
1290
1290
  * This source code is licensed under the MIT license found in the
1291
1291
  * LICENSE file in the root directory of this source tree.
1292
- */"production"===process.env.NODE_ENV?GA.exports=function(){if(KA)return ZA;KA=1;var e=t,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(o){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),l=r({inst:{value:n,getSnapshot:t}}),c=l[0].inst,u=l[1];return i((function(){c.value=n,c.getSnapshot=t,s(c)&&u({inst:c})}),[e,n,t]),o((function(){return s(c)&&u({inst:c}),e((function(){s(c)&&u({inst:c})}))}),[e]),a(n),n};return ZA.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:l,ZA}():GA.exports=(QA||(QA=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=t,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];!function(e,t,r){var o=n.ReactDebugCurrentFrame.getStackAddendum();""!==o&&(t+="%s",r=r.concat([o]));var i=r.map((function(e){return String(e)}));i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}("error",e,r)}var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=e.useState,a=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue,c=!1,u=!1;function d(e){var t=e.getSnapshot,n=e.value;try{var r=t();return!o(n,r)}catch(i){return!0}}var h="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t,n){return t()}:function(t,n,h){c||void 0!==e.startTransition&&(c=!0,r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=n();if(!u){var f=n();o(p,f)||(r("The result of getSnapshot should be cached to avoid an infinite loop"),u=!0)}var m=i({inst:{value:p,getSnapshot:n}}),g=m[0].inst,v=m[1];return s((function(){g.value=p,g.getSnapshot=n,d(g)&&v({inst:g})}),[t,p,n]),a((function(){return d(g)&&v({inst:g}),t((function(){d(g)&&v({inst:g})}))}),[t]),l(p),p},p=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:h;XA.useSyncExternalStore=p,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),XA);const JA=GA.exports.useSyncExternalStore,ej=y.createContext(void 0),tj=y.createContext(!1);const nj=({context:e}={})=>{const t=y.useContext(function(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=ej),window.ReactQueryClientContext):ej)}(e,y.useContext(tj)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},rj=y.createContext(!1),oj=()=>y.useContext(rj);rj.Provider;const ij=y.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),aj=()=>y.useContext(ij);const sj=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},lj=e=>{y.useEffect((()=>{e.clearReset()}),[e])},cj=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>{return e.isError&&!t.isReset()&&!e.isFetching&&(o=n,i=[e.error,r],"function"==typeof o?o(...i):!!o);var o,i},uj=e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)},dj=(e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n),hj=(e,t,n)=>t.fetchOptimistic(e).then((({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)})).catch((t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)}));function pj(e,t,n){return function(e,t){const n=nj({context:e.context}),r=oj(),o=aj(),i=n.defaultQueryOptions(e);i._optimisticResults=r?"isRestoring":"optimistic",i.onError&&(i.onError=zA.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=zA.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=zA.batchCalls(i.onSettled)),uj(i),sj(i,o),lj(o);const[a]=y.useState((()=>new t(n,i))),s=a.getOptimisticResult(i);if(JA(y.useCallback((e=>{const t=r?()=>{}:a.subscribe(zA.batchCalls(e));return a.updateResult(),t}),[a,r]),(()=>a.getCurrentResult()),(()=>a.getCurrentResult())),y.useEffect((()=>{a.setOptions(i,{listeners:!1})}),[i,a]),dj(i,s,r))throw hj(i,a,o);if(cj({result:s,errorResetBoundary:o,useErrorBoundary:i.useErrorBoundary,query:a.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:a.trackResult(s)}(TA(e,t,n),WA)}const fj={useQuery:null,useQueryClient:null};const mj={enabled:!1,cacheTime:1/0,refetchOnMount:!1,refetchOnWindowFocus:!1,queryFn:e=>e};const gj="mb-2.5",vj="p-0 m-0",yj="rotate-180 transform transition-transform duration-300 ease-in-out",bj="rotate-0 transform transition-transform duration-300 ease-in-out",wj="text-primary rounded-full flex items-center justify-center w-7 hover:cursor-pointer",xj="flex justify-between gap-2.5 border-b border-gray-300",_j="border-l border-gray-300 p-3",kj="max-w-sm leading-1",Cj=e=>{const[n,r]=t.useState(!0);t.useEffect((()=>{"boolean"==typeof(null==e?void 0:e.initialValue)&&r(e.initialValue)}),[e.initialValue]);const o=()=>{r((e=>!e))};return O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:xj,children:[O.jsx("div",{className:gj,onClick:()=>e.seeDetailsTitles&&o(),children:O.jsx(cx,{color:e.color,tag:"h1",size:e.size,font:"bold",children:e.title})}),O.jsx("div",{onClick:o,children:O.jsx(Vl,{className:T(n?yj:bj,wj)})})]}),O.jsx("br",{}),n&&O.jsx(O.Fragment,{children:O.jsx("div",{className:vj,children:e.children})})]})};Cj.defaultProps={size:"xl",color:"primary"};const Sj=t.memo((e=>{const n=t.useMemo((()=>{if("Hours"===(null==e?void 0:e.formatAs))return`${null==e?void 0:e.value} Horas`;if("CLP"===(null==e?void 0:e.formatAs)){const t=Number(e.value);return new Intl.NumberFormat("es-CL",{style:"currency",currency:"CLP"}).format(t)}return null==e?void 0:e.value}),[null==e?void 0:e.formatAs,e.value]);return O.jsx(O.Fragment,{children:O.jsxs("div",{className:_j,children:[O.jsx(cx,{tag:"h2",size:e.labelSize,font:e.labelFont,color:e.labelColor,children:null==e?void 0:e.label}),O.jsx(cx,{tag:"h3",size:e.valueSize,font:e.valueFont,color:e.valueColor,className:kj,children:n})]})})}));Sj.defaultProps={valueSize:"lg",labelSize:"sm",labelFont:"bold",valueFont:"bold",labelColor:"info",valueColor:"primary"};const Ej=n.div`
1292
+ */"production"===process.env.NODE_ENV?ZA.exports=function(){if(GA)return QA;GA=1;var e=t,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(o){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),l=r({inst:{value:n,getSnapshot:t}}),c=l[0].inst,u=l[1];return i((function(){c.value=n,c.getSnapshot=t,s(c)&&u({inst:c})}),[e,n,t]),o((function(){return s(c)&&u({inst:c}),e((function(){s(c)&&u({inst:c})}))}),[e]),a(n),n};return QA.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:l,QA}():ZA.exports=(XA||(XA=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=t,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];!function(e,t,r){var o=n.ReactDebugCurrentFrame.getStackAddendum();""!==o&&(t+="%s",r=r.concat([o]));var i=r.map((function(e){return String(e)}));i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}("error",e,r)}var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=e.useState,a=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue,c=!1,u=!1;function d(e){var t=e.getSnapshot,n=e.value;try{var r=t();return!o(n,r)}catch(i){return!0}}var h="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t,n){return t()}:function(t,n,h){c||void 0!==e.startTransition&&(c=!0,r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=n();if(!u){var f=n();o(p,f)||(r("The result of getSnapshot should be cached to avoid an infinite loop"),u=!0)}var m=i({inst:{value:p,getSnapshot:n}}),g=m[0].inst,v=m[1];return s((function(){g.value=p,g.getSnapshot=n,d(g)&&v({inst:g})}),[t,p,n]),a((function(){return d(g)&&v({inst:g}),t((function(){d(g)&&v({inst:g})}))}),[t]),l(p),p},p=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:h;JA.useSyncExternalStore=p,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),JA);const ej=ZA.exports.useSyncExternalStore,tj=y.createContext(void 0),nj=y.createContext(!1);const rj=({context:e}={})=>{const t=y.useContext(function(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=tj),window.ReactQueryClientContext):tj)}(e,y.useContext(nj)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},oj=y.createContext(!1),ij=()=>y.useContext(oj);oj.Provider;const aj=y.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),sj=()=>y.useContext(aj);const lj=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},cj=e=>{y.useEffect((()=>{e.clearReset()}),[e])},uj=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>{return e.isError&&!t.isReset()&&!e.isFetching&&(o=n,i=[e.error,r],"function"==typeof o?o(...i):!!o);var o,i},dj=e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)},hj=(e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n),pj=(e,t,n)=>t.fetchOptimistic(e).then((({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)})).catch((t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)}));function fj(e,t,n){return function(e,t){const n=rj({context:e.context}),r=ij(),o=sj(),i=n.defaultQueryOptions(e);i._optimisticResults=r?"isRestoring":"optimistic",i.onError&&(i.onError=WA.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=WA.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=WA.batchCalls(i.onSettled)),dj(i),lj(i,o),cj(o);const[a]=y.useState((()=>new t(n,i))),s=a.getOptimisticResult(i);if(ej(y.useCallback((e=>{const t=r?()=>{}:a.subscribe(WA.batchCalls(e));return a.updateResult(),t}),[a,r]),(()=>a.getCurrentResult()),(()=>a.getCurrentResult())),y.useEffect((()=>{a.setOptions(i,{listeners:!1})}),[i,a]),hj(i,s,r))throw pj(i,a,o);if(uj({result:s,errorResetBoundary:o,useErrorBoundary:i.useErrorBoundary,query:a.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:a.trackResult(s)}(NA(e,t,n),$A)}const mj={useQuery:null,useQueryClient:null};const gj={enabled:!1,cacheTime:1/0,refetchOnMount:!1,refetchOnWindowFocus:!1,queryFn:e=>e};const vj="mb-2.5",yj="p-0 m-0",bj="rotate-180 transform transition-transform duration-300 ease-in-out",wj="rotate-0 transform transition-transform duration-300 ease-in-out",xj="text-primary rounded-full flex items-center justify-center w-7 hover:cursor-pointer",_j="flex justify-between gap-2.5 border-b border-gray-300",kj="border-l border-gray-300 p-3",Cj="max-w-sm leading-1",Sj=e=>{const[n,r]=t.useState(!0);t.useEffect((()=>{"boolean"==typeof(null==e?void 0:e.initialValue)&&r(e.initialValue)}),[e.initialValue]);const o=()=>{r((e=>!e))};return O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:_j,children:[O.jsx("div",{className:vj,onClick:()=>e.seeDetailsTitles&&o(),children:O.jsx(cx,{color:e.color,tag:"h1",size:e.size,font:"bold",children:e.title})}),O.jsx("div",{onClick:o,children:O.jsx(Vl,{className:T(n?bj:wj,xj)})})]}),O.jsx("br",{}),n&&O.jsx(O.Fragment,{children:O.jsx("div",{className:yj,children:e.children})})]})};Sj.defaultProps={size:"xl",color:"primary"};const Ej=t.memo((e=>{const n=t.useMemo((()=>{if("Hours"===(null==e?void 0:e.formatAs))return`${null==e?void 0:e.value} Horas`;if("CLP"===(null==e?void 0:e.formatAs)){const t=Number(e.value);return new Intl.NumberFormat("es-CL",{style:"currency",currency:"CLP"}).format(t)}return null==e?void 0:e.value}),[null==e?void 0:e.formatAs,e.value]);return O.jsx(O.Fragment,{children:O.jsxs("div",{className:kj,children:[O.jsx(cx,{tag:"h2",size:e.labelSize,font:e.labelFont,color:e.labelColor,children:null==e?void 0:e.label}),O.jsx(cx,{tag:"h3",size:e.valueSize,font:e.valueFont,color:e.valueColor,className:Cj,children:n})]})})}));Ej.defaultProps={valueSize:"lg",labelSize:"sm",labelFont:"bold",valueFont:"bold",labelColor:"info",valueColor:"primary"};const Dj=n.div`
1293
1293
  display: flex;
1294
1294
  flex-direction: column;
1295
- `,Dj=n.div`
1295
+ `,Oj=n.div`
1296
1296
  display: flex;
1297
1297
  flex-direction: row;
1298
- `,Oj=n.div`
1298
+ `,Mj=n.div`
1299
1299
  margin: 5px;
1300
1300
  flex: ${e=>(null==e?void 0:e.single)?"0 0 auto":`1 1 ${(null==e?void 0:e.basis)||"0%"}`};
1301
1301
  white-space: ${e=>(null==e?void 0:e.wrap)&&"nowrap"};
@@ -1303,10 +1303,10 @@ function EM(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.lengt
1303
1303
  &:nth-child(3) {
1304
1304
  margin-left: auto;
1305
1305
  }
1306
- `,Mj=n.div`
1306
+ `,Tj=n.div`
1307
1307
  display: flex;
1308
1308
  justify-content: ${e=>null==e?void 0:e.justify};
1309
- `,Tj=Object.freeze(Object.defineProperty({__proto__:null,Container:Ej,Content:Mj,Item:Oj,Menu:Cj,Row:Dj,Section:Sj},Symbol.toStringTag,{value:"Module"})),Nj=e=>e?"rotate-180 transform h-5 w-5":"h-5 w-5",Pj={title:"text-base text-gray-400 font-bold mb-2 ml-6",disclosure:"col-span-9 col-start-1 pl-[27px] bg-gray-100 text-sm text-gray-500 transition ease-in-out delay-150",container:"bg-white rounded-[20px] px-2 py-5",grid:"grid grid-cols-9 transition-opacity",button:{container:"cursor-pointer flex col-span-9 mb-2 text-base mx-3 justify-between py-2 text-left font-semibold text-base focus:outline-none focus-visible:ring relative",stack:"flex items-center ml-2",style:"w-2.5 h-2.5 ml-[0.188rem] bg-transparent border-2 border-black rounded-full",category:"ml-3"},list:{container:"absolute border-l-2 border-dashed border-gray-300 ",item:"mb-5 ml-4 pt-3 relative",styles:"absolute w-2 h-2 bg-gray-300 rounded-full mt-1.5 left-[-19px]",name:"text-sm font-bold text-gray-400",date:"text-sm text-secondary font-bold dark:text-white",author:"mb-4 text-xs font-bold text-gray-400 dark:text-gray-400",lastItem:"bg-black"},buttonLine:"absolute h-[76%] border-r-2 border-dashed border-gray-300 left-[15px] bottom-[-18px]",buttonLineUp:"absolute h-[76%] border-r-2 border-dashed border-gray-300 left-[15px] bottom-[25px]"},Aj=n.div`
1309
+ `,Nj=Object.freeze(Object.defineProperty({__proto__:null,Container:Dj,Content:Tj,Item:Mj,Menu:Sj,Row:Oj,Section:Ej},Symbol.toStringTag,{value:"Module"})),Pj=e=>e?"rotate-180 transform h-5 w-5":"h-5 w-5",Aj={title:"text-base text-gray-400 font-bold mb-2 ml-6",disclosure:"col-span-9 col-start-1 pl-[27px] bg-gray-100 text-sm text-gray-500 transition ease-in-out delay-150",container:"bg-white rounded-[20px] px-2 py-5",grid:"grid grid-cols-9 transition-opacity",button:{container:"cursor-pointer flex col-span-9 mb-2 text-base mx-3 justify-between py-2 text-left font-semibold text-base focus:outline-none focus-visible:ring relative",stack:"flex items-center ml-2",style:"w-2.5 h-2.5 ml-[0.188rem] bg-transparent border-2 border-black rounded-full",category:"ml-3"},list:{container:"absolute border-l-2 border-dashed border-gray-300 ",item:"mb-5 ml-4 pt-3 relative",styles:"absolute w-2 h-2 bg-gray-300 rounded-full mt-1.5 left-[-19px]",name:"text-sm font-bold text-gray-400",date:"text-sm text-secondary font-bold dark:text-white",author:"mb-4 text-xs font-bold text-gray-400 dark:text-gray-400",lastItem:"bg-black"},buttonLine:"absolute h-[76%] border-r-2 border-dashed border-gray-300 left-[15px] bottom-[-18px]",buttonLineUp:"absolute h-[76%] border-r-2 border-dashed border-gray-300 left-[15px] bottom-[25px]"},jj=n.div`
1310
1310
  overflow: hidden;
1311
1311
  transition: max-height 0.3s ease-in-out;
1312
1312
  max-height: ${({isOpen:e})=>e?"10rem":"0"};
@@ -1317,20 +1317,20 @@ function EM(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.lengt
1317
1317
  font-size: 14px;
1318
1318
  color: #888888;
1319
1319
  overflow-y: auto;
1320
- `,jj=n.div`
1320
+ `,Rj=n.div`
1321
1321
  position: absolute;
1322
1322
  border-left: 2px dashed #ccc;
1323
1323
  border-color: #ccc;
1324
1324
  height: ${e=>e.lineHeight};
1325
1325
  max-height: "10rem";
1326
- `,Rj=n.div`
1326
+ `,Lj=n.div`
1327
1327
  position: absolute;
1328
1328
  border-left: 2px dashed #ccc;
1329
1329
  border-color: #ccc;
1330
1330
  height: 37px;
1331
1331
  left: 15px;
1332
1332
  top: 25px;
1333
- `,Lj=({events:e})=>{const n=t.useRef(null),[r,o]=t.useState("0px"),[i,a]=t.useState(null);t.useLayoutEffect((()=>{setTimeout((()=>{if(n.current){const e=`${n.current.offsetHeight}px`;o(e)}}),0)}),[i]),t.useEffect((()=>{const t=null==e?void 0:e.find((e=>e.isOpen));a(t?t.category:null)}),[e]);const s=t.useMemo((()=>null==e?void 0:e.filter((e=>e.data&&e.data.length>0))),[e]),l=t.useCallback((e=>{const t=e.category===i;a(t?null:e.category)}),[i]);return e?O.jsxs("div",{className:Pj.container,children:[O.jsx("div",{className:Pj.title,children:"Historial del Curso"}),null==s?void 0:s.map(((e,t)=>{const o=e.category===i;return O.jsxs("div",{children:[O.jsx("div",{className:Pj.grid,children:O.jsxs("button",{className:Pj.button.container,onClick:()=>l(e),children:[O.jsxs("div",{className:Pj.button.stack,children:[O.jsx("div",{className:Pj.button.style}),s.length>1&&t<s.length-1&&O.jsx(Rj,{}),O.jsx("span",{className:Pj.button.category,children:e.category})]}),O.jsx(Vl,{className:Nj(o)})]})}),o&&O.jsx("div",{className:Pj.grid,children:O.jsx(Aj,{isOpen:o,lineHeight:r,ref:n,children:O.jsxs("ol",{children:[O.jsx(jj,{lineHeight:r}),e.data.map(((e,t)=>O.jsxs("li",{className:Pj.list.item,children:[O.jsx("span",{className:Pj.list.styles}),O.jsx("h3",{className:Pj.list.name,children:null==e?void 0:e.name}),O.jsx("h3",{className:Pj.list.date,children:null==e?void 0:e.date}),O.jsx("p",{className:Pj.list.author,children:null==e?void 0:e.author})]},t)))]})})})]},t)}))]}):null};function Ij(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function Fj(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(l){s=[6,l],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function Hj(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Bj(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Lj.defaultProps={title:"Historial del Curso"},"function"==typeof SuppressedError&&SuppressedError;var Yj=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function zj(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=Yj.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var Wj=[".DS_Store","Thumbs.db"];function $j(e){return"object"==typeof e&&null!==e}function Vj(e){return Gj(e.target.files).map((function(e){return zj(e)}))}function Uj(e){return Ij(this,void 0,void 0,(function(){return Fj(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return zj(e)}))]}}))}))}function qj(e,t){return Ij(this,void 0,void 0,(function(){var n;return Fj(this,(function(r){switch(r.label){case 0:return e.items?(n=Gj(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(Zj))]):[3,2];case 1:return[2,Kj(Qj(r.sent()))];case 2:return[2,Kj(Gj(e.files).map((function(e){return zj(e)})))]}}))}))}function Kj(e){return e.filter((function(e){return-1===Wj.indexOf(e.name)}))}function Gj(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function Zj(e){if("function"!=typeof e.webkitGetAsEntry)return Xj(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?eR(t):Xj(e)}function Qj(e){return e.reduce((function(e,t){return Bj(Bj([],Hj(e),!1),Hj(Array.isArray(t)?Qj(t):[t]),!1)}),[])}function Xj(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=zj(t);return Promise.resolve(n)}function Jj(e){return Ij(this,void 0,void 0,(function(){return Fj(this,(function(t){return[2,e.isDirectory?eR(e):tR(e)]}))}))}function eR(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var i=this;t.readEntries((function(t){return Ij(i,void 0,void 0,(function(){var i,a,s;return Fj(this,(function(l){switch(l.label){case 0:if(t.length)return[3,5];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return i=l.sent(),e(i),[3,4];case 3:return a=l.sent(),n(a),[3,4];case 4:return[3,6];case 5:s=Promise.all(t.map(Jj)),r.push(s),o(),l.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function tR(e){return Ij(this,void 0,void 0,(function(){return Fj(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=zj(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var nR=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?i===t.replace(/\/.*$/,""):o===t}))}return!0};function rR(e){return function(e){if(Array.isArray(e))return cR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||lR(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function iR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oR(Object(n),!0).forEach((function(t){aR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(l){s=!0,o=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||lR(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lR(e,t){if(e){if("string"==typeof e)return cR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cR(e,t):void 0}}function cR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var uR=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:"file-invalid-type",message:"File type must be ".concat(t)}},dR=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},hR=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},pR={code:"too-many-files",message:"Too many files"};function fR(e,t){var n="application/x-moz-file"===e.type||nR(e,t);return[n,n?null:uR(t)]}function mR(e,t,n){if(gR(e.size))if(gR(t)&&gR(n)){if(e.size>n)return[!1,dR(n)];if(e.size<t)return[!1,hR(t)]}else{if(gR(t)&&e.size<t)return[!1,hR(t)];if(gR(n)&&e.size>n)return[!1,dR(n)]}return[!0,null]}function gR(e){return null!=e}function vR(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function yR(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function bR(e){e.preventDefault()}function wR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return!vR(e)&&t&&t.apply(void 0,[e].concat(r)),vR(e)}))}}function xR(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function _R(e){return/^.*\.[\w]+$/.test(e)}var kR=["children"],CR=["open"],SR=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],ER=["refKey","onChange","onClick"];function DR(e){return function(e){if(Array.isArray(e))return TR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||MR(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(l){s=!0,o=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||MR(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function MR(e,t){if(e){if("string"==typeof e)return TR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?TR(e,t):void 0}}function TR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function NR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function PR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?NR(Object(n),!0).forEach((function(t){AR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function AR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jR(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var RR=t.forwardRef((function(e,n){var r=e.children,o=FR(jR(e,kR)),i=o.open,a=jR(o,CR);return t.useImperativeHandle(n,(function(){return{open:i}}),[i]),t.createElement(t.Fragment,null,r(PR(PR({},a),{},{open:i})))}));RR.displayName="Dropzone";var LR={disabled:!1,getFilesFromEvent:function(e){return Ij(this,void 0,void 0,(function(){return Fj(this,(function(t){return $j(e)&&$j(e.dataTransfer)?[2,qj(e.dataTransfer,e.type)]:function(e){return $j(e)&&$j(e.target)}(e)?[2,Vj(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,Uj(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};RR.defaultProps=LR,RR.propTypes={children:Ss.func,accept:Ss.objectOf(Ss.arrayOf(Ss.string)),multiple:Ss.bool,preventDropOnDocument:Ss.bool,noClick:Ss.bool,noKeyboard:Ss.bool,noDrag:Ss.bool,noDragEventsBubbling:Ss.bool,minSize:Ss.number,maxSize:Ss.number,maxFiles:Ss.number,disabled:Ss.bool,getFilesFromEvent:Ss.func,onFileDialogCancel:Ss.func,onFileDialogOpen:Ss.func,useFsAccessApi:Ss.bool,autoFocus:Ss.bool,onDragEnter:Ss.func,onDragLeave:Ss.func,onDragOver:Ss.func,onDrop:Ss.func,onDropAccepted:Ss.func,onDropRejected:Ss.func,onError:Ss.func,validator:Ss.func};var IR={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function FR(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=PR(PR({},LR),e),r=n.accept,o=n.disabled,i=n.getFilesFromEvent,a=n.maxSize,s=n.minSize,l=n.multiple,c=n.maxFiles,u=n.onDragEnter,d=n.onDragLeave,h=n.onDragOver,p=n.onDrop,f=n.onDropAccepted,m=n.onDropRejected,g=n.onFileDialogCancel,v=n.onFileDialogOpen,y=n.useFsAccessApi,b=n.autoFocus,w=n.preventDropOnDocument,x=n.noClick,_=n.noKeyboard,k=n.noDrag,C=n.noDragEventsBubbling,S=n.onError,E=n.validator,D=t.useMemo((function(){return function(e){if(gR(e))return Object.entries(e).reduce((function(e,t){var n=sR(t,2),r=n[0],o=n[1];return[].concat(rR(e),[r],rR(o))}),[]).filter((function(e){return xR(e)||_R(e)})).join(",")}(r)}),[r]),O=t.useMemo((function(){return function(e){return gR(e)?[{description:"Files",accept:Object.entries(e).filter((function(e){var t=sR(e,2),n=t[0],r=t[1],o=!0;return xR(n)||(o=!1),Array.isArray(r)&&r.every(_R)||(o=!1),o})).reduce((function(e,t){var n=sR(t,2),r=n[0],o=n[1];return iR(iR({},e),{},aR({},r,o))}),{})}]:e}(r)}),[r]),M=t.useMemo((function(){return"function"==typeof v?v:BR}),[v]),T=t.useMemo((function(){return"function"==typeof g?g:BR}),[g]),N=t.useRef(null),P=t.useRef(null),A=OR(t.useReducer(HR,IR),2),j=A[0],R=A[1],L=j.isFocused,I=j.isFileDialogActive,F=t.useRef("undefined"!=typeof window&&window.isSecureContext&&y&&"showOpenFilePicker"in window),H=function(){!F.current&&I&&setTimeout((function(){P.current&&(P.current.files.length||(R({type:"closeDialog"}),T()))}),300)};t.useEffect((function(){return window.addEventListener("focus",H,!1),function(){window.removeEventListener("focus",H,!1)}}),[P,I,T,F]);var B=t.useRef([]),Y=function(e){N.current&&N.current.contains(e.target)||(e.preventDefault(),B.current=[])};t.useEffect((function(){return w&&(document.addEventListener("dragover",bR,!1),document.addEventListener("drop",Y,!1)),function(){w&&(document.removeEventListener("dragover",bR),document.removeEventListener("drop",Y))}}),[N,w]),t.useEffect((function(){return!o&&b&&N.current&&N.current.focus(),function(){}}),[N,b,o]);var z=t.useCallback((function(e){S&&S(e)}),[S]),W=t.useCallback((function(e){e.preventDefault(),e.persist(),ne(e),B.current=[].concat(DR(B.current),[e.target]),yR(e)&&Promise.resolve(i(e)).then((function(t){if(!vR(e)||C){var n=t.length,r=n>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles,s=e.validator;return!(!i&&t.length>1||i&&a>=1&&t.length>a)&&t.every((function(e){var t=sR(fR(e,n),1)[0],i=sR(mR(e,r,o),1)[0],a=s?s(e):null;return t&&i&&!a}))}({files:t,accept:D,minSize:s,maxSize:a,multiple:l,maxFiles:c,validator:E});R({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return z(e)}))}),[i,u,z,C,D,s,a,l,c,E]),$=t.useCallback((function(e){e.preventDefault(),e.persist(),ne(e);var t=yR(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(n){}return t&&h&&h(e),!1}),[h,C]),V=t.useCallback((function(e){e.preventDefault(),e.persist(),ne(e);var t=B.current.filter((function(e){return N.current&&N.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),B.current=t,t.length>0||(R({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),yR(e)&&d&&d(e))}),[N,d,C]),U=t.useCallback((function(e,t){var n=[],r=[];e.forEach((function(e){var t=OR(fR(e,D),2),o=t[0],i=t[1],l=OR(mR(e,s,a),2),c=l[0],u=l[1],d=E?E(e):null;if(o&&c&&!d)n.push(e);else{var h=[i,u];d&&(h=h.concat(d)),r.push({file:e,errors:h.filter((function(e){return e}))})}})),(!l&&n.length>1||l&&c>=1&&n.length>c)&&(n.forEach((function(e){r.push({file:e,errors:[pR]})})),n.splice(0)),R({acceptedFiles:n,fileRejections:r,type:"setFiles"}),p&&p(n,r,t),r.length>0&&m&&m(r,t),n.length>0&&f&&f(n,t)}),[R,l,D,s,a,c,p,f,m,E]),q=t.useCallback((function(e){e.preventDefault(),e.persist(),ne(e),B.current=[],yR(e)&&Promise.resolve(i(e)).then((function(t){vR(e)&&!C||U(t,e)})).catch((function(e){return z(e)})),R({type:"reset"})}),[i,U,z,C]),K=t.useCallback((function(){if(F.current){R({type:"openDialog"}),M();var e={multiple:l,types:O};window.showOpenFilePicker(e).then((function(e){return i(e)})).then((function(e){U(e,null),R({type:"closeDialog"})})).catch((function(e){var t;(t=e)instanceof DOMException&&("AbortError"===t.name||t.code===t.ABORT_ERR)?(T(e),R({type:"closeDialog"})):!function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?z(e):(F.current=!1,P.current?(P.current.value=null,P.current.click()):z(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided.")))}))}else P.current&&(R({type:"openDialog"}),M(),P.current.value=null,P.current.click())}),[R,M,T,y,U,z,O,l]),G=t.useCallback((function(e){N.current&&N.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),K()))}),[N,K]),Z=t.useCallback((function(){R({type:"focus"})}),[]),Q=t.useCallback((function(){R({type:"blur"})}),[]),X=t.useCallback((function(){x||(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?K():setTimeout(K,0))}),[x,K]),J=function(e){return o?null:e},ee=function(e){return _?null:J(e)},te=function(e){return k?null:J(e)},ne=function(e){C&&e.stopPropagation()},re=t.useMemo((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.role,i=e.onKeyDown,a=e.onFocus,s=e.onBlur,l=e.onClick,c=e.onDragEnter,u=e.onDragOver,d=e.onDragLeave,h=e.onDrop,p=jR(e,SR);return PR(PR(AR({onKeyDown:ee(wR(i,G)),onFocus:ee(wR(a,Z)),onBlur:ee(wR(s,Q)),onClick:J(wR(l,X)),onDragEnter:te(wR(c,W)),onDragOver:te(wR(u,$)),onDragLeave:te(wR(d,V)),onDrop:te(wR(h,q)),role:"string"==typeof r&&""!==r?r:"presentation"},n,N),o||_?{}:{tabIndex:0}),p)}}),[N,G,Z,Q,X,W,$,V,q,_,k,o]),oe=t.useCallback((function(e){e.stopPropagation()}),[]),ie=t.useMemo((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,o=e.onClick,i=jR(e,ER);return PR(PR({},AR({accept:D,multiple:l,type:"file",style:{display:"none"},onChange:J(wR(r,q)),onClick:J(wR(o,oe)),tabIndex:-1},n,P)),i)}}),[P,r,l,q,o]);return PR(PR({},j),{},{isFocused:L&&!o,getRootProps:re,getInputProps:ie,rootRef:N,inputRef:P,open:J(K)})}function HR(e,t){switch(t.type){case"focus":return PR(PR({},e),{},{isFocused:!0});case"blur":return PR(PR({},e),{},{isFocused:!1});case"openDialog":return PR(PR({},IR),{},{isFileDialogActive:!0});case"closeDialog":return PR(PR({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return PR(PR({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return PR(PR({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return PR({},IR);default:return e}}function BR(){}var YR=(e=>(e[e.DragActive=1]="DragActive",e[e.FileEmpty=2]="FileEmpty",e[e.InvalidType=3]="InvalidType",e[e.FileTooBig=4]="FileTooBig",e[e.WithError=5]="WithError",e[e.Reload=6]="Reload",e[e.TooManyParticipants=7]="TooManyParticipants",e[e.MoreThanFifteen=8]="MoreThanFifteen",e[e.MissingField=9]="MissingField",e))(YR||{});const zR=n.div`
1333
+ `,Ij=({events:e})=>{const n=t.useRef(null),[r,o]=t.useState("0px"),[i,a]=t.useState(null);t.useLayoutEffect((()=>{setTimeout((()=>{if(n.current){const e=`${n.current.offsetHeight}px`;o(e)}}),0)}),[i]),t.useEffect((()=>{const t=null==e?void 0:e.find((e=>e.isOpen));a(t?t.category:null)}),[e]);const s=t.useMemo((()=>null==e?void 0:e.filter((e=>e.data&&e.data.length>0))),[e]),l=t.useCallback((e=>{const t=e.category===i;a(t?null:e.category)}),[i]);return e?O.jsxs("div",{className:Aj.container,children:[O.jsx("div",{className:Aj.title,children:"Historial del Curso"}),null==s?void 0:s.map(((e,t)=>{const o=e.category===i;return O.jsxs("div",{children:[O.jsx("div",{className:Aj.grid,children:O.jsxs("button",{className:Aj.button.container,onClick:()=>l(e),children:[O.jsxs("div",{className:Aj.button.stack,children:[O.jsx("div",{className:Aj.button.style}),s.length>1&&t<s.length-1&&O.jsx(Lj,{}),O.jsx("span",{className:Aj.button.category,children:e.category})]}),O.jsx(Vl,{className:Pj(o)})]})}),o&&O.jsx("div",{className:Aj.grid,children:O.jsx(jj,{isOpen:o,lineHeight:r,ref:n,children:O.jsxs("ol",{children:[O.jsx(Rj,{lineHeight:r}),e.data.map(((e,t)=>O.jsxs("li",{className:Aj.list.item,children:[O.jsx("span",{className:Aj.list.styles}),O.jsx("h3",{className:Aj.list.name,children:null==e?void 0:e.name}),O.jsx("h3",{className:Aj.list.date,children:null==e?void 0:e.date}),O.jsx("p",{className:Aj.list.author,children:null==e?void 0:e.author})]},t)))]})})})]},t)}))]}):null};function Fj(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function Hj(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(l){s=[6,l],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function Bj(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Yj(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Ij.defaultProps={title:"Historial del Curso"},"function"==typeof SuppressedError&&SuppressedError;var zj=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Wj(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=zj.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var $j=[".DS_Store","Thumbs.db"];function Vj(e){return"object"==typeof e&&null!==e}function Uj(e){return Zj(e.target.files).map((function(e){return Wj(e)}))}function qj(e){return Fj(this,void 0,void 0,(function(){return Hj(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return Wj(e)}))]}}))}))}function Kj(e,t){return Fj(this,void 0,void 0,(function(){var n;return Hj(this,(function(r){switch(r.label){case 0:return e.items?(n=Zj(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(Qj))]):[3,2];case 1:return[2,Gj(Xj(r.sent()))];case 2:return[2,Gj(Zj(e.files).map((function(e){return Wj(e)})))]}}))}))}function Gj(e){return e.filter((function(e){return-1===$j.indexOf(e.name)}))}function Zj(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function Qj(e){if("function"!=typeof e.webkitGetAsEntry)return Jj(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?tR(t):Jj(e)}function Xj(e){return e.reduce((function(e,t){return Yj(Yj([],Bj(e),!1),Bj(Array.isArray(t)?Xj(t):[t]),!1)}),[])}function Jj(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=Wj(t);return Promise.resolve(n)}function eR(e){return Fj(this,void 0,void 0,(function(){return Hj(this,(function(t){return[2,e.isDirectory?tR(e):nR(e)]}))}))}function tR(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var i=this;t.readEntries((function(t){return Fj(i,void 0,void 0,(function(){var i,a,s;return Hj(this,(function(l){switch(l.label){case 0:if(t.length)return[3,5];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return i=l.sent(),e(i),[3,4];case 3:return a=l.sent(),n(a),[3,4];case 4:return[3,6];case 5:s=Promise.all(t.map(eR)),r.push(s),o(),l.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function nR(e){return Fj(this,void 0,void 0,(function(){return Hj(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=Wj(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var rR=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?i===t.replace(/\/.*$/,""):o===t}))}return!0};function oR(e){return function(e){if(Array.isArray(e))return uR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||cR(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function iR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function aR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iR(Object(n),!0).forEach((function(t){sR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(l){s=!0,o=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||cR(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cR(e,t){if(e){if("string"==typeof e)return uR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?uR(e,t):void 0}}function uR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var dR=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:"file-invalid-type",message:"File type must be ".concat(t)}},hR=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},pR=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},fR={code:"too-many-files",message:"Too many files"};function mR(e,t){var n="application/x-moz-file"===e.type||rR(e,t);return[n,n?null:dR(t)]}function gR(e,t,n){if(vR(e.size))if(vR(t)&&vR(n)){if(e.size>n)return[!1,hR(n)];if(e.size<t)return[!1,pR(t)]}else{if(vR(t)&&e.size<t)return[!1,pR(t)];if(vR(n)&&e.size>n)return[!1,hR(n)]}return[!0,null]}function vR(e){return null!=e}function yR(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function bR(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function wR(e){e.preventDefault()}function xR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return!yR(e)&&t&&t.apply(void 0,[e].concat(r)),yR(e)}))}}function _R(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function kR(e){return/^.*\.[\w]+$/.test(e)}var CR=["children"],SR=["open"],ER=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],DR=["refKey","onChange","onClick"];function OR(e){return function(e){if(Array.isArray(e))return NR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||TR(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function MR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(l){s=!0,o=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||TR(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function TR(e,t){if(e){if("string"==typeof e)return NR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?NR(e,t):void 0}}function NR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function PR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function AR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PR(Object(n),!0).forEach((function(t){jR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RR(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var LR=t.forwardRef((function(e,n){var r=e.children,o=HR(RR(e,CR)),i=o.open,a=RR(o,SR);return t.useImperativeHandle(n,(function(){return{open:i}}),[i]),t.createElement(t.Fragment,null,r(AR(AR({},a),{},{open:i})))}));LR.displayName="Dropzone";var IR={disabled:!1,getFilesFromEvent:function(e){return Fj(this,void 0,void 0,(function(){return Hj(this,(function(t){return Vj(e)&&Vj(e.dataTransfer)?[2,Kj(e.dataTransfer,e.type)]:function(e){return Vj(e)&&Vj(e.target)}(e)?[2,Uj(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,qj(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};LR.defaultProps=IR,LR.propTypes={children:Ss.func,accept:Ss.objectOf(Ss.arrayOf(Ss.string)),multiple:Ss.bool,preventDropOnDocument:Ss.bool,noClick:Ss.bool,noKeyboard:Ss.bool,noDrag:Ss.bool,noDragEventsBubbling:Ss.bool,minSize:Ss.number,maxSize:Ss.number,maxFiles:Ss.number,disabled:Ss.bool,getFilesFromEvent:Ss.func,onFileDialogCancel:Ss.func,onFileDialogOpen:Ss.func,useFsAccessApi:Ss.bool,autoFocus:Ss.bool,onDragEnter:Ss.func,onDragLeave:Ss.func,onDragOver:Ss.func,onDrop:Ss.func,onDropAccepted:Ss.func,onDropRejected:Ss.func,onError:Ss.func,validator:Ss.func};var FR={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function HR(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=AR(AR({},IR),e),r=n.accept,o=n.disabled,i=n.getFilesFromEvent,a=n.maxSize,s=n.minSize,l=n.multiple,c=n.maxFiles,u=n.onDragEnter,d=n.onDragLeave,h=n.onDragOver,p=n.onDrop,f=n.onDropAccepted,m=n.onDropRejected,g=n.onFileDialogCancel,v=n.onFileDialogOpen,y=n.useFsAccessApi,b=n.autoFocus,w=n.preventDropOnDocument,x=n.noClick,_=n.noKeyboard,k=n.noDrag,C=n.noDragEventsBubbling,S=n.onError,E=n.validator,D=t.useMemo((function(){return function(e){if(vR(e))return Object.entries(e).reduce((function(e,t){var n=lR(t,2),r=n[0],o=n[1];return[].concat(oR(e),[r],oR(o))}),[]).filter((function(e){return _R(e)||kR(e)})).join(",")}(r)}),[r]),O=t.useMemo((function(){return function(e){return vR(e)?[{description:"Files",accept:Object.entries(e).filter((function(e){var t=lR(e,2),n=t[0],r=t[1],o=!0;return _R(n)||(o=!1),Array.isArray(r)&&r.every(kR)||(o=!1),o})).reduce((function(e,t){var n=lR(t,2),r=n[0],o=n[1];return aR(aR({},e),{},sR({},r,o))}),{})}]:e}(r)}),[r]),M=t.useMemo((function(){return"function"==typeof v?v:YR}),[v]),T=t.useMemo((function(){return"function"==typeof g?g:YR}),[g]),N=t.useRef(null),P=t.useRef(null),A=MR(t.useReducer(BR,FR),2),j=A[0],R=A[1],L=j.isFocused,I=j.isFileDialogActive,F=t.useRef("undefined"!=typeof window&&window.isSecureContext&&y&&"showOpenFilePicker"in window),H=function(){!F.current&&I&&setTimeout((function(){P.current&&(P.current.files.length||(R({type:"closeDialog"}),T()))}),300)};t.useEffect((function(){return window.addEventListener("focus",H,!1),function(){window.removeEventListener("focus",H,!1)}}),[P,I,T,F]);var B=t.useRef([]),Y=function(e){N.current&&N.current.contains(e.target)||(e.preventDefault(),B.current=[])};t.useEffect((function(){return w&&(document.addEventListener("dragover",wR,!1),document.addEventListener("drop",Y,!1)),function(){w&&(document.removeEventListener("dragover",wR),document.removeEventListener("drop",Y))}}),[N,w]),t.useEffect((function(){return!o&&b&&N.current&&N.current.focus(),function(){}}),[N,b,o]);var z=t.useCallback((function(e){S&&S(e)}),[S]),W=t.useCallback((function(e){e.preventDefault(),e.persist(),ne(e),B.current=[].concat(OR(B.current),[e.target]),bR(e)&&Promise.resolve(i(e)).then((function(t){if(!yR(e)||C){var n=t.length,r=n>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles,s=e.validator;return!(!i&&t.length>1||i&&a>=1&&t.length>a)&&t.every((function(e){var t=lR(mR(e,n),1)[0],i=lR(gR(e,r,o),1)[0],a=s?s(e):null;return t&&i&&!a}))}({files:t,accept:D,minSize:s,maxSize:a,multiple:l,maxFiles:c,validator:E});R({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return z(e)}))}),[i,u,z,C,D,s,a,l,c,E]),$=t.useCallback((function(e){e.preventDefault(),e.persist(),ne(e);var t=bR(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(n){}return t&&h&&h(e),!1}),[h,C]),V=t.useCallback((function(e){e.preventDefault(),e.persist(),ne(e);var t=B.current.filter((function(e){return N.current&&N.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),B.current=t,t.length>0||(R({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),bR(e)&&d&&d(e))}),[N,d,C]),U=t.useCallback((function(e,t){var n=[],r=[];e.forEach((function(e){var t=MR(mR(e,D),2),o=t[0],i=t[1],l=MR(gR(e,s,a),2),c=l[0],u=l[1],d=E?E(e):null;if(o&&c&&!d)n.push(e);else{var h=[i,u];d&&(h=h.concat(d)),r.push({file:e,errors:h.filter((function(e){return e}))})}})),(!l&&n.length>1||l&&c>=1&&n.length>c)&&(n.forEach((function(e){r.push({file:e,errors:[fR]})})),n.splice(0)),R({acceptedFiles:n,fileRejections:r,type:"setFiles"}),p&&p(n,r,t),r.length>0&&m&&m(r,t),n.length>0&&f&&f(n,t)}),[R,l,D,s,a,c,p,f,m,E]),q=t.useCallback((function(e){e.preventDefault(),e.persist(),ne(e),B.current=[],bR(e)&&Promise.resolve(i(e)).then((function(t){yR(e)&&!C||U(t,e)})).catch((function(e){return z(e)})),R({type:"reset"})}),[i,U,z,C]),K=t.useCallback((function(){if(F.current){R({type:"openDialog"}),M();var e={multiple:l,types:O};window.showOpenFilePicker(e).then((function(e){return i(e)})).then((function(e){U(e,null),R({type:"closeDialog"})})).catch((function(e){var t;(t=e)instanceof DOMException&&("AbortError"===t.name||t.code===t.ABORT_ERR)?(T(e),R({type:"closeDialog"})):!function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?z(e):(F.current=!1,P.current?(P.current.value=null,P.current.click()):z(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided.")))}))}else P.current&&(R({type:"openDialog"}),M(),P.current.value=null,P.current.click())}),[R,M,T,y,U,z,O,l]),G=t.useCallback((function(e){N.current&&N.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),K()))}),[N,K]),Z=t.useCallback((function(){R({type:"focus"})}),[]),Q=t.useCallback((function(){R({type:"blur"})}),[]),X=t.useCallback((function(){x||(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?K():setTimeout(K,0))}),[x,K]),J=function(e){return o?null:e},ee=function(e){return _?null:J(e)},te=function(e){return k?null:J(e)},ne=function(e){C&&e.stopPropagation()},re=t.useMemo((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.role,i=e.onKeyDown,a=e.onFocus,s=e.onBlur,l=e.onClick,c=e.onDragEnter,u=e.onDragOver,d=e.onDragLeave,h=e.onDrop,p=RR(e,ER);return AR(AR(jR({onKeyDown:ee(xR(i,G)),onFocus:ee(xR(a,Z)),onBlur:ee(xR(s,Q)),onClick:J(xR(l,X)),onDragEnter:te(xR(c,W)),onDragOver:te(xR(u,$)),onDragLeave:te(xR(d,V)),onDrop:te(xR(h,q)),role:"string"==typeof r&&""!==r?r:"presentation"},n,N),o||_?{}:{tabIndex:0}),p)}}),[N,G,Z,Q,X,W,$,V,q,_,k,o]),oe=t.useCallback((function(e){e.stopPropagation()}),[]),ie=t.useMemo((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,o=e.onClick,i=RR(e,DR);return AR(AR({},jR({accept:D,multiple:l,type:"file",style:{display:"none"},onChange:J(xR(r,q)),onClick:J(xR(o,oe)),tabIndex:-1},n,P)),i)}}),[P,r,l,q,o]);return AR(AR({},j),{},{isFocused:L&&!o,getRootProps:re,getInputProps:ie,rootRef:N,inputRef:P,open:J(K)})}function BR(e,t){switch(t.type){case"focus":return AR(AR({},e),{},{isFocused:!0});case"blur":return AR(AR({},e),{},{isFocused:!1});case"openDialog":return AR(AR({},FR),{},{isFileDialogActive:!0});case"closeDialog":return AR(AR({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return AR(AR({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return AR(AR({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return AR({},FR);default:return e}}function YR(){}var zR=(e=>(e[e.DragActive=1]="DragActive",e[e.FileEmpty=2]="FileEmpty",e[e.InvalidType=3]="InvalidType",e[e.FileTooBig=4]="FileTooBig",e[e.WithError=5]="WithError",e[e.Reload=6]="Reload",e[e.TooManyParticipants=7]="TooManyParticipants",e[e.MoreThanFifteen=8]="MoreThanFifteen",e[e.MissingField=9]="MissingField",e))(zR||{});const WR=n.div`
1334
1334
  display: flex;
1335
1335
  align-items: center;
1336
1336
  border-radius: 1.5rem;
@@ -1344,7 +1344,7 @@ function EM(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.lengt
1344
1344
  &:hover {
1345
1345
  background-color: white;
1346
1346
  }
1347
- `,WR=n.div`
1347
+ `,$R=n.div`
1348
1348
  margin: 0;
1349
1349
  padding: 10px;
1350
1350
  font-size: 1rem;
@@ -1354,9 +1354,9 @@ function EM(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.lengt
1354
1354
  font-style: normal;
1355
1355
  font-family: Roboto;
1356
1356
  color: ${e=>e.color||"#939799"};
1357
- `,$R=n.input`
1357
+ `,VR=n.input`
1358
1358
  display: none;
1359
- `,VR=n.div`
1359
+ `,UR=n.div`
1360
1360
  color: white;
1361
1361
  display: flex;
1362
1362
  margin: 0.5rem 0;
@@ -1364,5 +1364,5 @@ function EM(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.lengt
1364
1364
  border-radius: 1.25rem;
1365
1365
  padding: 0.25rem 0.75rem;
1366
1366
  background-color: ${({backgroundColor:e})=>e};
1367
- `,UR=e=>O.jsx("svg",{fill:"none",stroke:"currentColor",strokeWidth:1.5,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"h-6 w-6 text-primary",...e,children:O.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 16.5V9.75m0 0l3 3m-3-3l-3 3M6.75 19.5a4.5 4.5 0 01-1.41-8.775 5.25 5.25 0 0110.233-2.33 3 3 0 013.758 3.848A3.752 3.752 0 0118 19.5H6.75z"})}),qR=e=>O.jsx("svg",{fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"h-6 w-6 text-red-700",...e,children:O.jsx("path",{clipRule:"evenodd",fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z"})}),KR=e=>O.jsx("svg",{fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"h-6 w-6 text-white",...e,children:O.jsx("path",{clipRule:"evenodd",fillRule:"evenodd",d:"M4.5 2A1.5 1.5 0 003 3.5v13A1.5 1.5 0 004.5 18h11a1.5 1.5 0 001.5-1.5V7.621a1.5 1.5 0 00-.44-1.06l-4.12-4.122A1.5 1.5 0 0011.378 2H4.5zm2.25 8.5a.75.75 0 000 1.5h6.5a.75.75 0 000-1.5h-6.5zm0 3a.75.75 0 000 1.5h6.5a.75.75 0 000-1.5h-6.5z"})}),GR=e=>O.jsx("svg",{fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"h-6 w-6 text-primary",...e,children:O.jsx("path",{clipRule:"evenodd",fillRule:"evenodd",d:"M4.755 10.059a7.5 7.5 0 0112.548-3.364l1.903 1.903h-3.183a.75.75 0 100 1.5h4.992a.75.75 0 00.75-.75V4.356a.75.75 0 00-1.5 0v3.18l-1.9-1.9A9 9 0 003.306 9.67a.75.75 0 101.45.388zm15.408 3.352a.75.75 0 00-.919.53 7.5 7.5 0 01-12.548 3.364l-1.902-1.903h3.183a.75.75 0 000-1.5H2.984a.75.75 0 00-.75.75v4.992a.75.75 0 001.5 0v-3.18l1.9 1.9a9 9 0 0015.059-4.035.75.75 0 00-.53-.918z"})}),ZR=t.memo((({status:e=YR.DragActive,filename:n="",wrongColor:r,maxFileSize:o=5242880,successColor:i,onFileUpload:a,renderContent:s,onStatusChange:l,acceptedFileType:c,renderBelowFilename:u,statusMessages:d,statusColors:h,statusBorder:p,statusIcons:f={[YR.DragActive]:UR,[YR.InvalidType]:qR,[YR.WithError]:qR,[YR.Reload]:GR},...m})=>{const g={[YR.DragActive]:["Mensaje personalizado 1","Mensaje personalizado 2"]},v={[YR.WithError]:"red"},y={[YR.DragActive]:"green"},b=t.useCallback((e=>{const t=e[0];null==a||a(t)}),[a]),{getRootProps:w,getInputProps:x,isDragActive:_,fileRejections:k}=FR({accept:c,maxSize:o,maxFiles:1,onDrop:b,onDropRejected:()=>{if(k.length>0){const{code:e}=k[0].errors[0];switch(e){case"file-too-large":null==l||l(YR.FileTooBig);break;case"file-invalid-type":null==l||l(YR.InvalidType)}}}}),C=e||YR.DragActive,S=(null==f?void 0:f[C])||UR;e=e||YR.DragActive;const E=(null==h?void 0:h[e])??v[e]??[],D=(null==p?void 0:p[e])??y[e]??[],M=(null==d?void 0:d[e])??g[e]??[];return O.jsxs(zR,{...w(),isDragActive:_,borderColor:D,wrongColor:r,successColor:i,...m,children:[S&&O.jsx(A,{marginTop:2,children:O.jsx(S,{})}),e&&[YR.WithError,YR.Reload].includes(e)&&n&&O.jsxs(VR,{backgroundColor:E,children:[O.jsx(KR,{})," ",O.jsxs("p",{children:["Archivo cargado:",n," "]})]}),u&&u,O.jsxs(WR,{children:[M.filter(Boolean).map((e=>O.jsx("p",{children:e},e))),s&&s]}),O.jsx($R,{...x()})]})})),QR="flex items-center w-[562px] text-xs text-gray-900 font-medium sm:text-base",XR="flex w-full relative text-gray-900",JR="flex w-full relative text-gray-900 after:content-[''] after:w-full after:h-[6px] after:bg-primary after:inline-block after:absolute lg:after:top-6 after:top-3 after:left-4",eL="flex w-full relative after:w-full after:h-[6px] after:bg-primary/30 after:inline-block after:absolute lg:after:top-6 after:top-3 after:left-4",tL="absolute right-8 w-[107px] h-[38px] text-center",nL={index:"block z-10",root:"size-14 text-primary rounded-full flex justify-center items-center mx-auto mb-3 text-sm",selected:"bg-white border-4 border-primary",disabled:"bg-opaque border-4 border-primary/20 text-white/70 hover:bg-white hover:border-primary hover:text-primary pointer-events-none",normal:"bg-primary border-4 border-transparent text-white hover:bg-white hover:border-primary hover:text-primary",position:"font-bold text-2xl"},rL=t.memo((({steps:e,canProceed:t,currentStep:n,onStepChange:r})=>{const o=(t,n)=>t===e.length-1?XR:n?JR:eL;return O.jsx("ol",{className:QR,children:e.map(((e,i)=>{return O.jsx("li",{className:o(i,t[i]),children:O.jsxs("div",{className:nL.index,children:[O.jsx("button",{disabled:!t[i],onClick:()=>r(e.id),className:(a=e.id,s=t[i],n===a?`${nL.root} ${nL.selected}`:s?`${nL.root} ${nL.normal}`:`${nL.root} ${nL.disabled}`),children:O.jsx("span",{className:nL.position,children:e.id})}),O.jsx(cx,{className:tL,size:"lg",color:t[i]?"primary":"opaque",font:"bold",children:e.label})]})},e.id);var a,s}))})}));e.$channels=QE,e.$events=ZE,e.$observers={},e.AlertTitle=({title:e,Icon:t})=>O.jsxs("div",{className:pC.rule,children:[O.jsx("div",{className:pC.icon,children:t&&O.jsx(t,{})}),O.jsx("div",{}),O.jsx("h1",{className:pC.alert,children:e})]}),e.Badge=f_,e.BadgeStatus=p_,e.Box=A,e.Button=__,e.Card=({requirement:e,description:t,Icon:n})=>O.jsx("div",{className:hC.size,children:O.jsx("div",{className:hC.style,children:O.jsxs("div",{className:hC.separator,children:[O.jsxs("div",{children:[O.jsxs("h1",{className:hC.title,children:[" ",e," "]}),O.jsx("h2",{className:hC.body,children:t})]}),O.jsxs("div",{className:hC.icon,children:[n&&O.jsx(n,{})," "]})]})})}),e.Chart=Fi,e.CheckTitle=({title:e,Icon:t})=>O.jsxs("div",{className:pC.rule,children:[O.jsx("div",{className:pC.icon,children:t&&O.jsx(t,{})}),O.jsx("div",{}),O.jsx("h1",{className:pC.pass,children:e})]}),e.Checkbox=rc,e.Collapse=u_,e.Color=Li,e.Colspan=Mx,e.Container=({className:e,children:t,start:n=2,cols:r=10})=>O.jsx("div",{className:T(`col-start-${n} col-span-${r}`,e&&e),children:t}),e.Counter=({passedDays:e,remainingDays:t,message:n,color:r})=>{const o=T({"text-4xl":t&&Math.abs(t)<100,"text-3xl":t&&Math.abs(t)>=100});return O.jsxs("div",{className:Tx,children:[O.jsxs(Ix,{className:Nx,color:r,children:[O.jsx("div",{className:T(Px,o),children:t}),O.jsx("div",{className:Ax,children:"días"})]}),O.jsxs("div",{className:jx,children:[O.jsx("div",{className:Rx,children:n}),O.jsxs(Fx,{color:r,children:[e," días"]}),O.jsx("div",{className:Lx,children:"transcurridos"})]})]})},e.DangerTitle=({title:e,Icon:t})=>O.jsxs("div",{className:pC.rule,children:[O.jsx("div",{className:pC.icon,children:t&&O.jsx(t,{})}),O.jsx("div",{}),O.jsxs("h1",{className:pC.danger,children:[" ",e]})]}),e.Datepicker=tx,e.Description=({content:e,children:t})=>O.jsx("h3",{className:T(ix.description,e&&ix.content),children:t}),e.Detail=Tj,e.Dragarea=ZR,e.Dropdown=sc,e.Empty=Hx,e.Error=e=>{const n=t.useRef(!0);return t.useEffect((()=>{if(null==e?void 0:e.onDismiss)return null==window||window.setTimeout((()=>{var t;n.current&&(null==(t=null==e?void 0:e.onDismiss)||t.call(e))}),hx),()=>{n.current=!1}}),[null==e?void 0:e.onDismiss]),O.jsx("span",{className:T(lx.confirmation,(null==e?void 0:e.className)&&e.className,(null==e?void 0:e.confirmation)?lx.show:lx.hide),children:(null==e?void 0:e.confirmation)&&e.children})},e.EventMap=eD,e.Flex=dc,e.FlexItem=({children:e,...t})=>{const n=cc(t);return O.jsx("div",{className:n,children:e})},e.Footer=P_,e.GrantSystem=CA,e.Grid=Ox,e.HttpClient=UE,e.IN_Grants=R_,e.Input=mx,e.InputMode=Cx,e.InputTable=_x,e.Layout=gk,e.Little=({children:e})=>O.jsx("h2",{className:ax.title,children:e}),e.Loading=Bx,e.LocalStorageKeys=kC,e.LogColors=_A,e.LogLevel=xA,e.Logger=kA,e.Method=KE,e.MicrofrontHost=wA,e.Modal=({modal:e,isOpen:t,children:n,onClose:r=()=>{}})=>O.jsx(Tl,{modal:e,onHide:r,visible:t,maskStyle:Nl.dialog.mask.style,headerClassName:Nl.dialog.header.className,contentClassName:Nl.dialog.content.className,children:n&&n}),e.Navbar=ek,e.Pagination=dC,e.Permissions=j_,e.Private=SA,e.RadioButton=rx,e.Row=({children:e,...t})=>O.jsx(j,{...t,children:e}),e.SP_Grants=L_,e.ScrollSearch=iC,e.Search=Gk,e.Select=iu,e.Sidebar=q_,e.SignalContext=D_,e.SingleDeadlineChart=({workLine:e})=>e?(e.stages.forEach((e=>{const t=[];e.deadlines=e.deadlines.sort(((e,t)=>t.since-e.since)),e.deadlines.forEach(((n,r)=>{0===r?n.since<e.maxDuration&&t.push({id:0,name:"1",criticalLevel:"",color:"#e5e7eb",since:e.maxDuration,until:n.since+1}):(n.since<e.deadlines[r-1].until-1&&t.push({id:0,name:"2",criticalLevel:"",color:"#e5e7eb",since:e.deadlines[r-1].until-1,until:n.since+1}),r===e.deadlines.length-1&&n.until>e.minDuration&&t.push({id:0,name:"3",criticalLevel:"",color:"#e5e7eb",since:n.until-1,until:e.minDuration})),t.push(n)})),e.deadlines=t.sort(((e,t)=>t.since-e.since))})),O.jsx(Ux,{children:O.jsxs(qx,{children:[O.jsx(Kx,{children:O.jsxs(Gx,{children:["Plazos de ",e.name]})}),O.jsx(Zx,{children:e.stages.map((e=>O.jsx(Qx,{className:2===e.id?Wx:zx,children:O.jsxs(Xx,{children:[O.jsxs(Jx,{children:[O.jsx(e_,{children:e.deadlines.map((t=>{const n=t.since/e.maxDuration*100;return O.jsx(s_,{widthPercent:n,children:O.jsx(t_,{children:t.since})},t.id)}))}),O.jsx(n_,{children:e.deadlines.map(((t,n)=>{const r=t.since/e.maxDuration*100;let o=$x;const i=$x;return t.color&&n!==e.deadlines.length-1&&(o=Vx),O.jsx(a_,{className:`${o} ${i}`,bgColor:t.color,widthPercent:r},t.id)}))})]}),O.jsxs(r_,{children:[O.jsxs(o_,{children:[" Etapa de ",e.name]}),e.deadlines.map((e=>O.jsx(i_,{children:"#E55257"===e.color&&e.until>=0?e.until:null},e.id)))]})]})},e.id)))})]},e.id)})):O.jsx("div",{children:"No se encuentra el Plazo Solicitado."}),e.Stepper=rL,e.Subtitle=dx,e.Success=e=>{const n=t.useRef(!0);return t.useEffect((()=>{if(null==e?void 0:e.onDismiss)return null==window||window.setTimeout((()=>{var t;n.current&&(null==(t=null==e?void 0:e.onDismiss)||t.call(e))}),hx),()=>{n.current=!1}}),[null==e?void 0:e.onDismiss]),O.jsx("span",{className:T(sx.confirmation,(null==e?void 0:e.className)&&e.className,(null==e?void 0:e.confirmation)?sx.show:sx.hide),children:e.children})},e.Switch=({children:e,color:t,backgroundColor:n,onChange:r,checked:o,disabled:i})=>O.jsxs(cu,{children:[e&&O.jsx(uu,{color:t,children:e}),O.jsx(du,{children:O.jsxs(hu,{children:[O.jsx(pu,{checked:o,onChange:()=>{!i&&(null==r||r(!o))}}),O.jsx(fu,{backgroundColor:n,disabled:i})]})})]}),e.Table=Fk,e.TableData=Hk,e.TableInput=Sx,e.TableRow=({align:e,children:t,disabled:n=!1})=>O.jsx(Tk,{align:e,disabled:n,children:t}),e.TableWrapper=({children:e})=>O.jsx("div",{className:_k.container,children:e}),e.Text=cx,e.TextArea=({name:e,rows:t=4,value:n,onChange:r,textColor:o,borderColor:i,maxLength:a,...s})=>O.jsx(Dx,{name:e,value:n,rows:t,textColor:o,borderColor:i,onChange:e=>{null==r||r(e)},onKeyDown:e=>{var t;null==(t=s.onKeyDown)||t.call(s,e)},maxLength:a,...s}),e.Timeline=Lj,e.Title=ux,e.Tooltip=Nf,e.TotalHours=({hours:e,inputs:t,pending:n,borderColor:r,hoursTitle:o,inputsTitle:i,pendingTitle:a,hoursColor:s,inputColor:l,pendingColor:c,hoursTitleColor:u,inputsTitleColor:d,pendingTitleColor:h})=>O.jsxs(mC,{children:[O.jsx(fC,{title:o,value:e,color:s,titleColor:u,as:wC}),O.jsx(fC,{title:i,value:t,color:l,titleColor:d,as:xC,borderColor:r}),O.jsx(fC,{title:a,value:n,color:c,titleColor:h,as:_C})]}),e.UrlSSOParams=CC,e.Wait=Yx,e.authorization=({user:e,allow:t,system:n=A_})=>{var r,o;const i=null==(r=null==e?void 0:e.systems)?void 0:r.find((e=>e.name===n)),a=null==(o=null==i?void 0:i.functions)?void 0:o.filter((e=>{const n=e.key;return null==t?void 0:t.includes(n)}));return(null==a?void 0:a.length)===(null==t?void 0:t.length)},e.bearer=qE,e.broadcast=JE,e.capitalize=function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()},e.checkSystems=({user:e,passport:t,systems:n})=>{var r;const o=null==(r=null==e?void 0:e.systems)?void 0:r.filter((e=>null==n?void 0:n.includes(e.name)));return!!t&&(null==o?void 0:o.length)===(null==n?void 0:n.length)},e.createHalfTimeSlots=function(e,t){return Array.from({length:2*(t??24)},((t,n)=>{const r=n%2*30,o=Math.floor(n/2).toString().padStart(2,"0"),i=0===r?"00":r.toString();return{[e??"hour"]:`${o}:${i}`}}))},e.createObserver=function(e){const t=new d.Subject,n=window;try{n[e]=t}catch(r){}return t},e.createRef=e=>{if(void 0===e)return _D;const t=_D(e),n=t.getState();return SM.push((()=>{t.setState(n,!0)})),t},e.createSignal=function(e,t){var n;QE[e]?null==(n=QE[e])||n.postMessage(t):QE[e]=new window.BroadcastChannel(e)},e.createTimeSlots=function(e,t){return Array.from({length:t??24},((t,n)=>({[e??"hour"]:n.toString().padStart(2,"0")+":00"})))},e.defaultCacheQueryOptions=mj,e.defaultConfig=fj,e.destroy=function(e){const t=window;if(t[e]){return t[e].unsubscribe()}throw new Error("Cannot find subscription")},e.destroySignal=function(e){var t;null==(t=QE[e])||t.close(),delete QE[e]},e.dispatch=function(e,t){const n=new CustomEvent(e,{detail:t});window.dispatchEvent(n)},e.download=function(e,t,n){const r=null==window?void 0:window.atob(t),o=new Array(r.length);for(let c=0;c<r.length;c++)o[c]=r.charCodeAt(c);const i=new Uint8Array(o),a=new Blob([i],{type:e}),s=document.createElement("a");document.body.appendChild(s);const l=window.URL||window.webkitURL;Object.assign(s,{download:n,style:"display:none",href:l.createObjectURL(a)}),s.click(),l.revokeObjectURL(s.href),s.remove()},e.formatHourTime=hc,e.initialState=kM,e.isAmount=function(e){const t=+e;return!isNaN(t)&&t>0},e.mapping=function(e,t){return u.map(e,(e=>({to:t.valueAsHref?e[t.valueAsHref]:null,key:e[t.idAsKey],label:e[t.labelAsKey],value:e[t.valueAsKey]})))},e.observe=XE,e.removeHourFormat=pc,e.resetAllStores=()=>{for(const e of SM)e()},e.revert=function(e){return!e},e.signalHttps=function(e,t,n,r){return async()=>{const o={},i=(null==n?void 0:n.params)??[];(null==e?void 0:e.token)&&(o.Authorization=qE(e.token)),(null==e?void 0:e.refreshToken)&&(o["X-Access-Token"]=e.refreshToken);const a=i.length>0?i.join("/"):null,s=new UE({baseURL:t.baseURL,headers:o});switch(t.method){case"GET":if(t.normalize){const e=await s.get({provide:a?t.endpoint.concat("/",a):t.endpoint,query:null==n?void 0:n.query});return null==e?void 0:e.data}const e=await s.get({provide:a?t.endpoint.concat("/",a):t.endpoint,query:null==n?void 0:n.query});return null==e?void 0:e.data;case"DELETE":if(t.normalize){const e=await s.delete({provide:a?t.endpoint.concat("/",a):t.endpoint,query:null==n?void 0:n.query});return null==e?void 0:e.data}const o=await s.delete({provide:a?t.endpoint.concat("/",a):t.endpoint,query:null==n?void 0:n.query});return null==o?void 0:o.data;case"POST":const i=await s.post({provide:a?t.endpoint.concat("/",a):t.endpoint,query:null==n?void 0:n.query},r);return null==i?void 0:i.data;case"PUT":const l=await s.put({provide:a?t.endpoint.concat("/",a):t.endpoint,query:null==n?void 0:n.query},r);return null==l?void 0:l.data;case"PATCH":const c=await s.patch({provide:a?t.endpoint.concat("/",a):t.endpoint,query:null==n?void 0:n.query},r);return null==c?void 0:c.data;default:const{data:u}=await s.get({provide:a?t.endpoint.concat("/",a):t.endpoint,query:null==n?void 0:n.query});return u}}},e.sort=function(e,t){const n=new Map;return n.set("DEFAULT","ASC"),n.set("ASC","DESC"),n.set("DESC","DEFAULT"),t.map((t=>e===t.title&&t.sort?{...t,sort:n.get(t.sort)}:Object.assign(t,{sort:"DEFAULT"})))},e.stack=function(e,t,n=","){if(0!==e.length)return e.every((e=>"object"==typeof e))?e.map((e=>e[t])).join(n):e.join(n)},e.takeSignal=function(e,t){QE[e].onmessage=e=>{t(e.data)}},e.unsubscribeEvent=function(e){var t;ZE[e]&&(null==(t=ZE[e])||t.unsubscribe(),delete ZE[e])},e.useBroadcaster=GE,e.useCache=function({defaultValue:e,sequence:n,cacheKey:r}){const o=fj.useQueryClient??nj,i=(fj.useQuery??pj)({enabled:!1,cacheTime:1/0,refetchOnMount:!1,refetchOnWindowFocus:!1,queryFn:e=>e,queryKey:r}),a=o(),s=Boolean(i.data),l=e=>{a.setQueryData(r,e)};return t.useEffect((()=>{e&&l(e)}),[]),{cache:i,defaultValue:e,isStored:s,store:l,purge:e=>{n?r.forEach((e=>{e&&a.resetQueries()})):s&&a.resetQueries(r??e)}}},e.useCheckbox=function(e){const[n,r]=t.useState([]),[o,i]=t.useState(!1);return t.useEffect((()=>{const e=null==n?void 0:n.length,t=null==n?void 0:n.some((e=>!1===e.checked));if(0===e||t)return void i(!1);(null==n?void 0:n.every((e=>!0===e.checked)))&&i(!0)}),[n,e]),{checkboxList:n,checkboxHead:o,setCheckboxList:r,setCheckboxHead:i,handleChangeCheckbox:(t,n)=>{if(e)return r((r=>r.map((r=>r[e]===n?{...r,checked:t}:r))))},handleChangeCheckboxHead:e=>{const t=n.map((t=>({...t,checked:e})));r(t)}}},e.useObserver=function(e,n){const[r,o]=t.useState(!1);return t.useEffect((()=>{const{unsubscribe:t}=XE(e,n);return()=>{t()}}),[]),{status:r,pause:t.useCallback((()=>o(!0)),[]),resume:t.useCallback((()=>o(!1)),[])}},e.useSessionStore=CM,e.useSignal=O_,e.useToggle=function(e=!1){const[n,r]=t.useState(e),o=t.useCallback((()=>{r((e=>!e))}),[]);return{forceTo:t.useCallback((e=>{r(e)}),[]),isToggled:n,handleToggle:o}},Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
1367
+ `,qR=e=>O.jsx("svg",{fill:"none",stroke:"currentColor",strokeWidth:1.5,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"h-6 w-6 text-primary",...e,children:O.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 16.5V9.75m0 0l3 3m-3-3l-3 3M6.75 19.5a4.5 4.5 0 01-1.41-8.775 5.25 5.25 0 0110.233-2.33 3 3 0 013.758 3.848A3.752 3.752 0 0118 19.5H6.75z"})}),KR=e=>O.jsx("svg",{fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"h-6 w-6 text-red-700",...e,children:O.jsx("path",{clipRule:"evenodd",fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z"})}),GR=e=>O.jsx("svg",{fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"h-6 w-6 text-white",...e,children:O.jsx("path",{clipRule:"evenodd",fillRule:"evenodd",d:"M4.5 2A1.5 1.5 0 003 3.5v13A1.5 1.5 0 004.5 18h11a1.5 1.5 0 001.5-1.5V7.621a1.5 1.5 0 00-.44-1.06l-4.12-4.122A1.5 1.5 0 0011.378 2H4.5zm2.25 8.5a.75.75 0 000 1.5h6.5a.75.75 0 000-1.5h-6.5zm0 3a.75.75 0 000 1.5h6.5a.75.75 0 000-1.5h-6.5z"})}),ZR=e=>O.jsx("svg",{fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"h-6 w-6 text-primary",...e,children:O.jsx("path",{clipRule:"evenodd",fillRule:"evenodd",d:"M4.755 10.059a7.5 7.5 0 0112.548-3.364l1.903 1.903h-3.183a.75.75 0 100 1.5h4.992a.75.75 0 00.75-.75V4.356a.75.75 0 00-1.5 0v3.18l-1.9-1.9A9 9 0 003.306 9.67a.75.75 0 101.45.388zm15.408 3.352a.75.75 0 00-.919.53 7.5 7.5 0 01-12.548 3.364l-1.902-1.903h3.183a.75.75 0 000-1.5H2.984a.75.75 0 00-.75.75v4.992a.75.75 0 001.5 0v-3.18l1.9 1.9a9 9 0 0015.059-4.035.75.75 0 00-.53-.918z"})}),QR=t.memo((({status:e=zR.DragActive,filename:n="",wrongColor:r,maxFileSize:o=5242880,successColor:i,onFileUpload:a,renderContent:s,onStatusChange:l,acceptedFileType:c,renderBelowFilename:u,statusMessages:d,statusColors:h,statusBorder:p,statusIcons:f={[zR.DragActive]:qR,[zR.InvalidType]:KR,[zR.WithError]:KR,[zR.Reload]:ZR},...m})=>{const g={[zR.DragActive]:["Mensaje personalizado 1","Mensaje personalizado 2"]},v={[zR.WithError]:"red"},y={[zR.DragActive]:"green"},b=t.useCallback((e=>{const t=e[0];null==a||a(t)}),[a]),{getRootProps:w,getInputProps:x,isDragActive:_,fileRejections:k}=HR({accept:c,maxSize:o,maxFiles:1,onDrop:b,onDropRejected:()=>{if(k.length>0){const{code:e}=k[0].errors[0];switch(e){case"file-too-large":null==l||l(zR.FileTooBig);break;case"file-invalid-type":null==l||l(zR.InvalidType)}}}}),C=e||zR.DragActive,S=(null==f?void 0:f[C])||qR;e=e||zR.DragActive;const E=(null==h?void 0:h[e])??v[e]??[],D=(null==p?void 0:p[e])??y[e]??[],M=(null==d?void 0:d[e])??g[e]??[];return O.jsxs(WR,{...w(),isDragActive:_,borderColor:D,wrongColor:r,successColor:i,...m,children:[S&&O.jsx(A,{marginTop:2,children:O.jsx(S,{})}),e&&[zR.WithError,zR.Reload].includes(e)&&n&&O.jsxs(UR,{backgroundColor:E,children:[O.jsx(GR,{})," ",O.jsxs("p",{children:["Archivo cargado:",n," "]})]}),u&&u,O.jsxs($R,{children:[M.filter(Boolean).map((e=>O.jsx("p",{children:e},e))),s&&s]}),O.jsx(VR,{...x()})]})})),XR="flex items-center w-[562px] text-xs text-gray-900 font-medium sm:text-base",JR="flex w-full relative text-gray-900",eL="flex w-full relative text-gray-900 after:content-[''] after:w-full after:h-[6px] after:bg-primary after:inline-block after:absolute lg:after:top-6 after:top-3 after:left-4",tL="flex w-full relative after:w-full after:h-[6px] after:bg-primary/30 after:inline-block after:absolute lg:after:top-6 after:top-3 after:left-4",nL="absolute right-8 w-[107px] h-[38px] text-center",rL={index:"block z-10",root:"size-14 text-primary rounded-full flex justify-center items-center mx-auto mb-3 text-sm",selected:"bg-white border-4 border-primary",disabled:"bg-opaque border-4 border-primary/20 text-white/70 hover:bg-white hover:border-primary hover:text-primary pointer-events-none",normal:"bg-primary border-4 border-transparent text-white hover:bg-white hover:border-primary hover:text-primary",position:"font-bold text-2xl"},oL=t.memo((({steps:e,canProceed:t,currentStep:n,onStepChange:r})=>{const o=(t,n)=>t===e.length-1?JR:n?eL:tL;return O.jsx("ol",{className:XR,children:e.map(((e,i)=>{return O.jsx("li",{className:o(i,t[i]),children:O.jsxs("div",{className:rL.index,children:[O.jsx("button",{disabled:!t[i],onClick:()=>r(e.id),className:(a=e.id,s=t[i],n===a?`${rL.root} ${rL.selected}`:s?`${rL.root} ${rL.normal}`:`${rL.root} ${rL.disabled}`),children:O.jsx("span",{className:rL.position,children:e.id})}),O.jsx(cx,{className:nL,size:"lg",color:t[i]?"primary":"opaque",font:"bold",children:e.label})]})},e.id);var a,s}))})}));e.$channels=XE,e.$events=QE,e.$observers={},e.AlertTitle=({title:e,Icon:t})=>O.jsxs("div",{className:fC.rule,children:[O.jsx("div",{className:fC.icon,children:t&&O.jsx(t,{})}),O.jsx("div",{}),O.jsx("h1",{className:fC.alert,children:e})]}),e.Badge=f_,e.BadgeStatus=p_,e.Box=A,e.Button=__,e.Card=({requirement:e,description:t,Icon:n})=>O.jsx("div",{className:pC.size,children:O.jsx("div",{className:pC.style,children:O.jsxs("div",{className:pC.separator,children:[O.jsxs("div",{children:[O.jsxs("h1",{className:pC.title,children:[" ",e," "]}),O.jsx("h2",{className:pC.body,children:t})]}),O.jsxs("div",{className:pC.icon,children:[n&&O.jsx(n,{})," "]})]})})}),e.Chart=Fi,e.CheckTitle=({title:e,Icon:t})=>O.jsxs("div",{className:fC.rule,children:[O.jsx("div",{className:fC.icon,children:t&&O.jsx(t,{})}),O.jsx("div",{}),O.jsx("h1",{className:fC.pass,children:e})]}),e.Checkbox=rc,e.Collapse=u_,e.Color=Li,e.Colspan=Mx,e.Container=({className:e,children:t,start:n=2,cols:r=10})=>O.jsx("div",{className:T(`col-start-${n} col-span-${r}`,e&&e),children:t}),e.Counter=({passedDays:e,remainingDays:t,message:n,color:r})=>{const o=T({"text-4xl":t&&Math.abs(t)<100,"text-3xl":t&&Math.abs(t)>=100});return O.jsxs("div",{className:Tx,children:[O.jsxs(Ix,{className:Nx,color:r,children:[O.jsx("div",{className:T(Px,o),children:t}),O.jsx("div",{className:Ax,children:"días"})]}),O.jsxs("div",{className:jx,children:[O.jsx("div",{className:Rx,children:n}),O.jsxs(Fx,{color:r,children:[e," días"]}),O.jsx("div",{className:Lx,children:"transcurridos"})]})]})},e.DangerTitle=({title:e,Icon:t})=>O.jsxs("div",{className:fC.rule,children:[O.jsx("div",{className:fC.icon,children:t&&O.jsx(t,{})}),O.jsx("div",{}),O.jsxs("h1",{className:fC.danger,children:[" ",e]})]}),e.Datepicker=tx,e.Description=({content:e,children:t})=>O.jsx("h3",{className:T(ix.description,e&&ix.content),children:t}),e.Detail=Nj,e.Dragarea=QR,e.Dropdown=sc,e.Empty=Hx,e.Error=e=>{const n=t.useRef(!0);return t.useEffect((()=>{if(null==e?void 0:e.onDismiss)return null==window||window.setTimeout((()=>{var t;n.current&&(null==(t=null==e?void 0:e.onDismiss)||t.call(e))}),hx),()=>{n.current=!1}}),[null==e?void 0:e.onDismiss]),O.jsx("span",{className:T(lx.confirmation,(null==e?void 0:e.className)&&e.className,(null==e?void 0:e.confirmation)?lx.show:lx.hide),children:(null==e?void 0:e.confirmation)&&e.children})},e.EventMap=tD,e.Flex=dc,e.FlexItem=({children:e,...t})=>{const n=cc(t);return O.jsx("div",{className:n,children:e})},e.Footer=P_,e.GrantSystem=SA,e.Grid=Ox,e.HttpClient=qE,e.IN_Grants=R_,e.Input=mx,e.InputMode=Cx,e.InputTable=_x,e.Layout=vk,e.Little=({children:e})=>O.jsx("h2",{className:ax.title,children:e}),e.Loading=Bx,e.LocalStorageKeys=CC,e.LogColors=kA,e.LogLevel=_A,e.Logger=CA,e.Method=GE,e.MicrofrontHost=xA,e.Modal=({modal:e,isOpen:t,children:n,onClose:r=()=>{}})=>O.jsx(Tl,{modal:e,onHide:r,visible:t,maskStyle:Nl.dialog.mask.style,headerClassName:Nl.dialog.header.className,contentClassName:Nl.dialog.content.className,children:n&&n}),e.Navbar=ek,e.Pagination=hC,e.Permissions=j_,e.Private=EA,e.RadioButton=rx,e.Row=({children:e,...t})=>O.jsx(j,{...t,children:e}),e.SP_Grants=L_,e.ScrollSearch=aC,e.Search=Zk,e.Select=iu,e.Sidebar=q_,e.SignalContext=D_,e.SingleDeadlineChart=({workLine:e})=>e?(e.stages.forEach((e=>{const t=[];e.deadlines=e.deadlines.sort(((e,t)=>t.since-e.since)),e.deadlines.forEach(((n,r)=>{0===r?n.since<e.maxDuration&&t.push({id:0,name:"1",criticalLevel:"",color:"#e5e7eb",since:e.maxDuration,until:n.since+1}):(n.since<e.deadlines[r-1].until-1&&t.push({id:0,name:"2",criticalLevel:"",color:"#e5e7eb",since:e.deadlines[r-1].until-1,until:n.since+1}),r===e.deadlines.length-1&&n.until>e.minDuration&&t.push({id:0,name:"3",criticalLevel:"",color:"#e5e7eb",since:n.until-1,until:e.minDuration})),t.push(n)})),e.deadlines=t.sort(((e,t)=>t.since-e.since))})),O.jsx(Ux,{children:O.jsxs(qx,{children:[O.jsx(Kx,{children:O.jsxs(Gx,{children:["Plazos de ",e.name]})}),O.jsx(Zx,{children:e.stages.map((e=>O.jsx(Qx,{className:2===e.id?Wx:zx,children:O.jsxs(Xx,{children:[O.jsxs(Jx,{children:[O.jsx(e_,{children:e.deadlines.map((t=>{const n=t.since/e.maxDuration*100;return O.jsx(s_,{widthPercent:n,children:O.jsx(t_,{children:t.since})},t.id)}))}),O.jsx(n_,{children:e.deadlines.map(((t,n)=>{const r=t.since/e.maxDuration*100;let o=$x;const i=$x;return t.color&&n!==e.deadlines.length-1&&(o=Vx),O.jsx(a_,{className:`${o} ${i}`,bgColor:t.color,widthPercent:r},t.id)}))})]}),O.jsxs(r_,{children:[O.jsxs(o_,{children:[" Etapa de ",e.name]}),e.deadlines.map((e=>O.jsx(i_,{children:"#E55257"===e.color&&e.until>=0?e.until:null},e.id)))]})]})},e.id)))})]},e.id)})):O.jsx("div",{children:"No se encuentra el Plazo Solicitado."}),e.Stepper=oL,e.Subtitle=dx,e.Success=e=>{const n=t.useRef(!0);return t.useEffect((()=>{if(null==e?void 0:e.onDismiss)return null==window||window.setTimeout((()=>{var t;n.current&&(null==(t=null==e?void 0:e.onDismiss)||t.call(e))}),hx),()=>{n.current=!1}}),[null==e?void 0:e.onDismiss]),O.jsx("span",{className:T(sx.confirmation,(null==e?void 0:e.className)&&e.className,(null==e?void 0:e.confirmation)?sx.show:sx.hide),children:e.children})},e.Switch=({children:e,color:t,backgroundColor:n,onChange:r,checked:o,disabled:i})=>O.jsxs(cu,{children:[e&&O.jsx(uu,{color:t,children:e}),O.jsx(du,{children:O.jsxs(hu,{children:[O.jsx(pu,{checked:o,onChange:()=>{!i&&(null==r||r(!o))}}),O.jsx(fu,{backgroundColor:n,disabled:i})]})})]}),e.Table=Hk,e.TableData=Bk,e.TableInput=Sx,e.TableRow=({align:e,children:t,disabled:n=!1})=>O.jsx(Nk,{align:e,disabled:n,children:t}),e.TableWrapper=({children:e})=>O.jsx("div",{className:kk.container,children:e}),e.Text=cx,e.TextArea=({name:e,rows:t=4,value:n,onChange:r,textColor:o,borderColor:i,maxLength:a,...s})=>O.jsx(Dx,{name:e,value:n,rows:t,textColor:o,borderColor:i,onChange:e=>{null==r||r(e)},onKeyDown:e=>{var t;null==(t=s.onKeyDown)||t.call(s,e)},maxLength:a,...s}),e.Timeline=Ij,e.Title=ux,e.Tooltip=Nf,e.TotalHours=({hours:e,inputs:t,pending:n,borderColor:r,hoursTitle:o,inputsTitle:i,pendingTitle:a,hoursColor:s,inputColor:l,pendingColor:c,hoursTitleColor:u,inputsTitleColor:d,pendingTitleColor:h})=>O.jsxs(gC,{children:[O.jsx(mC,{title:o,value:e,color:s,titleColor:u,as:xC}),O.jsx(mC,{title:i,value:t,color:l,titleColor:d,as:_C,borderColor:r}),O.jsx(mC,{title:a,value:n,color:c,titleColor:h,as:kC})]}),e.UrlSSOParams=SC,e.Wait=Yx,e.authorization=({user:e,allow:t,system:n=A_})=>{var r,o;const i=null==(r=null==e?void 0:e.systems)?void 0:r.find((e=>e.name===n)),a=null==(o=null==i?void 0:i.functions)?void 0:o.filter((e=>{const n=e.key;return null==t?void 0:t.includes(n)}));return(null==a?void 0:a.length)===(null==t?void 0:t.length)},e.bearer=KE,e.broadcast=eD,e.capitalize=function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()},e.checkSystems=({user:e,passport:t,systems:n})=>{var r;const o=null==(r=null==e?void 0:e.systems)?void 0:r.filter((e=>null==n?void 0:n.includes(e.name)));return!!t&&(null==o?void 0:o.length)===(null==n?void 0:n.length)},e.createHalfTimeSlots=function(e,t){return Array.from({length:2*(t??24)},((t,n)=>{const r=n%2*30,o=Math.floor(n/2).toString().padStart(2,"0"),i=0===r?"00":r.toString();return{[e??"hour"]:`${o}:${i}`}}))},e.createObserver=function(e){const t=new d.Subject,n=window;try{n[e]=t}catch(r){}return t},e.createRef=e=>{if(void 0===e)return kD;const t=kD(e),n=t.getState();return EM.push((()=>{t.setState(n,!0)})),t},e.createSignal=function(e,t){var n;XE[e]?null==(n=XE[e])||n.postMessage(t):XE[e]=new window.BroadcastChannel(e)},e.createTimeSlots=function(e,t){return Array.from({length:t??24},((t,n)=>({[e??"hour"]:n.toString().padStart(2,"0")+":00"})))},e.defaultCacheQueryOptions=gj,e.defaultConfig=mj,e.destroy=function(e){const t=window;if(t[e]){return t[e].unsubscribe()}throw new Error("Cannot find subscription")},e.destroySignal=function(e){var t;null==(t=XE[e])||t.close(),delete XE[e]},e.dispatch=function(e,t){const n=new CustomEvent(e,{detail:t});window.dispatchEvent(n)},e.download=function(e,t,n){const r=null==window?void 0:window.atob(t),o=new Array(r.length);for(let c=0;c<r.length;c++)o[c]=r.charCodeAt(c);const i=new Uint8Array(o),a=new Blob([i],{type:e}),s=document.createElement("a");document.body.appendChild(s);const l=window.URL||window.webkitURL;Object.assign(s,{download:n,style:"display:none",href:l.createObjectURL(a)}),s.click(),l.revokeObjectURL(s.href),s.remove()},e.formatHourTime=hc,e.initialState=CM,e.isAmount=function(e){const t=+e;return!isNaN(t)&&t>0},e.mapping=function(e,t){return u.map(e,(e=>({to:t.valueAsHref?e[t.valueAsHref]:null,key:e[t.idAsKey],label:e[t.labelAsKey],value:e[t.valueAsKey]})))},e.observe=JE,e.removeHourFormat=pc,e.resetAllStores=()=>{for(const e of EM)e()},e.revert=function(e){return!e},e.signalHttps=function(e,t,n,r){return async()=>{const o={},i=(null==n?void 0:n.params)??[];(null==e?void 0:e.token)&&(o.Authorization=KE(e.token)),(null==e?void 0:e.refreshToken)&&(o["X-Access-Token"]=e.refreshToken);const a=i.length>0?i.join("/"):null,s=new qE({baseURL:t.baseURL,headers:o});switch(t.method){case"GET":if(t.normalize){const e=await s.get({provide:a?t.endpoint.concat("/",a):t.endpoint,query:null==n?void 0:n.query});return null==e?void 0:e.data}const e=await s.get({provide:a?t.endpoint.concat("/",a):t.endpoint,query:null==n?void 0:n.query});return null==e?void 0:e.data;case"DELETE":if(t.normalize){const e=await s.delete({provide:a?t.endpoint.concat("/",a):t.endpoint,query:null==n?void 0:n.query});return null==e?void 0:e.data}const o=await s.delete({provide:a?t.endpoint.concat("/",a):t.endpoint,query:null==n?void 0:n.query});return null==o?void 0:o.data;case"POST":const i=await s.post({provide:a?t.endpoint.concat("/",a):t.endpoint,query:null==n?void 0:n.query},r);return null==i?void 0:i.data;case"PUT":const l=await s.put({provide:a?t.endpoint.concat("/",a):t.endpoint,query:null==n?void 0:n.query},r);return null==l?void 0:l.data;case"PATCH":const c=await s.patch({provide:a?t.endpoint.concat("/",a):t.endpoint,query:null==n?void 0:n.query},r);return null==c?void 0:c.data;default:const{data:u}=await s.get({provide:a?t.endpoint.concat("/",a):t.endpoint,query:null==n?void 0:n.query});return u}}},e.sort=function(e,t){const n=new Map;return n.set("DEFAULT","ASC"),n.set("ASC","DESC"),n.set("DESC","DEFAULT"),t.map((t=>e===t.title&&t.sort?{...t,sort:n.get(t.sort)}:Object.assign(t,{sort:"DEFAULT"})))},e.stack=function(e,t,n=","){if(0!==e.length)return e.every((e=>"object"==typeof e))?e.map((e=>e[t])).join(n):e.join(n)},e.takeSignal=function(e,t){XE[e].onmessage=e=>{t(e.data)}},e.unsubscribeEvent=function(e){var t;QE[e]&&(null==(t=QE[e])||t.unsubscribe(),delete QE[e])},e.useBroadcaster=ZE,e.useCache=function({defaultValue:e,sequence:n,cacheKey:r}){const o=mj.useQueryClient??rj,i=(mj.useQuery??fj)({enabled:!1,cacheTime:1/0,refetchOnMount:!1,refetchOnWindowFocus:!1,queryFn:e=>e,queryKey:r}),a=o(),s=Boolean(i.data),l=e=>{a.setQueryData(r,e)};return t.useEffect((()=>{e&&l(e)}),[]),{cache:i,defaultValue:e,isStored:s,store:l,purge:e=>{n?r.forEach((e=>{e&&a.resetQueries()})):s&&a.resetQueries(r??e)}}},e.useCheckbox=function(e){const[n,r]=t.useState([]),[o,i]=t.useState(!1);return t.useEffect((()=>{const e=null==n?void 0:n.length,t=null==n?void 0:n.some((e=>!1===e.checked));if(0===e||t)return void i(!1);(null==n?void 0:n.every((e=>!0===e.checked)))&&i(!0)}),[n,e]),{checkboxList:n,checkboxHead:o,setCheckboxList:r,setCheckboxHead:i,handleChangeCheckbox:(t,n)=>{if(e)return r((r=>r.map((r=>r[e]===n?{...r,checked:t}:r))))},handleChangeCheckboxHead:e=>{const t=n.map((t=>({...t,checked:e})));r(t)}}},e.useCustomEvent=gk,e.useObserver=function(e,n){const[r,o]=t.useState(!1);return t.useEffect((()=>{const{unsubscribe:t}=JE(e,n);return()=>{t()}}),[]),{status:r,pause:t.useCallback((()=>o(!0)),[]),resume:t.useCallback((()=>o(!1)),[])}},e.useSessionStore=SM,e.useSignal=O_,e.useToggle=function(e=!1){const[n,r]=t.useState(e),o=t.useCallback((()=>{r((e=>!e))}),[]);return{forceTo:t.useCallback((e=>{r(e)}),[]),isToggled:n,handleToggle:o}},Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
1368
1368
  //# sourceMappingURL=index.umd.js.map