var __spreadArray=this&&this.__spreadArray||function(t,r){for(var e=0,n=r.length,i=t.length;e<n;e++,i++)t[i]=r[e];return t};System.register(["./p-805e81fb.system.js","./p-0bbf3c73.system.js","./p-da593370.system.js"],(function(t){"use strict";var r,e,n;return{setters:[function(t){r=t.A},function(t){e=t.D},function(t){n=t.C}],execute:function(){var i=function(){function t(t,i){var s=this;if(i===void 0){i={}}this.query=function(t,r){return s.api.post(t+"/query",r)};this.get=function(t,r,i){return new Promise((function(u,a){return s.query(t,{fields:__spreadArray(__spreadArray([],i.fields||[]),[new e("_id")]),filter:{comparison:n.Eq,id:"_id",value:r},limit:1,skip:0}).then((function(t){return u(t.results.pop())})).catch((function(t){return a(t)}))}))};this.update=function(t,r,e){return s.api.post(t+"/"+r+"/update",e)};this.addAuthInterceptor=function(t){s.api.addAuthInterceptor(t)};this.api=new r(t,i)}return t}();t("D",i)}}}));