UNPKG

@salutejs/jazz-sdk-electron

Version:

Jazz SDK Electron

1 lines 113 kB
import{token as e,isToken as t,declareModule as n,resolveValue as r,bindModules as i,bindMultiValue as o,injectable as a,optional as s,injectableClass as c,createContainer as u}from"ditox";import{ipcMain as d}from"electron";import{createScope as l,atom as f,compute as p,objectEquals as g}from"nrgy";import{Subject as v,zip as h,of as m,tap as y,firstValueFrom as b,filter as S,defer as w,retryWhen as _,concatMap as k,throwError as x,merge as I,timer as C,EMPTY as O,catchError as j,take as E,switchMap as R,map as T,distinctUntilChanged as P,bufferToggle as M,mergeMap as $,windowToggle as D,timeout as N,takeUntil as A,interval as F,noop as V,debounceTime as U,auditTime as L,fromEvent as z}from"rxjs";import{createScope as B,createAction as q,declareStore as K,mapQuery as W,createStore as G,registerStoreExtension as H,mergeQueries as J}from"rx-effects";import{produce as Q}from"immer";import"rxjs/fetch";import{declareController as Z}from"nrgy/mvc";import{toQuery as Y}from"nrgy/rx-effects";import{fromObservable as X,observe as ee}from"nrgy/rxjs";import{webSocket as te}from"rxjs/webSocket";import{promises as ne}from"fs";function re(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function ie(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}const oe=[],ae={Transport:e({key:"JAZZ_SDK_ELECTRON_MAIN_TOKENS_TRANSPORT_TOKEN"}),TransportEndpoints:e({key:"JAZZ_SDK_ELECTRON_MAIN_TOKENS_TRANSPORT_ENDPOINTS_TOKEN"})},se=e({key:"JAZZ_SDK_MAIN_CONTEXT_TOKEN"});function ce(e){const{factory:i,exports:o,imports:a={},token:s,name:c}=e,u=Object.entries(a).reduce(((e,[n,r])=>(t(r)?e.deps[n]=r:(e.imports.push(r),e.deps[n]=r.token),e)),{deps:{},imports:[]});return()=>({module:n({token:s,factory:e=>{const t=l(),n=i({scope:t,container:e,deps:ue(u.deps)?void 0:r(e,u.deps),name:c}),{destroy:o}=n,a=re(n,["destroy"]);return Object.assign(Object.assign({},a),{destroy:()=>{null==o||o(),t.destroy()}})},exports:o,imports:u.imports}),key:c})}function ue(e){return!e||0===Object.keys(e).length}var de,le,fe,pe,ge,ve,he,me,ye,be,Se,we,_e,ke,xe,Ie,Ce,Oe,je,Ee,Re,Te,Pe,Me,$e,De,Ne,Ae,Fe,Ve,Ue,Le,ze,Be,qe,Ke,We,Ge,He,Je,Qe,Ze,Ye,Xe,et,tt,nt,rt,it,ot,at,st,ct,ut,dt,lt,ft,pt,gt,vt,ht,mt,yt,bt,St,wt,_t,kt,xt,It,Ct,Ot,jt,Et,Rt,Tt,Pt,Mt,$t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Dt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Nt(){if(le)return de;le=1;var e="object"==typeof $t&&$t&&$t.Object===Object&&$t;return de=e}function At(){if(pe)return fe;pe=1;var e=Nt(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return fe=n}function Ft(){if(ve)return ge;ve=1;var e=At().Symbol;return ge=e}function Vt(){if(we)return Se;we=1;var e=Ft(),t=function(){if(me)return he;me=1;var e=Ft(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;return he=function(e){var t=n.call(e,i),o=e[i];try{e[i]=void 0;var a=!0}catch(e){}var s=r.call(e);return a&&(t?e[i]=o:delete e[i]),s}}(),n=function(){if(be)return ye;be=1;var e=Object.prototype.toString;return ye=function(t){return e.call(t)}}(),r=e?e.toStringTag:void 0;return Se=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?t(e):n(e)}}function Ut(){if(ke)return _e;return ke=1,_e=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}function Lt(){if(Ie)return xe;Ie=1;var e=Vt(),t=Ut();return xe=function(n){if(!t(n))return!1;var r=e(n);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}}function zt(){if(Ee)return je;Ee=1;var e,t=function(){if(Oe)return Ce;Oe=1;var e=At()["__core-js_shared__"];return Ce=e}(),n=(e=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"";return je=function(e){return!!n&&n in e}}function Bt(){if(Te)return Re;Te=1;var e=Function.prototype.toString;return Re=function(t){if(null!=t){try{return e.call(t)}catch(e){}try{return t+""}catch(e){}}return""}}function qt(){if(Ae)return Ne;Ae=1;var e=function(){if(Me)return Pe;Me=1;var e=Lt(),t=zt(),n=Ut(),r=Bt(),i=/^\[object .+?Constructor\]$/,o=Function.prototype,a=Object.prototype,s=o.toString,c=a.hasOwnProperty,u=RegExp("^"+s.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return Pe=function(o){return!(!n(o)||t(o))&&(e(o)?u:i).test(r(o))}}(),t=De?$e:(De=1,$e=function(e,t){return null==e?void 0:e[t]});return Ne=function(n,r){var i=t(n,r);return e(i)?i:void 0}}function Kt(){if(Ve)return Fe;Ve=1;var e=qt()(Object,"create");return Fe=e}function Wt(){if(Ze)return Qe;Ze=1;var e=function(){if(Le)return Ue;Le=1;var e=Kt();return Ue=function(){this.__data__=e?e(null):{},this.size=0}}(),t=Be?ze:(Be=1,ze=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}),n=function(){if(Ke)return qe;Ke=1;var e=Kt(),t=Object.prototype.hasOwnProperty;return qe=function(n){var r=this.__data__;if(e){var i=r[n];return"__lodash_hash_undefined__"===i?void 0:i}return t.call(r,n)?r[n]:void 0}}(),r=function(){if(Ge)return We;Ge=1;var e=Kt(),t=Object.prototype.hasOwnProperty;return We=function(n){var r=this.__data__;return e?void 0!==r[n]:t.call(r,n)}}(),i=function(){if(Je)return He;Je=1;var e=Kt();return He=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=e&&void 0===n?"__lodash_hash_undefined__":n,this}}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Qe=o}function Gt(){if(tt)return et;return tt=1,et=function(e,t){return e===t||e!=e&&t!=t}}function Ht(){if(rt)return nt;rt=1;var e=Gt();return nt=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return-1}}function Jt(){if(pt)return ft;pt=1;var e=Xe?Ye:(Xe=1,Ye=function(){this.__data__=[],this.size=0}),t=function(){if(ot)return it;ot=1;var e=Ht(),t=Array.prototype.splice;return it=function(n){var r=this.__data__,i=e(r,n);return!(i<0||(i==r.length-1?r.pop():t.call(r,i,1),--this.size,0))}}(),n=function(){if(st)return at;st=1;var e=Ht();return at=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]}}(),r=function(){if(ut)return ct;ut=1;var e=Ht();return ct=function(t){return e(this.__data__,t)>-1}}(),i=function(){if(lt)return dt;lt=1;var e=Ht();return dt=function(t,n){var r=this.__data__,i=e(r,t);return i<0?(++this.size,r.push([t,n])):r[i][1]=n,this}}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,ft=o}function Qt(){if(vt)return gt;vt=1;var e=qt()(At(),"Map");return gt=e}function Zt(){if(wt)return St;wt=1;var e=bt?yt:(bt=1,yt=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e});return St=function(t,n){var r=t.__data__;return e(n)?r["string"==typeof n?"string":"hash"]:r.map},St}function Yt(){if(Tt)return Rt;Tt=1;var e=function(){if(mt)return ht;mt=1;var e=Wt(),t=Jt(),n=Qt();return ht=function(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}}(),t=function(){if(kt)return _t;kt=1;var e=Zt();return _t=function(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}}(),n=function(){if(It)return xt;It=1;var e=Zt();return xt=function(t){return e(this,t).get(t)}}(),r=function(){if(Ot)return Ct;Ot=1;var e=Zt();return Ct=function(t){return e(this,t).has(t)}}(),i=function(){if(Et)return jt;Et=1;var e=Zt();return jt=function(t,n){var r=e(this,t),i=r.size;return r.set(t,n),this.size+=r.size==i?0:1,this}}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Rt=o}function Xt(){if(Mt)return Pt;Mt=1;var e=Yt();function t(n,r){if("function"!=typeof n||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var i=function(){var e=arguments,t=r?r.apply(this,e):e[0],o=i.cache;if(o.has(t))return o.get(t);var a=n.apply(this,e);return i.cache=o.set(t,a)||o,a};return i.cache=new(t.Cache||e),i}return t.Cache=e,Pt=t}var en,tn,nn,rn,on,an,sn,cn,un,dn,ln,fn,pn,gn,vn,hn,mn,yn,bn,Sn,wn,_n,kn,xn,In,Cn,On,jn,En,Rn,Tn,Pn,Mn,$n,Dn,Nn,An,Fn,Vn,Un,Ln,zn,Bn,qn,Kn,Wn,Gn,Hn,Jn,Qn,Zn,Yn,Xn=Dt(Xt());function er(){if(fn)return ln;fn=1;var e=Jt(),t=function(){if(tn)return en;tn=1;var e=Jt();return en=function(){this.__data__=new e,this.size=0}}(),n=rn?nn:(rn=1,nn=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}),r=an?on:(an=1,on=function(e){return this.__data__.get(e)}),i=cn?sn:(cn=1,sn=function(e){return this.__data__.has(e)}),o=function(){if(dn)return un;dn=1;var e=Jt(),t=Qt(),n=Yt();return un=function(r,i){var o=this.__data__;if(o instanceof e){var a=o.__data__;if(!t||a.length<199)return a.push([r,i]),this.size=++o.size,this;o=this.__data__=new n(a)}return o.set(r,i),this.size=o.size,this}}();function a(t){var n=this.__data__=new e(t);this.size=n.size}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=i,a.prototype.set=o,ln=a}function tr(){if(yn)return mn;yn=1;var e=Yt(),t=gn?pn:(gn=1,pn=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}),n=hn?vn:(hn=1,vn=function(e){return this.__data__.has(e)});function r(t){var n=-1,r=null==t?0:t.length;for(this.__data__=new e;++n<r;)this.add(t[n])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,mn=r}function nr(){if(_n)return wn;return _n=1,wn=function(e,t){return e.has(t)}}function rr(){if(xn)return kn;xn=1;var e=tr(),t=Sn?bn:(Sn=1,bn=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}),n=nr();return kn=function(r,i,o,a,s,c){var u=1&o,d=r.length,l=i.length;if(d!=l&&!(u&&l>d))return!1;var f=c.get(r),p=c.get(i);if(f&&p)return f==i&&p==r;var g=-1,v=!0,h=2&o?new e:void 0;for(c.set(r,i),c.set(i,r);++g<d;){var m=r[g],y=i[g];if(a)var b=u?a(y,m,g,i,r,c):a(m,y,g,r,i,c);if(void 0!==b){if(b)continue;v=!1;break}if(h){if(!t(i,(function(e,t){if(!n(h,t)&&(m===e||s(m,e,o,a,c)))return h.push(t)}))){v=!1;break}}else if(m!==y&&!s(m,y,o,a,c)){v=!1;break}}return c.delete(r),c.delete(i),v}}function ir(){if(jn)return On;return jn=1,On=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},On}function or(){if(Pn)return Tn;Pn=1;var e=Ft(),t=function(){if(Cn)return In;Cn=1;var e=At().Uint8Array;return In=e}(),n=Gt(),r=rr(),i=ir(),o=Rn?En:(Rn=1,En=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}),a=e?e.prototype:void 0,s=a?a.valueOf:void 0;return Tn=function(e,a,c,u,d,l,f){switch(c){case"[object DataView]":if(e.byteLength!=a.byteLength||e.byteOffset!=a.byteOffset)return!1;e=e.buffer,a=a.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=a.byteLength||!l(new t(e),new t(a)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+e,+a);case"[object Error]":return e.name==a.name&&e.message==a.message;case"[object RegExp]":case"[object String]":return e==a+"";case"[object Map]":var p=i;case"[object Set]":var g=1&u;if(p||(p=o),e.size!=a.size&&!g)return!1;var v=f.get(e);if(v)return v==a;u|=2,f.set(e,a);var h=r(p(e),p(a),u,d,l,f);return f.delete(e),h;case"[object Symbol]":if(s)return s.call(e)==s.call(a)}return!1}}function ar(){if($n)return Mn;return $n=1,Mn=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}}function sr(){if(Nn)return Dn;Nn=1;var e=Array.isArray;return Dn=e}function cr(){if(qn)return Bn;qn=1;var e=Un?Vn:(Un=1,Vn=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}),t=zn?Ln:(zn=1,Ln=function(){return[]}),n=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols;return Bn=r?function(t){return null==t?[]:(t=Object(t),e(r(t),(function(e){return n.call(t,e)})))}:t}function ur(){if(Hn)return Gn;return Hn=1,Gn=function(e){return null!=e&&"object"==typeof e}}function dr(){if(Yn)return Zn;Yn=1;var e=function(){if(Qn)return Jn;Qn=1;var e=Vt(),t=ur();return Jn=function(n){return t(n)&&"[object Arguments]"==e(n)}}(),t=ur(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,o=e(function(){return arguments}())?e:function(e){return t(e)&&r.call(e,"callee")&&!i.call(e,"callee")};return Zn=o}var lr,fr,pr,gr,vr,hr,mr,yr,br,Sr,wr,_r={exports:{}};function kr(){return pr||(pr=1,function(e,t){var n=At(),r=fr?lr:(fr=1,lr=function(){return!1}),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||r;e.exports=s}(_r,_r.exports)),_r.exports}function xr(){if(vr)return gr;vr=1;var e=/^(?:0|[1-9]\d*)$/;return gr=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}}function Ir(){if(mr)return hr;mr=1;return hr=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}function Cr(){if(wr)return Sr;return wr=1,Sr=function(e){return function(t){return e(t)}}}var Or,jr,Er,Rr,Tr,Pr,Mr,$r,Dr,Nr,Ar,Fr,Vr,Ur,Lr,zr,Br,qr,Kr,Wr,Gr,Hr,Jr,Qr,Zr,Yr,Xr,ei,ti,ni,ri,ii,oi,ai,si,ci,ui,di={exports:{}};function li(){return Or||(Or=1,e=di,t=di.exports,n=Nt(),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r&&n.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}(),e.exports=a),di.exports;var e,t,n,r,i,o,a}function fi(){if(Er)return jr;Er=1;var e=function(){if(br)return yr;br=1;var e=Vt(),t=Ir(),n=ur(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,yr=function(i){return n(i)&&t(i.length)&&!!r[e(i)]}}(),t=Cr(),n=li(),r=n&&n.isTypedArray,i=r?t(r):e;return jr=i}function pi(){if(Tr)return Rr;Tr=1;var e=(Wn||(Wn=1,Kn=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}),Kn),t=dr(),n=sr(),r=kr(),i=xr(),o=fi(),a=Object.prototype.hasOwnProperty;return Rr=function(s,c){var u=n(s),d=!u&&t(s),l=!u&&!d&&r(s),f=!u&&!d&&!l&&o(s),p=u||d||l||f,g=p?e(s.length,String):[],v=g.length;for(var h in s)!c&&!a.call(s,h)||p&&("length"==h||l&&("offset"==h||"parent"==h)||f&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||i(h,v))||g.push(h);return g}}function gi(){if(Mr)return Pr;Mr=1;var e=Object.prototype;return Pr=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}function vi(){if(Ar)return Nr;Ar=1;var e=(Dr?$r:(Dr=1,$r=function(e,t){return function(n){return e(t(n))}}))(Object.keys,Object);return Nr=e}function hi(){if(Vr)return Fr;Vr=1;var e=gi(),t=vi(),n=Object.prototype.hasOwnProperty;return Fr=function(r){if(!e(r))return t(r);var i=[];for(var o in Object(r))n.call(r,o)&&"constructor"!=o&&i.push(o);return i}}function mi(){if(Lr)return Ur;Lr=1;var e=Lt(),t=Ir();return Ur=function(n){return null!=n&&t(n.length)&&!e(n)}}function yi(){if(Br)return zr;Br=1;var e=pi(),t=hi(),n=mi();return zr=function(r){return n(r)?e(r):t(r)}}function bi(){if(Kr)return qr;Kr=1;var e=function(){if(Fn)return An;Fn=1;var e=ar(),t=sr();return An=function(n,r,i){var o=r(n);return t(n)?o:e(o,i(n))}}(),t=cr(),n=yi();return qr=function(r){return e(r,n,t)}}function Si(){if(ri)return ni;ri=1;var e=function(){if(Jr)return Hr;Jr=1;var e=qt()(At(),"DataView");return Hr=e}(),t=Qt(),n=function(){if(Zr)return Qr;Zr=1;var e=qt()(At(),"Promise");return Qr=e}(),r=function(){if(Xr)return Yr;Xr=1;var e=qt()(At(),"Set");return Yr=e}(),i=function(){if(ti)return ei;ti=1;var e=qt()(At(),"WeakMap");return ei=e}(),o=Vt(),a=Bt(),s="[object Map]",c="[object Promise]",u="[object Set]",d="[object WeakMap]",l="[object DataView]",f=a(e),p=a(t),g=a(n),v=a(r),h=a(i),m=o;return(e&&m(new e(new ArrayBuffer(1)))!=l||t&&m(new t)!=s||n&&m(n.resolve())!=c||r&&m(new r)!=u||i&&m(new i)!=d)&&(m=function(e){var t=o(e),n="[object Object]"==t?e.constructor:void 0,r=n?a(n):"";if(r)switch(r){case f:return l;case p:return s;case g:return c;case v:return u;case h:return d}return t}),ni=m}function wi(){if(oi)return ii;oi=1;var e=er(),t=rr(),n=or(),r=function(){if(Gr)return Wr;Gr=1;var e=bi(),t=Object.prototype.hasOwnProperty;return Wr=function(n,r,i,o,a,s){var c=1&i,u=e(n),d=u.length;if(d!=e(r).length&&!c)return!1;for(var l=d;l--;){var f=u[l];if(!(c?f in r:t.call(r,f)))return!1}var p=s.get(n),g=s.get(r);if(p&&g)return p==r&&g==n;var v=!0;s.set(n,r),s.set(r,n);for(var h=c;++l<d;){var m=n[f=u[l]],y=r[f];if(o)var b=c?o(y,m,f,r,n,s):o(m,y,f,n,r,s);if(!(void 0===b?m===y||a(m,y,i,o,s):b)){v=!1;break}h||(h="constructor"==f)}if(v&&!h){var S=n.constructor,w=r.constructor;S==w||!("constructor"in n)||!("constructor"in r)||"function"==typeof S&&S instanceof S&&"function"==typeof w&&w instanceof w||(v=!1)}return s.delete(n),s.delete(r),v}}(),i=Si(),o=sr(),a=kr(),s=fi(),c="[object Arguments]",u="[object Array]",d="[object Object]",l=Object.prototype.hasOwnProperty;return ii=function(f,p,g,v,h,m){var y=o(f),b=o(p),S=y?u:i(f),w=b?u:i(p),_=(S=S==c?d:S)==d,k=(w=w==c?d:w)==d,x=S==w;if(x&&a(f)){if(!a(p))return!1;y=!0,_=!1}if(x&&!_)return m||(m=new e),y||s(f)?t(f,p,g,v,h,m):n(f,p,S,g,v,h,m);if(!(1&g)){var I=_&&l.call(f,"__wrapped__"),C=k&&l.call(p,"__wrapped__");if(I||C){var O=I?f.value():f,j=C?p.value():p;return m||(m=new e),h(O,j,g,v,m)}}return!!x&&(m||(m=new e),r(f,p,g,v,h,m))}}function _i(){if(si)return ai;si=1;var e=wi(),t=ur();return ai=function n(r,i,o,a,s){return r===i||(null==r||null==i||!t(r)&&!t(i)?r!=r&&i!=i:e(r,i,o,a,n,s))},ai}var ki,xi,Ii,Ci,Oi,ji,Ei,Ri,Ti,Pi,Mi,$i,Di,Ni,Ai,Fi,Vi,Ui,Li,zi,Bi,qi,Ki,Wi,Gi,Hi,Ji,Qi,Zi,Yi,Xi,eo,to,no,ro,io,oo,ao,so,co,uo,lo,fo,po,go,vo,ho,mo,yo,bo,So,wo,_o,ko,xo,Io,Co,Oo,jo,Eo,Ro,To,Po,Mo,$o,Do,No,Ao,Fo,Vo,Uo,Lo,zo,Bo,qo,Ko,Wo,Go,Ho,Jo,Qo,Zo,Yo,Xo,ea,ta,na,ra,ia,oa,aa,sa,ca,ua,da=Dt(function(){if(ui)return ci;ui=1;var e=_i();return ci=function(t,n){return e(t,n)}}());function la(){if(Ci)return Ii;Ci=1;var e=ar(),t=function(){if(xi)return ki;xi=1;var e=Ft(),t=dr(),n=sr(),r=e?e.isConcatSpreadable:void 0;return ki=function(e){return n(e)||t(e)||!!(r&&e&&e[r])}}();return Ii=function n(r,i,o,a,s){var c=-1,u=r.length;for(o||(o=t),s||(s=[]);++c<u;){var d=r[c];i>0&&o(d)?i>1?n(d,i-1,o,a,s):e(s,d):a||(s[s.length]=d)}return s},Ii}function fa(){if(ji)return Oi;return ji=1,Oi=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}}function pa(){if(Ri)return Ei;Ri=1;var e=Vt(),t=ur();return Ei=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}}function ga(){if(Pi)return Ti;Pi=1;var e=sr(),t=pa(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return Ti=function(i,o){if(e(i))return!1;var a=typeof i;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=i&&!t(i))||(r.test(i)||!n.test(i)||null!=o&&i in Object(o))}}function va(){if(Ni)return Di;Ni=1;var e=function(){if($i)return Mi;$i=1;var e=Xt();return Mi=function(t){var n=e(t,(function(e){return 500===r.size&&r.clear(),e})),r=n.cache;return n}}(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e((function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(t,(function(e,t,i,o){r.push(i?o.replace(n,"$1"):t||e)})),r}));return Di=r}function ha(){if(Fi)return Ai;Fi=1;var e=Ft(),t=fa(),n=sr(),r=pa(),i=e?e.prototype:void 0,o=i?i.toString:void 0;return Ai=function e(i){if("string"==typeof i)return i;if(n(i))return t(i,e)+"";if(r(i))return o?o.call(i):"";var a=i+"";return"0"==a&&1/i==-1/0?"-0":a},Ai}function ma(){if(Ui)return Vi;Ui=1;var e=ha();return Vi=function(t){return null==t?"":e(t)}}function ya(){if(zi)return Li;zi=1;var e=sr(),t=ga(),n=va(),r=ma();return Li=function(i,o){return e(i)?i:t(i,o)?[i]:n(r(i))}}function ba(){if(qi)return Bi;qi=1;var e=pa();return Bi=function(t){if("string"==typeof t||e(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}}function Sa(){if(Wi)return Ki;Wi=1;var e=ya(),t=ba();return Ki=function(n,r){for(var i=0,o=(r=e(r,n)).length;null!=n&&i<o;)n=n[t(r[i++])];return i&&i==o?n:void 0}}function wa(){if(Qi)return Ji;Qi=1;var e=Ut();return Ji=function(t){return t==t&&!e(t)}}function _a(){if(eo)return Xi;return eo=1,Xi=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}}function ka(){if(no)return to;no=1;var e=function(){if(Hi)return Gi;Hi=1;var e=er(),t=_i();return Gi=function(n,r,i,o){var a=i.length,s=a,c=!o;if(null==n)return!s;for(n=Object(n);a--;){var u=i[a];if(c&&u[2]?u[1]!==n[u[0]]:!(u[0]in n))return!1}for(;++a<s;){var d=(u=i[a])[0],l=n[d],f=u[1];if(c&&u[2]){if(void 0===l&&!(d in n))return!1}else{var p=new e;if(o)var g=o(l,f,d,n,r,p);if(!(void 0===g?t(f,l,3,o,p):g))return!1}}return!0}}(),t=function(){if(Yi)return Zi;Yi=1;var e=wa(),t=yi();return Zi=function(n){for(var r=t(n),i=r.length;i--;){var o=r[i],a=n[o];r[i]=[o,a,e(a)]}return r}}(),n=_a();return to=function(r){var i=t(r);return 1==i.length&&i[0][2]?n(i[0][0],i[0][1]):function(t){return t===r||e(t,r,i)}}}function xa(){if(lo)return uo;lo=1;var e=ao?oo:(ao=1,oo=function(e,t){return null!=e&&t in Object(e)}),t=function(){if(co)return so;co=1;var e=ya(),t=dr(),n=sr(),r=xr(),i=Ir(),o=ba();return so=function(a,s,c){for(var u=-1,d=(s=e(s,a)).length,l=!1;++u<d;){var f=o(s[u]);if(!(l=null!=a&&c(a,f)))break;a=a[f]}return l||++u!=d?l:!!(d=null==a?0:a.length)&&i(d)&&r(f,d)&&(n(a)||t(a))}}();return uo=function(n,r){return null!=n&&t(n,r,e)}}function Ia(){if(po)return fo;po=1;var e=_i(),t=function(){if(io)return ro;io=1;var e=Sa();return ro=function(t,n,r){var i=null==t?void 0:e(t,n);return void 0===i?r:i}}(),n=xa(),r=ga(),i=wa(),o=_a(),a=ba();return fo=function(s,c){return r(s)&&i(c)?o(a(s),c):function(r){var i=t(r,s);return void 0===i&&i===c?n(r,s):e(c,i,3)}}}function Ca(){if(vo)return go;return vo=1,go=function(e){return e}}function Oa(){if(wo)return So;wo=1;var e=mo?ho:(mo=1,ho=function(e){return function(t){return null==t?void 0:t[e]}}),t=function(){if(bo)return yo;bo=1;var e=Sa();return yo=function(t){return function(n){return e(n,t)}}}(),n=ga(),r=ba();return So=function(i){return n(i)?e(r(i)):t(i)}}function ja(){if(ko)return _o;ko=1;var e=ka(),t=Ia(),n=Ca(),r=sr(),i=Oa();return _o=function(o){return"function"==typeof o?o:null==o?n:"object"==typeof o?r(o)?t(o[0],o[1]):e(o):i(o)}}function Ea(){if(Oo)return Co;Oo=1;var e=(Io?xo:(Io=1,xo=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++i];if(!1===n(o[c],c,o))break}return t}}))();return Co=e}function Ra(){if(Mo)return Po;Mo=1;var e=function(){if(Eo)return jo;Eo=1;var e=Ea(),t=yi();return jo=function(n,r){return n&&e(n,r,t)}}(),t=function(){if(To)return Ro;To=1;var e=mi();return Ro=function(t,n){return function(r,i){if(null==r)return r;if(!e(r))return t(r,i);for(var o=r.length,a=n?o:-1,s=Object(r);(n?a--:++a<o)&&!1!==i(s[a],a,s););return r}}}()(e);return Po=t}function Ta(){if(Lo)return Uo;Lo=1;var e=function(){if(Vo)return Fo;Vo=1;var e=pa();return Fo=function(t,n){if(t!==n){var r=void 0!==t,i=null===t,o=t==t,a=e(t),s=void 0!==n,c=null===n,u=n==n,d=e(n);if(!c&&!d&&!a&&t>n||a&&s&&u&&!c&&!d||i&&s&&u||!r&&u||!o)return 1;if(!i&&!a&&!d&&t<n||d&&r&&o&&!i&&!a||c&&r&&o||!s&&o||!u)return-1}return 0}}();return Uo=function(t,n,r){for(var i=-1,o=t.criteria,a=n.criteria,s=o.length,c=r.length;++i<s;){var u=e(o[i],a[i]);if(u)return i>=c?u:u*("desc"==r[i]?-1:1)}return t.index-n.index}}function Pa(){if(Bo)return zo;Bo=1;var e=fa(),t=Sa(),n=ja(),r=function(){if(Do)return $o;Do=1;var e=Ra(),t=mi();return $o=function(n,r){var i=-1,o=t(n)?Array(n.length):[];return e(n,(function(e,t,n){o[++i]=r(e,t,n)})),o}}(),i=Ao?No:(Ao=1,No=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}),o=Cr(),a=Ta(),s=Ca(),c=sr();return zo=function(u,d,l){d=d.length?e(d,(function(e){return c(e)?function(n){return t(n,1===e.length?e[0]:e)}:e})):[s];var f=-1;d=e(d,o(n));var p=r(u,(function(t,n,r){return{criteria:e(d,(function(e){return e(t)})),index:++f,value:t}}));return i(p,(function(e,t){return a(e,t,l)}))}}function Ma(){if(Go)return Wo;Go=1;var e=Ko?qo:(Ko=1,qo=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}),t=Math.max;return Wo=function(n,r,i){return r=t(void 0===r?n.length-1:r,0),function(){for(var o=arguments,a=-1,s=t(o.length-r,0),c=Array(s);++a<s;)c[a]=o[r+a];a=-1;for(var u=Array(r+1);++a<r;)u[a]=o[a];return u[r]=i(c),e(n,this,u)}},Wo}function $a(){if(Xo)return Yo;Xo=1;var e=Jo?Ho:(Jo=1,Ho=function(e){return function(){return e}}),t=function(){if(Zo)return Qo;Zo=1;var e=qt(),t=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();return Qo=t}(),n=Ca();return Yo=t?function(n,r){return t(n,"toString",{configurable:!0,enumerable:!1,value:e(r),writable:!0})}:n}function Da(){if(ra)return na;ra=1;var e=$a(),t=function(){if(ta)return ea;ta=1;var e=Date.now;return ea=function(t){var n=0,r=0;return function(){var i=e(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}},ea}(),n=t(e);return na=n}function Na(){if(oa)return ia;oa=1;var e=Ca(),t=Ma(),n=Da();return ia=function(r,i){return n(t(r,i,e),r+"")}}var Aa=function(){if(ua)return ca;ua=1;var e=la(),t=Pa(),n=Na(),r=function(){if(sa)return aa;sa=1;var e=Gt(),t=mi(),n=xr(),r=Ut();return aa=function(i,o,a){if(!r(a))return!1;var s=typeof o;return!!("number"==s?t(a)&&n(o,a.length):"string"==s&&o in a)&&e(a[o],i)}}(),i=n((function(n,i){if(null==n)return[];var o=i.length;return o>1&&r(n,i[0],i[1])?i=[]:o>2&&r(i[0],i[1],i[2])&&(i=[i[0]]),t(n,e(i,1),[])}));return ca=i}(),Fa=Dt(Aa);function Va(e){let t=Object.entries(e);return t=Fa(Array.from(t),(([e])=>e)),Object.fromEntries(t)}const Ua=["debug","info","warn","error"];function La(e){return Ua.find((t=>t===e))}const za={debug:0,info:1,warn:2,error:3};let Ba=Object.create(null);const qa=function(e){let t,n=-1,r=!1;return{append(i){t||(t=new Array(e)),r=r||n+1===e,n=(n+1)%e,t[n]=i},clear(){t=void 0,n=-1,r=!1},getItems(){if(!t||n<0)return[];return[...r?t.slice(n+2):[],...t.slice(0,n+1)]}}}(1e3);function Ka(){return qa.getItems()}const Wa=function(){const e=new v,t=t=>{const n=Object.assign(Object.assign({},t),{meta:Object.assign(Object.assign({},Ba),t.meta)});qa.append(n),e.next(n)};return t.event$=e.asObservable(),t}();function Ga(e,t){return{getLogger:(n,r)=>Ga(`${e}.${n}`,Object.assign(Object.assign({},t),r)),withMeta:n=>Ga(e,Object.assign(Object.assign({},t),n)),debug(...n){Wa({level:"debug",timestamp:Date.now(),tag:e,messages:n,meta:t})},log(...n){Wa({level:"info",timestamp:Date.now(),tag:e,messages:n,meta:t})},info(...n){Wa({level:"info",timestamp:Date.now(),tag:e,messages:n,meta:t})},warn(...n){Wa({level:"warn",timestamp:Date.now(),tag:e,messages:n,meta:t})},error(...n){Wa({level:"error",timestamp:Date.now(),tag:e,messages:n,meta:t})}}}function Ha(e,t){return Xn((()=>Ga(e,t)))}const Ja=()=>({logEvent$:Wa.event$,logLevelWeight:za,createLoggerFactory:Ha,getLogBuffer:Ka,getLogger:Ga,logLevelValues:Ua,logMessage:Wa,parseLogLevel:La});function Qa(e){const{container:t,plugins:n,defaultPlugins:r}=e,o=B(),a=[...r,...n],s=(a.length>0?h(...a):m([])).pipe(y((e=>{if(0===e.length)return;const n=[],r=new Set;[...e].reverse().forEach((e=>{const{key:t,module:i}=e();t?r.has(t)||(r.add(t),n.push({module:i,options:{scope:"scoped"}})):n.push({module:i,options:{scope:"scoped"}})})),r.clear(),i(t,n),n.forEach((({module:e})=>{t.resolve(e.token)}))})));return{destroy:()=>{o.destroy()},ready:()=>ie(this,void 0,void 0,(function*(){yield b(s)}))}}function Za(){return q()}function Ya(...e){const t=t=>e.includes(t.type);return e=>e.pipe(S(t))}e("Runtime");const Xa=["onPostBinding","onPlatformPreInit","onPlatformInit","onPlatformPostInit","onPreInit","onInit","onPostInit"],es=e("runtimeLifecycleToken");function ts(e){const t=n(e);return Object.assign(Object.assign({},t),{afterBinding:n=>{var r;!function(e,t){o(e,es,t)}(n,Object.assign(Object.assign({},e.lifecycle),{token:t.token})),null===(r=t.afterBinding)||void 0===r||r.call(t,n)}})}var ns,rs,is,os;function as(){if(rs)return ns;rs=1;var e=Vt(),t=ur();return ns=function(n){return"number"==typeof n||t(n)&&"[object Number]"==e(n)}}as(),function(){if(os)return is;os=1;var e=Vt(),t=sr(),n=ur();is=function(r){return"string"==typeof r||!t(r)&&n(r)&&"[object String]"==e(r)}}();const ss=e=>null!=e;var cs,us,ds,ls,fs,ps,gs,vs,hs,ms,ys,bs,Ss,ws,_s,ks,xs,Is,Cs,Os,js,Es,Rs,Ts,Ps,Ms,$s,Ds,Ns,As,Fs,Vs,Us,Ls,zs,Bs,qs,Ks,Ws,Gs;function Hs(){if(ws)return Ss;ws=1;var e=function(){if(bs)return ys;bs=1;var e=/\s/;return ys=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}}(),t=/^\s+/;return Ss=function(n){return n?n.slice(0,e(n)+1).replace(t,""):n}}function Js(){if(ks)return _s;return ks=1,_s=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}}function Qs(){if(Ms)return Ps;Ms=1;var e=Os?Cs:(Os=1,Cs=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}),t=Es?js:(Es=1,js=function(e){return e!=e}),n=Ts?Rs:(Ts=1,Rs=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1});return Ps=function(r,i,o){return i==i?n(r,i,o):e(r,t,o)}}function Zs(){if(Ks)return qs;Ks=1;var e=Vs?Fs:(Vs=1,Fs=function(e){return e.split("")}),t=function(){if(Ls)return Us;Ls=1;var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");return Us=function(t){return e.test(t)}}(),n=function(){if(Bs)return zs;Bs=1;var e="\\ud800-\\udfff",t="["+e+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",i="[^"+e+"]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+n+"|"+r+")?",c="[\\ufe0e\\ufe0f]?",u=c+s+"(?:\\u200d(?:"+[i,o,a].join("|")+")"+c+s+")*",d="(?:"+[i+n+"?",n,o,a,t].join("|")+")",l=RegExp(r+"(?="+r+")|"+d+u,"g");return zs=function(e){return e.match(l)||[]}}();return qs=function(r){return t(r)?n(r):e(r)}}sr(),function(){if(us)return cs;us=1;var e=Vt(),t=ur();cs=function(n){return!0===n||!1===n||t(n)&&"[object Boolean]"==e(n)}}(),function(){if(ps)return fs;ps=1;var e=function(){if(ls)return ds;ls=1;var e=Vt(),t=ur();return ds=function(n){return t(n)&&"[object Date]"==e(n)}}(),t=Cr(),n=li(),r=n&&n.isDate,i=r?t(r):e;fs=i}(),function(){if(vs)return gs;vs=1;var e=hi(),t=Si(),n=dr(),r=sr(),i=mi(),o=kr(),a=gi(),s=fi(),c=Object.prototype.hasOwnProperty;gs=function(u){if(null==u)return!0;if(i(u)&&(r(u)||"string"==typeof u||"function"==typeof u.splice||o(u)||s(u)||n(u)))return!u.length;var d=t(u);if("[object Map]"==d||"[object Set]"==d)return!u.size;if(a(u))return!e(u).length;for(var l in u)if(c.call(u,l))return!1;return!0}}(),function(){if(ms)return hs;ms=1;var e=as();hs=function(t){return e(t)&&t!=+t}}(),Ut(),function(){if(Gs)return Ws;Gs=1;var e=ha(),t=Hs(),n=function(){if(Is)return xs;Is=1;var e=Js();return xs=function(t,n,r){var i=t.length;return r=void 0===r?i:r,!n&&r>=i?t:e(t,n,r)}}(),r=function(){if(Ds)return $s;Ds=1;var e=Qs();return $s=function(t,n){for(var r=t.length;r--&&e(n,t[r],0)>-1;);return r}}(),i=function(){if(As)return Ns;As=1;var e=Qs();return Ns=function(t,n){for(var r=-1,i=t.length;++r<i&&e(n,t[r],0)>-1;);return r}}(),o=Zs(),a=ma();Ws=function(s,c,u){if((s=a(s))&&(u||void 0===c))return t(s);if(!s||!(c=e(c)))return s;var d=o(s),l=o(c),f=i(d,l),p=r(d,l)+1;return n(d,f,p).join("")}}();const Ys=e=>({type:"failure",error:e});const Xs=Symbol.for("@ts-pattern/matcher"),ec=Symbol.for("@ts-pattern/isVariadic"),tc="@ts-pattern/anonymous-select-key",nc=e=>Boolean(e&&"object"==typeof e),rc=e=>e&&!!e[Xs],ic=(e,t,n)=>{if(rc(e)){const r=e[Xs](),{matched:i,selections:o}=r.match(t);return i&&o&&Object.keys(o).forEach((e=>n(e,o[e]))),i}if(nc(e)){if(!nc(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let r=[],i=[],o=[];for(const t of e.keys()){const n=e[t];rc(n)&&n[ec]?o.push(n):o.length?i.push(n):r.push(n)}if(o.length){if(o.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<r.length+i.length)return!1;const e=t.slice(0,r.length),a=0===i.length?[]:t.slice(-i.length),s=t.slice(r.length,0===i.length?1/0:-i.length);return r.every(((t,r)=>ic(t,e[r],n)))&&i.every(((e,t)=>ic(e,a[t],n)))&&(0===o.length||ic(o[0],s,n))}return e.length===t.length&&e.every(((e,r)=>ic(e,t[r],n)))}return Reflect.ownKeys(e).every((r=>{const i=e[r];return(r in t||rc(o=i)&&"optional"===o[Xs]().matcherType)&&ic(i,t[r],n);var o}))}return Object.is(t,e)},oc=e=>{var t,n,r;return nc(e)?rc(e)?null!=(t=null==(n=(r=e[Xs]()).getSelectionKeys)?void 0:n.call(r))?t:[]:Array.isArray(e)?ac(e,oc):ac(Object.values(e),oc):[]},ac=(e,t)=>e.reduce(((e,n)=>e.concat(t(n))),[]);function sc(e){return Object.assign(e,{optional:()=>cc(e),and:t=>uc(e,t),or:t=>dc(e,t),select:t=>void 0===t?fc(e):fc(t,e)})}function cc(e){return sc({[Xs]:()=>({match:t=>{let n={};const r=(e,t)=>{n[e]=t};return void 0===t?(oc(e).forEach((e=>r(e,void 0))),{matched:!0,selections:n}):{matched:ic(e,t,r),selections:n}},getSelectionKeys:()=>oc(e),matcherType:"optional"})})}function uc(...e){return sc({[Xs]:()=>({match:t=>{let n={};const r=(e,t)=>{n[e]=t};return{matched:e.every((e=>ic(e,t,r))),selections:n}},getSelectionKeys:()=>ac(e,oc),matcherType:"and"})})}function dc(...e){return sc({[Xs]:()=>({match:t=>{let n={};const r=(e,t)=>{n[e]=t};return ac(e,oc).forEach((e=>r(e,void 0))),{matched:e.some((e=>ic(e,t,r))),selections:n}},getSelectionKeys:()=>ac(e,oc),matcherType:"or"})})}function lc(e){return{[Xs]:()=>({match:t=>({matched:Boolean(e(t))})})}}function fc(...e){const t="string"==typeof e[0]?e[0]:void 0,n=2===e.length?e[1]:"string"==typeof e[0]?void 0:e[0];return sc({[Xs]:()=>({match:e=>{let r={[null!=t?t:tc]:e};return{matched:void 0===n||ic(n,e,((e,t)=>{r[e]=t})),selections:r}},getSelectionKeys:()=>[null!=t?t:tc].concat(void 0===n?[]:oc(n))})})}function pc(e){return"number"==typeof e}function gc(e){return"string"==typeof e}function vc(e){return"bigint"==typeof e}sc(lc((function(e){return!0})));const hc=e=>Object.assign(sc(e),{startsWith:t=>{return hc(uc(e,(n=t,lc((e=>gc(e)&&e.startsWith(n))))));var n},endsWith:t=>{return hc(uc(e,(n=t,lc((e=>gc(e)&&e.endsWith(n))))));var n},minLength:t=>hc(uc(e,(e=>lc((t=>gc(t)&&t.length>=e)))(t))),length:t=>hc(uc(e,(e=>lc((t=>gc(t)&&t.length===e)))(t))),maxLength:t=>hc(uc(e,(e=>lc((t=>gc(t)&&t.length<=e)))(t))),includes:t=>{return hc(uc(e,(n=t,lc((e=>gc(e)&&e.includes(n))))));var n},regex:t=>{return hc(uc(e,(n=t,lc((e=>gc(e)&&Boolean(e.match(n)))))));var n}});hc(lc(gc));const mc=e=>Object.assign(sc(e),{between:(t,n)=>mc(uc(e,((e,t)=>lc((n=>pc(n)&&e<=n&&t>=n)))(t,n))),lt:t=>mc(uc(e,(e=>lc((t=>pc(t)&&t<e)))(t))),gt:t=>mc(uc(e,(e=>lc((t=>pc(t)&&t>e)))(t))),lte:t=>mc(uc(e,(e=>lc((t=>pc(t)&&t<=e)))(t))),gte:t=>mc(uc(e,(e=>lc((t=>pc(t)&&t>=e)))(t))),int:()=>mc(uc(e,lc((e=>pc(e)&&Number.isInteger(e))))),finite:()=>mc(uc(e,lc((e=>pc(e)&&Number.isFinite(e))))),positive:()=>mc(uc(e,lc((e=>pc(e)&&e>0)))),negative:()=>mc(uc(e,lc((e=>pc(e)&&e<0))))});mc(lc(pc));const yc=e=>Object.assign(sc(e),{between:(t,n)=>yc(uc(e,((e,t)=>lc((n=>vc(n)&&e<=n&&t>=n)))(t,n))),lt:t=>yc(uc(e,(e=>lc((t=>vc(t)&&t<e)))(t))),gt:t=>yc(uc(e,(e=>lc((t=>vc(t)&&t>e)))(t))),lte:t=>yc(uc(e,(e=>lc((t=>vc(t)&&t<=e)))(t))),gte:t=>yc(uc(e,(e=>lc((t=>vc(t)&&t>=e)))(t))),positive:()=>yc(uc(e,lc((e=>vc(e)&&e>0)))),negative:()=>yc(uc(e,lc((e=>vc(e)&&e<0))))});function bc(e,t){const n=t=>e(t);return Object.assign(n,t,e),n}yc(lc(vc)),sc(lc((function(e){return"boolean"==typeof e}))),sc(lc((function(e){return"symbol"==typeof e}))),sc(lc((function(e){return null==e}))),sc(lc((function(e){return null!=e})));const Sc=e("RuntimeController");function wc(e,t,n){return ie(this,void 0,void 0,(function*(){yield Promise.all(t[n].map((({fn:t,value:n})=>t(n,e))))}))}n({token:Sc,factory:function(e){const t=B(),n=t.createStore("initial"),r=q(),i=t.handle(r,(t=>ie(this,void 0,void 0,(function*(){var r;const i=t||e,o=null!==(r=i.get(es))&&void 0!==r?r:[];if(!o.length)return;n.set("starting"),i.bindValue(es,void 0);const a=function(e,t){const n=Fa(t,(e=>{var t;return null!==(t=e.priority)&&void 0!==t?t:1/0})),r={onPostBinding:[],onPlatformPreInit:[],onPlatformInit:[],onPlatformPostInit:[],onPreInit:[],onInit:[],onPostInit:[]};for(const t of n){const n=e.resolve(t.token);for(const e of Xa){const i=t[e];i&&r[e].push({value:n,fn:i})}}return r}(i,o);for(const e of Xa)yield wc(i,a,e)}))));return t.handle(i.error$,(({error:e})=>{console.error("Runtime Error",e),n.set("failed")})),t.handle(i.done$,(()=>{n.set("ready")})),{status:n,start:bc(r,i),destroy:t.destroy}}});const _c=e("UAMetadataModuleConfigToken"),kc=[];for(let e=0;e<256;++e)kc.push((e+256).toString(16).slice(1));function xc(e,t=0){return(kc[e[t+0]]+kc[e[t+1]]+kc[e[t+2]]+kc[e[t+3]]+"-"+kc[e[t+4]]+kc[e[t+5]]+"-"+kc[e[t+6]]+kc[e[t+7]]+"-"+kc[e[t+8]]+kc[e[t+9]]+"-"+kc[e[t+10]]+kc[e[t+11]]+kc[e[t+12]]+kc[e[t+13]]+kc[e[t+14]]+kc[e[t+15]]).toLowerCase()}let Ic;const Cc=new Uint8Array(16);function Oc(){if(!Ic){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ic=crypto.getRandomValues.bind(crypto)}return Ic(Cc)}const jc={};function Ec(e,t,n,r,i,o,a=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(o){if(a<0||a+16>o.length)throw new RangeError(`UUID byte range ${a}:${a+15} is out of buffer bounds`)}else o=new Uint8Array(16),a=0;t??=Date.now(),n??=0,r??=16383&(e[8]<<8|e[9]),i??=e.slice(10,16);const s=(1e4*(268435455&(t+=122192928e5))+n)%4294967296;o[a++]=s>>>24&255,o[a++]=s>>>16&255,o[a++]=s>>>8&255,o[a++]=255&s;const c=t/4294967296*1e4&268435455;o[a++]=c>>>8&255,o[a++]=255&c,o[a++]=c>>>24&15|16,o[a++]=c>>>16&255,o[a++]=r>>>8|128,o[a++]=255&r;for(let e=0;e<6;++e)o[a++]=i[e];return o}var Rc={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};const Tc={v1:function(e,t,n){let r;const i=e?._v6??!1;if(e){const t=Object.keys(e);1===t.length&&"_v6"===t[0]&&(e=void 0)}if(e)r=Ec(e.random??e.rng?.()??Oc(),e.msecs,e.nsecs,e.clockseq,e.node,t,n);else{const e=Date.now(),o=Oc();!function(e,t,n){e.msecs??=-1/0,e.nsecs??=0,t===e.msecs?(e.nsecs++,e.nsecs>=1e4&&(e.node=void 0,e.nsecs=0)):t>e.msecs?e.nsecs=0:t<e.msecs&&(e.node=void 0);e.node||(e.node=n.slice(10,16),e.node[0]|=1,e.clockseq=16383&(n[8]<<8|n[9]));e.msecs=t}(jc,e,o),r=Ec(o,jc.msecs,jc.nsecs,i?void 0:jc.clockseq,i?void 0:jc.node,t,n)}return t??xc(r)},v4:function(e,t,n){if(Rc.randomUUID&&!t&&!e)return Rc.randomUUID();const r=(e=e||{}).random??e.rng?.()??Oc();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return xc(r)}},Pc={uaMeta:new Map,clientId:""},Mc=K({initialState:Pc,updates:{setUAMeta:(e,t)=>Q((n=>{n.uaMeta.set(e,t)})),removeUAMeta:e=>Q((t=>{t.uaMeta.delete(e)})),clearUAMeta:()=>Q((e=>{e.uaMeta.clear()})),setClientId:e=>t=>Object.assign(Object.assign({},t),{clientId:e})},options:{name:"UAMetadataStore"}}),$c="ua.clientId",Dc="auth.clientId";function Nc(e){var t,n;const r=B(),i=(o=e.storage,{getClientId(){const e=o.getItem(Dc);return e&&(o.removeItem(Dc),o.setItem($c,e)),null!=e?e:o.getItem($c)},setClientId:e=>o.setItem($c,e)});var o;const a=null!==(n=null!==(t=i.getClientId())&&void 0!==t?t:e.baseClientId)&&void 0!==n?n:Tc.v1(),s=r.createController((()=>Mc(Object.assign(Object.assign({},Pc),{clientId:a})))),c=W(s,(e=>e.clientId)),u=W(s,(e=>e.uaMeta));return r.handle(c.value$,(e=>{e&&i.setClientId(e)})),{$uaMeta:u,$clientId:c,setMeta:(e,t)=>s.updates.setUAMeta(e,t),removeMeta:e=>s.updates.removeUAMeta(e),clearMeta:()=>s.updates.clearUAMeta(),setClientId:e=>s.updates.setClientId(e),destroy:()=>{r.destroy()}}}const Ac=e("UAMetadataServiceToken");n({factory:a((function(e){const{config:t}=e,n=B();return{service:n.createController((()=>Nc({storage:t.localStorage,baseClientId:t.baseClientId}))),destroy:()=>{n.destroy()}}}),{config:_c}),exports:{service:Ac}});var Fc,Vc,Uc,Lc,zc,Bc,qc,Kc,Wc,Gc,Hc,Jc,Qc,Zc,Yc,Xc,eu,tu,nu,ru,iu,ou,au,su;function cu(){if(Vc)return Fc;return Vc=1,Fc=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}}function uu(){if(Bc)return zc;Bc=1;var e=ya(),t=cu(),n=function(){if(Lc)return Uc;Lc=1;var e=Sa(),t=Js();return Uc=function(n,r){return r.length<2?n:e(n,t(r,0,-1))}}(),r=ba();return zc=function(i,o){return o=e(o,i),null==(i=n(i,o))||delete i[r(t(o))]}}function du(e){const{initialInterval:t,maxRetries:n=1/0,maxInterval:r=1/0,shouldRetry:i,resetOnSuccess:o=!1,backoffDelay:a=lu,forceRetry$:s=O}="number"==typeof e?{initialInterval:e}:e;return e=>w((()=>{let c=0;return e.pipe(_((e=>e.pipe(k((e=>{const o=c;c+=1;const u=x((()=>e));if(o>=n)return u;const d=I(C(function(e,t){return Math.min(e,t)}(a(o,t),r)),s.pipe(j((()=>O)))).pipe(E(1));return i?w((()=>i(e))).pipe(R((e=>e?d:u)),j((()=>u)),E(1)):d}))))),y((()=>{o&&(c=0)})))}))}function lu(e,t){return Math.pow(2,e)*t}function fu(){if(ru)return nu;ru=1;var e=tr(),t=function(){if(Xc)return Yc;Xc=1;var e=Qs();return Yc=function(t,n){return!(null==t||!t.length)&&e(t,n,0)>-1}}(),n=tu?eu:(tu=1,eu=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}),r=fa(),i=Cr(),o=nr();return nu=function(a,s,c,u){var d=-1,l=t,f=!0,p=a.length,g=[],v=s.length;if(!p)return g;c&&(s=r(s,i(c))),u?(l=n,f=!1):s.length>=200&&(l=o,f=!1,s=new e(s));e:for(;++d<p;){var h=a[d],m=null==c?h:c(h);if(h=u||0!==h?h:0,f&&m==m){for(var y=v;y--;)if(s[y]===m)continue e;g.push(h)}else l(s,m,u)||g.push(h)}return g}}!function(){if(Gc)return Wc;Gc=1;var e=ja(),t=function(){if(Kc)return qc;Kc=1;var e=uu(),t=xr(),n=Array.prototype.splice;return qc=function(r,i){for(var o=r?i.length:0,a=o-1;o--;){var s=i[o];if(o==a||s!==c){var c=s;t(s)?n.call(r,s,1):e(r,s)}}return r}}();Wc=function(n,r){var i=[];if(!n||!n.length)return i;var o=-1,a=[],s=n.length;for(r=e(r,3);++o<s;){var c=n[o];r(c,o,n)&&(i.push(c),a.push(o))}return t(n,a),i}}(),function(){if(Zc)return Qc;Zc=1;var e=ja(),t=function(){if(Jc)return Hc;Jc=1;var e=pa(),t=Math.floor,n=Math.min;return Hc=function(r,i,o,a){var s=0,c=null==r?0:r.length;if(0===c)return 0;for(var u=(i=o(i))!=i,d=null===i,l=e(i),f=void 0===i;s<c;){var p=t((s+c)/2),g=o(r[p]),v=void 0!==g,h=null===g,m=g==g,y=e(g);if(u)var b=a||m;else b=f?m&&(a||v):d?m&&v&&(a||!h):l?m&&v&&!h&&(a||!y):!h&&!y&&(a?g<=i:g<i);b?s=p+1:c=p}return n(c,4294967294)}}();Qc=function(n,r,i){return t(n,r,e(i,2),!0)}}(),Ha("API");var pu,gu,vu=function(){if(su)return au;su=1;var e=fu(),t=la(),n=Na(),r=function(){if(ou)return iu;ou=1;var e=mi(),t=ur();return iu=function(n){return t(n)&&e(n)}}(),i=cu(),o=n((function(n,o){var a=i(o);return r(a)&&(a=void 0),r(n)?e(n,t(o,1,r,!0),void 0,a):[]}));return au=o}(),hu=Dt(vu);var mu,yu,bu,Su,wu,_u,ku,xu,Iu=Dt(gu?pu:(gu=1,pu=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r})),Cu=Dt(ur());function Ou(){if(_u)return wu;_u=1;var e=function(){if(yu)return mu;yu=1;var e=fa();return mu=function(t,n){return e(n,(function(e){return[e,t[e]]}))}}(),t=Si(),n=ir(),r=Su?bu:(Su=1,bu=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n});return wu=function(i){return function(o){var a=t(o);return"[object Map]"==a?n(o):"[object Set]"==a?r(o):e(o,i(o))}}}var ju=function(){if(xu)return ku;xu=1;var e=Ou()(yi());return ku=e}(),Eu=Dt(ju);const Ru=["true","false"];function Tu(e){return e?"true"===e:void 0}function Pu(e){const t=e?parseInt(e,10):void 0;return Number.isFinite(t)?t:void 0}function Mu(e,t){const n=Object.entries(e).map((([e,n])=>{var r;const i=null!==(r=t[n.key])&&void 0!==r?r:n.defaultValue;return[e,n.parseValue?n.parseValue(i):i]}));return Object.fromEntries(n)}function $u(e){const{defaultValue:t}=e,n=re(e,["defaultValue"]),r=null!=t?String(t):void 0;return Object.assign(Object.assign({},n),{defaultValue:r,options:Ru,parseValue:Tu})}function Du(e){return Object.assign(Object.assign({},e),{parseValue:e=>e})}function Nu(e){const{defaultValue:t}=e,n=re(e,["defaultValue"]),r=null!=t?t.toString(10):void 0;return Object.assign(Object.assign({},n),{defaultValue:r,parseValue:Pu})}const Au={ConfigFlagManager:e("ConfigFlagManager"),InitialConfig:s(e("ConfigFlagInitialConfig"),{}),EnvConfig:s(e("ConfigFlagEnvConfig")),EnvKeyPrefix:s(e("ConfigFlagEnvKeyPrefix")),EnvKeyResolver:s(e("ConfigFlagEnvKeyResolver")),Declarations:s(e("ConfigFlagDeclarations"),[]),Storage:e("ConfigFlagStorage"),ExternalConfig:s(e("ConfigFlagExternalConfig"))};function Fu(t){const r=Mu(t,{});const i=Y(f(r)),a=s(e("flagsToken"),i),u=Z().params().apply((({params:e})=>{const{flagManager:n}=e;return n.registerFlags(t),{$flags:Y(n.queryFlags(t))}}));return{module:n({beforeBinding:e=>{o(e,Au.Declarations,t)},factory:c(u,{flagManager:Au.ConfigFlagManager}),exports:{$flags:a}}),defaultValues:r,flagsToken:a}}const Vu={providers:G([]),addProvider:()=>()=>{},removeProvider:()=>{},extendedLogsProviders:G([]),addExtendedLogsProvider:()=>()=>{},removeExtendedLogsProvider:()=>{}},Uu=s(e("DebugStateRegistry"),Vu),Lu=n({token:Uu,factory:function(){const e=B(),t=e.createStore([]);function n(e){t.update((t=>t.filter((t=>t.key!==e))))}e.add((()=>{t.set([])}));const r=e.createStore([]);function i(e){t.update((t=>t.filter((t=>t.key!==e))))}return e.add((()=>{r.set([])})),{providers:t,addProvider:function(e){const{key:r}=e;return t.update((t=>[...t,e])),()=>n(r)},removeProvider:n,extendedLogsProviders:r,addExtendedLogsProvider:function(e){const{key:t}=e;return r.update((t=>[...t,e])),()=>i(t)},removeExtendedLogsProvider:i,destroy:e.destroy}}});const zu=Z().params().apply((({scope:e,params:t})=>{const{configFlagManager:n,debugStateRegistry:r}=t,i=r.addProvider({key:"platform.configFlags",name:"ConfigFlags",getState:()=>n.getDebugState()});e.onDestroy(i)})),Bu=ts({factory:c(zu,{configFlagManager:Au.ConfigFlagManager,debugStateRegistry:Uu})}),qu="jazz.flags.",Ku="****",Wu=Z().params().apply((({scope:e,params:t})=>{var n;const{storage:r,envConfig:i,envKeyResolver:o}=t,a=new Map((null!==(n=t.initialFlags)&&void 0!==n?n:[]).map((e=>Object.values(e))).flat().map((e=>[e.key,e]))),s=e.atom(a),c={};null==r||r.getKeys().forEach((e=>{const t=r.getItem(e);ss(t)&&(c[e]=t)}));const u=Object.assign({},t.initialConfig),d=e.atom(c),l=e.atom({}),v=function(e,t,n){if(!e)return f({});const r=function(e,t){if(!t)return f({});return p((()=>{const n={};return t&&e().forEach((e=>{const r=t(e.key);r&&(n[r]=e)})),n}),{equal:g})}(t,n);return p((()=>{const t={},n=r();for(const r in n){const i=e[r];if(ss(i)){t[n[r].key]=i}}return t}),{equal:g})}(i,s,o),h=function(e,t,n){if(!e)return f({});const r=p((()=>{const e={};return t().forEach((t=>{const r=null==n?void 0:n(t.key);r&&(e[r]=t);const i=`${qu}${t.key}`;e[i]=t,t.externalKey&&(e[t.externalKey]=t)})),e}),{equal:g});return p((()=>{const t={},n=e(),i=r();for(const e in i){const r=n[e];if(ss(r)){t[i[e].key]=r}}return t}),{equal:g})}(e.add(function(e){if(!e)return f({});const t=e.pipe(S(ss),T((e=>function(e,t){return Object.fromEntries(Object.entries(e).map((([e,n])=>[e,t(n,e)])))}(e,(e=>null!=e?e:void 0)))),P(g));return X(t,{})}(t.externalConfig)),s,o),m=p((()=>Object.assign(Object.assign(Object.assign({},v()),u),h())),{equal:g}),y=p((()=>Object.assign(Object.assign(Object.assign({},m()),d()),l())),{equal:g});function b(e){const t=s(),n=Object.values(e);let r=!1;for(const e of n)if(!t.has(e.key)){r=!0;break}r&&s.update((e=>{const t=new Map(e);return n.forEach((e=>t.set(e.key,e))),t}))}return{$flags:s.asReadonly(),$baseConfig:m,$localConfig:d.asReadonly(),$config:y,getDebugState:function(){return ie(this,void 0,void 0,(function*(){const e=l(),t=d(),n=h(),r=y();return[...s().values()].filter((e=>e.sensitive)).forEach((i=>{ss(e[i.key])&&(e[i.key]=Ku),ss(t[i.key])&&(t[i.key]=Ku),ss(n[i.key])&&(n[i.key]=Ku),ss(r[i.key])&&(r[i.key]=Ku)})),{runtimeConfig:Va(e),localConfig:Va(t),externalConfig:Va(n),config:Va(r)}}))},registerFlags:b,queryFlags:e=>(b(e),p((()=>Mu(e,y())),{equal:g})),getValue:e=>y()[e],setValue(e,t){l.update((n=>Gu(n,e,t)))},getLocalValue:e=>d()[e],setLocalValue(e,t){(e=>!ss(e))(t)?null==r||r.removeItem(e):null==r||r.setItem(e,t),d.update((n=>Gu(n,e,t)))},resetLocalValues(){null==r||r.clear(),d.set({})}}}));function Gu(e,t,n){const r=Object.assign({},e);return void 0===n?delete r[t]:r[t]=n,r}const Hu=n({token:Au.ConfigFlagManager,factory:c(Wu,{initialFlags:Au.Declarations,storage:s(Au.Storage),initialConfig:Au.InitialConfig,externalConfig:Au.ExternalConfig,envConfig:Au.EnvConfig,envKeyPrefix:Au.EnvKeyPrefix,envKeyResolver:Au.EnvKeyResolver})});n({imports:[Hu,Bu],factory:()=>({})});const Ju={debugStores:$u(