gbc-kyc-kit 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -21,7 +21,7 @@ import "../node_modules/gbc-kyc-kit/dist/style.css";
21
21
  You could customize all styles of components, just need make reference to the label of component as follows:
22
22
 
23
23
  **Important**
24
- Remember that you can use mode prop to turn between dark or light mode without change th styles.
24
+ Remember that you can use mode prop to turn between dark or light mode without change styles.
25
25
 
26
26
  ### CSS
27
27
 
@@ -92,7 +92,7 @@ async function getAccessToken() {
92
92
  ```
93
93
 
94
94
  **Important**
95
- If you use this components with TypeScript, you should create a customType.d.ts with:
95
+ If you use this components with TypeScript, you should create a customType.d.ts into src folder with:
96
96
  `declare module 'gbc-kyc-kit'`
97
97
 
98
98
  | Props | Type | Values | Description |
@@ -21692,7 +21692,7 @@ function LivenessCheck({
21692
21692
  }) : /* @__PURE__ */ jsx("face-liveness", {
21693
21693
  locale: "es",
21694
21694
  class: "liveness",
21695
- url: "https://faceapi.regulaforensics.com"
21695
+ url: "https://regula.globalbridgeconnections.com.py/"
21696
21696
  })]
21697
21697
  });
21698
21698
  }
@@ -1229,7 +1229,7 @@ attempted value: ${y}
1229
1229
  .ReactFlagsSelect-module_filterBox__3m8EU input:focus {
1230
1230
  outline: none; }
1231
1231
  `,D3={flagsSelect:"ReactFlagsSelect-module_flagsSelect__2pfa2",flagsSelectInline:"ReactFlagsSelect-module_flagsSelectInline__cUnnz",selectBtn:"ReactFlagsSelect-module_selectBtn__19wW7",disabledBtn:"ReactFlagsSelect-module_disabledBtn__3A4GF",label:"ReactFlagsSelect-module_label__27pw9",secondaryLabel:"ReactFlagsSelect-module_secondaryLabel__37t1D",selectValue:"ReactFlagsSelect-module_selectValue__152eS",selectOption:"ReactFlagsSelect-module_selectOption__3pcgW",selectFlag:"ReactFlagsSelect-module_selectFlag__2q5gC",selectOptionValue:"ReactFlagsSelect-module_selectOptionValue__vS99-",selectOptionWithlabel:"ReactFlagsSelect-module_selectOptionWithlabel__2GpmM",selectOptions:"ReactFlagsSelect-module_selectOptions__3LNBJ",selectOptionsWithSearch:"ReactFlagsSelect-module_selectOptionsWithSearch__1W03w",fullWidthOptions:"ReactFlagsSelect-module_fullWidthOptions__1XeR6",alignOptionsToRight:"ReactFlagsSelect-module_alignOptionsToRight__3Qvq2",filterBox:"ReactFlagsSelect-module_filterBox__3m8EU"};NC(PC);var BC="Select a country",VC="Search",HC=function(t){var i,l,u,c=t.className,y=t.selected,S=t.onSelect,z=t.selectButtonClassName,T=t.showSelectedLabel,N=T===void 0?!0:T,k=t.showSecondarySelectedLabel,K=k===void 0?!0:k,W=t.showOptionLabel,B=W===void 0?!0:W,I=t.showSecondaryOptionLabel,P=I===void 0?!0:I,j=t.selectedSize,R=j===void 0?16:j,i1=t.optionsSize,z1=i1===void 0?16:i1,S1=t.customLabels,h1=S1===void 0?{}:S1,w1=t.placeholder,R1=t.searchable,ae=R1===void 0?!1:R1,ze=t.searchPlaceholder,Q1=t.alignOptionsToRight,ne=Q1===void 0?!1:Q1,N1=t.countries,T1=t.blacklistCountries,P1=T1===void 0?!1:T1,fe=t.fullWidth,q1=fe===void 0?!0:fe,le=t.disabled,he=le===void 0?!1:le,Ce=t.id,E1=t.rfsKey,l1=E1===void 0?"rfs":E1,C1=a6(e.useState(!1),2),t1=C1[0],r1=C1[1],x1=a6(e.useState([]),2),o1=x1[0],y1=x1[1],_=a6(e.useState([]),2),$1=_[0],W1=_[1],Fe=a6(e.useState(""),2),me=Fe[0],ce=Fe[1],We=e.useRef(null),X=e.useRef(null),p1=e.useRef(null),d1=o1.includes(y)?y:"",F1=me?$1:o1,A1=function(te){return IC[te]},_1=function(){var te=_l(d1),o2=A1(te);return ee(o2,{})},Y1=function(te){return h1[te]||Xn[te]},k1=function(){return r1(!t1)},J1=function(te){ce(""),S(te)},Te=function(te){var o2=te.target.value||"";if(ce(o2),!o2){W1([]);return}var v3=o1.filter(function(F3){var k2,u2,B2=Y1(F3);return i6(B2)?Rn((k2=B2)===null||k2===void 0?void 0:k2.primary,o2)||Rn((u2=B2)===null||u2===void 0?void 0:u2.secondary,o2):Rn(B2,o2)});W1(v3)},ge=function(te){te.target!==We.current&&te.target!==X.current&&te.target!==p1.current&&r1(!1)},n2=function(te){te.preventDefault(),te.keyCode===27&&r1(!1)},De=function(te,o2){te.preventDefault(),te.keyCode===13?(J1(o2),r1(!1)):te.keyCode===27&&r1(!1)};e.useEffect(function(){y1(Aw(N1,P1))},[N1,P1]),e.useEffect(function(){return window.addEventListener("click",ge),function(){window.removeEventListener("click",ge)}},[]);var M2=Y1(d1),Ze=l1+"-btn";return F2("div",{className:v7(D3.flagsSelect,c,(i={},i[D3.flagsSelectInline]=!q1,i)),id:Ce,"data-testid":l1,children:[ee("button",{ref:We,id:Ze,type:"button",className:v7(D3.selectBtn,z,(l={},l[D3.disabledBtn]=he,l)),style:{fontSize:R},onClick:k1,onKeyUp:function(te){return n2(te)},disabled:he,"aria-labelledby":Ze,"aria-haspopup":"listbox","aria-expanded":t1,"data-testid":Ze,children:ee("span",{className:D3.selectValue,children:d1?F2(D4,{children:[ee("span",{className:D3.selectFlag,"data-testid":l1+"-selected-flag",children:_1()}),N&&ee("span",{className:D3.label,children:i6(M2)?M2.primary:M2}),K&&i6(M2)&&ee("span",{className:D3.secondaryLabel,children:M2.secondary})]}):ee(D4,{children:w1||BC})})}),!he&&t1&&F2("ul",{tabIndex:-1,role:"listbox",ref:X,style:{fontSize:z1},className:v7(D3.selectOptions,(u={},u[D3.selectOptionsWithSearch]=ae,u[D3.alignOptionsToRight]=ne,u[D3.fullWidthOptions]=q1,u)),children:[ae&&ee("div",{className:D3.filterBox,children:ee("input",{type:"text",name:l1+"-q",autoComplete:"off",value:me,placeholder:ze||VC,ref:p1,onChange:Te})}),F1.map(function(te){var o2,v3=_l(te),F3=A1(v3),k2=Y1(te);return ee("li",{id:l1+"-"+te,role:"option",tabIndex:0,className:v7(D3.selectOption,(o2={},o2[D3.selectOptionWithlabel]=B,o2)),onClick:function(){return J1(te)},onKeyUp:function(u2){return De(u2,te)},children:F2("span",{className:D3.selectOptionValue,children:[ee("span",{className:D3.selectFlag,children:ee(F3,{})}),B&&ee("span",{className:D3.label,children:i6(k2)?k2.primary:k2}),P&&i6(k2)&&ee("span",{className:D3.secondaryLabel,children:k2.secondary})]})},te)})]})]})};function $n({type:t,name:i,id:l,icon:u,error:c,label:y,...S}){let z="";const{options:T,placeholder:N,value:k,onChange:K}=S;return t==="select"?z=F2("div",{className:`custom-input-container ${c?"error":""}`,children:[F2("label",{className:`input-container ${u?"icon":""}`,children:[u&&u,F2("select",{name:i,id:l,...S,className:"custom-input",children:[ee("option",{hidden:!0,children:"Pa\xEDs"},"default"),T.map((W,B)=>ee("option",{value:W,children:W},B))]})]}),c&&ee("p",{className:"error",children:c.message})]}):t==="country"?z=ee("div",{className:`custom-input-container ${c?"error":""}`,children:ee(HC,{showOptionLabel:!0,className:"country-select",name:i,id:l,...S,fullWidth:!0,placeholder:"Pa\xEDs de nacimiento"})}):z=F2("div",{className:`custom-input-container ${c?"error":""}`,children:[F2("label",{className:`input-container ${u?"icon":""}`,children:[u&&u,ee("input",{type:t,name:i,id:l,value:k,onChange:K}),ee("div",{className:"filled-input active",children:N&&N})]}),c&&ee("p",{className:"error",children:c.message})]}),z}$n.defautProps={type:"text",name:"",id:""},$n.propTypes={type:x2.exports.PropTypes.string,name:x2.exports.PropTypes.string,id:x2.exports.PropTypes.string,icon:x2.exports.PropTypes.func};function g9({name:t,control:i,...l}){return ee(gc,{control:i,name:t,render:({field:{onChange:u,value:c}})=>ee($n,{onChange:u,value:c,...l})})}function er(){return ee("div",{id:"cover-spin"})}function jC({message:t}){return F2("div",{className:"success-container",children:[ee("div",{className:"success-checkmark",children:F2("div",{className:"check-icon",children:[ee("span",{className:"icon-line line-tip"}),ee("span",{className:"icon-line line-long"}),ee("div",{className:"icon-circle"}),ee("div",{className:"icon-fix"})]})}),ee("h5",{className:"",children:t})]})}function UC({message:t,status:i}){return F2("div",{className:"warning-container",children:[ee("div",{className:"sa",children:F2("div",{className:"sa-warning",children:[ee("div",{className:"sa-warning-body"}),ee("div",{className:"sa-warning-dot"})]})}),ee("h5",{className:"",children:t})]})}function WC({lists:t,handleReport:i}){function l(y){let S=y.replace(/[\[\]']+/g,"");return S=S.replace(/\w\S*/g,z=>z.charAt(0).toUpperCase()+z.substr(1).toLowerCase())}function u(y){let S="";const z=y.split(":");return z.length>1&&z.includes(" Address")&&(S=z[z.length-1]),S}const c=y=>{let S="";return y.map(z=>{let T=u(z);A5(T)||(S=T)}),S.replace(/[\[\]']+/g,"")};return ee("div",{className:"accordion",id:"accordionList",children:t.map((y,S)=>{const[z,T]=y[1].split(":");let N=c(y);return F2("div",{className:"accordion-item",children:[ee("h2",{className:"accordion-header",id:`heading-${S}`,children:ee("div",{className:"accordion-button collapsed",type:"","data-bs-toggle":"collapse","data-bs-target":`#collapse-${S}`,"aria-expanded":"false","aria-controls":`collapse-${S}`,children:F2("div",{className:"w-100",children:[ee("div",{children:l(T)}),F2("div",{className:"description",children:[F2("div",{children:[ee("b",{children:"Lista: "}),y[0]]}),!A5(N)&&F2("div",{className:"me-3",children:[ee("b",{children:"Pa\xEDs: "})," ",N]})]})]})})}),ee("div",{id:`collapse-${S}`,className:"accordion-collapse collapse","aria-labelledby":`heading-${S}`,"data-bs-parent":"#accordionList",children:ee("div",{className:"accordion-body",children:ee("code",{children:y.map((k,K)=>k)})})})]},S)})})}function tr({title:t,status:i,message:l,lists:u,complementarySearch:c,clearState:y,dataReq:S}){const z=["TOKEN","CLIENTID","MATCH","NOT_VERIFY","0",400,404,0,429,500],T=["ACCEPT","Success","FACER_OK"],[N,k]=e.useState({}),K=W=>{k(W)};return ee(D4,{children:A5(N)?F2(D4,{children:[z.includes(i)?ee(UC,{message:l}):T.includes(i)?ee(jC,{message:l}):null,!A5(u)&&ee(WC,{lists:u,handleReport:K}),c&&ee(v9,{className:"my-2 col-6",onClick:c,children:"Ampliar criterios de consulta"}),ee(v9,{className:"my-2 col-6",onClick:()=>y(),children:"Verificar nuevamente"})]}):ee(D4,{children:F2("div",{style:{width:"100%"},children:[ee("h4",{children:"Lista de sanciones"}),ee("p",{children:N[0]}),ee("div",{children:ee("ul",{style:{listStyleType:"none"},children:N.map((W,B)=>ee("li",{style:{textAlign:"left"},children:W},B))})})]})})})}function nr({mode:t,loader:i,icon:l,clientId:u,authorize:c,inProduction:y,...S}){const{onSendSubmitDocument:z,simpleHandleSubmit:T,isLoading:N,controlDoc:k,errorsDoc:K,status:W,message:B,listMatch:I,select:P,setSelect:j,clearState:R,complementarySearch:i1,dataReq:z1}=bw(u,c,y);return F2("div",{className:`kit-gbc ${t}`,children:[ee(t6,{position:"top-center",autoClose:5e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0}),N&&ee(er,{}),ee("form",{onSubmit:T(z),id:"blacklist",children:F2("div",{className:"sub",children:[ee("h4",{children:"Lista de sanciones y PEP's"}),A5(W)?F2(D4,{children:[ee("p",{children:"Ingrese al menos el primer nombre y apellido de la persona a consultar."}),ee(g9,{type:"text",name:"fname",placeholder:"Primer nombre",icon:l&&l,control:k,error:K.fname}),ee(g9,{type:"text",name:"sname",label:"Segundo nombre",placeholder:"Segundo nombre",icon:l&&l,control:k,error:K.sname}),ee(g9,{type:"text",name:"lname",label:"Primer apellido",placeholder:"Primer apellido",icon:l&&l,control:k,error:K.lname}),ee(g9,{type:"text",name:"slname",label:"Segundo apellido",placeholder:"Segundo apellido",icon:l&&l,control:k,error:K.slname}),ee(g9,{type:"date",name:"birthdate",label:"Fecha de nacimiento",placeholder:"Fecha de nacimiento",icon:l&&l,control:k,error:K.birthdate}),ee(g9,{type:"country",name:"country",customLabel:"Pa\xEDs de nacimiento",searchable:!0,searchPlaceholder:"Filtrar por pa\xEDs",onSelect:S1=>j(S1),selected:P,icon:l&&l,control:k,error:K.country}),ee(v9,{type:"submit",children:"Procesar"})]}):ee(tr,{status:W,message:B.message?B.message:B,lists:I,complementarySearch:i1,clearState:R,dataReq:z1})]})})]})}nr.defaultProps={mode:"light",loader:!1,inProduction:"prd"},nr.propTypes={mode:x2.exports.PropTypes.string,loader:x2.exports.PropTypes.bool,icon:x2.exports.PropTypes.func,clientId:x2.exports.PropTypes.string.isRequired,authorize:x2.exports.PropTypes.func.isRequired,inProduction:x2.exports.PropTypes.string};const GC=(t,i,l,u)=>{const[c,y]=e.useState({}),[S,z]=e.useState(""),[T,N]=e.useState(""),[k,K]=e.useState(!1),[W,B]=e.useState(i===void 0?"CLIENTID":l===void 0?"TOKEN":""),I=()=>{y({}),z(""),B("")},{handleSubmit:P}=_a();return{handleChangeDocument:i1=>{const z1=i1.target.files[0],S1=new FileReader;S1.addEventListener("load",()=>{const{result:h1}=S1;h1!=null&&(z(h1),y(z1.name))}),S1.readAsDataURL(z1)},onSendSubmitDocument:async()=>{var i1;K(!0);try{const z1=await l(),h1={method:"POST",path:"api/v1/kyc-kit/document/recognition",inProduction:u,customHeaders:{client_id:i,access_token:z1},bodyParams:{image:S}};try{const w1=await rn(h1);w1.data&&await t(w1.data);const{message:R1}=w1.data;R1&&B(R1),N("Documento verificado con \xE9xito")}catch(w1){let R1="";const{status:ae}=w1.response;(i1=w1.response.data)!=null&&i1.message?R1=w1.response.data.message:ae===500&&(R1="Limite de consultas - Verificar con el proveedor"),K(null),N(R1),B(ae),Jn(w1)}}catch{P2.error("Error - Verificar host con el proveedor")}finally{K(!1)}},simpleHandleSubmit:P,isLoading:k,docImage:c,status:W,message:T,clearState:I}},ZC=()=>F2("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 486.3 486.3",children:[ee("path",{d:"M395.5,135.8c-5.2-30.9-20.5-59.1-43.9-80.5c-26-23.8-59.8-36.9-95-36.9c-27.2,0-53.7,7.8-76.4,22.5\r c-18.9,12.2-34.6,28.7-45.7,48.1c-4.8-0.9-9.8-1.4-14.8-1.4c-42.5,0-77.1,34.6-77.1,77.1c0,5.5,0.6,10.8,1.6,16\r C16.7,200.7,0,232.9,0,267.2c0,27.7,10.3,54.6,29.1,75.9c19.3,21.8,44.8,34.7,72,36.2c0.3,0,0.5,0,0.8,0h86\r c7.5,0,13.5-6,13.5-13.5s-6-13.5-13.5-13.5h-85.6C61.4,349.8,27,310.9,27,267.1c0-28.3,15.2-54.7,39.7-69\r c5.7-3.3,8.1-10.2,5.9-16.4c-2-5.4-3-11.1-3-17.2c0-27.6,22.5-50.1,50.1-50.1c5.9,0,11.7,1,17.1,3c6.6,2.4,13.9-0.6,16.9-6.9\r c18.7-39.7,59.1-65.3,103-65.3c59,0,107.7,44.2,113.3,102.8c0.6,6.1,5.2,11,11.2,12c44.5,7.6,78.1,48.7,78.1,95.6\r c0,49.7-39.1,92.9-87.3,96.6h-73.7c-7.5,0-13.5,6-13.5,13.5s6,13.5,13.5,13.5h74.2c0.3,0,0.6,0,1,0c30.5-2.2,59-16.2,80.2-39.6\r c21.1-23.2,32.6-53,32.6-84C486.2,199.5,447.9,149.6,395.5,135.8z"}),ee("path",{d:"M324.2,280c5.3-5.3,5.3-13.8,0-19.1l-71.5-71.5c-2.5-2.5-6-4-9.5-4s-7,1.4-9.5,4l-71.5,71.5c-5.3,5.3-5.3,13.8,0,19.1\r c2.6,2.6,6.1,4,9.5,4s6.9-1.3,9.5-4l48.5-48.5v222.9c0,7.5,6,13.5,13.5,13.5s13.5-6,13.5-13.5V231.5l48.5,48.5\r C310.4,285.3,318.9,285.3,324.2,280z"})]});function rr({mode:t,dataDocument:i,clientId:l,authorize:u,inProduction:c}){const{onSendSubmitDocument:y,handleChangeDocument:S,simpleHandleSubmit:z,isLoading:T,docImage:N,status:k,message:K,clearState:W}=GC(i,l,u,c);return F2("div",{className:`kit-gbc ${t}`,children:[ee(t6,{position:"top-center",autoClose:5e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0}),T&&ee(er,{}),ee("form",{onSubmit:z(y),children:F2("div",{className:"sub",children:[ee("h4",{children:"Lectura del documento"}),A5(k)?F2(D4,{children:[ee("p",{children:"Utilice la c\xE1mara de su dispositivo para capturar una foto de su documento de identidad."}),F2("label",{className:"upload-document",children:[ee(ZC,{}),ee("p",{children:A5(N)?"Cargar documento":N}),ee("input",{type:"file",hidden:!0,accept:"image/*",capture:"camera",id:"docImage",onChange:B=>{S(B)}})]}),ee(v9,{type:"submit",children:"Procesar"})]}):ee(tr,{status:k,message:K,clearState:W})]})})]})}rr.defaultProps={mode:"light",loader:!1,inProduction:"prd"},rr.propTypes={mode:x2.exports.PropTypes.string,loader:x2.exports.PropTypes.bool,data:x2.exports.PropTypes.func,clientId:x2.exports.PropTypes.string.isRequired,authorize:x2.exports.PropTypes.func.isRequired,dataDocument:x2.exports.PropTypes.func.isRequired,inProduction:x2.exports.PropTypes.string};const qC=(t,i,l,u)=>{const[c,y]=e.useState(!1),[S,z]=e.useState(i===void 0?"CLIENTID":l===void 0?"TOKEN":""),[T,N]=e.useState(""),k=B=>{if(console.log(B.detail),B.detail&&B.detail.action==="PROCESS_FINISHED"){const{response:I}=B.detail.data,{code:P}=I;P===-1&&(z("NOT_VERIFY"),N("Error interno de aplicaci\xF3n, contactar con soporte!")),W(I)}},K=()=>{z(""),N("")},W=async B=>{y(!0);try{const I=await l(),j={method:"POST",path:"api/v1/kyc-kit/liveness/check",inProduction:u,customHeaders:{client_id:i,access_token:I}};try{const R=await rn(j);await t(B)}catch(R){let i1="";console.log(R);const{status:z1}=R.response;z1===500&&(i1="Limite de consultas - Verificar con el proveedor"),y(null),N(i1),z(z1),Jn(R)}}catch{P2.error("Error - Verificar host con el proveedor")}finally{y(!1)}};return{status:S,isLoading:c,listener:k,onSendSubmitLiveness:W,clearState:K,message:T}};var _e={},ar={exports:{}};(function(t,i){(function(l,u){var c="1.0.32",y="",S="?",z="function",T="undefined",N="object",k="string",K="major",W="model",B="name",I="type",P="vendor",j="version",R="architecture",i1="console",z1="mobile",S1="tablet",h1="smarttv",w1="wearable",R1="embedded",ae=350,ze="Amazon",Q1="Apple",ne="ASUS",N1="BlackBerry",T1="Browser",P1="Chrome",fe="Edge",q1="Firefox",le="Google",he="Huawei",Ce="LG",E1="Microsoft",l1="Motorola",C1="Opera",t1="Samsung",r1="Sharp",x1="Sony",o1="Xiaomi",y1="Zebra",_="Facebook",$1=function(J1,Te){var ge={};for(var n2 in J1)Te[n2]&&Te[n2].length%2===0?ge[n2]=Te[n2].concat(J1[n2]):ge[n2]=J1[n2];return ge},W1=function(J1){for(var Te={},ge=0;ge<J1.length;ge++)Te[J1[ge].toUpperCase()]=J1[ge];return Te},Fe=function(J1,Te){return typeof J1===k?me(Te).indexOf(me(J1))!==-1:!1},me=function(J1){return J1.toLowerCase()},ce=function(J1){return typeof J1===k?J1.replace(/[^\d\.]/g,y).split(".")[0]:u},We=function(J1,Te){if(typeof J1===k)return J1=J1.replace(/^\s\s*/,y).replace(/\s\s*$/,y),typeof Te===T?J1:J1.substring(0,ae)},X=function(J1,Te){for(var ge=0,n2,De,M2,Ze,te,o2;ge<Te.length&&!te;){var v3=Te[ge],F3=Te[ge+1];for(n2=De=0;n2<v3.length&&!te;)if(te=v3[n2++].exec(J1),te)for(M2=0;M2<F3.length;M2++)o2=te[++De],Ze=F3[M2],typeof Ze===N&&Ze.length>0?Ze.length===2?typeof Ze[1]==z?this[Ze[0]]=Ze[1].call(this,o2):this[Ze[0]]=Ze[1]:Ze.length===3?typeof Ze[1]===z&&!(Ze[1].exec&&Ze[1].test)?this[Ze[0]]=o2?Ze[1].call(this,o2,Ze[2]):u:this[Ze[0]]=o2?o2.replace(Ze[1],Ze[2]):u:Ze.length===4&&(this[Ze[0]]=o2?Ze[3].call(this,o2.replace(Ze[1],Ze[2])):u):this[Ze]=o2||u;ge+=2}},p1=function(J1,Te){for(var ge in Te)if(typeof Te[ge]===N&&Te[ge].length>0){for(var n2=0;n2<Te[ge].length;n2++)if(Fe(Te[ge][n2],J1))return ge===S?u:ge}else if(Fe(Te[ge],J1))return ge===S?u:ge;return J1},d1={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},F1={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},A1={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[j,[B,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[j,[B,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[B,j],[/opios[\/ ]+([\w\.]+)/i],[j,[B,C1+" Mini"]],[/\bopr\/([\w\.]+)/i],[j,[B,C1]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[B,j],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[j,[B,"UC"+T1]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[j,[B,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[j,[B,"WeChat"]],[/konqueror\/([\w\.]+)/i],[j,[B,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[j,[B,"IE"]],[/yabrowser\/([\w\.]+)/i],[j,[B,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[B,/(.+)/,"$1 Secure "+T1],j],[/\bfocus\/([\w\.]+)/i],[j,[B,q1+" Focus"]],[/\bopt\/([\w\.]+)/i],[j,[B,C1+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[j,[B,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[j,[B,"Dolphin"]],[/coast\/([\w\.]+)/i],[j,[B,C1+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[j,[B,"MIUI "+T1]],[/fxios\/([-\w\.]+)/i],[j,[B,q1]],[/\bqihu|(qi?ho?o?|360)browser/i],[[B,"360 "+T1]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[B,/(.+)/,"$1 "+T1],j],[/(comodo_dragon)\/([\w\.]+)/i],[[B,/_/g," "],j],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[B,j],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[B],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[B,_],j],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[B,j],[/\bgsa\/([\w\.]+) .*safari\//i],[j,[B,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[j,[B,P1+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[B,P1+" WebView"],j],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[j,[B,"Android "+T1]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[B,j],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[j,[B,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[j,B],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[B,[j,p1,d1]],[/(webkit|khtml)\/([\w\.]+)/i],[B,j],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[B,"Netscape"],j],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[j,[B,q1+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[B,j]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[R,"amd64"]],[/(ia32(?=;))/i],[[R,me]],[/((?:i[346]|x)86)[;\)]/i],[[R,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[R,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[R,"armhf"]],[/windows (ce|mobile); ppc;/i],[[R,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[R,/ower/,y,me]],[/(sun4\w)[;\)]/i],[[R,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[R,me]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[W,[P,t1],[I,S1]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[W,[P,t1],[I,z1]],[/\((ip(?:hone|od)[\w ]*);/i],[W,[P,Q1],[I,z1]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[W,[P,Q1],[I,S1]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[W,[P,he],[I,S1]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[W,[P,he],[I,z1]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[W,/_/g," "],[P,o1],[I,z1]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[W,/_/g," "],[P,o1],[I,S1]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[W,[P,"OPPO"],[I,z1]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[W,[P,"Vivo"],[I,z1]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[W,[P,"Realme"],[I,z1]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[W,[P,l1],[I,z1]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[W,[P,l1],[I,S1]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[W,[P,Ce],[I,S1]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[W,[P,Ce],[I,z1]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[W,[P,"Lenovo"],[I,S1]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[W,/_/g," "],[P,"Nokia"],[I,z1]],[/(pixel c)\b/i],[W,[P,le],[I,S1]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[W,[P,le],[I,z1]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[W,[P,x1],[I,z1]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[W,"Xperia Tablet"],[P,x1],[I,S1]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[W,[P,"OnePlus"],[I,z1]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[W,[P,ze],[I,S1]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[W,/(.+)/g,"Fire Phone $1"],[P,ze],[I,z1]],[/(playbook);[-\w\),; ]+(rim)/i],[W,P,[I,S1]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[W,[P,N1],[I,z1]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[W,[P,ne],[I,S1]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[W,[P,ne],[I,z1]],[/(nexus 9)/i],[W,[P,"HTC"],[I,S1]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[P,[W,/_/g," "],[I,z1]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[W,[P,"Acer"],[I,S1]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[W,[P,"Meizu"],[I,z1]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[W,[P,r1],[I,z1]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[P,W,[I,z1]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[P,W,[I,S1]],[/(surface duo)/i],[W,[P,E1],[I,S1]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[W,[P,"Fairphone"],[I,z1]],[/(u304aa)/i],[W,[P,"AT&T"],[I,z1]],[/\bsie-(\w*)/i],[W,[P,"Siemens"],[I,z1]],[/\b(rct\w+) b/i],[W,[P,"RCA"],[I,S1]],[/\b(venue[\d ]{2,7}) b/i],[W,[P,"Dell"],[I,S1]],[/\b(q(?:mv|ta)\w+) b/i],[W,[P,"Verizon"],[I,S1]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[W,[P,"Barnes & Noble"],[I,S1]],[/\b(tm\d{3}\w+) b/i],[W,[P,"NuVision"],[I,S1]],[/\b(k88) b/i],[W,[P,"ZTE"],[I,S1]],[/\b(nx\d{3}j) b/i],[W,[P,"ZTE"],[I,z1]],[/\b(gen\d{3}) b.+49h/i],[W,[P,"Swiss"],[I,z1]],[/\b(zur\d{3}) b/i],[W,[P,"Swiss"],[I,S1]],[/\b((zeki)?tb.*\b) b/i],[W,[P,"Zeki"],[I,S1]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[P,"Dragon Touch"],W,[I,S1]],[/\b(ns-?\w{0,9}) b/i],[W,[P,"Insignia"],[I,S1]],[/\b((nxa|next)-?\w{0,9}) b/i],[W,[P,"NextBook"],[I,S1]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[P,"Voice"],W,[I,z1]],[/\b(lvtel\-)?(v1[12]) b/i],[[P,"LvTel"],W,[I,z1]],[/\b(ph-1) /i],[W,[P,"Essential"],[I,z1]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[W,[P,"Envizen"],[I,S1]],[/\b(trio[-\w\. ]+) b/i],[W,[P,"MachSpeed"],[I,S1]],[/\btu_(1491) b/i],[W,[P,"Rotor"],[I,S1]],[/(shield[\w ]+) b/i],[W,[P,"Nvidia"],[I,S1]],[/(sprint) (\w+)/i],[P,W,[I,z1]],[/(kin\.[onetw]{3})/i],[[W,/\./g," "],[P,E1],[I,z1]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[W,[P,y1],[I,S1]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[W,[P,y1],[I,z1]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[P,W,[I,i1]],[/droid.+; (shield) bui/i],[W,[P,"Nvidia"],[I,i1]],[/(playstation [345portablevi]+)/i],[W,[P,x1],[I,i1]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[W,[P,E1],[I,i1]],[/smart-tv.+(samsung)/i],[P,[I,h1]],[/hbbtv.+maple;(\d+)/i],[[W,/^/,"SmartTV"],[P,t1],[I,h1]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[P,Ce],[I,h1]],[/(apple) ?tv/i],[P,[W,Q1+" TV"],[I,h1]],[/crkey/i],[[W,P1+"cast"],[P,le],[I,h1]],[/droid.+aft(\w)( bui|\))/i],[W,[P,ze],[I,h1]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[W,[P,r1],[I,h1]],[/(bravia[\w ]+)( bui|\))/i],[W,[P,x1],[I,h1]],[/(mitv-\w{5}) bui/i],[W,[P,o1],[I,h1]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[P,We],[W,We],[I,h1]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[I,h1]],[/((pebble))app/i],[P,W,[I,w1]],[/droid.+; (glass) \d/i],[W,[P,le],[I,w1]],[/droid.+; (wt63?0{2,3})\)/i],[W,[P,y1],[I,w1]],[/(quest( 2)?)/i],[W,[P,_],[I,w1]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[P,[I,R1]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[W,[I,z1]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[W,[I,S1]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[I,S1]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[I,z1]],[/(android[-\w\. ]{0,9});.+buil/i],[W,[P,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[j,[B,fe+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[j,[B,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[B,j],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[j,B]],os:[[/microsoft (windows) (vista|xp)/i],[B,j],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[B,[j,p1,F1]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[B,"Windows"],[j,p1,F1]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[j,/_/g,"."],[B,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[B,"Mac OS"],[j,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[j,B],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[B,j],[/\(bb(10);/i],[j,[B,N1]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[j,[B,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[j,[B,q1+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[j,[B,"webOS"]],[/crkey\/([\d\.]+)/i],[j,[B,P1+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[B,"Chromium OS"],j],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[B,j],[/(sunos) ?([\w\.\d]*)/i],[[B,"Solaris"],j],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[B,j]]},_1=function(J1,Te){if(typeof J1===N&&(Te=J1,J1=u),!(this instanceof _1))return new _1(J1,Te).getResult();var ge=J1||(typeof l!==T&&l.navigator&&l.navigator.userAgent?l.navigator.userAgent:y),n2=Te?$1(A1,Te):A1;return this.getBrowser=function(){var De={};return De[B]=u,De[j]=u,X.call(De,ge,n2.browser),De.major=ce(De.version),De},this.getCPU=function(){var De={};return De[R]=u,X.call(De,ge,n2.cpu),De},this.getDevice=function(){var De={};return De[P]=u,De[W]=u,De[I]=u,X.call(De,ge,n2.device),De},this.getEngine=function(){var De={};return De[B]=u,De[j]=u,X.call(De,ge,n2.engine),De},this.getOS=function(){var De={};return De[B]=u,De[j]=u,X.call(De,ge,n2.os),De},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return ge},this.setUA=function(De){return ge=typeof De===k&&De.length>ae?We(De,ae):De,this},this.setUA(ge),this};_1.VERSION=c,_1.BROWSER=W1([B,j,K]),_1.CPU=W1([R]),_1.DEVICE=W1([W,P,I,i1,z1,h1,S1,w1,R1]),_1.ENGINE=_1.OS=W1([B,j]),t.exports&&(i=t.exports=_1),i.UAParser=_1;var Y1=typeof l!==T&&(l.jQuery||l.Zepto);if(Y1&&!Y1.ua){var k1=new _1;Y1.ua=k1.getResult(),Y1.ua.get=function(){return k1.getUA()},Y1.ua.set=function(J1){k1.setUA(J1);var Te=k1.getResult();for(var ge in Te)Y1.ua[ge]=Te[ge]}}})(typeof window=="object"?window:R4)})(ar,ar.exports),Object.defineProperty(_e,"__esModule",{value:!0});function KC(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var f8=Ye.default,H2=KC(f8),zl=ar.exports,a4=new zl,p8=a4.getBrowser(),QC=a4.getCPU(),Mt=a4.getDevice(),ir=a4.getEngine(),i4=a4.getOS(),l6=a4.getUA(),Cl=function(i){return a4.setUA(i)},o6=function(i){if(!i){console.error("No userAgent string was provided");return}var l=new zl(i);return{UA:l,browser:l.getBrowser(),cpu:l.getCPU(),device:l.getDevice(),engine:l.getEngine(),os:l.getOS(),ua:l.getUA(),setUserAgent:function(c){return l.setUA(c)}}},Fl=Object.freeze({ClientUAInstance:a4,browser:p8,cpu:QC,device:Mt,engine:ir,os:i4,ua:l6,setUa:Cl,parseUserAgent:o6});function Ml(t,i){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);i&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),l.push.apply(l,u)}return l}function YC(t){for(var i=1;i<arguments.length;i++){var l=arguments[i]!=null?arguments[i]:{};i%2?Ml(Object(l),!0).forEach(function(u){RC(t,u,l[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):Ml(Object(l)).forEach(function(u){Object.defineProperty(t,u,Object.getOwnPropertyDescriptor(l,u))})}return t}function s6(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?s6=function(i){return typeof i}:s6=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},s6(t)}function JC(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}function Ll(t,i){for(var l=0;l<i.length;l++){var u=i[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function XC(t,i,l){return i&&Ll(t.prototype,i),l&&Ll(t,l),t}function RC(t,i,l){return i in t?Object.defineProperty(t,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[i]=l,t}function lr(){return lr=Object.assign||function(t){for(var i=1;i<arguments.length;i++){var l=arguments[i];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(t[u]=l[u])}return t},lr.apply(this,arguments)}function $C(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),i&&sr(t,i)}function or(t){return or=Object.setPrototypeOf?Object.getPrototypeOf:function(l){return l.__proto__||Object.getPrototypeOf(l)},or(t)}function sr(t,i){return sr=Object.setPrototypeOf||function(u,c){return u.__proto__=c,u},sr(t,i)}function eF(t,i){if(t==null)return{};var l={},u=Object.keys(t),c,y;for(y=0;y<u.length;y++)c=u[y],!(i.indexOf(c)>=0)&&(l[c]=t[c]);return l}function r0(t,i){if(t==null)return{};var l=eF(t,i),u,c;if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(t);for(c=0;c<y.length;c++)u=y[c],!(i.indexOf(u)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,u)||(l[u]=t[u]))}return l}function g7(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tF(t,i){if(i&&(typeof i=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return g7(t)}function nF(t,i){return rF(t)||aF(t,i)||iF(t,i)||lF()}function rF(t){if(Array.isArray(t))return t}function aF(t,i){var l=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(l!=null){var u=[],c=!0,y=!1,S,z;try{for(l=l.call(t);!(c=(S=l.next()).done)&&(u.push(S.value),!(i&&u.length===i));c=!0);}catch(T){y=!0,z=T}finally{try{!c&&l.return!=null&&l.return()}finally{if(y)throw z}}return u}}function iF(t,i){if(!!t){if(typeof t=="string")return Al(t,i);var l=Object.prototype.toString.call(t).slice(8,-1);if(l==="Object"&&t.constructor&&(l=t.constructor.name),l==="Map"||l==="Set")return Array.from(t);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return Al(t,i)}}function Al(t,i){(i==null||i>t.length)&&(i=t.length);for(var l=0,u=new Array(i);l<i;l++)u[l]=t[l];return u}function lF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1232
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var v8={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},et={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},y9={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},oF={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},sF=function(i){switch(i){case v8.Mobile:return{isMobile:!0};case v8.Tablet:return{isTablet:!0};case v8.SmartTv:return{isSmartTV:!0};case v8.Console:return{isConsole:!0};case v8.Wearable:return{isWearable:!0};case v8.Browser:return{isBrowser:!0};case v8.Embedded:return{isEmbedded:!0};default:return oF}},cF=function(i){return Cl(i)},$e=function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return i||l},cr=function(){return typeof window!="undefined"&&(window.navigator||navigator)?window.navigator||navigator:!1},ur=function(i){var l=cr();return l&&l.platform&&(l.platform.indexOf(i)!==-1||l.platform==="MacIntel"&&l.maxTouchPoints>1&&!window.MSStream)},uF=function(i,l,u,c,y){return{isBrowser:i,browserMajorVersion:$e(l.major),browserFullVersion:$e(l.version),browserName:$e(l.name),engineName:$e(u.name),engineVersion:$e(u.version),osName:$e(c.name),osVersion:$e(c.version),userAgent:$e(y)}},xl=function(i,l,u,c){return YC({},i,{vendor:$e(l.vendor),model:$e(l.model),os:$e(u.name),osVersion:$e(u.version),ua:$e(c)})},dF=function(i,l,u,c){return{isSmartTV:i,engineName:$e(l.name),engineVersion:$e(l.version),osName:$e(u.name),osVersion:$e(u.version),userAgent:$e(c)}},hF=function(i,l,u,c){return{isConsole:i,engineName:$e(l.name),engineVersion:$e(l.version),osName:$e(u.name),osVersion:$e(u.version),userAgent:$e(c)}},mF=function(i,l,u,c){return{isWearable:i,engineName:$e(l.name),engineVersion:$e(l.version),osName:$e(u.name),osVersion:$e(u.version),userAgent:$e(c)}},fF=function(i,l,u,c,y){return{isEmbedded:i,vendor:$e(l.vendor),model:$e(l.model),engineName:$e(u.name),engineVersion:$e(u.version),osName:$e(c.name),osVersion:$e(c.version),userAgent:$e(y)}};function pF(t){var i=t?o6(t):Fl,l=i.device,u=i.browser,c=i.engine,y=i.os,S=i.ua,z=sF(l.type),T=z.isBrowser,N=z.isMobile,k=z.isTablet,K=z.isSmartTV,W=z.isConsole,B=z.isWearable,I=z.isEmbedded;if(T)return uF(T,u,c,y,S);if(K)return dF(K,c,y,S);if(W)return hF(W,c,y,S);if(N||k)return xl(z,l,y,S);if(B)return mF(B,c,y,S);if(I)return fF(I,l,c,y,S)}var kl=function(i){var l=i.type;return l===v8.Mobile},Tl=function(i){var l=i.type;return l===v8.Tablet},Dl=function(i){var l=i.type;return l===v8.Mobile||l===v8.Tablet},Ol=function(i){var l=i.type;return l===v8.SmartTv},y7=function(i){var l=i.type;return l===v8.Browser},Il=function(i){var l=i.type;return l===v8.Wearable},Nl=function(i){var l=i.type;return l===v8.Console},Pl=function(i){var l=i.type;return l===v8.Embedded},Bl=function(i){var l=i.vendor;return $e(l)},Vl=function(i){var l=i.model;return $e(l)},Hl=function(i){var l=i.type;return $e(l,"browser")},jl=function(i){var l=i.name;return l===y9.Android},Ul=function(i){var l=i.name;return l===y9.Windows},Wl=function(i){var l=i.name;return l===y9.MAC_OS},Gl=function(i){var l=i.name;return l===y9.WindowsPhone},Zl=function(i){var l=i.name;return l===y9.IOS},ql=function(i){var l=i.version;return $e(l)},Kl=function(i){var l=i.name;return $e(l)},Ql=function(i){var l=i.name;return l===et.Chrome},Yl=function(i){var l=i.name;return l===et.Firefox},Jl=function(i){var l=i.name;return l===et.Chromium},E7=function(i){var l=i.name;return l===et.Edge},Xl=function(i){var l=i.name;return l===et.Yandex},Rl=function(i){var l=i.name;return l===et.Safari||l===et.MobileSafari},$l=function(i){var l=i.name;return l===et.MobileSafari},eo=function(i){var l=i.name;return l===et.Opera},to=function(i){var l=i.name;return l===et.InternetExplorer||l===et.Ie},no=function(i){var l=i.name;return l===et.MIUI},ro=function(i){var l=i.name;return l===et.SamsungBrowser},ao=function(i){var l=i.version;return $e(l)},io=function(i){var l=i.major;return $e(l)},lo=function(i){var l=i.name;return $e(l)},oo=function(i){var l=i.name;return $e(l)},so=function(i){var l=i.version;return $e(l)},co=function(){var i=cr(),l=i&&i.userAgent&&i.userAgent.toLowerCase();return typeof l=="string"?/electron/.test(l):!1},E9=function(i){return typeof i=="string"&&i.indexOf("Edg/")!==-1},uo=function(){var i=cr();return i&&(/iPad|iPhone|iPod/.test(i.platform)||i.platform==="MacIntel"&&i.maxTouchPoints>1)&&!window.MSStream},$0=function(){return ur("iPad")},ho=function(){return ur("iPhone")},mo=function(){return ur("iPod")},fo=function(i){return $e(i)};function po(t){var i=t||Fl,l=i.device,u=i.browser,c=i.os,y=i.engine,S=i.ua;return{isSmartTV:Ol(l),isConsole:Nl(l),isWearable:Il(l),isEmbedded:Pl(l),isMobileSafari:$l(u)||$0(),isChromium:Jl(u),isMobile:Dl(l)||$0(),isMobileOnly:kl(l),isTablet:Tl(l)||$0(),isBrowser:y7(l),isDesktop:y7(l),isAndroid:jl(c),isWinPhone:Gl(c),isIOS:Zl(c)||$0(),isChrome:Ql(u),isFirefox:Yl(u),isSafari:Rl(u),isOpera:eo(u),isIE:to(u),osVersion:ql(c),osName:Kl(c),fullBrowserVersion:ao(u),browserVersion:io(u),browserName:lo(u),mobileVendor:Bl(l),mobileModel:Vl(l),engineName:oo(y),engineVersion:so(y),getUA:fo(S),isEdge:E7(u)||E9(S),isYandex:Xl(u),deviceType:Hl(l),isIOS13:uo(),isIPad13:$0(),isIPhone13:ho(),isIPod13:mo(),isElectron:co(),isEdgeChromium:E9(S),isLegacyEdge:E7(u)&&!E9(S),isWindows:Ul(c),isMacOs:Wl(c),isMIUI:no(u),isSamsungBrowser:ro(u)}}var vo=Ol(Mt),go=Nl(Mt),yo=Il(Mt),vF=Pl(Mt),gF=$l(p8)||$0(),yF=Jl(p8),b7=Dl(Mt)||$0(),Eo=kl(Mt),bo=Tl(Mt)||$0(),wo=y7(Mt),EF=y7(Mt),So=jl(i4),_o=Gl(i4),zo=Zl(i4)||$0(),bF=Ql(p8),wF=Yl(p8),SF=Rl(p8),_F=eo(p8),Co=to(p8),zF=ql(i4),CF=Kl(i4),FF=ao(p8),MF=io(p8),LF=lo(p8),AF=Bl(Mt),xF=Vl(Mt),kF=oo(ir),TF=so(ir),DF=fo(l6),OF=E7(p8)||E9(l6),IF=Xl(p8),NF=Hl(Mt),PF=uo(),BF=$0(),VF=ho(),HF=mo(),jF=co(),UF=E9(l6),WF=E7(p8)&&!E9(l6),GF=Ul(i4),ZF=Wl(i4),qF=no(p8),KF=ro(p8),QF=function(i){if(!i||typeof i!="string"){console.error("No valid user agent string was provided");return}var l=o6(i),u=l.device,c=l.browser,y=l.os,S=l.engine,z=l.ua;return po({device:u,browser:c,os:y,engine:S,ua:z})},YF=function(i){var l=i.renderWithFragment,u=i.children,c=r0(i,["renderWithFragment","children"]);return So?l?H2.createElement(f8.Fragment,null,u):H2.createElement("div",c,u):null},JF=function(i){var l=i.renderWithFragment,u=i.children,c=r0(i,["renderWithFragment","children"]);return wo?l?H2.createElement(f8.Fragment,null,u):H2.createElement("div",c,u):null},XF=function(i){var l=i.renderWithFragment,u=i.children,c=r0(i,["renderWithFragment","children"]);return Co?l?H2.createElement(f8.Fragment,null,u):H2.createElement("div",c,u):null},RF=function(i){var l=i.renderWithFragment,u=i.children,c=r0(i,["renderWithFragment","children"]);return zo?l?H2.createElement(f8.Fragment,null,u):H2.createElement("div",c,u):null},$F=function(i){var l=i.renderWithFragment,u=i.children,c=r0(i,["renderWithFragment","children"]);return b7?l?H2.createElement(f8.Fragment,null,u):H2.createElement("div",c,u):null},eM=function(i){var l=i.renderWithFragment,u=i.children,c=r0(i,["renderWithFragment","children"]);return bo?l?H2.createElement(f8.Fragment,null,u):H2.createElement("div",c,u):null},tM=function(i){var l=i.renderWithFragment,u=i.children,c=r0(i,["renderWithFragment","children"]);return _o?l?H2.createElement(f8.Fragment,null,u):H2.createElement("div",c,u):null},nM=function(i){var l=i.renderWithFragment,u=i.children;i.viewClassName,i.style;var c=r0(i,["renderWithFragment","children","viewClassName","style"]);return Eo?l?H2.createElement(f8.Fragment,null,u):H2.createElement("div",c,u):null},rM=function(i){var l=i.renderWithFragment,u=i.children,c=r0(i,["renderWithFragment","children"]);return vo?l?H2.createElement(f8.Fragment,null,u):H2.createElement("div",c,u):null},aM=function(i){var l=i.renderWithFragment,u=i.children,c=r0(i,["renderWithFragment","children"]);return go?l?H2.createElement(f8.Fragment,null,u):H2.createElement("div",c,u):null},iM=function(i){var l=i.renderWithFragment,u=i.children,c=r0(i,["renderWithFragment","children"]);return yo?l?H2.createElement(f8.Fragment,null,u):H2.createElement("div",c,u):null},lM=function(i){var l=i.renderWithFragment,u=i.children;i.viewClassName,i.style;var c=i.condition,y=r0(i,["renderWithFragment","children","viewClassName","style","condition"]);return c?l?H2.createElement(f8.Fragment,null,u):H2.createElement("div",y,u):null};function oM(t){return function(i){$C(l,i);function l(u){var c;return JC(this,l),c=tF(this,or(l).call(this,u)),c.isEventListenerAdded=!1,c.handleOrientationChange=c.handleOrientationChange.bind(g7(c)),c.onOrientationChange=c.onOrientationChange.bind(g7(c)),c.onPageLoad=c.onPageLoad.bind(g7(c)),c.state={isLandscape:!1,isPortrait:!1},c}return XC(l,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var c=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:c===0,isLandscape:c===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window=="undefined"?"undefined":s6(window))!==void 0&&b7&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return H2.createElement(t,lr({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),l}(H2.Component)}function sM(){var t=f8.useState(function(){var y=window.innerWidth>window.innerHeight?90:0;return{isPortrait:y===0,isLandscape:y===90,orientation:y===0?"portrait":"landscape"}}),i=nF(t,2),l=i[0],u=i[1],c=f8.useCallback(function(){var y=window.innerWidth>window.innerHeight?90:0,S={isPortrait:y===0,isLandscape:y===90,orientation:y===0?"portrait":"landscape"};l.orientation!==S.orientation&&u(S)},[l.orientation]);return f8.useEffect(function(){return(typeof window=="undefined"?"undefined":s6(window))!==void 0&&b7&&(c(),window.addEventListener("load",c,!1),window.addEventListener("resize",c,!1)),function(){window.removeEventListener("resize",c,!1),window.removeEventListener("load",c,!1)}},[c]),l}function Fo(t){var i=t||window.navigator.userAgent;return o6(i)}function cM(t){var i=t||window.navigator.userAgent,l=Fo(i),u=po(l);return[u,l]}_e.AndroidView=YF,_e.BrowserTypes=et,_e.BrowserView=JF,_e.ConsoleView=aM,_e.CustomView=lM,_e.IEView=XF,_e.IOSView=RF,_e.MobileOnlyView=nM,_e.MobileView=$F,_e.OsTypes=y9,_e.SmartTVView=rM,_e.TabletView=eM,_e.WearableView=iM,_e.WinPhoneView=tM,_e.browserName=LF,_e.browserVersion=MF,_e.deviceDetect=pF,_e.deviceType=NF,_e.engineName=kF,_e.engineVersion=TF,_e.fullBrowserVersion=FF,_e.getSelectorsByUserAgent=QF,_e.getUA=DF,_e.isAndroid=So,_e.isBrowser=wo,_e.isChrome=bF,_e.isChromium=yF,_e.isConsole=go,_e.isDesktop=EF,_e.isEdge=OF,_e.isEdgeChromium=UF,_e.isElectron=jF,_e.isEmbedded=vF,_e.isFirefox=wF,_e.isIE=Co,_e.isIOS=zo,_e.isIOS13=PF,_e.isIPad13=BF,_e.isIPhone13=VF,_e.isIPod13=HF,_e.isLegacyEdge=WF,_e.isMIUI=qF,_e.isMacOs=ZF;var uM=_e.isMobile=b7;_e.isMobileOnly=Eo,_e.isMobileSafari=gF,_e.isOpera=_F,_e.isSafari=SF,_e.isSamsungBrowser=KF,_e.isSmartTV=vo,_e.isTablet=bo,_e.isWearable=yo,_e.isWinPhone=_o,_e.isWindows=GF,_e.isYandex=IF,_e.mobileModel=xF,_e.mobileVendor=AF,_e.osName=CF,_e.osVersion=zF,_e.parseUserAgent=o6,_e.setUserAgent=cF,_e.useDeviceData=Fo,_e.useDeviceSelectors=cM,_e.useMobileOrientation=sM,_e.withOrientationChange=oM;function dr({dataLiveness:t,mode:i,clientId:l,authorize:u,inProduction:c}){const{status:y,isLoading:S,listener:z,clearState:T,onSendSubmitLiveness:N,message:k}=qC(t,l,u,c);return e.useEffect(()=>{const K=document.getElementsByTagName("face-liveness")[0];K&&(uM&&(K.shadowRoot.lastChild.style.height="460px"),K.addEventListener("face-liveness",z))},[]),F2("div",{id:"liveness-check",className:`kit-gbc liveness-container ${i}`,children:[ee(t6,{position:"top-center",autoClose:5e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0}),S&&ee(er,{}),A5(y)?ee("face-liveness",{locale:"es",class:"liveness",url:"https://faceapi.regulaforensics.com"}):ee("div",{className:"sub",children:ee(tr,{status:y,message:k,clearState:T})})]})}dr.defaultProps={mode:"light",inProduction:"prd"},dr.propTypes={mode:x2.exports.PropTypes.string,clientId:x2.exports.PropTypes.string.isRequired,authorize:x2.exports.PropTypes.func.isRequired,dataLiveness:x2.exports.PropTypes.func.isRequired,inProduction:x2.exports.PropTypes.string};var AM="",dM={exports:{}};/*!
1232
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var v8={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},et={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},y9={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},oF={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},sF=function(i){switch(i){case v8.Mobile:return{isMobile:!0};case v8.Tablet:return{isTablet:!0};case v8.SmartTv:return{isSmartTV:!0};case v8.Console:return{isConsole:!0};case v8.Wearable:return{isWearable:!0};case v8.Browser:return{isBrowser:!0};case v8.Embedded:return{isEmbedded:!0};default:return oF}},cF=function(i){return Cl(i)},$e=function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return i||l},cr=function(){return typeof window!="undefined"&&(window.navigator||navigator)?window.navigator||navigator:!1},ur=function(i){var l=cr();return l&&l.platform&&(l.platform.indexOf(i)!==-1||l.platform==="MacIntel"&&l.maxTouchPoints>1&&!window.MSStream)},uF=function(i,l,u,c,y){return{isBrowser:i,browserMajorVersion:$e(l.major),browserFullVersion:$e(l.version),browserName:$e(l.name),engineName:$e(u.name),engineVersion:$e(u.version),osName:$e(c.name),osVersion:$e(c.version),userAgent:$e(y)}},xl=function(i,l,u,c){return YC({},i,{vendor:$e(l.vendor),model:$e(l.model),os:$e(u.name),osVersion:$e(u.version),ua:$e(c)})},dF=function(i,l,u,c){return{isSmartTV:i,engineName:$e(l.name),engineVersion:$e(l.version),osName:$e(u.name),osVersion:$e(u.version),userAgent:$e(c)}},hF=function(i,l,u,c){return{isConsole:i,engineName:$e(l.name),engineVersion:$e(l.version),osName:$e(u.name),osVersion:$e(u.version),userAgent:$e(c)}},mF=function(i,l,u,c){return{isWearable:i,engineName:$e(l.name),engineVersion:$e(l.version),osName:$e(u.name),osVersion:$e(u.version),userAgent:$e(c)}},fF=function(i,l,u,c,y){return{isEmbedded:i,vendor:$e(l.vendor),model:$e(l.model),engineName:$e(u.name),engineVersion:$e(u.version),osName:$e(c.name),osVersion:$e(c.version),userAgent:$e(y)}};function pF(t){var i=t?o6(t):Fl,l=i.device,u=i.browser,c=i.engine,y=i.os,S=i.ua,z=sF(l.type),T=z.isBrowser,N=z.isMobile,k=z.isTablet,K=z.isSmartTV,W=z.isConsole,B=z.isWearable,I=z.isEmbedded;if(T)return uF(T,u,c,y,S);if(K)return dF(K,c,y,S);if(W)return hF(W,c,y,S);if(N||k)return xl(z,l,y,S);if(B)return mF(B,c,y,S);if(I)return fF(I,l,c,y,S)}var kl=function(i){var l=i.type;return l===v8.Mobile},Tl=function(i){var l=i.type;return l===v8.Tablet},Dl=function(i){var l=i.type;return l===v8.Mobile||l===v8.Tablet},Ol=function(i){var l=i.type;return l===v8.SmartTv},y7=function(i){var l=i.type;return l===v8.Browser},Il=function(i){var l=i.type;return l===v8.Wearable},Nl=function(i){var l=i.type;return l===v8.Console},Pl=function(i){var l=i.type;return l===v8.Embedded},Bl=function(i){var l=i.vendor;return $e(l)},Vl=function(i){var l=i.model;return $e(l)},Hl=function(i){var l=i.type;return $e(l,"browser")},jl=function(i){var l=i.name;return l===y9.Android},Ul=function(i){var l=i.name;return l===y9.Windows},Wl=function(i){var l=i.name;return l===y9.MAC_OS},Gl=function(i){var l=i.name;return l===y9.WindowsPhone},Zl=function(i){var l=i.name;return l===y9.IOS},ql=function(i){var l=i.version;return $e(l)},Kl=function(i){var l=i.name;return $e(l)},Ql=function(i){var l=i.name;return l===et.Chrome},Yl=function(i){var l=i.name;return l===et.Firefox},Jl=function(i){var l=i.name;return l===et.Chromium},E7=function(i){var l=i.name;return l===et.Edge},Xl=function(i){var l=i.name;return l===et.Yandex},Rl=function(i){var l=i.name;return l===et.Safari||l===et.MobileSafari},$l=function(i){var l=i.name;return l===et.MobileSafari},eo=function(i){var l=i.name;return l===et.Opera},to=function(i){var l=i.name;return l===et.InternetExplorer||l===et.Ie},no=function(i){var l=i.name;return l===et.MIUI},ro=function(i){var l=i.name;return l===et.SamsungBrowser},ao=function(i){var l=i.version;return $e(l)},io=function(i){var l=i.major;return $e(l)},lo=function(i){var l=i.name;return $e(l)},oo=function(i){var l=i.name;return $e(l)},so=function(i){var l=i.version;return $e(l)},co=function(){var i=cr(),l=i&&i.userAgent&&i.userAgent.toLowerCase();return typeof l=="string"?/electron/.test(l):!1},E9=function(i){return typeof i=="string"&&i.indexOf("Edg/")!==-1},uo=function(){var i=cr();return i&&(/iPad|iPhone|iPod/.test(i.platform)||i.platform==="MacIntel"&&i.maxTouchPoints>1)&&!window.MSStream},$0=function(){return ur("iPad")},ho=function(){return ur("iPhone")},mo=function(){return ur("iPod")},fo=function(i){return $e(i)};function po(t){var i=t||Fl,l=i.device,u=i.browser,c=i.os,y=i.engine,S=i.ua;return{isSmartTV:Ol(l),isConsole:Nl(l),isWearable:Il(l),isEmbedded:Pl(l),isMobileSafari:$l(u)||$0(),isChromium:Jl(u),isMobile:Dl(l)||$0(),isMobileOnly:kl(l),isTablet:Tl(l)||$0(),isBrowser:y7(l),isDesktop:y7(l),isAndroid:jl(c),isWinPhone:Gl(c),isIOS:Zl(c)||$0(),isChrome:Ql(u),isFirefox:Yl(u),isSafari:Rl(u),isOpera:eo(u),isIE:to(u),osVersion:ql(c),osName:Kl(c),fullBrowserVersion:ao(u),browserVersion:io(u),browserName:lo(u),mobileVendor:Bl(l),mobileModel:Vl(l),engineName:oo(y),engineVersion:so(y),getUA:fo(S),isEdge:E7(u)||E9(S),isYandex:Xl(u),deviceType:Hl(l),isIOS13:uo(),isIPad13:$0(),isIPhone13:ho(),isIPod13:mo(),isElectron:co(),isEdgeChromium:E9(S),isLegacyEdge:E7(u)&&!E9(S),isWindows:Ul(c),isMacOs:Wl(c),isMIUI:no(u),isSamsungBrowser:ro(u)}}var vo=Ol(Mt),go=Nl(Mt),yo=Il(Mt),vF=Pl(Mt),gF=$l(p8)||$0(),yF=Jl(p8),b7=Dl(Mt)||$0(),Eo=kl(Mt),bo=Tl(Mt)||$0(),wo=y7(Mt),EF=y7(Mt),So=jl(i4),_o=Gl(i4),zo=Zl(i4)||$0(),bF=Ql(p8),wF=Yl(p8),SF=Rl(p8),_F=eo(p8),Co=to(p8),zF=ql(i4),CF=Kl(i4),FF=ao(p8),MF=io(p8),LF=lo(p8),AF=Bl(Mt),xF=Vl(Mt),kF=oo(ir),TF=so(ir),DF=fo(l6),OF=E7(p8)||E9(l6),IF=Xl(p8),NF=Hl(Mt),PF=uo(),BF=$0(),VF=ho(),HF=mo(),jF=co(),UF=E9(l6),WF=E7(p8)&&!E9(l6),GF=Ul(i4),ZF=Wl(i4),qF=no(p8),KF=ro(p8),QF=function(i){if(!i||typeof i!="string"){console.error("No valid user agent string was provided");return}var l=o6(i),u=l.device,c=l.browser,y=l.os,S=l.engine,z=l.ua;return po({device:u,browser:c,os:y,engine:S,ua:z})},YF=function(i){var l=i.renderWithFragment,u=i.children,c=r0(i,["renderWithFragment","children"]);return So?l?H2.createElement(f8.Fragment,null,u):H2.createElement("div",c,u):null},JF=function(i){var l=i.renderWithFragment,u=i.children,c=r0(i,["renderWithFragment","children"]);return wo?l?H2.createElement(f8.Fragment,null,u):H2.createElement("div",c,u):null},XF=function(i){var l=i.renderWithFragment,u=i.children,c=r0(i,["renderWithFragment","children"]);return Co?l?H2.createElement(f8.Fragment,null,u):H2.createElement("div",c,u):null},RF=function(i){var l=i.renderWithFragment,u=i.children,c=r0(i,["renderWithFragment","children"]);return zo?l?H2.createElement(f8.Fragment,null,u):H2.createElement("div",c,u):null},$F=function(i){var l=i.renderWithFragment,u=i.children,c=r0(i,["renderWithFragment","children"]);return b7?l?H2.createElement(f8.Fragment,null,u):H2.createElement("div",c,u):null},eM=function(i){var l=i.renderWithFragment,u=i.children,c=r0(i,["renderWithFragment","children"]);return bo?l?H2.createElement(f8.Fragment,null,u):H2.createElement("div",c,u):null},tM=function(i){var l=i.renderWithFragment,u=i.children,c=r0(i,["renderWithFragment","children"]);return _o?l?H2.createElement(f8.Fragment,null,u):H2.createElement("div",c,u):null},nM=function(i){var l=i.renderWithFragment,u=i.children;i.viewClassName,i.style;var c=r0(i,["renderWithFragment","children","viewClassName","style"]);return Eo?l?H2.createElement(f8.Fragment,null,u):H2.createElement("div",c,u):null},rM=function(i){var l=i.renderWithFragment,u=i.children,c=r0(i,["renderWithFragment","children"]);return vo?l?H2.createElement(f8.Fragment,null,u):H2.createElement("div",c,u):null},aM=function(i){var l=i.renderWithFragment,u=i.children,c=r0(i,["renderWithFragment","children"]);return go?l?H2.createElement(f8.Fragment,null,u):H2.createElement("div",c,u):null},iM=function(i){var l=i.renderWithFragment,u=i.children,c=r0(i,["renderWithFragment","children"]);return yo?l?H2.createElement(f8.Fragment,null,u):H2.createElement("div",c,u):null},lM=function(i){var l=i.renderWithFragment,u=i.children;i.viewClassName,i.style;var c=i.condition,y=r0(i,["renderWithFragment","children","viewClassName","style","condition"]);return c?l?H2.createElement(f8.Fragment,null,u):H2.createElement("div",y,u):null};function oM(t){return function(i){$C(l,i);function l(u){var c;return JC(this,l),c=tF(this,or(l).call(this,u)),c.isEventListenerAdded=!1,c.handleOrientationChange=c.handleOrientationChange.bind(g7(c)),c.onOrientationChange=c.onOrientationChange.bind(g7(c)),c.onPageLoad=c.onPageLoad.bind(g7(c)),c.state={isLandscape:!1,isPortrait:!1},c}return XC(l,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var c=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:c===0,isLandscape:c===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window=="undefined"?"undefined":s6(window))!==void 0&&b7&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return H2.createElement(t,lr({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),l}(H2.Component)}function sM(){var t=f8.useState(function(){var y=window.innerWidth>window.innerHeight?90:0;return{isPortrait:y===0,isLandscape:y===90,orientation:y===0?"portrait":"landscape"}}),i=nF(t,2),l=i[0],u=i[1],c=f8.useCallback(function(){var y=window.innerWidth>window.innerHeight?90:0,S={isPortrait:y===0,isLandscape:y===90,orientation:y===0?"portrait":"landscape"};l.orientation!==S.orientation&&u(S)},[l.orientation]);return f8.useEffect(function(){return(typeof window=="undefined"?"undefined":s6(window))!==void 0&&b7&&(c(),window.addEventListener("load",c,!1),window.addEventListener("resize",c,!1)),function(){window.removeEventListener("resize",c,!1),window.removeEventListener("load",c,!1)}},[c]),l}function Fo(t){var i=t||window.navigator.userAgent;return o6(i)}function cM(t){var i=t||window.navigator.userAgent,l=Fo(i),u=po(l);return[u,l]}_e.AndroidView=YF,_e.BrowserTypes=et,_e.BrowserView=JF,_e.ConsoleView=aM,_e.CustomView=lM,_e.IEView=XF,_e.IOSView=RF,_e.MobileOnlyView=nM,_e.MobileView=$F,_e.OsTypes=y9,_e.SmartTVView=rM,_e.TabletView=eM,_e.WearableView=iM,_e.WinPhoneView=tM,_e.browserName=LF,_e.browserVersion=MF,_e.deviceDetect=pF,_e.deviceType=NF,_e.engineName=kF,_e.engineVersion=TF,_e.fullBrowserVersion=FF,_e.getSelectorsByUserAgent=QF,_e.getUA=DF,_e.isAndroid=So,_e.isBrowser=wo,_e.isChrome=bF,_e.isChromium=yF,_e.isConsole=go,_e.isDesktop=EF,_e.isEdge=OF,_e.isEdgeChromium=UF,_e.isElectron=jF,_e.isEmbedded=vF,_e.isFirefox=wF,_e.isIE=Co,_e.isIOS=zo,_e.isIOS13=PF,_e.isIPad13=BF,_e.isIPhone13=VF,_e.isIPod13=HF,_e.isLegacyEdge=WF,_e.isMIUI=qF,_e.isMacOs=ZF;var uM=_e.isMobile=b7;_e.isMobileOnly=Eo,_e.isMobileSafari=gF,_e.isOpera=_F,_e.isSafari=SF,_e.isSamsungBrowser=KF,_e.isSmartTV=vo,_e.isTablet=bo,_e.isWearable=yo,_e.isWinPhone=_o,_e.isWindows=GF,_e.isYandex=IF,_e.mobileModel=xF,_e.mobileVendor=AF,_e.osName=CF,_e.osVersion=zF,_e.parseUserAgent=o6,_e.setUserAgent=cF,_e.useDeviceData=Fo,_e.useDeviceSelectors=cM,_e.useMobileOrientation=sM,_e.withOrientationChange=oM;function dr({dataLiveness:t,mode:i,clientId:l,authorize:u,inProduction:c}){const{status:y,isLoading:S,listener:z,clearState:T,onSendSubmitLiveness:N,message:k}=qC(t,l,u,c);return e.useEffect(()=>{const K=document.getElementsByTagName("face-liveness")[0];K&&(uM&&(K.shadowRoot.lastChild.style.height="460px"),K.addEventListener("face-liveness",z))},[]),F2("div",{id:"liveness-check",className:`kit-gbc liveness-container ${i}`,children:[ee(t6,{position:"top-center",autoClose:5e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0}),S&&ee(er,{}),A5(y)?ee("face-liveness",{locale:"es",class:"liveness",url:"https://regula.globalbridgeconnections.com.py/"}):ee("div",{className:"sub",children:ee(tr,{status:y,message:k,clearState:T})})]})}dr.defaultProps={mode:"light",inProduction:"prd"},dr.propTypes={mode:x2.exports.PropTypes.string,clientId:x2.exports.PropTypes.string.isRequired,authorize:x2.exports.PropTypes.func.isRequired,dataLiveness:x2.exports.PropTypes.func.isRequired,inProduction:x2.exports.PropTypes.string};var AM="",dM={exports:{}};/*!
1233
1233
  * Bootstrap v5.2.0 (https://getbootstrap.com/)
1234
1234
  * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
1235
1235
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gbc-kyc-kit",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Componentes para el desarrollo de un Onboarding",
5
5
  "license": "MIT",
6
6
  "author": "Global Bridge Connections",