@icanbwell/composite 1.508.1 → 1.508.3
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 +3 -3
- package/218.index.js +31 -0
- package/index.js +6 -6
- package/native.js +1 -1
- package/package.json +3 -3
- package/430.index.js +0 -90
package/138.index.js
CHANGED
|
@@ -102,8 +102,8 @@ Take a look at the reducer(s) handling this action type: `+Ne.type+`.
|
|
|
102
102
|
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),_t.warnIfExceeded()),at}}}}function Ia(e){return typeof e=="boolean"}function wa(){return function(t){return lo(t)}}function lo(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,o=e.serializableCheck,u=o===void 0?!0:o,l=new ta;if(r&&(Ia(r)?l.push(St):l.push(St.withExtraArgument(r.extraArgument))),!1)var g,d;return l}var fo=!0;function nc(e){var t=wa(),r=e||{},n=r.reducer,i=n===void 0?void 0:n,o=r.middleware,u=o===void 0?t():o,l=r.devTools,g=l===void 0?!0:l,d=r.preloadedState,v=d===void 0?void 0:d,T=r.enhancers,V=T===void 0?void 0:T,fe;if(typeof i=="function")fe=i;else if(ri(i))fe=W(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var he=u;if(typeof he=="function"&&(he=he(t),!fo&&!Array.isArray(he)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!fo&&he.some(function(at){return typeof at!="function"}))throw new Error("each middleware provided to configureStore must be a function");var ye=st.apply(void 0,he),xe=et;g&&(xe=ao(sr({trace:!fo},typeof g=="object"&&g)));var Ie=[ye];Array.isArray(V)?Ie=bt([ye],V):typeof V=="function"&&(Ie=V(Ie));var Ne=xe.apply(void 0,Ie);return _e(fe,v,Ne)}function Qi(e,t){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var o=t.apply(void 0,n);if(!o)throw new Error("prepareAction did not return an object");return sr(sr({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function ic(e){return ri(e)&&typeof e.type=="string"&&Object.keys(e).every(Qr)}function Qr(e){return["type","payload","error","meta"].indexOf(e)>-1}function Vr(e){return""+e}function Uo(e){var t={},r=[],n,i={addCase:function(o,u){var l=typeof o=="string"?o:o.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=u,i},addMatcher:function(o,u){return r.push({matcher:o,reducer:u}),i},addDefaultCase:function(o){return n=o,i}};return e(i),[t,r,n]}function ge(e){return typeof e=="function"}var Ve=!1;function Xe(e,t,r,n){r===void 0&&(r=[]);var i=typeof t=="function"?Uo(t):[t,r,n],o=i[0],u=i[1],l=i[2],g;if(ge(e))g=function(){return oo(e())};else{var d=oo(e);g=function(){return d}}function v(T,V){T===void 0&&(T=g());var fe=bt([o[V.type]],u.filter(function(he){var ye=he.matcher;return ye(V)}).map(function(he){var ye=he.reducer;return ye}));return fe.filter(function(he){return!!he}).length===0&&(fe=[l]),fe.reduce(function(he,ye){if(ye)if(it(he)){var xe=he,Ie=ye(xe,V);return Ie===void 0?he:Ie}else{if(be(he))return Re(he,function(Ne){return ye(Ne,V)});var Ie=ye(he,V);if(Ie===void 0){if(he===null)return he;throw Error("A case reducer on a non-draftable value must not return undefined")}return Ie}return he},T)}return v.getInitialState=g,v}var Nt=!1;function yr(e,t){return e+"/"+t}function mr(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:oo(e.initialState),n=e.reducers||{},i=Object.keys(n),o={},u={},l={};i.forEach(function(v){var T=n[v],V=yr(t,v),fe,he;"reducer"in T?(fe=T.reducer,he=T.prepare):fe=T,o[v]=fe,u[V]=fe,l[v]=he?Qi(V,he):Qi(V)});function g(){var v=typeof e.extraReducers=="function"?Uo(e.extraReducers):[e.extraReducers],T=v[0],V=T===void 0?{}:T,fe=v[1],he=fe===void 0?[]:fe,ye=v[2],xe=ye===void 0?void 0:ye,Ie=sr(sr({},V),u);return Xe(r,function(Ne){for(var at in Ie)Ne.addCase(at,Ie[at]);for(var _t=0,$t=he;_t<$t.length;_t++){var nr=$t[_t];Ne.addMatcher(nr.matcher,nr.reducer)}xe&&Ne.addDefaultCase(xe)})}var d;return{name:t,reducer:function(v,T){return d||(d=g()),d(v,T)},actions:l,caseReducers:o,getInitialState:function(){return d||(d=g()),d.getInitialState()}}}function Wr(){return{ids:[],entities:{}}}function Bt(){function e(t){return t===void 0&&(t={}),Object.assign(Wr(),t)}return{getInitialState:e}}function Yr(){function e(t){var r=function(d){return d.ids},n=function(d){return d.entities},i=dn(r,n,function(d,v){return d.map(function(T){return v[T]})}),o=function(d,v){return v},u=function(d,v){return d[v]},l=dn(r,function(d){return d.length});if(!t)return{selectIds:r,selectEntities:n,selectAll:i,selectTotal:l,selectById:dn(n,o,u)};var g=dn(t,n);return{selectIds:dn(t,r),selectEntities:g,selectAll:dn(t,i),selectTotal:dn(t,l),selectById:dn(g,o,u)}}return{getSelectors:e}}function Fn(e){var t=Er(function(r,n){return e(n)});return function(n){return t(n,void 0)}}function Er(e){return function(r,n){function i(u){return ic(u)}var o=function(u){i(n)?e(n.payload,u):e(n,u)};return isDraft3(r)?(o(r),r):createNextState3(r,o)}}function mi(e,t){var r=t(e);return r}function En(e){return Array.isArray(e)||(e=Object.values(e)),e}function Ba(e,t,r){e=En(e);for(var n=[],i=[],o=0,u=e;o<u.length;o++){var l=u[o],g=mi(l,t);g in r.entities?i.push({id:g,changes:l}):n.push(l)}return[n,i]}function Va(e){function t(he,ye){var xe=mi(he,e);xe in ye.entities||(ye.ids.push(xe),ye.entities[xe]=he)}function r(he,ye){he=En(he);for(var xe=0,Ie=he;xe<Ie.length;xe++){var Ne=Ie[xe];t(Ne,ye)}}function n(he,ye){var xe=mi(he,e);xe in ye.entities||ye.ids.push(xe),ye.entities[xe]=he}function i(he,ye){he=En(he);for(var xe=0,Ie=he;xe<Ie.length;xe++){var Ne=Ie[xe];n(Ne,ye)}}function o(he,ye){he=En(he),ye.ids=[],ye.entities={},r(he,ye)}function u(he,ye){return l([he],ye)}function l(he,ye){var xe=!1;he.forEach(function(Ie){Ie in ye.entities&&(delete ye.entities[Ie],xe=!0)}),xe&&(ye.ids=ye.ids.filter(function(Ie){return Ie in ye.entities}))}function g(he){Object.assign(he,{ids:[],entities:{}})}function d(he,ye,xe){var Ie=xe.entities[ye.id],Ne=Object.assign({},Ie,ye.changes),at=mi(Ne,e),_t=at!==ye.id;return _t&&(he[ye.id]=at,delete xe.entities[ye.id]),xe.entities[at]=Ne,_t}function v(he,ye){return T([he],ye)}function T(he,ye){var xe={},Ie={};he.forEach(function(_t){_t.id in ye.entities&&(Ie[_t.id]={id:_t.id,changes:sr(sr({},Ie[_t.id]?Ie[_t.id].changes:null),_t.changes)})}),he=Object.values(Ie);var Ne=he.length>0;if(Ne){var at=he.filter(function(_t){return d(xe,_t,ye)}).length>0;at&&(ye.ids=Object.keys(ye.entities))}}function V(he,ye){return fe([he],ye)}function fe(he,ye){var xe=Ba(he,e,ye),Ie=xe[0],Ne=xe[1];T(Ne,ye),r(Ie,ye)}return{removeAll:Fn(g),addOne:Er(t),addMany:Er(r),setOne:Er(n),setMany:Er(i),setAll:Er(o),updateOne:Er(v),updateMany:Er(T),upsertOne:Er(V),upsertMany:Er(fe),removeOne:Er(u),removeMany:Er(l)}}function ac(e,t){var r=Va(e),n=r.removeOne,i=r.removeMany,o=r.removeAll;function u(Ne,at){return l([Ne],at)}function l(Ne,at){Ne=En(Ne);var _t=Ne.filter(function($t){return!(mi($t,e)in at.entities)});_t.length!==0&&xe(_t,at)}function g(Ne,at){return d([Ne],at)}function d(Ne,at){Ne=En(Ne),Ne.length!==0&&xe(Ne,at)}function v(Ne,at){Ne=En(Ne),at.entities={},at.ids=[],l(Ne,at)}function T(Ne,at){return V([Ne],at)}function V(Ne,at){for(var _t=!1,$t=0,nr=Ne;$t<nr.length;$t++){var jr=nr[$t],vn=at.entities[jr.id];if(!!vn){_t=!0,Object.assign(vn,jr.changes);var wi=e(vn);jr.id!==wi&&(delete at.entities[jr.id],at.entities[wi]=vn)}}_t&&Ie(at)}function fe(Ne,at){return he([Ne],at)}function he(Ne,at){var _t=Ba(Ne,e,at),$t=_t[0],nr=_t[1];V(nr,at),l($t,at)}function ye(Ne,at){if(Ne.length!==at.length)return!1;for(var _t=0;_t<Ne.length&&_t<at.length;_t++)if(Ne[_t]!==at[_t])return!1;return!0}function xe(Ne,at){Ne.forEach(function(_t){at.entities[e(_t)]=_t}),Ie(at)}function Ie(Ne){var at=Object.values(Ne.entities);at.sort(t);var _t=at.map(e),$t=Ne.ids;ye($t,_t)||(Ne.ids=_t)}return{removeOne:n,removeMany:i,removeAll:o,addOne:Er(u),updateOne:Er(T),upsertOne:Er(fe),setOne:Er(g),setMany:Er(d),setAll:Er(v),addMany:Er(l),updateMany:Er(V),upsertMany:Er(he)}}function oc(e){e===void 0&&(e={});var t=sr({sortComparer:!1,selectId:function(l){return l.id}},e),r=t.selectId,n=t.sortComparer,i=Bt(),o=Yr(),u=n?ac(r,n):Va(r);return sr(sr(sr({selectId:r,sortComparer:n},i),o),u)}var hl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ou=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=hl[Math.random()*64|0];return t},Ei=["name","message","stack","code"],_s=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),ni=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),_l=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=Ei;r<n.length;r++){var i=n[r];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},vl=function(){function e(t,r,n){var i=Qi(t+"/fulfilled",function(v,T,V,fe){return{payload:v,meta:Ln(sr({},fe||{}),{arg:V,requestId:T,requestStatus:"fulfilled"})}}),o=Qi(t+"/pending",function(v,T,V){return{payload:void 0,meta:Ln(sr({},V||{}),{arg:T,requestId:v,requestStatus:"pending"})}}),u=Qi(t+"/rejected",function(v,T,V,fe,he){return{payload:fe,error:(n&&n.serializeError||_l)(v||"Rejected"),meta:Ln(sr({},he||{}),{arg:V,requestId:T,rejectedWithValue:!!fe,requestStatus:"rejected",aborted:v?.name==="AbortError",condition:v?.name==="ConditionError"})}}),l=!1,g=typeof AbortController<"u"?AbortController:function(){function v(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return v.prototype.abort=function(){},v}();function d(v){return function(T,V,fe){var he=n?.idGenerator?n.idGenerator(v):ou(),ye=new g,xe,Ie=new Promise(function($t,nr){return ye.signal.addEventListener("abort",function(){return nr({name:"AbortError",message:xe||"Aborted"})})}),Ne=!1;function at($t){Ne&&(xe=$t,ye.abort())}var _t=function(){return ti(this,null,function(){var $t,nr,jr,vn,wi,ru;return vt(this,function(nu){switch(nu.label){case 0:return nu.trys.push([0,4,,5]),vn=($t=n?.condition)==null?void 0:$t.call(n,v,{getState:V,extra:fe}),su(vn)?[4,vn]:[3,2];case 1:vn=nu.sent(),nu.label=2;case 2:if(vn===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return Ne=!0,T(o(he,v,(nr=n?.getPendingMeta)==null?void 0:nr.call(n,{requestId:he,arg:v},{getState:V,extra:fe}))),[4,Promise.race([Ie,Promise.resolve(r(v,{dispatch:T,getState:V,extra:fe,requestId:he,signal:ye.signal,abort:at,rejectWithValue:function(ha,b_){return new _s(ha,b_)},fulfillWithValue:function(ha,b_){return new ni(ha,b_)}})).then(function(ha){if(ha instanceof _s)throw ha;return ha instanceof ni?i(ha.payload,he,v,ha.meta):i(ha,he,v)})])];case 3:return jr=nu.sent(),[3,5];case 4:return wi=nu.sent(),jr=wi instanceof _s?u(null,he,v,wi.payload,wi.meta):u(wi,he,v),[3,5];case 5:return ru=n&&!n.dispatchConditionRejection&&u.match(jr)&&jr.meta.condition,ru||T(jr),[2,jr]}})})}();return Object.assign(_t,{abort:at,requestId:he,arg:v,unwrap:function(){return _t.then(qa)}})}}return Object.assign(d,{pending:o,rejected:u,fulfilled:i,typePrefix:t})}return e.withTypes=e,e}();function qa(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function su(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Ha=function(e){return e&&typeof e.match=="function"},nn=function(e,t){return Ha(e)?e.match(t):e(t)};function ra(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(r){return e.some(function(n){return nn(n,r)})}}function uu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(r){return e.every(function(n){return nn(n,r)})}}function vs(e,t){if(!e||!e.meta)return!1;var r=typeof e.meta.requestId=="string",n=t.indexOf(e.meta.requestStatus)>-1;return r&&n}function na(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function A(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(r){return vs(r,["pending"])}:na(e)?function(r){var n=e.map(function(o){return o.pending}),i=ra.apply(void 0,n);return i(r)}:A()(e[0])}function c(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(r){return vs(r,["rejected"])}:na(e)?function(r){var n=e.map(function(o){return o.rejected}),i=ra.apply(void 0,n);return i(r)}:c()(e[0])}function p(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=function(n){return n&&n.meta&&n.meta.rejectedWithValue};return e.length===0?function(n){var i=uu(c.apply(void 0,e),r);return i(n)}:na(e)?function(n){var i=uu(c.apply(void 0,e),r);return i(n)}:p()(e[0])}function y(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(r){return vs(r,["fulfilled"])}:na(e)?function(r){var n=e.map(function(o){return o.fulfilled}),i=ra.apply(void 0,n);return i(r)}:y()(e[0])}function D(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(r){return vs(r,["pending","fulfilled","rejected"])}:na(e)?function(r){for(var n=[],i=0,o=e;i<o.length;i++){var u=o[i];n.push(u.pending,u.rejected,u.fulfilled)}var l=ra.apply(void 0,n);return l(r)}:D()(e[0])}var K=function(e,t){if(typeof e!="function")throw new TypeError(t+" is not a function")},Z=function(){},Ce=function(e,t){return t===void 0&&(t=Z),e.catch(t),e},$e=function(e,t){e.addEventListener("abort",t,{once:!0})},Pe=function(e,t){var r=e.signal;r.aborted||("reason"in r||Object.defineProperty(r,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},Ye="task",Ze="listener",Ke="completed",ct="cancelled",At="task-"+ct,Et="task-"+Ke,Rt=Ze+"-"+ct,Mt=Ze+"-"+Ke,ar=function(){function e(t){this.code=t,this.name="TaskAbortError",this.message=Ye+" "+ct+" (reason: "+t+")"}return e}(),Ct=function(e){if(e.aborted)throw new ar(e.reason)},Yt=function(e){return Ce(new Promise(function(t,r){var n=function(){return r(new ar(e.reason))};e.aborted?n():$e(e,n)}))},hr=function(e,t){return ti(void 0,null,function(){var r,n;return vt(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,4,5]),[4,Promise.resolve()];case 1:return i.sent(),[4,e()];case 2:return r=i.sent(),[2,{status:"ok",value:r}];case 3:return n=i.sent(),[2,{status:n instanceof ar?"cancelled":"rejected",error:n}];case 4:return t?.(),[7];case 5:return[2]}})})},tr=function(e){return function(t){return Ce(Promise.race([Yt(e),t]).then(function(r){return Ct(e),r}))}},ur=function(e){var t=tr(e);return function(r){return t(new Promise(function(n){return setTimeout(n,r)}))}},Kr=Object.assign,Si={},zr="listenerMiddleware",Ti=function(e){var t=function(r){return $e(e,function(){return Pe(r,e.reason)})};return function(r){K(r,"taskExecutor");var n=new AbortController;t(n);var i=hr(function(){return ti(void 0,null,function(){var o;return vt(this,function(u){switch(u.label){case 0:return Ct(e),Ct(n.signal),[4,r({pause:tr(n.signal),delay:ur(n.signal),signal:n.signal})];case 1:return o=u.sent(),Ct(n.signal),[2,o]}})})},function(){return Pe(n,Et)});return{result:tr(e)(i),cancel:function(){Pe(n,At)}}}},cu=function(e,t){var r=function(n,i){return ti(void 0,null,function(){var o,u,l,g;return vt(this,function(d){switch(d.label){case 0:Ct(t),o=function(){},u=new Promise(function(v){o=e({predicate:n,effect:function(T,V){V.unsubscribe(),v([T,V.getState(),V.getOriginalState()])}})}),l=[Yt(t),u],i!=null&&l.push(new Promise(function(v){return setTimeout(v,i,null)})),d.label=1;case 1:return d.trys.push([1,,3,4]),[4,Promise.race(l)];case 2:return g=d.sent(),Ct(t),[2,g];case 3:return o(),[7];case 4:return[2]}})})};return function(n,i){return Ce(r(n,i))}},gl=function(e){var t=e.type,r=e.actionCreator,n=e.matcher,i=e.predicate,o=e.effect;if(t)i=Qi(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error("Creating or removing a listener requires one of the known fields for matching an action");return K(o,"options.listener"),{predicate:i,type:t,effect:o}},lu=function(e){var t=gl(e),r=t.type,n=t.predicate,i=t.effect,o=ou(),u={id:o,effect:i,type:r,predicate:n,pending:new Set,unsubscribe:function(){throw new Error("Unsubscribe not initialized")}};return u},yl=function(e){return function(){e.forEach($o),e.clear()}},ya=function(e,t,r){try{e(t,r)}catch(n){setTimeout(function(){throw n},0)}},ii=Qi(zr+"/add"),ml=Qi(zr+"/removeAll"),li=Qi(zr+"/remove"),IE=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.error.apply(console,bt([zr+"/error"],e))},$o=function(e){e.pending.forEach(function(t){Pe(t,Rt)})};function Qa(e){var t=this;e===void 0&&(e={});var r=new Map,n=e.extra,i=e.onError,o=i===void 0?IE:i;K(o,"onError");var u=function(fe){return fe.unsubscribe=function(){return r.delete(fe.id)},r.set(fe.id,fe),function(he){fe.unsubscribe(),he?.cancelActive&&$o(fe)}},l=function(fe){for(var he=0,ye=Array.from(r.values());he<ye.length;he++){var xe=ye[he];if(fe(xe))return xe}},g=function(fe){var he=l(function(ye){return ye.effect===fe.effect});return he||(he=lu(fe)),u(he)},d=function(fe){var he=gl(fe),ye=he.type,xe=he.effect,Ie=he.predicate,Ne=l(function(at){var _t=typeof ye=="string"?at.type===ye:at.predicate===Ie;return _t&&at.effect===xe});return Ne&&(Ne.unsubscribe(),fe.cancelActive&&$o(Ne)),!!Ne},v=function(fe,he,ye,xe){return ti(t,null,function(){var Ie,Ne,at;return vt(this,function(_t){switch(_t.label){case 0:Ie=new AbortController,Ne=cu(g,Ie.signal),_t.label=1;case 1:return _t.trys.push([1,3,4,5]),fe.pending.add(Ie),[4,Promise.resolve(fe.effect(he,Kr({},ye,{getOriginalState:xe,condition:function($t,nr){return Ne($t,nr).then(Boolean)},take:Ne,delay:ur(Ie.signal),pause:tr(Ie.signal),extra:n,signal:Ie.signal,fork:Ti(Ie.signal),unsubscribe:fe.unsubscribe,subscribe:function(){r.set(fe.id,fe)},cancelActiveListeners:function(){fe.pending.forEach(function($t,nr,jr){$t!==Ie&&(Pe($t,Rt),jr.delete($t))})}})))];case 2:return _t.sent(),[3,5];case 3:return at=_t.sent(),at instanceof ar||ya(o,at,{raisedBy:"effect"}),[3,5];case 4:return Pe(Ie,Mt),fe.pending.delete(Ie),[7];case 5:return[2]}})})},T=yl(r),V=function(fe){return function(he){return function(ye){if(ii.match(ye))return g(ye.payload);if(ml.match(ye)){T();return}if(li.match(ye))return d(ye.payload);var xe=fe.getState(),Ie=function(){if(xe===Si)throw new Error(zr+": getOriginalState can only be called synchronously");return xe},Ne;try{if(Ne=he(ye),r.size>0)for(var at=fe.getState(),_t=Array.from(r.values()),$t=0,nr=_t;$t<nr.length;$t++){var jr=nr[$t],vn=!1;try{vn=jr.predicate(ye,at,xe)}catch(wi){vn=!1,ya(o,wi,{raisedBy:"predicate"})}!vn||v(jr,ye,fe,Ie)}}finally{xe=Si}return Ne}}};return{middleware:V,startListening:g,stopListening:d,clearListeners:T}}var Od="RTK_autoBatch",gR=function(){return function(e){var t;return{payload:e,meta:(t={},t[Od]=!0,t)}}},R_,wE=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:m.g):function(e){return(R_||(R_=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},NE=function(e){return function(t){setTimeout(t,e)}},yR=function(e){return e===void 0&&(e={type:"raf"}),function(t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(void 0,r),o=!0,u=!1,l=!1,g=new Set,d=e.type==="tick"?wE:e.type==="raf"?requestAnimationFrame:e.type==="callback"?e.queueNotification:NE(e.timeout),v=function(){l=!1,u&&(u=!1,g.forEach(function(T){return T()}))};return Object.assign({},i,{subscribe:function(T){var V=function(){return o&&T()},fe=i.subscribe(V);return g.add(T),function(){fe(),g.delete(T)}},dispatch:function(T){var V;try{return o=!((V=T?.meta)!=null&&V[Od]),u=!o,u&&(l||(l=!0,d(v))),i.dispatch(T)}finally{o=!0}}})}}};$n();const fu=mr({name:"client",initialState:{},reducers:{replace:(e,{payload:t})=>t}}),Qe=e=>e.client,ot={},tt=mr({name:"user",initialState:ot,reducers:{replace:(e,{payload:t})=>t,updateTokens:(e,{payload:{accessToken:t,idToken:r,refreshToken:n}})=>{e.tokenData&&(e.tokenData.accessToken.jwtToken=t,e.tokenData.idToken.jwtToken=r,e.tokenData.refreshToken.token=n||e.tokenData.refreshToken.token)},logout:()=>ot}}),xt=e=>e.user.tokenData,cr=e=>e.user,Fr=mr({name:"telemetry",initialState:{},reducers:{replace:(e,{payload:t})=>t}}),zn=e=>e.telemetry,an=W({[fu.name]:fu.reducer,[tt.name]:tt.reducer,[Fr.name]:Fr.reducer}),Ad=e=>nc({reducer:an,preloadedState:e});fu.actions;const Cd=tt.actions;var An;(function(e){e.one="1.0.0"})(An||(An={}));const kn="orchestrator:state-service",ME=e=>({id:kn,create:()=>{const t=Ad(e);return{[An.one]:()=>({featureService:{getStore:()=>t,getState:()=>t.getState(),getUser:()=>cr(t.getState()),getUserTokenData:()=>xt(t.getState()),getClientContext:()=>Qe(t.getState()),getTelemetryConfig:()=>zn(t.getState()),setUser:r=>t.dispatch(Cd.replace(r)),updateTokens:r=>t.dispatch(Cd.updateTokens(r)),logoutUser:()=>t.dispatch(Cd.logout())}})}}});var ia;(function(e){e.one="1.0.0"})(ia||(ia={}));const aa="orchestrator:api-client",El={id:aa,dependencies:{featureServices:{[kn]:An.one}},create:({featureServices:e})=>{const t=e[kn],{apiMap:r}=t.getClientContext(),n=new te.ApiClient(r);return{[ia.one]:()=>({featureService:n})}}};var Jr=m(7799),Sl;(function(e){e.one="1.0.0"})(Sl||(Sl={}));const Pd="orchestrator:theme-service",Tl={id:Pd,dependencies:{featureServices:{[aa]:ia.one,[kn]:An.one}},create:({featureServices:e})=>{const t=e[aa],r=e[kn],{slug:n}=r.getClientContext(),i=new Jr.ThemeFactory(t,n);return{[Sl.one]:()=>({featureService:i})}}};var mR=m(1085),LE=m(4041),I_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},gs=function(e){return e&&e.Math==Math&&e},pn=gs(typeof globalThis=="object"&&globalThis)||gs(typeof window=="object"&&window)||gs(typeof self=="object"&&self)||gs(typeof I_=="object"&&I_)||function(){return this}()||Function("return this")(),ys={},Wi=function(e){try{return!!e()}catch{return!0}},bl=Wi,ma=!bl(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),w_=Wi,ms=!w_(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),N_=ms,Fo=Function.prototype.call,ai=N_?Fo.bind(Fo):function(){return Fo.apply(Fo,arguments)},du={},M_={}.propertyIsEnumerable,L_=Object.getOwnPropertyDescriptor,DE=L_&&!M_.call({1:2},1);du.f=DE?function(t){var r=L_(this,t);return!!r&&r.enumerable}:M_;var pu=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},sc=ms,Ol=Function.prototype,xE=Ol.bind,Al=Ol.call,UE=sc&&xE.bind(Al,Al),Yi=sc?function(e){return e&&UE(e)}:function(e){return e&&function(){return Al.apply(e,arguments)}},Qn=Yi,bi=Qn({}.toString),$E=Qn("".slice),Rd=function(e){return $E(bi(e),8,-1)},D_=Yi,FE=Wi,Id=Rd,Es=Object,wd=D_("".split),Ss=FE(function(){return!Es("z").propertyIsEnumerable(0)})?function(e){return Id(e)=="String"?wd(e,""):Es(e)}:Es,uc=TypeError,hu=function(e){if(e==null)throw uc("Can't call method on "+e);return e},Cl=Ss,_u=hu,cc=function(e){return Cl(_u(e))},Wn=function(e){return typeof e=="function"},kE=Wn,Ts=function(e){return typeof e=="object"?e!==null:kE(e)},Nd=pn,Pl=Wn,lc=function(e){return Pl(e)?e:void 0},po=function(e,t){return arguments.length<2?lc(Nd[e]):Nd[e]&&Nd[e][t]},ne=Yi,ko=ne({}.isPrototypeOf),Rl=po,Li=Rl("navigator","userAgent")||"",Or=pn,Md=Li,x_=Or.process,U_=Or.Deno,Go=x_&&x_.versions||U_&&U_.version,$_=Go&&Go.v8,Na,Il;$_&&(Na=$_.split("."),Il=Na[0]>0&&Na[0]<4?1:+(Na[0]+Na[1])),!Il&&Md&&(Na=Md.match(/Edge\/(\d+)/),(!Na||Na[1]>=74)&&(Na=Md.match(/Chrome\/(\d+)/),Na&&(Il=+Na[1])));var F_=Il,k_=F_,ho=Wi,G_=!!Object.getOwnPropertySymbols&&!ho(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&k_&&k_<41}),GE=G_,j_=GE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",jE=po,BE=Wn,_o=ko,VE=j_,qE=Object,B_=VE?function(e){return typeof e=="symbol"}:function(e){var t=jE("Symbol");return BE(t)&&_o(t.prototype,qE(e))},HE=String,wl=function(e){try{return HE(e)}catch{return"Object"}},bs=Wn,QE=wl,WE=TypeError,fi=function(e){if(bs(e))return e;throw WE(QE(e)+" is not a function")},YE=fi,Ld=function(e,t){var r=e[t];return r==null?void 0:YE(r)},Dd=ai,xd=Wn,Ud=Ts,V_=TypeError,q_=function(e,t){var r,n;if(t==="string"&&xd(r=e.toString)&&!Ud(n=Dd(r,e))||xd(r=e.valueOf)&&!Ud(n=Dd(r,e))||t!=="string"&&xd(r=e.toString)&&!Ud(n=Dd(r,e)))return n;throw V_("Can't convert object to primitive value")},$d={exports:{}},H_=pn,Fd=Object.defineProperty,Os=function(e,t){try{Fd(H_,e,{value:t,configurable:!0,writable:!0})}catch{H_[e]=t}return t},Nl=pn,KE=Os,kd="__core-js_shared__",zE=Nl[kd]||KE(kd,{}),Ma=zE,Ml=Ma;($d.exports=function(e,t){return Ml[e]||(Ml[e]=t!==void 0?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"});var As=hu,Ea=Object,Gd=function(e){return Ea(As(e))},Q_=Yi,W_=Gd,fc=Q_({}.hasOwnProperty),di=Object.hasOwn||function(t,r){return fc(W_(t),r)},Y_=Yi,JE=0,Ll=Math.random(),XE=Y_(1 .toString),jd=function(e){return"Symbol("+(e===void 0?"":e)+")_"+XE(++JE+Ll,36)},pi=pn,Bd=$d.exports,Vd=di,Wa=jd,Dl=G_,dc=j_,Sa=Bd("wks"),jo=pi.Symbol,Oi=jo&&jo.for,qd=dc?jo:jo&&jo.withoutSetter||Wa,Ki=function(e){if(!Vd(Sa,e)||!(Dl||typeof Sa[e]=="string")){var t="Symbol."+e;Dl&&Vd(jo,e)?Sa[e]=jo[e]:dc&&Oi?Sa[e]=Oi(t):Sa[e]=qd(t)}return Sa[e]},ZE=ai,K_=Ts,xl=B_,eS=Ld,pc=q_,z_=Ki,tS=TypeError,rS=z_("toPrimitive"),hc=function(e,t){if(!K_(e)||xl(e))return e;var r=eS(e,rS),n;if(r){if(t===void 0&&(t="default"),n=ZE(r,e,t),!K_(n)||xl(n))return n;throw tS("Can't convert object to primitive value")}return t===void 0&&(t="number"),pc(e,t)},nS=hc,iS=B_,Ul=function(e){var t=nS(e,"string");return iS(t)?t:t+""},J_=pn,X_=Ts,Hd=J_.document,aS=X_(Hd)&&X_(Hd.createElement),_c=function(e){return aS?Hd.createElement(e):{}},Qd=ma,oS=Wi,Wd=_c,Yd=!Qd&&!oS(function(){return Object.defineProperty(Wd("div"),"a",{get:function(){return 7}}).a!=7}),Z_=ma,ev=ai,$l=du,sS=pu,tv=cc,rv=Ul,uS=di,nv=Yd,iv=Object.getOwnPropertyDescriptor;ys.f=Z_?iv:function(t,r){if(t=tv(t),r=rv(r),nv)try{return iv(t,r)}catch{}if(uS(t,r))return sS(!ev($l.f,t,r),t[r])};var La={},av=ma,Kd=Wi,ov=av&&Kd(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),zd=Ts,Sr=String,cS=TypeError,Ya=function(e){if(zd(e))return e;throw cS(Sr(e)+" is not an object")},vc=ma,sv=Yd,lS=ov,Fl=Ya,oa=Ul,fS=TypeError,vu=Object.defineProperty,Jd=Object.getOwnPropertyDescriptor,kl="enumerable",Gl="configurable",Di="writable";La.f=vc?lS?function(t,r,n){if(Fl(t),r=oa(r),Fl(n),typeof t=="function"&&r==="prototype"&&"value"in n&&Di in n&&!n[Di]){var i=Jd(t,r);i&&i[Di]&&(t[r]=n.value,n={configurable:Gl in n?n[Gl]:i[Gl],enumerable:kl in n?n[kl]:i[kl],writable:!1})}return vu(t,r,n)}:vu:function(t,r,n){if(Fl(t),r=oa(r),Fl(n),sv)try{return vu(t,r,n)}catch{}if("get"in n||"set"in n)throw fS("Accessors not supported");return"value"in n&&(t[r]=n.value),t};var Bo=ma,Xd=La,uv=pu,Cs=Bo?function(e,t,r){return Xd.f(e,t,uv(1,r))}:function(e,t,r){return e[t]=r,e},Zd={exports:{}},gc=ma,cv=di,jl=Function.prototype,ep=gc&&Object.getOwnPropertyDescriptor,Ka=cv(jl,"name"),dS=Ka&&function(){}.name==="something",Vo=Ka&&(!gc||gc&&ep(jl,"name").configurable),tp={EXISTS:Ka,PROPER:dS,CONFIGURABLE:Vo},lv=Yi,rp=Wn,np=Ma,pS=lv(Function.toString);rp(np.inspectSource)||(np.inspectSource=function(e){return pS(e)});var Bl=np.inspectSource,fv=pn,dv=Wn,hS=Bl,ip=fv.WeakMap,pv=dv(ip)&&/native code/.test(hS(ip)),zi=$d.exports,za=jd,hv=zi("keys"),ap=function(e){return hv[e]||(hv[e]=za(e))},gu={},yu=pv,op=pn,Vl=Yi,_S=Ts,_v=Cs,qo=di,Ps=Ma,vS=ap,vv=gu,sp="Object already initialized",mu=op.TypeError,gv=op.WeakMap,Rs,Is,ws,gS=function(e){return ws(e)?Is(e):Rs(e,{})},yv=function(e){return function(t){var r;if(!_S(t)||(r=Is(t)).type!==e)throw mu("Incompatible receiver, "+e+" required");return r}};if(yu||Ps.state){var Ja=Ps.state||(Ps.state=new gv),mv=Vl(Ja.get),ql=Vl(Ja.has),yS=Vl(Ja.set);Rs=function(e,t){if(ql(Ja,e))throw new mu(sp);return t.facade=e,yS(Ja,e,t),t},Is=function(e){return mv(Ja,e)||{}},ws=function(e){return ql(Ja,e)}}else{var Ns=vS("state");vv[Ns]=!0,Rs=function(e,t){if(qo(e,Ns))throw new mu(sp);return t.facade=e,_v(e,Ns,t),t},Is=function(e){return qo(e,Ns)?e[Ns]:{}},ws=function(e){return qo(e,Ns)}}var Da={set:Rs,get:Is,has:ws,enforce:gS,getterFor:yv},Ev=Wi,Sv=Wn,Hl=di,Ql=ma,mS=tp.CONFIGURABLE,ES=Bl,Xa=Da,up=Xa.enforce,cp=Xa.get,Eu=Object.defineProperty,Wl=Ql&&!Ev(function(){return Eu(function(){},"length",{value:8}).length!==8}),Su=String(String).split("String"),Wt=Zd.exports=function(e,t,r){String(t).slice(0,7)==="Symbol("&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Hl(e,"name")||mS&&e.name!==t)&&(Ql?Eu(e,"name",{value:t,configurable:!0}):e.name=t),Wl&&r&&Hl(r,"arity")&&e.length!==r.arity&&Eu(e,"length",{value:r.arity});try{r&&Hl(r,"constructor")&&r.constructor?Ql&&Eu(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var n=up(e);return Hl(n,"source")||(n.source=Su.join(typeof t=="string"?t:"")),e};Function.prototype.toString=Wt(function(){return Sv(this)&&cp(this).source||ES(this)},"toString");var Yl=Wn,lp=La,Ms=Zd.exports,SS=Os,Ls=function(e,t,r,n){n||(n={});var i=n.enumerable,o=n.name!==void 0?n.name:t;if(Yl(r)&&Ms(r,o,n),n.global)i?e[t]=r:SS(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch{}i?e[t]=r:lp.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},fp={},Ai=Math.ceil,TS=Math.floor,bS=Math.trunc||function(t){var r=+t;return(r>0?TS:Ai)(r)},Tv=bS,bv=function(e){var t=+e;return t!==t||t===0?0:Tv(t)},Ov=bv,OS=Math.max,AS=Math.min,CS=function(e,t){var r=Ov(e);return r<0?OS(r+t,0):AS(r,t)},vo=bv,xi=Math.min,dp=function(e){return e>0?xi(vo(e),9007199254740991):0},PS=dp,Kl=function(e){return PS(e.length)},RS=cc,IS=CS,yc=Kl,pp=function(e){return function(t,r,n){var i=RS(t),o=yc(i),u=IS(n,o),l;if(e&&r!=r){for(;o>u;)if(l=i[u++],l!=l)return!0}else for(;o>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},Av={includes:pp(!0),indexOf:pp(!1)},wS=Yi,hp=di,NS=cc,MS=Av.indexOf,Cv=gu,_p=wS([].push),Pv=function(e,t){var r=NS(e),n=0,i=[],o;for(o in r)!hp(Cv,o)&&hp(r,o)&&_p(i,o);for(;t.length>n;)hp(r,o=t[n++])&&(~MS(i,o)||_p(i,o));return i},mc=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Rv=Pv,Ec=mc,vp=Ec.concat("length","prototype");fp.f=Object.getOwnPropertyNames||function(t){return Rv(t,vp)};var zl={};zl.f=Object.getOwnPropertySymbols;var Iv=po,Jl=Yi,wv=fp,Za=zl,Ds=Ya,LS=Jl([].concat),Nv=Iv("Reflect","ownKeys")||function(t){var r=wv.f(Ds(t)),n=Za.f;return n?LS(r,n(t)):r},Mv=di,DS=Nv,xS=ys,US=La,$S=function(e,t,r){for(var n=DS(t),i=US.f,o=xS.f,u=0;u<n.length;u++){var l=n[u];!Mv(e,l)&&!(r&&Mv(r,l))&&i(e,l,o(t,l))}},FS=Wi,kS=Wn,GS=/#|\.prototype\./,Sc=function(e,t){var r=BS[jS(e)];return r==Dv?!0:r==Lv?!1:kS(t)?FS(t):!!t},jS=Sc.normalize=function(e){return String(e).replace(GS,".").toLowerCase()},BS=Sc.data={},Lv=Sc.NATIVE="N",Dv=Sc.POLYFILL="P",gp=Sc,yp=pn,VS=ys.f,qS=Cs,xv=Ls,HS=Os,QS=$S,WS=gp,Ho=function(e,t){var r=e.target,n=e.global,i=e.stat,o,u,l,g,d,v;if(n?u=yp:i?u=yp[r]||HS(r,{}):u=(yp[r]||{}).prototype,u)for(l in t){if(d=t[l],e.dontCallGetSet?(v=VS(u,l),g=v&&v.value):g=u[l],o=WS(n?l:r+(i?".":"#")+l,e.forced),!o&&g!==void 0){if(typeof d==typeof g)continue;QS(d,g)}(e.sham||g&&g.sham)&&qS(d,"sham",!0),xv(u,l,d,e)}},YS=Wn,KS=String,Ta=TypeError,zS=function(e){if(typeof e=="object"||YS(e))return e;throw Ta("Can't set "+KS(e)+" as a prototype")},JS=Yi,XS=Ya,Uv=zS,$v=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=JS(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),r(t,[]),e=t instanceof Array}catch{}return function(i,o){return XS(i),Uv(o),e?r(i,o):i.__proto__=o,i}}():void 0),ZS=La.f,eT=di,tT=Ki,Xl=tT("toStringTag"),mp=function(e,t,r){e&&!r&&(e=e.prototype),e&&!eT(e,Xl)&&ZS(e,Xl,{configurable:!0,value:t})},rT=po,Fv=rT("document","documentElement"),Tc={},nT=Pv,iT=mc,kv=Object.keys||function(t){return nT(t,iT)},Gv=ma,aT=Yi,oT=ai,sT=Wi,Ep=kv,uT=zl,cT=du,lT=Gd,fT=Ss,Tu=Object.assign,jv=Object.defineProperty,dT=aT([].concat),pT=!Tu||sT(function(){if(Gv&&Tu({b:1},Tu(jv({},"a",{enumerable:!0,get:function(){jv(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(i){t[i]=i}),Tu({},e)[r]!=7||Ep(Tu({},t)).join("")!=n})?function(t,r){for(var n=lT(t),i=arguments.length,o=1,u=uT.f,l=cT.f;i>o;)for(var g=fT(arguments[o++]),d=u?dT(Ep(g),u(g)):Ep(g),v=d.length,T=0,V;v>T;)V=d[T++],(!Gv||oT(l,g,V))&&(n[V]=g[V]);return n}:Tu,Sp=Ho,Tp=pT;Sp({target:"Object",stat:!0,arity:2,forced:Object.assign!==Tp},{assign:Tp});const hT={setProfileProperties(){},trackEvent(){},reset(){console.warn("Reset method not implemented for analytics context.")}},Bv=null,ER=({children:e,analyticsService:t})=>jsx(Bv.Provider,Object.assign({value:t||hT},{children:e}));function _T(){return useContext(Bv)}var Vv={},vT=ma,gT=ov,yT=La,qv=Ya,mT=cc,Zl=kv;Vv.f=vT&&!gT?Object.defineProperties:function(t,r){qv(t);for(var n=mT(r),i=Zl(r),o=i.length,u=0,l;o>u;)yT.f(t,l=i[u++],n[l]);return t};var ET=Ya,ST=Vv,Hv=mc,TT=gu,bT=Fv,OT=_c,AT=ap,Qv=">",Wv="<",bp="prototype",Op="script",Yv=AT("IE_PROTO"),Ap=function(){},Kv=function(e){return Wv+Op+Qv+e+Wv+"/"+Op+Qv},zv=function(e){e.write(Kv("")),e.close();var t=e.parentWindow.Object;return e=null,t},CT=function(){var e=OT("iframe"),t="java"+Op+":",r;return e.style.display="none",bT.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(Kv("document.F=Object")),r.close(),r.F},bc,Oc=function(){try{bc=new ActiveXObject("htmlfile")}catch{}Oc=typeof document<"u"?document.domain&&bc?zv(bc):CT():zv(bc);for(var e=Hv.length;e--;)delete Oc[bp][Hv[e]];return Oc()};TT[Yv]=!0;var Jv=Object.create||function(t,r){var n;return t!==null?(Ap[bp]=ET(t),n=new Ap,Ap[bp]=null,n[Yv]=t):n=Oc(),r===void 0?n:ST.f(n,r)},PT=Ki,RT=Jv,IT=La.f,bu=PT("unscopables"),Cp=Array.prototype;Cp[bu]==null&&IT(Cp,bu,{configurable:!0,value:RT(null)});var wT=function(e){Cp[bu][e]=!0},NT=Wi,MT=!NT(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),LT=di,DT=Wn,xT=Gd,UT=ap,$T=MT,Xv=UT("IE_PROTO"),Pp=Object,ef=Pp.prototype,Zv=$T?Pp.getPrototypeOf:function(e){var t=xT(e);if(LT(t,Xv))return t[Xv];var r=t.constructor;return DT(r)&&t instanceof r?r.prototype:t instanceof Pp?ef:null},eg=Wi,tg=Wn,tf=Zv,rg=Ls,ng=Ki,rf=ng("iterator"),Rp=!1,xs,Ip,wp;[].keys&&(wp=[].keys(),"next"in wp?(Ip=tf(tf(wp)),Ip!==Object.prototype&&(xs=Ip)):Rp=!0);var nf=xs==null||eg(function(){var e={};return xs[rf].call(e)!==e});nf&&(xs={}),tg(xs[rf])||rg(xs,rf,function(){return this});var Ac={IteratorPrototype:xs,BUGGY_SAFARI_ITERATORS:Rp},FT=Ac.IteratorPrototype,kT=Jv,Np=pu,ig=mp,GT=Tc,jT=function(){return this},BT=function(e,t,r,n){var i=t+" Iterator";return e.prototype=kT(FT,{next:Np(+!n,r)}),ig(e,i,!1),GT[i]=jT,e},VT=Ho,qT=ai,ag=tp,HT=Wn,QT=BT,og=Zv,sg=$v,WT=mp,YT=Cs,sa=Ls,KT=Ki,zT=Tc,Qo=Ac,fr=ag.PROPER,JT=ag.CONFIGURABLE,Ui=Qo.IteratorPrototype,Sn=Qo.BUGGY_SAFARI_ITERATORS,Cc=KT("iterator"),go="keys",Pc="values",ug="entries",XT=function(){return this},ZT=function(e,t,r,n,i,o,u){QT(r,t,n);var l=function(Ie){if(Ie===i&&V)return V;if(!Sn&&Ie in v)return v[Ie];switch(Ie){case go:return function(){return new r(this,Ie)};case Pc:return function(){return new r(this,Ie)};case ug:return function(){return new r(this,Ie)}}return function(){return new r(this)}},g=t+" Iterator",d=!1,v=e.prototype,T=v[Cc]||v["@@iterator"]||i&&v[i],V=!Sn&&T||l(i),fe=t=="Array"&&v.entries||T,he,ye,xe;if(fe&&(he=og(fe.call(new e)),he!==Object.prototype&&he.next&&(og(he)!==Ui&&(sg?sg(he,Ui):HT(he[Cc])||sa(he,Cc,XT)),WT(he,g,!0))),fr&&i==Pc&&T&&T.name!==Pc&&(JT?YT(v,"name",Pc):(d=!0,V=function(){return qT(T,this)})),i)if(ye={values:l(Pc),keys:o?V:l(go),entries:l(ug)},u)for(xe in ye)(Sn||d||!(xe in v))&&sa(v,xe,ye[xe]);else VT({target:t,proto:!0,forced:Sn||d},ye);return v[Cc]!==V&&sa(v,Cc,V,{name:i}),zT[t]=V,ye},eb=cc,Rc=wT,cg=Tc,eo=Da,lg=La.f,af=ZT,Cn=ma,Pn="Array Iterator",fg=eo.set,tb=eo.getterFor(Pn),rb=af(Array,"Array",function(e,t){fg(this,{type:Pn,target:eb(e),index:0,kind:t})},function(){var e=tb(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),dg=cg.Arguments=cg.Array;if(Rc("keys"),Rc("values"),Rc("entries"),Cn&&dg.name!=="values")try{lg(dg,"name",{value:"values"})}catch{}var nb={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},ib=_c,Mp=ib("span").classList,Lp=Mp&&Mp.constructor&&Mp.constructor.prototype,Ic=Lp===Object.prototype?void 0:Lp,of=pn,pg=nb,hg=Ic,Wo=rb,$i=Cs,Us=Ki,Dp=Us("iterator"),_g=Us("toStringTag"),xp=Wo.values,vg=function(e,t){if(e){if(e[Dp]!==xp)try{$i(e,Dp,xp)}catch{e[Dp]=xp}if(e[_g]||$i(e,_g,t),pg[t]){for(var r in Wo)if(e[r]!==Wo[r])try{$i(e,r,Wo[r])}catch{e[r]=Wo[r]}}}};for(var Up in pg)vg(of[Up]&&of[Up].prototype,Up);vg(hg,"DOMTokenList");const $p=LE.createContext({customProperties:{},prefixArray:[],trackEvent(){},setProfileProperties(){},updateCustomProperty(){},clearCustomProperty(){},updateCustomProperties(){},clearCustomProperties(){},setPrefixArray(){},pushPrefix(){},popPrefix(){},reset(){console.warn("Reset method not implemented for custom analytics context.")}}),Yo=({children:e})=>{const{trackEvent:t,setProfileProperties:r}=_T(),[n,i]=useState({}),T={trackEvent:(V,fe=void 0,he=void 0)=>{const ye=[V],xe=Object.assign(Object.assign({},n),fe);Object.keys(xe).length&&ye.push(xe),he&&ye.push(he),t(...ye)},setProfileProperties:r,customProperties:n,updateCustomProperty:(V,fe)=>{i(he=>Object.assign(Object.assign({},he),{[V]:fe}))},clearCustomProperty:V=>{n==null||delete n[V],i(Object.assign({},n))},updateCustomProperties:V=>{i(fe=>Object.assign(Object.assign({},fe),V))},clearCustomProperties:()=>{i({})},reset:()=>{console.warn("Reset method not implemented for custom analytics context.")}};return jsx($p.Provider,Object.assign({value:T},{children:e}))};function vr(){return useContext($p)}var $s=m(6934),ba=m(5250),gg=Rd,ab=pn,xr=gg(ab.process)=="process",ob=po,yg=La,sf=Ki,sb=ma,mg=sf("species"),ub=function(e){var t=ob(e),r=yg.f;sb&&t&&!t[mg]&&r(t,mg,{configurable:!0,get:function(){return this}})},cb=ko,lb=TypeError,fb=function(e,t){if(cb(t,e))return e;throw lb("Incorrect invocation")},db=Ki,pb=db("toStringTag"),Eg={};Eg[pb]="z";var hb=String(Eg)==="[object z]",_b=hb,vb=Wn,uf=Rd,Fp=Ki,gb=Fp("toStringTag"),kp=Object,yb=uf(function(){return arguments}())=="Arguments",mb=function(e,t){try{return e[t]}catch{}},Sg=_b?uf:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=mb(t=kp(e),gb))=="string"?r:yb?uf(t):(n=uf(t))=="Object"&&vb(t.callee)?"Arguments":n},oi=Yi,Ji=Wi,Tg=Wn,Eb=Sg,Sb=po,bg=Bl,Og=function(){},Tb=[],Ag=Sb("Reflect","construct"),cf=/^\s*(?:class|function)\b/,bb=oi(cf.exec),Ob=!cf.exec(Og),wc=function(t){if(!Tg(t))return!1;try{return Ag(Og,Tb,t),!0}catch{return!1}},Gp=function(t){if(!Tg(t))return!1;switch(Eb(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ob||!!bb(cf,bg(t))}catch{return!0}};Gp.sham=!0;var Cg=!Ag||Ji(function(){var e;return wc(wc.call)||!wc(Object)||!wc(function(){e=!0})||e})?Gp:wc,Ab=Cg,Cb=wl,Pb=TypeError,Rb=function(e){if(Ab(e))return e;throw Pb(Cb(e)+" is not a constructor")},Fs=Ya,Ib=Rb,wb=Ki,Nb=wb("species"),Mb=function(e,t){var r=Fs(e).constructor,n;return r===void 0||(n=Fs(r)[Nb])==null?t:Ib(n)},Lb=ms,jp=Function.prototype,Bp=jp.apply,Pg=jp.call,Db=typeof Reflect=="object"&&Reflect.apply||(Lb?Pg.bind(Bp):function(){return Pg.apply(Bp,arguments)}),Rg=Yi,xb=fi,Ub=ms,$b=Rg(Rg.bind),Vp=function(e,t){return xb(e),t===void 0?e:Ub?$b(e,t):function(){return e.apply(t,arguments)}},Fb=Yi,kb=Fb([].slice),Gb=TypeError,jb=function(e,t){if(e<t)throw Gb("Not enough arguments");return e},Bb=Li,Ig=/(?:ipad|iphone|ipod).*applewebkit/i.test(Bb),ua=pn,Vb=Db,qb=Vp,wg=Wn,Hb=di,Qb=Wi,Ng=Fv,Wb=kb,Mg=_c,Yb=jb,Kb=Ig,zb=xr,Nc=ua.setImmediate,lf=ua.clearImmediate,Lg=ua.process,qp=ua.Dispatch,Jb=ua.Function,Dg=ua.MessageChannel,Hp=ua.String,Qp=0,Mc={},xg="onreadystatechange",si,yo,Wp,Yp;try{si=ua.location}catch{}var Kp=function(e){if(Hb(Mc,e)){var t=Mc[e];delete Mc[e],t()}},zp=function(e){return function(){Kp(e)}},ff=function(e){Kp(e.data)},Ug=function(e){ua.postMessage(Hp(e),si.protocol+"//"+si.host)};(!Nc||!lf)&&(Nc=function(t){Yb(arguments.length,1);var r=wg(t)?t:Jb(t),n=Wb(arguments,1);return Mc[++Qp]=function(){Vb(r,void 0,n)},yo(Qp),Qp},lf=function(t){delete Mc[t]},zb?yo=function(e){Lg.nextTick(zp(e))}:qp&&qp.now?yo=function(e){qp.now(zp(e))}:Dg&&!Kb?(Wp=new Dg,Yp=Wp.port2,Wp.port1.onmessage=ff,yo=qb(Yp.postMessage,Yp)):ua.addEventListener&&wg(ua.postMessage)&&!ua.importScripts&&si&&si.protocol!=="file:"&&!Qb(Ug)?(yo=Ug,ua.addEventListener("message",ff,!1)):xg in Mg("script")?yo=function(e){Ng.appendChild(Mg("script"))[xg]=function(){Ng.removeChild(this),Kp(e)}}:yo=function(e){setTimeout(zp(e),0)});var df={set:Nc,clear:lf},Xb=Li,Zb=pn,eO=/ipad|iphone|ipod/i.test(Xb)&&Zb.Pebble!==void 0,tO=Li,$g=/web0s(?!.*chrome)/i.test(tO),ks=pn,Fg=Vp,rO=ys.f,Lc=df.set,Jp=Ig,nO=eO,iO=$g,Xp=xr,kg=ks.MutationObserver||ks.WebKitMutationObserver,Gg=ks.document,jg=ks.process,pf=ks.Promise,Bg=rO(ks,"queueMicrotask"),Vg=Bg&&Bg.value,Dc,Gs,xc,Ou,Zp,eh,hf,qg;Vg||(Dc=function(){var e,t;for(Xp&&(e=jg.domain)&&e.exit();Gs;){t=Gs.fn,Gs=Gs.next;try{t()}catch(r){throw Gs?Ou():xc=void 0,r}}xc=void 0,e&&e.enter()},!Jp&&!Xp&&!iO&&kg&&Gg?(Zp=!0,eh=Gg.createTextNode(""),new kg(Dc).observe(eh,{characterData:!0}),Ou=function(){eh.data=Zp=!Zp}):!nO&&pf&&pf.resolve?(hf=pf.resolve(void 0),hf.constructor=pf,qg=Fg(hf.then,hf),Ou=function(){qg(Dc)}):Xp?Ou=function(){jg.nextTick(Dc)}:(Lc=Fg(Lc,ks),Ou=function(){Lc(Dc)}));var aO=Vg||function(e){var t={fn:e,next:void 0};xc&&(xc.next=t),Gs||(Gs=t,Ou()),xc=t},oO=pn,sO=function(e,t){var r=oO.console;r&&r.error&&(arguments.length==1?r.error(e):r.error(e,t))},th=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},a=function(){this.head=null,this.tail=null};a.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}};var s=a,f=pn,E=f.Promise,G=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",le=G,Oe=xr,Fe=!le&&!Oe&&typeof window=="object"&&typeof document=="object",We=pn,dt=E,ht=Wn,gt=gp,It=Bl,Gt=Ki,Kt=Fe,gr=G,Qt=F_;dt&&dt.prototype;var Ar=Gt("species"),Cr=!1,Xi=ht(We.PromiseRejectionEvent),Fi=gt("Promise",function(){var e=It(dt),t=e!==String(dt);if(!t&&Qt===66)return!0;if(!Qt||Qt<51||!/native code/.test(e)){var r=new dt(function(o){o(1)}),n=function(o){o(function(){},function(){})},i=r.constructor={};if(i[Ar]=n,Cr=r.then(function(){})instanceof n,!Cr)return!0}return!t&&(Kt||gr)&&!Xi}),hi={CONSTRUCTOR:Fi,REJECTION_EVENT:Xi,SUBCLASSING:Cr},cn={},Oa=fi,mo=function(e){var t,r;this.promise=new e(function(n,i){if(t!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");t=n,r=i}),this.resolve=Oa(t),this.reject=Oa(r)};cn.f=function(e){return new mo(e)};var Hg=Ho,Qg=xr,Au=pn,_f=ai,SR=Ls,TR=$v,Zj=mp,eB=ub,tB=fi,Wg=Wn,rB=Ts,nB=fb,iB=Mb,bR=df.set,uO=aO,aB=sO,oB=th,sB=s,OR=Da,Yg=E,cO=hi,AR=cn,Kg="Promise",CR=cO.CONSTRUCTOR,uB=cO.REJECTION_EVENT,cB=cO.SUBCLASSING,lO=OR.getterFor(Kg),lB=OR.set,vf=Yg&&Yg.prototype,Uc=Yg,zg=vf,PR=Au.TypeError,fO=Au.document,dO=Au.process,pO=AR.f,fB=pO,dB=!!(fO&&fO.createEvent&&Au.dispatchEvent),RR="unhandledrejection",pB="rejectionhandled",IR=0,wR=1,hB=2,hO=1,NR=2,Jg,MR,_B,LR,DR=function(e){var t;return rB(e)&&Wg(t=e.then)?t:!1},xR=function(e,t){var r=t.value,n=t.state==wR,i=n?e.ok:e.fail,o=e.resolve,u=e.reject,l=e.domain,g,d,v;try{i?(n||(t.rejection===NR&&gB(t),t.rejection=hO),i===!0?g=r:(l&&l.enter(),g=i(r),l&&(l.exit(),v=!0)),g===e.promise?u(PR("Promise-chain cycle")):(d=DR(g))?_f(d,g,o,u):o(g)):u(r)}catch(T){l&&!v&&l.exit(),u(T)}},UR=function(e,t){e.notified||(e.notified=!0,uO(function(){for(var r=e.reactions,n;n=r.get();)xR(n,e);e.notified=!1,t&&!e.rejection&&vB(e)}))},$R=function(e,t,r){var n,i;dB?(n=fO.createEvent("Event"),n.promise=t,n.reason=r,n.initEvent(e,!1,!0),Au.dispatchEvent(n)):n={promise:t,reason:r},!uB&&(i=Au["on"+e])?i(n):e===RR&&aB("Unhandled promise rejection",r)},vB=function(e){_f(bR,Au,function(){var t=e.facade,r=e.value,n=FR(e),i;if(n&&(i=oB(function(){Qg?dO.emit("unhandledRejection",r,t):$R(RR,t,r)}),e.rejection=Qg||FR(e)?NR:hO,i.error))throw i.value})},FR=function(e){return e.rejection!==hO&&!e.parent},gB=function(e){_f(bR,Au,function(){var t=e.facade;Qg?dO.emit("rejectionHandled",t):$R(pB,t,e.value)})},gf=function(e,t,r){return function(n){e(t,n,r)}},yf=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=hB,UR(e,!0))},_O=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw PR("Promise can't be resolved itself");var n=DR(t);n?uO(function(){var i={done:!1};try{_f(n,t,gf(_O,i,e),gf(yf,i,e))}catch(o){yf(i,o,e)}}):(e.value=t,e.state=wR,UR(e,!1))}catch(i){yf({done:!1},i,e)}}};if(CR&&(Uc=function(t){nB(this,zg),tB(t),_f(Jg,this);var r=lO(this);try{t(gf(_O,r),gf(yf,r))}catch(n){yf(r,n)}},zg=Uc.prototype,Jg=function(t){lB(this,{type:Kg,done:!1,notified:!1,parent:!1,reactions:new sB,rejection:!1,state:IR,value:void 0})},Jg.prototype=SR(zg,"then",function(t,r){var n=lO(this),i=pO(iB(this,Uc));return n.parent=!0,i.ok=Wg(t)?t:!0,i.fail=Wg(r)&&r,i.domain=Qg?dO.domain:void 0,n.state==IR?n.reactions.add(i):uO(function(){xR(i,n)}),i.promise}),MR=function(){var e=new Jg,t=lO(e);this.promise=e,this.resolve=gf(_O,t),this.reject=gf(yf,t)},AR.f=pO=function(e){return e===Uc||e===_B?new MR(e):fB(e)},Wg(Yg)&&vf!==Object.prototype)){LR=vf.then,cB||SR(vf,"then",function(t,r){var n=this;return new Uc(function(i,o){_f(LR,n,i,o)}).then(t,r)},{unsafe:!0});try{delete vf.constructor}catch{}TR&&TR(vf,zg)}Hg({global:!0,constructor:!0,wrap:!0,forced:CR},{Promise:Uc}),Zj(Uc,Kg,!1),eB(Kg);var yB=Ki,mB=Tc,EB=yB("iterator"),SB=Array.prototype,TB=function(e){return e!==void 0&&(mB.Array===e||SB[EB]===e)},bB=Sg,kR=Ld,OB=Tc,AB=Ki,CB=AB("iterator"),GR=function(e){if(e!=null)return kR(e,CB)||kR(e,"@@iterator")||OB[bB(e)]},PB=ai,RB=fi,IB=Ya,wB=wl,NB=GR,MB=TypeError,LB=function(e,t){var r=arguments.length<2?NB(e):t;if(RB(r))return IB(PB(r,e));throw MB(wB(e)+" is not iterable")},DB=ai,jR=Ya,xB=Ld,UB=function(e,t,r){var n,i;jR(e);try{if(n=xB(e,"return"),!n){if(t==="throw")throw r;return r}n=DB(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return jR(n),r},$B=Vp,FB=ai,kB=Ya,GB=wl,jB=TB,BB=Kl,BR=ko,VB=LB,qB=GR,VR=UB,HB=TypeError,Xg=function(e,t){this.stopped=e,this.result=t},qR=Xg.prototype,HR=function(e,t,r){var n=r&&r.that,i=!!(r&&r.AS_ENTRIES),o=!!(r&&r.IS_RECORD),u=!!(r&&r.IS_ITERATOR),l=!!(r&&r.INTERRUPTED),g=$B(t,n),d,v,T,V,fe,he,ye,xe=function(Ne){return d&&VR(d,"normal",Ne),new Xg(!0,Ne)},Ie=function(Ne){return i?(kB(Ne),l?g(Ne[0],Ne[1],xe):g(Ne[0],Ne[1])):l?g(Ne,xe):g(Ne)};if(o)d=e.iterator;else if(u)d=e;else{if(v=qB(e),!v)throw HB(GB(e)+" is not iterable");if(jB(v)){for(T=0,V=BB(e);V>T;T++)if(fe=Ie(e[T]),fe&&BR(qR,fe))return fe;return new Xg(!1)}d=VB(e,v)}for(he=o?e.next:d.next;!(ye=FB(he,d)).done;){try{fe=Ie(ye.value)}catch(Ne){VR(d,"throw",Ne)}if(typeof fe=="object"&&fe&&BR(qR,fe))return fe}return new Xg(!1)},QB=Ki,QR=QB("iterator"),WR=!1;try{var WB=0,YR={next:function(){return{done:!!WB++}},return:function(){WR=!0}};YR[QR]=function(){return this},Array.from(YR,function(){throw 2})}catch{}var YB=function(e,t){if(!t&&!WR)return!1;var r=!1;try{var n={};n[QR]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},KB=E,zB=YB,JB=hi.CONSTRUCTOR,KR=JB||!zB(function(e){KB.all(e).then(void 0,function(){})}),XB=Ho,ZB=ai,eV=fi,tV=cn,rV=th,nV=HR,iV=KR;XB({target:"Promise",stat:!0,forced:iV},{all:function(t){var r=this,n=tV.f(r),i=n.resolve,o=n.reject,u=rV(function(){var l=eV(r.resolve),g=[],d=0,v=1;nV(t,function(T){var V=d++,fe=!1;v++,ZB(l,r,T).then(function(he){fe||(fe=!0,g[V]=he,--v||i(g))},o)}),--v||i(g)});return u.error&&o(u.value),n.promise}});var aV=Ho,oV=hi.CONSTRUCTOR,vO=E,sV=po,uV=Wn,cV=Ls,zR=vO&&vO.prototype;if(aV({target:"Promise",proto:!0,forced:oV,real:!0},{catch:function(e){return this.then(void 0,e)}}),uV(vO)){var JR=sV("Promise").prototype.catch;zR.catch!==JR&&cV(zR,"catch",JR,{unsafe:!0})}var lV=Ho,fV=ai,dV=fi,pV=cn,hV=th,_V=HR,vV=KR;lV({target:"Promise",stat:!0,forced:vV},{race:function(t){var r=this,n=pV.f(r),i=n.reject,o=hV(function(){var u=dV(r.resolve);_V(t,function(l){fV(u,r,l).then(n.resolve,i)})});return o.error&&i(o.value),n.promise}});var gV=Ho,yV=ai,mV=cn,EV=hi.CONSTRUCTOR;gV({target:"Promise",stat:!0,forced:EV},{reject:function(t){var r=mV.f(this);return yV(r.reject,void 0,t),r.promise}});var SV=Ya,TV=Ts,bV=cn,OV=function(e,t){if(SV(e),TV(t)&&t.constructor===e)return t;var r=bV.f(e),n=r.resolve;return n(t),r.promise},AV=Ho,CV=po,PV=hi.CONSTRUCTOR,RV=OV;CV("Promise"),AV({target:"Promise",stat:!0,forced:PV},{resolve:function(t){return RV(this,t)}});function IV(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function XR(e,t,r,n){function i(o){return o instanceof r?o:new r(function(u){u(o)})}return new(r||(r=Promise))(function(o,u){function l(v){try{d(n.next(v))}catch(T){u(T)}}function g(v){try{d(n.throw(v))}catch(T){u(T)}}function d(v){v.done?o(v.value):i(v.value).then(l,g)}d((n=n.apply(e,t||[])).next())})}class gO{static initializeGoogleTagManager(t){return XR(this,void 0,void 0,function*(){return new gO(t).init()})}constructor({gaKey:t,eventMap:r,dataLayerName:n}){this.dataLayerName="",this.gaKey=t,this.eventMap=r||[],this.dataLayerName=n||"dataLayer",window[this.dataLayerName]=window[this.dataLayerName]||[],this.dataLayer=window[this.dataLayerName]}init(){var t;return XR(this,void 0,void 0,function*(){this.dataLayer.push({"gtm.start":new Date().getTime(),event:"gtm.js"});const r=document.createElement("script");return r.async=!0,r.src=`https://www.googletagmanager.com/gtm.js?id=${this.gaKey}${this.dataLayerName!=="dataLayer"?`&l=${this.dataLayerName}`:""}`,(t=document.head.parentNode)===null||t===void 0||t.append(r),new Promise((n,i)=>{r.onload=()=>n(this),r.onerror=i})})}setProfileProperties(t){}trackEvent(t,r={}){const n=this.eventMap.find(i=>i.key===t);n&&this.dataLayer.push(Object.assign(Object.assign({},r),{event:n.value}))}reset(){console.warn("Reset method not implemented for google tag manager.")}}class wV{constructor(t,r,n){$s.init(t.key),r&&$s.register(r),n&&this.setProfileProperties(n)}setProfileProperties(t){var{id:r}=t,n=IV(t,["id"]);r&&$s.identify(r),$s.people.set(n)}trackEvent(t,r){$s.track(t,r)}reset(){$s.reset()}}class NV{constructor(t=[]){this.services=t,(0,ba.bindAll)(this,"trackEvent","append")}setProfileProperties(t){this.services.forEach(r=>r.setProfileProperties(t))}trackEvent(t,r){this.services.forEach(n=>n.trackEvent(t,r))}append(t){this.services.push(t)}reset(){this.services.forEach(t=>t.reset())}}function MV(e,t,r){const n=new NV;return e&&(e?.mixPanel&&e?.mixPanel.length&&e.mixPanel.forEach(i=>{n.append(new wV(i,t,r))}),e?.googleTagManager&&e.googleTagManager.length&&e.googleTagManager.forEach(i=>n.append(new gO(i)))),n}class jhe{constructor({script:t}){var r;if(t){const n=document.createElement("script");n.async=!0,n.src=t,(r=document.head.parentNode)===null||r===void 0||r.append(n),this.adobeAnalytics=new Promise((i,o)=>{n.onload=()=>i(this),n.onerror=()=>o("Failed to inject script")})}else throw new Error("Adobe analytics is not initialized")}setProfileProperties(t){console.warn("SetProfileProperties method is not implemented for adobe analytics")}trackEvent(t,r={}){console.warn("TrackEvent method is not implemented for adobe analytics")}reset(){console.warn("Reset method is not implemented for adobe analytics")}}var mf;(function(e){e.one="1.0.0"})(mf||(mf={}));const rh="orchestrator:analytics-service",LV={id:rh,dependencies:{featureServices:{[kn]:An.one}},create:({featureServices:e})=>{const t=e[kn],{client:r,app:n,slug:i,embeddableConfiguration:o,frontendEnvironment:u}=t.getClientContext(),l=MV(u?.analytics||{},{client:r,app:n,clientSlug:i,appVersion:o?.webSdkVersion||""},{});return t.getStore().subscribe(()=>{var g,d,v,T;const V=t.getUser();!((d=(g=V?.tokenData)===null||g===void 0?void 0:g.idToken)===null||d===void 0)&&d.payload&&l.setProfileProperties({id:V.tokenData.idToken.payload["custom:bwellFhirPersonId"],clientPersonId:V.tokenData.idToken.payload["custom:clientFhirPersonId"],clientPatientId:V.tokenData.idToken.payload["custom:clientFhirPatientId"],isInternalTestUser:(T=(v=V.meta)===null||v===void 0?void 0:v.tag)===null||T===void 0?void 0:T.some(fe=>fe.code==="bwelltestuser")})}),{[mf.one]:()=>({featureService:l})}}};var yO=m(8577),Zg;(function(e){e.one="1.0.0"})(Zg||(Zg={}));const ZR="orchestrator:auth-service",DV={id:ZR,dependencies:{featureServices:{[aa]:ia.one},externals:{}},create:({featureServices:e})=>{const t=e[aa],r=new yO.Auth(t);return{[Zg.one]:()=>({featureService:r})}}};var eI=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ey=function(e){return e&&e.Math==Math&&e},Aa=ey(typeof globalThis=="object"&&globalThis)||ey(typeof window=="object"&&window)||ey(typeof self=="object"&&self)||ey(typeof eI=="object"&&eI)||function(){return this}()||Function("return this")(),mO={},ki=function(e){try{return!!e()}catch{return!0}},xV=ki,Ko=!xV(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),UV=ki,EO=!UV(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),$V=EO,ty=Function.prototype.call,Cu=$V?ty.bind(ty):function(){return ty.apply(ty,arguments)},SO={},tI={}.propertyIsEnumerable,rI=Object.getOwnPropertyDescriptor,FV=rI&&!tI.call({1:2},1);SO.f=FV?function(t){var r=rI(this,t);return!!r&&r.enumerable}:tI;var TO=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},nI=EO,iI=Function.prototype,kV=iI.bind,bO=iI.call,GV=nI&&kV.bind(bO,bO),Ci=nI?function(e){return e&&GV(e)}:function(e){return e&&function(){return bO.apply(e,arguments)}},aI=Ci,jV=aI({}.toString),BV=aI("".slice),OO=function(e){return BV(jV(e),8,-1)},VV=Ci,qV=ki,HV=OO,AO=Object,QV=VV("".split),oI=qV(function(){return!AO("z").propertyIsEnumerable(0)})?function(e){return HV(e)=="String"?QV(e,""):AO(e)}:AO,WV=TypeError,nh=function(e){if(e==null)throw WV("Can't call method on "+e);return e},YV=oI,KV=nh,ih=function(e){return YV(KV(e))},Gi=function(e){return typeof e=="function"},zV=Gi,ah=function(e){return typeof e=="object"?e!==null:zV(e)},CO=Aa,JV=Gi,XV=function(e){return JV(e)?e:void 0},ry=function(e,t){return arguments.length<2?XV(CO[e]):CO[e]&&CO[e][t]},ZV=Ci,e2=ZV({}.isPrototypeOf),t2=ry,r2=t2("navigator","userAgent")||"",sI=Aa,PO=r2,uI=sI.process,cI=sI.Deno,lI=uI&&uI.versions||cI&&cI.version,fI=lI&&lI.v8,Eo,ny;fI&&(Eo=fI.split("."),ny=Eo[0]>0&&Eo[0]<4?1:+(Eo[0]+Eo[1])),!ny&&PO&&(Eo=PO.match(/Edge\/(\d+)/),(!Eo||Eo[1]>=74)&&(Eo=PO.match(/Chrome\/(\d+)/),Eo&&(ny=+Eo[1])));var n2=ny,dI=n2,i2=ki,pI=!!Object.getOwnPropertySymbols&&!i2(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&dI&&dI<41}),a2=pI,hI=a2&&!Symbol.sham&&typeof Symbol.iterator=="symbol",o2=ry,s2=Gi,u2=e2,c2=hI,l2=Object,_I=c2?function(e){return typeof e=="symbol"}:function(e){var t=o2("Symbol");return s2(t)&&u2(t.prototype,l2(e))},f2=String,d2=function(e){try{return f2(e)}catch{return"Object"}},p2=Gi,h2=d2,_2=TypeError,v2=function(e){if(p2(e))return e;throw _2(h2(e)+" is not a function")},g2=v2,vI=function(e,t){var r=e[t];return r==null?void 0:g2(r)},RO=Cu,IO=Gi,wO=ah,y2=TypeError,m2=function(e,t){var r,n;if(t==="string"&&IO(r=e.toString)&&!wO(n=RO(r,e))||IO(r=e.valueOf)&&!wO(n=RO(r,e))||t!=="string"&&IO(r=e.toString)&&!wO(n=RO(r,e)))return n;throw y2("Can't convert object to primitive value")},iy={exports:{}},gI=Aa,E2=Object.defineProperty,NO=function(e,t){try{E2(gI,e,{value:t,configurable:!0,writable:!0})}catch{gI[e]=t}return t},S2=Aa,T2=NO,yI="__core-js_shared__",b2=S2[yI]||T2(yI,{}),MO=b2,mI=MO;(iy.exports=function(e,t){return mI[e]||(mI[e]=t!==void 0?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"});var O2=nh,A2=Object,ay=function(e){return A2(O2(e))},C2=Ci,P2=ay,R2=C2({}.hasOwnProperty),js=Object.hasOwn||function(t,r){return R2(P2(t),r)},I2=Ci,w2=0,N2=Math.random(),M2=I2(1 .toString),EI=function(e){return"Symbol("+(e===void 0?"":e)+")_"+M2(++w2+N2,36)},L2=Aa,D2=iy.exports,SI=js,x2=EI,TI=pI,bI=hI,Ef=D2("wks"),$c=L2.Symbol,OI=$c&&$c.for,U2=bI?$c:$c&&$c.withoutSetter||x2,zo=function(e){if(!SI(Ef,e)||!(TI||typeof Ef[e]=="string")){var t="Symbol."+e;TI&&SI($c,e)?Ef[e]=$c[e]:bI&&OI?Ef[e]=OI(t):Ef[e]=U2(t)}return Ef[e]},$2=Cu,AI=ah,CI=_I,F2=vI,k2=m2,G2=zo,j2=TypeError,B2=G2("toPrimitive"),V2=function(e,t){if(!AI(e)||CI(e))return e;var r=F2(e,B2),n;if(r){if(t===void 0&&(t="default"),n=$2(r,e,t),!AI(n)||CI(n))return n;throw j2("Can't convert object to primitive value")}return t===void 0&&(t="number"),k2(e,t)},q2=V2,H2=_I,PI=function(e){var t=q2(e,"string");return H2(t)?t:t+""},Q2=Aa,RI=ah,LO=Q2.document,W2=RI(LO)&&RI(LO.createElement),DO=function(e){return W2?LO.createElement(e):{}},Y2=Ko,K2=ki,z2=DO,II=!Y2&&!K2(function(){return Object.defineProperty(z2("div"),"a",{get:function(){return 7}}).a!=7}),J2=Ko,X2=Cu,Z2=SO,eq=TO,tq=ih,rq=PI,nq=js,iq=II,wI=Object.getOwnPropertyDescriptor;mO.f=J2?wI:function(t,r){if(t=tq(t),r=rq(r),iq)try{return wI(t,r)}catch{}if(nq(t,r))return eq(!X2(Z2.f,t,r),t[r])};var Pu={},aq=Ko,oq=ki,NI=aq&&oq(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),sq=ah,uq=String,cq=TypeError,Ru=function(e){if(sq(e))return e;throw cq(uq(e)+" is not an object")},lq=Ko,fq=II,dq=NI,oy=Ru,MI=PI,pq=TypeError,xO=Object.defineProperty,hq=Object.getOwnPropertyDescriptor,UO="enumerable",$O="configurable",FO="writable";Pu.f=lq?dq?function(t,r,n){if(oy(t),r=MI(r),oy(n),typeof t=="function"&&r==="prototype"&&"value"in n&&FO in n&&!n[FO]){var i=hq(t,r);i&&i[FO]&&(t[r]=n.value,n={configurable:$O in n?n[$O]:i[$O],enumerable:UO in n?n[UO]:i[UO],writable:!1})}return xO(t,r,n)}:xO:function(t,r,n){if(oy(t),r=MI(r),oy(n),fq)try{return xO(t,r,n)}catch{}if("get"in n||"set"in n)throw pq("Accessors not supported");return"value"in n&&(t[r]=n.value),t};var _q=Ko,vq=Pu,gq=TO,oh=_q?function(e,t,r){return vq.f(e,t,gq(1,r))}:function(e,t,r){return e[t]=r,e},LI={exports:{}},kO=Ko,yq=js,DI=Function.prototype,mq=kO&&Object.getOwnPropertyDescriptor,GO=yq(DI,"name"),Eq=GO&&function(){}.name==="something",Sq=GO&&(!kO||kO&&mq(DI,"name").configurable),xI={EXISTS:GO,PROPER:Eq,CONFIGURABLE:Sq},Tq=Ci,bq=Gi,jO=MO,Oq=Tq(Function.toString);bq(jO.inspectSource)||(jO.inspectSource=function(e){return Oq(e)});var UI=jO.inspectSource,Aq=Aa,Cq=Gi,Pq=UI,$I=Aq.WeakMap,Rq=Cq($I)&&/native code/.test(Pq($I)),Iq=iy.exports,wq=EI,FI=Iq("keys"),BO=function(e){return FI[e]||(FI[e]=wq(e))},VO={},Nq=Rq,kI=Aa,qO=Ci,Mq=ah,Lq=oh,HO=js,QO=MO,Dq=BO,xq=VO,GI="Object already initialized",WO=kI.TypeError,Uq=kI.WeakMap,sy,sh,uy,$q=function(e){return uy(e)?sh(e):sy(e,{})},Fq=function(e){return function(t){var r;if(!Mq(t)||(r=sh(t)).type!==e)throw WO("Incompatible receiver, "+e+" required");return r}};if(Nq||QO.state){var Fc=QO.state||(QO.state=new Uq),kq=qO(Fc.get),jI=qO(Fc.has),Gq=qO(Fc.set);sy=function(e,t){if(jI(Fc,e))throw new WO(GI);return t.facade=e,Gq(Fc,e,t),t},sh=function(e){return kq(Fc,e)||{}},uy=function(e){return jI(Fc,e)}}else{var Sf=Dq("state");xq[Sf]=!0,sy=function(e,t){if(HO(e,Sf))throw new WO(GI);return t.facade=e,Lq(e,Sf,t),t},sh=function(e){return HO(e,Sf)?e[Sf]:{}},uy=function(e){return HO(e,Sf)}}var YO={set:sy,get:sh,has:uy,enforce:$q,getterFor:Fq},jq=ki,Bq=Gi,cy=js,KO=Ko,Vq=xI.CONFIGURABLE,qq=UI,BI=YO,Hq=BI.enforce,Qq=BI.get,ly=Object.defineProperty,Wq=KO&&!jq(function(){return ly(function(){},"length",{value:8}).length!==8}),Yq=String(String).split("String"),Kq=LI.exports=function(e,t,r){String(t).slice(0,7)==="Symbol("&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!cy(e,"name")||Vq&&e.name!==t)&&(KO?ly(e,"name",{value:t,configurable:!0}):e.name=t),Wq&&r&&cy(r,"arity")&&e.length!==r.arity&&ly(e,"length",{value:r.arity});try{r&&cy(r,"constructor")&&r.constructor?KO&&ly(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var n=Hq(e);return cy(n,"source")||(n.source=Yq.join(typeof t=="string"?t:"")),e};Function.prototype.toString=Kq(function(){return Bq(this)&&Qq(this).source||qq(this)},"toString");var zq=Gi,Jq=Pu,Xq=LI.exports,Zq=NO,fy=function(e,t,r,n){n||(n={});var i=n.enumerable,o=n.name!==void 0?n.name:t;if(zq(r)&&Xq(r,o,n),n.global)i?e[t]=r:Zq(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch{}i?e[t]=r:Jq.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},VI={},e8=Math.ceil,t8=Math.floor,r8=Math.trunc||function(t){var r=+t;return(r>0?t8:e8)(r)},n8=r8,dy=function(e){var t=+e;return t!==t||t===0?0:n8(t)},i8=dy,a8=Math.max,o8=Math.min,s8=function(e,t){var r=i8(e);return r<0?a8(r+t,0):o8(r,t)},u8=dy,c8=Math.min,qI=function(e){return e>0?c8(u8(e),9007199254740991):0},l8=qI,f8=function(e){return l8(e.length)},d8=ih,p8=s8,h8=f8,HI=function(e){return function(t,r,n){var i=d8(t),o=h8(i),u=p8(n,o),l;if(e&&r!=r){for(;o>u;)if(l=i[u++],l!=l)return!0}else for(;o>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},_8={includes:HI(!0),indexOf:HI(!1)},v8=Ci,zO=js,g8=ih,y8=_8.indexOf,m8=VO,QI=v8([].push),WI=function(e,t){var r=g8(e),n=0,i=[],o;for(o in r)!zO(m8,o)&&zO(r,o)&&QI(i,o);for(;t.length>n;)zO(r,o=t[n++])&&(~y8(i,o)||QI(i,o));return i},JO=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],E8=WI,S8=JO,T8=S8.concat("length","prototype");VI.f=Object.getOwnPropertyNames||function(t){return E8(t,T8)};var XO={};XO.f=Object.getOwnPropertySymbols;var b8=ry,O8=Ci,A8=VI,C8=XO,P8=Ru,R8=O8([].concat),I8=b8("Reflect","ownKeys")||function(t){var r=A8.f(P8(t)),n=C8.f;return n?R8(r,n(t)):r},YI=js,w8=I8,N8=mO,M8=Pu,L8=function(e,t,r){for(var n=w8(t),i=M8.f,o=N8.f,u=0;u<n.length;u++){var l=n[u];!YI(e,l)&&!(r&&YI(r,l))&&i(e,l,o(t,l))}},D8=ki,x8=Gi,U8=/#|\.prototype\./,uh=function(e,t){var r=F8[$8(e)];return r==G8?!0:r==k8?!1:x8(t)?D8(t):!!t},$8=uh.normalize=function(e){return String(e).replace(U8,".").toLowerCase()},F8=uh.data={},k8=uh.NATIVE="N",G8=uh.POLYFILL="P",j8=uh,ZO=Aa,B8=mO.f,V8=oh,q8=fy,H8=NO,Q8=L8,W8=j8,py=function(e,t){var r=e.target,n=e.global,i=e.stat,o,u,l,g,d,v;if(n?u=ZO:i?u=ZO[r]||H8(r,{}):u=(ZO[r]||{}).prototype,u)for(l in t){if(d=t[l],e.dontCallGetSet?(v=B8(u,l),g=v&&v.value):g=u[l],o=W8(n?l:r+(i?".":"#")+l,e.forced),!o&&g!==void 0){if(typeof d==typeof g)continue;Q8(d,g)}(e.sham||g&&g.sham)&&V8(d,"sham",!0),q8(u,l,d,e)}},Y8=zo,K8=Y8("toStringTag"),KI={};KI[K8]="z";var z8=String(KI)==="[object z]",J8=z8,X8=Gi,hy=OO,Z8=zo,eH=Z8("toStringTag"),tH=Object,rH=hy(function(){return arguments}())=="Arguments",nH=function(e,t){try{return e[t]}catch{}},iH=J8?hy:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=nH(t=tH(e),eH))=="string"?r:rH?hy(t):(n=hy(t))=="Object"&&X8(t.callee)?"Arguments":n},aH=iH,oH=String,ch=function(e){if(aH(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return oH(e)},zI=`
|
|
103
103
|
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,sH=Ci,uH=nh,cH=ch,lH=zI,JI=sH("".replace),_y="["+lH+"]",fH=RegExp("^"+_y+_y+"*"),dH=RegExp(_y+_y+"*$"),eA=function(e){return function(t){var r=cH(uH(t));return e&1&&(r=JI(r,fH,"")),e&2&&(r=JI(r,dH,"")),r}},pH={start:eA(1),end:eA(2),trim:eA(3)},XI=Aa,hH=ki,_H=Ci,vH=ch,gH=pH.trim,ZI=zI,lh=XI.parseInt,ew=XI.Symbol,tw=ew&&ew.iterator,rw=/^[+-]?0x/i,yH=_H(rw.exec),mH=lh(ZI+"08")!==8||lh(ZI+"0x16")!==22||tw&&!hH(function(){lh(Object(tw))}),EH=mH?function(t,r){var n=gH(vH(t));return lh(n,r>>>0||(yH(rw,n)?16:10))}:lh,SH=py,nw=EH;SH({global:!0,forced:parseInt!=nw},{parseInt:nw});var TH=Ru,bH=function(){var e=TH(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},tA=ki,OH=Aa,rA=OH.RegExp,nA=tA(function(){var e=rA("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),AH=nA||tA(function(){return!rA("a","y").sticky}),CH=nA||tA(function(){var e=rA("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),PH={BROKEN_CARET:CH,MISSED_STICKY:AH,UNSUPPORTED_Y:nA},iw={},RH=WI,IH=JO,aw=Object.keys||function(t){return RH(t,IH)},wH=Ko,NH=NI,MH=Pu,LH=Ru,DH=ih,xH=aw;iw.f=wH&&!NH?Object.defineProperties:function(t,r){LH(t);for(var n=DH(r),i=xH(r),o=i.length,u=0,l;o>u;)MH.f(t,l=i[u++],n[l]);return t};var UH=ry,$H=UH("document","documentElement"),FH=Ru,kH=iw,ow=JO,GH=VO,jH=$H,BH=DO,VH=BO,sw=">",uw="<",iA="prototype",aA="script",cw=VH("IE_PROTO"),oA=function(){},lw=function(e){return uw+aA+sw+e+uw+"/"+aA+sw},fw=function(e){e.write(lw("")),e.close();var t=e.parentWindow.Object;return e=null,t},qH=function(){var e=BH("iframe"),t="java"+aA+":",r;return e.style.display="none",jH.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(lw("document.F=Object")),r.close(),r.F},vy,gy=function(){try{vy=new ActiveXObject("htmlfile")}catch{}gy=typeof document<"u"?document.domain&&vy?fw(vy):qH():fw(vy);for(var e=ow.length;e--;)delete gy[iA][ow[e]];return gy()};GH[cw]=!0;var sA=Object.create||function(t,r){var n;return t!==null?(oA[iA]=FH(t),n=new oA,oA[iA]=null,n[cw]=t):n=gy(),r===void 0?n:kH.f(n,r)},HH=ki,QH=Aa,WH=QH.RegExp,YH=HH(function(){var e=WH(".","s");return!(e.dotAll&&e.exec(`
|
|
104
104
|
`)&&e.flags==="s")}),KH=ki,zH=Aa,JH=zH.RegExp,XH=KH(function(){var e=JH("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Tf=Cu,yy=Ci,ZH=ch,eQ=bH,tQ=PH,rQ=iy.exports,nQ=sA,iQ=YO.get,aQ=YH,oQ=XH,sQ=rQ("native-string-replace",String.prototype.replace),my=RegExp.prototype.exec,uA=my,uQ=yy("".charAt),cQ=yy("".indexOf),lQ=yy("".replace),cA=yy("".slice),lA=function(){var e=/a/,t=/b*/g;return Tf(my,e,"a"),Tf(my,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),dw=tQ.BROKEN_CARET,fA=/()??/.exec("")[1]!==void 0,fQ=lA||fA||dw||aQ||oQ;fQ&&(uA=function(t){var r=this,n=iQ(r),i=ZH(t),o=n.raw,u,l,g,d,v,T,V;if(o)return o.lastIndex=r.lastIndex,u=Tf(uA,o,i),r.lastIndex=o.lastIndex,u;var fe=n.groups,he=dw&&r.sticky,ye=Tf(eQ,r),xe=r.source,Ie=0,Ne=i;if(he&&(ye=lQ(ye,"y",""),cQ(ye,"g")===-1&&(ye+="g"),Ne=cA(i,r.lastIndex),r.lastIndex>0&&(!r.multiline||r.multiline&&uQ(i,r.lastIndex-1)!==`
|
|
105
|
-
`)&&(xe="(?: "+xe+")",Ne=" "+Ne,Ie++),l=new RegExp("^(?:"+xe+")",ye)),fA&&(l=new RegExp("^"+xe+"$(?!\\s)",ye)),lA&&(g=r.lastIndex),d=Tf(my,he?l:r,Ne),he?d?(d.input=cA(d.input,Ie),d[0]=cA(d[0],Ie),d.index=r.lastIndex,r.lastIndex+=d[0].length):r.lastIndex=0:lA&&d&&(r.lastIndex=r.global?d.index+d[0].length:g),fA&&d&&d.length>1&&Tf(sQ,d[0],l,function(){for(v=1;v<arguments.length-2;v++)arguments[v]===void 0&&(d[v]=void 0)}),d&&fe)for(d.groups=T=nQ(null),v=0;v<fe.length;v++)V=fe[v],T[V[0]]=d[V[1]];return d});var dA=uA,dQ=py,pw=dA;dQ({target:"RegExp",proto:!0,forced:/./.exec!==pw},{exec:pw});var pQ=EO,hw=Function.prototype,_w=hw.apply,vw=hw.call,hQ=typeof Reflect=="object"&&Reflect.apply||(pQ?vw.bind(_w):function(){return vw.apply(_w,arguments)}),gw=Ci,yw=fy,_Q=dA,mw=ki,Ew=zo,vQ=oh,gQ=Ew("species"),pA=RegExp.prototype,yQ=function(e,t,r,n){var i=Ew(e),o=!mw(function(){var d={};return d[i]=function(){return 7},""[e](d)!=7}),u=o&&!mw(function(){var d=!1,v=/a/;return e==="split"&&(v={},v.constructor={},v.constructor[gQ]=function(){return v},v.flags="",v[i]=/./[i]),v.exec=function(){return d=!0,null},v[i](""),!d});if(!o||!u||r){var l=gw(/./[i]),g=t(i,""[e],function(d,v,T,V,fe){var he=gw(d),ye=v.exec;return ye===_Q||ye===pA.exec?o&&!fe?{done:!0,value:l(v,T,V)}:{done:!0,value:he(T,v,V)}:{done:!1}});yw(String.prototype,e,g[0]),yw(pA,i,g[1])}n&&vQ(pA[i],"sham",!0)},hA=Ci,mQ=dy,EQ=ch,SQ=nh,TQ=hA("".charAt),Sw=hA("".charCodeAt),bQ=hA("".slice),Tw=function(e){return function(t,r){var n=EQ(SQ(t)),i=mQ(r),o=n.length,u,l;return i<0||i>=o?e?"":void 0:(u=Sw(n,i),u<55296||u>56319||i+1===o||(l=Sw(n,i+1))<56320||l>57343?e?TQ(n,i):u:e?bQ(n,i,i+2):(u-55296<<10)+(l-56320)+65536)}},OQ={codeAt:Tw(!1),charAt:Tw(!0)},AQ=OQ.charAt,CQ=function(e,t,r){return t+(r?AQ(e,t).length:1)},_A=Ci,PQ=ay,RQ=Math.floor,vA=_A("".charAt),IQ=_A("".replace),gA=_A("".slice),wQ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,NQ=/\$([$&'`]|\d{1,2})/g,MQ=function(e,t,r,n,i,o){var u=r+e.length,l=n.length,g=NQ;return i!==void 0&&(i=PQ(i),g=wQ),IQ(o,g,function(d,v){var T;switch(vA(v,0)){case"$":return"$";case"&":return e;case"`":return gA(t,0,r);case"'":return gA(t,u);case"<":T=i[gA(v,1,-1)];break;default:var V=+v;if(V===0)return d;if(V>l){var fe=RQ(V/10);return fe===0?d:fe<=l?n[fe-1]===void 0?vA(v,1):n[fe-1]+vA(v,1):d}T=n[V-1]}return T===void 0?"":T})},bw=Cu,LQ=Ru,DQ=Gi,xQ=OO,UQ=dA,$Q=TypeError,FQ=function(e,t){var r=e.exec;if(DQ(r)){var n=bw(r,e,t);return n!==null&&LQ(n),n}if(xQ(e)==="RegExp")return bw(UQ,e,t);throw $Q("RegExp#exec called on incompatible receiver")},kQ=hQ,Ow=Cu,Ey=Ci,GQ=yQ,jQ=ki,BQ=Ru,VQ=Gi,qQ=dy,HQ=qI,bf=ch,QQ=nh,WQ=CQ,YQ=vI,KQ=MQ,zQ=FQ,JQ=zo,yA=JQ("replace"),XQ=Math.max,ZQ=Math.min,eW=Ey([].concat),mA=Ey([].push),Aw=Ey("".indexOf),Cw=Ey("".slice),tW=function(e){return e===void 0?e:String(e)},rW=function(){return"a".replace(/./,"$0")==="$0"}(),Pw=function(){return/./[yA]?/./[yA]("a","$0")==="":!1}(),nW=!jQ(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"});GQ("replace",function(e,t,r){var n=Pw?"$":"$0";return[function(o,u){var l=QQ(this),g=o==null?void 0:YQ(o,yA);return g?Ow(g,o,l,u):Ow(t,bf(l),o,u)},function(i,o){var u=BQ(this),l=bf(i);if(typeof o=="string"&&Aw(o,n)===-1&&Aw(o,"$<")===-1){var g=r(t,u,l,o);if(g.done)return g.value}var d=VQ(o);d||(o=bf(o));var v=u.global;if(v){var T=u.unicode;u.lastIndex=0}for(var V=[];;){var fe=zQ(u,l);if(fe===null||(mA(V,fe),!v))break;var he=bf(fe[0]);he===""&&(u.lastIndex=WQ(l,HQ(u.lastIndex),T))}for(var ye="",xe=0,Ie=0;Ie<V.length;Ie++){fe=V[Ie];for(var Ne=bf(fe[0]),at=XQ(ZQ(qQ(fe.index),l.length),0),_t=[],$t=1;$t<fe.length;$t++)mA(_t,tW(fe[$t]));var nr=fe.groups;if(d){var jr=eW([Ne],_t,at,l);nr!==void 0&&mA(jr,nr);var vn=bf(kQ(o,void 0,jr))}else vn=KQ(Ne,l,at,_t,nr,o);at>=xe&&(ye+=Cw(l,xe,at)+vn,xe=at+Ne.length)}return ye+Cw(l,xe)}]},!nW||!rW||Pw);var iW=zo,aW=sA,oW=Pu.f,EA=iW("unscopables"),SA=Array.prototype;SA[EA]==null&&oW(SA,EA,{configurable:!0,value:aW(null)});var sW=function(e){SA[EA][e]=!0},TA={},uW=ki,cW=!uW(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),lW=js,fW=Gi,dW=ay,pW=BO,hW=cW,Rw=pW("IE_PROTO"),bA=Object,_W=bA.prototype,Iw=hW?bA.getPrototypeOf:function(e){var t=dW(e);if(lW(t,Rw))return t[Rw];var r=t.constructor;return fW(r)&&t instanceof r?r.prototype:t instanceof bA?_W:null},vW=ki,gW=Gi,ww=Iw,yW=fy,mW=zo,OA=mW("iterator"),Nw=!1,kc,AA,CA;[].keys&&(CA=[].keys(),"next"in CA?(AA=ww(ww(CA)),AA!==Object.prototype&&(kc=AA)):Nw=!0);var EW=kc==null||vW(function(){var e={};return kc[OA].call(e)!==e});EW&&(kc={}),gW(kc[OA])||yW(kc,OA,function(){return this});var Mw={IteratorPrototype:kc,BUGGY_SAFARI_ITERATORS:Nw},SW=Pu.f,TW=js,bW=zo,Lw=bW("toStringTag"),Dw=function(e,t,r){e&&!r&&(e=e.prototype),e&&!TW(e,Lw)&&SW(e,Lw,{configurable:!0,value:t})},OW=Mw.IteratorPrototype,AW=sA,CW=TO,PW=Dw,RW=TA,IW=function(){return this},wW=function(e,t,r,n){var i=t+" Iterator";return e.prototype=AW(OW,{next:CW(+!n,r)}),PW(e,i,!1),RW[i]=IW,e},NW=Gi,MW=String,LW=TypeError,DW=function(e){if(typeof e=="object"||NW(e))return e;throw LW("Can't set "+MW(e)+" as a prototype")},xW=Ci,UW=Ru,$W=DW,FW=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=xW(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),r(t,[]),e=t instanceof Array}catch{}return function(i,o){return UW(i),$W(o),e?r(i,o):i.__proto__=o,i}}():void 0),kW=py,GW=Cu,xw=xI,jW=Gi,BW=wW,Uw=Iw,$w=FW,VW=Dw,qW=oh,PA=fy,HW=zo,QW=TA,Fw=Mw,WW=xw.PROPER,YW=xw.CONFIGURABLE,kw=Fw.IteratorPrototype,Sy=Fw.BUGGY_SAFARI_ITERATORS,fh=HW("iterator"),Gw="keys",dh="values",jw="entries",KW=function(){return this},zW=function(e,t,r,n,i,o,u){BW(r,t,n);var l=function(Ie){if(Ie===i&&V)return V;if(!Sy&&Ie in v)return v[Ie];switch(Ie){case Gw:return function(){return new r(this,Ie)};case dh:return function(){return new r(this,Ie)};case jw:return function(){return new r(this,Ie)}}return function(){return new r(this)}},g=t+" Iterator",d=!1,v=e.prototype,T=v[fh]||v["@@iterator"]||i&&v[i],V=!Sy&&T||l(i),fe=t=="Array"&&v.entries||T,he,ye,xe;if(fe&&(he=Uw(fe.call(new e)),he!==Object.prototype&&he.next&&(Uw(he)!==kw&&($w?$w(he,kw):jW(he[fh])||PA(he,fh,KW)),VW(he,g,!0))),WW&&i==dh&&T&&T.name!==dh&&(YW?qW(v,"name",dh):(d=!0,V=function(){return GW(T,this)})),i)if(ye={values:l(dh),keys:o?V:l(Gw),entries:l(jw)},u)for(xe in ye)(Sy||d||!(xe in v))&&PA(v,xe,ye[xe]);else kW({target:t,proto:!0,forced:Sy||d},ye);return v[fh]!==V&&PA(v,fh,V,{name:i}),QW[t]=V,ye},JW=ih,RA=sW,Bw=TA,Vw=YO,XW=Pu.f,ZW=zW,eY=Ko,qw="Array Iterator",tY=Vw.set,rY=Vw.getterFor(qw),nY=ZW(Array,"Array",function(e,t){tY(this,{type:qw,target:JW(e),index:0,kind:t})},function(){var e=rY(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),Hw=Bw.Arguments=Bw.Array;if(RA("keys"),RA("values"),RA("entries"),eY&&Hw.name!=="values")try{XW(Hw,"name",{value:"values"})}catch{}var iY={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},aY=DO,IA=aY("span").classList,Qw=IA&&IA.constructor&&IA.constructor.prototype,oY=Qw===Object.prototype?void 0:Qw,Ww=Aa,Yw=iY,sY=oY,ph=nY,wA=oh,Kw=zo,NA=Kw("iterator"),zw=Kw("toStringTag"),MA=ph.values,Jw=function(e,t){if(e){if(e[NA]!==MA)try{wA(e,NA,MA)}catch{e[NA]=MA}if(e[zw]||wA(e,zw,t),Yw[t]){for(var r in ph)if(e[r]!==ph[r])try{wA(e,r,ph[r])}catch{e[r]=ph[r]}}}};for(var LA in Yw)Jw(Ww[LA]&&Ww[LA].prototype,LA);Jw(sY,"DOMTokenList");function Xw(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function Zw(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}var Ty,by;function uY(e){let t=0;if(e.length===0)return t;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t=t&t;return t}class cY{constructor({definitions:t,uuid:r}){Ty.set(this,void 0),by.set(this,void 0),Zw(this,Ty,t,"f"),Zw(this,by,parseInt(`0x${r.replace(/-/g,"")}`),"f")}getFeatureFlagVariant(t,r){const n=Xw(this,Ty,"f").find(o=>o.name===t);let i=0;if(n){const o=uY(n.id),u=Math.abs(Xw(this,by,"f")-o)%100;return n.variants.find(({percent:g})=>(i=g+i,u<i))||{name:"control",percent:100-i,value:r}}}getFeatureFlagValue(t,r){const n=this.getFeatureFlagVariant(t,r);return n?.value||r}}Ty=new WeakMap,by=new WeakMap;var eN=Ko,lY=Ci,fY=Cu,dY=ki,DA=aw,pY=XO,hY=SO,_Y=ay,vY=oI,Of=Object.assign,tN=Object.defineProperty,gY=lY([].concat),yY=!Of||dY(function(){if(eN&&Of({b:1},Of(tN({},"a",{enumerable:!0,get:function(){tN(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(i){t[i]=i}),Of({},e)[r]!=7||DA(Of({},t)).join("")!=n})?function(t,r){for(var n=_Y(t),i=arguments.length,o=1,u=pY.f,l=hY.f;i>o;)for(var g=vY(arguments[o++]),d=u?gY(DA(g),u(g)):DA(g),v=d.length,T=0,V;v>T;)V=d[T++],(!eN||fY(l,g,V))&&(n[V]=g[V]);return n}:Of,mY=py,rN=yY;mY({target:"Object",stat:!0,arity:2,forced:Object.assign!==rN},{assign:rN});const nN=null,Bhe=({children:e,featureFlags:t})=>jsx(nN.Provider,Object.assign({value:t},{children:e}));function Vhe(e,t){const r=React.useContext(nN);return r?.getFeatureFlagValue(e,t)||t}var hh;(function(e){e.one="1.0.0"})(hh||(hh={}));const Oy="orchestrator:feature-flags-service",EY={id:Oy,dependencies:{featureServices:{[kn]:An.one},externals:{}},create:({featureServices:e})=>{var t;const r=e[kn],n="b0e74b60-1797-4d34-b90a-712a93f4e732",i=r.getClientContext(),o=new cY({uuid:n,definitions:((t=i?.featureFlagConfiguration)===null||t===void 0?void 0:t.featureFlagDefinitions)||[]});return{[hh.one]:()=>({featureService:o})}}};var iN=m(4430),Af;(function(e){e.one="1.0.0"})(Af||(Af={}));const _h="orchestrator:logging-service",SY={id:_h,dependencies:{featureServices:{[kn]:An.one,[Oy]:hh.one}},create:({featureServices:e})=>{const t=e[kn],r=e[Oy],{environment:n,slug:i}=t.getClientContext(),o=t.getTelemetryConfig(),u=(0,iN.default)({url:r.getFeatureFlagValue("client log url",void 0),telemetry:o,environment:n,clientSlug:i});return{[Af.one]:()=>({featureService:u})}}};function qhe(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Hhe(e,t,r,n){function i(o){return o instanceof r?o:new r(function(u){u(o)})}return new(r||(r=Promise))(function(o,u){function l(v){try{d(n.next(v))}catch(T){u(T)}}function g(v){try{d(n.throw(v))}catch(T){u(T)}}function d(v){v.done?o(v.value):i(v.value).then(l,g)}d((n=n.apply(e,t||[])).next())})}function So(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function TY(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}var Jo=m(934),Bs=m(9226),To,vh,Xo;const{ROUTE_NAVIGATION_DELEGATE:bY}=Bs.ErrorCode;class OY{constructor(){To.add(this),vh.set(this,void 0)}setDelegate(t){TY(this,vh,t,"f")}navigate(t,r){return typeof t=="number"?So(this,To,"a",Xo).navigate(t):So(this,To,"a",Xo).navigate(t,r)}has(t){return So(this,To,"a",Xo).has(t)}getPath(t){return So(this,To,"a",Xo).getPath(t)}getHref(t){return So(this,To,"a",Xo).getHref(t)}getSearchParams(){return So(this,To,"a",Xo).getSearchParams()}setSearchParams(t,r){So(this,To,"a",Xo).setSearchParams(t,r)}getUrlParams(){return So(this,To,"a",Xo).getUrlParams()}getId(t){return So(this,To,"a",Xo).getId(t)}}vh=new WeakMap,To=new WeakSet,Xo=function(){if(!So(this,vh,"f"))throw new Jo.b("route navigation delegate has not been set",{errorCode:bY});return So(this,vh,"f")};var Ay;(function(e){e.one="1.0.0"})(Ay||(Ay={}));const aN="orchestrator:navigation-service",AY={id:aN,create:()=>{const e=new OY;return{[Ay.one]:()=>({featureService:e})}}};function Zo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,S(n.key),n)}}function es(e,t,r){return t&&oN(e.prototype,t),r&&oN(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Iu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xA(e,t){return xA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},xA(e,t)}function Cy(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xA(e,t)}function gh(e,t){if(t&&(oe(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Iu(e)}function ts(e){return ts=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ts(e)}function CY(e){if(Array.isArray(e))return e}function PY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sN(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function RY(e,t){if(!!e){if(typeof e=="string")return sN(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sN(e,t)}}function IY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
106
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wY(e){return CY(e)||PY(e)||RY(e)||IY()}function uN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cN(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uN(Object(r),!0).forEach(function(n){Te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var NY={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,r){console&&console[t]&&console[t].apply(console,r)}},MY=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Zo(this,e),this.init(t,r)}return es(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=r||NY,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(r){this.debug=r}},{key:"log",value:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(r,n,i,o){return o&&!this.debug?null:(typeof r[0]=="string"&&(r[0]="".concat(i).concat(this.prefix," ").concat(r[0])),this.logger[n](r))}},{key:"create",value:function(r){return new e(this.logger,cN(cN({},{prefix:"".concat(this.prefix,":").concat(r,":")}),this.options))}},{key:"clone",value:function(r){return r=r||this.options,r.prefix=r.prefix||this.prefix,new e(this.logger,r)}}]),e}(),rs=new MY,wu=function(){function e(){Zo(this,e),this.observers={}}return es(e,[{key:"on",value:function(r,n){var i=this;return r.split(" ").forEach(function(o){i.observers[o]=i.observers[o]||[],i.observers[o].push(n)}),this}},{key:"off",value:function(r,n){if(!!this.observers[r]){if(!n){delete this.observers[r];return}this.observers[r]=this.observers[r].filter(function(i){return i!==n})}}},{key:"emit",value:function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];if(this.observers[r]){var u=[].concat(this.observers[r]);u.forEach(function(g){g.apply(void 0,i)})}if(this.observers["*"]){var l=[].concat(this.observers["*"]);l.forEach(function(g){g.apply(g,[r].concat(i))})}}}]),e}();function yh(){var e,t,r=new Promise(function(n,i){e=n,t=i});return r.resolve=e,r.reject=t,r}function lN(e){return e==null?"":""+e}function LY(e,t,r){e.forEach(function(n){t[n]&&(r[n]=t[n])})}function UA(e,t,r){function n(l){return l&&l.indexOf("###")>-1?l.replace(/###/g,"."):l}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var u=n(o.shift());!e[u]&&r&&(e[u]=new r),Object.prototype.hasOwnProperty.call(e,u)?e=e[u]:e={}}return i()?{}:{obj:e,k:n(o.shift())}}function fN(e,t,r){var n=UA(e,t,Object),i=n.obj,o=n.k;i[o]=r}function DY(e,t,r,n){var i=UA(e,t,Object),o=i.obj,u=i.k;o[u]=o[u]||[],n&&(o[u]=o[u].concat(r)),n||o[u].push(r)}function Py(e,t){var r=UA(e,t),n=r.obj,i=r.k;if(!!n)return n[i]}function dN(e,t,r){var n=Py(e,r);return n!==void 0?n:Py(t,r)}function pN(e,t,r){for(var n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):pN(e[n],t[n],r):e[n]=t[n]);return e}function Cf(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var xY={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function UY(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return xY[t]}):e}var Ry=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,$Y=[" ",",","?","!",";"];function FY(e,t,r){t=t||"",r=r||"";var n=$Y.filter(function(l){return t.indexOf(l)<0&&r.indexOf(l)<0});if(n.length===0)return!0;var i=new RegExp("(".concat(n.map(function(l){return l==="?"?"\\?":l}).join("|"),")")),o=!i.test(e);if(!o){var u=e.indexOf(r);u>0&&!i.test(e.substring(0,u))&&(o=!0)}return o}function hN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Iy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hN(Object(r),!0).forEach(function(n){Te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kY(e){var t=GY();return function(){var n=ts(e),i;if(t){var o=ts(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return gh(this,i)}}function GY(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _N(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!!e){if(e[t])return e[t];for(var n=t.split(r),i=e,o=0;o<n.length;++o){if(!i||typeof i[n[o]]=="string"&&o+1<n.length)return;if(i[n[o]]===void 0){for(var u=2,l=n.slice(o,o+u).join(r),g=i[l];g===void 0&&n.length>o+u;)u++,l=n.slice(o,o+u).join(r),g=i[l];if(g===void 0)return;if(g===null)return null;if(t.endsWith(l)){if(typeof g=="string")return g;if(l&&typeof g[l]=="string")return g[l]}var d=n.slice(o+u).join(r);return d?_N(g,d,r):void 0}i=i[n[o]]}return i}}var jY=function(e){Cy(r,e);var t=kY(r);function r(n){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Zo(this,r),i=t.call(this),Ry&&wu.call(Iu(i)),i.data=n||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return es(r,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,u){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,d=l.ignoreJSONStructure!==void 0?l.ignoreJSONStructure:this.options.ignoreJSONStructure,v=[i,o];u&&typeof u!="string"&&(v=v.concat(u)),u&&typeof u=="string"&&(v=v.concat(g?u.split(g):u)),i.indexOf(".")>-1&&(v=i.split("."));var T=Py(this.data,v);return T||!d||typeof u!="string"?T:_N(this.data&&this.data[i]&&this.data[i][o],u,g)}},{key:"addResource",value:function(i,o,u,l){var g=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},d=this.options.keySeparator;d===void 0&&(d=".");var v=[i,o];u&&(v=v.concat(d?u.split(d):u)),i.indexOf(".")>-1&&(v=i.split("."),l=o,o=v[1]),this.addNamespaces(o),fN(this.data,v,l),g.silent||this.emit("added",i,o,u,l)}},{key:"addResources",value:function(i,o,u){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var g in u)(typeof u[g]=="string"||Object.prototype.toString.apply(u[g])==="[object Array]")&&this.addResource(i,o,g,u[g],{silent:!0});l.silent||this.emit("added",i,o,u)}},{key:"addResourceBundle",value:function(i,o,u,l,g){var d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},v=[i,o];i.indexOf(".")>-1&&(v=i.split("."),l=u,u=o,o=v[1]),this.addNamespaces(o);var T=Py(this.data,v)||{};l?pN(T,u,g):T=Iy(Iy({},T),u),fN(this.data,v,T),d.silent||this.emit("added",i,o,u)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Iy(Iy({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),u=o&&Object.keys(o)||[];return!!u.find(function(l){return o[l]&&Object.keys(o[l]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),r}(wu),vN={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,r,n,i,o){var u=this;return t.forEach(function(l){u.processors[l]&&(r=u.processors[l].process(r,n,i,o))}),r}};function gN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ca(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gN(Object(r),!0).forEach(function(n){Te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BY(e){var t=VY();return function(){var n=ts(e),i;if(t){var o=ts(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return gh(this,i)}}function VY(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var yN={},mN=function(e){Cy(r,e);var t=BY(r);function r(n){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Zo(this,r),i=t.call(this),Ry&&wu.call(Iu(i)),LY(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,Iu(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=rs.create("translator"),i}return es(r,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var u=this.resolve(i,o);return u&&u.res!==void 0}},{key:"extractFromKey",value:function(i,o){var u=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");var l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,g=o.ns||this.options.defaultNS||[],d=u&&i.indexOf(u)>-1,v=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!FY(i,u,l);if(d&&!v){var T=i.match(this.interpolator.nestingRegexp);if(T&&T.length>0)return{key:i,namespaces:g};var V=i.split(u);(u!==l||u===l&&this.options.ns.indexOf(V[0])>-1)&&(g=V.shift()),i=V.join(l)}return typeof g=="string"&&(g=[g]),{key:i,namespaces:g}}},{key:"translate",value:function(i,o,u){var l=this;if(oe(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var g=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,d=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,v=this.extractFromKey(i[i.length-1],o),T=v.key,V=v.namespaces,fe=V[V.length-1],he=o.lng||this.language,ye=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(he&&he.toLowerCase()==="cimode"){if(ye){var xe=o.nsSeparator||this.options.nsSeparator;return g?(Ie.res="".concat(fe).concat(xe).concat(T),Ie):"".concat(fe).concat(xe).concat(T)}return g?(Ie.res=T,Ie):T}var Ie=this.resolve(i,o),Ne=Ie&&Ie.res,at=Ie&&Ie.usedKey||T,_t=Ie&&Ie.exactUsedKey||T,$t=Object.prototype.toString.apply(Ne),nr=["[object Number]","[object Function]","[object RegExp]"],jr=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,vn=!this.i18nFormat||this.i18nFormat.handleAsObject,wi=typeof Ne!="string"&&typeof Ne!="boolean"&&typeof Ne!="number";if(vn&&Ne&&wi&&nr.indexOf($t)<0&&!(typeof jr=="string"&&$t==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var ru=this.options.returnedObjectHandler?this.options.returnedObjectHandler(at,Ne,ca(ca({},o),{},{ns:V})):"key '".concat(T," (").concat(this.language,")' returned an object instead of string.");return g?(Ie.res=ru,Ie):ru}if(d){var nu=$t==="[object Array]",ha=nu?[]:{},b_=nu?_t:at;for(var Td in Ne)if(Object.prototype.hasOwnProperty.call(Ne,Td)){var Wj="".concat(b_).concat(d).concat(Td);ha[Td]=this.translate(Wj,ca(ca({},o),{joinArrays:!1,ns:V})),ha[Td]===Wj&&(ha[Td]=Ne[Td])}Ne=ha}}else if(vn&&typeof jr=="string"&&$t==="[object Array]")Ne=Ne.join(jr),Ne&&(Ne=this.extendTranslation(Ne,i,o,u));else{var PE=!1,O_=!1,Yj=o.count!==void 0&&typeof o.count!="string",pR=r.hasDefaultValue(o),Fhe=Yj?this.pluralResolver.getSuffix(he,o.count,o):"",A_=o["defaultValue".concat(Fhe)]||o.defaultValue;!this.isValidLookup(Ne)&&pR&&(PE=!0,Ne=A_),this.isValidLookup(Ne)||(O_=!0,Ne=T);var khe=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Ghe=khe&&O_?void 0:Ne,C_=pR&&A_!==Ne&&this.options.updateMissing;if(O_||PE||C_){if(this.logger.log(C_?"updateKey":"missingKey",he,fe,T,C_?A_:Ne),d){var Kj=this.resolve(T,ca(ca({},o),{},{keySeparator:!1}));Kj&&Kj.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var P_=[],RE=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&RE&&RE[0])for(var hR=0;hR<RE.length;hR++)P_.push(RE[hR]);else this.options.saveMissingTo==="all"?P_=this.languageUtils.toResolveHierarchy(o.lng||this.language):P_.push(o.lng||this.language);var zj=function(bd,vR,Jj){var Xj=pR&&Jj!==Ne?Jj:Ghe;l.options.missingKeyHandler?l.options.missingKeyHandler(bd,fe,vR,Xj,C_,o):l.backendConnector&&l.backendConnector.saveMissing&&l.backendConnector.saveMissing(bd,fe,vR,Xj,C_,o),l.emit("missingKey",bd,fe,vR,Ne)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Yj?P_.forEach(function(_R){l.pluralResolver.getSuffixes(_R,o).forEach(function(bd){zj([_R],T+bd,o["defaultValue".concat(bd)]||A_)})}):zj(P_,T,A_))}Ne=this.extendTranslation(Ne,i,o,Ie,u),O_&&Ne===T&&this.options.appendNamespaceToMissingKey&&(Ne="".concat(fe,":").concat(T)),(O_||PE)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?Ne=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(fe,":").concat(T):T,PE?Ne:void 0):Ne=this.options.parseMissingKeyHandler(Ne))}return g?(Ie.res=Ne,Ie):Ne}},{key:"extendTranslation",value:function(i,o,u,l,g){var d=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,ca(ca({},this.options.interpolation.defaultVariables),u),l.usedLng,l.usedNS,l.usedKey,{resolved:l});else if(!u.skipInterpolation){u.interpolation&&this.interpolator.init(ca(ca({},u),{interpolation:ca(ca({},this.options.interpolation),u.interpolation)}));var v=typeof i=="string"&&(u&&u.interpolation&&u.interpolation.skipOnVariables!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),T;if(v){var V=i.match(this.interpolator.nestingRegexp);T=V&&V.length}var fe=u.replace&&typeof u.replace!="string"?u.replace:u;if(this.options.interpolation.defaultVariables&&(fe=ca(ca({},this.options.interpolation.defaultVariables),fe)),i=this.interpolator.interpolate(i,fe,u.lng||this.language,u),v){var he=i.match(this.interpolator.nestingRegexp),ye=he&&he.length;T<ye&&(u.nest=!1)}u.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var Ne=arguments.length,at=new Array(Ne),_t=0;_t<Ne;_t++)at[_t]=arguments[_t];return g&&g[0]===at[0]&&!u.context?(d.logger.warn("It seems you are nesting recursively key: ".concat(at[0]," in key: ").concat(o[0])),null):d.translate.apply(d,at.concat([o]))},u)),u.interpolation&&this.interpolator.reset()}var xe=u.postProcess||this.options.postProcess,Ie=typeof xe=="string"?[xe]:xe;return i!=null&&Ie&&Ie.length&&u.applyPostProcessor!==!1&&(i=vN.handle(Ie,i,o,this.options&&this.options.postProcessPassResolved?ca({i18nResolved:l},u):u,this)),i}},{key:"resolve",value:function(i){var o=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,g,d,v,T;return typeof i=="string"&&(i=[i]),i.forEach(function(V){if(!o.isValidLookup(l)){var fe=o.extractFromKey(V,u),he=fe.key;g=he;var ye=fe.namespaces;o.options.fallbackNS&&(ye=ye.concat(o.options.fallbackNS));var xe=u.count!==void 0&&typeof u.count!="string",Ie=xe&&!u.ordinal&&u.count===0&&o.pluralResolver.shouldUseIntlApi(),Ne=u.context!==void 0&&(typeof u.context=="string"||typeof u.context=="number")&&u.context!=="",at=u.lngs?u.lngs:o.languageUtils.toResolveHierarchy(u.lng||o.language,u.fallbackLng);ye.forEach(function(_t){o.isValidLookup(l)||(T=_t,!yN["".concat(at[0],"-").concat(_t)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(T)&&(yN["".concat(at[0],"-").concat(_t)]=!0,o.logger.warn('key "'.concat(g,'" for languages "').concat(at.join(", "),`" won't get resolved as namespace "`).concat(T,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),at.forEach(function($t){if(!o.isValidLookup(l)){v=$t;var nr=[he];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(nr,he,$t,_t,u);else{var jr;xe&&(jr=o.pluralResolver.getSuffix($t,u.count,u));var vn="".concat(o.options.pluralSeparator,"zero");if(xe&&(nr.push(he+jr),Ie&&nr.push(he+vn)),Ne){var wi="".concat(he).concat(o.options.contextSeparator).concat(u.context);nr.push(wi),xe&&(nr.push(wi+jr),Ie&&nr.push(wi+vn))}}for(var ru;ru=nr.pop();)o.isValidLookup(l)||(d=ru,l=o.getResource($t,_t,ru,u))}}))})}}),{res:l,usedKey:g,exactUsedKey:d,usedLng:v,usedNS:T}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,u){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,u,l):this.resourceStore.getResource(i,o,u,l)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var u in i)if(Object.prototype.hasOwnProperty.call(i,u)&&o===u.substring(0,o.length)&&i[u]!==void 0)return!0;return!1}}]),r}(wu);function $A(e){return e.charAt(0).toUpperCase()+e.slice(1)}var qY=function(){function e(t){Zo(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=rs.create("languageUtils")}return es(e,[{key:"getScriptPartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return null;var n=r.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}},{key:"getLanguagePartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return r;var n=r.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(r){if(typeof r=="string"&&r.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],i=r.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=$A(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=$A(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=$A(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}},{key:"isSupportedCode",value:function(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}},{key:"getBestMatchFromCodes",value:function(r){var n=this;if(!r)return null;var i;return r.forEach(function(o){if(!i){var u=n.formatLanguageCode(o);(!n.options.supportedLngs||n.isSupportedCode(u))&&(i=u)}}),!i&&this.options.supportedLngs&&r.forEach(function(o){if(!i){var u=n.getLanguagePartFromCode(o);if(n.isSupportedCode(u))return i=u;i=n.options.supportedLngs.find(function(l){if(l.indexOf(u)===0)return l})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(r,n){if(!r)return[];if(typeof r=="function"&&(r=r(n)),typeof r=="string"&&(r=[r]),Object.prototype.toString.apply(r)==="[object Array]")return r;if(!n)return r.default||[];var i=r[n];return i||(i=r[this.getScriptPartFromCode(n)]),i||(i=r[this.formatLanguageCode(n)]),i||(i=r[this.getLanguagePartFromCode(n)]),i||(i=r.default),i||[]}},{key:"toResolveHierarchy",value:function(r,n){var i=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],r),u=[],l=function(d){!d||(i.isSupportedCode(d)?u.push(d):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(d)))};return typeof r=="string"&&r.indexOf("-")>-1?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(r))):typeof r=="string"&&l(this.formatLanguageCode(r)),o.forEach(function(g){u.indexOf(g)<0&&l(i.formatLanguageCode(g))}),u}}]),e}(),HY=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],QY={1:function(t){return Number(t>1)},2:function(t){return Number(t!=1)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(t==1?0:t>=2&&t<=4?1:2)},7:function(t){return Number(t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(t==1?0:t==2?1:t!=8&&t!=11?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(t==1?0:t==2?1:t<7?2:t<11?3:4)},11:function(t){return Number(t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(t!==0)},14:function(t){return Number(t==1?0:t==2?1:t==3?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:t!==0?1:2)},17:function(t){return Number(t==1||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(t==0?0:t==1?1:2)},19:function(t){return Number(t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(t==1?0:t==0||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3)}},WY=["v1","v2","v3"],EN={zero:0,one:1,two:2,few:3,many:4,other:5};function YY(){var e={};return HY.forEach(function(t){t.lngs.forEach(function(r){e[r]={numbers:t.nr,plurals:QY[t.fc]}})}),e}var KY=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Zo(this,e),this.languageUtils=t,this.options=r,this.logger=rs.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=YY()}return es(e,[{key:"addRule",value:function(r,n){this.rules[r]=n}},{key:"getRule",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(r,{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[r]||this.rules[this.languageUtils.getLanguagePartFromCode(r)]}},{key:"needsPlural",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(r,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(r,i).map(function(o){return"".concat(n).concat(o)})}},{key:"getSuffixes",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(r,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(u,l){return EN[u]-EN[l]}).map(function(u){return"".concat(n.options.prepend).concat(u)}):o.numbers.map(function(u){return n.getSuffix(r,u,i)}):[]}},{key:"getSuffix",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(r,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(n)):this.getSuffixRetroCompatible(o,n):(this.logger.warn("no plural rule found for: ".concat(r)),"")}},{key:"getSuffixRetroCompatible",value:function(r,n){var i=this,o=r.noAbs?r.plurals(n):r.plurals(Math.abs(n)),u=r.numbers[o];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(u===2?u="plural":u===1&&(u=""));var l=function(){return i.options.prepend&&u.toString()?i.options.prepend+u.toString():u.toString()};return this.options.compatibilityJSON==="v1"?u===1?"":typeof u=="number"?"_plural_".concat(u.toString()):l():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?l():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!WY.includes(this.options.compatibilityJSON)}}]),e}();function SN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?SN(Object(r),!0).forEach(function(n){Te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):SN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var zY=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Zo(this,e),this.logger=rs.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(r){return r},this.init(t)}return es(e,[{key:"init",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.interpolation||(r.interpolation={escapeValue:!0});var n=r.interpolation;this.escape=n.escape!==void 0?n.escape:UY,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?Cf(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Cf(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?Cf(n.nestingPrefix):n.nestingPrefixEscaped||Cf("$t("),this.nestingSuffix=n.nestingSuffix?Cf(n.nestingSuffix):n.nestingSuffixEscaped||Cf(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var r="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(r,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(r,n,i,o){var u=this,l,g,d,v=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function T(xe){return xe.replace(/\$/g,"$$$$")}var V=function(Ie){if(Ie.indexOf(u.formatSeparator)<0){var Ne=dN(n,v,Ie);return u.alwaysFormat?u.format(Ne,void 0,i,bo(bo(bo({},o),n),{},{interpolationkey:Ie})):Ne}var at=Ie.split(u.formatSeparator),_t=at.shift().trim(),$t=at.join(u.formatSeparator).trim();return u.format(dN(n,v,_t),$t,i,bo(bo(bo({},o),n),{},{interpolationkey:_t}))};this.resetRegExp();var fe=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,he=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,ye=[{regex:this.regexpUnescape,safeValue:function(Ie){return T(Ie)}},{regex:this.regexp,safeValue:function(Ie){return u.escapeValue?T(u.escape(Ie)):T(Ie)}}];return ye.forEach(function(xe){for(d=0;l=xe.regex.exec(r);){var Ie=l[1].trim();if(g=V(Ie),g===void 0)if(typeof fe=="function"){var Ne=fe(r,l,o);g=typeof Ne=="string"?Ne:""}else if(o&&o.hasOwnProperty(Ie))g="";else if(he){g=l[0];continue}else u.logger.warn("missed to pass in variable ".concat(Ie," for interpolating ").concat(r)),g="";else typeof g!="string"&&!u.useRawValueToEscape&&(g=lN(g));var at=xe.safeValue(g);if(r=r.replace(l[0],at),he?(xe.regex.lastIndex+=g.length,xe.regex.lastIndex-=l[0].length):xe.regex.lastIndex=0,d++,d>=u.maxReplaces)break}}),r}},{key:"nest",value:function(r,n){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u,l,g=bo({},o);g.applyPostProcessor=!1,delete g.defaultValue;function d(fe,he){var ye=this.nestingOptionsSeparator;if(fe.indexOf(ye)<0)return fe;var xe=fe.split(new RegExp("".concat(ye,"[ ]*{"))),Ie="{".concat(xe[1]);fe=xe[0],Ie=this.interpolate(Ie,g);var Ne=Ie.match(/'/g),at=Ie.match(/"/g);(Ne&&Ne.length%2===0&&!at||at.length%2!==0)&&(Ie=Ie.replace(/'/g,'"'));try{g=JSON.parse(Ie),he&&(g=bo(bo({},he),g))}catch(_t){return this.logger.warn("failed parsing options string in nesting for key ".concat(fe),_t),"".concat(fe).concat(ye).concat(Ie)}return delete g.defaultValue,fe}for(;u=this.nestingRegexp.exec(r);){var v=[],T=!1;if(u[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(u[1])){var V=u[1].split(this.formatSeparator).map(function(fe){return fe.trim()});u[1]=V.shift(),v=V,T=!0}if(l=n(d.call(this,u[1].trim(),g),g),l&&u[0]===r&&typeof l!="string")return l;typeof l!="string"&&(l=lN(l)),l||(this.logger.warn("missed to resolve ".concat(u[1]," for nesting ").concat(r)),l=""),T&&(l=v.reduce(function(fe,he){return i.format(fe,he,o.lng,bo(bo({},o),{},{interpolationkey:u[1].trim()}))},l.trim())),r=r.replace(u[0],l),this.regexp.lastIndex=0}return r}}]),e}();function TN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TN(Object(r),!0).forEach(function(n){Te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JY(e){var t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){var n=e.split("(");t=n[0].toLowerCase().trim();var i=n[1].substring(0,n[1].length-1);if(t==="currency"&&i.indexOf(":")<0)r.currency||(r.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)r.range||(r.range=i.trim());else{var o=i.split(";");o.forEach(function(u){if(!!u){var l=u.split(":"),g=wY(l),d=g[0],v=g.slice(1),T=v.join(":").trim().replace(/^'+|'+$/g,"");r[d.trim()]||(r[d.trim()]=T),T==="false"&&(r[d.trim()]=!1),T==="true"&&(r[d.trim()]=!0),isNaN(T)||(r[d.trim()]=parseInt(T,10))}})}}return{formatName:t,formatOptions:r}}function Pf(e){var t={};return function(n,i,o){var u=i+JSON.stringify(o),l=t[u];return l||(l=e(i,o),t[u]=l),l(n)}}var XY=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Zo(this,e),this.logger=rs.create("formatter"),this.options=t,this.formats={number:Pf(function(r,n){var i=new Intl.NumberFormat(r,n);return function(o){return i.format(o)}}),currency:Pf(function(r,n){var i=new Intl.NumberFormat(r,Nu(Nu({},n),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:Pf(function(r,n){var i=new Intl.DateTimeFormat(r,Nu({},n));return function(o){return i.format(o)}}),relativetime:Pf(function(r,n){var i=new Intl.RelativeTimeFormat(r,Nu({},n));return function(o){return i.format(o,n.range||"day")}}),list:Pf(function(r,n){var i=new Intl.ListFormat(r,Nu({},n));return function(o){return i.format(o)}})},this.init(t)}return es(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=n.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(r,n){this.formats[r.toLowerCase().trim()]=n}},{key:"addCached",value:function(r,n){this.formats[r.toLowerCase().trim()]=Pf(n)}},{key:"format",value:function(r,n,i,o){var u=this,l=n.split(this.formatSeparator),g=l.reduce(function(d,v){var T=JY(v),V=T.formatName,fe=T.formatOptions;if(u.formats[V]){var he=d;try{var ye=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},xe=ye.locale||ye.lng||o.locale||o.lng||i;he=u.formats[V](d,xe,Nu(Nu(Nu({},fe),o),ye))}catch(Ie){u.logger.warn(Ie)}return he}else u.logger.warn("there was no format function for ".concat(V));return d},r);return g}}]),e}();function bN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ON(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bN(Object(r),!0).forEach(function(n){Te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZY(e){var t=e3();return function(){var n=ts(e),i;if(t){var o=ts(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return gh(this,i)}}function e3(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function t3(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var r3=function(e){Cy(r,e);var t=ZY(r);function r(n,i,o){var u,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Zo(this,r),u=t.call(this),Ry&&wu.call(Iu(u)),u.backend=n,u.store=i,u.services=o,u.languageUtils=o.languageUtils,u.options=l,u.logger=rs.create("backendConnector"),u.waitingReads=[],u.maxParallelReads=l.maxParallelReads||10,u.readingCalls=0,u.maxRetries=l.maxRetries>=0?l.maxRetries:5,u.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,u.state={},u.queue=[],u.backend&&u.backend.init&&u.backend.init(o,l.backend,l),u}return es(r,[{key:"queueLoad",value:function(i,o,u,l){var g=this,d={},v={},T={},V={};return i.forEach(function(fe){var he=!0;o.forEach(function(ye){var xe="".concat(fe,"|").concat(ye);!u.reload&&g.store.hasResourceBundle(fe,ye)?g.state[xe]=2:g.state[xe]<0||(g.state[xe]===1?v[xe]===void 0&&(v[xe]=!0):(g.state[xe]=1,he=!1,v[xe]===void 0&&(v[xe]=!0),d[xe]===void 0&&(d[xe]=!0),V[ye]===void 0&&(V[ye]=!0)))}),he||(T[fe]=!0)}),(Object.keys(d).length||Object.keys(v).length)&&this.queue.push({pending:v,pendingCount:Object.keys(v).length,loaded:{},errors:[],callback:l}),{toLoad:Object.keys(d),pending:Object.keys(v),toLoadLanguages:Object.keys(T),toLoadNamespaces:Object.keys(V)}}},{key:"loaded",value:function(i,o,u){var l=i.split("|"),g=l[0],d=l[1];o&&this.emit("failedLoading",g,d,o),u&&this.store.addResourceBundle(g,d,u),this.state[i]=o?-1:2;var v={};this.queue.forEach(function(T){DY(T.loaded,[g],d),t3(T,i),o&&T.errors.push(o),T.pendingCount===0&&!T.done&&(Object.keys(T.loaded).forEach(function(V){v[V]||(v[V]={});var fe=T.loaded[V];fe.length&&fe.forEach(function(he){v[V][he]===void 0&&(v[V][he]=!0)})}),T.done=!0,T.errors.length?T.callback(T.errors):T.callback())}),this.emit("loaded",v),this.queue=this.queue.filter(function(T){return!T.done})}},{key:"read",value:function(i,o,u){var l=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,v=arguments.length>5?arguments[5]:void 0;if(!i.length)return v(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:u,tried:g,wait:d,callback:v});return}return this.readingCalls++,this.backend[u](i,o,function(T,V){if(l.readingCalls--,l.waitingReads.length>0){var fe=l.waitingReads.shift();l.read(fe.lng,fe.ns,fe.fcName,fe.tried,fe.wait,fe.callback)}if(T&&V&&g<l.maxRetries){setTimeout(function(){l.read.call(l,i,o,u,g+1,d*2,v)},d);return}v(T,V)})}},{key:"prepareLoading",value:function(i,o){var u=this,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},g=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),g&&g();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var d=this.queueLoad(i,o,l,g);if(!d.toLoad.length)return d.pending.length||g(),null;d.toLoad.forEach(function(v){u.loadOne(v)})}},{key:"load",value:function(i,o,u){this.prepareLoading(i,o,{},u)}},{key:"reload",value:function(i,o,u){this.prepareLoading(i,o,{reload:!0},u)}},{key:"loadOne",value:function(i){var o=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",l=i.split("|"),g=l[0],d=l[1];this.read(g,d,"read",void 0,void 0,function(v,T){v&&o.logger.warn("".concat(u,"loading namespace ").concat(d," for language ").concat(g," failed"),v),!v&&T&&o.logger.log("".concat(u,"loaded namespace ").concat(d," for language ").concat(g),T),o.loaded(i,v,T)})}},{key:"saveMissing",value:function(i,o,u,l,g){var d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(u,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}u==null||u===""||(this.backend&&this.backend.create&&this.backend.create(i,o,u,l,null,ON(ON({},d),{},{isUpdate:g})),!(!i||!i[0])&&this.store.addResource(i[0],o,u,l))}}]),r}(wu);function n3(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var r={};if(oe(t[1])==="object"&&(r=t[1]),typeof t[1]=="string"&&(r.defaultValue=t[1]),typeof t[2]=="string"&&(r.tDescription=t[2]),oe(t[2])==="object"||oe(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach(function(i){r[i]=n[i]})}return r},interpolation:{escapeValue:!0,format:function(t,r,n,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function AN(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function CN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ns(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CN(Object(r),!0).forEach(function(n){Te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function i3(e){var t=a3();return function(){var n=ts(e),i;if(t){var o=ts(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return gh(this,i)}}function a3(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function wy(){}function o3(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(r){typeof e[r]=="function"&&(e[r]=e[r].bind(e))})}var Ny=function(e){Cy(r,e);var t=i3(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Zo(this,r),n=t.call(this),Ry&&wu.call(Iu(n)),n.options=AN(i),n.services={},n.logger=rs,n.modules={external:[]},o3(Iu(n)),o&&!n.isInitialized&&!i.isClone){if(!n.options.initImmediate)return n.init(i,o),gh(n,Iu(n));setTimeout(function(){n.init(i,o)},0)}return n}return es(r,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(u=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var l=n3();this.options=ns(ns(ns({},l),this.options),AN(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=ns(ns({},l.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function g(Ie){return Ie?typeof Ie=="function"?new Ie:Ie:null}if(!this.options.isClone){this.modules.logger?rs.init(g(this.modules.logger),this.options):rs.init(null,this.options);var d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=XY);var v=new qY(this.options);this.store=new jY(this.options.resources,this.options);var T=this.services;T.logger=rs,T.resourceStore=this.store,T.languageUtils=v,T.pluralResolver=new KY(v,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===l.interpolation.format)&&(T.formatter=g(d),T.formatter.init(T,this.options),this.options.interpolation.format=T.formatter.format.bind(T.formatter)),T.interpolator=new zY(this.options),T.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},T.backendConnector=new r3(g(this.modules.backend),T.resourceStore,T,this.options),T.backendConnector.on("*",function(Ie){for(var Ne=arguments.length,at=new Array(Ne>1?Ne-1:0),_t=1;_t<Ne;_t++)at[_t-1]=arguments[_t];i.emit.apply(i,[Ie].concat(at))}),this.modules.languageDetector&&(T.languageDetector=g(this.modules.languageDetector),T.languageDetector.init(T,this.options.detection,this.options)),this.modules.i18nFormat&&(T.i18nFormat=g(this.modules.i18nFormat),T.i18nFormat.init&&T.i18nFormat.init(this)),this.translator=new mN(this.services,this.options),this.translator.on("*",function(Ie){for(var Ne=arguments.length,at=new Array(Ne>1?Ne-1:0),_t=1;_t<Ne;_t++)at[_t-1]=arguments[_t];i.emit.apply(i,[Ie].concat(at))}),this.modules.external.forEach(function(Ie){Ie.init&&Ie.init(i)})}if(this.format=this.options.interpolation.format,u||(u=wy),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var V=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);V.length>0&&V[0]!=="dev"&&(this.options.lng=V[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var fe=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];fe.forEach(function(Ie){i[Ie]=function(){var Ne;return(Ne=i.store)[Ie].apply(Ne,arguments)}});var he=["addResource","addResources","addResourceBundle","removeResourceBundle"];he.forEach(function(Ie){i[Ie]=function(){var Ne;return(Ne=i.store)[Ie].apply(Ne,arguments),i}});var ye=yh(),xe=function(){var Ne=function(_t,$t){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),ye.resolve($t),u(_t,$t)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return Ne(null,i.t.bind(i));i.changeLanguage(i.options.lng,Ne)};return this.options.resources||!this.options.initImmediate?xe():setTimeout(xe,0),ye}},{key:"loadResources",value:function(i){var o=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wy,l=u,g=typeof i=="string"?i:this.language;if(typeof i=="function"&&(l=i),!this.options.resources||this.options.partialBundledLanguages){if(g&&g.toLowerCase()==="cimode")return l();var d=[],v=function(fe){if(!!fe){var he=o.services.languageUtils.toResolveHierarchy(fe);he.forEach(function(ye){d.indexOf(ye)<0&&d.push(ye)})}};if(g)v(g);else{var T=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);T.forEach(function(V){return v(V)})}this.options.preload&&this.options.preload.forEach(function(V){return v(V)}),this.services.backendConnector.load(d,this.options.ns,function(V){!V&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),l(V)})}else l(null)}},{key:"reloadResources",value:function(i,o,u){var l=yh();return i||(i=this.languages),o||(o=this.options.ns),u||(u=wy),this.services.backendConnector.reload(i,o,function(g){l.resolve(),u(g)}),l}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&vN.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o<this.languages.length;o++){var u=this.languages[o];if(!(["cimode","dev"].indexOf(u)>-1)&&this.store.hasLanguageSomeTranslations(u)){this.resolvedLanguage=u;break}}}},{key:"changeLanguage",value:function(i,o){var u=this;this.isLanguageChangingTo=i;var l=yh();this.emit("languageChanging",i);var g=function(V){u.language=V,u.languages=u.services.languageUtils.toResolveHierarchy(V),u.resolvedLanguage=void 0,u.setResolvedLanguage(V)},d=function(V,fe){fe?(g(fe),u.translator.changeLanguage(fe),u.isLanguageChangingTo=void 0,u.emit("languageChanged",fe),u.logger.log("languageChanged",fe)):u.isLanguageChangingTo=void 0,l.resolve(function(){return u.t.apply(u,arguments)}),o&&o(V,function(){return u.t.apply(u,arguments)})},v=function(V){!i&&!V&&u.services.languageDetector&&(V=[]);var fe=typeof V=="string"?V:u.services.languageUtils.getBestMatchFromCodes(V);fe&&(u.language||g(fe),u.translator.language||u.translator.changeLanguage(fe),u.services.languageDetector&&u.services.languageDetector.cacheUserLanguage(fe)),u.loadResources(fe,function(he){d(he,fe)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?v(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(v):v(i),l}},{key:"getFixedT",value:function(i,o,u){var l=this,g=function d(v,T){var V;if(oe(T)!=="object"){for(var fe=arguments.length,he=new Array(fe>2?fe-2:0),ye=2;ye<fe;ye++)he[ye-2]=arguments[ye];V=l.options.overloadTranslationOptionHandler([v,T].concat(he))}else V=ns({},T);V.lng=V.lng||d.lng,V.lngs=V.lngs||d.lngs,V.ns=V.ns||d.ns,V.keyPrefix=V.keyPrefix||u||d.keyPrefix;var xe=l.options.keySeparator||".",Ie=V.keyPrefix?"".concat(V.keyPrefix).concat(xe).concat(v):v;return l.t(Ie,V)};return typeof i=="string"?g.lng=i:g.lngs=i,g.ns=o,g.keyPrefix=u,g}},{key:"t",value:function(){var i;return this.translator&&(i=this.translator).translate.apply(i,arguments)}},{key:"exists",value:function(){var i;return this.translator&&(i=this.translator).exists.apply(i,arguments)}},{key:"setDefaultNamespace",value:function(i){this.options.defaultNS=i}},{key:"hasLoadedNamespace",value:function(i){var o=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var l=this.resolvedLanguage||this.languages[0],g=this.options?this.options.fallbackLng:!1,d=this.languages[this.languages.length-1];if(l.toLowerCase()==="cimode")return!0;var v=function(fe,he){var ye=o.services.backendConnector.state["".concat(fe,"|").concat(he)];return ye===-1||ye===2};if(u.precheck){var T=u.precheck(this,v);if(T!==void 0)return T}return!!(this.hasResourceBundle(l,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||v(l,i)&&(!g||v(d,i)))}},{key:"loadNamespaces",value:function(i,o){var u=this,l=yh();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(g){u.options.ns.indexOf(g)<0&&u.options.ns.push(g)}),this.loadResources(function(g){l.resolve(),o&&o(g)}),l):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var u=yh();typeof i=="string"&&(i=[i]);var l=this.options.preload||[],g=i.filter(function(d){return l.indexOf(d)<0});return g.length?(this.options.preload=l.concat(g),this.loadResources(function(d){u.resolve(),o&&o(d)}),u):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"];return o.indexOf(this.services.languageUtils.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wy,l=ns(ns(ns({},this.options),o),{isClone:!0}),g=new r(l);(o.debug!==void 0||o.prefix!==void 0)&&(g.logger=g.logger.clone(o));var d=["store","services","language"];return d.forEach(function(v){g[v]=i[v]}),g.services=ns({},this.services),g.services.utils={hasLoadedNamespace:g.hasLoadedNamespace.bind(g)},g.translator=new mN(g.services,g.options),g.translator.on("*",function(v){for(var T=arguments.length,V=new Array(T>1?T-1:0),fe=1;fe<T;fe++)V[fe-1]=arguments[fe];g.emit.apply(g,[v].concat(V))}),g.init(l,u),g.translator.options=g.options,g.translator.backendConnector.services.utils={hasLoadedNamespace:g.hasLoadedNamespace.bind(g)},g}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),r}(wu);Te(Ny,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Ny(e,t)});var la=Ny.createInstance();la.createInstance=Ny.createInstance;var Qhe=la.createInstance,Whe=la.init,Yhe=la.loadResources,Khe=la.reloadResources,zhe=la.use,Jhe=la.changeLanguage,Xhe=la.getFixedT,Zhe=la.t,e_e=la.exists,t_e=la.setDefaultNamespace,r_e=la.hasLoadedNamespace,n_e=la.loadNamespaces,i_e=la.loadLanguages;const s3=la;var PN=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Oo=function(e){try{return!!e()}catch{return!0}},u3=Oo,RN=!u3(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),IN=RN,wN=Function.prototype,c3=wN.bind,FA=wN.call,l3=IN&&c3.bind(FA,FA),Ao=IN?function(e){return e&&l3(e)}:function(e){return e&&function(){return FA.apply(e,arguments)}},NN=Ao,f3=NN({}.toString),d3=NN("".slice),p3=function(e){return d3(f3(e),8,-1)},h3=Ao,_3=Oo,v3=p3,kA=Object,g3=h3("".split),MN=_3(function(){return!kA("z").propertyIsEnumerable(0)})?function(e){return v3(e)=="String"?g3(e,""):kA(e)}:kA,y3=TypeError,LN=function(e){if(e==null)throw y3("Can't call method on "+e);return e},m3=MN,E3=LN,mh=function(e){return m3(E3(e))},My=function(e){return e&&e.Math==Math&&e},is=My(typeof globalThis=="object"&&globalThis)||My(typeof window=="object"&&window)||My(typeof self=="object"&&self)||My(typeof PN=="object"&&PN)||function(){return this}()||Function("return this")(),GA={exports:{}},DN=is,S3=Object.defineProperty,jA=function(e,t){try{S3(DN,e,{value:t,configurable:!0,writable:!0})}catch{DN[e]=t}return t},T3=is,b3=jA,xN="__core-js_shared__",O3=T3[xN]||b3(xN,{}),BA=O3,UN=BA;(GA.exports=function(e,t){return UN[e]||(UN[e]=t!==void 0?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"});var A3=LN,C3=Object,VA=function(e){return C3(A3(e))},P3=Ao,R3=VA,I3=P3({}.hasOwnProperty),Vs=Object.hasOwn||function(t,r){return I3(R3(t),r)},w3=Ao,N3=0,M3=Math.random(),L3=w3(1 .toString),$N=function(e){return"Symbol("+(e===void 0?"":e)+")_"+L3(++N3+M3,36)},Ca=function(e){return typeof e=="function"},qA=is,D3=Ca,x3=function(e){return D3(e)?e:void 0},Ly=function(e,t){return arguments.length<2?x3(qA[e]):qA[e]&&qA[e][t]},U3=Ly,$3=U3("navigator","userAgent")||"",FN=is,HA=$3,kN=FN.process,GN=FN.Deno,jN=kN&&kN.versions||GN&&GN.version,BN=jN&&jN.v8,Co,Dy;BN&&(Co=BN.split("."),Dy=Co[0]>0&&Co[0]<4?1:+(Co[0]+Co[1])),!Dy&&HA&&(Co=HA.match(/Edge\/(\d+)/),(!Co||Co[1]>=74)&&(Co=HA.match(/Chrome\/(\d+)/),Co&&(Dy=+Co[1])));var F3=Dy,VN=F3,k3=Oo,qN=!!Object.getOwnPropertySymbols&&!k3(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&VN&&VN<41}),G3=qN,HN=G3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",j3=is,B3=GA.exports,QN=Vs,V3=$N,WN=qN,YN=HN,Rf=B3("wks"),Gc=j3.Symbol,KN=Gc&&Gc.for,q3=YN?Gc:Gc&&Gc.withoutSetter||V3,If=function(e){if(!QN(Rf,e)||!(WN||typeof Rf[e]=="string")){var t="Symbol."+e;WN&&QN(Gc,e)?Rf[e]=Gc[e]:YN&&KN?Rf[e]=KN(t):Rf[e]=q3(t)}return Rf[e]},H3=Ca,Eh=function(e){return typeof e=="object"?e!==null:H3(e)},Q3=Eh,W3=String,Y3=TypeError,Sh=function(e){if(Q3(e))return e;throw Y3(W3(e)+" is not an object")},zN={},K3=Oo,as=!K3(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),z3=as,J3=Oo,JN=z3&&J3(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),Mu={},X3=is,XN=Eh,QA=X3.document,Z3=XN(QA)&&XN(QA.createElement),WA=function(e){return Z3?QA.createElement(e):{}},eK=as,tK=Oo,rK=WA,ZN=!eK&&!tK(function(){return Object.defineProperty(rK("div"),"a",{get:function(){return 7}}).a!=7}),nK=RN,xy=Function.prototype.call,Th=nK?xy.bind(xy):function(){return xy.apply(xy,arguments)},iK=Ao,aK=iK({}.isPrototypeOf),oK=Ly,sK=Ca,uK=aK,cK=HN,lK=Object,eM=cK?function(e){return typeof e=="symbol"}:function(e){var t=oK("Symbol");return sK(t)&&uK(t.prototype,lK(e))},fK=String,dK=function(e){try{return fK(e)}catch{return"Object"}},pK=Ca,hK=dK,_K=TypeError,vK=function(e){if(pK(e))return e;throw _K(hK(e)+" is not a function")},gK=vK,yK=function(e,t){var r=e[t];return r==null?void 0:gK(r)},YA=Th,KA=Ca,zA=Eh,mK=TypeError,EK=function(e,t){var r,n;if(t==="string"&&KA(r=e.toString)&&!zA(n=YA(r,e))||KA(r=e.valueOf)&&!zA(n=YA(r,e))||t!=="string"&&KA(r=e.toString)&&!zA(n=YA(r,e)))return n;throw mK("Can't convert object to primitive value")},SK=Th,tM=Eh,rM=eM,TK=yK,bK=EK,OK=If,AK=TypeError,CK=OK("toPrimitive"),PK=function(e,t){if(!tM(e)||rM(e))return e;var r=TK(e,CK),n;if(r){if(t===void 0&&(t="default"),n=SK(r,e,t),!tM(n)||rM(n))return n;throw AK("Can't convert object to primitive value")}return t===void 0&&(t="number"),bK(e,t)},RK=PK,IK=eM,nM=function(e){var t=RK(e,"string");return IK(t)?t:t+""},wK=as,NK=ZN,MK=JN,Uy=Sh,iM=nM,LK=TypeError,JA=Object.defineProperty,DK=Object.getOwnPropertyDescriptor,XA="enumerable",ZA="configurable",e0="writable";Mu.f=wK?MK?function(t,r,n){if(Uy(t),r=iM(r),Uy(n),typeof t=="function"&&r==="prototype"&&"value"in n&&e0 in n&&!n[e0]){var i=DK(t,r);i&&i[e0]&&(t[r]=n.value,n={configurable:ZA in n?n[ZA]:i[ZA],enumerable:XA in n?n[XA]:i[XA],writable:!1})}return JA(t,r,n)}:JA:function(t,r,n){if(Uy(t),r=iM(r),Uy(n),NK)try{return JA(t,r,n)}catch{}if("get"in n||"set"in n)throw LK("Accessors not supported");return"value"in n&&(t[r]=n.value),t};var xK=Math.ceil,UK=Math.floor,$K=Math.trunc||function(t){var r=+t;return(r>0?UK:xK)(r)},FK=$K,aM=function(e){var t=+e;return t!==t||t===0?0:FK(t)},kK=aM,GK=Math.max,jK=Math.min,BK=function(e,t){var r=kK(e);return r<0?GK(r+t,0):jK(r,t)},VK=aM,qK=Math.min,HK=function(e){return e>0?qK(VK(e),9007199254740991):0},QK=HK,WK=function(e){return QK(e.length)},YK=mh,KK=BK,zK=WK,oM=function(e){return function(t,r,n){var i=YK(t),o=zK(i),u=KK(n,o),l;if(e&&r!=r){for(;o>u;)if(l=i[u++],l!=l)return!0}else for(;o>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},JK={includes:oM(!0),indexOf:oM(!1)},t0={},XK=Ao,r0=Vs,ZK=mh,ez=JK.indexOf,tz=t0,sM=XK([].push),uM=function(e,t){var r=ZK(e),n=0,i=[],o;for(o in r)!r0(tz,o)&&r0(r,o)&&sM(i,o);for(;t.length>n;)r0(r,o=t[n++])&&(~ez(i,o)||sM(i,o));return i},n0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],rz=uM,nz=n0,cM=Object.keys||function(t){return rz(t,nz)},iz=as,az=JN,oz=Mu,sz=Sh,uz=mh,cz=cM;zN.f=iz&&!az?Object.defineProperties:function(t,r){sz(t);for(var n=uz(r),i=cz(r),o=i.length,u=0,l;o>u;)oz.f(t,l=i[u++],n[l]);return t};var lz=Ly,fz=lz("document","documentElement"),dz=GA.exports,pz=$N,lM=dz("keys"),i0=function(e){return lM[e]||(lM[e]=pz(e))},hz=Sh,_z=zN,fM=n0,vz=t0,gz=fz,yz=WA,mz=i0,dM=">",pM="<",a0="prototype",o0="script",hM=mz("IE_PROTO"),s0=function(){},_M=function(e){return pM+o0+dM+e+pM+"/"+o0+dM},vM=function(e){e.write(_M("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ez=function(){var e=yz("iframe"),t="java"+o0+":",r;return e.style.display="none",gz.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(_M("document.F=Object")),r.close(),r.F},$y,Fy=function(){try{$y=new ActiveXObject("htmlfile")}catch{}Fy=typeof document<"u"?document.domain&&$y?vM($y):Ez():vM($y);for(var e=fM.length;e--;)delete Fy[a0][fM[e]];return Fy()};vz[hM]=!0;var gM=Object.create||function(t,r){var n;return t!==null?(s0[a0]=hz(t),n=new s0,s0[a0]=null,n[hM]=t):n=Fy(),r===void 0?n:_z.f(n,r)},Sz=If,Tz=gM,bz=Mu.f,u0=Sz("unscopables"),c0=Array.prototype;c0[u0]==null&&bz(c0,u0,{configurable:!0,value:Tz(null)});var Oz=function(e){c0[u0][e]=!0},l0={},Az=Ao,Cz=Ca,f0=BA,Pz=Az(Function.toString);Cz(f0.inspectSource)||(f0.inspectSource=function(e){return Pz(e)});var yM=f0.inspectSource,Rz=is,Iz=Ca,wz=yM,mM=Rz.WeakMap,Nz=Iz(mM)&&/native code/.test(wz(mM)),d0=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},Mz=as,Lz=Mu,Dz=d0,ky=Mz?function(e,t,r){return Lz.f(e,t,Dz(1,r))}:function(e,t,r){return e[t]=r,e},xz=Nz,EM=is,p0=Ao,Uz=Eh,$z=ky,h0=Vs,_0=BA,Fz=i0,kz=t0,SM="Object already initialized",v0=EM.TypeError,Gz=EM.WeakMap,Gy,bh,jy,jz=function(e){return jy(e)?bh(e):Gy(e,{})},Bz=function(e){return function(t){var r;if(!Uz(t)||(r=bh(t)).type!==e)throw v0("Incompatible receiver, "+e+" required");return r}};if(xz||_0.state){var jc=_0.state||(_0.state=new Gz),Vz=p0(jc.get),TM=p0(jc.has),qz=p0(jc.set);Gy=function(e,t){if(TM(jc,e))throw new v0(SM);return t.facade=e,qz(jc,e,t),t},bh=function(e){return Vz(jc,e)||{}},jy=function(e){return TM(jc,e)}}else{var wf=Fz("state");kz[wf]=!0,Gy=function(e,t){if(h0(e,wf))throw new v0(SM);return t.facade=e,$z(e,wf,t),t},bh=function(e){return h0(e,wf)?e[wf]:{}},jy=function(e){return h0(e,wf)}}var bM={set:Gy,get:bh,has:jy,enforce:jz,getterFor:Bz},g0={},y0={},OM={}.propertyIsEnumerable,AM=Object.getOwnPropertyDescriptor,Hz=AM&&!OM.call({1:2},1);y0.f=Hz?function(t){var r=AM(this,t);return!!r&&r.enumerable}:OM;var Qz=as,Wz=Th,Yz=y0,Kz=d0,zz=mh,Jz=nM,Xz=Vs,Zz=ZN,CM=Object.getOwnPropertyDescriptor;g0.f=Qz?CM:function(t,r){if(t=zz(t),r=Jz(r),Zz)try{return CM(t,r)}catch{}if(Xz(t,r))return Kz(!Wz(Yz.f,t,r),t[r])};var PM={exports:{}},m0=as,e4=Vs,RM=Function.prototype,t4=m0&&Object.getOwnPropertyDescriptor,E0=e4(RM,"name"),r4=E0&&function(){}.name==="something",n4=E0&&(!m0||m0&&t4(RM,"name").configurable),IM={EXISTS:E0,PROPER:r4,CONFIGURABLE:n4},i4=Oo,a4=Ca,By=Vs,S0=as,o4=IM.CONFIGURABLE,s4=yM,wM=bM,u4=wM.enforce,c4=wM.get,Vy=Object.defineProperty,l4=S0&&!i4(function(){return Vy(function(){},"length",{value:8}).length!==8}),f4=String(String).split("String"),d4=PM.exports=function(e,t,r){String(t).slice(0,7)==="Symbol("&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!By(e,"name")||o4&&e.name!==t)&&(S0?Vy(e,"name",{value:t,configurable:!0}):e.name=t),l4&&r&&By(r,"arity")&&e.length!==r.arity&&Vy(e,"length",{value:r.arity});try{r&&By(r,"constructor")&&r.constructor?S0&&Vy(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var n=u4(e);return By(n,"source")||(n.source=f4.join(typeof t=="string"?t:"")),e};Function.prototype.toString=d4(function(){return a4(this)&&c4(this).source||s4(this)},"toString");var p4=Ca,h4=Mu,_4=PM.exports,v4=jA,T0=function(e,t,r,n){n||(n={});var i=n.enumerable,o=n.name!==void 0?n.name:t;if(p4(r)&&_4(r,o,n),n.global)i?e[t]=r:v4(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch{}i?e[t]=r:h4.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},NM={},g4=uM,y4=n0,m4=y4.concat("length","prototype");NM.f=Object.getOwnPropertyNames||function(t){return g4(t,m4)};var b0={};b0.f=Object.getOwnPropertySymbols;var E4=Ly,S4=Ao,T4=NM,b4=b0,O4=Sh,A4=S4([].concat),C4=E4("Reflect","ownKeys")||function(t){var r=T4.f(O4(t)),n=b4.f;return n?A4(r,n(t)):r},MM=Vs,P4=C4,R4=g0,I4=Mu,w4=function(e,t,r){for(var n=P4(t),i=I4.f,o=R4.f,u=0;u<n.length;u++){var l=n[u];!MM(e,l)&&!(r&&MM(r,l))&&i(e,l,o(t,l))}},N4=Oo,M4=Ca,L4=/#|\.prototype\./,Oh=function(e,t){var r=x4[D4(e)];return r==$4?!0:r==U4?!1:M4(t)?N4(t):!!t},D4=Oh.normalize=function(e){return String(e).replace(L4,".").toLowerCase()},x4=Oh.data={},U4=Oh.NATIVE="N",$4=Oh.POLYFILL="P",F4=Oh,O0=is,k4=g0.f,G4=ky,j4=T0,B4=jA,V4=w4,q4=F4,LM=function(e,t){var r=e.target,n=e.global,i=e.stat,o,u,l,g,d,v;if(n?u=O0:i?u=O0[r]||B4(r,{}):u=(O0[r]||{}).prototype,u)for(l in t){if(d=t[l],e.dontCallGetSet?(v=k4(u,l),g=v&&v.value):g=u[l],o=q4(n?l:r+(i?".":"#")+l,e.forced),!o&&g!==void 0){if(typeof d==typeof g)continue;V4(d,g)}(e.sham||g&&g.sham)&&G4(d,"sham",!0),j4(u,l,d,e)}},H4=Oo,Q4=!H4(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),W4=Vs,Y4=Ca,K4=VA,z4=i0,J4=Q4,DM=z4("IE_PROTO"),A0=Object,X4=A0.prototype,xM=J4?A0.getPrototypeOf:function(e){var t=K4(e);if(W4(t,DM))return t[DM];var r=t.constructor;return Y4(r)&&t instanceof r?r.prototype:t instanceof A0?X4:null},Z4=Oo,e6=Ca,UM=xM,t6=T0,r6=If,C0=r6("iterator"),$M=!1,Bc,P0,R0;[].keys&&(R0=[].keys(),"next"in R0?(P0=UM(UM(R0)),P0!==Object.prototype&&(Bc=P0)):$M=!0);var n6=Bc==null||Z4(function(){var e={};return Bc[C0].call(e)!==e});n6&&(Bc={}),e6(Bc[C0])||t6(Bc,C0,function(){return this});var FM={IteratorPrototype:Bc,BUGGY_SAFARI_ITERATORS:$M},i6=Mu.f,a6=Vs,o6=If,kM=o6("toStringTag"),GM=function(e,t,r){e&&!r&&(e=e.prototype),e&&!a6(e,kM)&&i6(e,kM,{configurable:!0,value:t})},s6=FM.IteratorPrototype,u6=gM,c6=d0,l6=GM,f6=l0,d6=function(){return this},p6=function(e,t,r,n){var i=t+" Iterator";return e.prototype=u6(s6,{next:c6(+!n,r)}),l6(e,i,!1),f6[i]=d6,e},h6=Ca,_6=String,v6=TypeError,g6=function(e){if(typeof e=="object"||h6(e))return e;throw v6("Can't set "+_6(e)+" as a prototype")},y6=Ao,m6=Sh,E6=g6,S6=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=y6(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),r(t,[]),e=t instanceof Array}catch{}return function(i,o){return m6(i),E6(o),e?r(i,o):i.__proto__=o,i}}():void 0),T6=LM,b6=Th,jM=IM,O6=Ca,A6=p6,BM=xM,VM=S6,C6=GM,P6=ky,I0=T0,R6=If,I6=l0,qM=FM,w6=jM.PROPER,N6=jM.CONFIGURABLE,HM=qM.IteratorPrototype,qy=qM.BUGGY_SAFARI_ITERATORS,Ah=R6("iterator"),QM="keys",Ch="values",WM="entries",M6=function(){return this},L6=function(e,t,r,n,i,o,u){A6(r,t,n);var l=function(Ie){if(Ie===i&&V)return V;if(!qy&&Ie in v)return v[Ie];switch(Ie){case QM:return function(){return new r(this,Ie)};case Ch:return function(){return new r(this,Ie)};case WM:return function(){return new r(this,Ie)}}return function(){return new r(this)}},g=t+" Iterator",d=!1,v=e.prototype,T=v[Ah]||v["@@iterator"]||i&&v[i],V=!qy&&T||l(i),fe=t=="Array"&&v.entries||T,he,ye,xe;if(fe&&(he=BM(fe.call(new e)),he!==Object.prototype&&he.next&&(BM(he)!==HM&&(VM?VM(he,HM):O6(he[Ah])||I0(he,Ah,M6)),C6(he,g,!0))),w6&&i==Ch&&T&&T.name!==Ch&&(N6?P6(v,"name",Ch):(d=!0,V=function(){return b6(T,this)})),i)if(ye={values:l(Ch),keys:o?V:l(QM),entries:l(WM)},u)for(xe in ye)(qy||d||!(xe in v))&&I0(v,xe,ye[xe]);else T6({target:t,proto:!0,forced:qy||d},ye);return v[Ah]!==V&&I0(v,Ah,V,{name:i}),I6[t]=V,ye},D6=mh,w0=Oz,YM=l0,KM=bM,x6=Mu.f,U6=L6,$6=as,zM="Array Iterator",F6=KM.set,k6=KM.getterFor(zM),G6=U6(Array,"Array",function(e,t){F6(this,{type:zM,target:D6(e),index:0,kind:t})},function(){var e=k6(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),JM=YM.Arguments=YM.Array;if(w0("keys"),w0("values"),w0("entries"),$6&&JM.name!=="values")try{x6(JM,"name",{value:"values"})}catch{}var j6={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},B6=WA,N0=B6("span").classList,XM=N0&&N0.constructor&&N0.constructor.prototype,V6=XM===Object.prototype?void 0:XM,ZM=is,eL=j6,q6=V6,Ph=G6,M0=ky,tL=If,L0=tL("iterator"),rL=tL("toStringTag"),D0=Ph.values,nL=function(e,t){if(e){if(e[L0]!==D0)try{M0(e,L0,D0)}catch{e[L0]=D0}if(e[rL]||M0(e,rL,t),eL[t]){for(var r in Ph)if(e[r]!==Ph[r])try{M0(e,r,Ph[r])}catch{e[r]=Ph[r]}}}};for(var x0 in eL)nL(ZM[x0]&&ZM[x0].prototype,x0);nL(q6,"DOMTokenList");var iL=as,H6=Ao,Q6=Th,W6=Oo,U0=cM,Y6=b0,K6=y0,z6=VA,J6=MN,Nf=Object.assign,aL=Object.defineProperty,X6=H6([].concat),Z6=!Nf||W6(function(){if(iL&&Nf({b:1},Nf(aL({},"a",{enumerable:!0,get:function(){aL(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(i){t[i]=i}),Nf({},e)[r]!=7||U0(Nf({},t)).join("")!=n})?function(t,r){for(var n=z6(t),i=arguments.length,o=1,u=Y6.f,l=K6.f;i>o;)for(var g=J6(arguments[o++]),d=u?X6(U0(g),u(g)):U0(g),v=d.length,T=0,V;v>T;)V=d[T++],(!iL||Q6(l,g,V))&&(n[V]=g[V]);return n}:Nf,e5=LM,oL=Z6;e5({target:"Object",stat:!0,arity:2,forced:Object.assign!==oL},{assign:oL});function Hy(e,t,r,n){function i(o){return o instanceof r?o:new r(function(u){u(o)})}return new(r||(r=Promise))(function(o,u){function l(v){try{d(n.next(v))}catch(T){u(T)}}function g(v){try{d(n.throw(v))}catch(T){u(T)}}function d(v){v.done?o(v.value):i(v.value).then(l,g)}d((n=n.apply(e,t||[])).next())})}function Hr(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function qs(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}const $0=null,a_e=({children:e,i18n:t})=>jsx($0.Provider,Object.assign({value:t},{children:e})),o_e=()=>{const e=useContext($0);if(e===void 0)throw new Error("useTranslation must be used within an I18nProvider");return e.t},t5=e=>{const[t,r]=useState(!e.isLoaded),[n,i]=useState();return useEffect(()=>{e.isLoaded||Hy(void 0,void 0,void 0,function*(){try{yield e.load()}catch(o){i(o)}finally{r(!1)}})},[]),{loading:t,error:n}},s_e=e=>{const t=r5(),r=useMemo(()=>t.child(e),[]),{loading:n,error:i}=t5(r);return{loading:n,error:i,i18n:r}},r5=()=>{const e=useContext($0);if(e===void 0)throw new Error("I18n instance hooks must be used within an I18nProvider");return e};var De=m(4370);let Qy=e=>e,sL,uL,cL,lL;const n5=(0,De.Ay)(sL||(sL=Qy`
|
|
105
|
+
`)&&(xe="(?: "+xe+")",Ne=" "+Ne,Ie++),l=new RegExp("^(?:"+xe+")",ye)),fA&&(l=new RegExp("^"+xe+"$(?!\\s)",ye)),lA&&(g=r.lastIndex),d=Tf(my,he?l:r,Ne),he?d?(d.input=cA(d.input,Ie),d[0]=cA(d[0],Ie),d.index=r.lastIndex,r.lastIndex+=d[0].length):r.lastIndex=0:lA&&d&&(r.lastIndex=r.global?d.index+d[0].length:g),fA&&d&&d.length>1&&Tf(sQ,d[0],l,function(){for(v=1;v<arguments.length-2;v++)arguments[v]===void 0&&(d[v]=void 0)}),d&&fe)for(d.groups=T=nQ(null),v=0;v<fe.length;v++)V=fe[v],T[V[0]]=d[V[1]];return d});var dA=uA,dQ=py,pw=dA;dQ({target:"RegExp",proto:!0,forced:/./.exec!==pw},{exec:pw});var pQ=EO,hw=Function.prototype,_w=hw.apply,vw=hw.call,hQ=typeof Reflect=="object"&&Reflect.apply||(pQ?vw.bind(_w):function(){return vw.apply(_w,arguments)}),gw=Ci,yw=fy,_Q=dA,mw=ki,Ew=zo,vQ=oh,gQ=Ew("species"),pA=RegExp.prototype,yQ=function(e,t,r,n){var i=Ew(e),o=!mw(function(){var d={};return d[i]=function(){return 7},""[e](d)!=7}),u=o&&!mw(function(){var d=!1,v=/a/;return e==="split"&&(v={},v.constructor={},v.constructor[gQ]=function(){return v},v.flags="",v[i]=/./[i]),v.exec=function(){return d=!0,null},v[i](""),!d});if(!o||!u||r){var l=gw(/./[i]),g=t(i,""[e],function(d,v,T,V,fe){var he=gw(d),ye=v.exec;return ye===_Q||ye===pA.exec?o&&!fe?{done:!0,value:l(v,T,V)}:{done:!0,value:he(T,v,V)}:{done:!1}});yw(String.prototype,e,g[0]),yw(pA,i,g[1])}n&&vQ(pA[i],"sham",!0)},hA=Ci,mQ=dy,EQ=ch,SQ=nh,TQ=hA("".charAt),Sw=hA("".charCodeAt),bQ=hA("".slice),Tw=function(e){return function(t,r){var n=EQ(SQ(t)),i=mQ(r),o=n.length,u,l;return i<0||i>=o?e?"":void 0:(u=Sw(n,i),u<55296||u>56319||i+1===o||(l=Sw(n,i+1))<56320||l>57343?e?TQ(n,i):u:e?bQ(n,i,i+2):(u-55296<<10)+(l-56320)+65536)}},OQ={codeAt:Tw(!1),charAt:Tw(!0)},AQ=OQ.charAt,CQ=function(e,t,r){return t+(r?AQ(e,t).length:1)},_A=Ci,PQ=ay,RQ=Math.floor,vA=_A("".charAt),IQ=_A("".replace),gA=_A("".slice),wQ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,NQ=/\$([$&'`]|\d{1,2})/g,MQ=function(e,t,r,n,i,o){var u=r+e.length,l=n.length,g=NQ;return i!==void 0&&(i=PQ(i),g=wQ),IQ(o,g,function(d,v){var T;switch(vA(v,0)){case"$":return"$";case"&":return e;case"`":return gA(t,0,r);case"'":return gA(t,u);case"<":T=i[gA(v,1,-1)];break;default:var V=+v;if(V===0)return d;if(V>l){var fe=RQ(V/10);return fe===0?d:fe<=l?n[fe-1]===void 0?vA(v,1):n[fe-1]+vA(v,1):d}T=n[V-1]}return T===void 0?"":T})},bw=Cu,LQ=Ru,DQ=Gi,xQ=OO,UQ=dA,$Q=TypeError,FQ=function(e,t){var r=e.exec;if(DQ(r)){var n=bw(r,e,t);return n!==null&&LQ(n),n}if(xQ(e)==="RegExp")return bw(UQ,e,t);throw $Q("RegExp#exec called on incompatible receiver")},kQ=hQ,Ow=Cu,Ey=Ci,GQ=yQ,jQ=ki,BQ=Ru,VQ=Gi,qQ=dy,HQ=qI,bf=ch,QQ=nh,WQ=CQ,YQ=vI,KQ=MQ,zQ=FQ,JQ=zo,yA=JQ("replace"),XQ=Math.max,ZQ=Math.min,eW=Ey([].concat),mA=Ey([].push),Aw=Ey("".indexOf),Cw=Ey("".slice),tW=function(e){return e===void 0?e:String(e)},rW=function(){return"a".replace(/./,"$0")==="$0"}(),Pw=function(){return/./[yA]?/./[yA]("a","$0")==="":!1}(),nW=!jQ(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"});GQ("replace",function(e,t,r){var n=Pw?"$":"$0";return[function(o,u){var l=QQ(this),g=o==null?void 0:YQ(o,yA);return g?Ow(g,o,l,u):Ow(t,bf(l),o,u)},function(i,o){var u=BQ(this),l=bf(i);if(typeof o=="string"&&Aw(o,n)===-1&&Aw(o,"$<")===-1){var g=r(t,u,l,o);if(g.done)return g.value}var d=VQ(o);d||(o=bf(o));var v=u.global;if(v){var T=u.unicode;u.lastIndex=0}for(var V=[];;){var fe=zQ(u,l);if(fe===null||(mA(V,fe),!v))break;var he=bf(fe[0]);he===""&&(u.lastIndex=WQ(l,HQ(u.lastIndex),T))}for(var ye="",xe=0,Ie=0;Ie<V.length;Ie++){fe=V[Ie];for(var Ne=bf(fe[0]),at=XQ(ZQ(qQ(fe.index),l.length),0),_t=[],$t=1;$t<fe.length;$t++)mA(_t,tW(fe[$t]));var nr=fe.groups;if(d){var jr=eW([Ne],_t,at,l);nr!==void 0&&mA(jr,nr);var vn=bf(kQ(o,void 0,jr))}else vn=KQ(Ne,l,at,_t,nr,o);at>=xe&&(ye+=Cw(l,xe,at)+vn,xe=at+Ne.length)}return ye+Cw(l,xe)}]},!nW||!rW||Pw);var iW=zo,aW=sA,oW=Pu.f,EA=iW("unscopables"),SA=Array.prototype;SA[EA]==null&&oW(SA,EA,{configurable:!0,value:aW(null)});var sW=function(e){SA[EA][e]=!0},TA={},uW=ki,cW=!uW(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),lW=js,fW=Gi,dW=ay,pW=BO,hW=cW,Rw=pW("IE_PROTO"),bA=Object,_W=bA.prototype,Iw=hW?bA.getPrototypeOf:function(e){var t=dW(e);if(lW(t,Rw))return t[Rw];var r=t.constructor;return fW(r)&&t instanceof r?r.prototype:t instanceof bA?_W:null},vW=ki,gW=Gi,ww=Iw,yW=fy,mW=zo,OA=mW("iterator"),Nw=!1,kc,AA,CA;[].keys&&(CA=[].keys(),"next"in CA?(AA=ww(ww(CA)),AA!==Object.prototype&&(kc=AA)):Nw=!0);var EW=kc==null||vW(function(){var e={};return kc[OA].call(e)!==e});EW&&(kc={}),gW(kc[OA])||yW(kc,OA,function(){return this});var Mw={IteratorPrototype:kc,BUGGY_SAFARI_ITERATORS:Nw},SW=Pu.f,TW=js,bW=zo,Lw=bW("toStringTag"),Dw=function(e,t,r){e&&!r&&(e=e.prototype),e&&!TW(e,Lw)&&SW(e,Lw,{configurable:!0,value:t})},OW=Mw.IteratorPrototype,AW=sA,CW=TO,PW=Dw,RW=TA,IW=function(){return this},wW=function(e,t,r,n){var i=t+" Iterator";return e.prototype=AW(OW,{next:CW(+!n,r)}),PW(e,i,!1),RW[i]=IW,e},NW=Gi,MW=String,LW=TypeError,DW=function(e){if(typeof e=="object"||NW(e))return e;throw LW("Can't set "+MW(e)+" as a prototype")},xW=Ci,UW=Ru,$W=DW,FW=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=xW(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),r(t,[]),e=t instanceof Array}catch{}return function(i,o){return UW(i),$W(o),e?r(i,o):i.__proto__=o,i}}():void 0),kW=py,GW=Cu,xw=xI,jW=Gi,BW=wW,Uw=Iw,$w=FW,VW=Dw,qW=oh,PA=fy,HW=zo,QW=TA,Fw=Mw,WW=xw.PROPER,YW=xw.CONFIGURABLE,kw=Fw.IteratorPrototype,Sy=Fw.BUGGY_SAFARI_ITERATORS,fh=HW("iterator"),Gw="keys",dh="values",jw="entries",KW=function(){return this},zW=function(e,t,r,n,i,o,u){BW(r,t,n);var l=function(Ie){if(Ie===i&&V)return V;if(!Sy&&Ie in v)return v[Ie];switch(Ie){case Gw:return function(){return new r(this,Ie)};case dh:return function(){return new r(this,Ie)};case jw:return function(){return new r(this,Ie)}}return function(){return new r(this)}},g=t+" Iterator",d=!1,v=e.prototype,T=v[fh]||v["@@iterator"]||i&&v[i],V=!Sy&&T||l(i),fe=t=="Array"&&v.entries||T,he,ye,xe;if(fe&&(he=Uw(fe.call(new e)),he!==Object.prototype&&he.next&&(Uw(he)!==kw&&($w?$w(he,kw):jW(he[fh])||PA(he,fh,KW)),VW(he,g,!0))),WW&&i==dh&&T&&T.name!==dh&&(YW?qW(v,"name",dh):(d=!0,V=function(){return GW(T,this)})),i)if(ye={values:l(dh),keys:o?V:l(Gw),entries:l(jw)},u)for(xe in ye)(Sy||d||!(xe in v))&&PA(v,xe,ye[xe]);else kW({target:t,proto:!0,forced:Sy||d},ye);return v[fh]!==V&&PA(v,fh,V,{name:i}),QW[t]=V,ye},JW=ih,RA=sW,Bw=TA,Vw=YO,XW=Pu.f,ZW=zW,eY=Ko,qw="Array Iterator",tY=Vw.set,rY=Vw.getterFor(qw),nY=ZW(Array,"Array",function(e,t){tY(this,{type:qw,target:JW(e),index:0,kind:t})},function(){var e=rY(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),Hw=Bw.Arguments=Bw.Array;if(RA("keys"),RA("values"),RA("entries"),eY&&Hw.name!=="values")try{XW(Hw,"name",{value:"values"})}catch{}var iY={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},aY=DO,IA=aY("span").classList,Qw=IA&&IA.constructor&&IA.constructor.prototype,oY=Qw===Object.prototype?void 0:Qw,Ww=Aa,Yw=iY,sY=oY,ph=nY,wA=oh,Kw=zo,NA=Kw("iterator"),zw=Kw("toStringTag"),MA=ph.values,Jw=function(e,t){if(e){if(e[NA]!==MA)try{wA(e,NA,MA)}catch{e[NA]=MA}if(e[zw]||wA(e,zw,t),Yw[t]){for(var r in ph)if(e[r]!==ph[r])try{wA(e,r,ph[r])}catch{e[r]=ph[r]}}}};for(var LA in Yw)Jw(Ww[LA]&&Ww[LA].prototype,LA);Jw(sY,"DOMTokenList");function Xw(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function Zw(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}var Ty,by;function uY(e){let t=0;if(e.length===0)return t;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t=t&t;return t}class cY{constructor({definitions:t,uuid:r}){Ty.set(this,void 0),by.set(this,void 0),Zw(this,Ty,t,"f"),Zw(this,by,parseInt(`0x${r.replace(/-/g,"")}`),"f")}getFeatureFlagVariant(t,r){const n=Xw(this,Ty,"f").find(o=>o.name===t);let i=0;if(n){const o=uY(n.id),u=Math.abs(Xw(this,by,"f")-o)%100;return n.variants.find(({percent:g})=>(i=g+i,u<i))||{name:"control",percent:100-i,value:r}}}getFeatureFlagValue(t,r){const n=this.getFeatureFlagVariant(t,r);return n?.value||r}}Ty=new WeakMap,by=new WeakMap;var eN=Ko,lY=Ci,fY=Cu,dY=ki,DA=aw,pY=XO,hY=SO,_Y=ay,vY=oI,Of=Object.assign,tN=Object.defineProperty,gY=lY([].concat),yY=!Of||dY(function(){if(eN&&Of({b:1},Of(tN({},"a",{enumerable:!0,get:function(){tN(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(i){t[i]=i}),Of({},e)[r]!=7||DA(Of({},t)).join("")!=n})?function(t,r){for(var n=_Y(t),i=arguments.length,o=1,u=pY.f,l=hY.f;i>o;)for(var g=vY(arguments[o++]),d=u?gY(DA(g),u(g)):DA(g),v=d.length,T=0,V;v>T;)V=d[T++],(!eN||fY(l,g,V))&&(n[V]=g[V]);return n}:Of,mY=py,rN=yY;mY({target:"Object",stat:!0,arity:2,forced:Object.assign!==rN},{assign:rN});const nN=null,Bhe=({children:e,featureFlags:t})=>jsx(nN.Provider,Object.assign({value:t},{children:e}));function Vhe(e,t){const r=React.useContext(nN);return r?.getFeatureFlagValue(e,t)||t}var hh;(function(e){e.one="1.0.0"})(hh||(hh={}));const Oy="orchestrator:feature-flags-service",EY={id:Oy,dependencies:{featureServices:{[kn]:An.one},externals:{}},create:({featureServices:e})=>{var t;const r=e[kn],n="b0e74b60-1797-4d34-b90a-712a93f4e732",i=r.getClientContext(),o=new cY({uuid:n,definitions:((t=i?.featureFlagConfiguration)===null||t===void 0?void 0:t.featureFlagDefinitions)||[]});return{[hh.one]:()=>({featureService:o})}}};var iN=m(9218),Af;(function(e){e.one="1.0.0"})(Af||(Af={}));const _h="orchestrator:logging-service",SY={id:_h,dependencies:{featureServices:{[kn]:An.one,[Oy]:hh.one}},create:({featureServices:e})=>{const t=e[kn],r=e[Oy],{environment:n,slug:i}=t.getClientContext(),o=t.getTelemetryConfig(),u=r.getFeatureFlagValue("client log url",void 0),l=(0,iN.default)({url:typeof u=="string"?u:void 0,telemetry:o,environment:n,clientSlug:i});return{[Af.one]:()=>({featureService:l})}}};function qhe(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Hhe(e,t,r,n){function i(o){return o instanceof r?o:new r(function(u){u(o)})}return new(r||(r=Promise))(function(o,u){function l(v){try{d(n.next(v))}catch(T){u(T)}}function g(v){try{d(n.throw(v))}catch(T){u(T)}}function d(v){v.done?o(v.value):i(v.value).then(l,g)}d((n=n.apply(e,t||[])).next())})}function So(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function TY(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}var Jo=m(934),Bs=m(9226),To,vh,Xo;const{ROUTE_NAVIGATION_DELEGATE:bY}=Bs.ErrorCode;class OY{constructor(){To.add(this),vh.set(this,void 0)}setDelegate(t){TY(this,vh,t,"f")}navigate(t,r){return typeof t=="number"?So(this,To,"a",Xo).navigate(t):So(this,To,"a",Xo).navigate(t,r)}has(t){return So(this,To,"a",Xo).has(t)}getPath(t){return So(this,To,"a",Xo).getPath(t)}getHref(t){return So(this,To,"a",Xo).getHref(t)}getSearchParams(){return So(this,To,"a",Xo).getSearchParams()}setSearchParams(t,r){So(this,To,"a",Xo).setSearchParams(t,r)}getUrlParams(){return So(this,To,"a",Xo).getUrlParams()}getId(t){return So(this,To,"a",Xo).getId(t)}}vh=new WeakMap,To=new WeakSet,Xo=function(){if(!So(this,vh,"f"))throw new Jo.b("route navigation delegate has not been set",{errorCode:bY});return So(this,vh,"f")};var Ay;(function(e){e.one="1.0.0"})(Ay||(Ay={}));const aN="orchestrator:navigation-service",AY={id:aN,create:()=>{const e=new OY;return{[Ay.one]:()=>({featureService:e})}}};function Zo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,S(n.key),n)}}function es(e,t,r){return t&&oN(e.prototype,t),r&&oN(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Iu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xA(e,t){return xA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},xA(e,t)}function Cy(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xA(e,t)}function gh(e,t){if(t&&(oe(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Iu(e)}function ts(e){return ts=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ts(e)}function CY(e){if(Array.isArray(e))return e}function PY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sN(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function RY(e,t){if(!!e){if(typeof e=="string")return sN(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sN(e,t)}}function IY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
106
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wY(e){return CY(e)||PY(e)||RY(e)||IY()}function uN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cN(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uN(Object(r),!0).forEach(function(n){Te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var NY={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,r){console&&console[t]&&console[t].apply(console,r)}},MY=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Zo(this,e),this.init(t,r)}return es(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=r||NY,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(r){this.debug=r}},{key:"log",value:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(r,n,i,o){return o&&!this.debug?null:(typeof r[0]=="string"&&(r[0]="".concat(i).concat(this.prefix," ").concat(r[0])),this.logger[n](r))}},{key:"create",value:function(r){return new e(this.logger,cN(cN({},{prefix:"".concat(this.prefix,":").concat(r,":")}),this.options))}},{key:"clone",value:function(r){return r=r||this.options,r.prefix=r.prefix||this.prefix,new e(this.logger,r)}}]),e}(),rs=new MY,wu=function(){function e(){Zo(this,e),this.observers={}}return es(e,[{key:"on",value:function(r,n){var i=this;return r.split(" ").forEach(function(o){i.observers[o]=i.observers[o]||[],i.observers[o].push(n)}),this}},{key:"off",value:function(r,n){if(!!this.observers[r]){if(!n){delete this.observers[r];return}this.observers[r]=this.observers[r].filter(function(i){return i!==n})}}},{key:"emit",value:function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];if(this.observers[r]){var u=[].concat(this.observers[r]);u.forEach(function(g){g.apply(void 0,i)})}if(this.observers["*"]){var l=[].concat(this.observers["*"]);l.forEach(function(g){g.apply(g,[r].concat(i))})}}}]),e}();function yh(){var e,t,r=new Promise(function(n,i){e=n,t=i});return r.resolve=e,r.reject=t,r}function lN(e){return e==null?"":""+e}function LY(e,t,r){e.forEach(function(n){t[n]&&(r[n]=t[n])})}function UA(e,t,r){function n(l){return l&&l.indexOf("###")>-1?l.replace(/###/g,"."):l}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var u=n(o.shift());!e[u]&&r&&(e[u]=new r),Object.prototype.hasOwnProperty.call(e,u)?e=e[u]:e={}}return i()?{}:{obj:e,k:n(o.shift())}}function fN(e,t,r){var n=UA(e,t,Object),i=n.obj,o=n.k;i[o]=r}function DY(e,t,r,n){var i=UA(e,t,Object),o=i.obj,u=i.k;o[u]=o[u]||[],n&&(o[u]=o[u].concat(r)),n||o[u].push(r)}function Py(e,t){var r=UA(e,t),n=r.obj,i=r.k;if(!!n)return n[i]}function dN(e,t,r){var n=Py(e,r);return n!==void 0?n:Py(t,r)}function pN(e,t,r){for(var n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):pN(e[n],t[n],r):e[n]=t[n]);return e}function Cf(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var xY={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function UY(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return xY[t]}):e}var Ry=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,$Y=[" ",",","?","!",";"];function FY(e,t,r){t=t||"",r=r||"";var n=$Y.filter(function(l){return t.indexOf(l)<0&&r.indexOf(l)<0});if(n.length===0)return!0;var i=new RegExp("(".concat(n.map(function(l){return l==="?"?"\\?":l}).join("|"),")")),o=!i.test(e);if(!o){var u=e.indexOf(r);u>0&&!i.test(e.substring(0,u))&&(o=!0)}return o}function hN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Iy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hN(Object(r),!0).forEach(function(n){Te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kY(e){var t=GY();return function(){var n=ts(e),i;if(t){var o=ts(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return gh(this,i)}}function GY(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _N(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!!e){if(e[t])return e[t];for(var n=t.split(r),i=e,o=0;o<n.length;++o){if(!i||typeof i[n[o]]=="string"&&o+1<n.length)return;if(i[n[o]]===void 0){for(var u=2,l=n.slice(o,o+u).join(r),g=i[l];g===void 0&&n.length>o+u;)u++,l=n.slice(o,o+u).join(r),g=i[l];if(g===void 0)return;if(g===null)return null;if(t.endsWith(l)){if(typeof g=="string")return g;if(l&&typeof g[l]=="string")return g[l]}var d=n.slice(o+u).join(r);return d?_N(g,d,r):void 0}i=i[n[o]]}return i}}var jY=function(e){Cy(r,e);var t=kY(r);function r(n){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Zo(this,r),i=t.call(this),Ry&&wu.call(Iu(i)),i.data=n||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return es(r,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,u){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,d=l.ignoreJSONStructure!==void 0?l.ignoreJSONStructure:this.options.ignoreJSONStructure,v=[i,o];u&&typeof u!="string"&&(v=v.concat(u)),u&&typeof u=="string"&&(v=v.concat(g?u.split(g):u)),i.indexOf(".")>-1&&(v=i.split("."));var T=Py(this.data,v);return T||!d||typeof u!="string"?T:_N(this.data&&this.data[i]&&this.data[i][o],u,g)}},{key:"addResource",value:function(i,o,u,l){var g=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},d=this.options.keySeparator;d===void 0&&(d=".");var v=[i,o];u&&(v=v.concat(d?u.split(d):u)),i.indexOf(".")>-1&&(v=i.split("."),l=o,o=v[1]),this.addNamespaces(o),fN(this.data,v,l),g.silent||this.emit("added",i,o,u,l)}},{key:"addResources",value:function(i,o,u){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var g in u)(typeof u[g]=="string"||Object.prototype.toString.apply(u[g])==="[object Array]")&&this.addResource(i,o,g,u[g],{silent:!0});l.silent||this.emit("added",i,o,u)}},{key:"addResourceBundle",value:function(i,o,u,l,g){var d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},v=[i,o];i.indexOf(".")>-1&&(v=i.split("."),l=u,u=o,o=v[1]),this.addNamespaces(o);var T=Py(this.data,v)||{};l?pN(T,u,g):T=Iy(Iy({},T),u),fN(this.data,v,T),d.silent||this.emit("added",i,o,u)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Iy(Iy({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),u=o&&Object.keys(o)||[];return!!u.find(function(l){return o[l]&&Object.keys(o[l]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),r}(wu),vN={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,r,n,i,o){var u=this;return t.forEach(function(l){u.processors[l]&&(r=u.processors[l].process(r,n,i,o))}),r}};function gN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ca(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gN(Object(r),!0).forEach(function(n){Te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BY(e){var t=VY();return function(){var n=ts(e),i;if(t){var o=ts(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return gh(this,i)}}function VY(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var yN={},mN=function(e){Cy(r,e);var t=BY(r);function r(n){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Zo(this,r),i=t.call(this),Ry&&wu.call(Iu(i)),LY(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,Iu(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=rs.create("translator"),i}return es(r,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var u=this.resolve(i,o);return u&&u.res!==void 0}},{key:"extractFromKey",value:function(i,o){var u=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");var l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,g=o.ns||this.options.defaultNS||[],d=u&&i.indexOf(u)>-1,v=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!FY(i,u,l);if(d&&!v){var T=i.match(this.interpolator.nestingRegexp);if(T&&T.length>0)return{key:i,namespaces:g};var V=i.split(u);(u!==l||u===l&&this.options.ns.indexOf(V[0])>-1)&&(g=V.shift()),i=V.join(l)}return typeof g=="string"&&(g=[g]),{key:i,namespaces:g}}},{key:"translate",value:function(i,o,u){var l=this;if(oe(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var g=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,d=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,v=this.extractFromKey(i[i.length-1],o),T=v.key,V=v.namespaces,fe=V[V.length-1],he=o.lng||this.language,ye=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(he&&he.toLowerCase()==="cimode"){if(ye){var xe=o.nsSeparator||this.options.nsSeparator;return g?(Ie.res="".concat(fe).concat(xe).concat(T),Ie):"".concat(fe).concat(xe).concat(T)}return g?(Ie.res=T,Ie):T}var Ie=this.resolve(i,o),Ne=Ie&&Ie.res,at=Ie&&Ie.usedKey||T,_t=Ie&&Ie.exactUsedKey||T,$t=Object.prototype.toString.apply(Ne),nr=["[object Number]","[object Function]","[object RegExp]"],jr=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,vn=!this.i18nFormat||this.i18nFormat.handleAsObject,wi=typeof Ne!="string"&&typeof Ne!="boolean"&&typeof Ne!="number";if(vn&&Ne&&wi&&nr.indexOf($t)<0&&!(typeof jr=="string"&&$t==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var ru=this.options.returnedObjectHandler?this.options.returnedObjectHandler(at,Ne,ca(ca({},o),{},{ns:V})):"key '".concat(T," (").concat(this.language,")' returned an object instead of string.");return g?(Ie.res=ru,Ie):ru}if(d){var nu=$t==="[object Array]",ha=nu?[]:{},b_=nu?_t:at;for(var Td in Ne)if(Object.prototype.hasOwnProperty.call(Ne,Td)){var Wj="".concat(b_).concat(d).concat(Td);ha[Td]=this.translate(Wj,ca(ca({},o),{joinArrays:!1,ns:V})),ha[Td]===Wj&&(ha[Td]=Ne[Td])}Ne=ha}}else if(vn&&typeof jr=="string"&&$t==="[object Array]")Ne=Ne.join(jr),Ne&&(Ne=this.extendTranslation(Ne,i,o,u));else{var PE=!1,O_=!1,Yj=o.count!==void 0&&typeof o.count!="string",pR=r.hasDefaultValue(o),Fhe=Yj?this.pluralResolver.getSuffix(he,o.count,o):"",A_=o["defaultValue".concat(Fhe)]||o.defaultValue;!this.isValidLookup(Ne)&&pR&&(PE=!0,Ne=A_),this.isValidLookup(Ne)||(O_=!0,Ne=T);var khe=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Ghe=khe&&O_?void 0:Ne,C_=pR&&A_!==Ne&&this.options.updateMissing;if(O_||PE||C_){if(this.logger.log(C_?"updateKey":"missingKey",he,fe,T,C_?A_:Ne),d){var Kj=this.resolve(T,ca(ca({},o),{},{keySeparator:!1}));Kj&&Kj.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var P_=[],RE=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&RE&&RE[0])for(var hR=0;hR<RE.length;hR++)P_.push(RE[hR]);else this.options.saveMissingTo==="all"?P_=this.languageUtils.toResolveHierarchy(o.lng||this.language):P_.push(o.lng||this.language);var zj=function(bd,vR,Jj){var Xj=pR&&Jj!==Ne?Jj:Ghe;l.options.missingKeyHandler?l.options.missingKeyHandler(bd,fe,vR,Xj,C_,o):l.backendConnector&&l.backendConnector.saveMissing&&l.backendConnector.saveMissing(bd,fe,vR,Xj,C_,o),l.emit("missingKey",bd,fe,vR,Ne)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Yj?P_.forEach(function(_R){l.pluralResolver.getSuffixes(_R,o).forEach(function(bd){zj([_R],T+bd,o["defaultValue".concat(bd)]||A_)})}):zj(P_,T,A_))}Ne=this.extendTranslation(Ne,i,o,Ie,u),O_&&Ne===T&&this.options.appendNamespaceToMissingKey&&(Ne="".concat(fe,":").concat(T)),(O_||PE)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?Ne=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(fe,":").concat(T):T,PE?Ne:void 0):Ne=this.options.parseMissingKeyHandler(Ne))}return g?(Ie.res=Ne,Ie):Ne}},{key:"extendTranslation",value:function(i,o,u,l,g){var d=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,ca(ca({},this.options.interpolation.defaultVariables),u),l.usedLng,l.usedNS,l.usedKey,{resolved:l});else if(!u.skipInterpolation){u.interpolation&&this.interpolator.init(ca(ca({},u),{interpolation:ca(ca({},this.options.interpolation),u.interpolation)}));var v=typeof i=="string"&&(u&&u.interpolation&&u.interpolation.skipOnVariables!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),T;if(v){var V=i.match(this.interpolator.nestingRegexp);T=V&&V.length}var fe=u.replace&&typeof u.replace!="string"?u.replace:u;if(this.options.interpolation.defaultVariables&&(fe=ca(ca({},this.options.interpolation.defaultVariables),fe)),i=this.interpolator.interpolate(i,fe,u.lng||this.language,u),v){var he=i.match(this.interpolator.nestingRegexp),ye=he&&he.length;T<ye&&(u.nest=!1)}u.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var Ne=arguments.length,at=new Array(Ne),_t=0;_t<Ne;_t++)at[_t]=arguments[_t];return g&&g[0]===at[0]&&!u.context?(d.logger.warn("It seems you are nesting recursively key: ".concat(at[0]," in key: ").concat(o[0])),null):d.translate.apply(d,at.concat([o]))},u)),u.interpolation&&this.interpolator.reset()}var xe=u.postProcess||this.options.postProcess,Ie=typeof xe=="string"?[xe]:xe;return i!=null&&Ie&&Ie.length&&u.applyPostProcessor!==!1&&(i=vN.handle(Ie,i,o,this.options&&this.options.postProcessPassResolved?ca({i18nResolved:l},u):u,this)),i}},{key:"resolve",value:function(i){var o=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,g,d,v,T;return typeof i=="string"&&(i=[i]),i.forEach(function(V){if(!o.isValidLookup(l)){var fe=o.extractFromKey(V,u),he=fe.key;g=he;var ye=fe.namespaces;o.options.fallbackNS&&(ye=ye.concat(o.options.fallbackNS));var xe=u.count!==void 0&&typeof u.count!="string",Ie=xe&&!u.ordinal&&u.count===0&&o.pluralResolver.shouldUseIntlApi(),Ne=u.context!==void 0&&(typeof u.context=="string"||typeof u.context=="number")&&u.context!=="",at=u.lngs?u.lngs:o.languageUtils.toResolveHierarchy(u.lng||o.language,u.fallbackLng);ye.forEach(function(_t){o.isValidLookup(l)||(T=_t,!yN["".concat(at[0],"-").concat(_t)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(T)&&(yN["".concat(at[0],"-").concat(_t)]=!0,o.logger.warn('key "'.concat(g,'" for languages "').concat(at.join(", "),`" won't get resolved as namespace "`).concat(T,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),at.forEach(function($t){if(!o.isValidLookup(l)){v=$t;var nr=[he];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(nr,he,$t,_t,u);else{var jr;xe&&(jr=o.pluralResolver.getSuffix($t,u.count,u));var vn="".concat(o.options.pluralSeparator,"zero");if(xe&&(nr.push(he+jr),Ie&&nr.push(he+vn)),Ne){var wi="".concat(he).concat(o.options.contextSeparator).concat(u.context);nr.push(wi),xe&&(nr.push(wi+jr),Ie&&nr.push(wi+vn))}}for(var ru;ru=nr.pop();)o.isValidLookup(l)||(d=ru,l=o.getResource($t,_t,ru,u))}}))})}}),{res:l,usedKey:g,exactUsedKey:d,usedLng:v,usedNS:T}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,u){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,u,l):this.resourceStore.getResource(i,o,u,l)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var u in i)if(Object.prototype.hasOwnProperty.call(i,u)&&o===u.substring(0,o.length)&&i[u]!==void 0)return!0;return!1}}]),r}(wu);function $A(e){return e.charAt(0).toUpperCase()+e.slice(1)}var qY=function(){function e(t){Zo(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=rs.create("languageUtils")}return es(e,[{key:"getScriptPartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return null;var n=r.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}},{key:"getLanguagePartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return r;var n=r.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(r){if(typeof r=="string"&&r.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],i=r.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=$A(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=$A(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=$A(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}},{key:"isSupportedCode",value:function(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}},{key:"getBestMatchFromCodes",value:function(r){var n=this;if(!r)return null;var i;return r.forEach(function(o){if(!i){var u=n.formatLanguageCode(o);(!n.options.supportedLngs||n.isSupportedCode(u))&&(i=u)}}),!i&&this.options.supportedLngs&&r.forEach(function(o){if(!i){var u=n.getLanguagePartFromCode(o);if(n.isSupportedCode(u))return i=u;i=n.options.supportedLngs.find(function(l){if(l.indexOf(u)===0)return l})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(r,n){if(!r)return[];if(typeof r=="function"&&(r=r(n)),typeof r=="string"&&(r=[r]),Object.prototype.toString.apply(r)==="[object Array]")return r;if(!n)return r.default||[];var i=r[n];return i||(i=r[this.getScriptPartFromCode(n)]),i||(i=r[this.formatLanguageCode(n)]),i||(i=r[this.getLanguagePartFromCode(n)]),i||(i=r.default),i||[]}},{key:"toResolveHierarchy",value:function(r,n){var i=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],r),u=[],l=function(d){!d||(i.isSupportedCode(d)?u.push(d):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(d)))};return typeof r=="string"&&r.indexOf("-")>-1?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(r))):typeof r=="string"&&l(this.formatLanguageCode(r)),o.forEach(function(g){u.indexOf(g)<0&&l(i.formatLanguageCode(g))}),u}}]),e}(),HY=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],QY={1:function(t){return Number(t>1)},2:function(t){return Number(t!=1)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(t==1?0:t>=2&&t<=4?1:2)},7:function(t){return Number(t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(t==1?0:t==2?1:t!=8&&t!=11?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(t==1?0:t==2?1:t<7?2:t<11?3:4)},11:function(t){return Number(t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(t!==0)},14:function(t){return Number(t==1?0:t==2?1:t==3?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:t!==0?1:2)},17:function(t){return Number(t==1||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(t==0?0:t==1?1:2)},19:function(t){return Number(t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(t==1?0:t==0||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3)}},WY=["v1","v2","v3"],EN={zero:0,one:1,two:2,few:3,many:4,other:5};function YY(){var e={};return HY.forEach(function(t){t.lngs.forEach(function(r){e[r]={numbers:t.nr,plurals:QY[t.fc]}})}),e}var KY=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Zo(this,e),this.languageUtils=t,this.options=r,this.logger=rs.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=YY()}return es(e,[{key:"addRule",value:function(r,n){this.rules[r]=n}},{key:"getRule",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(r,{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[r]||this.rules[this.languageUtils.getLanguagePartFromCode(r)]}},{key:"needsPlural",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(r,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(r,i).map(function(o){return"".concat(n).concat(o)})}},{key:"getSuffixes",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(r,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(u,l){return EN[u]-EN[l]}).map(function(u){return"".concat(n.options.prepend).concat(u)}):o.numbers.map(function(u){return n.getSuffix(r,u,i)}):[]}},{key:"getSuffix",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(r,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(n)):this.getSuffixRetroCompatible(o,n):(this.logger.warn("no plural rule found for: ".concat(r)),"")}},{key:"getSuffixRetroCompatible",value:function(r,n){var i=this,o=r.noAbs?r.plurals(n):r.plurals(Math.abs(n)),u=r.numbers[o];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(u===2?u="plural":u===1&&(u=""));var l=function(){return i.options.prepend&&u.toString()?i.options.prepend+u.toString():u.toString()};return this.options.compatibilityJSON==="v1"?u===1?"":typeof u=="number"?"_plural_".concat(u.toString()):l():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?l():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!WY.includes(this.options.compatibilityJSON)}}]),e}();function SN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?SN(Object(r),!0).forEach(function(n){Te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):SN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var zY=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Zo(this,e),this.logger=rs.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(r){return r},this.init(t)}return es(e,[{key:"init",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.interpolation||(r.interpolation={escapeValue:!0});var n=r.interpolation;this.escape=n.escape!==void 0?n.escape:UY,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?Cf(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Cf(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?Cf(n.nestingPrefix):n.nestingPrefixEscaped||Cf("$t("),this.nestingSuffix=n.nestingSuffix?Cf(n.nestingSuffix):n.nestingSuffixEscaped||Cf(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var r="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(r,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(r,n,i,o){var u=this,l,g,d,v=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function T(xe){return xe.replace(/\$/g,"$$$$")}var V=function(Ie){if(Ie.indexOf(u.formatSeparator)<0){var Ne=dN(n,v,Ie);return u.alwaysFormat?u.format(Ne,void 0,i,bo(bo(bo({},o),n),{},{interpolationkey:Ie})):Ne}var at=Ie.split(u.formatSeparator),_t=at.shift().trim(),$t=at.join(u.formatSeparator).trim();return u.format(dN(n,v,_t),$t,i,bo(bo(bo({},o),n),{},{interpolationkey:_t}))};this.resetRegExp();var fe=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,he=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,ye=[{regex:this.regexpUnescape,safeValue:function(Ie){return T(Ie)}},{regex:this.regexp,safeValue:function(Ie){return u.escapeValue?T(u.escape(Ie)):T(Ie)}}];return ye.forEach(function(xe){for(d=0;l=xe.regex.exec(r);){var Ie=l[1].trim();if(g=V(Ie),g===void 0)if(typeof fe=="function"){var Ne=fe(r,l,o);g=typeof Ne=="string"?Ne:""}else if(o&&o.hasOwnProperty(Ie))g="";else if(he){g=l[0];continue}else u.logger.warn("missed to pass in variable ".concat(Ie," for interpolating ").concat(r)),g="";else typeof g!="string"&&!u.useRawValueToEscape&&(g=lN(g));var at=xe.safeValue(g);if(r=r.replace(l[0],at),he?(xe.regex.lastIndex+=g.length,xe.regex.lastIndex-=l[0].length):xe.regex.lastIndex=0,d++,d>=u.maxReplaces)break}}),r}},{key:"nest",value:function(r,n){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u,l,g=bo({},o);g.applyPostProcessor=!1,delete g.defaultValue;function d(fe,he){var ye=this.nestingOptionsSeparator;if(fe.indexOf(ye)<0)return fe;var xe=fe.split(new RegExp("".concat(ye,"[ ]*{"))),Ie="{".concat(xe[1]);fe=xe[0],Ie=this.interpolate(Ie,g);var Ne=Ie.match(/'/g),at=Ie.match(/"/g);(Ne&&Ne.length%2===0&&!at||at.length%2!==0)&&(Ie=Ie.replace(/'/g,'"'));try{g=JSON.parse(Ie),he&&(g=bo(bo({},he),g))}catch(_t){return this.logger.warn("failed parsing options string in nesting for key ".concat(fe),_t),"".concat(fe).concat(ye).concat(Ie)}return delete g.defaultValue,fe}for(;u=this.nestingRegexp.exec(r);){var v=[],T=!1;if(u[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(u[1])){var V=u[1].split(this.formatSeparator).map(function(fe){return fe.trim()});u[1]=V.shift(),v=V,T=!0}if(l=n(d.call(this,u[1].trim(),g),g),l&&u[0]===r&&typeof l!="string")return l;typeof l!="string"&&(l=lN(l)),l||(this.logger.warn("missed to resolve ".concat(u[1]," for nesting ").concat(r)),l=""),T&&(l=v.reduce(function(fe,he){return i.format(fe,he,o.lng,bo(bo({},o),{},{interpolationkey:u[1].trim()}))},l.trim())),r=r.replace(u[0],l),this.regexp.lastIndex=0}return r}}]),e}();function TN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TN(Object(r),!0).forEach(function(n){Te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JY(e){var t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){var n=e.split("(");t=n[0].toLowerCase().trim();var i=n[1].substring(0,n[1].length-1);if(t==="currency"&&i.indexOf(":")<0)r.currency||(r.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)r.range||(r.range=i.trim());else{var o=i.split(";");o.forEach(function(u){if(!!u){var l=u.split(":"),g=wY(l),d=g[0],v=g.slice(1),T=v.join(":").trim().replace(/^'+|'+$/g,"");r[d.trim()]||(r[d.trim()]=T),T==="false"&&(r[d.trim()]=!1),T==="true"&&(r[d.trim()]=!0),isNaN(T)||(r[d.trim()]=parseInt(T,10))}})}}return{formatName:t,formatOptions:r}}function Pf(e){var t={};return function(n,i,o){var u=i+JSON.stringify(o),l=t[u];return l||(l=e(i,o),t[u]=l),l(n)}}var XY=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Zo(this,e),this.logger=rs.create("formatter"),this.options=t,this.formats={number:Pf(function(r,n){var i=new Intl.NumberFormat(r,n);return function(o){return i.format(o)}}),currency:Pf(function(r,n){var i=new Intl.NumberFormat(r,Nu(Nu({},n),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:Pf(function(r,n){var i=new Intl.DateTimeFormat(r,Nu({},n));return function(o){return i.format(o)}}),relativetime:Pf(function(r,n){var i=new Intl.RelativeTimeFormat(r,Nu({},n));return function(o){return i.format(o,n.range||"day")}}),list:Pf(function(r,n){var i=new Intl.ListFormat(r,Nu({},n));return function(o){return i.format(o)}})},this.init(t)}return es(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=n.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(r,n){this.formats[r.toLowerCase().trim()]=n}},{key:"addCached",value:function(r,n){this.formats[r.toLowerCase().trim()]=Pf(n)}},{key:"format",value:function(r,n,i,o){var u=this,l=n.split(this.formatSeparator),g=l.reduce(function(d,v){var T=JY(v),V=T.formatName,fe=T.formatOptions;if(u.formats[V]){var he=d;try{var ye=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},xe=ye.locale||ye.lng||o.locale||o.lng||i;he=u.formats[V](d,xe,Nu(Nu(Nu({},fe),o),ye))}catch(Ie){u.logger.warn(Ie)}return he}else u.logger.warn("there was no format function for ".concat(V));return d},r);return g}}]),e}();function bN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ON(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bN(Object(r),!0).forEach(function(n){Te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZY(e){var t=eK();return function(){var n=ts(e),i;if(t){var o=ts(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return gh(this,i)}}function eK(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function tK(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var rK=function(e){Cy(r,e);var t=ZY(r);function r(n,i,o){var u,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Zo(this,r),u=t.call(this),Ry&&wu.call(Iu(u)),u.backend=n,u.store=i,u.services=o,u.languageUtils=o.languageUtils,u.options=l,u.logger=rs.create("backendConnector"),u.waitingReads=[],u.maxParallelReads=l.maxParallelReads||10,u.readingCalls=0,u.maxRetries=l.maxRetries>=0?l.maxRetries:5,u.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,u.state={},u.queue=[],u.backend&&u.backend.init&&u.backend.init(o,l.backend,l),u}return es(r,[{key:"queueLoad",value:function(i,o,u,l){var g=this,d={},v={},T={},V={};return i.forEach(function(fe){var he=!0;o.forEach(function(ye){var xe="".concat(fe,"|").concat(ye);!u.reload&&g.store.hasResourceBundle(fe,ye)?g.state[xe]=2:g.state[xe]<0||(g.state[xe]===1?v[xe]===void 0&&(v[xe]=!0):(g.state[xe]=1,he=!1,v[xe]===void 0&&(v[xe]=!0),d[xe]===void 0&&(d[xe]=!0),V[ye]===void 0&&(V[ye]=!0)))}),he||(T[fe]=!0)}),(Object.keys(d).length||Object.keys(v).length)&&this.queue.push({pending:v,pendingCount:Object.keys(v).length,loaded:{},errors:[],callback:l}),{toLoad:Object.keys(d),pending:Object.keys(v),toLoadLanguages:Object.keys(T),toLoadNamespaces:Object.keys(V)}}},{key:"loaded",value:function(i,o,u){var l=i.split("|"),g=l[0],d=l[1];o&&this.emit("failedLoading",g,d,o),u&&this.store.addResourceBundle(g,d,u),this.state[i]=o?-1:2;var v={};this.queue.forEach(function(T){DY(T.loaded,[g],d),tK(T,i),o&&T.errors.push(o),T.pendingCount===0&&!T.done&&(Object.keys(T.loaded).forEach(function(V){v[V]||(v[V]={});var fe=T.loaded[V];fe.length&&fe.forEach(function(he){v[V][he]===void 0&&(v[V][he]=!0)})}),T.done=!0,T.errors.length?T.callback(T.errors):T.callback())}),this.emit("loaded",v),this.queue=this.queue.filter(function(T){return!T.done})}},{key:"read",value:function(i,o,u){var l=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,v=arguments.length>5?arguments[5]:void 0;if(!i.length)return v(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:u,tried:g,wait:d,callback:v});return}return this.readingCalls++,this.backend[u](i,o,function(T,V){if(l.readingCalls--,l.waitingReads.length>0){var fe=l.waitingReads.shift();l.read(fe.lng,fe.ns,fe.fcName,fe.tried,fe.wait,fe.callback)}if(T&&V&&g<l.maxRetries){setTimeout(function(){l.read.call(l,i,o,u,g+1,d*2,v)},d);return}v(T,V)})}},{key:"prepareLoading",value:function(i,o){var u=this,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},g=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),g&&g();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var d=this.queueLoad(i,o,l,g);if(!d.toLoad.length)return d.pending.length||g(),null;d.toLoad.forEach(function(v){u.loadOne(v)})}},{key:"load",value:function(i,o,u){this.prepareLoading(i,o,{},u)}},{key:"reload",value:function(i,o,u){this.prepareLoading(i,o,{reload:!0},u)}},{key:"loadOne",value:function(i){var o=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",l=i.split("|"),g=l[0],d=l[1];this.read(g,d,"read",void 0,void 0,function(v,T){v&&o.logger.warn("".concat(u,"loading namespace ").concat(d," for language ").concat(g," failed"),v),!v&&T&&o.logger.log("".concat(u,"loaded namespace ").concat(d," for language ").concat(g),T),o.loaded(i,v,T)})}},{key:"saveMissing",value:function(i,o,u,l,g){var d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(u,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}u==null||u===""||(this.backend&&this.backend.create&&this.backend.create(i,o,u,l,null,ON(ON({},d),{},{isUpdate:g})),!(!i||!i[0])&&this.store.addResource(i[0],o,u,l))}}]),r}(wu);function nK(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var r={};if(oe(t[1])==="object"&&(r=t[1]),typeof t[1]=="string"&&(r.defaultValue=t[1]),typeof t[2]=="string"&&(r.tDescription=t[2]),oe(t[2])==="object"||oe(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach(function(i){r[i]=n[i]})}return r},interpolation:{escapeValue:!0,format:function(t,r,n,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function AN(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function CN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ns(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CN(Object(r),!0).forEach(function(n){Te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iK(e){var t=aK();return function(){var n=ts(e),i;if(t){var o=ts(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return gh(this,i)}}function aK(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function wy(){}function oK(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(r){typeof e[r]=="function"&&(e[r]=e[r].bind(e))})}var Ny=function(e){Cy(r,e);var t=iK(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Zo(this,r),n=t.call(this),Ry&&wu.call(Iu(n)),n.options=AN(i),n.services={},n.logger=rs,n.modules={external:[]},oK(Iu(n)),o&&!n.isInitialized&&!i.isClone){if(!n.options.initImmediate)return n.init(i,o),gh(n,Iu(n));setTimeout(function(){n.init(i,o)},0)}return n}return es(r,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(u=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var l=nK();this.options=ns(ns(ns({},l),this.options),AN(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=ns(ns({},l.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function g(Ie){return Ie?typeof Ie=="function"?new Ie:Ie:null}if(!this.options.isClone){this.modules.logger?rs.init(g(this.modules.logger),this.options):rs.init(null,this.options);var d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=XY);var v=new qY(this.options);this.store=new jY(this.options.resources,this.options);var T=this.services;T.logger=rs,T.resourceStore=this.store,T.languageUtils=v,T.pluralResolver=new KY(v,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===l.interpolation.format)&&(T.formatter=g(d),T.formatter.init(T,this.options),this.options.interpolation.format=T.formatter.format.bind(T.formatter)),T.interpolator=new zY(this.options),T.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},T.backendConnector=new rK(g(this.modules.backend),T.resourceStore,T,this.options),T.backendConnector.on("*",function(Ie){for(var Ne=arguments.length,at=new Array(Ne>1?Ne-1:0),_t=1;_t<Ne;_t++)at[_t-1]=arguments[_t];i.emit.apply(i,[Ie].concat(at))}),this.modules.languageDetector&&(T.languageDetector=g(this.modules.languageDetector),T.languageDetector.init(T,this.options.detection,this.options)),this.modules.i18nFormat&&(T.i18nFormat=g(this.modules.i18nFormat),T.i18nFormat.init&&T.i18nFormat.init(this)),this.translator=new mN(this.services,this.options),this.translator.on("*",function(Ie){for(var Ne=arguments.length,at=new Array(Ne>1?Ne-1:0),_t=1;_t<Ne;_t++)at[_t-1]=arguments[_t];i.emit.apply(i,[Ie].concat(at))}),this.modules.external.forEach(function(Ie){Ie.init&&Ie.init(i)})}if(this.format=this.options.interpolation.format,u||(u=wy),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var V=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);V.length>0&&V[0]!=="dev"&&(this.options.lng=V[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var fe=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];fe.forEach(function(Ie){i[Ie]=function(){var Ne;return(Ne=i.store)[Ie].apply(Ne,arguments)}});var he=["addResource","addResources","addResourceBundle","removeResourceBundle"];he.forEach(function(Ie){i[Ie]=function(){var Ne;return(Ne=i.store)[Ie].apply(Ne,arguments),i}});var ye=yh(),xe=function(){var Ne=function(_t,$t){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),ye.resolve($t),u(_t,$t)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return Ne(null,i.t.bind(i));i.changeLanguage(i.options.lng,Ne)};return this.options.resources||!this.options.initImmediate?xe():setTimeout(xe,0),ye}},{key:"loadResources",value:function(i){var o=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wy,l=u,g=typeof i=="string"?i:this.language;if(typeof i=="function"&&(l=i),!this.options.resources||this.options.partialBundledLanguages){if(g&&g.toLowerCase()==="cimode")return l();var d=[],v=function(fe){if(!!fe){var he=o.services.languageUtils.toResolveHierarchy(fe);he.forEach(function(ye){d.indexOf(ye)<0&&d.push(ye)})}};if(g)v(g);else{var T=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);T.forEach(function(V){return v(V)})}this.options.preload&&this.options.preload.forEach(function(V){return v(V)}),this.services.backendConnector.load(d,this.options.ns,function(V){!V&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),l(V)})}else l(null)}},{key:"reloadResources",value:function(i,o,u){var l=yh();return i||(i=this.languages),o||(o=this.options.ns),u||(u=wy),this.services.backendConnector.reload(i,o,function(g){l.resolve(),u(g)}),l}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&vN.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o<this.languages.length;o++){var u=this.languages[o];if(!(["cimode","dev"].indexOf(u)>-1)&&this.store.hasLanguageSomeTranslations(u)){this.resolvedLanguage=u;break}}}},{key:"changeLanguage",value:function(i,o){var u=this;this.isLanguageChangingTo=i;var l=yh();this.emit("languageChanging",i);var g=function(V){u.language=V,u.languages=u.services.languageUtils.toResolveHierarchy(V),u.resolvedLanguage=void 0,u.setResolvedLanguage(V)},d=function(V,fe){fe?(g(fe),u.translator.changeLanguage(fe),u.isLanguageChangingTo=void 0,u.emit("languageChanged",fe),u.logger.log("languageChanged",fe)):u.isLanguageChangingTo=void 0,l.resolve(function(){return u.t.apply(u,arguments)}),o&&o(V,function(){return u.t.apply(u,arguments)})},v=function(V){!i&&!V&&u.services.languageDetector&&(V=[]);var fe=typeof V=="string"?V:u.services.languageUtils.getBestMatchFromCodes(V);fe&&(u.language||g(fe),u.translator.language||u.translator.changeLanguage(fe),u.services.languageDetector&&u.services.languageDetector.cacheUserLanguage(fe)),u.loadResources(fe,function(he){d(he,fe)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?v(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(v):v(i),l}},{key:"getFixedT",value:function(i,o,u){var l=this,g=function d(v,T){var V;if(oe(T)!=="object"){for(var fe=arguments.length,he=new Array(fe>2?fe-2:0),ye=2;ye<fe;ye++)he[ye-2]=arguments[ye];V=l.options.overloadTranslationOptionHandler([v,T].concat(he))}else V=ns({},T);V.lng=V.lng||d.lng,V.lngs=V.lngs||d.lngs,V.ns=V.ns||d.ns,V.keyPrefix=V.keyPrefix||u||d.keyPrefix;var xe=l.options.keySeparator||".",Ie=V.keyPrefix?"".concat(V.keyPrefix).concat(xe).concat(v):v;return l.t(Ie,V)};return typeof i=="string"?g.lng=i:g.lngs=i,g.ns=o,g.keyPrefix=u,g}},{key:"t",value:function(){var i;return this.translator&&(i=this.translator).translate.apply(i,arguments)}},{key:"exists",value:function(){var i;return this.translator&&(i=this.translator).exists.apply(i,arguments)}},{key:"setDefaultNamespace",value:function(i){this.options.defaultNS=i}},{key:"hasLoadedNamespace",value:function(i){var o=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var l=this.resolvedLanguage||this.languages[0],g=this.options?this.options.fallbackLng:!1,d=this.languages[this.languages.length-1];if(l.toLowerCase()==="cimode")return!0;var v=function(fe,he){var ye=o.services.backendConnector.state["".concat(fe,"|").concat(he)];return ye===-1||ye===2};if(u.precheck){var T=u.precheck(this,v);if(T!==void 0)return T}return!!(this.hasResourceBundle(l,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||v(l,i)&&(!g||v(d,i)))}},{key:"loadNamespaces",value:function(i,o){var u=this,l=yh();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(g){u.options.ns.indexOf(g)<0&&u.options.ns.push(g)}),this.loadResources(function(g){l.resolve(),o&&o(g)}),l):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var u=yh();typeof i=="string"&&(i=[i]);var l=this.options.preload||[],g=i.filter(function(d){return l.indexOf(d)<0});return g.length?(this.options.preload=l.concat(g),this.loadResources(function(d){u.resolve(),o&&o(d)}),u):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"];return o.indexOf(this.services.languageUtils.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wy,l=ns(ns(ns({},this.options),o),{isClone:!0}),g=new r(l);(o.debug!==void 0||o.prefix!==void 0)&&(g.logger=g.logger.clone(o));var d=["store","services","language"];return d.forEach(function(v){g[v]=i[v]}),g.services=ns({},this.services),g.services.utils={hasLoadedNamespace:g.hasLoadedNamespace.bind(g)},g.translator=new mN(g.services,g.options),g.translator.on("*",function(v){for(var T=arguments.length,V=new Array(T>1?T-1:0),fe=1;fe<T;fe++)V[fe-1]=arguments[fe];g.emit.apply(g,[v].concat(V))}),g.init(l,u),g.translator.options=g.options,g.translator.backendConnector.services.utils={hasLoadedNamespace:g.hasLoadedNamespace.bind(g)},g}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),r}(wu);Te(Ny,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Ny(e,t)});var la=Ny.createInstance();la.createInstance=Ny.createInstance;var Qhe=la.createInstance,Whe=la.init,Yhe=la.loadResources,Khe=la.reloadResources,zhe=la.use,Jhe=la.changeLanguage,Xhe=la.getFixedT,Zhe=la.t,e_e=la.exists,t_e=la.setDefaultNamespace,r_e=la.hasLoadedNamespace,n_e=la.loadNamespaces,i_e=la.loadLanguages;const sK=la;var PN=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Oo=function(e){try{return!!e()}catch{return!0}},uK=Oo,RN=!uK(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),IN=RN,wN=Function.prototype,cK=wN.bind,FA=wN.call,lK=IN&&cK.bind(FA,FA),Ao=IN?function(e){return e&&lK(e)}:function(e){return e&&function(){return FA.apply(e,arguments)}},NN=Ao,fK=NN({}.toString),dK=NN("".slice),pK=function(e){return dK(fK(e),8,-1)},hK=Ao,_K=Oo,vK=pK,kA=Object,gK=hK("".split),MN=_K(function(){return!kA("z").propertyIsEnumerable(0)})?function(e){return vK(e)=="String"?gK(e,""):kA(e)}:kA,yK=TypeError,LN=function(e){if(e==null)throw yK("Can't call method on "+e);return e},mK=MN,EK=LN,mh=function(e){return mK(EK(e))},My=function(e){return e&&e.Math==Math&&e},is=My(typeof globalThis=="object"&&globalThis)||My(typeof window=="object"&&window)||My(typeof self=="object"&&self)||My(typeof PN=="object"&&PN)||function(){return this}()||Function("return this")(),GA={exports:{}},DN=is,SK=Object.defineProperty,jA=function(e,t){try{SK(DN,e,{value:t,configurable:!0,writable:!0})}catch{DN[e]=t}return t},TK=is,bK=jA,xN="__core-js_shared__",OK=TK[xN]||bK(xN,{}),BA=OK,UN=BA;(GA.exports=function(e,t){return UN[e]||(UN[e]=t!==void 0?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"});var AK=LN,CK=Object,VA=function(e){return CK(AK(e))},PK=Ao,RK=VA,IK=PK({}.hasOwnProperty),Vs=Object.hasOwn||function(t,r){return IK(RK(t),r)},wK=Ao,NK=0,MK=Math.random(),LK=wK(1 .toString),$N=function(e){return"Symbol("+(e===void 0?"":e)+")_"+LK(++NK+MK,36)},Ca=function(e){return typeof e=="function"},qA=is,DK=Ca,xK=function(e){return DK(e)?e:void 0},Ly=function(e,t){return arguments.length<2?xK(qA[e]):qA[e]&&qA[e][t]},UK=Ly,$K=UK("navigator","userAgent")||"",FN=is,HA=$K,kN=FN.process,GN=FN.Deno,jN=kN&&kN.versions||GN&&GN.version,BN=jN&&jN.v8,Co,Dy;BN&&(Co=BN.split("."),Dy=Co[0]>0&&Co[0]<4?1:+(Co[0]+Co[1])),!Dy&&HA&&(Co=HA.match(/Edge\/(\d+)/),(!Co||Co[1]>=74)&&(Co=HA.match(/Chrome\/(\d+)/),Co&&(Dy=+Co[1])));var FK=Dy,VN=FK,kK=Oo,qN=!!Object.getOwnPropertySymbols&&!kK(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&VN&&VN<41}),GK=qN,HN=GK&&!Symbol.sham&&typeof Symbol.iterator=="symbol",jK=is,BK=GA.exports,QN=Vs,VK=$N,WN=qN,YN=HN,Rf=BK("wks"),Gc=jK.Symbol,KN=Gc&&Gc.for,qK=YN?Gc:Gc&&Gc.withoutSetter||VK,If=function(e){if(!QN(Rf,e)||!(WN||typeof Rf[e]=="string")){var t="Symbol."+e;WN&&QN(Gc,e)?Rf[e]=Gc[e]:YN&&KN?Rf[e]=KN(t):Rf[e]=qK(t)}return Rf[e]},HK=Ca,Eh=function(e){return typeof e=="object"?e!==null:HK(e)},QK=Eh,WK=String,YK=TypeError,Sh=function(e){if(QK(e))return e;throw YK(WK(e)+" is not an object")},zN={},KK=Oo,as=!KK(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),zK=as,JK=Oo,JN=zK&&JK(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),Mu={},XK=is,XN=Eh,QA=XK.document,ZK=XN(QA)&&XN(QA.createElement),WA=function(e){return ZK?QA.createElement(e):{}},e3=as,t3=Oo,r3=WA,ZN=!e3&&!t3(function(){return Object.defineProperty(r3("div"),"a",{get:function(){return 7}}).a!=7}),n3=RN,xy=Function.prototype.call,Th=n3?xy.bind(xy):function(){return xy.apply(xy,arguments)},i3=Ao,a3=i3({}.isPrototypeOf),o3=Ly,s3=Ca,u3=a3,c3=HN,l3=Object,eM=c3?function(e){return typeof e=="symbol"}:function(e){var t=o3("Symbol");return s3(t)&&u3(t.prototype,l3(e))},f3=String,d3=function(e){try{return f3(e)}catch{return"Object"}},p3=Ca,h3=d3,_3=TypeError,v3=function(e){if(p3(e))return e;throw _3(h3(e)+" is not a function")},g3=v3,y3=function(e,t){var r=e[t];return r==null?void 0:g3(r)},YA=Th,KA=Ca,zA=Eh,m3=TypeError,E3=function(e,t){var r,n;if(t==="string"&&KA(r=e.toString)&&!zA(n=YA(r,e))||KA(r=e.valueOf)&&!zA(n=YA(r,e))||t!=="string"&&KA(r=e.toString)&&!zA(n=YA(r,e)))return n;throw m3("Can't convert object to primitive value")},S3=Th,tM=Eh,rM=eM,T3=y3,b3=E3,O3=If,A3=TypeError,C3=O3("toPrimitive"),P3=function(e,t){if(!tM(e)||rM(e))return e;var r=T3(e,C3),n;if(r){if(t===void 0&&(t="default"),n=S3(r,e,t),!tM(n)||rM(n))return n;throw A3("Can't convert object to primitive value")}return t===void 0&&(t="number"),b3(e,t)},R3=P3,I3=eM,nM=function(e){var t=R3(e,"string");return I3(t)?t:t+""},w3=as,N3=ZN,M3=JN,Uy=Sh,iM=nM,L3=TypeError,JA=Object.defineProperty,D3=Object.getOwnPropertyDescriptor,XA="enumerable",ZA="configurable",e0="writable";Mu.f=w3?M3?function(t,r,n){if(Uy(t),r=iM(r),Uy(n),typeof t=="function"&&r==="prototype"&&"value"in n&&e0 in n&&!n[e0]){var i=D3(t,r);i&&i[e0]&&(t[r]=n.value,n={configurable:ZA in n?n[ZA]:i[ZA],enumerable:XA in n?n[XA]:i[XA],writable:!1})}return JA(t,r,n)}:JA:function(t,r,n){if(Uy(t),r=iM(r),Uy(n),N3)try{return JA(t,r,n)}catch{}if("get"in n||"set"in n)throw L3("Accessors not supported");return"value"in n&&(t[r]=n.value),t};var x3=Math.ceil,U3=Math.floor,$3=Math.trunc||function(t){var r=+t;return(r>0?U3:x3)(r)},F3=$3,aM=function(e){var t=+e;return t!==t||t===0?0:F3(t)},k3=aM,G3=Math.max,j3=Math.min,B3=function(e,t){var r=k3(e);return r<0?G3(r+t,0):j3(r,t)},V3=aM,q3=Math.min,H3=function(e){return e>0?q3(V3(e),9007199254740991):0},Q3=H3,W3=function(e){return Q3(e.length)},Y3=mh,K3=B3,z3=W3,oM=function(e){return function(t,r,n){var i=Y3(t),o=z3(i),u=K3(n,o),l;if(e&&r!=r){for(;o>u;)if(l=i[u++],l!=l)return!0}else for(;o>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},J3={includes:oM(!0),indexOf:oM(!1)},t0={},X3=Ao,r0=Vs,Z3=mh,ez=J3.indexOf,tz=t0,sM=X3([].push),uM=function(e,t){var r=Z3(e),n=0,i=[],o;for(o in r)!r0(tz,o)&&r0(r,o)&&sM(i,o);for(;t.length>n;)r0(r,o=t[n++])&&(~ez(i,o)||sM(i,o));return i},n0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],rz=uM,nz=n0,cM=Object.keys||function(t){return rz(t,nz)},iz=as,az=JN,oz=Mu,sz=Sh,uz=mh,cz=cM;zN.f=iz&&!az?Object.defineProperties:function(t,r){sz(t);for(var n=uz(r),i=cz(r),o=i.length,u=0,l;o>u;)oz.f(t,l=i[u++],n[l]);return t};var lz=Ly,fz=lz("document","documentElement"),dz=GA.exports,pz=$N,lM=dz("keys"),i0=function(e){return lM[e]||(lM[e]=pz(e))},hz=Sh,_z=zN,fM=n0,vz=t0,gz=fz,yz=WA,mz=i0,dM=">",pM="<",a0="prototype",o0="script",hM=mz("IE_PROTO"),s0=function(){},_M=function(e){return pM+o0+dM+e+pM+"/"+o0+dM},vM=function(e){e.write(_M("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ez=function(){var e=yz("iframe"),t="java"+o0+":",r;return e.style.display="none",gz.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(_M("document.F=Object")),r.close(),r.F},$y,Fy=function(){try{$y=new ActiveXObject("htmlfile")}catch{}Fy=typeof document<"u"?document.domain&&$y?vM($y):Ez():vM($y);for(var e=fM.length;e--;)delete Fy[a0][fM[e]];return Fy()};vz[hM]=!0;var gM=Object.create||function(t,r){var n;return t!==null?(s0[a0]=hz(t),n=new s0,s0[a0]=null,n[hM]=t):n=Fy(),r===void 0?n:_z.f(n,r)},Sz=If,Tz=gM,bz=Mu.f,u0=Sz("unscopables"),c0=Array.prototype;c0[u0]==null&&bz(c0,u0,{configurable:!0,value:Tz(null)});var Oz=function(e){c0[u0][e]=!0},l0={},Az=Ao,Cz=Ca,f0=BA,Pz=Az(Function.toString);Cz(f0.inspectSource)||(f0.inspectSource=function(e){return Pz(e)});var yM=f0.inspectSource,Rz=is,Iz=Ca,wz=yM,mM=Rz.WeakMap,Nz=Iz(mM)&&/native code/.test(wz(mM)),d0=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},Mz=as,Lz=Mu,Dz=d0,ky=Mz?function(e,t,r){return Lz.f(e,t,Dz(1,r))}:function(e,t,r){return e[t]=r,e},xz=Nz,EM=is,p0=Ao,Uz=Eh,$z=ky,h0=Vs,_0=BA,Fz=i0,kz=t0,SM="Object already initialized",v0=EM.TypeError,Gz=EM.WeakMap,Gy,bh,jy,jz=function(e){return jy(e)?bh(e):Gy(e,{})},Bz=function(e){return function(t){var r;if(!Uz(t)||(r=bh(t)).type!==e)throw v0("Incompatible receiver, "+e+" required");return r}};if(xz||_0.state){var jc=_0.state||(_0.state=new Gz),Vz=p0(jc.get),TM=p0(jc.has),qz=p0(jc.set);Gy=function(e,t){if(TM(jc,e))throw new v0(SM);return t.facade=e,qz(jc,e,t),t},bh=function(e){return Vz(jc,e)||{}},jy=function(e){return TM(jc,e)}}else{var wf=Fz("state");kz[wf]=!0,Gy=function(e,t){if(h0(e,wf))throw new v0(SM);return t.facade=e,$z(e,wf,t),t},bh=function(e){return h0(e,wf)?e[wf]:{}},jy=function(e){return h0(e,wf)}}var bM={set:Gy,get:bh,has:jy,enforce:jz,getterFor:Bz},g0={},y0={},OM={}.propertyIsEnumerable,AM=Object.getOwnPropertyDescriptor,Hz=AM&&!OM.call({1:2},1);y0.f=Hz?function(t){var r=AM(this,t);return!!r&&r.enumerable}:OM;var Qz=as,Wz=Th,Yz=y0,Kz=d0,zz=mh,Jz=nM,Xz=Vs,Zz=ZN,CM=Object.getOwnPropertyDescriptor;g0.f=Qz?CM:function(t,r){if(t=zz(t),r=Jz(r),Zz)try{return CM(t,r)}catch{}if(Xz(t,r))return Kz(!Wz(Yz.f,t,r),t[r])};var PM={exports:{}},m0=as,e4=Vs,RM=Function.prototype,t4=m0&&Object.getOwnPropertyDescriptor,E0=e4(RM,"name"),r4=E0&&function(){}.name==="something",n4=E0&&(!m0||m0&&t4(RM,"name").configurable),IM={EXISTS:E0,PROPER:r4,CONFIGURABLE:n4},i4=Oo,a4=Ca,By=Vs,S0=as,o4=IM.CONFIGURABLE,s4=yM,wM=bM,u4=wM.enforce,c4=wM.get,Vy=Object.defineProperty,l4=S0&&!i4(function(){return Vy(function(){},"length",{value:8}).length!==8}),f4=String(String).split("String"),d4=PM.exports=function(e,t,r){String(t).slice(0,7)==="Symbol("&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!By(e,"name")||o4&&e.name!==t)&&(S0?Vy(e,"name",{value:t,configurable:!0}):e.name=t),l4&&r&&By(r,"arity")&&e.length!==r.arity&&Vy(e,"length",{value:r.arity});try{r&&By(r,"constructor")&&r.constructor?S0&&Vy(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var n=u4(e);return By(n,"source")||(n.source=f4.join(typeof t=="string"?t:"")),e};Function.prototype.toString=d4(function(){return a4(this)&&c4(this).source||s4(this)},"toString");var p4=Ca,h4=Mu,_4=PM.exports,v4=jA,T0=function(e,t,r,n){n||(n={});var i=n.enumerable,o=n.name!==void 0?n.name:t;if(p4(r)&&_4(r,o,n),n.global)i?e[t]=r:v4(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch{}i?e[t]=r:h4.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},NM={},g4=uM,y4=n0,m4=y4.concat("length","prototype");NM.f=Object.getOwnPropertyNames||function(t){return g4(t,m4)};var b0={};b0.f=Object.getOwnPropertySymbols;var E4=Ly,S4=Ao,T4=NM,b4=b0,O4=Sh,A4=S4([].concat),C4=E4("Reflect","ownKeys")||function(t){var r=T4.f(O4(t)),n=b4.f;return n?A4(r,n(t)):r},MM=Vs,P4=C4,R4=g0,I4=Mu,w4=function(e,t,r){for(var n=P4(t),i=I4.f,o=R4.f,u=0;u<n.length;u++){var l=n[u];!MM(e,l)&&!(r&&MM(r,l))&&i(e,l,o(t,l))}},N4=Oo,M4=Ca,L4=/#|\.prototype\./,Oh=function(e,t){var r=x4[D4(e)];return r==$4?!0:r==U4?!1:M4(t)?N4(t):!!t},D4=Oh.normalize=function(e){return String(e).replace(L4,".").toLowerCase()},x4=Oh.data={},U4=Oh.NATIVE="N",$4=Oh.POLYFILL="P",F4=Oh,O0=is,k4=g0.f,G4=ky,j4=T0,B4=jA,V4=w4,q4=F4,LM=function(e,t){var r=e.target,n=e.global,i=e.stat,o,u,l,g,d,v;if(n?u=O0:i?u=O0[r]||B4(r,{}):u=(O0[r]||{}).prototype,u)for(l in t){if(d=t[l],e.dontCallGetSet?(v=k4(u,l),g=v&&v.value):g=u[l],o=q4(n?l:r+(i?".":"#")+l,e.forced),!o&&g!==void 0){if(typeof d==typeof g)continue;V4(d,g)}(e.sham||g&&g.sham)&&G4(d,"sham",!0),j4(u,l,d,e)}},H4=Oo,Q4=!H4(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),W4=Vs,Y4=Ca,K4=VA,z4=i0,J4=Q4,DM=z4("IE_PROTO"),A0=Object,X4=A0.prototype,xM=J4?A0.getPrototypeOf:function(e){var t=K4(e);if(W4(t,DM))return t[DM];var r=t.constructor;return Y4(r)&&t instanceof r?r.prototype:t instanceof A0?X4:null},Z4=Oo,e6=Ca,UM=xM,t6=T0,r6=If,C0=r6("iterator"),$M=!1,Bc,P0,R0;[].keys&&(R0=[].keys(),"next"in R0?(P0=UM(UM(R0)),P0!==Object.prototype&&(Bc=P0)):$M=!0);var n6=Bc==null||Z4(function(){var e={};return Bc[C0].call(e)!==e});n6&&(Bc={}),e6(Bc[C0])||t6(Bc,C0,function(){return this});var FM={IteratorPrototype:Bc,BUGGY_SAFARI_ITERATORS:$M},i6=Mu.f,a6=Vs,o6=If,kM=o6("toStringTag"),GM=function(e,t,r){e&&!r&&(e=e.prototype),e&&!a6(e,kM)&&i6(e,kM,{configurable:!0,value:t})},s6=FM.IteratorPrototype,u6=gM,c6=d0,l6=GM,f6=l0,d6=function(){return this},p6=function(e,t,r,n){var i=t+" Iterator";return e.prototype=u6(s6,{next:c6(+!n,r)}),l6(e,i,!1),f6[i]=d6,e},h6=Ca,_6=String,v6=TypeError,g6=function(e){if(typeof e=="object"||h6(e))return e;throw v6("Can't set "+_6(e)+" as a prototype")},y6=Ao,m6=Sh,E6=g6,S6=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=y6(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),r(t,[]),e=t instanceof Array}catch{}return function(i,o){return m6(i),E6(o),e?r(i,o):i.__proto__=o,i}}():void 0),T6=LM,b6=Th,jM=IM,O6=Ca,A6=p6,BM=xM,VM=S6,C6=GM,P6=ky,I0=T0,R6=If,I6=l0,qM=FM,w6=jM.PROPER,N6=jM.CONFIGURABLE,HM=qM.IteratorPrototype,qy=qM.BUGGY_SAFARI_ITERATORS,Ah=R6("iterator"),QM="keys",Ch="values",WM="entries",M6=function(){return this},L6=function(e,t,r,n,i,o,u){A6(r,t,n);var l=function(Ie){if(Ie===i&&V)return V;if(!qy&&Ie in v)return v[Ie];switch(Ie){case QM:return function(){return new r(this,Ie)};case Ch:return function(){return new r(this,Ie)};case WM:return function(){return new r(this,Ie)}}return function(){return new r(this)}},g=t+" Iterator",d=!1,v=e.prototype,T=v[Ah]||v["@@iterator"]||i&&v[i],V=!qy&&T||l(i),fe=t=="Array"&&v.entries||T,he,ye,xe;if(fe&&(he=BM(fe.call(new e)),he!==Object.prototype&&he.next&&(BM(he)!==HM&&(VM?VM(he,HM):O6(he[Ah])||I0(he,Ah,M6)),C6(he,g,!0))),w6&&i==Ch&&T&&T.name!==Ch&&(N6?P6(v,"name",Ch):(d=!0,V=function(){return b6(T,this)})),i)if(ye={values:l(Ch),keys:o?V:l(QM),entries:l(WM)},u)for(xe in ye)(qy||d||!(xe in v))&&I0(v,xe,ye[xe]);else T6({target:t,proto:!0,forced:qy||d},ye);return v[Ah]!==V&&I0(v,Ah,V,{name:i}),I6[t]=V,ye},D6=mh,w0=Oz,YM=l0,KM=bM,x6=Mu.f,U6=L6,$6=as,zM="Array Iterator",F6=KM.set,k6=KM.getterFor(zM),G6=U6(Array,"Array",function(e,t){F6(this,{type:zM,target:D6(e),index:0,kind:t})},function(){var e=k6(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),JM=YM.Arguments=YM.Array;if(w0("keys"),w0("values"),w0("entries"),$6&&JM.name!=="values")try{x6(JM,"name",{value:"values"})}catch{}var j6={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},B6=WA,N0=B6("span").classList,XM=N0&&N0.constructor&&N0.constructor.prototype,V6=XM===Object.prototype?void 0:XM,ZM=is,eL=j6,q6=V6,Ph=G6,M0=ky,tL=If,L0=tL("iterator"),rL=tL("toStringTag"),D0=Ph.values,nL=function(e,t){if(e){if(e[L0]!==D0)try{M0(e,L0,D0)}catch{e[L0]=D0}if(e[rL]||M0(e,rL,t),eL[t]){for(var r in Ph)if(e[r]!==Ph[r])try{M0(e,r,Ph[r])}catch{e[r]=Ph[r]}}}};for(var x0 in eL)nL(ZM[x0]&&ZM[x0].prototype,x0);nL(q6,"DOMTokenList");var iL=as,H6=Ao,Q6=Th,W6=Oo,U0=cM,Y6=b0,K6=y0,z6=VA,J6=MN,Nf=Object.assign,aL=Object.defineProperty,X6=H6([].concat),Z6=!Nf||W6(function(){if(iL&&Nf({b:1},Nf(aL({},"a",{enumerable:!0,get:function(){aL(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(i){t[i]=i}),Nf({},e)[r]!=7||U0(Nf({},t)).join("")!=n})?function(t,r){for(var n=z6(t),i=arguments.length,o=1,u=Y6.f,l=K6.f;i>o;)for(var g=J6(arguments[o++]),d=u?X6(U0(g),u(g)):U0(g),v=d.length,T=0,V;v>T;)V=d[T++],(!iL||Q6(l,g,V))&&(n[V]=g[V]);return n}:Nf,e5=LM,oL=Z6;e5({target:"Object",stat:!0,arity:2,forced:Object.assign!==oL},{assign:oL});function Hy(e,t,r,n){function i(o){return o instanceof r?o:new r(function(u){u(o)})}return new(r||(r=Promise))(function(o,u){function l(v){try{d(n.next(v))}catch(T){u(T)}}function g(v){try{d(n.throw(v))}catch(T){u(T)}}function d(v){v.done?o(v.value):i(v.value).then(l,g)}d((n=n.apply(e,t||[])).next())})}function Hr(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function qs(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}const $0=null,a_e=({children:e,i18n:t})=>jsx($0.Provider,Object.assign({value:t},{children:e})),o_e=()=>{const e=useContext($0);if(e===void 0)throw new Error("useTranslation must be used within an I18nProvider");return e.t},t5=e=>{const[t,r]=useState(!e.isLoaded),[n,i]=useState();return useEffect(()=>{e.isLoaded||Hy(void 0,void 0,void 0,function*(){try{yield e.load()}catch(o){i(o)}finally{r(!1)}})},[]),{loading:t,error:n}},s_e=e=>{const t=r5(),r=useMemo(()=>t.child(e),[]),{loading:n,error:i}=t5(r);return{loading:n,error:i,i18n:r}},r5=()=>{const e=useContext($0);if(e===void 0)throw new Error("I18n instance hooks must be used within an I18nProvider");return e};var De=m(4370);let Qy=e=>e,sL,uL,cL,lL;const n5=(0,De.Ay)(sL||(sL=Qy`
|
|
107
107
|
query GetPersonDOBAndZip($id: ID!) {
|
|
108
108
|
getPersonById(id: $id) {
|
|
109
109
|
birthDate
|
|
@@ -5168,7 +5168,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5168
5168
|
questionnaireName
|
|
5169
5169
|
}
|
|
5170
5170
|
}
|
|
5171
|
-
`));function lme(e){const t=Object.assign(Object.assign({},Qc),e);return Apollo.useQuery(d$,t)}function fme(e){const t=Object.assign(Object.assign({},Qc),e);return Apollo.useLazyQuery(d$,t)}const dme=e=>useMutation(CreateOauthThirdPartyConnection,e),pme=e=>useMutation(DisconnectUserToken,e),hme=e=>useMutation(CreateConnectionStatus,e),_me=e=>useQuery(GetMemberConnections,e),vme=e=>useQuery(GetConnections,e),gme=e=>useQuery(GetConnection,e),yme=e=>useQuery(GetOauthGeneratedUrl,e);var p$=m(46),Ih,tm;class h${constructor(){this.type="backend",Ih.set(this,void 0),tm.set(this,void 0)}init(t,{clientSlug:r,apiClient:n}){if(!n)throw t.logger.error('"apiClient" not supplied to "QueryBackend".'),new Error('"apiClient" required for "QueryBackend".');qs(this,Ih,r,"f"),qs(this,tm,qL(n),"f")}read(t,r,n){return Hy(this,void 0,void 0,function*(){try{const{translation:i}=yield Hr(this,tm,"f").getClientTranslations({name:Hr(this,Ih,"f"),key:r,lang:t});n(null,i?.json||{})}catch{const o=`Error fetching translation with key "${r}" and client "${Hr(this,Ih,"f")||"N/A"}".`;n(o,null)}})}}Ih=new WeakMap,tm=new WeakMap,h$.type="backend";var Df;class _${constructor(t){this.type="logger",Df.set(this,void 0),qs(this,Df,t,"f")}log([t,r,...n]){Hr(this,Df,"f").info({meta:r},t,...n)}warn([t,r,...n]){Hr(this,Df,"f").error({meta:r},t,...n)}error([t,r,...n]){Hr(this,Df,"f").error({meta:r},t,...n)}}Df=new WeakMap,_$.type="logger";var wh,Wc,Nh,Pi,Yc;const v$="appLanguage";class B0{constructor({keys:t,nativeBridge:r,fallbackKeys:n=[],defaultLanguage:i="en",logger:o,parent:u,debug:l=!1,remoteConfig:g={}}){wh.set(this,void 0),Wc.set(this,void 0),Nh.set(this,void 0),Pi.set(this,void 0),Yc.set(this,void 0),qs(this,wh,new p$,"f"),qs(this,Wc,t,"f"),qs(this,Nh,n,"f"),qs(this,Yc,r,"f");const d={lng:i,fallbackNS:Hr(this,Nh,"f"),debug:l,defaultNS:t,returnNull:!1};u?qs(this,Pi,u.cloneInstance(d),"f"):(qs(this,Pi,s3.createInstance(),"f"),o&&Hr(this,Pi,"f").use(new _$(o.child({library:"@icanbwell/i18n"}))),g.apiClient&&Hr(this,Pi,"f").use(h$),Hr(this,Pi,"f").init(Object.assign(Object.assign({},d),{fallbackLng:!1,partialBundledLanguages:!0,ns:[],resources:{},backend:g,saveMissing:!0,missingKeyHandler:(v,T,V)=>Hr(this,Pi,"f").services.logger.error(`missing key: ${V}; language: ${v}; key: ${T}`)}))),this.t=Hr(this,Pi,"f").t,this.resolvedLanguage=Hr(this,Pi,"f").resolvedLanguage||i}load(){var t;return Hy(this,void 0,void 0,function*(){const r=(yield(t=Hr(this,Yc,"f"))===null||t===void 0?void 0:t.storage.getItem(v$))||this.resolvedLanguage;if(r!==this.resolvedLanguage&&(yield Hr(this,Pi,"f").changeLanguage(r)),yield Hr(this,Pi,"f").loadNamespaces(Hr(this,Wc,"f")),Hr(this,Wc,"f").some(n=>!Hr(this,Pi,"f").hasResourceBundle(r,n)))throw new Error("Error loading translations.");return this})}child(t){return new B0(Object.assign(Object.assign({},t),{nativeBridge:Hr(this,Yc,"f"),fallbackKeys:[...Hr(this,Nh,"f"),...Hr(this,Wc,"f")],parent:Hr(this,Pi,"f"),defaultLanguage:Hr(this,Pi,"f").language}))}get isLoaded(){return Hr(this,Wc,"f").every(t=>Hr(this,Pi,"f").hasResourceBundle(Hr(this,Pi,"f").language,t))}changeLanguage(t){var r;return Hy(this,void 0,void 0,function*(){this.resolvedLanguage=t,yield Hr(this,Pi,"f").changeLanguage(t),Hr(this,wh,"f").emit("changeLanguage",t),yield(r=Hr(this,Yc,"f"))===null||r===void 0?void 0:r.storage.setItem(v$,t),Hr(this,Yc,"f").reloadView()})}onChangeLanguage(t){Hr(this,wh,"f").on("changeLanguage",t)}}wh=new WeakMap,Wc=new WeakMap,Nh=new WeakMap,Pi=new WeakMap,Yc=new WeakMap;var V0=m(1827),Mh;(function(e){e.one="1.0.0"})(Mh||(Mh={}));const rm="orchestrator:native-bridge",jX={id:rm,dependencies:{featureServices:{}},create:()=>({[Mh.one]:()=>({featureService:V0.b})})};var nm;(function(e){e.one="1.0.0"})(nm||(nm={}));const g$="orchestrator:translation-service",BX={id:g$,dependencies:{featureServices:{[aa]:ia.one,[_h]:Af.one,[kn]:An.one,[rh]:mf.one,[rm]:Mh.one}},create:({featureServices:e})=>{const t=e[aa],r=e[_h],n=e[rh],{slug:i}=e[kn].getClientContext(),o=e[rm],u=new B0({keys:[],nativeBridge:o,defaultLanguage:"en",logger:r,remoteConfig:{clientSlug:i,apiClient:t}});return n.setProfileProperties({language:u.resolvedLanguage}),u.onChangeLanguage(l=>n.setProfileProperties({language:l})),{[nm.one]:()=>({featureService:u})}}};var xf,Uf,im,Kc;const am="tokens";class VX{constructor({apiClient:t,stateService:r,identityGatewaySdk:n,storage:i}){xf.set(this,void 0),Uf.set(this,void 0),im.set(this,void 0),Kc.set(this,void 0),(0,N.GG)(this,xf,t,"f"),(0,N.GG)(this,Uf,r,"f"),(0,N.GG)(this,im,n,"f"),(0,N.GG)(this,Kc,i,"f")}getStoredTokens(){const t=(0,N.gn)(this,Kc,"f").getItem(am);return t?JSON.parse(t):void 0}removeStoredTokens(){(0,N.gn)(this,Kc,"f").removeItem(am)}storeTokens(t){(0,N.gn)(this,Kc,"f").setItem(am,JSON.stringify(t))}logout(){return(0,N.sH)(this,void 0,void 0,function*(){const t=(0,N.gn)(this,Uf,"f").getUserTokenData().accessToken.jwtToken,{key:r}=(0,N.gn)(this,Uf,"f").getClientContext();yield(0,N.gn)(this,im,"f").logout({accessToken:t},{context:{headers:{clientKey:r}}}),(0,N.gn)(this,xf,"f").stop(),(0,N.gn)(this,xf,"f").clearAuth(),yield(0,N.gn)(this,xf,"f").clearStore(),(0,N.gn)(this,Uf,"f").logoutUser(),(0,N.gn)(this,Kc,"f").removeItem(am)})}}xf=new WeakMap,Uf=new WeakMap,im=new WeakMap,Kc=new WeakMap;var om;(function(e){e.one="1.0.0"})(om||(om={}));const y$="orchestrator:identity-utils",qX={id:y$,dependencies:{featureServices:{[aa]:ia.one,[_h]:Af.one,[kn]:An.one,[rh]:mf.one}},create:({featureServices:e})=>{const t=e[aa];return{[om.one]:()=>({featureService:new VX({apiClient:t,stateService:e[kn],identityGatewaySdk:JD(t),storage:window.sessionStorage})})}}};var sm;(function(e){e.one="1.0.0"})(sm||(sm={}));const m$="orchestrator:globaleventemitter-service",HX=e=>({id:m$,create:()=>({[sm.one]:()=>({featureService:e})})});var um;(function(e){e.one="1.0.0"})(um||(um={}));const E$="orchestrator:reboot-controller",QX=e=>({id:E$,create:()=>({[um.one]:()=>({featureService:e})})});class ji extends Error{constructor(t,r){super(t),this.name="BWellError",r?.cause&&(this.cause=r.cause)}static isBwellError(t){return t instanceof ji}}class mme extends ji{constructor(t="Authentication Error"){super(t),this.name="AuthenticationError"}}class Eme extends ji{constructor(t="Illegal Argument Error"){super(t),this.name="IllegalArgumentError"}}class Sme extends ji{constructor(t="Illegal State Error"){super(t),this.name="IllegalStateError"}}class WX extends ji{constructor(t="Invalid Client Key Error"){super(t),this.name="InvalidClientKeyError"}}class q0 extends ji{constructor(t,r){super(t),this.credentials=r,this.name="InvalidCredentialsTypeError"}}class zc extends ji{constructor(t="Invalid Token Error"){super(t),this.name="InvalidTokenError"}}class YX extends ji{constructor(t,r){super(t),this.status=r,this.name="NetworkError"}}class KX extends ji{constructor(t){super(t.message()),this.operationOutcome=t,this.name="OperationOutcomeError"}}class H0 extends ji{constructor(t,r){super(t),this.data=r,this.name="UnknownError"}}class zX extends ji{constructor(t){super(t.join(". ")),this.errors=t,this.name="ValidationError"}}class wr{constructor(t,r){this.data=t,r!==null&&(this.error=r)}hasError(){return this.error!==void 0}static error(t){return new wr(void 0,t)}}var S$=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},cm=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Lh,Dh;class rr{static success(t){return new JX(t)}static failure(t){return new lm(t)}}class JX extends rr{constructor(t){super(),Lh.set(this,void 0),S$(this,Lh,t,"f")}data(){return cm(this,Lh,"f")}error(){throw cm(this,Lh,"f")}success(){return!0}failure(){return!1}toQueryResult(){return new wr(this.data())}}Lh=new WeakMap;class lm extends rr{constructor(t){super(),Dh.set(this,void 0),S$(this,Dh,t,"f")}data(){throw cm(this,Dh,"f")}error(){return cm(this,Dh,"f")}success(){return!1}failure(){return!0}intoFailure(){return rr.failure(this.error())}toQueryResult(){return new wr(void 0,this.error())}}Dh=new WeakMap;var Q0=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},xh;class XX{constructor(){xh.set(this,[])}add(t){Q0(this,xh,"f").push(t)}errors(){return Q0(this,xh,"f")}hasErrors(){return Q0(this,xh,"f").length>0}}xh=new WeakMap;var T$=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},W0=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Uh,fm;class ZX{constructor(t){Uh.set(this,void 0),fm.set(this,void 0),T$(this,fm,t,"f"),T$(this,Uh,this.transformInput(t),"f")}validate(){return rr.success(null)}data(){return W0(this,Uh,"f")}toJSON(){return W0(this,Uh,"f")}transformInput(t){return t}input(){return W0(this,fm,"f")}}Uh=new WeakMap,fm=new WeakMap;class os extends ZX{validate(){const t=new XX;return this.validator.validate(this.input(),t),t.hasErrors()?rr.failure(new zX(t.errors())):rr.success(null)}}var b$=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},dm,O$,A$;const C$=100,e7=20;class $f{constructor(){dm.add(this)}validate(t,r){b$(this,dm,"m",O$).call(this,t.page,r),b$(this,dm,"m",A$).call(this,t.pageSize,r)}}dm=new WeakSet,O$=function(t,r){t<0&&r.add("page must be a positive number")},A$=function(t,r){t!==void 0&&(t<=0&&r.add("Page size must be greater than 0"),t>C$&&r.add(`Page size must not exceed ${C$}`))};class $h extends os{constructor(){super(...arguments),this.validator=new $f}transformInput(t){return Object.assign({pageSize:e7},t)}}function t7(){var e;return!(typeof process>"u"||((e=process.versions)===null||e===void 0?void 0:e.node)===void 0)}function r7(){return typeof window<"u"}function P$(){if(r7())return"browser";if(t7())return"node";throw new Error("Invalid runtime")}function n7(e){switch(P$()){case"browser":return e.browser();case"node":return e.node()}}function R$(e){switch(P$()){case"node":return Buffer.from(e,"base64").toString("utf-8");case"browser":return atob(e)}}function Ri(e){return e!=null}function I$(e){return e==null}function Tme(e){return Ri(e)&&e!==""}function pm(e){return e==null||e===""}function xa(e){return e===void 0}function Bi(e){return e!==void 0}function i7(e){return JSON.parse(R$(e)).env}const a7=3;function w$(e){const t=e.split("."),r=t[1];if(r===void 0||t.length!==a7)throw new zc("Token is missing data and may be corrupted");try{return JSON.parse(R$(r))}catch(n){const i=n;throw new zc(`Unable to parse token payload: ${i.name} - ${i.message}`)}}function o7(e){const r=w$(e).exp;if(typeof r!="number")throw new zc("The access token is missing an expiration date and is most likely corrupted.");return r*1e3}const s7="custom:clientFhirPersonId",u7="custom:bwellFhirPatientId";function c7(e){const t=w$(e),r=t[u7],n=t[s7];if(Ri(r)&&Ri(n))return{bwellFhirPersonId:r,clientFhirPersonId:n};throw new zc("The idToken does not contain a bwellFhirPerson and/or a clientFhirPersonId")}function Du(e){return e.trim()===""}const l7="1.3.0";function f7(){return l7}var N$;(function(e){e.Batch="BATCH",e.BatchResponse="BATCH_RESPONSE",e.Collection="COLLECTION",e.Document="DOCUMENT",e.History="HISTORY",e.Message="MESSAGE",e.Searchset="SEARCHSET",e.Transaction="TRANSACTION",e.TransactionResponse="TRANSACTION_RESPONSE"})(N$||(N$={}));var hm;(function(e){e.DataSharing="DATA_SHARING",e.HealthCircleAdolescent="HEALTH_CIRCLE_ADOLESCENT",e.HealthCircleMinor="HEALTH_CIRCLE_MINOR",e.MobileCommunicationPreferences="MOBILE_COMMUNICATION_PREFERENCES",e.PersonalizedHealthOffersAndAds="PERSONALIZED_HEALTH_OFFERS_AND_ADS",e.ProaAttestation="PROA_ATTESTATION",e.Tos="TOS"})(hm||(hm={}));var M$;(function(e){e.Bwell="bwell"})(M$||(M$={}));var L$;(function(e){e.Bwell="BWELL"})(L$||(L$={}));var D$;(function(e){e.Basic="BASIC",e.Oauth="OAUTH"})(D$||(D$={}));var Y0;(function(e){e.Deny="DENY",e.Permit="PERMIT"})(Y0||(Y0={}));var K0;(function(e){e.Active="ACTIVE",e.Draft="DRAFT",e.EnteredInError="ENTERED_IN_ERROR",e.Inactive="INACTIVE",e.Proposed="PROPOSED",e.Rejected="REJECTED"})(K0||(K0={}));var x$;(function(e){e.Usd="USD"})(x$||(x$={}));var U$;(function(e){e.Connected="CONNECTED",e.Deleted="DELETED",e.Disconnected="DISCONNECTED",e.Error="ERROR",e.Expired="EXPIRED"})(U$||(U$={}));var $$;(function(e){e.Clinical="CLINICAL",e.Insurance="INSURANCE",e.Lab="LAB",e.Pharmacy="PHARMACY",e.Practitioner="PRACTITIONER"})($$||($$={}));var _m;(function(e){e.Connecthub="connecthub",e.Nppes="nppes"})(_m||(_m={}));var F$;(function(e){e.Connecthub="CONNECTHUB",e.Nppes="NPPES"})(F$||(F$={}));var k$;(function(e){e.BwellPatient="BWELL_PATIENT",e.BwellPerson="BWELL_PERSON",e.ClientPatient="CLIENT_PATIENT",e.ClientPerson="CLIENT_PERSON"})(k$||(k$={}));var G$;(function(e){e.Active="active",e.EnteredInError="entered_in_error",e.Error="error",e.Off="off",e.Suspended="suspended",e.Test="test"})(G$||(G$={}));var j$;(function(e){e.Active="ACTIVE",e.EnteredInError="ENTERED_IN_ERROR",e.Error="ERROR",e.Off="OFF",e.Suspended="SUSPENDED",e.Test="TEST"})(j$||(j$={}));var z0;(function(e){e.CustomEvent="CUSTOM_EVENT",e.MobilePushOpen="MOBILE_PUSH_OPEN"})(z0||(z0={}));var J0;(function(e){e.Female="female",e.Male="male",e.Other="other",e.Unknown="unknown"})(J0||(J0={}));var X0;(function(e){e.Person="Person"})(X0||(X0={}));var B$;(function(e){e.Questionnaire="Questionnaire"})(B$||(B$={}));var Z0;(function(e){e.Characteristic="characteristic",e.Communication="communication",e.Gender="gender",e.Specialty="specialty"})(Z0||(Z0={}));var V$;(function(e){e.Characteristic="CHARACTERISTIC",e.Communication="COMMUNICATION",e.Gender="GENDER",e.Specialty="SPECIALTY"})(V$||(V$={}));var q$;(function(e){e.Female="female",e.Male="male",e.Other="other",e.Unknown="unknown"})(q$||(q$={}));var H$;(function(e){e.Female="FEMALE",e.Male="MALE",e.Other="OTHER",e.Unknown="UNKNOWN"})(H$||(H$={}));var Q$;(function(e){e.AllergyIntolerance="ALLERGY_INTOLERANCE",e.CarePlan="CARE_PLAN",e.Condition="CONDITION",e.Encounter="ENCOUNTER",e.Immunization="IMMUNIZATION",e.Labs="LABS",e.Medications="MEDICATIONS",e.Procedure="PROCEDURE",e.VitalSigns="VITAL_SIGNS"})(Q$||(Q$={}));var W$;(function(e){e.Clicked="clicked"})(W$||(W$={}));var Y$;(function(e){e.Clicked="CLICKED"})(Y$||(Y$={}));var eC;(function(e){e.Debug="DEBUG",e.Error="ERROR",e.Info="INFO",e.Verbose="VERBOSE",e.Warn="WARN"})(eC||(eC={}));var K$;(function(e){e.Activity="ACTIVITY",e.Exam="EXAM",e.Imaging="IMAGING",e.Laboratory="LABORATORY",e.Procedure="PROCEDURE",e.SocialHistory="SOCIAL_HISTORY",e.Survey="SURVEY",e.Therapy="THERAPY",e.VitalSigns="VITAL_SIGNS"})(K$||(K$={}));var z$;(function(e){e.CancelDelete="CANCEL_DELETE",e.ConfirmDelete="CONFIRM_DELETE",e.DeletionInProgress="DELETION_IN_PROGRESS",e.ImmediateExecution="IMMEDIATE_EXECUTION",e.RequestDelete="REQUEST_DELETE"})(z$||(z$={}));var tC;(function(e){e.C19Vaccine="C19Vaccine",e.Device="Device",e.Insurance="Insurance",e.Laboratory="Laboratory",e.Pharmacy="Pharmacy",e.Provider="Provider",e.Bus="bus",e.Cg="cg",e.Crs="crs",e.Dept="dept",e.Edu="edu",e.Govt="govt",e.Ins="ins",e.Other="other",e.Pay="pay",e.Prov="prov",e.Reli="reli",e.Team="team"})(tC||(tC={}));var J$;(function(e){e.Bus="BUS",e.C19Vaccine="C19VACCINE",e.Cg="CG",e.Crs="CRS",e.Dept="DEPT",e.Device="DEVICE",e.Edu="EDU",e.Govt="GOVT",e.Ins="INS",e.Insurance="INSURANCE",e.Laboratory="LABORATORY",e.Other="OTHER",e.Pay="PAY",e.Pharmacy="PHARMACY",e.Prov="PROV",e.Provider="PROVIDER",e.Reli="RELI",e.Team="TEAM"})(J$||(J$={}));var X$;(function(e){e.Add="add",e.Copy="copy",e.Move="move",e.Remove="remove",e.Replace="replace",e.Test="test"})(X$||(X$={}));var Z$;(function(e){e.Patient="Patient",e.Person="Person"})(Z$||(Z$={}));var eF;(function(e){e.Practice="practice",e.Practitioner="practitioner"})(eF||(eF={}));var tF;(function(e){e.Practice="PRACTICE",e.Practitioner="PRACTITIONER"})(tF||(tF={}));var rF;(function(e){e.QuestionnaireResponse="QuestionnaireResponse"})(rF||(rF={}));var nF;(function(e){e.AllergyIntolerance="ALLERGY_INTOLERANCE",e.CarePlan="CARE_PLAN",e.Condition="CONDITION",e.Encounter="ENCOUNTER",e.Immunization="IMMUNIZATION",e.MedicationDispense="MEDICATION_DISPENSE",e.MedicationRequest="MEDICATION_REQUEST",e.MedicationStatement="MEDICATION_STATEMENT",e.Observation="OBSERVATION",e.Procedure="PROCEDURE"})(nF||(nF={}));var rC;(function(e){e.Content="content",e.Distance="distance",e.Relevance="relevance"})(rC||(rC={}));var iF;(function(e){e.Content="CONTENT",e.Distance="DISTANCE",e.Relevance="RELEVANCE"})(iF||(iF={}));var nC;(function(e){e.Asc="asc",e.Desc="desc"})(nC||(nC={}));var aF;(function(e){e.Asc="ASC",e.Desc="DESC"})(aF||(aF={}));var oF;(function(e){e.CareSearch="CARE_SEARCH",e.Proa="PROA",e.ProviderDetails="PROVIDER_DETAILS",e.Sayt="SAYT",e.Unspecified="UNSPECIFIED"})(oF||(oF={}));var sF;(function(e){e.Error="ERROR",e.Pending="PENDING",e.Retrieved="RETRIEVED",e.Retrieving="RETRIEVING"})(sF||(sF={}));var iC;(function(e){e.Accepted="ACCEPTED",e.Cancelled="CANCELLED",e.Completed="COMPLETED",e.Draft="DRAFT",e.EnteredInError="ENTERED_IN_ERROR",e.Failed="FAILED",e.InProgress="IN_PROGRESS",e.OnHold="ON_HOLD",e.Ready="READY",e.Received="RECEIVED",e.Rejected="REJECTED",e.Requested="REQUESTED"})(iC||(iC={}));var uF;(function(e){e.Accurate="accurate",e.Estimate="estimate"})(uF||(uF={}));const d7=new Set(Object.values(J0));function cF(e){return d7.has(e)}const p7=new Set(Object.values(K0));function h7(e){return p7.has(e)}const _7=new Set(Object.values(hm));function lF(e){return _7.has(e)}const v7=new Set(Object.values(Y0));function g7(e){return v7.has(e)}class y7{validate(t,r){!xa(t.gender)&&!cF(t.gender)&&r.add(`Invalid gender value: "${t.gender}"`)}}class bme extends os{constructor(){super(...arguments),this.validator=new y7}}class m7{validate(t,r){lF(t.category)||r.add(`Invalid consent category code: "${t.category}"`)}}class Ome extends os{constructor(){super(...arguments),this.validator=new m7}}class E7{validate(t,r){h7(t.status)||r.add(`Invalid consent status: "${t.status}"`),g7(t.provision)||r.add(`Invalid consent provision type: "${t.provision}"`),lF(t.category)||r.add(`Invalid consent category code: "${t.category}"`),!xa(t.organizationId)&&Du(t.organizationId)&&r.add("organizationId cannot be empty"),t.category===hm.ProaAttestation&&xa(t.organizationId)&&r.add("organizationId must be provided when category is PROA_ATTESTATION")}}class Ame extends os{constructor(){super(...arguments),this.validator=new E7}}class S7{validate(t,r){pm(t.exportId)&&r.add("exportId is required"),pm(t.password)&&r.add("password is required")}}class Cme extends os{constructor(){super(...arguments),this.validator=new S7}}var Ua=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},fa,xu,fF,dF,pF,hF,_F,vF;class T7{constructor(){fa.add(this)}validate(t,r){if(!t.values||t.values.length===0){r.add("At least one SearchDateValue must be set to instantiate a SearchDate");return}for(const n of t.values)Ua(this,fa,"m",fF).call(this,n,r)}}fa=new WeakSet,xu=function(t,r){t&&t!==null&&isNaN(t.getTime())&&r.add("The date is not valid")},fF=function(t,r){const{equals:n,notEquals:i,greaterThan:o,greaterThanOrEqualTo:u,lessThan:l,lessThanOrEqualTo:g,approximately:d}=t,T=[n,i,o,u,l,g,d].filter(V=>V!=null).length;if(T===0){r.add("At least one SearchDateValue must be set to instantiate a SearchDate");return}Ua(this,fa,"m",dF).call(this,t,T,r),Ua(this,fa,"m",_F).call(this,t,r),Ua(this,fa,"m",vF).call(this,t,r)},dF=function(t,r,n){const{equals:i,notEquals:o,approximately:u}=t;if(i&&r>1){n.add("The equals value cannot be set with any other values");return}if(o&&r>1){n.add("The notEquals value cannot be set with any other values");return}if(u&&r>1){n.add("The approximately value cannot be set with any other values");return}Ua(this,fa,"m",pF).call(this,t,n),Ua(this,fa,"m",hF).call(this,t,n)},pF=function(t,r){t.greaterThan&&t.greaterThanOrEqualTo&&r.add("The greaterThan/greaterThanOrEqualTo value cannot be set with both values")},hF=function(t,r){t.lessThan&&t.lessThanOrEqualTo&&r.add("The lessThan/lessThanOrEqualTo value cannot be set with both values")},_F=function(t,r){const{equals:n,notEquals:i,greaterThan:o,greaterThanOrEqualTo:u,lessThan:l,lessThanOrEqualTo:g,approximately:d}=t;n&&Ua(this,fa,"m",xu).call(this,n,r),i&&Ua(this,fa,"m",xu).call(this,i,r),o&&Ua(this,fa,"m",xu).call(this,o,r),u&&Ua(this,fa,"m",xu).call(this,u,r),l&&Ua(this,fa,"m",xu).call(this,l,r),g&&Ua(this,fa,"m",xu).call(this,g,r),d&&Ua(this,fa,"m",xu).call(this,d,r)},vF=function(t,r){const{greaterThan:n,greaterThanOrEqualTo:i,lessThan:o,lessThanOrEqualTo:u}=t;n&&u&&n>=u&&r.add("The greaterThan value must be less than the lessThanOrEqualTo value"),i&&o&&i>=o&&r.add("The greaterThanOrEqualTo value must be less than the lessThan value"),n&&o&&n>=o&&r.add("The greaterThan value must be less than the lessThan value"),i&&u&&i>=u&&r.add("The greaterThanOrEqualTo value must be less than the lessThanOrEqualTo value")};var gF=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},vm;class b7{constructor(){vm.set(this,new O7)}validate(t,r){var n;if(t.value===void 0&&t.values===void 0){r.add("Either SearchToken value or values must be provided");return}if(t.value!==void 0&&gF(this,vm,"f").validate(t.value,r),t.values!==void 0&&t.values.length===0){r.add("At least one Coding must be set to instantiate a SearchToken");return}for(const i of(n=t.values)!==null&&n!==void 0?n:[])gF(this,vm,"f").validate(i,r)}}vm=new WeakMap;class O7{validate(t,r){!t.system&&!t.code&&r.add("Each Coding in the list must have at least one non-null and non-empty value for system or code")}}var yF=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},aC,oC;class A7 extends $f{constructor(){super(...arguments),aC.set(this,new b7),oC.set(this,new T7)}validate(t,r){super.validate(t,r),t.groupCode&&yF(this,aC,"f").validate(t.groupCode,r),t.lastUpdated&&yF(this,oC,"f").validate(t.lastUpdated,r)}}aC=new WeakMap,oC=new WeakMap;class Pme extends $h{constructor(){super(...arguments),this.validator=new A7}}class Rme extends null{}class Ime extends null{}class wme extends null{}class Nme extends null{}class Mme extends null{}class Lme extends null{}class Dme extends null{}class xme extends null{}class Ume extends null{}class $me extends null{}class Fme extends null{}class kme extends null{}class Gme extends null{}class jme extends null{}class Bme extends null{}class Vme extends null{}class qme extends null{}class Hme extends null{}class Qme extends null{}class C7 extends $f{validate(t,r){Du(t.medicationStatementId)&&r.add("The medication knowledge request must possess a medication statement id."),super.validate(t,r)}}class Wme extends $h{constructor(){super(...arguments),this.validator=new C7}}class P7 extends $f{validate(t,r){Du(t.labId)&&r.add("The lab knowledge request must contain a lab id."),super.validate(t,r)}}class Yme extends $h{constructor(){super(...arguments),this.validator=new P7}}const R7=new Set(Object.values(iC));function mF(e){return R7.has(e)}var I7=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},sC,EF;class w7 extends $f{constructor(){super(...arguments),sC.add(this)}validate(t,r){if(super.validate(t,r),!xa(t.status)){const n=Array.isArray(t.status)?t.status:[t.status];for(const i of n)I7(this,sC,"m",EF).call(this,i,r)}}}sC=new WeakSet,EF=function(t,r){mF(t)||r.add(`Invalid task status: "${t}"`)};class Kme extends $h{constructor(){super(...arguments),this.validator=new w7}}class N7{validate(t,r){mF(t.newStatus)||r.add(`Invalid task status: "${t.newStatus}"`)}}class zme extends os{constructor(){super(...arguments),this.validator=new N7}}var gm=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Ff,SF,TF,bF,OF;class Jme extends $h{constructor(){super(...arguments),this.validator=new M7}}class M7 extends $f{constructor(){super(...arguments),Ff.add(this)}validate(t,r){super.validate(t,r),Bi(t.organizationTypeFilters)&&gm(this,Ff,"m",SF).call(this,t.organizationTypeFilters,r),Bi(t.sortBy)&&gm(this,Ff,"m",TF).call(this,t.sortBy,r),Bi(t.filterFields)&&gm(this,Ff,"m",bF).call(this,t.filterFields,r),Bi(t.gender)&&gm(this,Ff,"m",OF).call(this,t.gender,r)}}Ff=new WeakSet,SF=function(t,r){for(const n of t)D7(n)||r.add(`Invalid organizationTypeFilters value: "${n}"`)},TF=function(t,r){Bi(t.field)&&!U7(t.field)&&r.add(`Invalid sortBy.field value: "${t.field}"`),Bi(t.order)&&!F7(t.order)&&r.add(`Invalid sortBy.order value: "${t.order}"`)},bF=function(t,r){for(const n of t)G7(n)||r.add(`Invalid filterField value: "${n}"`)},OF=function(t,r){cF(t)||r.add(`Invalid gender value: "${t}"`)};const L7=new Set(Object.values(tC));function D7(e){return L7.has(e)}const x7=new Set(Object.values(rC));function U7(e){return x7.has(e)}const $7=new Set(Object.values(nC));function F7(e){return $7.has(e)}const k7=new Set(Object.values(Z0));function G7(e){return k7.has(e)}class Xme extends null{}const j7="data-connection-status";var B7=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},uC;const V7="connectionId cannot be null or empty",q7="username cannot be null or empty",H7="password cannot be null or empty";class AF{validate(t,r){t.connectionId===""&&r.add(V7)}}class Q7{constructor(){uC.set(this,new AF)}validate(t,r){B7(this,uC,"f").validate(t,r),t.username===""&&r.add(q7),t.password===""&&r.add(H7)}}uC=new WeakMap;class W7 extends os{constructor(){super(...arguments),this.validator=new AF}}class Zme extends null{}class eEe extends W7{constructor(){super(...arguments),this.validator=new Q7}}const Y7="deviceToken is required",K7="platformName must be a valid DevicePlatform value",z7="applicationName is required";var cC;(function(e){e.IOS="IOS",e.ANDROID="ANDROID"})(cC||(cC={}));const J7=new Set(Object.values(cC));function X7(e){return J7.has(e)}function Z7(e){return!X7(e)}class CF{validate(t,r){Du(t.deviceToken)&&r.add(Y7)}}class e9 extends CF{validate(t,r){super.validate(t,r),Z7(t.platformName.toUpperCase())&&r.add(K7),Du(t.applicationName)&&r.add(z7)}}class tEe extends os{constructor(){super(...arguments),this.validator=new e9}}class rEe extends os{constructor(){super(...arguments),this.validator=new CF}}const t9="string parameter serializedNotification must be provided",r9="serialized notification must have a non-empty notification_id field of type string",PF="serialized notification must have an itbl object containing a non-empty messageId field of type string",n9="parsed notification must be a non-null object.",i9="serialized notification is not valid JSON.";class a9{validate(t,r){if(xa(t.serializedNotification)||typeof t.serializedNotification!="string"||Du(t.serializedNotification)){r.add(t9);return}let n=null;try{n=JSON.parse(t.serializedNotification)}catch{r.add(i9);return}if(typeof n!="object"||n===null){r.add(n9);return}const{itbl:i,notification_id:o}=n;if((xa(o)||typeof o!="string"||Du(o))&&r.add(r9),typeof i!="object"||I$(i)){r.add(PF);return}(xa(i.messageId)||typeof i.messageId!="string"||Du(i.messageId))&&r.add(PF)}}class nEe extends os{constructor(){super(...arguments),this.validator=new a9}}var lC=function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(u){u(o)})}return new(r||(r=Promise))(function(o,u){function l(v){try{d(n.next(v))}catch(T){u(T)}}function g(v){try{d(n.throw(v))}catch(T){u(T)}}function d(v){v.done?o(v.value):i(v.value).then(l,g)}d((n=n.apply(e,t||[])).next())})};class RF{constructor(t=new Map){this.storage=t}get(t){return lC(this,void 0,void 0,function*(){return this.storage.get(t)})}set(t,r){return lC(this,void 0,void 0,function*(){this.storage.set(t,r)})}delete(t){return lC(this,void 0,void 0,function*(){return this.storage.delete(t)})}}const o9={logLevel:eC.Error,timeout:3e4,retryPolicy:{attempts:3,interval:1e3},telemetryEnabled:!1,tokenStorage:new RF};var Hs;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.TRACE=1]="TRACE",e[e.TRACE2=2]="TRACE2",e[e.TRACE3=3]="TRACE3",e[e.TRACE4=4]="TRACE4",e[e.DEBUG=5]="DEBUG",e[e.DEBUG2=6]="DEBUG2",e[e.DEBUG3=7]="DEBUG3",e[e.DEBUG4=8]="DEBUG4",e[e.INFO=9]="INFO",e[e.INFO2=10]="INFO2",e[e.INFO3=11]="INFO3",e[e.INFO4=12]="INFO4",e[e.WARN=13]="WARN",e[e.WARN2=14]="WARN2",e[e.WARN3=15]="WARN3",e[e.WARN4=16]="WARN4",e[e.ERROR=17]="ERROR",e[e.ERROR2=18]="ERROR2",e[e.ERROR3=19]="ERROR3",e[e.ERROR4=20]="ERROR4",e[e.FATAL=21]="FATAL",e[e.FATAL2=22]="FATAL2",e[e.FATAL3=23]="FATAL3",e[e.FATAL4=24]="FATAL4"})(Hs||(Hs={}));var s9=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},IF=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Fh,Pr;(function(e){e[e.VERBOSE=0]="VERBOSE",e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.FATAL=5]="FATAL"})(Pr||(Pr={}));const u9={[Pr.VERBOSE]:"VERBOSE",[Pr.DEBUG]:"DEBUG",[Pr.INFO]:"INFO",[Pr.WARN]:"WARN",[Pr.ERROR]:"ERROR",[Pr.FATAL]:"FATAL"};class kf{constructor(t){Fh.set(this,void 0),s9(this,Fh,t,"f")}get severity(){return IF(this,Fh,"f")}shouldLog(t){return t>=IF(this,Fh,"f")}static severityText(t){return u9[t]}static severityFromText(t){switch(t){case"VERBOSE":return Pr.VERBOSE;case"DEBUG":return Pr.DEBUG;case"INFO":return Pr.INFO;case"WARN":return Pr.WARN;case"ERROR":return Pr.ERROR;case"FATAL":return Pr.FATAL;default:throw new Error(`Invalid severity text: ${t}`)}}}Fh=new WeakMap;var fC=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},ss=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Uu,wF,ym,kh,mm,Jc;class NF{constructor(t,r,n){Uu.add(this),ym.set(this,void 0),kh.set(this,void 0),mm.set(this,void 0),fC(this,ym,n,"f"),fC(this,kh,new kf(t),"f"),fC(this,mm,r,"f")}name(){return ss(this,ym,"f")}severity(){return ss(this,kh,"f").severity}verbose(t,r){ss(this,Uu,"m",Jc).call(this,Pr.VERBOSE,t,r)}debug(t,r){ss(this,Uu,"m",Jc).call(this,Pr.DEBUG,t,r)}info(t,r){ss(this,Uu,"m",Jc).call(this,Pr.INFO,t,r)}warn(t,r){ss(this,Uu,"m",Jc).call(this,Pr.WARN,t,r)}error(t,r){let n;r instanceof rr&&(n={error:r.failure()?r.error().message:r.data()}),r instanceof Error&&(n={error:r.message}),n===void 0&&(n=r),ss(this,Uu,"m",Jc).call(this,Pr.ERROR,t,n)}fatal(t,r){ss(this,Uu,"m",Jc).call(this,Pr.FATAL,t,r)}static otelSeverityNumber(t){switch(t){case Pr.VERBOSE:return Hs.TRACE;case Pr.DEBUG:return Hs.DEBUG;case Pr.INFO:return Hs.INFO;case Pr.WARN:return Hs.WARN;case Pr.ERROR:return Hs.ERROR;case Pr.FATAL:return Hs.FATAL;default:return Hs.UNSPECIFIED}}}wF=NF,ym=new WeakMap,kh=new WeakMap,mm=new WeakMap,Uu=new WeakSet,Jc=function(t,r,n){!ss(this,kh,"f").shouldLog(t)||ss(this,mm,"f").emit({timestamp:Date.now(),severityNumber:wF.otelSeverityNumber(t),severityText:kf.severityText(t),body:r,attributes:n??{}})};var MF=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},LF=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Em,Sm;class c9{constructor(t,r){Em.set(this,void 0),Sm.set(this,void 0),MF(this,Sm,t,"f"),MF(this,Em,r.loggerProvider(),"f")}getLogger(t){const r=t??"default",n=LF(this,Em,"f").getLogger(r);return new NF(LF(this,Sm,"f"),n,r)}}Em=new WeakMap,Sm=new WeakMap;class l9{format(t,r,n,i){let u=`[${new Date().toISOString()}] ${kf.severityText(t)}`;return n!==void 0&&(u+=` (${n})`),u+=`: ${r}`,i===void 0?[u]:[u,i]}}var dC=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},ui=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},us,cs,Qs;class f9{constructor(t,r){us.set(this,void 0),cs.set(this,void 0),Qs.set(this,void 0),dC(this,cs,new kf(t),"f"),dC(this,us,r,"f"),dC(this,Qs,new l9,"f")}name(){return ui(this,us,"f")}severity(){return ui(this,cs,"f").severity}verbose(t,r){ui(this,cs,"f").shouldLog(Pr.VERBOSE)&&console.debug(...ui(this,Qs,"f").format(Pr.VERBOSE,t,ui(this,us,"f"),r))}debug(t,r){ui(this,cs,"f").shouldLog(Pr.DEBUG)&&console.debug(...ui(this,Qs,"f").format(Pr.DEBUG,t,ui(this,us,"f"),r))}info(t,r){ui(this,cs,"f").shouldLog(Pr.INFO)&&console.info(...ui(this,Qs,"f").format(Pr.INFO,t,ui(this,us,"f"),r))}warn(t,r){ui(this,cs,"f").shouldLog(Pr.WARN)&&console.warn(...ui(this,Qs,"f").format(Pr.WARN,t,ui(this,us,"f"),r))}error(t,r){let n=r;r instanceof rr&&(n=r.failure()?r.error():r.data()),ui(this,cs,"f").shouldLog(Pr.ERROR)&&console.error(...ui(this,Qs,"f").format(Pr.ERROR,t,ui(this,us,"f"),n))}fatal(t,r){ui(this,cs,"f").shouldLog(Pr.FATAL)&&console.error(...ui(this,Qs,"f").format(Pr.FATAL,t,ui(this,us,"f"),r))}}us=new WeakMap,cs=new WeakMap,Qs=new WeakMap;var d9=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},p9=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Tm;class da{constructor(t=Pr.FATAL){Tm.set(this,void 0),d9(this,Tm,t,"f")}getLogger(t){return new f9(p9(this,Tm,"f"),t)}}Tm=new WeakMap;var h9=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},pC,DF;class _9{constructor(){pC.add(this)}createLogProvider(t,r){switch(h9(this,pC,"m",DF).call(this,t)){case"otel":if(r===void 0)throw new Error('telemetry is required for "otel" logging');return new c9(t.logLevel,r);case"console":return new da(t.logLevel)}}}pC=new WeakSet,DF=function(t){return t.telemetry.enabled?"otel":"console"};var Tn=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Ws=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},to,Gf,$u,jf,Fu,Xc,xF,UF,$F,FF,kF,GF,jF,BF,VF,qF;class bm{constructor(t){to.add(this),Gf.set(this,void 0),$u.set(this,void 0),jf.set(this,void 0),Fu.set(this,void 0),Xc.set(this,void 0),this.bwellConfig=Tn(this,to,"m",kF).call(this,t),Ws(this,Gf,kf.severityFromText(this.bwellConfig.logLevel),"f"),Ws(this,Xc,Tn(this,to,"m",qF).call(this),"f"),Ws(this,jf,Tn(this,to,"m",jF).call(this),"f"),Ws(this,$u,Tn(this,to,"m",BF).call(this),"f"),Ws(this,Fu,Tn(this,to,"m",VF).call(this),"f")}static initialize(t){try{const r=new bm(t);return rr.success(r)}catch(r){if(ji.isBwellError(r))return rr.failure(r);throw r}}get logLevel(){return Tn(this,Gf,"f")}get graphQL(){return Tn(this,jf,"f")}get telemetry(){return Tn(this,$u,"f")}get http(){return Tn(this,Fu,"f")}get context(){return Tn(this,Xc,"f")}setContextUser(t){Tn(this,Xc,"f").user=t}mergeRemoteConfig(t){Ws(this,Gf,Tn(this,to,"m",xF).call(this,t),"f"),Ws(this,jf,Object.freeze(Tn(this,to,"m",UF).call(this,t)),"f"),Ws(this,$u,Object.freeze(Tn(this,to,"m",$F).call(this,t)),"f"),Ws(this,Fu,Object.freeze(Tn(this,to,"m",FF).call(this,t)),"f")}}Gf=new WeakMap,$u=new WeakMap,jf=new WeakMap,Fu=new WeakMap,Xc=new WeakMap,to=new WeakSet,xF=function(t){var r;const n=(r=t?.logLevel)!==null&&r!==void 0?r:null;return n===null?Tn(this,Gf,"f"):kf.severityFromText(n)},UF=function(t){var r;const n=(r=t?.graphQLClient)!==null&&r!==void 0?r:null;return n===null?Tn(this,jf,"f"):{unauthApiUrl:n.url,apiUrl:n.authUrl}},$F=function(t){var r,n;const i=(r=t?.telemetry)!==null&&r!==void 0?r:null;if(i===null)return Tn(this,$u,"f");const o=(n=i.enabled)!==null&&n!==void 0?n:Tn(this,$u,"f").enabled;if(i.collectorUrl.endsWith("/"))throw new Error('Telemetry config "collectorUrl" cannot end with a trailing slash.');let u;try{u=new URL(i.collectorUrl)}catch{throw new Error('Telemetry config "collectorUrl" malformed/is not a proper URL.')}if(u.pathname!=="/")throw new Error('Telemetry config "collectorUrl" cannot contain a path.');return Object.assign(Object.assign({},Tn(this,$u,"f")),{enabled:o,collectorUrl:i.collectorUrl})},FF=function(t){var r,n,i;const o=(r=t?.httpClient)!==null&&r!==void 0?r:null;return o===null?Tn(this,Fu,"f"):{timeout:(n=o.requestTimeout)!==null&&n!==void 0?n:Tn(this,Fu,"f").timeout,retryPolicy:(i=o.retry)!==null&&i!==void 0?i:Tn(this,Fu,"f").retryPolicy}},kF=function(t){return Object.assign(Object.assign({},o9),t)},GF=function(){try{return i7(this.bwellConfig.clientKey)}catch{throw new WX("It appears there is a problem with your Client Key. Contact b.well support for further assistance.")}},jF=function(){return{apiUrl:`https://api-gateway.${Tn(this,Xc,"f").env}.icanbwell.com/federated-graph-authed/graphql`,unauthApiUrl:`https://api-gateway.${Tn(this,Xc,"f").env}.icanbwell.com/federated-graph/graphql`}},BF=function(){return{collectorUrl:"https://collector.services.icanbwell.com",enabled:this.bwellConfig.telemetryEnabled,timeout:this.bwellConfig.timeout}},VF=function(){return{timeout:this.bwellConfig.timeout,retryPolicy:{attempts:this.bwellConfig.retryPolicy.attempts,interval:this.bwellConfig.retryPolicy.interval}}},qF=function(){return{clientKey:this.bwellConfig.clientKey,env:Tn(this,to,"m",GF).call(this),user:null}};var v9=function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(u){u(o)})}return new(r||(r=Promise))(function(o,u){function l(v){try{d(n.next(v))}catch(T){u(T)}}function g(v){try{d(n.throw(v))}catch(T){u(T)}}function d(v){v.done?o(v.value):i(v.value).then(l,g)}d((n=n.apply(e,t||[])).next())})},HF=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},Om=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Bf,Am;class g9{constructor(t,r=new da){Bf.set(this,void 0),Am.set(this,void 0),HF(this,Am,t,"f"),HF(this,Bf,r.getLogger("ConfigManager"),"f")}initialize(t){return v9(this,void 0,void 0,function*(){const r=bm.initialize(t);if(r.failure())return r;const n=r.data();Om(this,Bf,"f").verbose("Initializing SDK Configuration");const i=yield Om(this,Am,"f").initialize(n.context.clientKey);if(i.failure())return i.intoFailure();const o=i.data();try{n.mergeRemoteConfig(o)}catch(u){Om(this,Bf,"f").error("Error merging SDK config with remote config.",u)}return Om(this,Bf,"f").info("Remote SDK Configuration merged with user config"),rr.success(n)})}}Bf=new WeakMap,Am=new WeakMap;const hC=JSON,y9=e=>e.toUpperCase(),m9=e=>{const t={};return e.forEach((r,n)=>{t[n]=r}),t},E9=(e,t,r)=>e.document?e:{document:e,variables:t,requestHeaders:r,signal:void 0},S9=(e,t,r)=>e.query?e:{query:e,variables:t,requestHeaders:r,signal:void 0},T9=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0},iEe=(e,t,...r)=>{const[n,i]=r;return e.document?e:{url:e,document:t,variables:n,requestHeaders:i,signal:void 0}},aEe=(e,t,...r)=>{const[n,i]=r;return e.query?e:{url:e,query:t,variables:n,requestHeaders:i,signal:void 0}};var b9=m(5157),O9=m(2704);const QF=e=>{let t;const r=e.definitions.filter(n=>n.kind==="OperationDefinition");return r.length===1&&(t=r[0]?.name?.value),t},Cm=e=>{if(typeof e=="string"){let r;try{const n=(0,b9.qg)(e);r=QF(n)}catch{}return{query:e,operationName:r}}const t=QF(e);return{query:(0,O9.y)(e),operationName:t}};class ku extends Error{constructor(t,r){const n=`${ku.extractMessage(t)}: ${JSON.stringify({response:t,request:r})}`;super(n),Object.setPrototypeOf(this,ku.prototype),this.response=t,this.request=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,ku)}static extractMessage(t){return t.errors?.[0]?.message??`GraphQL Error (Code: ${t.status})`}}var Vf=m(288),A9=m.t(Vf,2);const C9="connection_init",P9="connection_ack",WF="ping",YF="pong",R9="subscribe",I9="next",w9="error",KF="complete";class Gu{get type(){return this._type}get id(){return this._id}get payload(){return this._payload}constructor(t,r,n){this._type=t,this._payload=r,this._id=n}get text(){const t={type:this.type};return this.id!=null&&this.id!=null&&(t.id=this.id),this.payload!=null&&this.payload!=null&&(t.payload=this.payload),JSON.stringify(t)}static parse(t,r){const{type:n,payload:i,id:o}=JSON.parse(t);return new Gu(n,r(i),o)}}class N9{constructor(t,{onInit:r,onAcknowledged:n,onPing:i,onPong:o}){this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=t,t.addEventListener("open",async u=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={},t.send(L9(r?await r():null).text)}),t.addEventListener("close",u=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={}}),t.addEventListener("error",u=>{console.error(u)}),t.addEventListener("message",u=>{try{const l=M9(u.data);switch(l.type){case P9:{this.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(this.socketState.acknowledged=!0,n&&n(l.payload));return}case WF:{i?i(l.payload).then(T=>t.send(zF(T).text)):t.send(zF(null).text);return}case YF:{o&&o(l.payload);return}}if(!this.socketState.acknowledged||l.id===void 0||l.id===null||!this.socketState.subscriptions[l.id])return;const{query:g,variables:d,subscriber:v}=this.socketState.subscriptions[l.id];switch(l.type){case I9:{!l.payload.errors&&l.payload.data&&v.next&&v.next(l.payload.data),l.payload.errors&&v.error&&v.error(new ku({...l.payload,status:200},{query:g,variables:d}));return}case w9:{v.error&&v.error(new ku({errors:l.payload,status:200},{query:g,variables:d}));return}case KF:{v.complete&&v.complete(),delete this.socketState.subscriptions[l.id];return}}}catch(l){console.error(l),t.close(1006)}t.close(4400,"Unknown graphql-ws message.")})}makeSubscribe(t,r,n,i){const o=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[o]={query:t,variables:i,subscriber:n},this.socket.send(x9(o,{query:t,operationName:r,variables:i}).text),()=>{this.socket.send(U9(o).text),delete this.socketState.subscriptions[o]}}rawRequest(t,r){return new Promise((n,i)=>{let o;this.rawSubscribe(t,{next:(u,l)=>o={data:u,extensions:l},error:i,complete:()=>n(o)},r)})}request(t,r){return new Promise((n,i)=>{let o;this.subscribe(t,{next:u=>o=u,error:i,complete:()=>n(o)},r)})}subscribe(t,r,n){const{query:i,operationName:o}=Cm(t);return this.makeSubscribe(i,o,r,n)}rawSubscribe(t,r,n){return this.makeSubscribe(t,void 0,r,n)}ping(t){this.socket.send(D9(t).text)}close(){this.socket.close(1e3)}}N9.PROTOCOL="graphql-transport-ws";function M9(e,t=r=>r){return Gu.parse(e,t)}function L9(e){return new Gu(C9,e)}function D9(e){return new Gu(WF,e,void 0)}function zF(e){return new Gu(YF,e,void 0)}function x9(e,t){return new Gu(R9,t,e)}function U9(e){return new Gu(KF,void 0,e)}const qf=e=>{let t={};return e&&(typeof Headers<"u"&&e instanceof Headers||A9&&Vf.Headers&&e instanceof Vf.Headers?t=m9(e):Array.isArray(e)?e.forEach(([r,n])=>{r&&n!==void 0&&(t[r]=n)}):t=e),t},JF=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),$9=e=>{if(!Array.isArray(e.query)){const n=e,i=[`query=${encodeURIComponent(JF(n.query))}`];return e.variables&&i.push(`variables=${encodeURIComponent(n.jsonSerializer.stringify(n.variables))}`),n.operationName&&i.push(`operationName=${encodeURIComponent(n.operationName)}`),i.join("&")}if(typeof e.variables<"u"&&!Array.isArray(e.variables))throw new Error("Cannot create query with given variable type, array expected");const t=e,r=e.query.reduce((n,i,o)=>(n.push({query:JF(i),variables:t.variables?t.jsonSerializer.stringify(t.variables[o]):void 0}),n),[]);return`query=${encodeURIComponent(t.jsonSerializer.stringify(r))}`},F9=e=>async t=>{const{url:r,query:n,variables:i,operationName:o,fetch:u,fetchOptions:l,middleware:g}=t,d={...t.headers};let v="",T;e==="POST"?(T=G9(n,i,o,l.jsonSerializer),typeof T=="string"&&(d["Content-Type"]="application/json")):v=$9({query:n,variables:i,operationName:o,jsonSerializer:l.jsonSerializer??hC});const V={method:e,headers:d,body:T,...l};let fe=r,he=V;if(g){const ye=await Promise.resolve(g({...V,url:r,operationName:o,variables:i})),{url:xe,...Ie}=ye;fe=xe,he=Ie}return v&&(fe=`${fe}?${v}`),await u(fe,he)};class Pm{constructor(t,r={}){this.url=t,this.requestConfig=r,this.rawRequest=async(...n)=>{const[i,o,u]=n,l=S9(i,o,u),{headers:g,fetch:d=Vf,method:v="POST",requestMiddleware:T,responseMiddleware:V,...fe}=this.requestConfig,{url:he}=this;l.signal!==void 0&&(fe.signal=l.signal);const{operationName:ye}=Cm(l.query);return _C({url:he,query:l.query,variables:l.variables,headers:{...qf(vC(g)),...qf(l.requestHeaders)},operationName:ye,fetch:d,method:v,fetchOptions:fe,middleware:T}).then(xe=>(V&&V(xe),xe)).catch(xe=>{throw V&&V(xe),xe})}}async request(t,...r){const[n,i]=r,o=E9(t,n,i),{headers:u,fetch:l=Vf,method:g="POST",requestMiddleware:d,responseMiddleware:v,...T}=this.requestConfig,{url:V}=this;o.signal!==void 0&&(T.signal=o.signal);const{query:fe,operationName:he}=Cm(o.document);return _C({url:V,query:fe,variables:o.variables,headers:{...qf(vC(u)),...qf(o.requestHeaders)},operationName:he,fetch:l,method:g,fetchOptions:T,middleware:d}).then(ye=>(v&&v(ye),ye.data)).catch(ye=>{throw v&&v(ye),ye})}batchRequests(t,r){const n=T9(t,r),{headers:i,...o}=this.requestConfig;n.signal!==void 0&&(o.signal=n.signal);const u=n.documents.map(({document:g})=>Cm(g).query),l=n.documents.map(({variables:g})=>g);return _C({url:this.url,query:u,variables:l,headers:{...qf(vC(i)),...qf(n.requestHeaders)},operationName:void 0,fetch:this.requestConfig.fetch??Vf,method:this.requestConfig.method||"POST",fetchOptions:o,middleware:this.requestConfig.requestMiddleware}).then(g=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(g),g.data)).catch(g=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(g),g})}setHeaders(t){return this.requestConfig.headers=t,this}setHeader(t,r){const{headers:n}=this.requestConfig;return n?n[t]=r:this.requestConfig.headers={[t]:r},this}setEndpoint(t){return this.url=t,this}}const _C=async e=>{const{query:t,variables:r,fetchOptions:n}=e,i=F9(y9(e.method??"post")),o=Array.isArray(e.query),u=await i(e),l=await j9(u,n.jsonSerializer??hC),g=Array.isArray(l)?!l.some(({data:v})=>!v):Boolean(l.data),d=Array.isArray(l)||!l.errors||Array.isArray(l.errors)&&!l.errors.length||n.errorPolicy==="all"||n.errorPolicy==="ignore";if(u.ok&&d&&g){const{errors:v,...T}=(Array.isArray(l),l),V=n.errorPolicy==="ignore"?T:l;return{...o?{data:V}:V,headers:u.headers,status:u.status}}else{const v=typeof l=="string"?{error:l}:l;throw new ku({...v,status:u.status,headers:u.headers},{query:t,variables:r})}},oEe=async(...e)=>{const[t,r,...n]=e,i=parseRawRequestExtendedArgs(t,r,...n);return new Pm(i.url).rawRequest({...i})};async function sEe(e,t,...r){const n=parseRequestExtendedArgs(e,t,...r);return new Pm(n.url).request({...n})}const uEe=async(...e)=>{const t=k9(e);return new Pm(t.url).batchRequests(t)},k9=e=>e.length===1?e[0]:{url:e[0],documents:e[1],requestHeaders:e[2],signal:void 0},G9=(e,t,r,n)=>{const i=n??hC;if(!Array.isArray(e))return i.stringify({query:e,variables:t,operationName:r});if(typeof t<"u"&&!Array.isArray(t))throw new Error("Cannot create request body with given variable type, array expected");const o=e.reduce((u,l,g)=>(u.push({query:l,variables:t?t[g]:void 0}),u),[]);return i.stringify(o)},j9=async(e,t)=>{let r;return e.headers.forEach((n,i)=>{i.toLowerCase()==="content-type"&&(r=n)}),r&&(r.toLowerCase().startsWith("application/json")||r.toLowerCase().startsWith("application/graphql+json")||r.toLowerCase().startsWith("application/graphql-response+json"))?t.parse(await e.text()):e.text()},vC=e=>typeof e=="function"?e():e,cEe=(e,...t)=>e.reduce((r,n,i)=>`${r}${n}${i in t?String(t[i]):""}`,""),lEe=null,$a=`
|
|
5171
|
+
`));function lme(e){const t=Object.assign(Object.assign({},Qc),e);return Apollo.useQuery(d$,t)}function fme(e){const t=Object.assign(Object.assign({},Qc),e);return Apollo.useLazyQuery(d$,t)}const dme=e=>useMutation(CreateOauthThirdPartyConnection,e),pme=e=>useMutation(DisconnectUserToken,e),hme=e=>useMutation(CreateConnectionStatus,e),_me=e=>useQuery(GetMemberConnections,e),vme=e=>useQuery(GetConnections,e),gme=e=>useQuery(GetConnection,e),yme=e=>useQuery(GetOauthGeneratedUrl,e);var p$=m(46),Ih,tm;class h${constructor(){this.type="backend",Ih.set(this,void 0),tm.set(this,void 0)}init(t,{clientSlug:r,apiClient:n}){if(!n)throw t.logger.error('"apiClient" not supplied to "QueryBackend".'),new Error('"apiClient" required for "QueryBackend".');qs(this,Ih,r,"f"),qs(this,tm,qL(n),"f")}read(t,r,n){return Hy(this,void 0,void 0,function*(){try{const{translation:i}=yield Hr(this,tm,"f").getClientTranslations({name:Hr(this,Ih,"f"),key:r,lang:t});n(null,i?.json||{})}catch{const o=`Error fetching translation with key "${r}" and client "${Hr(this,Ih,"f")||"N/A"}".`;n(o,null)}})}}Ih=new WeakMap,tm=new WeakMap,h$.type="backend";var Df;class _${constructor(t){this.type="logger",Df.set(this,void 0),qs(this,Df,t,"f")}log([t,r,...n]){Hr(this,Df,"f").info({meta:r},t,...n)}warn([t,r,...n]){Hr(this,Df,"f").error({meta:r},t,...n)}error([t,r,...n]){Hr(this,Df,"f").error({meta:r},t,...n)}}Df=new WeakMap,_$.type="logger";var wh,Wc,Nh,Pi,Yc;const v$="appLanguage";class B0{constructor({keys:t,nativeBridge:r,fallbackKeys:n=[],defaultLanguage:i="en",logger:o,parent:u,debug:l=!1,remoteConfig:g={}}){wh.set(this,void 0),Wc.set(this,void 0),Nh.set(this,void 0),Pi.set(this,void 0),Yc.set(this,void 0),qs(this,wh,new p$,"f"),qs(this,Wc,t,"f"),qs(this,Nh,n,"f"),qs(this,Yc,r,"f");const d={lng:i,fallbackNS:Hr(this,Nh,"f"),debug:l,defaultNS:t,returnNull:!1};u?qs(this,Pi,u.cloneInstance(d),"f"):(qs(this,Pi,sK.createInstance(),"f"),o&&Hr(this,Pi,"f").use(new _$(o.child({library:"@icanbwell/i18n"}))),g.apiClient&&Hr(this,Pi,"f").use(h$),Hr(this,Pi,"f").init(Object.assign(Object.assign({},d),{fallbackLng:!1,partialBundledLanguages:!0,ns:[],resources:{},backend:g,saveMissing:!0,missingKeyHandler:(v,T,V)=>Hr(this,Pi,"f").services.logger.error(`missing key: ${V}; language: ${v}; key: ${T}`)}))),this.t=Hr(this,Pi,"f").t,this.resolvedLanguage=Hr(this,Pi,"f").resolvedLanguage||i}load(){var t;return Hy(this,void 0,void 0,function*(){const r=(yield(t=Hr(this,Yc,"f"))===null||t===void 0?void 0:t.storage.getItem(v$))||this.resolvedLanguage;r!==this.resolvedLanguage&&(yield Hr(this,Pi,"f").changeLanguage(r)),yield Hr(this,Pi,"f").loadNamespaces(Hr(this,Wc,"f"));const n=Hr(this,Wc,"f").filter(i=>!Hr(this,Pi,"f").hasResourceBundle(r,i));if(n.length)throw new Error(`Error loading translations for key(s): ${n.join(", ")}`);return this})}child(t){return new B0(Object.assign(Object.assign({},t),{nativeBridge:Hr(this,Yc,"f"),fallbackKeys:[...Hr(this,Nh,"f"),...Hr(this,Wc,"f")],parent:Hr(this,Pi,"f"),defaultLanguage:Hr(this,Pi,"f").language}))}get isLoaded(){return Hr(this,Wc,"f").every(t=>Hr(this,Pi,"f").hasResourceBundle(Hr(this,Pi,"f").language,t))}changeLanguage(t){var r;return Hy(this,void 0,void 0,function*(){this.resolvedLanguage=t,yield Hr(this,Pi,"f").changeLanguage(t),Hr(this,wh,"f").emit("changeLanguage",t),yield(r=Hr(this,Yc,"f"))===null||r===void 0?void 0:r.storage.setItem(v$,t),Hr(this,Yc,"f").reloadView()})}onChangeLanguage(t){Hr(this,wh,"f").on("changeLanguage",t)}}wh=new WeakMap,Wc=new WeakMap,Nh=new WeakMap,Pi=new WeakMap,Yc=new WeakMap;var V0=m(1827),Mh;(function(e){e.one="1.0.0"})(Mh||(Mh={}));const rm="orchestrator:native-bridge",jX={id:rm,dependencies:{featureServices:{}},create:()=>({[Mh.one]:()=>({featureService:V0.b})})};var nm;(function(e){e.one="1.0.0"})(nm||(nm={}));const g$="orchestrator:translation-service",BX={id:g$,dependencies:{featureServices:{[aa]:ia.one,[_h]:Af.one,[kn]:An.one,[rh]:mf.one,[rm]:Mh.one}},create:({featureServices:e})=>{const t=e[aa],r=e[_h],n=e[rh],{slug:i}=e[kn].getClientContext(),o=e[rm],u=new B0({keys:[],nativeBridge:o,defaultLanguage:"en",logger:r,remoteConfig:{clientSlug:i,apiClient:t}});return n.setProfileProperties({language:u.resolvedLanguage}),u.onChangeLanguage(l=>n.setProfileProperties({language:l})),{[nm.one]:()=>({featureService:u})}}};var xf,Uf,im,Kc;const am="tokens";class VX{constructor({apiClient:t,stateService:r,identityGatewaySdk:n,storage:i}){xf.set(this,void 0),Uf.set(this,void 0),im.set(this,void 0),Kc.set(this,void 0),(0,N.GG)(this,xf,t,"f"),(0,N.GG)(this,Uf,r,"f"),(0,N.GG)(this,im,n,"f"),(0,N.GG)(this,Kc,i,"f")}getStoredTokens(){const t=(0,N.gn)(this,Kc,"f").getItem(am);return t?JSON.parse(t):void 0}removeStoredTokens(){(0,N.gn)(this,Kc,"f").removeItem(am)}storeTokens(t){(0,N.gn)(this,Kc,"f").setItem(am,JSON.stringify(t))}logout(){return(0,N.sH)(this,void 0,void 0,function*(){const t=(0,N.gn)(this,Uf,"f").getUserTokenData().accessToken.jwtToken,{key:r}=(0,N.gn)(this,Uf,"f").getClientContext();yield(0,N.gn)(this,im,"f").logout({accessToken:t},{context:{headers:{clientKey:r}}}),(0,N.gn)(this,xf,"f").stop(),(0,N.gn)(this,xf,"f").clearAuth(),yield(0,N.gn)(this,xf,"f").clearStore(),(0,N.gn)(this,Uf,"f").logoutUser(),(0,N.gn)(this,Kc,"f").removeItem(am)})}}xf=new WeakMap,Uf=new WeakMap,im=new WeakMap,Kc=new WeakMap;var om;(function(e){e.one="1.0.0"})(om||(om={}));const y$="orchestrator:identity-utils",qX={id:y$,dependencies:{featureServices:{[aa]:ia.one,[_h]:Af.one,[kn]:An.one,[rh]:mf.one}},create:({featureServices:e})=>{const t=e[aa];return{[om.one]:()=>({featureService:new VX({apiClient:t,stateService:e[kn],identityGatewaySdk:JD(t),storage:window.sessionStorage})})}}};var sm;(function(e){e.one="1.0.0"})(sm||(sm={}));const m$="orchestrator:globaleventemitter-service",HX=e=>({id:m$,create:()=>({[sm.one]:()=>({featureService:e})})});var um;(function(e){e.one="1.0.0"})(um||(um={}));const E$="orchestrator:reboot-controller",QX=e=>({id:E$,create:()=>({[um.one]:()=>({featureService:e})})});class ji extends Error{constructor(t,r){super(t),this.name="BWellError",r?.cause&&(this.cause=r.cause)}static isBwellError(t){return t instanceof ji}}class mme extends ji{constructor(t="Authentication Error"){super(t),this.name="AuthenticationError"}}class Eme extends ji{constructor(t="Illegal Argument Error"){super(t),this.name="IllegalArgumentError"}}class Sme extends ji{constructor(t="Illegal State Error"){super(t),this.name="IllegalStateError"}}class WX extends ji{constructor(t="Invalid Client Key Error"){super(t),this.name="InvalidClientKeyError"}}class q0 extends ji{constructor(t,r){super(t),this.credentials=r,this.name="InvalidCredentialsTypeError"}}class zc extends ji{constructor(t="Invalid Token Error"){super(t),this.name="InvalidTokenError"}}class YX extends ji{constructor(t,r){super(t),this.status=r,this.name="NetworkError"}}class KX extends ji{constructor(t){super(t.message()),this.operationOutcome=t,this.name="OperationOutcomeError"}}class H0 extends ji{constructor(t,r){super(t),this.data=r,this.name="UnknownError"}}class zX extends ji{constructor(t){super(t.join(". ")),this.errors=t,this.name="ValidationError"}}class wr{constructor(t,r){this.data=t,r!==null&&(this.error=r)}hasError(){return this.error!==void 0}static error(t){return new wr(void 0,t)}}var S$=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},cm=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Lh,Dh;class rr{static success(t){return new JX(t)}static failure(t){return new lm(t)}}class JX extends rr{constructor(t){super(),Lh.set(this,void 0),S$(this,Lh,t,"f")}data(){return cm(this,Lh,"f")}error(){throw cm(this,Lh,"f")}success(){return!0}failure(){return!1}toQueryResult(){return new wr(this.data())}}Lh=new WeakMap;class lm extends rr{constructor(t){super(),Dh.set(this,void 0),S$(this,Dh,t,"f")}data(){throw cm(this,Dh,"f")}error(){return cm(this,Dh,"f")}success(){return!1}failure(){return!0}intoFailure(){return rr.failure(this.error())}toQueryResult(){return new wr(void 0,this.error())}}Dh=new WeakMap;var Q0=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},xh;class XX{constructor(){xh.set(this,[])}add(t){Q0(this,xh,"f").push(t)}errors(){return Q0(this,xh,"f")}hasErrors(){return Q0(this,xh,"f").length>0}}xh=new WeakMap;var T$=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},W0=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Uh,fm;class ZX{constructor(t){Uh.set(this,void 0),fm.set(this,void 0),T$(this,fm,t,"f"),T$(this,Uh,this.transformInput(t),"f")}validate(){return rr.success(null)}data(){return W0(this,Uh,"f")}toJSON(){return W0(this,Uh,"f")}transformInput(t){return t}input(){return W0(this,fm,"f")}}Uh=new WeakMap,fm=new WeakMap;class os extends ZX{validate(){const t=new XX;return this.validator.validate(this.input(),t),t.hasErrors()?rr.failure(new zX(t.errors())):rr.success(null)}}var b$=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},dm,O$,A$;const C$=100,e7=20;class $f{constructor(){dm.add(this)}validate(t,r){b$(this,dm,"m",O$).call(this,t.page,r),b$(this,dm,"m",A$).call(this,t.pageSize,r)}}dm=new WeakSet,O$=function(t,r){t<0&&r.add("page must be a positive number")},A$=function(t,r){t!==void 0&&(t<=0&&r.add("Page size must be greater than 0"),t>C$&&r.add(`Page size must not exceed ${C$}`))};class $h extends os{constructor(){super(...arguments),this.validator=new $f}transformInput(t){return Object.assign({pageSize:e7},t)}}function t7(){var e;return!(typeof process>"u"||((e=process.versions)===null||e===void 0?void 0:e.node)===void 0)}function r7(){return typeof window<"u"}function P$(){if(r7())return"browser";if(t7())return"node";throw new Error("Invalid runtime")}function n7(e){switch(P$()){case"browser":return e.browser();case"node":return e.node()}}function R$(e){switch(P$()){case"node":return Buffer.from(e,"base64").toString("utf-8");case"browser":return atob(e)}}function Ri(e){return e!=null}function I$(e){return e==null}function Tme(e){return Ri(e)&&e!==""}function pm(e){return e==null||e===""}function xa(e){return e===void 0}function Bi(e){return e!==void 0}function i7(e){return JSON.parse(R$(e)).env}const a7=3;function w$(e){const t=e.split("."),r=t[1];if(r===void 0||t.length!==a7)throw new zc("Token is missing data and may be corrupted");try{return JSON.parse(R$(r))}catch(n){const i=n;throw new zc(`Unable to parse token payload: ${i.name} - ${i.message}`)}}function o7(e){const r=w$(e).exp;if(typeof r!="number")throw new zc("The access token is missing an expiration date and is most likely corrupted.");return r*1e3}const s7="custom:clientFhirPersonId",u7="custom:bwellFhirPatientId";function c7(e){const t=w$(e),r=t[u7],n=t[s7];if(Ri(r)&&Ri(n))return{bwellFhirPersonId:r,clientFhirPersonId:n};throw new zc("The idToken does not contain a bwellFhirPerson and/or a clientFhirPersonId")}function Du(e){return e.trim()===""}const l7="1.3.0";function f7(){return l7}var N$;(function(e){e.Batch="BATCH",e.BatchResponse="BATCH_RESPONSE",e.Collection="COLLECTION",e.Document="DOCUMENT",e.History="HISTORY",e.Message="MESSAGE",e.Searchset="SEARCHSET",e.Transaction="TRANSACTION",e.TransactionResponse="TRANSACTION_RESPONSE"})(N$||(N$={}));var hm;(function(e){e.DataSharing="DATA_SHARING",e.HealthCircleAdolescent="HEALTH_CIRCLE_ADOLESCENT",e.HealthCircleMinor="HEALTH_CIRCLE_MINOR",e.MobileCommunicationPreferences="MOBILE_COMMUNICATION_PREFERENCES",e.PersonalizedHealthOffersAndAds="PERSONALIZED_HEALTH_OFFERS_AND_ADS",e.ProaAttestation="PROA_ATTESTATION",e.Tos="TOS"})(hm||(hm={}));var M$;(function(e){e.Bwell="bwell"})(M$||(M$={}));var L$;(function(e){e.Bwell="BWELL"})(L$||(L$={}));var D$;(function(e){e.Basic="BASIC",e.Oauth="OAUTH"})(D$||(D$={}));var Y0;(function(e){e.Deny="DENY",e.Permit="PERMIT"})(Y0||(Y0={}));var K0;(function(e){e.Active="ACTIVE",e.Draft="DRAFT",e.EnteredInError="ENTERED_IN_ERROR",e.Inactive="INACTIVE",e.Proposed="PROPOSED",e.Rejected="REJECTED"})(K0||(K0={}));var x$;(function(e){e.Usd="USD"})(x$||(x$={}));var U$;(function(e){e.Connected="CONNECTED",e.Deleted="DELETED",e.Disconnected="DISCONNECTED",e.Error="ERROR",e.Expired="EXPIRED"})(U$||(U$={}));var $$;(function(e){e.Clinical="CLINICAL",e.Insurance="INSURANCE",e.Lab="LAB",e.Pharmacy="PHARMACY",e.Practitioner="PRACTITIONER"})($$||($$={}));var _m;(function(e){e.Connecthub="connecthub",e.Nppes="nppes"})(_m||(_m={}));var F$;(function(e){e.Connecthub="CONNECTHUB",e.Nppes="NPPES"})(F$||(F$={}));var k$;(function(e){e.BwellPatient="BWELL_PATIENT",e.BwellPerson="BWELL_PERSON",e.ClientPatient="CLIENT_PATIENT",e.ClientPerson="CLIENT_PERSON"})(k$||(k$={}));var G$;(function(e){e.Active="active",e.EnteredInError="entered_in_error",e.Error="error",e.Off="off",e.Suspended="suspended",e.Test="test"})(G$||(G$={}));var j$;(function(e){e.Active="ACTIVE",e.EnteredInError="ENTERED_IN_ERROR",e.Error="ERROR",e.Off="OFF",e.Suspended="SUSPENDED",e.Test="TEST"})(j$||(j$={}));var z0;(function(e){e.CustomEvent="CUSTOM_EVENT",e.MobilePushOpen="MOBILE_PUSH_OPEN"})(z0||(z0={}));var J0;(function(e){e.Female="female",e.Male="male",e.Other="other",e.Unknown="unknown"})(J0||(J0={}));var X0;(function(e){e.Person="Person"})(X0||(X0={}));var B$;(function(e){e.Questionnaire="Questionnaire"})(B$||(B$={}));var Z0;(function(e){e.Characteristic="characteristic",e.Communication="communication",e.Gender="gender",e.Specialty="specialty"})(Z0||(Z0={}));var V$;(function(e){e.Characteristic="CHARACTERISTIC",e.Communication="COMMUNICATION",e.Gender="GENDER",e.Specialty="SPECIALTY"})(V$||(V$={}));var q$;(function(e){e.Female="female",e.Male="male",e.Other="other",e.Unknown="unknown"})(q$||(q$={}));var H$;(function(e){e.Female="FEMALE",e.Male="MALE",e.Other="OTHER",e.Unknown="UNKNOWN"})(H$||(H$={}));var Q$;(function(e){e.AllergyIntolerance="ALLERGY_INTOLERANCE",e.CarePlan="CARE_PLAN",e.Condition="CONDITION",e.Encounter="ENCOUNTER",e.Immunization="IMMUNIZATION",e.Labs="LABS",e.Medications="MEDICATIONS",e.Procedure="PROCEDURE",e.VitalSigns="VITAL_SIGNS"})(Q$||(Q$={}));var W$;(function(e){e.Clicked="clicked"})(W$||(W$={}));var Y$;(function(e){e.Clicked="CLICKED"})(Y$||(Y$={}));var eC;(function(e){e.Debug="DEBUG",e.Error="ERROR",e.Info="INFO",e.Verbose="VERBOSE",e.Warn="WARN"})(eC||(eC={}));var K$;(function(e){e.Activity="ACTIVITY",e.Exam="EXAM",e.Imaging="IMAGING",e.Laboratory="LABORATORY",e.Procedure="PROCEDURE",e.SocialHistory="SOCIAL_HISTORY",e.Survey="SURVEY",e.Therapy="THERAPY",e.VitalSigns="VITAL_SIGNS"})(K$||(K$={}));var z$;(function(e){e.CancelDelete="CANCEL_DELETE",e.ConfirmDelete="CONFIRM_DELETE",e.DeletionInProgress="DELETION_IN_PROGRESS",e.ImmediateExecution="IMMEDIATE_EXECUTION",e.RequestDelete="REQUEST_DELETE"})(z$||(z$={}));var tC;(function(e){e.C19Vaccine="C19Vaccine",e.Device="Device",e.Insurance="Insurance",e.Laboratory="Laboratory",e.Pharmacy="Pharmacy",e.Provider="Provider",e.Bus="bus",e.Cg="cg",e.Crs="crs",e.Dept="dept",e.Edu="edu",e.Govt="govt",e.Ins="ins",e.Other="other",e.Pay="pay",e.Prov="prov",e.Reli="reli",e.Team="team"})(tC||(tC={}));var J$;(function(e){e.Bus="BUS",e.C19Vaccine="C19VACCINE",e.Cg="CG",e.Crs="CRS",e.Dept="DEPT",e.Device="DEVICE",e.Edu="EDU",e.Govt="GOVT",e.Ins="INS",e.Insurance="INSURANCE",e.Laboratory="LABORATORY",e.Other="OTHER",e.Pay="PAY",e.Pharmacy="PHARMACY",e.Prov="PROV",e.Provider="PROVIDER",e.Reli="RELI",e.Team="TEAM"})(J$||(J$={}));var X$;(function(e){e.Add="add",e.Copy="copy",e.Move="move",e.Remove="remove",e.Replace="replace",e.Test="test"})(X$||(X$={}));var Z$;(function(e){e.Patient="Patient",e.Person="Person"})(Z$||(Z$={}));var eF;(function(e){e.Practice="practice",e.Practitioner="practitioner"})(eF||(eF={}));var tF;(function(e){e.Practice="PRACTICE",e.Practitioner="PRACTITIONER"})(tF||(tF={}));var rF;(function(e){e.QuestionnaireResponse="QuestionnaireResponse"})(rF||(rF={}));var nF;(function(e){e.AllergyIntolerance="ALLERGY_INTOLERANCE",e.CarePlan="CARE_PLAN",e.Condition="CONDITION",e.Encounter="ENCOUNTER",e.Immunization="IMMUNIZATION",e.MedicationDispense="MEDICATION_DISPENSE",e.MedicationRequest="MEDICATION_REQUEST",e.MedicationStatement="MEDICATION_STATEMENT",e.Observation="OBSERVATION",e.Procedure="PROCEDURE"})(nF||(nF={}));var rC;(function(e){e.Content="content",e.Distance="distance",e.Relevance="relevance"})(rC||(rC={}));var iF;(function(e){e.Content="CONTENT",e.Distance="DISTANCE",e.Relevance="RELEVANCE"})(iF||(iF={}));var nC;(function(e){e.Asc="asc",e.Desc="desc"})(nC||(nC={}));var aF;(function(e){e.Asc="ASC",e.Desc="DESC"})(aF||(aF={}));var oF;(function(e){e.CareSearch="CARE_SEARCH",e.Proa="PROA",e.ProviderDetails="PROVIDER_DETAILS",e.Sayt="SAYT",e.Unspecified="UNSPECIFIED"})(oF||(oF={}));var sF;(function(e){e.Error="ERROR",e.Pending="PENDING",e.Retrieved="RETRIEVED",e.Retrieving="RETRIEVING"})(sF||(sF={}));var iC;(function(e){e.Accepted="ACCEPTED",e.Cancelled="CANCELLED",e.Completed="COMPLETED",e.Draft="DRAFT",e.EnteredInError="ENTERED_IN_ERROR",e.Failed="FAILED",e.InProgress="IN_PROGRESS",e.OnHold="ON_HOLD",e.Ready="READY",e.Received="RECEIVED",e.Rejected="REJECTED",e.Requested="REQUESTED"})(iC||(iC={}));var uF;(function(e){e.Accurate="accurate",e.Estimate="estimate"})(uF||(uF={}));const d7=new Set(Object.values(J0));function cF(e){return d7.has(e)}const p7=new Set(Object.values(K0));function h7(e){return p7.has(e)}const _7=new Set(Object.values(hm));function lF(e){return _7.has(e)}const v7=new Set(Object.values(Y0));function g7(e){return v7.has(e)}class y7{validate(t,r){!xa(t.gender)&&!cF(t.gender)&&r.add(`Invalid gender value: "${t.gender}"`)}}class bme extends os{constructor(){super(...arguments),this.validator=new y7}}class m7{validate(t,r){lF(t.category)||r.add(`Invalid consent category code: "${t.category}"`)}}class Ome extends os{constructor(){super(...arguments),this.validator=new m7}}class E7{validate(t,r){h7(t.status)||r.add(`Invalid consent status: "${t.status}"`),g7(t.provision)||r.add(`Invalid consent provision type: "${t.provision}"`),lF(t.category)||r.add(`Invalid consent category code: "${t.category}"`),!xa(t.organizationId)&&Du(t.organizationId)&&r.add("organizationId cannot be empty"),t.category===hm.ProaAttestation&&xa(t.organizationId)&&r.add("organizationId must be provided when category is PROA_ATTESTATION")}}class Ame extends os{constructor(){super(...arguments),this.validator=new E7}}class S7{validate(t,r){pm(t.exportId)&&r.add("exportId is required"),pm(t.password)&&r.add("password is required")}}class Cme extends os{constructor(){super(...arguments),this.validator=new S7}}var Ua=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},fa,xu,fF,dF,pF,hF,_F,vF;class T7{constructor(){fa.add(this)}validate(t,r){if(!t.values||t.values.length===0){r.add("At least one SearchDateValue must be set to instantiate a SearchDate");return}for(const n of t.values)Ua(this,fa,"m",fF).call(this,n,r)}}fa=new WeakSet,xu=function(t,r){t&&t!==null&&isNaN(t.getTime())&&r.add("The date is not valid")},fF=function(t,r){const{equals:n,notEquals:i,greaterThan:o,greaterThanOrEqualTo:u,lessThan:l,lessThanOrEqualTo:g,approximately:d}=t,T=[n,i,o,u,l,g,d].filter(V=>V!=null).length;if(T===0){r.add("At least one SearchDateValue must be set to instantiate a SearchDate");return}Ua(this,fa,"m",dF).call(this,t,T,r),Ua(this,fa,"m",_F).call(this,t,r),Ua(this,fa,"m",vF).call(this,t,r)},dF=function(t,r,n){const{equals:i,notEquals:o,approximately:u}=t;if(i&&r>1){n.add("The equals value cannot be set with any other values");return}if(o&&r>1){n.add("The notEquals value cannot be set with any other values");return}if(u&&r>1){n.add("The approximately value cannot be set with any other values");return}Ua(this,fa,"m",pF).call(this,t,n),Ua(this,fa,"m",hF).call(this,t,n)},pF=function(t,r){t.greaterThan&&t.greaterThanOrEqualTo&&r.add("The greaterThan/greaterThanOrEqualTo value cannot be set with both values")},hF=function(t,r){t.lessThan&&t.lessThanOrEqualTo&&r.add("The lessThan/lessThanOrEqualTo value cannot be set with both values")},_F=function(t,r){const{equals:n,notEquals:i,greaterThan:o,greaterThanOrEqualTo:u,lessThan:l,lessThanOrEqualTo:g,approximately:d}=t;n&&Ua(this,fa,"m",xu).call(this,n,r),i&&Ua(this,fa,"m",xu).call(this,i,r),o&&Ua(this,fa,"m",xu).call(this,o,r),u&&Ua(this,fa,"m",xu).call(this,u,r),l&&Ua(this,fa,"m",xu).call(this,l,r),g&&Ua(this,fa,"m",xu).call(this,g,r),d&&Ua(this,fa,"m",xu).call(this,d,r)},vF=function(t,r){const{greaterThan:n,greaterThanOrEqualTo:i,lessThan:o,lessThanOrEqualTo:u}=t;n&&u&&n>=u&&r.add("The greaterThan value must be less than the lessThanOrEqualTo value"),i&&o&&i>=o&&r.add("The greaterThanOrEqualTo value must be less than the lessThan value"),n&&o&&n>=o&&r.add("The greaterThan value must be less than the lessThan value"),i&&u&&i>=u&&r.add("The greaterThanOrEqualTo value must be less than the lessThanOrEqualTo value")};var gF=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},vm;class b7{constructor(){vm.set(this,new O7)}validate(t,r){var n;if(t.value===void 0&&t.values===void 0){r.add("Either SearchToken value or values must be provided");return}if(t.value!==void 0&&gF(this,vm,"f").validate(t.value,r),t.values!==void 0&&t.values.length===0){r.add("At least one Coding must be set to instantiate a SearchToken");return}for(const i of(n=t.values)!==null&&n!==void 0?n:[])gF(this,vm,"f").validate(i,r)}}vm=new WeakMap;class O7{validate(t,r){!t.system&&!t.code&&r.add("Each Coding in the list must have at least one non-null and non-empty value for system or code")}}var yF=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},aC,oC;class A7 extends $f{constructor(){super(...arguments),aC.set(this,new b7),oC.set(this,new T7)}validate(t,r){super.validate(t,r),t.groupCode&&yF(this,aC,"f").validate(t.groupCode,r),t.lastUpdated&&yF(this,oC,"f").validate(t.lastUpdated,r)}}aC=new WeakMap,oC=new WeakMap;class Pme extends $h{constructor(){super(...arguments),this.validator=new A7}}class Rme extends null{}class Ime extends null{}class wme extends null{}class Nme extends null{}class Mme extends null{}class Lme extends null{}class Dme extends null{}class xme extends null{}class Ume extends null{}class $me extends null{}class Fme extends null{}class kme extends null{}class Gme extends null{}class jme extends null{}class Bme extends null{}class Vme extends null{}class qme extends null{}class Hme extends null{}class Qme extends null{}class C7 extends $f{validate(t,r){Du(t.medicationStatementId)&&r.add("The medication knowledge request must possess a medication statement id."),super.validate(t,r)}}class Wme extends $h{constructor(){super(...arguments),this.validator=new C7}}class P7 extends $f{validate(t,r){Du(t.labId)&&r.add("The lab knowledge request must contain a lab id."),super.validate(t,r)}}class Yme extends $h{constructor(){super(...arguments),this.validator=new P7}}const R7=new Set(Object.values(iC));function mF(e){return R7.has(e)}var I7=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},sC,EF;class w7 extends $f{constructor(){super(...arguments),sC.add(this)}validate(t,r){if(super.validate(t,r),!xa(t.status)){const n=Array.isArray(t.status)?t.status:[t.status];for(const i of n)I7(this,sC,"m",EF).call(this,i,r)}}}sC=new WeakSet,EF=function(t,r){mF(t)||r.add(`Invalid task status: "${t}"`)};class Kme extends $h{constructor(){super(...arguments),this.validator=new w7}}class N7{validate(t,r){mF(t.newStatus)||r.add(`Invalid task status: "${t.newStatus}"`)}}class zme extends os{constructor(){super(...arguments),this.validator=new N7}}var gm=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Ff,SF,TF,bF,OF;class Jme extends $h{constructor(){super(...arguments),this.validator=new M7}}class M7 extends $f{constructor(){super(...arguments),Ff.add(this)}validate(t,r){super.validate(t,r),Bi(t.organizationTypeFilters)&&gm(this,Ff,"m",SF).call(this,t.organizationTypeFilters,r),Bi(t.sortBy)&&gm(this,Ff,"m",TF).call(this,t.sortBy,r),Bi(t.filterFields)&&gm(this,Ff,"m",bF).call(this,t.filterFields,r),Bi(t.gender)&&gm(this,Ff,"m",OF).call(this,t.gender,r)}}Ff=new WeakSet,SF=function(t,r){for(const n of t)D7(n)||r.add(`Invalid organizationTypeFilters value: "${n}"`)},TF=function(t,r){Bi(t.field)&&!U7(t.field)&&r.add(`Invalid sortBy.field value: "${t.field}"`),Bi(t.order)&&!F7(t.order)&&r.add(`Invalid sortBy.order value: "${t.order}"`)},bF=function(t,r){for(const n of t)G7(n)||r.add(`Invalid filterField value: "${n}"`)},OF=function(t,r){cF(t)||r.add(`Invalid gender value: "${t}"`)};const L7=new Set(Object.values(tC));function D7(e){return L7.has(e)}const x7=new Set(Object.values(rC));function U7(e){return x7.has(e)}const $7=new Set(Object.values(nC));function F7(e){return $7.has(e)}const k7=new Set(Object.values(Z0));function G7(e){return k7.has(e)}class Xme extends null{}const j7="data-connection-status";var B7=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},uC;const V7="connectionId cannot be null or empty",q7="username cannot be null or empty",H7="password cannot be null or empty";class AF{validate(t,r){t.connectionId===""&&r.add(V7)}}class Q7{constructor(){uC.set(this,new AF)}validate(t,r){B7(this,uC,"f").validate(t,r),t.username===""&&r.add(q7),t.password===""&&r.add(H7)}}uC=new WeakMap;class W7 extends os{constructor(){super(...arguments),this.validator=new AF}}class Zme extends null{}class eEe extends W7{constructor(){super(...arguments),this.validator=new Q7}}const Y7="deviceToken is required",K7="platformName must be a valid DevicePlatform value",z7="applicationName is required";var cC;(function(e){e.IOS="IOS",e.ANDROID="ANDROID"})(cC||(cC={}));const J7=new Set(Object.values(cC));function X7(e){return J7.has(e)}function Z7(e){return!X7(e)}class CF{validate(t,r){Du(t.deviceToken)&&r.add(Y7)}}class e9 extends CF{validate(t,r){super.validate(t,r),Z7(t.platformName.toUpperCase())&&r.add(K7),Du(t.applicationName)&&r.add(z7)}}class tEe extends os{constructor(){super(...arguments),this.validator=new e9}}class rEe extends os{constructor(){super(...arguments),this.validator=new CF}}const t9="string parameter serializedNotification must be provided",r9="serialized notification must have a non-empty notification_id field of type string",PF="serialized notification must have an itbl object containing a non-empty messageId field of type string",n9="parsed notification must be a non-null object.",i9="serialized notification is not valid JSON.";class a9{validate(t,r){if(xa(t.serializedNotification)||typeof t.serializedNotification!="string"||Du(t.serializedNotification)){r.add(t9);return}let n=null;try{n=JSON.parse(t.serializedNotification)}catch{r.add(i9);return}if(typeof n!="object"||n===null){r.add(n9);return}const{itbl:i,notification_id:o}=n;if((xa(o)||typeof o!="string"||Du(o))&&r.add(r9),typeof i!="object"||I$(i)){r.add(PF);return}(xa(i.messageId)||typeof i.messageId!="string"||Du(i.messageId))&&r.add(PF)}}class nEe extends os{constructor(){super(...arguments),this.validator=new a9}}var lC=function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(u){u(o)})}return new(r||(r=Promise))(function(o,u){function l(v){try{d(n.next(v))}catch(T){u(T)}}function g(v){try{d(n.throw(v))}catch(T){u(T)}}function d(v){v.done?o(v.value):i(v.value).then(l,g)}d((n=n.apply(e,t||[])).next())})};class RF{constructor(t=new Map){this.storage=t}get(t){return lC(this,void 0,void 0,function*(){return this.storage.get(t)})}set(t,r){return lC(this,void 0,void 0,function*(){this.storage.set(t,r)})}delete(t){return lC(this,void 0,void 0,function*(){return this.storage.delete(t)})}}const o9={logLevel:eC.Error,timeout:3e4,retryPolicy:{attempts:3,interval:1e3},telemetryEnabled:!1,tokenStorage:new RF};var Hs;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.TRACE=1]="TRACE",e[e.TRACE2=2]="TRACE2",e[e.TRACE3=3]="TRACE3",e[e.TRACE4=4]="TRACE4",e[e.DEBUG=5]="DEBUG",e[e.DEBUG2=6]="DEBUG2",e[e.DEBUG3=7]="DEBUG3",e[e.DEBUG4=8]="DEBUG4",e[e.INFO=9]="INFO",e[e.INFO2=10]="INFO2",e[e.INFO3=11]="INFO3",e[e.INFO4=12]="INFO4",e[e.WARN=13]="WARN",e[e.WARN2=14]="WARN2",e[e.WARN3=15]="WARN3",e[e.WARN4=16]="WARN4",e[e.ERROR=17]="ERROR",e[e.ERROR2=18]="ERROR2",e[e.ERROR3=19]="ERROR3",e[e.ERROR4=20]="ERROR4",e[e.FATAL=21]="FATAL",e[e.FATAL2=22]="FATAL2",e[e.FATAL3=23]="FATAL3",e[e.FATAL4=24]="FATAL4"})(Hs||(Hs={}));var s9=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},IF=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Fh,Pr;(function(e){e[e.VERBOSE=0]="VERBOSE",e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.FATAL=5]="FATAL"})(Pr||(Pr={}));const u9={[Pr.VERBOSE]:"VERBOSE",[Pr.DEBUG]:"DEBUG",[Pr.INFO]:"INFO",[Pr.WARN]:"WARN",[Pr.ERROR]:"ERROR",[Pr.FATAL]:"FATAL"};class kf{constructor(t){Fh.set(this,void 0),s9(this,Fh,t,"f")}get severity(){return IF(this,Fh,"f")}shouldLog(t){return t>=IF(this,Fh,"f")}static severityText(t){return u9[t]}static severityFromText(t){switch(t){case"VERBOSE":return Pr.VERBOSE;case"DEBUG":return Pr.DEBUG;case"INFO":return Pr.INFO;case"WARN":return Pr.WARN;case"ERROR":return Pr.ERROR;case"FATAL":return Pr.FATAL;default:throw new Error(`Invalid severity text: ${t}`)}}}Fh=new WeakMap;var fC=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},ss=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Uu,wF,ym,kh,mm,Jc;class NF{constructor(t,r,n){Uu.add(this),ym.set(this,void 0),kh.set(this,void 0),mm.set(this,void 0),fC(this,ym,n,"f"),fC(this,kh,new kf(t),"f"),fC(this,mm,r,"f")}name(){return ss(this,ym,"f")}severity(){return ss(this,kh,"f").severity}verbose(t,r){ss(this,Uu,"m",Jc).call(this,Pr.VERBOSE,t,r)}debug(t,r){ss(this,Uu,"m",Jc).call(this,Pr.DEBUG,t,r)}info(t,r){ss(this,Uu,"m",Jc).call(this,Pr.INFO,t,r)}warn(t,r){ss(this,Uu,"m",Jc).call(this,Pr.WARN,t,r)}error(t,r){let n;r instanceof rr&&(n={error:r.failure()?r.error().message:r.data()}),r instanceof Error&&(n={error:r.message}),n===void 0&&(n=r),ss(this,Uu,"m",Jc).call(this,Pr.ERROR,t,n)}fatal(t,r){ss(this,Uu,"m",Jc).call(this,Pr.FATAL,t,r)}static otelSeverityNumber(t){switch(t){case Pr.VERBOSE:return Hs.TRACE;case Pr.DEBUG:return Hs.DEBUG;case Pr.INFO:return Hs.INFO;case Pr.WARN:return Hs.WARN;case Pr.ERROR:return Hs.ERROR;case Pr.FATAL:return Hs.FATAL;default:return Hs.UNSPECIFIED}}}wF=NF,ym=new WeakMap,kh=new WeakMap,mm=new WeakMap,Uu=new WeakSet,Jc=function(t,r,n){!ss(this,kh,"f").shouldLog(t)||ss(this,mm,"f").emit({timestamp:Date.now(),severityNumber:wF.otelSeverityNumber(t),severityText:kf.severityText(t),body:r,attributes:n??{}})};var MF=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},LF=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Em,Sm;class c9{constructor(t,r){Em.set(this,void 0),Sm.set(this,void 0),MF(this,Sm,t,"f"),MF(this,Em,r.loggerProvider(),"f")}getLogger(t){const r=t??"default",n=LF(this,Em,"f").getLogger(r);return new NF(LF(this,Sm,"f"),n,r)}}Em=new WeakMap,Sm=new WeakMap;class l9{format(t,r,n,i){let u=`[${new Date().toISOString()}] ${kf.severityText(t)}`;return n!==void 0&&(u+=` (${n})`),u+=`: ${r}`,i===void 0?[u]:[u,i]}}var dC=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},ui=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},us,cs,Qs;class f9{constructor(t,r){us.set(this,void 0),cs.set(this,void 0),Qs.set(this,void 0),dC(this,cs,new kf(t),"f"),dC(this,us,r,"f"),dC(this,Qs,new l9,"f")}name(){return ui(this,us,"f")}severity(){return ui(this,cs,"f").severity}verbose(t,r){ui(this,cs,"f").shouldLog(Pr.VERBOSE)&&console.debug(...ui(this,Qs,"f").format(Pr.VERBOSE,t,ui(this,us,"f"),r))}debug(t,r){ui(this,cs,"f").shouldLog(Pr.DEBUG)&&console.debug(...ui(this,Qs,"f").format(Pr.DEBUG,t,ui(this,us,"f"),r))}info(t,r){ui(this,cs,"f").shouldLog(Pr.INFO)&&console.info(...ui(this,Qs,"f").format(Pr.INFO,t,ui(this,us,"f"),r))}warn(t,r){ui(this,cs,"f").shouldLog(Pr.WARN)&&console.warn(...ui(this,Qs,"f").format(Pr.WARN,t,ui(this,us,"f"),r))}error(t,r){let n=r;r instanceof rr&&(n=r.failure()?r.error():r.data()),ui(this,cs,"f").shouldLog(Pr.ERROR)&&console.error(...ui(this,Qs,"f").format(Pr.ERROR,t,ui(this,us,"f"),n))}fatal(t,r){ui(this,cs,"f").shouldLog(Pr.FATAL)&&console.error(...ui(this,Qs,"f").format(Pr.FATAL,t,ui(this,us,"f"),r))}}us=new WeakMap,cs=new WeakMap,Qs=new WeakMap;var d9=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},p9=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Tm;class da{constructor(t=Pr.FATAL){Tm.set(this,void 0),d9(this,Tm,t,"f")}getLogger(t){return new f9(p9(this,Tm,"f"),t)}}Tm=new WeakMap;var h9=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},pC,DF;class _9{constructor(){pC.add(this)}createLogProvider(t,r){switch(h9(this,pC,"m",DF).call(this,t)){case"otel":if(r===void 0)throw new Error('telemetry is required for "otel" logging');return new c9(t.logLevel,r);case"console":return new da(t.logLevel)}}}pC=new WeakSet,DF=function(t){return t.telemetry.enabled?"otel":"console"};var Tn=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Ws=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},to,Gf,$u,jf,Fu,Xc,xF,UF,$F,FF,kF,GF,jF,BF,VF,qF;class bm{constructor(t){to.add(this),Gf.set(this,void 0),$u.set(this,void 0),jf.set(this,void 0),Fu.set(this,void 0),Xc.set(this,void 0),this.bwellConfig=Tn(this,to,"m",kF).call(this,t),Ws(this,Gf,kf.severityFromText(this.bwellConfig.logLevel),"f"),Ws(this,Xc,Tn(this,to,"m",qF).call(this),"f"),Ws(this,jf,Tn(this,to,"m",jF).call(this),"f"),Ws(this,$u,Tn(this,to,"m",BF).call(this),"f"),Ws(this,Fu,Tn(this,to,"m",VF).call(this),"f")}static initialize(t){try{const r=new bm(t);return rr.success(r)}catch(r){if(ji.isBwellError(r))return rr.failure(r);throw r}}get logLevel(){return Tn(this,Gf,"f")}get graphQL(){return Tn(this,jf,"f")}get telemetry(){return Tn(this,$u,"f")}get http(){return Tn(this,Fu,"f")}get context(){return Tn(this,Xc,"f")}setContextUser(t){Tn(this,Xc,"f").user=t}mergeRemoteConfig(t){Ws(this,Gf,Tn(this,to,"m",xF).call(this,t),"f"),Ws(this,jf,Object.freeze(Tn(this,to,"m",UF).call(this,t)),"f"),Ws(this,$u,Object.freeze(Tn(this,to,"m",$F).call(this,t)),"f"),Ws(this,Fu,Object.freeze(Tn(this,to,"m",FF).call(this,t)),"f")}}Gf=new WeakMap,$u=new WeakMap,jf=new WeakMap,Fu=new WeakMap,Xc=new WeakMap,to=new WeakSet,xF=function(t){var r;const n=(r=t?.logLevel)!==null&&r!==void 0?r:null;return n===null?Tn(this,Gf,"f"):kf.severityFromText(n)},UF=function(t){var r;const n=(r=t?.graphQLClient)!==null&&r!==void 0?r:null;return n===null?Tn(this,jf,"f"):{unauthApiUrl:n.url,apiUrl:n.authUrl}},$F=function(t){var r,n;const i=(r=t?.telemetry)!==null&&r!==void 0?r:null;if(i===null)return Tn(this,$u,"f");const o=(n=i.enabled)!==null&&n!==void 0?n:Tn(this,$u,"f").enabled;if(i.collectorUrl.endsWith("/"))throw new Error('Telemetry config "collectorUrl" cannot end with a trailing slash.');let u;try{u=new URL(i.collectorUrl)}catch{throw new Error('Telemetry config "collectorUrl" malformed/is not a proper URL.')}if(u.pathname!=="/")throw new Error('Telemetry config "collectorUrl" cannot contain a path.');return Object.assign(Object.assign({},Tn(this,$u,"f")),{enabled:o,collectorUrl:i.collectorUrl})},FF=function(t){var r,n,i;const o=(r=t?.httpClient)!==null&&r!==void 0?r:null;return o===null?Tn(this,Fu,"f"):{timeout:(n=o.requestTimeout)!==null&&n!==void 0?n:Tn(this,Fu,"f").timeout,retryPolicy:(i=o.retry)!==null&&i!==void 0?i:Tn(this,Fu,"f").retryPolicy}},kF=function(t){return Object.assign(Object.assign({},o9),t)},GF=function(){try{return i7(this.bwellConfig.clientKey)}catch{throw new WX("It appears there is a problem with your Client Key. Contact b.well support for further assistance.")}},jF=function(){return{apiUrl:`https://api-gateway.${Tn(this,Xc,"f").env}.icanbwell.com/federated-graph-authed/graphql`,unauthApiUrl:`https://api-gateway.${Tn(this,Xc,"f").env}.icanbwell.com/federated-graph/graphql`}},BF=function(){return{collectorUrl:"https://collector.services.icanbwell.com",enabled:this.bwellConfig.telemetryEnabled,timeout:this.bwellConfig.timeout}},VF=function(){return{timeout:this.bwellConfig.timeout,retryPolicy:{attempts:this.bwellConfig.retryPolicy.attempts,interval:this.bwellConfig.retryPolicy.interval}}},qF=function(){return{clientKey:this.bwellConfig.clientKey,env:Tn(this,to,"m",GF).call(this),user:null}};var v9=function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(u){u(o)})}return new(r||(r=Promise))(function(o,u){function l(v){try{d(n.next(v))}catch(T){u(T)}}function g(v){try{d(n.throw(v))}catch(T){u(T)}}function d(v){v.done?o(v.value):i(v.value).then(l,g)}d((n=n.apply(e,t||[])).next())})},HF=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},Om=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Bf,Am;class g9{constructor(t,r=new da){Bf.set(this,void 0),Am.set(this,void 0),HF(this,Am,t,"f"),HF(this,Bf,r.getLogger("ConfigManager"),"f")}initialize(t){return v9(this,void 0,void 0,function*(){const r=bm.initialize(t);if(r.failure())return r;const n=r.data();Om(this,Bf,"f").verbose("Initializing SDK Configuration");const i=yield Om(this,Am,"f").initialize(n.context.clientKey);if(i.failure())return i.intoFailure();const o=i.data();try{n.mergeRemoteConfig(o)}catch(u){Om(this,Bf,"f").error("Error merging SDK config with remote config.",u)}return Om(this,Bf,"f").info("Remote SDK Configuration merged with user config"),rr.success(n)})}}Bf=new WeakMap,Am=new WeakMap;const hC=JSON,y9=e=>e.toUpperCase(),m9=e=>{const t={};return e.forEach((r,n)=>{t[n]=r}),t},E9=(e,t,r)=>e.document?e:{document:e,variables:t,requestHeaders:r,signal:void 0},S9=(e,t,r)=>e.query?e:{query:e,variables:t,requestHeaders:r,signal:void 0},T9=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0},iEe=(e,t,...r)=>{const[n,i]=r;return e.document?e:{url:e,document:t,variables:n,requestHeaders:i,signal:void 0}},aEe=(e,t,...r)=>{const[n,i]=r;return e.query?e:{url:e,query:t,variables:n,requestHeaders:i,signal:void 0}};var b9=m(5157),O9=m(2704);const QF=e=>{let t;const r=e.definitions.filter(n=>n.kind==="OperationDefinition");return r.length===1&&(t=r[0]?.name?.value),t},Cm=e=>{if(typeof e=="string"){let r;try{const n=(0,b9.qg)(e);r=QF(n)}catch{}return{query:e,operationName:r}}const t=QF(e);return{query:(0,O9.y)(e),operationName:t}};class ku extends Error{constructor(t,r){const n=`${ku.extractMessage(t)}: ${JSON.stringify({response:t,request:r})}`;super(n),Object.setPrototypeOf(this,ku.prototype),this.response=t,this.request=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,ku)}static extractMessage(t){return t.errors?.[0]?.message??`GraphQL Error (Code: ${t.status})`}}var Vf=m(288),A9=m.t(Vf,2);const C9="connection_init",P9="connection_ack",WF="ping",YF="pong",R9="subscribe",I9="next",w9="error",KF="complete";class Gu{get type(){return this._type}get id(){return this._id}get payload(){return this._payload}constructor(t,r,n){this._type=t,this._payload=r,this._id=n}get text(){const t={type:this.type};return this.id!=null&&this.id!=null&&(t.id=this.id),this.payload!=null&&this.payload!=null&&(t.payload=this.payload),JSON.stringify(t)}static parse(t,r){const{type:n,payload:i,id:o}=JSON.parse(t);return new Gu(n,r(i),o)}}class N9{constructor(t,{onInit:r,onAcknowledged:n,onPing:i,onPong:o}){this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=t,t.addEventListener("open",async u=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={},t.send(L9(r?await r():null).text)}),t.addEventListener("close",u=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={}}),t.addEventListener("error",u=>{console.error(u)}),t.addEventListener("message",u=>{try{const l=M9(u.data);switch(l.type){case P9:{this.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(this.socketState.acknowledged=!0,n&&n(l.payload));return}case WF:{i?i(l.payload).then(T=>t.send(zF(T).text)):t.send(zF(null).text);return}case YF:{o&&o(l.payload);return}}if(!this.socketState.acknowledged||l.id===void 0||l.id===null||!this.socketState.subscriptions[l.id])return;const{query:g,variables:d,subscriber:v}=this.socketState.subscriptions[l.id];switch(l.type){case I9:{!l.payload.errors&&l.payload.data&&v.next&&v.next(l.payload.data),l.payload.errors&&v.error&&v.error(new ku({...l.payload,status:200},{query:g,variables:d}));return}case w9:{v.error&&v.error(new ku({errors:l.payload,status:200},{query:g,variables:d}));return}case KF:{v.complete&&v.complete(),delete this.socketState.subscriptions[l.id];return}}}catch(l){console.error(l),t.close(1006)}t.close(4400,"Unknown graphql-ws message.")})}makeSubscribe(t,r,n,i){const o=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[o]={query:t,variables:i,subscriber:n},this.socket.send(x9(o,{query:t,operationName:r,variables:i}).text),()=>{this.socket.send(U9(o).text),delete this.socketState.subscriptions[o]}}rawRequest(t,r){return new Promise((n,i)=>{let o;this.rawSubscribe(t,{next:(u,l)=>o={data:u,extensions:l},error:i,complete:()=>n(o)},r)})}request(t,r){return new Promise((n,i)=>{let o;this.subscribe(t,{next:u=>o=u,error:i,complete:()=>n(o)},r)})}subscribe(t,r,n){const{query:i,operationName:o}=Cm(t);return this.makeSubscribe(i,o,r,n)}rawSubscribe(t,r,n){return this.makeSubscribe(t,void 0,r,n)}ping(t){this.socket.send(D9(t).text)}close(){this.socket.close(1e3)}}N9.PROTOCOL="graphql-transport-ws";function M9(e,t=r=>r){return Gu.parse(e,t)}function L9(e){return new Gu(C9,e)}function D9(e){return new Gu(WF,e,void 0)}function zF(e){return new Gu(YF,e,void 0)}function x9(e,t){return new Gu(R9,t,e)}function U9(e){return new Gu(KF,void 0,e)}const qf=e=>{let t={};return e&&(typeof Headers<"u"&&e instanceof Headers||A9&&Vf.Headers&&e instanceof Vf.Headers?t=m9(e):Array.isArray(e)?e.forEach(([r,n])=>{r&&n!==void 0&&(t[r]=n)}):t=e),t},JF=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),$9=e=>{if(!Array.isArray(e.query)){const n=e,i=[`query=${encodeURIComponent(JF(n.query))}`];return e.variables&&i.push(`variables=${encodeURIComponent(n.jsonSerializer.stringify(n.variables))}`),n.operationName&&i.push(`operationName=${encodeURIComponent(n.operationName)}`),i.join("&")}if(typeof e.variables<"u"&&!Array.isArray(e.variables))throw new Error("Cannot create query with given variable type, array expected");const t=e,r=e.query.reduce((n,i,o)=>(n.push({query:JF(i),variables:t.variables?t.jsonSerializer.stringify(t.variables[o]):void 0}),n),[]);return`query=${encodeURIComponent(t.jsonSerializer.stringify(r))}`},F9=e=>async t=>{const{url:r,query:n,variables:i,operationName:o,fetch:u,fetchOptions:l,middleware:g}=t,d={...t.headers};let v="",T;e==="POST"?(T=G9(n,i,o,l.jsonSerializer),typeof T=="string"&&(d["Content-Type"]="application/json")):v=$9({query:n,variables:i,operationName:o,jsonSerializer:l.jsonSerializer??hC});const V={method:e,headers:d,body:T,...l};let fe=r,he=V;if(g){const ye=await Promise.resolve(g({...V,url:r,operationName:o,variables:i})),{url:xe,...Ie}=ye;fe=xe,he=Ie}return v&&(fe=`${fe}?${v}`),await u(fe,he)};class Pm{constructor(t,r={}){this.url=t,this.requestConfig=r,this.rawRequest=async(...n)=>{const[i,o,u]=n,l=S9(i,o,u),{headers:g,fetch:d=Vf,method:v="POST",requestMiddleware:T,responseMiddleware:V,...fe}=this.requestConfig,{url:he}=this;l.signal!==void 0&&(fe.signal=l.signal);const{operationName:ye}=Cm(l.query);return _C({url:he,query:l.query,variables:l.variables,headers:{...qf(vC(g)),...qf(l.requestHeaders)},operationName:ye,fetch:d,method:v,fetchOptions:fe,middleware:T}).then(xe=>(V&&V(xe),xe)).catch(xe=>{throw V&&V(xe),xe})}}async request(t,...r){const[n,i]=r,o=E9(t,n,i),{headers:u,fetch:l=Vf,method:g="POST",requestMiddleware:d,responseMiddleware:v,...T}=this.requestConfig,{url:V}=this;o.signal!==void 0&&(T.signal=o.signal);const{query:fe,operationName:he}=Cm(o.document);return _C({url:V,query:fe,variables:o.variables,headers:{...qf(vC(u)),...qf(o.requestHeaders)},operationName:he,fetch:l,method:g,fetchOptions:T,middleware:d}).then(ye=>(v&&v(ye),ye.data)).catch(ye=>{throw v&&v(ye),ye})}batchRequests(t,r){const n=T9(t,r),{headers:i,...o}=this.requestConfig;n.signal!==void 0&&(o.signal=n.signal);const u=n.documents.map(({document:g})=>Cm(g).query),l=n.documents.map(({variables:g})=>g);return _C({url:this.url,query:u,variables:l,headers:{...qf(vC(i)),...qf(n.requestHeaders)},operationName:void 0,fetch:this.requestConfig.fetch??Vf,method:this.requestConfig.method||"POST",fetchOptions:o,middleware:this.requestConfig.requestMiddleware}).then(g=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(g),g.data)).catch(g=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(g),g})}setHeaders(t){return this.requestConfig.headers=t,this}setHeader(t,r){const{headers:n}=this.requestConfig;return n?n[t]=r:this.requestConfig.headers={[t]:r},this}setEndpoint(t){return this.url=t,this}}const _C=async e=>{const{query:t,variables:r,fetchOptions:n}=e,i=F9(y9(e.method??"post")),o=Array.isArray(e.query),u=await i(e),l=await j9(u,n.jsonSerializer??hC),g=Array.isArray(l)?!l.some(({data:v})=>!v):Boolean(l.data),d=Array.isArray(l)||!l.errors||Array.isArray(l.errors)&&!l.errors.length||n.errorPolicy==="all"||n.errorPolicy==="ignore";if(u.ok&&d&&g){const{errors:v,...T}=(Array.isArray(l),l),V=n.errorPolicy==="ignore"?T:l;return{...o?{data:V}:V,headers:u.headers,status:u.status}}else{const v=typeof l=="string"?{error:l}:l;throw new ku({...v,status:u.status,headers:u.headers},{query:t,variables:r})}},oEe=async(...e)=>{const[t,r,...n]=e,i=parseRawRequestExtendedArgs(t,r,...n);return new Pm(i.url).rawRequest({...i})};async function sEe(e,t,...r){const n=parseRequestExtendedArgs(e,t,...r);return new Pm(n.url).request({...n})}const uEe=async(...e)=>{const t=k9(e);return new Pm(t.url).batchRequests(t)},k9=e=>e.length===1?e[0]:{url:e[0],documents:e[1],requestHeaders:e[2],signal:void 0},G9=(e,t,r,n)=>{const i=n??hC;if(!Array.isArray(e))return i.stringify({query:e,variables:t,operationName:r});if(typeof t<"u"&&!Array.isArray(t))throw new Error("Cannot create request body with given variable type, array expected");const o=e.reduce((u,l,g)=>(u.push({query:l,variables:t?t[g]:void 0}),u),[]);return i.stringify(o)},j9=async(e,t)=>{let r;return e.headers.forEach((n,i)=>{i.toLowerCase()==="content-type"&&(r=n)}),r&&(r.toLowerCase().startsWith("application/json")||r.toLowerCase().startsWith("application/graphql+json")||r.toLowerCase().startsWith("application/graphql-response+json"))?t.parse(await e.text()):e.text()},vC=e=>typeof e=="function"?e():e,cEe=(e,...t)=>e.reduce((r,n,i)=>`${r}${n}${i in t?String(t[i]):""}`,""),lEe=null,$a=`
|
|
5172
5172
|
fragment CodingFields on Coding {
|
|
5173
5173
|
system
|
|
5174
5174
|
code
|