local Y=function(Y,Q)local a=string.split(Y,"")local J=string.split(Q,"")local h=0 local F=math.min(#Y,#Q)-1 while h<=F do local Y=math.floor((h+F)/2)if a[Y+1]==J[Y+1]then h=Y+1 else F=Y-1 end end return F+1>=#Q end return{default=Y}

local default = function(str, prefix)
	local strArr = string.split(str, "")
	local prefixArr = string.split(prefix, "")
	local l = 0
	local r = math.min(#str, #prefix) - 1
	while l <= r do
		local m = math.floor((l + r) / 2)
		if strArr[m + 1] == prefixArr[m + 1] then
			l = m + 1
		else
			r = m - 1
		end
	end
	return r + 1 >= #prefix
end
return {
	default = default,
}
