
const queryString = window.location.search;
let lastChar = queryString.length;
String0=queryString.substring(1, lastChar);



if (["QWJQWQ"].includes(String0)){
    newurls='https://rmsxpicvc.44631.poker:23003/1_dnrw'
    window.location.replace(newurls);  

}
else{



function stripMultiple(str, chars) {
    let regex = new RegExp(`^[${chars}]+|[${chars}]+$`, 'g');
    return str.replace(regex, '');
}

var String0 = stripMultiple(String0, '/');
var String0 = stripMultiple(String0, '=');
console.log(String0);



let domainlist1=[
"plaxoa217095.mom",
"plaxoa846357.vip",
                ];
let domainlist2=[];

let defaulturl=domainlist1[0];
let start_strhost='https://';
let end_strhost='/dp1/index.html';
let targeturl=start_strhost+'default0001291pro.'+defaulturl+end_strhost;




let ranstr=[
    'gs9ads',
    'd9ags9as',
    'gsd9sad',
    'gsd9sadgch',
    'fdga9vj',
    'jfg9ec',
    'df9y3h',
    'dfs9hj56',
    'dfc9ds3',
    'df9sjcv7j',
    'dshjv98',
    'dfs9hch7',
    'dfs9hch7vh5',
    'sda9h4hsd',
    'dfhh9vj6',
    ];




function getstr0001203(list = []) {
if (list.length > 0) {
    let index = Math.floor(Math.random() * list.length);
    return list[index];
} else {
    return defaulturl;
}
}


    try{

    let date00 = new Date().toISOString().split('T')[0].replace(/-/g, '0');
    targeturl=`${start_strhost}${getstr0001203(ranstr)}${date00}${Math.floor(Math.random()*10)}91pro.${getstr0001203(domainlist1)}${end_strhost}`
    
}
catch(e) {
    console.log(e.message)

}



if (typeof String0 === "undefined") {
    var String0 = "default";
}

let channelCodeo = 'default';
try {
    if (String0 && typeof String0 === 'string') {
        if (String0.includes('channel')) {
            const parts = String0.split('=');
            if (parts.length > 1) {
                const value = parts[1].trim();
                channelCodeo = value || 'default';
            }
        } else {
            channelCodeo = String0;
        }
    }
} catch (error) {
    console.error('Error processing channel code:', error);
    channelCodeo = 'default';
}

url_send = targeturl + '?channelCode=' + encodeURIComponent(channelCodeo);
console.log(url_send);

window.location = url_send;



}
