@icanbwell/composite 1.1298.0 → 1.1300.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/630.index.js CHANGED
@@ -13813,7 +13813,7 @@ End of stack for Error object`:u.name+": "+u.message}return u});function s(a){re
13813
13813
  }
13814
13814
  }
13815
13815
  }
13816
- `));function lSt(t){const e=Object.assign(Object.assign({},Zl),t);return Kl.useMutation(NHe,e)}var DHe,LHe;const Rse=null;function fSt(t={}){return DHe(Object.assign(Object.assign({},t),{variables:Object.assign(Object.assign({},t.variables),{category:Rse})}))}function dSt(t={}){return LHe(Object.assign(Object.assign({},t),{variables:Object.assign(Object.assign({},t.variables),{category:Rse})}))}var UHe,$He;const Ose=null;function hSt(t={}){return UHe(Object.assign(Object.assign({},t),{variables:Object.assign(Object.assign({},t.variables),{category:Ose})}))}function pSt(t={}){return $He(Object.assign(Object.assign({},t),{variables:Object.assign(Object.assign({},t.variables),{category:Ose})}))}var xHe,FHe;const Pse=null;function _St(t={}){return xHe(Object.assign(Object.assign({},t),{variables:Object.assign(Object.assign({},t.variables),{category:Pse})}))}function mSt(t={}){return FHe(Object.assign(Object.assign({},t),{variables:Object.assign(Object.assign({},t.variables),{category:Pse})}))}var Mse,kHe,GHe;const gSt=t=>Mse(kHe,t),vSt=t=>Mse(GHe,t);var Ise=T(46),wse=cl,VHe=Yo,BHe=Mh,jHe=ha,qB=$7,zHe=TB,qHe=gB,HHe=iI,YHe=xV,gv=Object.assign,Nse=Object.defineProperty,QHe=VHe([].concat),WHe=!gv||jHe(function(){if(wse&&gv({b:1},gv(Nse({},"a",{enumerable:!0,get:function(){Nse(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(i){e[i]=i}),gv({},t)[r]!==7||qB(gv({},e)).join("")!==n})?function(e,r){for(var n=HHe(e),i=arguments.length,s=1,o=zHe.f,a=qHe.f;i>s;)for(var u=YHe(arguments[s++]),c=o?QHe(qB(u),o(u)):qB(u),l=c.length,d=0,p;l>d;)p=c[d++],(!wse||BHe(a,u,p))&&(n[p]=u[p]);return n}:gv,KHe=AI,Dse=WHe;KHe({target:"Object",stat:!0,arity:2,forced:Object.assign!==Dse},{assign:Dse});var ZHe=ha,Lse=!ZHe(function(){return Object.isExtensible(Object.preventExtensions({}))}),XHe=kA,Use=function(t,e,r){for(var n in e)XHe(t,n,e[n],r);return t},BI={exports:{}},$se={},JHe=Yo,eYe=JHe([].slice),tYe=M_,rYe=cv,xse=yI.f,nYe=eYe,Fse=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],iYe=function(t){try{return xse(t)}catch{return nYe(Fse)}};$se.f=function(e){return Fse&&tYe(e)==="Window"?iYe(e):xse(rYe(e))};var sYe=ha,oYe=sYe(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),aYe=ha,uYe=Wa,cYe=M_,kse=oYe,jI=Object.isExtensible,lYe=aYe(function(){jI(1)}),fYe=lYe||kse?function(e){return!uYe(e)||kse&&cYe(e)==="ArrayBuffer"?!1:jI?jI(e):!0}:jI,dYe=AI,hYe=Yo,pYe=cI,_Ye=Wa,HB=al,mYe=Ql.f,Gse=yI,gYe=$se,YB=fYe,vYe=GV,SYe=Lse,Vse=!1,Qf=vYe("meta"),yYe=0,QB=function(t){mYe(t,Qf,{value:{objectID:"O"+yYe++,weakData:{}}})},EYe=function(t,e){if(!_Ye(t))return typeof t=="symbol"?t:(typeof t=="string"?"S":"P")+t;if(!HB(t,Qf)){if(!YB(t))return"F";if(!e)return"E";QB(t)}return t[Qf].objectID},AYe=function(t,e){if(!HB(t,Qf)){if(!YB(t))return!0;if(!e)return!1;QB(t)}return t[Qf].weakData},TYe=function(t){return SYe&&Vse&&YB(t)&&!HB(t,Qf)&&QB(t),t},bYe=function(){CYe.enable=function(){},Vse=!0;var t=Gse.f,e=hYe([].splice),r={};r[Qf]=1,t(r).length&&(Gse.f=function(n){for(var i=t(n),s=0,o=i.length;s<o;s++)if(i[s]===Qf){e(i,s,1);break}return i},dYe({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:gYe.f}))},CYe=BI.exports={enable:bYe,fastKey:EYe,getWeakData:AYe,onFreeze:TYe};pYe[Qf]=!0;var RYe=M_,OYe=Yo,PYe=function(t){if(RYe(t)==="Function")return OYe(t)},Bse=PYe,MYe=WV,IYe=LV,wYe=Bse(Bse.bind),jse=function(t,e){return MYe(t),e===void 0?t:IYe?wYe(t,e):function(){return t.apply(e,arguments)}},NYe=gc,DYe=dI,LYe=NYe("iterator"),UYe=Array.prototype,$Ye=function(t){return t!==void 0&&(DYe.Array===t||UYe[LYe]===t)},xYe=M_,FYe=$A,zse=KV,kYe=gc,qse=kYe("iterator"),GYe=Array.prototype,Hse=function(t){if(!FYe(t))return zse(t,qse)||zse(t,"@@iterator")||(xYe(t)==="Arguments"?GYe[qse]:void 0)},VYe=Mh,BYe=Qo,jYe=Ph,zYe=QV,qYe=Hse,HYe=TypeError,YYe=function(t,e){var r=arguments.length<2?qYe(t):e;if(BYe(r))return jYe(VYe(r,t));throw new HYe(zYe(t)+" is not iterable")},QYe=Mh,Yse=Ph,WYe=KV,KYe=function(t,e,r){var n,i;Yse(t);try{if(n=WYe(t,"return"),!n){if(e==="throw")throw r;return r}n=QYe(n,t)}catch(s){i=!0,n=s}if(e==="throw")throw r;if(i)throw n;return Yse(n),r},ZYe=jse,XYe=Mh,JYe=Ph,eQe=QV,tQe=$Ye,rQe=iB,Qse=YV,nQe=YYe,iQe=Hse,Wse=KYe,sQe=TypeError,zI=function(t,e){this.stopped=t,this.result=e},Kse=zI.prototype,Zse=function(t,e,r){var n=r&&r.that,i=!!(r&&r.AS_ENTRIES),s=!!(r&&r.IS_RECORD),o=!!(r&&r.IS_ITERATOR),a=!!(r&&r.INTERRUPTED),u=ZYe(e,n),c,l,d,p,g,v,b,A=function(j){var Z=c;return c=void 0,Z&&Wse(Z,"normal"),new zI(!0,j)},M=function(j){return i?(JYe(j),a?u(j[0],j[1],A):u(j[0],j[1])):a?u(j,A):u(j)};if(s)c=t.iterator;else if(o)c=t;else{if(l=iQe(t),!l)throw new sQe(eQe(t)+" is not iterable");if(tQe(l)){for(d=0,p=rQe(t);p>d;d++)if(g=M(t[d]),g&&Qse(Kse,g))return g;return new zI(!1)}c=nQe(t,l)}for(v=s?t.next:c.next;!(b=XYe(v,c)).done;){var B=b.value;try{g=M(B)}catch(j){if(c)Wse(c,"throw",j);else throw j}if(typeof g=="object"&&g&&Qse(Kse,g))return g}return new zI(!1)},oQe=YV,aQe=TypeError,Xse=function(t,e){if(oQe(e,t))return t;throw new aQe("Incorrect invocation")},uQe=gc,Jse=uQe("iterator"),eoe=!1;try{var cQe=0,toe={next:function(){return{done:!!cQe++}},return:function(){eoe=!0}};toe[Jse]=function(){return this},Array.from(toe,function(){throw 2})}catch{}var lQe=function(t,e){try{if(!e&&!eoe)return!1}catch{return!1}var r=!1;try{var n={};n[Jse]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch{}return r},fQe=Qo,dQe=Wa,roe=dX,hQe=function(t,e,r){var n,i;return roe&&fQe(n=e.constructor)&&n!==r&&dQe(i=n.prototype)&&i!==r.prototype&&roe(t,i),t},pQe=AI,_Qe=Ou,mQe=Yo,noe=sX,gQe=kA,vQe=BI.exports,SQe=Zse,yQe=Xse,EQe=Qo,AQe=$A,WB=Wa,KB=ha,TQe=lQe,bQe=TI,CQe=hQe,RQe=function(t,e,r){var n=t.indexOf("Map")!==-1,i=t.indexOf("Weak")!==-1,s=n?"set":"add",o=_Qe[t],a=o&&o.prototype,u=o,c={},l=function(M){var B=mQe(a[M]);gQe(a,M,M==="add"?function(Z){return B(this,Z===0?0:Z),this}:M==="delete"?function(j){return i&&!WB(j)?!1:B(this,j===0?0:j)}:M==="get"?function(Z){return i&&!WB(Z)?void 0:B(this,Z===0?0:Z)}:M==="has"?function(Z){return i&&!WB(Z)?!1:B(this,Z===0?0:Z)}:function(Z,ge){return B(this,Z===0?0:Z,ge),this})},d=noe(t,!EQe(o)||!(i||a.forEach&&!KB(function(){new o().entries().next()})));if(d)u=r.getConstructor(e,t,n,s),vQe.enable();else if(noe(t,!0)){var p=new u,g=p[s](i?{}:-0,1)!==p,v=KB(function(){p.has(1)}),b=TQe(function(M){new o(M)}),A=!i&&KB(function(){for(var M=new o,B=5;B--;)M[s](B,B);return!M.has(-0)});b||(u=e(function(M,B){yQe(M,a);var j=CQe(new o,M,u);return AQe(B)||SQe(B,j[s],{that:j,AS_ENTRIES:n}),j}),u.prototype=a,a.constructor=u),(v||A)&&(l("delete"),l("has"),n&&l("get")),(A||g)&&l(s),i&&a.clear&&delete a.clear}return c[t]=u,pQe({global:!0,constructor:!0,forced:u!==o},c),bQe(u,t),i||r.setStrong(u,t,n),u},OQe=M_,PQe=Array.isArray||function(e){return OQe(e)==="Array"},MQe=gc,IQe=MQe("toStringTag"),ioe={};ioe[IQe]="z";var wQe=String(ioe)==="[object z]",NQe=wQe,DQe=Qo,qI=M_,LQe=gc,UQe=LQe("toStringTag"),$Qe=Object,xQe=qI(function(){return arguments}())==="Arguments",FQe=function(t,e){try{return t[e]}catch{}},kQe=NQe?qI:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=FQe(e=$Qe(t),UQe))=="string"?r:xQe?qI(e):(n=qI(e))==="Object"&&DQe(e.callee)?"Arguments":n},GQe=Yo,VQe=ha,soe=Qo,BQe=kQe,jQe=aI,zQe=tX,ooe=function(){},aoe=jQe("Reflect","construct"),ZB=/^\s*(?:class|function)\b/,qQe=GQe(ZB.exec),HQe=!ZB.test(ooe),qA=function(e){if(!soe(e))return!1;try{return aoe(ooe,[],e),!0}catch{return!1}},uoe=function(e){if(!soe(e))return!1;switch(BQe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return HQe||!!qQe(ZB,zQe(e))}catch{return!0}};uoe.sham=!0;var YQe=!aoe||VQe(function(){var t;return qA(qA.call)||!qA(Object)||!qA(function(){t=!0})||t})?uoe:qA,coe=PQe,QQe=YQe,WQe=Wa,KQe=gc,ZQe=KQe("species"),loe=Array,XQe=function(t){var e;return coe(t)&&(e=t.constructor,QQe(e)&&(e===loe||coe(e.prototype))?e=void 0:WQe(e)&&(e=e[ZQe],e===null&&(e=void 0))),e===void 0?loe:e},JQe=XQe,e8e=function(t,e){return new(JQe(t))(e===0?0:e)},t8e=cl,r8e=Ql,n8e=hI,i8e=function(t,e,r){t8e?r8e.f(t,e,n8e(0,r)):t[e]=r},s8e=jse,o8e=xV,a8e=iI,u8e=iB,foe=e8e,XB=i8e,Nh=function(t){var e=t===1,r=t===2,n=t===3,i=t===4,s=t===6,o=t===7,a=t===5||s;return function(u,c,l){for(var d=a8e(u),p=o8e(d),g=u8e(p),v=s8e(c,l),b=0,A=0,M=e?foe(u,g):r||o?foe(u,0):void 0,B,j;g>b;b++)if((a||b in p)&&(B=p[b],j=v(B,b,d),t))if(e)XB(M,b,j);else if(j)switch(t){case 3:return!0;case 5:return B;case 6:return b;case 2:XB(M,A++,B)}else switch(t){case 4:return!1;case 7:XB(M,A++,B)}return s?-1:n||i?i:M}},c8e={forEach:Nh(0),map:Nh(1),filter:Nh(2),some:Nh(3),every:Nh(4),find:Nh(5),findIndex:Nh(6),filterReject:Nh(7)},l8e=Yo,doe=Use,HI=BI.exports.getWeakData,f8e=Xse,d8e=Ph,h8e=$A,JB=Wa,p8e=Zse,hoe=c8e,poe=al,_oe=gI,_8e=_oe.set,m8e=_oe.getterFor,g8e=hoe.find,v8e=hoe.findIndex,S8e=l8e([].splice),y8e=0,YI=function(t){return t.frozen||(t.frozen=new moe)},moe=function(){this.entries=[]},ej=function(t,e){return g8e(t.entries,function(r){return r[0]===e})};moe.prototype={get:function(t){var e=ej(this,t);if(e)return e[1]},has:function(t){return!!ej(this,t)},set:function(t,e){var r=ej(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=v8e(this.entries,function(r){return r[0]===t});return~e&&S8e(this.entries,e,1),!!~e}};var E8e={getConstructor:function(t,e,r,n){var i=t(function(u,c){f8e(u,s),_8e(u,{type:e,id:y8e++,frozen:null}),h8e(c)||p8e(c,u[n],{that:u,AS_ENTRIES:r})}),s=i.prototype,o=m8e(e),a=function(u,c,l){var d=o(u),p=HI(d8e(c),!0);return p===!0?YI(d).set(c,l):p[d.id]=l,u};return doe(s,{delete:function(u){var c=o(this);if(!JB(u))return!1;var l=HI(u);return l===!0?YI(c).delete(u):l&&poe(l,c.id)&&delete l[c.id]},has:function(c){var l=o(this);if(!JB(c))return!1;var d=HI(c);return d===!0?YI(l).has(c):d&&poe(d,l.id)}}),doe(s,r?{get:function(c){var l=o(this);if(JB(c)){var d=HI(c);if(d===!0)return YI(l).get(c);if(d)return d[l.id]}},set:function(c,l){return a(this,c,l)}}:{add:function(c){return a(this,c,!0)}}),i}},A8e=Lse,goe=Ou,QI=Yo,voe=Use,T8e=BI.exports,b8e=RQe,Soe=E8e,WI=Wa,KI=gI.enforce,C8e=ha,R8e=H7,HA=Object,O8e=Array.isArray,ZI=HA.isExtensible,yoe=HA.isFrozen,P8e=HA.isSealed,Eoe=HA.freeze,M8e=HA.seal,I8e=!goe.ActiveXObject&&"ActiveXObject"in goe,YA,Aoe=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Toe=b8e("WeakMap",Aoe,Soe),vv=Toe.prototype,XI=QI(vv.set),w8e=function(){return A8e&&C8e(function(){var t=Eoe([]);return XI(new Toe,t,1),!yoe(t)})};if(R8e)if(I8e){YA=Soe.getConstructor(Aoe,"WeakMap",!0),T8e.enable();var boe=QI(vv.delete),JI=QI(vv.has),Coe=QI(vv.get);voe(vv,{delete:function(t){if(WI(t)&&!ZI(t)){var e=KI(this);return e.frozen||(e.frozen=new YA),boe(this,t)||e.frozen.delete(t)}return boe(this,t)},has:function(e){if(WI(e)&&!ZI(e)){var r=KI(this);return r.frozen||(r.frozen=new YA),JI(this,e)||r.frozen.has(e)}return JI(this,e)},get:function(e){if(WI(e)&&!ZI(e)){var r=KI(this);return r.frozen||(r.frozen=new YA),JI(this,e)?Coe(this,e):r.frozen.get(e)}return Coe(this,e)},set:function(e,r){if(WI(e)&&!ZI(e)){var n=KI(this);n.frozen||(n.frozen=new YA),JI(this,e)?XI(this,e,r):n.frozen.set(e,r)}else XI(this,e,r);return this}})}else w8e()&&voe(vv,{set:function(e,r){var n;return O8e(e)&&(yoe(e)?n=Eoe:P8e(e)&&(n=M8e)),XI(this,e,r),n&&n(e),this}});var QA,ew;class Roe{constructor(){this.type="backend",QA.set(this,void 0),ew.set(this,void 0)}init(e,{clientSlug:r,apiClient:n}){if(!n)throw e.logger.error('"apiClient" not supplied to "QueryBackend".'),new Error('"apiClient" required for "QueryBackend".');Ih(this,QA,r,"f"),Ih(this,ew,UB(n),"f")}read(e,r,n){return RI(this,void 0,void 0,function*(){try{const{translation:i}=yield di(this,ew,"f").getClientTranslations({name:di(this,QA,"f"),key:r,lang:e});n(null,i?.json||{})}catch{const s=`Error fetching translation with key "${r}" and client "${di(this,QA,"f")||"N/A"}".`;n(s,null)}})}}QA=new WeakMap,ew=new WeakMap,Roe.type="backend";var Sv;class Ooe{constructor(e){this.type="logger",Sv.set(this,void 0),Ih(this,Sv,e,"f")}log([e,r,...n]){di(this,Sv,"f").info({meta:r},e,...n)}warn([e,r,...n]){di(this,Sv,"f").error({meta:r},e,...n)}error([e,r,...n]){di(this,Sv,"f").error({meta:r},e,...n)}}Sv=new WeakMap,Ooe.type="logger";var Pu,tw,x_,WA,Wo,F_;const Poe="appLanguage";class tj{constructor({keys:e,nativeBridge:r,fallbackKeys:n=[],defaultLanguage:i="en",logger:s,parent:o,debug:a=!1,remoteConfig:u={}}){x_.set(this,void 0),WA.set(this,void 0),Wo.set(this,void 0),F_.set(this,void 0),Ih(this,x_,e,"f"),Ih(this,WA,n,"f"),Ih(this,F_,r,"f");const c={lng:i,fallbackNS:di(this,WA,"f"),debug:a,defaultNS:e,returnNull:!1};o?Ih(this,Wo,o.cloneInstance(c),"f"):(Ih(this,Wo,Qa.createInstance(),"f"),s&&di(this,Wo,"f").use(new Ooe(s.child({library:"@icanbwell/i18n"}))),u.apiClient&&di(this,Wo,"f").use(Roe),di(this,Wo,"f").init(Object.assign(Object.assign({},c),{fallbackLng:!1,partialBundledLanguages:!0,ns:[],resources:{},backend:u,saveMissing:!0,missingKeyHandler:(l,d,p)=>di(this,Wo,"f").services.logger.error(`missing key: ${p}; language: ${l}; key: ${d}`)}))),this.t=di(this,Wo,"f").t,Pu.resolvedLanguage=di(this,Wo,"f").resolvedLanguage||i}load(){return RI(this,void 0,void 0,function*(){var e;const r=(yield(e=di(this,F_,"f"))===null||e===void 0?void 0:e.storage.getItem(Poe))||Pu.resolvedLanguage;r!==Pu.resolvedLanguage&&(yield di(this,Wo,"f").changeLanguage(r),Pu.resolvedLanguage=r),yield di(this,Wo,"f").loadNamespaces(di(this,x_,"f"));const n=di(this,x_,"f").filter(i=>!di(this,Wo,"f").hasResourceBundle(r,i));if(n.length)throw new Error(`Error loading translations for key(s): ${n.join(", ")}`);return di(Pu,Pu,"f",tw).emit("changeLanguage",r),this})}child(e){return new Pu(Object.assign(Object.assign({},e),{nativeBridge:di(this,F_,"f"),fallbackKeys:[...di(this,WA,"f"),...di(this,x_,"f")],parent:di(this,Wo,"f"),defaultLanguage:di(this,Wo,"f").language}))}get isLoaded(){return di(this,x_,"f").every(e=>di(this,Wo,"f").hasResourceBundle(di(this,Wo,"f").language,e))}changeLanguage(e){return RI(this,void 0,void 0,function*(){var r,n;Pu.resolvedLanguage=e,yield di(this,Wo,"f").changeLanguage(e),di(Pu,Pu,"f",tw).emit("changeLanguage",e),yield(r=di(this,F_,"f"))===null||r===void 0?void 0:r.storage.setItem(Poe,e),(n=di(this,F_,"f"))===null||n===void 0||n.reloadView(!0)})}get resolvedLanguage(){return Pu.resolvedLanguage}onChangeLanguage(e){di(Pu,Pu,"f",tw).on("changeLanguage",e)}}Pu=tj,x_=new WeakMap,WA=new WeakMap,Wo=new WeakMap,F_=new WeakMap,tw={value:new Ise},tj.resolvedLanguage="en";var rj=T(9609),KA;(function(t){t.one="1.0.0"})(KA||(KA={}));const rw="orchestrator:native-bridge",N8e={id:rw,dependencies:{featureServices:{}},create:()=>({[KA.one]:()=>({featureService:rj.b})})};var ZA;(function(t){t.one="1.0.0"})(ZA||(ZA={}));const nw="orchestrator:translation-service",D8e={id:nw,dependencies:{featureServices:{[jo]:mu.one,[Nl]:sh.one,[Qs]:Va.one,[PA]:ov.one,[rw]:KA.one}},create:({featureServices:t})=>{const e=t[jo],r=t[Nl],n=t[PA],{slug:i}=t[Qs].getClientContext(),s=t[rw],o=new tj({keys:[],nativeBridge:s,defaultLanguage:"en",logger:r,remoteConfig:{clientSlug:i,apiClient:e}});return n.setProfileProperties({language:o.resolvedLanguage}),o.onChangeLanguage(a=>n.setProfileProperties({language:a})),{[ZA.one]:()=>({featureService:o})}}};var yv,Ev,iw,Hu,XA,sw;const ow="tokens",nj="delegationContext",ij="userSessionId";class L8e{constructor({apiClient:e,stateService:r,identityGatewaySdk:n,storage:i,logger:s}){yv.set(this,void 0),Ev.set(this,void 0),iw.set(this,void 0),Hu.set(this,void 0),XA.set(this,void 0),sw.set(this,[]),(0,F().__classPrivateFieldSet)(this,yv,e,"f"),(0,F().__classPrivateFieldSet)(this,Ev,r,"f"),(0,F().__classPrivateFieldSet)(this,iw,n,"f"),(0,F().__classPrivateFieldSet)(this,Hu,i,"f"),(0,F().__classPrivateFieldSet)(this,XA,s,"f")}registerPreLogoutHandler(e){(0,F().__classPrivateFieldGet)(this,sw,"f").push(e)}getStoredTokens(){const e=(0,F().__classPrivateFieldGet)(this,Hu,"f").getItem(ow);return e?JSON.parse(e):void 0}removeStoredTokens(){(0,F().__classPrivateFieldGet)(this,Hu,"f").removeItem(ow),this.clearSessionId(),this.clearDelegationContext()}clearSessionId(){(0,F().__classPrivateFieldGet)(this,Hu,"f").removeItem(ij)}ensureSessionId(){var e;try{if((0,F().__classPrivateFieldGet)(this,Hu,"f").getItem(ij))return;(0,F().__classPrivateFieldGet)(this,Hu,"f").setItem(ij,JSON.stringify({sessionId:crypto.randomUUID()}))}catch(r){(e=(0,F().__classPrivateFieldGet)(this,XA,"f"))===null||e===void 0||e.error(r instanceof Error?r:new Error(String(r)),"Failed to mint session id")}}storeTokens(e){const r=Object.assign(Object.assign({},e),{idToken:Object.assign(Object.assign({},e.idToken),{payload:(0,J().normalizeTokenPayload)(e.idToken.payload)})});return(0,F().__classPrivateFieldGet)(this,Hu,"f").setItem(ow,JSON.stringify(r)),r}storeDelegationContext(e){(0,F().__classPrivateFieldGet)(this,Hu,"f").setItem(nj,JSON.stringify(e))}getDelegationContext(){var e,r;const n=(0,F().__classPrivateFieldGet)(this,Hu,"f").getItem(nj);if(!n)return null;try{const i=JSON.parse(n);return!i?.consentId||!(!((r=(e=i?.delegateTokens)===null||e===void 0?void 0:e.accessToken)===null||r===void 0)&&r.jwtToken)?null:i}catch{return null}}clearDelegationContext(){(0,F().__classPrivateFieldGet)(this,Hu,"f").removeItem(nj)}logout(){return(0,F().__awaiter)(this,void 0,void 0,function*(){var e;for(const s of(0,F().__classPrivateFieldGet)(this,sw,"f"))try{yield s()}catch(o){(e=(0,F().__classPrivateFieldGet)(this,XA,"f"))===null||e===void 0||e.error(o instanceof Error?o:new Error(String(o)),"Pre-logout handler failed")}const r=(0,F().__classPrivateFieldGet)(this,Ev,"f").getUserTokenData().accessToken.jwtToken,{key:n,variant:i}=(0,F().__classPrivateFieldGet)(this,Ev,"f").getClientContext();i!==fe.GUEST&&(yield(0,F().__classPrivateFieldGet)(this,iw,"f").logout({accessToken:r},{context:{headers:{clientKey:n}}})),(0,F().__classPrivateFieldGet)(this,yv,"f").stop(),(0,F().__classPrivateFieldGet)(this,yv,"f").clearAuth(),yield(0,F().__classPrivateFieldGet)(this,yv,"f").clearStore(),(0,F().__classPrivateFieldGet)(this,Ev,"f").logoutUser(),(0,F().__classPrivateFieldGet)(this,Hu,"f").removeItem(ow),this.clearSessionId(),this.clearDelegationContext()})}}yv=new WeakMap,Ev=new WeakMap,iw=new WeakMap,Hu=new WeakMap,XA=new WeakMap,sw=new WeakMap;var JA;(function(t){t.one="1.0.0"})(JA||(JA={}));const aw="orchestrator:identity-utils",U8e={id:aw,dependencies:{featureServices:{[jo]:mu.one,[Nl]:sh.one,[Qs]:Va.one,[PA]:ov.one}},create:({featureServices:t})=>{const e=t[jo];return{[JA.one]:()=>({featureService:new L8e({apiClient:e,stateService:t[Qs],identityGatewaySdk:xee(e),storage:window.sessionStorage,logger:t[Nl]})})}}};var uw;(function(t){t.one="1.0.0"})(uw||(uw={}));const Moe="orchestrator:globaleventemitter-service",$8e=t=>({id:Moe,create:()=>({[uw.one]:()=>({featureService:t})})});var cw;(function(t){t.one="1.0.0"})(cw||(cw={}));const Ioe="orchestrator:reboot-controller",x8e=t=>({id:Ioe,create:()=>({[cw.one]:()=>({featureService:t})})}),lw="orchestrator:bwell-sdk";var eT;(function(t){t.one="1.0.0"})(eT||(eT={}));const F8e=t=>({id:lw,dependencies:{featureServices:{[Qs]:Va.one,[nw]:ZA.one,[Nl]:sh.one}},create:({featureServices:e})=>{const r=e[Qs],n=e[nw],i=e[Nl],s=t;let o=!1,a=!1;const u=g=>{if(typeof g=="string")return g;if(g&&typeof g=="object"&&"message"in g){const v=g.message;return typeof v=="string"?v:String(v)}return String(g)},c=g=>/uninitialized|not been initialized/i.test(u(g)),l=g=>{try{s.language.setLanguage(g)}catch(v){if(c(v)){a||(a=!0,i.info({},"embeddable-core: Deferring language switch until SDK initialization completes"));return}i.info({error:u(v)},"embeddable-core: Non-fatal language switch issue in SDK")}},d=g=>{try{const v=s.language.getLanguage();g!==v&&l(g)}catch(v){if(c(v))return;i.info({error:u(v)},"embeddable-core: Non-fatal language read issue in SDK")}},p=()=>{var g;!((g=r.getUser().tokenData)===null||g===void 0)&&g.idToken&&(l(n.resolvedLanguage),o||(o=!0,n.onChangeLanguage(d)))};return r.getStore().subscribe(p),{[eT.one]:()=>({featureService:s})}}});class pa extends Error{constructor(e,r){super(e),this.name="BWellError",r?.cause&&(this.cause=r.cause)}static isBwellError(e){return e instanceof pa}}class SSt extends pa{constructor(e="Authentication Error"){super(e),this.name="AuthenticationError"}}class ySt extends pa{constructor(e="Illegal Argument Error"){super(e),this.name="IllegalArgumentError"}}class ESt extends pa{constructor(e="Illegal State Error"){super(e),this.name="IllegalStateError"}}class k8e extends pa{constructor(e="Invalid Client Key Error"){super(e),this.name="InvalidClientKeyError"}}class sj extends pa{constructor(e,r){super(e),this.credentials=r,this.name="InvalidCredentialsTypeError"}}class Av extends pa{constructor(e="Invalid Token Error"){super(e),this.name="InvalidTokenError"}}class G8e extends pa{constructor(e,r){super(e),this.status=r,this.name="NetworkError"}}class V8e extends pa{constructor(e){super(e.message()),this.operationOutcome=e,this.name="OperationOutcomeError"}}class oj extends pa{constructor(e,r){super(e),this.data=r,this.name="UnknownError"}}class fw extends pa{constructor(e){super(e.join(". ")),this.errors=e,this.name="ValidationError"}}class ur{constructor(e,r){this.data=e,r!==null&&(this.error=r)}hasError(){return this.error!==void 0}static error(e){return new ur(void 0,e)}}var woe=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},dw=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},tT,rT;class dr{static success(e){return new B8e(e)}static failure(e){return new hw(e)}}class B8e extends dr{constructor(e){super(),tT.set(this,void 0),woe(this,tT,e,"f")}data(){return dw(this,tT,"f")}error(){throw dw(this,tT,"f")}success(){return!0}failure(){return!1}toQueryResult(){return new ur(this.data())}}tT=new WeakMap;class hw extends dr{constructor(e){super(),rT.set(this,void 0),woe(this,rT,e,"f")}data(){throw dw(this,rT,"f")}error(){return dw(this,rT,"f")}success(){return!1}failure(){return!0}intoFailure(){return dr.failure(this.error())}toQueryResult(){return new ur(void 0,this.error())}}rT=new WeakMap;var aj=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},nT;class Noe{constructor(){nT.set(this,[])}add(e){aj(this,nT,"f").push(e)}errors(){return aj(this,nT,"f")}hasErrors(){return aj(this,nT,"f").length>0}}nT=new WeakMap;var Doe=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},uj=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},iT,pw;class j8e{constructor(e){iT.set(this,void 0),pw.set(this,void 0),Doe(this,pw,e,"f"),Doe(this,iT,this.transformInput(e),"f")}validate(){return dr.success(null)}data(){return uj(this,iT,"f")}toJSON(){return uj(this,iT,"f")}transformInput(e){return e}input(){return uj(this,pw,"f")}}iT=new WeakMap,pw=new WeakMap;class xn extends j8e{validate(){const e=new Noe;return this.validator.validate(this.input(),e),e.hasErrors()?dr.failure(new fw(e.errors())):dr.success(null)}}var Loe=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},_w,Uoe,$oe;const xoe=100,z8e=20;class ko{constructor(){_w.add(this)}validate(e,r){Loe(this,_w,"m",Uoe).call(this,e.page,r),Loe(this,_w,"m",$oe).call(this,e.pageSize,r)}}_w=new WeakSet,Uoe=function(e,r){e<0&&r.add("page must be a positive number")},$oe=function(e,r){e!==void 0&&(e<=0&&r.add("Page size must be greater than 0"),e>xoe&&r.add(`Page size must not exceed ${xoe}`))};class Po extends xn{constructor(){super(...arguments),this.validator=new ko}transformInput(e){return Object.assign({pageSize:z8e},e)}}const Foe=/^data:([A-Za-z0-9][A-Za-z0-9!#$&^_.+-]*\/[A-Za-z0-9][A-Za-z0-9!#$&^_.+-]*(?:;[A-Za-z0-9!#$&^_.+-]+=[A-Za-z0-9!#$&^_.+-]+)*);base64,([A-Za-z0-9+/]+={0,2})$/;function q8e(t){return Foe.test(t)}function koe(t){var e,r;const n=Foe.exec(t);return n===null?null:{contentType:(e=n[1])!==null&&e!==void 0?e:"",data:(r=n[2])!==null&&r!==void 0?r:""}}const Goe=10*1024*1024,H8e=Math.ceil(Goe/3)*4;function cj(){return new Date().toISOString()}function Y8e(){var t;return!(typeof process>"u"||((t=process.versions)===null||t===void 0?void 0:t.node)===void 0)}function Q8e(){return typeof window<"u"}function Voe(){if(Q8e())return"browser";if(Y8e())return"node";throw new Error("Invalid runtime")}function Boe(t){switch(Voe()){case"browser":return t.browser();case"node":return t.node()}}function joe(t){switch(Voe()){case"node":return Buffer.from(t,"base64").toString("utf-8");case"browser":return atob(t)}}function En(t){return t!=null}function Ko(t){return t==null}function ASt(t){return En(t)&&t!==""}function Mo(t){return t==null||t===""}function Zo(t){return t===void 0}function ti(t){return t!==void 0}function W8e(t){return JSON.parse(joe(t)).env}const K8e=3;function zoe(t){const e=t.split("."),r=e[1];if(r===void 0||e.length!==K8e)throw new Av("Token is missing data and may be corrupted");try{return JSON.parse(joe(r))}catch(n){const i=n;throw new Av(`Unable to parse token payload: ${i.name} - ${i.message}`)}}function qoe(t){const r=zoe(t).exp;if(typeof r!="number")throw new Av("The access token is missing an expiration date and is most likely corrupted.");return r*1e3}const Z8e="custom:clientFhirPersonId",X8e="custom:bwellFhirPatientId";function J8e(t){const e=zoe(t),r=e[X8e],n=e[Z8e];return En(r)&&En(n)?{bwellFhirPersonId:r,clientFhirPersonId:n}:null}function Io(t){return t.trim()===""}const Hoe="1.114.0";function eWe(){return Hoe}var lj;(function(t){t.Arrived="ARRIVED",t.Booked="BOOKED",t.Cancelled="CANCELLED",t.CheckedIn="CHECKED_IN",t.EnteredInError="ENTERED_IN_ERROR",t.Fulfilled="FULFILLED",t.Noshow="NOSHOW",t.Pending="PENDING",t.Proposed="PROPOSED",t.Waitlist="WAITLIST"})(lj||(lj={}));var Yoe;(function(t){t.Guest="GUEST",t.Other="OTHER",t.Self="SELF"})(Yoe||(Yoe={}));var Qoe;(function(t){t.Guest="GUEST"})(Qoe||(Qoe={}));var mw;(function(t){t.CmsNetworkShareMyRecords="CMS_NETWORK_SHARE_MY_RECORDS",t.CommunicationPreferencesPhi="COMMUNICATION_PREFERENCES_PHI",t.DataSharing="DATA_SHARING",t.DirectImportRecords="DIRECT_IMPORT_RECORDS",t.HealthCircleAdolescent="HEALTH_CIRCLE_ADOLESCENT",t.HealthCircleMinor="HEALTH_CIRCLE_MINOR",t.HealthMatch="HEALTH_MATCH",t.IasImportRecords="IAS_IMPORT_RECORDS",t.MobileCommunicationPreferences="MOBILE_COMMUNICATION_PREFERENCES",t.PersonalizedHealthOffersAndAds="PERSONALIZED_HEALTH_OFFERS_AND_ADS",t.ProaAttestation="PROA_ATTESTATION",t.Tos="TOS"})(mw||(mw={}));var Woe;(function(t){t.Complete="COMPLETE",t.Error="ERROR",t.Partial="PARTIAL",t.Queued="QUEUED"})(Woe||(Woe={}));var Koe;(function(t){t.Institutional="INSTITUTIONAL",t.Oral="ORAL",t.Pharmacy="PHARMACY",t.Professional="PROFESSIONAL",t.Vision="VISION"})(Koe||(Koe={}));var Zoe;(function(t){t.Bwell="bwell"})(Zoe||(Zoe={}));var Xoe;(function(t){t.Bwell="BWELL"})(Xoe||(Xoe={}));var Joe;(function(t){t.Basic="BASIC",t.Identity="IDENTITY",t.Oauth="OAUTH"})(Joe||(Joe={}));var fj;(function(t){t.Deny="DENY",t.Permit="PERMIT"})(fj||(fj={}));var dj;(function(t){t.Active="ACTIVE",t.Draft="DRAFT",t.EnteredInError="ENTERED_IN_ERROR",t.Inactive="INACTIVE",t.Proposed="PROPOSED",t.Rejected="REJECTED"})(dj||(dj={}));var eae;(function(t){t.Medical="MEDICAL",t.Pharmacy="PHARMACY"})(eae||(eae={}));var tae;(function(t){t.Usd="USD"})(tae||(tae={}));var rae;(function(t){t.Accepted="ACCEPTED",t.Rejected="REJECTED"})(rae||(rae={}));var nae;(function(t){t.AccessEnded="ACCESS_ENDED",t.Connected="CONNECTED",t.Deleted="DELETED",t.Disconnected="DISCONNECTED",t.Error="ERROR",t.Expired="EXPIRED"})(nae||(nae={}));var iae;(function(t){t.Clinical="CLINICAL",t.Device="DEVICE",t.Insurance="INSURANCE",t.Lab="LAB",t.Pharmacy="PHARMACY",t.Practitioner="PRACTITIONER"})(iae||(iae={}));var gw;(function(t){t.Connecthub="connecthub",t.Nppes="nppes"})(gw||(gw={}));var sae;(function(t){t.Connecthub="CONNECTHUB",t.Nppes="NPPES"})(sae||(sae={}));var oae;(function(t){t.Fri="FRI",t.Mon="MON",t.Sat="SAT",t.Sun="SUN",t.Thu="THU",t.Tue="TUE",t.Wed="WED"})(oae||(oae={}));var aae;(function(t){t.Deleted="DELETED"})(aae||(aae={}));var uae;(function(t){t.Kilometers="KILOMETERS",t.Meters="METERS",t.Miles="MILES"})(uae||(uae={}));var cae;(function(t){t.BwellPatient="BWELL_PATIENT",t.BwellPerson="BWELL_PERSON",t.ClientPatient="CLIENT_PATIENT",t.ClientPerson="CLIENT_PERSON"})(cae||(cae={}));var lae;(function(t){t.Active="active",t.EnteredInError="entered_in_error",t.Error="error",t.Off="off",t.Suspended="suspended",t.Test="test"})(lae||(lae={}));var fae;(function(t){t.Active="ACTIVE",t.EnteredInError="ENTERED_IN_ERROR",t.Error="ERROR",t.Off="OFF",t.Suspended="SUSPENDED",t.Test="TEST"})(fae||(fae={}));var hj;(function(t){t.CustomEvent="CUSTOM_EVENT",t.MobilePushOpen="MOBILE_PUSH_OPEN"})(hj||(hj={}));var pj;(function(t){t.Female="female",t.Male="male",t.Other="other",t.Unknown="unknown"})(pj||(pj={}));var _j;(function(t){t.Person="Person"})(_j||(_j={}));var mj;(function(t){t.Characteristic="characteristic",t.Communication="communication",t.Gender="gender",t.Specialty="specialty"})(mj||(mj={}));var dae;(function(t){t.Characteristic="CHARACTERISTIC",t.Communication="COMMUNICATION",t.Gender="GENDER",t.InsurancePlan="INSURANCE_PLAN",t.Specialty="SPECIALTY"})(dae||(dae={}));var hae;(function(t){t.Female="female",t.Male="male",t.Other="other",t.Unknown="unknown"})(hae||(hae={}));var pae;(function(t){t.Female="FEMALE",t.Male="MALE",t.Other="OTHER",t.Unknown="UNKNOWN"})(pae||(pae={}));var _ae;(function(t){t.AllergyIntolerance="ALLERGY_INTOLERANCE",t.CarePlan="CARE_PLAN",t.Condition="CONDITION",t.Encounter="ENCOUNTER",t.Immunization="IMMUNIZATION",t.Labs="LABS",t.Medications="MEDICATIONS",t.Procedure="PROCEDURE",t.VitalSigns="VITAL_SIGNS"})(_ae||(_ae={}));var mae;(function(t){t.Official="_official",t.Old="_old",t.Secondary="_secondary",t.Temp="_temp",t.Usual="_usual"})(mae||(mae={}));var gae;(function(t){t.Cognito="COGNITO",t.Descope="DESCOPE"})(gae||(gae={}));var vae;(function(t){t.Direct="DIRECT",t.DirectIas="DIRECT_IAS",t.Ial2="IAL2",t.IndirectIas="INDIRECT_IAS",t.Proa="PROA"})(vae||(vae={}));var Sae;(function(t){t.Clicked="clicked"})(Sae||(Sae={}));var yae;(function(t){t.Clicked="CLICKED"})(yae||(yae={}));var gj;(function(t){t.Debug="DEBUG",t.Error="ERROR",t.Info="INFO",t.Verbose="VERBOSE",t.Warn="WARN"})(gj||(gj={}));var Eae;(function(t){t.Sms="SMS"})(Eae||(Eae={}));var vj;(function(t){t.Activity="ACTIVITY",t.Exam="EXAM",t.Imaging="IMAGING",t.Laboratory="LABORATORY",t.Procedure="PROCEDURE",t.SocialHistory="SOCIAL_HISTORY",t.Survey="SURVEY",t.Therapy="THERAPY",t.VitalSigns="VITAL_SIGNS"})(vj||(vj={}));var Aae;(function(t){t.CancelDelete="CANCEL_DELETE",t.ConfirmDelete="CONFIRM_DELETE",t.DeletionInProgress="DELETION_IN_PROGRESS",t.ImmediateExecution="IMMEDIATE_EXECUTION",t.RequestDelete="REQUEST_DELETE"})(Aae||(Aae={}));var Sj;(function(t){t.C19Vaccine="C19Vaccine",t.Device="Device",t.Insurance="Insurance",t.Laboratory="Laboratory",t.Pharmacy="Pharmacy",t.Provider="Provider",t.Bus="bus",t.Cg="cg",t.Crs="crs",t.Dept="dept",t.Edu="edu",t.Govt="govt",t.Ins="ins",t.Other="other",t.Pay="pay",t.Prov="prov",t.Reli="reli",t.Team="team"})(Sj||(Sj={}));var Tae;(function(t){t.Bus="BUS",t.C19Vaccine="C19VACCINE",t.Cg="CG",t.Crs="CRS",t.Dept="DEPT",t.Device="DEVICE",t.Edu="EDU",t.Govt="GOVT",t.Ins="INS",t.Insurance="INSURANCE",t.Laboratory="LABORATORY",t.Other="OTHER",t.Pay="PAY",t.Pharmacy="PHARMACY",t.Prov="PROV",t.Provider="PROVIDER",t.Reli="RELI",t.Team="TEAM"})(Tae||(Tae={}));var bae;(function(t){t.Add="add",t.Copy="copy",t.Move="move",t.Remove="remove",t.Replace="replace",t.Test="test"})(bae||(bae={}));var Cae;(function(t){t.ExistingPatients="EXISTING_PATIENTS",t.NewPatients="NEW_PATIENTS"})(Cae||(Cae={}));var Rae;(function(t){t.Patient="Patient",t.Person="Person"})(Rae||(Rae={}));var Oae;(function(t){t.IdentityProofing="IDENTITY_PROOFING"})(Oae||(Oae={}));var Pae;(function(t){t.Practice="practice",t.Practitioner="practitioner"})(Pae||(Pae={}));var Mae;(function(t){t.Practice="PRACTICE",t.Practitioner="PRACTITIONER"})(Mae||(Mae={}));var Iae;(function(t){t.QuestionnaireResponse="QuestionnaireResponse"})(Iae||(Iae={}));var wae;(function(t){t.Closed="CLOSED",t.Hold="HOLD",t.New="NEW",t.Open="OPEN",t.Pending="PENDING",t.Solved="SOLVED"})(wae||(wae={}));var Nae;(function(t){t.AllergyIntolerance="ALLERGY_INTOLERANCE",t.CarePlan="CARE_PLAN",t.Condition="CONDITION",t.DocumentReference="DOCUMENT_REFERENCE",t.Encounter="ENCOUNTER",t.Immunization="IMMUNIZATION",t.MedicationDispense="MEDICATION_DISPENSE",t.MedicationRequest="MEDICATION_REQUEST",t.MedicationStatement="MEDICATION_STATEMENT",t.Observation="OBSERVATION",t.Procedure="PROCEDURE"})(Nae||(Nae={}));var Dae;(function(t){t.DataConnections="DATA_CONNECTIONS",t.FindCare="FIND_CARE"})(Dae||(Dae={}));var Lae;(function(t){t.Device="DEVICE",t.Insurance="INSURANCE",t.Laboratory="LABORATORY",t.Pharmacy="PHARMACY",t.Practice="PRACTICE",t.Practitioner="PRACTITIONER"})(Lae||(Lae={}));var Uae;(function(t){t.Abortion="ABORTION",t.AbuseNeglect="ABUSE_NEGLECT",t.DomesticViolence="DOMESTIC_VIOLENCE",t.GenderAffirming="GENDER_AFFIRMING",t.GeneticTesting="GENETIC_TESTING",t.HivAids="HIV_AIDS",t.Mammography="MAMMOGRAPHY",t.MentalHealth="MENTAL_HEALTH",t.ReproductiveHealthcare="REPRODUCTIVE_HEALTHCARE",t.SexualAssault="SEXUAL_ASSAULT",t.Std="STD",t.SubstanceAbuse="SUBSTANCE_ABUSE",t.SubstanceAlcohol="SUBSTANCE_ALCOHOL"})(Uae||(Uae={}));var $ae;(function(t){t.UpdatedAt="UPDATED_AT"})($ae||($ae={}));var yj;(function(t){t.Content="content",t.Distance="distance",t.Relevance="relevance"})(yj||(yj={}));var xae;(function(t){t.Content="CONTENT",t.DataSourceRank="DATA_SOURCE_RANK",t.Distance="DISTANCE",t.Name="NAME",t.NextAvailable="NEXT_AVAILABLE",t.OnlineBookingAvailable="ONLINE_BOOKING_AVAILABLE",t.Rating="RATING",t.Relevance="RELEVANCE"})(xae||(xae={}));var vw;(function(t){t.Asc="asc",t.Desc="desc"})(vw||(vw={}));var Fae;(function(t){t.Asc="ASC",t.Desc="DESC"})(Fae||(Fae={}));var kae;(function(t){t.CareSearch="CARE_SEARCH",t.Proa="PROA",t.ProviderDetails="PROVIDER_DETAILS",t.Sayt="SAYT",t.Unspecified="UNSPECIFIED"})(kae||(kae={}));var Gae;(function(t){t.DataDeleted="DATA_DELETED",t.Deleting="DELETING",t.Error="ERROR",t.Pending="PENDING",t.Retrieved="RETRIEVED",t.Retrieving="RETRIEVING"})(Gae||(Gae={}));var Ej;(function(t){t.Accepted="ACCEPTED",t.Cancelled="CANCELLED",t.Completed="COMPLETED",t.Draft="DRAFT",t.EnteredInError="ENTERED_IN_ERROR",t.Failed="FAILED",t.InProgress="IN_PROGRESS",t.OnHold="ON_HOLD",t.Ready="READY",t.Received="RECEIVED",t.Rejected="REJECTED",t.Requested="REQUESTED"})(Ej||(Ej={}));var Sw;(function(t){t.Accurate="accurate",t.Estimate="estimate"})(Sw||(Sw={}));var Vae;(function(t){t.Active="ACTIVE",t.Completed="COMPLETED"})(Vae||(Vae={}));var Bae;(function(t){t.PersonMatchError="PERSON_MATCH_ERROR",t.ServerError="SERVER_ERROR"})(Bae||(Bae={}));const tWe=new Set(Object.values(pj));function jae(t){return tWe.has(t)}const rWe=new Set(Object.values(dj));function nWe(t){return rWe.has(t)}const iWe=new Set(Object.values(mw));function zae(t){return iWe.has(t)}const sWe=new Set(Object.values(fj));function oWe(t){return sWe.has(t)}class aWe{validate(e,r){!Zo(e.gender)&&!jae(e.gender)&&r.add(`Invalid gender value: "${e.gender}"`),!Zo(e.middleNames)&&e.middleNames.length>0&&Zo(e.firstName)&&r.add("middleNames requires firstName to be provided")}}class TSt extends xn{constructor(){super(...arguments),this.validator=new aWe}}class uWe{validate(e,r){zae(e.category)||r.add(`Invalid consent category code: "${e.category}"`),!Zo(e.organizationId)&&Io(e.organizationId)&&r.add("organizationId cannot be empty")}}class bSt extends xn{constructor(){super(...arguments),this.validator=new uWe}}class cWe{validate(e,r){nWe(e.status)||r.add(`Invalid consent status: "${e.status}"`),oWe(e.provision)||r.add(`Invalid consent provision type: "${e.provision}"`),zae(e.category)||r.add(`Invalid consent category code: "${e.category}"`),!Zo(e.organizationId)&&Io(e.organizationId)&&r.add("organizationId cannot be empty"),e.category===mw.ProaAttestation&&Zo(e.organizationId)&&r.add("organizationId must be provided when category is PROA_ATTESTATION")}}class CSt extends xn{constructor(){super(...arguments),this.validator=new cWe}}class lWe{validate(e,r){Mo(e.exportId)&&r.add("exportId is required"),Mo(e.password)&&r.add("password is required")}}class RSt extends xn{constructor(){super(...arguments),this.validator=new lWe}}var OSt;class PSt extends null{}var Yu=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Ka,Dh,qae,Hae,Yae,Qae,Wae,Kae;class k_{constructor(){Ka.add(this)}validate(e,r){if(!e.values||e.values.length===0){r.add("At least one SearchDateValue must be set to instantiate a SearchDate");return}for(const n of e.values)Yu(this,Ka,"m",qae).call(this,n,r)}}Ka=new WeakSet,Dh=function(e,r){e&&e!==null&&isNaN(e.getTime())&&r.add("The date is not valid")},qae=function(e,r){const{equals:n,notEquals:i,greaterThan:s,greaterThanOrEqualTo:o,lessThan:a,lessThanOrEqualTo:u,approximately:c}=e,d=[n,i,s,o,a,u,c].filter(p=>p!=null).length;if(d===0){r.add("At least one SearchDateValue must be set to instantiate a SearchDate");return}Yu(this,Ka,"m",Hae).call(this,e,d,r),Yu(this,Ka,"m",Wae).call(this,e,r),Yu(this,Ka,"m",Kae).call(this,e,r)},Hae=function(e,r,n){const{equals:i,notEquals:s,approximately:o}=e;if(i&&r>1){n.add("The equals value cannot be set with any other values");return}if(s&&r>1){n.add("The notEquals value cannot be set with any other values");return}if(o&&r>1){n.add("The approximately value cannot be set with any other values");return}Yu(this,Ka,"m",Yae).call(this,e,n),Yu(this,Ka,"m",Qae).call(this,e,n)},Yae=function(e,r){e.greaterThan&&e.greaterThanOrEqualTo&&r.add("The greaterThan/greaterThanOrEqualTo value cannot be set with both values")},Qae=function(e,r){e.lessThan&&e.lessThanOrEqualTo&&r.add("The lessThan/lessThanOrEqualTo value cannot be set with both values")},Wae=function(e,r){const{equals:n,notEquals:i,greaterThan:s,greaterThanOrEqualTo:o,lessThan:a,lessThanOrEqualTo:u,approximately:c}=e;n&&Yu(this,Ka,"m",Dh).call(this,n,r),i&&Yu(this,Ka,"m",Dh).call(this,i,r),s&&Yu(this,Ka,"m",Dh).call(this,s,r),o&&Yu(this,Ka,"m",Dh).call(this,o,r),a&&Yu(this,Ka,"m",Dh).call(this,a,r),u&&Yu(this,Ka,"m",Dh).call(this,u,r),c&&Yu(this,Ka,"m",Dh).call(this,c,r)},Kae=function(e,r){const{greaterThan:n,greaterThanOrEqualTo:i,lessThan:s,lessThanOrEqualTo:o}=e;n&&o&&n>=o&&r.add("The greaterThan value must be less than the lessThanOrEqualTo value"),i&&s&&i>=s&&r.add("The greaterThanOrEqualTo value must be less than the lessThan value"),n&&s&&n>=s&&r.add("The greaterThan value must be less than the lessThan value"),i&&o&&i>=o&&r.add("The greaterThanOrEqualTo value must be less than the lessThanOrEqualTo value")};var Aj=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},sT;class Lh{constructor(){sT.set(this,new fWe)}validate(e,r){var n;if(e.value===void 0&&e.values===void 0&&e.notEquals===void 0){r.add("Either SearchToken value or values or notEquals must be provided");return}if(e.value!==void 0&&Aj(this,sT,"f").validate(e.value,r),e.values!==void 0&&e.values.length===0){r.add("At least one Coding must be set to instantiate a SearchToken");return}for(const i of(n=e.values)!==null&&n!==void 0?n:[])Aj(this,sT,"f").validate(i,r);if(e.notEquals!==void 0){if(e.notEquals.values!==void 0){if(e.notEquals.values.length===0){r.add("If notEquals values are provided, at least one Coding must be set");return}for(const i of e.notEquals.values)Aj(this,sT,"f").validate(i,r)}e.notEquals.code===void 0&&e.notEquals.value===void 0&&e.notEquals.system===void 0&&e.notEquals.values===void 0&&r.add("NotEquals must have at least one non-null property (code, value, system, or values)")}}}sT=new WeakMap;class fWe{validate(e,r){!e.system&&!e.code&&r.add("Each Coding in the list must have at least one non-null and non-empty value for system or code")}}var MSt,G_=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Tj,bj,Cj,Rj,Oj,Pj,Mj;class Ij extends ko{constructor(){super(...arguments),Tj.set(this,new Lh),bj.set(this,new k_)}validate(e,r){super.validate(e,r),e.groupCode&&G_(this,Tj,"f").validate(e.groupCode,r),e.lastUpdated&&G_(this,bj,"f").validate(e.lastUpdated,r)}}Tj=new WeakMap,bj=new WeakMap;class dWe{validate(e,r){e.length===0&&r.add("Prescription array must not be empty.")}}class Zae extends ko{constructor(){super(...arguments),Cj.set(this,new dWe),Rj.set(this,new k_)}validate(e,r){super.validate(e,r),e.lastUpdated!==void 0&&G_(this,Rj,"f").validate(e.lastUpdated,r),e.prescription!==void 0&&G_(this,Cj,"f").validate(e.prescription,r)}}Cj=new WeakMap,Rj=new WeakMap;class hWe extends ko{validate(e,r){var n;super.validate(e,r),!((n=e?.ids)===null||n===void 0)&&n.length||r.add("ids must not be empty")}}class pWe extends Po{constructor(){super(...arguments),this.validator=new Ij}}class ISt extends null{}class wSt extends null{}class NSt extends null{}class DSt extends null{}class _We extends Ij{constructor(){super(...arguments),Oj.set(this,new Lh)}validate(e,r){super.validate(e,r),e.category!==void 0&&G_(this,Oj,"f").validate(e.category,r)}}Oj=new WeakMap;class LSt extends Po{constructor(){super(...arguments),this.validator=new _We}}class USt extends null{}class $St extends null{}class xSt extends null{}class FSt extends null{}class kSt extends null{}class GSt extends null{}class VSt extends null{}class BSt extends null{}class jSt extends null{}class zSt extends null{}class qSt extends null{}class HSt extends null{}class YSt extends null{}class QSt extends null{}class WSt extends null{}class mWe extends Zae{constructor(){super(...arguments),Pj.set(this,new Lh)}validate(e,r){super.validate(e,r),e.medicationCode!==void 0&&G_(this,Pj,"f").validate(e.medicationCode,r)}}Pj=new WeakMap;class KSt extends Po{constructor(){super(...arguments),this.validator=new Zae}}class ZSt extends Po{constructor(){super(...arguments),this.validator=new mWe}}class gWe extends Ij{constructor(){super(...arguments),Mj.set(this,new Lh)}validate(e,r){super.validate(e,r),e.medicationCode!==void 0&&G_(this,Mj,"f").validate(e.medicationCode,r)}}Mj=new WeakMap;class XSt extends pWe{constructor(){super(...arguments),this.validator=new gWe}}class JSt extends null{}class eyt extends null{}class tyt extends Po{constructor(){super(...arguments),this.validator=new hWe}}class vWe{validate(e,r){Io(e.medicationStatementId)&&r.add("The medication pricing request must possess a medication statement id.")}}class ryt extends xn{constructor(){super(...arguments),this.validator=new vWe}}class SWe{validate(e,r){Io(e.bodySystemId)&&r.add("The body system score request must contain a body system id.")}}class nyt extends xn{constructor(){super(...arguments),this.validator=new SWe}}class yWe extends ko{validate(e,r){Io(e.medicationStatementId)&&r.add("The medication knowledge request must possess a medication statement id."),super.validate(e,r)}}class iyt extends Po{constructor(){super(...arguments),this.validator=new yWe}}class EWe extends ko{validate(e,r){Io(e.labId)&&r.add("The lab knowledge request must contain a lab id."),super.validate(e,r)}}class syt extends Po{constructor(){super(...arguments),this.validator=new EWe}}var Xae;(function(t){t.Active="ACTIVE",t.Completed="COMPLETED"})(Xae||(Xae={}));class AWe{validate(e,r){Ko(e)&&r.add("input must be provided."),Mo(e.id)&&r.add("id must be a non-empty string."),Ko(e.status)&&r.add("status is required.")}}class oyt extends xn{constructor(){super(...arguments),this.validator=new AWe}}class TWe{validate(e,r){if(Mo(e.file)){r.add("File content is required");return}const n=koe(e.file);if(n===null){r.add("File must be a valid data URI with base64 encoding (e.g., data:image/png;base64,...)");return}n.data.length>H8e&&r.add(`File content must not exceed ${Goe/(1024*1024)} MB`)}}class ayt extends xn{constructor(){super(...arguments),this.validator=new TWe}}const bWe=new Set(Object.values(Ej));function wj(t){return bWe.has(t)}var CWe=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Nj,Jae;class RWe extends ko{constructor(){super(...arguments),Nj.add(this)}validate(e,r){if(super.validate(e,r),!Zo(e.status)){const n=Array.isArray(e.status)?e.status:[e.status];for(const i of n)CWe(this,Nj,"m",Jae).call(this,i,r)}}}Nj=new WeakSet,Jae=function(e,r){wj(e)||r.add(`Invalid task status: "${e}"`)};class uyt extends Po{constructor(){super(...arguments),this.validator=new RWe}}class OWe{validate(e,r){wj(e.newStatus)||r.add(`Invalid task status: "${e.newStatus}"`)}}class cyt extends xn{constructor(){super(...arguments),this.validator=new OWe}}class PWe{validate(e,r){wj(e.newStatus)||r.add(`Invalid task status: "${e.newStatus}"`)}}class lyt extends xn{constructor(){super(...arguments),this.validator=new PWe}transformInput(e){return{id:e.taskId,status:e.newStatus}}}var yw=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Tv,eue,tue,rue,nue;class fyt extends Po{constructor(){super(...arguments),this.validator=new MWe}}class MWe extends ko{constructor(){super(...arguments),Tv.add(this)}validate(e,r){super.validate(e,r),ti(e.organizationTypeFilters)&&yw(this,Tv,"m",eue).call(this,e.organizationTypeFilters,r),ti(e.sortBy)&&yw(this,Tv,"m",tue).call(this,e.sortBy,r),ti(e.filterFields)&&yw(this,Tv,"m",rue).call(this,e.filterFields,r),ti(e.gender)&&yw(this,Tv,"m",nue).call(this,e.gender,r)}}Tv=new WeakSet,eue=function(e,r){for(const n of e)wWe(n)||r.add(`Invalid organizationTypeFilters value: "${n}"`)},tue=function(e,r){ti(e.field)&&!DWe(e.field)&&r.add(`Invalid sortBy.field value: "${e.field}"`),ti(e.order)&&!UWe(e.order)&&r.add(`Invalid sortBy.order value: "${e.order}"`)},rue=function(e,r){for(const n of e)xWe(n)||r.add(`Invalid filterField value: "${n}"`)},nue=function(e,r){jae(e)||r.add(`Invalid gender value: "${e}"`)};const IWe=new Set(Object.values(Sj));function wWe(t){return IWe.has(t)}const NWe=new Set(Object.values(yj));function DWe(t){return NWe.has(t)}const LWe=new Set(Object.values(vw));function UWe(t){return LWe.has(t)}const $We=new Set(Object.values(mj));function xWe(t){return $We.has(t)}var dyt;class hyt extends null{}class pyt extends Po{constructor(){super(...arguments),this.validator=new FWe}}class FWe extends ko{validate(e,r){super.validate(e,r)}}const kWe="data-connection-status";var GWe=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Dj;const VWe="connectionId cannot be null or empty",BWe="username cannot be null or empty",jWe="password cannot be null or empty",zWe="integrationType array cannot be empty",qWe="integrationType array cannot contain blank or empty strings",HWe="status array cannot be empty",YWe="status array cannot contain blank or empty strings";class iue{validate(e,r){e.connectionId===""&&r.add(VWe)}}class QWe{constructor(){Dj.set(this,new iue)}validate(e,r){GWe(this,Dj,"f").validate(e,r),e.integrationType!=="DIRECT"&&(Mo(e.username)&&r.add(BWe),Mo(e.password)&&r.add(jWe))}}Dj=new WeakMap;class WWe extends xn{constructor(){super(...arguments),this.validator=new iue}}class _yt extends null{}class myt extends null{}class gyt extends WWe{constructor(){super(...arguments),this.validator=new QWe}transformInput(e){var r,n,i;return{connectionId:e.connectionId,username:(r=e.username)!==null&&r!==void 0?r:null,password:(n=e.password)!==null&&n!==void 0?n:null,integrationType:(i=e.integrationType)!==null&&i!==void 0?i:null}}}class vyt extends xn{constructor(){super(...arguments),this.validator={validate:(e,r)=>{e.integrationType!==void 0&&e.integrationType!==null&&(e.integrationType.length===0&&r.add(zWe),e.integrationType.some(n=>n===""||n.trim()==="")&&r.add(qWe)),e.status!==void 0&&e.status!==null&&(e.status.length===0&&r.add(HWe),e.status.some(n=>n===""||n.trim()==="")&&r.add(YWe))}}}data(){return this.input()}}const KWe="deviceToken is required",ZWe="platformName must be a valid DevicePlatform value",XWe="applicationName is required",JWe="connectionId is required";var Lj;(function(t){t.IOS="IOS",t.ANDROID="ANDROID"})(Lj||(Lj={}));const eKe=new Set(Object.values(Lj));function tKe(t){return eKe.has(t)}function rKe(t){return!tKe(t)}class sue{validate(e,r){Io(e.deviceToken)&&r.add(KWe)}}class nKe extends sue{validate(e,r){super.validate(e,r),rKe(e.platformName.toUpperCase())&&r.add(ZWe),Io(e.applicationName)&&r.add(XWe)}}class Syt extends xn{constructor(){super(...arguments),this.validator=new nKe}}class yyt extends xn{constructor(){super(...arguments),this.validator=new sue}}class Uj{validate(e,r){Io(e.connectionId)&&r.add(JWe)}}class Eyt extends xn{constructor(){super(...arguments),this.validator=new Uj}}class Ayt extends xn{constructor(){super(...arguments),this.validator=new Uj}}class Tyt extends xn{constructor(){super(...arguments),this.validator=new Uj}}const iKe="string parameter serializedNotification must be provided",sKe="serialized notification must have a non-empty notification_id field of type string",oue="serialized notification must have an itbl object containing a non-empty messageId field of type string",oKe="parsed notification must be a non-null object.",aKe="serialized notification is not valid JSON.";class uKe{validate(e,r){if(Zo(e.serializedNotification)||typeof e.serializedNotification!="string"||Io(e.serializedNotification)){r.add(iKe);return}let n=null;try{n=JSON.parse(e.serializedNotification)}catch{r.add(aKe);return}if(typeof n!="object"||n===null){r.add(oKe);return}const{itbl:i,notification_id:s}=n;if((Zo(s)||typeof s!="string"||Io(s))&&r.add(sKe),typeof i!="object"||Ko(i)){r.add(oue);return}(Zo(i.messageId)||typeof i.messageId!="string"||Io(i.messageId))&&r.add(oue)}}class byt extends xn{constructor(){super(...arguments),this.validator=new uKe}}var $j=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},oT;class cKe extends ko{constructor(){super(...arguments),oT.set(this,new k_)}validate(e,r){(Zo(e.coverage)||Io(e.coverage))&&r.add("The claim summary request must contain a coverage ID."),ti(e.dateReceived)&&$j(this,oT,"f").validate(e.dateReceived,r),ti(e.servicePeriod)&&$j(this,oT,"f").validate(e.servicePeriod,r),ti(e.dateProcessed)&&$j(this,oT,"f").validate(e.dateProcessed,r),super.validate(e,r)}}oT=new WeakMap;class Cyt extends Po{constructor(){super(...arguments),this.validator=new cKe}}const lKe="SearchReference value should be a non-empty string";class aue{validate(e,r){Ko(e.value)||(typeof e.value!="string"||Io(e.value))&&r.add(lKe)}}const fKe="SearchStringValue should be a non-empty string";class aT{validate(e,r){if(Ko(e.values))return;let n=!1;for(const i of e.values)Io(i)&&(n=!0);n&&r.add(fKe)}}var Ew=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},xj,Fj,Aw;class dKe extends ko{constructor(){super(...arguments),xj.set(this,new aT),Fj.set(this,new k_),Aw.set(this,new aue)}validate(e,r){super.validate(e,r),ti(e.id)&&Ew(this,xj,"f").validate(e.id,r),ti(e.lastUpdated)&&Ew(this,Fj,"f").validate(e.lastUpdated,r),ti(e.beneficiary)&&Ew(this,Aw,"f").validate(e.beneficiary,r),ti(e.patient)&&Ew(this,Aw,"f").validate(e.patient,r)}}xj=new WeakMap,Fj=new WeakMap,Aw=new WeakMap;class Ryt extends Po{constructor(){super(...arguments),this.validator=new dKe}}class hKe extends ko{validate(e,r){super.validate(e,r)}}class Oyt extends Po{constructor(){super(...arguments),this.validator=new hKe}}class pKe{validate(e,r){(Zo(e.claimId)||Io(e.claimId))&&r.add("The EOB document request must contain a claimId.")}}class Pyt extends xn{constructor(){super(...arguments),this.validator=new pKe}}var V_=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},kj,Tw,uT,Gj;class _Ke extends ko{constructor(){super(...arguments),kj.set(this,new aT),Tw.set(this,new k_),uT.set(this,new aue),Gj.set(this,new Lh)}validate(e,r){super.validate(e,r),ti(e.id)&&V_(this,kj,"f").validate(e.id,r),ti(e.lastUpdated)&&V_(this,Tw,"f").validate(e.lastUpdated,r),ti(e.created)&&V_(this,Tw,"f").validate(e.created,r),ti(e.patient)&&V_(this,uT,"f").validate(e.patient,r),ti(e.provider)&&V_(this,uT,"f").validate(e.provider,r),ti(e.coverage)&&V_(this,uT,"f").validate(e.coverage,r),ti(e.status)&&V_(this,Gj,"f").validate(e.status,r)}}kj=new WeakMap,Tw=new WeakMap,uT=new WeakMap,Gj=new WeakMap;class Myt extends Po{constructor(){super(...arguments),this.validator=new _Ke}}var Vj=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Bj,jj,zj;class mKe{constructor(){Bj.set(this,new k_),jj.set(this,new aT),zj.set(this,new Lh)}validate(e,r){var n;En(e._source)&&Vj(this,jj,"f").validate(e._source,r),En(e.date)&&Vj(this,Bj,"f").validate(e.date,r),En(e._count)&&e._count<0&&r.add("Value of count cannot be less than 0"),En(e._getpagesoffset)&&e._getpagesoffset<0&&r.add("Value of getpagesoffset cannot be less than 0"),En((n=e.supporting_info)===null||n===void 0?void 0:n.value)&&Io(e.supporting_info.value)&&r.add("Supporting Information must have a non-empty value."),En(e.status)&&Vj(this,zj,"f").validate(e.status,r)}}Bj=new WeakMap,jj=new WeakMap,zj=new WeakMap;class Iyt extends xn{constructor(){super(...arguments),this.validator=new mKe}}class gKe{validate(e,r){if(!Ko(e.cancelationReason)){if(Ko(e.cancelationReason.coding)||e.cancelationReason.coding.length===0){r.add("cancelationReason must have at least one coding");return}for(const n of e.cancelationReason.coding)(Ko(n?.code)||Ko(n?.system))&&r.add("cancelationReason.coding must have a code and a system")}}}class wyt extends xn{constructor(){super(...arguments),this.validator=new gKe}}class vKe{validate(e,r){if(Ko(e.notificationPreferences)||e.notificationPreferences.length===0){r.add("notificationPreferences is required and must not be empty");return}e.notificationPreferences.forEach((n,i)=>{Ko(n.method)&&r.add(`notificationPreferences[${i}].method is required`),Ko(n.enabled)&&r.add(`notificationPreferences[${i}].enabled is required`)})}}class Nyt extends xn{constructor(){super(...arguments),this.validator=new vKe}}class SKe{validate(e,r){var n;Mo((n=e.organization.value)===null||n===void 0?void 0:n.trim())&&r.add("Organization reference is required and must have a non-empty value.")}}class Dyt extends xn{constructor(){super(...arguments),this.validator=new SKe}}class bw{validate(e,r,n={}){const{requireRole:i=!0}=n;En(e.id)?Io(e.id)?r.add("Member id cannot be empty"):e.id.length>255&&r.add("Member id cannot exceed 255 characters"):r.add("Member id is required"),En(e.type)?Io(e.type)&&r.add("Member type cannot be empty"):r.add("Member type is required");const s=En(e.role);if(i&&!s&&r.add("Member role is required"),s&&e.role)for(let o=0;o<e.role.length;o++){const a=e.role[o];En(a)?Io(a)&&r.add(`Role ${o}: Cannot be blank`):r.add(`Role ${o}: Cannot be null or undefined`)}}}class Lyt extends xn{constructor(){super(...arguments),this.validator=new bw}}class yKe{constructor(){this.updateValidator=new bw}validate(e,r){this.updateValidator.validate(e,r,{requireRole:!1})}}class Uyt extends xn{constructor(){super(...arguments),this.validator=new yKe}}class EKe{constructor(){this.updateValidator=new bw}validate(e,r){this.updateValidator.validate(e,r,{requireRole:!0})}}class $yt extends xn{constructor(){super(...arguments),this.validator=new EKe}}class AKe{constructor(){this.updateValidator=new bw}validate(e,r){if(!En(e.members)){r.add("Members array is required");return}if(e.members.length===0){r.add("Members array cannot be empty");return}for(let n=0;n<e.members.length;n++){const i=e.members[n];if(!En(i)){r.add(`Member ${n}: Cannot be null or undefined`);continue}const s=new Noe;this.updateValidator.validate(i,s,{requireRole:!0});for(const o of s.errors())r.add(`Member ${n}: ${o}`)}}}class xyt extends xn{constructor(){super(...arguments),this.validator=new AKe}}class TKe extends ko{validate(e,r){super.validate(e,r)}}class bKe extends Po{constructor(){super(...arguments),this.validator=new TKe}}class CKe{validate(e,r){const n=e.questionnaireResponse;if(Ko(n)){r.add("questionnaireResponse is required");return}if((Mo(n.resourceType)||n.resourceType!=="QuestionnaireResponse")&&r.add('questionnaireResponse.resourceType must be "QuestionnaireResponse"'),Mo(n.status)&&r.add("questionnaireResponse.status is required"),Mo(n.questionnaire)&&r.add("questionnaireResponse.questionnaire is required"),Ko(n.contained)||n.contained.length===0)r.add("questionnaireResponse.contained must have at least one item");else{let i=null;for(const s of n.contained){if(Ko(s)){r.add("questionnaireResponse.contained item cannot be null or undefined");break}if(s.resourceType==="Questionnaire"){i=s;break}}if(Ko(i)){r.add("questionnaireResponse.contained must contain a Questionnaire resource");return}Mo(i.id)&&r.add("questionnaireResponse.contained Questionnaire resource must have an id")}}}class Fyt extends xn{constructor(){super(...arguments),this.validator=new CKe}}class RKe{validate(e,r){const n=e.questionnaireResponse;if(Ko(n)){r.add("questionnaireResponse is required");return}(Mo(n.resourceType)||n.resourceType!=="QuestionnaireResponse")&&r.add('questionnaireResponse.resourceType must be "QuestionnaireResponse"'),Mo(n.status)&&r.add("questionnaireResponse.status is required"),Mo(n.questionnaire)&&r.add("questionnaireResponse.questionnaire is required")}}class kyt extends xn{constructor(){super(...arguments),this.validator=new RKe}}var Cw=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},qj,Hj,Rw;class OKe extends ko{constructor(){super(...arguments),qj.set(this,new k_),Hj.set(this,new aT),Rw.set(this,new Lh)}validate(e,r){super.validate(e,r),En(e.id)&&Cw(this,Hj,"f").validate(e.id,r),En(e.lastUpdated)&&Cw(this,qj,"f").validate(e.lastUpdated,r),En(e.status)&&Cw(this,Rw,"f").validate(e.status,r),En(e.tag)&&Cw(this,Rw,"f").validate(e.tag,r)}}qj=new WeakMap,Hj=new WeakMap,Rw=new WeakMap;class Gyt extends Po{constructor(){super(...arguments),this.validator=new OKe}}var cT=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Yj,bv;class PKe extends ko{constructor(){super(...arguments),Yj.set(this,new aT),bv.set(this,new Lh)}validate(e,r){super.validate(e,r),En(e.id)&&cT(this,Yj,"f").validate(e.id,r),En(e.tag)&&cT(this,bv,"f").validate(e.tag,r),En(e.security)&&cT(this,bv,"f").validate(e.security,r),En(e.context)&&cT(this,bv,"f").validate(e.context,r),En(e.identifier)&&cT(this,bv,"f").validate(e.identifier,r)}}Yj=new WeakMap,bv=new WeakMap;class Vyt extends Po{constructor(){super(...arguments),this.validator=new PKe}}class MKe extends ko{validate(e,r){super.validate(e,r)}}class Byt extends Po{constructor(){super(...arguments),this.validator=new MKe}}class IKe{validate(e,r){e.file.trim()||r.add("File content is required"),e.file.trim()&&!q8e(e.file)&&r.add("File must be a valid data URI with base64 encoding (e.g., data:image/png;base64,...)"),e.fileName.trim()||r.add("File name is required")}}class jyt extends xn{constructor(){super(...arguments),this.validator=new IKe}}class wKe{validate(e,r){e.attachmentId.trim()||r.add("Attachment ID is required")}}class zyt extends xn{constructor(){super(...arguments),this.validator=new wKe}}class NKe{validate(e,r){e.subject.trim()||r.add("Subject is required"),e.comment.body.trim()||r.add("Comment body is required"),e.fields.category.trim()||r.add("Category is required")}}class qyt extends xn{constructor(){super(...arguments),this.validator=new NKe}}class DKe extends ko{validate(e,r){super.validate(e,r)}}class Hyt extends Po{constructor(){super(...arguments),this.validator=new DKe}}class LKe extends ko{validate(e,r){e.requestId<0&&r.add("requestId must be a non-negative number"),super.validate(e,r)}}class Yyt extends Po{constructor(){super(...arguments),this.validator=new LKe}}class UKe{validate(e,r){e.requestId<0&&r.add("Request ID must be a non-negative integer"),Mo(e.body.trim())&&r.add("Comment body is required")}}class Qyt extends xn{constructor(){super(...arguments),this.validator=new UKe}}class $Ke{validate(e,r){Mo(e.attachmentId.trim())&&r.add("attachmentId must be a non-empty string"),e.requestId<0&&r.add("requestId must be a non-negative number")}}class Wyt extends xn{constructor(){super(...arguments),this.validator=new $Ke}}const xKe="code cannot be null or empty";class FKe{validate(e,r){Mo(e.code)&&r.add(xKe)}}class Kyt extends xn{constructor(){super(...arguments),this.validator=new FKe}}const kKe="consentId cannot be null or empty";class GKe{validate(e,r){Mo(e.consentId)&&r.add(kKe)}}class VKe extends xn{constructor(){super(...arguments),this.validator=new GKe}}var Qj=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{c(n.next(l))}catch(d){o(d)}}function u(l){try{c(n.throw(l))}catch(d){o(d)}}function c(l){l.done?s(l.value):i(l.value).then(a,u)}c((n=n.apply(t,e||[])).next())})};class Wj{constructor(e=new Map){this.storage=e}get(e){return Qj(this,void 0,void 0,function*(){return this.storage.get(e)})}set(e,r){return Qj(this,void 0,void 0,function*(){this.storage.set(e,r)})}delete(e){return Qj(this,void 0,void 0,function*(){return this.storage.delete(e)})}}const BKe={logLevel:gj.Error,timeout:3e4,retryPolicy:{attempts:3,interval:1e3},telemetryEnabled:!1,tokenStorage:new Wj,language:null,overrides:{unauthedApiUrl:null,authedApiUrl:null}};var Wf;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(Wf||(Wf={}));var jKe=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},uue=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},lT,On;(function(t){t[t.VERBOSE=0]="VERBOSE",t[t.DEBUG=1]="DEBUG",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.FATAL=5]="FATAL"})(On||(On={}));const zKe={[On.VERBOSE]:"VERBOSE",[On.DEBUG]:"DEBUG",[On.INFO]:"INFO",[On.WARN]:"WARN",[On.ERROR]:"ERROR",[On.FATAL]:"FATAL"};class Cv{constructor(e){lT.set(this,void 0),jKe(this,lT,e,"f")}get severity(){return uue(this,lT,"f")}shouldLog(e){return e>=uue(this,lT,"f")}static severityText(e){return zKe[e]}static severityFromText(e){switch(e){case"VERBOSE":return On.VERBOSE;case"DEBUG":return On.DEBUG;case"INFO":return On.INFO;case"WARN":return On.WARN;case"ERROR":return On.ERROR;case"FATAL":return On.FATAL;default:throw new Error(`Invalid severity text: ${e}`)}}}lT=new WeakMap;var Kj=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Xl=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Uh,cue,Ow,fT,Pw,B_;class lue{constructor(e,r,n){Uh.add(this),Ow.set(this,void 0),fT.set(this,void 0),Pw.set(this,void 0),Kj(this,Ow,n,"f"),Kj(this,fT,new Cv(e),"f"),Kj(this,Pw,r,"f")}name(){return Xl(this,Ow,"f")}severity(){return Xl(this,fT,"f").severity}verbose(e,r){Xl(this,Uh,"m",B_).call(this,On.VERBOSE,e,r)}debug(e,r){Xl(this,Uh,"m",B_).call(this,On.DEBUG,e,r)}info(e,r){Xl(this,Uh,"m",B_).call(this,On.INFO,e,r)}warn(e,r){Xl(this,Uh,"m",B_).call(this,On.WARN,e,r)}error(e,r){let n;r instanceof dr&&(n={error:r.failure()?r.error().message:r.data()}),r instanceof Error&&(n={error:r.message}),n===void 0&&(n=r),Xl(this,Uh,"m",B_).call(this,On.ERROR,e,n)}fatal(e,r){Xl(this,Uh,"m",B_).call(this,On.FATAL,e,r)}static otelSeverityNumber(e){switch(e){case On.VERBOSE:return Wf.TRACE;case On.DEBUG:return Wf.DEBUG;case On.INFO:return Wf.INFO;case On.WARN:return Wf.WARN;case On.ERROR:return Wf.ERROR;case On.FATAL:return Wf.FATAL;default:return Wf.UNSPECIFIED}}}cue=lue,Ow=new WeakMap,fT=new WeakMap,Pw=new WeakMap,Uh=new WeakSet,B_=function(e,r,n){Xl(this,fT,"f").shouldLog(e)&&Xl(this,Pw,"f").emit({timestamp:Date.now(),severityNumber:cue.otelSeverityNumber(e),severityText:Cv.severityText(e),body:r,attributes:n??{}})};var fue=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},due=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Mw,Iw;class qKe{constructor(e,r){Mw.set(this,void 0),Iw.set(this,void 0),fue(this,Iw,e,"f"),fue(this,Mw,r.loggerProvider(),"f")}getLogger(e){const r=e??"default",n=due(this,Mw,"f").getLogger(r);return new lue(due(this,Iw,"f"),n,r)}}Mw=new WeakMap,Iw=new WeakMap;class HKe{format(e,r,n,i){let o=`[${new Date().toISOString()}] ${Cv.severityText(e)}`;return n!==void 0&&(o+=` (${n})`),o+=`: ${r}`,i===void 0?[o]:[o,i]}}var Zj=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},wo=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Jl,ef,Kf;class YKe{constructor(e,r){Jl.set(this,void 0),ef.set(this,void 0),Kf.set(this,void 0),Zj(this,ef,new Cv(e),"f"),Zj(this,Jl,r,"f"),Zj(this,Kf,new HKe,"f")}name(){return wo(this,Jl,"f")}severity(){return wo(this,ef,"f").severity}verbose(e,r){wo(this,ef,"f").shouldLog(On.VERBOSE)&&console.debug(...wo(this,Kf,"f").format(On.VERBOSE,e,wo(this,Jl,"f"),r))}debug(e,r){wo(this,ef,"f").shouldLog(On.DEBUG)&&console.debug(...wo(this,Kf,"f").format(On.DEBUG,e,wo(this,Jl,"f"),r))}info(e,r){wo(this,ef,"f").shouldLog(On.INFO)&&console.info(...wo(this,Kf,"f").format(On.INFO,e,wo(this,Jl,"f"),r))}warn(e,r){wo(this,ef,"f").shouldLog(On.WARN)&&console.warn(...wo(this,Kf,"f").format(On.WARN,e,wo(this,Jl,"f"),r))}error(e,r){let n=r;r instanceof dr&&(n=r.failure()?r.error():r.data()),wo(this,ef,"f").shouldLog(On.ERROR)&&console.error(...wo(this,Kf,"f").format(On.ERROR,e,wo(this,Jl,"f"),n))}fatal(e,r){wo(this,ef,"f").shouldLog(On.FATAL)&&console.error(...wo(this,Kf,"f").format(On.FATAL,e,wo(this,Jl,"f"),r))}}Jl=new WeakMap,ef=new WeakMap,Kf=new WeakMap;var QKe=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},WKe=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},ww;class No{constructor(e=On.FATAL){ww.set(this,void 0),QKe(this,ww,e,"f")}getLogger(e){return new YKe(WKe(this,ww,"f"),e)}}ww=new WeakMap;var KKe=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Xj,hue;class ZKe{constructor(){Xj.add(this)}createLogProvider(e,r){switch(KKe(this,Xj,"m",hue).call(this,e)){case"otel":if(r===void 0)throw new Error('telemetry is required for "otel" logging');return new qKe(e.logLevel,r);case"console":return new No(e.logLevel)}}}Xj=new WeakSet,hue=function(e){return e.telemetry.enabled?"otel":"console"};var rs=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Zf=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},vc,Rv,$h,Ov,xh,j_,pue,_ue,mue,gue,vue,Sue,yue,Eue,Aue,Tue;class Nw{constructor(e){vc.add(this),Rv.set(this,void 0),$h.set(this,void 0),Ov.set(this,void 0),xh.set(this,void 0),j_.set(this,void 0),this.bwellConfig=rs(this,vc,"m",vue).call(this,e),Zf(this,Rv,Cv.severityFromText(this.bwellConfig.logLevel),"f"),Zf(this,j_,rs(this,vc,"m",Tue).call(this),"f"),Zf(this,Ov,rs(this,vc,"m",yue).call(this),"f"),Zf(this,$h,rs(this,vc,"m",Eue).call(this),"f"),Zf(this,xh,rs(this,vc,"m",Aue).call(this),"f")}static initialize(e){try{const r=new Nw(e);return dr.success(r)}catch(r){if(pa.isBwellError(r))return dr.failure(r);throw r}}get logLevel(){return rs(this,Rv,"f")}get graphQL(){return rs(this,Ov,"f")}get telemetry(){return rs(this,$h,"f")}get http(){return rs(this,xh,"f")}get context(){return rs(this,j_,"f")}setContextUser(e){rs(this,j_,"f").user=e}mergeRemoteConfig(e){Zf(this,Rv,rs(this,vc,"m",pue).call(this,e),"f"),Zf(this,Ov,rs(this,vc,"m",_ue).call(this,e),"f"),Zf(this,$h,Object.freeze(rs(this,vc,"m",mue).call(this,e)),"f"),Zf(this,xh,Object.freeze(rs(this,vc,"m",gue).call(this,e)),"f")}}Rv=new WeakMap,$h=new WeakMap,Ov=new WeakMap,xh=new WeakMap,j_=new WeakMap,vc=new WeakSet,pue=function(e){var r;const n=(r=e?.logLevel)!==null&&r!==void 0?r:null;return n===null?rs(this,Rv,"f"):Cv.severityFromText(n)},_ue=function(e){var r;const n=(r=e?.graphQLClient)!==null&&r!==void 0?r:null;if(n===null)return rs(this,Ov,"f");const{authedApiUrl:i,unauthedApiUrl:s}=this.bwellConfig.overrides;return{unauthApiUrl:s??n.url,apiUrl:i??n.authUrl}},mue=function(e){var r,n;const i=(r=e?.telemetry)!==null&&r!==void 0?r:null;if(i===null)return rs(this,$h,"f");const s=(n=i.enabled)!==null&&n!==void 0?n:rs(this,$h,"f").enabled;if(i.collectorUrl.endsWith("/"))throw new Error('Telemetry config "collectorUrl" cannot end with a trailing slash.');let o;try{o=new URL(i.collectorUrl)}catch{throw new Error('Telemetry config "collectorUrl" malformed/is not a proper URL.')}if(o.pathname!=="/")throw new Error('Telemetry config "collectorUrl" cannot contain a path.');return Object.assign(Object.assign({},rs(this,$h,"f")),{enabled:s,collectorUrl:i.collectorUrl})},gue=function(e){var r,n,i;const s=(r=e?.httpClient)!==null&&r!==void 0?r:null;return s===null?rs(this,xh,"f"):{timeout:(n=s.requestTimeout)!==null&&n!==void 0?n:rs(this,xh,"f").timeout,retryPolicy:(i=s.retry)!==null&&i!==void 0?i:rs(this,xh,"f").retryPolicy}},vue=function(e){return Object.assign(Object.assign({},BKe),e)},Sue=function(){try{return W8e(this.bwellConfig.clientKey)}catch{throw new k8e("It appears there is a problem with your Client Key. Contact b.well support for further assistance.")}},yue=function(){var e,r;return{apiUrl:(e=this.bwellConfig.overrides.authedApiUrl)!==null&&e!==void 0?e:`https://api-gateway.${rs(this,j_,"f").env}.icanbwell.com/federated-graph-authed/graphql`,unauthApiUrl:(r=this.bwellConfig.overrides.unauthedApiUrl)!==null&&r!==void 0?r:`https://api-gateway.${rs(this,j_,"f").env}.icanbwell.com/federated-graph/graphql`}},Eue=function(){return{collectorUrl:"https://collector.services.icanbwell.com",enabled:this.bwellConfig.telemetryEnabled,timeout:this.bwellConfig.timeout}},Aue=function(){return{timeout:this.bwellConfig.timeout,retryPolicy:{attempts:this.bwellConfig.retryPolicy.attempts,interval:this.bwellConfig.retryPolicy.interval}}},Tue=function(){return{clientKey:this.bwellConfig.clientKey,env:rs(this,vc,"m",Sue).call(this),user:null}};var XKe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{c(n.next(l))}catch(d){o(d)}}function u(l){try{c(n.throw(l))}catch(d){o(d)}}function c(l){l.done?s(l.value):i(l.value).then(a,u)}c((n=n.apply(t,e||[])).next())})},bue=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Dw=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Pv,Lw;class JKe{constructor(e,r=new No){Pv.set(this,void 0),Lw.set(this,void 0),bue(this,Lw,e,"f"),bue(this,Pv,r.getLogger("ConfigManager"),"f")}initialize(e){return XKe(this,void 0,void 0,function*(){const r=Nw.initialize(e);if(r.failure())return r;const n=r.data();Dw(this,Pv,"f").verbose("Initializing SDK Configuration");const i=yield Dw(this,Lw,"f").initialize(n.context.clientKey);if(i.failure())return i.intoFailure();const s=i.data();try{n.mergeRemoteConfig(s)}catch(o){Dw(this,Pv,"f").error("Error merging SDK config with remote config.",o)}return Dw(this,Pv,"f").info("Remote SDK Configuration merged with user config"),dr.success(n)})}}Pv=new WeakMap,Lw=new WeakMap;class Fh extends Error{response;request;constructor(e,r){const n=`${Fh.extractMessage(e)}: ${JSON.stringify({response:e,request:r})}`;super(n),Object.setPrototypeOf(this,Fh.prototype),this.response=e,this.request=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Fh)}static extractMessage(e){return e.errors?.[0]?.message??`GraphQL Error (Code: ${String(e.status)})`}}const Cue=t=>t.toUpperCase(),Jj=t=>typeof t=="function"?t():t,Rue=(t,e)=>t.map((r,n)=>[r,e[n]]),Mv=t=>{let e={};return t instanceof Headers?e=e3e(t):Array.isArray(t)?t.forEach(([r,n])=>{r&&n!==void 0&&(e[r]=n)}):t&&(e=t),e},e3e=t=>{const e={};return t.forEach((r,n)=>{e[n]=r}),e},t3e=t=>{try{const e=t();return r3e(e)?e.catch(r=>Oue(r)):e}catch(e){return Oue(e)}},Oue=t=>t instanceof Error?t:new Error(String(t)),r3e=t=>typeof t=="object"&&t!==null&&"then"in t&&typeof t.then=="function"&&"catch"in t&&typeof t.catch=="function"&&"finally"in t&&typeof t.finally=="function",ez=t=>{throw new Error(`Unhandled case: ${String(t)}`)},Uw=t=>typeof t=="object"&&t!==null&&!Array.isArray(t),Zyt=t=>Object.entries(t),Xyt=t=>Object.values(t),Jyt=(t,e)=>Object.fromEntries(Object.entries(t).map(([r,n])=>[r,e(n,r)])),eEt=t=>t.charAt(0).toLowerCase()+t.slice(1);function tEt(t){if(!Array.isArray(t))throw new Error(`Expected array. Got: ${String(t)}`)}function rEt(t){if(t===null||typeof t!="object")throw new Error(`Expected object. Got: ${String(t)}`)}const nEt=t=>t.charAt(0).toUpperCase()+t.slice(1),iEt=t=>{let e=!1,r,n;return{promise:new Promise((s,o)=>{r=s,n=o}),isResolved:()=>e,resolve:s=>{if(e=!0,t?.strict&&e)throw new Error(`Deferred is already resolved. Attempted to resolve with: ${JSON.stringify(s)}`);r(s)},reject:s=>n(s)}},n3e=(...t)=>{process.env.DEBUG&&console.log(...t)},sEt=(...t)=>(...e)=>{n3e(...t,...e)},oEt=t=>{const e=[],r=[];for(const n of t)n instanceof Error?e.push(n):r.push(n);return[r,e]};var i3e;const aEt=async(...t)=>{const e=s3e(t);return new i3e(e.url).batchRequests(e)},s3e=t=>t.length===1?t[0]:{url:t[0],documents:t[1],requestHeaders:t[2],signal:void 0},o3e=(t,e)=>t.documents?t:{documents:t,requestHeaders:e,signal:void 0};var a3e;const uEt=async(...t)=>{const[e,r,...n]=t,i=u3e(e,r,...n);return new a3e(i.url).rawRequest({...i})},u3e=(t,e,...r)=>{const[n,i]=r;return typeof t=="string"?{url:t,query:e,variables:n,requestHeaders:i,signal:void 0}:t},c3e=(t,e,r)=>t.query?t:{query:t,variables:e,requestHeaders:r,signal:void 0};var l3e=T(2455);const cEt="Accept",tz="Content-Type",rz="application/json",Pue="application/graphql-response+json",lEt=null,Mue=t=>t.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),f3e=t=>{const e=t.toLowerCase();return e.includes(Pue)||e.includes(rz)},Iue=t=>{try{if(Array.isArray(t))return{_tag:"Batch",executionResults:t.map(wue)};if(Uw(t))return{_tag:"Single",executionResult:wue(t)};throw new Error(`Invalid execution result: result is not object or array.
13816
+ `));function lSt(t){const e=Object.assign(Object.assign({},Zl),t);return Kl.useMutation(NHe,e)}var DHe,LHe;const Rse=null;function fSt(t={}){return DHe(Object.assign(Object.assign({},t),{variables:Object.assign(Object.assign({},t.variables),{category:Rse})}))}function dSt(t={}){return LHe(Object.assign(Object.assign({},t),{variables:Object.assign(Object.assign({},t.variables),{category:Rse})}))}var UHe,$He;const Ose=null;function hSt(t={}){return UHe(Object.assign(Object.assign({},t),{variables:Object.assign(Object.assign({},t.variables),{category:Ose})}))}function pSt(t={}){return $He(Object.assign(Object.assign({},t),{variables:Object.assign(Object.assign({},t.variables),{category:Ose})}))}var xHe,FHe;const Pse=null;function _St(t={}){return xHe(Object.assign(Object.assign({},t),{variables:Object.assign(Object.assign({},t.variables),{category:Pse})}))}function mSt(t={}){return FHe(Object.assign(Object.assign({},t),{variables:Object.assign(Object.assign({},t.variables),{category:Pse})}))}var Mse,kHe,GHe;const gSt=t=>Mse(kHe,t),vSt=t=>Mse(GHe,t);var Ise=T(46),wse=cl,VHe=Yo,BHe=Mh,jHe=ha,qB=$7,zHe=TB,qHe=gB,HHe=iI,YHe=xV,gv=Object.assign,Nse=Object.defineProperty,QHe=VHe([].concat),WHe=!gv||jHe(function(){if(wse&&gv({b:1},gv(Nse({},"a",{enumerable:!0,get:function(){Nse(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(i){e[i]=i}),gv({},t)[r]!==7||qB(gv({},e)).join("")!==n})?function(e,r){for(var n=HHe(e),i=arguments.length,s=1,o=zHe.f,a=qHe.f;i>s;)for(var u=YHe(arguments[s++]),c=o?QHe(qB(u),o(u)):qB(u),l=c.length,d=0,p;l>d;)p=c[d++],(!wse||BHe(a,u,p))&&(n[p]=u[p]);return n}:gv,KHe=AI,Dse=WHe;KHe({target:"Object",stat:!0,arity:2,forced:Object.assign!==Dse},{assign:Dse});var ZHe=ha,Lse=!ZHe(function(){return Object.isExtensible(Object.preventExtensions({}))}),XHe=kA,Use=function(t,e,r){for(var n in e)XHe(t,n,e[n],r);return t},BI={exports:{}},$se={},JHe=Yo,eYe=JHe([].slice),tYe=M_,rYe=cv,xse=yI.f,nYe=eYe,Fse=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],iYe=function(t){try{return xse(t)}catch{return nYe(Fse)}};$se.f=function(e){return Fse&&tYe(e)==="Window"?iYe(e):xse(rYe(e))};var sYe=ha,oYe=sYe(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),aYe=ha,uYe=Wa,cYe=M_,kse=oYe,jI=Object.isExtensible,lYe=aYe(function(){jI(1)}),fYe=lYe||kse?function(e){return!uYe(e)||kse&&cYe(e)==="ArrayBuffer"?!1:jI?jI(e):!0}:jI,dYe=AI,hYe=Yo,pYe=cI,_Ye=Wa,HB=al,mYe=Ql.f,Gse=yI,gYe=$se,YB=fYe,vYe=GV,SYe=Lse,Vse=!1,Qf=vYe("meta"),yYe=0,QB=function(t){mYe(t,Qf,{value:{objectID:"O"+yYe++,weakData:{}}})},EYe=function(t,e){if(!_Ye(t))return typeof t=="symbol"?t:(typeof t=="string"?"S":"P")+t;if(!HB(t,Qf)){if(!YB(t))return"F";if(!e)return"E";QB(t)}return t[Qf].objectID},AYe=function(t,e){if(!HB(t,Qf)){if(!YB(t))return!0;if(!e)return!1;QB(t)}return t[Qf].weakData},TYe=function(t){return SYe&&Vse&&YB(t)&&!HB(t,Qf)&&QB(t),t},bYe=function(){CYe.enable=function(){},Vse=!0;var t=Gse.f,e=hYe([].splice),r={};r[Qf]=1,t(r).length&&(Gse.f=function(n){for(var i=t(n),s=0,o=i.length;s<o;s++)if(i[s]===Qf){e(i,s,1);break}return i},dYe({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:gYe.f}))},CYe=BI.exports={enable:bYe,fastKey:EYe,getWeakData:AYe,onFreeze:TYe};pYe[Qf]=!0;var RYe=M_,OYe=Yo,PYe=function(t){if(RYe(t)==="Function")return OYe(t)},Bse=PYe,MYe=WV,IYe=LV,wYe=Bse(Bse.bind),jse=function(t,e){return MYe(t),e===void 0?t:IYe?wYe(t,e):function(){return t.apply(e,arguments)}},NYe=gc,DYe=dI,LYe=NYe("iterator"),UYe=Array.prototype,$Ye=function(t){return t!==void 0&&(DYe.Array===t||UYe[LYe]===t)},xYe=M_,FYe=$A,zse=KV,kYe=gc,qse=kYe("iterator"),GYe=Array.prototype,Hse=function(t){if(!FYe(t))return zse(t,qse)||zse(t,"@@iterator")||(xYe(t)==="Arguments"?GYe[qse]:void 0)},VYe=Mh,BYe=Qo,jYe=Ph,zYe=QV,qYe=Hse,HYe=TypeError,YYe=function(t,e){var r=arguments.length<2?qYe(t):e;if(BYe(r))return jYe(VYe(r,t));throw new HYe(zYe(t)+" is not iterable")},QYe=Mh,Yse=Ph,WYe=KV,KYe=function(t,e,r){var n,i;Yse(t);try{if(n=WYe(t,"return"),!n){if(e==="throw")throw r;return r}n=QYe(n,t)}catch(s){i=!0,n=s}if(e==="throw")throw r;if(i)throw n;return Yse(n),r},ZYe=jse,XYe=Mh,JYe=Ph,eQe=QV,tQe=$Ye,rQe=iB,Qse=YV,nQe=YYe,iQe=Hse,Wse=KYe,sQe=TypeError,zI=function(t,e){this.stopped=t,this.result=e},Kse=zI.prototype,Zse=function(t,e,r){var n=r&&r.that,i=!!(r&&r.AS_ENTRIES),s=!!(r&&r.IS_RECORD),o=!!(r&&r.IS_ITERATOR),a=!!(r&&r.INTERRUPTED),u=ZYe(e,n),c,l,d,p,g,v,b,A=function(j){var Z=c;return c=void 0,Z&&Wse(Z,"normal"),new zI(!0,j)},M=function(j){return i?(JYe(j),a?u(j[0],j[1],A):u(j[0],j[1])):a?u(j,A):u(j)};if(s)c=t.iterator;else if(o)c=t;else{if(l=iQe(t),!l)throw new sQe(eQe(t)+" is not iterable");if(tQe(l)){for(d=0,p=rQe(t);p>d;d++)if(g=M(t[d]),g&&Qse(Kse,g))return g;return new zI(!1)}c=nQe(t,l)}for(v=s?t.next:c.next;!(b=XYe(v,c)).done;){var B=b.value;try{g=M(B)}catch(j){if(c)Wse(c,"throw",j);else throw j}if(typeof g=="object"&&g&&Qse(Kse,g))return g}return new zI(!1)},oQe=YV,aQe=TypeError,Xse=function(t,e){if(oQe(e,t))return t;throw new aQe("Incorrect invocation")},uQe=gc,Jse=uQe("iterator"),eoe=!1;try{var cQe=0,toe={next:function(){return{done:!!cQe++}},return:function(){eoe=!0}};toe[Jse]=function(){return this},Array.from(toe,function(){throw 2})}catch{}var lQe=function(t,e){try{if(!e&&!eoe)return!1}catch{return!1}var r=!1;try{var n={};n[Jse]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch{}return r},fQe=Qo,dQe=Wa,roe=dX,hQe=function(t,e,r){var n,i;return roe&&fQe(n=e.constructor)&&n!==r&&dQe(i=n.prototype)&&i!==r.prototype&&roe(t,i),t},pQe=AI,_Qe=Ou,mQe=Yo,noe=sX,gQe=kA,vQe=BI.exports,SQe=Zse,yQe=Xse,EQe=Qo,AQe=$A,WB=Wa,KB=ha,TQe=lQe,bQe=TI,CQe=hQe,RQe=function(t,e,r){var n=t.indexOf("Map")!==-1,i=t.indexOf("Weak")!==-1,s=n?"set":"add",o=_Qe[t],a=o&&o.prototype,u=o,c={},l=function(M){var B=mQe(a[M]);gQe(a,M,M==="add"?function(Z){return B(this,Z===0?0:Z),this}:M==="delete"?function(j){return i&&!WB(j)?!1:B(this,j===0?0:j)}:M==="get"?function(Z){return i&&!WB(Z)?void 0:B(this,Z===0?0:Z)}:M==="has"?function(Z){return i&&!WB(Z)?!1:B(this,Z===0?0:Z)}:function(Z,ge){return B(this,Z===0?0:Z,ge),this})},d=noe(t,!EQe(o)||!(i||a.forEach&&!KB(function(){new o().entries().next()})));if(d)u=r.getConstructor(e,t,n,s),vQe.enable();else if(noe(t,!0)){var p=new u,g=p[s](i?{}:-0,1)!==p,v=KB(function(){p.has(1)}),b=TQe(function(M){new o(M)}),A=!i&&KB(function(){for(var M=new o,B=5;B--;)M[s](B,B);return!M.has(-0)});b||(u=e(function(M,B){yQe(M,a);var j=CQe(new o,M,u);return AQe(B)||SQe(B,j[s],{that:j,AS_ENTRIES:n}),j}),u.prototype=a,a.constructor=u),(v||A)&&(l("delete"),l("has"),n&&l("get")),(A||g)&&l(s),i&&a.clear&&delete a.clear}return c[t]=u,pQe({global:!0,constructor:!0,forced:u!==o},c),bQe(u,t),i||r.setStrong(u,t,n),u},OQe=M_,PQe=Array.isArray||function(e){return OQe(e)==="Array"},MQe=gc,IQe=MQe("toStringTag"),ioe={};ioe[IQe]="z";var wQe=String(ioe)==="[object z]",NQe=wQe,DQe=Qo,qI=M_,LQe=gc,UQe=LQe("toStringTag"),$Qe=Object,xQe=qI(function(){return arguments}())==="Arguments",FQe=function(t,e){try{return t[e]}catch{}},kQe=NQe?qI:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=FQe(e=$Qe(t),UQe))=="string"?r:xQe?qI(e):(n=qI(e))==="Object"&&DQe(e.callee)?"Arguments":n},GQe=Yo,VQe=ha,soe=Qo,BQe=kQe,jQe=aI,zQe=tX,ooe=function(){},aoe=jQe("Reflect","construct"),ZB=/^\s*(?:class|function)\b/,qQe=GQe(ZB.exec),HQe=!ZB.test(ooe),qA=function(e){if(!soe(e))return!1;try{return aoe(ooe,[],e),!0}catch{return!1}},uoe=function(e){if(!soe(e))return!1;switch(BQe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return HQe||!!qQe(ZB,zQe(e))}catch{return!0}};uoe.sham=!0;var YQe=!aoe||VQe(function(){var t;return qA(qA.call)||!qA(Object)||!qA(function(){t=!0})||t})?uoe:qA,coe=PQe,QQe=YQe,WQe=Wa,KQe=gc,ZQe=KQe("species"),loe=Array,XQe=function(t){var e;return coe(t)&&(e=t.constructor,QQe(e)&&(e===loe||coe(e.prototype))?e=void 0:WQe(e)&&(e=e[ZQe],e===null&&(e=void 0))),e===void 0?loe:e},JQe=XQe,e8e=function(t,e){return new(JQe(t))(e===0?0:e)},t8e=cl,r8e=Ql,n8e=hI,i8e=function(t,e,r){t8e?r8e.f(t,e,n8e(0,r)):t[e]=r},s8e=jse,o8e=xV,a8e=iI,u8e=iB,foe=e8e,XB=i8e,Nh=function(t){var e=t===1,r=t===2,n=t===3,i=t===4,s=t===6,o=t===7,a=t===5||s;return function(u,c,l){for(var d=a8e(u),p=o8e(d),g=u8e(p),v=s8e(c,l),b=0,A=0,M=e?foe(u,g):r||o?foe(u,0):void 0,B,j;g>b;b++)if((a||b in p)&&(B=p[b],j=v(B,b,d),t))if(e)XB(M,b,j);else if(j)switch(t){case 3:return!0;case 5:return B;case 6:return b;case 2:XB(M,A++,B)}else switch(t){case 4:return!1;case 7:XB(M,A++,B)}return s?-1:n||i?i:M}},c8e={forEach:Nh(0),map:Nh(1),filter:Nh(2),some:Nh(3),every:Nh(4),find:Nh(5),findIndex:Nh(6),filterReject:Nh(7)},l8e=Yo,doe=Use,HI=BI.exports.getWeakData,f8e=Xse,d8e=Ph,h8e=$A,JB=Wa,p8e=Zse,hoe=c8e,poe=al,_oe=gI,_8e=_oe.set,m8e=_oe.getterFor,g8e=hoe.find,v8e=hoe.findIndex,S8e=l8e([].splice),y8e=0,YI=function(t){return t.frozen||(t.frozen=new moe)},moe=function(){this.entries=[]},ej=function(t,e){return g8e(t.entries,function(r){return r[0]===e})};moe.prototype={get:function(t){var e=ej(this,t);if(e)return e[1]},has:function(t){return!!ej(this,t)},set:function(t,e){var r=ej(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=v8e(this.entries,function(r){return r[0]===t});return~e&&S8e(this.entries,e,1),!!~e}};var E8e={getConstructor:function(t,e,r,n){var i=t(function(u,c){f8e(u,s),_8e(u,{type:e,id:y8e++,frozen:null}),h8e(c)||p8e(c,u[n],{that:u,AS_ENTRIES:r})}),s=i.prototype,o=m8e(e),a=function(u,c,l){var d=o(u),p=HI(d8e(c),!0);return p===!0?YI(d).set(c,l):p[d.id]=l,u};return doe(s,{delete:function(u){var c=o(this);if(!JB(u))return!1;var l=HI(u);return l===!0?YI(c).delete(u):l&&poe(l,c.id)&&delete l[c.id]},has:function(c){var l=o(this);if(!JB(c))return!1;var d=HI(c);return d===!0?YI(l).has(c):d&&poe(d,l.id)}}),doe(s,r?{get:function(c){var l=o(this);if(JB(c)){var d=HI(c);if(d===!0)return YI(l).get(c);if(d)return d[l.id]}},set:function(c,l){return a(this,c,l)}}:{add:function(c){return a(this,c,!0)}}),i}},A8e=Lse,goe=Ou,QI=Yo,voe=Use,T8e=BI.exports,b8e=RQe,Soe=E8e,WI=Wa,KI=gI.enforce,C8e=ha,R8e=H7,HA=Object,O8e=Array.isArray,ZI=HA.isExtensible,yoe=HA.isFrozen,P8e=HA.isSealed,Eoe=HA.freeze,M8e=HA.seal,I8e=!goe.ActiveXObject&&"ActiveXObject"in goe,YA,Aoe=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Toe=b8e("WeakMap",Aoe,Soe),vv=Toe.prototype,XI=QI(vv.set),w8e=function(){return A8e&&C8e(function(){var t=Eoe([]);return XI(new Toe,t,1),!yoe(t)})};if(R8e)if(I8e){YA=Soe.getConstructor(Aoe,"WeakMap",!0),T8e.enable();var boe=QI(vv.delete),JI=QI(vv.has),Coe=QI(vv.get);voe(vv,{delete:function(t){if(WI(t)&&!ZI(t)){var e=KI(this);return e.frozen||(e.frozen=new YA),boe(this,t)||e.frozen.delete(t)}return boe(this,t)},has:function(e){if(WI(e)&&!ZI(e)){var r=KI(this);return r.frozen||(r.frozen=new YA),JI(this,e)||r.frozen.has(e)}return JI(this,e)},get:function(e){if(WI(e)&&!ZI(e)){var r=KI(this);return r.frozen||(r.frozen=new YA),JI(this,e)?Coe(this,e):r.frozen.get(e)}return Coe(this,e)},set:function(e,r){if(WI(e)&&!ZI(e)){var n=KI(this);n.frozen||(n.frozen=new YA),JI(this,e)?XI(this,e,r):n.frozen.set(e,r)}else XI(this,e,r);return this}})}else w8e()&&voe(vv,{set:function(e,r){var n;return O8e(e)&&(yoe(e)?n=Eoe:P8e(e)&&(n=M8e)),XI(this,e,r),n&&n(e),this}});var QA,ew;class Roe{constructor(){this.type="backend",QA.set(this,void 0),ew.set(this,void 0)}init(e,{clientSlug:r,apiClient:n}){if(!n)throw e.logger.error('"apiClient" not supplied to "QueryBackend".'),new Error('"apiClient" required for "QueryBackend".');Ih(this,QA,r,"f"),Ih(this,ew,UB(n),"f")}read(e,r,n){return RI(this,void 0,void 0,function*(){try{const{translation:i}=yield di(this,ew,"f").getClientTranslations({name:di(this,QA,"f"),key:r,lang:e});n(null,i?.json||{})}catch{const s=`Error fetching translation with key "${r}" and client "${di(this,QA,"f")||"N/A"}".`;n(s,null)}})}}QA=new WeakMap,ew=new WeakMap,Roe.type="backend";var Sv;class Ooe{constructor(e){this.type="logger",Sv.set(this,void 0),Ih(this,Sv,e,"f")}log([e,r,...n]){di(this,Sv,"f").info({meta:r},e,...n)}warn([e,r,...n]){di(this,Sv,"f").error({meta:r},e,...n)}error([e,r,...n]){di(this,Sv,"f").error({meta:r},e,...n)}}Sv=new WeakMap,Ooe.type="logger";var Pu,tw,x_,WA,Wo,F_;const Poe="appLanguage";class tj{constructor({keys:e,nativeBridge:r,fallbackKeys:n=[],defaultLanguage:i="en",logger:s,parent:o,debug:a=!1,remoteConfig:u={}}){x_.set(this,void 0),WA.set(this,void 0),Wo.set(this,void 0),F_.set(this,void 0),Ih(this,x_,e,"f"),Ih(this,WA,n,"f"),Ih(this,F_,r,"f");const c={lng:i,fallbackNS:di(this,WA,"f"),debug:a,defaultNS:e,returnNull:!1};o?Ih(this,Wo,o.cloneInstance(c),"f"):(Ih(this,Wo,Qa.createInstance(),"f"),s&&di(this,Wo,"f").use(new Ooe(s.child({library:"@icanbwell/i18n"}))),u.apiClient&&di(this,Wo,"f").use(Roe),di(this,Wo,"f").init(Object.assign(Object.assign({},c),{fallbackLng:!1,partialBundledLanguages:!0,ns:[],resources:{},backend:u,saveMissing:!0,missingKeyHandler:(l,d,p)=>di(this,Wo,"f").services.logger.error(`missing key: ${p}; language: ${l}; key: ${d}`)}))),this.t=di(this,Wo,"f").t,Pu.resolvedLanguage=di(this,Wo,"f").resolvedLanguage||i}load(){return RI(this,void 0,void 0,function*(){var e;const r=(yield(e=di(this,F_,"f"))===null||e===void 0?void 0:e.storage.getItem(Poe))||Pu.resolvedLanguage;r!==Pu.resolvedLanguage&&(yield di(this,Wo,"f").changeLanguage(r),Pu.resolvedLanguage=r),yield di(this,Wo,"f").loadNamespaces(di(this,x_,"f"));const n=di(this,x_,"f").filter(i=>!di(this,Wo,"f").hasResourceBundle(r,i));if(n.length)throw new Error(`Error loading translations for key(s): ${n.join(", ")}`);return di(Pu,Pu,"f",tw).emit("changeLanguage",r),this})}child(e){return new Pu(Object.assign(Object.assign({},e),{nativeBridge:di(this,F_,"f"),fallbackKeys:[...di(this,WA,"f"),...di(this,x_,"f")],parent:di(this,Wo,"f"),defaultLanguage:di(this,Wo,"f").language}))}get isLoaded(){return di(this,x_,"f").every(e=>di(this,Wo,"f").hasResourceBundle(di(this,Wo,"f").language,e))}changeLanguage(e){return RI(this,void 0,void 0,function*(){var r,n;Pu.resolvedLanguage=e,yield di(this,Wo,"f").changeLanguage(e),di(Pu,Pu,"f",tw).emit("changeLanguage",e),yield(r=di(this,F_,"f"))===null||r===void 0?void 0:r.storage.setItem(Poe,e),(n=di(this,F_,"f"))===null||n===void 0||n.reloadView(!0)})}get resolvedLanguage(){return Pu.resolvedLanguage}onChangeLanguage(e){di(Pu,Pu,"f",tw).on("changeLanguage",e)}}Pu=tj,x_=new WeakMap,WA=new WeakMap,Wo=new WeakMap,F_=new WeakMap,tw={value:new Ise},tj.resolvedLanguage="en";var rj=T(9609),KA;(function(t){t.one="1.0.0"})(KA||(KA={}));const rw="orchestrator:native-bridge",N8e={id:rw,dependencies:{featureServices:{}},create:()=>({[KA.one]:()=>({featureService:rj.b})})};var ZA;(function(t){t.one="1.0.0"})(ZA||(ZA={}));const nw="orchestrator:translation-service",D8e={id:nw,dependencies:{featureServices:{[jo]:mu.one,[Nl]:sh.one,[Qs]:Va.one,[PA]:ov.one,[rw]:KA.one}},create:({featureServices:t})=>{const e=t[jo],r=t[Nl],n=t[PA],{slug:i}=t[Qs].getClientContext(),s=t[rw],o=new tj({keys:[],nativeBridge:s,defaultLanguage:"en",logger:r,remoteConfig:{clientSlug:i,apiClient:e}});return n.setProfileProperties({language:o.resolvedLanguage}),o.onChangeLanguage(a=>n.setProfileProperties({language:a})),{[ZA.one]:()=>({featureService:o})}}};var yv,Ev,iw,Hu,XA,sw;const ow="tokens",nj="delegationContext",ij="userSessionId";class L8e{constructor({apiClient:e,stateService:r,identityGatewaySdk:n,storage:i,logger:s}){yv.set(this,void 0),Ev.set(this,void 0),iw.set(this,void 0),Hu.set(this,void 0),XA.set(this,void 0),sw.set(this,[]),(0,F().__classPrivateFieldSet)(this,yv,e,"f"),(0,F().__classPrivateFieldSet)(this,Ev,r,"f"),(0,F().__classPrivateFieldSet)(this,iw,n,"f"),(0,F().__classPrivateFieldSet)(this,Hu,i,"f"),(0,F().__classPrivateFieldSet)(this,XA,s,"f")}registerPreLogoutHandler(e){(0,F().__classPrivateFieldGet)(this,sw,"f").push(e)}getStoredTokens(){const e=(0,F().__classPrivateFieldGet)(this,Hu,"f").getItem(ow);return e?JSON.parse(e):void 0}removeStoredTokens(){(0,F().__classPrivateFieldGet)(this,Hu,"f").removeItem(ow),this.clearSessionId(),this.clearDelegationContext()}clearSessionId(){(0,F().__classPrivateFieldGet)(this,Hu,"f").removeItem(ij)}ensureSessionId(){var e;try{if((0,F().__classPrivateFieldGet)(this,Hu,"f").getItem(ij))return;(0,F().__classPrivateFieldGet)(this,Hu,"f").setItem(ij,JSON.stringify({sessionId:crypto.randomUUID()}))}catch(r){(e=(0,F().__classPrivateFieldGet)(this,XA,"f"))===null||e===void 0||e.error(r instanceof Error?r:new Error(String(r)),"Failed to mint session id")}}storeTokens(e){const r=Object.assign(Object.assign({},e),{idToken:Object.assign(Object.assign({},e.idToken),{payload:(0,J().normalizeTokenPayload)(e.idToken.payload)})});return(0,F().__classPrivateFieldGet)(this,Hu,"f").setItem(ow,JSON.stringify(r)),r}storeDelegationContext(e){(0,F().__classPrivateFieldGet)(this,Hu,"f").setItem(nj,JSON.stringify(e))}getDelegationContext(){var e,r;const n=(0,F().__classPrivateFieldGet)(this,Hu,"f").getItem(nj);if(!n)return null;try{const i=JSON.parse(n);return!i?.consentId||!(!((r=(e=i?.delegateTokens)===null||e===void 0?void 0:e.accessToken)===null||r===void 0)&&r.jwtToken)?null:i}catch{return null}}clearDelegationContext(){(0,F().__classPrivateFieldGet)(this,Hu,"f").removeItem(nj)}logout(){return(0,F().__awaiter)(this,void 0,void 0,function*(){var e;for(const s of(0,F().__classPrivateFieldGet)(this,sw,"f"))try{yield s()}catch(o){(e=(0,F().__classPrivateFieldGet)(this,XA,"f"))===null||e===void 0||e.error(o instanceof Error?o:new Error(String(o)),"Pre-logout handler failed")}const r=(0,F().__classPrivateFieldGet)(this,Ev,"f").getUserTokenData().accessToken.jwtToken,{key:n,variant:i}=(0,F().__classPrivateFieldGet)(this,Ev,"f").getClientContext();i!==fe.GUEST&&(yield(0,F().__classPrivateFieldGet)(this,iw,"f").logout({accessToken:r},{context:{headers:{clientKey:n}}})),(0,F().__classPrivateFieldGet)(this,yv,"f").stop(),(0,F().__classPrivateFieldGet)(this,yv,"f").clearAuth(),yield(0,F().__classPrivateFieldGet)(this,yv,"f").clearStore(),(0,F().__classPrivateFieldGet)(this,Ev,"f").logoutUser(),(0,F().__classPrivateFieldGet)(this,Hu,"f").removeItem(ow),this.clearSessionId(),this.clearDelegationContext()})}}yv=new WeakMap,Ev=new WeakMap,iw=new WeakMap,Hu=new WeakMap,XA=new WeakMap,sw=new WeakMap;var JA;(function(t){t.one="1.0.0"})(JA||(JA={}));const aw="orchestrator:identity-utils",U8e={id:aw,dependencies:{featureServices:{[jo]:mu.one,[Nl]:sh.one,[Qs]:Va.one,[PA]:ov.one}},create:({featureServices:t})=>{const e=t[jo];return{[JA.one]:()=>({featureService:new L8e({apiClient:e,stateService:t[Qs],identityGatewaySdk:xee(e),storage:window.sessionStorage,logger:t[Nl]})})}}};var uw;(function(t){t.one="1.0.0"})(uw||(uw={}));const Moe="orchestrator:globaleventemitter-service",$8e=t=>({id:Moe,create:()=>({[uw.one]:()=>({featureService:t})})});var cw;(function(t){t.one="1.0.0"})(cw||(cw={}));const Ioe="orchestrator:reboot-controller",x8e=t=>({id:Ioe,create:()=>({[cw.one]:()=>({featureService:t})})}),lw="orchestrator:bwell-sdk";var eT;(function(t){t.one="1.0.0"})(eT||(eT={}));const F8e=t=>({id:lw,dependencies:{featureServices:{[Qs]:Va.one,[nw]:ZA.one,[Nl]:sh.one}},create:({featureServices:e})=>{const r=e[Qs],n=e[nw],i=e[Nl],s=t;let o=!1,a=!1;const u=g=>{if(typeof g=="string")return g;if(g&&typeof g=="object"&&"message"in g){const v=g.message;return typeof v=="string"?v:String(v)}return String(g)},c=g=>/uninitialized|not been initialized/i.test(u(g)),l=g=>{try{s.language.setLanguage(g)}catch(v){if(c(v)){a||(a=!0,i.info({},"embeddable-core: Deferring language switch until SDK initialization completes"));return}i.info({error:u(v)},"embeddable-core: Non-fatal language switch issue in SDK")}},d=g=>{try{const v=s.language.getLanguage();g!==v&&l(g)}catch(v){if(c(v))return;i.info({error:u(v)},"embeddable-core: Non-fatal language read issue in SDK")}},p=()=>{var g;!((g=r.getUser().tokenData)===null||g===void 0)&&g.idToken&&(l(n.resolvedLanguage),o||(o=!0,n.onChangeLanguage(d)))};return r.getStore().subscribe(p),{[eT.one]:()=>({featureService:s})}}});class pa extends Error{constructor(e,r){super(e),this.name="BWellError",r?.cause&&(this.cause=r.cause)}static isBwellError(e){return e instanceof pa}}class SSt extends pa{constructor(e="Authentication Error"){super(e),this.name="AuthenticationError"}}class ySt extends pa{constructor(e="Illegal Argument Error"){super(e),this.name="IllegalArgumentError"}}class ESt extends pa{constructor(e="Illegal State Error"){super(e),this.name="IllegalStateError"}}class k8e extends pa{constructor(e="Invalid Client Key Error"){super(e),this.name="InvalidClientKeyError"}}class sj extends pa{constructor(e,r){super(e),this.credentials=r,this.name="InvalidCredentialsTypeError"}}class Av extends pa{constructor(e="Invalid Token Error"){super(e),this.name="InvalidTokenError"}}class G8e extends pa{constructor(e,r){super(e),this.status=r,this.name="NetworkError"}}class V8e extends pa{constructor(e){super(e.message()),this.operationOutcome=e,this.name="OperationOutcomeError"}}class oj extends pa{constructor(e,r){super(e),this.data=r,this.name="UnknownError"}}class fw extends pa{constructor(e){super(e.join(". ")),this.errors=e,this.name="ValidationError"}}class ur{constructor(e,r){this.data=e,r!==null&&(this.error=r)}hasError(){return this.error!==void 0}static error(e){return new ur(void 0,e)}}var woe=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},dw=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},tT,rT;class dr{static success(e){return new B8e(e)}static failure(e){return new hw(e)}}class B8e extends dr{constructor(e){super(),tT.set(this,void 0),woe(this,tT,e,"f")}data(){return dw(this,tT,"f")}error(){throw dw(this,tT,"f")}success(){return!0}failure(){return!1}toQueryResult(){return new ur(this.data())}}tT=new WeakMap;class hw extends dr{constructor(e){super(),rT.set(this,void 0),woe(this,rT,e,"f")}data(){throw dw(this,rT,"f")}error(){return dw(this,rT,"f")}success(){return!1}failure(){return!0}intoFailure(){return dr.failure(this.error())}toQueryResult(){return new ur(void 0,this.error())}}rT=new WeakMap;var aj=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},nT;class Noe{constructor(){nT.set(this,[])}add(e){aj(this,nT,"f").push(e)}errors(){return aj(this,nT,"f")}hasErrors(){return aj(this,nT,"f").length>0}}nT=new WeakMap;var Doe=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},uj=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},iT,pw;class j8e{constructor(e){iT.set(this,void 0),pw.set(this,void 0),Doe(this,pw,e,"f"),Doe(this,iT,this.transformInput(e),"f")}validate(){return dr.success(null)}data(){return uj(this,iT,"f")}toJSON(){return uj(this,iT,"f")}transformInput(e){return e}input(){return uj(this,pw,"f")}}iT=new WeakMap,pw=new WeakMap;class xn extends j8e{validate(){const e=new Noe;return this.validator.validate(this.input(),e),e.hasErrors()?dr.failure(new fw(e.errors())):dr.success(null)}}var Loe=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},_w,Uoe,$oe;const xoe=100,z8e=20;class ko{constructor(){_w.add(this)}validate(e,r){Loe(this,_w,"m",Uoe).call(this,e.page,r),Loe(this,_w,"m",$oe).call(this,e.pageSize,r)}}_w=new WeakSet,Uoe=function(e,r){e<0&&r.add("page must be a positive number")},$oe=function(e,r){e!==void 0&&(e<=0&&r.add("Page size must be greater than 0"),e>xoe&&r.add(`Page size must not exceed ${xoe}`))};class Po extends xn{constructor(){super(...arguments),this.validator=new ko}transformInput(e){return Object.assign({pageSize:z8e},e)}}const Foe=/^data:([A-Za-z0-9][A-Za-z0-9!#$&^_.+-]*\/[A-Za-z0-9][A-Za-z0-9!#$&^_.+-]*(?:;[A-Za-z0-9!#$&^_.+-]+=[A-Za-z0-9!#$&^_.+-]+)*);base64,([A-Za-z0-9+/]+={0,2})$/;function q8e(t){return Foe.test(t)}function koe(t){var e,r;const n=Foe.exec(t);return n===null?null:{contentType:(e=n[1])!==null&&e!==void 0?e:"",data:(r=n[2])!==null&&r!==void 0?r:""}}const Goe=10*1024*1024,H8e=Math.ceil(Goe/3)*4;function cj(){return new Date().toISOString()}function Y8e(){var t;return!(typeof process>"u"||((t=process.versions)===null||t===void 0?void 0:t.node)===void 0)}function Q8e(){return typeof window<"u"}function Voe(){if(Q8e())return"browser";if(Y8e())return"node";throw new Error("Invalid runtime")}function Boe(t){switch(Voe()){case"browser":return t.browser();case"node":return t.node()}}function joe(t){switch(Voe()){case"node":return Buffer.from(t,"base64").toString("utf-8");case"browser":return atob(t)}}function En(t){return t!=null}function Ko(t){return t==null}function ASt(t){return En(t)&&t!==""}function Mo(t){return t==null||t===""}function Zo(t){return t===void 0}function ti(t){return t!==void 0}function W8e(t){return JSON.parse(joe(t)).env}const K8e=3;function zoe(t){const e=t.split("."),r=e[1];if(r===void 0||e.length!==K8e)throw new Av("Token is missing data and may be corrupted");try{return JSON.parse(joe(r))}catch(n){const i=n;throw new Av(`Unable to parse token payload: ${i.name} - ${i.message}`)}}function qoe(t){const r=zoe(t).exp;if(typeof r!="number")throw new Av("The access token is missing an expiration date and is most likely corrupted.");return r*1e3}const Z8e="custom:clientFhirPersonId",X8e="custom:bwellFhirPatientId";function J8e(t){const e=zoe(t),r=e[X8e],n=e[Z8e];return En(r)&&En(n)?{bwellFhirPersonId:r,clientFhirPersonId:n}:null}function Io(t){return t.trim()===""}const Hoe="1.115.0";function eWe(){return Hoe}var lj;(function(t){t.Arrived="ARRIVED",t.Booked="BOOKED",t.Cancelled="CANCELLED",t.CheckedIn="CHECKED_IN",t.EnteredInError="ENTERED_IN_ERROR",t.Fulfilled="FULFILLED",t.Noshow="NOSHOW",t.Pending="PENDING",t.Proposed="PROPOSED",t.Waitlist="WAITLIST"})(lj||(lj={}));var Yoe;(function(t){t.Guest="GUEST",t.Other="OTHER",t.Self="SELF"})(Yoe||(Yoe={}));var Qoe;(function(t){t.Guest="GUEST"})(Qoe||(Qoe={}));var mw;(function(t){t.CmsNetworkShareMyRecords="CMS_NETWORK_SHARE_MY_RECORDS",t.CommunicationPreferencesPhi="COMMUNICATION_PREFERENCES_PHI",t.DataSharing="DATA_SHARING",t.DirectImportRecords="DIRECT_IMPORT_RECORDS",t.HealthCircleAdolescent="HEALTH_CIRCLE_ADOLESCENT",t.HealthCircleMinor="HEALTH_CIRCLE_MINOR",t.HealthMatch="HEALTH_MATCH",t.IasImportRecords="IAS_IMPORT_RECORDS",t.MobileCommunicationPreferences="MOBILE_COMMUNICATION_PREFERENCES",t.PersonalizedHealthOffersAndAds="PERSONALIZED_HEALTH_OFFERS_AND_ADS",t.ProaAttestation="PROA_ATTESTATION",t.Tos="TOS"})(mw||(mw={}));var Woe;(function(t){t.Complete="COMPLETE",t.Error="ERROR",t.Partial="PARTIAL",t.Queued="QUEUED"})(Woe||(Woe={}));var Koe;(function(t){t.Institutional="INSTITUTIONAL",t.Oral="ORAL",t.Pharmacy="PHARMACY",t.Professional="PROFESSIONAL",t.Vision="VISION"})(Koe||(Koe={}));var Zoe;(function(t){t.Bwell="bwell"})(Zoe||(Zoe={}));var Xoe;(function(t){t.Bwell="BWELL"})(Xoe||(Xoe={}));var Joe;(function(t){t.Basic="BASIC",t.Identity="IDENTITY",t.Oauth="OAUTH"})(Joe||(Joe={}));var fj;(function(t){t.Deny="DENY",t.Permit="PERMIT"})(fj||(fj={}));var dj;(function(t){t.Active="ACTIVE",t.Draft="DRAFT",t.EnteredInError="ENTERED_IN_ERROR",t.Inactive="INACTIVE",t.Proposed="PROPOSED",t.Rejected="REJECTED"})(dj||(dj={}));var eae;(function(t){t.Medical="MEDICAL",t.Pharmacy="PHARMACY"})(eae||(eae={}));var tae;(function(t){t.Usd="USD"})(tae||(tae={}));var rae;(function(t){t.Accepted="ACCEPTED",t.Rejected="REJECTED"})(rae||(rae={}));var nae;(function(t){t.AccessEnded="ACCESS_ENDED",t.Connected="CONNECTED",t.Deleted="DELETED",t.Disconnected="DISCONNECTED",t.Error="ERROR",t.Expired="EXPIRED"})(nae||(nae={}));var iae;(function(t){t.Clinical="CLINICAL",t.Device="DEVICE",t.Insurance="INSURANCE",t.Lab="LAB",t.Pharmacy="PHARMACY",t.Practitioner="PRACTITIONER"})(iae||(iae={}));var gw;(function(t){t.Connecthub="connecthub",t.Nppes="nppes"})(gw||(gw={}));var sae;(function(t){t.Connecthub="CONNECTHUB",t.Nppes="NPPES"})(sae||(sae={}));var oae;(function(t){t.Fri="FRI",t.Mon="MON",t.Sat="SAT",t.Sun="SUN",t.Thu="THU",t.Tue="TUE",t.Wed="WED"})(oae||(oae={}));var aae;(function(t){t.Deleted="DELETED"})(aae||(aae={}));var uae;(function(t){t.Kilometers="KILOMETERS",t.Meters="METERS",t.Miles="MILES"})(uae||(uae={}));var cae;(function(t){t.BwellPatient="BWELL_PATIENT",t.BwellPerson="BWELL_PERSON",t.ClientPatient="CLIENT_PATIENT",t.ClientPerson="CLIENT_PERSON"})(cae||(cae={}));var lae;(function(t){t.Active="active",t.EnteredInError="entered_in_error",t.Error="error",t.Off="off",t.Suspended="suspended",t.Test="test"})(lae||(lae={}));var fae;(function(t){t.Active="ACTIVE",t.EnteredInError="ENTERED_IN_ERROR",t.Error="ERROR",t.Off="OFF",t.Suspended="SUSPENDED",t.Test="TEST"})(fae||(fae={}));var hj;(function(t){t.CustomEvent="CUSTOM_EVENT",t.MobilePushOpen="MOBILE_PUSH_OPEN"})(hj||(hj={}));var pj;(function(t){t.Female="female",t.Male="male",t.Other="other",t.Unknown="unknown"})(pj||(pj={}));var _j;(function(t){t.Person="Person"})(_j||(_j={}));var mj;(function(t){t.Characteristic="characteristic",t.Communication="communication",t.Gender="gender",t.Specialty="specialty"})(mj||(mj={}));var dae;(function(t){t.Characteristic="CHARACTERISTIC",t.Communication="COMMUNICATION",t.Gender="GENDER",t.InsurancePlan="INSURANCE_PLAN",t.Specialty="SPECIALTY"})(dae||(dae={}));var hae;(function(t){t.Female="female",t.Male="male",t.Other="other",t.Unknown="unknown"})(hae||(hae={}));var pae;(function(t){t.Female="FEMALE",t.Male="MALE",t.Other="OTHER",t.Unknown="UNKNOWN"})(pae||(pae={}));var _ae;(function(t){t.AllergyIntolerance="ALLERGY_INTOLERANCE",t.CarePlan="CARE_PLAN",t.Condition="CONDITION",t.Encounter="ENCOUNTER",t.Immunization="IMMUNIZATION",t.Labs="LABS",t.Medications="MEDICATIONS",t.Procedure="PROCEDURE",t.VitalSigns="VITAL_SIGNS"})(_ae||(_ae={}));var mae;(function(t){t.Official="_official",t.Old="_old",t.Secondary="_secondary",t.Temp="_temp",t.Usual="_usual"})(mae||(mae={}));var gae;(function(t){t.Cognito="COGNITO",t.Descope="DESCOPE"})(gae||(gae={}));var vae;(function(t){t.Direct="DIRECT",t.DirectIas="DIRECT_IAS",t.Ial2="IAL2",t.IndirectIas="INDIRECT_IAS",t.Proa="PROA"})(vae||(vae={}));var Sae;(function(t){t.Clicked="clicked"})(Sae||(Sae={}));var yae;(function(t){t.Clicked="CLICKED"})(yae||(yae={}));var gj;(function(t){t.Debug="DEBUG",t.Error="ERROR",t.Info="INFO",t.Verbose="VERBOSE",t.Warn="WARN"})(gj||(gj={}));var Eae;(function(t){t.Sms="SMS"})(Eae||(Eae={}));var vj;(function(t){t.Activity="ACTIVITY",t.Exam="EXAM",t.Imaging="IMAGING",t.Laboratory="LABORATORY",t.Procedure="PROCEDURE",t.SocialHistory="SOCIAL_HISTORY",t.Survey="SURVEY",t.Therapy="THERAPY",t.VitalSigns="VITAL_SIGNS"})(vj||(vj={}));var Aae;(function(t){t.CancelDelete="CANCEL_DELETE",t.ConfirmDelete="CONFIRM_DELETE",t.DeletionInProgress="DELETION_IN_PROGRESS",t.ImmediateExecution="IMMEDIATE_EXECUTION",t.RequestDelete="REQUEST_DELETE"})(Aae||(Aae={}));var Sj;(function(t){t.C19Vaccine="C19Vaccine",t.Device="Device",t.Insurance="Insurance",t.Laboratory="Laboratory",t.Pharmacy="Pharmacy",t.Provider="Provider",t.Bus="bus",t.Cg="cg",t.Crs="crs",t.Dept="dept",t.Edu="edu",t.Govt="govt",t.Ins="ins",t.Other="other",t.Pay="pay",t.Prov="prov",t.Reli="reli",t.Team="team"})(Sj||(Sj={}));var Tae;(function(t){t.Bus="BUS",t.C19Vaccine="C19VACCINE",t.Cg="CG",t.Crs="CRS",t.Dept="DEPT",t.Device="DEVICE",t.Edu="EDU",t.Govt="GOVT",t.Ins="INS",t.Insurance="INSURANCE",t.Laboratory="LABORATORY",t.Other="OTHER",t.Pay="PAY",t.Pharmacy="PHARMACY",t.Prov="PROV",t.Provider="PROVIDER",t.Reli="RELI",t.Team="TEAM"})(Tae||(Tae={}));var bae;(function(t){t.Add="add",t.Copy="copy",t.Move="move",t.Remove="remove",t.Replace="replace",t.Test="test"})(bae||(bae={}));var Cae;(function(t){t.ExistingPatients="EXISTING_PATIENTS",t.NewPatients="NEW_PATIENTS"})(Cae||(Cae={}));var Rae;(function(t){t.Patient="Patient",t.Person="Person"})(Rae||(Rae={}));var Oae;(function(t){t.IdentityProofing="IDENTITY_PROOFING"})(Oae||(Oae={}));var Pae;(function(t){t.Practice="practice",t.Practitioner="practitioner"})(Pae||(Pae={}));var Mae;(function(t){t.Practice="PRACTICE",t.Practitioner="PRACTITIONER"})(Mae||(Mae={}));var Iae;(function(t){t.QuestionnaireResponse="QuestionnaireResponse"})(Iae||(Iae={}));var wae;(function(t){t.Closed="CLOSED",t.Hold="HOLD",t.New="NEW",t.Open="OPEN",t.Pending="PENDING",t.Solved="SOLVED"})(wae||(wae={}));var Nae;(function(t){t.AllergyIntolerance="ALLERGY_INTOLERANCE",t.CarePlan="CARE_PLAN",t.Condition="CONDITION",t.DocumentReference="DOCUMENT_REFERENCE",t.Encounter="ENCOUNTER",t.Immunization="IMMUNIZATION",t.MedicationDispense="MEDICATION_DISPENSE",t.MedicationRequest="MEDICATION_REQUEST",t.MedicationStatement="MEDICATION_STATEMENT",t.Observation="OBSERVATION",t.Procedure="PROCEDURE"})(Nae||(Nae={}));var Dae;(function(t){t.DataConnections="DATA_CONNECTIONS",t.FindCare="FIND_CARE"})(Dae||(Dae={}));var Lae;(function(t){t.Device="DEVICE",t.Insurance="INSURANCE",t.Laboratory="LABORATORY",t.Pharmacy="PHARMACY",t.Practice="PRACTICE",t.Practitioner="PRACTITIONER"})(Lae||(Lae={}));var Uae;(function(t){t.Abortion="ABORTION",t.AbuseNeglect="ABUSE_NEGLECT",t.DomesticViolence="DOMESTIC_VIOLENCE",t.GenderAffirming="GENDER_AFFIRMING",t.GeneticTesting="GENETIC_TESTING",t.HivAids="HIV_AIDS",t.Mammography="MAMMOGRAPHY",t.MentalHealth="MENTAL_HEALTH",t.ReproductiveHealthcare="REPRODUCTIVE_HEALTHCARE",t.SexualAssault="SEXUAL_ASSAULT",t.Std="STD",t.SubstanceAbuse="SUBSTANCE_ABUSE",t.SubstanceAlcohol="SUBSTANCE_ALCOHOL"})(Uae||(Uae={}));var $ae;(function(t){t.UpdatedAt="UPDATED_AT"})($ae||($ae={}));var yj;(function(t){t.Content="content",t.Distance="distance",t.Relevance="relevance"})(yj||(yj={}));var xae;(function(t){t.Content="CONTENT",t.DataSourceRank="DATA_SOURCE_RANK",t.Distance="DISTANCE",t.Name="NAME",t.NextAvailable="NEXT_AVAILABLE",t.OnlineBookingAvailable="ONLINE_BOOKING_AVAILABLE",t.Rating="RATING",t.Relevance="RELEVANCE"})(xae||(xae={}));var vw;(function(t){t.Asc="asc",t.Desc="desc"})(vw||(vw={}));var Fae;(function(t){t.Asc="ASC",t.Desc="DESC"})(Fae||(Fae={}));var kae;(function(t){t.CareSearch="CARE_SEARCH",t.Proa="PROA",t.ProviderDetails="PROVIDER_DETAILS",t.Sayt="SAYT",t.Unspecified="UNSPECIFIED"})(kae||(kae={}));var Gae;(function(t){t.DataDeleted="DATA_DELETED",t.Deleting="DELETING",t.Error="ERROR",t.Pending="PENDING",t.Retrieved="RETRIEVED",t.Retrieving="RETRIEVING"})(Gae||(Gae={}));var Ej;(function(t){t.Accepted="ACCEPTED",t.Cancelled="CANCELLED",t.Completed="COMPLETED",t.Draft="DRAFT",t.EnteredInError="ENTERED_IN_ERROR",t.Failed="FAILED",t.InProgress="IN_PROGRESS",t.OnHold="ON_HOLD",t.Ready="READY",t.Received="RECEIVED",t.Rejected="REJECTED",t.Requested="REQUESTED"})(Ej||(Ej={}));var Sw;(function(t){t.Accurate="accurate",t.Estimate="estimate"})(Sw||(Sw={}));var Vae;(function(t){t.Active="ACTIVE",t.Completed="COMPLETED"})(Vae||(Vae={}));var Bae;(function(t){t.PersonMatchError="PERSON_MATCH_ERROR",t.ServerError="SERVER_ERROR"})(Bae||(Bae={}));const tWe=new Set(Object.values(pj));function jae(t){return tWe.has(t)}const rWe=new Set(Object.values(dj));function nWe(t){return rWe.has(t)}const iWe=new Set(Object.values(mw));function zae(t){return iWe.has(t)}const sWe=new Set(Object.values(fj));function oWe(t){return sWe.has(t)}class aWe{validate(e,r){!Zo(e.gender)&&!jae(e.gender)&&r.add(`Invalid gender value: "${e.gender}"`),!Zo(e.middleNames)&&e.middleNames.length>0&&Zo(e.firstName)&&r.add("middleNames requires firstName to be provided")}}class TSt extends xn{constructor(){super(...arguments),this.validator=new aWe}}class uWe{validate(e,r){zae(e.category)||r.add(`Invalid consent category code: "${e.category}"`),!Zo(e.organizationId)&&Io(e.organizationId)&&r.add("organizationId cannot be empty")}}class bSt extends xn{constructor(){super(...arguments),this.validator=new uWe}}class cWe{validate(e,r){nWe(e.status)||r.add(`Invalid consent status: "${e.status}"`),oWe(e.provision)||r.add(`Invalid consent provision type: "${e.provision}"`),zae(e.category)||r.add(`Invalid consent category code: "${e.category}"`),!Zo(e.organizationId)&&Io(e.organizationId)&&r.add("organizationId cannot be empty"),e.category===mw.ProaAttestation&&Zo(e.organizationId)&&r.add("organizationId must be provided when category is PROA_ATTESTATION")}}class CSt extends xn{constructor(){super(...arguments),this.validator=new cWe}}class lWe{validate(e,r){Mo(e.exportId)&&r.add("exportId is required"),Mo(e.password)&&r.add("password is required")}}class RSt extends xn{constructor(){super(...arguments),this.validator=new lWe}}var OSt;class PSt extends null{}var Yu=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Ka,Dh,qae,Hae,Yae,Qae,Wae,Kae;class k_{constructor(){Ka.add(this)}validate(e,r){if(!e.values||e.values.length===0){r.add("At least one SearchDateValue must be set to instantiate a SearchDate");return}for(const n of e.values)Yu(this,Ka,"m",qae).call(this,n,r)}}Ka=new WeakSet,Dh=function(e,r){e&&e!==null&&isNaN(e.getTime())&&r.add("The date is not valid")},qae=function(e,r){const{equals:n,notEquals:i,greaterThan:s,greaterThanOrEqualTo:o,lessThan:a,lessThanOrEqualTo:u,approximately:c}=e,d=[n,i,s,o,a,u,c].filter(p=>p!=null).length;if(d===0){r.add("At least one SearchDateValue must be set to instantiate a SearchDate");return}Yu(this,Ka,"m",Hae).call(this,e,d,r),Yu(this,Ka,"m",Wae).call(this,e,r),Yu(this,Ka,"m",Kae).call(this,e,r)},Hae=function(e,r,n){const{equals:i,notEquals:s,approximately:o}=e;if(i&&r>1){n.add("The equals value cannot be set with any other values");return}if(s&&r>1){n.add("The notEquals value cannot be set with any other values");return}if(o&&r>1){n.add("The approximately value cannot be set with any other values");return}Yu(this,Ka,"m",Yae).call(this,e,n),Yu(this,Ka,"m",Qae).call(this,e,n)},Yae=function(e,r){e.greaterThan&&e.greaterThanOrEqualTo&&r.add("The greaterThan/greaterThanOrEqualTo value cannot be set with both values")},Qae=function(e,r){e.lessThan&&e.lessThanOrEqualTo&&r.add("The lessThan/lessThanOrEqualTo value cannot be set with both values")},Wae=function(e,r){const{equals:n,notEquals:i,greaterThan:s,greaterThanOrEqualTo:o,lessThan:a,lessThanOrEqualTo:u,approximately:c}=e;n&&Yu(this,Ka,"m",Dh).call(this,n,r),i&&Yu(this,Ka,"m",Dh).call(this,i,r),s&&Yu(this,Ka,"m",Dh).call(this,s,r),o&&Yu(this,Ka,"m",Dh).call(this,o,r),a&&Yu(this,Ka,"m",Dh).call(this,a,r),u&&Yu(this,Ka,"m",Dh).call(this,u,r),c&&Yu(this,Ka,"m",Dh).call(this,c,r)},Kae=function(e,r){const{greaterThan:n,greaterThanOrEqualTo:i,lessThan:s,lessThanOrEqualTo:o}=e;n&&o&&n>=o&&r.add("The greaterThan value must be less than the lessThanOrEqualTo value"),i&&s&&i>=s&&r.add("The greaterThanOrEqualTo value must be less than the lessThan value"),n&&s&&n>=s&&r.add("The greaterThan value must be less than the lessThan value"),i&&o&&i>=o&&r.add("The greaterThanOrEqualTo value must be less than the lessThanOrEqualTo value")};var Aj=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},sT;class Lh{constructor(){sT.set(this,new fWe)}validate(e,r){var n;if(e.value===void 0&&e.values===void 0&&e.notEquals===void 0){r.add("Either SearchToken value or values or notEquals must be provided");return}if(e.value!==void 0&&Aj(this,sT,"f").validate(e.value,r),e.values!==void 0&&e.values.length===0){r.add("At least one Coding must be set to instantiate a SearchToken");return}for(const i of(n=e.values)!==null&&n!==void 0?n:[])Aj(this,sT,"f").validate(i,r);if(e.notEquals!==void 0){if(e.notEquals.values!==void 0){if(e.notEquals.values.length===0){r.add("If notEquals values are provided, at least one Coding must be set");return}for(const i of e.notEquals.values)Aj(this,sT,"f").validate(i,r)}e.notEquals.code===void 0&&e.notEquals.value===void 0&&e.notEquals.system===void 0&&e.notEquals.values===void 0&&r.add("NotEquals must have at least one non-null property (code, value, system, or values)")}}}sT=new WeakMap;class fWe{validate(e,r){!e.system&&!e.code&&r.add("Each Coding in the list must have at least one non-null and non-empty value for system or code")}}var MSt,G_=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Tj,bj,Cj,Rj,Oj,Pj,Mj;class Ij extends ko{constructor(){super(...arguments),Tj.set(this,new Lh),bj.set(this,new k_)}validate(e,r){super.validate(e,r),e.groupCode&&G_(this,Tj,"f").validate(e.groupCode,r),e.lastUpdated&&G_(this,bj,"f").validate(e.lastUpdated,r)}}Tj=new WeakMap,bj=new WeakMap;class dWe{validate(e,r){e.length===0&&r.add("Prescription array must not be empty.")}}class Zae extends ko{constructor(){super(...arguments),Cj.set(this,new dWe),Rj.set(this,new k_)}validate(e,r){super.validate(e,r),e.lastUpdated!==void 0&&G_(this,Rj,"f").validate(e.lastUpdated,r),e.prescription!==void 0&&G_(this,Cj,"f").validate(e.prescription,r)}}Cj=new WeakMap,Rj=new WeakMap;class hWe extends ko{validate(e,r){var n;super.validate(e,r),!((n=e?.ids)===null||n===void 0)&&n.length||r.add("ids must not be empty")}}class pWe extends Po{constructor(){super(...arguments),this.validator=new Ij}}class ISt extends null{}class wSt extends null{}class NSt extends null{}class DSt extends null{}class _We extends Ij{constructor(){super(...arguments),Oj.set(this,new Lh)}validate(e,r){super.validate(e,r),e.category!==void 0&&G_(this,Oj,"f").validate(e.category,r)}}Oj=new WeakMap;class LSt extends Po{constructor(){super(...arguments),this.validator=new _We}}class USt extends null{}class $St extends null{}class xSt extends null{}class FSt extends null{}class kSt extends null{}class GSt extends null{}class VSt extends null{}class BSt extends null{}class jSt extends null{}class zSt extends null{}class qSt extends null{}class HSt extends null{}class YSt extends null{}class QSt extends null{}class WSt extends null{}class mWe extends Zae{constructor(){super(...arguments),Pj.set(this,new Lh)}validate(e,r){super.validate(e,r),e.medicationCode!==void 0&&G_(this,Pj,"f").validate(e.medicationCode,r)}}Pj=new WeakMap;class KSt extends Po{constructor(){super(...arguments),this.validator=new Zae}}class ZSt extends Po{constructor(){super(...arguments),this.validator=new mWe}}class gWe extends Ij{constructor(){super(...arguments),Mj.set(this,new Lh)}validate(e,r){super.validate(e,r),e.medicationCode!==void 0&&G_(this,Mj,"f").validate(e.medicationCode,r)}}Mj=new WeakMap;class XSt extends pWe{constructor(){super(...arguments),this.validator=new gWe}}class JSt extends null{}class eyt extends null{}class tyt extends Po{constructor(){super(...arguments),this.validator=new hWe}}class vWe{validate(e,r){Io(e.medicationStatementId)&&r.add("The medication pricing request must possess a medication statement id.")}}class ryt extends xn{constructor(){super(...arguments),this.validator=new vWe}}class SWe{validate(e,r){Io(e.bodySystemId)&&r.add("The body system score request must contain a body system id.")}}class nyt extends xn{constructor(){super(...arguments),this.validator=new SWe}}class yWe extends ko{validate(e,r){Io(e.medicationStatementId)&&r.add("The medication knowledge request must possess a medication statement id."),super.validate(e,r)}}class iyt extends Po{constructor(){super(...arguments),this.validator=new yWe}}class EWe extends ko{validate(e,r){Io(e.labId)&&r.add("The lab knowledge request must contain a lab id."),super.validate(e,r)}}class syt extends Po{constructor(){super(...arguments),this.validator=new EWe}}var Xae;(function(t){t.Active="ACTIVE",t.Completed="COMPLETED"})(Xae||(Xae={}));class AWe{validate(e,r){Ko(e)&&r.add("input must be provided."),Mo(e.id)&&r.add("id must be a non-empty string."),Ko(e.status)&&r.add("status is required.")}}class oyt extends xn{constructor(){super(...arguments),this.validator=new AWe}}class TWe{validate(e,r){if(Mo(e.file)){r.add("File content is required");return}const n=koe(e.file);if(n===null){r.add("File must be a valid data URI with base64 encoding (e.g., data:image/png;base64,...)");return}n.data.length>H8e&&r.add(`File content must not exceed ${Goe/(1024*1024)} MB`)}}class ayt extends xn{constructor(){super(...arguments),this.validator=new TWe}}const bWe=new Set(Object.values(Ej));function wj(t){return bWe.has(t)}var CWe=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Nj,Jae;class RWe extends ko{constructor(){super(...arguments),Nj.add(this)}validate(e,r){if(super.validate(e,r),!Zo(e.status)){const n=Array.isArray(e.status)?e.status:[e.status];for(const i of n)CWe(this,Nj,"m",Jae).call(this,i,r)}}}Nj=new WeakSet,Jae=function(e,r){wj(e)||r.add(`Invalid task status: "${e}"`)};class uyt extends Po{constructor(){super(...arguments),this.validator=new RWe}}class OWe{validate(e,r){wj(e.newStatus)||r.add(`Invalid task status: "${e.newStatus}"`)}}class cyt extends xn{constructor(){super(...arguments),this.validator=new OWe}}class PWe{validate(e,r){wj(e.newStatus)||r.add(`Invalid task status: "${e.newStatus}"`)}}class lyt extends xn{constructor(){super(...arguments),this.validator=new PWe}transformInput(e){return{id:e.taskId,status:e.newStatus}}}var yw=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Tv,eue,tue,rue,nue;class fyt extends Po{constructor(){super(...arguments),this.validator=new MWe}}class MWe extends ko{constructor(){super(...arguments),Tv.add(this)}validate(e,r){super.validate(e,r),ti(e.organizationTypeFilters)&&yw(this,Tv,"m",eue).call(this,e.organizationTypeFilters,r),ti(e.sortBy)&&yw(this,Tv,"m",tue).call(this,e.sortBy,r),ti(e.filterFields)&&yw(this,Tv,"m",rue).call(this,e.filterFields,r),ti(e.gender)&&yw(this,Tv,"m",nue).call(this,e.gender,r)}}Tv=new WeakSet,eue=function(e,r){for(const n of e)wWe(n)||r.add(`Invalid organizationTypeFilters value: "${n}"`)},tue=function(e,r){ti(e.field)&&!DWe(e.field)&&r.add(`Invalid sortBy.field value: "${e.field}"`),ti(e.order)&&!UWe(e.order)&&r.add(`Invalid sortBy.order value: "${e.order}"`)},rue=function(e,r){for(const n of e)xWe(n)||r.add(`Invalid filterField value: "${n}"`)},nue=function(e,r){jae(e)||r.add(`Invalid gender value: "${e}"`)};const IWe=new Set(Object.values(Sj));function wWe(t){return IWe.has(t)}const NWe=new Set(Object.values(yj));function DWe(t){return NWe.has(t)}const LWe=new Set(Object.values(vw));function UWe(t){return LWe.has(t)}const $We=new Set(Object.values(mj));function xWe(t){return $We.has(t)}var dyt;class hyt extends null{}class pyt extends Po{constructor(){super(...arguments),this.validator=new FWe}}class FWe extends ko{validate(e,r){super.validate(e,r)}}const kWe="data-connection-status";var GWe=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Dj;const VWe="connectionId cannot be null or empty",BWe="username cannot be null or empty",jWe="password cannot be null or empty",zWe="integrationType array cannot be empty",qWe="integrationType array cannot contain blank or empty strings",HWe="status array cannot be empty",YWe="status array cannot contain blank or empty strings";class iue{validate(e,r){e.connectionId===""&&r.add(VWe)}}class QWe{constructor(){Dj.set(this,new iue)}validate(e,r){GWe(this,Dj,"f").validate(e,r),e.integrationType!=="DIRECT"&&(Mo(e.username)&&r.add(BWe),Mo(e.password)&&r.add(jWe))}}Dj=new WeakMap;class WWe extends xn{constructor(){super(...arguments),this.validator=new iue}}class _yt extends null{}class myt extends null{}class gyt extends WWe{constructor(){super(...arguments),this.validator=new QWe}transformInput(e){var r,n,i;return{connectionId:e.connectionId,username:(r=e.username)!==null&&r!==void 0?r:null,password:(n=e.password)!==null&&n!==void 0?n:null,integrationType:(i=e.integrationType)!==null&&i!==void 0?i:null}}}class vyt extends xn{constructor(){super(...arguments),this.validator={validate:(e,r)=>{e.integrationType!==void 0&&e.integrationType!==null&&(e.integrationType.length===0&&r.add(zWe),e.integrationType.some(n=>n===""||n.trim()==="")&&r.add(qWe)),e.status!==void 0&&e.status!==null&&(e.status.length===0&&r.add(HWe),e.status.some(n=>n===""||n.trim()==="")&&r.add(YWe))}}}data(){return this.input()}}const KWe="deviceToken is required",ZWe="platformName must be a valid DevicePlatform value",XWe="applicationName is required",JWe="connectionId is required";var Lj;(function(t){t.IOS="IOS",t.ANDROID="ANDROID"})(Lj||(Lj={}));const eKe=new Set(Object.values(Lj));function tKe(t){return eKe.has(t)}function rKe(t){return!tKe(t)}class sue{validate(e,r){Io(e.deviceToken)&&r.add(KWe)}}class nKe extends sue{validate(e,r){super.validate(e,r),rKe(e.platformName.toUpperCase())&&r.add(ZWe),Io(e.applicationName)&&r.add(XWe)}}class Syt extends xn{constructor(){super(...arguments),this.validator=new nKe}}class yyt extends xn{constructor(){super(...arguments),this.validator=new sue}}class Uj{validate(e,r){Io(e.connectionId)&&r.add(JWe)}}class Eyt extends xn{constructor(){super(...arguments),this.validator=new Uj}}class Ayt extends xn{constructor(){super(...arguments),this.validator=new Uj}}class Tyt extends xn{constructor(){super(...arguments),this.validator=new Uj}}const iKe="string parameter serializedNotification must be provided",sKe="serialized notification must have a non-empty notification_id field of type string",oue="serialized notification must have an itbl object containing a non-empty messageId field of type string",oKe="parsed notification must be a non-null object.",aKe="serialized notification is not valid JSON.";class uKe{validate(e,r){if(Zo(e.serializedNotification)||typeof e.serializedNotification!="string"||Io(e.serializedNotification)){r.add(iKe);return}let n=null;try{n=JSON.parse(e.serializedNotification)}catch{r.add(aKe);return}if(typeof n!="object"||n===null){r.add(oKe);return}const{itbl:i,notification_id:s}=n;if((Zo(s)||typeof s!="string"||Io(s))&&r.add(sKe),typeof i!="object"||Ko(i)){r.add(oue);return}(Zo(i.messageId)||typeof i.messageId!="string"||Io(i.messageId))&&r.add(oue)}}class byt extends xn{constructor(){super(...arguments),this.validator=new uKe}}var $j=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},oT;class cKe extends ko{constructor(){super(...arguments),oT.set(this,new k_)}validate(e,r){(Zo(e.coverage)||Io(e.coverage))&&r.add("The claim summary request must contain a coverage ID."),ti(e.dateReceived)&&$j(this,oT,"f").validate(e.dateReceived,r),ti(e.servicePeriod)&&$j(this,oT,"f").validate(e.servicePeriod,r),ti(e.dateProcessed)&&$j(this,oT,"f").validate(e.dateProcessed,r),super.validate(e,r)}}oT=new WeakMap;class Cyt extends Po{constructor(){super(...arguments),this.validator=new cKe}}const lKe="SearchReference value should be a non-empty string";class aue{validate(e,r){Ko(e.value)||(typeof e.value!="string"||Io(e.value))&&r.add(lKe)}}const fKe="SearchStringValue should be a non-empty string";class aT{validate(e,r){if(Ko(e.values))return;let n=!1;for(const i of e.values)Io(i)&&(n=!0);n&&r.add(fKe)}}var Ew=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},xj,Fj,Aw;class dKe extends ko{constructor(){super(...arguments),xj.set(this,new aT),Fj.set(this,new k_),Aw.set(this,new aue)}validate(e,r){super.validate(e,r),ti(e.id)&&Ew(this,xj,"f").validate(e.id,r),ti(e.lastUpdated)&&Ew(this,Fj,"f").validate(e.lastUpdated,r),ti(e.beneficiary)&&Ew(this,Aw,"f").validate(e.beneficiary,r),ti(e.patient)&&Ew(this,Aw,"f").validate(e.patient,r)}}xj=new WeakMap,Fj=new WeakMap,Aw=new WeakMap;class Ryt extends Po{constructor(){super(...arguments),this.validator=new dKe}}class hKe extends ko{validate(e,r){super.validate(e,r)}}class Oyt extends Po{constructor(){super(...arguments),this.validator=new hKe}}class pKe{validate(e,r){(Zo(e.claimId)||Io(e.claimId))&&r.add("The EOB document request must contain a claimId.")}}class Pyt extends xn{constructor(){super(...arguments),this.validator=new pKe}}var V_=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},kj,Tw,uT,Gj;class _Ke extends ko{constructor(){super(...arguments),kj.set(this,new aT),Tw.set(this,new k_),uT.set(this,new aue),Gj.set(this,new Lh)}validate(e,r){super.validate(e,r),ti(e.id)&&V_(this,kj,"f").validate(e.id,r),ti(e.lastUpdated)&&V_(this,Tw,"f").validate(e.lastUpdated,r),ti(e.created)&&V_(this,Tw,"f").validate(e.created,r),ti(e.patient)&&V_(this,uT,"f").validate(e.patient,r),ti(e.provider)&&V_(this,uT,"f").validate(e.provider,r),ti(e.coverage)&&V_(this,uT,"f").validate(e.coverage,r),ti(e.status)&&V_(this,Gj,"f").validate(e.status,r)}}kj=new WeakMap,Tw=new WeakMap,uT=new WeakMap,Gj=new WeakMap;class Myt extends Po{constructor(){super(...arguments),this.validator=new _Ke}}var Vj=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Bj,jj,zj;class mKe{constructor(){Bj.set(this,new k_),jj.set(this,new aT),zj.set(this,new Lh)}validate(e,r){var n;En(e._source)&&Vj(this,jj,"f").validate(e._source,r),En(e.date)&&Vj(this,Bj,"f").validate(e.date,r),En(e._count)&&e._count<0&&r.add("Value of count cannot be less than 0"),En(e._getpagesoffset)&&e._getpagesoffset<0&&r.add("Value of getpagesoffset cannot be less than 0"),En((n=e.supporting_info)===null||n===void 0?void 0:n.value)&&Io(e.supporting_info.value)&&r.add("Supporting Information must have a non-empty value."),En(e.status)&&Vj(this,zj,"f").validate(e.status,r)}}Bj=new WeakMap,jj=new WeakMap,zj=new WeakMap;class Iyt extends xn{constructor(){super(...arguments),this.validator=new mKe}}class gKe{validate(e,r){if(!Ko(e.cancelationReason)){if(Ko(e.cancelationReason.coding)||e.cancelationReason.coding.length===0){r.add("cancelationReason must have at least one coding");return}for(const n of e.cancelationReason.coding)(Ko(n?.code)||Ko(n?.system))&&r.add("cancelationReason.coding must have a code and a system")}}}class wyt extends xn{constructor(){super(...arguments),this.validator=new gKe}}class vKe{validate(e,r){if(Ko(e.notificationPreferences)||e.notificationPreferences.length===0){r.add("notificationPreferences is required and must not be empty");return}e.notificationPreferences.forEach((n,i)=>{Ko(n.method)&&r.add(`notificationPreferences[${i}].method is required`),Ko(n.enabled)&&r.add(`notificationPreferences[${i}].enabled is required`)})}}class Nyt extends xn{constructor(){super(...arguments),this.validator=new vKe}}class SKe{validate(e,r){var n;Mo((n=e.organization.value)===null||n===void 0?void 0:n.trim())&&r.add("Organization reference is required and must have a non-empty value.")}}class Dyt extends xn{constructor(){super(...arguments),this.validator=new SKe}}class bw{validate(e,r,n={}){const{requireRole:i=!0}=n;En(e.id)?Io(e.id)?r.add("Member id cannot be empty"):e.id.length>255&&r.add("Member id cannot exceed 255 characters"):r.add("Member id is required"),En(e.type)?Io(e.type)&&r.add("Member type cannot be empty"):r.add("Member type is required");const s=En(e.role);if(i&&!s&&r.add("Member role is required"),s&&e.role)for(let o=0;o<e.role.length;o++){const a=e.role[o];En(a)?Io(a)&&r.add(`Role ${o}: Cannot be blank`):r.add(`Role ${o}: Cannot be null or undefined`)}}}class Lyt extends xn{constructor(){super(...arguments),this.validator=new bw}}class yKe{constructor(){this.updateValidator=new bw}validate(e,r){this.updateValidator.validate(e,r,{requireRole:!1})}}class Uyt extends xn{constructor(){super(...arguments),this.validator=new yKe}}class EKe{constructor(){this.updateValidator=new bw}validate(e,r){this.updateValidator.validate(e,r,{requireRole:!0})}}class $yt extends xn{constructor(){super(...arguments),this.validator=new EKe}}class AKe{constructor(){this.updateValidator=new bw}validate(e,r){if(!En(e.members)){r.add("Members array is required");return}if(e.members.length===0){r.add("Members array cannot be empty");return}for(let n=0;n<e.members.length;n++){const i=e.members[n];if(!En(i)){r.add(`Member ${n}: Cannot be null or undefined`);continue}const s=new Noe;this.updateValidator.validate(i,s,{requireRole:!0});for(const o of s.errors())r.add(`Member ${n}: ${o}`)}}}class xyt extends xn{constructor(){super(...arguments),this.validator=new AKe}}class TKe extends ko{validate(e,r){super.validate(e,r)}}class bKe extends Po{constructor(){super(...arguments),this.validator=new TKe}}class CKe{validate(e,r){const n=e.questionnaireResponse;if(Ko(n)){r.add("questionnaireResponse is required");return}if((Mo(n.resourceType)||n.resourceType!=="QuestionnaireResponse")&&r.add('questionnaireResponse.resourceType must be "QuestionnaireResponse"'),Mo(n.status)&&r.add("questionnaireResponse.status is required"),Mo(n.questionnaire)&&r.add("questionnaireResponse.questionnaire is required"),Ko(n.contained)||n.contained.length===0)r.add("questionnaireResponse.contained must have at least one item");else{let i=null;for(const s of n.contained){if(Ko(s)){r.add("questionnaireResponse.contained item cannot be null or undefined");break}if(s.resourceType==="Questionnaire"){i=s;break}}if(Ko(i)){r.add("questionnaireResponse.contained must contain a Questionnaire resource");return}Mo(i.id)&&r.add("questionnaireResponse.contained Questionnaire resource must have an id")}}}class Fyt extends xn{constructor(){super(...arguments),this.validator=new CKe}}class RKe{validate(e,r){const n=e.questionnaireResponse;if(Ko(n)){r.add("questionnaireResponse is required");return}(Mo(n.resourceType)||n.resourceType!=="QuestionnaireResponse")&&r.add('questionnaireResponse.resourceType must be "QuestionnaireResponse"'),Mo(n.status)&&r.add("questionnaireResponse.status is required"),Mo(n.questionnaire)&&r.add("questionnaireResponse.questionnaire is required")}}class kyt extends xn{constructor(){super(...arguments),this.validator=new RKe}}var Cw=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},qj,Hj,Rw;class OKe extends ko{constructor(){super(...arguments),qj.set(this,new k_),Hj.set(this,new aT),Rw.set(this,new Lh)}validate(e,r){super.validate(e,r),En(e.id)&&Cw(this,Hj,"f").validate(e.id,r),En(e.lastUpdated)&&Cw(this,qj,"f").validate(e.lastUpdated,r),En(e.status)&&Cw(this,Rw,"f").validate(e.status,r),En(e.tag)&&Cw(this,Rw,"f").validate(e.tag,r)}}qj=new WeakMap,Hj=new WeakMap,Rw=new WeakMap;class Gyt extends Po{constructor(){super(...arguments),this.validator=new OKe}}var cT=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Yj,bv;class PKe extends ko{constructor(){super(...arguments),Yj.set(this,new aT),bv.set(this,new Lh)}validate(e,r){super.validate(e,r),En(e.id)&&cT(this,Yj,"f").validate(e.id,r),En(e.tag)&&cT(this,bv,"f").validate(e.tag,r),En(e.security)&&cT(this,bv,"f").validate(e.security,r),En(e.context)&&cT(this,bv,"f").validate(e.context,r),En(e.identifier)&&cT(this,bv,"f").validate(e.identifier,r)}}Yj=new WeakMap,bv=new WeakMap;class Vyt extends Po{constructor(){super(...arguments),this.validator=new PKe}}class MKe extends ko{validate(e,r){super.validate(e,r)}}class Byt extends Po{constructor(){super(...arguments),this.validator=new MKe}}class IKe{validate(e,r){e.file.trim()||r.add("File content is required"),e.file.trim()&&!q8e(e.file)&&r.add("File must be a valid data URI with base64 encoding (e.g., data:image/png;base64,...)"),e.fileName.trim()||r.add("File name is required")}}class jyt extends xn{constructor(){super(...arguments),this.validator=new IKe}}class wKe{validate(e,r){e.attachmentId.trim()||r.add("Attachment ID is required")}}class zyt extends xn{constructor(){super(...arguments),this.validator=new wKe}}class NKe{validate(e,r){e.subject.trim()||r.add("Subject is required"),e.comment.body.trim()||r.add("Comment body is required"),e.fields.category.trim()||r.add("Category is required")}}class qyt extends xn{constructor(){super(...arguments),this.validator=new NKe}}class DKe extends ko{validate(e,r){super.validate(e,r)}}class Hyt extends Po{constructor(){super(...arguments),this.validator=new DKe}}class LKe extends ko{validate(e,r){e.requestId<0&&r.add("requestId must be a non-negative number"),super.validate(e,r)}}class Yyt extends Po{constructor(){super(...arguments),this.validator=new LKe}}class UKe{validate(e,r){e.requestId<0&&r.add("Request ID must be a non-negative integer"),Mo(e.body.trim())&&r.add("Comment body is required")}}class Qyt extends xn{constructor(){super(...arguments),this.validator=new UKe}}class $Ke{validate(e,r){Mo(e.attachmentId.trim())&&r.add("attachmentId must be a non-empty string"),e.requestId<0&&r.add("requestId must be a non-negative number")}}class Wyt extends xn{constructor(){super(...arguments),this.validator=new $Ke}}const xKe="code cannot be null or empty";class FKe{validate(e,r){Mo(e.code)&&r.add(xKe)}}class Kyt extends xn{constructor(){super(...arguments),this.validator=new FKe}}const kKe="consentId cannot be null or empty";class GKe{validate(e,r){Mo(e.consentId)&&r.add(kKe)}}class VKe extends xn{constructor(){super(...arguments),this.validator=new GKe}}var Qj=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{c(n.next(l))}catch(d){o(d)}}function u(l){try{c(n.throw(l))}catch(d){o(d)}}function c(l){l.done?s(l.value):i(l.value).then(a,u)}c((n=n.apply(t,e||[])).next())})};class Wj{constructor(e=new Map){this.storage=e}get(e){return Qj(this,void 0,void 0,function*(){return this.storage.get(e)})}set(e,r){return Qj(this,void 0,void 0,function*(){this.storage.set(e,r)})}delete(e){return Qj(this,void 0,void 0,function*(){return this.storage.delete(e)})}}const BKe={logLevel:gj.Error,timeout:3e4,retryPolicy:{attempts:3,interval:1e3},telemetryEnabled:!1,tokenStorage:new Wj,language:null,overrides:{unauthedApiUrl:null,authedApiUrl:null}};var Wf;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(Wf||(Wf={}));var jKe=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},uue=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},lT,On;(function(t){t[t.VERBOSE=0]="VERBOSE",t[t.DEBUG=1]="DEBUG",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.FATAL=5]="FATAL"})(On||(On={}));const zKe={[On.VERBOSE]:"VERBOSE",[On.DEBUG]:"DEBUG",[On.INFO]:"INFO",[On.WARN]:"WARN",[On.ERROR]:"ERROR",[On.FATAL]:"FATAL"};class Cv{constructor(e){lT.set(this,void 0),jKe(this,lT,e,"f")}get severity(){return uue(this,lT,"f")}shouldLog(e){return e>=uue(this,lT,"f")}static severityText(e){return zKe[e]}static severityFromText(e){switch(e){case"VERBOSE":return On.VERBOSE;case"DEBUG":return On.DEBUG;case"INFO":return On.INFO;case"WARN":return On.WARN;case"ERROR":return On.ERROR;case"FATAL":return On.FATAL;default:throw new Error(`Invalid severity text: ${e}`)}}}lT=new WeakMap;var Kj=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Xl=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Uh,cue,Ow,fT,Pw,B_;class lue{constructor(e,r,n){Uh.add(this),Ow.set(this,void 0),fT.set(this,void 0),Pw.set(this,void 0),Kj(this,Ow,n,"f"),Kj(this,fT,new Cv(e),"f"),Kj(this,Pw,r,"f")}name(){return Xl(this,Ow,"f")}severity(){return Xl(this,fT,"f").severity}verbose(e,r){Xl(this,Uh,"m",B_).call(this,On.VERBOSE,e,r)}debug(e,r){Xl(this,Uh,"m",B_).call(this,On.DEBUG,e,r)}info(e,r){Xl(this,Uh,"m",B_).call(this,On.INFO,e,r)}warn(e,r){Xl(this,Uh,"m",B_).call(this,On.WARN,e,r)}error(e,r){let n;r instanceof dr&&(n={error:r.failure()?r.error().message:r.data()}),r instanceof Error&&(n={error:r.message}),n===void 0&&(n=r),Xl(this,Uh,"m",B_).call(this,On.ERROR,e,n)}fatal(e,r){Xl(this,Uh,"m",B_).call(this,On.FATAL,e,r)}static otelSeverityNumber(e){switch(e){case On.VERBOSE:return Wf.TRACE;case On.DEBUG:return Wf.DEBUG;case On.INFO:return Wf.INFO;case On.WARN:return Wf.WARN;case On.ERROR:return Wf.ERROR;case On.FATAL:return Wf.FATAL;default:return Wf.UNSPECIFIED}}}cue=lue,Ow=new WeakMap,fT=new WeakMap,Pw=new WeakMap,Uh=new WeakSet,B_=function(e,r,n){Xl(this,fT,"f").shouldLog(e)&&Xl(this,Pw,"f").emit({timestamp:Date.now(),severityNumber:cue.otelSeverityNumber(e),severityText:Cv.severityText(e),body:r,attributes:n??{}})};var fue=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},due=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Mw,Iw;class qKe{constructor(e,r){Mw.set(this,void 0),Iw.set(this,void 0),fue(this,Iw,e,"f"),fue(this,Mw,r.loggerProvider(),"f")}getLogger(e){const r=e??"default",n=due(this,Mw,"f").getLogger(r);return new lue(due(this,Iw,"f"),n,r)}}Mw=new WeakMap,Iw=new WeakMap;class HKe{format(e,r,n,i){let o=`[${new Date().toISOString()}] ${Cv.severityText(e)}`;return n!==void 0&&(o+=` (${n})`),o+=`: ${r}`,i===void 0?[o]:[o,i]}}var Zj=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},wo=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Jl,ef,Kf;class YKe{constructor(e,r){Jl.set(this,void 0),ef.set(this,void 0),Kf.set(this,void 0),Zj(this,ef,new Cv(e),"f"),Zj(this,Jl,r,"f"),Zj(this,Kf,new HKe,"f")}name(){return wo(this,Jl,"f")}severity(){return wo(this,ef,"f").severity}verbose(e,r){wo(this,ef,"f").shouldLog(On.VERBOSE)&&console.debug(...wo(this,Kf,"f").format(On.VERBOSE,e,wo(this,Jl,"f"),r))}debug(e,r){wo(this,ef,"f").shouldLog(On.DEBUG)&&console.debug(...wo(this,Kf,"f").format(On.DEBUG,e,wo(this,Jl,"f"),r))}info(e,r){wo(this,ef,"f").shouldLog(On.INFO)&&console.info(...wo(this,Kf,"f").format(On.INFO,e,wo(this,Jl,"f"),r))}warn(e,r){wo(this,ef,"f").shouldLog(On.WARN)&&console.warn(...wo(this,Kf,"f").format(On.WARN,e,wo(this,Jl,"f"),r))}error(e,r){let n=r;r instanceof dr&&(n=r.failure()?r.error():r.data()),wo(this,ef,"f").shouldLog(On.ERROR)&&console.error(...wo(this,Kf,"f").format(On.ERROR,e,wo(this,Jl,"f"),n))}fatal(e,r){wo(this,ef,"f").shouldLog(On.FATAL)&&console.error(...wo(this,Kf,"f").format(On.FATAL,e,wo(this,Jl,"f"),r))}}Jl=new WeakMap,ef=new WeakMap,Kf=new WeakMap;var QKe=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},WKe=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},ww;class No{constructor(e=On.FATAL){ww.set(this,void 0),QKe(this,ww,e,"f")}getLogger(e){return new YKe(WKe(this,ww,"f"),e)}}ww=new WeakMap;var KKe=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Xj,hue;class ZKe{constructor(){Xj.add(this)}createLogProvider(e,r){switch(KKe(this,Xj,"m",hue).call(this,e)){case"otel":if(r===void 0)throw new Error('telemetry is required for "otel" logging');return new qKe(e.logLevel,r);case"console":return new No(e.logLevel)}}}Xj=new WeakSet,hue=function(e){return e.telemetry.enabled?"otel":"console"};var rs=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Zf=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},vc,Rv,$h,Ov,xh,j_,pue,_ue,mue,gue,vue,Sue,yue,Eue,Aue,Tue;class Nw{constructor(e){vc.add(this),Rv.set(this,void 0),$h.set(this,void 0),Ov.set(this,void 0),xh.set(this,void 0),j_.set(this,void 0),this.bwellConfig=rs(this,vc,"m",vue).call(this,e),Zf(this,Rv,Cv.severityFromText(this.bwellConfig.logLevel),"f"),Zf(this,j_,rs(this,vc,"m",Tue).call(this),"f"),Zf(this,Ov,rs(this,vc,"m",yue).call(this),"f"),Zf(this,$h,rs(this,vc,"m",Eue).call(this),"f"),Zf(this,xh,rs(this,vc,"m",Aue).call(this),"f")}static initialize(e){try{const r=new Nw(e);return dr.success(r)}catch(r){if(pa.isBwellError(r))return dr.failure(r);throw r}}get logLevel(){return rs(this,Rv,"f")}get graphQL(){return rs(this,Ov,"f")}get telemetry(){return rs(this,$h,"f")}get http(){return rs(this,xh,"f")}get context(){return rs(this,j_,"f")}setContextUser(e){rs(this,j_,"f").user=e}mergeRemoteConfig(e){Zf(this,Rv,rs(this,vc,"m",pue).call(this,e),"f"),Zf(this,Ov,rs(this,vc,"m",_ue).call(this,e),"f"),Zf(this,$h,Object.freeze(rs(this,vc,"m",mue).call(this,e)),"f"),Zf(this,xh,Object.freeze(rs(this,vc,"m",gue).call(this,e)),"f")}}Rv=new WeakMap,$h=new WeakMap,Ov=new WeakMap,xh=new WeakMap,j_=new WeakMap,vc=new WeakSet,pue=function(e){var r;const n=(r=e?.logLevel)!==null&&r!==void 0?r:null;return n===null?rs(this,Rv,"f"):Cv.severityFromText(n)},_ue=function(e){var r;const n=(r=e?.graphQLClient)!==null&&r!==void 0?r:null;if(n===null)return rs(this,Ov,"f");const{authedApiUrl:i,unauthedApiUrl:s}=this.bwellConfig.overrides;return{unauthApiUrl:s??n.url,apiUrl:i??n.authUrl}},mue=function(e){var r,n;const i=(r=e?.telemetry)!==null&&r!==void 0?r:null;if(i===null)return rs(this,$h,"f");const s=(n=i.enabled)!==null&&n!==void 0?n:rs(this,$h,"f").enabled;if(i.collectorUrl.endsWith("/"))throw new Error('Telemetry config "collectorUrl" cannot end with a trailing slash.');let o;try{o=new URL(i.collectorUrl)}catch{throw new Error('Telemetry config "collectorUrl" malformed/is not a proper URL.')}if(o.pathname!=="/")throw new Error('Telemetry config "collectorUrl" cannot contain a path.');return Object.assign(Object.assign({},rs(this,$h,"f")),{enabled:s,collectorUrl:i.collectorUrl})},gue=function(e){var r,n,i;const s=(r=e?.httpClient)!==null&&r!==void 0?r:null;return s===null?rs(this,xh,"f"):{timeout:(n=s.requestTimeout)!==null&&n!==void 0?n:rs(this,xh,"f").timeout,retryPolicy:(i=s.retry)!==null&&i!==void 0?i:rs(this,xh,"f").retryPolicy}},vue=function(e){return Object.assign(Object.assign({},BKe),e)},Sue=function(){try{return W8e(this.bwellConfig.clientKey)}catch{throw new k8e("It appears there is a problem with your Client Key. Contact b.well support for further assistance.")}},yue=function(){var e,r;return{apiUrl:(e=this.bwellConfig.overrides.authedApiUrl)!==null&&e!==void 0?e:`https://api-gateway.${rs(this,j_,"f").env}.icanbwell.com/federated-graph-authed/graphql`,unauthApiUrl:(r=this.bwellConfig.overrides.unauthedApiUrl)!==null&&r!==void 0?r:`https://api-gateway.${rs(this,j_,"f").env}.icanbwell.com/federated-graph/graphql`}},Eue=function(){return{collectorUrl:"https://collector.services.icanbwell.com",enabled:this.bwellConfig.telemetryEnabled,timeout:this.bwellConfig.timeout}},Aue=function(){return{timeout:this.bwellConfig.timeout,retryPolicy:{attempts:this.bwellConfig.retryPolicy.attempts,interval:this.bwellConfig.retryPolicy.interval}}},Tue=function(){return{clientKey:this.bwellConfig.clientKey,env:rs(this,vc,"m",Sue).call(this),user:null}};var XKe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{c(n.next(l))}catch(d){o(d)}}function u(l){try{c(n.throw(l))}catch(d){o(d)}}function c(l){l.done?s(l.value):i(l.value).then(a,u)}c((n=n.apply(t,e||[])).next())})},bue=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Dw=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Pv,Lw;class JKe{constructor(e,r=new No){Pv.set(this,void 0),Lw.set(this,void 0),bue(this,Lw,e,"f"),bue(this,Pv,r.getLogger("ConfigManager"),"f")}initialize(e){return XKe(this,void 0,void 0,function*(){const r=Nw.initialize(e);if(r.failure())return r;const n=r.data();Dw(this,Pv,"f").verbose("Initializing SDK Configuration");const i=yield Dw(this,Lw,"f").initialize(n.context.clientKey);if(i.failure())return i.intoFailure();const s=i.data();try{n.mergeRemoteConfig(s)}catch(o){Dw(this,Pv,"f").error("Error merging SDK config with remote config.",o)}return Dw(this,Pv,"f").info("Remote SDK Configuration merged with user config"),dr.success(n)})}}Pv=new WeakMap,Lw=new WeakMap;class Fh extends Error{response;request;constructor(e,r){const n=`${Fh.extractMessage(e)}: ${JSON.stringify({response:e,request:r})}`;super(n),Object.setPrototypeOf(this,Fh.prototype),this.response=e,this.request=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Fh)}static extractMessage(e){return e.errors?.[0]?.message??`GraphQL Error (Code: ${String(e.status)})`}}const Cue=t=>t.toUpperCase(),Jj=t=>typeof t=="function"?t():t,Rue=(t,e)=>t.map((r,n)=>[r,e[n]]),Mv=t=>{let e={};return t instanceof Headers?e=e3e(t):Array.isArray(t)?t.forEach(([r,n])=>{r&&n!==void 0&&(e[r]=n)}):t&&(e=t),e},e3e=t=>{const e={};return t.forEach((r,n)=>{e[n]=r}),e},t3e=t=>{try{const e=t();return r3e(e)?e.catch(r=>Oue(r)):e}catch(e){return Oue(e)}},Oue=t=>t instanceof Error?t:new Error(String(t)),r3e=t=>typeof t=="object"&&t!==null&&"then"in t&&typeof t.then=="function"&&"catch"in t&&typeof t.catch=="function"&&"finally"in t&&typeof t.finally=="function",ez=t=>{throw new Error(`Unhandled case: ${String(t)}`)},Uw=t=>typeof t=="object"&&t!==null&&!Array.isArray(t),Zyt=t=>Object.entries(t),Xyt=t=>Object.values(t),Jyt=(t,e)=>Object.fromEntries(Object.entries(t).map(([r,n])=>[r,e(n,r)])),eEt=t=>t.charAt(0).toLowerCase()+t.slice(1);function tEt(t){if(!Array.isArray(t))throw new Error(`Expected array. Got: ${String(t)}`)}function rEt(t){if(t===null||typeof t!="object")throw new Error(`Expected object. Got: ${String(t)}`)}const nEt=t=>t.charAt(0).toUpperCase()+t.slice(1),iEt=t=>{let e=!1,r,n;return{promise:new Promise((s,o)=>{r=s,n=o}),isResolved:()=>e,resolve:s=>{if(e=!0,t?.strict&&e)throw new Error(`Deferred is already resolved. Attempted to resolve with: ${JSON.stringify(s)}`);r(s)},reject:s=>n(s)}},n3e=(...t)=>{process.env.DEBUG&&console.log(...t)},sEt=(...t)=>(...e)=>{n3e(...t,...e)},oEt=t=>{const e=[],r=[];for(const n of t)n instanceof Error?e.push(n):r.push(n);return[r,e]};var i3e;const aEt=async(...t)=>{const e=s3e(t);return new i3e(e.url).batchRequests(e)},s3e=t=>t.length===1?t[0]:{url:t[0],documents:t[1],requestHeaders:t[2],signal:void 0},o3e=(t,e)=>t.documents?t:{documents:t,requestHeaders:e,signal:void 0};var a3e;const uEt=async(...t)=>{const[e,r,...n]=t,i=u3e(e,r,...n);return new a3e(i.url).rawRequest({...i})},u3e=(t,e,...r)=>{const[n,i]=r;return typeof t=="string"?{url:t,query:e,variables:n,requestHeaders:i,signal:void 0}:t},c3e=(t,e,r)=>t.query?t:{query:t,variables:e,requestHeaders:r,signal:void 0};var l3e=T(2455);const cEt="Accept",tz="Content-Type",rz="application/json",Pue="application/graphql-response+json",lEt=null,Mue=t=>t.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),f3e=t=>{const e=t.toLowerCase();return e.includes(Pue)||e.includes(rz)},Iue=t=>{try{if(Array.isArray(t))return{_tag:"Batch",executionResults:t.map(wue)};if(Uw(t))return{_tag:"Single",executionResult:wue(t)};throw new Error(`Invalid execution result: result is not object or array.
13817
13817
  Got:
13818
13818
  ${String(t)}`)}catch(e){return e}},wue=t=>{if(typeof t!="object"||t===null)throw new Error("Invalid execution result: result is not object");let e,r,n;if("errors"in t){if(!Uw(t.errors)&&!Array.isArray(t.errors))throw new Error("Invalid execution result: errors is not plain object OR array");e=t.errors}if("data"in t){if(!Uw(t.data)&&t.data!==null)throw new Error("Invalid execution result: data is not plain object");r=t.data}if("extensions"in t){if(!Uw(t.extensions))throw new Error("Invalid execution result: extensions is not plain object");n=t.extensions}return{data:r,errors:e,extensions:n}},d3e=t=>t._tag==="Batch"?t.executionResults.some(Nue):Nue(t.executionResult),Nue=t=>Array.isArray(t.errors)?t.errors.length>0:!!t.errors,Due=t=>typeof t=="object"&&t!==null&&"kind"in t&&t.kind===l3e.b.OPERATION_DEFINITION;var h3e=T(5157),p3e=T(2704);const _3e=t=>{let e;const r=t.definitions.filter(Due);return r.length===1&&(e=r[0].name?.value),e},m3e=t=>{let e=!1;const r=t.definitions.filter(Due);return r.length===1&&(e=r[0].operation==="mutation"),e},nz=(t,e)=>{const r=typeof t=="string"||"kind"in t?t:String(t),n=typeof r=="string"?r:(0,p3e.y)(r);let i=!1,s;if(e)return{expression:n,isMutation:i,operationName:s};const o=t3e(()=>typeof r=="string"?(0,h3e.qg)(r):r);return o instanceof Error?{expression:n,isMutation:i,operationName:s}:(s=_3e(o),i=m3e(o),{expression:n,operationName:s,isMutation:i})},iz=JSON,sz=async t=>{const e={...t,method:t.request._tag==="Single"?t.request.document.isMutation?"POST":Cue(t.method??"post"):t.request.hasMutations?"POST":Cue(t.method??"post"),fetchOptions:{...t.fetchOptions,errorPolicy:t.fetchOptions.errorPolicy??"none"}},n=await v3e(e.method)(e),i=await n.text();let s;try{s=g3e(i,n.headers.get(tz),t.fetchOptions.jsonSerializer??iz)}catch(a){s=a}const o={status:n.status,headers:n.headers,body:i};if(!n.ok){if(s instanceof Error)return new Fh({...o},{query:t.request._tag==="Single"?t.request.document.expression:t.request.query,variables:t.request.variables});const a=s._tag==="Batch"?{...s.executionResults,...o}:{...s.executionResult,...o};return new Fh(a,{query:t.request._tag==="Single"?t.request.document.expression:t.request.query,variables:t.request.variables})}if(s instanceof Error)throw s;if(d3e(s)&&e.fetchOptions.errorPolicy==="none"){const a=s._tag==="Batch"?{...s.executionResults,...o}:{...s.executionResult,...o};return new Fh(a,{query:t.request._tag==="Single"?t.request.document.expression:t.request.query,variables:t.request.variables})}switch(s._tag){case"Single":return{...o,...Lue(e)(s.executionResult)};case"Batch":return{...o,data:s.executionResults.map(Lue(e))};default:ez(s)}},Lue=t=>e=>({extensions:e.extensions,data:e.data,errors:t.fetchOptions.errorPolicy==="all"?e.errors:void 0}),g3e=(t,e,r)=>e&&f3e(e)?Iue(r.parse(t)):Iue(t),v3e=t=>async e=>{const r=new Headers(e.headers);let n=null,i;r.has("Accept")||r.set("Accept",[Pue,rz].join(", ")),t==="POST"?(i=(e.fetchOptions.jsonSerializer??iz).stringify(S3e(e)),typeof i=="string"&&!r.has(tz)&&r.set(tz,rz)):n=y3e(e);const s={method:t,headers:r,body:i,...e.fetchOptions};let o=new URL(e.url),a=s;if(e.middleware){const c=await Promise.resolve(e.middleware({...s,url:e.url,operationName:e.request._tag==="Single"?e.request.document.operationName:void 0,variables:e.request.variables})),{url:l,...d}=c;o=new URL(l),a=d}return n&&n.forEach((c,l)=>{o.searchParams.append(l,c)}),await(e.fetch??fetch)(o,a)},S3e=t=>{switch(t.request._tag){case"Single":return{query:t.request.document.expression,variables:t.request.variables,operationName:t.request.document.operationName};case"Batch":return Rue(t.request.query,t.request.variables??[]).map(([e,r])=>({query:e,variables:r}));default:throw ez(t.request)}},y3e=t=>{const e=t.fetchOptions.jsonSerializer??iz,r=new URLSearchParams;switch(t.request._tag){case"Single":return r.append("query",Mue(t.request.document.expression)),t.request.variables&&r.append("variables",e.stringify(t.request.variables)),t.request.document.operationName&&r.append("operationName",t.request.document.operationName),r;case"Batch":{const n=t.request.variables?.map(o=>e.stringify(o))??[],i=t.request.query.map(Mue),s=Rue(i,n).map(([o,a])=>({query:o,variables:a}));return r.append("query",e.stringify(s)),r}default:throw ez(t.request)}};class E3e{url;requestConfig;constructor(e,r={}){this.url=e,this.requestConfig=r}rawRequest=async(...e)=>{const[r,n,i]=e,s=c3e(r,n,i),{headers:o,fetch:a=globalThis.fetch,method:u="POST",requestMiddleware:c,responseMiddleware:l,excludeOperationName:d,...p}=this.requestConfig,{url:g}=this;s.signal!==void 0&&(p.signal=s.signal);const v=nz(s.query,d),b=await sz({url:g,request:{_tag:"Single",document:v,variables:s.variables},headers:{...Mv(Jj(o)),...Mv(s.requestHeaders)},fetch:a,method:u,fetchOptions:p,middleware:c});if(l&&await l(b,{operationName:v.operationName,variables:n,url:this.url}),b instanceof Error)throw b;return b};async request(e,...r){const[n,i]=r,s=T3e(e,n,i),{headers:o,fetch:a=globalThis.fetch,method:u="POST",requestMiddleware:c,responseMiddleware:l,excludeOperationName:d,...p}=this.requestConfig,{url:g}=this;s.signal!==void 0&&(p.signal=s.signal);const v=nz(s.document,d),b=await sz({url:g,request:{_tag:"Single",document:v,variables:s.variables},headers:{...Mv(Jj(o)),...Mv(s.requestHeaders)},fetch:a,method:u,fetchOptions:p,middleware:c});if(l&&await l(b,{operationName:v.operationName,variables:s.variables,url:this.url}),b instanceof Error)throw b;return b.data}async batchRequests(e,r){const n=o3e(e,r),{headers:i,excludeOperationName:s,...o}=this.requestConfig;n.signal!==void 0&&(o.signal=n.signal);const a=n.documents.map(({document:p})=>nz(p,s)),u=a.map(({expression:p})=>p),c=a.some(({isMutation:p})=>p),l=n.documents.map(({variables:p})=>p),d=await sz({url:this.url,request:{_tag:"Batch",operationName:void 0,query:u,hasMutations:c,variables:l},headers:{...Mv(Jj(i)),...Mv(n.requestHeaders)},fetch:this.requestConfig.fetch??globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:o,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware&&await this.requestConfig.responseMiddleware(d,{operationName:void 0,variables:l,url:this.url}),d instanceof Error)throw d;return d.data}setHeaders(e){return this.requestConfig.headers=e,this}setHeader(e,r){const{headers:n}=this.requestConfig;return n?n[e]=r:this.requestConfig.headers={[e]:r},this}setEndpoint(e){return this.url=e,this}}var A3e;async function fEt(t,e,...r){const n=b3e(t,e,...r);return new A3e(n.url).request({...n})}const T3e=(t,e,r)=>t.document?t:{document:t,variables:e,requestHeaders:r,signal:void 0},b3e=(t,e,...r)=>{const[n,i]=r;return typeof t=="string"?{url:t,document:e,variables:n,requestHeaders:i,signal:void 0}:t};var dEt;const hEt=null,uo=`
13819
13819
  fragment CodingFields on Coding {
@@ -18434,6 +18434,11 @@ ${fz}`,$2e=`
18434
18434
  }
18435
18435
  organizationName
18436
18436
  parkingInformation
18437
+ faqs {
18438
+ sequence
18439
+ question
18440
+ answer
18441
+ }
18437
18442
  }
18438
18443
  organization {
18439
18444
  name