PageSourceSearch

https://plataforma.ecocomputo.com/assets/Home-Mg2Twua8.js

js ecocomputo.com collected 2026-10-05 08:11:07 UTC 129,038 bytes, 14 lines download raw bytes

1import{_ as Kt}from"./logo-aTRP8M9F.js";import{o as W,c as T,a as e,d as S0,k as Xt,r as M,l as w0,m as p0,F as d0,p as f0,b as Y,u as t0,g as a0,v as i0,f as J,e as Z,t as O,j as _t,q as Be,s as gt,x as k0,y as Mt,z as X,A as jt,w as Gt,T as Qt,n as Yt}from"./index-Q4VOzN2h.js";import{T as Bt}from"./VueSearchSelect-JbWEVGJT.js";/* empty css                        */import{u as P0}from"./notifications-mXgWDJGd.js";import{E as Jt}from"./EmpresaService-oqTKr_oX.js";import{d as er}from"./DireccionService-xgd6hfJZ.js";import{C as yt}from"./ContactoService-_SrltkVn.js";import{S as tr,a as rr}from"./SolicitudContenedorService-6c_XF-zI.js";import{R as Ct,C as bt}from"./CertificadosService-Apa3q9bT.js";import{C as Et}from"./ClasificacionService-qmyUMIR6.js";import{_ as ar}from"./DireccionForm.vue_vue_type_script_setup_true_lang-_YDlS4Tz.js";import{_ as or}from"./EmpresaForm.vue_vue_type_script_setup_true_lang-8iwCRrJX.js";import{_ as At}from"./ContactoForm.vue_vue_type_script_setup_true_lang-qYq1nGxw.js";import{_ as sr}from"./DialogForm.vue_vue_type_script_setup_true_lang-auaH9PHl.js";import{d as Ft}from"./departamentos-rJzvpCDK.js";import{r as Dt}from"./index.esm-TcdyB3Pl.js";import{C as nr}from"./ContenedorService-ZKHiTrEz.js";import{c as ir}from"./_commonjs-dynamic-modules-h-SxKiO4.js";import{r as xr}from"./XMarkIcon-4Qa3QH68.js";import{S as cr}from"./SettingService-W-urXcgJ.js";import"./axios-config-QJZCR7Gp.js";import"./modalStore-eZialFDR.js";import"./dialog-ImEhYyNO.js";import"./transition-AZRPAq35.js";import"./MapPinIcon-hAM6Lu2p.js";import"./notifications-KGfQOBDS.js";import"./BuildingOfficeIcon-1ejiRWtl.js";import"./UserIcon-_SAzF5qF.js";import"./XMarkIcon-wc2yrQkI.js";const lr="/B2Contenedor.png",dr="/B2Business.png",fr="/CertificadoDescarga.png",ur="/CertificadoValidar.png";function ye(P,V){return W(),T("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e("path",{"fill-rule":"evenodd",d:"M1 2.75A.75.75 0 0 1 1.75 2h10.5a.75.75 0 0 1 0 1.5H12v13.75a.75.75 0 0 1-.75.75h-1.5a.75.75 0 0 1-.75-.75v-2.5a.75.75 0 0 0-.75-.75h-2.5a.75.75 0 0 0-.75.75v2.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1 0-1.5H2v-13h-.25A.75.75 0 0 1 1 2.75ZM4 5.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1ZM4.5 9a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1ZM8 5.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1ZM8.5 9a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1ZM14.25 6a.75.75 0 0 0-.75.75V17a1 1 0 0 0 1 1h3.75a.75.75 0 0 0 0-1.5H18v-9h.25a.75.75 0 0 0 0-1.5h-4Zm.5 3.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1Zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1Z","clip-rule":"evenodd"})])}function wt(P,V){return W(),T("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e("path",{d:"M3 4a2 2 0 0 0-2 2v1.161l8.441 4.221a1.25 1.25 0 0 0 1.118 0L19 7.162V6a2 2 0 0 0-2-2H3Z"}),e("path",{d:"m19 8.839-7.77 3.885a2.75 2.75 0 0 1-2.46 0L1 8.839V14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.839Z"})])}function $0(P,V){return W(),T("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e("path",{"fill-rule":"evenodd",d:"M9 3.5a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11ZM2 9a7 7 0 1 1 12.452 4.391l3.328 3.329a.75.75 0 1 1-1.06 1.06l-3.329-3.328A7 7 0 0 1 2 9Z","clip-rule":"evenodd"})])}function vr(P,V){return W(),T("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e("path",{"fill-rule":"evenodd",d:"M4.848 2.771A49.144 49.144 0 0 1 12 2.25c2.43 0 4.817.178 7.152.52 1.978.292 3.348 2.024 3.348 3.97v6.02c0 1.946-1.37 3.678-3.348 3.97a48.901 48.901 0 0 1-3.476.383.39.39 0 0 0-.297.17l-2.755 4.133a.75.75 0 0 1-1.248 0l-2.755-4.133a.39.39 0 0 0-.297-.17 48.9 48.9 0 0 1-3.476-.384c-1.978-.29-3.348-2.024-3.348-3.97V6.741c0-1.946 1.37-3.68 3.348-3.97
1Z","clip-rule":"evenodd"})])}function kt(P,V){return W(),T("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e("path",{"fill-rule":"evenodd",d:"M19.916 4.626a.75.75 0 0 1 .208 1.04l-9 13.5a.75.75 0 0 1-1.154.114l-6-6a.75.75 0 0 1 1.06-1.06l5.353 5.353 8.493-12.74a.75.75 0 0 1 1.04-.207Z","clip-rule":"evenodd"})])}function hr(P,V){return W(),T("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e("path",{"fill-rule":"evenodd",d:"m11.54 22.351.07.04.028.016a.76.76 0 0 0 .723 0l.028-.015.071-.041a16.975 16.975 0 0 0 1.144-.742 19.58 19.58 0 0 0 2.683-2.282c1.944-1.99 3.963-4.98 3.963-8.827a8.25 8.25 0 0 0-16.5 0c0 3.846 2.02 6.837 3.963 8.827a19.58 19.58 0 0 0 2.682 2.282 16.975 16.975 0 0 0 1.145.742ZM12 13.5a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z","clip-rule":"evenodd"})])}const pr={key:0,class:"bg-white rounded-md p-3"},mr=e("h2",{class:"text-3xl text-primary"},"Solicitud de recolección B2B",-1),_r={"aria-label":"Progress",class:"my-2"},gr={role:"list",class:"divide-y divide-gray-300 rounded-md border border-gray-300 md:flex md:divide-y-0"},Br=["href"],yr={class:"flex items-center px-6 py-4 text-sm font-medium"},Cr={class:"flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full bg-primary"},br={class:"ml-4 text-xs font-medium text-gray-900"},Er=["href"],Ar={class:"flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full border-2 border-primary"},Fr={class:"text-primary"},Dr={class:"ml-4 text-xs font-medium text-primary"},wr=["href"],kr={class:"flex items-center px-6 py-4 text-sm font-medium"},$r={class:"flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full border-2 border-gray-300"},Sr={class:"text-gray-500 group-hover:text-gray-900"},Hr={class:"ml-4 text-xs font-medium text-gray-500 group-hover:text-gray-900"},Rr={key:3,class:"absolute right-0 top-0 hidden h-full w-5 md:block","aria-hidden":"true"},zr=e("svg",{class:"h-full w-full text-gray-300",viewBox:"0 0 22 80",fill:"none",preserveAspectRatio:"none"},[e("path",{d:"M0 -2L20 40L0 82","vector-effect":"non-scaling-stroke",stroke:"currentcolor","stroke-linejoin":"round"})],-1),Pr=[zr],Ir={class:"wizard-container mt-2 p-4 bg-slate-200 rounded-md"},Nr={class:"step-content"},qr={key:0},Lr=e("h2",{class:"text-lg font-semibold"},"Paso 1: Datos de la empresa",-1),Wr={key:0,class:"max-w-sm"},Tr=e("label",{class:"block text-sm font-medium leading-6 text-gray-900"},"Por favor, a continuación ingrese el NIT con dígito de verificación de la empresa:",-1),Ur={class:"mt-2 flex rounded-md shadow-sm"},Vr={class:"relative flex flex-grow items-stretch focus-within:z-10"},Or={class:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"},Zr={key:1},Kr=e("p",{class:"mt-1 text-sm text-gray-500"},"No se encontraron solicitudes previas, por favor registre la empresa:",-1),Xr={key:2,class:"max-w-full"},Mr=e("h3",{class:"text-md font-semibold"},"Seleccione o creé dirección",-1),jr={class:"mt-2"},Gr={key:0,class:"text-base text-gray-900"},Qr=e("b",null,"seleccione una ubicación",-1),Yr={class:"my-2 w-full"},Jr={class:"grid grid-cols-1 sm:grid-cols-2 gap-4"},ea={class:"min-w-0 flex-1 text-sm leading-6"},ta=["for"],ra=e("br",null,null,-1),aa=["for"],oa=["id"],sa={class:"ml-3 flex h-6 items-center"},na=["value","id","aria-describedby"],ia=e("p",{class:"my-3 text-sm text-gray-500"},"A continuación, puede registrar una nueva dirección:",-1),xa={key:1},ca=e("h2",{class:"text-lg font-semibold"},"Paso 2: Datos del solicitante",-1),la={class:"max-w-sm"},da=e("label",{for:"email",class:"block text-sm font-medium leading-6 text-gray-900"},"Por favor, a continuación ingrese el correo electrónico:",-1),fa={key:0,class:"mt-2 flex rounded-md shadow-sm"},ua={class:"relative flex flex-grow items-stretch focus-within:z-10"},va={class:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"},ha={class:"mt-2"},pa={class:"relative flex items-start"},ma={key:0,class:"font-bold"},_a={class:"flex h-6 items-center"},ga=e("div",{class:"ml-3 text-sm leading-6"},[e("label",{for:"comments",class:"font-medium text-gray-900"},"He leído, comprendo y acepto la "),e("p",{id:"comments-description",class:"text-gray-500"},[e("a",{class:"text-primary",href:"https://ecocomputo.com/download/politica-de-tratamiento-de-datos/?wpdmdl=2488&refresh=6628c9facb50a1713949178"},"política de privacidad y tratamiento de datos al igual que los términos y condiciones del servicio.")])],-1),Ba={key:0},ya=e("p",{class:"mt-1 text-sm text-gray-600"},"Aun no tenemos datos de contacto de tu empresa, por favor agrege el nuevo contacto:",-1),Ca={key:2},ba=e("h2",{class:"text-lg font-semibold"},"Paso 3: Agregar residuos",-1),Ea=Be('<div class="grid grid-cols-12 gap-2 text-sm"><div class="col-span-6"><label for="tipo" class="block text-sm font-medium leading-6 text-gray-500">Residuo</label></div><div class="col-span-2"><label for="cantidad" class="block text-sm font-medium leading-6 text-gray-500">Cantidad</label></div><div class="col-span-3"><label for="peso" class="block text-sm font-medium leading-6 text-gray-500">Peso (Kg.)</label></div><div class="col-span-1"></div></div>',1),Aa={class:"col-span-6"},Fa={key:0,class:"mt-1 text-xs text-[#db2828]"},Da={class:"col-span-2"},wa=["onUpdate:modelValue"],ka={key:0,class:"mt-1 text-xs text-[#db2828]"},$a={class:"col-span-3"},Sa=["onUpdate:modelValue"],Ha={key:0,class:"mt-1 text-xs text-[#db2828]"},Ra={class:"col-span-1"},za=["onClick"],Pa={class:"mt-5"},Ia=e("label",{class:"block text-sm font-medium leading-6 text-gray-900"},"Detalles Adicionales (Opcional)",-1),Na={class:"basis-full"},qa=["disabled"],La={key:1,class:"mt-2 px-4 sm:px-0"},Wa=e("p",{class:"mt-1 text-sm leading-6 text-gray-500 bg-gray-100 text-center"}
1,"DATOS DE LA SOLICITUD",-1),Ta=[Wa],Ua={class:"border-t border-gray-100"},Va={key:0,class:"divide-y divide-gray-100"},Oa=e("p",{class:"mt-1 text-sm leading-6 text-gray-500 bg-gray-100"},"Información de la empresa",-1),Za={class:"px-4 py-0 sm:grid sm:grid-cols-3 sm:gap-1 sm:px-0"},Ka=e("dt",{class:"text-sm font-medium leading-6 text-gray-900"},"Empresa",-1),Xa={class:"mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0"},Ma=e("dt",{class:"text-sm font-medium leading-6 text-gray-900"},"NIT",-1),ja={class:"mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0"},Ga={key:1,class:"divide-y divide-gray-100"},Qa=e("p",{class:"mt-1 text-sm leading-6 text-gray-500 bg-gray-100"},"Información de contacto",-1),Ya={class:"px-4 py-0 sm:grid sm:grid-cols-3 sm:gap-1 sm:px-0"},Ja=e("dt",{class:"text-sm font-medium leading-6 text-gray-900"},"Nombre",-1),eo={class:"mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0"},to=e("dt",{class:"text-sm font-medium leading-6 text-gray-900"},"Correo electrónico",-1),ro={class:"mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0"},ao=e("dt",{class:"text-sm font-medium leading-6 text-gray-900"},"Cargo",-1),oo={class:"mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0"},so=e("dt",{class:"text-sm font-medium leading-6 text-gray-900"},"Teléfono",-1),no={class:"mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0"},io=S0({__name:"SolicitudBusinessForm",props:{showForm:Boolean},setup(P){const{executeRecaptcha:V}=Xt(),h=M(!1),o=M(""),C=P;function B(w){const q=Ft.find(I=>I.id===w);return q?q.valor:w}const F=[{id:"01",name:"Datos empresa",href:"#",status:"complete"},{id:"02",name:"Datos contacto",href:"#",status:"current"},{id:"03",name:"Agregar residuos",href:"#",status:"upcoming"}],l=M({codigo:"",contacto_id:0,direccion_id:0,empresa_id:0}),f=M({id:void 0}),t=M([]),a=M({}),v=M({}),r=M([]),d=M([]),i=M(1),u=M(),c=M(!1),m=P0(),n=()=>{i.value<F.length&&(F[i.value].status="complete",i.value++)};w0(()=>l.value.direccion_id,w=>{const q=t.value.find(I=>Number(I.id)===w);a.value=q||{},l.value.direccion_id&&n()},{immediate:!0});const s=async()=>{try{const w=await V("submit_solicitud");if(f.value.recaptcha_token=w,l.value.direccion_id=0,f.value.nit){const q=await Jt.getByNit(f.value);q.data&&q.data.length>0?(f.value=q.data[0],l.value.empresa_id=Number(f.value.id),_()):(f.value.id=0,console.log(q.data.message))}else{m.addNotification({message:"Ingrese un NIT con dígito de verificación para poder buscar",type:"info",title:"Información"});return}}catch(w){console.error("Error al buscar empresa por NIT: ",w),f.value.id=0}},x=async()=>{try{if(l.value.contacto_id=0,v.value.empresa_id=l.value.empresa_id,v.value.email){const w=await yt.getByEmail(v.value);w.data&&w.data.length>0?(v.value=w.data[0],l.value.contacto_id=Number(v.value.id),l.value.contacto_id!=0&&(n(),p()),u.value=!0):(u.value=!1,console.log(w.data.message))}else{m.addNotification({message:"Ingrese un Correo para poder buscar",type:"info",title:"Información"});return}}catch(w){console.log(w),u.value=!1}},_=async()=>{try{const w=await er.listByEmpresa(f.value.id??0);w.data&&w.data.length>0?t.value=w.data:console.log(w.data.message)}catch(w){console.log(w)}},g=p0(()=>t.value.filter(w=>{var I,E,S;const q=o.value.toLowerCase();return(((I=w.direccion)==null?void 0:I.toLowerCase())??"").includes(q)||(((E=w.observaciones)==null?void 0:E.toLowerCase())??"").includes(q)||(((S=w.ciudad)==null?void 0:S.toLowerCase())??"").includes(q)}));async function y(w){f.value.id=w,l.value.empresa_id=f.value.id,await _()}async function A(w){v.value.id=w,l.value.contacto_id=w,p(),n()}async function z(w){await _(),l.value.direccion_id=w}const p=async()=>{try{const w=await Et.list();w.data&&w.data.length>0?d.value=w.data:console.log(w.data.message)}catch(w){console.log(w)}},b=p0(()=>d.value.map(w=>({value:w.id,text:w.dispositivo})));function k(){r.value.push({clasificacion_id:0,peso_estimado:0,cantidad:0,solicitud_tipo:"B2B",gestor_id:0,peso_gestionado:0,peso_reutilizacion:0,cantidad_total:0,peso_recibido:0})}function $(w){r.value.splice(w,1)}const U=p0(()=>r.value.every(w=>w.clasificacion_id!==0&&typeof w.cantidad<"u"&&w.cantidad>0&&typeof w.peso_estimado<"u"&&w.peso_estimado>0)),D=p0(()=>r.value.map(w=>({clasificacion:!w.clasificacion_id||w.clasificacion_id===0,cantidad:!w.cantidad||w.cantidad<1,peso:!w.peso_estimado||w.peso_estimado<=0})));async function N(){if(h.value=!0,D.value.some(q=>q.clasificacion||q.cantidad||q.peso)){m.addNotification({message:"Hay campos de residuos con errores. Revise los campos marcados en rojo.",type:"warning",title:"Validación requerida"}),h.value=!1;return}try{const q=await tr.create(l.value);if(q.data){switch(q.status){case 500:m.addNotification({message:q.data.message,type:"danger",title:"Información"});break;case 400:m.addNotification({message:q.data.message,type:"danger",title:"Información"});break;case 201:m.addNotification({message:"Solicitud creada y "+q.data.message,type:"success",title:"Información"});break;default:m.addNotification({message:"Inherente o vacio",type:"info",title:"Información"});break}if(q.data.id){let I=q.data.id;r.value.forEach(S=>{S.solicitud_id=I});const E=await Ct.createPublic(r.value);(E.status=201)?(m.addNotification({message:"Residuos registrados con exito.",type:"success",title:"Información"}),h.value=!1):(m.addNotification({message:E.data.message,type:"danger",title:"Información"}),h.value=!1),L()}}else h.value=!1}catch{h.value=!1,m.addNotification({message:"Error al crear la solicitud, por favor intente nuevamente.",type:"danger",title:"Información"})}}function L(){l.value={codigo:"",contacto_id:0,direccion_id:0,empresa_id:0},f.value={id:void 0},t.value=[],a.value={},v.value={},r.value=[],d.value=[],i.value=1,u.value=void 0,c.value=!1,F.forEach(w=>w.status="upcoming"),F[0].status="complete",F[1].status="current"}return w0(()=>C.showForm,w=>{w===!0&&L()}),(w,q)=>P.showForm?(W(),T("div",pr,[mr,e("nav",_r,[e("ol",gr,[(W(),T(d0,null,f0(F,(I,E)=>e("li",{key:I.name,class:"relative md:flex md:flex-1"},[I.status==="complete"?(W(),T("a",{key:0,href:I.href,class:"group flex w-full items-center"},[e("span",yr,[e("span",Cr,[Y(t0(kt),{class:"h-4 w-4 text-white","aria-hidden":"true"})]),e("span",br,O(I.name),1)])],8,Br)):I.status==="current"?(W(),T("a",{key:1,href:I.href,class:"flex items-center px-6 py-4 text-sm font-medium","aria-current":"step"},[e("span",Ar,[e("span",Fr,O(I.id),1)]),e("span",Dr,O(I.name),1)],8,Er)):(W(),T("a",{key:2,href:I.href,class:"group flex items-center"},[e("span",kr,[e("span",$r,[e("span",Sr,O(I.id),1)]),e("span",Hr,O(I.name),1)])],8,wr)),E!==F.length-1?(W(),T("div",Rr,Pr)):Z("",!0)])),64))])]),e("div",Ir,[e("div",Nr,[i.value===1?(W(),T("div",qr,[Lr,l.value.empresa_id==0?(W(),T("div",Wr,[Tr,e("div",Ur,[e("div",Vr,[e("div",Or,[Y(t0(ye),{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})]),a0(e("input",{type:"nit",name:"nit",id:"nit","onUpdate:modelValue":q[0]||(q[0]=I=>f.value.nit=I),class:"block w-full rounded-none rounded-l-md border-0 py-1.5 pl-10 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 sm:text-sm sm:leading-6",placeholder:"000000000-0",pattern:"^[0-9\\-]+$",onkeydown:"if (!/[0-9\\-]/.test(event.key) && event.key !== 'Backspace' && event.key !== 'Delete' && event.key !== 'ArrowLeft' && event.key !== 'ArrowRight') event.preventDefault();"},null,512),[[i0,f.value.nit]])]),e("button",{type:"button",onClick:q[1]||(q[1]=I=>s()),class:"relative -ml-px inline-flex items-center gap-x-1.5 rounded-r-md px-3 py-2 text-sm font-semibold text-gray-900 ring-1 ring-inset ring-gray-300 hover:bg-gray-50"},[Y(t0($0),{class:"-ml-0.5 h-5 w-5 text-gray-400","aria-hidden":"true"}),J(" Buscar ")])])])):Z("",!0),f.value.id===0?(W(),T("div",Zr,[Kr,Y(or,{onEmpresaId:y,isPublic:!0})])):Z("",!0),f.value.id&&l.value.direccion_id==0?(W(),T("div",Xr,[Mr,e("fieldset",jr,[t.value.length>=1?(W(),T("h2",Gr,[J("Hemos encontrado la siguiente información para "),e("b",null,O(f.value.nombre),1),J(", por favor "),Qr,J(".")])):Z("",!0),e("div",Yr,[t.value.length>0?a0((W(),T("input",{key:0,"onUpdate:modelValue":q[2]||(q[2]=I=>o.value=I),type:"text",placeholder:"Buscar dirección...",class:"block w-full mb-2 rounded-md py-1.5 pl-10 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 sm:text-sm sm:leading-6"},null,512)),[[i0,o.value]]):Z("",!0),e("div",Jr,[(W(!0),T(d0,null,f0(g.value,I=>(W(),T("div",{key:I.id,class:"relative flex items-start px-5 py-2 bg-slate-100 rounded-md"},[e("div",ea,[e("label",{for:`dir-${I.id}`,class:"font-medium text-gray-900"},O(I.tipo!=="principal"?I.observaciones:"Dirección Principal"),9,ta),ra,e("label",{for:`dir-${I.id}`,class:"font-medium text-gray-900"},O(I.ciudad)+", "+O(B(String(I.departamento))),9,aa),e("p",{id:`dir-${I.id}-description`,class:"text-gray-500"},O(I.direccion)+" ("+O(I.barrio)+")",9,oa)]),e("div",sa,[a0(e("input",{value:I.id,id:`dir-${I.id}`,"onUpdate:modelValue":q[3]||(q[3]=E=>l.value.direccion_id=E),"aria-describedby":`dir-${I.id}-description`,name:"direccion",type:"radio",class:"h-4 w-4"},null,8,na),[[gt,l.value.direccion_id]])])]))),128))])]),ia]),Y(sr,{"form-component":ar,icon:t0(hr),title:"Nueva Dirección",formProps:{empresaId:Number(l.value.empresa_id),isPublic:!0,tipoDir:"principal"},onDireccionId:z},null,8,["icon","formProps"])])):Z("",!0)])):Z("",!0),i.value===2?(W(),T("div",xa,[ca,e("div",la,[da,c.value?(W(),T("div",fa,[e("div",ua,[e("div",va,[Y(t0(wt),{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})]),a0(e("input",{type:"mail",name:"mail",id:"mail","onUpdate:modelValue":q[4]||(q[4]=I=>
1v.value.email=I),class:"block w-full rounded-none rounded-l-md border-0 py-1.5 pl-10 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 sm:text-sm sm:leading-6",placeholder:"[email protected]"},null,512),[[i0,v.value.email]])]),e("button",{type:"button",onClick:q[5]||(q[5]=I=>x()),class:"relative -ml-px inline-flex items-center gap-x-1.5 rounded-r-md px-3 py-2 text-sm font-semibold text-gray-900 ring-1 ring-inset ring-gray-300 hover:bg-gray-50"},[Y(t0($0),{class:"-ml-0.5 h-5 w-5 text-gray-400","aria-hidden":"true"}),J(" Buscar ")])])):Z("",!0)]),e("div",ha,[e("div",pa,[c.value?Z("",!0):(W(),T("p",ma,"Para continuar debe aceptar los terminos y condiciones")),e("div",_a,[a0(e("input",{"onUpdate:modelValue":q[6]||(q[6]=I=>c.value=I),id:"comments","aria-describedby":"comments-description",name:"comments",type:"checkbox",class:"h-4 w-4 rounded border-gray-300 text-primary focus:ring-secondary"},null,512),[[_t,c.value]])]),ga])]),u.value==!1?(W(),T("div",Ba,[ya,Y(At,{onContactoId:A,isPublic:!0,empresaId:f.value.id},null,8,["empresaId"])])):Z("",!0)])):Z("",!0),i.value===3?(W(),T("div",Ca,[ba,e("button",{type:"button",onClick:k,class:"bg-primary text-white px-4 py-2 rounded my-2"},"Añadir residuo"),Ea,(W(!0),T(d0,null,f0(r.value,(I,E)=>{var S,R,H,Q,G,e0,K,u0;return W(),T("div",{key:E,class:"grid grid-cols-12 gap-2 text-sm"},[e("div",Aa,[Y(t0(Bt),{id:"residuo",options:b.value,modelValue:I.clasificacion_id,"onUpdate:modelValue":o0=>I.clasificacion_id=o0,placeholder:"Buscar...",isError:(S=D.value[E])==null?void 0:S.clasificacion},null,8,["options","modelValue","onUpdate:modelValue","isError"]),(R=D.value[E])!=null&&R.clasificacion?(W(),T("p",Fa," Debe seleccionar un tipo de residuo. ")):Z("",!0)]),e("div",Da,[a0(e("input",{type:"number","onUpdate:modelValue":o0=>I.cantidad=o0,name:"peso",id:"peso",min:"0",step:"1",class:k0(["block w-full rounded-sm py-2 text-gray-900 placeholder:text-gray-400 sm:text-sm",{"border border-gray-200":!((H=D.value[E])!=null&&H.cantidad),"border-2 border-[#db2828] focus:border-[#db2828] focus:ring-0":(Q=D.value[E])==null?void 0:Q.cantidad}])},null,10,wa),[[i0,I.cantidad,void 0,{number:!0}]]),(G=D.value[E])!=null&&G.cantidad?(W(),T("p",ka," La cantidad debe ser mayor a 0. ")):Z("",!0)]),e("div",$a,[a0(e("input",{type:"number","onUpdate:modelValue":o0=>I.peso_estimado=o0,name:"peso",id:"peso",min:"0",step:"0.01",class:k0(["block w-full rounded-sm py-2 text-gray-900 placeholder:text-gray-400 sm:text-sm",{"border border-gray-200":!((e0=D.value[E])!=null&&e0.peso),"border-2 border-[#db2828] focus:border-[#db2828] focus:ring-0":(K=D.value[E])==null?void 0:K.peso}])},null,10,Sa),[[i0,I.peso_estimado,void 0,{number:!0}]]),(u0=D.value[E])!=null&&u0.peso?(W(),T("p",Ha," El peso debe ser mayor a 0 kg. ")):Z("",!0)]),e("div",Ra,[e("button",{type:"button",onClick:o0=>$(E),class:"mt-2"},[Y(t0(Dt),{class:"w-6 h-6 text-white bg-rose-400 rounded-full mr-1 p-1"})],8,za)])])}),128)),e("div",Pa,[Ia,e("div",Na,[a0(e("textarea",{rows:"4",placeholder:"Ej.: enviar un vehiculo pequeño",name:"comment",id:"comment","onUpdate:modelValue":q[7]||(q[7]=I=>l.value.observa=I),class:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"},null,512),[[i0,l.value.observa]])])])])):Z("",!0)])]),U.value&&r.value.length>=1?(W(),T("button",{key:0,onClick:q[8]||(q[8]=I=>N()),disabled:h.value,class:"bg-secondary text-white px-4 py-2 rounded mt-4"},O(h.value?"Enviando...":"Enviar solicitud"),9,qa)):Z("",!0),l.value.empresa_id!=0?(W(),T("div",La,Ta)):Z("",!0),e("div",Ua,[l.value.direccion_id!=0?(W(),T("dl",Va,[Oa,e("div",Za,[Ka,e("dd",Xa,O(f.value.nombre),1),Ma,e("dd",ja,O(f.value.nit),1)])])):Z("",!0),l.value.contacto_id!=0?(W(),T("dl",Ga,[Qa,e("div",Ya,[Ja,e("dd",eo,O(v.value.nombre),1),to,e("dd",ro,O(v.value.email),1),ao,e("dd",oo,O(v.value.cargo),1),so,e("dd",no,O(v.value.telefono),1)])])):Z("",!0)])])):Z("",!0)}}),xo={key:0,class:"bg-white rounded-md p-3"},co=e("h2",{class:"text-3xl text-primary"},"Solicitud de recolección Contenedor",-1),lo={"aria-label":"Progress",class:"my-2"},fo={role:"list",class:"divide-y divide-gray-300 rounded-md border border-gray-300 md:flex md:divide-y-0"},uo=["href"],vo={class:"flex items-center px-6 py-4 text-sm font-medium"},ho={class:"flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full bg-primary"},po={class:"ml-4 text-xs font-medium text-gray-900"},mo=["href"],_o={class:"flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full border-2 border-primary"},go={class:"text-primary"},Bo={class:"ml-4 text-xs font-medium text-primary"},yo=["href"],Co={class:"flex items-center px-6 py-4 text-sm font-medium"},bo={class:"flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full border-2 border-gray-300"},Eo={class:"text-gray-500 group-hover:text-gray-900"},Ao={class:"ml-4 text-xs font-medium text-gray-500 group-hover:text-gray-900"},Fo={key:3,class:"absolute right-0 top-0 hidden h-full w-5 md:block","aria-hidden":"true"},Do=e("svg",{class:"h-full w-full text-gray-300",viewBox:"0 0 22 80",fill:"none",preserveAspectRatio:"none"},[e("path",{d:"M0 -2L20 40L0 82","vector-effect":"non-scaling-stroke",stroke:"currentcolor","stroke-linejoin":"round"})],-1),wo=[Do],ko={class:"wizard-container mt-2 p-4 bg-slate-200 rounded-md"},$o={class:"step-content"},So={key:0},Ho=e("h2",{class:"text-lg font-semibold"},"Paso 1: Datos de la empresa",-1),Ro={key:0,class:"max-w-sm"},zo=e("label",{class:"block text-sm font-medium leading-6 text-gray-900"}," Por favor, a continuación ingrese el NIT con dígito de verificación del cuidador del contenedor: ",-1),Po={class:"mt-2 flex rounded-md shadow-sm"},Io={class:"relative flex flex-grow items-stretch focus-within:z-10"},No={class:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"},qo={key:1},Lo=e("p",{class:"mt-3 text-sm text-gray-600"},"No se encontraron contenedores anexos al Nit ingresado ó tiene una solicitud activa",-1),Wo=[Lo],To={key:2,class:"max-w-full mt-3"},Uo=e("h3",{class:"text-md font-semibold"},"Seleccionar el contenedor",-1),Vo={class:"mt-2 w-full"},Oo={class:"my-2 w-full"},Zo={class:"grid grid-cols-1 sm:grid-cols-2 gap-4"},Ko={class:"min-w-0 flex-1 text-sm leading-6"},Xo={class:"font-bold"},Mo={class:"text-gray-500"},jo=["for"],Go=["id"],Qo={class:"ml-3 flex h-6 items-center"},Yo=["value","id","aria-describedby"],Jo={key:1},es=e("h2",{class:"text-lg font-semibold"},"Paso 2: Datos del solicitante",-1),ts={class:"max-w-sm"},rs=e("label",{for:"email",class:"block text-sm font-medium leading-6 text-gray-900"},"Por favor, a continuación ingrese el correo electrónico:",-1),as={key:0,class:"mt-2 flex rounded-md shadow-sm"},os={class:"relative flex flex-grow items-stretch focus-within:z-10"},ss={class:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"},ns={class:"mt-2"},is={class:"relative flex items-start"},xs={key:0,class:"font-bold"},cs={class:"flex h-6 items-center"},ls=e("div",{class:"ml-3 text-sm leading-6"},[e("label",{for:"comments",class:"font-medium text-gray-900"},"He leído, comprendo y acepto la "),e("p",{id:"comments-description",class:"text-gray-500"},[e("a",{class:"text-primary",href:"https://ecocomputo.com/download/politica-de-tratamiento-de-datos/?wpdmdl=2488&refresh=6628c9facb50a1713949178"},"política de privacidad y tratamiento de datos al igual que los términos y condiciones del servicio.")])],-1),ds={key:0},fs=e("p",{class:"mt-1 mb-2 text-sm text-gray-600"},"Aun no tenemos datos de contacto, por favor agrege el nuevo contacto:",-1),us={key:2},vs=e("h2",{class:"text-lg font-semibold"},"Paso 3: Agregar residuos",-1),hs=Be('<div class="grid grid-cols-12 gap-2 text-sm"><div class="col-span-6"><label for="tipo" class="block text-sm font-medium leading-6 text-gray-500">Residuo</label></div><div class="col-span-2"><label for="cantidad" class="block text-sm font-medium leading-6 text-gray-500">Cantidad</label></div><div class="col-span-3"><label for="peso" class="block text-sm font-medium leading-6 text-gray-500">Peso (Kg.)</label></div><div class="col-span-1"></div></div>',1),ps={class:"col-span-6"},ms={key:0,class:"mt-1 text-xs text-[#db2828]"},_s={class:"col-span-2"},gs=["onUpdate:modelValue"],Bs={key:0,class:"mt-1 text-xs text-[#db2828]"},ys={class:"col-span-3"},Cs=["onUpdate:modelValue"],bs={key:0,class:"mt-1 text-xs text-[#db2828]"},Es={class:"col-span-1"},As=["onClick"],Fs={class:"mt-5"},Ds=e("label",{class:"block text-sm font-medium leading-6 text-gray-900"},"Detalles Adicionales (Opcional)",-1),ws={class:"basis-full"},ks=["disabled"],$s={key:1,class:"mt-2 px-4 sm:px-0"},Ss=e("p",{class:"mt-1 text-sm leading-6 text-gray-500 bg-gray-100 text-center"}
1,"DATOS DE LA SOLICITUD",-1),Hs=[Ss],Rs={class:"border-t border-gray-100"},zs={key:0,class:"divide-y divide-gray-100"},Ps=e("p",{class:"mt-1 text-sm leading-6 text-gray-500 bg-gray-100"},"Información de la empresa",-1),Is={class:"px-4 py-0 sm:grid sm:grid-cols-3 sm:gap-1 sm:px-0"},Ns=e("dt",{class:"text-sm font-medium leading-6 text-gray-900"},"Empresa",-1),qs={class:"mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0"},Ls=e("dt",{class:"text-sm font-medium leading-6 text-gray-900"},"NIT",-1),Ws={class:"mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0"},Ts=e("dt",{class:"text-sm font-medium leading-6 text-gray-900"},"Dirección",-1),Us={class:"mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0"},Vs=e("br",null,null,-1),Os={key:1,class:"divide-y divide-gray-100"},Zs=e("p",{class:"mt-1 text-sm leading-6 text-gray-500 bg-gray-100"},"Información de contacto",-1),Ks={class:"px-4 py-0 sm:grid sm:grid-cols-3 sm:gap-1 sm:px-0"},Xs=e("dt",{class:"text-sm font-medium leading-6 text-gray-900"},"Nombre",-1),Ms={class:"mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0"},js=e("dt",{class:"text-sm font-medium leading-6 text-gray-900"},"Correo electrónico",-1),Gs={class:"mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0"},Qs=e("dt",{class:"text-sm font-medium leading-6 text-gray-900"},"Cargo",-1),Ys={class:"mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0"},Js=e("dt",{class:"text-sm font-medium leading-6 text-gray-900"},"Teléfono",-1),en={class:"mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0"},tn=S0({__name:"SolicitudContenedorForm",props:{showForm:Boolean},setup(P){const V=P;function h(D){const N=Ft.find(L=>L.id===D);return N?N.valor:D}const o=M(!1),C=M(""),B=P0(),F=[{id:"01",name:"Datos empresa",href:"#",status:"complete"},{id:"02",name:"Datos contacto",href:"#",status:"current"},{id:"03",name:"Agregar residuos",href:"#",status:"upcoming"}],l=M({contenedor_id:0,contactoEmpresa_id:0,gestor_id:0,centroAcopio_id:0}),f=M({id:void 0}),t=M({}),a=M({}),v=M([]),r=M([]),d=M([]),i=M(1),u=M(),c=M(!1),m=M(!1),n=()=>{i.value<F.length&&(F[i.value].status="complete",i.value++)};w0(()=>l.value.contenedor_id,()=>{l.value.contenedor_id>=1&&n()},{immediate:!0});const s=p0(()=>v.value.every(D=>D.clasificacion_id!==0&&typeof D.cantidad<"u"&&D.cantidad>0&&typeof D.peso_estimado<"u"&&D.peso_estimado>0)),x=p0(()=>v.value.map(D=>({clasificacion:!D.clasificacion_id||D.clasificacion_id===0,cantidad:!D.cantidad||D.cantidad<1,peso:!D.peso_estimado||D.peso_estimado<=0}))),_=async()=>{try{if(f.value.nit){const D=await nr.listByNit(f.value.nit,1);D.data&&D.data.length>0?(r.value=D.data,a.value.empresa_id=Number(D.data[0].cuidador_id),f.value.id=Number(D.data[0].cuidador_id),f.value.nombre=D.data[0].cuidador_nombre):(c.value=!0,f.value.id=0,r.value=[])}else{B.addNotification({message:"Ingrese un Nit  con dígito de verificación para poder buscar",type:"info",title:"Información"});return}}catch(D){console.error("Error al buscar empresa por NIT: ",D),f.value.id=0,c.value=!0}},g=p0(()=>r.value.filter(D=>{var L,w,q;const N=C.value.toLowerCase();return(((L=D.contenedor_direccion)==null?void 0:L.toLowerCase())??"").includes(N)||(((w=D.nombre)==null?void 0:w.toLowerCase())??"").includes(N)||(((q=D.contenedor_ciudad)==null?void 0:q.toLowerCase())??"").includes(N)})),y=async()=>{try{if(l.value.contactoEmpresa_id=0,a.value.email){const D=await yt.getByEmail(a.value);D.data&&D.data.length>0?(a.value=D.data[0],l.value.contactoEmpresa_id=Number(a.value.id),l.value.contactoEmpresa_id!=0&&(n(),z()),u.value=!0):(u.value=!1,console.log(D.data.message))}else{B.addNotification({message:"Ingrese un Correo para poder buscar",type:"info",title:"Información"});return}}catch{u.value=!1}};async function A(D){a.value.id=D,l.value.contactoEmpresa_id=D,z(),n()}const z=async()=>{try{const D=await Et.list();D.data&&D.data.length>0?d.value=D.data:console.log(D.data.message)}catch(D){console.log(D)}},p=p0(()=>d.value.map(D=>({value:D.id,text:D.dispositivo})));function b(){v.value.push({clasificacion_id:0,peso_estimado:0,cantidad:0,solicitud_tipo:"B2C",gestor_id:0,peso_gestionado:0,peso_reutilizacion:0,cantidad_total:0,peso_recibido:0})}function k(D){v.value.splice(D,1)}async function $(){if(o.value=!0,x.value.some(N=>N.clasificacion||N.cantidad||N.peso)){B.addNotification({message:"Hay campos de residuos con errores. Revise los campos marcados en rojo.",type:"warning",title:"Validación requerida"}),o.value=!1;return}try{const N=await rr.create(l.value);if(N.data){switch(N.status){case 500:B.addNotification({message:N.data.message,type:"danger",title:"Información"});break;case 400:B.addNotification({message:N.data.message,type:"danger",title:"Información"});break;case 201:B.addNotification({message:"Solicitud creada y "+N.data.message,type:"success",title:"Información"});break;default:B.addNotification({message:"Inherente o vacio",type:"info",title:"Información"});break}if(N.data.id){let L=N.data.id;v.value.forEach(q=>{q.solicitud_id=L});const w=await Ct.createPublic(v.value);(w.status=201)?(B.addNotification({message:"Residuos registrados con exito.",type:"success",title:"Información"}),o.value=!1):(B.addNotification({message:w.data.message,type:"danger",title:"Información"}),o.value=!1),U()}}else o.value=!1,console.log(N.data.message)}catch{o.value=!1,B.addNotification({message:"Error al crear la solicitud, por favor intente nuevamente.",type:"danger",title:"Información"})}}function U(){l.value={contenedor_id:0,contactoEmpresa_id:0,gestor_id:0,centroAcopio_id:0},f.value={id:void 0},t.value={},a.value={},v.value=[],d.value=[],r.value=[],i.value=1,u.value=void 0,m.value=!1,c.value=!1,F.forEach((D,N)=>{D.status=N===0?"complete":N===1?"current":"upcoming"})}return w0(()=>
1V.showForm,D=>{D===!0&&U()}),(D,N)=>P.showForm?(W(),T("div",xo,[co,e("nav",lo,[e("ol",fo,[(W(),T(d0,null,f0(F,(L,w)=>e("li",{key:L.name,class:"relative md:flex md:flex-1"},[L.status==="complete"?(W(),T("a",{key:0,href:L.href,class:"group flex w-full items-center"},[e("span",vo,[e("span",ho,[Y(t0(kt),{class:"h-4 w-4 text-white","aria-hidden":"true"})]),e("span",po,O(L.name),1)])],8,uo)):L.status==="current"?(W(),T("a",{key:1,href:L.href,class:"flex items-center px-6 py-4 text-sm font-medium","aria-current":"step"},[e("span",_o,[e("span",go,O(L.id),1)]),e("span",Bo,O(L.name),1)],8,mo)):(W(),T("a",{key:2,href:L.href,class:"group flex items-center"},[e("span",Co,[e("span",bo,[e("span",Eo,O(L.id),1)]),e("span",Ao,O(L.name),1)])],8,yo)),w!==F.length-1?(W(),T("div",Fo,wo)):Z("",!0)])),64))])]),e("div",ko,[e("div",$o,[i.value===1?(W(),T("div",So,[Ho,l.value.contenedor_id==0?(W(),T("div",Ro,[zo,e("div",Po,[e("div",Io,[e("div",No,[Y(t0(ye),{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})]),a0(e("input",{type:"nit",name:"nit",id:"nit","onUpdate:modelValue":N[0]||(N[0]=L=>f.value.nit=L),class:"block w-full rounded-none rounded-l-md border-0 py-1.5 pl-10 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 sm:text-sm sm:leading-6",placeholder:"000000000-0",pattern:"^[0-9\\-]+$",onkeydown:"if (!/[0-9\\-]/.test(event.key) && event.key !== 'Backspace' && event.key !== 'Delete' && event.key !== 'ArrowLeft' && event.key !== 'ArrowRight') event.preventDefault();"},null,512),[[i0,f.value.nit]])]),e("button",{type:"button",onClick:N[1]||(N[1]=L=>_()),class:"relative -ml-px inline-flex items-center gap-x-1.5 rounded-r-md px-3 py-2 text-sm font-semibold text-gray-900 ring-1 ring-inset ring-gray-300 hover:bg-gray-50"},[Y(t0($0),{class:"-ml-0.5 h-5 w-5 text-gray-400","aria-hidden":"true"}),J(" Buscar ")])])])):Z("",!0),f.value.id===0?(W(),T("div",qo,Wo)):Z("",!0),r.value.length>=1&&f.value.id!=0?(W(),T("div",To,[Uo,e("fieldset",Vo,[e("div",Oo,[r.value.length>0?a0((W(),T("input",{key:0,"onUpdate:modelValue":N[2]||(N[2]=L=>C.value=L),type:"text",placeholder:"Buscar dirección...",class:"block w-full mb-2 rounded-md py-1.5 pl-10 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 sm:text-sm sm:leading-6"},null,512)),[[i0,C.value]]):Z("",!0),e("div",Zo,[(W(!0),T(d0,null,f0(g.value,L=>(W(),T("div",{key:L.id,class:"relative flex items-start px-5 py-2 bg-slate-100 rounded-md"},[e("div",Ko,[e("p",Xo,O(L.nombre),1),e("p",Mo,O(L.cuidador_nombre),1),e("label",{for:`dir-${L.direccion_id}`,class:"font-medium text-gray-900"},O(L.contenedor_direccion),9,jo),e("p",{id:`dir-${L.id}-description`,class:"text-gray-500"},O(L.contenedor_ciudad)+", "+O(h(String(L.contenedor_departamento))),9,Go)]),e("div",Qo,[a0(e("input",{value:L.id,id:`dir-${L.direccion_id}`,"onUpdate:modelValue":N[3]||(N[3]=w=>l.value.contenedor_id=w),"aria-describedby":`dir-${L.direccion_id}-description`,name:"direccion",type:"radio",class:"h-4 w-4"},null,8,Yo),[[gt,l.value.contenedor_id]])])]))),128))])])])])):Z("",!0)])):Z("",!0),i.value===2?(W(),T("div",Jo,[es,e("div",ts,[rs,m.value?(W(),T("div",as,[e("div",os,[e("div",ss,[Y(t0(wt),{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})]),a0(e("input",{type:"mail",name:"mail",id:"mail","onUpdate:modelValue":N[4]||(N[4]=L=>a.value.email=L),class:"block w-full rounded-none rounded-l-md border-0 py-1.5 pl-10 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 sm:text-sm sm:leading-6",placeholder:"[email protected]"},null,512),[[i0,a.value.email]])]),e("button",{type:"button",onClick:N[5]||(N[5]=L=>y()),class:"relative -ml-px inline-flex items-center gap-x-1.5 rounded-r-md px-3 py-2 text-sm font-semibold text-gray-900 ring-1 ring-inset ring-gray-300 hover:bg-gray-50"},[Y(t0($0),{class:"-ml-0.5 h-5 w-5 text-gray-400","aria-hidden":"true"}),J(" Buscar ")])])):Z("",!0)]),e("div",ns,[e("div",is,[m.value?Z("",!0):(W(),T("p",xs,"Para continuar debe aceptar los terminos y condiciones")),e("div",cs,[a0(e("input",{"onUpdate:modelValue":N[6]||(N[6]=L=>
1m.value=L),id:"comments","aria-describedby":"comments-description",name:"comments",type:"checkbox",class:"h-4 w-4 rounded border-gray-300 text-primary focus:ring-secondary"},null,512),[[_t,m.value]])]),ls])]),u.value==!1?(W(),T("div",ds,[fs,Y(At,{onContactoId:A,isPublic:!0,empresaId:f.value.id},null,8,["empresaId"])])):Z("",!0)])):Z("",!0),i.value===3?(W(),T("div",us,[vs,e("button",{type:"button",onClick:b,class:"bg-primary text-white px-4 py-2 rounded my-2"},"Añadir residuo"),hs,(W(!0),T(d0,null,f0(v.value,(L,w)=>{var q,I,E,S,R,H,Q,G;return W(),T("div",{key:w,class:"grid grid-cols-12 gap-2 text-sm"},[e("div",ps,[Y(t0(Bt),{id:"residuo",options:p.value,modelValue:L.clasificacion_id,"onUpdate:modelValue":e0=>L.clasificacion_id=e0,placeholder:"Buscar...",isError:(q=x.value[w])==null?void 0:q.clasificacion},null,8,["options","modelValue","onUpdate:modelValue","isError"]),(I=x.value[w])!=null&&I.clasificacion?(W(),T("p",ms," Debe seleccionar un tipo de residuo. ")):Z("",!0)]),e("div",_s,[a0(e("input",{type:"number","onUpdate:modelValue":e0=>L.cantidad=e0,min:"0",name:"cantidad",id:"cantidad",class:k0(["block w-full rounded-sm py-2 text-gray-900 placeholder:text-gray-400 sm:text-sm border outline-none",{"border-gray-200":!((E=x.value[w])!=null&&E.cantidad),"border-2 border-[#db2828] focus:border-[#db2828] focus:ring-0":(S=x.value[w])==null?void 0:S.cantidad}])},null,10,gs),[[i0,L.cantidad,void 0,{number:!0}]]),(R=x.value[w])!=null&&R.cantidad?(W(),T("p",Bs," La cantidad debe ser mayor a 0. ")):Z("",!0)]),e("div",ys,[a0(e("input",{type:"number",min:"0",step:"0","onUpdate:modelValue":e0=>L.peso_estimado=e0,name:"peso",id:"peso",class:k0(["block w-full rounded-sm py-2 text-gray-900 placeholder:text-gray-400 sm:text-sm border outline-none",{"border-gray-200":!((H=x.value[w])!=null&&H.peso),"border-2 border-[#db2828] focus:border-[#db2828] focus:ring-0":(Q=x.value[w])==null?void 0:Q.peso}])},null,10,Cs),[[i0,L.peso_estimado,void 0,{number:!0}]]),(G=x.value[w])!=null&&G.peso?(W(),T("p",bs," El peso debe ser mayor a 0 kg. ")):Z("",!0)]),e("div",Es,[e("button",{type:"button",onClick:e0=>k(w),class:"mt-2"},[Y(t0(Dt),{class:"w-6 h-6 text-white bg-rose-400 rounded-full mr-1 p-1"})],8,As)])])}),128)),e("div",Fs,[Ds,e("div",ws,[a0(e("textarea",{rows:"4",placeholder:"Ej.: enviar un vehiculo pequeño",name:"comment",id:"comment","onUpdate:modelValue":N[7]||(N[7]=L=>l.value.observa=L),class:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"},null,512),[[i0,l.value.observa]])])])])):Z("",!0)])]),s.value&&v.value.length>=1?(W(),T("button",{key:0,onClick:N[8]||(N[8]=L=>$()),disabled:o.value,class:"bg-secondary text-white px-4 py-2 rounded mt-4"},O(o.value?"Enviando...":"Enviar solicitud"),9,ks)):Z("",!0),l.value.contenedor_id!=0?(W(),T("div",$s,Hs)):Z("",!0),e("div",Rs,[l.value.contenedor_id!=0?(W(),T("dl",zs,[Ps,e("div",Is,[Ns,e("dd",qs,O(f.value.nombre),1),Ls,e("dd",Ws,O(f.value.nit),1),Ts,e("dd",Us,[J(O(t.value.direccion),1),Vs,J(" "+O(t.value.departamento)+", "+O(t.value.departamento),1)])])])):Z("",!0),l.value.contactoEmpresa_id!=0?(W(),T("dl",Os,[Zs,e("div",Ks,[Xs,e("dd",Ms,O(a.value.nombre),1),js,e("dd",Gs,O(a.value.email),1),Qs,e("dd",Ys,O(a.value.cargo),1),Js,e("dd",en,O(a.value.telefono),1)])])):Z("",!0)])])):Z("",!0)}}),rn={key:0,class:"bg-white rounded-md p-3"},an=e("h2",{class:"text-3xl text-primary"},"Descargar Certificados",-1),on=e("p",{class:"mt-3 text-sm text-gray-600"},"Ingrese el NIT con dígito de verificación de la empresa para ver el listado de certificados disponibles para su descarga:",-1),sn={class:"mt-2 flex rounded-md shadow-sm"},nn={class:"relative flex flex-grow items-stretch focus-within:z-10"},xn={class:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"},cn={key:0},ln={key:0,class:"mt-3 text-sm text-gray-600"},dn={key:1,class:"mt-3"},fn={class:"min-w-full divide-y divide-gray-200"},un=e("thead",{class:"bg-gray-50"},[e("tr",null,[e("th",{scope:"col",class:"px-3 py-2 text-left text-xs font-bold text-gray-500 uppercase tracking-wider"},"Certificado"),e("th",{scope:"col",class:"px-3 py-2 text-left text-xs font-bold text-gray-500 uppercase tracking-wider"},"Fecha Expedicion"),e("th",{scope:"col",class:"px-3 py-2 text-left text-xs font-bold text-gray-500 uppercase tracking-wider"},"Solicitante"),e("th",{scope:"col",class:"px-3 py-2 text-left text-xs font-bold text-gray-500 uppercase tracking-wider"},"Gestor"),e("th",{scope:"col",class:"px-3 py-2 text-left text-xs font-bold text-gray-500 uppercase tracking-wider"},"Descarga")])],-1),vn={class:"bg-white divide-y divide-gray-200"},hn={class:"px-3 py-2 whitespace-nowrap text-xs text-gray-500"},pn={class:"px-3 py-2 whitespace-nowrap text-xs text-gray-500"},mn={class:"px-3 py-2 whitespace-nowrap text-xs text-gray-500"},_n={class:"px-3 py-2 whitespace-nowrap text-xs text-gray-500"},gn={class:"px-3 py-2 whitespace-nowrap text-center text-sm font-medium"},Bn=["href","download"],yn=S0({__name:"ListCertificados",props:{showForm:Boolean},setup(P){const V=P,h=M([]),o=M(""),C=M(!1),B="https://api.ecocomputo.com/",F=async()=>{const l=P0();if(o.value.length<=7){l.addNotification({message:"Ingrese un NIT con dígito de verificación para poder buscar",type:"info",title:"Información"});return}try{h.value=[],C.value=!1,await bt.getCertificadoDescarga(o.value).then(f=>{f.status===200&&(h.value=f.data,C.value=!0)})}catch(f){f.response.status==404?l.addNotification({message:f.response.data.message,type:"info",title:"Información"}):l.addNotification({message:"Error al intentar consultar los certificados, intene mas tarde.",type:"danger",title:"Información"})}};return w0(()=>
1V.showForm,l=>{l||(o.value="",h.value=[],C.value=!1)}),(l,f)=>P.showForm?(W(),T("div",rn,[an,on,e("div",sn,[e("div",nn,[e("div",xn,[Y(t0(ye),{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})]),a0(e("input",{type:"text",name:"nitEmpresa",id:"nitEmpresa","onUpdate:modelValue":f[0]||(f[0]=t=>o.value=t),class:"block w-full rounded-none rounded-l-md border-0 py-1.5 pl-10 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 sm:text-sm sm:leading-6",placeholder:"Ingrese el NIT con dígito de verificación de la empresa",pattern:"^[0-9\\-]+$",onkeydown:"if (!/[0-9\\-]/.test(event.key) && event.key !== 'Backspace' && event.key !== 'Delete' && event.key !== 'ArrowLeft' && event.key !== 'ArrowRight') event.preventDefault();"},null,512),[[i0,o.value]])]),e("button",{type:"button",onClick:f[1]||(f[1]=t=>F()),class:"relative -ml-px inline-flex items-center gap-x-1.5 rounded-r-md px-3 py-2 text-sm font-semibold text-gray-900 ring-1 ring-inset ring-gray-300 hover:bg-gray-50"},[Y(t0($0),{class:"-ml-0.5 h-5 w-5 text-gray-400","aria-hidden":"true"}),J(" Buscar ")])]),C.value?(W(),T("div",cn,[h.value.length===0?(W(),T("div",ln,"No hay certificados asociados a esta empresa.")):Z("",!0),h.value.length>0?(W(),T("div",dn,[e("table",fn,[un,e("tbody",vn,[(W(!0),T(d0,null,f0(h.value,(t,a)=>{var v;return W(),T("tr",{key:a},[e("td",hn,O((v=t.pdf)==null?void 0:v.split("/").pop()),1),e("td",pn,O(t.createdAt),1),e("td",mn,O(t.nombre_solicitante),
vendor: 7,489 bytes, line 1
11),e("td",_n,O(t.nombre_gestor),1),e("td",gn,[e("a",{href:`${t0(B)}uploads/${t.pdf}?v=${new Date().getTime()}`,download:`${t.pdf}`,target:"_blank",class:"bg-emerald-600 hover:bg-emerald-900 text-white font-bold py-2 px-4 rounded-xl"},"Descargar",8,Bn)])])}),128))])])])):Z("",!0)])):Z("",!0)])):Z("",!0)}});var $t={exports:{}},L0={exports:{}};const Cn={},bn=Object.freeze(Object.defineProperty({__proto__:null,default:Cn},Symbol.toStringTag,{value:"Module"})),En=Mt(bn);var Ie;function j(){return Ie||(Ie=1,function(P,V){(function(h,o){P.exports=o()})(X,function(){var h=h||function(o,C){var B;if(typeof window<"u"&&window.crypto&&(B=window.crypto),typeof self<"u"&&self.crypto&&(B=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(B=globalThis.crypto),!B&&typeof window<"u"&&window.msCrypto&&(B=window.msCrypto),!B&&typeof X<"u"&&X.crypto&&(B=X.crypto),!B&&typeof ir=="function")try{B=En}catch{}var F=function(){if(B){if(typeof B.getRandomValues=="function")try{return B.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof B.randomBytes=="function")try{return B.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||function(){function n(){}return function(s){var x;return n.prototype=s,x=new n,n.prototype=null,x}}(),f={},t=f.lib={},a=t.Base=function(){return{extend:function(n){var s=l(this);return n&&s.mixIn(n),(!s.hasOwnProperty("init")||this.init===s.init)&&(s.init=function(){s.$super.init.apply(this,arguments)}),s.init.prototype=s,s.$super=this,s},create:function(){var n=this.extend();return n.init.apply(n,arguments),n},init:function(){},mixIn:function(n){for(var s in n)n.hasOwnProperty(s)&&(this[s]=n[s]);n.hasOwnProperty("toString")&&(this.toString=n.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),v=t.WordArray=a.extend({init:function(n,s){n=this.words=n||[],s!=C?this.sigBytes=s:this.sigBytes=n.length*4},toString:function(n){return(n||d).stringify(this)},concat:function(n){var s=this.words,x=n.words,_=this.sigBytes,g=n.sigBytes;if(this.clamp(),_%4)for(var y=0;y<g;y++){var A=x[y>>>2]>>>24-y%4*8&255;s[_+y>>>2]|=A<<24-(_+y)%4*8}else for(var z=0;z<g;z+=4)s[_+z>>>2]=x[z>>>2];return this.sigBytes+=g,this},clamp:function(){var n=this.words,s=this.sigBytes;n[s>>>2]&=4294967295<<32-s%4*8,n.length=o.ceil(s/4)},clone:function(){var n=a.clone.call(this);return n.words=this.words.slice(0),n},random:function(n){for(var s=[],x=0;x<n;x+=4)s.push(F());return new v.init(s,n)}}),r=f.enc={},d=r.Hex={stringify:function(n){for(var s=n.words,x=n.sigBytes,_=[],g=0;g<x;g++){var y=s[g>>>2]>>>24-g%4*8&255;_.push((y>>>4).toString(16)),_.push((y&15).toString(16))}return _.join("")},parse:function(n){for(var s=n.length,x=[],_=0;_<s;_+=2)x[_>>>3]|=parseInt(n.substr(_,2),16)<<24-_%8*4;return new v.init(x,s/2)}},i=r.Latin1={stringify:function(n){for(var s=n.words,x=n.sigBytes,_=[],g=0;g<x;g++){var y=s[g>>>2]>>>24-g%4*8&255;_.push(String.fromCharCode(y))}return _.join("")},parse:function(n){for(var s=n.length,x=[],_=0;_<s;_++)x[_>>>2]|=(n.charCodeAt(_)&255)<<24-_%4*8;return new v.init(x,s)}},u=r.Utf8={stringify:function(n){try{return decodeURIComponent(escape(i.stringify(n)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(n){return i.parse(unescape(encodeURIComponent(n)))}},c=t.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new v.init,this._nDataBytes=0},_append:function(n){typeof n=="string"&&(n=u.parse(n)),this._data.concat(n),this._nDataBytes+=n.sigBytes},_process:function(n){var s,x=this._data,_=x.words,g=x.sigBytes,y=this.blockSize,A=y*4,z=g/A;n?z=o.ceil(z):z=o.max((z|0)-this._minBufferSize,0);var p=z*y,b=o.min(p*4,g);if(p){for(var k=0;k<p;k+=y)this._doProcessBlock(_,k);s=_.splice(0,p),x.sigBytes-=b}return new v.init(s,b)},clone:function(){var n=a.clone.call(this);return n._data=this._data.clone(),n},_minBufferSize:0});t.Hasher=c.extend({cfg:a.extend(),init:function(n){this.cfg=this.cfg.extend(n),this.reset()},reset:function(){c.reset.call(this),this._doReset()},update:function(n){return this._append(n),this._process(),this},finalize:function(n){n&&this._append(n);var s=this._doFinalize();return s},blockSize:16,_createHelper:function(n){return function(s,x){return new n.init(x).finalize(s)}},_createHmacHelper:function(n){return function(s,x){return new m.HMAC.init(n,x).finalize(s)}}});var m=f.algo={};return f}(Math);return h})}(L0)),L0.exports}var W0={exports:{}},Ne;function I0(){return Ne||(Ne=1,function(P,V){(function(h,o){P.exports=o(j())})(X,function(h){return function(o){var C=h,B=C.lib,F=B.Base,l=B.WordArray,f=C.x64={};f.Word=F.extend({init:function(t,a){this.high=t,this.low=a}}),f.WordArray=F.extend({init:function(t,a){t=this.words=t||[],a!=o?this.sigBytes=a:this.sigBytes=t.length*8},toX32:function(){for(var t=this.words,a=t.length,v=[],r=0;r<a;r++){var d=t[r];v.push(d.high),v.push(d.low)}return l.create(v,this.sigBytes)},clone:function(){for(var t=F.clone.call(this),a=t.words=this.words.slice(0),v=a.length,r=0;r<v;r++)a[r]=a[r].clone();return t}})}(),h})}(W0)),W0.exports}var T0={exports:{}},qe;function An(){return qe||(qe=1,function(P,V){(function(h,o){P.exports=o(j())})(X,function(h){return function(){if(typeof ArrayBuffer=="function"){var o=h,C=o.lib,B=C.WordArray,F=B.init,l=B.init=function(f){if(f instanceof ArrayBuffer&&(f=new Uint8Array(f)),(f instanceof Int8Array||typeof Uint8ClampedArray<"u"&&f instanceof Uint8ClampedArray||f instanceof Int16Array||f instanceof Uint16Array||f instanceof Int32Array||f instanceof Uint32Array||f instanceof Float32Array||f instanceof Float64Array)&&(f=new Uint8Array(f.buffer,f.byteOffset,f.byteLength)),f instanceof Uint8Array){for(var t=f.byteLength,a=[],v=0;v<t;v++)a[v>>>2]|=f[v]<<24-v%4*8;F.call(this,a,t)}else F.apply(this,arguments)};l.prototype=B}}(),h.lib.WordArray})}(T0)),T0.exports}var U0={exports:{}},Le;function Fn(){return Le||(Le=1,function(P,V){(function(h,o){P.exports=o(j())})(X,function(h){return function(){var o=h,C=o.lib,B=C.WordArray,F=o.enc;F.Utf16=F.Utf16BE={stringify:function(f){for(var t=f.words,a=f.sigBytes,v=[],r=0;r<a;r+=2){var d=t[r>>>2]>>>16-r%4*8&65535;v.push(String.fromCharCode(d))}return v.join("")},parse:function(f){for(var t=f.length,a=[],v=0;v<t;v++)a[v>>>1]|=f.charCodeAt(v)<<16-v%2*16;return B.create(a,t*2)}},F.Utf16LE={stringify:function(f){for(var t=f.words,a=f.sigBytes,v=[],r=0;r<a;r+=2){var d=l(t[r>>>2]>>>16-r%4*8&65535);v.push(String.fromCharCode(d))}return v.join("")},parse:function(f){for(var t=f.length,a=[],v=0;v<t;v++)a[v>>>1]|=l(f.charCodeAt(v)<<16-v%2*16);return B.create(a,t*2)}};function l(f){return f<<8&4278255360|f>>>8&16711935}}(),h.enc.Utf16})}(U0)),U0.exports}var V0={exports:{}},We;function _0(){return We||(We=1,function(P,V){(function(h,o){P.exports=o(j())})(X,function(h){return function(){var o=h,C=o.lib,B=C.WordArray,F=o.enc;F.Base64={stringify:function(f){var t=f.words,a=f.sigBytes,v=this._map;f.clamp();for(var r=[],d=0;d<a;d+=3)for(var i=t[d>>>2]>>>24-d%4*8&255,u=t[d+1>>>2]>>>24-(d+1)%4*8&255,c=t[d+2>>>2]>>>24-(d+2)%4*8&255,m=i<<16|u<<8|c,n=0;n<4&&d+n*.75<a;n++)r.push(v.charAt(m>>>6*(3-n)&63));var s=v.charAt(64);if(s)for(;r.length%4;)r.push(s);return r.join("")},parse:function(f){var t=f.length,a=this._map,v=this._reverseMap;if(!v){v=this._reverseMap=[];for(var r=0;r<a.length;r++)v[a.charCodeAt(r)]=r}var d=a.charAt(64);if(d){var i=f.indexOf(d);i!==-1&&(t=i)}return l(f,t,v)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/="};function l(f,t,a){for(var v=[],r=0,d=0;d<t;d++)if(d%4){var i=a[f.charCodeAt(d-1)]<<d%4*2,u=a[f.charCodeAt(d)]>>>6-d%4*2,c=i|u;v[r>>>2]|=c<<24-r%4*8,r++}return B.create(v,r)}}(),h.enc.Base64})}(V0)),V0.exports}var O0={exports:{}},Te;function Dn(){return Te||(Te=1,function(P,V){(function(h,o){P.exports=o(j())})(X,function(h){return function(){var o=h,C=o.lib,B=C.WordArray,F=o.enc;F.Base64url={stringify:function(f,t){t===void 0&&(t=!0);var a=f.words,v=f.sigBytes,r=t?this._safe_map:this._map;f.clamp();for(var d=[],i=0;i<v;i+=3)for(var u=a[i>>>2]>>>24-i%4*8&255,c=a[i+1>>>2]>>>24-(i+1)%4*8&255,m=a[i+2>>>2]>>>24-(i+2)%4*8&255,n=u<<16|c<<8|m,s=0;s<4&&i+s*.75<v;s++)d.push(r.charAt(n>>>6*(3-s)&63));var x=r.charAt(64);if(x)for(;d.length%4;)d.push(x);return d.join("")},parse:function(f,t){t===void 0&&(t=!0);var a=f.length,v=t?this._safe_map:this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var d=0;d<v.length;d++)r[v.charCodeAt(d)]=d}var i=v.charAt(64);if(i){var u=f.indexOf(i);u!==-1&&(a=u)}return l(f,a,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(f,t,a){for(var v=[],r=0,d=0;d<t;d++)if(d%4){var i=a[f.charCodeAt(d-1)]<<d%4*2,u=a[f.charCodeAt(d)]>>>6-d%4*2,c=i|u;v[r>>>2]|=c<<24-r%4*8,r++}return B.create(v,r)}}(),h.enc.Base64url})}(O0)),O0.exports}var Z0={exports:{}},Ue;function g0(){return Ue||(Ue=1,function(P,V){(function(h,o){P.exports=o(j())})(X,function(h){return function(o){var C=h,B=C.lib,F=B.WordArray,l=B.Hasher,f=C.algo,t=[];(function(){for(var u=0;u<64;u++)t[u]=o.abs(o.sin(u+1))*4294967296|0})();var a=f.MD5=l.extend({_doReset:function(){this._hash=new F.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(u,c){for(var m=0;m<16;m++){var n=c+m,s=u[n];u[n]=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360}var x=this._hash.words,_=u[c+0],g=u[c+1],y=u[c+2],A=u[c+3],z=u[c+4],p=u[c+5],b=u[c+6],k=u[c+7],$=u[c+8],U=u[c+9],D=u[c+10],N=u[c+11],L=u[c+12],w=u[c+13],q=u[c+14],I=u[c+15],E=x[0],S=x[1],R=x[2],H=x[3];E=v(E,S,R,H,_,7,t[0]),H=v(H,E,S,R,g,12,t[1]),R=v(R,H,E,S,y,17,t[2]),S=v(S,R,H,E,A,22,t[3]),E=v(E,S,R,H,z,7,t[4]),H=v(H,E,S,R,p,12,t[5]),R=v(R,H,E,S,b,17,t[6]),S=v(S,R,H,E,k,22,t[7]),E=v(E,S,R,H,$,7,t[8]),H=v(H,E,S,R,U,12,t[9]),R=v(R,H,E,S,D,17,t[10]),S=v(S,R,H,E,N,22,t[11]),E=v(E,S,R,H,L,7,t[12]),H=v(H,E,S,R,w,12,t[13]),R=v(R,H,E,S,q,17,t[14]),S=v(S,R,H,E,I,22,t[15]),E=r(E,S,R,H,g,5,t[16]),H=r(H,E,S,R,b,9,t[17]),R=r(R,H,E,S,N,14,t[18]),S=r(S,R,H,E,_,20,t[19]),E=r(E,S,R,H,p,5,t[20]),H=r(H,E,S,R,D,9,t[21]),R=r(R,H,E,S,I,14,t[22]),S=r(S,R,H,E,z,20,t[23]),E=r(E,S,R,H,U,5,t[24]),H=r(H,E,S,R,q,9,t[25]),R=r(R,H,E,S,A,14,t[26]),S=r(S,R,H,E,$,20,t[27]),E=r(E,S,R,H,w,5,t[28]),H=r(H,E,S,R,y,9,t[29]),R=r(R,H,E,S,k,14,t[30]),S=r(S,R,H,E,L,20,t[31]),E=d(E,S,R,H,p,4,t[32]),H=d(H,E,S,R,$,11,t[33]),R=d(R,H,E,S,N,16,t[34]),S=d(S,R,H,E,q,23,t[35]),E=d(E,S,R,H,g,4,t[36]),H=d(H,E,S,R,z,11,t[37]),R=d(R,H,E,S,k,16,t[38]),S=d(S,R,H,E,D,23,t[39]),E=d(E,S,R,H,w,4,t[40]),H=d(H,E,S,R,_,11,t[41]),R=d(R,H,E,S,A,16,t[42]),S=d(S,R,H,E,b,23,t[43]),E=d(E,S,R,H,U,4,t[44]),H=d(H,E,S,R,L,11,t[45]),R=d(R,H,E,S,I,16,t[46]),S=d(S,R,H,E,y,23,t[47]),E=i(E,S,R,H,_,6,t[48]),H=i(H,E,S,R,k,10,t[49]),R=i(R,H,E,S,q,15,t[50]),S=i(S,R,H,E,p,21,t[51]),E=i(E,S,R,H,L,6,t[52]),H=i(H,E,S,R,A,10,t[53]),R=i(R,H,E,S,D,15,t[54]),S=i(S,R,H,E,g,21,t[55]),E=i(E,S,R,H,$,6,t[56]),H=i(H,E,S,R,I,10,t[57]),R=i(R,H,E,S,b,15,t[58]),S=i(S,R,H,E,w,21,t[59]),E=i(E,S,R,H,z,6,t[60]),H=i(H,E,S,R,N,10,t[61]),R=i(R,H,E,S,y,15,t[62]),S=i(S,R,H,E,U,21,t[63]),x[0]=x[0]+E|0,x[1]=x[1]+S|0,x[2]=x[2]+R|0,x[3]=x[3]+H|0},_doFinalize:function(){var u=this._data,c=u.words,m=this._nDataBytes*8,n=u.sigBytes*8;c[n>>>5]|=128<<24-n%32;var s=o.floor(m/4294967296),x=m;c[(n+64>>>9<<4)+15]=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,c[(n+64>>>9<<4)+14]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,u.sigBytes=(c.length+1)*4,this._process();for(var _=this._hash,g=_.words,y=0;y<4;y++){var A=g[y];g[y]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}return _},clone:function(){var u=l.clone.call(this);return u._hash=this._hash.clone(),u}});function v(u,c,m,n,s,x,_){var g=u+(c&m|~c&n)+s+_;return(g<<x|g>>>32-x)+c}function r(u,c,m,n,s,x,_){var g=u+(c&n|m&~n)+s+_;return(g<<x|g>>>32-x)+c}function d(u,c,m,n,s,x,_){var g=u+(c^m^n)+s+_;return(g<<x|g>>>32-x)+c}function i(u,c,m,n,s,x,_){var g=u+(m^(c|~n))+s+_;return(g<<x|g>>>32-x)+c}C.MD5=l._createHelper(a),C.HmacMD5=l._createHmacHelper(a)}(Math),h.MD5})}(Z0)),Z0.exports}var K0={exports:{}},Ve;function St(){return Ve||(Ve=1,function(P,V){(function(h,o){P.exports=o(j())})(X,function(h){return function(){var o=h,C=o.lib,B=C.WordArray,F=C.Hasher,l=o.algo,f=[],t=l.SHA1=F.extend({_doReset:function(){this._hash=new B.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(a,v){for(var r=this._hash.words,d=r[0],i=r[1],u=r[2],c=r[3],m=r[4],n=0;n<80;n++){if(n<16)f[n]=a[v+n]|0;else{var s=f[n-3]^f[n-8]^f[n-14]^f[n-16];f[n]=s<<1|s>>>31}var x=(d<<5|d>>>27)+m+f[n];n<20?x+=(i&u|~i&c)+1518500249:n<40?x+=(i^u^c)+1859775393:n<60?x+=(i&u|i&c|u&c)-1894007588:x+=(i^u^c)-899497514,m=c,c=u,u=i<<30|i>>>2,i=d,d=x}r[0]=r[0]+d|0,r[1]=r[1]+i|0,r[2]=r[2]+u|0,r[3]=r[3]+c|0,r[4]=r[4]+m|0},_doFinalize:function(){var a=this._data,v=a.words,r=this._nDataBytes*8,d=a.sigBytes*8;return v[d>>>5]|=128<<24-d%32,v[(d+64>>>9<<4)+14]=Math.floor(r/4294967296),v[(d+64>>>9<<4)+15]=r,a.sigBytes=v.length*4,this._process(),this._hash},clone:function(){var a=F.clone.call(this);return a._hash=this._hash.clone(),a}});o.SHA1=F._createHelper(t),o.HmacSHA1=F._createHmacHelper(t)}(),h.SHA1})}(K0)),K0.exports}var X0={exports:{}},Oe;function Ce(){return Oe||(Oe=1,function(P,V){(function(h,o){P.exports=o(j())})(X,function(h){return function(o){var C=h,B=C.lib,F=B.WordArray,l=B.Hasher,f=C.algo,t=[],a=[];(function(){function d(m){for(var n=o.sqrt(m),s=2;s<=n;s++)if(!(m%s))return!1;return!0}function i(m){return(m-(m|0))*4294967296|0}for(var u=2,c=0;c<64;)d(u)&&(c<8&&(t[c]=i(o.pow(u,1/2))),a[c]=i(o.pow(u,1/3)),c++),u++})();var v=[],r=f.SHA256=l.extend({_doReset:function(){this._hash=new F.init(t.slice(0))},_doProcessBlock:function(d,i){for(var u=this._hash.words,c=u[0],m=u[1],n=u[2],s=u[3],x=u[4],_=u[5],g=u[6],y=u[7],A=0;A<64;A++){if(A<16)v[A]=d[i+A]|0;else{var z=v[A-15],p=(z<<25|z>>>7)^(z<<14|z>>>18)^z>>>3,b=v[A-2],k=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;v[A]=p+v[A-7]+k+v[A-16]}var $=x&_^~x&g,U=c&m^c&n^m&n,D=(c<<30|c>>>2)^(c<<19|c>>>13)^(c<<10|c>>>22),N=(x<<26|x>>>6)^(x<<21|x>>>11)^(x<<7|x>>>25),L=y+N+$+a[A]+v[A],w=D+U;y=g,g=_,_=x,x=s+L|0,s=n,n=m,m=c,c=L+w|0}u[0]=u[0]+c|0,u[1]=u[1]+m|0,u[2]=u[2]+n|0,u[3]=u[3]+s|0,u[4]=u[4]+x|0,u[5]=u[5]+_|0,u[6]=u[6]+g|0,u[7]=u[7]+y|0},_doFinalize:function(){var d=this._data,i=d.words,u=this._nDataBytes*8,c=d.sigBytes*8;return i[c>>>5]|=128<<24-c%32,i[(c+64>>>9<<4)+14]=o.floor(u/4294967296),i[(c+64>>>9<<4)+15]=u,d.sigBytes=i.length*4,this._process(),this._hash},clone:function(){var d=l.clone.call(this);return d._hash=this._hash.clone(),d}});C.SHA256=l._createHelper(r),C.HmacSHA256=l._createHmacHelper(r)}(Math),h.SHA256})}(X0)),X0.exports}var M0={exports:{}},Ze;function wn(){return Ze||(Ze=1,function(P,V){(function(h,o,C){P.exports=o(j(),Ce())})(X,function(h){return function(){var o=h,C=o.lib,B=C.WordArray,F=o.algo,l=F.SHA256,f=F.SHA224=l.extend({_doReset:function(){this._hash=new B.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=l._doFinalize.call(this);return t.sigBytes-=4,t}});o.SHA224=l._createHelper(f),o.HmacSHA224=l._createHmacHelper(f)}(),h.SHA224})}(M0)),M0.exports}var j0={exports:{}},Ke;function Ht(){return Ke||(Ke=1,function(P,V){(function(h,o,C){P.exports=o(j(),I0())})(X,function(h){return function(){var o=h,C=o.lib,B=C.Hasher,F=o.x64,l=F.Word,f=F.WordArray,t=o.algo;function a(){return l.create.apply(l,arguments)}var v=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(198
vendor: 11,171 bytes, lines 1-10
16661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],r=[];(function(){for(var i=0;i<80;i++)r[i]=a()})();var d=t.SHA512=B.extend({_doReset:function(){this._hash=new f.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(i,u){for(var c=this._hash.words,m=c[0],n=c[1],s=c[2],x=c[3],_=c[4],g=c[5],y=c[6],A=c[7],z=m.high,p=m.low,b=n.high,k=n.low,$=s.high,U=s.low,D=x.high,N=x.low,L=_.high,w=_.low,q=g.high,I=g.low,E=y.high,S=y.low,R=A.high,H=A.low,Q=z,G=p,e0=b,K=k,u0=$,o0=U,N0=D,C0=N,c0=L,s0=w,H0=q,b0=I,R0=E,E0=S,q0=R,A0=H,l0=0;l0<80;l0++){var x0,v0,z0=r[l0];if(l0<16)v0=z0.high=i[u+l0*2]|0,x0=z0.low=i[u+l0*2+1]|0;else{var Ee=r[l0-15],B0=Ee.high,F0=Ee.low,Rt=(B0>>>1|F0<<31)^(B0>>>8|F0<<24)^B0>>>7,Ae=(F0>>>1|B0<<31)^(F0>>>8|B0<<24)^(F0>>>7|B0<<25),Fe=r[l0-2],y0=Fe.high,D0=Fe.low,zt=(y0>>>19|D0<<13)^(y0<<3|D0>>>29)^y0>>>6,De=(D0>>>19|y0<<13)^(D0<<3|y0>>>29)^(D0>>>6|y0<<26),we=r[l0-7],Pt=we.high,It=we.low,ke=r[l0-16],Nt=ke.high,$e=ke.low;x0=Ae+It,v0=Rt+Pt+(x0>>>0<Ae>>>0?1:0),x0=x0+De,v0=v0+zt+(x0>>>0<De>>>0?1:0),x0=x0+$e,v0=v0+Nt+(x0>>>0<$e>>>0?1:0),z0.high=v0,z0.low=x0}var qt=c0&H0^~c0&R0,Se=s0&b0^~s0&E0,Lt=Q&e0^Q&u0^e0&u0,Wt=G&K^G&o0^K&o0,Tt=(Q>>>28|G<<4)^(Q<<30|G>>>2)^(Q<<25|G>>>7),He=(G>>>28|Q<<4)^(G<<30|Q>>>2)^(G<<25|Q>>>7),Ut=(c0>>>14|s0<<18)^(c0>>>18|s0<<14)^(c0<<23|s0>>>9),Vt=(s0>>>14|c0<<18)^(s0>>>18|c0<<14)^(s0<<23|c0>>>9),Re=v[l0],Ot=Re.high,ze=Re.low,n0=A0+Vt,h0=q0+Ut+(n0>>>0<A0>>>0?1:0),n0=n0+Se,h0=h0+qt+(n0>>>0<Se>>>0?1:0),n0=n0+ze,h0=h0+Ot+(n0>>>0<ze>>>0?1:0),n0=n0+x0,h0=h0+v0+(n0>>>0<x0>>>0?1:0),Pe=He+Wt,Zt=Tt+Lt+(Pe>>>0<He>>>0?1:0);q0=R0,A0=E0,R0=H0,E0=b0,H0=c0,b0=s0,s0=C0+n0|0,c0=N0+h0+(s0>>>0<C0>>>0?1:0)|0,N0=u0,C0=o0,u0=e0,o0=K,e0=Q,K=G,G=n0+Pe|0,Q=h0+Zt+(G>>>0<n0>>>0?1:0)|0}p=m.low=p+G,m.high=z+Q+(p>>>0<G>>>0?1:0),k=n.low=k+K,n.high=b+e0+(k>>>0<K>>>0?1:0),U=s.low=U+o0,s.high=$+u0+(U>>>0<o0>>>0?1:0),N=x.low=N+C0,x.high=D+N0+(N>>>0<C0>>>0?1:0),w=_.low=w+s0,_.high=L+c0+(w>>>0<s0>>>0?1:0),I=g.low=I+b0,g.high=q+H0+(I>>>0<b0>>>0?1:0),S=y.low=S+E0,y.high=E+R0+(S>>>0<E0>>>0?1:0),H=A.low=H+A0,A.high=R+q0+(H>>>0<A0>>>0?1:0)},_doFinalize:function(){var i=this._data,u=i.words,c=this._nDataBytes*8,m=i.sigBytes*8;u[m>>>5]|=128<<24-m%32,u[(m+128>>>10<<5)+30]=Math.floor(c/4294967296),u[(m+128>>>10<<5)+31]=c,i.sigBytes=u.length*4,this._process();var n=this._hash.toX32();return n},clone:function(){var i=B.clone.call(this);return i._hash=this._hash.clone(),i},blockSize:1024/32});o.SHA512=B._createHelper(d),o.HmacSHA512=B._createHmacHelper(d)}(),h.SHA512})}(j0)),j0.exports}var G0={exports:{}},Xe;function kn(){return Xe||(Xe=1,function(P,V){(function(h,o,C){P.exports=o(j(),I0(),Ht())})(X,function(h){return function(){var o=h,C=o.x64,B=C.Word,F=C.WordArray,l=o.algo,f=l.SHA512,t=l.SHA384=f.extend({_doReset:function(){this._hash=new F.init([new B.init(3418070365,3238371032),new B.init(1654270250,914150663),new B.init(2438529370,812702999),new B.init(355462360,4144912697),new B.init(1731405415,4290775857),new B.init(2394180231,1750603025),new B.init(3675008525,1694076839),new B.init(1203062813,3204075428)])},_doFinalize:function(){var a=f._doFinalize.call(this);return a.sigBytes-=16,a}});o.SHA384=f._createHelper(t),o.HmacSHA384=f._createHmacHelper(t)}(),h.SHA384})}(G0)),G0.exports}var Q0={exports:{}},Me;function $n(){return Me||(Me=1,function(P,V){(function(h,o,C){P.exports=o(j(),I0())})(X,function(h){return function(o){var C=h,B=C.lib,F=B.WordArray,l=B.Hasher,f=C.x64,t=f.Word,a=C.algo,v=[],r=[],d=[];(function(){for(var c=1,m=0,n=0;n<24;n++){v[c+5*m]=(n+1)*(n+2)/2%64;var s=m%5,x=(2*c+3*m)%5;c=s,m=x}for(var c=0;c<5;c++)for(var m=0;m<5;m++)r[c+5*m]=m+(2*c+3*m)%5*5;for(var _=1,g=0;g<24;g++){for(var y=0,A=0,z=0;z<7;z++){if(_&1){var p=(1<<z)-1;p<32?A^=1<<p:y^=1<<p-32}_&128?_=_<<1^113:_<<=1}d[g]=t.create(y,A)}})();var i=[];(function(){for(var c=0;c<25;c++)i[c]=t.create()})();var u=a.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var c=this._state=[],m=0;m<25;m++)c[m]=new t.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(c,m){for(var n=this._state,s=this.blockSize/2,x=0;x<s;x++){var _=c[m+2*x],g=c[m+2*x+1];_=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,g=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360;var y=n[x];y.high^=g,y.low^=_}for(var A=0;A<24;A++){for(var z=0;z<5;z++){for(var p=0,b=0,k=0;k<5;k++){var y=n[z+5*k];p^=y.high,b^=y.low}var $=i[z];$.high=p,$.low=b}for(var z=0;z<5;z++)for(var U=i[(z+4)%5],D=i[(z+1)%5],N=D.high,L=D.low,p=U.high^(N<<1|L>>>31),b=U.low^(L<<1|N>>>31),k=0;k<5;k++){var y=n[z+5*k];y.high^=p,y.low^=b}for(var w=1;w<25;w++){var p,b,y=n[w],q=y.high,I=y.low,E=v[w];E<32?(p=q<<E|I>>>32-E,b=I<<E|q>>>32-E):(p=I<<E-32|q>>>64-E,b=q<<E-32|I>>>64-E);var S=i[r[w]];S.high=p,S.low=b}var R=i[0],H=n[0];R.high=H.high,R.low=H.low;for(var z=0;z<5;z++)for(var k=0;k<5;k++){var w=z+5*k,y=n[w],Q=i[w],G=i[(z+1)%5+5*k],e0=i[(z+2)%5+5*k];y.high=Q.high^~G.high&e0.high,y.low=Q.low^~G.low&e0.low}var y=n[0],K=d[A];y.high^=K.high,y.low^=K.low}},_doFinalize:function(){var c=this._data,m=c.words;this._nDataBytes*8;var n=c.sigBytes*8,s=this.blockSize*32;m[n>>>5]|=1<<24-n%32,m[(o.ceil((n+1)/s)*s>>>5)-1]|=128,c.sigBytes=m.length*4,this._process();for(var x=this._state,_=this.cfg.outputLength/8,g=_/8,y=[],A=0;A<g;A++){var z=x[A],p=z.high,b=z.low;p=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,b=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,y.push(b),y.push(p)}return new F.init(y,_)},clone:function(){for(var c=l.clone.call(this),m=c._state=this._state.slice(0),n=0;n<25;n++)m[n]=m[n].clone();return c}});C.SHA3=l._createHelper(u),C.HmacSHA3=l._createHmacHelper(u)}(Math),h.SHA3})}(Q0)),Q0.exports}var Y0={exports:{}},je;function Sn(){return je||(je=1,function(P,V){(function(h,o){P.exports=o(j())})(X,function(h){/** @preserve
2			(c) 2012 by Cédric Mesnil. All rights reserved.
3
4			Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5
6			    - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7			    - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8
9			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.
10			*/return function(o){var C=h,B=C.lib,F=B.WordArray,l=B.Hasher,f=C.algo,t=F.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]),a=F.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]),v=F.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]),r=F.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]),d=F.create([0,1518500249,1859775393,2400959708,2840853838]),i=F.create([1352829926,1548603684,1836072691,2053994217,0]),u=f.RIPEMD160=l.extend({_doReset:function(){this._hash=F.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(g,y){for(var A=0;A<16;A++){var z=y+A,p=g[z];g[z]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360}var b=this._hash.words,k=d.words,$=i.words,U=t.words,D=a.words,N=v.words,L=r.words,w,q,I,E,S,R,H,Q,G,e0;R=w=b[0],H=q=b[1],Q=I=b[2],G=E=b[3],e0=S=b[4];for(var K,A=0;A<80;A+=1)K=w+g[y+U[A]]|0,A<16?K+=c(q,I,E)+k[0]:A<32?K+=m(q,I,E)+k[1]:A<48?K+=n(q,I,E)+k[2]:A<64?K+=s(q,I,E)+k[3]:K+=x(q,I,E)+k[4],K=K|0,K=_(K,N[A]),K=K+S|0,w=S,S=E,E=_(I,10),I=q,q=K,K=R+g[y+D[A]]|0,A<16?K+=x(H,Q,G)+$[0]:A<32?K+=s(H,Q,G)+$[1]:A<48?K+=n(H,Q,G)+$[2]:A<64?K+=m(H,Q,G)+$[3]:K+=c(H,Q,G)+$[4],K=K|0,K=_(K,L[A]),K=K+e0|0,R=e0,e0=G,G=_(Q,10),Q=H,H=K;K=b[1]+I+G|0,b[1]=b[2]+E+e0|0,b[2]=b[3]+S+R|0,b[3]=b[4]+w+H|0,b[4]=b[0]+q+Q|0,b[0]=K},_doFinalize:function(){var g=this._data,y=g.words,A=this._nDataBytes*8,z=g.sigBytes*8;y[z>>>5]|=128<<24-z%32,y[(z+64>>>9<<4)+14]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,g.sigBytes=(y.length+1)*4,this._process();for(var p=this._hash,b=p.words,k=0;k<5;k++){var $=b[k];b[k]=($<<8|$>>>24)&16711935|($<<24|$>>>8)&4278255360}return p},clone:function(){var g=l.clone.call(this);return g._hash=this._hash.clone(),g}});function c(g,y,A){return g^y^A}function m(g,y,A){return g&y|~g&A}function n(g,y,A){return(g|~y)^A}function s(g,y,A){return g&A|y&~A}function x(g,y,A){return g^(y|~A)}function _(g,y){return g<<y|g>>>32-y}C.RIPEMD160=l._createHelper(u),C.HmacRIPEMD160=l._createHmacHelper(u)}(),h.RIPEMD160})}(Y0)),Y0.exports}var J0={exports:{}},Ge;function be(){return Ge||(Ge=1,function(P,V){(function(h,o){P.exports=o(j())})(X,function(h){(function(){var o=h,C=o.lib,B=C.Base,F=o.enc,l=F.Utf8,f=o.algo;f.HMAC=B.extend({init:function(t,a){t=this._hasher=new t.init,typeof a=="str
10ing"&&(a=l.parse(a));var v=t.blockSize,r=v*4;a.sigBytes>r&&(a=t.finalize(a)),a.clamp();for(var d=this._oKey=a.clone(),i=this._iKey=a.clone(),u=d.words,c=i.words,m=0;m<v;m++)u[m]^=1549556828,c[m]^=909522486;d.sigBytes=i.sigBytes=r,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var a=this._hasher,v=a.finalize(t);a.reset();var r=a.finalize(this._oKey.clone().concat(v));return r}})})()})}(J0)),J0.exports}var ee={exports:{}},Qe;function Hn(){return Qe||(Qe=1,function(P,V){(function(h,o,C){P.exports=o(j(),Ce(),be())})(X,function(h){return function(){var o=h,C=o.lib,B=C.Base,F=C.WordArray,l=o.algo,f=l.SHA256,t=l.HMAC,a=l.PBKDF2=B.extend({cfg:B.extend({keySize:128/32,hasher:f,iterations:25e4}),init:function(v){this.cfg=this.cfg.extend(v)},compute:function(v,r){for(var d=this.cfg,i=t.create(d.hasher,v),u=F.create(),c=F.create([1]),m=u.words,n=c.words,s=d.keySize,x=d.iterations;m.length<s;){var _=i.update(r).finalize(c);i.reset();for(var g=_.words,y=g.length,A=_,z=1;z<x;z++){A=i.finalize(A),i.reset();for(var p=A.words,b=0;b<y;b++)g[b]^=p[b]}u.concat(_),n[0]++}return u.sigBytes=s*4,u}});o.PBKDF2=function(v,r,d){return a.create(d).compute(v,r)}}(),h.PBKDF2})}(ee)),ee.exports}var te={exports:{}},Ye;function m0(){return Ye||(Ye=1,function(P,V){(function(h,o,C){P.exports=o(j(),St(),be())})(X,function(h){return function(){var o=h,C=o.lib,B=C.Base,F=C.WordArray,l=o.algo,f=l.MD5,t=l.EvpKDF=B.extend({cfg:B.extend({keySize:128/32,hasher:f,iterations:1}),init:function(a){this.cfg=this.cfg.extend(a)},compute:function(a,v){for(var r,d=this.cfg,i=d.hasher.create(),u=F.create(),c=u.words,m=d.keySize,n=d.iterations;c.length<m;){r&&i.update(r),r=i.update(a).finalize(v),i.reset();for(var s=1;s<n;s++)r=i.finalize(r),i.reset();u.concat(r)}return u.sigBytes=m*4,u}});o.EvpKDF=function(a,v,r){return t.create(r).compute(a,v)}}(),h.EvpKDF})}(te)),te.exports}var re={exports:{}},Je;function r0(){return Je||(Je=1,function(P,V){(function(h,o,C){P.exports=o(j(),m0())})(X,function(h){h.lib.Cipher||function(o){var C=h,B=C.lib,F=B.Base,l=B.WordArray,f=B.BufferedBlockAlgorithm,t=C.enc;t.Utf8;var a=t.Base64,v=C.algo,r=v.EvpKDF,d=B.Cipher=f.extend({cfg:F.extend(),createEncryptor:function(p,b){return this.create(this._ENC_XFORM_MODE,p,b)},createDecryptor:function(p,b){return this.create(this._DEC_XFORM_MODE,p,b)},init:function(p,b,k){this.cfg=this.cfg.extend(k),this._xformMode=p,this._key=b,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(p){return this._append(p),this._process()},finalize:function(p){p&&this._append(p);var b=this._doFinalize();return b},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function p(b){return typeof b=="string"?z:g}return function(b){return{encrypt:function(k,$,U){return p($).encrypt(b,k,$,U)},decrypt:function(k,$,U){return p($).decrypt(b,k,$,U)}}}}()});B.StreamCipher=d.extend({_doFinalize:function(){var p=this._process(!0);return p},blockSize:1});var i=C.mode={},u=B.BlockCipherMode=F.extend({createEncryptor:function(p,b){return this.Encryptor.create(p,b)},createDecryptor:function(p,b){return this.Decryptor.create(p,b)},init:function(p,b){this._cipher=p,this._iv=b}}),c=i.CBC=function(){var p=u.extend();p.Encryptor=p.extend({processBlock:function(k,$){var U=this._cipher,D=U.blockSize;b.call(this,k,$,D),U.encryptBlock(k,$),this._prevBlock=k.slice($,$+D)}}),p.Decryptor=p.extend({processBlock:function(k,$){var U=this._cipher,D=U.blockSize,N=k.slice($,$+D);U.decryptBlock(k,$),b.call(this,k,$,D),this._prevBlock=N}});function b(k,$,U){var D,N=this._iv;N?(D=N,this._iv=o):D=this._prevBlock;for(var L=0;L<U;L++)k[$+L]^=D[L]}return p}(),m=C.pad={},n=m.Pkcs7={pad:function(p,b){for(var k=b*4,$=k-p.sigBytes%k,U=$<<24|$<<16|$<<8|$,D=[],N=0;N<$;N+=4)D.push(U);var L=l.create(D,$);p.concat(L)},unpad:function(p){var b=p.words[p.sigBytes-1>>>2]&255;p.sigBytes-=b}};B.BlockCipher=d.extend({cfg:d.cfg.extend({mode:c,padding:n}),reset:function(){var p;d.reset.call(this);
vendor: 9,997 bytes, lines 10-14
10var b=this.cfg,k=b.iv,$=b.mode;this._xformMode==this._ENC_XFORM_MODE?p=$.createEncryptor:(p=$.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==p?this._mode.init(this,k&&k.words):(this._mode=p.call($,this,k&&k.words),this._mode.__creator=p)},_doProcessBlock:function(p,b){this._mode.processBlock(p,b)},_doFinalize:function(){var p,b=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(b.pad(this._data,this.blockSize),p=this._process(!0)):(p=this._process(!0),b.unpad(p)),p},blockSize:128/32});var s=B.CipherParams=F.extend({init:function(p){this.mixIn(p)},toString:function(p){return(p||this.formatter).stringify(this)}}),x=C.format={},_=x.OpenSSL={stringify:function(p){var b,k=p.ciphertext,$=p.salt;return $?b=l.create([1398893684,1701076831]).concat($).concat(k):b=k,b.toString(a)},parse:function(p){var b,k=a.parse(p),$=k.words;return $[0]==1398893684&&$[1]==1701076831&&(b=l.create($.slice(2,4)),$.splice(0,4),k.sigBytes-=16),s.create({ciphertext:k,salt:b})}},g=B.SerializableCipher=F.extend({cfg:F.extend({format:_}),encrypt:function(p,b,k,$){$=this.cfg.extend($);var U=p.createEncryptor(k,$),D=U.finalize(b),N=U.cfg;return s.create({ciphertext:D,key:k,iv:N.iv,algorithm:p,mode:N.mode,padding:N.padding,blockSize:p.blockSize,formatter:$.format})},decrypt:function(p,b,k,$){$=this.cfg.extend($),b=this._parse(b,$.format);var U=p.createDecryptor(k,$).finalize(b.ciphertext);return U},_parse:function(p,b){return typeof p=="string"?b.parse(p,this):p}}),y=C.kdf={},A=y.OpenSSL={execute:function(p,b,k,$,U){if($||($=l.random(64/8)),U)var D=r.create({keySize:b+k,hasher:U}).compute(p,$);else var D=r.create({keySize:b+k}).compute(p,$);var N=l.create(D.words.slice(b),k*4);return D.sigBytes=b*4,s.create({key:D,iv:N,salt:$})}},z=B.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:A}),encrypt:function(p,b,k,$){$=this.cfg.extend($);var U=$.kdf.execute(k,p.keySize,p.ivSize,$.salt,$.hasher);$.iv=U.iv;var D=g.encrypt.call(this,p,b,U.key,$);return D.mixIn(U),D},decrypt:function(p,b,k,$){$=this.cfg.extend($),b=this._parse(b,$.format);var U=$.kdf.execute(k,p.keySize,p.ivSize,b.salt,$.hasher);$.iv=U.iv;var D=g.decrypt.call(this,p,b,U.key,$);return D}})}()})}(re)),re.exports}var ae={exports:{}},et;function Rn(){return et||(et=1,function(P,V){(function(h,o,C){P.exports=o(j(),r0())})(X,function(h){return h.mode.CFB=function(){var o=h.lib.BlockCipherMode.extend();o.Encryptor=o.extend({processBlock:function(B,F){var l=this._cipher,f=l.blockSize;C.call(this,B,F,f,l),this._prevBlock=B.slice(F,F+f)}}),o.Decryptor=o.extend({processBlock:function(B,F){var l=this._cipher,f=l.blockSize,t=B.slice(F,F+f);C.call(this,B,F,f,l),this._prevBlock=t}});function C(B,F,l,f){var t,a=this._iv;a?(t=a.slice(0),this._iv=void 0):t=this._prevBlock,f.encryptBlock(t,0);for(var v=0;v<l;v++)B[F+v]^=t[v]}return o}(),h.mode.CFB})}(ae)),ae.exports}var oe={exports:{}},tt;function zn(){return tt||(tt=1,function(P,V){(function(h,o,C){P.exports=o(j(),r0())})(X,function(h){return h.mode.CTR=function(){var o=h.lib.BlockCipherMode.extend(),C=o.Encryptor=o.extend({processBlock:function(B,F){var l=this._cipher,f=l.blockSize,t=this._iv,a=this._counter;t&&(a=this._counter=t.slice(0),this._iv=void 0);var v=a.slice(0);l.encryptBlock(v,0),a[f-1]=a[f-1]+1|0;for(var r=0;r<f;r++)B[F+r]^=v[r]}});return o.Decryptor=C,o}(),h.mode.CTR})}(oe)),oe.exports}var se={exports:{}},rt;function Pn(){return rt||(rt=1,function(P,V){(function(h,o,C){P.exports=o(j(),r0())})(X,function(h){/** @preserve
11 * Counter block mode compatible with  Dr Brian Gladman fileenc.c
12 * derived from CryptoJS.mode.CTR
13 * Jan Hruby [email protected]
14 */return h.mode.CTRGladman=function(){var o=h.lib.BlockCipherMode.extend();function C(l){if((l>>24&255)===255){var f=l>>16&255,t=l>>8&255,a=l&255;f===255?(f=0,t===255?(t=0,a===255?a=0:++a):++t):++f,l=0,l+=f<<16,l+=t<<8,l+=a}else l+=1<<24;return l}function B(l){return(l[0]=C(l[0]))===0&&(l[1]=C(l[1])),l}var F=o.Encryptor=o.extend({processBlock:function(l,f){var t=this._cipher,a=t.blockSize,v=this._iv,r=this._counter;v&&(r=this._counter=v.slice(0),this._iv=void 0),B(r);var d=r.slice(0);t.encryptBlock(d,0);for(var i=0;i<a;i++)l[f+i]^=d[i]}});return o.Decryptor=F,o}(),h.mode.CTRGladman})}(se)),se.exports}var ne={exports:{}},at;function In(){return at||(at=1,function(P,V){(function(h,o,C){P.exports=o(j(),r0())})(X,function(h){return h.mode.OFB=function(){var o=h.lib.BlockCipherMode.extend(),C=o.Encryptor=o.extend({processBlock:function(B,F){var l=this._cipher,f=l.blockSize,t=this._iv,a=this._keystream;t&&(a=this._keystream=t.slice(0),this._iv=void 0),l.encryptBlock(a,0);for(var v=0;v<f;v++)B[F+v]^=a[v]}});return o.Decryptor=C,o}(),h.mode.OFB})}(ne)),ne.exports}var ie={exports:{}},ot;function Nn(){return ot||(ot=1,function(P,V){(function(h,o,C){P.exports=o(j(),r0())})(X,function(h){return h.mode.ECB=function(){var o=h.lib.BlockCipherMode.extend();return o.Encryptor=o.extend({processBlock:function(C,B){this._cipher.encryptBlock(C,B)}}),o.Decryptor=o.extend({processBlock:function(C,B){this._cipher.decryptBlock(C,B)}}),o}(),h.mode.ECB})}(ie)),ie.exports}var xe={exports:{}},st;function qn(){return st||(st=1,function(P,V){(function(h,o,C){P.exports=o(j(),r0())})(X,function(h){return h.pad.AnsiX923={pad:function(o,C){var B=o.sigBytes,F=C*4,l=F-B%F,f=B+l-1;o.clamp(),o.words[f>>>2]|=l<<24-f%4*8,o.sigBytes+=l},unpad:function(o){var C=o.words[o.sigBytes-1>>>2]&255;o.sigBytes-=C}},h.pad.Ansix923})}(xe)),xe.exports}var ce={exports:{}},nt;function Ln(){return nt||(nt=1,function(P,V){(function(h,o,C){P.exports=o(j(),r0())})(X,function(h){return h.pad.Iso10126={pad:function(o,C){var B=C*4,F=B-o.sigBytes%B;o.concat(h.lib.WordArray.random(F-1)).concat(h.lib.WordArray.create([F<<24],1))},unpad:function(o){var C=o.words[o.sigBytes-1>>>2]&255;o.sigBytes-=C}},h.pad.Iso10126})}(ce)),ce.exports}var le={exports:{}},it;function Wn(){return it||(it=1,function(P,V){(function(h,o,C){P.exports=o(j(),r0())})(X,function(h){return h.pad.Iso97971={pad:function(o,C){o.concat(h.lib.WordArray.create([2147483648],1)),h.pad.ZeroPadding.pad(o,C)},unpad:function(o){h.pad.ZeroPadding.unpad(o),o.sigBytes--}},h.pad.Iso97971})}(le)),le.exports}var de={exports:{}},xt;function Tn(){return xt||(xt=1,function(P,V){(function(h,o,C){P.exports=o(j(),r0())})(X,function(h){return h.pad.ZeroPadding={pad:function(o,C){var B=C*4;o.clamp(),o.sigBytes+=B-(o.sigBytes%B||B)},unpad:function(o){for(var C=o.words,B=o.sigBytes-1,B=o.sigBytes-1;B>=0;B--)if(C[B>>>2]>>>24-B%4*8&255){o.sigBytes=B+1;break}}},h.pad.ZeroPadding})}(de)),de.exports}var fe={exports:{}},ct;function Un(){return ct||(ct=1,function(P,V){(function(h,o,C){P.exports=o(j(),r0())})(X,function(h){return h.pad.NoPadding={pad:function(){},unpad:function(){}},h.pad.NoPadding})}(fe)),fe.exports}var ue={exports:{}},lt;function Vn(){return lt||(lt=1,function(P,V){(function(h,o,C){P.exports=o(j(),r0())})(X,function(h){return function(o){var C=h,B=C.lib,F=B.CipherParams,l=C.enc,f=l.Hex,t=C.format;t.Hex={stringify:function(a){return a.ciphertext.toString(f)},parse:function(a){var v=f.parse(a);return F.create({ciphertext:v})}}}(),h.format.Hex})}(ue)),ue.exports}var ve={exports:{}},dt;function On(){return dt||(dt=1,function(P,V){(function(h,o,C){P.exports=o(j(),_0(),g0(),m0(),r0())})(X,function(h){return function(){var o=h,C=o.lib,B=C.BlockCipher,F=o.algo,l=[],f=[],t=[],a=[],v=[],r=[],d=[],i=[],u=[],c=[];(function(){for(var s=[],x=0;x<256;x++)x<128?s[x]=x<<1:s[x]=x<<1^283;for(var _=0,g=0,x=0;x<256;x++){var y=g^g<<1^g<<2^g<<3^g<<4;y=y>>>8^y&255^99,l[_]=y,f[y]=_;var A=s[_],z=s[A],p=s[z],b=s[y]*257^y*16843008;t[_]=b<<24|b>>>8,a[_]=b<<16|b>>>16,v[_]=b<<8|b>>>24,r[_]=b;var b=p*16843009^z*65537^A*257^_*16843008;d[y]=b<<24|b>>>8,i[y]=b<<16|b>>>16,u[y]=b<<8|b>>>24,c[y]=b,_?(_=A^s[s[s[p^A]]],g^=s[s[g]]):_=g=1}})();var m=[0,1,2,4,8,16,32,64,128,27,54],n=F.AES=B.extend({_doReset:function(){var s;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var x=this._keyPriorReset=this._key,_=x.words,g=x.sigBytes/4,y=this._nRounds=g+6,A=(y+1)*4,z=this._keySchedule=[],p=0;p<A;p++)p<g?z[p]=_[p]:(s=z[p-1],p%g?g>6&&p%g==4&&(s=l[s>>>24]<<24|l[s>>>16&255]<<16|l[s>>>8&255]<<8|l[s&255]):(s=s<<8|s>>>24,s=l[s>>>24]<<24|l[s>>>16&255]<<16|l[s>>>8&255]<<8|l[s&255],s^=m[p/g|0]<<24),z[p]=z[p-g]^s);for(var b=this._invKeySchedule=[],k=0;k<A;k++){var p=A-k;if(k%4)var s=z[p];else var s=z[p-4];k<4||p<=4?b[k]=s:b[k]=d[l[s>>>24]]^i[l[s>>>16&255]]^u[l[s>>>8&255]]^c[l[s&255]]}}},encryptBlock:function(s,x){this._doCryptBlock(s,x,this._keySchedule,t,a,v,r,l)},decryptBlock:function(s,x){var _=s[x+1];s[x+1]=s[x+3],s[x+3]=_,this._doCryptBlock(s,x,this._invKeySchedule,d,i,u,c,f);var _=s[x+1];s[x+1]=s[x+3],s[x+3]=_},_doCryptBlock:function(s,x,_,g,y,A,z,p){for(var b=this._nRounds,k=s[x]^_[0],$=s[x+1]^_[1],U=s[x+2]^_[2],D=s[x+3]^_[3],N=4,L=1;L<b;L++){var w=g[k>>>24]^y[$>>>16&255]^A[U>>>8&255]^z[D&255]^_[N++],q=g[$>>>24]^y[U>>>16&255]^A[D>>>8&255]^z[k&255]^_[N++],I=g[U>>>24]^y[D>>>16&255]^A[k>>>8&255]^z[$&255]^_[N++],E=g[D>>>24]^y[k>>>16&255]^A[$>>>8&255]^z[U&255]^_[N++];k=w,$=q,U=I,D=E}var w=(p[k>>>24]<<24|p[$>>>16&255]<<16|p[U>>>8&255]<<8|p[D&255])^_[N++],q=(p[$>>>24]<<24|p[U>>>16&255]<<16|p[D>>>8&255]<<8|p[k&255])^_[N++],I=(p[U>>>24]<<24|p[D>>>16&255]<<16|p[k>>>8&255]<<8|p[$&255])^_[N++],E=(p[D>>>24]<<24|p[k>>>16&255]<<16|p[$>>>8&255]<<8|p[U&255])^_[N++];s[x]=w,s[x+1]=q,s[x+2]=I,s[x+3]=E},keySize:256/32});o.AES=B._createHelper(n)}(),h.AES})}(ve)),ve.exports}var he={exports:{}},ft;function Zn(){return ft||(ft=1,function(P,V){(function(h,o,C){P.exports=o(j(),_0(),g0(),m0(),r0())})(X,function(h){return function(){var o=h,C=o.lib,B=C.WordArray,F=C.BlockCipher,l=o.algo,f=[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],t=[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],a=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],v
vendor: 7,629 bytes, line 14
14=[{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}],
vendor: 8,156 bytes, line 14
14r=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=l.DES=F.extend({_doReset:function(){for(var m=this._key,n=m.words,s=[],x=0;x<56;x++){var _=f[x]-1;s[x]=n[_>>>5]>>>31-_%32&1}for(var g=this._subKeys=[],y=0;y<16;y++){for(var A=g[y]=[],z=a[y],x=0;x<24;x++)A[x/6|0]|=s[(t[x]-1+z)%28]<<31-x%6,A[4+(x/6|0)]|=s[28+(t[x+24]-1+z)%28]<<31-x%6;A[0]=A[0]<<1|A[0]>>>31;for(var x=1;x<7;x++)A[x]=A[x]>>>(x-1)*4+3;A[7]=A[7]<<5|A[7]>>>27}for(var p=this._invSubKeys=[],x=0;x<16;x++)p[x]=g[15-x]},encryptBlock:function(m,n){this._doCryptBlock(m,n,this._subKeys)},decryptBlock:function(m,n){this._doCryptBlock(m,n,this._invSubKeys)},_doCryptBlock:function(m,n,s){this._lBlock=m[n],this._rBlock=m[n+1],i.call(this,4,252645135),i.call(this,16,65535),u.call(this,2,858993459),u.call(this,8,16711935),i.call(this,1,1431655765);for(var x=0;x<16;x++){for(var _=s[x],g=this._lBlock,y=this._rBlock,A=0,z=0;z<8;z++)A|=v[z][((y^_[z])&r[z])>>>0];this._lBlock=y,this._rBlock=g^A}var p=this._lBlock;this._lBlock=this._rBlock,this._rBlock=p,i.call(this,1,1431655765),u.call(this,8,16711935),u.call(this,2,858993459),i.call(this,16,65535),i.call(this,4,252645135),m[n]=this._lBlock,m[n+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function i(m,n){var s=(this._lBlock>>>m^this._rBlock)&n;this._rBlock^=s,this._lBlock^=s<<m}function u(m,n){var s=(this._rBlock>>>m^this._lBlock)&n;this._lBlock^=s,this._rBlock^=s<<m}o.DES=F._createHelper(d);var c=l.TripleDES=F.extend({_doReset:function(){var m=this._key,n=m.words;if(n.length!==2&&n.length!==4&&n.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var s=n.slice(0,2),x=n.length<4?n.slice(0,2):n.slice(2,4),_=n.length<6?n.slice(0,2):n.slice(4,6);this._des1=d.createEncryptor(B.create(s)),this._des2=d.createEncryptor(B.create(x)),this._des3=d.createEncryptor(B.create(_))},encryptBlock:function(m,n){this._des1.encryptBlock(m,n),this._des2.decryptBlock(m,n),this._des3.encryptBlock(m,n)},decryptBlock:function(m,n){this._des3.decryptBlock(m,n),this._des2.encryptBlock(m,n),this._des1.decryptBlock(m,n)},keySize:192/32,ivSize:64/32,blockSize:64/32});o.TripleDES=F._createHelper(c)}(),h.TripleDES})}(he)),he.exports}var pe={exports:{}},ut;function Kn(){return ut||(ut=1,function(P,V){(function(h,o,C){P.exports=o(j(),_0(),g0(),m0(),r0())})(X,function(h){return function(){var o=h,C=o.lib,B=C.StreamCipher,F=o.algo,l=F.RC4=B.extend({_doReset:function(){for(var a=this._key,v=a.words,r=a.sigBytes,d=this._S=[],i=0;i<256;i++)d[i]=i;for(var i=0,u=0;i<256;i++){var c=i%r,m=v[c>>>2]>>>24-c%4*8&255;u=(u+d[i]+m)%256;var n=d[i];d[i]=d[u],d[u]=n}this._i=this._j=0},_doProcessBlock:function(a,v){a[v]^=f.call(this)},keySize:256/32,ivSize:0});function f(){for(var a=this._S,v=this._i,r=this._j,d=0,i=0;i<4;i++){v=(v+1)%256,r=(r+a[v])%256;var u=a[v];a[v]=a[r],a[r]=u,d|=a[(a[v]+a[r])%256]<<24-i*8}return this._i=v,this._j=r,d}o.RC4=B._createHelper(l);var t=F.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var a=this.cfg.drop;a>0;a--)f.call(this)}});o.RC4Drop=B._createHelper(t)}(),h.RC4})}(pe)),pe.exports}var me={exports:{}},vt;function Xn(){return vt||(vt=1,function(P,V){(function(h,o,C){P.exports=o(j(),_0(),g0(),m0(),r0())})(X,function(h){return function(){var o=h,C=o.lib,B=C.StreamCipher,F=o.algo,l=[],f=[],t=[],a=F.Rabbit=B.extend({_doReset:function(){for(var r=this._key.words,d=this.cfg.iv,i=0;i<4;i++)r[i]=(r[i]<<8|r[i]>>>24)&16711935|(r[i]<<24|r[i]>>>8)&4278255360;var u=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16],c=this._C=[r[2]<<16|r[2]>>>16,r[0]&4294901760|r[1]&65535,r[3]<<16|r[3]>>>16,r[1]&4294901760|r[2]&65535,r[0]<<16|r[0]>>>16,r[2]&4294901760|r[3]&65535,r[1]<<16|r[1]>>>16,r[3]&4294901760|r[0]&65535];this._b=0;for(var i=0;i<4;i++)v.call(this);for(var i=0;i<8;i++)c[i]^=u[i+4&7];if(d){var m=d.words,n=m[0],s=m[1],x=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360,_=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,g=x>>>16|_&4294901760,y=_<<16|x&65535;c[0]^=x,c[1]^=g,c[2]^=_,c[3]^=y,c[4]^=x,c[5]^=g,c[6]^=_,c[7]^=y;for(var i=0;i<4;i++)v.call(this)}},_doProcessBlock:function(r,d){var i=this._X;v.call(this),l[0]=i[0]^i[5]>>>16^i[3]<<16,l[1]=i[2]^i[7]>>>16^i[5]<<16,l[2]=i[4]^i[1]>>>16^i[7]<<16,l[3]=i[6]^i[3]>>>16^i[1]<<16;for(var u=0;u<4;u++)l[u]=(l[u]<<8|l[u]>>>24)&16711935|(l[u]<<24|l[u]>>>8)&4278255360,r[d+u]^=l[u]},blockSize:128/32,ivSize:64/32});function v(){for(var r=this._X,d=this._C,i=0;i<8;i++)f[i]=d[i];d[0]=d[0]+1295307597+this._b|0,d[1]=d[1]+3545052371+(d[0]>>>0<f[0]>>>0?1:0)|0,d[2]=d[2]+886263092+(d[1]>>>0<f[1]>>>0?1:0)|0,d[3]=d[3]+1295307597+(d[2]>>>0<f[2]>>>0?1:0)|0,d[4]=d[4]+3545052371+(d[3]>>>0<f[3]>>>0?1:0)|0,d[5]=d[5]+886263092+(d[4]>>>0<f[4]>>>0?1:0)|0,d[6]=d[6]+1295307597+(d[5]>>>0<f[5]>>>0?1:0)|0,d[7]=d[7]+3545052371+(d[6]>>>0<f[6]>>>0?1:0)|0,this._b=d[7]>>>0<f[7]>>>0?1:0;for(var i=0;i<8;i++){var u=r[i]+d[i],c=u&65535,m=u>>>16,n=((c*c>>>17)+c*m>>>15)+m*m,s=((u&4294901760)*u|0)+((u&65535)*u|0);t[i]=n^s}r[0]=t[0]+(t[7]<<16|t[7]>>>16)+(t[6]<<16|t[6]>>>16)|0,r[1]=t[1]+(t[0]<<8|t[0]>>>24)+t[7]|0,r[2]=t[2]+(t[1]<<16|t[1]>>>16)+(t[0]<<16|t[0]>>>16)|0,r[3]=t[3]+(t[2]<<8|t[2]>>>24)+t[1]|0,r[4]=t[4]+(t[3]<<16|t[3]>>>16)+(t[2]<<16|t[2]>>>16)|0,r[5]=t[5]+(t[4]<<8|t[4]>>>24)+t[3]|0,r[6]=t[6]+(t[5]<<16|t[5]>>>16)+(t[4]<<16|t[4]>>>16)|0,r[7]=t[7]+(t[6]<<8|t[6]>>>24)+t[5]|0}o.Rabbit=B._createHelper(a)}(),h.Rabbit})}(me)),me.exports}var _e={exports:{}},ht;function Mn(){return ht||(ht=1,function(P,V){(function(h,o,C){P.exports=o(j(),_0(),g0(),m0(),r0())})(X,function(h){return function(){var o=h,C=o.lib,B=C.StreamCipher,F=o.algo,l=[],f=[],t=[],a=F.RabbitLegacy=B.extend({_doReset:function(){var r=this._key.words,d=this.cfg.iv,i=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16],u=this._C=[r[2]<<16|r[2]>>>16,r[0]&4294901760|r[1]&65535,r[3]<<16|r[3]>>>16,r[1]&4294901760|r[2]&65535,r[0]<<16|r[0]>>>16,r[2]&4294901760|r[3]&65535,r[1]<<16|r[1]>>>16,r[3]&4294901760|r[0]&65535];this._b=0;for(var c=0;c<4;c++)v.call(this);for(var c=0;c<8;c++)u[c]^=i[c+4&7];if(d){var m=d.words,n=m[0],s=m[1],x=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360,_=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,g=x>>>16|_&4294901760,y=_<<16|x&65535;u[0]^=x,u[1]^=g,u[2]^=_,u[3]^=y,u[4]^=x,u[5]^=g,u[6]^=_,u[7]^=y;for(var c=0;c<4;c++)v.call(this)}},_doProcessBlock:function(r,d){var i=this._X;v.call(this),l[0]=i[0]^i[5]>>>16^i[3]<<16,l[1]=i[2]^i[7]>>>16^i[5]<<16,l[2]=i[4]^i[1]>>>16^i[7]<<16,l[3]=i[6]^i[3]>>>16^i[1]<<16;for(var u=0;u<4;u++)l[u]=(l[u]<<8|l[u]>>>24)&16711935|(l[u]<<24|l[u]>>>8)&4278255360,r[d+u]^=l[u]},blockSize:128/32,ivSize:64/32});function v(){for(var r=this._X,d=this._C,i=0;i<8;i++)f[i]=d[i];d[0]=d[0]+1295307597+this._b|0,d[1]=d[1]+3545052371+(d[0]>>>0<f[0]>>>0?1:0)|0,d[2]=d[2]+886263092+(d[1]>>>0<f[1]>>>0?1:0)|0,d[3]=d[3]+1295307597+(d[2]>>>0<f[2]>>>0?1:0)|0,d[4]=d[4]+3545052371+(d[3]>>>0<f[3]>>>0?1:0)|0,d[5]=d[5]+886263092+(d[4]>>>0<f[4]>>>0?1:0)|0,d[6]=d[6]+1295307597+(d[5]>>>0<f[5]>>>0?1:0)|0,d[7]=d[7]+3545052371+(d[6]>>>0<f[6]>>>0?1:0)|0,this._b=d[7]>>>0<f[7]>>>0?1:0;for(var i=0;i<8;i++){var u=r[i]+d[i],c=u&65535,m=u>>>16,n=((c*c>>>17)+c*m>>>15)+m*m,s=((u&4294901760)*u|0)+((u&65535)*u|0);t[i]=n^s}r[0]=t[0]+(t[7]<<16|t[7]>>>16)+(t[6]<<16|t[6]>>>16)|0,r[1]=t[1]+(t[0]<<8|t[0]>>>24)+t[7]|0,r[2]=t[2]+(t[1]<<16|t[1]>>>16)+(t[0]<<16|t[0]>>>16)|0,r[3]=t[3]+(t[2]<<8|t[2]>>>24)+t[1]|0,r[4]=t[4]+(t[3]<<16|t[3]>>>16)+(t[2]<<16|t[2]>>>16)|0,r[5]=t[5]+(t[4]<<8|t[4]>>>24)+t[3]|0,r[6]=t[6]+(t[5]<<16|t[5]>>>16)+(t[4]<<16|t[4]>>>16)|0,r[7]=t[7]+(t[6]<<8|t[6]>>>24)+t[5]|0}o.RabbitLegacy=B._createHelper(a)}(),h.RabbitLegacy})}(_e)),_e.exports}var ge={exports:{}},pt;function jn(){return pt||(pt=1,function(P,V){(function(h,o,C){P.exports=o(j(),_0(),g0(),m0(),r0())})(X,function(h){return function(){var o=h,C=o.lib,B=C.BlockCipher,F=o.algo;const l=16,f=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],t
vendor: 11,033 bytes, line 14
14=[[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]]
14;var a={pbox:[],sbox:[]};function v(c,m){let n=m>>24&255,s=m>>16&255,x=m>>8&255,_=m&255,g=c.sbox[0][n]+c.sbox[1][s];return g=g^c.sbox[2][x],g=g+c.sbox[3][_],g}function r(c,m,n){let s=m,x=n,_;for(let g=0;g<l;++g)s=s^c.pbox[g],x=v(c,s)^x,_=s,s=x,x=_;return _=s,s=x,x=_,x=x^c.pbox[l],s=s^c.pbox[l+1],{left:s,right:x}}function d(c,m,n){let s=m,x=n,_;for(let g=l+1;g>1;--g)s=s^c.pbox[g],x=v(c,s)^x,_=s,s=x,x=_;return _=s,s=x,x=_,x=x^c.pbox[1],s=s^c.pbox[0],{left:s,right:x}}function i(c,m,n){for(let y=0;y<4;y++){c.sbox[y]=[];for(let A=0;A<256;A++)c.sbox[y][A]=t[y][A]}let s=0;for(let y=0;y<l+2;y++)c.pbox[y]=f[y]^m[s],s++,s>=n&&(s=0);let x=0,_=0,g=0;for(let y=0;y<l+2;y+=2)g=r(c,x,_),x=g.left,_=g.right,c.pbox[y]=x,c.pbox[y+1]=_;for(let y=0;y<4;y++)for(let A=0;A<256;A+=2)g=r(c,x,_),x=g.left,_=g.right,c.sbox[y][A]=x,c.sbox[y][A+1]=_;return!0}var u=F.Blowfish=B.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var c=this._keyPriorReset=this._key,m=c.words,n=c.sigBytes/4;i(a,m,n)}},encryptBlock:function(c,m){var n=r(a,c[m],c[m+1]);c[m]=n.left,c[m+1]=n.right},decryptBlock:function(c,m){var n=d(a,c[m],c[m+1]);c[m]=n.left,c[m+1]=n.right},blockSize:64/32,keySize:128/32,ivSize:64/32});o.Blowfish=B._createHelper(u)}(),h.Blowfish})}(ge)),ge.exports}(function(P,V){(function(h,o,C){P.exports=o(j(),I0(),An(),Fn(),_0(),Dn(),g0(),St(),Ce(),wn(),Ht(),kn(),$n(),Sn(),be(),Hn(),m0(),r0(),Rn(),zn(),Pn(),In(),Nn(),qn(),Ln(),Wn(),Tn(),Un(),Vn(),On(),Zn(),Kn(),Xn(),Mn(),jn())})(X,function(h){return h})})($t);var Gn=$t.exports;const mt=jt(Gn),Qn={class:"absolute top-4 right-0 mt-10 mr-4 z-20"},Yn={class:"p-4"},Jn={class:"flex items-start w-72"},ei={class:"flex-shrink-0"},ti={class:"ml-3 w-0 flex-1 pt-0.5"},ri={class:"text-sm font-medium"},ai={class:"mt-1 text-sm text-gray-900"},oi={class:"ml-4 flex flex-shrink-0"},si=["onClick"],ni=e("span",{class:"sr-only"},"Close",-1),ii=S0({__name:"NotificacionesGlobales",setup(P){const{notifications:V,removeNotification:h}=P0();function o(B){return{info:"bg-info",warning:"bg-warning",success:"bg-success",danger:"bg-danger"}[B]||""}const C=B=>{h(B)};return(B,F)=>(W(),T("div",Qn,[(W(!0),T(d0,null,f0(t0(V),l=>(W(),T("div",{key:l.message,class:"mb-4"}
14,[Y(Qt,{"enter-active-class":"transform ease-out duration-300 transition","enter-from-class":"translate-y-2 opacity-0","enter-to-class":"translate-y-0 opacity-100","leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:Gt(()=>[e("div",{class:k0(["pointer-events-auto max-w-sm overflow-hidden rounded-lg shadow-lg ring-1 ring-black ring-opacity-5",o(l.type)])},[e("div",Yn,[e("div",Jn,[e("div",ei,[Y(t0(vr),{class:"h-6 w-6","aria-hidden":"true"})]),e("div",ti,[e("p",ri,O(l.title),1),e("p",ai,O(l.message),1)]),e("div",oi,[e("button",{type:"button",onClick:f=>C(l),class:"inline-flex rounded-md bg-white opacity-60 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},[ni,Y(t0(xr),{class:"h-5 w-5","aria-hidden":"true"})],8,si)])])])],2)]),_:2},1024)]))),128))]))}}),xi=[{inputs:[{internalType:"string",name:"_solicitudId",type:"string"},{internalType:"string",name:"_checksum",type:"string"},{internalType:"string",name:"_empresaSolicitante",type:"string"},{internalType:"string",name:"_empresaGestora",type:"string"},{internalType:"uint256",name:"_cantidadResiduos",type:"uint256"},{internalType:"string",name:"_peso",type:"string"}],name:"emitirCertificado",outputs:[],stateMutability:"nonpayable",type:"function"}],ci={class:"flex flex-col w-full lg:flex-1 p-8 bg-white shadow-md bg-opacity-90"},li=e("div",{class:"mb-2"},[e("img",{class:"h-12 w-auto",src:Kt,alt:"Company Logo"})],-1),di={class:"flex flex-1 mt-5 justify-center"},fi={class:"w-full"},ui=e("h3",{class:"text-2xl text-primary"},"La siguiente información es solamente para EMPRESAS:",-1),vi=["innerHTML"],hi=e("h2",{class:"text-3xl text-primary"},"¿Qué acción te gustaría realizar?",-1),pi=e("p",{class:"text-base my-2 text-gray-850"},"Seleccione una opción a continuación para comenzar:",-1),mi={class:"w-full flex flex-wrap justify-center gap-4 text-xs"},_i=e("img",{src:lr,class:"h-24 w-auto my-6 text-white"},null,-1),gi=e("img",{src:dr,class:"h-28 w-auto my-6 text-white"},null,-1),Bi={class:"w-full flex flex-wrap justify-center gap-4 text-xs"},yi=e("img",{src:fr,class:"h-24 w-auto my-6 text-white"},null,-1),Ci=e("img",{src:ur,class:"h-24 w-auto my-6 text-white"},null,-1),bi={class:"flex flex-col w-full lg:flex-1 p-2"},Ei={key:0,class:"flex flex-col w-full lg:flex-1 p-8 bg-white bg-opacity-80"},Ai=e("h2",{class:"text-3xl text-primary"},"Valide el certificado",-1),Fi=e("p",{class:"text-sm mt-2 mb-10 text-gray-500"},"Sube un certificado para validar su autenticidad.",-1),Di={class:"w-full"},wi={class:"relative w-full"},ki=e("div",{class:"border border-dashed border-gray-500 text-center p-10 absolute top-0 right-0 left-0 m-auto text-gray-500"},[e("h4",null,[J(" Arrastre el certificado aquí"),e("br"),e("span",{class:"text-xs"},"(nuestros certificados siempre son en formato .pdf)"),e("br"),J("o ")]),e("p",{class:""},"Clic aquí para seleccionar un archivo")],-1),$i={key:0,class:"mt-10"},Si={class:"bg-green-50 border-l-4 border-green-400 p-4 rounded"},Hi=e("div",{class:"flex items-center"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2l4 -4m-6 4l2 -2m1 4V7m0 10h6a2 2 0 0 0 2 -2V9a2 2 0 0 0 -2 -2H7a2 2 0 0 0 -2 2v6a2 2 0 0 0 2 2h5z"})]),e("h3",{class:"ml-3 text-lg font-medium text-green-700"}," El certificado es válido ")],-1),Ri={class:"mt-3 text-sm text-gray-600 space-y-2"},zi=e("strong",null,"Firma:",-1),Pi=e("strong",null,"Certificado en la blockchain: ",-1),Ii=["href"],Ni=e("strong",null,"Proceso:",-1),qi=e("strong",null,"Consecutivo:",-1),Li=e("strong",null,"Solicitante:",-1),Wi=e("strong",null,"Gestionado por:",-1),Ti={class:"mt-8 bg-white shadow-md rounded-lg p-6 space-y-3"},Ui=e("h3",{class:"text-lg font-semibold text-gray-800"},"Cómo validar en la Blockchain",-1),Vi=e("p",{class:"text-sm text-gray-600"}," Para validar la información en la blockchain, sigue estos pasos: ",-1),Oi={class:"list-decimal list-inside text-sm text-gray-600 space-y-2"},Zi=e("li",null,[J(" Ingresa a la herramienta de decodificación: "),e("a",{href:"https://bia.is/tools/abi-decoder/",target:"_blank",class:"text-blue-600 hover:underline"}," https://bia.is/tools/abi-decoder/ ")],-1),Ki=e("span",{class:"font-semibold"},"ABI",-1),Xi={class:"mt-2 flex items-center space-x-2"},Mi=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2"}),e("path",{d:"M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z"})],-1),ji=e("li",null,[J(" Pega el "),e("span",{class:"font-semibold"},"Input Data"),J(" de la transacción en la herramienta. ")],-1),Gi=e("li",null," Decodifica y valida la información correspondiente al certificado. ",-1),Qi={key:1,class:"mt-10"},Yi=e("div",{class:"bg-red-50 border-l-4 border-red-400 p-4 rounded"},[e("h2",{class:"text-2xl"},"Documento no válido")],-1),Ji=[Yi],ex=e("svg",{class:"w-6 h-6",fill:"currentColor",viewBox:"0 0 24 24"},[e("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.
14198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893-.001-3.189-1.262-6.189-3.553-8.449"})],-1),tx=[ex],rx=Be('<div class="absolute -bottom-2 right-4 w-4 h-4 bg-white transform rotate-45 border-r border-b border-green-200"></div><div class="flex items-center space-x-3 mb-3"><div class="bg-green-100 p-2 rounded-full"><svg class="w-5 h-5 text-green-600" fill="currentColor" viewBox="0 0 24 24"><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893-.001-3.189-1.262-6.189-3.553-8.449"></path></svg></div><div><h3 class="text-sm font-semibold text-gray-800">¿Necesitas ayuda?</h3><p class="text-xs text-gray-600">Contáctanos por WhatsApp</p></div></div>',2),ax=e("svg",{class:"w-4 h-4 text-white",fill:"currentColor",viewBox:"0 0 24 24"},null,-1),ox=e("span",null,"Abrir WhatsApp",-1),sx=[ax,ox],Ix=S0({__name:"Home",setup(P){const V=M(""),h=M(),o=M(!1),C=M(!1),B=M({backgroundImage:`url('${new URL("/assets/background-R0-c13Yi.png",import.meta.url).href}')`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}),F=()=>{window.innerWidth>=1024&&window.scrollTo({top:0,behavior:"smooth"})},l=s=>{const x=s.target,_=x.files?x.files[0]:null;if(_){const g=new FileReader;g.onload=y=>{var p;const A=(p=y.target)==null?void 0:p.result,z=mt.lib.WordArray.create(A);V.value=mt.MD5(z).toString(),t()},g.readAsArrayBuffer(_)}},f=()=>{navigator.clipboard.writeText(JSON.stringify(xi)).then(()=>{C.value=!0,setTimeout(()=>{C.value=!1},2e3)}).catch(s=>console.error("Error al copiar:",s))},t=async()=>{try{const s=await bt.getCertificadByHash(V.value);s.data&&s.data.length>0?(h.value=s.data[0],o.value=!0):o.value=!1}catch(s){o.value=!1,console.error("Error al buscar certificados:",s)}},a=M([]);(async()=>{try{const s=await cr.listHome({parametro:"Home"});a.value=s.data}catch(s){console.error(s)}})();const r=s=>s.replace(/\/\//g,"<br><br>"),d=M(!1),i=M(!1),u=M(!1),c=M(!1),m=()=>{c.value=!c.value},n=()=>{const _=`https://wa.me/573166932811?text=${encodeURIComponent("Buenas tardes, deseo generar una solicitud de manera interna")}`;window.open(_,"_blank")};return(s,x)=>{var _,g,y,A,z,p,b;return W(),T("div",{class:"flex flex-col lg:flex-row min-h-screen",style:Yt(B.value)},[e("div",ci,[li,e("div",di,[e("div",fi,[ui,(W(!0),T(d0,null,f0(a.value,k=>(W(),T("p",{class:"text-base my-4 text-gray-850",innerHTML:r(k.valor??"Error al cargar el mensaje")},null,8,vi))),256)),hi,pi,e("div",mi,[e("button",{onClick:x[0]||(x[0]=k=>{i.value=!i.value,d.value=!1,u.value=!1,F()}),class:"group relative w-1/2 flex-1 flex flex-col justify-center items-center my-2 p-4 rounded-md text-white text-base bg-primary"},[_i,J(" Solicitud recolección de contenedor ")]),e("button",{onClick:x[1]||(x[1]=k=>{d.value=!d.value,i.value=!1,u.value=!1,F()}),class:"group relative w-1/2 flex-1 flex flex-col justify-center items-center my-2 p-4 rounded-md text-white text-base bg-primary"},[gi,J(" Solicitud de recolección de empresas (B2B) ")])]),e("div",Bi,[e("button",{onClick:x[2]||(x[2]=k=>{u.value=!u.value,d.value=!1,i.value=!1,F()}),class:"group relative w-1/2 flex-1 flex flex-col justify-center items-center my-2 p-4 rounded-md text-white text-base bg-primary"},[yi,J(" Descargar certificados ")]),e("button",{onClick:x[3]||(x[3]=k=>{m(),F()}),class:"group relative w-1/2 flex-1 flex flex-col justify-center items-center my-2 p-4 rounded-md text-white text-base bg-primary"},[Ci,J(" Validar Certificado ")])])])])]),e("div",bi,[Y(io,{show
14Form:d.value},null,8,["showForm"]),Y(tn,{showForm:i.value},null,8,["showForm"]),Y(yn,{showForm:u.value},null,8,["showForm"])]),c.value?(W(),T("div",Ei,[Ai,Fi,e("div",Di,[e("div",wi,[e("input",{type:"file",onChange:l,class:"cursor-pointer relative block opacity-0 w-full h-full p-20 z-50"},null,32),ki])]),o.value?(W(),T("div",$i,[e("div",Si,[Hi,e("div",Ri,[e("p",null,[zi,J(" "+O(V.value),1)]),e("p",null,[Pi,e("a",{href:"https://testnet.soniclabs.com/tx/"+((_=h.value)==null?void 0:_.cid),class:"text-blue-600 hover:underline",target:"_blank"},"Ver transacción",8,Ii)]),e("p",null,[Ni,J(" "+O((g=h.value)==null?void 0:g.tipo_solicitud),1)]),e("p",null,[qi,J(" "+O((y=h.value)==null?void 0:y.solicitud_id),1)]),e("p",null,[Li,J(" "+O((A=h.value)==null?void 0:A.solicitante_nit)+" - "+O((z=h.value)==null?void 0:z.solicitante_nombre),1)]),e("p",null,[Wi,J(" "+O((p=h.value)==null?void 0:p.gestor_nit)+" - "+O((b=h.value)==null?void 0:b.gestor_nombre),1)])])]),e("div",Ti,[Ui,Vi,e("ol",Oi,[Zi,e("li",null,[J(" Copia el "),Ki,J(" usando el botón a continuación: "),e("div",Xi,[e("button",{onClick:f,id:"copyAbi",class:"px-3 py-1 bg-green-600 text-white rounded text-sm hover:bg-green-700 flex items-center space-x-2"},[Mi,e("span",null,O(C.value?"¡Copiado!":"Copiar ABI"),1)])])]),ji,Gi])])])):Z("",!0),!o.value&&V.value!=""?(W(),T("div",Qi,Ji)):Z("",!0)])):Z("",!0),e("div",{class:"fixed bottom-20 right-2 z-50"},[e("div",{class:"relative group"},[e("button",{onClick:n,class:"w-12 h-12 flex items-center justify-center bg-green-500 text-white rounded-full shadow-lg hover:bg-green-600 transition-colors duration-200 group-hover:opacity-70","aria-label":"Abrir WhatsApp",title:"Abrir WhatsApp"},tx),e("div",{class:"absolute bottom-full right-0 mb-3 hidden group-hover:block"},[e("div",{class:"bg-white rounded-lg shadow-xl p-3 border border-green-200 relative min-w-[200px]"},[rx,e("button",{onClick:n,class:"w-full flex items-center justify-center space-x-2 px-4 py-2 bg-green-600 text-white text-sm font-medium rounded-lg hover:bg-green-700 transition duration-200"},sx)])])])]),Y(ii)],4)}}});export{Ix as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.