//>>built define("dojo/io-query dojo/request dojo/_base/lang dojo/json dojo/_base/declare dojo/store/util/QueryResults".split(" "),function(k,f,h,l,g,m){return g(null,{headers:{MaxDataServiceVersion:"2.0"},target:"",idProperty:"id",accepts:"application/json;odata\x3dverbose",childAttr:"children",constructor:function(b){g.safeMixin(this,b)},get:function(b,a){a=a||{};a=h.mixin({Accept:this.accepts},this.headers,a.headers||a);return f(this.target+"("+b+")",{handleAs:"json",headers:a}).then(function(a){return a.d})}, getIdentity:function(b){return b[this.idProperty]},put:function(b,a){a=a||{};var e=this.getIdentity(b)||a[this.idProperty],d=e?this.target+"("+e+")":this.target,c=h.mixin({"Content-Type":"application/json;odata\x3dverbose",Accept:this.accepts},this.headers,a.headers);e&&(c["X-HTTP-Method"]=a.overwrite?"PUT":"MERGE",c["IF-MATCH"]=a.overwrite?"*":a.etag||"*");return f.post(d,{handleAs:"json",data:l.stringify(b),headers:c})},add:function(b,a){a=a||{};a.overwrite=!1;return this.put(b,a)},remove:function(b, a){a=a||{};return f.post(this.target+"("+b+")",{headers:h.mixin({"IF-MATCH":"*","X-HTTP-Method":"DELETE"},this.headers,a.headers)})},getFormDigest:function(){var b=this.target.indexOf("_vti_bin"),b=this.target.slice(0,b)+"_api/contextinfo";return f.post(b).then(function(a){return a.substring(a.indexOf("\x3cd:FormDigestValue\x3e")+19,a.indexOf("\x3c/d:FormDigestValue\x3e"))})},getChildren:function(b,a){b=this.getIdentity(object)||a[this.idProperty];return this.query({$filter:this.idProperty+" eq "+ b,$expand:this.childAttr},a)},query:function(b,a){a=a||{};var e=h.mixin({Accept:this.accepts},this.headers,a.headers);if(a&&a.sort){b.$orderby="";var d,c,g;c=0;for(g=a.sort.length;c