//>>built
define("dojox/data/AndOrReadStore","dojo/_base/declare dojo/_base/lang dojo/data/ItemFileReadStore dojo/data/util/filter dojo/_base/array dojo/_base/json".split(" "),function(y,d,z,A,B,v){return y("dojox.data.AndOrReadStore",[z],{_containsValue:function(m,r,w,h){return B.some(this.getValues(m,r),function(c){if(d.isString(h))return eval(h);if(null!==c&&!d.isObject(c)&&h){if(c.toString().match(h))return!0}else return w===c?!0:!1})},filter:function(m,r,w){var h=[];if(m.query){var c=v.fromJson(v.toJson(m.query));
if("object"==typeof c){var a=0;for(g in c)a++;if(1<a&&c.complexQuery){a=c.complexQuery;var n=!1;for(g in c)if("complexQuery"!==g){n||(a="( "+a+" )",n=!0);var k=m.query[g];d.isString(k)&&(k="'"+k+"'");a+=" AND "+g+":"+k;delete c[g]}c.complexQuery=a}}var g=m.queryOptions?m.queryOptions.ignoreCase:!1;"string"!=typeof c&&(c=v.toJson(c),c=c.replace(/\\\\/g,"\\"));c=c.replace(/\\"/g,'"');a=d.trim(c.replace(/{|}/g,""));if(a.match(/"? *complexQuery *"?:/)){a=d.trim(a.replace(/"?\s*complexQuery\s*"?:/,""));
n=["'",'"'];var p=!1;for(c=0;c<n.length;c++){k=a.indexOf(n[c]);var b=a.indexOf(n[c],1);var t=a.indexOf(":",1);if(0===k&&-1!=b&&t<b){p=!0;break}}p&&(a=a.replace(/^"|^'|"$|'$/g,""))}n=a;k=/^>=|^<=|^<|^>|^,|^NOT |^AND |^OR |^\(|^\)|^!|^&&|^\|\|/i;b=t="";var e=-1;p=!1;var x="",f="";b="";b=-1;for(c=0;c<r.length;++c){var l=!0,u=r[c];if(null===u)l=!1;else{a=n;for(t="";0<a.length&&!p;){for(b=a.match(k);b&&!p;)a=d.trim(a.replace(b[0],"")),b=d.trim(b[0]).toUpperCase(),b="NOT"==b?"!":"AND"==b||","==b?"\x26\x26":
"OR"==b?"||":b,b=" "+b+" ",t+=b,b=a.match(k);if(0<a.length)if(l=(b=a.match(/:|>=|<=|>|</g))&&b.shift(),e=a.indexOf(l),-1==e){p=!0;break}else{x=d.trim(a.substring(0,e).replace(/"|'/g,""));a=d.trim(a.substring(e+l.length));if(b=a.match(/^'|^"/)){b=b[0];e=a.indexOf(b);b=a.indexOf(b,e+1);if(-1==b){p=!0;break}f=a.substring(e+l.length,b);a=b==a.length-1?"":d.trim(a.substring(b+1))}else if(b=a.match(/\s|\)|,/)){f=Array(b.length);for(var q=0;q<b.length;q++)f[q]=a.indexOf(b[q]);e=f[0];if(1<f.length)for(q=
1;q<f.length;q++)e=Math.min(e,f[q]);f=d.trim(a.substring(0,e));a=d.trim(a.substring(e))}else f=d.trim(a),a="";b=":"!=l?this.getValue(u,x)+l+f:A.patternToRegExp(f,g);t+=this._containsValue(u,x,f,b)}}l=eval(t)}l&&h.push(u)}p&&(h=[])}else for(c=0;c<r.length;++c)g=r[c],null!==g&&h.push(g);w(h,m)}})});