//>>built define("dojo/_base/kernel dojo/_base/lang dojo/_base/declare dojo/_base/xhr dojo/_base/array dojo/_base/window dojo/query dojo/data/util/simpleFetch dojox/xml/parser".split(" "),function(f,h,k,g,l,m,n,p,q){f.experimental("dojox.data.OpenSearchStore");f=k("dojox.data.OpenSearchStore",null,{constructor:function(a){a&&(this.label=a.label,this.url=a.url,this.itemPath=a.itemPath,"urlPreventCache"in a&&(this.urlPreventCache=a.urlPreventCache?!0:!1));a=g.get({url:this.url,handleAs:"xml",sync:!0,preventCache:this.urlPreventCache}); a.addCallback(this,"_processOsdd");a.addErrback(function(){throw Error("Unable to load OpenSearch Description document from ".args.url);})},url:"",itemPath:"",_storeRef:"_S",urlElement:null,iframeElement:null,urlPreventCache:!0,ATOM_CONTENT_TYPE:3,ATOM_CONTENT_TYPE_STRING:"atom",RSS_CONTENT_TYPE:2,RSS_CONTENT_TYPE_STRING:"rss",XML_CONTENT_TYPE:1,XML_CONTENT_TYPE_STRING:"xml",_assertIsItem:function(a){if(!this.isItem(a))throw Error("dojox.data.OpenSearchStore: a function was passed an item argument that was not an item"); },_assertIsAttribute:function(a){if("string"!==typeof a)throw Error("dojox.data.OpenSearchStore: a function was passed an attribute argument that was not an attribute name string");},getFeatures:function(){return{"dojo.data.api.Read":!0}},getValue:function(a,b,c){return(a=this.getValues(a,b))?a[0]:c},getAttributes:function(a){return["content"]},hasAttribute:function(a,b){return this.getValue(a,b)?!0:!1},isItemLoaded:function(a){return this.isItem(a)},loadItem:function(a){},getLabel:function(a){}, getLabelAttributes:function(a){return null},containsValue:function(a,b,c){a=this.getValues(a,b);for(b=0;b e&&(c=d,e=b[d]);if("url"==a[c].nodeName.toLowerCase())switch(this.urlElement=a[c],b[c]){case this.ATOM_CONTENT_TYPE:this.contentType=this.ATOM_CONTENT_TYPE_STRING;break;case this.RSS_CONTENT_TYPE:this.contentType=this.RSS_CONTENT_TYPE_STRING;break;case this.XML_CONTENT_TYPE:this.contentType=this.XML_CONTENT_TYPE_STRING}}});return h.extend(f,p)});