//>>built
define("dojox/data/CssClassStore",["dojo/_base/declare","dojox/data/CssRuleStore"],function(h,k){return h("dojox.data.CssClassStore",k,{_labelAttribute:"class",_idAttribute:"class",_cName:"dojox.data.CssClassStore",getFeatures:function(){return{"dojo.data.api.Read":!0,"dojo.data.api.Identity":!0}},getAttributes:function(a){this._assertIsItem(a);return["class","classSans"]},getValue:function(a,c,b){return(a=this.getValues(a,c))&&0<a.length?a[0]:b},getValues:function(a,c){this._assertIsItem(a);this._assertIsAttribute(c);
var b=[];"class"===c?b=[a.className]:"classSans"===c&&(b=[a.className.replace(/\./g,"")]);return b},_handleRule:function(a,c,b){c={};a=a.selectorText.split(" ");for(b=0;b<a.length;b++){var d=a[b],e=d.indexOf(".");if(d&&0<d.length&&-1!==e){var f=d.indexOf(",")||d.indexOf("["),d=d.substring(e,-1!==f&&f>e?f:d.length);c[d]=!0}}for(var g in c)this._allItems[g]||(c={},c.className=g,c[this._storeRef]=this,this._allItems[g]=c)},_handleReturn:function(){var a=[],c={},b;for(b in this._allItems)c[b]=this._allItems[b];
for(;this._pending.length;)b=this._pending.pop(),b.request._items=c,a.push(b);for(;a.length;)b=a.pop(),b.fetch?this._handleFetchReturn(b.request):this._handleFetchByIdentityReturn(b.request)},_handleFetchByIdentityReturn:function(a){var c=a._items[a.identity];this.isItem(c)||(c=null);a.onItem&&a.onItem.call(a.scope||dojo.global,c)},getIdentity:function(a){this._assertIsItem(a);return this.getValue(a,this._idAttribute)},getIdentityAttributes:function(a){this._assertIsItem(a);return[this._idAttribute]},
fetchItemByIdentity:function(a){a=a||{};a.store||(a.store=this);this._pending&&0<this._pending.length?this._pending.push({request:a}):(this._pending=[{request:a}],this._fetch(a));return a}})});