@icanbwell/composite 1.530.0 → 1.531.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/138.index.js +1 -1
- package/index.js +1 -1
- package/native.js +1 -1
- package/package.json +3 -3
package/138.index.js
CHANGED
|
@@ -7376,7 +7376,7 @@ found at http://polymer.github.io/PATENTS.txt
|
|
|
7376
7376
|
>
|
|
7377
7377
|
<slot name="error" slot="error"></slot>
|
|
7378
7378
|
</feature-app-container>
|
|
7379
|
-
`}catch(o){return r.error(o),vd` <slot name="error"></slot> `}}}m_([ao({type:String})],n.prototype,"featureAppId",void 0),m_([ao({type:String})],n.prototype,"featureAppName",void 0),m_([ao({type:String})],n.prototype,"baseUrl",void 0),m_([ao({type:String})],n.prototype,"src",void 0),m_([ao({type:Object})],n.prototype,"config",void 0),customElements.define(Hj,n)}async function whe(){await m.I("default");const e=window.__feature_hub_feature_app_module_container__;if(!e)throw new Error('The name in the ModuleFederationPlugin must be "__feature_hub_feature_app_module_container__".');return window.__feature_hub_feature_app_module_container__=void 0,await e.init(m.S.default),(await e.get("featureAppModule"))()}async function Nhe(e){return new Promise((t,r)=>{const n=document.createElement("script");n.src=e,n.type="text/javascript",n.async=!0,n.onload=()=>{whe().then(t).catch(r),document.head.removeChild(n)},n.onerror=()=>{r(new Error("Could not load federated module.")),document.head.removeChild(n)},document.head.appendChild(n)})}var Mhe=m(9742),yd,md;class Lhe{constructor(){yd.set(this,void 0),md.set(this,void 0)}onReboot(t){return(0,N.GG)(this,yd,t,"f"),()=>{(0,N.GG)(this,yd,void 0,"f")}}reboot(t,r){const{featureServices:n}=mj((0,Mhe.Ak)(),{featureServiceDefinitions:t,featureServiceDependencies:r});return(0,N.GG)(this,md,n,"f"),(0,N.gn)(this,yd,"f")&&(0,N.gn)(this,yd,"f").call(this,(0,N.gn)(this,md,"f")),(0,N.gn)(this,md,"f")}getRebootedServices(){return(0,N.gn)(this,md,"f")}}yd=new WeakMap,md=new WeakMap;var OE,AE,CE,E_,fR;class Dhe{constructor({initialState:t={},logger:r,globalEventEmitter:n}){OE.add(this),AE.set(this,void 0),CE.set(this,{[zt.apiClient.id]:zt.apiClient.version.one,[zt.bwellSdk.id]:zt.bwellSdk.version.one,[zt.theme.id]:zt.theme.version.one,[zt.analytics.id]:zt.theme.version.one,[zt.auth.id]:zt.auth.version.one,[zt.logging.id]:zt.logging.version.one,[zt.state.id]:zt.state.version.one,[zt.navigation.id]:zt.navigation.version.one,[zt.translation.id]:zt.translation.version.one,[zt.featureFlags.id]:zt.featureFlags.version.one,[zt.identityUtils.id]:zt.apiClient.version.one,[zt.nativeBridge.id]:zt.nativeBridge.version.one,[zt.globalEventEmitter.id]:zt.globalEventEmitter.version.one,[zt.rebootController.id]:zt.rebootController.version.one}),E_.set(this,void 0),(0,N.GG)(this,AE,n,"f"),(0,N.GG)(this,E_,new Lhe,"f");const{featureAppManager:i,featureServices:o}=mj("orchestrator:integrator",{featureServiceDependencies:(0,N.gn)(this,CE,"f"),featureServiceDefinitions:(0,N.gn)(this,OE,"m",fR).call(this,t),moduleLoader:Nhe,logger:r});this.services=o,Ihe(i)}reboot(t){this.services=(0,N.gn)(this,E_,"f").reboot((0,N.gn)(this,OE,"m",fR).call(this,t),(0,N.gn)(this,CE,"f"))}}AE=new WeakMap,CE=new WeakMap,E_=new WeakMap,OE=new WeakSet,fR=function(t){return[zt.apiClient.definition,zt.bwellSdk.definition,zt.theme.definition,zt.analytics.definition,zt.auth.definition,zt.logging.definition,zt.state.define(t),zt.navigation.definition,zt.translation.definition,zt.featureFlags.definition,zt.identityUtils.definition,zt.nativeBridge.definition,zt.globalEventEmitter.define((0,N.gn)(this,AE,"f")),zt.rebootController.define((0,N.gn)(this,E_,"f"))]};function xhe(e){try{return JSON.parse(atob(e))}catch{}}function Uhe(e){var t,r,n;const i=xhe(e);if(!i?.env)return X.C;const o={rest:{endpoints:{}}};for(const u in(t=X.C===null||X.C===void 0?void 0:X.C.rest)===null||t===void 0?void 0:t.endpoints){const l=(r=X.C===null||X.C===void 0?void 0:X.C.rest)===null||r===void 0?void 0:r.endpoints[u];typeof l=="string"&&((n=o?.rest)===null||n===void 0?void 0:n.endpoints)&&(o.rest.endpoints[u]=l.replace(".prod.",`.${i.env}.`))}return o}var Ed,Sd,dR,tu,Ra,gi,S_,hl,T_,Qj,PE;const $he=6e4;class Fhe{constructor(t){Ed.add(this),Sd.set(this,void 0),dR.set(this,gpe.EventBus.getInstance(X.mO).mainChannel()),tu.set(this,new p$),Ra.set(this,void 0),gi.set(this,void 0),S_.set(this,void 0),hl.set(this,void 0),T_.set(this,void 0),this.isInitialized=!1,(0,N.GG)(this,S_,t,"f"),(0,N.gn)(this,dR,"f").addListener(r=>{var{channel:n,topic:i}=r,o=r.payload,{name:u}=o,l=(0,N.Tt)(o,["name"]);(0,N.gn)(this,tu,"f").emit("embeddable",{id:n,name:u,type:i,payload:l})})}init(t){return(0,N.sH)(this,void 0,void 0,function*(){const{clientKey:r,initialUserToken:n,telemetry:i={}}=typeof t=="string"?{clientKey:t,initialUserToken:void 0}:t;(0,N.GG)(this,T_,typeof i=="boolean"?{logging:i,tracing:i,rum:i}:Object.assign({logging:!0,tracing:!0,rum:!0},i),"f"),(0,N.GG)(this,Ra,(0,iN.default)({telemetry:(0,N.gn)(this,T_,"f")}),"f");try{yield(0,N.gn)(this,Ed,"m",Qj).call(this,r),n&&(yield this.setUserToken(n))}catch(o){throw(0,N.gn)(this,tu,"f").emit("error"),(0,N.gn)(this,Ra,"f").error(o,"initialization error"),o instanceof Jo.b&&o?.emitToNativeComponent()&&q0.b.events.emit("error",o.toJSON()),o}})}setUserToken(t){var r,n,i;return(0,N.sH)(this,void 0,void 0,function*(){if(!(!((r=(0,N.gn)(this,gi,"f"))===null||r===void 0)&&r.services))throw new Jo.b('"setUserToken" method called before bwell initialized.',{errorCode:Bs.ErrorCode.METHOD_CALLED_BEFORE_INITIALIZATION});const o=(0,N.gn)(this,gi,"f").services[zt.apiClient.id],u=(0,N.gn)(this,gi,"f").services[zt.auth.id],l=(0,N.gn)(this,gi,"f").services[zt.state.id],{key:g}=l.getClientContext();try{(0,N.gn)(this,Sd,"f")&&(0,N.gn)(this,Sd,"f")!==t&&(o.clearAuth(),yield o.clearStore(),l.logoutUser());const d=yield u.getTokenData(t,g),{userPayload:v}=d,T=(0,N.Tt)(d,["userPayload"]);(0,N.GG)(this,Sd,t,"f");const fe=yield(0,N.gn)(this,gi,"f").services[zt.bwellSdk.id].authenticate({token:t});if(fe.success())(n=(0,N.gn)(this,Ra,"f"))===null||n===void 0||n.info({},"Succesfully authenticated in BWellSDK");else throw(i=(0,N.gn)(this,Ra,"f"))===null||i===void 0||i.error(fe.error(),"BWellSDK Authenication Failure"),fe.error();const{accessToken:{jwtToken:he},idToken:{jwtToken:ye},refreshToken:{token:xe}}=T,{apiMap:Ie,key:Ne}=l.getClientContext();o.enableAuth({tokens:{accessToken:he,idToken:ye},onRefresh:()=>(0,N.sH)(this,void 0,void 0,function*(){var at;let _t;const $t=new mO.Auth(new te.ApiClient(Ie));try{_t=yield $t.refreshTokens(xe,Ne)}catch(nr){(at=(0,N.gn)(this,Ra,"f"))===null||at===void 0||at.error(nr,"Error refreshing user token. Attempting fresh token exchange.");const{accessToken:{jwtToken:jr},idToken:{jwtToken:vn},refreshToken:{token:wi}}=yield $t.getTokenData(t,g);_t={accessToken:jr,idToken:vn,refreshToken:wi}}return l.updateTokens(_t),_t})}),l.setUser(Object.assign(Object.assign({},v),{tokenData:T})),q0.b.events.emit("onauthsuccess",{user:{id:this.getUserId()}})}catch(d){throw new Jo.b("There was an error during the token exchange process.",{errorCode:Bs.ErrorCode.TOKEN_EXCHANGE,cause:d})}})}getUser(){return(0,N.gn)(this,Ed,"m",PE).call(this,"getUser")}getToken(){const{idToken:{jwtToken:t},refreshToken:{token:r},accessToken:{jwtToken:n}}=(0,N.gn)(this,Ed,"m",PE).call(this,"getUserTokenData");return{idToken:t,refreshToken:r,accessToken:n}}getUserId(){const{idToken:{payload:{"custom:clientFhirPatientId":t}}}=(0,N.gn)(this,Ed,"m",PE).call(this,"getUserTokenData");return t}on(t,r){(0,N.gn)(this,tu,"f").on(t,r)}once(t,r){(0,N.gn)(this,tu,"f").once(t,r)}off(t,r){(0,N.gn)(this,tu,"f").off(t,r)}_registerEmbeddableContent(t){(0,N.GG)(this,hl,t,"f")}focusEmbeddableContent(){return(0,N.sH)(this,void 0,void 0,function*(){return new Promise((t,r)=>{if((0,N.gn)(this,hl,"f"))(0,N.gn)(this,hl,"f").focus(),t();else{let n=0;const i=setInterval(()=>{n+=1,(0,N.gn)(this,hl,"f")?(clearInterval(i),(0,N.gn)(this,hl,"f").focus(),t()):n===$he/500&&(clearInterval(i),r(new Error("Embeddable content not found.")))},500)}})})}}Sd=new WeakMap,dR=new WeakMap,tu=new WeakMap,Ra=new WeakMap,gi=new WeakMap,S_=new WeakMap,hl=new WeakMap,T_=new WeakMap,Ed=new WeakSet,Qj=function(t){var r,n,i,o,u;return(0,N.sH)(this,void 0,void 0,function*(){const l=Uhe(t),{identityGateway:g}=hX(new te.ApiClient(l));let d;try{const xe=(yield g.getClientRecord({context:{headers:{ClientKey:t}}})).clientRecord,{clientSlug:Ie}=xe,Ne=(0,N.Tt)(xe,["clientSlug"]);d=Object.assign({key:t,slug:Ie},Ne)}catch(xe){throw new Jo.b("Invalid client key",{errorCode:Bs.ErrorCode.CLIENT_UNKNOWN,cause:xe})}const v={client:d,telemetry:(0,N.gn)(this,T_,"f")};if(this.isInitialized){if(this.isInitialized&&(0,N.gn)(this,gi,"f")){const xe=(0,N.gn)(this,gi,"f").services[zt.state.id];if(d.key!==xe.getClientContext().key)(0,N.GG)(this,Sd,void 0,"f"),(0,N.gn)(this,gi,"f").reboot(v);else return}}else{const xe={globalEventEmitter:(0,N.gn)(this,tu,"f"),initialState:v};(0,N.gn)(this,S_,"f")?(0,N.GG)(this,gi,(0,N.gn)(this,S_,"f").create(xe),"f"):(0,N.GG)(this,gi,new Dhe(xe),"f")}if((0,N.gn)(this,gi,"f")===void 0)throw(0,N.gn)(this,Ra,"f")&&(0,N.gn)(this,Ra,"f").fatal("`bwell.init` called when already initialized and no orchestrator found."),new Jo.b("Unexpected error",{errorCode:Bs.ErrorCode.UNKNOWN});const T=(0,N.gn)(this,gi,"f").services[zt.identityUtils.id],V=(0,N.gn)(this,gi,"f").services[zt.apiClient.id],fe=T.getStoredTokens(),he=(0,N.gn)(this,gi,"f").services[zt.bwellSdk.id],ye=yield he.initialize();if(ye.success())(r=(0,N.gn)(this,Ra,"f"))===null||r===void 0||r.info({},"Successfully initialized BWellSDK");else throw(n=(0,N.gn)(this,Ra,"f"))===null||n===void 0||n.error(ye.error(),"Error initializing BWellSDK"),ye.error();if(fe){const xe=(0,N.gn)(this,gi,"f").services[zt.state.id],{refreshToken:Ie,accessToken:{jwtToken:Ne},idToken:{jwtToken:at}}=fe;V.enableAuth({tokens:{accessToken:Ne,idToken:at},onRefresh:()=>(0,N.sH)(this,void 0,void 0,function*(){const $t=new mO.Auth(new te.ApiClient(l));try{const nr=yield $t.refreshTokens(Ie.token,t);return xe.updateTokens(nr),nr}catch{throw yield T.logout(),new Jo.b("Refresh token failed in credential auth strategy.",{errorCode:Bs.ErrorCode.TOKEN_EXCHANGE})}})}),(i=(0,N.gn)(this,Ra,"f"))===null||i===void 0||i.debug("Setting auth tokens for SDK");const _t=yield he.setAuthTokens({accessToken:Ne,idToken:at,refreshToken:Ie.token});if(_t.failure())throw(o=(0,N.gn)(this,Ra,"f"))===null||o===void 0||o.error(_t.error(),"BWell SDK set auth tokens error"),new Jo.b(_t.error().message,{errorCode:Bs.ErrorCode.TOKEN_EXCHANGE});(u=(0,N.gn)(this,Ra,"f"))===null||u===void 0||u.info("BWell SDK set auth tokens successful"),xe.setUser({tokenData:fe})}(0,N.gn)(this,tu,"f").emit("initialized"),this.isInitialized=!0})},PE=function(t){var r;if(!(!((r=(0,N.gn)(this,gi,"f"))===null||r===void 0)&&r.services))throw new Jo.b('"#getStateSafe" method called before bwell initialized.',{errorCode:Bs.ErrorCode.METHOD_CALLED_BEFORE_INITIALIZATION});const i=(0,N.gn)(this,gi,"f").services[zt.state.id][t]();if(!i)throw new Jo.b("User token must be set before data can be retrieved.",{errorCode:Bs.ErrorCode.UNKNOWN});return i}},5888:(Ue,z,m)=>{"use strict";m.d(z,{L:()=>ce});const{toString:O,hasOwnProperty:h}=Object.prototype,k=Function.prototype.toString,ee=new Map;function ce(F,ie){try{return I(F,ie)}finally{ee.clear()}}var Q=null;function I(F,ie){if(F===ie)return!0;const N=O.call(F),X=O.call(ie);if(N!==X)return!1;switch(N){case"[object Array]":if(F.length!==ie.length)return!1;case"[object Object]":{if(Y(F,ie))return!0;const te=w(F),oe=w(ie),x=te.length;if(x!==oe.length)return!1;for(let S=0;S<x;++S)if(!h.call(ie,te[S]))return!1;for(let S=0;S<x;++S){const Te=te[S];if(!I(F[Te],ie[Te]))return!1}return!0}case"[object Error]":return F.name===ie.name&&F.message===ie.message;case"[object Number]":if(F!==F)return ie!==ie;case"[object Boolean]":case"[object Date]":return+F==+ie;case"[object RegExp]":case"[object String]":return F==`${ie}`;case"[object Map]":case"[object Set]":{if(F.size!==ie.size)return!1;if(Y(F,ie))return!0;const te=F.entries(),oe=N==="[object Map]";for(;;){const x=te.next();if(x.done)break;const[S,Te]=x.value;if(!ie.has(S)||oe&&!I(Te,ie.get(S)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":F=new Uint8Array(F),ie=new Uint8Array(ie);case"[object DataView]":{let te=F.byteLength;if(te===ie.byteLength)for(;te--&&F[te]===ie[te];);return te===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const te=k.call(F);return te!==k.call(ie)?!1:!q(te,P)}}return!1}function w(F){return Object.keys(F).filter(M,F)}function M(F){return this[F]!==void 0}const P="{ [native code] }";function q(F,ie){const N=F.length-ie.length;return N>=0&&F.indexOf(ie,N)===N}function Y(F,ie){let N=ee.get(F);if(N){if(N.has(ie))return!0}else ee.set(F,N=new Set);return N.add(ie),!1}},3217:(Ue,z,m)=>{"use strict";m.d(z,{U:()=>O});function O(h,k){if(!Boolean(h))throw new Error(k)}},5198:(Ue,z,m)=>{"use strict";m.d(z,{N:()=>k});const O=10,h=2;function k(P){return ee(P,[])}function ee(P,q){switch(typeof P){case"string":return JSON.stringify(P);case"function":return P.name?`[function ${P.name}]`:"[function]";case"object":return ce(P,q);default:return String(P)}}function ce(P,q){if(P===null)return"null";if(q.includes(P))return"[Circular]";const Y=[...q,P];if(Q(P)){const F=P.toJSON();if(F!==P)return typeof F=="string"?F:ee(F,Y)}else if(Array.isArray(P))return w(P,Y);return I(P,Y)}function Q(P){return typeof P.toJSON=="function"}function I(P,q){const Y=Object.entries(P);if(Y.length===0)return"{}";if(q.length>h)return"["+M(P)+"]";const F=Y.map(([ie,N])=>ie+": "+ee(N,q));return"{ "+F.join(", ")+" }"}function w(P,q){if(P.length===0)return"[]";if(q.length>h)return"[Array]";const Y=Math.min(O,P.length),F=P.length-Y,ie=[];for(let N=0;N<Y;++N)ie.push(ee(P[N],q));return F===1?ie.push("... 1 more item"):F>1&&ie.push(`... ${F} more items`),"["+ie.join(", ")+"]"}function M(P){const q=Object.prototype.toString.call(P).replace(/^\[object /,"").replace(/]$/,"");if(q==="Object"&&typeof P.constructor=="function"){const Y=P.constructor.name;if(typeof Y=="string"&&Y!=="")return Y}return q}},9762:(Ue,z,m)=>{"use strict";m.d(z,{Ll:()=>ce,aD:()=>k,aZ:()=>O,cE:()=>Q,ou:()=>h});class O{constructor(w,M,P){this.start=w.start,this.end=M.end,this.startToken=w,this.endToken=M,this.source=P}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class h{constructor(w,M,P,q,Y,F){this.kind=w,this.start=M,this.end=P,this.line=q,this.column=Y,this.value=F,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const k={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},ee=new Set(Object.keys(k));function ce(I){const w=I?.kind;return typeof w=="string"&&ee.has(w)}var Q;(function(I){I.QUERY="query",I.MUTATION="mutation",I.SUBSCRIPTION="subscription"})(Q||(Q={}))},7714:(Ue,z,m)=>{"use strict";m.d(z,{OC:()=>h,yo:()=>ce});var O=m(5881);function h(Q){var I;let w=Number.MAX_SAFE_INTEGER,M=null,P=-1;for(let Y=0;Y<Q.length;++Y){var q;const F=Q[Y],ie=k(F);ie!==F.length&&(M=(q=M)!==null&&q!==void 0?q:Y,P=Y,Y!==0&&ie<w&&(w=ie))}return Q.map((Y,F)=>F===0?Y:Y.slice(w)).slice((I=M)!==null&&I!==void 0?I:0,P+1)}function k(Q){let I=0;for(;I<Q.length&&(0,O.i0)(Q.charCodeAt(I));)++I;return I}function ee(Q){if(Q==="")return!0;let I=!0,w=!1,M=!0,P=!1;for(let q=0;q<Q.length;++q)switch(Q.codePointAt(q)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:return!1;case 13:return!1;case 10:if(I&&!P)return!1;P=!0,I=!0,w=!1;break;case 9:case 32:w||(w=I);break;default:M&&(M=w),I=!1}return!(I||M&&P)}function ce(Q,I){const w=Q.replace(/"""/g,'\\"""'),M=w.split(/\r\n|[\n\r]/g),P=M.length===1,q=M.length>1&&M.slice(1).every(x=>x.length===0||(0,O.i0)(x.charCodeAt(0))),Y=w.endsWith('\\"""'),F=Q.endsWith('"')&&!Y,ie=Q.endsWith("\\"),N=F||ie,X=!(I!=null&&I.minimize)&&(!P||Q.length>70||N||q||Y);let te="";const oe=P&&(0,O.i0)(Q.charCodeAt(0));return(X&&!oe||q)&&(te+=`
|
|
7379
|
+
`}catch(o){return r.error(o),vd` <slot name="error"></slot> `}}}m_([ao({type:String})],n.prototype,"featureAppId",void 0),m_([ao({type:String})],n.prototype,"featureAppName",void 0),m_([ao({type:String})],n.prototype,"baseUrl",void 0),m_([ao({type:String})],n.prototype,"src",void 0),m_([ao({type:Object})],n.prototype,"config",void 0),customElements.define(Hj,n)}async function whe(){await m.I("default");const e=window.__feature_hub_feature_app_module_container__;if(!e)throw new Error('The name in the ModuleFederationPlugin must be "__feature_hub_feature_app_module_container__".');return window.__feature_hub_feature_app_module_container__=void 0,await e.init(m.S.default),(await e.get("featureAppModule"))()}async function Nhe(e){return new Promise((t,r)=>{const n=document.createElement("script");n.src=e,n.type="text/javascript",n.async=!0,n.onload=()=>{whe().then(t).catch(r),document.head.removeChild(n)},n.onerror=()=>{r(new Error("Could not load federated module.")),document.head.removeChild(n)},document.head.appendChild(n)})}var Mhe=m(9742),yd,md;class Lhe{constructor(){yd.set(this,void 0),md.set(this,void 0)}onReboot(t){return(0,N.GG)(this,yd,t,"f"),()=>{(0,N.GG)(this,yd,void 0,"f")}}reboot(t,r){const{featureServices:n}=mj((0,Mhe.Ak)(),{featureServiceDefinitions:t,featureServiceDependencies:r});return(0,N.GG)(this,md,n,"f"),(0,N.gn)(this,yd,"f")&&(0,N.gn)(this,yd,"f").call(this,(0,N.gn)(this,md,"f")),(0,N.gn)(this,md,"f")}getRebootedServices(){return(0,N.gn)(this,md,"f")}}yd=new WeakMap,md=new WeakMap;var OE,AE,CE,E_,fR;class Dhe{constructor({initialState:t={},logger:r,globalEventEmitter:n}){OE.add(this),AE.set(this,void 0),CE.set(this,{[zt.apiClient.id]:zt.apiClient.version.one,[zt.bwellSdk.id]:zt.bwellSdk.version.one,[zt.theme.id]:zt.theme.version.one,[zt.analytics.id]:zt.theme.version.one,[zt.auth.id]:zt.auth.version.one,[zt.logging.id]:zt.logging.version.one,[zt.state.id]:zt.state.version.one,[zt.navigation.id]:zt.navigation.version.one,[zt.translation.id]:zt.translation.version.one,[zt.featureFlags.id]:zt.featureFlags.version.one,[zt.identityUtils.id]:zt.apiClient.version.one,[zt.nativeBridge.id]:zt.nativeBridge.version.one,[zt.globalEventEmitter.id]:zt.globalEventEmitter.version.one,[zt.rebootController.id]:zt.rebootController.version.one}),E_.set(this,void 0),(0,N.GG)(this,AE,n,"f"),(0,N.GG)(this,E_,new Lhe,"f");const{featureAppManager:i,featureServices:o}=mj("orchestrator:integrator",{featureServiceDependencies:(0,N.gn)(this,CE,"f"),featureServiceDefinitions:(0,N.gn)(this,OE,"m",fR).call(this,t),moduleLoader:Nhe,logger:r});this.services=o,Ihe(i)}reboot(t){this.services=(0,N.gn)(this,E_,"f").reboot((0,N.gn)(this,OE,"m",fR).call(this,t),(0,N.gn)(this,CE,"f"))}}AE=new WeakMap,CE=new WeakMap,E_=new WeakMap,OE=new WeakSet,fR=function(t){return[zt.apiClient.definition,zt.bwellSdk.definition,zt.theme.definition,zt.analytics.definition,zt.auth.definition,zt.logging.definition,zt.state.define(t),zt.navigation.definition,zt.translation.definition,zt.featureFlags.definition,zt.identityUtils.definition,zt.nativeBridge.definition,zt.globalEventEmitter.define((0,N.gn)(this,AE,"f")),zt.rebootController.define((0,N.gn)(this,E_,"f"))]};function xhe(e){try{return JSON.parse(atob(e))}catch{}}function Uhe(e){var t,r,n;const i=xhe(e);if(!i?.env)return X.C;const o={rest:{endpoints:{}}};for(const u in(t=X.C===null||X.C===void 0?void 0:X.C.rest)===null||t===void 0?void 0:t.endpoints){const l=(r=X.C===null||X.C===void 0?void 0:X.C.rest)===null||r===void 0?void 0:r.endpoints[u];typeof l=="string"&&((n=o?.rest)===null||n===void 0?void 0:n.endpoints)&&(o.rest.endpoints[u]=l.replace(".prod.",`.${i.env}.`))}return o}var Ed,Sd,dR,tu,Ra,gi,S_,hl,T_,Qj,PE;const $he=6e4;class Fhe{constructor(t){Ed.add(this),Sd.set(this,void 0),dR.set(this,gpe.EventBus.getInstance(X.mO).mainChannel()),tu.set(this,new p$),Ra.set(this,void 0),gi.set(this,void 0),S_.set(this,void 0),hl.set(this,void 0),T_.set(this,void 0),this.isInitialized=!1,(0,N.GG)(this,S_,t,"f"),(0,N.gn)(this,dR,"f").addListener(r=>{var{channel:n,topic:i}=r,o=r.payload,{name:u}=o,l=(0,N.Tt)(o,["name"]);(0,N.gn)(this,tu,"f").emit("embeddable",{id:n,name:u,type:i,payload:l})})}init(t){return(0,N.sH)(this,void 0,void 0,function*(){const{clientKey:r,initialUserToken:n,telemetry:i={}}=typeof t=="string"?{clientKey:t,initialUserToken:void 0}:t;(0,N.GG)(this,T_,typeof i=="boolean"?{logging:i,tracing:i,rum:i}:Object.assign({logging:!0,tracing:!0,rum:!0},i),"f"),(0,N.GG)(this,Ra,(0,iN.default)({telemetry:(0,N.gn)(this,T_,"f")}),"f");try{yield(0,N.gn)(this,Ed,"m",Qj).call(this,r),n&&(yield this.setUserToken(n))}catch(o){throw(0,N.gn)(this,tu,"f").emit("error"),(0,N.gn)(this,Ra,"f").error(o,"initialization error"),o instanceof Jo.b&&o?.emitToNativeComponent()&&q0.b.events.emit("error",o.toJSON()),o}})}setUserToken(t){var r,n,i;return(0,N.sH)(this,void 0,void 0,function*(){if(!(!((r=(0,N.gn)(this,gi,"f"))===null||r===void 0)&&r.services))throw new Jo.b('"setUserToken" method called before bwell initialized.',{errorCode:Bs.ErrorCode.METHOD_CALLED_BEFORE_INITIALIZATION});const o=(0,N.gn)(this,gi,"f").services[zt.apiClient.id],u=(0,N.gn)(this,gi,"f").services[zt.auth.id],l=(0,N.gn)(this,gi,"f").services[zt.state.id],{key:g}=l.getClientContext();try{(0,N.gn)(this,Sd,"f")&&(0,N.gn)(this,Sd,"f")!==t&&(o.clearAuth(),yield o.clearStore(),l.logoutUser());const d=yield u.getTokenData(t,g),{userPayload:v}=d,T=(0,N.Tt)(d,["userPayload"]);(0,N.GG)(this,Sd,t,"f");const fe=yield(0,N.gn)(this,gi,"f").services[zt.bwellSdk.id].setAuthTokens({accessToken:T.accessToken.jwtToken,idToken:T.idToken.jwtToken,refreshToken:T.refreshToken.token});if(fe.success())(n=(0,N.gn)(this,Ra,"f"))===null||n===void 0||n.info({},"Succesfully authenticated in BWellSDK");else throw(i=(0,N.gn)(this,Ra,"f"))===null||i===void 0||i.error(fe.error(),"BWellSDK Authenication Failure"),fe.error();const{accessToken:{jwtToken:he},idToken:{jwtToken:ye},refreshToken:{token:xe}}=T,{apiMap:Ie,key:Ne}=l.getClientContext();o.enableAuth({tokens:{accessToken:he,idToken:ye},onRefresh:()=>(0,N.sH)(this,void 0,void 0,function*(){var at;let _t;const $t=new mO.Auth(new te.ApiClient(Ie));try{_t=yield $t.refreshTokens(xe,Ne)}catch(nr){(at=(0,N.gn)(this,Ra,"f"))===null||at===void 0||at.error(nr,"Error refreshing user token. Attempting fresh token exchange.");const{accessToken:{jwtToken:jr},idToken:{jwtToken:vn},refreshToken:{token:wi}}=yield $t.getTokenData(t,g);_t={accessToken:jr,idToken:vn,refreshToken:wi}}return l.updateTokens(_t),_t})}),l.setUser(Object.assign(Object.assign({},v),{tokenData:T})),q0.b.events.emit("onauthsuccess",{user:{id:this.getUserId()}})}catch(d){throw new Jo.b("There was an error during the token exchange process.",{errorCode:Bs.ErrorCode.TOKEN_EXCHANGE,cause:d})}})}getUser(){return(0,N.gn)(this,Ed,"m",PE).call(this,"getUser")}getToken(){const{idToken:{jwtToken:t},refreshToken:{token:r},accessToken:{jwtToken:n}}=(0,N.gn)(this,Ed,"m",PE).call(this,"getUserTokenData");return{idToken:t,refreshToken:r,accessToken:n}}getUserId(){const{idToken:{payload:{"custom:clientFhirPatientId":t}}}=(0,N.gn)(this,Ed,"m",PE).call(this,"getUserTokenData");return t}on(t,r){(0,N.gn)(this,tu,"f").on(t,r)}once(t,r){(0,N.gn)(this,tu,"f").once(t,r)}off(t,r){(0,N.gn)(this,tu,"f").off(t,r)}_registerEmbeddableContent(t){(0,N.GG)(this,hl,t,"f")}focusEmbeddableContent(){return(0,N.sH)(this,void 0,void 0,function*(){return new Promise((t,r)=>{if((0,N.gn)(this,hl,"f"))(0,N.gn)(this,hl,"f").focus(),t();else{let n=0;const i=setInterval(()=>{n+=1,(0,N.gn)(this,hl,"f")?(clearInterval(i),(0,N.gn)(this,hl,"f").focus(),t()):n===$he/500&&(clearInterval(i),r(new Error("Embeddable content not found.")))},500)}})})}}Sd=new WeakMap,dR=new WeakMap,tu=new WeakMap,Ra=new WeakMap,gi=new WeakMap,S_=new WeakMap,hl=new WeakMap,T_=new WeakMap,Ed=new WeakSet,Qj=function(t){var r,n,i,o,u;return(0,N.sH)(this,void 0,void 0,function*(){const l=Uhe(t),{identityGateway:g}=hX(new te.ApiClient(l));let d;try{const xe=(yield g.getClientRecord({context:{headers:{ClientKey:t}}})).clientRecord,{clientSlug:Ie}=xe,Ne=(0,N.Tt)(xe,["clientSlug"]);d=Object.assign({key:t,slug:Ie},Ne)}catch(xe){throw new Jo.b("Invalid client key",{errorCode:Bs.ErrorCode.CLIENT_UNKNOWN,cause:xe})}const v={client:d,telemetry:(0,N.gn)(this,T_,"f")};if(this.isInitialized){if(this.isInitialized&&(0,N.gn)(this,gi,"f")){const xe=(0,N.gn)(this,gi,"f").services[zt.state.id];if(d.key!==xe.getClientContext().key)(0,N.GG)(this,Sd,void 0,"f"),(0,N.gn)(this,gi,"f").reboot(v);else return}}else{const xe={globalEventEmitter:(0,N.gn)(this,tu,"f"),initialState:v};(0,N.gn)(this,S_,"f")?(0,N.GG)(this,gi,(0,N.gn)(this,S_,"f").create(xe),"f"):(0,N.GG)(this,gi,new Dhe(xe),"f")}if((0,N.gn)(this,gi,"f")===void 0)throw(0,N.gn)(this,Ra,"f")&&(0,N.gn)(this,Ra,"f").fatal("`bwell.init` called when already initialized and no orchestrator found."),new Jo.b("Unexpected error",{errorCode:Bs.ErrorCode.UNKNOWN});const T=(0,N.gn)(this,gi,"f").services[zt.identityUtils.id],V=(0,N.gn)(this,gi,"f").services[zt.apiClient.id],fe=T.getStoredTokens(),he=(0,N.gn)(this,gi,"f").services[zt.bwellSdk.id],ye=yield he.initialize();if(ye.success())(r=(0,N.gn)(this,Ra,"f"))===null||r===void 0||r.info({},"Successfully initialized BWellSDK");else throw(n=(0,N.gn)(this,Ra,"f"))===null||n===void 0||n.error(ye.error(),"Error initializing BWellSDK"),ye.error();if(fe){const xe=(0,N.gn)(this,gi,"f").services[zt.state.id],{refreshToken:Ie,accessToken:{jwtToken:Ne},idToken:{jwtToken:at}}=fe;V.enableAuth({tokens:{accessToken:Ne,idToken:at},onRefresh:()=>(0,N.sH)(this,void 0,void 0,function*(){const $t=new mO.Auth(new te.ApiClient(l));try{const nr=yield $t.refreshTokens(Ie.token,t);return xe.updateTokens(nr),nr}catch{throw yield T.logout(),new Jo.b("Refresh token failed in credential auth strategy.",{errorCode:Bs.ErrorCode.TOKEN_EXCHANGE})}})}),(i=(0,N.gn)(this,Ra,"f"))===null||i===void 0||i.debug("Setting auth tokens for SDK");const _t=yield he.setAuthTokens({accessToken:Ne,idToken:at,refreshToken:Ie.token});if(_t.failure())throw(o=(0,N.gn)(this,Ra,"f"))===null||o===void 0||o.error(_t.error(),"BWell SDK set auth tokens error"),new Jo.b(_t.error().message,{errorCode:Bs.ErrorCode.TOKEN_EXCHANGE});(u=(0,N.gn)(this,Ra,"f"))===null||u===void 0||u.info("BWell SDK set auth tokens successful"),xe.setUser({tokenData:fe})}(0,N.gn)(this,tu,"f").emit("initialized"),this.isInitialized=!0})},PE=function(t){var r;if(!(!((r=(0,N.gn)(this,gi,"f"))===null||r===void 0)&&r.services))throw new Jo.b('"#getStateSafe" method called before bwell initialized.',{errorCode:Bs.ErrorCode.METHOD_CALLED_BEFORE_INITIALIZATION});const i=(0,N.gn)(this,gi,"f").services[zt.state.id][t]();if(!i)throw new Jo.b("User token must be set before data can be retrieved.",{errorCode:Bs.ErrorCode.UNKNOWN});return i}},5888:(Ue,z,m)=>{"use strict";m.d(z,{L:()=>ce});const{toString:O,hasOwnProperty:h}=Object.prototype,k=Function.prototype.toString,ee=new Map;function ce(F,ie){try{return I(F,ie)}finally{ee.clear()}}var Q=null;function I(F,ie){if(F===ie)return!0;const N=O.call(F),X=O.call(ie);if(N!==X)return!1;switch(N){case"[object Array]":if(F.length!==ie.length)return!1;case"[object Object]":{if(Y(F,ie))return!0;const te=w(F),oe=w(ie),x=te.length;if(x!==oe.length)return!1;for(let S=0;S<x;++S)if(!h.call(ie,te[S]))return!1;for(let S=0;S<x;++S){const Te=te[S];if(!I(F[Te],ie[Te]))return!1}return!0}case"[object Error]":return F.name===ie.name&&F.message===ie.message;case"[object Number]":if(F!==F)return ie!==ie;case"[object Boolean]":case"[object Date]":return+F==+ie;case"[object RegExp]":case"[object String]":return F==`${ie}`;case"[object Map]":case"[object Set]":{if(F.size!==ie.size)return!1;if(Y(F,ie))return!0;const te=F.entries(),oe=N==="[object Map]";for(;;){const x=te.next();if(x.done)break;const[S,Te]=x.value;if(!ie.has(S)||oe&&!I(Te,ie.get(S)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":F=new Uint8Array(F),ie=new Uint8Array(ie);case"[object DataView]":{let te=F.byteLength;if(te===ie.byteLength)for(;te--&&F[te]===ie[te];);return te===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const te=k.call(F);return te!==k.call(ie)?!1:!q(te,P)}}return!1}function w(F){return Object.keys(F).filter(M,F)}function M(F){return this[F]!==void 0}const P="{ [native code] }";function q(F,ie){const N=F.length-ie.length;return N>=0&&F.indexOf(ie,N)===N}function Y(F,ie){let N=ee.get(F);if(N){if(N.has(ie))return!0}else ee.set(F,N=new Set);return N.add(ie),!1}},3217:(Ue,z,m)=>{"use strict";m.d(z,{U:()=>O});function O(h,k){if(!Boolean(h))throw new Error(k)}},5198:(Ue,z,m)=>{"use strict";m.d(z,{N:()=>k});const O=10,h=2;function k(P){return ee(P,[])}function ee(P,q){switch(typeof P){case"string":return JSON.stringify(P);case"function":return P.name?`[function ${P.name}]`:"[function]";case"object":return ce(P,q);default:return String(P)}}function ce(P,q){if(P===null)return"null";if(q.includes(P))return"[Circular]";const Y=[...q,P];if(Q(P)){const F=P.toJSON();if(F!==P)return typeof F=="string"?F:ee(F,Y)}else if(Array.isArray(P))return w(P,Y);return I(P,Y)}function Q(P){return typeof P.toJSON=="function"}function I(P,q){const Y=Object.entries(P);if(Y.length===0)return"{}";if(q.length>h)return"["+M(P)+"]";const F=Y.map(([ie,N])=>ie+": "+ee(N,q));return"{ "+F.join(", ")+" }"}function w(P,q){if(P.length===0)return"[]";if(q.length>h)return"[Array]";const Y=Math.min(O,P.length),F=P.length-Y,ie=[];for(let N=0;N<Y;++N)ie.push(ee(P[N],q));return F===1?ie.push("... 1 more item"):F>1&&ie.push(`... ${F} more items`),"["+ie.join(", ")+"]"}function M(P){const q=Object.prototype.toString.call(P).replace(/^\[object /,"").replace(/]$/,"");if(q==="Object"&&typeof P.constructor=="function"){const Y=P.constructor.name;if(typeof Y=="string"&&Y!=="")return Y}return q}},9762:(Ue,z,m)=>{"use strict";m.d(z,{Ll:()=>ce,aD:()=>k,aZ:()=>O,cE:()=>Q,ou:()=>h});class O{constructor(w,M,P){this.start=w.start,this.end=M.end,this.startToken=w,this.endToken=M,this.source=P}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class h{constructor(w,M,P,q,Y,F){this.kind=w,this.start=M,this.end=P,this.line=q,this.column=Y,this.value=F,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const k={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},ee=new Set(Object.keys(k));function ce(I){const w=I?.kind;return typeof w=="string"&&ee.has(w)}var Q;(function(I){I.QUERY="query",I.MUTATION="mutation",I.SUBSCRIPTION="subscription"})(Q||(Q={}))},7714:(Ue,z,m)=>{"use strict";m.d(z,{OC:()=>h,yo:()=>ce});var O=m(5881);function h(Q){var I;let w=Number.MAX_SAFE_INTEGER,M=null,P=-1;for(let Y=0;Y<Q.length;++Y){var q;const F=Q[Y],ie=k(F);ie!==F.length&&(M=(q=M)!==null&&q!==void 0?q:Y,P=Y,Y!==0&&ie<w&&(w=ie))}return Q.map((Y,F)=>F===0?Y:Y.slice(w)).slice((I=M)!==null&&I!==void 0?I:0,P+1)}function k(Q){let I=0;for(;I<Q.length&&(0,O.i0)(Q.charCodeAt(I));)++I;return I}function ee(Q){if(Q==="")return!0;let I=!0,w=!1,M=!0,P=!1;for(let q=0;q<Q.length;++q)switch(Q.codePointAt(q)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:return!1;case 13:return!1;case 10:if(I&&!P)return!1;P=!0,I=!0,w=!1;break;case 9:case 32:w||(w=I);break;default:M&&(M=w),I=!1}return!(I||M&&P)}function ce(Q,I){const w=Q.replace(/"""/g,'\\"""'),M=w.split(/\r\n|[\n\r]/g),P=M.length===1,q=M.length>1&&M.slice(1).every(x=>x.length===0||(0,O.i0)(x.charCodeAt(0))),Y=w.endsWith('\\"""'),F=Q.endsWith('"')&&!Y,ie=Q.endsWith("\\"),N=F||ie,X=!(I!=null&&I.minimize)&&(!P||Q.length>70||N||q||Y);let te="";const oe=P&&(0,O.i0)(Q.charCodeAt(0));return(X&&!oe||q)&&(te+=`
|
|
7380
7380
|
`),te+=w,(X||N)&&(te+=`
|
|
7381
7381
|
`),'"""'+te+'"""'}},5881:(Ue,z,m)=>{"use strict";m.d(z,{i0:()=>O,un:()=>ee,xr:()=>ce,yp:()=>h});function O(Q){return Q===9||Q===32}function h(Q){return Q>=48&&Q<=57}function k(Q){return Q>=97&&Q<=122||Q>=65&&Q<=90}function ee(Q){return k(Q)||Q===95}function ce(Q){return k(Q)||h(Q)||Q===95}},2455:(Ue,z,m)=>{"use strict";m.d(z,{b:()=>O});var O;(function(h){h.NAME="Name",h.DOCUMENT="Document",h.OPERATION_DEFINITION="OperationDefinition",h.VARIABLE_DEFINITION="VariableDefinition",h.SELECTION_SET="SelectionSet",h.FIELD="Field",h.ARGUMENT="Argument",h.FRAGMENT_SPREAD="FragmentSpread",h.INLINE_FRAGMENT="InlineFragment",h.FRAGMENT_DEFINITION="FragmentDefinition",h.VARIABLE="Variable",h.INT="IntValue",h.FLOAT="FloatValue",h.STRING="StringValue",h.BOOLEAN="BooleanValue",h.NULL="NullValue",h.ENUM="EnumValue",h.LIST="ListValue",h.OBJECT="ObjectValue",h.OBJECT_FIELD="ObjectField",h.DIRECTIVE="Directive",h.NAMED_TYPE="NamedType",h.LIST_TYPE="ListType",h.NON_NULL_TYPE="NonNullType",h.SCHEMA_DEFINITION="SchemaDefinition",h.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",h.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",h.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",h.FIELD_DEFINITION="FieldDefinition",h.INPUT_VALUE_DEFINITION="InputValueDefinition",h.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",h.UNION_TYPE_DEFINITION="UnionTypeDefinition",h.ENUM_TYPE_DEFINITION="EnumTypeDefinition",h.ENUM_VALUE_DEFINITION="EnumValueDefinition",h.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",h.DIRECTIVE_DEFINITION="DirectiveDefinition",h.SCHEMA_EXTENSION="SchemaExtension",h.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",h.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",h.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",h.UNION_TYPE_EXTENSION="UnionTypeExtension",h.ENUM_TYPE_EXTENSION="EnumTypeExtension",h.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(O||(O={}))},5157:(Ue,z,m)=>{"use strict";m.d(z,{qg:()=>Ae});function O(R){return typeof R=="object"&&R!==null}function h(R,$){if(!Boolean(R))throw new Error($??"Unexpected invariant triggered.")}const k=/\r\n|[\n\r]/g;function ee(R,$){let B=0,re=1;for(const de of R.body.matchAll(k)){if(typeof de.index=="number"||h(!1),de.index>=$)break;B=de.index+de[0].length,re+=1}return{line:re,column:$+1-B}}function ce(R){return Q(R.source,ee(R.source,R.start))}function Q(R,$){const B=R.locationOffset.column-1,re="".padStart(B)+R.body,de=$.line-1,qe=R.locationOffset.line-1,pt=$.line+qe,Je=$.line===1?B:0,ut=$.column+Je,bt=`${R.name}:${pt}:${ut}
|
|
7382
7382
|
`,yt=re.split(/\r\n|[\n\r]/g),Xt=yt[de];if(Xt.length>120){const Jt=Math.floor(ut/80),Ft=ut%80,Zt=[];for(let qt=0;qt<Xt.length;qt+=80)Zt.push(Xt.slice(qt,qt+80));return bt+I([[`${pt} |`,Zt[0]],...Zt.slice(1,Jt+1).map(qt=>["|",qt]),["|","^".padStart(Ft)],["|",Zt[Jt+1]]])}return bt+I([[`${pt-1} |`,yt[de-1]],[`${pt} |`,Xt],["|","^".padStart(ut)],[`${pt+1} |`,yt[de+1]]])}function I(R){const $=R.filter(([re,de])=>de!==void 0),B=Math.max(...$.map(([re])=>re.length));return $.map(([re,de])=>re.padStart(B)+(de?" "+de:"")).join(`
|
package/index.js
CHANGED
|
@@ -73,7 +73,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
73
73
|
<div class="wrapper">
|
|
74
74
|
<bwell-error-component />
|
|
75
75
|
</div>
|
|
76
|
-
`}}customElements.get(R)===void 0&&customElements.define(R,k);const z=[{name:"loader",defaultElement:document.createElement(E)},{name:"error",defaultElement:document.createElement(R)}],te=["error","loading"],q={error:"error",loading:"loader"},ie=({src:Z,elementNameSuffix:P})=>(0,t.sH)(void 0,void 0,void 0,function*(){var F,$,_,D,Y,ee,re,ce,fe,ue,ne,Oe,xe,ye,me;window.bwell||(window.bwell=new v);const he=`bwell-${P}`;if(customElements.get(he)!==void 0)return;class Se extends i{constructor(){super(),F.add(this),$.set(this,(0,l.Ak)()),_.set(this,void 0),D.set(this,document.createElement("feature-app-loader")),Y.set(this,new f.EventEmitter),ee.set(this,void 0),re.set(this,void 0),ce.set(this,void 0),fe.set(this,void 0),ue.set(this,void 0),ne.set(this,void 0),this.attachShadow({mode:"open"});const oe=new Q(z).attachToShadowRoot(this.shadowRoot);oe.addEventListener("visibilitychange",({visibility:de,container:Ee,name:we})=>{we==="error"&&de==="visible"&&window.bwell._registerEmbeddableContent(Ee),(0,t.gn)(this,D,"f").style.display=de==="hidden"?"unset":"hidden"}),(0,t.GG)(this,ne,{slots:oe,attributes:new U().bindTo(this),loaderEventEmitter:(0,t.gn)(this,Y,"f")},"f"),(0,t.GG)(this,ee,(0,t.gn)(this,F,"m",Oe).bind(this),"f"),(0,t.GG)(this,re,(0,t.gn)(this,F,"m",xe).bind(this),"f"),(0,t.GG)(this,ce,(0,t.gn)(this,F,"m",me).call(this,"error"),"f"),(0,t.GG)(this,fe,(0,t.gn)(this,F,"m",me).call(this,"loading"),"f")}connectedCallback(){return(0,t.sH)(this,void 0,void 0,function*(){(0,t.gn)(this,ce,"f").call(this,(0,t.gn)(this,ne,"f").attributes.get("error")),(0,t.gn)(this,fe,"f").call(this,(0,t.gn)(this,ne,"f").attributes.get("loading")),(0,t.gn)(this,ne,"f").slots.addEventListener("visibilitychange",(0,t.gn)(this,re,"f")),(0,t.gn)(this,ne,"f").attributes.addChangeListener("error",(0,t.gn)(this,ce,"f")),(0,t.gn)(this,ne,"f").attributes.addChangeListener("loading",(0,t.gn)(this,fe,"f")),(0,t.gn)(this,ne,"f").slots.showSlot("loader");try{yield window.bwell.validateLoad()}catch{(0,t.gn)(this,ne,"f").slots.showSlot("error")}(0,t.GG)(this,$,this.id||(0,t.gn)(this,$,"f"),"f"),(0,t.GG)(this,_,new c((0,t.gn)(this,$,"f")),"f"),(0,t.gn)(this,_,"f").registerDispatcher(oe=>this.dispatchEvent(oe)),window.bwell.isInitialized?(0,t.gn)(this,ee,"f").call(this):(window.bwell.once("initialized",(0,t.gn)(this,ee,"f")),window.bwell.once("error",()=>{(0,t.gn)(this,ne,"f").slots.showSlot("error")}))})}disconnectedCallback(){var oe;(0,t.gn)(this,Y,"f").emit("disconnect"),(0,t.gn)(this,ne,"f").slots.removeEventListener("visibilitychange",(0,t.gn)(this,re,"f")),(0,t.gn)(this,ne,"f").attributes.removeChangeListener("error",(0,t.gn)(this,ce,"f")),(0,t.gn)(this,ne,"f").attributes.removeChangeListener("loading",(0,t.gn)(this,fe,"f")),(oe=(0,t.gn)(this,_,"f"))===null||oe===void 0||oe.deregister(),(0,t.gn)(this,Y,"f").removeAllListeners()}}$=new WeakMap,_=new WeakMap,D=new WeakMap,Y=new WeakMap,ee=new WeakMap,re=new WeakMap,ce=new WeakMap,fe=new WeakMap,ue=new WeakMap,ne=new WeakMap,F=new WeakSet,Oe=function(){(0,t.gn)(this,D,"f").setAttribute("featureAppId",`bwell-embeddable:${he}`),(0,t.gn)(this,D,"f").setAttribute("src",Z),(0,t.gn)(this,D,"f").config={id:(0,t.gn)(this,$,"f"),name:P,elementName:he,utils:(0,t.gn)(this,ne,"f")},this.shadowRoot.appendChild((0,t.gn)(this,D,"f"))},xe=function({visibility:oe,name:de}){(0,t.gn)(this,D,"f").style.display=oe==="hidden"?"unset":"hidden"},ye=function(oe){(0,t.gn)(this,ue,"f")(),(0,t.GG)(this,ue,void 0,"f")},me=function(oe){return de=>{const Ee=te.findIndex(ve=>ve===oe);if(!te.slice(0,Ee).some(ve=>(0,t.gn)(this,ne,"f").attributes.get(ve)!==null)){if(de!==null)(0,t.gn)(this,ue,"f")&&(0,t.gn)(this,F,"m",ye).call(this,oe),(0,t.GG)(this,ue,(0,t.gn)(this,ne,"f").slots.showSlotLocked(q[oe]),"f");else if(de===null&&(0,t.gn)(this,ue,"f")){(0,t.gn)(this,F,"m",ye).call(this,oe);const ve=te.find(Te=>(0,t.gn)(this,ne,"f").attributes.get(Te)!==null);ve&&(0,t.GG)(this,ue,(0,t.gn)(this,ne,"f").slots.showSlotLocked(q[ve]),"f")}}}},customElements.define(he,Se)}),se={rE:"1.530.0"},ae="composite";var le=e(7321);ie({src:`https://embeddables.prod.icanbwell.com/${ae}/${se.rE}/scripts/embeddable.federated.js`,elementNameSuffix:ae})},992:(r,u,e)=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Broadcaster=void 0;var t=e(46),i=function(){function o(n,s){if(s===void 0&&(s=0),this.emitter=new t.EventEmitter,typeof n>"u"||n.length===0)throw new Error("Broadcaster must have a name");this._name=n,this.emitter.setMaxListeners(s)}return Object.defineProperty(o.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),o.prototype.emit=function(n){this.emitter.emit(this._name,n)},o.prototype.addListener=function(n){return this._addListener("addListener",n)},o.prototype.on=function(n){return this.addListener(n)},o.prototype.prependListener=function(n){return this._addListener("prependListener",n)},o.prototype.once=function(n){return this._addListener("once",n)},o.prototype.prependOnceListener=function(n){return this._addListener("prependOnceListener",n)},o.prototype.removeListener=function(n){this._proxyListener("removeListener",n)},o.prototype.off=function(n){this.removeListener(n)},o.prototype.removeAllListeners=function(){this.emitter.removeAllListeners(this._name)},o.prototype.getMaxListeners=function(){return this.emitter.getMaxListeners()},o.prototype.setMaxListeners=function(n){this.emitter.setMaxListeners(n)},o.prototype.getEventEmitter=function(){return this.emitter},o.prototype.listeners=function(){return this.emitter.listeners(this._name)},o.prototype.rawListeners=function(){return this.emitter.rawListeners(this._name)},o.prototype.listenerCount=function(){return this.emitter.listenerCount(this._name)},o.prototype._proxyListener=function(n,s){this.emitter[n](this._name,s)},o.prototype._createUnsubscribe=function(n){var s=this;return function(){s.emitter.removeListener(s._name,n)}},o.prototype._addListener=function(n,s){return this._proxyListener(n,s),this._createUnsubscribe(s)},o.prototype.destroy=function(){this.emitter.removeAllListeners()},o}();u.Broadcaster=i},9987:function(r,u,e){"use strict";var t=this&&this.__extends||function(){var s=function(a,c){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var m in d)Object.prototype.hasOwnProperty.call(d,m)&&(l[m]=d[m])},s(a,c)};return function(a,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");s(a,c);function l(){this.constructor=a}a.prototype=c===null?Object.create(c):(l.prototype=c.prototype,new l)}}();Object.defineProperty(u,"__esModule",{value:!0}),u.Channel=void 0;var i=e(992),o=e(1987),n=function(s){t(a,s);function a(c,l){l===void 0&&(l=0);var d=s.call(this,c,l)||this;return d.topics={},d._onTopicDestroyed=d._onTopicDestroyed.bind(d),d._onTopicEmit=d._onTopicEmit.bind(d),d}return a.prototype.emit=function(c){var l={channel:this.name,topic:"*",payload:c};s.prototype.emit.call(this,l)},a.prototype.topic=function(c){var l=this.topics[c];return typeof l>"u"&&(l=this.topics[c]=new o.Topic(c,this.name,this.getMaxListeners()),l.getEventEmitter().on("topic_destroyed",this._onTopicDestroyed),l.on(this._onTopicEmit)),l},a.prototype.hasTopic=function(c){return Boolean(this.topics[c])},a.prototype.removeTopic=function(c){var l=this.topics[c];return typeof l<"u"?(delete this.topics[c],l.destroy(),!0):!1},a.prototype.getAllTopics=function(){return Object.values(this.topics)},a.prototype._onTopicEmit=function(c){s.prototype.emit.call(this,c)},a.prototype._onTopicDestroyed=function(c){delete this.topics[c]},a.prototype.destroy=function(){for(var c in this.topics)this.removeTopic(c);this.emitter.emit("channel_destroyed",this.name),s.prototype.destroy.call(this)},a}(i.Broadcaster);u.Channel=n},5447:(r,u,e)=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.EventBus=void 0;var t=e(9987),i=function(){function o(n){this.channels={},n=typeof n>"u"?{}:n,this._maxListeners=n.maxListeners===void 0?0:n.maxListeners,this.onChannelDestroyed=this.onChannelDestroyed.bind(this),this.createMainChannel(),this.onChannelEmit=this.onChannelEmit.bind(this)}return o.prototype.createMainChannel=function(){var n=this;this.defaultChannel=new t.Channel("*",this._maxListeners),this.channels["*"]=this.defaultChannel,this.defaultChannel.getEventEmitter().on("channel_destroyed",function(){n.createMainChannel()})},o.prototype.mainChannel=function(){return this.defaultChannel},o.prototype.allChannels=function(){return this.mainChannel()},o.prototype.channel=function(n){var s=this.channels[n];return typeof s>"u"&&(s=this.channels[n]=new t.Channel(n,this._maxListeners),s.on(this.onChannelEmit),s.getEventEmitter().on("channel_destroyed",this.onChannelDestroyed)),s},o.prototype.hasChannel=function(n){return Boolean(this.channels[n])},o.prototype.removeChannel=function(n){if(n==="*")throw new Error("Can't remove default channel");var s=this.channels[n];return typeof s<"u"?(s.destroy(),!0):!1},o.prototype.onChannelEmit=function(n){var s=n.topic;if(this.defaultChannel.hasTopic(s)){var a={topic:n.topic,channel:n.channel,payload:n.payload};this.defaultChannel.topic(s).getEventEmitter().emit(s,a)}this.defaultChannel.getEventEmitter().emit(this.defaultChannel.name,n)},o.prototype.onChannelDestroyed=function(n){delete this.channels[n]},o.prototype.getAllChannels=function(){return Object.values(this.channels)},o.prototype.destroy=function(){for(var n in this.channels)this.channels[n].destroy()},o}();u.EventBus=i},4032:function(r,u,e){"use strict";var t=this&&this.__createBinding||(Object.create?function(o,n,s,a){a===void 0&&(a=s),Object.defineProperty(o,a,{enumerable:!0,get:function(){return n[s]}})}:function(o,n,s,a){a===void 0&&(a=s),o[a]=n[s]}),i=this&&this.__exportStar||function(o,n){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(n,s)&&t(n,o,s)};Object.defineProperty(u,"__esModule",{value:!0}),i(e(992),u),i(e(5447),u),i(e(9987),u),i(e(1987),u)},1987:function(r,u,e){"use strict";var t=this&&this.__extends||function(){var n=function(s,a){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,l){c.__proto__=l}||function(c,l){for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(c[d]=l[d])},n(s,a)};return function(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");n(s,a);function c(){this.constructor=s}s.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}();Object.defineProperty(u,"__esModule",{value:!0}),u.Topic=void 0;var i=e(992),o=function(n){t(s,n);function s(a,c,l){l===void 0&&(l=0);var d=n.call(this,a,l)||this;return d.channel=c,d}return s.prototype.emit=function(a){var c={channel:this.channel,topic:this.name,payload:a};n.prototype.emit.call(this,c)},s.prototype.destroy=function(){this.emitter.emit("topic_destroyed",this.name),n.prototype.destroy.call(this)},s}(i.Broadcaster);u.Topic=o},46:r=>{"use strict";var u=typeof Reflect=="object"?Reflect:null,e=u&&typeof u.apply=="function"?u.apply:function(p,g,S){return Function.prototype.apply.call(p,g,S)},t;u&&typeof u.ownKeys=="function"?t=u.ownKeys:Object.getOwnPropertySymbols?t=function(p){return Object.getOwnPropertyNames(p).concat(Object.getOwnPropertySymbols(p))}:t=function(p){return Object.getOwnPropertyNames(p)};function i(f){console&&console.warn&&console.warn(f)}var o=Number.isNaN||function(p){return p!==p};function n(){n.init.call(this)}r.exports=n,r.exports.once=B,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._eventsCount=0,n.prototype._maxListeners=void 0;var s=10;function a(f){if(typeof f!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof f)}Object.defineProperty(n,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(f){if(typeof f!="number"||f<0||o(f))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+f+".");s=f}}),n.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},n.prototype.setMaxListeners=function(p){if(typeof p!="number"||p<0||o(p))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+p+".");return this._maxListeners=p,this};function c(f){return f._maxListeners===void 0?n.defaultMaxListeners:f._maxListeners}n.prototype.getMaxListeners=function(){return c(this)},n.prototype.emit=function(p){for(var g=[],S=1;S<arguments.length;S++)g.push(arguments[S]);var A=p==="error",N=this._events;if(N!==void 0)A=A&&N.error===void 0;else if(!A)return!1;if(A){var j;if(g.length>0&&(j=g[0]),j instanceof Error)throw j;var K=new Error("Unhandled error."+(j?" ("+j.message+")":""));throw K.context=j,K}var X=N[p];if(X===void 0)return!1;if(typeof X=="function")e(X,this,g);else for(var J=X.length,Q=T(X,J),S=0;S<J;++S)e(Q[S],this,g);return!0};function l(f,p,g,S){var A,N,j;if(a(g),N=f._events,N===void 0?(N=f._events=Object.create(null),f._eventsCount=0):(N.newListener!==void 0&&(f.emit("newListener",p,g.listener?g.listener:g),N=f._events),j=N[p]),j===void 0)j=N[p]=g,++f._eventsCount;else if(typeof j=="function"?j=N[p]=S?[g,j]:[j,g]:S?j.unshift(g):j.push(g),A=c(f),A>0&&j.length>A&&!j.warned){j.warned=!0;var K=new Error("Possible EventEmitter memory leak detected. "+j.length+" "+String(p)+" listeners added. Use emitter.setMaxListeners() to increase limit");K.name="MaxListenersExceededWarning",K.emitter=f,K.type=p,K.count=j.length,i(K)}return f}n.prototype.addListener=function(p,g){return l(this,p,g,!1)},n.prototype.on=n.prototype.addListener,n.prototype.prependListener=function(p,g){return l(this,p,g,!0)};function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(f,p,g){var S={fired:!1,wrapFn:void 0,target:f,type:p,listener:g},A=d.bind(S);return A.listener=g,S.wrapFn=A,A}n.prototype.once=function(p,g){return a(g),this.on(p,m(this,p,g)),this},n.prototype.prependOnceListener=function(p,g){return a(g),this.prependListener(p,m(this,p,g)),this},n.prototype.removeListener=function(p,g){var S,A,N,j,K;if(a(g),A=this._events,A===void 0)return this;if(S=A[p],S===void 0)return this;if(S===g||S.listener===g)--this._eventsCount===0?this._events=Object.create(null):(delete A[p],A.removeListener&&this.emit("removeListener",p,S.listener||g));else if(typeof S!="function"){for(N=-1,j=S.length-1;j>=0;j--)if(S[j]===g||S[j].listener===g){K=S[j].listener,N=j;break}if(N<0)return this;N===0?S.shift():L(S,N),S.length===1&&(A[p]=S[0]),A.removeListener!==void 0&&this.emit("removeListener",p,K||g)}return this},n.prototype.off=n.prototype.removeListener,n.prototype.removeAllListeners=function(p){var g,S,A;if(S=this._events,S===void 0)return this;if(S.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):S[p]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete S[p]),this;if(arguments.length===0){var N=Object.keys(S),j;for(A=0;A<N.length;++A)j=N[A],j!=="removeListener"&&this.removeAllListeners(j);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(g=S[p],typeof g=="function")this.removeListener(p,g);else if(g!==void 0)for(A=g.length-1;A>=0;A--)this.removeListener(p,g[A]);return this};function O(f,p,g){var S=f._events;if(S===void 0)return[];var A=S[p];return A===void 0?[]:typeof A=="function"?g?[A.listener||A]:[A]:g?I(A):T(A,A.length)}n.prototype.listeners=function(p){return O(this,p,!0)},n.prototype.rawListeners=function(p){return O(this,p,!1)},n.listenerCount=function(f,p){return typeof f.listenerCount=="function"?f.listenerCount(p):x.call(f,p)},n.prototype.listenerCount=x;function x(f){var p=this._events;if(p!==void 0){var g=p[f];if(typeof g=="function")return 1;if(g!==void 0)return g.length}return 0}n.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]};function T(f,p){for(var g=new Array(p),S=0;S<p;++S)g[S]=f[S];return g}function L(f,p){for(;p+1<f.length;p++)f[p]=f[p+1];f.pop()}function I(f){for(var p=new Array(f.length),g=0;g<p.length;++g)p[g]=f[g].listener||f[g];return p}function B(f,p){return new Promise(function(g,S){function A(j){f.removeListener(p,N),S(j)}function N(){typeof f.removeListener=="function"&&f.removeListener("error",A),g([].slice.call(arguments))}U(f,p,N,{once:!0}),p!=="error"&&G(f,A,{once:!0})})}function G(f,p,g){typeof f.on=="function"&&U(f,"error",p,g)}function U(f,p,g,S){if(typeof f.on=="function")S.once?f.once(p,g):f.on(p,g);else if(typeof f.addEventListener=="function")f.addEventListener(p,function A(N){S.once&&f.removeEventListener(p,A),g(N)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof f)}},7321:(r,u,e)=>{"use strict";var t=e(3030);r.exports=t},9283:(r,u,e)=>{"use strict";e(8376),e(4293),e(8715);var t=e(2564);r.exports=t("String","replaceAll")},4977:(r,u,e)=>{"use strict";var t=e(4188),i=e(3174),o=TypeError;r.exports=function(n){if(t(n))return n;throw new o(i(n)+" is not a function")}},154:(r,u,e)=>{"use strict";var t=e(4212).charAt;r.exports=function(i,o,n){return o+(n?t(i,o).length:1)}},3770:(r,u,e)=>{"use strict";var t=e(831),i=String,o=TypeError;r.exports=function(n){if(t(n))return n;throw new o(i(n)+" is not an object")}},1458:(r,u,e)=>{"use strict";var t=e(380),i=e(675),o=e(9389),n=function(s){return function(a,c,l){var d=t(a),m=o(d);if(m===0)return!s&&-1;var O=i(l,m),x;if(s&&c!==c){for(;m>O;)if(x=d[O++],x!==x)return!0}else for(;m>O;O++)if((s||O in d)&&d[O]===c)return s||O||0;return!s&&-1}};r.exports={includes:n(!0),indexOf:n(!1)}},8689:(r,u,e)=>{"use strict";var t=e(6881),i=t({}.toString),o=t("".slice);r.exports=function(n){return o(i(n),8,-1)}},5438:(r,u,e)=>{"use strict";var t=e(9345),i=e(4188),o=e(8689),n=e(4282),s=n("toStringTag"),a=Object,c=o(function(){return arguments}())==="Arguments",l=function(d,m){try{return d[m]}catch{}};r.exports=t?o:function(d){var m,O,x;return d===void 0?"Undefined":d===null?"Null":typeof(O=l(m=a(d),s))=="string"?O:c?o(m):(x=o(m))==="Object"&&i(m.callee)?"Arguments":x}},8657:(r,u,e)=>{"use strict";var t=e(4418),i=e(3168),o=e(9304),n=e(4466);r.exports=function(s,a,c){for(var l=i(a),d=n.f,m=o.f,O=0;O<l.length;O++){var x=l[O];!t(s,x)&&!(c&&t(c,x))&&d(s,x,m(a,x))}}},8088:(r,u,e)=>{"use strict";var t=e(6893),i=e(4466),o=e(9123);r.exports=t?function(n,s,a){return i.f(n,s,o(1,a))}:function(n,s,a){return n[s]=a,n}},9123:r=>{"use strict";r.exports=function(u,e){return{enumerable:!(u&1),configurable:!(u&2),writable:!(u&4),value:e}}},7509:(r,u,e)=>{"use strict";var t=e(4188),i=e(4466),o=e(4530),n=e(4798);r.exports=function(s,a,c,l){l||(l={});var d=l.enumerable,m=l.name!==void 0?l.name:a;if(t(c)&&o(c,m,l),l.global)d?s[a]=c:n(a,c);else{try{l.unsafe?s[a]&&(d=!0):delete s[a]}catch{}d?s[a]=c:i.f(s,a,{value:c,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return s}},4798:(r,u,e)=>{"use strict";var t=e(1488),i=Object.defineProperty;r.exports=function(o,n){try{i(t,o,{value:n,configurable:!0,writable:!0})}catch{t[o]=n}return n}},6893:(r,u,e)=>{"use strict";var t=e(5234);r.exports=!t(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},5926:(r,u,e)=>{"use strict";var t=e(1488),i=e(831),o=t.document,n=i(o)&&i(o.createElement);r.exports=function(s){return n?o.createElement(s):{}}},4109:r=>{"use strict";r.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},3749:(r,u,e)=>{"use strict";var t=e(1488),i=e(4109),o=t.process,n=t.Deno,s=o&&o.versions||n&&n.version,a=s&&s.v8,c,l;a&&(c=a.split("."),l=c[0]>0&&c[0]<4?1:+(c[0]+c[1])),!l&&i&&(c=i.match(/Edge\/(\d+)/),(!c||c[1]>=74)&&(c=i.match(/Chrome\/(\d+)/),c&&(l=+c[1]))),r.exports=l},2564:(r,u,e)=>{"use strict";var t=e(1488),i=e(6881);r.exports=function(o,n){return i(t[o].prototype[n])}},1274:r=>{"use strict";r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},5613:(r,u,e)=>{"use strict";var t=e(1488),i=e(9304).f,o=e(8088),n=e(7509),s=e(4798),a=e(8657),c=e(8489);r.exports=function(l,d){var m=l.target,O=l.global,x=l.stat,T,L,I,B,G,U;if(O?L=t:x?L=t[m]||s(m,{}):L=t[m]&&t[m].prototype,L)for(I in d){if(G=d[I],l.dontCallGetSet?(U=i(L,I),B=U&&U.value):B=L[I],T=c(O?I:m+(x?".":"#")+I,l.forced),!T&&B!==void 0){if(typeof G==typeof B)continue;a(G,B)}(l.sham||B&&B.sham)&&o(G,"sham",!0),n(L,I,G,l)}}},5234:r=>{"use strict";r.exports=function(u){try{return!!u()}catch{return!0}}},467:(r,u,e)=>{"use strict";e(8376);var t=e(9944),i=e(7509),o=e(9342),n=e(5234),s=e(4282),a=e(8088),c=s("species"),l=RegExp.prototype;r.exports=function(d,m,O,x){var T=s(d),L=!n(function(){var U={};return U[T]=function(){return 7},""[d](U)!==7}),I=L&&!n(function(){var U=!1,f=/a/;return d==="split"&&(f={},f.constructor={},f.constructor[c]=function(){return f},f.flags="",f[T]=/./[T]),f.exec=function(){return U=!0,null},f[T](""),!U});if(!L||!I||O){var B=/./[T],G=m(T,""[d],function(U,f,p,g,S){var A=f.exec;return A===o||A===l.exec?L&&!S?{done:!0,value:t(B,f,p,g)}:{done:!0,value:t(U,p,f,g)}:{done:!1}});i(String.prototype,d,G[0]),i(l,T,G[1])}x&&a(l[T],"sham",!0)}},646:(r,u,e)=>{"use strict";var t=e(9055),i=Function.prototype,o=i.apply,n=i.call;r.exports=typeof Reflect=="object"&&Reflect.apply||(t?n.bind(o):function(){return n.apply(o,arguments)})},9055:(r,u,e)=>{"use strict";var t=e(5234);r.exports=!t(function(){var i=function(){}.bind();return typeof i!="function"||i.hasOwnProperty("prototype")})},9944:(r,u,e)=>{"use strict";var t=e(9055),i=Function.prototype.call;r.exports=t?i.bind(i):function(){return i.apply(i,arguments)}},2735:(r,u,e)=>{"use strict";var t=e(6893),i=e(4418),o=Function.prototype,n=t&&Object.getOwnPropertyDescriptor,s=i(o,"name"),a=s&&function(){}.name==="something",c=s&&(!t||t&&n(o,"name").configurable);r.exports={EXISTS:s,PROPER:a,CONFIGURABLE:c}},6881:(r,u,e)=>{"use strict";var t=e(9055),i=Function.prototype,o=i.call,n=t&&i.bind.bind(o,o);r.exports=t?n:function(s){return function(){return o.apply(s,arguments)}}},5604:(r,u,e)=>{"use strict";var t=e(1488),i=e(4188),o=function(n){return i(n)?n:void 0};r.exports=function(n,s){return arguments.length<2?o(t[n]):t[n]&&t[n][s]}},2913:(r,u,e)=>{"use strict";var t=e(4977),i=e(4318);r.exports=function(o,n){var s=o[n];return i(s)?void 0:t(s)}},1113:(r,u,e)=>{"use strict";var t=e(6881),i=e(3628),o=Math.floor,n=t("".charAt),s=t("".replace),a=t("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;r.exports=function(d,m,O,x,T,L){var I=O+d.length,B=x.length,G=l;return T!==void 0&&(T=i(T),G=c),s(L,G,function(U,f){var p;switch(n(f,0)){case"$":return"$";case"&":return d;case"`":return a(m,0,O);case"'":return a(m,I);case"<":p=T[a(f,1,-1)];break;default:var g=+f;if(g===0)return U;if(g>B){var S=o(g/10);return S===0?U:S<=B?x[S-1]===void 0?n(f,1):x[S-1]+n(f,1):U}p=x[g-1]}return p===void 0?"":p})}},1488:function(r,u,e){"use strict";var t=function(i){return i&&i.Math===Math&&i};r.exports=t(typeof globalThis=="object"&&globalThis)||t(typeof window=="object"&&window)||t(typeof self=="object"&&self)||t(typeof e.g=="object"&&e.g)||t(typeof this=="object"&&this)||function(){return this}()||Function("return this")()},4418:(r,u,e)=>{"use strict";var t=e(6881),i=e(3628),o=t({}.hasOwnProperty);r.exports=Object.hasOwn||function(s,a){return o(i(s),a)}},7588:r=>{"use strict";r.exports={}},7458:(r,u,e)=>{"use strict";var t=e(5604);r.exports=t("document","documentElement")},9622:(r,u,e)=>{"use strict";var t=e(6893),i=e(5234),o=e(5926);r.exports=!t&&!i(function(){return Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a!==7})},7568:(r,u,e)=>{"use strict";var t=e(6881),i=e(5234),o=e(8689),n=Object,s=t("".split);r.exports=i(function(){return!n("z").propertyIsEnumerable(0)})?function(a){return o(a)==="String"?s(a,""):n(a)}:n},3029:(r,u,e)=>{"use strict";var t=e(6881),i=e(4188),o=e(2694),n=t(Function.toString);i(o.inspectSource)||(o.inspectSource=function(s){return n(s)}),r.exports=o.inspectSource},3086:(r,u,e)=>{"use strict";var t=e(5945),i=e(1488),o=e(831),n=e(8088),s=e(4418),a=e(2694),c=e(168),l=e(7588),d="Object already initialized",m=i.TypeError,O=i.WeakMap,x,T,L,I=function(f){return L(f)?T(f):x(f,{})},B=function(f){return function(p){var g;if(!o(p)||(g=T(p)).type!==f)throw new m("Incompatible receiver, "+f+" required");return g}};if(t||a.state){var G=a.state||(a.state=new O);G.get=G.get,G.has=G.has,G.set=G.set,x=function(f,p){if(G.has(f))throw new m(d);return p.facade=f,G.set(f,p),p},T=function(f){return G.get(f)||{}},L=function(f){return G.has(f)}}else{var U=c("state");l[U]=!0,x=function(f,p){if(s(f,U))throw new m(d);return p.facade=f,n(f,U,p),p},T=function(f){return s(f,U)?f[U]:{}},L=function(f){return s(f,U)}}r.exports={set:x,get:T,has:L,enforce:I,getterFor:B}},4188:r=>{"use strict";var u=typeof document=="object"&&document.all;r.exports=typeof u>"u"&&u!==void 0?function(e){return typeof e=="function"||e===u}:function(e){return typeof e=="function"}},8489:(r,u,e)=>{"use strict";var t=e(5234),i=e(4188),o=/#|\.prototype\./,n=function(d,m){var O=a[s(d)];return O===l?!0:O===c?!1:i(m)?t(m):!!m},s=n.normalize=function(d){return String(d).replace(o,".").toLowerCase()},a=n.data={},c=n.NATIVE="N",l=n.POLYFILL="P";r.exports=n},4318:r=>{"use strict";r.exports=function(u){return u==null}},831:(r,u,e)=>{"use strict";var t=e(4188);r.exports=function(i){return typeof i=="object"?i!==null:t(i)}},1942:r=>{"use strict";r.exports=!1},473:(r,u,e)=>{"use strict";var t=e(831),i=e(8689),o=e(4282),n=o("match");r.exports=function(s){var a;return t(s)&&((a=s[n])!==void 0?!!a:i(s)==="RegExp")}},6032:(r,u,e)=>{"use strict";var t=e(5604),i=e(4188),o=e(4578),n=e(9809),s=Object;r.exports=n?function(a){return typeof a=="symbol"}:function(a){var c=t("Symbol");return i(c)&&o(c.prototype,s(a))}},9389:(r,u,e)=>{"use strict";var t=e(7611);r.exports=function(i){return t(i.length)}},4530:(r,u,e)=>{"use strict";var t=e(6881),i=e(5234),o=e(4188),n=e(4418),s=e(6893),a=e(2735).CONFIGURABLE,c=e(3029),l=e(3086),d=l.enforce,m=l.get,O=String,x=Object.defineProperty,T=t("".slice),L=t("".replace),I=t([].join),B=s&&!i(function(){return x(function(){},"length",{value:8}).length!==8}),G=String(String).split("String"),U=r.exports=function(f,p,g){T(O(p),0,7)==="Symbol("&&(p="["+L(O(p),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),g&&g.getter&&(p="get "+p),g&&g.setter&&(p="set "+p),(!n(f,"name")||a&&f.name!==p)&&(s?x(f,"name",{value:p,configurable:!0}):f.name=p),B&&g&&n(g,"arity")&&f.length!==g.arity&&x(f,"length",{value:g.arity});try{g&&n(g,"constructor")&&g.constructor?s&&x(f,"prototype",{writable:!1}):f.prototype&&(f.prototype=void 0)}catch{}var S=d(f);return n(S,"source")||(S.source=I(G,typeof p=="string"?p:"")),f};Function.prototype.toString=U(function(){return o(this)&&m(this).source||c(this)},"toString")},142:r=>{"use strict";var u=Math.ceil,e=Math.floor;r.exports=Math.trunc||function(i){var o=+i;return(o>0?e:u)(o)}},7065:(r,u,e)=>{"use strict";var t=e(3770),i=e(30),o=e(1274),n=e(7588),s=e(7458),a=e(5926),c=e(168),l=">",d="<",m="prototype",O="script",x=c("IE_PROTO"),T=function(){},L=function(f){return d+O+l+f+d+"/"+O+l},I=function(f){f.write(L("")),f.close();var p=f.parentWindow.Object;return f=null,p},B=function(){var f=a("iframe"),p="java"+O+":",g;return f.style.display="none",s.appendChild(f),f.src=String(p),g=f.contentWindow.document,g.open(),g.write(L("document.F=Object")),g.close(),g.F},G,U=function(){try{G=new ActiveXObject("htmlfile")}catch{}U=typeof document<"u"?document.domain&&G?I(G):B():I(G);for(var f=o.length;f--;)delete U[m][o[f]];return U()};n[x]=!0,r.exports=Object.create||function(p,g){var S;return p!==null?(T[m]=t(p),S=new T,T[m]=null,S[x]=p):S=U(),g===void 0?S:i.f(S,g)}},30:(r,u,e)=>{"use strict";var t=e(6893),i=e(3315),o=e(4466),n=e(3770),s=e(380),a=e(7137);u.f=t&&!i?Object.defineProperties:function(l,d){n(l);for(var m=s(d),O=a(d),x=O.length,T=0,L;x>T;)o.f(l,L=O[T++],m[L]);return l}},4466:(r,u,e)=>{"use strict";var t=e(6893),i=e(9622),o=e(3315),n=e(3770),s=e(2344),a=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",m="configurable",O="writable";u.f=t?o?function(T,L,I){if(n(T),L=s(L),n(I),typeof T=="function"&&L==="prototype"&&"value"in I&&O in I&&!I[O]){var B=l(T,L);B&&B[O]&&(T[L]=I.value,I={configurable:m in I?I[m]:B[m],enumerable:d in I?I[d]:B[d],writable:!1})}return c(T,L,I)}:c:function(T,L,I){if(n(T),L=s(L),n(I),i)try{return c(T,L,I)}catch{}if("get"in I||"set"in I)throw new a("Accessors not supported");return"value"in I&&(T[L]=I.value),T}},9304:(r,u,e)=>{"use strict";var t=e(6893),i=e(9944),o=e(4416),n=e(9123),s=e(380),a=e(2344),c=e(4418),l=e(9622),d=Object.getOwnPropertyDescriptor;u.f=t?d:function(O,x){if(O=s(O),x=a(x),l)try{return d(O,x)}catch{}if(c(O,x))return n(!i(o.f,O,x),O[x])}},5629:(r,u,e)=>{"use strict";var t=e(1843),i=e(1274),o=i.concat("length","prototype");u.f=Object.getOwnPropertyNames||function(s){return t(s,o)}},156:(r,u)=>{"use strict";u.f=Object.getOwnPropertySymbols},4578:(r,u,e)=>{"use strict";var t=e(6881);r.exports=t({}.isPrototypeOf)},1843:(r,u,e)=>{"use strict";var t=e(6881),i=e(4418),o=e(380),n=e(1458).indexOf,s=e(7588),a=t([].push);r.exports=function(c,l){var d=o(c),m=0,O=[],x;for(x in d)!i(s,x)&&i(d,x)&&a(O,x);for(;l.length>m;)i(d,x=l[m++])&&(~n(O,x)||a(O,x));return O}},7137:(r,u,e)=>{"use strict";var t=e(1843),i=e(1274);r.exports=Object.keys||function(n){return t(n,i)}},4416:(r,u)=>{"use strict";var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,i=t&&!e.call({1:2},1);u.f=i?function(n){var s=t(this,n);return!!s&&s.enumerable}:e},2287:(r,u,e)=>{"use strict";var t=e(9944),i=e(4188),o=e(831),n=TypeError;r.exports=function(s,a){var c,l;if(a==="string"&&i(c=s.toString)&&!o(l=t(c,s))||i(c=s.valueOf)&&!o(l=t(c,s))||a!=="string"&&i(c=s.toString)&&!o(l=t(c,s)))return l;throw new n("Can't convert object to primitive value")}},3168:(r,u,e)=>{"use strict";var t=e(5604),i=e(6881),o=e(5629),n=e(156),s=e(3770),a=i([].concat);r.exports=t("Reflect","ownKeys")||function(l){var d=o.f(s(l)),m=n.f;return m?a(d,m(l)):d}},4721:(r,u,e)=>{"use strict";var t=e(9944),i=e(3770),o=e(4188),n=e(8689),s=e(9342),a=TypeError;r.exports=function(c,l){var d=c.exec;if(o(d)){var m=t(d,c,l);return m!==null&&i(m),m}if(n(c)==="RegExp")return t(s,c,l);throw new a("RegExp#exec called on incompatible receiver")}},9342:(r,u,e)=>{"use strict";var t=e(9944),i=e(6881),o=e(2618),n=e(4932),s=e(5976),a=e(746),c=e(7065),l=e(3086).get,d=e(6676),m=e(4609),O=a("native-string-replace",String.prototype.replace),x=RegExp.prototype.exec,T=x,L=i("".charAt),I=i("".indexOf),B=i("".replace),G=i("".slice),U=function(){var S=/a/,A=/b*/g;return t(x,S,"a"),t(x,A,"a"),S.lastIndex!==0||A.lastIndex!==0}(),f=s.BROKEN_CARET,p=/()??/.exec("")[1]!==void 0,g=U||p||f||d||m;g&&(T=function(A){var N=this,j=l(N),K=o(A),X=j.raw,J,Q,H,W,V,b,y;if(X)return X.lastIndex=N.lastIndex,J=t(T,X,K),N.lastIndex=X.lastIndex,J;var h=j.groups,w=f&&N.sticky,v=t(n,N),E=N.source,C=0,R=K;if(w&&(v=B(v,"y",""),I(v,"g")===-1&&(v+="g"),R=G(K,N.lastIndex),N.lastIndex>0&&(!N.multiline||N.multiline&&L(K,N.lastIndex-1)!==`
|
|
76
|
+
`}}customElements.get(R)===void 0&&customElements.define(R,k);const z=[{name:"loader",defaultElement:document.createElement(E)},{name:"error",defaultElement:document.createElement(R)}],te=["error","loading"],q={error:"error",loading:"loader"},ie=({src:Z,elementNameSuffix:P})=>(0,t.sH)(void 0,void 0,void 0,function*(){var F,$,_,D,Y,ee,re,ce,fe,ue,ne,Oe,xe,ye,me;window.bwell||(window.bwell=new v);const he=`bwell-${P}`;if(customElements.get(he)!==void 0)return;class Se extends i{constructor(){super(),F.add(this),$.set(this,(0,l.Ak)()),_.set(this,void 0),D.set(this,document.createElement("feature-app-loader")),Y.set(this,new f.EventEmitter),ee.set(this,void 0),re.set(this,void 0),ce.set(this,void 0),fe.set(this,void 0),ue.set(this,void 0),ne.set(this,void 0),this.attachShadow({mode:"open"});const oe=new Q(z).attachToShadowRoot(this.shadowRoot);oe.addEventListener("visibilitychange",({visibility:de,container:Ee,name:we})=>{we==="error"&&de==="visible"&&window.bwell._registerEmbeddableContent(Ee),(0,t.gn)(this,D,"f").style.display=de==="hidden"?"unset":"hidden"}),(0,t.GG)(this,ne,{slots:oe,attributes:new U().bindTo(this),loaderEventEmitter:(0,t.gn)(this,Y,"f")},"f"),(0,t.GG)(this,ee,(0,t.gn)(this,F,"m",Oe).bind(this),"f"),(0,t.GG)(this,re,(0,t.gn)(this,F,"m",xe).bind(this),"f"),(0,t.GG)(this,ce,(0,t.gn)(this,F,"m",me).call(this,"error"),"f"),(0,t.GG)(this,fe,(0,t.gn)(this,F,"m",me).call(this,"loading"),"f")}connectedCallback(){return(0,t.sH)(this,void 0,void 0,function*(){(0,t.gn)(this,ce,"f").call(this,(0,t.gn)(this,ne,"f").attributes.get("error")),(0,t.gn)(this,fe,"f").call(this,(0,t.gn)(this,ne,"f").attributes.get("loading")),(0,t.gn)(this,ne,"f").slots.addEventListener("visibilitychange",(0,t.gn)(this,re,"f")),(0,t.gn)(this,ne,"f").attributes.addChangeListener("error",(0,t.gn)(this,ce,"f")),(0,t.gn)(this,ne,"f").attributes.addChangeListener("loading",(0,t.gn)(this,fe,"f")),(0,t.gn)(this,ne,"f").slots.showSlot("loader");try{yield window.bwell.validateLoad()}catch{(0,t.gn)(this,ne,"f").slots.showSlot("error")}(0,t.GG)(this,$,this.id||(0,t.gn)(this,$,"f"),"f"),(0,t.GG)(this,_,new c((0,t.gn)(this,$,"f")),"f"),(0,t.gn)(this,_,"f").registerDispatcher(oe=>this.dispatchEvent(oe)),window.bwell.isInitialized?(0,t.gn)(this,ee,"f").call(this):(window.bwell.once("initialized",(0,t.gn)(this,ee,"f")),window.bwell.once("error",()=>{(0,t.gn)(this,ne,"f").slots.showSlot("error")}))})}disconnectedCallback(){var oe;(0,t.gn)(this,Y,"f").emit("disconnect"),(0,t.gn)(this,ne,"f").slots.removeEventListener("visibilitychange",(0,t.gn)(this,re,"f")),(0,t.gn)(this,ne,"f").attributes.removeChangeListener("error",(0,t.gn)(this,ce,"f")),(0,t.gn)(this,ne,"f").attributes.removeChangeListener("loading",(0,t.gn)(this,fe,"f")),(oe=(0,t.gn)(this,_,"f"))===null||oe===void 0||oe.deregister(),(0,t.gn)(this,Y,"f").removeAllListeners()}}$=new WeakMap,_=new WeakMap,D=new WeakMap,Y=new WeakMap,ee=new WeakMap,re=new WeakMap,ce=new WeakMap,fe=new WeakMap,ue=new WeakMap,ne=new WeakMap,F=new WeakSet,Oe=function(){(0,t.gn)(this,D,"f").setAttribute("featureAppId",`bwell-embeddable:${he}`),(0,t.gn)(this,D,"f").setAttribute("src",Z),(0,t.gn)(this,D,"f").config={id:(0,t.gn)(this,$,"f"),name:P,elementName:he,utils:(0,t.gn)(this,ne,"f")},this.shadowRoot.appendChild((0,t.gn)(this,D,"f"))},xe=function({visibility:oe,name:de}){(0,t.gn)(this,D,"f").style.display=oe==="hidden"?"unset":"hidden"},ye=function(oe){(0,t.gn)(this,ue,"f")(),(0,t.GG)(this,ue,void 0,"f")},me=function(oe){return de=>{const Ee=te.findIndex(ve=>ve===oe);if(!te.slice(0,Ee).some(ve=>(0,t.gn)(this,ne,"f").attributes.get(ve)!==null)){if(de!==null)(0,t.gn)(this,ue,"f")&&(0,t.gn)(this,F,"m",ye).call(this,oe),(0,t.GG)(this,ue,(0,t.gn)(this,ne,"f").slots.showSlotLocked(q[oe]),"f");else if(de===null&&(0,t.gn)(this,ue,"f")){(0,t.gn)(this,F,"m",ye).call(this,oe);const ve=te.find(Te=>(0,t.gn)(this,ne,"f").attributes.get(Te)!==null);ve&&(0,t.GG)(this,ue,(0,t.gn)(this,ne,"f").slots.showSlotLocked(q[ve]),"f")}}}},customElements.define(he,Se)}),se={rE:"1.531.0"},ae="composite";var le=e(7321);ie({src:`https://embeddables.prod.icanbwell.com/${ae}/${se.rE}/scripts/embeddable.federated.js`,elementNameSuffix:ae})},992:(r,u,e)=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Broadcaster=void 0;var t=e(46),i=function(){function o(n,s){if(s===void 0&&(s=0),this.emitter=new t.EventEmitter,typeof n>"u"||n.length===0)throw new Error("Broadcaster must have a name");this._name=n,this.emitter.setMaxListeners(s)}return Object.defineProperty(o.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),o.prototype.emit=function(n){this.emitter.emit(this._name,n)},o.prototype.addListener=function(n){return this._addListener("addListener",n)},o.prototype.on=function(n){return this.addListener(n)},o.prototype.prependListener=function(n){return this._addListener("prependListener",n)},o.prototype.once=function(n){return this._addListener("once",n)},o.prototype.prependOnceListener=function(n){return this._addListener("prependOnceListener",n)},o.prototype.removeListener=function(n){this._proxyListener("removeListener",n)},o.prototype.off=function(n){this.removeListener(n)},o.prototype.removeAllListeners=function(){this.emitter.removeAllListeners(this._name)},o.prototype.getMaxListeners=function(){return this.emitter.getMaxListeners()},o.prototype.setMaxListeners=function(n){this.emitter.setMaxListeners(n)},o.prototype.getEventEmitter=function(){return this.emitter},o.prototype.listeners=function(){return this.emitter.listeners(this._name)},o.prototype.rawListeners=function(){return this.emitter.rawListeners(this._name)},o.prototype.listenerCount=function(){return this.emitter.listenerCount(this._name)},o.prototype._proxyListener=function(n,s){this.emitter[n](this._name,s)},o.prototype._createUnsubscribe=function(n){var s=this;return function(){s.emitter.removeListener(s._name,n)}},o.prototype._addListener=function(n,s){return this._proxyListener(n,s),this._createUnsubscribe(s)},o.prototype.destroy=function(){this.emitter.removeAllListeners()},o}();u.Broadcaster=i},9987:function(r,u,e){"use strict";var t=this&&this.__extends||function(){var s=function(a,c){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var m in d)Object.prototype.hasOwnProperty.call(d,m)&&(l[m]=d[m])},s(a,c)};return function(a,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");s(a,c);function l(){this.constructor=a}a.prototype=c===null?Object.create(c):(l.prototype=c.prototype,new l)}}();Object.defineProperty(u,"__esModule",{value:!0}),u.Channel=void 0;var i=e(992),o=e(1987),n=function(s){t(a,s);function a(c,l){l===void 0&&(l=0);var d=s.call(this,c,l)||this;return d.topics={},d._onTopicDestroyed=d._onTopicDestroyed.bind(d),d._onTopicEmit=d._onTopicEmit.bind(d),d}return a.prototype.emit=function(c){var l={channel:this.name,topic:"*",payload:c};s.prototype.emit.call(this,l)},a.prototype.topic=function(c){var l=this.topics[c];return typeof l>"u"&&(l=this.topics[c]=new o.Topic(c,this.name,this.getMaxListeners()),l.getEventEmitter().on("topic_destroyed",this._onTopicDestroyed),l.on(this._onTopicEmit)),l},a.prototype.hasTopic=function(c){return Boolean(this.topics[c])},a.prototype.removeTopic=function(c){var l=this.topics[c];return typeof l<"u"?(delete this.topics[c],l.destroy(),!0):!1},a.prototype.getAllTopics=function(){return Object.values(this.topics)},a.prototype._onTopicEmit=function(c){s.prototype.emit.call(this,c)},a.prototype._onTopicDestroyed=function(c){delete this.topics[c]},a.prototype.destroy=function(){for(var c in this.topics)this.removeTopic(c);this.emitter.emit("channel_destroyed",this.name),s.prototype.destroy.call(this)},a}(i.Broadcaster);u.Channel=n},5447:(r,u,e)=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.EventBus=void 0;var t=e(9987),i=function(){function o(n){this.channels={},n=typeof n>"u"?{}:n,this._maxListeners=n.maxListeners===void 0?0:n.maxListeners,this.onChannelDestroyed=this.onChannelDestroyed.bind(this),this.createMainChannel(),this.onChannelEmit=this.onChannelEmit.bind(this)}return o.prototype.createMainChannel=function(){var n=this;this.defaultChannel=new t.Channel("*",this._maxListeners),this.channels["*"]=this.defaultChannel,this.defaultChannel.getEventEmitter().on("channel_destroyed",function(){n.createMainChannel()})},o.prototype.mainChannel=function(){return this.defaultChannel},o.prototype.allChannels=function(){return this.mainChannel()},o.prototype.channel=function(n){var s=this.channels[n];return typeof s>"u"&&(s=this.channels[n]=new t.Channel(n,this._maxListeners),s.on(this.onChannelEmit),s.getEventEmitter().on("channel_destroyed",this.onChannelDestroyed)),s},o.prototype.hasChannel=function(n){return Boolean(this.channels[n])},o.prototype.removeChannel=function(n){if(n==="*")throw new Error("Can't remove default channel");var s=this.channels[n];return typeof s<"u"?(s.destroy(),!0):!1},o.prototype.onChannelEmit=function(n){var s=n.topic;if(this.defaultChannel.hasTopic(s)){var a={topic:n.topic,channel:n.channel,payload:n.payload};this.defaultChannel.topic(s).getEventEmitter().emit(s,a)}this.defaultChannel.getEventEmitter().emit(this.defaultChannel.name,n)},o.prototype.onChannelDestroyed=function(n){delete this.channels[n]},o.prototype.getAllChannels=function(){return Object.values(this.channels)},o.prototype.destroy=function(){for(var n in this.channels)this.channels[n].destroy()},o}();u.EventBus=i},4032:function(r,u,e){"use strict";var t=this&&this.__createBinding||(Object.create?function(o,n,s,a){a===void 0&&(a=s),Object.defineProperty(o,a,{enumerable:!0,get:function(){return n[s]}})}:function(o,n,s,a){a===void 0&&(a=s),o[a]=n[s]}),i=this&&this.__exportStar||function(o,n){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(n,s)&&t(n,o,s)};Object.defineProperty(u,"__esModule",{value:!0}),i(e(992),u),i(e(5447),u),i(e(9987),u),i(e(1987),u)},1987:function(r,u,e){"use strict";var t=this&&this.__extends||function(){var n=function(s,a){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,l){c.__proto__=l}||function(c,l){for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(c[d]=l[d])},n(s,a)};return function(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");n(s,a);function c(){this.constructor=s}s.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}();Object.defineProperty(u,"__esModule",{value:!0}),u.Topic=void 0;var i=e(992),o=function(n){t(s,n);function s(a,c,l){l===void 0&&(l=0);var d=n.call(this,a,l)||this;return d.channel=c,d}return s.prototype.emit=function(a){var c={channel:this.channel,topic:this.name,payload:a};n.prototype.emit.call(this,c)},s.prototype.destroy=function(){this.emitter.emit("topic_destroyed",this.name),n.prototype.destroy.call(this)},s}(i.Broadcaster);u.Topic=o},46:r=>{"use strict";var u=typeof Reflect=="object"?Reflect:null,e=u&&typeof u.apply=="function"?u.apply:function(p,g,S){return Function.prototype.apply.call(p,g,S)},t;u&&typeof u.ownKeys=="function"?t=u.ownKeys:Object.getOwnPropertySymbols?t=function(p){return Object.getOwnPropertyNames(p).concat(Object.getOwnPropertySymbols(p))}:t=function(p){return Object.getOwnPropertyNames(p)};function i(f){console&&console.warn&&console.warn(f)}var o=Number.isNaN||function(p){return p!==p};function n(){n.init.call(this)}r.exports=n,r.exports.once=B,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._eventsCount=0,n.prototype._maxListeners=void 0;var s=10;function a(f){if(typeof f!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof f)}Object.defineProperty(n,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(f){if(typeof f!="number"||f<0||o(f))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+f+".");s=f}}),n.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},n.prototype.setMaxListeners=function(p){if(typeof p!="number"||p<0||o(p))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+p+".");return this._maxListeners=p,this};function c(f){return f._maxListeners===void 0?n.defaultMaxListeners:f._maxListeners}n.prototype.getMaxListeners=function(){return c(this)},n.prototype.emit=function(p){for(var g=[],S=1;S<arguments.length;S++)g.push(arguments[S]);var A=p==="error",N=this._events;if(N!==void 0)A=A&&N.error===void 0;else if(!A)return!1;if(A){var j;if(g.length>0&&(j=g[0]),j instanceof Error)throw j;var K=new Error("Unhandled error."+(j?" ("+j.message+")":""));throw K.context=j,K}var X=N[p];if(X===void 0)return!1;if(typeof X=="function")e(X,this,g);else for(var J=X.length,Q=T(X,J),S=0;S<J;++S)e(Q[S],this,g);return!0};function l(f,p,g,S){var A,N,j;if(a(g),N=f._events,N===void 0?(N=f._events=Object.create(null),f._eventsCount=0):(N.newListener!==void 0&&(f.emit("newListener",p,g.listener?g.listener:g),N=f._events),j=N[p]),j===void 0)j=N[p]=g,++f._eventsCount;else if(typeof j=="function"?j=N[p]=S?[g,j]:[j,g]:S?j.unshift(g):j.push(g),A=c(f),A>0&&j.length>A&&!j.warned){j.warned=!0;var K=new Error("Possible EventEmitter memory leak detected. "+j.length+" "+String(p)+" listeners added. Use emitter.setMaxListeners() to increase limit");K.name="MaxListenersExceededWarning",K.emitter=f,K.type=p,K.count=j.length,i(K)}return f}n.prototype.addListener=function(p,g){return l(this,p,g,!1)},n.prototype.on=n.prototype.addListener,n.prototype.prependListener=function(p,g){return l(this,p,g,!0)};function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(f,p,g){var S={fired:!1,wrapFn:void 0,target:f,type:p,listener:g},A=d.bind(S);return A.listener=g,S.wrapFn=A,A}n.prototype.once=function(p,g){return a(g),this.on(p,m(this,p,g)),this},n.prototype.prependOnceListener=function(p,g){return a(g),this.prependListener(p,m(this,p,g)),this},n.prototype.removeListener=function(p,g){var S,A,N,j,K;if(a(g),A=this._events,A===void 0)return this;if(S=A[p],S===void 0)return this;if(S===g||S.listener===g)--this._eventsCount===0?this._events=Object.create(null):(delete A[p],A.removeListener&&this.emit("removeListener",p,S.listener||g));else if(typeof S!="function"){for(N=-1,j=S.length-1;j>=0;j--)if(S[j]===g||S[j].listener===g){K=S[j].listener,N=j;break}if(N<0)return this;N===0?S.shift():L(S,N),S.length===1&&(A[p]=S[0]),A.removeListener!==void 0&&this.emit("removeListener",p,K||g)}return this},n.prototype.off=n.prototype.removeListener,n.prototype.removeAllListeners=function(p){var g,S,A;if(S=this._events,S===void 0)return this;if(S.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):S[p]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete S[p]),this;if(arguments.length===0){var N=Object.keys(S),j;for(A=0;A<N.length;++A)j=N[A],j!=="removeListener"&&this.removeAllListeners(j);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(g=S[p],typeof g=="function")this.removeListener(p,g);else if(g!==void 0)for(A=g.length-1;A>=0;A--)this.removeListener(p,g[A]);return this};function O(f,p,g){var S=f._events;if(S===void 0)return[];var A=S[p];return A===void 0?[]:typeof A=="function"?g?[A.listener||A]:[A]:g?I(A):T(A,A.length)}n.prototype.listeners=function(p){return O(this,p,!0)},n.prototype.rawListeners=function(p){return O(this,p,!1)},n.listenerCount=function(f,p){return typeof f.listenerCount=="function"?f.listenerCount(p):x.call(f,p)},n.prototype.listenerCount=x;function x(f){var p=this._events;if(p!==void 0){var g=p[f];if(typeof g=="function")return 1;if(g!==void 0)return g.length}return 0}n.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]};function T(f,p){for(var g=new Array(p),S=0;S<p;++S)g[S]=f[S];return g}function L(f,p){for(;p+1<f.length;p++)f[p]=f[p+1];f.pop()}function I(f){for(var p=new Array(f.length),g=0;g<p.length;++g)p[g]=f[g].listener||f[g];return p}function B(f,p){return new Promise(function(g,S){function A(j){f.removeListener(p,N),S(j)}function N(){typeof f.removeListener=="function"&&f.removeListener("error",A),g([].slice.call(arguments))}U(f,p,N,{once:!0}),p!=="error"&&G(f,A,{once:!0})})}function G(f,p,g){typeof f.on=="function"&&U(f,"error",p,g)}function U(f,p,g,S){if(typeof f.on=="function")S.once?f.once(p,g):f.on(p,g);else if(typeof f.addEventListener=="function")f.addEventListener(p,function A(N){S.once&&f.removeEventListener(p,A),g(N)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof f)}},7321:(r,u,e)=>{"use strict";var t=e(3030);r.exports=t},9283:(r,u,e)=>{"use strict";e(8376),e(4293),e(8715);var t=e(2564);r.exports=t("String","replaceAll")},4977:(r,u,e)=>{"use strict";var t=e(4188),i=e(3174),o=TypeError;r.exports=function(n){if(t(n))return n;throw new o(i(n)+" is not a function")}},154:(r,u,e)=>{"use strict";var t=e(4212).charAt;r.exports=function(i,o,n){return o+(n?t(i,o).length:1)}},3770:(r,u,e)=>{"use strict";var t=e(831),i=String,o=TypeError;r.exports=function(n){if(t(n))return n;throw new o(i(n)+" is not an object")}},1458:(r,u,e)=>{"use strict";var t=e(380),i=e(675),o=e(9389),n=function(s){return function(a,c,l){var d=t(a),m=o(d);if(m===0)return!s&&-1;var O=i(l,m),x;if(s&&c!==c){for(;m>O;)if(x=d[O++],x!==x)return!0}else for(;m>O;O++)if((s||O in d)&&d[O]===c)return s||O||0;return!s&&-1}};r.exports={includes:n(!0),indexOf:n(!1)}},8689:(r,u,e)=>{"use strict";var t=e(6881),i=t({}.toString),o=t("".slice);r.exports=function(n){return o(i(n),8,-1)}},5438:(r,u,e)=>{"use strict";var t=e(9345),i=e(4188),o=e(8689),n=e(4282),s=n("toStringTag"),a=Object,c=o(function(){return arguments}())==="Arguments",l=function(d,m){try{return d[m]}catch{}};r.exports=t?o:function(d){var m,O,x;return d===void 0?"Undefined":d===null?"Null":typeof(O=l(m=a(d),s))=="string"?O:c?o(m):(x=o(m))==="Object"&&i(m.callee)?"Arguments":x}},8657:(r,u,e)=>{"use strict";var t=e(4418),i=e(3168),o=e(9304),n=e(4466);r.exports=function(s,a,c){for(var l=i(a),d=n.f,m=o.f,O=0;O<l.length;O++){var x=l[O];!t(s,x)&&!(c&&t(c,x))&&d(s,x,m(a,x))}}},8088:(r,u,e)=>{"use strict";var t=e(6893),i=e(4466),o=e(9123);r.exports=t?function(n,s,a){return i.f(n,s,o(1,a))}:function(n,s,a){return n[s]=a,n}},9123:r=>{"use strict";r.exports=function(u,e){return{enumerable:!(u&1),configurable:!(u&2),writable:!(u&4),value:e}}},7509:(r,u,e)=>{"use strict";var t=e(4188),i=e(4466),o=e(4530),n=e(4798);r.exports=function(s,a,c,l){l||(l={});var d=l.enumerable,m=l.name!==void 0?l.name:a;if(t(c)&&o(c,m,l),l.global)d?s[a]=c:n(a,c);else{try{l.unsafe?s[a]&&(d=!0):delete s[a]}catch{}d?s[a]=c:i.f(s,a,{value:c,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return s}},4798:(r,u,e)=>{"use strict";var t=e(1488),i=Object.defineProperty;r.exports=function(o,n){try{i(t,o,{value:n,configurable:!0,writable:!0})}catch{t[o]=n}return n}},6893:(r,u,e)=>{"use strict";var t=e(5234);r.exports=!t(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},5926:(r,u,e)=>{"use strict";var t=e(1488),i=e(831),o=t.document,n=i(o)&&i(o.createElement);r.exports=function(s){return n?o.createElement(s):{}}},4109:r=>{"use strict";r.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},3749:(r,u,e)=>{"use strict";var t=e(1488),i=e(4109),o=t.process,n=t.Deno,s=o&&o.versions||n&&n.version,a=s&&s.v8,c,l;a&&(c=a.split("."),l=c[0]>0&&c[0]<4?1:+(c[0]+c[1])),!l&&i&&(c=i.match(/Edge\/(\d+)/),(!c||c[1]>=74)&&(c=i.match(/Chrome\/(\d+)/),c&&(l=+c[1]))),r.exports=l},2564:(r,u,e)=>{"use strict";var t=e(1488),i=e(6881);r.exports=function(o,n){return i(t[o].prototype[n])}},1274:r=>{"use strict";r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},5613:(r,u,e)=>{"use strict";var t=e(1488),i=e(9304).f,o=e(8088),n=e(7509),s=e(4798),a=e(8657),c=e(8489);r.exports=function(l,d){var m=l.target,O=l.global,x=l.stat,T,L,I,B,G,U;if(O?L=t:x?L=t[m]||s(m,{}):L=t[m]&&t[m].prototype,L)for(I in d){if(G=d[I],l.dontCallGetSet?(U=i(L,I),B=U&&U.value):B=L[I],T=c(O?I:m+(x?".":"#")+I,l.forced),!T&&B!==void 0){if(typeof G==typeof B)continue;a(G,B)}(l.sham||B&&B.sham)&&o(G,"sham",!0),n(L,I,G,l)}}},5234:r=>{"use strict";r.exports=function(u){try{return!!u()}catch{return!0}}},467:(r,u,e)=>{"use strict";e(8376);var t=e(9944),i=e(7509),o=e(9342),n=e(5234),s=e(4282),a=e(8088),c=s("species"),l=RegExp.prototype;r.exports=function(d,m,O,x){var T=s(d),L=!n(function(){var U={};return U[T]=function(){return 7},""[d](U)!==7}),I=L&&!n(function(){var U=!1,f=/a/;return d==="split"&&(f={},f.constructor={},f.constructor[c]=function(){return f},f.flags="",f[T]=/./[T]),f.exec=function(){return U=!0,null},f[T](""),!U});if(!L||!I||O){var B=/./[T],G=m(T,""[d],function(U,f,p,g,S){var A=f.exec;return A===o||A===l.exec?L&&!S?{done:!0,value:t(B,f,p,g)}:{done:!0,value:t(U,p,f,g)}:{done:!1}});i(String.prototype,d,G[0]),i(l,T,G[1])}x&&a(l[T],"sham",!0)}},646:(r,u,e)=>{"use strict";var t=e(9055),i=Function.prototype,o=i.apply,n=i.call;r.exports=typeof Reflect=="object"&&Reflect.apply||(t?n.bind(o):function(){return n.apply(o,arguments)})},9055:(r,u,e)=>{"use strict";var t=e(5234);r.exports=!t(function(){var i=function(){}.bind();return typeof i!="function"||i.hasOwnProperty("prototype")})},9944:(r,u,e)=>{"use strict";var t=e(9055),i=Function.prototype.call;r.exports=t?i.bind(i):function(){return i.apply(i,arguments)}},2735:(r,u,e)=>{"use strict";var t=e(6893),i=e(4418),o=Function.prototype,n=t&&Object.getOwnPropertyDescriptor,s=i(o,"name"),a=s&&function(){}.name==="something",c=s&&(!t||t&&n(o,"name").configurable);r.exports={EXISTS:s,PROPER:a,CONFIGURABLE:c}},6881:(r,u,e)=>{"use strict";var t=e(9055),i=Function.prototype,o=i.call,n=t&&i.bind.bind(o,o);r.exports=t?n:function(s){return function(){return o.apply(s,arguments)}}},5604:(r,u,e)=>{"use strict";var t=e(1488),i=e(4188),o=function(n){return i(n)?n:void 0};r.exports=function(n,s){return arguments.length<2?o(t[n]):t[n]&&t[n][s]}},2913:(r,u,e)=>{"use strict";var t=e(4977),i=e(4318);r.exports=function(o,n){var s=o[n];return i(s)?void 0:t(s)}},1113:(r,u,e)=>{"use strict";var t=e(6881),i=e(3628),o=Math.floor,n=t("".charAt),s=t("".replace),a=t("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;r.exports=function(d,m,O,x,T,L){var I=O+d.length,B=x.length,G=l;return T!==void 0&&(T=i(T),G=c),s(L,G,function(U,f){var p;switch(n(f,0)){case"$":return"$";case"&":return d;case"`":return a(m,0,O);case"'":return a(m,I);case"<":p=T[a(f,1,-1)];break;default:var g=+f;if(g===0)return U;if(g>B){var S=o(g/10);return S===0?U:S<=B?x[S-1]===void 0?n(f,1):x[S-1]+n(f,1):U}p=x[g-1]}return p===void 0?"":p})}},1488:function(r,u,e){"use strict";var t=function(i){return i&&i.Math===Math&&i};r.exports=t(typeof globalThis=="object"&&globalThis)||t(typeof window=="object"&&window)||t(typeof self=="object"&&self)||t(typeof e.g=="object"&&e.g)||t(typeof this=="object"&&this)||function(){return this}()||Function("return this")()},4418:(r,u,e)=>{"use strict";var t=e(6881),i=e(3628),o=t({}.hasOwnProperty);r.exports=Object.hasOwn||function(s,a){return o(i(s),a)}},7588:r=>{"use strict";r.exports={}},7458:(r,u,e)=>{"use strict";var t=e(5604);r.exports=t("document","documentElement")},9622:(r,u,e)=>{"use strict";var t=e(6893),i=e(5234),o=e(5926);r.exports=!t&&!i(function(){return Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a!==7})},7568:(r,u,e)=>{"use strict";var t=e(6881),i=e(5234),o=e(8689),n=Object,s=t("".split);r.exports=i(function(){return!n("z").propertyIsEnumerable(0)})?function(a){return o(a)==="String"?s(a,""):n(a)}:n},3029:(r,u,e)=>{"use strict";var t=e(6881),i=e(4188),o=e(2694),n=t(Function.toString);i(o.inspectSource)||(o.inspectSource=function(s){return n(s)}),r.exports=o.inspectSource},3086:(r,u,e)=>{"use strict";var t=e(5945),i=e(1488),o=e(831),n=e(8088),s=e(4418),a=e(2694),c=e(168),l=e(7588),d="Object already initialized",m=i.TypeError,O=i.WeakMap,x,T,L,I=function(f){return L(f)?T(f):x(f,{})},B=function(f){return function(p){var g;if(!o(p)||(g=T(p)).type!==f)throw new m("Incompatible receiver, "+f+" required");return g}};if(t||a.state){var G=a.state||(a.state=new O);G.get=G.get,G.has=G.has,G.set=G.set,x=function(f,p){if(G.has(f))throw new m(d);return p.facade=f,G.set(f,p),p},T=function(f){return G.get(f)||{}},L=function(f){return G.has(f)}}else{var U=c("state");l[U]=!0,x=function(f,p){if(s(f,U))throw new m(d);return p.facade=f,n(f,U,p),p},T=function(f){return s(f,U)?f[U]:{}},L=function(f){return s(f,U)}}r.exports={set:x,get:T,has:L,enforce:I,getterFor:B}},4188:r=>{"use strict";var u=typeof document=="object"&&document.all;r.exports=typeof u>"u"&&u!==void 0?function(e){return typeof e=="function"||e===u}:function(e){return typeof e=="function"}},8489:(r,u,e)=>{"use strict";var t=e(5234),i=e(4188),o=/#|\.prototype\./,n=function(d,m){var O=a[s(d)];return O===l?!0:O===c?!1:i(m)?t(m):!!m},s=n.normalize=function(d){return String(d).replace(o,".").toLowerCase()},a=n.data={},c=n.NATIVE="N",l=n.POLYFILL="P";r.exports=n},4318:r=>{"use strict";r.exports=function(u){return u==null}},831:(r,u,e)=>{"use strict";var t=e(4188);r.exports=function(i){return typeof i=="object"?i!==null:t(i)}},1942:r=>{"use strict";r.exports=!1},473:(r,u,e)=>{"use strict";var t=e(831),i=e(8689),o=e(4282),n=o("match");r.exports=function(s){var a;return t(s)&&((a=s[n])!==void 0?!!a:i(s)==="RegExp")}},6032:(r,u,e)=>{"use strict";var t=e(5604),i=e(4188),o=e(4578),n=e(9809),s=Object;r.exports=n?function(a){return typeof a=="symbol"}:function(a){var c=t("Symbol");return i(c)&&o(c.prototype,s(a))}},9389:(r,u,e)=>{"use strict";var t=e(7611);r.exports=function(i){return t(i.length)}},4530:(r,u,e)=>{"use strict";var t=e(6881),i=e(5234),o=e(4188),n=e(4418),s=e(6893),a=e(2735).CONFIGURABLE,c=e(3029),l=e(3086),d=l.enforce,m=l.get,O=String,x=Object.defineProperty,T=t("".slice),L=t("".replace),I=t([].join),B=s&&!i(function(){return x(function(){},"length",{value:8}).length!==8}),G=String(String).split("String"),U=r.exports=function(f,p,g){T(O(p),0,7)==="Symbol("&&(p="["+L(O(p),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),g&&g.getter&&(p="get "+p),g&&g.setter&&(p="set "+p),(!n(f,"name")||a&&f.name!==p)&&(s?x(f,"name",{value:p,configurable:!0}):f.name=p),B&&g&&n(g,"arity")&&f.length!==g.arity&&x(f,"length",{value:g.arity});try{g&&n(g,"constructor")&&g.constructor?s&&x(f,"prototype",{writable:!1}):f.prototype&&(f.prototype=void 0)}catch{}var S=d(f);return n(S,"source")||(S.source=I(G,typeof p=="string"?p:"")),f};Function.prototype.toString=U(function(){return o(this)&&m(this).source||c(this)},"toString")},142:r=>{"use strict";var u=Math.ceil,e=Math.floor;r.exports=Math.trunc||function(i){var o=+i;return(o>0?e:u)(o)}},7065:(r,u,e)=>{"use strict";var t=e(3770),i=e(30),o=e(1274),n=e(7588),s=e(7458),a=e(5926),c=e(168),l=">",d="<",m="prototype",O="script",x=c("IE_PROTO"),T=function(){},L=function(f){return d+O+l+f+d+"/"+O+l},I=function(f){f.write(L("")),f.close();var p=f.parentWindow.Object;return f=null,p},B=function(){var f=a("iframe"),p="java"+O+":",g;return f.style.display="none",s.appendChild(f),f.src=String(p),g=f.contentWindow.document,g.open(),g.write(L("document.F=Object")),g.close(),g.F},G,U=function(){try{G=new ActiveXObject("htmlfile")}catch{}U=typeof document<"u"?document.domain&&G?I(G):B():I(G);for(var f=o.length;f--;)delete U[m][o[f]];return U()};n[x]=!0,r.exports=Object.create||function(p,g){var S;return p!==null?(T[m]=t(p),S=new T,T[m]=null,S[x]=p):S=U(),g===void 0?S:i.f(S,g)}},30:(r,u,e)=>{"use strict";var t=e(6893),i=e(3315),o=e(4466),n=e(3770),s=e(380),a=e(7137);u.f=t&&!i?Object.defineProperties:function(l,d){n(l);for(var m=s(d),O=a(d),x=O.length,T=0,L;x>T;)o.f(l,L=O[T++],m[L]);return l}},4466:(r,u,e)=>{"use strict";var t=e(6893),i=e(9622),o=e(3315),n=e(3770),s=e(2344),a=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",m="configurable",O="writable";u.f=t?o?function(T,L,I){if(n(T),L=s(L),n(I),typeof T=="function"&&L==="prototype"&&"value"in I&&O in I&&!I[O]){var B=l(T,L);B&&B[O]&&(T[L]=I.value,I={configurable:m in I?I[m]:B[m],enumerable:d in I?I[d]:B[d],writable:!1})}return c(T,L,I)}:c:function(T,L,I){if(n(T),L=s(L),n(I),i)try{return c(T,L,I)}catch{}if("get"in I||"set"in I)throw new a("Accessors not supported");return"value"in I&&(T[L]=I.value),T}},9304:(r,u,e)=>{"use strict";var t=e(6893),i=e(9944),o=e(4416),n=e(9123),s=e(380),a=e(2344),c=e(4418),l=e(9622),d=Object.getOwnPropertyDescriptor;u.f=t?d:function(O,x){if(O=s(O),x=a(x),l)try{return d(O,x)}catch{}if(c(O,x))return n(!i(o.f,O,x),O[x])}},5629:(r,u,e)=>{"use strict";var t=e(1843),i=e(1274),o=i.concat("length","prototype");u.f=Object.getOwnPropertyNames||function(s){return t(s,o)}},156:(r,u)=>{"use strict";u.f=Object.getOwnPropertySymbols},4578:(r,u,e)=>{"use strict";var t=e(6881);r.exports=t({}.isPrototypeOf)},1843:(r,u,e)=>{"use strict";var t=e(6881),i=e(4418),o=e(380),n=e(1458).indexOf,s=e(7588),a=t([].push);r.exports=function(c,l){var d=o(c),m=0,O=[],x;for(x in d)!i(s,x)&&i(d,x)&&a(O,x);for(;l.length>m;)i(d,x=l[m++])&&(~n(O,x)||a(O,x));return O}},7137:(r,u,e)=>{"use strict";var t=e(1843),i=e(1274);r.exports=Object.keys||function(n){return t(n,i)}},4416:(r,u)=>{"use strict";var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,i=t&&!e.call({1:2},1);u.f=i?function(n){var s=t(this,n);return!!s&&s.enumerable}:e},2287:(r,u,e)=>{"use strict";var t=e(9944),i=e(4188),o=e(831),n=TypeError;r.exports=function(s,a){var c,l;if(a==="string"&&i(c=s.toString)&&!o(l=t(c,s))||i(c=s.valueOf)&&!o(l=t(c,s))||a!=="string"&&i(c=s.toString)&&!o(l=t(c,s)))return l;throw new n("Can't convert object to primitive value")}},3168:(r,u,e)=>{"use strict";var t=e(5604),i=e(6881),o=e(5629),n=e(156),s=e(3770),a=i([].concat);r.exports=t("Reflect","ownKeys")||function(l){var d=o.f(s(l)),m=n.f;return m?a(d,m(l)):d}},4721:(r,u,e)=>{"use strict";var t=e(9944),i=e(3770),o=e(4188),n=e(8689),s=e(9342),a=TypeError;r.exports=function(c,l){var d=c.exec;if(o(d)){var m=t(d,c,l);return m!==null&&i(m),m}if(n(c)==="RegExp")return t(s,c,l);throw new a("RegExp#exec called on incompatible receiver")}},9342:(r,u,e)=>{"use strict";var t=e(9944),i=e(6881),o=e(2618),n=e(4932),s=e(5976),a=e(746),c=e(7065),l=e(3086).get,d=e(6676),m=e(4609),O=a("native-string-replace",String.prototype.replace),x=RegExp.prototype.exec,T=x,L=i("".charAt),I=i("".indexOf),B=i("".replace),G=i("".slice),U=function(){var S=/a/,A=/b*/g;return t(x,S,"a"),t(x,A,"a"),S.lastIndex!==0||A.lastIndex!==0}(),f=s.BROKEN_CARET,p=/()??/.exec("")[1]!==void 0,g=U||p||f||d||m;g&&(T=function(A){var N=this,j=l(N),K=o(A),X=j.raw,J,Q,H,W,V,b,y;if(X)return X.lastIndex=N.lastIndex,J=t(T,X,K),N.lastIndex=X.lastIndex,J;var h=j.groups,w=f&&N.sticky,v=t(n,N),E=N.source,C=0,R=K;if(w&&(v=B(v,"y",""),I(v,"g")===-1&&(v+="g"),R=G(K,N.lastIndex),N.lastIndex>0&&(!N.multiline||N.multiline&&L(K,N.lastIndex-1)!==`
|
|
77
77
|
`)&&(E="(?: "+E+")",R=" "+R,C++),Q=new RegExp("^(?:"+E+")",v)),p&&(Q=new RegExp("^"+E+"$(?!\\s)",v)),U&&(H=N.lastIndex),W=t(x,w?Q:N,R),w?W?(W.input=G(W.input,C),W[0]=G(W[0],C),W.index=N.lastIndex,N.lastIndex+=W[0].length):N.lastIndex=0:U&&W&&(N.lastIndex=N.global?W.index+W[0].length:H),p&&W&&W.length>1&&t(O,W[0],Q,function(){for(V=1;V<arguments.length-2;V++)arguments[V]===void 0&&(W[V]=void 0)}),W&&h)for(W.groups=b=c(null),V=0;V<h.length;V++)y=h[V],b[y[0]]=W[y[1]];return W}),r.exports=T},4932:(r,u,e)=>{"use strict";var t=e(3770);r.exports=function(){var i=t(this),o="";return i.hasIndices&&(o+="d"),i.global&&(o+="g"),i.ignoreCase&&(o+="i"),i.multiline&&(o+="m"),i.dotAll&&(o+="s"),i.unicode&&(o+="u"),i.unicodeSets&&(o+="v"),i.sticky&&(o+="y"),o}},3113:(r,u,e)=>{"use strict";var t=e(9944),i=e(4418),o=e(4578),n=e(4932),s=RegExp.prototype;r.exports=function(a){var c=a.flags;return c===void 0&&!("flags"in s)&&!i(a,"flags")&&o(s,a)?t(n,a):c}},5976:(r,u,e)=>{"use strict";var t=e(5234),i=e(1488),o=i.RegExp,n=t(function(){var c=o("a","y");return c.lastIndex=2,c.exec("abcd")!==null}),s=n||t(function(){return!o("a","y").sticky}),a=n||t(function(){var c=o("^r","gy");return c.lastIndex=2,c.exec("str")!==null});r.exports={BROKEN_CARET:a,MISSED_STICKY:s,UNSUPPORTED_Y:n}},6676:(r,u,e)=>{"use strict";var t=e(5234),i=e(1488),o=i.RegExp;r.exports=t(function(){var n=o(".","s");return!(n.dotAll&&n.test(`
|
|
78
78
|
`)&&n.flags==="s")})},4609:(r,u,e)=>{"use strict";var t=e(5234),i=e(1488),o=i.RegExp;r.exports=t(function(){var n=o("(?<a>b)","g");return n.exec("b").groups.a!=="b"||"b".replace(n,"$<a>c")!=="bc"})},9509:(r,u,e)=>{"use strict";var t=e(4318),i=TypeError;r.exports=function(o){if(t(o))throw new i("Can't call method on "+o);return o}},168:(r,u,e)=>{"use strict";var t=e(746),i=e(6209),o=t("keys");r.exports=function(n){return o[n]||(o[n]=i(n))}},2694:(r,u,e)=>{"use strict";var t=e(1942),i=e(1488),o=e(4798),n="__core-js_shared__",s=r.exports=i[n]||o(n,{});(s.versions||(s.versions=[])).push({version:"3.37.1",mode:t?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},746:(r,u,e)=>{"use strict";var t=e(2694);r.exports=function(i,o){return t[i]||(t[i]=o||{})}},4212:(r,u,e)=>{"use strict";var t=e(6881),i=e(6744),o=e(2618),n=e(9509),s=t("".charAt),a=t("".charCodeAt),c=t("".slice),l=function(d){return function(m,O){var x=o(n(m)),T=i(O),L=x.length,I,B;return T<0||T>=L?d?"":void 0:(I=a(x,T),I<55296||I>56319||T+1===L||(B=a(x,T+1))<56320||B>57343?d?s(x,T):I:d?c(x,T,T+2):(I-55296<<10)+(B-56320)+65536)}};r.exports={codeAt:l(!1),charAt:l(!0)}},8944:(r,u,e)=>{"use strict";var t=e(3749),i=e(5234),o=e(1488),n=o.String;r.exports=!!Object.getOwnPropertySymbols&&!i(function(){var s=Symbol("symbol detection");return!n(s)||!(Object(s)instanceof Symbol)||!Symbol.sham&&t&&t<41})},675:(r,u,e)=>{"use strict";var t=e(6744),i=Math.max,o=Math.min;r.exports=function(n,s){var a=t(n);return a<0?i(a+s,0):o(a,s)}},380:(r,u,e)=>{"use strict";var t=e(7568),i=e(9509);r.exports=function(o){return t(i(o))}},6744:(r,u,e)=>{"use strict";var t=e(142);r.exports=function(i){var o=+i;return o!==o||o===0?0:t(o)}},7611:(r,u,e)=>{"use strict";var t=e(6744),i=Math.min;r.exports=function(o){var n=t(o);return n>0?i(n,9007199254740991):0}},3628:(r,u,e)=>{"use strict";var t=e(9509),i=Object;r.exports=function(o){return i(t(o))}},290:(r,u,e)=>{"use strict";var t=e(9944),i=e(831),o=e(6032),n=e(2913),s=e(2287),a=e(4282),c=TypeError,l=a("toPrimitive");r.exports=function(d,m){if(!i(d)||o(d))return d;var O=n(d,l),x;if(O){if(m===void 0&&(m="default"),x=t(O,d,m),!i(x)||o(x))return x;throw new c("Can't convert object to primitive value")}return m===void 0&&(m="number"),s(d,m)}},2344:(r,u,e)=>{"use strict";var t=e(290),i=e(6032);r.exports=function(o){var n=t(o,"string");return i(n)?n:n+""}},9345:(r,u,e)=>{"use strict";var t=e(4282),i=t("toStringTag"),o={};o[i]="z",r.exports=String(o)==="[object z]"},2618:(r,u,e)=>{"use strict";var t=e(5438),i=String;r.exports=function(o){if(t(o)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return i(o)}},3174:r=>{"use strict";var u=String;r.exports=function(e){try{return u(e)}catch{return"Object"}}},6209:(r,u,e)=>{"use strict";var t=e(6881),i=0,o=Math.random(),n=t(1 .toString);r.exports=function(s){return"Symbol("+(s===void 0?"":s)+")_"+n(++i+o,36)}},9809:(r,u,e)=>{"use strict";var t=e(8944);r.exports=t&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},3315:(r,u,e)=>{"use strict";var t=e(6893),i=e(5234);r.exports=t&&i(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},5945:(r,u,e)=>{"use strict";var t=e(1488),i=e(4188),o=t.WeakMap;r.exports=i(o)&&/native code/.test(String(o))},4282:(r,u,e)=>{"use strict";var t=e(1488),i=e(746),o=e(4418),n=e(6209),s=e(8944),a=e(9809),c=t.Symbol,l=i("wks"),d=a?c.for||c:c&&c.withoutSetter||n;r.exports=function(m){return o(l,m)||(l[m]=s&&o(c,m)?c[m]:d("Symbol."+m)),l[m]}},8376:(r,u,e)=>{"use strict";var t=e(5613),i=e(9342);t({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},8715:(r,u,e)=>{"use strict";var t=e(5613),i=e(9944),o=e(6881),n=e(9509),s=e(4188),a=e(4318),c=e(473),l=e(2618),d=e(2913),m=e(3113),O=e(1113),x=e(4282),T=e(1942),L=x("replace"),I=TypeError,B=o("".indexOf),G=o("".replace),U=o("".slice),f=Math.max;t({target:"String",proto:!0},{replaceAll:function(g,S){var A=n(this),N,j,K,X,J,Q,H,W,V,b=0,y=0,h="";if(!a(g)){if(N=c(g),N&&(j=l(n(m(g))),!~B(j,"g")))throw new I("`.replaceAll` does not allow non-global regexes");if(K=d(g,L),K)return i(K,g,A,S);if(T&&N)return G(l(A),g,S)}for(X=l(A),J=l(g),Q=s(S),Q||(S=l(S)),H=J.length,W=f(1,H),b=B(X,J);b!==-1;)V=Q?l(S(J,b,X)):O(J,X,b,[],void 0,S),h+=U(X,y,b)+V,y=b+H,b=b+W>X.length?-1:B(X,J,b+W);return y<X.length&&(h+=U(X,y)),h}})},4293:(r,u,e)=>{"use strict";var t=e(646),i=e(9944),o=e(6881),n=e(467),s=e(5234),a=e(3770),c=e(4188),l=e(4318),d=e(6744),m=e(7611),O=e(2618),x=e(9509),T=e(154),L=e(2913),I=e(1113),B=e(4721),G=e(4282),U=G("replace"),f=Math.max,p=Math.min,g=o([].concat),S=o([].push),A=o("".indexOf),N=o("".slice),j=function(Q){return Q===void 0?Q:String(Q)},K=function(){return"a".replace(/./,"$0")==="$0"}(),X=function(){return/./[U]?/./[U]("a","$0")==="":!1}(),J=!s(function(){var Q=/./;return Q.exec=function(){var H=[];return H.groups={a:"7"},H},"".replace(Q,"$<a>")!=="7"});n("replace",function(Q,H,W){var V=X?"$":"$0";return[function(y,h){var w=x(this),v=l(y)?void 0:L(y,U);return v?i(v,y,w,h):i(H,O(w),y,h)},function(b,y){var h=a(this),w=O(b);if(typeof y=="string"&&A(y,V)===-1&&A(y,"$<")===-1){var v=W(H,h,w,y);if(v.done)return v.value}var E=c(y);E||(y=O(y));var C=h.global,R;C&&(R=h.unicode,h.lastIndex=0);for(var k=[],z;z=B(h,w),!(z===null||(S(k,z),!C));){var te=O(z[0]);te===""&&(h.lastIndex=T(w,m(h.lastIndex),R))}for(var q="",ie=0,se=0;se<k.length;se++){z=k[se];for(var ae=O(z[0]),le=f(p(d(z.index),w.length),0),Z=[],P,F=1;F<z.length;F++)S(Z,j(z[F]));var $=z.groups;if(E){var _=g([ae],Z,le,w);$!==void 0&&S(_,$),P=O(t(y,void 0,_))}else P=I(ae,w,le,Z,$,y);le>=ie&&(q+=N(w,ie,le)+P,ie=le+ae.length)}return q+N(w,ie)}]},!J||!K||X)},3030:(r,u,e)=>{"use strict";var t=e(9283);r.exports=t},6152:(r,u,e)=>{"use strict";e.d(u,{GG:()=>n,Tt:()=>t,gn:()=>o,sH:()=>i});function t(s,a){var c={};for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&a.indexOf(l)<0&&(c[l]=s[l]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,l=Object.getOwnPropertySymbols(s);d<l.length;d++)a.indexOf(l[d])<0&&Object.prototype.propertyIsEnumerable.call(s,l[d])&&(c[l[d]]=s[l[d]]);return c}function i(s,a,c,l){function d(m){return m instanceof c?m:new c(function(O){O(m)})}return new(c||(c=Promise))(function(m,O){function x(I){try{L(l.next(I))}catch(B){O(B)}}function T(I){try{L(l.throw(I))}catch(B){O(B)}}function L(I){I.done?m(I.value):d(I.value).then(x,T)}L((l=l.apply(s,a||[])).next())})}function o(s,a,c,l){if(c==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof a=="function"?s!==a||!l:!a.has(s))throw new TypeError("Cannot read private member from an object whose class did not declare it");return c==="m"?l:c==="a"?l.call(s):l?l.value:a.get(s)}function n(s,a,c,l,d){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!d)throw new TypeError("Private accessor was defined without a setter");if(typeof a=="function"?s!==a||!d:!a.has(s))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?d.call(s,c):d?d.value=c:a.set(s,c),c}},3059:(r,u,e)=>{"use strict";e.d(u,{C:()=>o,mO:()=>t});const t="embeddable-event-bus-key",i=1e5,o={rest:{endpoints:{big:"https://api-gateway.prod.icanbwell.com/identity"}}},n="healthCircle",s=""},5848:(r,u,e)=>{"use strict";e.r(u),e.d(u,{EventBus:()=>a});var t=e(4032);function i(c,l,d,m){if(d==="a"&&!m)throw new TypeError("Private accessor was defined without a getter");if(typeof l=="function"?c!==l||!m:!l.has(c))throw new TypeError("Cannot read private member from an object whose class did not declare it");return d==="m"?m:d==="a"?m.call(c):m?m.value:l.get(c)}var o,n;const s="default";class a{static getInstance(l){let d=l?i(this,o,"f",n)[l]:i(this,o,"f",n)[s];return d||(d=i(this,o,"f",n)[l||s]=new t.EventBus),d}}o=a,n={value:{}}},934:(r,u,e)=>{"use strict";e.d(u,{b:()=>i});var t=e(9226);class i extends Error{constructor(n,s){super(n,s),this.cause=s.cause,this.errorCode=s.errorCode}toJSON(){const{name:n,message:s,errorCode:a}=this;return{name:n,message:s,errorCode:a}}emitToNativeComponent(){return[t.ErrorCode.CLIENT_UNKNOWN,t.ErrorCode.TOKEN_EXCHANGE].includes(this.errorCode)}}},3758:(r,u,e)=>{"use strict";e.d(u,{O:()=>t});var t;(function(i){i.CLIENT_UNKNOWN="CLIENT_UNKNOWN",i.INSUFFICIENT_SERVICES="INSUFFICIENT_SERVICES",i.METHOD_CALLED_BEFORE_INITIALIZATION="METHOD_CALLED_BEFORE_INITIALIZATION",i.BWELL_INITIALIZATION="BWELL_INITIALIZATION",i.TOKEN_EXCHANGE="TOKEN_EXCHANGE",i.ROUTE_ACTION="ROUTE_ACTION",i.ROUTE_NAVIGATION_DELEGATE="ROUTE_NAVIGATION_DELEGATE",i.ROUTE_UNKNOWN="ROUTE_UNKNOWN",i.ROUTE_ELEMENT_UNKNOWN="ROUTE_ELEMENT_UNKNOWN",i.PROVIDER_UNDEFINED="PROVIDER_UNDEFINED",i.INSUFFICIENT_PERMISSIONS="INSUFFICIENT_PERMISSIONS",i.CONFIGURATION_ERROR="CONFIGURATION_ERROR",i.NETWORK="NETWORK",i.UNKNOWN="UNKNOWN"})(t||(t={}))},9226:(r,u,e)=>{"use strict";e.d(u,{ErrorCode:()=>t.O});var t=e(3758);const i="pagetransition"},9742:(r,u,e)=>{"use strict";e.d(u,{Ak:()=>n});let t=s=>crypto.getRandomValues(new Uint8Array(s)),i=(s,a,c)=>{let l=(2<<Math.log(s.length-1)/Math.LN2)-1,d=-~(1.6*l*a/s.length);return(m=a)=>{let O="";for(;;){let x=c(d),T=d;for(;T--;)if(O+=s[x[T]&l]||"",O.length===m)return O}}},o=(s,a=21)=>i(s,a,t),n=(s=21)=>crypto.getRandomValues(new Uint8Array(s)).reduce((a,c)=>(c&=63,c<36?a+=c.toString(36):c<62?a+=(c-26).toString(36).toUpperCase():c>62?a+="-":a+="_",a),"")}},ge={};function M(r){var u=ge[r];if(u!==void 0)return u.exports;var e=ge[r]={id:r,loaded:!1,exports:{}};return be[r].call(e.exports,e,e.exports,M),e.loaded=!0,e.exports}M.m=be,M.c=ge,M.n=r=>{var u=r&&r.__esModule?()=>r.default:()=>r;return M.d(u,{a:u}),u},(()=>{var r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,u;M.t=function(e,t){if(t&1&&(e=this(e)),t&8||typeof e=="object"&&e&&(t&4&&e.__esModule||t&16&&typeof e.then=="function"))return e;var i=Object.create(null);M.r(i);var o={};u=u||[null,r({}),r([]),r(r)];for(var n=t&2&&e;typeof n=="object"&&!~u.indexOf(n);n=r(n))Object.getOwnPropertyNames(n).forEach(s=>o[s]=()=>e[s]);return o.default=()=>e,M.d(i,o),i}})(),M.d=(r,u)=>{for(var e in u)M.o(u,e)&&!M.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:u[e]})},M.f={},M.e=r=>Promise.all(Object.keys(M.f).reduce((u,e)=>(M.f[e](r,u),u),[])),M.u=r=>""+r+".index.js",M.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),M.o=(r,u)=>Object.prototype.hasOwnProperty.call(r,u),(()=>{var r={},u="@icanbwell/composite:";M.l=(e,t,i,o)=>{if(r[e]){r[e].push(t);return}var n,s;if(i!==void 0)for(var a=document.getElementsByTagName("script"),c=0;c<a.length;c++){var l=a[c];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")==u+i){n=l;break}}n||(s=!0,n=document.createElement("script"),n.charset="utf-8",n.timeout=120,M.nc&&n.setAttribute("nonce",M.nc),n.setAttribute("data-webpack",u+i),n.src=e),r[e]=[t];var d=(O,x)=>{n.onerror=n.onload=null,clearTimeout(m);var T=r[e];if(delete r[e],n.parentNode&&n.parentNode.removeChild(n),T&&T.forEach(L=>L(x)),O)return O(x)},m=setTimeout(d.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=d.bind(null,n.onerror),n.onload=d.bind(null,n.onload),s&&document.head.appendChild(n)}})(),M.r=r=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},M.nmd=r=>(r.paths=[],r.children||(r.children=[]),r),(()=>{M.S={};var r={},u={};M.I=(e,t)=>{t||(t=[]);var i=u[e];if(i||(i=u[e]={}),!(t.indexOf(i)>=0)){if(t.push(i),r[e])return r[e];M.o(M.S,e)||(M.S[e]={});var o=M.S[e],n=d=>{typeof console<"u"&&console.warn&&console.warn(d)},s="@icanbwell/composite",a=(d,m,O,x)=>{var T=o[d]=o[d]||{},L=T[m];(!L||!L.loaded&&(!x!=!L.eager?x:s>L.from))&&(T[m]={get:O,from:s,eager:!!x})},c=d=>{var m=L=>n("Initialization of sharing external failed: "+L);try{var O=M(d);if(!O)return;var x=L=>L&&L.init&&L.init(M.S[e],t);if(O.then)return l.push(O.then(x,m));var T=x(O);if(T&&T.then)return l.push(T.catch(m))}catch(L){m(L)}},l=[];switch(e){case"default":a("@icanbwell/events","2.10.1",()=>()=>M(5848),1),a("@icanbwell/react-native-webview-invoke/browser","0.6.4",()=>()=>M(7800),1);break}return l.length?r[e]=Promise.all(l).then(()=>r[e]=1):r[e]=1}}})(),(()=>{var r;M.g.importScripts&&(r=M.g.location+"");var u=M.g.document;if(!r&&u&&(u.currentScript&&(r=u.currentScript.src),!r)){var e=u.getElementsByTagName("script");if(e.length)for(var t=e.length-1;t>-1&&(!r||!/^http(s?):/.test(r));)r=e[t--].src}if(!r)throw new Error("Automatic publicPath is not supported in this browser");r=r.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),M.p=r})(),(()=>{var r=b=>{var y=v=>v.split(".").map(E=>+E==E?+E:E),h=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(b),w=h[1]?y(h[1]):[];return h[2]&&(w.length++,w.push.apply(w,y(h[2]))),h[3]&&(w.push([]),w.push.apply(w,y(h[3]))),w},u=(b,y)=>{b=r(b),y=r(y);for(var h=0;;){if(h>=b.length)return h<y.length&&(typeof y[h])[0]!="u";var w=b[h],v=(typeof w)[0];if(h>=y.length)return v=="u";var E=y[h],C=(typeof E)[0];if(v!=C)return v=="o"&&C=="n"||C=="s"||v=="u";if(v!="o"&&v!="u"&&w!=E)return w<E;h++}},e=b=>{var y=b[0],h="";if(b.length===1)return"*";if(y+.5){h+=y==0?">=":y==-1?"<":y==1?"^":y==2?"~":y>0?"=":"!=";for(var w=1,v=1;v<b.length;v++)w--,h+=(typeof(C=b[v]))[0]=="u"?"-":(w>0?".":"")+(w=2,C);return h}var E=[];for(v=1;v<b.length;v++){var C=b[v];E.push(C===0?"not("+R()+")":C===1?"("+R()+" || "+R()+")":C===2?E.pop()+" "+E.pop():e(C))}return R();function R(){return E.pop().replace(/^\((.+)\)$/,"$1")}},t=(b,y)=>{if(0 in b){y=r(y);var h=b[0],w=h<0;w&&(h=-h-1);for(var v=0,E=1,C=!0;;E++,v++){var R,k,z=E<b.length?(typeof b[E])[0]:"";if(v>=y.length||(k=(typeof(R=y[v]))[0])=="o")return!C||(z=="u"?E>h&&!w:z==""!=w);if(k=="u"){if(!C||z!="u")return!1}else if(C)if(z==k)if(E<=h){if(R!=b[E])return!1}else{if(w?R>b[E]:R<b[E])return!1;R!=b[E]&&(C=!1)}else if(z!="s"&&z!="n"){if(w||E<=h)return!1;C=!1,E--}else{if(E<=h||k<z!=w)return!1;C=!1}else z!="s"&&z!="n"&&(C=!1,E--)}}var te=[],q=te.pop.bind(te);for(v=1;v<b.length;v++){var ie=b[v];te.push(ie==1?q()|q():ie==2?q()&q():ie?t(ie,y):!q())}return!!q()},i=(b,y)=>{var h=M.S[b];if(!h||!M.o(h,y))throw new Error("Shared module "+y+" doesn't exist in shared scope "+b);return h},o=(b,w)=>{var h=b[w],w=Object.keys(h).reduce((v,E)=>!v||u(v,E)?E:v,0);return w&&h[w]},n=(b,y)=>{var h=b[y];return Object.keys(h).reduce((w,v)=>!w||!h[w].loaded&&u(w,v)?v:w,0)},s=(b,y,h,w)=>"Unsatisfied version "+h+" from "+(h&&b[y][h].from)+" of shared singleton module "+y+" (required "+e(w)+")",a=(b,y,h,w)=>{var v=n(b,h);return L(b[h][v])},c=(b,y,h,w)=>{var v=n(b,h);return t(w,v)||x(s(b,h,v,w)),L(b[h][v])},l=(b,y,h,w)=>{var v=n(b,h);if(!t(w,v))throw new Error(s(b,h,v,w));return L(b[h][v])},d=(b,v,h)=>{var w=b[v],v=Object.keys(w).reduce((E,C)=>t(h,C)&&(!E||u(E,C))?C:E,0);return v&&w[v]},m=(b,y,h,w)=>{var v=b[h];return"No satisfying version ("+e(w)+") of shared module "+h+" found in shared scope "+y+`.
|
|
79
79
|
Available versions: `+Object.keys(v).map(E=>E+" from "+v[E].from).join(", ")},O=(b,y,h,w)=>{var v=d(b,h,w);if(v)return L(v);throw new Error(m(b,y,h,w))},x=b=>{typeof console<"u"&&console.warn&&console.warn(b)},T=(b,y,h,w)=>{x(m(b,y,h,w))},L=b=>(b.loaded=1,b.get()),I=b=>function(y,h,w,v){var E=M.I(y);return E&&E.then?E.then(b.bind(b,y,M.S[y],h,w,v)):b(y,M.S[y],h,w,v)},B=I((b,y,h)=>(i(b,h),L(o(y,h)))),G=I((b,y,h,w)=>y&&M.o(y,h)?L(o(y,h)):w()),U=I((b,y,h,w)=>(i(b,h),L(d(y,h,w)||T(y,b,h,w)||o(y,h)))),f=I((b,y,h)=>(i(b,h),a(y,b,h))),p=I((b,y,h,w)=>(i(b,h),c(y,b,h,w))),g=I((b,y,h,w)=>(i(b,h),O(y,b,h,w))),S=I((b,y,h,w)=>(i(b,h),l(y,b,h,w))),A=I((b,y,h,w,v)=>!y||!M.o(y,h)?v():L(d(y,h,w)||T(y,b,h,w)||o(y,h))),N=I((b,y,h,w)=>!y||!M.o(y,h)?w():a(y,b,h)),j=I((b,y,h,w,v)=>!y||!M.o(y,h)?v():c(y,b,h,w)),K=I((b,y,h,w,v)=>{var E=y&&M.o(y,h)&&d(y,h,w);return E?L(E):v()}),X=I((b,y,h,w,v)=>!y||!M.o(y,h)?v():l(y,b,h,w)),J={},Q={692:()=>j("default","@icanbwell/react-native-webview-invoke/browser",[2,0,6,2],()=>()=>M(7800)),8561:()=>j("default","@icanbwell/events",[3,0,0,1],()=>()=>M(5848))},H=[8561];H.forEach(b=>{M.m[b]=y=>{J[b]=0,delete M.c[b];var h=Q[b]();if(typeof h!="function")throw new Error("Shared module is not available for eager consumption: "+b);y.exports=h()}});var W={692:[692]},V={};M.f.consumes=(b,y)=>{M.o(W,b)&&W[b].forEach(h=>{if(M.o(J,h))return y.push(J[h]);if(!V[h]){var w=C=>{J[h]=0,M.m[h]=R=>{delete M.c[h],R.exports=C()}};V[h]=!0;var v=C=>{delete J[h],M.m[h]=R=>{throw delete M.c[h],C}};try{var E=Q[h]();E.then?y.push(J[h]=E.then(w).catch(v)):w(E)}catch(C){v(C)}}})}})(),(()=>{var r={792:0};M.f.j=(t,i)=>{var o=M.o(r,t)?r[t]:void 0;if(o!==0)if(o)i.push(o[2]);else if(t!=692){var n=new Promise((l,d)=>o=r[t]=[l,d]);i.push(o[2]=n);var s=M.p+M.u(t),a=new Error,c=l=>{if(M.o(r,t)&&(o=r[t],o!==0&&(r[t]=void 0),o)){var d=l&&(l.type==="load"?"missing":l.type),m=l&&l.target&&l.target.src;a.message="Loading chunk "+t+` failed.
|
package/native.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as a}from"react/jsx-runtime";import{ComponentView as o}from"@icanbwell/native-components";var s="@icanbwell/composite",p="1.
|
|
1
|
+
import{jsx as a}from"react/jsx-runtime";import{ComponentView as o}from"@icanbwell/native-components";var s="@icanbwell/composite",p="1.531.0",c="icanbwell",v="module",l="index.js",m="types/index.d.ts",b="UNLICENSED",d={url:"https://github.com/icanbwell/ui-platform.git"},y={"*":{native:["types/native.d.ts"]}},u={lint:"eslint .","lint:eslint":"npm run lint"},w={"@icanbwell/native-components":"^3.2.0"},f={react:"^17.0.0 || ^18.0.0","react-dom":"^17.0.0 || ^18.0.0","react-native":"^0.71.2","react-native-webview":"^11.4.2"},O={"react-native":{optional:!0},react:{optional:!0},"react-dom":{optional:!0},"react-native-webview":{optional:!0}},j="0.727.0",D="@icanbwell/composite. repo version: 0.727.0",V={name:s,version:p,author:c,type:v,main:l,types:m,license:b,repository:d,typesVersions:y,scripts:u,dependencies:w,peerDependencies:f,peerDependenciesMeta:O,repoVersion:j,description:D};const g="composite";var h=Object.defineProperty,P=Object.defineProperties,x=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,i=(r,e,t)=>e in r?h(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,M=(r,e)=>{for(var t in e||(e={}))C.call(e,t)&&i(r,t,e[t]);if(n)for(var t of n(e))E.call(e,t)&&i(r,t,e[t]);return r},N=(r,e)=>P(r,x(e));const I=r=>a(o,N(M({},r),{version:V.version,name:g}));export{I as Composite};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icanbwell/composite",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.531.0",
|
|
4
4
|
"author": "icanbwell",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -43,6 +43,6 @@
|
|
|
43
43
|
"optional": true
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
|
-
"repoVersion": "0.
|
|
47
|
-
"description": "@icanbwell/composite. repo version: 0.
|
|
46
|
+
"repoVersion": "0.727.0",
|
|
47
|
+
"description": "@icanbwell/composite. repo version: 0.727.0"
|
|
48
48
|
}
|