Clazz.declarePackage("J.quantum");
Clazz.load(null, "J.quantum.QS", ["JU.PT", "$.SB"], function(){
var c$ = Clazz.declareType(J.quantum, "QS", null);
/*LV!1824 unnec constructor*/c$.isQuantumBasisSupported = Clazz.defineMethod(c$, "isQuantumBasisSupported", 
function(ch){
return ("SPLDF".indexOf(Character.toUpperCase(ch)) >= 0);
}, "~S");
c$.getNewDfCoefMap = Clazz.defineMethod(c$, "getNewDfCoefMap", 
function(){
return  Clazz.newArray(-1, [ Clazz.newIntArray (1, 0),  Clazz.newIntArray (3, 0),  Clazz.newIntArray (4, 0),  Clazz.newIntArray (5, 0),  Clazz.newIntArray (6, 0),  Clazz.newIntArray (7, 0),  Clazz.newIntArray (10, 0),  Clazz.newIntArray (9, 0),  Clazz.newIntArray (15, 0),  Clazz.newIntArray (11, 0),  Clazz.newIntArray (21, 0),  Clazz.newIntArray (13, 0),  Clazz.newIntArray (28, 0)]);
});
c$.getItem = Clazz.defineMethod(c$, "getItem", 
function(i){
return (i >= 0 && i < 13 ? i : -1);
}, "~N");
c$.getQuantumShellTagID = Clazz.defineMethod(c$, "getQuantumShellTagID", 
function(tag){
return (tag.equals("L") ? 2 : J.quantum.QS.getQuantumShell(tag));
}, "~S");
c$.getQuantumShell = Clazz.defineMethod(c$, "getQuantumShell", 
function(tag){
for (var i = 0; i < 13; i++) if (J.quantum.QS.tags[i].equals(tag) || J.quantum.QS.tags2[i].equals(tag)) return i;

return -1;
}, "~S");
c$.getQuantumShellTagIDSpherical = Clazz.defineMethod(c$, "getQuantumShellTagIDSpherical", 
function(tag){
if (tag.equals("L")) return 2;
var id = J.quantum.QS.getQuantumShell(tag);
return (id < 0 ? id : J.quantum.QS.idSpherical[id]);
}, "~S");
c$.getQuantumShellTag = Clazz.defineMethod(c$, "getQuantumShellTag", 
function(id){
return (id >= 0 && id < 13 ? J.quantum.QS.tags[id] : "" + id);
}, "~N");
c$.getMOString = Clazz.defineMethod(c$, "getMOString", 
function(lc){
var sb =  new JU.SB();
if (lc.length == 2) return "" + Clazz.floatToInt(lc[0] < 0 ? -lc[1] : lc[1]);
sb.appendC('[');
for (var i = 0; i < lc.length; i += 2) {
if (i > 0) sb.append(", ");
sb.appendF(lc[i]).append(" ").appendI(Clazz.floatToInt(lc[i + 1]));
}
sb.appendC(']');
return sb.toString();
}, "~A");
c$.createDFMap = Clazz.defineMethod(c$, "createDFMap", 
function(map, fileList, jmolList, minLength){
var tokens = JU.PT.getTokens(fileList);
var isOK = true;
for (var i = 0; i < map.length; i++) {
var key = tokens[i];
if (key.length >= minLength) {
var pt = jmolList.indexOf(key);
if (pt >= 0) {
pt /= 6;
map[pt] = i - pt;
continue;
}}isOK = false;
break;
}
if (!isOK) map[0] = -2147483648;
return isOK;
}, "~A,~S,~S,~N");
c$.MAX_TYPE_SUPPORTED = 6;
c$.idSpherical =  Clazz.newIntArray(-1, [0, 1, 2, 3, 3, 5, 5, 7, 7, 9, 9, 11, 11]);
c$.tags =  Clazz.newArray(-1, ["S", "P", "SP", "5D", "D", "7F", "F", "9G", "G", "11H", "H", "13I", "I"]);
c$.tags2 =  Clazz.newArray(-1, ["S", "X", "SP", "5D", "XX", "7F", "XXX", "9G", "XXXX", "11H", "XXXXX", "13I", "XXXXXX"]);
});
;//5.0.1-v7 Tue Jul 22 18:14:29 CDT 2025
