str="Failed to construct 'IntersectionObserver': Failed to read the 'root' property from 'IntersectionObserverInit': The provided value is not of type '(null or ReactNativeElement)";
tmp8=new.target;
typeError2=newTypeError("Failed to construct 'IntersectionObserver': Failed to read the 'root' property from 'IntersectionObserverInit': The provided value is not of type '(null or ReactNativeElement)");
tmp10=typeError2;
throwtypeError2;
}
}
if(null!=arg1){
str2="delay";
if("delay"inarg1){
_Error3=Error;
tmp49=new.target;
str15="Failed to construct 'IntersectionObserver': The 'delay' option is not supported.";
tmp50=new.target;
error=newError("Failed to construct 'IntersectionObserver': The 'delay' option is not supported.");
tmp52=error;
throwerror;
}
}
if(null!=arg1){
str3="scrollMargin";
if("scrollMargin"inarg1){
_Error2=Error;
tmp45=new.target;
str14="Failed to construct 'IntersectionObserver': The 'scrollMargin' option is not supported.";
tmp46=new.target;
error1=newError("Failed to construct 'IntersectionObserver': The 'scrollMargin' option is not supported.");
tmp48=error1;
throwerror1;
}
}
if(null!=arg1){
str4="trackVisibility";
if("trackVisibility"inarg1){
_Error=Error;
tmp41=new.target;
str13="Failed to construct 'IntersectionObserver': The 'trackVisibility' option is not supported.";
tmp42=new.target;
error2=newError("Failed to construct 'IntersectionObserver': The 'trackVisibility' option is not supported.");
tmp44=error2;
throwerror2;
}
}
self._callback=global;
rnRootThreshold=undefined;
if(arg1!=null){
rnRootThreshold=arg1.rnRootThreshold;
}
_Array=Array;
tmp12=rnRootThreshold;
if(Array.isArray(rnRootThreshold)){
mapped=rnRootThreshold.map((arg0)=>{
lettmp=null;
if(null!=arg0){
const_Number=Number;
constNumberResult=Number(arg0);
const_Number2=Number;
if(Number.isFinite(NumberResult)){
if(NumberResult>=0){
tmp=NumberResult;
}
const_RangeError=RangeError;
constrangeError=newRangeError("Failed to construct 'IntersectionObserver': Threshold values must be numbers between 0 and 1");
throwrangeError;
}else{
const_TypeError=TypeError;
const_HermesInternal=HermesInternal;
consttypeError=newTypeError("Failed to read the '"+"rnRootThreshold"+"' property from 'IntersectionObserverInit': The provided double value is non-finite.");
throwtypeError;
}
}
returntmp;
});
found=mapped.filter((arg0)=>null!=arg0);
sorted=found.sort();
num3=0;
tmp24=null;
if(0!==sorted.length){
tmp24=sorted;
}
tmp23=tmp24;
}else{
tmp13=null;
if(null!=rnRootThreshold){
_Number=Number;
NumberResult=Number(rnRootThreshold);
_Number2=Number;
if(Number.isFinite(NumberResult)){
num=0;
if(NumberResult>=0){
num2=1;
tmp13=NumberResult;
}
_RangeError=RangeError;
tmp19=new.target;
str8="Failed to construct 'IntersectionObserver': Threshold values must be numbers between 0 and 1";
tmp20=new.target;
rangeError=newRangeError("Failed to construct 'IntersectionObserver': Threshold values must be numbers between 0 and 1");
tmp22=rangeError;
throwrangeError;
}else{
_TypeError2=TypeError;
_HermesInternal=HermesInternal;
str5="' property from 'IntersectionObserverInit': The provided double value is non-finite.";
str6="rnRootThreshold";
str7="Failed to read the '";
tmp15=new.target;
tmp16=new.target;
typeError3=newTypeError("Failed to read the '"+"rnRootThreshold"+"' property from 'IntersectionObserverInit': The provided double value is non-finite.");
tmp18=typeError3;
throwtypeError3;
}
}
tmp23=null;
if(null!=tmp13){
items=[];
items[0]=tmp13;
tmp23=items;
}
}
self._rootThresholds=tmp23;
threshold=undefined;
if(arg1!=null){
threshold=arg1.threshold;
}
tmp26=null!=self._rootThresholds;
_Array2=Array;
mapped1=threshold;
if(Array.isArray(threshold)){
num6=0;
if(mapped1.length>0){
mapped1=mapped1.map((arg0)=>{
lettmp=null;
if(null!=arg0){
const_Number=Number;
constNumberResult=Number(arg0);
const_Number2=Number;
if(Number.isFinite(NumberResult)){
if(NumberResult>=0){
tmp=NumberResult;
}
const_RangeError=RangeError;
constrangeError=newRangeError("Failed to construct 'IntersectionObserver': Threshold values must be numbers between 0 and 1");
throwrangeError;
}else{
const_TypeError=TypeError;
const_HermesInternal=HermesInternal;
consttypeError=newTypeError("Failed to read the '"+"threshold"+"' property from 'IntersectionObserverInit': The provided double value is non-finite.");
throwtypeError;
}
}
returntmp;
});
mapped2=mapped1.map((arg0)=>{
letnum=arg0;
if(arg0==null){
num=0;
}
returnnum;
});
sorted1=mapped2.sort();
}else{
sorted1=tmp26?[]:[0];
}
tmp38=sorted1;
}else{
tmp27=null;
if(null!=mapped1){
_Number3=Number;
NumberResult1=Number(mapped1);
_Number4=Number;
if(Number.isFinite(NumberResult1)){
num4=0;
if(NumberResult1>=0){
num5=1;
tmp27=NumberResult1;
}
_RangeError2=RangeError;
tmp33=new.target;
str12="Failed to construct 'IntersectionObserver': Threshold values must be numbers between 0 and 1";
tmp34=new.target;
rangeError1=newRangeError("Failed to construct 'IntersectionObserver': Threshold values must be numbers between 0 and 1");
tmp36=rangeError1;
throwrangeError1;
}else{
_TypeError3=TypeError;
_HermesInternal2=HermesInternal;
str9="' property from 'IntersectionObserverInit': The provided double value is non-finite.";
str10="threshold";
str11="Failed to read the '";
tmp29=new.target;
tmp30=new.target;
typeError4=newTypeError("Failed to read the '"+"threshold"+"' property from 'IntersectionObserverInit': The provided double value is non-finite.");
consttypeError=newTypeError("Failed to construct 'IntersectionObserver': Failed to read the 'rootMargin' property from 'IntersectionObserverInit': The provided value is not of type 'string'.");
throwtypeError;
}else{
conststr8=rootMargin.trim();
if(""===str8){
return"0px 0px 0px 0px";
}else{
constparts=str8.split(/\s+/);
if(parts.length>4){
const_SyntaxError2=SyntaxError;
constsyntaxError=newSyntaxError("Failed to construct 'IntersectionObserver': Failed to parse rootMargin: Too many values (expected 1-4).");
throwsyntaxError;
}else{
for(constitem10005ofparts){
lettmp2=item10005;
if(obj2.test(item10005)){
continue;
}else{
lettmp3=globalThis;
let_SyntaxError=SyntaxError;
lettmp4=item10005;
let_HermesInternal=HermesInternal;
letstr="' is not a valid length. Only 'px' and '%' units are allowed.";
letstr2="Failed to construct 'IntersectionObserver': Failed to parse rootMargin: '";
lettmp5=new.target;
lettmp6=new.target;
letsyntaxError1=newSyntaxError("Failed to construct 'IntersectionObserver': Failed to parse rootMargin: '"+tmp2+"' is not a valid length. Only 'px' and '%' units are allowed.");