'use strict';varGetIntrinsic=require('get-intrinsic');varcallBound=require('call-bind/callBound');var$TypeError=GetIntrinsic('%TypeError%');varIsInteger=require('./IsInteger');varType=require('./Type');var$charAt=callBound('String.prototype.charAt');// https://262.ecma-international.org/6.0/#sec-splitmatchmodule.exports=functionSplitMatch(S,q,R){if(Type(S)!=='String'){thrownew$TypeError('Assertion failed: `S` must be a String');}if(!IsInteger(q)){thrownew$TypeError('Assertion failed: `q` must be an integer');}if(Type(R)!=='String'){thrownew$TypeError('Assertion failed: `R` must be a String');}varr=R.length;vars=S.length;if(q+r>s){returnfalse;}for(vari=0;i<r;i+=1){if($charAt(S,q+i)!==$charAt(R,i)){returnfalse;}}returnq+r;};