@flarehr/superhero-identity-app 2.32.0 → 2.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/superhero-identity-app.js +15 -15
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(){"use strict";function k(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
3
|
-
'`+o.annotationType_+"' can only be used on properties with a function value."))}function jc(e,t,n,r){t.annotationType_,r.value}function ds(e,t,n,r,i){var o,s,a,u,l,f,c;i===void 0&&(i=y.safeDescriptors),jc(e,t,n,r);var d=r.value;if((o=t.options_)!=null&&o.bound){var h;d=d.bind((h=e.proxy_)!=null?h:e.target_)}return{value:Tt((s=(a=t.options_)==null?void 0:a.name)!=null?s:n.toString(),d,(u=(l=t.options_)==null?void 0:l.autoAction)!=null?u:!1,(f=t.options_)!=null&&f.bound?(c=e.proxy_)!=null?c:e.target_:void 0),configurable:i?e.isPlainObject_:!0,enumerable:!1,writable:!i}}function hs(e,t){return{annotationType_:e,options_:t,make_:Lc,extend_:Vc,decorate_20223_:Fc}}function Lc(e,t,n,r){var i;if(r===e.target_)return this.extend_(e,t,n,!1)===null?0:2;if((i=this.options_)!=null&&i.bound&&(!nt(e.target_,t)||!In(e.target_[t]))&&this.extend_(e,t,n,!1)===null)return 0;if(In(n.value))return 1;var o=_s(e,this,t,n,!1,!1);return Be(r,t,o),2}function Vc(e,t,n,r){var i,o=_s(e,this,t,n,(i=this.options_)==null?void 0:i.bound);return e.defineProperty_(t,o,r)}function Fc(e,t){var n,r=t.name,i=t.addInitializer;return In(e)||(e=Jt(e)),(n=this.options_)!=null&&n.bound&&i(function(){var o=this,s=o[r].bind(o);s.isMobXFlow=!0,o[r]=s}),e}function Uc(e,t,n,r){t.annotationType_,r.value}function _s(e,t,n,r,i,o){o===void 0&&(o=y.safeDescriptors),Uc(e,t,n,r);var s=r.value;if(In(s)||(s=Jt(s)),i){var a;s=s.bind((a=e.proxy_)!=null?a:e.target_),s.isMobXFlow=!0}return{value:s,configurable:o?e.isPlainObject_:!0,enumerable:!1,writable:!o}}function Si(e,t){return{annotationType_:e,options_:t,make_:Bc,extend_:Gc,decorate_20223_:Hc}}function Bc(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function Gc(e,t,n,r){return zc(e,this,t,n),e.defineComputedProperty_(t,At({},this.options_,{get:n.get,set:n.set}),r)}function Hc(e,t){var n=this,r=t.name,i=t.addInitializer;return i(function(){var o=Rt(this)[O],s=At({},n.options_,{get:e,context:this});s.name||(s.name="ObservableObject."+r.toString()),o.values_.set(r,new Te(s))}),function(){return this[O].getObservablePropValue_(r)}}function zc(e,t,n,r){t.annotationType_,r.get}function hr(e,t){return{annotationType_:e,options_:t,make_:Wc,extend_:qc,decorate_20223_:Kc}}function Wc(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function qc(e,t,n,r){var i,o;return Jc(e,this),e.defineObservableProperty_(t,n.value,(i=(o=this.options_)==null?void 0:o.enhancer)!=null?i:xt,r)}function Kc(e,t){var n=this,r=t.kind,i=t.name,o=new WeakSet;function s(a,u){var l,f,c=Rt(a)[O],d=new Mt(u,(l=(f=n.options_)==null?void 0:f.enhancer)!=null?l:xt,"ObservableObject."+i.toString(),!1);c.values_.set(i,d),o.add(a)}if(r=="accessor")return{get:function(){return o.has(this)||s(this,e.get.call(this)),this[O].getObservablePropValue_(i)},set:function(u){return o.has(this)||s(this,u),this[O].setObservablePropValue_(i,u)},init:function(u){return o.has(this)||s(this,u),u}}}function Jc(e,t,n,r){t.annotationType_}var Zc="true",Yc=ps();function ps(e){return{annotationType_:Zc,options_:e,make_:Xc,extend_:Qc,decorate_20223_:ef}}function Xc(e,t,n,r){var i,o;if(n.get)return gr.make_(e,t,n,r);if(n.set){var s=Tt(t.toString(),n.set);return r===e.target_?e.defineProperty_(t,{configurable:y.safeDescriptors?e.isPlainObject_:!0,set:s})===null?0:2:(Be(r,t,{configurable:!0,set:s}),2)}if(r!==e.target_&&typeof n.value=="function"){var a;if(os(n.value)){var u,l=(u=this.options_)!=null&&u.autoBind?Jt.bound:Jt;return l.make_(e,t,n,r)}var f=(a=this.options_)!=null&&a.autoBind?Mn.bound:Mn;return f.make_(e,t,n,r)}var c=((i=this.options_)==null?void 0:i.deep)===!1?Q.ref:Q;if(typeof n.value=="function"&&(o=this.options_)!=null&&o.autoBind){var d;n.value=n.value.bind((d=e.proxy_)!=null?d:e.target_)}return c.make_(e,t,n,r)}function Qc(e,t,n,r){var i,o;if(n.get)return gr.extend_(e,t,n,r);if(n.set)return e.defineProperty_(t,{configurable:y.safeDescriptors?e.isPlainObject_:!0,set:Tt(t.toString(),n.set)},r);if(typeof n.value=="function"&&(i=this.options_)!=null&&i.autoBind){var s;n.value=n.value.bind((s=e.proxy_)!=null?s:e.target_)}var a=((o=this.options_)==null?void 0:o.deep)===!1?Q.ref:Q;return a.extend_(e,t,n,r)}function ef(e,t){k("'"+this.annotationType_+"' cannot be used as a decorator")}var tf="observable",nf="observable.ref",rf="observable.shallow",of="observable.struct",gs={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(gs);function _r(e){return e||gs}var Ci=hr(tf),sf=hr(nf,{enhancer:dr}),af=hr(rf,{enhancer:kc}),uf=hr(of,{enhancer:Ic}),vs=He(Ci);function pr(e){return e.deep===!0?xt:e.deep===!1?dr:cf(e.defaultDecorator)}function lf(e){var t;return e?(t=e.defaultDecorator)!=null?t:ps(e):void 0}function cf(e){var t,n;return e&&(t=(n=e.options_)==null?void 0:n.enhancer)!=null?t:xt}function ms(e,t,n){if(En(t))return Ci.decorate_20223_(e,t);if(Ot(t)){On(e,t,Ci);return}return Hs(e)?e:et(e)?Q.object(e,t,n):Array.isArray(e)?Q.array(e,t):Ht(e)?Q.map(e,t):tt(e)?Q.set(e,t):typeof e=="object"&&e!==null?e:Q.box(e,t)}ns(ms,vs);var ff={box:function(t,n){var r=_r(n);return new Mt(t,pr(r),r.name,!0,r.equals)},array:function(t,n){var r=_r(n);return(y.useProxies===!1||r.proxy===!1?ld:Qf)(t,pr(r),r.name)},map:function(t,n){var r=_r(n);return new Ks(t,pr(r),r.name)},set:function(t,n){var r=_r(n);return new Zs(t,pr(r),r.name)},object:function(t,n,r){return gt(function(){return Fs(y.useProxies===!1||r?.proxy===!1?Rt({},r):Jf({},r),t,n)})},ref:He(sf),shallow:He(af),deep:vs,struct:He(uf)},Q=ns(ms,ff),ys="computed",df="computed.struct",Oi=Si(ys),hf=Si(df,{equals:Kt.structural}),gr=function(t,n){if(En(n))return Oi.decorate_20223_(t,n);if(Ot(n))return On(t,n,Oi);if(et(t))return He(Si(ys,t));var r=et(n)?n:{};return r.get=t,r.name||(r.name=t.name||""),new Te(r)};Object.assign(gr,Oi),gr.struct=He(hf);var bs,ws,vr=0,_f=1,pf=(bs=(ws=lr(function(){},"name"))==null?void 0:ws.configurable)!=null?bs:!1,Ss={value:"action",configurable:!0,writable:!1,enumerable:!1};function Tt(e,t,n,r){n===void 0&&(n=!1);function i(){return Cs(e,n,t,r||this,arguments)}return i.isMobxAction=!0,i.toString=function(){return t.toString()},pf&&(Ss.value=e,Be(i,"name",Ss)),i}function Cs(e,t,n,r,i){var o=gf(e,t);try{return n.apply(r,i)}catch(s){throw o.error_=s,s}finally{vf(o)}}function gf(e,t,n,r){var i=!1,o=0,s=y.trackingDerivation,a=!t||!s;we();var u=y.allowStateChanges;a&&(kt(),u=mr(!0));var l=xi(!0),f={runAsAction_:a,prevDerivation_:s,prevAllowStateChanges_:u,prevAllowStateReads_:l,notifySpy_:i,startTime_:o,actionId_:_f++,parentActionId_:vr};return vr=f.actionId_,f}function vf(e){vr!==e.actionId_&&k(30),vr=e.parentActionId_,e.error_!==void 0&&(y.suppressReactionErrors=!0),yr(e.prevAllowStateChanges_),xn(e.prevAllowStateReads_),Se(),e.runAsAction_&&rt(e.prevDerivation_),y.suppressReactionErrors=!1}function mf(e,t){var n=mr(e);try{return t()}finally{yr(n)}}function mr(e){var t=y.allowStateChanges;return y.allowStateChanges=e,t}function yr(e){y.allowStateChanges=e}var Mt=function(e){function t(r,i,o,s,a){var u;return o===void 0&&(o="ObservableValue"),a===void 0&&(a=Kt.default),u=e.call(this,o)||this,u.enhancer=void 0,u.name_=void 0,u.equals=void 0,u.hasUnreportedChange_=!1,u.interceptors_=void 0,u.changeListeners_=void 0,u.value_=void 0,u.dehancer=void 0,u.enhancer=i,u.name_=o,u.equals=a,u.value_=i(r,void 0,o),u}cs(t,e);var n=t.prototype;return n.dehanceValue=function(i){return this.dehancer!==void 0?this.dehancer(i):i},n.set=function(i){this.value_,i=this.prepareNewValue_(i),i!==y.UNCHANGED&&this.setNewValue_(i)},n.prepareNewValue_=function(i){if(Ce(this)){var o=Oe(this,{object:this,type:We,newValue:i});if(!o)return y.UNCHANGED;i=o.newValue}return i=this.enhancer(i,this.value_,this.name_),this.equals(this.value_,i)?y.UNCHANGED:i},n.setNewValue_=function(i){var o=this.value_;this.value_=i,this.reportChanged(),Me(this)&&ke(this,{type:We,object:this,newValue:i,oldValue:o})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(i){return $n(this,i)},n.observe_=function(i,o){return o&&i({observableKind:"value",debugObjectName:this.name_,object:this,type:We,newValue:this.value_,oldValue:void 0}),Rn(this,i)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return us(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}(_t),Te=function(){function e(n){this.dependenciesState_=I.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=I.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Sr(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=wr.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,n.get||k(31),this.derivation=n.get,this.name_=n.name||"ComputedValue",n.set&&(this.setter_=Tt("ComputedValue-setter",n.set)),this.equals_=n.equals||(n.compareStructural||n.struct?Kt.structural:Kt.default),this.scope_=n.context,this.requiresReaction_=n.requiresReaction,this.keepAlive_=!!n.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){Cf(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},t.get=function(){if(this.isComputing&&k(32,this.name_,this.derivation),y.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)Ei(this)&&(this.warnAboutUntrackedRead_(),we(),this.value_=this.computeValue_(!1),Se());else if(ks(this),Ei(this)){var r=y.trackingContext;this.keepAlive_&&!r&&(y.trackingContext=this),this.trackAndCompute()&&Sf(this),y.trackingContext=r}var i=this.value_;if(Cr(i))throw i.cause;return i},t.set=function(r){if(this.setter_){this.isRunningSetter&&k(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,r)}finally{this.isRunningSetter=!1}}else k(34,this.name_)},t.trackAndCompute=function(){var r=this.value_,i=this.dependenciesState_===I.NOT_TRACKING_,o=this.computeValue_(!0),s=i||Cr(r)||Cr(o)||!this.equals_(r,o);return s&&(this.value_=o),s},t.computeValue_=function(r){this.isComputing=!0;var i=mr(!1),o;if(r)o=Os(this,this.derivation,this.scope_);else if(y.disableErrorBoundaries===!0)o=this.derivation.call(this.scope_);else try{o=this.derivation.call(this.scope_)}catch(s){o=new Sr(s)}return yr(i),this.isComputing=!1,o},t.suspend_=function(){this.keepAlive_||(Ai(this),this.value_=void 0)},t.observe_=function(r,i){var o=this,s=!0,a=void 0;return Rf(function(){var u=o.get();if(!s||i){var l=kt();r({observableKind:"computed",debugObjectName:o.name_,type:We,object:o,newValue:u,oldValue:a}),rt(l)}s=!1,a=u})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return us(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},Wt(e,[{key:"isComputing",get:function(){return ue(this.flags_,e.isComputingMask_)},set:function(r){this.flags_=le(this.flags_,e.isComputingMask_,r)}},{key:"isRunningSetter",get:function(){return ue(this.flags_,e.isRunningSetterMask_)},set:function(r){this.flags_=le(this.flags_,e.isRunningSetterMask_,r)}},{key:"isBeingObserved",get:function(){return ue(this.flags_,e.isBeingObservedMask_)},set:function(r){this.flags_=le(this.flags_,e.isBeingObservedMask_,r)}},{key:"isPendingUnobservation",get:function(){return ue(this.flags_,e.isPendingUnobservationMask_)},set:function(r){this.flags_=le(this.flags_,e.isPendingUnobservationMask_,r)}},{key:"diffValue",get:function(){return ue(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=le(this.flags_,e.diffValueMask_,r===1)}}])}();Te.isComputingMask_=1,Te.isRunningSetterMask_=2,Te.isBeingObservedMask_=4,Te.isPendingUnobservationMask_=8,Te.diffValueMask_=16;var br=Et("ComputedValue",Te),I;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(I||(I={}));var wr;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(wr||(wr={}));var Sr=function(t){this.cause=void 0,this.cause=t};function Cr(e){return e instanceof Sr}function Ei(e){switch(e.dependenciesState_){case I.UP_TO_DATE_:return!1;case I.NOT_TRACKING_:case I.STALE_:return!0;case I.POSSIBLY_STALE_:{for(var t=xi(!0),n=kt(),r=e.observing_,i=r.length,o=0;o<i;o++){var s=r[o];if(br(s)){if(y.disableErrorBoundaries)s.get();else try{s.get()}catch{return rt(n),xn(t),!0}if(e.dependenciesState_===I.STALE_)return rt(n),xn(t),!0}}return As(e),rt(n),xn(t),!1}}}function z0(e){}function Os(e,t,n){var r=xi(!0);As(e),e.newObserving_=new Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++y.runId;var i=y.trackingDerivation;y.trackingDerivation=e,y.inBatch++;var o;if(y.disableErrorBoundaries===!0)o=t.call(n);else try{o=t.call(n)}catch(s){o=new Sr(s)}return y.inBatch--,y.trackingDerivation=i,yf(e),xn(r),o}function yf(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=I.UP_TO_DATE_,i=0,o=e.unboundDepsCount_,s=0;s<o;s++){var a=n[s];a.diffValue===0&&(a.diffValue=1,i!==s&&(n[i]=a),i++),a.dependenciesState_>r&&(r=a.dependenciesState_)}for(n.length=i,e.newObserving_=null,o=t.length;o--;){var u=t[o];u.diffValue===0&&Ts(u,e),u.diffValue=0}for(;i--;){var l=n[i];l.diffValue===1&&(l.diffValue=0,wf(l,e))}r!==I.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}function Ai(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)Ts(t[n],e);e.dependenciesState_=I.NOT_TRACKING_}function Es(e){var t=kt();try{return e()}finally{rt(t)}}function kt(){var e=y.trackingDerivation;return y.trackingDerivation=null,e}function rt(e){y.trackingDerivation=e}function xi(e){var t=y.allowStateReads;return y.allowStateReads=e,t}function xn(e){y.allowStateReads=e}function As(e){if(e.dependenciesState_!==I.UP_TO_DATE_){e.dependenciesState_=I.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=I.UP_TO_DATE_}}var Or=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},Er=!0,xs=!1,y=function(){var e=ur();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Er=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new Or().version&&(Er=!1),Er?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Or):(setTimeout(function(){xs||k(35)},1),new Or)}();function bf(){if((y.pendingReactions.length||y.inBatch||y.isRunningReactions)&&k(36),xs=!0,Er){var e=ur();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),y=new Or}}function wf(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function Ts(e,t){e.observers_.delete(t),e.observers_.size===0&&Ms(e)}function Ms(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,y.pendingUnobservations.push(e))}function we(){y.inBatch++}function Se(){if(--y.inBatch===0){$s();for(var e=y.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,n.observers_.size===0&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBUO()),n instanceof Te&&n.suspend_())}y.pendingUnobservations=[]}}function ks(e){var t=y.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&y.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(e.observers_.size===0&&y.inBatch>0&&Ms(e),!1)}function Is(e){e.lowestObserverState_!==I.STALE_&&(e.lowestObserverState_=I.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===I.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=I.STALE_}))}function Sf(e){e.lowestObserverState_!==I.STALE_&&(e.lowestObserverState_=I.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===I.POSSIBLY_STALE_?t.dependenciesState_=I.STALE_:t.dependenciesState_===I.UP_TO_DATE_&&(e.lowestObserverState_=I.UP_TO_DATE_)}))}function Cf(e){e.lowestObserverState_===I.UP_TO_DATE_&&(e.lowestObserverState_=I.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===I.UP_TO_DATE_&&(t.dependenciesState_=I.POSSIBLY_STALE_,t.onBecomeStale_())}))}var ze=function(){function e(n,r,i,o){n===void 0&&(n="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=I.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=wr.NONE,this.name_=n,this.onInvalidate_=r,this.errorHandler_=i,this.requiresObservable_=o}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,y.pendingReactions.push(this),$s())},t.runReaction_=function(){if(!this.isDisposed){we(),this.isScheduled=!1;var r=y.trackingContext;if(y.trackingContext=this,Ei(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(i){this.reportExceptionInDerivation_(i)}}y.trackingContext=r,Se()}},t.track=function(r){if(!this.isDisposed){we(),this.isRunning=!0;var i=y.trackingContext;y.trackingContext=this;var o=Os(this,r,void 0);y.trackingContext=i,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&Ai(this),Cr(o)&&this.reportExceptionInDerivation_(o.cause),Se()}},t.reportExceptionInDerivation_=function(r){var i=this;if(this.errorHandler_){this.errorHandler_(r,this);return}if(y.disableErrorBoundaries)throw r;var o="[mobx] uncaught error in '"+this+"'";y.suppressReactionErrors||console.error(o,r),y.globalReactionErrorHandlers.forEach(function(s){return s(r,i)})},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(we(),Ai(this),Se()))},t.getDisposer_=function(r){var i=this,o=function s(){i.dispose(),r==null||r.removeEventListener==null||r.removeEventListener("abort",s)};return r==null||r.addEventListener==null||r.addEventListener("abort",o),o[O]=this,o},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(r){},Wt(e,[{key:"isDisposed",get:function(){return ue(this.flags_,e.isDisposedMask_)},set:function(r){this.flags_=le(this.flags_,e.isDisposedMask_,r)}},{key:"isScheduled",get:function(){return ue(this.flags_,e.isScheduledMask_)},set:function(r){this.flags_=le(this.flags_,e.isScheduledMask_,r)}},{key:"isTrackPending",get:function(){return ue(this.flags_,e.isTrackPendingMask_)},set:function(r){this.flags_=le(this.flags_,e.isTrackPendingMask_,r)}},{key:"isRunning",get:function(){return ue(this.flags_,e.isRunningMask_)},set:function(r){this.flags_=le(this.flags_,e.isRunningMask_,r)}},{key:"diffValue",get:function(){return ue(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=le(this.flags_,e.diffValueMask_,r===1)}}])}();ze.isDisposedMask_=1,ze.isScheduledMask_=2,ze.isTrackPendingMask_=4,ze.isRunningMask_=8,ze.diffValueMask_=16;var Of=100,Ti=function(t){return t()};function $s(){y.inBatch>0||y.isRunningReactions||Ti(Ef)}function Ef(){y.isRunningReactions=!0;for(var e=y.pendingReactions,t=0;e.length>0;){++t===Of&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction_()}y.isRunningReactions=!1}var Ar=Et("Reaction",ze);function Af(e){var t=Ti;Ti=function(r){return e(function(){return t(r)})}}function Tn(){return!1}function W0(e){}function q0(e){}function K0(e){}function xf(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var Rs="action",Tf="action.bound",Ps="autoAction",Mf="autoAction.bound",Ds="<unnamed action>",Mi=An(Rs),kf=An(Tf,{bound:!0}),ki=An(Ps,{autoAction:!0}),If=An(Mf,{autoAction:!0,bound:!0});function Ns(e){var t=function(r,i){if(xe(r))return Tt(r.name||Ds,r,e);if(xe(i))return Tt(r,i,e);if(En(i))return(e?ki:Mi).decorate_20223_(r,i);if(Ot(i))return On(r,i,e?ki:Mi);if(Ot(r))return He(An(e?Ps:Rs,{name:r,autoAction:e}))};return t}var It=Ns(!1);Object.assign(It,Mi);var Mn=Ns(!0);Object.assign(Mn,ki),It.bound=He(kf),Mn.bound=He(If);function $f(e){return Cs(e.name||Ds,!1,e,this,void 0)}function kn(e){return xe(e)&&e.isMobxAction===!0}function Rf(e,t){var n,r,i,o;t===void 0&&(t=yi);var s=(n=(r=t)==null?void 0:r.name)!=null?n:"Autorun",a=!t.scheduler&&!t.delay,u;if(a)u=new ze(s,function(){this.track(c)},t.onError,t.requiresObservable);else{var l=js(t),f=!1;u=new ze(s,function(){f||(f=!0,l(function(){f=!1,u.isDisposed||u.track(c)}))},t.onError,t.requiresObservable)}function c(){e(u)}return(i=t)!=null&&(i=i.signal)!=null&&i.aborted||u.schedule_(),u.getDisposer_((o=t)==null?void 0:o.signal)}var Pf=function(t){return t()};function js(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Pf}function Df(e,t,n){var r,i,o;n===void 0&&(n=yi);var s=(r=n.name)!=null?r:"Reaction",a=It(s,n.onError?Nf(n.onError,t):t),u=!n.scheduler&&!n.delay,l=js(n),f=!0,c=!1,d,h=n.compareStructural?Kt.structural:n.equals||Kt.default,_=new ze(s,function(){f||u?g():c||(c=!0,l(g))},n.onError,n.requiresObservable);function g(){if(c=!1,!_.isDisposed){var v=!1,m=d;_.track(function(){var w=mf(!1,function(){return e(_)});v=f||!h(d,w),d=w}),(f&&n.fireImmediately||!f&&v)&&a(d,m,_),f=!1}}return(i=n)!=null&&(i=i.signal)!=null&&i.aborted||_.schedule_(),_.getDisposer_((o=n)==null?void 0:o.signal)}function Nf(e,t){return function(){try{return t.apply(this,arguments)}catch(n){e.call(this,n)}}}var jf="onBO",Lf="onBUO";function Vf(e,t,n){return Vs(jf,e,t,n)}function Ls(e,t,n){return Vs(Lf,e,t,n)}function Vs(e,t,n,r){var i=$r(t),o=xe(r)?r:n,s=e+"L";return i[s]?i[s].add(o):i[s]=new Set([o]),function(){var a=i[s];a&&(a.delete(o),a.size===0&&delete i[s])}}var Ff="never",xr="always",Uf="observed";function Bf(e){e.isolateGlobalState===!0&&bf();var t=e.useProxies,n=e.enforceActions;if(t!==void 0&&(y.useProxies=t===xr?!0:t===Ff?!1:typeof Proxy<"u"),t==="ifavailable"&&(y.verifyProxies=!0),n!==void 0){var r=n===xr?xr:n===Uf;y.enforceActions=r,y.allowStateChanges=!(r===!0||r===xr)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(i){i in e&&(y[i]=!!e[i])}),y.allowStateReads=!y.observableRequiresReaction,e.reactionScheduler&&Af(e.reactionScheduler)}function Fs(e,t,n,r){var i=Sc(t);return gt(function(){var o=Rt(e,r)[O];zt(i).forEach(function(s){o.extend_(s,i[s],n&&s in n?n[s]:!0)})}),e}function Gf(e,t){return Us($r(e,t))}function Us(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=Hf(e.observing_).map(Us)),t}function Hf(e){return Array.from(new Set(e))}var zf=0;function Bs(){this.message="FLOW_CANCELLED"}Bs.prototype=Object.create(Error.prototype);var Ii=hs("flow"),Wf=hs("flow.bound",{bound:!0}),Jt=Object.assign(function(t,n){if(En(n))return Ii.decorate_20223_(t,n);if(Ot(n))return On(t,n,Ii);var r=t,i=r.name||"<unnamed flow>",o=function(){var a=this,u=arguments,l=++zf,f=It(i+" - runid: "+l+" - init",r).apply(a,u),c,d=void 0,h=new Promise(function(_,g){var v=0;c=g;function m(N){d=void 0;var ee;try{ee=It(i+" - runid: "+l+" - yield "+v++,f.next).call(f,N)}catch(be){return g(be)}x(ee)}function w(N){d=void 0;var ee;try{ee=It(i+" - runid: "+l+" - yield "+v++,f.throw).call(f,N)}catch(be){return g(be)}x(ee)}function x(N){if(xe(N?.then)){N.then(x,g);return}return N.done?_(N.value):(d=Promise.resolve(N.value),d.then(m,w))}m(void 0)});return h.cancel=It(i+" - runid: "+l+" - cancel",function(){try{d&&Gs(d);var _=f.return(void 0),g=Promise.resolve(_.value);g.then(Gt,Gt),Gs(g),c(new Bs)}catch(v){c(v)}}),h};return o.isMobXFlow=!0,o},Ii);Jt.bound=He(Wf);function Gs(e){xe(e.cancel)&&e.cancel()}function In(e){return e?.isMobXFlow===!0}function qf(e,t){return e?Ir(e)||!!e[O]||wi(e)||Ar(e)||br(e):!1}function Hs(e){return qf(e)}function it(e,t){t===void 0&&(t=void 0),we();try{return e.apply(t)}finally{Se()}}function Zt(e){return e[O]}var Kf={has:function(t,n){return Zt(t).has_(n)},get:function(t,n){return Zt(t).get_(n)},set:function(t,n,r){var i;return Ot(n)?(i=Zt(t).set_(n,r,!0))!=null?i:!0:!1},deleteProperty:function(t,n){var r;return Ot(n)?(r=Zt(t).delete_(n,!0))!=null?r:!0:!1},defineProperty:function(t,n,r){var i;return(i=Zt(t).defineProperty_(n,r))!=null?i:!0},ownKeys:function(t){return Zt(t).ownKeys_()},preventExtensions:function(t){k(13)}};function Jf(e,t){var n,r;return rs(),e=Rt(e,t),(r=(n=e[O]).proxy_)!=null?r:n.proxy_=new Proxy(e,Kf)}function Ce(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function $n(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),is(function(){var r=n.indexOf(t);r!==-1&&n.splice(r,1)})}function Oe(e,t){var n=kt();try{for(var r=[].concat(e.interceptors_||[]),i=0,o=r.length;i<o&&(t=r[i](t),t&&!t.type&&k(14),!!t);i++);return t}finally{rt(n)}}function Me(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function Rn(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),is(function(){var r=n.indexOf(t);r!==-1&&n.splice(r,1)})}function ke(e,t){var n=kt(),r=e.changeListeners_;if(r){r=r.slice();for(var i=0,o=r.length;i<o;i++)r[i](t);rt(n)}}function zs(e,t,n){return gt(function(){var r,i=Rt(e,n)[O];(r=t)!=null||(t=xc(e)),zt(t).forEach(function(o){return i.make_(o,t[o])})}),e}var $i=Symbol("mobx-keys");function Zf(e,t,n){return et(e)?Fs(e,e,t,n):(gt(function(){var r=Rt(e,n)[O];if(!e[$i]){var i=Object.getPrototypeOf(e),o=new Set([].concat(zt(e),zt(i)));o.delete("constructor"),o.delete(O),Cn(i,$i,o)}e[$i].forEach(function(s){return r.make_(s,t&&s in t?t[s]:!0)})}),e)}var Ws="splice",We="update",Yf=1e4,Xf={get:function(t,n){var r=t[O];return n===O?r:n==="length"?r.getArrayLength_():typeof n=="string"&&!isNaN(n)?r.get_(parseInt(n)):nt(Tr,n)?Tr[n]:t[n]},set:function(t,n,r){var i=t[O];return n==="length"&&i.setArrayLength_(r),typeof n=="symbol"||isNaN(n)?t[n]=r:i.set_(parseInt(n),r),!0},preventExtensions:function(){k(15)}},Ri=function(){function e(n,r,i,o){n===void 0&&(n="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=i,this.legacyMode_=o,this.atom_=new _t(n),this.enhancer_=function(s,a){return r(s,a,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.dehanceValues_=function(r){return this.dehancer!==void 0&&r.length>0?r.map(this.dehancer):r},t.intercept_=function(r){return $n(this,r)},t.observe_=function(r,i){return i===void 0&&(i=!1),i&&r({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Rn(this,r)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(r){(typeof r!="number"||isNaN(r)||r<0)&&k("Out of range: "+r);var i=this.values_.length;if(r!==i)if(r>i){for(var o=new Array(r-i),s=0;s<r-i;s++)o[s]=void 0;this.spliceWithArray_(i,0,o)}else this.spliceWithArray_(r,i-r)},t.updateArrayLength_=function(r,i){r!==this.lastKnownLength_&&k(16),this.lastKnownLength_+=i,this.legacyMode_&&i>0&&oa(r+i+1)},t.spliceWithArray_=function(r,i,o){var s=this;this.atom_;var a=this.values_.length;if(r===void 0?r=0:r>a?r=a:r<0&&(r=Math.max(0,a+r)),arguments.length===1?i=a-r:i==null?i=0:i=Math.max(0,Math.min(i,a-r)),o===void 0&&(o=mi),Ce(this)){var u=Oe(this,{object:this.proxy_,type:Ws,index:r,removedCount:i,added:o});if(!u)return mi;i=u.removedCount,o=u.added}if(o=o.length===0?o:o.map(function(c){return s.enhancer_(c,void 0)}),this.legacyMode_){var l=o.length-i;this.updateArrayLength_(a,l)}var f=this.spliceItemsIntoValues_(r,i,o);return(i!==0||o.length!==0)&&this.notifyArraySplice_(r,o,f),this.dehanceValues_(f)},t.spliceItemsIntoValues_=function(r,i,o){if(o.length<Yf){var s;return(s=this.values_).splice.apply(s,[r,i].concat(o))}else{var a=this.values_.slice(r,r+i),u=this.values_.slice(r+i);this.values_.length+=o.length-i;for(var l=0;l<o.length;l++)this.values_[r+l]=o[l];for(var f=0;f<u.length;f++)this.values_[r+o.length+f]=u[f];return a}},t.notifyArrayChildUpdate_=function(r,i,o){var s=!this.owned_&&Tn(),a=Me(this),u=a||s?{observableKind:"array",object:this.proxy_,type:We,debugObjectName:this.atom_.name_,index:r,newValue:i,oldValue:o}:null;this.atom_.reportChanged(),a&&ke(this,u)},t.notifyArraySplice_=function(r,i,o){var s=!this.owned_&&Tn(),a=Me(this),u=a||s?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:Ws,index:r,removed:o,added:i,removedCount:o.length,addedCount:i.length}:null;this.atom_.reportChanged(),a&&ke(this,u)},t.get_=function(r){if(this.legacyMode_&&r>=this.values_.length){console.warn("[mobx] Out of bounds read: "+r);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[r])},t.set_=function(r,i){var o=this.values_;if(this.legacyMode_&&r>o.length&&k(17,r,o.length),r<o.length){this.atom_;var s=o[r];if(Ce(this)){var a=Oe(this,{type:We,object:this.proxy_,index:r,newValue:i});if(!a)return;i=a.newValue}i=this.enhancer_(i,s);var u=i!==s;u&&(o[r]=i,this.notifyArrayChildUpdate_(r,i,s))}else{for(var l=new Array(r+1-o.length),f=0;f<l.length-1;f++)l[f]=void 0;l[l.length-1]=i,this.spliceWithArray_(o.length,0,l)}},e}();function Qf(e,t,n,r){return n===void 0&&(n="ObservableArray"),r===void 0&&(r=!1),rs(),gt(function(){var i=new Ri(n,t,r,!1);ss(i.values_,O,i);var o=new Proxy(i.values_,Xf);return i.proxy_=o,e&&e.length&&i.spliceWithArray_(0,0,e),o})}var Tr={clear:function(){return this.splice(0)},replace:function(t){var n=this[O];return n.spliceWithArray_(0,n.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];var s=this[O];switch(arguments.length){case 0:return[];case 1:return s.spliceWithArray_(t);case 2:return s.spliceWithArray_(t,n)}return s.spliceWithArray_(t,n,i)},spliceWithArray:function(t,n,r){return this[O].spliceWithArray_(t,n,r)},push:function(){for(var t=this[O],n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.spliceWithArray_(t.values_.length,0,r),t.values_.length},pop:function(){return this.splice(Math.max(this[O].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[O],n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.spliceWithArray_(0,0,r),t.values_.length},reverse:function(){return y.trackingDerivation&&k(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){y.trackingDerivation&&k(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var n=this[O],r=n.dehanceValues_(n.values_).indexOf(t);return r>-1?(this.splice(r,1),!0):!1}};V("at",ce),V("concat",ce),V("flat",ce),V("includes",ce),V("indexOf",ce),V("join",ce),V("lastIndexOf",ce),V("slice",ce),V("toString",ce),V("toLocaleString",ce),V("toSorted",ce),V("toSpliced",ce),V("with",ce),V("every",Ie),V("filter",Ie),V("find",Ie),V("findIndex",Ie),V("findLast",Ie),V("findLastIndex",Ie),V("flatMap",Ie),V("forEach",Ie),V("map",Ie),V("some",Ie),V("toReversed",Ie),V("reduce",qs),V("reduceRight",qs);function V(e,t){typeof Array.prototype[e]=="function"&&(Tr[e]=t(e))}function ce(e){return function(){var t=this[O];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function Ie(e){return function(t,n){var r=this,i=this[O];i.atom_.reportObserved();var o=i.dehanceValues_(i.values_);return o[e](function(s,a){return t.call(n,s,a,r)})}}function qs(e){return function(){var t=this,n=this[O];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(o,s,a){return i(o,s,a,t)},r[e].apply(r,arguments)}}var ed=Et("ObservableArrayAdministration",Ri);function Mr(e){return fr(e)&&ed(e[O])}var td={},pt="add",kr="delete",Ks=function(){function e(n,r,i){var o=this;r===void 0&&(r=xt),i===void 0&&(i="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[O]=td,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=r,this.name_=i,xe(Map)||k(18),gt(function(){o.keysAtom_=fs("ObservableMap.keys()"),o.data_=new Map,o.hasMap_=new Map,n&&o.merge(n)})}var t=e.prototype;return t.has_=function(r){return this.data_.has(r)},t.has=function(r){var i=this;if(!y.trackingDerivation)return this.has_(r);var o=this.hasMap_.get(r);if(!o){var s=o=new Mt(this.has_(r),dr,"ObservableMap.key?",!1);this.hasMap_.set(r,s),Ls(s,function(){return i.hasMap_.delete(r)})}return o.get()},t.set=function(r,i){var o=this.has_(r);if(Ce(this)){var s=Oe(this,{type:o?We:pt,object:this,newValue:i,name:r});if(!s)return this;i=s.newValue}return o?this.updateValue_(r,i):this.addValue_(r,i),this},t.delete=function(r){var i=this;if(this.keysAtom_,Ce(this)){var o=Oe(this,{type:kr,object:this,name:r});if(!o)return!1}if(this.has_(r)){var s=Tn(),a=Me(this),u=a||s?{observableKind:"map",debugObjectName:this.name_,type:kr,object:this,oldValue:this.data_.get(r).value_,name:r}:null;return it(function(){var l;i.keysAtom_.reportChanged(),(l=i.hasMap_.get(r))==null||l.setNewValue_(!1);var f=i.data_.get(r);f.setNewValue_(void 0),i.data_.delete(r)}),a&&ke(this,u),!0}return!1},t.updateValue_=function(r,i){var o=this.data_.get(r);if(i=o.prepareNewValue_(i),i!==y.UNCHANGED){var s=Tn(),a=Me(this),u=a||s?{observableKind:"map",debugObjectName:this.name_,type:We,object:this,oldValue:o.value_,name:r,newValue:i}:null;o.setNewValue_(i),a&&ke(this,u)}},t.addValue_=function(r,i){var o=this;this.keysAtom_,it(function(){var l,f=new Mt(i,o.enhancer_,"ObservableMap.key",!1);o.data_.set(r,f),i=f.value_,(l=o.hasMap_.get(r))==null||l.setNewValue_(!0),o.keysAtom_.reportChanged()});var s=Tn(),a=Me(this),u=a||s?{observableKind:"map",debugObjectName:this.name_,type:pt,object:this,name:r,newValue:i}:null;a&&ke(this,u)},t.get=function(r){return this.has(r)?this.dehanceValue_(this.data_.get(r).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var r=this,i=this.keys();return Js({next:function(){var s=i.next(),a=s.done,u=s.value;return{done:a,value:a?void 0:r.get(u)}}})},t.entries=function(){var r=this,i=this.keys();return Js({next:function(){var s=i.next(),a=s.done,u=s.value;return{done:a,value:a?void 0:[u,r.get(u)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(r,i){for(var o=qt(this),s;!(s=o()).done;){var a=s.value,u=a[0],l=a[1];r.call(i,l,u,this)}},t.merge=function(r){var i=this;return $t(r)&&(r=new Map(r)),it(function(){et(r)?wc(r).forEach(function(o){return i.set(o,r[o])}):Array.isArray(r)?r.forEach(function(o){var s=o[0],a=o[1];return i.set(s,a)}):Ht(r)?(bc(r)||k(19,r),r.forEach(function(o,s){return i.set(s,o)})):r!=null&&k(20,r)}),this},t.clear=function(){var r=this;it(function(){Es(function(){for(var i=qt(r.keys()),o;!(o=i()).done;){var s=o.value;r.delete(s)}})})},t.replace=function(r){var i=this;return it(function(){for(var o=nd(r),s=new Map,a=!1,u=qt(i.data_.keys()),l;!(l=u()).done;){var f=l.value;if(!o.has(f)){var c=i.delete(f);if(c)a=!0;else{var d=i.data_.get(f);s.set(f,d)}}}for(var h=qt(o.entries()),_;!(_=h()).done;){var g=_.value,v=g[0],m=g[1],w=i.data_.has(v);if(i.set(v,m),i.data_.has(v)){var x=i.data_.get(v);s.set(v,x),w||(a=!0)}}if(!a)if(i.data_.size!==s.size)i.keysAtom_.reportChanged();else for(var N=i.data_.keys(),ee=s.keys(),be=N.next(),sr=ee.next();!be.done;){if(be.value!==sr.value){i.keysAtom_.reportChanged();break}be=N.next(),sr=ee.next()}i.data_=s}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(r,i){return Rn(this,r)},t.intercept_=function(r){return $n(this,r)},Wt(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),$t=Et("ObservableMap",Ks);function Js(e){return e[Symbol.toStringTag]="MapIterator",Li(e)}function nd(e){if(Ht(e)||$t(e))return e;if(Array.isArray(e))return new Map(e);if(et(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}else return k(21,e)}var rd={},Zs=function(){function e(n,r,i){var o=this;r===void 0&&(r=xt),i===void 0&&(i="ObservableSet"),this.name_=void 0,this[O]=rd,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=i,xe(Set)||k(22),this.enhancer_=function(s,a){return r(s,a,i)},gt(function(){o.atom_=fs(o.name_),n&&o.replace(n)})}var t=e.prototype;return t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.clear=function(){var r=this;it(function(){Es(function(){for(var i=qt(r.data_.values()),o;!(o=i()).done;){var s=o.value;r.delete(s)}})})},t.forEach=function(r,i){for(var o=qt(this),s;!(s=o()).done;){var a=s.value;r.call(i,a,a,this)}},t.add=function(r){var i=this;if(this.atom_,Ce(this)){var o=Oe(this,{type:pt,object:this,newValue:r});if(!o)return this;r=o.newValue}if(!this.has(r)){it(function(){i.data_.add(i.enhancer_(r,void 0)),i.atom_.reportChanged()});var s=!1,a=Me(this),u=a||s?{observableKind:"set",debugObjectName:this.name_,type:pt,object:this,newValue:r}:null;a&&ke(this,u)}return this},t.delete=function(r){var i=this;if(Ce(this)){var o=Oe(this,{type:kr,object:this,oldValue:r});if(!o)return!1}if(this.has(r)){var s=!1,a=Me(this),u=a||s?{observableKind:"set",debugObjectName:this.name_,type:kr,object:this,oldValue:r}:null;return it(function(){i.atom_.reportChanged(),i.data_.delete(r)}),a&&ke(this,u),!0}return!1},t.has=function(r){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(r))},t.entries=function(){var r=this.values();return Ys({next:function(){var o=r.next(),s=o.value,a=o.done;return a?{value:void 0,done:a}:{value:[s,s],done:a}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var r=this,i=this.data_.values();return Ys({next:function(){var s=i.next(),a=s.value,u=s.done;return u?{value:void 0,done:u}:{value:r.dehanceValue_(a),done:u}}})},t.intersection=function(r){if(tt(r)&&!qe(r))return r.intersection(this);var i=new Set(this);return i.intersection(r)},t.union=function(r){if(tt(r)&&!qe(r))return r.union(this);var i=new Set(this);return i.union(r)},t.difference=function(r){return new Set(this).difference(r)},t.symmetricDifference=function(r){if(tt(r)&&!qe(r))return r.symmetricDifference(this);var i=new Set(this);return i.symmetricDifference(r)},t.isSubsetOf=function(r){return new Set(this).isSubsetOf(r)},t.isSupersetOf=function(r){return new Set(this).isSupersetOf(r)},t.isDisjointFrom=function(r){if(tt(r)&&!qe(r))return r.isDisjointFrom(this);var i=new Set(this);return i.isDisjointFrom(r)},t.replace=function(r){var i=this;return qe(r)&&(r=new Set(r)),it(function(){Array.isArray(r)?(i.clear(),r.forEach(function(o){return i.add(o)})):tt(r)?(i.clear(),r.forEach(function(o){return i.add(o)})):r!=null&&k("Cannot initialize set from "+r)}),this},t.observe_=function(r,i){return Rn(this,r)},t.intercept_=function(r){return $n(this,r)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},Wt(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),qe=Et("ObservableSet",Zs);function Ys(e){return e[Symbol.toStringTag]="SetIterator",Li(e)}var Xs=Object.create(null),Qs="remove",ea=function(){function e(n,r,i,o){r===void 0&&(r=new Map),o===void 0&&(o=Yc),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=n,this.values_=r,this.name_=i,this.defaultAnnotation_=o,this.keysAtom_=new _t("ObservableObject.keys"),this.isPlainObject_=et(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(r){return this.values_.get(r).get()},t.setObservablePropValue_=function(r,i){var o=this.values_.get(r);if(o instanceof Te)return o.set(i),!0;if(Ce(this)){var s=Oe(this,{type:We,object:this.proxy_||this.target_,name:r,newValue:i});if(!s)return null;i=s.newValue}if(i=o.prepareNewValue_(i),i!==y.UNCHANGED){var a=Me(this),u=!1,l=a||u?{type:We,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:o.value_,name:r,newValue:i}:null;o.setNewValue_(i),a&&ke(this,l)}return!0},t.get_=function(r){return y.trackingDerivation&&!nt(this.target_,r)&&this.has_(r),this.target_[r]},t.set_=function(r,i,o){return o===void 0&&(o=!1),nt(this.target_,r)?this.values_.has(r)?this.setObservablePropValue_(r,i):o?Reflect.set(this.target_,r,i):(this.target_[r]=i,!0):this.extend_(r,{value:i,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,o)},t.has_=function(r){if(!y.trackingDerivation)return r in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var i=this.pendingKeys_.get(r);return i||(i=new Mt(r in this.target_,dr,"ObservableObject.key?",!1),this.pendingKeys_.set(r,i)),i.get()},t.make_=function(r,i){if(i===!0&&(i=this.defaultAnnotation_),i!==!1){if(!(r in this.target_)){var o;if((o=this.target_[Ge])!=null&&o[r])return;k(1,i.annotationType_,this.name_+"."+r.toString())}for(var s=this.target_;s&&s!==cr;){var a=lr(s,r);if(a){var u=i.make_(this,r,a,s);if(u===0)return;if(u===1)break}s=Object.getPrototypeOf(s)}na(this,i,r)}},t.extend_=function(r,i,o,s){if(s===void 0&&(s=!1),o===!0&&(o=this.defaultAnnotation_),o===!1)return this.defineProperty_(r,i,s);var a=o.extend_(this,r,i,s);return a&&na(this,o,r),a},t.defineProperty_=function(r,i,o){o===void 0&&(o=!1),this.keysAtom_;try{we();var s=this.delete_(r);if(!s)return s;if(Ce(this)){var a=Oe(this,{object:this.proxy_||this.target_,name:r,type:pt,newValue:i.value});if(!a)return null;var u=a.newValue;i.value!==u&&(i=At({},i,{value:u}))}if(o){if(!Reflect.defineProperty(this.target_,r,i))return!1}else Be(this.target_,r,i);this.notifyPropertyAddition_(r,i.value)}finally{Se()}return!0},t.defineObservableProperty_=function(r,i,o,s){s===void 0&&(s=!1),this.keysAtom_;try{we();var a=this.delete_(r);if(!a)return a;if(Ce(this)){var u=Oe(this,{object:this.proxy_||this.target_,name:r,type:pt,newValue:i});if(!u)return null;i=u.newValue}var l=ta(r),f={configurable:y.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:l.get,set:l.set};if(s){if(!Reflect.defineProperty(this.target_,r,f))return!1}else Be(this.target_,r,f);var c=new Mt(i,o,"ObservableObject.key",!1);this.values_.set(r,c),this.notifyPropertyAddition_(r,c.value_)}finally{Se()}return!0},t.defineComputedProperty_=function(r,i,o){o===void 0&&(o=!1),this.keysAtom_;try{we();var s=this.delete_(r);if(!s)return s;if(Ce(this)){var a=Oe(this,{object:this.proxy_||this.target_,name:r,type:pt,newValue:void 0});if(!a)return null}i.name||(i.name="ObservableObject.key"),i.context=this.proxy_||this.target_;var u=ta(r),l={configurable:y.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:u.get,set:u.set};if(o){if(!Reflect.defineProperty(this.target_,r,l))return!1}else Be(this.target_,r,l);this.values_.set(r,new Te(i)),this.notifyPropertyAddition_(r,void 0)}finally{Se()}return!0},t.delete_=function(r,i){if(i===void 0&&(i=!1),this.keysAtom_,!nt(this.target_,r))return!0;if(Ce(this)){var o=Oe(this,{object:this.proxy_||this.target_,name:r,type:Qs});if(!o)return null}try{var s;we();var a=Me(this),u=!1,l=this.values_.get(r),f=void 0;if(!l&&(a||u)){var c;f=(c=lr(this.target_,r))==null?void 0:c.value}if(i){if(!Reflect.deleteProperty(this.target_,r))return!1}else delete this.target_[r];if(l&&(this.values_.delete(r),l instanceof Mt&&(f=l.value_),Is(l)),this.keysAtom_.reportChanged(),(s=this.pendingKeys_)==null||(s=s.get(r))==null||s.set(r in this.target_),a||u){var d={type:Qs,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:f,name:r};a&&ke(this,d)}}finally{Se()}return!0},t.observe_=function(r,i){return Rn(this,r)},t.intercept_=function(r){return $n(this,r)},t.notifyPropertyAddition_=function(r,i){var o,s=Me(this),a=!1;if(s||a){var u=s||a?{type:pt,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:r,newValue:i}:null;s&&ke(this,u)}(o=this.pendingKeys_)==null||(o=o.get(r))==null||o.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),zt(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Rt(e,t){var n;if(nt(e,O))return e;var r=(n=t?.name)!=null?n:"ObservableObject",i=new ea(e,new Map,String(r),lf(t));return Cn(e,O,i),e}var id=Et("ObservableObjectAdministration",ea);function ta(e){return Xs[e]||(Xs[e]={get:function(){return this[O].getObservablePropValue_(e)},set:function(n){return this[O].setObservablePropValue_(e,n)}})}function Ir(e){return fr(e)?id(e[O]):!1}function na(e,t,n){var r;(r=e.target_[Ge])==null||delete r[n]}var od=ia(0),sd=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),Pi=0,ra=function(){};function ad(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}ad(ra,Array.prototype);var Di=function(e){function t(r,i,o,s){var a;return o===void 0&&(o="ObservableArray"),s===void 0&&(s=!1),a=e.call(this)||this,gt(function(){var u=new Ri(o,i,s,!0);u.proxy_=a,ss(a,O,u),r&&r.length&&a.spliceWithArray(0,0,r),sd&&Object.defineProperty(a,"0",od)}),a}cs(t,e);var n=t.prototype;return n.concat=function(){this[O].atom_.reportObserved();for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return Array.prototype.concat.apply(this.slice(),o.map(function(a){return Mr(a)?a.slice():a}))},n[Symbol.iterator]=function(){var r=this,i=0;return Li({next:function(){return i<r.length?{value:r[i++],done:!1}:{done:!0,value:void 0}}})},Wt(t,[{key:"length",get:function(){return this[O].getArrayLength_()},set:function(i){this[O].setArrayLength_(i)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(ra);Object.entries(Tr).forEach(function(e){var t=e[0],n=e[1];t!=="concat"&&Cn(Di.prototype,t,n)});function ia(e){return{enumerable:!1,configurable:!0,get:function(){return this[O].get_(e)},set:function(n){this[O].set_(e,n)}}}function ud(e){Be(Di.prototype,""+e,ia(e))}function oa(e){if(e>Pi){for(var t=Pi;t<e+100;t++)ud(t);Pi=e}}oa(1e3);function ld(e,t,n){return new Di(e,t,n)}function $r(e,t){if(typeof e=="object"&&e!==null){if(Mr(e))return t!==void 0&&k(23),e[O].atom_;if(qe(e))return e.atom_;if($t(e)){if(t===void 0)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||k(25,t,Ni(e)),n}if(Ir(e)){if(!t)return k(26);var r=e[O].values_.get(t);return r||k(27,t,Ni(e)),r}if(wi(e)||br(e)||Ar(e))return e}else if(xe(e)&&Ar(e[O]))return e[O];k(28)}function cd(e,t){if(e||k(29),wi(e)||br(e)||Ar(e)||$t(e)||qe(e))return e;if(e[O])return e[O];k(24,e)}function Ni(e,t){var n;if(t!==void 0)n=$r(e,t);else{if(kn(e))return e.name;Ir(e)||$t(e)||qe(e)?n=cd(e):n=$r(e)}return n.name_}function gt(e){var t=kt(),n=mr(!0);we();try{return e()}finally{Se(),yr(n),rt(t)}}var sa=cr.toString;function aa(e,t,n){return n===void 0&&(n=-1),ji(e,t,n)}function ji(e,t,n,r,i){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var o=typeof e;if(o!=="function"&&o!=="object"&&typeof t!="object")return!1;var s=sa.call(e);if(s!==sa.call(t))return!1;switch(s){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++;break}e=ua(e),t=ua(t);var a=s==="[object Array]";if(!a){if(typeof e!="object"||typeof t!="object")return!1;var u=e.constructor,l=t.constructor;if(u!==l&&!(xe(u)&&u instanceof u&&xe(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}if(n===0)return!1;n<0&&(n=-1),r=r||[],i=i||[];for(var f=r.length;f--;)if(r[f]===e)return i[f]===t;if(r.push(e),i.push(t),a){if(f=e.length,f!==t.length)return!1;for(;f--;)if(!ji(e[f],t[f],n-1,r,i))return!1}else{var c=Object.keys(e),d=c.length;if(Object.keys(t).length!==d)return!1;for(var h=0;h<d;h++){var _=c[h];if(!(nt(t,_)&&ji(e[_],t[_],n-1,r,i)))return!1}}return r.pop(),i.pop(),!0}function ua(e){return Mr(e)?e.slice():Ht(e)||$t(e)||tt(e)||qe(e)?Array.from(e.entries()):e}var la,fd=((la=ur().Iterator)==null?void 0:la.prototype)||{};function Li(e){return e[Symbol.iterator]=dd,Object.assign(Object.create(fd),e)}function dd(){return this}["Symbol","Map","Set"].forEach(function(e){var t=ur();typeof t[e]>"u"&&k("MobX requires global '"+e+"' to be available or polyfilled")}),typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:xf,extras:{getDebugName:Ni},$mobx:O});var Pn,M,ca,Pt,fa,da,ha,_a,Vi,Fi,Ui,pa,Dn={},ga=[],hd=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Nn=Array.isArray;function Ke(e,t){for(var n in t)e[n]=t[n];return e}function Bi(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function E(e,t,n){var r,i,o,s={};for(o in t)o=="key"?r=t[o]:o=="ref"?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?Pn.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return jn(e,s,r,i,null)}function jn(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++ca,__i:-1,__u:0};return i==null&&M.vnode!=null&&M.vnode(o),o}function va(){return{current:null}}function $e(e){return e.children}function Re(e,t){this.props=e,this.context=t}function Yt(e,t){if(t==null)return e.__?Yt(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Yt(e):null}function ma(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return ma(e)}}function Gi(e){(!e.__d&&(e.__d=!0)&&Pt.push(e)&&!Rr.__r++||fa!=M.debounceRendering)&&((fa=M.debounceRendering)||da)(Rr)}function Rr(){for(var e,t,n,r,i,o,s,a=1;Pt.length;)Pt.length>a&&Pt.sort(ha),e=Pt.shift(),a=Pt.length,e.__d&&(n=void 0,i=(r=(t=e).__v).__e,o=[],s=[],t.__P&&((n=Ke({},r)).__v=r.__v+1,M.vnode&&M.vnode(n),Hi(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[i]:null,o,i??Yt(r),!!(32&r.__u),s),n.__v=r.__v,n.__.__k[n.__i]=n,Ca(o,n,s),n.__e!=i&&ma(n)));Rr.__r=0}function ya(e,t,n,r,i,o,s,a,u,l,f){var c,d,h,_,g,v,m=r&&r.__k||ga,w=t.length;for(u=_d(n,t,m,u,w),c=0;c<w;c++)(h=n.__k[c])!=null&&(d=h.__i==-1?Dn:m[h.__i]||Dn,h.__i=c,v=Hi(e,h,d,i,o,s,a,u,l,f),_=h.__e,h.ref&&d.ref!=h.ref&&(d.ref&&Wi(d.ref,null,h),f.push(h.ref,h.__c||_,h)),g==null&&_!=null&&(g=_),4&h.__u||d.__k===h.__k?u=ba(h,u,e):typeof h.type=="function"&&v!==void 0?u=v:_&&(u=_.nextSibling),h.__u&=-7);return n.__e=g,u}function _d(e,t,n,r,i){var o,s,a,u,l,f=n.length,c=f,d=0;for(e.__k=new Array(i),o=0;o<i;o++)(s=t[o])!=null&&typeof s!="boolean"&&typeof s!="function"?(u=o+d,(s=e.__k[o]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?jn(null,s,null,null,null):Nn(s)?jn($e,{children:s},null,null,null):s.constructor==null&&s.__b>0?jn(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,(l=s.__i=pd(s,n,u,c))!=-1&&(c--,(a=n[l])&&(a.__u|=2)),a==null||a.__v==null?(l==-1&&(i>f?d--:i<f&&d++),typeof s.type!="function"&&(s.__u|=4)):l!=u&&(l==u-1?d--:l==u+1?d++:(l>u?d--:d++,s.__u|=4))):e.__k[o]=null;if(c)for(o=0;o<f;o++)(a=n[o])!=null&&(2&a.__u)==0&&(a.__e==r&&(r=Yt(a)),Ea(a,a));return r}function ba(e,t,n){var r,i;if(typeof e.type=="function"){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=ba(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Yt(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function ot(e,t){return t=t||[],e==null||typeof e=="boolean"||(Nn(e)?e.some(function(n){ot(n,t)}):t.push(e)),t}function pd(e,t,n,r){var i,o,s,a=e.key,u=e.type,l=t[n],f=l!=null&&(2&l.__u)==0;if(l===null&&e.key==null||f&&a==l.key&&u==l.type)return n;if(r>(f?1:0)){for(i=n-1,o=n+1;i>=0||o<t.length;)if((l=t[s=i>=0?i--:o++])!=null&&(2&l.__u)==0&&a==l.key&&u==l.type)return s}return-1}function wa(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||hd.test(t)?n:n+"px"}function Pr(e,t,n,r,i){var o,s;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||wa(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||wa(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(_a,"$1")),s=t.toLowerCase(),t=s in e||t=="onFocusOut"||t=="onFocusIn"?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=Vi,e.addEventListener(t,o?Ui:Fi,o)):e.removeEventListener(t,o?Ui:Fi,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Sa(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Vi++;else if(t.t<n.u)return;return n(M.event?M.event(t):t)}}}function Hi(e,t,n,r,i,o,s,a,u,l){var f,c,d,h,_,g,v,m,w,x,N,ee,be,sr,vi,ar,ts,Qe=t.type;if(t.constructor!=null)return null;128&n.__u&&(u=!!(32&n.__u),o=[a=t.__e=n.__e]),(f=M.__b)&&f(t);e:if(typeof Qe=="function")try{if(m=t.props,w="prototype"in Qe&&Qe.prototype.render,x=(f=Qe.contextType)&&r[f.__c],N=f?x?x.props.value:f.__:r,n.__c?v=(c=t.__c=n.__c).__=c.__E:(w?t.__c=c=new Qe(m,N):(t.__c=c=new Re(m,N),c.constructor=Qe,c.render=vd),x&&x.sub(c),c.props=m,c.state||(c.state={}),c.context=N,c.__n=r,d=c.__d=!0,c.__h=[],c._sb=[]),w&&c.__s==null&&(c.__s=c.state),w&&Qe.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=Ke({},c.__s)),Ke(c.__s,Qe.getDerivedStateFromProps(m,c.__s))),h=c.props,_=c.state,c.__v=t,d)w&&Qe.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),w&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(w&&Qe.getDerivedStateFromProps==null&&m!==h&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(m,N),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(m,c.__s,N)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(c.props=m,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(Sn){Sn&&(Sn.__=t)}),ee=0;ee<c._sb.length;ee++)c.__h.push(c._sb[ee]);c._sb=[],c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(m,c.__s,N),w&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(h,_,g)})}if(c.context=N,c.props=m,c.__P=e,c.__e=!1,be=M.__r,sr=0,w){for(c.state=c.__s,c.__d=!1,be&&be(t),f=c.render(c.props,c.state,c.context),vi=0;vi<c._sb.length;vi++)c.__h.push(c._sb[vi]);c._sb=[]}else do c.__d=!1,be&&be(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++sr<25);c.state=c.__s,c.getChildContext!=null&&(r=Ke(Ke({},r),c.getChildContext())),w&&!d&&c.getSnapshotBeforeUpdate!=null&&(g=c.getSnapshotBeforeUpdate(h,_)),ar=f,f!=null&&f.type===$e&&f.key==null&&(ar=Oa(f.props.children)),a=ya(e,Nn(ar)?ar:[ar],t,n,r,i,o,s,a,u,l),c.base=t.__e,t.__u&=-161,c.__h.length&&s.push(c),v&&(c.__E=c.__=null)}catch(Sn){if(t.__v=null,u||o!=null)if(Sn.then){for(t.__u|=u?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__e=a}else{for(ts=o.length;ts--;)Bi(o[ts]);zi(t)}else t.__e=n.__e,t.__k=n.__k,Sn.then||zi(t);M.__e(Sn,t,n)}else o==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=gd(n.__e,t,n,r,i,o,s,u,l);return(f=M.diffed)&&f(t),128&t.__u?void 0:a}function zi(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(zi)}function Ca(e,t,n){for(var r=0;r<n.length;r++)Wi(n[r],n[++r],n[++r]);M.__c&&M.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){M.__e(o,i.__v)}})}function Oa(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Nn(e)?e.map(Oa):Ke({},e)}function gd(e,t,n,r,i,o,s,a,u){var l,f,c,d,h,_,g,v=n.props,m=t.props,w=t.type;if(w=="svg"?i="http://www.w3.org/2000/svg":w=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(l=0;l<o.length;l++)if((h=o[l])&&"setAttribute"in h==!!w&&(w?h.localName==w:h.nodeType==3)){e=h,o[l]=null;break}}if(e==null){if(w==null)return document.createTextNode(m);e=document.createElementNS(i,w,m.is&&m),a&&(M.__m&&M.__m(t,o),a=!1),o=null}if(w==null)v===m||a&&e.data==m||(e.data=m);else{if(o=o&&Pn.call(e.childNodes),v=n.props||Dn,!a&&o!=null)for(v={},l=0;l<e.attributes.length;l++)v[(h=e.attributes[l]).name]=h.value;for(l in v)if(h=v[l],l!="children"){if(l=="dangerouslySetInnerHTML")c=h;else if(!(l in m)){if(l=="value"&&"defaultValue"in m||l=="checked"&&"defaultChecked"in m)continue;Pr(e,l,null,h,i)}}for(l in m)h=m[l],l=="children"?d=h:l=="dangerouslySetInnerHTML"?f=h:l=="value"?_=h:l=="checked"?g=h:a&&typeof h!="function"||v[l]===h||Pr(e,l,h,v[l],i);if(f)a||c&&(f.__html==c.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),ya(t.type=="template"?e.content:e,Nn(d)?d:[d],t,n,r,w=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&Yt(n,0),a,u),o!=null)for(l=o.length;l--;)Bi(o[l]);a||(l="value",w=="progress"&&_==null?e.removeAttribute("value"):_!=null&&(_!==e[l]||w=="progress"&&!_||w=="option"&&_!=v[l])&&Pr(e,l,_,v[l],i),l="checked",g!=null&&g!=e[l]&&Pr(e,l,g,v[l],i))}return e}function Wi(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(i){M.__e(i,n)}}function Ea(e,t,n){var r,i;if(M.unmount&&M.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Wi(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){M.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Ea(r[i],t,n||typeof e.type!="function");n||Bi(e.__e),e.__c=e.__=e.__e=void 0}function vd(e,t,n){return this.constructor(e,n)}function vt(e,t,n){var r,i,o,s;t==document&&(t=document.documentElement),M.__&&M.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],s=[],Hi(t,e=(!r&&n||t).__k=E($e,null,[e]),i||Dn,Dn,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?Pn.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,s),Ca(o,e,s)}function qi(e,t){vt(e,t,qi)}function Ki(e,t,n){var r,i,o,s,a=Ke({},e.props);for(o in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)o=="key"?r=t[o]:o=="ref"?i=t[o]:a[o]=t[o]===void 0&&s!=null?s[o]:t[o];return arguments.length>2&&(a.children=arguments.length>3?Pn.call(arguments,2):n),jn(e.type,a,r||e.key,i||e.ref,null)}function Aa(e){function t(n){var r,i;return this.getChildContext||(r=new Set,(i={})[t.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(o){this.props.value!=o.value&&r.forEach(function(s){s.__e=!0,Gi(s)})},this.sub=function(o){r.add(o);var s=o.componentWillUnmount;o.componentWillUnmount=function(){r&&r.delete(o),s&&s.call(o)}}),n.children}return t.__c="__cC"+pa++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}Pn=ga.slice,M={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(a){e=a}throw e}},ca=0,Re.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Ke({},this.state),typeof e=="function"&&(e=e(Ke({},n),this.props)),e&&Ke(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Gi(this))},Re.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Gi(this))},Re.prototype.render=$e,Pt=[],da=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ha=function(e,t){return e.__v.__b-t.__v.__b},Rr.__r=0,_a=/(PointerCapture)$|Capture$/i,Vi=0,Fi=Sa(!1),Ui=Sa(!0),pa=0;var st,j,Ji,xa,Xt=0,Ta=[],H=M,Ma=H.__b,ka=H.__r,Ia=H.diffed,$a=H.__c,Ra=H.unmount,Pa=H.__;function Dt(e,t){H.__h&&H.__h(j,e,Xt||t),Xt=0;var n=j.__H||(j.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Qt(e){return Xt=1,Dr(Na,e)}function Dr(e,t,n){var r=Dt(st++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Na(void 0,t),function(a){var u=r.__N?r.__N[0]:r.__[0],l=r.t(u,a);u!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=j,!j.__f)){var i=function(a,u,l){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(d){return!!d.__c});if(f.every(function(d){return!d.__N}))return!o||o.call(this,a,u,l);var c=r.__c.props!==a;return f.forEach(function(d){if(d.__N){var h=d.__[0];d.__=d.__N,d.__N=void 0,h!==d.__[0]&&(c=!0)}}),o&&o.call(this,a,u,l)||c};j.__f=!0;var o=j.shouldComponentUpdate,s=j.componentWillUpdate;j.componentWillUpdate=function(a,u,l){if(this.__e){var f=o;o=void 0,i(a,u,l),o=f}s&&s.call(this,a,u,l)},j.shouldComponentUpdate=i}return r.__N||r.__}function Nr(e,t){var n=Dt(st++,3);!H.__s&&ro(n.__H,t)&&(n.__=e,n.u=t,j.__H.__h.push(n))}function en(e,t){var n=Dt(st++,4);!H.__s&&ro(n.__H,t)&&(n.__=e,n.u=t,j.__h.push(n))}function Zi(e){return Xt=5,Ln(function(){return{current:e}},[])}function Yi(e,t,n){Xt=6,en(function(){if(typeof e=="function"){var r=e(t());return function(){e(null),r&&typeof r=="function"&&r()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function Ln(e,t){var n=Dt(st++,7);return ro(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Xi(e,t){return Xt=8,Ln(function(){return e},t)}function Qi(e){var t=j.context[e.__c],n=Dt(st++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(j)),t.props.value):e.__}function eo(e,t){H.useDebugValue&&H.useDebugValue(t?t(e):e)}function md(e){var t=Dt(st++,10),n=Qt();return t.__=e,j.componentDidCatch||(j.componentDidCatch=function(r,i){t.__&&t.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function to(){var e=Dt(st++,11);if(!e.__){for(var t=j.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function yd(){for(var e;e=Ta.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(jr),e.__H.__h.forEach(no),e.__H.__h=[]}catch(t){e.__H.__h=[],H.__e(t,e.__v)}}H.__b=function(e){j=null,Ma&&Ma(e)},H.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Pa&&Pa(e,t)},H.__r=function(e){ka&&ka(e),st=0;var t=(j=e.__c).__H;t&&(Ji===j?(t.__h=[],j.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(jr),t.__h.forEach(no),t.__h=[],st=0)),Ji=j},H.diffed=function(e){Ia&&Ia(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ta.push(t)!==1&&xa===H.requestAnimationFrame||((xa=H.requestAnimationFrame)||bd)(yd)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Ji=j=null},H.__c=function(e,t){t.some(function(n){try{n.__h.forEach(jr),n.__h=n.__h.filter(function(r){return!r.__||no(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],H.__e(r,n.__v)}}),$a&&$a(e,t)},H.unmount=function(e){Ra&&Ra(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{jr(r)}catch(i){t=i}}),n.__H=void 0,t&&H.__e(t,n.__v))};var Da=typeof requestAnimationFrame=="function";function bd(e){var t,n=function(){clearTimeout(r),Da&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Da&&(t=requestAnimationFrame(n))}function jr(e){var t=j,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),j=t}function no(e){var t=j;e.__c=e.__(),j=t}function ro(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Na(e,t){return typeof t=="function"?t(e):t}function ja(e,t){for(var n in t)e[n]=t[n];return e}function io(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function oo(e,t){var n=t(),r=Qt({t:{__:n,u:t}}),i=r[0].t,o=r[1];return en(function(){i.__=n,i.u=t,so(i)&&o({t:i})},[e,n,t]),Nr(function(){return so(i)&&o({t:i}),e(function(){so(i)&&o({t:i})})},[e]),n}function so(e){var t,n,r=e.u,i=e.__;try{var o=r();return!((t=i)===(n=o)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function ao(e){e()}function uo(e){return e}function lo(){return[!1,ao]}var co=en;function Lr(e,t){this.props=e,this.context=t}function Vn(e,t){function n(i){var o=this.props.ref,s=o==i.ref;return!s&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!s:io(this.props,i)}function r(i){return this.shouldComponentUpdate=n,E(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Lr.prototype=new Re).isPureReactComponent=!0,Lr.prototype.shouldComponentUpdate=function(e,t){return io(this.props,e)||io(this.state,t)};var La=M.__b;M.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),La&&La(e)};var wd=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Fn(e){function t(n){var r=ja({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=wd,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Va=function(e,t){return e==null?null:ot(ot(e).map(t))},Fa={map:Va,forEach:Va,count:function(e){return e?ot(e).length:0},only:function(e){var t=ot(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:ot},Sd=M.__e;M.__e=function(e,t,n,r){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}Sd(e,t,n,r)};var Ua=M.unmount;function Ba(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=ja({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Ba(r,t,n)})),e}function Ga(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Ga(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Un(){this.__u=0,this.o=null,this.__b=null}function Ha(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function za(e){var t,n,r;function i(o){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return E(n,o)}return i.displayName="Lazy",i.__f=!0,i}function tn(){this.i=null,this.l=null}M.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ua&&Ua(e)},(Un.prototype=new Re).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=Ha(r.__v),o=!1,s=function(){o||(o=!0,n.__R=null,i?i(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var u=r.state.__a;r.__v.__k[0]=Ga(u,u.__c.__P,u.__c.__O)}var l;for(r.setState({__a:r.__b=null});l=r.o.pop();)l.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Un.prototype.componentWillUnmount=function(){this.o=[]},Un.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Ba(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&E($e,null,e.fallback);return i&&(i.__u&=-33),[E($e,null,t.__a?null:e.children),i]};var Wa=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function Cd(e){return this.getChildContext=function(){return e.context},e.children}function Od(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){vt(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},insertBefore:function(i,o){this.childNodes.push(i),t.h.insertBefore(i,o)},removeChild:function(i){this.childNodes.splice(this.childNodes.indexOf(i)>>>1,1),t.h.removeChild(i)}}}vt(E(Cd,{context:t.context},e.__v),t.v)}function qa(e,t){var n=E(Od,{__v:e,h:t});return n.containerInfo=t,n}(tn.prototype=new Re).__a=function(e){var t=this,n=Ha(t.__v),r=t.l.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),Wa(t,e,r)):i()};n?n(o):o()}},tn.prototype.render=function(e){this.i=null,this.l=new Map;var t=ot(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},tn.prototype.componentDidUpdate=tn.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){Wa(e,n,t)})};var Ka=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Ed=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ad=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,xd=/[A-Z0-9]/g,Td=typeof document<"u",Md=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Ja(e,t,n){return t.__k==null&&(t.textContent=""),vt(e,t),typeof n=="function"&&n(),e?e.__c:null}function Za(e,t,n){return qi(e,t),typeof n=="function"&&n(),e?e.__c:null}Re.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Re.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Ya=M.event;function kd(){}function Id(){return this.cancelBubble}function $d(){return this.defaultPrevented}M.event=function(e){return Ya&&(e=Ya(e)),e.persist=kd,e.isPropagationStopped=Id,e.isDefaultPrevented=$d,e.nativeEvent=e};var fo,Rd={enumerable:!1,configurable:!0,get:function(){return this.class}},Xa=M.vnode;M.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,i={},o=r.indexOf("-")===-1;for(var s in n){var a=n[s];if(!(s==="value"&&"defaultValue"in n&&a==null||Td&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var u=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&a===!0?a="":u==="translate"&&a==="no"?a=!1:u[0]==="o"&&u[1]==="n"?u==="ondoubleclick"?s="ondblclick":u!=="onchange"||r!=="input"&&r!=="textarea"||Md(n.type)?u==="onfocus"?s="onfocusin":u==="onblur"?s="onfocusout":Ad.test(s)&&(s=u):u=s="oninput":o&&Ed.test(s)?s=s.replace(xd,"-$&").toLowerCase():a===null&&(a=void 0),u==="oninput"&&i[s=u]&&(s="oninputCapture"),i[s]=a}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=ot(n.children).forEach(function(l){l.props.selected=i.value.indexOf(l.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=ot(n.children).forEach(function(l){l.props.selected=i.multiple?i.defaultValue.indexOf(l.props.value)!=-1:i.defaultValue==l.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",Rd)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=Ka,Xa&&Xa(e)};var Qa=M.__r;M.__r=function(e){Qa&&Qa(e),fo=e.__c};var eu=M.diffed;M.diffed=function(e){eu&&eu(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),fo=null};var tu={ReactCurrentDispatcher:{current:{readContext:function(e){return fo.__n[e.__c].props.value},useCallback:Xi,useContext:Qi,useDebugValue:eo,useDeferredValue:uo,useEffect:Nr,useId:to,useImperativeHandle:Yi,useInsertionEffect:co,useLayoutEffect:en,useMemo:Ln,useReducer:Dr,useRef:Zi,useState:Qt,useSyncExternalStore:oo,useTransition:lo}}},Pd="18.3.1";function nu(e){return E.bind(null,e)}function Bn(e){return!!e&&e.$$typeof===Ka}function ru(e){return Bn(e)&&e.type===$e}function iu(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function ou(e){return Bn(e)?Ki.apply(null,arguments):e}function su(e){return!!e.__k&&(vt(null,e),!0)}function au(e){return e&&(e.base||e.nodeType===1&&e)||null}var ho=function(e,t){return e(t)},uu=function(e,t){return e(t)},lu=$e,cu=Bn,Vr={useState:Qt,useId:to,useReducer:Dr,useEffect:Nr,useLayoutEffect:en,useInsertionEffect:co,useTransition:lo,useDeferredValue:uo,useSyncExternalStore:oo,startTransition:ao,useRef:Zi,useImperativeHandle:Yi,useMemo:Ln,useCallback:Xi,useContext:Qi,useDebugValue:eo,version:"18.3.1",Children:Fa,render:Ja,hydrate:Za,unmountComponentAtNode:su,createPortal:qa,createElement:E,createContext:Aa,createFactory:nu,cloneElement:ou,createRef:va,Fragment:$e,isValidElement:Bn,isElement:cu,isFragment:ru,isMemo:iu,findDOMNode:au,Component:Re,PureComponent:Lr,memo:Vn,forwardRef:Fn,flushSync:uu,unstable_batchedUpdates:ho,StrictMode:lu,Suspense:Un,SuspenseList:tn,lazy:za,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:tu};const Dd=Object.freeze(Object.defineProperty({__proto__:null,Children:Fa,Component:Re,Fragment:$e,PureComponent:Lr,StrictMode:lu,Suspense:Un,SuspenseList:tn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:tu,cloneElement:ou,createContext:Aa,createElement:E,createFactory:nu,createPortal:qa,createRef:va,default:Vr,findDOMNode:au,flushSync:uu,forwardRef:Fn,hydrate:Za,isElement:cu,isFragment:ru,isMemo:iu,isValidElement:Bn,lazy:za,memo:Vn,render:Ja,startTransition:ao,unmountComponentAtNode:su,unstable_batchedUpdates:ho,useCallback:Xi,useContext:Qi,useDebugValue:eo,useDeferredValue:uo,useEffect:Nr,useErrorBoundary:md,useId:to,useImperativeHandle:Yi,useInsertionEffect:co,useLayoutEffect:en,useMemo:Ln,useReducer:Dr,useRef:Zi,useState:Qt,useSyncExternalStore:oo,useTransition:lo,version:Pd},Symbol.toStringTag,{value:"Module"}));if(!Qt)throw new Error("mobx-react-lite requires React with Hooks support");if(!zs)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function Nd(e){e()}function jd(e){e||(e=Nd),Bf({reactionScheduler:e})}function Ld(e){return Gf(e)}var Vd=1e4,Fd=1e4,Ud=function(){function e(t){var n=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(r){r===void 0&&(r=Vd),clearTimeout(n.sweepTimeout),n.sweepTimeout=void 0;var i=Date.now();n.registrations.forEach(function(o,s){i-o.registeredAt>=r&&(n.finalize(o.value),n.registrations.delete(s))}),n.registrations.size>0&&n.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n,r){this.registrations.set(r,{value:n,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.registrations.delete(t)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,Fd))}}),e}(),Bd=typeof FinalizationRegistry<"u"?FinalizationRegistry:Ud,_o=new Bd(function(e){var t;(t=e.reaction)===null||t===void 0||t.dispose(),e.reaction=null});function Gd(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var po={exports:{}},go={};const Hd=Gd(Dd);/**
|
|
1
|
+
(function(){"use strict";function k(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var mc={};function cr(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:mc}var ns=Object.assign,fr=Object.getOwnPropertyDescriptor,Be=Object.defineProperty,dr=Object.prototype,yi=[];Object.freeze(yi);var bi={};Object.freeze(bi);var yc=typeof Proxy<"u",bc=Object.toString();function rs(){yc||k("Proxy not available")}function is(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var zt=function(){};function xe(e){return typeof e=="function"}function Et(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function hr(e){return e!==null&&typeof e=="object"}function tt(e){if(!hr(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n.toString()===bc}function os(e){var t=e?.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function En(e,t,n){Be(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function ss(e,t,n){Be(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function At(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(r){return hr(r)&&r[n]===!0}}function Wt(e){return e!=null&&Object.prototype.toString.call(e)==="[object Map]"}function wc(e){var t=Object.getPrototypeOf(e),n=Object.getPrototypeOf(t),r=Object.getPrototypeOf(n);return r===null}function nt(e){return e!=null&&Object.prototype.toString.call(e)==="[object Set]"}var as=typeof Object.getOwnPropertySymbols<"u";function Sc(e){var t=Object.keys(e);if(!as)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter(function(r){return dr.propertyIsEnumerable.call(e,r)})):t}var qt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:as?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function us(e){return e===null?null:typeof e=="object"?""+e:e}function rt(e,t){return dr.hasOwnProperty.call(e,t)}var Cc=Object.getOwnPropertyDescriptors||function(t){var n={};return qt(t).forEach(function(r){n[r]=fr(t,r)}),n};function he(e,t){return!!(e&t)}function _e(e,t,n){return n?e|=t:e&=~t,e}function ls(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Oc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ac(r.key),r)}}function Kt(e,t,n){return t&&Oc(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jt(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=xc(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xt(){return xt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xt.apply(null,arguments)}function cs(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,wi(e,t)}function wi(e,t){return wi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},wi(e,t)}function Ec(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Ac(e){var t=Ec(e,"string");return typeof t=="symbol"?t:t+""}function xc(e,t){if(e){if(typeof e=="string")return ls(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ls(e,t):void 0}}var Ge=Symbol("mobx-stored-annotations");function He(e){function t(n,r){if(xn(r))return e.decorate_20223_(n,r);An(n,r,e)}return Object.assign(t,e)}function An(e,t,n){rt(e,Ge)||En(e,Ge,xt({},e[Ge])),Pc(n)||(e[Ge][t]=n)}function Tc(e){return rt(e,Ge)||En(e,Ge,xt({},e[Ge])),e[Ge]}function xn(e){return typeof e=="object"&&typeof e.kind=="string"}var E=Symbol("mobx administration"),gt=function(){function e(n){n===void 0&&(n="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=I.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=n}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},t.reportObserved=function(){return ks(this)},t.reportChanged=function(){Se(),Is(this),Ce()},t.toString=function(){return this.name_},Kt(e,[{key:"isBeingObserved",get:function(){return he(this.flags_,e.isBeingObservedMask_)},set:function(r){this.flags_=_e(this.flags_,e.isBeingObservedMask_,r)}},{key:"isPendingUnobservation",get:function(){return he(this.flags_,e.isPendingUnobservationMask_)},set:function(r){this.flags_=_e(this.flags_,e.isPendingUnobservationMask_,r)}},{key:"diffValue",get:function(){return he(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=_e(this.flags_,e.diffValueMask_,r===1)}}])}();gt.isBeingObservedMask_=1,gt.isPendingUnobservationMask_=2,gt.diffValueMask_=4;var Si=At("Atom",gt);function fs(e,t,n){t===void 0&&(t=zt),n===void 0&&(n=zt);var r=new gt(e);return t!==zt&&Ff(r,t),n!==zt&&Ls(r,n),r}function Mc(e,t){return aa(e,t)}function kc(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Zt={structural:Mc,default:kc};function Tt(e,t,n){return Hs(e)?e:Array.isArray(e)?ne.array(e,{name:n}):tt(e)?ne.object(e,void 0,{name:n}):Wt(e)?ne.map(e,{name:n}):nt(e)?ne.set(e,{name:n}):typeof e=="function"&&!$n(e)&&!Rn(e)?os(e)?Yt(e):In(n,e):e}function Ic(e,t,n){if(e==null||Rr(e)||Ir(e)||Rt(e)||qe(e))return e;if(Array.isArray(e))return ne.array(e,{name:n,deep:!1});if(tt(e))return ne.object(e,void 0,{name:n,deep:!1});if(Wt(e))return ne.map(e,{name:n,deep:!1});if(nt(e))return ne.set(e,{name:n,deep:!1})}function _r(e){return e}function $c(e,t){return aa(e,t)?t:e}var Rc="override";function Pc(e){return e.annotationType_===Rc}function Tn(e,t){return{annotationType_:e,options_:t,make_:Dc,extend_:Nc,decorate_20223_:jc}}function Dc(e,t,n,r){var i;if((i=this.options_)!=null&&i.bound)return this.extend_(e,t,n,!1)===null?0:1;if(r===e.target_)return this.extend_(e,t,n,!1)===null?0:2;if($n(n.value))return 1;var o=ds(e,this,t,n,!1);return Be(r,t,o),2}function Nc(e,t,n,r){var i=ds(e,this,t,n);return e.defineProperty_(t,i,r)}function jc(e,t){var n=t.kind,r=t.name,i=t.addInitializer,o=this,s=function(l){var f,c,d,h;return Mt((f=(c=o.options_)==null?void 0:c.name)!=null?f:r.toString(),l,(d=(h=o.options_)==null?void 0:h.autoAction)!=null?d:!1)};if(n=="field")return function(u){var l,f=u;return $n(f)||(f=s(f)),(l=o.options_)!=null&&l.bound&&(f=f.bind(this),f.isMobxAction=!0),f};if(n=="method"){var a;return $n(e)||(e=s(e)),(a=this.options_)!=null&&a.bound&&i(function(){var u=this,l=u[r].bind(u);l.isMobxAction=!0,u[r]=l}),e}k("Cannot apply '"+o.annotationType_+"' to '"+String(r)+"' (kind: "+n+"):"+(`
|
|
3
|
+
'`+o.annotationType_+"' can only be used on properties with a function value."))}function Lc(e,t,n,r){t.annotationType_,r.value}function ds(e,t,n,r,i){var o,s,a,u,l,f,c;i===void 0&&(i=y.safeDescriptors),Lc(e,t,n,r);var d=r.value;if((o=t.options_)!=null&&o.bound){var h;d=d.bind((h=e.proxy_)!=null?h:e.target_)}return{value:Mt((s=(a=t.options_)==null?void 0:a.name)!=null?s:n.toString(),d,(u=(l=t.options_)==null?void 0:l.autoAction)!=null?u:!1,(f=t.options_)!=null&&f.bound?(c=e.proxy_)!=null?c:e.target_:void 0),configurable:i?e.isPlainObject_:!0,enumerable:!1,writable:!i}}function hs(e,t){return{annotationType_:e,options_:t,make_:Vc,extend_:Fc,decorate_20223_:Uc}}function Vc(e,t,n,r){var i;if(r===e.target_)return this.extend_(e,t,n,!1)===null?0:2;if((i=this.options_)!=null&&i.bound&&(!rt(e.target_,t)||!Rn(e.target_[t]))&&this.extend_(e,t,n,!1)===null)return 0;if(Rn(n.value))return 1;var o=_s(e,this,t,n,!1,!1);return Be(r,t,o),2}function Fc(e,t,n,r){var i,o=_s(e,this,t,n,(i=this.options_)==null?void 0:i.bound);return e.defineProperty_(t,o,r)}function Uc(e,t){var n,r=t.name,i=t.addInitializer;return Rn(e)||(e=Yt(e)),(n=this.options_)!=null&&n.bound&&i(function(){var o=this,s=o[r].bind(o);s.isMobXFlow=!0,o[r]=s}),e}function Bc(e,t,n,r){t.annotationType_,r.value}function _s(e,t,n,r,i,o){o===void 0&&(o=y.safeDescriptors),Bc(e,t,n,r);var s=r.value;if(Rn(s)||(s=Yt(s)),i){var a;s=s.bind((a=e.proxy_)!=null?a:e.target_),s.isMobXFlow=!0}return{value:s,configurable:o?e.isPlainObject_:!0,enumerable:!1,writable:!o}}function Ci(e,t){return{annotationType_:e,options_:t,make_:Gc,extend_:Hc,decorate_20223_:zc}}function Gc(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function Hc(e,t,n,r){return Wc(e,this,t,n),e.defineComputedProperty_(t,xt({},this.options_,{get:n.get,set:n.set}),r)}function zc(e,t){var n=this,r=t.name,i=t.addInitializer;return i(function(){var o=Pt(this)[E],s=xt({},n.options_,{get:e,context:this});s.name||(s.name="ObservableObject."+r.toString()),o.values_.set(r,new Te(s))}),function(){return this[E].getObservablePropValue_(r)}}function Wc(e,t,n,r){t.annotationType_,r.get}function pr(e,t){return{annotationType_:e,options_:t,make_:qc,extend_:Kc,decorate_20223_:Jc}}function qc(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function Kc(e,t,n,r){var i,o;return Zc(e,this),e.defineObservableProperty_(t,n.value,(i=(o=this.options_)==null?void 0:o.enhancer)!=null?i:Tt,r)}function Jc(e,t){var n=this,r=t.kind,i=t.name,o=new WeakSet;function s(a,u){var l,f,c=Pt(a)[E],d=new kt(u,(l=(f=n.options_)==null?void 0:f.enhancer)!=null?l:Tt,"ObservableObject."+i.toString(),!1);c.values_.set(i,d),o.add(a)}if(r=="accessor")return{get:function(){return o.has(this)||s(this,e.get.call(this)),this[E].getObservablePropValue_(i)},set:function(u){return o.has(this)||s(this,u),this[E].setObservablePropValue_(i,u)},init:function(u){return o.has(this)||s(this,u),u}}}function Zc(e,t,n,r){t.annotationType_}var Yc="true",Xc=ps();function ps(e){return{annotationType_:Yc,options_:e,make_:Qc,extend_:ef,decorate_20223_:tf}}function Qc(e,t,n,r){var i,o;if(n.get)return mr.make_(e,t,n,r);if(n.set){var s=Mt(t.toString(),n.set);return r===e.target_?e.defineProperty_(t,{configurable:y.safeDescriptors?e.isPlainObject_:!0,set:s})===null?0:2:(Be(r,t,{configurable:!0,set:s}),2)}if(r!==e.target_&&typeof n.value=="function"){var a;if(os(n.value)){var u,l=(u=this.options_)!=null&&u.autoBind?Yt.bound:Yt;return l.make_(e,t,n,r)}var f=(a=this.options_)!=null&&a.autoBind?In.bound:In;return f.make_(e,t,n,r)}var c=((i=this.options_)==null?void 0:i.deep)===!1?ne.ref:ne;if(typeof n.value=="function"&&(o=this.options_)!=null&&o.autoBind){var d;n.value=n.value.bind((d=e.proxy_)!=null?d:e.target_)}return c.make_(e,t,n,r)}function ef(e,t,n,r){var i,o;if(n.get)return mr.extend_(e,t,n,r);if(n.set)return e.defineProperty_(t,{configurable:y.safeDescriptors?e.isPlainObject_:!0,set:Mt(t.toString(),n.set)},r);if(typeof n.value=="function"&&(i=this.options_)!=null&&i.autoBind){var s;n.value=n.value.bind((s=e.proxy_)!=null?s:e.target_)}var a=((o=this.options_)==null?void 0:o.deep)===!1?ne.ref:ne;return a.extend_(e,t,n,r)}function tf(e,t){k("'"+this.annotationType_+"' cannot be used as a decorator")}var nf="observable",rf="observable.ref",of="observable.shallow",sf="observable.struct",gs={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(gs);function gr(e){return e||gs}var Oi=pr(nf),af=pr(rf,{enhancer:_r}),uf=pr(of,{enhancer:Ic}),lf=pr(sf,{enhancer:$c}),vs=He(Oi);function vr(e){return e.deep===!0?Tt:e.deep===!1?_r:ff(e.defaultDecorator)}function cf(e){var t;return e?(t=e.defaultDecorator)!=null?t:ps(e):void 0}function ff(e){var t,n;return e&&(t=(n=e.options_)==null?void 0:n.enhancer)!=null?t:Tt}function ms(e,t,n){if(xn(t))return Oi.decorate_20223_(e,t);if(Et(t)){An(e,t,Oi);return}return Hs(e)?e:tt(e)?ne.object(e,t,n):Array.isArray(e)?ne.array(e,t):Wt(e)?ne.map(e,t):nt(e)?ne.set(e,t):typeof e=="object"&&e!==null?e:ne.box(e,t)}ns(ms,vs);var df={box:function(t,n){var r=gr(n);return new kt(t,vr(r),r.name,!0,r.equals)},array:function(t,n){var r=gr(n);return(y.useProxies===!1||r.proxy===!1?cd:ed)(t,vr(r),r.name)},map:function(t,n){var r=gr(n);return new Ks(t,vr(r),r.name)},set:function(t,n){var r=gr(n);return new Zs(t,vr(r),r.name)},object:function(t,n,r){return mt(function(){return Fs(y.useProxies===!1||r?.proxy===!1?Pt({},r):Zf({},r),t,n)})},ref:He(af),shallow:He(uf),deep:vs,struct:He(lf)},ne=ns(ms,df),ys="computed",hf="computed.struct",Ei=Ci(ys),_f=Ci(hf,{equals:Zt.structural}),mr=function(t,n){if(xn(n))return Ei.decorate_20223_(t,n);if(Et(n))return An(t,n,Ei);if(tt(t))return He(Ci(ys,t));var r=tt(n)?n:{};return r.get=t,r.name||(r.name=t.name||""),new Te(r)};Object.assign(mr,Ei),mr.struct=He(_f);var bs,ws,yr=0,pf=1,gf=(bs=(ws=fr(function(){},"name"))==null?void 0:ws.configurable)!=null?bs:!1,Ss={value:"action",configurable:!0,writable:!1,enumerable:!1};function Mt(e,t,n,r){n===void 0&&(n=!1);function i(){return Cs(e,n,t,r||this,arguments)}return i.isMobxAction=!0,i.toString=function(){return t.toString()},gf&&(Ss.value=e,Be(i,"name",Ss)),i}function Cs(e,t,n,r,i){var o=vf(e,t);try{return n.apply(r,i)}catch(s){throw o.error_=s,s}finally{mf(o)}}function vf(e,t,n,r){var i=!1,o=0,s=y.trackingDerivation,a=!t||!s;Se();var u=y.allowStateChanges;a&&(It(),u=br(!0));var l=Ti(!0),f={runAsAction_:a,prevDerivation_:s,prevAllowStateChanges_:u,prevAllowStateReads_:l,notifySpy_:i,startTime_:o,actionId_:pf++,parentActionId_:yr};return yr=f.actionId_,f}function mf(e){yr!==e.actionId_&&k(30),yr=e.parentActionId_,e.error_!==void 0&&(y.suppressReactionErrors=!0),wr(e.prevAllowStateChanges_),Mn(e.prevAllowStateReads_),Ce(),e.runAsAction_&&it(e.prevDerivation_),y.suppressReactionErrors=!1}function yf(e,t){var n=br(e);try{return t()}finally{wr(n)}}function br(e){var t=y.allowStateChanges;return y.allowStateChanges=e,t}function wr(e){y.allowStateChanges=e}var kt=function(e){function t(r,i,o,s,a){var u;return o===void 0&&(o="ObservableValue"),a===void 0&&(a=Zt.default),u=e.call(this,o)||this,u.enhancer=void 0,u.name_=void 0,u.equals=void 0,u.hasUnreportedChange_=!1,u.interceptors_=void 0,u.changeListeners_=void 0,u.value_=void 0,u.dehancer=void 0,u.enhancer=i,u.name_=o,u.equals=a,u.value_=i(r,void 0,o),u}cs(t,e);var n=t.prototype;return n.dehanceValue=function(i){return this.dehancer!==void 0?this.dehancer(i):i},n.set=function(i){this.value_,i=this.prepareNewValue_(i),i!==y.UNCHANGED&&this.setNewValue_(i)},n.prepareNewValue_=function(i){if(Oe(this)){var o=Ee(this,{object:this,type:We,newValue:i});if(!o)return y.UNCHANGED;i=o.newValue}return i=this.enhancer(i,this.value_,this.name_),this.equals(this.value_,i)?y.UNCHANGED:i},n.setNewValue_=function(i){var o=this.value_;this.value_=i,this.reportChanged(),Me(this)&&ke(this,{type:We,object:this,newValue:i,oldValue:o})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(i){return Pn(this,i)},n.observe_=function(i,o){return o&&i({observableKind:"value",debugObjectName:this.name_,object:this,type:We,newValue:this.value_,oldValue:void 0}),Dn(this,i)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return us(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}(gt),Te=function(){function e(n){this.dependenciesState_=I.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=I.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Or(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Cr.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,n.get||k(31),this.derivation=n.get,this.name_=n.name||"ComputedValue",n.set&&(this.setter_=Mt("ComputedValue-setter",n.set)),this.equals_=n.equals||(n.compareStructural||n.struct?Zt.structural:Zt.default),this.scope_=n.context,this.requiresReaction_=n.requiresReaction,this.keepAlive_=!!n.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){Of(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},t.get=function(){if(this.isComputing&&k(32,this.name_,this.derivation),y.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)Ai(this)&&(this.warnAboutUntrackedRead_(),Se(),this.value_=this.computeValue_(!1),Ce());else if(ks(this),Ai(this)){var r=y.trackingContext;this.keepAlive_&&!r&&(y.trackingContext=this),this.trackAndCompute()&&Cf(this),y.trackingContext=r}var i=this.value_;if(Er(i))throw i.cause;return i},t.set=function(r){if(this.setter_){this.isRunningSetter&&k(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,r)}finally{this.isRunningSetter=!1}}else k(34,this.name_)},t.trackAndCompute=function(){var r=this.value_,i=this.dependenciesState_===I.NOT_TRACKING_,o=this.computeValue_(!0),s=i||Er(r)||Er(o)||!this.equals_(r,o);return s&&(this.value_=o),s},t.computeValue_=function(r){this.isComputing=!0;var i=br(!1),o;if(r)o=Os(this,this.derivation,this.scope_);else if(y.disableErrorBoundaries===!0)o=this.derivation.call(this.scope_);else try{o=this.derivation.call(this.scope_)}catch(s){o=new Or(s)}return wr(i),this.isComputing=!1,o},t.suspend_=function(){this.keepAlive_||(xi(this),this.value_=void 0)},t.observe_=function(r,i){var o=this,s=!0,a=void 0;return Pf(function(){var u=o.get();if(!s||i){var l=It();r({observableKind:"computed",debugObjectName:o.name_,type:We,object:o,newValue:u,oldValue:a}),it(l)}s=!1,a=u})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return us(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},Kt(e,[{key:"isComputing",get:function(){return he(this.flags_,e.isComputingMask_)},set:function(r){this.flags_=_e(this.flags_,e.isComputingMask_,r)}},{key:"isRunningSetter",get:function(){return he(this.flags_,e.isRunningSetterMask_)},set:function(r){this.flags_=_e(this.flags_,e.isRunningSetterMask_,r)}},{key:"isBeingObserved",get:function(){return he(this.flags_,e.isBeingObservedMask_)},set:function(r){this.flags_=_e(this.flags_,e.isBeingObservedMask_,r)}},{key:"isPendingUnobservation",get:function(){return he(this.flags_,e.isPendingUnobservationMask_)},set:function(r){this.flags_=_e(this.flags_,e.isPendingUnobservationMask_,r)}},{key:"diffValue",get:function(){return he(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=_e(this.flags_,e.diffValueMask_,r===1)}}])}();Te.isComputingMask_=1,Te.isRunningSetterMask_=2,Te.isBeingObservedMask_=4,Te.isPendingUnobservationMask_=8,Te.diffValueMask_=16;var Sr=At("ComputedValue",Te),I;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(I||(I={}));var Cr;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(Cr||(Cr={}));var Or=function(t){this.cause=void 0,this.cause=t};function Er(e){return e instanceof Or}function Ai(e){switch(e.dependenciesState_){case I.UP_TO_DATE_:return!1;case I.NOT_TRACKING_:case I.STALE_:return!0;case I.POSSIBLY_STALE_:{for(var t=Ti(!0),n=It(),r=e.observing_,i=r.length,o=0;o<i;o++){var s=r[o];if(Sr(s)){if(y.disableErrorBoundaries)s.get();else try{s.get()}catch{return it(n),Mn(t),!0}if(e.dependenciesState_===I.STALE_)return it(n),Mn(t),!0}}return As(e),it(n),Mn(t),!1}}}function z0(e){}function Os(e,t,n){var r=Ti(!0);As(e),e.newObserving_=new Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++y.runId;var i=y.trackingDerivation;y.trackingDerivation=e,y.inBatch++;var o;if(y.disableErrorBoundaries===!0)o=t.call(n);else try{o=t.call(n)}catch(s){o=new Or(s)}return y.inBatch--,y.trackingDerivation=i,bf(e),Mn(r),o}function bf(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=I.UP_TO_DATE_,i=0,o=e.unboundDepsCount_,s=0;s<o;s++){var a=n[s];a.diffValue===0&&(a.diffValue=1,i!==s&&(n[i]=a),i++),a.dependenciesState_>r&&(r=a.dependenciesState_)}for(n.length=i,e.newObserving_=null,o=t.length;o--;){var u=t[o];u.diffValue===0&&Ts(u,e),u.diffValue=0}for(;i--;){var l=n[i];l.diffValue===1&&(l.diffValue=0,Sf(l,e))}r!==I.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}function xi(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)Ts(t[n],e);e.dependenciesState_=I.NOT_TRACKING_}function Es(e){var t=It();try{return e()}finally{it(t)}}function It(){var e=y.trackingDerivation;return y.trackingDerivation=null,e}function it(e){y.trackingDerivation=e}function Ti(e){var t=y.allowStateReads;return y.allowStateReads=e,t}function Mn(e){y.allowStateReads=e}function As(e){if(e.dependenciesState_!==I.UP_TO_DATE_){e.dependenciesState_=I.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=I.UP_TO_DATE_}}var Ar=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},xr=!0,xs=!1,y=function(){var e=cr();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(xr=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new Ar().version&&(xr=!1),xr?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Ar):(setTimeout(function(){xs||k(35)},1),new Ar)}();function wf(){if((y.pendingReactions.length||y.inBatch||y.isRunningReactions)&&k(36),xs=!0,xr){var e=cr();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),y=new Ar}}function Sf(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function Ts(e,t){e.observers_.delete(t),e.observers_.size===0&&Ms(e)}function Ms(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,y.pendingUnobservations.push(e))}function Se(){y.inBatch++}function Ce(){if(--y.inBatch===0){$s();for(var e=y.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,n.observers_.size===0&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBUO()),n instanceof Te&&n.suspend_())}y.pendingUnobservations=[]}}function ks(e){var t=y.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&y.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(e.observers_.size===0&&y.inBatch>0&&Ms(e),!1)}function Is(e){e.lowestObserverState_!==I.STALE_&&(e.lowestObserverState_=I.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===I.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=I.STALE_}))}function Cf(e){e.lowestObserverState_!==I.STALE_&&(e.lowestObserverState_=I.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===I.POSSIBLY_STALE_?t.dependenciesState_=I.STALE_:t.dependenciesState_===I.UP_TO_DATE_&&(e.lowestObserverState_=I.UP_TO_DATE_)}))}function Of(e){e.lowestObserverState_===I.UP_TO_DATE_&&(e.lowestObserverState_=I.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===I.UP_TO_DATE_&&(t.dependenciesState_=I.POSSIBLY_STALE_,t.onBecomeStale_())}))}var ze=function(){function e(n,r,i,o){n===void 0&&(n="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=I.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=Cr.NONE,this.name_=n,this.onInvalidate_=r,this.errorHandler_=i,this.requiresObservable_=o}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,y.pendingReactions.push(this),$s())},t.runReaction_=function(){if(!this.isDisposed){Se(),this.isScheduled=!1;var r=y.trackingContext;if(y.trackingContext=this,Ai(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(i){this.reportExceptionInDerivation_(i)}}y.trackingContext=r,Ce()}},t.track=function(r){if(!this.isDisposed){Se(),this.isRunning=!0;var i=y.trackingContext;y.trackingContext=this;var o=Os(this,r,void 0);y.trackingContext=i,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&xi(this),Er(o)&&this.reportExceptionInDerivation_(o.cause),Ce()}},t.reportExceptionInDerivation_=function(r){var i=this;if(this.errorHandler_){this.errorHandler_(r,this);return}if(y.disableErrorBoundaries)throw r;var o="[mobx] uncaught error in '"+this+"'";y.suppressReactionErrors||console.error(o,r),y.globalReactionErrorHandlers.forEach(function(s){return s(r,i)})},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(Se(),xi(this),Ce()))},t.getDisposer_=function(r){var i=this,o=function s(){i.dispose(),r==null||r.removeEventListener==null||r.removeEventListener("abort",s)};return r==null||r.addEventListener==null||r.addEventListener("abort",o),o[E]=this,o},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(r){},Kt(e,[{key:"isDisposed",get:function(){return he(this.flags_,e.isDisposedMask_)},set:function(r){this.flags_=_e(this.flags_,e.isDisposedMask_,r)}},{key:"isScheduled",get:function(){return he(this.flags_,e.isScheduledMask_)},set:function(r){this.flags_=_e(this.flags_,e.isScheduledMask_,r)}},{key:"isTrackPending",get:function(){return he(this.flags_,e.isTrackPendingMask_)},set:function(r){this.flags_=_e(this.flags_,e.isTrackPendingMask_,r)}},{key:"isRunning",get:function(){return he(this.flags_,e.isRunningMask_)},set:function(r){this.flags_=_e(this.flags_,e.isRunningMask_,r)}},{key:"diffValue",get:function(){return he(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=_e(this.flags_,e.diffValueMask_,r===1)}}])}();ze.isDisposedMask_=1,ze.isScheduledMask_=2,ze.isTrackPendingMask_=4,ze.isRunningMask_=8,ze.diffValueMask_=16;var Ef=100,Mi=function(t){return t()};function $s(){y.inBatch>0||y.isRunningReactions||Mi(Af)}function Af(){y.isRunningReactions=!0;for(var e=y.pendingReactions,t=0;e.length>0;){++t===Ef&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction_()}y.isRunningReactions=!1}var Tr=At("Reaction",ze);function xf(e){var t=Mi;Mi=function(r){return e(function(){return t(r)})}}function kn(){return!1}function W0(e){}function q0(e){}function K0(e){}function Tf(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var Rs="action",Mf="action.bound",Ps="autoAction",kf="autoAction.bound",Ds="<unnamed action>",ki=Tn(Rs),If=Tn(Mf,{bound:!0}),Ii=Tn(Ps,{autoAction:!0}),$f=Tn(kf,{autoAction:!0,bound:!0});function Ns(e){var t=function(r,i){if(xe(r))return Mt(r.name||Ds,r,e);if(xe(i))return Mt(r,i,e);if(xn(i))return(e?Ii:ki).decorate_20223_(r,i);if(Et(i))return An(r,i,e?Ii:ki);if(Et(r))return He(Tn(e?Ps:Rs,{name:r,autoAction:e}))};return t}var $t=Ns(!1);Object.assign($t,ki);var In=Ns(!0);Object.assign(In,Ii),$t.bound=He(If),In.bound=He($f);function Rf(e){return Cs(e.name||Ds,!1,e,this,void 0)}function $n(e){return xe(e)&&e.isMobxAction===!0}function Pf(e,t){var n,r,i,o;t===void 0&&(t=bi);var s=(n=(r=t)==null?void 0:r.name)!=null?n:"Autorun",a=!t.scheduler&&!t.delay,u;if(a)u=new ze(s,function(){this.track(c)},t.onError,t.requiresObservable);else{var l=js(t),f=!1;u=new ze(s,function(){f||(f=!0,l(function(){f=!1,u.isDisposed||u.track(c)}))},t.onError,t.requiresObservable)}function c(){e(u)}return(i=t)!=null&&(i=i.signal)!=null&&i.aborted||u.schedule_(),u.getDisposer_((o=t)==null?void 0:o.signal)}var Df=function(t){return t()};function js(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Df}function Nf(e,t,n){var r,i,o;n===void 0&&(n=bi);var s=(r=n.name)!=null?r:"Reaction",a=$t(s,n.onError?jf(n.onError,t):t),u=!n.scheduler&&!n.delay,l=js(n),f=!0,c=!1,d,h=n.compareStructural?Zt.structural:n.equals||Zt.default,_=new ze(s,function(){f||u?g():c||(c=!0,l(g))},n.onError,n.requiresObservable);function g(){if(c=!1,!_.isDisposed){var v=!1,m=d;_.track(function(){var w=yf(!1,function(){return e(_)});v=f||!h(d,w),d=w}),(f&&n.fireImmediately||!f&&v)&&a(d,m,_),f=!1}}return(i=n)!=null&&(i=i.signal)!=null&&i.aborted||_.schedule_(),_.getDisposer_((o=n)==null?void 0:o.signal)}function jf(e,t){return function(){try{return t.apply(this,arguments)}catch(n){e.call(this,n)}}}var Lf="onBO",Vf="onBUO";function Ff(e,t,n){return Vs(Lf,e,t,n)}function Ls(e,t,n){return Vs(Vf,e,t,n)}function Vs(e,t,n,r){var i=Pr(t),o=xe(r)?r:n,s=e+"L";return i[s]?i[s].add(o):i[s]=new Set([o]),function(){var a=i[s];a&&(a.delete(o),a.size===0&&delete i[s])}}var Uf="never",Mr="always",Bf="observed";function Gf(e){e.isolateGlobalState===!0&&wf();var t=e.useProxies,n=e.enforceActions;if(t!==void 0&&(y.useProxies=t===Mr?!0:t===Uf?!1:typeof Proxy<"u"),t==="ifavailable"&&(y.verifyProxies=!0),n!==void 0){var r=n===Mr?Mr:n===Bf;y.enforceActions=r,y.allowStateChanges=!(r===!0||r===Mr)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(i){i in e&&(y[i]=!!e[i])}),y.allowStateReads=!y.observableRequiresReaction,e.reactionScheduler&&xf(e.reactionScheduler)}function Fs(e,t,n,r){var i=Cc(t);return mt(function(){var o=Pt(e,r)[E];qt(i).forEach(function(s){o.extend_(s,i[s],n&&s in n?n[s]:!0)})}),e}function Hf(e,t){return Us(Pr(e,t))}function Us(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=zf(e.observing_).map(Us)),t}function zf(e){return Array.from(new Set(e))}var Wf=0;function Bs(){this.message="FLOW_CANCELLED"}Bs.prototype=Object.create(Error.prototype);var $i=hs("flow"),qf=hs("flow.bound",{bound:!0}),Yt=Object.assign(function(t,n){if(xn(n))return $i.decorate_20223_(t,n);if(Et(n))return An(t,n,$i);var r=t,i=r.name||"<unnamed flow>",o=function(){var a=this,u=arguments,l=++Wf,f=$t(i+" - runid: "+l+" - init",r).apply(a,u),c,d=void 0,h=new Promise(function(_,g){var v=0;c=g;function m(j){d=void 0;var z;try{z=$t(i+" - runid: "+l+" - yield "+v++,f.next).call(f,j)}catch(te){return g(te)}T(z)}function w(j){d=void 0;var z;try{z=$t(i+" - runid: "+l+" - yield "+v++,f.throw).call(f,j)}catch(te){return g(te)}T(z)}function T(j){if(xe(j?.then)){j.then(T,g);return}return j.done?_(j.value):(d=Promise.resolve(j.value),d.then(m,w))}m(void 0)});return h.cancel=$t(i+" - runid: "+l+" - cancel",function(){try{d&&Gs(d);var _=f.return(void 0),g=Promise.resolve(_.value);g.then(zt,zt),Gs(g),c(new Bs)}catch(v){c(v)}}),h};return o.isMobXFlow=!0,o},$i);Yt.bound=He(qf);function Gs(e){xe(e.cancel)&&e.cancel()}function Rn(e){return e?.isMobXFlow===!0}function Kf(e,t){return e?Rr(e)||!!e[E]||Si(e)||Tr(e)||Sr(e):!1}function Hs(e){return Kf(e)}function ot(e,t){t===void 0&&(t=void 0),Se();try{return e.apply(t)}finally{Ce()}}function Xt(e){return e[E]}var Jf={has:function(t,n){return Xt(t).has_(n)},get:function(t,n){return Xt(t).get_(n)},set:function(t,n,r){var i;return Et(n)?(i=Xt(t).set_(n,r,!0))!=null?i:!0:!1},deleteProperty:function(t,n){var r;return Et(n)?(r=Xt(t).delete_(n,!0))!=null?r:!0:!1},defineProperty:function(t,n,r){var i;return(i=Xt(t).defineProperty_(n,r))!=null?i:!0},ownKeys:function(t){return Xt(t).ownKeys_()},preventExtensions:function(t){k(13)}};function Zf(e,t){var n,r;return rs(),e=Pt(e,t),(r=(n=e[E]).proxy_)!=null?r:n.proxy_=new Proxy(e,Jf)}function Oe(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function Pn(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),is(function(){var r=n.indexOf(t);r!==-1&&n.splice(r,1)})}function Ee(e,t){var n=It();try{for(var r=[].concat(e.interceptors_||[]),i=0,o=r.length;i<o&&(t=r[i](t),t&&!t.type&&k(14),!!t);i++);return t}finally{it(n)}}function Me(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function Dn(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),is(function(){var r=n.indexOf(t);r!==-1&&n.splice(r,1)})}function ke(e,t){var n=It(),r=e.changeListeners_;if(r){r=r.slice();for(var i=0,o=r.length;i<o;i++)r[i](t);it(n)}}function zs(e,t,n){return mt(function(){var r,i=Pt(e,n)[E];(r=t)!=null||(t=Tc(e)),qt(t).forEach(function(o){return i.make_(o,t[o])})}),e}var Ri=Symbol("mobx-keys");function Yf(e,t,n){return tt(e)?Fs(e,e,t,n):(mt(function(){var r=Pt(e,n)[E];if(!e[Ri]){var i=Object.getPrototypeOf(e),o=new Set([].concat(qt(e),qt(i)));o.delete("constructor"),o.delete(E),En(i,Ri,o)}e[Ri].forEach(function(s){return r.make_(s,t&&s in t?t[s]:!0)})}),e)}var Ws="splice",We="update",Xf=1e4,Qf={get:function(t,n){var r=t[E];return n===E?r:n==="length"?r.getArrayLength_():typeof n=="string"&&!isNaN(n)?r.get_(parseInt(n)):rt(kr,n)?kr[n]:t[n]},set:function(t,n,r){var i=t[E];return n==="length"&&i.setArrayLength_(r),typeof n=="symbol"||isNaN(n)?t[n]=r:i.set_(parseInt(n),r),!0},preventExtensions:function(){k(15)}},Pi=function(){function e(n,r,i,o){n===void 0&&(n="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=i,this.legacyMode_=o,this.atom_=new gt(n),this.enhancer_=function(s,a){return r(s,a,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.dehanceValues_=function(r){return this.dehancer!==void 0&&r.length>0?r.map(this.dehancer):r},t.intercept_=function(r){return Pn(this,r)},t.observe_=function(r,i){return i===void 0&&(i=!1),i&&r({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Dn(this,r)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(r){(typeof r!="number"||isNaN(r)||r<0)&&k("Out of range: "+r);var i=this.values_.length;if(r!==i)if(r>i){for(var o=new Array(r-i),s=0;s<r-i;s++)o[s]=void 0;this.spliceWithArray_(i,0,o)}else this.spliceWithArray_(r,i-r)},t.updateArrayLength_=function(r,i){r!==this.lastKnownLength_&&k(16),this.lastKnownLength_+=i,this.legacyMode_&&i>0&&oa(r+i+1)},t.spliceWithArray_=function(r,i,o){var s=this;this.atom_;var a=this.values_.length;if(r===void 0?r=0:r>a?r=a:r<0&&(r=Math.max(0,a+r)),arguments.length===1?i=a-r:i==null?i=0:i=Math.max(0,Math.min(i,a-r)),o===void 0&&(o=yi),Oe(this)){var u=Ee(this,{object:this.proxy_,type:Ws,index:r,removedCount:i,added:o});if(!u)return yi;i=u.removedCount,o=u.added}if(o=o.length===0?o:o.map(function(c){return s.enhancer_(c,void 0)}),this.legacyMode_){var l=o.length-i;this.updateArrayLength_(a,l)}var f=this.spliceItemsIntoValues_(r,i,o);return(i!==0||o.length!==0)&&this.notifyArraySplice_(r,o,f),this.dehanceValues_(f)},t.spliceItemsIntoValues_=function(r,i,o){if(o.length<Xf){var s;return(s=this.values_).splice.apply(s,[r,i].concat(o))}else{var a=this.values_.slice(r,r+i),u=this.values_.slice(r+i);this.values_.length+=o.length-i;for(var l=0;l<o.length;l++)this.values_[r+l]=o[l];for(var f=0;f<u.length;f++)this.values_[r+o.length+f]=u[f];return a}},t.notifyArrayChildUpdate_=function(r,i,o){var s=!this.owned_&&kn(),a=Me(this),u=a||s?{observableKind:"array",object:this.proxy_,type:We,debugObjectName:this.atom_.name_,index:r,newValue:i,oldValue:o}:null;this.atom_.reportChanged(),a&&ke(this,u)},t.notifyArraySplice_=function(r,i,o){var s=!this.owned_&&kn(),a=Me(this),u=a||s?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:Ws,index:r,removed:o,added:i,removedCount:o.length,addedCount:i.length}:null;this.atom_.reportChanged(),a&&ke(this,u)},t.get_=function(r){if(this.legacyMode_&&r>=this.values_.length){console.warn("[mobx] Out of bounds read: "+r);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[r])},t.set_=function(r,i){var o=this.values_;if(this.legacyMode_&&r>o.length&&k(17,r,o.length),r<o.length){this.atom_;var s=o[r];if(Oe(this)){var a=Ee(this,{type:We,object:this.proxy_,index:r,newValue:i});if(!a)return;i=a.newValue}i=this.enhancer_(i,s);var u=i!==s;u&&(o[r]=i,this.notifyArrayChildUpdate_(r,i,s))}else{for(var l=new Array(r+1-o.length),f=0;f<l.length-1;f++)l[f]=void 0;l[l.length-1]=i,this.spliceWithArray_(o.length,0,l)}},e}();function ed(e,t,n,r){return n===void 0&&(n="ObservableArray"),r===void 0&&(r=!1),rs(),mt(function(){var i=new Pi(n,t,r,!1);ss(i.values_,E,i);var o=new Proxy(i.values_,Qf);return i.proxy_=o,e&&e.length&&i.spliceWithArray_(0,0,e),o})}var kr={clear:function(){return this.splice(0)},replace:function(t){var n=this[E];return n.spliceWithArray_(0,n.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];var s=this[E];switch(arguments.length){case 0:return[];case 1:return s.spliceWithArray_(t);case 2:return s.spliceWithArray_(t,n)}return s.spliceWithArray_(t,n,i)},spliceWithArray:function(t,n,r){return this[E].spliceWithArray_(t,n,r)},push:function(){for(var t=this[E],n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.spliceWithArray_(t.values_.length,0,r),t.values_.length},pop:function(){return this.splice(Math.max(this[E].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[E],n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.spliceWithArray_(0,0,r),t.values_.length},reverse:function(){return y.trackingDerivation&&k(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){y.trackingDerivation&&k(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var n=this[E],r=n.dehanceValues_(n.values_).indexOf(t);return r>-1?(this.splice(r,1),!0):!1}};F("at",pe),F("concat",pe),F("flat",pe),F("includes",pe),F("indexOf",pe),F("join",pe),F("lastIndexOf",pe),F("slice",pe),F("toString",pe),F("toLocaleString",pe),F("toSorted",pe),F("toSpliced",pe),F("with",pe),F("every",Ie),F("filter",Ie),F("find",Ie),F("findIndex",Ie),F("findLast",Ie),F("findLastIndex",Ie),F("flatMap",Ie),F("forEach",Ie),F("map",Ie),F("some",Ie),F("toReversed",Ie),F("reduce",qs),F("reduceRight",qs);function F(e,t){typeof Array.prototype[e]=="function"&&(kr[e]=t(e))}function pe(e){return function(){var t=this[E];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function Ie(e){return function(t,n){var r=this,i=this[E];i.atom_.reportObserved();var o=i.dehanceValues_(i.values_);return o[e](function(s,a){return t.call(n,s,a,r)})}}function qs(e){return function(){var t=this,n=this[E];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(o,s,a){return i(o,s,a,t)},r[e].apply(r,arguments)}}var td=At("ObservableArrayAdministration",Pi);function Ir(e){return hr(e)&&td(e[E])}var nd={},vt="add",$r="delete",Ks=function(){function e(n,r,i){var o=this;r===void 0&&(r=Tt),i===void 0&&(i="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[E]=nd,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=r,this.name_=i,xe(Map)||k(18),mt(function(){o.keysAtom_=fs("ObservableMap.keys()"),o.data_=new Map,o.hasMap_=new Map,n&&o.merge(n)})}var t=e.prototype;return t.has_=function(r){return this.data_.has(r)},t.has=function(r){var i=this;if(!y.trackingDerivation)return this.has_(r);var o=this.hasMap_.get(r);if(!o){var s=o=new kt(this.has_(r),_r,"ObservableMap.key?",!1);this.hasMap_.set(r,s),Ls(s,function(){return i.hasMap_.delete(r)})}return o.get()},t.set=function(r,i){var o=this.has_(r);if(Oe(this)){var s=Ee(this,{type:o?We:vt,object:this,newValue:i,name:r});if(!s)return this;i=s.newValue}return o?this.updateValue_(r,i):this.addValue_(r,i),this},t.delete=function(r){var i=this;if(this.keysAtom_,Oe(this)){var o=Ee(this,{type:$r,object:this,name:r});if(!o)return!1}if(this.has_(r)){var s=kn(),a=Me(this),u=a||s?{observableKind:"map",debugObjectName:this.name_,type:$r,object:this,oldValue:this.data_.get(r).value_,name:r}:null;return ot(function(){var l;i.keysAtom_.reportChanged(),(l=i.hasMap_.get(r))==null||l.setNewValue_(!1);var f=i.data_.get(r);f.setNewValue_(void 0),i.data_.delete(r)}),a&&ke(this,u),!0}return!1},t.updateValue_=function(r,i){var o=this.data_.get(r);if(i=o.prepareNewValue_(i),i!==y.UNCHANGED){var s=kn(),a=Me(this),u=a||s?{observableKind:"map",debugObjectName:this.name_,type:We,object:this,oldValue:o.value_,name:r,newValue:i}:null;o.setNewValue_(i),a&&ke(this,u)}},t.addValue_=function(r,i){var o=this;this.keysAtom_,ot(function(){var l,f=new kt(i,o.enhancer_,"ObservableMap.key",!1);o.data_.set(r,f),i=f.value_,(l=o.hasMap_.get(r))==null||l.setNewValue_(!0),o.keysAtom_.reportChanged()});var s=kn(),a=Me(this),u=a||s?{observableKind:"map",debugObjectName:this.name_,type:vt,object:this,name:r,newValue:i}:null;a&&ke(this,u)},t.get=function(r){return this.has(r)?this.dehanceValue_(this.data_.get(r).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var r=this,i=this.keys();return Js({next:function(){var s=i.next(),a=s.done,u=s.value;return{done:a,value:a?void 0:r.get(u)}}})},t.entries=function(){var r=this,i=this.keys();return Js({next:function(){var s=i.next(),a=s.done,u=s.value;return{done:a,value:a?void 0:[u,r.get(u)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(r,i){for(var o=Jt(this),s;!(s=o()).done;){var a=s.value,u=a[0],l=a[1];r.call(i,l,u,this)}},t.merge=function(r){var i=this;return Rt(r)&&(r=new Map(r)),ot(function(){tt(r)?Sc(r).forEach(function(o){return i.set(o,r[o])}):Array.isArray(r)?r.forEach(function(o){var s=o[0],a=o[1];return i.set(s,a)}):Wt(r)?(wc(r)||k(19,r),r.forEach(function(o,s){return i.set(s,o)})):r!=null&&k(20,r)}),this},t.clear=function(){var r=this;ot(function(){Es(function(){for(var i=Jt(r.keys()),o;!(o=i()).done;){var s=o.value;r.delete(s)}})})},t.replace=function(r){var i=this;return ot(function(){for(var o=rd(r),s=new Map,a=!1,u=Jt(i.data_.keys()),l;!(l=u()).done;){var f=l.value;if(!o.has(f)){var c=i.delete(f);if(c)a=!0;else{var d=i.data_.get(f);s.set(f,d)}}}for(var h=Jt(o.entries()),_;!(_=h()).done;){var g=_.value,v=g[0],m=g[1],w=i.data_.has(v);if(i.set(v,m),i.data_.has(v)){var T=i.data_.get(v);s.set(v,T),w||(a=!0)}}if(!a)if(i.data_.size!==s.size)i.keysAtom_.reportChanged();else for(var j=i.data_.keys(),z=s.keys(),te=j.next(),Ot=z.next();!te.done;){if(te.value!==Ot.value){i.keysAtom_.reportChanged();break}te=j.next(),Ot=z.next()}i.data_=s}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(r,i){return Dn(this,r)},t.intercept_=function(r){return Pn(this,r)},Kt(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),Rt=At("ObservableMap",Ks);function Js(e){return e[Symbol.toStringTag]="MapIterator",Vi(e)}function rd(e){if(Wt(e)||Rt(e))return e;if(Array.isArray(e))return new Map(e);if(tt(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}else return k(21,e)}var id={},Zs=function(){function e(n,r,i){var o=this;r===void 0&&(r=Tt),i===void 0&&(i="ObservableSet"),this.name_=void 0,this[E]=id,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=i,xe(Set)||k(22),this.enhancer_=function(s,a){return r(s,a,i)},mt(function(){o.atom_=fs(o.name_),n&&o.replace(n)})}var t=e.prototype;return t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.clear=function(){var r=this;ot(function(){Es(function(){for(var i=Jt(r.data_.values()),o;!(o=i()).done;){var s=o.value;r.delete(s)}})})},t.forEach=function(r,i){for(var o=Jt(this),s;!(s=o()).done;){var a=s.value;r.call(i,a,a,this)}},t.add=function(r){var i=this;if(this.atom_,Oe(this)){var o=Ee(this,{type:vt,object:this,newValue:r});if(!o)return this;r=o.newValue}if(!this.has(r)){ot(function(){i.data_.add(i.enhancer_(r,void 0)),i.atom_.reportChanged()});var s=!1,a=Me(this),u=a||s?{observableKind:"set",debugObjectName:this.name_,type:vt,object:this,newValue:r}:null;a&&ke(this,u)}return this},t.delete=function(r){var i=this;if(Oe(this)){var o=Ee(this,{type:$r,object:this,oldValue:r});if(!o)return!1}if(this.has(r)){var s=!1,a=Me(this),u=a||s?{observableKind:"set",debugObjectName:this.name_,type:$r,object:this,oldValue:r}:null;return ot(function(){i.atom_.reportChanged(),i.data_.delete(r)}),a&&ke(this,u),!0}return!1},t.has=function(r){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(r))},t.entries=function(){var r=this.values();return Ys({next:function(){var o=r.next(),s=o.value,a=o.done;return a?{value:void 0,done:a}:{value:[s,s],done:a}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var r=this,i=this.data_.values();return Ys({next:function(){var s=i.next(),a=s.value,u=s.done;return u?{value:void 0,done:u}:{value:r.dehanceValue_(a),done:u}}})},t.intersection=function(r){if(nt(r)&&!qe(r))return r.intersection(this);var i=new Set(this);return i.intersection(r)},t.union=function(r){if(nt(r)&&!qe(r))return r.union(this);var i=new Set(this);return i.union(r)},t.difference=function(r){return new Set(this).difference(r)},t.symmetricDifference=function(r){if(nt(r)&&!qe(r))return r.symmetricDifference(this);var i=new Set(this);return i.symmetricDifference(r)},t.isSubsetOf=function(r){return new Set(this).isSubsetOf(r)},t.isSupersetOf=function(r){return new Set(this).isSupersetOf(r)},t.isDisjointFrom=function(r){if(nt(r)&&!qe(r))return r.isDisjointFrom(this);var i=new Set(this);return i.isDisjointFrom(r)},t.replace=function(r){var i=this;return qe(r)&&(r=new Set(r)),ot(function(){Array.isArray(r)?(i.clear(),r.forEach(function(o){return i.add(o)})):nt(r)?(i.clear(),r.forEach(function(o){return i.add(o)})):r!=null&&k("Cannot initialize set from "+r)}),this},t.observe_=function(r,i){return Dn(this,r)},t.intercept_=function(r){return Pn(this,r)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},Kt(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),qe=At("ObservableSet",Zs);function Ys(e){return e[Symbol.toStringTag]="SetIterator",Vi(e)}var Xs=Object.create(null),Qs="remove",ea=function(){function e(n,r,i,o){r===void 0&&(r=new Map),o===void 0&&(o=Xc),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=n,this.values_=r,this.name_=i,this.defaultAnnotation_=o,this.keysAtom_=new gt("ObservableObject.keys"),this.isPlainObject_=tt(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(r){return this.values_.get(r).get()},t.setObservablePropValue_=function(r,i){var o=this.values_.get(r);if(o instanceof Te)return o.set(i),!0;if(Oe(this)){var s=Ee(this,{type:We,object:this.proxy_||this.target_,name:r,newValue:i});if(!s)return null;i=s.newValue}if(i=o.prepareNewValue_(i),i!==y.UNCHANGED){var a=Me(this),u=!1,l=a||u?{type:We,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:o.value_,name:r,newValue:i}:null;o.setNewValue_(i),a&&ke(this,l)}return!0},t.get_=function(r){return y.trackingDerivation&&!rt(this.target_,r)&&this.has_(r),this.target_[r]},t.set_=function(r,i,o){return o===void 0&&(o=!1),rt(this.target_,r)?this.values_.has(r)?this.setObservablePropValue_(r,i):o?Reflect.set(this.target_,r,i):(this.target_[r]=i,!0):this.extend_(r,{value:i,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,o)},t.has_=function(r){if(!y.trackingDerivation)return r in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var i=this.pendingKeys_.get(r);return i||(i=new kt(r in this.target_,_r,"ObservableObject.key?",!1),this.pendingKeys_.set(r,i)),i.get()},t.make_=function(r,i){if(i===!0&&(i=this.defaultAnnotation_),i!==!1){if(!(r in this.target_)){var o;if((o=this.target_[Ge])!=null&&o[r])return;k(1,i.annotationType_,this.name_+"."+r.toString())}for(var s=this.target_;s&&s!==dr;){var a=fr(s,r);if(a){var u=i.make_(this,r,a,s);if(u===0)return;if(u===1)break}s=Object.getPrototypeOf(s)}na(this,i,r)}},t.extend_=function(r,i,o,s){if(s===void 0&&(s=!1),o===!0&&(o=this.defaultAnnotation_),o===!1)return this.defineProperty_(r,i,s);var a=o.extend_(this,r,i,s);return a&&na(this,o,r),a},t.defineProperty_=function(r,i,o){o===void 0&&(o=!1),this.keysAtom_;try{Se();var s=this.delete_(r);if(!s)return s;if(Oe(this)){var a=Ee(this,{object:this.proxy_||this.target_,name:r,type:vt,newValue:i.value});if(!a)return null;var u=a.newValue;i.value!==u&&(i=xt({},i,{value:u}))}if(o){if(!Reflect.defineProperty(this.target_,r,i))return!1}else Be(this.target_,r,i);this.notifyPropertyAddition_(r,i.value)}finally{Ce()}return!0},t.defineObservableProperty_=function(r,i,o,s){s===void 0&&(s=!1),this.keysAtom_;try{Se();var a=this.delete_(r);if(!a)return a;if(Oe(this)){var u=Ee(this,{object:this.proxy_||this.target_,name:r,type:vt,newValue:i});if(!u)return null;i=u.newValue}var l=ta(r),f={configurable:y.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:l.get,set:l.set};if(s){if(!Reflect.defineProperty(this.target_,r,f))return!1}else Be(this.target_,r,f);var c=new kt(i,o,"ObservableObject.key",!1);this.values_.set(r,c),this.notifyPropertyAddition_(r,c.value_)}finally{Ce()}return!0},t.defineComputedProperty_=function(r,i,o){o===void 0&&(o=!1),this.keysAtom_;try{Se();var s=this.delete_(r);if(!s)return s;if(Oe(this)){var a=Ee(this,{object:this.proxy_||this.target_,name:r,type:vt,newValue:void 0});if(!a)return null}i.name||(i.name="ObservableObject.key"),i.context=this.proxy_||this.target_;var u=ta(r),l={configurable:y.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:u.get,set:u.set};if(o){if(!Reflect.defineProperty(this.target_,r,l))return!1}else Be(this.target_,r,l);this.values_.set(r,new Te(i)),this.notifyPropertyAddition_(r,void 0)}finally{Ce()}return!0},t.delete_=function(r,i){if(i===void 0&&(i=!1),this.keysAtom_,!rt(this.target_,r))return!0;if(Oe(this)){var o=Ee(this,{object:this.proxy_||this.target_,name:r,type:Qs});if(!o)return null}try{var s;Se();var a=Me(this),u=!1,l=this.values_.get(r),f=void 0;if(!l&&(a||u)){var c;f=(c=fr(this.target_,r))==null?void 0:c.value}if(i){if(!Reflect.deleteProperty(this.target_,r))return!1}else delete this.target_[r];if(l&&(this.values_.delete(r),l instanceof kt&&(f=l.value_),Is(l)),this.keysAtom_.reportChanged(),(s=this.pendingKeys_)==null||(s=s.get(r))==null||s.set(r in this.target_),a||u){var d={type:Qs,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:f,name:r};a&&ke(this,d)}}finally{Ce()}return!0},t.observe_=function(r,i){return Dn(this,r)},t.intercept_=function(r){return Pn(this,r)},t.notifyPropertyAddition_=function(r,i){var o,s=Me(this),a=!1;if(s||a){var u=s||a?{type:vt,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:r,newValue:i}:null;s&&ke(this,u)}(o=this.pendingKeys_)==null||(o=o.get(r))==null||o.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),qt(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Pt(e,t){var n;if(rt(e,E))return e;var r=(n=t?.name)!=null?n:"ObservableObject",i=new ea(e,new Map,String(r),cf(t));return En(e,E,i),e}var od=At("ObservableObjectAdministration",ea);function ta(e){return Xs[e]||(Xs[e]={get:function(){return this[E].getObservablePropValue_(e)},set:function(n){return this[E].setObservablePropValue_(e,n)}})}function Rr(e){return hr(e)?od(e[E]):!1}function na(e,t,n){var r;(r=e.target_[Ge])==null||delete r[n]}var sd=ia(0),ad=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),Di=0,ra=function(){};function ud(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}ud(ra,Array.prototype);var Ni=function(e){function t(r,i,o,s){var a;return o===void 0&&(o="ObservableArray"),s===void 0&&(s=!1),a=e.call(this)||this,mt(function(){var u=new Pi(o,i,s,!0);u.proxy_=a,ss(a,E,u),r&&r.length&&a.spliceWithArray(0,0,r),ad&&Object.defineProperty(a,"0",sd)}),a}cs(t,e);var n=t.prototype;return n.concat=function(){this[E].atom_.reportObserved();for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return Array.prototype.concat.apply(this.slice(),o.map(function(a){return Ir(a)?a.slice():a}))},n[Symbol.iterator]=function(){var r=this,i=0;return Vi({next:function(){return i<r.length?{value:r[i++],done:!1}:{done:!0,value:void 0}}})},Kt(t,[{key:"length",get:function(){return this[E].getArrayLength_()},set:function(i){this[E].setArrayLength_(i)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(ra);Object.entries(kr).forEach(function(e){var t=e[0],n=e[1];t!=="concat"&&En(Ni.prototype,t,n)});function ia(e){return{enumerable:!1,configurable:!0,get:function(){return this[E].get_(e)},set:function(n){this[E].set_(e,n)}}}function ld(e){Be(Ni.prototype,""+e,ia(e))}function oa(e){if(e>Di){for(var t=Di;t<e+100;t++)ld(t);Di=e}}oa(1e3);function cd(e,t,n){return new Ni(e,t,n)}function Pr(e,t){if(typeof e=="object"&&e!==null){if(Ir(e))return t!==void 0&&k(23),e[E].atom_;if(qe(e))return e.atom_;if(Rt(e)){if(t===void 0)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||k(25,t,ji(e)),n}if(Rr(e)){if(!t)return k(26);var r=e[E].values_.get(t);return r||k(27,t,ji(e)),r}if(Si(e)||Sr(e)||Tr(e))return e}else if(xe(e)&&Tr(e[E]))return e[E];k(28)}function fd(e,t){if(e||k(29),Si(e)||Sr(e)||Tr(e)||Rt(e)||qe(e))return e;if(e[E])return e[E];k(24,e)}function ji(e,t){var n;if(t!==void 0)n=Pr(e,t);else{if($n(e))return e.name;Rr(e)||Rt(e)||qe(e)?n=fd(e):n=Pr(e)}return n.name_}function mt(e){var t=It(),n=br(!0);Se();try{return e()}finally{Ce(),wr(n),it(t)}}var sa=dr.toString;function aa(e,t,n){return n===void 0&&(n=-1),Li(e,t,n)}function Li(e,t,n,r,i){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var o=typeof e;if(o!=="function"&&o!=="object"&&typeof t!="object")return!1;var s=sa.call(e);if(s!==sa.call(t))return!1;switch(s){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++;break}e=ua(e),t=ua(t);var a=s==="[object Array]";if(!a){if(typeof e!="object"||typeof t!="object")return!1;var u=e.constructor,l=t.constructor;if(u!==l&&!(xe(u)&&u instanceof u&&xe(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}if(n===0)return!1;n<0&&(n=-1),r=r||[],i=i||[];for(var f=r.length;f--;)if(r[f]===e)return i[f]===t;if(r.push(e),i.push(t),a){if(f=e.length,f!==t.length)return!1;for(;f--;)if(!Li(e[f],t[f],n-1,r,i))return!1}else{var c=Object.keys(e),d=c.length;if(Object.keys(t).length!==d)return!1;for(var h=0;h<d;h++){var _=c[h];if(!(rt(t,_)&&Li(e[_],t[_],n-1,r,i)))return!1}}return r.pop(),i.pop(),!0}function ua(e){return Ir(e)?e.slice():Wt(e)||Rt(e)||nt(e)||qe(e)?Array.from(e.entries()):e}var la,dd=((la=cr().Iterator)==null?void 0:la.prototype)||{};function Vi(e){return e[Symbol.iterator]=hd,Object.assign(Object.create(dd),e)}function hd(){return this}["Symbol","Map","Set"].forEach(function(e){var t=cr();typeof t[e]>"u"&&k("MobX requires global '"+e+"' to be available or polyfilled")}),typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Tf,extras:{getDebugName:ji},$mobx:E});var Nn,M,ca,Dt,fa,da,ha,_a,Fi,Ui,Bi,pa,jn={},ga=[],_d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ln=Array.isArray;function Ke(e,t){for(var n in t)e[n]=t[n];return e}function Gi(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function O(e,t,n){var r,i,o,s={};for(o in t)o=="key"?r=t[o]:o=="ref"?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?Nn.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return Vn(e,s,r,i,null)}function Vn(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++ca,__i:-1,__u:0};return i==null&&M.vnode!=null&&M.vnode(o),o}function va(){return{current:null}}function $e(e){return e.children}function Re(e,t){this.props=e,this.context=t}function Qt(e,t){if(t==null)return e.__?Qt(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Qt(e):null}function ma(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return ma(e)}}function Hi(e){(!e.__d&&(e.__d=!0)&&Dt.push(e)&&!Dr.__r++||fa!=M.debounceRendering)&&((fa=M.debounceRendering)||da)(Dr)}function Dr(){for(var e,t,n,r,i,o,s,a=1;Dt.length;)Dt.length>a&&Dt.sort(ha),e=Dt.shift(),a=Dt.length,e.__d&&(n=void 0,i=(r=(t=e).__v).__e,o=[],s=[],t.__P&&((n=Ke({},r)).__v=r.__v+1,M.vnode&&M.vnode(n),zi(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[i]:null,o,i??Qt(r),!!(32&r.__u),s),n.__v=r.__v,n.__.__k[n.__i]=n,Ca(o,n,s),n.__e!=i&&ma(n)));Dr.__r=0}function ya(e,t,n,r,i,o,s,a,u,l,f){var c,d,h,_,g,v,m=r&&r.__k||ga,w=t.length;for(u=pd(n,t,m,u,w),c=0;c<w;c++)(h=n.__k[c])!=null&&(d=h.__i==-1?jn:m[h.__i]||jn,h.__i=c,v=zi(e,h,d,i,o,s,a,u,l,f),_=h.__e,h.ref&&d.ref!=h.ref&&(d.ref&&qi(d.ref,null,h),f.push(h.ref,h.__c||_,h)),g==null&&_!=null&&(g=_),4&h.__u||d.__k===h.__k?u=ba(h,u,e):typeof h.type=="function"&&v!==void 0?u=v:_&&(u=_.nextSibling),h.__u&=-7);return n.__e=g,u}function pd(e,t,n,r,i){var o,s,a,u,l,f=n.length,c=f,d=0;for(e.__k=new Array(i),o=0;o<i;o++)(s=t[o])!=null&&typeof s!="boolean"&&typeof s!="function"?(u=o+d,(s=e.__k[o]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?Vn(null,s,null,null,null):Ln(s)?Vn($e,{children:s},null,null,null):s.constructor==null&&s.__b>0?Vn(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,(l=s.__i=gd(s,n,u,c))!=-1&&(c--,(a=n[l])&&(a.__u|=2)),a==null||a.__v==null?(l==-1&&(i>f?d--:i<f&&d++),typeof s.type!="function"&&(s.__u|=4)):l!=u&&(l==u-1?d--:l==u+1?d++:(l>u?d--:d++,s.__u|=4))):e.__k[o]=null;if(c)for(o=0;o<f;o++)(a=n[o])!=null&&(2&a.__u)==0&&(a.__e==r&&(r=Qt(a)),Ea(a,a));return r}function ba(e,t,n){var r,i;if(typeof e.type=="function"){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=ba(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Qt(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function st(e,t){return t=t||[],e==null||typeof e=="boolean"||(Ln(e)?e.some(function(n){st(n,t)}):t.push(e)),t}function gd(e,t,n,r){var i,o,s,a=e.key,u=e.type,l=t[n],f=l!=null&&(2&l.__u)==0;if(l===null&&e.key==null||f&&a==l.key&&u==l.type)return n;if(r>(f?1:0)){for(i=n-1,o=n+1;i>=0||o<t.length;)if((l=t[s=i>=0?i--:o++])!=null&&(2&l.__u)==0&&a==l.key&&u==l.type)return s}return-1}function wa(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||_d.test(t)?n:n+"px"}function Nr(e,t,n,r,i){var o,s;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||wa(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||wa(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(_a,"$1")),s=t.toLowerCase(),t=s in e||t=="onFocusOut"||t=="onFocusIn"?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=Fi,e.addEventListener(t,o?Bi:Ui,o)):e.removeEventListener(t,o?Bi:Ui,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Sa(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Fi++;else if(t.t<n.u)return;return n(M.event?M.event(t):t)}}}function zi(e,t,n,r,i,o,s,a,u,l){var f,c,d,h,_,g,v,m,w,T,j,z,te,Ot,mi,lr,ts,et=t.type;if(t.constructor!=null)return null;128&n.__u&&(u=!!(32&n.__u),o=[a=t.__e=n.__e]),(f=M.__b)&&f(t);e:if(typeof et=="function")try{if(m=t.props,w="prototype"in et&&et.prototype.render,T=(f=et.contextType)&&r[f.__c],j=f?T?T.props.value:f.__:r,n.__c?v=(c=t.__c=n.__c).__=c.__E:(w?t.__c=c=new et(m,j):(t.__c=c=new Re(m,j),c.constructor=et,c.render=md),T&&T.sub(c),c.props=m,c.state||(c.state={}),c.context=j,c.__n=r,d=c.__d=!0,c.__h=[],c._sb=[]),w&&c.__s==null&&(c.__s=c.state),w&&et.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=Ke({},c.__s)),Ke(c.__s,et.getDerivedStateFromProps(m,c.__s))),h=c.props,_=c.state,c.__v=t,d)w&&et.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),w&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(w&&et.getDerivedStateFromProps==null&&m!==h&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(m,j),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(m,c.__s,j)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(c.props=m,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(On){On&&(On.__=t)}),z=0;z<c._sb.length;z++)c.__h.push(c._sb[z]);c._sb=[],c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(m,c.__s,j),w&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(h,_,g)})}if(c.context=j,c.props=m,c.__P=e,c.__e=!1,te=M.__r,Ot=0,w){for(c.state=c.__s,c.__d=!1,te&&te(t),f=c.render(c.props,c.state,c.context),mi=0;mi<c._sb.length;mi++)c.__h.push(c._sb[mi]);c._sb=[]}else do c.__d=!1,te&&te(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++Ot<25);c.state=c.__s,c.getChildContext!=null&&(r=Ke(Ke({},r),c.getChildContext())),w&&!d&&c.getSnapshotBeforeUpdate!=null&&(g=c.getSnapshotBeforeUpdate(h,_)),lr=f,f!=null&&f.type===$e&&f.key==null&&(lr=Oa(f.props.children)),a=ya(e,Ln(lr)?lr:[lr],t,n,r,i,o,s,a,u,l),c.base=t.__e,t.__u&=-161,c.__h.length&&s.push(c),v&&(c.__E=c.__=null)}catch(On){if(t.__v=null,u||o!=null)if(On.then){for(t.__u|=u?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__e=a}else{for(ts=o.length;ts--;)Gi(o[ts]);Wi(t)}else t.__e=n.__e,t.__k=n.__k,On.then||Wi(t);M.__e(On,t,n)}else o==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=vd(n.__e,t,n,r,i,o,s,u,l);return(f=M.diffed)&&f(t),128&t.__u?void 0:a}function Wi(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(Wi)}function Ca(e,t,n){for(var r=0;r<n.length;r++)qi(n[r],n[++r],n[++r]);M.__c&&M.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){M.__e(o,i.__v)}})}function Oa(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Ln(e)?e.map(Oa):Ke({},e)}function vd(e,t,n,r,i,o,s,a,u){var l,f,c,d,h,_,g,v=n.props,m=t.props,w=t.type;if(w=="svg"?i="http://www.w3.org/2000/svg":w=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(l=0;l<o.length;l++)if((h=o[l])&&"setAttribute"in h==!!w&&(w?h.localName==w:h.nodeType==3)){e=h,o[l]=null;break}}if(e==null){if(w==null)return document.createTextNode(m);e=document.createElementNS(i,w,m.is&&m),a&&(M.__m&&M.__m(t,o),a=!1),o=null}if(w==null)v===m||a&&e.data==m||(e.data=m);else{if(o=o&&Nn.call(e.childNodes),v=n.props||jn,!a&&o!=null)for(v={},l=0;l<e.attributes.length;l++)v[(h=e.attributes[l]).name]=h.value;for(l in v)if(h=v[l],l!="children"){if(l=="dangerouslySetInnerHTML")c=h;else if(!(l in m)){if(l=="value"&&"defaultValue"in m||l=="checked"&&"defaultChecked"in m)continue;Nr(e,l,null,h,i)}}for(l in m)h=m[l],l=="children"?d=h:l=="dangerouslySetInnerHTML"?f=h:l=="value"?_=h:l=="checked"?g=h:a&&typeof h!="function"||v[l]===h||Nr(e,l,h,v[l],i);if(f)a||c&&(f.__html==c.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),ya(t.type=="template"?e.content:e,Ln(d)?d:[d],t,n,r,w=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&Qt(n,0),a,u),o!=null)for(l=o.length;l--;)Gi(o[l]);a||(l="value",w=="progress"&&_==null?e.removeAttribute("value"):_!=null&&(_!==e[l]||w=="progress"&&!_||w=="option"&&_!=v[l])&&Nr(e,l,_,v[l],i),l="checked",g!=null&&g!=e[l]&&Nr(e,l,g,v[l],i))}return e}function qi(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(i){M.__e(i,n)}}function Ea(e,t,n){var r,i;if(M.unmount&&M.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||qi(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){M.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Ea(r[i],t,n||typeof e.type!="function");n||Gi(e.__e),e.__c=e.__=e.__e=void 0}function md(e,t,n){return this.constructor(e,n)}function yt(e,t,n){var r,i,o,s;t==document&&(t=document.documentElement),M.__&&M.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],s=[],zi(t,e=(!r&&n||t).__k=O($e,null,[e]),i||jn,jn,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?Nn.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,s),Ca(o,e,s)}function Ki(e,t){yt(e,t,Ki)}function Ji(e,t,n){var r,i,o,s,a=Ke({},e.props);for(o in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)o=="key"?r=t[o]:o=="ref"?i=t[o]:a[o]=t[o]===void 0&&s!=null?s[o]:t[o];return arguments.length>2&&(a.children=arguments.length>3?Nn.call(arguments,2):n),Vn(e.type,a,r||e.key,i||e.ref,null)}function Aa(e){function t(n){var r,i;return this.getChildContext||(r=new Set,(i={})[t.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(o){this.props.value!=o.value&&r.forEach(function(s){s.__e=!0,Hi(s)})},this.sub=function(o){r.add(o);var s=o.componentWillUnmount;o.componentWillUnmount=function(){r&&r.delete(o),s&&s.call(o)}}),n.children}return t.__c="__cC"+pa++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}Nn=ga.slice,M={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(a){e=a}throw e}},ca=0,Re.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Ke({},this.state),typeof e=="function"&&(e=e(Ke({},n),this.props)),e&&Ke(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Hi(this))},Re.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Hi(this))},Re.prototype.render=$e,Dt=[],da=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ha=function(e,t){return e.__v.__b-t.__v.__b},Dr.__r=0,_a=/(PointerCapture)$|Capture$/i,Fi=0,Ui=Sa(!1),Bi=Sa(!0),pa=0;var at,L,Zi,xa,en=0,Ta=[],W=M,Ma=W.__b,ka=W.__r,Ia=W.diffed,$a=W.__c,Ra=W.unmount,Pa=W.__;function Nt(e,t){W.__h&&W.__h(L,e,en||t),en=0;var n=L.__H||(L.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function tn(e){return en=1,jr(Na,e)}function jr(e,t,n){var r=Nt(at++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Na(void 0,t),function(a){var u=r.__N?r.__N[0]:r.__[0],l=r.t(u,a);u!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=L,!L.__f)){var i=function(a,u,l){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(d){return!!d.__c});if(f.every(function(d){return!d.__N}))return!o||o.call(this,a,u,l);var c=r.__c.props!==a;return f.forEach(function(d){if(d.__N){var h=d.__[0];d.__=d.__N,d.__N=void 0,h!==d.__[0]&&(c=!0)}}),o&&o.call(this,a,u,l)||c};L.__f=!0;var o=L.shouldComponentUpdate,s=L.componentWillUpdate;L.componentWillUpdate=function(a,u,l){if(this.__e){var f=o;o=void 0,i(a,u,l),o=f}s&&s.call(this,a,u,l)},L.shouldComponentUpdate=i}return r.__N||r.__}function Lr(e,t){var n=Nt(at++,3);!W.__s&&io(n.__H,t)&&(n.__=e,n.u=t,L.__H.__h.push(n))}function nn(e,t){var n=Nt(at++,4);!W.__s&&io(n.__H,t)&&(n.__=e,n.u=t,L.__h.push(n))}function Yi(e){return en=5,Fn(function(){return{current:e}},[])}function Xi(e,t,n){en=6,nn(function(){if(typeof e=="function"){var r=e(t());return function(){e(null),r&&typeof r=="function"&&r()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function Fn(e,t){var n=Nt(at++,7);return io(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Qi(e,t){return en=8,Fn(function(){return e},t)}function eo(e){var t=L.context[e.__c],n=Nt(at++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(L)),t.props.value):e.__}function to(e,t){W.useDebugValue&&W.useDebugValue(t?t(e):e)}function yd(e){var t=Nt(at++,10),n=tn();return t.__=e,L.componentDidCatch||(L.componentDidCatch=function(r,i){t.__&&t.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function no(){var e=Nt(at++,11);if(!e.__){for(var t=L.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function bd(){for(var e;e=Ta.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Vr),e.__H.__h.forEach(ro),e.__H.__h=[]}catch(t){e.__H.__h=[],W.__e(t,e.__v)}}W.__b=function(e){L=null,Ma&&Ma(e)},W.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Pa&&Pa(e,t)},W.__r=function(e){ka&&ka(e),at=0;var t=(L=e.__c).__H;t&&(Zi===L?(t.__h=[],L.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(Vr),t.__h.forEach(ro),t.__h=[],at=0)),Zi=L},W.diffed=function(e){Ia&&Ia(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ta.push(t)!==1&&xa===W.requestAnimationFrame||((xa=W.requestAnimationFrame)||wd)(bd)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Zi=L=null},W.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Vr),n.__h=n.__h.filter(function(r){return!r.__||ro(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],W.__e(r,n.__v)}}),$a&&$a(e,t)},W.unmount=function(e){Ra&&Ra(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Vr(r)}catch(i){t=i}}),n.__H=void 0,t&&W.__e(t,n.__v))};var Da=typeof requestAnimationFrame=="function";function wd(e){var t,n=function(){clearTimeout(r),Da&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Da&&(t=requestAnimationFrame(n))}function Vr(e){var t=L,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),L=t}function ro(e){var t=L;e.__c=e.__(),L=t}function io(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Na(e,t){return typeof t=="function"?t(e):t}function ja(e,t){for(var n in t)e[n]=t[n];return e}function oo(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function so(e,t){var n=t(),r=tn({t:{__:n,u:t}}),i=r[0].t,o=r[1];return nn(function(){i.__=n,i.u=t,ao(i)&&o({t:i})},[e,n,t]),Lr(function(){return ao(i)&&o({t:i}),e(function(){ao(i)&&o({t:i})})},[e]),n}function ao(e){var t,n,r=e.u,i=e.__;try{var o=r();return!((t=i)===(n=o)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function uo(e){e()}function lo(e){return e}function co(){return[!1,uo]}var fo=nn;function Fr(e,t){this.props=e,this.context=t}function Un(e,t){function n(i){var o=this.props.ref,s=o==i.ref;return!s&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!s:oo(this.props,i)}function r(i){return this.shouldComponentUpdate=n,O(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Fr.prototype=new Re).isPureReactComponent=!0,Fr.prototype.shouldComponentUpdate=function(e,t){return oo(this.props,e)||oo(this.state,t)};var La=M.__b;M.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),La&&La(e)};var Sd=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Bn(e){function t(n){var r=ja({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Sd,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Va=function(e,t){return e==null?null:st(st(e).map(t))},Fa={map:Va,forEach:Va,count:function(e){return e?st(e).length:0},only:function(e){var t=st(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:st},Cd=M.__e;M.__e=function(e,t,n,r){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}Cd(e,t,n,r)};var Ua=M.unmount;function Ba(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=ja({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Ba(r,t,n)})),e}function Ga(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Ga(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Gn(){this.__u=0,this.o=null,this.__b=null}function Ha(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function za(e){var t,n,r;function i(o){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return O(n,o)}return i.displayName="Lazy",i.__f=!0,i}function rn(){this.i=null,this.l=null}M.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ua&&Ua(e)},(Gn.prototype=new Re).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=Ha(r.__v),o=!1,s=function(){o||(o=!0,n.__R=null,i?i(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var u=r.state.__a;r.__v.__k[0]=Ga(u,u.__c.__P,u.__c.__O)}var l;for(r.setState({__a:r.__b=null});l=r.o.pop();)l.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Gn.prototype.componentWillUnmount=function(){this.o=[]},Gn.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Ba(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&O($e,null,e.fallback);return i&&(i.__u&=-33),[O($e,null,t.__a?null:e.children),i]};var Wa=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function Od(e){return this.getChildContext=function(){return e.context},e.children}function Ed(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){yt(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},insertBefore:function(i,o){this.childNodes.push(i),t.h.insertBefore(i,o)},removeChild:function(i){this.childNodes.splice(this.childNodes.indexOf(i)>>>1,1),t.h.removeChild(i)}}}yt(O(Od,{context:t.context},e.__v),t.v)}function qa(e,t){var n=O(Ed,{__v:e,h:t});return n.containerInfo=t,n}(rn.prototype=new Re).__a=function(e){var t=this,n=Ha(t.__v),r=t.l.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),Wa(t,e,r)):i()};n?n(o):o()}},rn.prototype.render=function(e){this.i=null,this.l=new Map;var t=st(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},rn.prototype.componentDidUpdate=rn.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){Wa(e,n,t)})};var Ka=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Ad=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,xd=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Td=/[A-Z0-9]/g,Md=typeof document<"u",kd=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Ja(e,t,n){return t.__k==null&&(t.textContent=""),yt(e,t),typeof n=="function"&&n(),e?e.__c:null}function Za(e,t,n){return Ki(e,t),typeof n=="function"&&n(),e?e.__c:null}Re.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Re.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Ya=M.event;function Id(){}function $d(){return this.cancelBubble}function Rd(){return this.defaultPrevented}M.event=function(e){return Ya&&(e=Ya(e)),e.persist=Id,e.isPropagationStopped=$d,e.isDefaultPrevented=Rd,e.nativeEvent=e};var ho,Pd={enumerable:!1,configurable:!0,get:function(){return this.class}},Xa=M.vnode;M.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,i={},o=r.indexOf("-")===-1;for(var s in n){var a=n[s];if(!(s==="value"&&"defaultValue"in n&&a==null||Md&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var u=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&a===!0?a="":u==="translate"&&a==="no"?a=!1:u[0]==="o"&&u[1]==="n"?u==="ondoubleclick"?s="ondblclick":u!=="onchange"||r!=="input"&&r!=="textarea"||kd(n.type)?u==="onfocus"?s="onfocusin":u==="onblur"?s="onfocusout":xd.test(s)&&(s=u):u=s="oninput":o&&Ad.test(s)?s=s.replace(Td,"-$&").toLowerCase():a===null&&(a=void 0),u==="oninput"&&i[s=u]&&(s="oninputCapture"),i[s]=a}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=st(n.children).forEach(function(l){l.props.selected=i.value.indexOf(l.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=st(n.children).forEach(function(l){l.props.selected=i.multiple?i.defaultValue.indexOf(l.props.value)!=-1:i.defaultValue==l.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",Pd)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=Ka,Xa&&Xa(e)};var Qa=M.__r;M.__r=function(e){Qa&&Qa(e),ho=e.__c};var eu=M.diffed;M.diffed=function(e){eu&&eu(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),ho=null};var tu={ReactCurrentDispatcher:{current:{readContext:function(e){return ho.__n[e.__c].props.value},useCallback:Qi,useContext:eo,useDebugValue:to,useDeferredValue:lo,useEffect:Lr,useId:no,useImperativeHandle:Xi,useInsertionEffect:fo,useLayoutEffect:nn,useMemo:Fn,useReducer:jr,useRef:Yi,useState:tn,useSyncExternalStore:so,useTransition:co}}},Dd="18.3.1";function nu(e){return O.bind(null,e)}function Hn(e){return!!e&&e.$$typeof===Ka}function ru(e){return Hn(e)&&e.type===$e}function iu(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function ou(e){return Hn(e)?Ji.apply(null,arguments):e}function su(e){return!!e.__k&&(yt(null,e),!0)}function au(e){return e&&(e.base||e.nodeType===1&&e)||null}var _o=function(e,t){return e(t)},uu=function(e,t){return e(t)},lu=$e,cu=Hn,Ur={useState:tn,useId:no,useReducer:jr,useEffect:Lr,useLayoutEffect:nn,useInsertionEffect:fo,useTransition:co,useDeferredValue:lo,useSyncExternalStore:so,startTransition:uo,useRef:Yi,useImperativeHandle:Xi,useMemo:Fn,useCallback:Qi,useContext:eo,useDebugValue:to,version:"18.3.1",Children:Fa,render:Ja,hydrate:Za,unmountComponentAtNode:su,createPortal:qa,createElement:O,createContext:Aa,createFactory:nu,cloneElement:ou,createRef:va,Fragment:$e,isValidElement:Hn,isElement:cu,isFragment:ru,isMemo:iu,findDOMNode:au,Component:Re,PureComponent:Fr,memo:Un,forwardRef:Bn,flushSync:uu,unstable_batchedUpdates:_o,StrictMode:lu,Suspense:Gn,SuspenseList:rn,lazy:za,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:tu};const Nd=Object.freeze(Object.defineProperty({__proto__:null,Children:Fa,Component:Re,Fragment:$e,PureComponent:Fr,StrictMode:lu,Suspense:Gn,SuspenseList:rn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:tu,cloneElement:ou,createContext:Aa,createElement:O,createFactory:nu,createPortal:qa,createRef:va,default:Ur,findDOMNode:au,flushSync:uu,forwardRef:Bn,hydrate:Za,isElement:cu,isFragment:ru,isMemo:iu,isValidElement:Hn,lazy:za,memo:Un,render:Ja,startTransition:uo,unmountComponentAtNode:su,unstable_batchedUpdates:_o,useCallback:Qi,useContext:eo,useDebugValue:to,useDeferredValue:lo,useEffect:Lr,useErrorBoundary:yd,useId:no,useImperativeHandle:Xi,useInsertionEffect:fo,useLayoutEffect:nn,useMemo:Fn,useReducer:jr,useRef:Yi,useState:tn,useSyncExternalStore:so,useTransition:co,version:Dd},Symbol.toStringTag,{value:"Module"}));if(!tn)throw new Error("mobx-react-lite requires React with Hooks support");if(!zs)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function jd(e){e()}function Ld(e){e||(e=jd),Gf({reactionScheduler:e})}function Vd(e){return Hf(e)}var Fd=1e4,Ud=1e4,Bd=function(){function e(t){var n=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(r){r===void 0&&(r=Fd),clearTimeout(n.sweepTimeout),n.sweepTimeout=void 0;var i=Date.now();n.registrations.forEach(function(o,s){i-o.registeredAt>=r&&(n.finalize(o.value),n.registrations.delete(s))}),n.registrations.size>0&&n.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n,r){this.registrations.set(r,{value:n,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.registrations.delete(t)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,Ud))}}),e}(),Gd=typeof FinalizationRegistry<"u"?FinalizationRegistry:Bd,po=new Gd(function(e){var t;(t=e.reaction)===null||t===void 0||t.dispose(),e.reaction=null});function Hd(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var go={exports:{}},vo={};const zd=Hd(Nd);/**
|
|
4
4
|
* @license React
|
|
5
5
|
* use-sync-external-store-shim.production.js
|
|
6
6
|
*
|
|
@@ -8,19 +8,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/var fu;function
|
|
12
|
-
`)+" }":n?.name??""}}return String(e)}function
|
|
13
|
-
`)+" }"}function yh(e){const t=Object.values(e).map(n=>ut(n));return Gn(t)}function bh(e,t){if(e===t)return!0;if(Fr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!Pe(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function wh(e,t){if(e===t)return 0;if(Fr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=yt(e[n[r]],t[n[r]]);if(i!==0)return i}return 0}else return-1}class de{toJSON(){return vh(this)}toString(){return mh(this)}GetHashCode(){return yh(this)}Equals(t){return bh(this,t)}CompareTo(t){return wh(this,t)}}class ne{get contents(){return this.getter()}set contents(t){this.setter(t)}constructor(t,n){typeof n=="function"?(this.getter=t,this.setter=n):(this.getter=()=>t,this.setter=r=>{t=r})}}class Sh{constructor(t){this.message=t}}function Ch(e){return e instanceof Sh||e instanceof Error}function Oh(e){return e instanceof Promise}function Hr(e){return Ch(e)||Oh(e)?e:new Error(String(e))}const nn=Symbol("numeric");function Cu(e){return typeof e=="number"||typeof e=="bigint"||e?.[nn]}function Eh(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function wo(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[nn]().multiply(t)}function zr(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[nn]().toFixed(t)}function Wr(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[nn]().toPrecision(t)}function qr(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[nn]().toExponential(t)}function Kr(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[nn]().toHex()}class Ah{constructor(t,n,r,i){this.declaringType=t,this.tag=n,this.name=r,this.fields=i}}class ae{constructor(t,n,r,i,o,s,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=i,this.fields=o,this.cases=s,this.enumCases=a}toString(){return G(this)}GetHashCode(){return Ou(this)}Equals(t){return So(this,t)}}function he(e){return e.generics!=null?e.generics:[]}function Ou(e){const t=Br(e.fullname),n=he(e).map(Ou);return Gn([t,...n])}function So(e,t){return e.fullname===""?t.fullname===""&&bo(an(e),an(t),([n,r],[i,o])=>n===i&&So(r,o)):e.fullname===t.fullname&&bo(he(e),he(t),So)}function xh(e,t,n,r){return new ae(e,t,n,r)}function rn(e,t,n,r){return new ae(e,t,n,void 0,r)}function Eu(...e){return new ae("",void 0,void 0,void 0,()=>e)}function De(e,t,n,r){const i=new ae(e,t,n,void 0,void 0,()=>{const o=n.prototype.cases();return r().map((s,a)=>new Ah(i,a,o[a],s))});return i}function Co(e){return new ae("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Th(e){return new ae("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Mh=new ae("System.Object"),Au=new ae("Microsoft.FSharp.Core.Unit"),Ae=new ae("System.String"),kh=new ae("System.Boolean");function jt(e){if(Array.isArray(e))return e[0];if(e instanceof ae){const t=Hn(e);if(t!=null)return jt(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function G(e){const t=Hn(e);return t!=null?G(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>G(n)).join(",")+"]"}function xu(e){return Hn(e)!=null}function Hn(e){return e.fullname==="[]"&&e.generics?.length===1?e.generics[0]:void 0}function Tu(e){return e.generics!=null&&e.generics.length>0}function Oo(e){return e.enumCases!=null&&e.enumCases.length>0}function Mu(e){return e.generics==null?e:new ae(e.fullname,e.generics.map(()=>Mh))}function ku(e){return e.generics?.[0]}function on(e){if(Oo(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Ih(e,t){if(e.enumCases!=null)if(typeof t=="string"){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}else{for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}else throw new Error(`${e.fullname} is not an enum type`)}function sn(e,t){const n=parseInt(t,10);return Ih(e,isNaN(n)?t:n)[1]}function Iu(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function an(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function $u(e){if(xo(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Eo(e){return e instanceof ae?e.cases!=null:e instanceof U}function Ao(e){return e instanceof ae?e.fields!=null:e instanceof de}function xo(e){return e.fullname.startsWith("System.Tuple")}function $h(e,t){const r=Iu(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function Ru(e){return e.fields==null?[]:e.fields}function Rh(e,t){return e[t[0]]}function J0(e){return e}function Ph(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);const r=e.declaringType.construct;return r==null?{}:(e.declaringType.cases?e.declaringType.cases().length==1:!1)?new r(...t):new r(e.tag,t)}function Dh(e,t){const n=an(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[i,o],s)=>(r[i]=t[s],r),{})}function Nh(e,t){return e}class Lt{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return ut(this.value)}Equals(t){return t==null?!1:Pe(this.value,t instanceof Lt?t.value:t)}CompareTo(t){return t==null?1:yt(this.value,t instanceof Lt?t.value:t)}}function b(e){if(e==null)throw new Error("Option has no value");return e instanceof Lt?e.value:e}function jh(e){return e instanceof Lt?e.value:e}function Ne(e){return e==null||e instanceof Lt?new Lt(e):e}function To(e,t){return e!=null?b(e):t}function Lh(e,t){return e!=null?b(e):t()}function Vh(e,t){return t!=null?Ne(e(b(t))):void 0}const Fh=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Uh=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Bh=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Gh=["January","February","March","April","May","June","July","August","September","October","November","December"];function _e(e,t,n){let r=0,i=t;for(;i<e.length&&e[i]===n;)i++,r++;return r}function Pu(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Hh(e,t){let n=t;const r=e[t];let i="",o=!1;for(;t<e.length;){t++;const s=e[t];if(s===r){o=!0;break}else if(s==="\\")if(t<e.length)t++,i+=e[t];else throw new Error("Invalid string format");else i+=s}if(!o)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[i,t-n+1]}function Mo(e,t,n){let r=0,i=0,o="";const s=n?zn(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(i=_e(t,r,"d"),r+=i,i){case 1:o+=ju(s);break;case 2:o+=D(ju(s),2);break;case 3:o+=Fh[Fu(s)];break;case 4:o+=Uh[Fu(s)];break}break;case"f":if(i=_e(t,r,"f"),r+=i,i<=3){const v=10**(3-i);o+=D(Math.floor(Xr(s)/v),i)}else i<=7&&(o+=(""+Xr(s)).padEnd(i,"0"));break;case"F":if(i=_e(t,r,"F"),r+=i,i<=3){const v=10**(3-i),m=Math.floor(Xr(s)/v);m!=0&&(o+=D(m,i))}else if(i<=7){const v=Xr(s);v!=0&&(o+=D(v,3))}break;case"g":i=_e(t,r,"g"),r+=i,i<=2&&(o+="A.D.");break;case"h":switch(i=_e(t,r,"h"),r+=i,i){case 1:o+=Yr(s)%12;break;case 2:o+=D(Yr(s)%12,2);break}break;case"H":switch(i=_e(t,r,"H"),r+=i,i){case 1:o+=Yr(s);break;case 2:o+=D(Yr(s),2);break}break;case"K":switch(i=_e(t,r,"K"),r+=i,i){case 1:switch(Du(s)){case 1:o+="Z";break;case 2:o+=un(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(i=_e(t,r,"m"),r+=i,i){case 1:o+=Lu(s);break;case 2:o+=D(Lu(s),2);break}break;case"M":switch(i=_e(t,r,"M"),r+=i,i){case 1:o+=Qr(s);break;case 2:o+=D(Qr(s),2);break;case 3:o+=Bh[Qr(s)-1];break;case 4:o+=Gh[Qr(s)-1];break}break;case"s":switch(i=_e(t,r,"s"),r+=i,i){case 1:o+=Vu(s);break;case 2:o+=D(Vu(s),2);break}break;case"t":switch(i=_e(t,r,"t"),r+=i,i){case 1:o+=s.getHours()<12?"A":"P";break;case 2:o+=s.getHours()<12?"AM":"PM";break}break;case"y":switch(i=_e(t,r,"y"),r+=i,i){case 1:o+=s.getFullYear()%100;break;case 2:o+=D(s.getFullYear()%100,2);break;case 3:o+=D(s.getFullYear(),3);break;case 4:o+=D(s.getFullYear(),4);break;case 5:o+=D(s.getFullYear(),5);break}break;case"z":i=_e(t,r,"z"),r+=i;let u="";switch(Du(s)){case 1:u="+00:00";break;case 2:u=un(s.getTimezoneOffset()*-6e4);break;case 0:u=un(Qh(s).getTimezoneOffset()*-6e4);break}const l=u[0]==="-"?"-":"+",f=parseInt(u.substring(1,3),10),c=parseInt(u.substring(4,6),10);switch(i){case 1:o+=`${l}${f}`;break;case 2:o+=`${l}${D(f,2)}`;break;default:o+=`${l}${D(f,2)}:${D(c,2)}`;break}break;case":":o+=":",r++;break;case"/":o+="/",r++;break;case"'":case'"':const[d,h]=Hh(t,r);o+=d,r+=h;break;case"%":const _=Pu(t,r);if(_>=0&&_!==37)r+=2,o+=Mo(s,String.fromCharCode(_),n);else throw new Error("Invalid format string");break;case"\\":const g=Pu(t,r);if(g>=0)r+=2,o+=String.fromCharCode(g);else throw new Error("Invalid format string");break;default:r++,o+=a;break}}return o}function Du(e){return e.kind||0}function un(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+D(n,2)+":"+D(r,2)}function Jr(e,t){const n=e.toISOString();return t==="first"?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function zh(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return D(e.getFullYear(),4)+"-"+D(e.getMonth()+1,2)+"-"+D(e.getDate(),2)+"T"+D(e.getHours(),2)+":"+D(e.getMinutes(),2)+":"+D(e.getSeconds(),2)+"."+D(e.getMilliseconds(),3)+(n?un(e.getTimezoneOffset()*-6e4):"")}}function Wh(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+un(t)}function qh(e,t){const n=new Date(e.getTime()+(e.offset??0));if(typeof t!="string")return n.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+un(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return Jr(n,"first");case"T":case"t":return Jr(n,"second");case"O":case"o":return Wh(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Mo(n,t,!0)}function Kh(e,t){const n=e.kind===1;if(typeof t!="string")return n?e.toUTCString():e.toLocaleString();if(t.length===1)switch(t){case"D":case"d":return n?Jr(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Jr(e,"second"):e.toLocaleTimeString();case"O":case"o":return zh(e,n);default:throw new Error("Unrecognized Date print format")}else return Mo(e,t,n)}function Zr(e,t,n){return e.offset!=null?qh(e,t):Kh(e,t)}function zn(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function Jh(){return zn(-621355968e5,1)}function Nu(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const i=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(i!=null){let o,s=0;if(i[2]!=null){const a=i[2].split(":"),u=parseInt(a[0],10);s=u*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),i[3]!=null&&i[3].toUpperCase()==="PM"&&u<12&&(s+=720)}if(i[4]!=null){if(i[1]!=null)o=new Date(i[1]+" UTC");else{const a=new Date;o=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(i[4]==="Z")r="Z";else{let a=parseInt(i[5],10)*60+parseInt(i[6]||"0",10);i[4][0]==="-"&&(a*=-1),r=a,s-=a*60}}else if(i[1]!=null)o=new Date(i[1]);else{const a=new Date;o=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(o.getTime()+s*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-o.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function Zh(e,t=!1){const[n,r]=Nu(e),i=r!=null?t&&r==="Z"?1:2:0;return zn(n.getTime(),i)}function Yh(e,t){try{return t.contents=Zh(e),!0}catch{return!1}}function Xh(e){return e.kind===1?e:zn(e.getTime(),1)}function Qh(e){return e.kind===2?e:zn(e.getTime(),2)}function ju(e){return e.kind===1?e.getUTCDate():e.getDate()}function Yr(e){return e.kind===1?e.getUTCHours():e.getHours()}function Xr(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function Lu(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function Qr(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function Vu(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Fu(e){return e.kind===1?e.getUTCDay():e.getDay()}function e_(e,t=0){if((t&-284)!==0)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=t&1?"i":"",n+=t&2?"m":"",n+=t&16?"s":"",new RegExp(e,n)}function Uu(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function t_(e,t,n=0){return e.lastIndex=n,e.test(t)}function Bu(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let i,o=-1;for(;(i=e.exec(t))!=null;)i.index===o?e.lastIndex++:(o=i.index,r.push(i));return r}function n_(e,t,n,r,i=0){function o(){let s=arguments[0];if(r){r--;const a=[],u=arguments.length,l=typeof arguments[u-1]!="string";let f=l?u-3:u-2;for(let c=0;c<f;c++)a.push(arguments[c]);a.index=arguments[f++],a.input=arguments[f++],l&&(a.groups=arguments[f]),s=n(a)}return s}if(typeof e=="string"){const s=e;e=e_(t,r??0),t=s,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,i)+t.substring(i).replace(e,o);if(n=n.replace(/\$0/g,s=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let s;const a=t.substring(i),u=Bu(e,a),l=Bu.length>r?(s=u[r-1],a.substring(0,s.index+s[0].length)):a;return t.substring(0,i)+l.replace(e,n)+t.substring(i+l.length)}else return t.replace(e,n)}const Wn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,r_=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Gu(e,t){return Eh(e,t)<0}function Ze(e){return{input:e,cont:o_(e)}}function Hu(e,t){return typeof t=="string"?e(t):t.cont(e)}function Vt(e){return Hu(t=>t,e)}function ko(e){return Hu(t=>{throw new Error(t)},e)}function i_(e,t,n,r,i){let o="";if(t=t||"",i=i||"",Cu(e))switch(i.toLowerCase()!=="x"&&(Gu(e,0)?(e=wo(e,-1),o="-"):t.indexOf(" ")>=0?o=" ":t.indexOf("+")>=0&&(o="+")),r=r==null?null:parseInt(r,10),i){case"f":case"F":r=r??6,e=zr(e,r);break;case"g":case"G":e=r!=null?Wr(e,r):Wr(e);break;case"e":case"E":e=r!=null?qr(e,r):qr(e);break;case"x":e=Kr(e);break;case"X":e=Kr(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Zr(e):e=Ee(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=o+e;else{const s=t.indexOf("0")>=0,a=t.indexOf("-")>=0,u=a||!s?" ":"0";u==="0"?(e=Kn(e,n-o.length,u,a),e=o+e):e=Kn(o+e,n,u,a)}return e}function zu(e,t,n,r="",i=-1){return(...o)=>{let s=r;const a=t.slice(),u=n.slice();for(const l of o){const[,,f,c,d,h]=u[0];let _=c;if(i>=0)_=i,i=-1;else if(_==="*"){if(l<0)throw new Error("Non-negative number required");i=l;continue}s+=a[0],s+=i_(l,f,_,d,h),a.splice(0,1),u.splice(0,1)}return u.length===0?(s+=a[0],e(s)):zu(e,a,u,s,i)}}function o_(e){return t=>{Wn.lastIndex=0;const n=[],r=[];let i=0,o=Wn.exec(e);for(;o;){const s=o.index+(o[1]||"").length;n.push(e.substring(i,s).replace(/%%/g,"%")),r.push(o),i=Wn.lastIndex,Wn.lastIndex-=1,o=Wn.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(i).replace(/%%/g,"%")),zu(t,n,r))}}function s_(e,...t){let n;return n=e,n.replace(r_,(r,i,o,s,a,u)=>{if(i<0||i>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let l=t[i];if(Cu(l))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a??2,l=zr(l,a);break;case"g":case"G":l=a!=null?Wr(l,a):Wr(l);break;case"e":case"E":l=a!=null?qr(l,a):qr(l);break;case"p":case"P":a=a??2,l=zr(wo(l,100),a)+" %";break;case"d":case"D":l=a!=null?Io(String(l),a,"0"):String(l);break;case"x":case"X":l=a!=null?Io(Kr(l),a,"0"):Kr(l),s==="X"&&(l=l.toUpperCase());break;default:if(u){let f="";l=u.replace(/([0#,]+)(\.[0#]+)?/,(c,d,h)=>{Gu(l,0)&&(l=wo(l,-1),f="-"),h=h==null?"":h.substring(1),l=zr(l,Math.max(h.length,0));let[_,g]=l.split(".");g||(g="");const v=d.replace(/,/g,"").replace(/^#+/,"").length;_=Io(_,v,"0");const m=h.replace(/#+$/,"").length;if(m>g.length?g=l_(g,m,"0"):m<g.length&&(g=g.substring(0,m)+g.substring(m).replace(/0+$/,"")),d.indexOf(",")>0){const w=_.length%3,x=Math.floor(_.length/3);let N=w>0?_.substr(0,w)+(x>0?",":""):"";for(let ee=0;ee<x;ee++)N+=_.substr(w+ee*3,3)+(ee<x-1?",":"");_=N}return g.length>0?_+"."+g:_}),l=f+l}}else l instanceof Date?l=Zr(l,u||s):l=Ee(l);return o=parseInt((o||" ").substring(1),10),isNaN(o)||(l=Kn(String(l),Math.abs(o)," ",o<0)),l})}function a_(e){return typeof e!="string"||e.length===0}function u_(e){return typeof e!="string"||/^\s*$/.test(e)}function qn(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Kn(e,t,n,r){n=n||" ",t=t-e.length;for(let i=0;i<t;i++)e=r?e+n:n+e;return e}function Io(e,t,n){return Kn(e,t,n)}function l_(e,t,n){return Kn(e,t,n,!0)}function Wu(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const i=(r&1)===1,o=(r&2)===2;t=t||[],t=t.filter(f=>f).map(Uu),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let u=!0,l=0;do{const f=a.exec(e);if(f===null){const c=o?e.substring(l).trim():e.substring(l);(!i||c.length>0)&&s.push(c),u=!1}else{const c=o?e.substring(l,f.index).trim():e.substring(l,f.index);(!i||c.length>0)&&(n!=null&&s.length+1===n?(s.push(o?e.substring(l).trim():e.substring(l)),u=!1):s.push(c)),l=a.lastIndex}}while(u);return s}function c_(e,...t){if(t.length===0)return e.trim();const n="["+Uu(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}function f_(e){throw new Error(e)}function qu(e,t){return new Array(t)}const Ku="Collection was empty.";function $o(e,t,n,r){const i=t|0;return e.fill(r,i,i+n)}function ln(e,t,n){const r=t.length|0,i=qu(n,r);for(let o=0;o<=r-1;o++)bt(i,o,e(W(o,t)));return i}function d_(e,t){const n=qu(t,1);return bt(n,0,e),n}function h_(e){return e.slice().reverse()}function __(e,t){return t.find(e)}function p_(e,t,n){const r=[];for(let i=0;i<=t.length-1;i++){const o=e(W(i,t));if(o!=null){const s=b(o);r.push(s)}}return Pe(n,F())?r:ln(i=>i,r,n)}function Jn(e,t,n){const r=e;return n.reduce(r,t)}function g_(e,t,n){return t==null}function W(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function bt(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}function v_(e,t,n){return t.reduceRight((r,i)=>e(i,r),n)}class wt extends de{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+qn("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((i,o)=>{e:for(;;){const s=i,a=o,u=s.tail,l=a.tail;if(u!=null)if(l!=null){const f=b(u),c=b(l);if(Pe(s.head,a.head)){i=f,o=c;continue e}else return!1}else return!1;else return l==null}})(n,t)}GetHashCode(){return((r,i,o)=>{e:for(;;){const s=r,a=i,u=o,l=u.tail;if(l!=null){const f=b(l);if(s>18)return a|0;r=s+1,i=(a<<1)+ut(u.head)+631*s,o=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((i,o)=>{e:for(;;){const s=i,a=o,u=s.tail,l=a.tail;if(u!=null)if(l!=null){const f=b(u),c=b(l),d=yt(s.head,a.head)|0;if(d===0){i=f,o=c;continue e}else return d|0}else return 1;else return l!=null?-1:0}})(this,t)|0}GetEnumerator(){return y_(this)}[Symbol.iterator](){return Ur(J(this))}"System.Collections.IEnumerable.GetEnumerator"(){return J(this)}}class m_{constructor(t){this.xs=t,this.it=this.xs,this.current=F()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this,n=t.it.tail;if(n!=null){const r=b(n);return t.current=t.it.head,t.it=r,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=F()}Dispose(){}}function y_(e){return new m_(e)}function cn(){return new wt(F(),void 0)}function Zn(e,t){return new wt(e,t)}function ei(e){return e.tail==null}function b_(e){return((n,r)=>{e:for(;;){const i=n,s=r.tail;if(s!=null){n=i+1,r=b(s);continue e}else return i|0}})(0,e)|0}function Ro(e){if(e.tail!=null)return e.head;throw new Error(Ku+"\\nParameter name: list")}function Yn(e){const t=e.tail;if(t!=null)return b(t);throw new Error(Ku+"\\nParameter name: list")}function Ye(){return cn()}function je(e,t){return Zn(e,t)}function fn(e){return Zn(e,cn())}function R(e){return ei(e)}function C(e){return Ro(e)}function $(e){return Yn(e)}function ti(e){const t=b_(e)|0,n=$o(new Array(t),0,t,null);return((i,o)=>{e:for(;;){const s=i,a=o;if(!ei(a)){bt(n,s,Ro(a)),i=s+1,o=Yn(a);continue e}break}})(0,e),n}function ni(e,t,n){let r=t,i=n;for(;!ei(i);)r=e(r,C(i)),i=Yn(i);return r}function Po(e){return ni((t,n)=>Zn(n,t),cn(),e)}function z(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Zn(W(r,e),n);return n}function Y(e){return z(e,cn())}function Ju(e){let t,n;if(Je(e))return Y(e);if(e instanceof wt)return e;{const r=cn();let i=r;const o=J(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const u=o["System.Collections.Generic.IEnumerator`1.get_Current"]();i=(t=i,n=new wt(u,void 0),t.tail=n,n)}}finally{K(o)}const s=i,a=cn();return s.tail=a,Yn(r)}}function Zu(e,t){return ni((n,r)=>Zn(r,n),t,Po(e))}function w_(e,t){return((r,i)=>{e:for(;;){const o=r,s=i;if(ei(s))return;if(e(Ro(s)))return o;r=o+1,i=Yn(s);continue e}})(0,t)}function S_(e,t,n){return w_(r=>n.Equals(e,r),t)!=null}const C_="Enumeration already finished.",O_="Enumeration has not started. Call MoveNext.",E_="Reset is not supported on this enumerator.";function A_(){throw new Error(E_)}function Yu(){throw new Error(O_)}function Do(){throw new Error(C_)}class x_{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const i=J(t);try{for(;n<4&&i["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Ee(i["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{K(i)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Ur(J(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function T_(e){return new x_(e)}class M_{constructor(t,n,r){this.current=t,this.next=n,this.dispose=r}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){A_()}Dispose(){this.dispose()}}function Xu(e,t,n){return new M_(e,t,n)}function k_(e){let t,n,r=!1,i=!1,o;const s=()=>{if(i=!0,n!=null){const a=b(n);try{K(a)}finally{n=void 0}}if(t!=null){const a=b(t);try{K(a)}finally{t=void 0}}};return Xu(()=>(r?i&&Do():Yu(),o!=null?b(o):Do()),()=>{let a;if(r||(r=!0),i)return!1;{let u;for(;u==null;){const l=t,f=n;if(l!=null)if(f!=null){const c=b(f);if(c["System.Collections.IEnumerator.MoveNext"]())o=Ne(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),u=!0;else try{K(c)}finally{n=void 0}}else{const c=b(l);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),J(a)):(s(),u=!1)}else t=J(e)}return b(u)}},()=>{i||s()})}function Qu(e,t,n){let r=!1,i,o=Ne(e());const s=()=>{if(o!=null){const u=b(o);try{n(u)}finally{o=void 0}}},a=()=>{try{s()}finally{i=void 0}};return Xu(()=>(r||Yu(),i!=null?b(i):Do()),()=>{if(r||(r=!0),o!=null){const u=b(o);let l;try{l=t(u)}catch(f){throw a(),f}return l!=null?(i=l,!0):(a(),!1)}else return!1},s)}function I_(e,t){t==null&&f_(e)}function ri(e){return T_(e)}function dn(e){return I_("source",e),J(e)}function q(e){return ri(()=>J(e()))}function $_(e){return ri(()=>k_(e))}function T(e){return q(()=>d_(e))}function Z0(e){return e}function R_(e){return e instanceof wt?ti(e):Array.from(e)}function ii(e){return Je(e)?Y(e):e instanceof wt?e:Ju(e)}function P_(e,t,n){return ri(()=>Qu(e,t,n))}function D_(e,t,n){return ri(()=>{let r=-1;return Qu(e,i=>(r=r+1|0,t(r,i)),n)})}function te(e,t){return $_([e,t])}function N_(e,t,n){const r=dn(t);try{const i=dn(n);try{let o=0,s=r["System.Collections.IEnumerator.MoveNext"](),a=i["System.Collections.IEnumerator.MoveNext"]();for(;o===0&&s&&a;)o=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),i["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,o===0&&(s=r["System.Collections.IEnumerator.MoveNext"](),a=i["System.Collections.IEnumerator.MoveNext"]());return(o!==0?o:s?1:a?-1:0)|0}finally{K(i)}}finally{K(r)}}function hn(e,t,n){const r=dn(t);try{let i=!1;for(;!i&&r["System.Collections.IEnumerator.MoveNext"]();)i=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return i}finally{K(r)}}function oi(e,t,n){const r=dn(n);try{let i=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)i=e(i,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return i}finally{K(r)}}function No(e,t){oi((n,r)=>{e(r)},void 0,t)}function Le(e,t){return P_(()=>dn(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?Ne(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{K(n)})}function j_(e,t){return D_(()=>dn(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?Ne(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{K(n)})}function L_(e){return q(()=>h_(R_(e)))}const V_='/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-600:oklch(57.7% .245 27.325);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-900:oklch(21% .034 264.665);--color-white:#fff;--spacing:.25rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--font-weight-medium:500;--font-weight-semibold:600;--radius-md:.375rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.ml-4{margin-left:calc(var(--spacing)*4)}.block{display:block}.inline{display:inline}.w-100{width:calc(var(--spacing)*100)}.w-fit{width:fit-content}.cursor-pointer{cursor:pointer}.rounded-md{border-radius:var(--radius-md)}.bg-indigo-600{background-color:var(--color-indigo-600)}.bg-red-50{background-color:var(--color-red-50)}.bg-white{background-color:var(--color-white)}.p-3{padding:calc(var(--spacing)*3)}.px-3{padding-inline:calc(var(--spacing)*3)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.pr-8{padding-right:calc(var(--spacing)*8)}.pl-3{padding-left:calc(var(--spacing)*3)}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-sm\\/6{font-size:var(--text-sm);line-height:calc(var(--spacing)*6)}.leading-6{--tw-leading:calc(var(--spacing)*6);line-height:calc(var(--spacing)*6)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-gray-500{color:var(--color-gray-500)}.text-gray-900{color:var(--color-gray-900)}.text-red-600{color:var(--color-red-600)}.text-white{color:var(--color-white)}.lowercase{text-transform:lowercase}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.inset-ring{--tw-inset-ring-shadow:inset 0 0 0 1px var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.inset-ring-gray-300{--tw-inset-ring-color:var(--color-gray-300)}.outline-1{outline-style:var(--tw-outline-style);outline-width:1px}.-outline-offset-1{outline-offset:-1px}.outline-gray-300{outline-color:var(--color-gray-300)}.placeholder\\:text-gray-400::placeholder{color:var(--color-gray-400)}@media (hover:hover){.hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\\:bg-indigo-500:hover{background-color:var(--color-indigo-500)}}.focus\\:outline-2:focus{outline-style:var(--tw-outline-style);outline-width:2px}.focus\\:-outline-offset-2:focus{outline-offset:-2px}.focus\\:outline-indigo-600:focus{outline-color:var(--color-indigo-600)}.focus-visible\\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\\:-outline-offset-2:focus-visible{outline-offset:-2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-indigo-600:focus-visible{outline-color:var(--color-indigo-600)}.disabled\\:bg-gray-50:disabled{background-color:var(--color-gray-50)}.disabled\\:text-gray-500:disabled{color:var(--color-gray-500)}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:outline-gray-200:disabled{outline-color:var(--color-gray-200)}}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}',F_=Ee(V_),el=Q,tl=zs,U_=Zf,nl=$f,B_=Df;function rl(e,t,n){if(e.has(t))throw new Error("An item with the same key has already been added. Key: "+t);e.set(t,n)}const G_=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,il=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,H_=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function z_(e){function t(r){return r.replace(il,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(G_.test(n))return c_(n,"{","}","(",")");if(il.test(n))return t(n);if(H_.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function ol(e,t){try{return t.contents=z_(e),!0}catch{return!1}}function W_(){let e="";for(let t=0;t++<36;)e+=t*51&52?(t^15?8^Math.random()*(t^20?16:4):4).toString(16):"-";return e}let si=Ye();function sl(e,t){try{return si=je(t,si),e()}finally{si=$(si)}}class q_{constructor(t,n){this.this=new ne(F()),this.this,this.state=t,this.description=n,this.this.contents=this,this.cleanupActions=void 0,this["init@56"]=1}get IsActive(){const n=this.cleanupActions;return n!=null?n.size>0:!1}AutoSubscribe(t,n,r,i){let o;const s=this,a=ul(s,n,r,i,(o=t.Description,Vt(Ze("sub [%s] -> [%s]"))(o)(s.description))),u=a[0],l={Id:u,Detach(f){const c=d=>f===d;c(s.this.contents)?t.Remove(l):c(t)?Lo(s,u):ko(Ze("The notifier is not a party to this subscription: %A"))(f),a[1]()}};al(s,l),t.Add(l)}Subscribe(t,n,r){const i=this,o=ul(i,t,n,r,Vt(Ze("sub [%s]"))(i.description)),s=o[0],a=o[1];return jo(i,u=>{rl(u,s,a)}),{Dispose(){Lo(i,s)&&a()}}}get Description(){return this.description}Add(t){al(this,t)}Remove(t){Lo(this,t.Id)}Dispose(){const t=this,n=t.cleanupActions;if(n!=null){let i=J(n.values());try{for(;i["System.Collections.IEnumerator.MoveNext"]();)i["System.Collections.Generic.IEnumerator`1.get_Current"]()()}finally{K(i)}}t.cleanupActions=void 0}}function K_(e,t){return new q_(e,t)}function jo(e,t){const n=e.cleanupActions;if(n==null){const r=new Map([]);return e.cleanupActions=r,t(r)}else return t(n)}function al(e,t){jo(e,n=>{rl(n,t.Id,()=>{t.Detach(e.this.contents)})})}function Lo(e,t){return jo(e,n=>n.delete(t))}function ul(e,t,n,r,i){const o=W_(),s={};return s.fireImmediately=r,s.name=i,[o,B_(()=>t(e.state()),n,s)]}class J_{constructor(t){const n=new ne(F());n.contents=this,this["init@17"]=1,n.contents.Content=t}}function Z_(e){return new J_(e)}const ll=Symbol("annotations");function Y_(e){return{}}function X_(e){let t,n;return U_(e,(t=e[ll],t!=null?(n=t,delete e[ll],n):{}))}const Q_=Symbol("state");class cl{constructor(t,n,r,i){let o,s,a,u,l;const f=new ne(F());this.update=n,f.contents=this;const c=i;this.queue=[],this.ready=!1,this.subject=K_(()=>pe(f.contents),"");const d=nl(()=>sl(()=>t(g=>{this.ready?ge(f.contents,g):this.queue.push(g)}),this.subject));if(this.computed=X_(r(d)),this.storage=Ao(c)?(o=tl(d,Jn((g,v)=>(g[jt(v)]=el.ref,g),{},an(c))),{Read:o,Write(g){Object.assign(o,g)}}):Eo(c)?(s=Z_(d),a={},a.Content=el.struct,u=tl(s,a),new class{get Read(){return u.Content}Write(g){u.Content=g}}):(()=>{throw new Error("State must be a record or union type")})(),this["init@97-1"]=1,Object.defineProperty(f.contents,"debugView",{enumerable:!0,get:()=>Ee(f.contents)}),this.queue.length>0){const g=Ju(this.queue);hh(this.queue),No((l=f.contents,v=>{ge(l,v)}),g)}const h=this.computed,_=this.storage;h[Q_]=_,this.ready=!0}toString(){const n=this.storage.Read;return Vt(Ze("%A"))(n)}get IsActive(){return Vo(this,n=>n.IsActive)}AutoSubscribe(t,n,r,i){Vo(this,s=>{s.AutoSubscribe(t,n,r,i)})}Subscribe(t,n,r){return Vo(this,o=>o.Subscribe(t,n,r))}Dispose(){K(this.subject)}}function ep(e,t,n,r){return new cl(e,t,n,r)}function pe(e){return e.storage.Read}function _n(e){return e.computed}function ge(e,t){if(e.queue.push(t),e.queue.length===1)for(;e.queue.length>0;){const n=e.queue[0];nl(()=>{sl(()=>{const r=e.update([e.storage.Read,i=>{ge(e,i)},_n(e)],n);e.storage.Write(r)},e.subject)}),e.queue.splice(0,1)}}function Vo(e,t){return t(e.subject)}class tp extends cl{constructor(t,n,r){super(t,n,Y_,r),this["init@221-2"]=1}}function np(e,t,n){return new tp(e,t,n)}const lt=Vr;class rp extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["UnverifiedConnection"]}}function ip(e){if(t_(/^[a-z0-9-]{3,32}$/gu,e))return new rp(e)}class op extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ClientId"]}}function sp(e){let t,n="00000000-0000-0000-0000-000000000000";if(t=[ol(e,new ne(()=>n,r=>{n=r})),n],t[0])return new op(t[1])}class ap extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ClientSecret"]}}function up(e){if(!(u_(e)||e.length<20))return new ap(e)}let lp=class extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SSO","MagicLink","PartnerToken"]}};class cp extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Enabled","Disabled"]}}new cp(0,[new lp(2,[])]);class fp extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["TruncatedClientSecret"]}}function dp(){return De("ApolloIdentity.Shared.AdminDto.LoginConfigDto.Read.TruncatedClientSecret",[],fp,()=>[[["Item",Ae]]])}function hp(e){return e.fields[0]}class _p extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EntraId"]}}function pp(){return De("ApolloIdentity.Shared.AdminDto.LoginConfigDto.Read.SSOConfigDto",[],_p,()=>[[["Item",Eu(["ClientId",xh("System.Guid")],["Connection",Ae],["TruncatedClientSecret",dp()])]]])}class gp extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SSO","MagicLink","PartnerToken"]}}function vp(){return De("ApolloIdentity.Shared.AdminDto.LoginConfigDto.Read.LoginMethodDto",[],gp,()=>[[["Item",pp()]],[],[]])}class mp extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Enabled","Disabled"]}}function Fo(){return De("ApolloIdentity.Shared.AdminDto.LoginConfigDto.Read.LoginConfigDto",[],mp,()=>[[["Item",vp()]],[]])}class fl extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EntraId"]}}function yp(){return De("ApolloIdentity.Shared.AdminDto.LoginConfigDto.Write.SSOConfigDto",[],fl,()=>[[["Item",Eu(["ClientId",Ae],["ClientSecret",Ae],["Connection",Ae])]]])}class ai extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SSO","MagicLink","PartnerToken"]}}function bp(){return De("ApolloIdentity.Shared.AdminDto.LoginConfigDto.Write.LoginMethodDto",[],ai,()=>[[["Item",yp()]],[],[]])}class Xn extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Enable","Disable"]}}function wp(){return De("ApolloIdentity.Shared.AdminDto.LoginConfigDto.Write.LoginConfigCommandDto",[],Xn,()=>[[["Item",bp()]],[]])}function ui(e){let t;return E("input",fe(Y([(t="mt-2 w-100 block rounded-md bg-white px-3 py-1.5 text-gray-900 outline-1 -outline-offset-1 outline-gray-300 disabled:bg-gray-50 disabled:text-gray-500 disabled:outline-gray-200 text-sm/6",["className",t]),["disabled",!0],["value",e]])))}function Qn(e){return E("label",{className:"mt-2 block text-sm/6 font-medium text-gray-900",children:e})}function Sp(e){const t=ii(q(()=>{let n,r;return te(T((n=Y([Qn("Login method"),ui((r=e.LoginConfig,r.tag===0?r.fields[0].tag===1?"Magic Link":r.fields[0].tag===0?"EntraID SSO":"Partner Token":"Disabled"))]),E("div",{children:lt.Children.toArray(Array.from(n))}))),q(()=>{let i,o,s,a;return te((i=e.LoginConfig,i.tag===0?i.fields[0].tag===1?T(F()):i.fields[0].tag===0?(o=i.fields[0].fields[0].fields[0],T(E("div",fe(Y([["className","mt-4"],(s=[E("h3",{className:"text-lg font-medium leading-6 text-gray-900",children:"EntraID SSO Configuration Details"}),Qn("Connection"),ui(o.Connection),Qn("Client ID"),ui((a=o.ClientId,a)),Qn("Client Secret"),ui(`**********${hp(o.TruncatedClientSecret)}`)],["children",lt.Children.toArray(Array.from(s))])]))))):T(F()):T(F())),q(()=>{let u;const l=e.OnEdit;if(l!=null){const f=l;return T(E("button",fe(Y([["type","button"],(u="mt-4 rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-xs hover:bg-indigo-500 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 cursor-pointer",["className",u]),["onClick",c=>{f()}],["children","✏️ Edit"]]))))}else return T(F())}))}))}));return E("div",{children:lt.Children.toArray(Array.from(t))})}function Cp(e){return new p(0,[e])}function dl(e){return new p(1,[e])}class p extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function ct(e,t){return t.tag===0?Cp(e(t.fields[0])):dl(t.fields[0])}function Op(e,t){return t.tag===0?e(t.fields[0]):dl(t.fields[0])}function Ep(e,t){t.tag===0&&e(t.fields[0])}class Uo extends de{constructor(t){super(),this.ConfigureLogin=t}}function Ap(){return rn("ApolloIdentity.AdminUI.Roles",[],Uo,()=>[["ConfigureLogin",kh]])}function xp(e){return new Uo(S_("Identity.ConfigureLogin",e.Roles,{Equals:(t,n)=>t===n,GetHashCode:Br}))}const Tp=new Uo(!1);class S extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class pn extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function hl(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function _l(e,t){switch(e.tag){case 2:return n_(hl(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return hl(t)}}var Bo;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Bo||(Bo={}));function Mp(e,t){const[,n,r,i]=e;return{sign:n||"",prefix:r||"",digits:i,radix:t}}function pl(e,t){switch(t){case 8:return e?[0,255]:[-128,127];case 16:return e?[0,65535]:[-32768,32767];case 32:return e?[0,4294967295]:[-2147483648,2147483647];default:throw new Error("Invalid bit size.")}}function kp(e){switch(e){case 2:return/[^0-1]/;case 8:return/[^0-7]/;case 10:return/[^0-9]/;case 16:return/[^0-9a-fA-F]/;default:throw new Error("Invalid Base.")}}function Ip(e,t){if(t&Bo.AllowHexSpecifier)return 16;switch(e){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}function $p(e,t,n){const i=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(i!=null){const[,,o,s]=i;if(n=n||Ip(o,t),!kp(n).test(s))return Mp(i,n)}return null}function Rp(e,t,n,r,i){const o=$p(e,t,i);if(o!=null){let s=Number.parseInt(o.sign+o.digits,o.radix);if(!Number.isNaN(s)){const[a,u]=pl(!0,r);!n&&o.radix!==10&&s>=a&&s<=u&&(s=s<<32-r>>32-r);const[l,f]=pl(n,r);if(s>=l&&s<=f)return s}}throw new Error(`The input string ${e} was not in a correct format.`)}function gn(e,t,n,r,i){try{return i.contents=Rp(e,t,n,r),!0}catch{return!1}}function gl(e,t){Pp(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Pp(e){if(e!=null&&e!==0){if(e%6e4!==0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}function Dp(){return gl(-621355968e5,0)}function Np(e){const[t,n]=Nu(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return gl(t.getTime(),r)}function jp(e,t){try{return t.contents=Np(e),!0}catch{return!1}}function er(e){return e<0?Math.ceil(e):Math.floor(e)}function vl(e=0,t=0,n=0,r=0,i=0){switch(arguments.length){case 1:return Lp(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],i=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+i}function Lp(e){return Number(BigInt(e)/10000n)}function Vp(e){return er(e/864e5)}function Fp(e){return er(e%864e5/36e5)}function Up(e){return er(e%36e5/6e4)}function Bp(e){return er(e%6e4/1e3)}function Gp(e){return er(e%1e3)}function Hp(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(Vp(e)),i=Math.abs(Fp(e)),o=Math.abs(Up(e)),s=Math.abs(Bp(e)),a=Math.abs(Gp(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?i:D(i,2)}:${D(o,2)}:${D(s,2)}${a===0&&(t==="c"||t==="g")?"":t==="g"?"."+D(a,3):"."+oh(a,3,7)}`}function zp(e){const t=e.search("\\."),n=e.search("\\:");if(t===-1&&n===-1){const r=parseInt(e,0);if(isNaN(r))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return vl(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let i=0,o=0,s=0;const a=r[1]!=null&&r[1]==="-"?-1:1,u=+r[4],l=+r[5];if(r[3]!=null&&(i=+r[3]),r[7]!=null&&(s=+r[7]),r[8]!=null)switch(r[8].length){case 1:o=+r[8]*100;break;case 2:o=+r[8]*10;break;case 3:o=+r[8];break;case 4:o=+r[8]/10;break;case 5:o=+r[8]/100;break;case 6:o=+r[8]/1e3;break;case 7:o=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*vl(i,u,l,s,o)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Wp(e,t){try{return t.contents=zp(e),!0}catch{return!1}}class ml{constructor(t,n){this.k=t,this.v=n}}function li(e,t){return new ml(e,t)}function re(e){return e.k}function ve(e){return e.v}class X extends ml{constructor(t,n,r,i,o){super(t,n),this.left=r,this.right=i,this.h=o|0}}function ci(e,t,n,r,i){return new X(e,t,n,r,i)}function ie(e){return e.left}function oe(e){return e.right}function Ft(e){return e.h}function Y0(){}function yl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=b(r);if(i instanceof X){const o=i;e=yl(n+1,ie(o)),t=oe(o);continue e}else return n+1|0}else return n|0}}function qp(e){return yl(0,e)}function Ve(e,t,n,r){let i,o,s;const a=e;if(a!=null){const c=b(a);s=c instanceof X?(i=c,Ft(i)):1}else s=0;let u;const l=r;if(l!=null){const c=b(l);u=c instanceof X?(o=c,Ft(o)):1}else u=0;const f=(s<u?u:s)|0;return f===0?li(t,n):ci(t,n,e,r,f+1)}function bl(e,t,n,r){let i,o,s,a,u,l,f,c,d;const h=e;if(h!=null){const v=b(h);d=v instanceof X?(i=v,Ft(i)):1}else d=0;let _;const g=r;if(g!=null){const v=b(g);_=v instanceof X?(o=v,Ft(o)):1}else _=0;if(_>d+2){const v=b(r);if(v instanceof X){const m=v;if(s=ie(m),(s!=null?(a=b(s),a instanceof X?(u=a,Ft(u)):1):0)>d+1){const w=b(ie(m));if(w instanceof X){const x=w;return Ve(Ve(e,t,n,ie(x)),re(x),ve(x),Ve(oe(x),re(m),ve(m),oe(m)))}else throw new Error("internal error: Map.rebalance")}else return Ve(Ve(e,t,n,ie(m)),re(m),ve(m),oe(m))}else throw new Error("internal error: Map.rebalance")}else if(d>_+2){const v=b(e);if(v instanceof X){const m=v;if(l=oe(m),(l!=null?(f=b(l),f instanceof X?(c=f,Ft(c)):1):0)>_+1){const w=b(oe(m));if(w instanceof X){const x=w;return Ve(Ve(ie(m),re(m),ve(m),ie(x)),re(x),ve(x),Ve(oe(x),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Ve(ie(m),re(m),ve(m),Ve(oe(m),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Ve(e,t,n,r)}function vn(e,t,n,r){if(r!=null){const i=b(r),o=e.Compare(t,re(i))|0;if(i instanceof X){const s=i;return o<0?bl(vn(e,t,n,ie(s)),re(s),ve(s),oe(s)):o===0?ci(t,n,ie(s),oe(s),Ft(s)):bl(ie(s),re(s),ve(s),vn(e,t,n,oe(s)))}else return o<0?ci(t,n,void 0,r,2):o===0?li(t,n):ci(t,n,r,void 0,2)}else return li(t,n)}function wl(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=b(o),a=r.Compare(i,re(s))|0;if(a===0)return Ne(ve(s));if(s instanceof X){const u=s;e=r,t=i,n=a<0?ie(u):oe(u);continue e}else return}else return}}function Kp(e,t,n){const r=wl(e,t,n);if(r==null)throw new Error;return b(r)}function Jp(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=b(o),a=r.Compare(i,re(s))|0;if(s instanceof X){const u=s;if(a<0){e=r,t=i,n=ie(u);continue e}else{if(a===0)return!0;e=r,t=i,n=oe(u);continue e}}else return a===0}else return!1}}function Sl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=b(r);if(i instanceof X){const o=i;Sl(n,ie(o)),n(re(o),ve(o)),e=n,t=oe(o);continue e}else n(re(i),ve(i))}break}}function Zp(e,t){Sl(e,t)}function Yp(e,t,n){let r=n;Zp((i,o)=>{bt(t,r,[i,o]),r=r+1|0},e)}function Xp(e,t){return ni((n,r)=>vn(e,r[0],r[1],n),void 0,t)}function Qp(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){const s=o["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=vn(r,s[0],s[1],i),n=o;continue e}else return i}}function eg(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const i=W(r,t);n=vn(e,i[0],i[1],n)}return n}function Cl(e,t){if(Je(t))return eg(e,t);if(t instanceof wt)return Xp(e,t);{const n=J(t);try{return Qp(e,void 0,n)}finally{K(n)}}}class tg extends de{constructor(t,n){super(),this.stack=t,this.started=n}}function Ol(e){e:for(;;){const t=e;if(R(t))return Ye();{const n=$(t),r=C(t);if(r!=null){const i=b(r);if(i instanceof X){const o=i;e=z([ie(o),li(re(o),ve(o)),oe(o)],n);continue e}else return t}else{e=n;continue e}}}}function El(e){return new tg(Ol(fn(e)),!1)}function ng(){throw new Error("enumeration not started")}function rg(){throw new Error("enumeration already finished")}function Al(e){if(e.started){const t=e.stack;if(R(t))return rg();if(C(t)!=null){const n=b(C(t));if(n instanceof X)throw new Error("Please report error: Map iterator, unexpected stack for current");return[re(n),ve(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return ng()}function ig(e){if(e.started){const t=e.stack;if(R(t))return!1;if(C(t)!=null){if(b(C(t))instanceof X)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Ol($(t)),!R(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!R(e.stack)}function xl(e){let t=El(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Al(t)},"System.Collections.IEnumerator.get_Current"(){return Al(t)},"System.Collections.IEnumerator.MoveNext"(){return ig(t)},"System.Collections.IEnumerator.Reset"(){t=El(e)},Dispose(){}}}class fi{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return ug(this)|0}Equals(t){const n=this;if(t instanceof fi){const r=t,i=J(n);try{const o=J(r);try{const s=()=>{const a=i["System.Collections.IEnumerator.MoveNext"]();if(a===o["System.Collections.IEnumerator.MoveNext"]())if(a){const u=i["System.Collections.Generic.IEnumerator`1.get_Current"](),l=o["System.Collections.Generic.IEnumerator`1.get_Current"]();return Pe(u[0],l[0])&&Pe(u[1],l[1])?s():!1}else return!0;else return!1};return s()}finally{K(o)}}finally{K(i)}}else return!1}toString(){return"map ["+qn("; ",Le(n=>s_("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return xl(this.tree)}[Symbol.iterator](){return Ur(J(this))}"System.Collections.IEnumerable.GetEnumerator"(){return xl(this.tree)}CompareTo(t){const n=this;if(t instanceof fi)return N_((i,o)=>{const s=n.comparer.Compare(i[0],o[0])|0;return(s!==0?s:yt(i[1],o[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return Ml(n,t[0])&&Pe(Tl(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Yp(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Go(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Go(this)|0}get size(){return Go(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Le(n=>[n[0],n[1]],this)}get(t){return Tl(this,t)}has(t){return Ml(this,t)}keys(){return Le(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Le(n=>n[1],this)}forEach(t,n){const r=this;No(i=>{t(i[1],i[0],r)},r)}}function di(e,t){return new fi(e,t)}function og(e){return di(e,void 0)}function sg(e,t,n){return di(e.comparer,vn(e.comparer,t,n,e.tree))}function Tl(e,t){return Kp(e.comparer,t,e.tree)}function Go(e){return qp(e.tree)}function Ml(e,t){return Jp(e.comparer,t,e.tree)}function ag(e,t){return wl(e.comparer,t,e.tree)}function ug(e){const t=(i,o)=>(i<<1)+o+631;let n=0;const r=J(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const i=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,ut(i[0]))|0,n=t(n,ut(i[1]))|0}}finally{K(r)}return n|0}function kl(e,t,n){return sg(n,e,t)}function Il(e,t){return ag(t,e)}function lg(e,t){return di(t,Cl(t,e))}function cg(e,t){return di(t,Cl(t,e))}function Ho(e){return og(e)}class $l{constructor(t){this.k=t}}function me(e){return new $l(e)}function A(e){return e.k}class P extends $l{constructor(t,n,r,i){super(t),this.left=n,this.right=r,this.h=i|0}}function ye(e,t,n,r){return new P(e,t,n,r)}function B(e){return e.left}function L(e){return e.right}function mn(e){return e.h}function X0(){}function Rl(e,t){e:for(;;){const n=e,r=t;if(n!=null){const i=b(n);if(i instanceof P){const o=i;e=B(o),t=Rl(L(o),r+1);continue e}else return r+1|0}else return r|0}}function fg(e){return Rl(e,0)}function Fe(e,t,n){let r,i,o;const s=e;if(s!=null){const f=b(s);o=f instanceof P?(r=f,mn(r)):1}else o=0;let a;const u=n;if(u!=null){const f=b(u);a=f instanceof P?(i=f,mn(i)):1}else a=0;const l=(o<a?a:o)|0;return l===0?me(t):ye(t,e,n,l+1)}function Pl(e,t,n){let r,i,o,s,a,u,l,f,c;const d=e;if(d!=null){const g=b(d);c=g instanceof P?(r=g,mn(r)):1}else c=0;let h;const _=n;if(_!=null){const g=b(_);h=g instanceof P?(i=g,mn(i)):1}else h=0;if(h>c+2){const g=b(n);if(g instanceof P){const v=g;if(o=B(v),(o!=null?(s=b(o),s instanceof P?(a=s,mn(a)):1):0)>c+1){const m=b(B(v));if(m instanceof P){const w=m;return Fe(Fe(e,t,B(w)),A(w),Fe(L(w),A(v),L(v)))}else throw new Error("internal error: Set.rebalance")}else return Fe(Fe(e,t,B(v)),A(v),L(v))}else throw new Error("internal error: Set.rebalance")}else if(c>h+2){const g=b(e);if(g instanceof P){const v=g;if(u=L(v),(u!=null?(l=b(u),l instanceof P?(f=l,mn(f)):1):0)>h+1){const m=b(L(v));if(m instanceof P){const w=m;return Fe(Fe(B(v),A(v),B(w)),A(w),Fe(L(w),t,n))}else throw new Error("internal error: Set.rebalance")}else return Fe(B(v),A(v),Fe(L(v),t,n))}else throw new Error("internal error: Set.rebalance")}else return Fe(e,t,n)}function tr(e,t,n){if(n!=null){const r=b(n),i=e.Compare(t,A(r))|0;if(r instanceof P){const o=r;return i<0?Pl(tr(e,t,B(o)),A(o),L(o)):i===0?n:Pl(B(o),A(o),tr(e,t,L(o)))}else{const o=e.Compare(t,A(r))|0;return o<0?ye(t,void 0,n,2):o===0?n:ye(t,n,void 0,2)}}else return me(t)}function Dl(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=b(o),a=r.Compare(i,A(s))|0;if(s instanceof P){const u=s;if(a<0){e=r,t=i,n=B(u);continue e}else{if(a===0)return!0;e=r,t=i,n=L(u);continue e}}else return a===0}else return!1}}function Nl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=b(r);if(i instanceof P){const o=i;Nl(n,B(o)),n(A(o)),e=n,t=L(o);continue e}else n(A(i))}break}}class dg extends de{constructor(t,n){super(),this.stack=t,this.started=n}}function jl(e){e:for(;;){const t=e;if(R(t))return Ye();{const n=C(t),r=$(t);if(n!=null){const i=b(n);if(i instanceof P){const o=i;e=z([B(o),me(A(o)),L(o)],r);continue e}else return t}else{e=r;continue e}}}}function Ll(e){return new dg(jl(fn(e)),!1)}function hg(){throw new Error("Enumeration not started")}function _g(){throw new Error("Enumeration already started")}function Vl(e){if(e.started){const t=e.stack;if(R(t))return _g();if(C(t)!=null){const n=b(C(t));return A(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return hg()}function pg(e){if(e.started){const t=e.stack;if(R(t))return!1;if(C(t)!=null){if(b(C(t))instanceof P)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=jl($(t)),!R(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!R(e.stack)}function Fl(e){let t=Ll(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Vl(t)},"System.Collections.IEnumerator.get_Current"(){return Vl(t)},"System.Collections.IEnumerator.MoveNext"(){return pg(t)},"System.Collections.IEnumerator.Reset"(){t=Ll(e)},Dispose(){}}}function gg(e,t,n){e:for(;;){const r=e,i=t,o=n;if(R(i))return R(o)?0:-1;if(R(o))return 1;if(C(o)!=null)if(C(i)!=null){const s=b(C(i)),a=b(C(o));if(s instanceof P){const u=s;if(B(u)==null)if(a instanceof P){const l=a;if(B(l)==null){const f=r.Compare(A(u),A(l))|0;if(f!==0)return f|0;e=r,t=je(L(u),$(i)),n=je(L(l),$(o));continue e}else{let f,c,d,h,_;switch(R(i)?R(o)?f=2:C(o)!=null?(f=1,h=$(o),_=b(C(o))):f=2:C(i)!=null?(f=0,c=$(i),d=b(C(i))):R(o)?f=2:C(o)!=null?(f=1,h=$(o),_=b(C(o))):f=2,f){case 0:if(d instanceof P){const g=d;e=r,t=z([B(g),ye(A(g),void 0,L(g),0)],c),n=o;continue e}else{e=r,t=z([void 0,me(A(d))],c),n=o;continue e}case 1:if(_ instanceof P){const g=_;e=r,t=i,n=z([B(g),ye(A(g),void 0,L(g),0)],h);continue e}else{e=r,t=i,n=z([void 0,me(A(_))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(A(u),A(a))|0;if(l!==0)return l|0;e=r,t=je(L(u),$(i)),n=je(void 0,$(o));continue e}else{let l,f,c,d,h;switch(R(i)?R(o)?l=2:C(o)!=null?(l=1,d=$(o),h=b(C(o))):l=2:C(i)!=null?(l=0,f=$(i),c=b(C(i))):R(o)?l=2:C(o)!=null?(l=1,d=$(o),h=b(C(o))):l=2,l){case 0:if(c instanceof P){const _=c;e=r,t=z([B(_),ye(A(_),void 0,L(_),0)],f),n=o;continue e}else{e=r,t=z([void 0,me(A(c))],f),n=o;continue e}case 1:if(h instanceof P){const _=h;e=r,t=i,n=z([B(_),ye(A(_),void 0,L(_),0)],d);continue e}else{e=r,t=i,n=z([void 0,me(A(h))],d);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof P){const u=a;if(B(u)==null){const l=r.Compare(A(s),A(u))|0;if(l!==0)return l|0;e=r,t=je(void 0,$(i)),n=je(L(u),$(o));continue e}else{let l,f,c,d,h;switch(R(i)?R(o)?l=2:C(o)!=null?(l=1,d=$(o),h=b(C(o))):l=2:C(i)!=null?(l=0,f=$(i),c=b(C(i))):R(o)?l=2:C(o)!=null?(l=1,d=$(o),h=b(C(o))):l=2,l){case 0:if(c instanceof P){const _=c;e=r,t=z([B(_),ye(A(_),void 0,L(_),0)],f),n=o;continue e}else{e=r,t=z([void 0,me(A(c))],f),n=o;continue e}case 1:if(h instanceof P){const _=h;e=r,t=i,n=z([B(_),ye(A(_),void 0,L(_),0)],d);continue e}else{e=r,t=i,n=z([void 0,me(A(h))],d);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(A(s),A(a))|0;if(u!==0)return u|0;e=r,t=$(i),n=$(o);continue e}}else{b(C(o));let s,a,u,l,f;switch(R(i)?R(o)?s=2:C(o)!=null?(s=1,l=$(o),f=b(C(o))):s=2:C(i)!=null?(s=0,a=$(i),u=b(C(i))):R(o)?s=2:C(o)!=null?(s=1,l=$(o),f=b(C(o))):s=2,s){case 0:if(u instanceof P){const c=u;e=r,t=z([B(c),ye(A(c),void 0,L(c),0)],a),n=o;continue e}else{e=r,t=z([void 0,me(A(u))],a),n=o;continue e}case 1:if(f instanceof P){const c=f;e=r,t=i,n=z([B(c),ye(A(c),void 0,L(c),0)],l);continue e}else{e=r,t=i,n=z([void 0,me(A(f))],l);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(C(i)!=null){b(C(i));let s,a,u,l,f;switch(R(i)?R(o)?s=2:C(o)!=null?(s=1,l=$(o),f=b(C(o))):s=2:C(i)!=null?(s=0,a=$(i),u=b(C(i))):R(o)?s=2:C(o)!=null?(s=1,l=$(o),f=b(C(o))):s=2,s){case 0:if(u instanceof P){const c=u;e=r,t=z([B(c),ye(A(c),void 0,L(c),0)],a),n=o;continue e}else{e=r,t=z([void 0,me(A(u))],a),n=o;continue e}case 1:if(f instanceof P){const c=f;e=r,t=i,n=z([B(c),ye(A(c),void 0,L(c),0)],l);continue e}else{e=r,t=i,n=z([void 0,me(A(f))],l);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=$(i),n=$(o);continue e}}}function Ul(e,t,n){return t==null?n==null?0:-1:n==null?1:gg(e,fn(t),fn(n))|0}function vg(e,t,n){let r=n;Nl(i=>{bt(t,r,i),r=r+1|0},e)}function mg(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){e=r,t=tr(r,o["System.Collections.Generic.IEnumerator`1.get_Current"](),i),n=o;continue e}else return i}}function yg(e,t){return Jn((n,r)=>tr(e,r,n),void 0,t)}function bg(e,t){return ni((n,r)=>tr(e,r,n),void 0,t)}function wg(e,t){if(Je(t))return yg(e,t);if(t instanceof wt)return bg(e,t);{const n=J(t);try{return mg(e,void 0,n)}finally{K(n)}}}class zo{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Og(this)|0}Equals(t){let n;const r=this;return t instanceof zo&&(n=t,Ul(hi(r),Xe(r),Xe(n))===0)}toString(){return"set ["+qn("; ",Le(n=>Ee(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Ul(hi(n),Xe(n),Xe(t))|0}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return Dl(hi(n),t,Xe(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){vg(Xe(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Wo(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Wo(this)|0}GetEnumerator(){return Fl(Xe(this))}[Symbol.iterator](){return Ur(J(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Fl(Xe(this))}get size(){return Wo(this)|0}add(t){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(t){throw new Error("Set cannot be mutated")}has(t){return Cg(this,t)}keys(){return Le(n=>n,this)}values(){return Le(n=>n,this)}entries(){return Le(n=>[n,n],this)}forEach(t,n){const r=this;No(i=>{t(i,i,r)},r)}}function Sg(e,t){return new zo(e,t)}function hi(e){return e.comparer}function Xe(e){return e.tree}function Wo(e){return fg(Xe(e))}function Cg(e,t){return Dl(hi(e),t,Xe(e))}function Og(e){let t=0;const n=J(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+ut(r)+631|0}}finally{K(n)}return Math.abs(t)|0}function Eg(e,t){return Sg(t,wg(t,e))}function nr(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
|
|
11
|
+
*/var fu;function Wd(){if(fu)return vo;fu=1;var e=zd;function t(c,d){return c===d&&(c!==0||1/c===1/d)||c!==c&&d!==d}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,o=e.useLayoutEffect,s=e.useDebugValue;function a(c,d){var h=d(),_=r({inst:{value:h,getSnapshot:d}}),g=_[0].inst,v=_[1];return o(function(){g.value=h,g.getSnapshot=d,u(g)&&v({inst:g})},[c,h,d]),i(function(){return u(g)&&v({inst:g}),c(function(){u(g)&&v({inst:g})})},[c]),s(h),h}function u(c){var d=c.getSnapshot;c=c.value;try{var h=d();return!n(c,h)}catch{return!0}}function l(c,d){return d()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:a;return vo.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,vo}var du;function qd(){return du||(du=1,go.exports=Wd()),go.exports}var Kd=qd();function hu(e){e.reaction=new ze("observer".concat(e.name),function(){var t;e.stateVersion=Symbol(),(t=e.onStoreChange)===null||t===void 0||t.call(e)})}function Jd(e,t){t===void 0&&(t="observed");var n=Ur.useRef(null);if(!n.current){var r={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(a){return po.unregister(r),r.onStoreChange=a,r.reaction||(hu(r),r.stateVersion=Symbol()),function(){var u;r.onStoreChange=null,(u=r.reaction)===null||u===void 0||u.dispose(),r.reaction=null}},getSnapshot:function(){return r.stateVersion}};n.current=r}var i=n.current;i.reaction||(hu(i),po.register(n,i,i)),Ur.useDebugValue(i.reaction,Vd),Kd.useSyncExternalStore(i.subscribe,i.getSnapshot,i.getSnapshot);var o,s;if(i.reaction.track(function(){try{o=e()}catch(a){s=a}}),s)throw s;return o}var mo,yo,_u=typeof Symbol=="function"&&Symbol.for,Zd=(yo=(mo=Object.getOwnPropertyDescriptor(function(){},"name"))===null||mo===void 0?void 0:mo.configurable)!==null&&yo!==void 0?yo:!1,pu=_u?Symbol.for("react.forward_ref"):typeof Bn=="function"&&Bn(function(e){return null}).$$typeof,gu=_u?Symbol.for("react.memo"):typeof Un=="function"&&Un(function(e){return null}).$$typeof;function vu(e,t){var n;if(gu&&e.$$typeof===gu)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var r=(n=void 0)!==null&&n!==void 0?n:!1,i=e,o=e.displayName||e.name;if(pu&&e.$$typeof===pu&&(r=!0,i=e.render,typeof i!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var s=function(a,u){return Jd(function(){return i(a,u)},o)};return s.displayName=e.displayName,Zd&&Object.defineProperty(s,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(s.contextTypes=e.contextTypes),r&&(s=Bn(s)),s=Un(s),Xd(e,s),s}var Yd={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function Xd(e,t){Object.keys(e).forEach(function(n){Yd[n]||Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}var bo;Ld(_o),bo=po.finalizeAllImmediately;function Je(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Qd(e){return e!=null&&typeof e.GetEnumerator=="function"}function eh(e){return e!=null&&typeof e.CompareTo=="function"}function th(e){return e!=null&&typeof e.Equals=="function"}function nh(e){return e!=null&&typeof e.GetHashCode=="function"}function rh(e){return e!=null&&typeof e.Dispose=="function"}function J(e){rh(e)&&e.Dispose()}function D(){return null}function Br(e,t){return Object.getPrototypeOf(e)?.constructor===Object.getPrototypeOf(t)?.constructor}class ih{constructor(t){this.iter=t,this.current=D()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this.iter.next();return this.current=t.value,!t.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function X(e){return Qd(e)?e.GetEnumerator():new ih(e[Symbol.iterator]())}function Gr(e){return{next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:n}}}}class oh{constructor(t){this.factory=t,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function N(e,t){return e.toString(10).padStart(t,"0")}function sh(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function mu(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function ah(e,t){return e=e,e.toString(t)}function jt(e,t){return e=e,e.toString(t)}class bt{static id(t){return bt.idMap.has(t)||bt.idMap.set(t,++bt.count),bt.idMap.get(t)}}bt.idMap=new WeakMap,bt.count=0;function Hr(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function ut(e){return e*2654435761|0}function uh(e){return Hr(e.toString(32))}function zn(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const i=e[r];t=(t<<5)+t^i}return t}function lh(e){return e.getTime()}function ch(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=lt(e[r]);return zn(n)}function lt(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return ut(e);case"bigint":return uh(e);case"string":return Hr(e);default:{if(nh(e))return e.GetHashCode();if(Je(e))return ch(e);if(e instanceof Date)return lh(e);if(Object.getPrototypeOf(e)?.constructor===Object){const t=Object.values(e).map(n=>lt(n));return zn(t)}else return ut(bt.id(e))}}}function wo(e,t,n){if(e==null)return t==null;if(t==null||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function yu(e,t){return wo(e,t,Pe)}function fh(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let i=0;i<n.length;i++)if(n[i]!==r[i]||!Pe(e[n[i]],t[r[i]]))return!1;return!0}function Pe(e,t){return e===t?!0:e==null?t==null:t==null?!1:th(e)?e.Equals(t):Je(e)?Je(t)&&yu(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&bu(e,t)===0:Object.getPrototypeOf(e)?.constructor===Object&&fh(e,t)}function bu(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+mu(e),r=t.getTime()+mu(t)),n===r?0:n<r?-1:1}function zr(e,t){return e===t?0:e<t?-1:1}function dh(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,i=0;r<e.length;r++)if(i=n(e[r],t[r]),i!==0)return i;return 0}function wu(e,t){return dh(e,t,wt)}function hh(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let i=0,o=0;i<n.length;i++){const s=n[i];if(s!==r[i])return s<r[i]?-1:1;if(o=wt(e[s],t[s]),o!==0)return o}return 0}function wt(e,t){return e===t?0:e==null?t==null?0:-1:t==null?1:eh(e)?e.CompareTo(t):Je(e)?Je(t)?wu(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?bu(e,t):-1:Object.getPrototypeOf(e)?.constructor===Object?hh(e,t):-1}function le(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function _h(e){Je(e)?e.splice(0):e.clear()}const Su=new WeakMap;function Q(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Su.set(t,e),t}function ph(e){if(e==null)return null;const t=(n,r,i)=>e(n)(r)(i);return Su.set(t,e),t}function gh(e){let t=0,n="[";for(const r of e){if(t===0)n+=Ae(r);else if(t===100){n+="; ...";break}else n+="; "+Ae(r);t++}return n+"]"}function Ae(e,t=0){if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return gh(e);{const n=Object.getPrototypeOf(e)?.constructor;return n===Object&&t<10?"{ "+Object.entries(e).map(([r,i])=>r+" = "+Ae(i,t+1)).join(`
|
|
12
|
+
`)+" }":n?.name??""}}return String(e)}function vh(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Ae(t[0]),r=n.indexOf(" ")>=0):n=t.map(i=>Ae(i)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class U{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return vh(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>lt(n));return t.splice(0,0,ut(this.tag)),zn(t)}Equals(t){return this===t?!0:Br(this,t)&&this.tag===t.tag?yu(this.fields,t.fields):!1}CompareTo(t){return this===t?0:Br(this,t)?this.tag===t.tag?wu(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function mh(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function yh(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Ae(n)).join(`
|
|
13
|
+
`)+" }"}function bh(e){const t=Object.values(e).map(n=>lt(n));return zn(t)}function wh(e,t){if(e===t)return!0;if(Br(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!Pe(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Sh(e,t){if(e===t)return 0;if(Br(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=wt(e[n[r]],t[n[r]]);if(i!==0)return i}return 0}else return-1}class ge{toJSON(){return mh(this)}toString(){return yh(this)}GetHashCode(){return bh(this)}Equals(t){return wh(this,t)}CompareTo(t){return Sh(this,t)}}class re{get contents(){return this.getter()}set contents(t){this.setter(t)}constructor(t,n){typeof n=="function"?(this.getter=t,this.setter=n):(this.getter=()=>t,this.setter=r=>{t=r})}}class Ch{constructor(t){this.message=t}}function Oh(e){return e instanceof Ch||e instanceof Error}function Eh(e){return e instanceof Promise}function Wr(e){return Oh(e)||Eh(e)?e:new Error(String(e))}const on=Symbol("numeric");function Cu(e){return typeof e=="number"||typeof e=="bigint"||e?.[on]}function Ah(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function So(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[on]().multiply(t)}function qr(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[on]().toFixed(t)}function Kr(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[on]().toPrecision(t)}function Jr(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[on]().toExponential(t)}function Zr(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[on]().toHex()}class xh{constructor(t,n,r,i){this.declaringType=t,this.tag=n,this.name=r,this.fields=i}}class ce{constructor(t,n,r,i,o,s,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=i,this.fields=o,this.cases=s,this.enumCases=a}toString(){return G(this)}GetHashCode(){return Ou(this)}Equals(t){return Co(this,t)}}function ve(e){return e.generics!=null?e.generics:[]}function Ou(e){const t=Hr(e.fullname),n=ve(e).map(Ou);return zn([t,...n])}function Co(e,t){return e.fullname===""?t.fullname===""&&wo(ln(e),ln(t),([n,r],[i,o])=>n===i&&Co(r,o)):e.fullname===t.fullname&&wo(ve(e),ve(t),Co)}function Eu(e,t,n,r){return new ce(e,t,n,r)}function sn(e,t,n,r){return new ce(e,t,n,void 0,r)}function Au(...e){return new ce("",void 0,void 0,void 0,()=>e)}function De(e,t,n,r){const i=new ce(e,t,n,void 0,void 0,()=>{const o=n.prototype.cases();return r().map((s,a)=>new xh(i,a,o[a],s))});return i}function Oo(e){return new ce("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Th(e){return new ce("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Mh=new ce("System.Object"),xu=new ce("Microsoft.FSharp.Core.Unit"),fe=new ce("System.String"),kh=new ce("System.Boolean");function Lt(e){if(Array.isArray(e))return e[0];if(e instanceof ce){const t=Wn(e);if(t!=null)return Lt(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function G(e){const t=Wn(e);return t!=null?G(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>G(n)).join(",")+"]"}function Tu(e){return Wn(e)!=null}function Wn(e){return e.fullname==="[]"&&e.generics?.length===1?e.generics[0]:void 0}function Mu(e){return e.generics!=null&&e.generics.length>0}function Eo(e){return e.enumCases!=null&&e.enumCases.length>0}function ku(e){return e.generics==null?e:new ce(e.fullname,e.generics.map(()=>Mh))}function Iu(e){return e.generics?.[0]}function an(e){if(Eo(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Ih(e,t){if(e.enumCases!=null)if(typeof t=="string"){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}else{for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}else throw new Error(`${e.fullname} is not an enum type`)}function un(e,t){const n=parseInt(t,10);return Ih(e,isNaN(n)?t:n)[1]}function $u(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function ln(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Ru(e){if(To(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Ao(e){return e instanceof ce?e.cases!=null:e instanceof U}function xo(e){return e instanceof ce?e.fields!=null:e instanceof ge}function To(e){return e.fullname.startsWith("System.Tuple")}function $h(e,t){const r=$u(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function Pu(e){return e.fields==null?[]:e.fields}function Rh(e,t){return e[t[0]]}function J0(e){return e}function Ph(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);const r=e.declaringType.construct;return r==null?{}:(e.declaringType.cases?e.declaringType.cases().length==1:!1)?new r(...t):new r(e.tag,t)}function Dh(e,t){const n=ln(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[i,o],s)=>(r[i]=t[s],r),{})}function Nh(e,t){return e}class Vt{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return lt(this.value)}Equals(t){return t==null?!1:Pe(this.value,t instanceof Vt?t.value:t)}CompareTo(t){return t==null?1:wt(this.value,t instanceof Vt?t.value:t)}}function b(e){if(e==null)throw new Error("Option has no value");return e instanceof Vt?e.value:e}function jh(e){return e instanceof Vt?e.value:e}function Ne(e){return e==null||e instanceof Vt?new Vt(e):e}function Mo(e,t){return e!=null?b(e):t}function Lh(e,t){return e!=null?b(e):t()}function Vh(e,t){return t!=null?Ne(e(b(t))):void 0}const Fh=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Uh=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Bh=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Gh=["January","February","March","April","May","June","July","August","September","October","November","December"];function me(e,t,n){let r=0,i=t;for(;i<e.length&&e[i]===n;)i++,r++;return r}function Du(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Hh(e,t){let n=t;const r=e[t];let i="",o=!1;for(;t<e.length;){t++;const s=e[t];if(s===r){o=!0;break}else if(s==="\\")if(t<e.length)t++,i+=e[t];else throw new Error("Invalid string format");else i+=s}if(!o)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[i,t-n+1]}function ko(e,t,n){let r=0,i=0,o="";const s=n?qn(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(i=me(t,r,"d"),r+=i,i){case 1:o+=Lu(s);break;case 2:o+=N(Lu(s),2);break;case 3:o+=Fh[Uu(s)];break;case 4:o+=Uh[Uu(s)];break}break;case"f":if(i=me(t,r,"f"),r+=i,i<=3){const v=10**(3-i);o+=N(Math.floor(ei(s)/v),i)}else i<=7&&(o+=(""+ei(s)).padEnd(i,"0"));break;case"F":if(i=me(t,r,"F"),r+=i,i<=3){const v=10**(3-i),m=Math.floor(ei(s)/v);m!=0&&(o+=N(m,i))}else if(i<=7){const v=ei(s);v!=0&&(o+=N(v,3))}break;case"g":i=me(t,r,"g"),r+=i,i<=2&&(o+="A.D.");break;case"h":switch(i=me(t,r,"h"),r+=i,i){case 1:o+=Qr(s)%12;break;case 2:o+=N(Qr(s)%12,2);break}break;case"H":switch(i=me(t,r,"H"),r+=i,i){case 1:o+=Qr(s);break;case 2:o+=N(Qr(s),2);break}break;case"K":switch(i=me(t,r,"K"),r+=i,i){case 1:switch(Nu(s)){case 1:o+="Z";break;case 2:o+=cn(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(i=me(t,r,"m"),r+=i,i){case 1:o+=Vu(s);break;case 2:o+=N(Vu(s),2);break}break;case"M":switch(i=me(t,r,"M"),r+=i,i){case 1:o+=ti(s);break;case 2:o+=N(ti(s),2);break;case 3:o+=Bh[ti(s)-1];break;case 4:o+=Gh[ti(s)-1];break}break;case"s":switch(i=me(t,r,"s"),r+=i,i){case 1:o+=Fu(s);break;case 2:o+=N(Fu(s),2);break}break;case"t":switch(i=me(t,r,"t"),r+=i,i){case 1:o+=s.getHours()<12?"A":"P";break;case 2:o+=s.getHours()<12?"AM":"PM";break}break;case"y":switch(i=me(t,r,"y"),r+=i,i){case 1:o+=s.getFullYear()%100;break;case 2:o+=N(s.getFullYear()%100,2);break;case 3:o+=N(s.getFullYear(),3);break;case 4:o+=N(s.getFullYear(),4);break;case 5:o+=N(s.getFullYear(),5);break}break;case"z":i=me(t,r,"z"),r+=i;let u="";switch(Nu(s)){case 1:u="+00:00";break;case 2:u=cn(s.getTimezoneOffset()*-6e4);break;case 0:u=cn(Qh(s).getTimezoneOffset()*-6e4);break}const l=u[0]==="-"?"-":"+",f=parseInt(u.substring(1,3),10),c=parseInt(u.substring(4,6),10);switch(i){case 1:o+=`${l}${f}`;break;case 2:o+=`${l}${N(f,2)}`;break;default:o+=`${l}${N(f,2)}:${N(c,2)}`;break}break;case":":o+=":",r++;break;case"/":o+="/",r++;break;case"'":case'"':const[d,h]=Hh(t,r);o+=d,r+=h;break;case"%":const _=Du(t,r);if(_>=0&&_!==37)r+=2,o+=ko(s,String.fromCharCode(_),n);else throw new Error("Invalid format string");break;case"\\":const g=Du(t,r);if(g>=0)r+=2,o+=String.fromCharCode(g);else throw new Error("Invalid format string");break;default:r++,o+=a;break}}return o}function Nu(e){return e.kind||0}function cn(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+N(n,2)+":"+N(r,2)}function Yr(e,t){const n=e.toISOString();return t==="first"?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function zh(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return N(e.getFullYear(),4)+"-"+N(e.getMonth()+1,2)+"-"+N(e.getDate(),2)+"T"+N(e.getHours(),2)+":"+N(e.getMinutes(),2)+":"+N(e.getSeconds(),2)+"."+N(e.getMilliseconds(),3)+(n?cn(e.getTimezoneOffset()*-6e4):"")}}function Wh(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+cn(t)}function qh(e,t){const n=new Date(e.getTime()+(e.offset??0));if(typeof t!="string")return n.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+cn(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return Yr(n,"first");case"T":case"t":return Yr(n,"second");case"O":case"o":return Wh(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return ko(n,t,!0)}function Kh(e,t){const n=e.kind===1;if(typeof t!="string")return n?e.toUTCString():e.toLocaleString();if(t.length===1)switch(t){case"D":case"d":return n?Yr(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Yr(e,"second"):e.toLocaleTimeString();case"O":case"o":return zh(e,n);default:throw new Error("Unrecognized Date print format")}else return ko(e,t,n)}function Xr(e,t,n){return e.offset!=null?qh(e,t):Kh(e,t)}function qn(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function Jh(){return qn(-621355968e5,1)}function ju(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const i=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(i!=null){let o,s=0;if(i[2]!=null){const a=i[2].split(":"),u=parseInt(a[0],10);s=u*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),i[3]!=null&&i[3].toUpperCase()==="PM"&&u<12&&(s+=720)}if(i[4]!=null){if(i[1]!=null)o=new Date(i[1]+" UTC");else{const a=new Date;o=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(i[4]==="Z")r="Z";else{let a=parseInt(i[5],10)*60+parseInt(i[6]||"0",10);i[4][0]==="-"&&(a*=-1),r=a,s-=a*60}}else if(i[1]!=null)o=new Date(i[1]);else{const a=new Date;o=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(o.getTime()+s*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-o.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function Zh(e,t=!1){const[n,r]=ju(e),i=r!=null?t&&r==="Z"?1:2:0;return qn(n.getTime(),i)}function Yh(e,t){try{return t.contents=Zh(e),!0}catch{return!1}}function Xh(e){return e.kind===1?e:qn(e.getTime(),1)}function Qh(e){return e.kind===2?e:qn(e.getTime(),2)}function Lu(e){return e.kind===1?e.getUTCDate():e.getDate()}function Qr(e){return e.kind===1?e.getUTCHours():e.getHours()}function ei(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function Vu(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function ti(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function Fu(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Uu(e){return e.kind===1?e.getUTCDay():e.getDay()}function e_(e,t=0){if((t&-284)!==0)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=t&1?"i":"",n+=t&2?"m":"",n+=t&16?"s":"",new RegExp(e,n)}function Bu(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function t_(e,t,n=0){return e.lastIndex=n,e.test(t)}function Gu(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let i,o=-1;for(;(i=e.exec(t))!=null;)i.index===o?e.lastIndex++:(o=i.index,r.push(i));return r}function n_(e,t,n,r,i=0){function o(){let s=arguments[0];if(r){r--;const a=[],u=arguments.length,l=typeof arguments[u-1]!="string";let f=l?u-3:u-2;for(let c=0;c<f;c++)a.push(arguments[c]);a.index=arguments[f++],a.input=arguments[f++],l&&(a.groups=arguments[f]),s=n(a)}return s}if(typeof e=="string"){const s=e;e=e_(t,r??0),t=s,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,i)+t.substring(i).replace(e,o);if(n=n.replace(/\$0/g,s=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let s;const a=t.substring(i),u=Gu(e,a),l=Gu.length>r?(s=u[r-1],a.substring(0,s.index+s[0].length)):a;return t.substring(0,i)+l.replace(e,n)+t.substring(i+l.length)}else return t.replace(e,n)}const Kn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,r_=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Hu(e,t){return Ah(e,t)<0}function Ze(e){return{input:e,cont:o_(e)}}function zu(e,t){return typeof t=="string"?e(t):t.cont(e)}function Ft(e){return zu(t=>t,e)}function Io(e){return zu(t=>{throw new Error(t)},e)}function i_(e,t,n,r,i){let o="";if(t=t||"",i=i||"",Cu(e))switch(i.toLowerCase()!=="x"&&(Hu(e,0)?(e=So(e,-1),o="-"):t.indexOf(" ")>=0?o=" ":t.indexOf("+")>=0&&(o="+")),r=r==null?null:parseInt(r,10),i){case"f":case"F":r=r??6,e=qr(e,r);break;case"g":case"G":e=r!=null?Kr(e,r):Kr(e);break;case"e":case"E":e=r!=null?Jr(e,r):Jr(e);break;case"x":e=Zr(e);break;case"X":e=Zr(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Xr(e):e=Ae(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=o+e;else{const s=t.indexOf("0")>=0,a=t.indexOf("-")>=0,u=a||!s?" ":"0";u==="0"?(e=Zn(e,n-o.length,u,a),e=o+e):e=Zn(o+e,n,u,a)}return e}function Wu(e,t,n,r="",i=-1){return(...o)=>{let s=r;const a=t.slice(),u=n.slice();for(const l of o){const[,,f,c,d,h]=u[0];let _=c;if(i>=0)_=i,i=-1;else if(_==="*"){if(l<0)throw new Error("Non-negative number required");i=l;continue}s+=a[0],s+=i_(l,f,_,d,h),a.splice(0,1),u.splice(0,1)}return u.length===0?(s+=a[0],e(s)):Wu(e,a,u,s,i)}}function o_(e){return t=>{Kn.lastIndex=0;const n=[],r=[];let i=0,o=Kn.exec(e);for(;o;){const s=o.index+(o[1]||"").length;n.push(e.substring(i,s).replace(/%%/g,"%")),r.push(o),i=Kn.lastIndex,Kn.lastIndex-=1,o=Kn.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(i).replace(/%%/g,"%")),Wu(t,n,r))}}function s_(e,...t){let n;return n=e,n.replace(r_,(r,i,o,s,a,u)=>{if(i<0||i>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let l=t[i];if(Cu(l))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a??2,l=qr(l,a);break;case"g":case"G":l=a!=null?Kr(l,a):Kr(l);break;case"e":case"E":l=a!=null?Jr(l,a):Jr(l);break;case"p":case"P":a=a??2,l=qr(So(l,100),a)+" %";break;case"d":case"D":l=a!=null?$o(String(l),a,"0"):String(l);break;case"x":case"X":l=a!=null?$o(Zr(l),a,"0"):Zr(l),s==="X"&&(l=l.toUpperCase());break;default:if(u){let f="";l=u.replace(/([0#,]+)(\.[0#]+)?/,(c,d,h)=>{Hu(l,0)&&(l=So(l,-1),f="-"),h=h==null?"":h.substring(1),l=qr(l,Math.max(h.length,0));let[_,g]=l.split(".");g||(g="");const v=d.replace(/,/g,"").replace(/^#+/,"").length;_=$o(_,v,"0");const m=h.replace(/#+$/,"").length;if(m>g.length?g=l_(g,m,"0"):m<g.length&&(g=g.substring(0,m)+g.substring(m).replace(/0+$/,"")),d.indexOf(",")>0){const w=_.length%3,T=Math.floor(_.length/3);let j=w>0?_.substr(0,w)+(T>0?",":""):"";for(let z=0;z<T;z++)j+=_.substr(w+z*3,3)+(z<T-1?",":"");_=j}return g.length>0?_+"."+g:_}),l=f+l}}else l instanceof Date?l=Xr(l,u||s):l=Ae(l);return o=parseInt((o||" ").substring(1),10),isNaN(o)||(l=Zn(String(l),Math.abs(o)," ",o<0)),l})}function a_(e){return typeof e!="string"||e.length===0}function u_(e){return typeof e!="string"||/^\s*$/.test(e)}function Jn(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Zn(e,t,n,r){n=n||" ",t=t-e.length;for(let i=0;i<t;i++)e=r?e+n:n+e;return e}function $o(e,t,n){return Zn(e,t,n)}function l_(e,t,n){return Zn(e,t,n,!0)}function qu(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const i=(r&1)===1,o=(r&2)===2;t=t||[],t=t.filter(f=>f).map(Bu),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let u=!0,l=0;do{const f=a.exec(e);if(f===null){const c=o?e.substring(l).trim():e.substring(l);(!i||c.length>0)&&s.push(c),u=!1}else{const c=o?e.substring(l,f.index).trim():e.substring(l,f.index);(!i||c.length>0)&&(n!=null&&s.length+1===n?(s.push(o?e.substring(l).trim():e.substring(l)),u=!1):s.push(c)),l=a.lastIndex}}while(u);return s}function c_(e,...t){if(t.length===0)return e.trim();const n="["+Bu(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}function f_(e){throw new Error(e)}function Ku(e,t){return new Array(t)}const Ju="Collection was empty.";function Ro(e,t,n,r){const i=t|0;return e.fill(r,i,i+n)}function fn(e,t,n){const r=t.length|0,i=Ku(n,r);for(let o=0;o<=r-1;o++)St(i,o,e(K(o,t)));return i}function d_(e,t){const n=Ku(t,1);return St(n,0,e),n}function h_(e){return e.slice().reverse()}function __(e,t){return t.find(e)}function p_(e,t,n){const r=[];for(let i=0;i<=t.length-1;i++){const o=e(K(i,t));if(o!=null){const s=b(o);r.push(s)}}return Pe(n,D())?r:fn(i=>i,r,n)}function Yn(e,t,n){const r=e;return n.reduce(r,t)}function g_(e,t,n){return t==null}function K(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function St(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}function v_(e,t,n){return t.reduceRight((r,i)=>e(i,r),n)}class Ct extends ge{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+Jn("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((i,o)=>{e:for(;;){const s=i,a=o,u=s.tail,l=a.tail;if(u!=null)if(l!=null){const f=b(u),c=b(l);if(Pe(s.head,a.head)){i=f,o=c;continue e}else return!1}else return!1;else return l==null}})(n,t)}GetHashCode(){return((r,i,o)=>{e:for(;;){const s=r,a=i,u=o,l=u.tail;if(l!=null){const f=b(l);if(s>18)return a|0;r=s+1,i=(a<<1)+lt(u.head)+631*s,o=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((i,o)=>{e:for(;;){const s=i,a=o,u=s.tail,l=a.tail;if(u!=null)if(l!=null){const f=b(u),c=b(l),d=wt(s.head,a.head)|0;if(d===0){i=f,o=c;continue e}else return d|0}else return 1;else return l!=null?-1:0}})(this,t)|0}GetEnumerator(){return y_(this)}[Symbol.iterator](){return Gr(X(this))}"System.Collections.IEnumerable.GetEnumerator"(){return X(this)}}class m_{constructor(t){this.xs=t,this.it=this.xs,this.current=D()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this,n=t.it.tail;if(n!=null){const r=b(n);return t.current=t.it.head,t.it=r,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=D()}Dispose(){}}function y_(e){return new m_(e)}function dn(){return new Ct(D(),void 0)}function Xn(e,t){return new Ct(e,t)}function ni(e){return e.tail==null}function b_(e){return((n,r)=>{e:for(;;){const i=n,s=r.tail;if(s!=null){n=i+1,r=b(s);continue e}else return i|0}})(0,e)|0}function Po(e){if(e.tail!=null)return e.head;throw new Error(Ju+"\\nParameter name: list")}function Qn(e){const t=e.tail;if(t!=null)return b(t);throw new Error(Ju+"\\nParameter name: list")}function Ye(){return dn()}function je(e,t){return Xn(e,t)}function hn(e){return Xn(e,dn())}function R(e){return ni(e)}function C(e){return Po(e)}function $(e){return Qn(e)}function ri(e){const t=b_(e)|0,n=Ro(new Array(t),0,t,null);return((i,o)=>{e:for(;;){const s=i,a=o;if(!ni(a)){St(n,s,Po(a)),i=s+1,o=Qn(a);continue e}break}})(0,e),n}function ii(e,t,n){let r=t,i=n;for(;!ni(i);)r=e(r,C(i)),i=Qn(i);return r}function Do(e){return ii((t,n)=>Xn(n,t),dn(),e)}function q(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Xn(K(r,e),n);return n}function Z(e){return q(e,dn())}function Zu(e){let t,n;if(Je(e))return Z(e);if(e instanceof Ct)return e;{const r=dn();let i=r;const o=X(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const u=o["System.Collections.Generic.IEnumerator`1.get_Current"]();i=(t=i,n=new Ct(u,void 0),t.tail=n,n)}}finally{J(o)}const s=i,a=dn();return s.tail=a,Qn(r)}}function Yu(e,t){return ii((n,r)=>Xn(r,n),t,Do(e))}function w_(e,t){return((r,i)=>{e:for(;;){const o=r,s=i;if(ni(s))return;if(e(Po(s)))return o;r=o+1,i=Qn(s);continue e}})(0,t)}function S_(e,t,n){return w_(r=>n.Equals(e,r),t)!=null}const C_="Enumeration already finished.",O_="Enumeration has not started. Call MoveNext.",E_="Reset is not supported on this enumerator.";function A_(){throw new Error(E_)}function Xu(){throw new Error(O_)}function No(){throw new Error(C_)}class x_{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const i=X(t);try{for(;n<4&&i["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Ae(i["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{J(i)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Gr(X(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function T_(e){return new x_(e)}class M_{constructor(t,n,r){this.current=t,this.next=n,this.dispose=r}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){A_()}Dispose(){this.dispose()}}function Qu(e,t,n){return new M_(e,t,n)}function k_(e){let t,n,r=!1,i=!1,o;const s=()=>{if(i=!0,n!=null){const a=b(n);try{J(a)}finally{n=void 0}}if(t!=null){const a=b(t);try{J(a)}finally{t=void 0}}};return Qu(()=>(r?i&&No():Xu(),o!=null?b(o):No()),()=>{let a;if(r||(r=!0),i)return!1;{let u;for(;u==null;){const l=t,f=n;if(l!=null)if(f!=null){const c=b(f);if(c["System.Collections.IEnumerator.MoveNext"]())o=Ne(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),u=!0;else try{J(c)}finally{n=void 0}}else{const c=b(l);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),X(a)):(s(),u=!1)}else t=X(e)}return b(u)}},()=>{i||s()})}function el(e,t,n){let r=!1,i,o=Ne(e());const s=()=>{if(o!=null){const u=b(o);try{n(u)}finally{o=void 0}}},a=()=>{try{s()}finally{i=void 0}};return Qu(()=>(r||Xu(),i!=null?b(i):No()),()=>{if(r||(r=!0),o!=null){const u=b(o);let l;try{l=t(u)}catch(f){throw a(),f}return l!=null?(i=l,!0):(a(),!1)}else return!1},s)}function I_(e,t){t==null&&f_(e)}function oi(e){return T_(e)}function _n(e){return I_("source",e),X(e)}function H(e){return oi(()=>X(e()))}function $_(e){return oi(()=>k_(e))}function A(e){return H(()=>d_(e))}function Z0(e){return e}function R_(e){return e instanceof Ct?ri(e):Array.from(e)}function si(e){return Je(e)?Z(e):e instanceof Ct?e:Zu(e)}function P_(e,t,n){return oi(()=>el(e,t,n))}function D_(e,t,n){return oi(()=>{let r=-1;return el(e,i=>(r=r+1|0,t(r,i)),n)})}function Y(e,t){return $_([e,t])}function N_(e,t,n){const r=_n(t);try{const i=_n(n);try{let o=0,s=r["System.Collections.IEnumerator.MoveNext"](),a=i["System.Collections.IEnumerator.MoveNext"]();for(;o===0&&s&&a;)o=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),i["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,o===0&&(s=r["System.Collections.IEnumerator.MoveNext"](),a=i["System.Collections.IEnumerator.MoveNext"]());return(o!==0?o:s?1:a?-1:0)|0}finally{J(i)}}finally{J(r)}}function pn(e,t,n){const r=_n(t);try{let i=!1;for(;!i&&r["System.Collections.IEnumerator.MoveNext"]();)i=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return i}finally{J(r)}}function ai(e,t,n){const r=_n(n);try{let i=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)i=e(i,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return i}finally{J(r)}}function jo(e,t){ai((n,r)=>{e(r)},void 0,t)}function Le(e,t){return P_(()=>_n(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?Ne(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{J(n)})}function j_(e,t){return D_(()=>_n(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?Ne(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{J(n)})}function L_(e){return H(()=>h_(R_(e)))}const V_='/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-600:oklch(57.7% .245 27.325);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-900:oklch(21% .034 264.665);--color-white:#fff;--spacing:.25rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--font-weight-medium:500;--font-weight-semibold:600;--radius-md:.375rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.ml-4{margin-left:calc(var(--spacing)*4)}.block{display:block}.inline{display:inline}.w-100{width:calc(var(--spacing)*100)}.w-fit{width:fit-content}.cursor-pointer{cursor:pointer}.rounded-md{border-radius:var(--radius-md)}.bg-indigo-600{background-color:var(--color-indigo-600)}.bg-red-50{background-color:var(--color-red-50)}.bg-white{background-color:var(--color-white)}.p-3{padding:calc(var(--spacing)*3)}.px-3{padding-inline:calc(var(--spacing)*3)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.pr-8{padding-right:calc(var(--spacing)*8)}.pl-3{padding-left:calc(var(--spacing)*3)}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-sm\\/6{font-size:var(--text-sm);line-height:calc(var(--spacing)*6)}.leading-6{--tw-leading:calc(var(--spacing)*6);line-height:calc(var(--spacing)*6)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-gray-500{color:var(--color-gray-500)}.text-gray-900{color:var(--color-gray-900)}.text-red-600{color:var(--color-red-600)}.text-white{color:var(--color-white)}.lowercase{text-transform:lowercase}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.inset-ring{--tw-inset-ring-shadow:inset 0 0 0 1px var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.inset-ring-gray-300{--tw-inset-ring-color:var(--color-gray-300)}.outline-1{outline-style:var(--tw-outline-style);outline-width:1px}.-outline-offset-1{outline-offset:-1px}.outline-gray-300{outline-color:var(--color-gray-300)}.placeholder\\:text-gray-400::placeholder{color:var(--color-gray-400)}@media (hover:hover){.hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\\:bg-indigo-500:hover{background-color:var(--color-indigo-500)}}.focus\\:outline-2:focus{outline-style:var(--tw-outline-style);outline-width:2px}.focus\\:-outline-offset-2:focus{outline-offset:-2px}.focus\\:outline-indigo-600:focus{outline-color:var(--color-indigo-600)}.focus-visible\\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\\:-outline-offset-2:focus-visible{outline-offset:-2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-indigo-600:focus-visible{outline-color:var(--color-indigo-600)}.disabled\\:bg-gray-50:disabled{background-color:var(--color-gray-50)}.disabled\\:text-gray-500:disabled{color:var(--color-gray-500)}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:outline-gray-200:disabled{outline-color:var(--color-gray-200)}}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}',F_=Ae(V_),tl=ne,nl=zs,U_=Yf,rl=Rf,B_=Nf;function il(e,t,n){if(e.has(t))throw new Error("An item with the same key has already been added. Key: "+t);e.set(t,n)}const G_=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,ol=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,H_=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function z_(e){function t(r){return r.replace(ol,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(G_.test(n))return c_(n,"{","}","(",")");if(ol.test(n))return t(n);if(H_.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function sl(e,t){try{return t.contents=z_(e),!0}catch{return!1}}function W_(){let e="";for(let t=0;t++<36;)e+=t*51&52?(t^15?8^Math.random()*(t^20?16:4):4).toString(16):"-";return e}let ui=Ye();function al(e,t){try{return ui=je(t,ui),e()}finally{ui=$(ui)}}class q_{constructor(t,n){this.this=new re(D()),this.this,this.state=t,this.description=n,this.this.contents=this,this.cleanupActions=void 0,this["init@56"]=1}get IsActive(){const n=this.cleanupActions;return n!=null?n.size>0:!1}AutoSubscribe(t,n,r,i){let o;const s=this,a=ll(s,n,r,i,(o=t.Description,Ft(Ze("sub [%s] -> [%s]"))(o)(s.description))),u=a[0],l={Id:u,Detach(f){const c=d=>f===d;c(s.this.contents)?t.Remove(l):c(t)?Vo(s,u):Io(Ze("The notifier is not a party to this subscription: %A"))(f),a[1]()}};ul(s,l),t.Add(l)}Subscribe(t,n,r){const i=this,o=ll(i,t,n,r,Ft(Ze("sub [%s]"))(i.description)),s=o[0],a=o[1];return Lo(i,u=>{il(u,s,a)}),{Dispose(){Vo(i,s)&&a()}}}get Description(){return this.description}Add(t){ul(this,t)}Remove(t){Vo(this,t.Id)}Dispose(){const t=this,n=t.cleanupActions;if(n!=null){let i=X(n.values());try{for(;i["System.Collections.IEnumerator.MoveNext"]();)i["System.Collections.Generic.IEnumerator`1.get_Current"]()()}finally{J(i)}}t.cleanupActions=void 0}}function K_(e,t){return new q_(e,t)}function Lo(e,t){const n=e.cleanupActions;if(n==null){const r=new Map([]);return e.cleanupActions=r,t(r)}else return t(n)}function ul(e,t){Lo(e,n=>{il(n,t.Id,()=>{t.Detach(e.this.contents)})})}function Vo(e,t){return Lo(e,n=>n.delete(t))}function ll(e,t,n,r,i){const o=W_(),s={};return s.fireImmediately=r,s.name=i,[o,B_(()=>t(e.state()),n,s)]}class J_{constructor(t){const n=new re(D());n.contents=this,this["init@17"]=1,n.contents.Content=t}}function Z_(e){return new J_(e)}const cl=Symbol("annotations");function Y_(e){return{}}function X_(e){let t,n;return U_(e,(t=e[cl],t!=null?(n=t,delete e[cl],n):{}))}const Q_=Symbol("state");class fl{constructor(t,n,r,i){let o,s,a,u,l;const f=new re(D());this.update=n,f.contents=this;const c=i;this.queue=[],this.ready=!1,this.subject=K_(()=>ie(f.contents),"");const d=rl(()=>al(()=>t(g=>{this.ready?de(f.contents,g):this.queue.push(g)}),this.subject));if(this.computed=X_(r(d)),this.storage=xo(c)?(o=nl(d,Yn((g,v)=>(g[Lt(v)]=tl.ref,g),{},ln(c))),{Read:o,Write(g){Object.assign(o,g)}}):Ao(c)?(s=Z_(d),a={},a.Content=tl.struct,u=nl(s,a),new class{get Read(){return u.Content}Write(g){u.Content=g}}):(()=>{throw new Error("State must be a record or union type")})(),this["init@97-1"]=1,Object.defineProperty(f.contents,"debugView",{enumerable:!0,get:()=>Ae(f.contents)}),this.queue.length>0){const g=Zu(this.queue);_h(this.queue),jo((l=f.contents,v=>{de(l,v)}),g)}const h=this.computed,_=this.storage;h[Q_]=_,this.ready=!0}toString(){const n=this.storage.Read;return Ft(Ze("%A"))(n)}get IsActive(){return Fo(this,n=>n.IsActive)}AutoSubscribe(t,n,r,i){Fo(this,s=>{s.AutoSubscribe(t,n,r,i)})}Subscribe(t,n,r){return Fo(this,o=>o.Subscribe(t,n,r))}Dispose(){J(this.subject)}}function ep(e,t,n,r){return new fl(e,t,n,r)}function ie(e){return e.storage.Read}function Ut(e){return e.computed}function de(e,t){if(e.queue.push(t),e.queue.length===1)for(;e.queue.length>0;){const n=e.queue[0];rl(()=>{al(()=>{const r=e.update([e.storage.Read,i=>{de(e,i)},Ut(e)],n);e.storage.Write(r)},e.subject)}),e.queue.splice(0,1)}}function Fo(e,t){return t(e.subject)}class tp extends fl{constructor(t,n,r){super(t,n,Y_,r),this["init@221-2"]=1}}function np(e,t,n){return new tp(e,t,n)}const ct=Ur;class rp extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["UnverifiedConnection"]}}function ip(e){if(t_(/^[a-z0-9-]{3,32}$/gu,e))return new rp(e)}class op extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ClientId"]}}function sp(e){let t,n="00000000-0000-0000-0000-000000000000";if(t=[sl(e,new re(()=>n,r=>{n=r})),n],t[0])return new op(t[1])}class ap extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ClientSecret"]}}function up(e){if(!(u_(e)||e.length<20))return new ap(e)}let lp=class extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SSO","MagicLink","PartnerToken"]}};class cp extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Enabled","Disabled"]}}new cp(0,[new lp(2,[])]);class fp extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["TruncatedClientSecret"]}}function dp(){return De("ApolloIdentity.Shared.AdminDto.LoginConfigDto.Read.TruncatedClientSecret",[],fp,()=>[[["Item",fe]]])}function hp(e){return e.fields[0]}class _p extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EntraId"]}}function pp(){return De("ApolloIdentity.Shared.AdminDto.LoginConfigDto.Read.SSOConfigDto",[],_p,()=>[[["Item",Au(["ClientId",Eu("System.Guid")],["Connection",fe],["TenantId",Eu("System.Guid")],["TruncatedClientSecret",dp()])]]])}class gp extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SSO","MagicLink","PartnerToken"]}}function vp(){return De("ApolloIdentity.Shared.AdminDto.LoginConfigDto.Read.LoginMethodDto",[],gp,()=>[[["Item",pp()]],[],[]])}class mp extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Enabled","Disabled"]}}function Uo(){return De("ApolloIdentity.Shared.AdminDto.LoginConfigDto.Read.LoginConfigDto",[],mp,()=>[[["Item",vp()]],[]])}class dl extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EntraId"]}}function yp(){return De("ApolloIdentity.Shared.AdminDto.LoginConfigDto.Write.SSOConfigDto",[],dl,()=>[[["Item",Au(["ClientId",fe],["ClientSecret",fe],["Connection",fe],["TenantId",fe])]]])}class li extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SSO","MagicLink","PartnerToken"]}}function bp(){return De("ApolloIdentity.Shared.AdminDto.LoginConfigDto.Write.LoginMethodDto",[],li,()=>[[["Item",yp()]],[],[]])}class er extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Enable","Disable"]}}function wp(){return De("ApolloIdentity.Shared.AdminDto.LoginConfigDto.Write.LoginConfigCommandDto",[],er,()=>[[["Item",bp()]],[]])}function tr(e){let t;return O("input",le(Z([(t="mt-2 w-100 block rounded-md bg-white px-3 py-1.5 text-gray-900 outline-1 -outline-offset-1 outline-gray-300 disabled:bg-gray-50 disabled:text-gray-500 disabled:outline-gray-200 text-sm/6",["className",t]),["disabled",!0],["value",e]])))}function gn(e){return O("label",{className:"mt-2 block text-sm/6 font-medium text-gray-900",children:e})}function Sp(e){const t=si(H(()=>{let n,r;return Y(A((n=Z([gn("Login method"),tr((r=e.LoginConfig,r.tag===0?r.fields[0].tag===1?"Magic Link":r.fields[0].tag===0?"EntraID SSO":"Partner Token":"Disabled"))]),O("div",{children:ct.Children.toArray(Array.from(n))}))),H(()=>{let i,o,s,a,u;return Y((i=e.LoginConfig,i.tag===0?i.fields[0].tag===1?A(D()):i.fields[0].tag===0?(o=i.fields[0].fields[0].fields[0],A(O("div",le(Z([["className","mt-4"],(s=[O("h3",{className:"text-lg font-medium leading-6 text-gray-900",children:"EntraID SSO Configuration Details"}),gn("Connection"),tr(o.Connection),gn("Client ID"),tr((a=o.ClientId,a)),gn("Client Secret"),tr(`**********${hp(o.TruncatedClientSecret)}`),gn("TenantId"),tr((u=o.TenantId,u))],["children",ct.Children.toArray(Array.from(s))])]))))):A(D()):A(D())),H(()=>{let l;const f=e.OnEdit;if(f!=null){const c=f;return A(O("button",le(Z([["type","button"],(l="mt-4 rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-xs hover:bg-indigo-500 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 cursor-pointer",["className",l]),["onClick",d=>{c()}],["children","✏️ Edit"]]))))}else return A(D())}))}))}));return O("div",{children:ct.Children.toArray(Array.from(t))})}function Cp(e){return new p(0,[e])}function hl(e){return new p(1,[e])}class p extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function ft(e,t){return t.tag===0?Cp(e(t.fields[0])):hl(t.fields[0])}function Op(e,t){return t.tag===0?e(t.fields[0]):hl(t.fields[0])}function Ep(e,t){t.tag===0&&e(t.fields[0])}class Bo extends ge{constructor(t){super(),this.ConfigureLogin=t}}function Ap(){return sn("ApolloIdentity.AdminUI.Roles",[],Bo,()=>[["ConfigureLogin",kh]])}function xp(e){return new Bo(S_("Identity.ConfigureLogin",e.Roles,{Equals:(t,n)=>t===n,GetHashCode:Hr}))}const Tp=new Bo(!1);class S extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class vn extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function _l(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function pl(e,t){switch(e.tag){case 2:return n_(_l(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return _l(t)}}var Go;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Go||(Go={}));function Mp(e,t){const[,n,r,i]=e;return{sign:n||"",prefix:r||"",digits:i,radix:t}}function gl(e,t){switch(t){case 8:return e?[0,255]:[-128,127];case 16:return e?[0,65535]:[-32768,32767];case 32:return e?[0,4294967295]:[-2147483648,2147483647];default:throw new Error("Invalid bit size.")}}function kp(e){switch(e){case 2:return/[^0-1]/;case 8:return/[^0-7]/;case 10:return/[^0-9]/;case 16:return/[^0-9a-fA-F]/;default:throw new Error("Invalid Base.")}}function Ip(e,t){if(t&Go.AllowHexSpecifier)return 16;switch(e){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}function $p(e,t,n){const i=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(i!=null){const[,,o,s]=i;if(n=n||Ip(o,t),!kp(n).test(s))return Mp(i,n)}return null}function Rp(e,t,n,r,i){const o=$p(e,t,i);if(o!=null){let s=Number.parseInt(o.sign+o.digits,o.radix);if(!Number.isNaN(s)){const[a,u]=gl(!0,r);!n&&o.radix!==10&&s>=a&&s<=u&&(s=s<<32-r>>32-r);const[l,f]=gl(n,r);if(s>=l&&s<=f)return s}}throw new Error(`The input string ${e} was not in a correct format.`)}function mn(e,t,n,r,i){try{return i.contents=Rp(e,t,n,r),!0}catch{return!1}}function vl(e,t){Pp(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Pp(e){if(e!=null&&e!==0){if(e%6e4!==0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}function Dp(){return vl(-621355968e5,0)}function Np(e){const[t,n]=ju(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return vl(t.getTime(),r)}function jp(e,t){try{return t.contents=Np(e),!0}catch{return!1}}function nr(e){return e<0?Math.ceil(e):Math.floor(e)}function ml(e=0,t=0,n=0,r=0,i=0){switch(arguments.length){case 1:return Lp(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],i=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+i}function Lp(e){return Number(BigInt(e)/10000n)}function Vp(e){return nr(e/864e5)}function Fp(e){return nr(e%864e5/36e5)}function Up(e){return nr(e%36e5/6e4)}function Bp(e){return nr(e%6e4/1e3)}function Gp(e){return nr(e%1e3)}function Hp(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(Vp(e)),i=Math.abs(Fp(e)),o=Math.abs(Up(e)),s=Math.abs(Bp(e)),a=Math.abs(Gp(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?i:N(i,2)}:${N(o,2)}:${N(s,2)}${a===0&&(t==="c"||t==="g")?"":t==="g"?"."+N(a,3):"."+sh(a,3,7)}`}function zp(e){const t=e.search("\\."),n=e.search("\\:");if(t===-1&&n===-1){const r=parseInt(e,0);if(isNaN(r))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return ml(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let i=0,o=0,s=0;const a=r[1]!=null&&r[1]==="-"?-1:1,u=+r[4],l=+r[5];if(r[3]!=null&&(i=+r[3]),r[7]!=null&&(s=+r[7]),r[8]!=null)switch(r[8].length){case 1:o=+r[8]*100;break;case 2:o=+r[8]*10;break;case 3:o=+r[8];break;case 4:o=+r[8]/10;break;case 5:o=+r[8]/100;break;case 6:o=+r[8]/1e3;break;case 7:o=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*ml(i,u,l,s,o)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Wp(e,t){try{return t.contents=zp(e),!0}catch{return!1}}class yl{constructor(t,n){this.k=t,this.v=n}}function ci(e,t){return new yl(e,t)}function oe(e){return e.k}function ye(e){return e.v}class ee extends yl{constructor(t,n,r,i,o){super(t,n),this.left=r,this.right=i,this.h=o|0}}function fi(e,t,n,r,i){return new ee(e,t,n,r,i)}function se(e){return e.left}function ae(e){return e.right}function Bt(e){return e.h}function Y0(){}function bl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=b(r);if(i instanceof ee){const o=i;e=bl(n+1,se(o)),t=ae(o);continue e}else return n+1|0}else return n|0}}function qp(e){return bl(0,e)}function Ve(e,t,n,r){let i,o,s;const a=e;if(a!=null){const c=b(a);s=c instanceof ee?(i=c,Bt(i)):1}else s=0;let u;const l=r;if(l!=null){const c=b(l);u=c instanceof ee?(o=c,Bt(o)):1}else u=0;const f=(s<u?u:s)|0;return f===0?ci(t,n):fi(t,n,e,r,f+1)}function wl(e,t,n,r){let i,o,s,a,u,l,f,c,d;const h=e;if(h!=null){const v=b(h);d=v instanceof ee?(i=v,Bt(i)):1}else d=0;let _;const g=r;if(g!=null){const v=b(g);_=v instanceof ee?(o=v,Bt(o)):1}else _=0;if(_>d+2){const v=b(r);if(v instanceof ee){const m=v;if(s=se(m),(s!=null?(a=b(s),a instanceof ee?(u=a,Bt(u)):1):0)>d+1){const w=b(se(m));if(w instanceof ee){const T=w;return Ve(Ve(e,t,n,se(T)),oe(T),ye(T),Ve(ae(T),oe(m),ye(m),ae(m)))}else throw new Error("internal error: Map.rebalance")}else return Ve(Ve(e,t,n,se(m)),oe(m),ye(m),ae(m))}else throw new Error("internal error: Map.rebalance")}else if(d>_+2){const v=b(e);if(v instanceof ee){const m=v;if(l=ae(m),(l!=null?(f=b(l),f instanceof ee?(c=f,Bt(c)):1):0)>_+1){const w=b(ae(m));if(w instanceof ee){const T=w;return Ve(Ve(se(m),oe(m),ye(m),se(T)),oe(T),ye(T),Ve(ae(T),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Ve(se(m),oe(m),ye(m),Ve(ae(m),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Ve(e,t,n,r)}function yn(e,t,n,r){if(r!=null){const i=b(r),o=e.Compare(t,oe(i))|0;if(i instanceof ee){const s=i;return o<0?wl(yn(e,t,n,se(s)),oe(s),ye(s),ae(s)):o===0?fi(t,n,se(s),ae(s),Bt(s)):wl(se(s),oe(s),ye(s),yn(e,t,n,ae(s)))}else return o<0?fi(t,n,void 0,r,2):o===0?ci(t,n):fi(t,n,r,void 0,2)}else return ci(t,n)}function Sl(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=b(o),a=r.Compare(i,oe(s))|0;if(a===0)return Ne(ye(s));if(s instanceof ee){const u=s;e=r,t=i,n=a<0?se(u):ae(u);continue e}else return}else return}}function Kp(e,t,n){const r=Sl(e,t,n);if(r==null)throw new Error;return b(r)}function Jp(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=b(o),a=r.Compare(i,oe(s))|0;if(s instanceof ee){const u=s;if(a<0){e=r,t=i,n=se(u);continue e}else{if(a===0)return!0;e=r,t=i,n=ae(u);continue e}}else return a===0}else return!1}}function Cl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=b(r);if(i instanceof ee){const o=i;Cl(n,se(o)),n(oe(o),ye(o)),e=n,t=ae(o);continue e}else n(oe(i),ye(i))}break}}function Zp(e,t){Cl(e,t)}function Yp(e,t,n){let r=n;Zp((i,o)=>{St(t,r,[i,o]),r=r+1|0},e)}function Xp(e,t){return ii((n,r)=>yn(e,r[0],r[1],n),void 0,t)}function Qp(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){const s=o["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=yn(r,s[0],s[1],i),n=o;continue e}else return i}}function eg(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const i=K(r,t);n=yn(e,i[0],i[1],n)}return n}function Ol(e,t){if(Je(t))return eg(e,t);if(t instanceof Ct)return Xp(e,t);{const n=X(t);try{return Qp(e,void 0,n)}finally{J(n)}}}class tg extends ge{constructor(t,n){super(),this.stack=t,this.started=n}}function El(e){e:for(;;){const t=e;if(R(t))return Ye();{const n=$(t),r=C(t);if(r!=null){const i=b(r);if(i instanceof ee){const o=i;e=q([se(o),ci(oe(o),ye(o)),ae(o)],n);continue e}else return t}else{e=n;continue e}}}}function Al(e){return new tg(El(hn(e)),!1)}function ng(){throw new Error("enumeration not started")}function rg(){throw new Error("enumeration already finished")}function xl(e){if(e.started){const t=e.stack;if(R(t))return rg();if(C(t)!=null){const n=b(C(t));if(n instanceof ee)throw new Error("Please report error: Map iterator, unexpected stack for current");return[oe(n),ye(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return ng()}function ig(e){if(e.started){const t=e.stack;if(R(t))return!1;if(C(t)!=null){if(b(C(t))instanceof ee)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=El($(t)),!R(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!R(e.stack)}function Tl(e){let t=Al(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return xl(t)},"System.Collections.IEnumerator.get_Current"(){return xl(t)},"System.Collections.IEnumerator.MoveNext"(){return ig(t)},"System.Collections.IEnumerator.Reset"(){t=Al(e)},Dispose(){}}}class di{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return ug(this)|0}Equals(t){const n=this;if(t instanceof di){const r=t,i=X(n);try{const o=X(r);try{const s=()=>{const a=i["System.Collections.IEnumerator.MoveNext"]();if(a===o["System.Collections.IEnumerator.MoveNext"]())if(a){const u=i["System.Collections.Generic.IEnumerator`1.get_Current"](),l=o["System.Collections.Generic.IEnumerator`1.get_Current"]();return Pe(u[0],l[0])&&Pe(u[1],l[1])?s():!1}else return!0;else return!1};return s()}finally{J(o)}}finally{J(i)}}else return!1}toString(){return"map ["+Jn("; ",Le(n=>s_("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return Tl(this.tree)}[Symbol.iterator](){return Gr(X(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Tl(this.tree)}CompareTo(t){const n=this;if(t instanceof di)return N_((i,o)=>{const s=n.comparer.Compare(i[0],o[0])|0;return(s!==0?s:wt(i[1],o[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return kl(n,t[0])&&Pe(Ml(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Yp(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Ho(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Ho(this)|0}get size(){return Ho(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Le(n=>[n[0],n[1]],this)}get(t){return Ml(this,t)}has(t){return kl(this,t)}keys(){return Le(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Le(n=>n[1],this)}forEach(t,n){const r=this;jo(i=>{t(i[1],i[0],r)},r)}}function hi(e,t){return new di(e,t)}function og(e){return hi(e,void 0)}function sg(e,t,n){return hi(e.comparer,yn(e.comparer,t,n,e.tree))}function Ml(e,t){return Kp(e.comparer,t,e.tree)}function Ho(e){return qp(e.tree)}function kl(e,t){return Jp(e.comparer,t,e.tree)}function ag(e,t){return Sl(e.comparer,t,e.tree)}function ug(e){const t=(i,o)=>(i<<1)+o+631;let n=0;const r=X(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const i=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,lt(i[0]))|0,n=t(n,lt(i[1]))|0}}finally{J(r)}return n|0}function Il(e,t,n){return sg(n,e,t)}function $l(e,t){return ag(t,e)}function lg(e,t){return hi(t,Ol(t,e))}function cg(e,t){return hi(t,Ol(t,e))}function zo(e){return og(e)}class Rl{constructor(t){this.k=t}}function be(e){return new Rl(e)}function x(e){return e.k}class P extends Rl{constructor(t,n,r,i){super(t),this.left=n,this.right=r,this.h=i|0}}function we(e,t,n,r){return new P(e,t,n,r)}function B(e){return e.left}function V(e){return e.right}function bn(e){return e.h}function X0(){}function Pl(e,t){e:for(;;){const n=e,r=t;if(n!=null){const i=b(n);if(i instanceof P){const o=i;e=B(o),t=Pl(V(o),r+1);continue e}else return r+1|0}else return r|0}}function fg(e){return Pl(e,0)}function Fe(e,t,n){let r,i,o;const s=e;if(s!=null){const f=b(s);o=f instanceof P?(r=f,bn(r)):1}else o=0;let a;const u=n;if(u!=null){const f=b(u);a=f instanceof P?(i=f,bn(i)):1}else a=0;const l=(o<a?a:o)|0;return l===0?be(t):we(t,e,n,l+1)}function Dl(e,t,n){let r,i,o,s,a,u,l,f,c;const d=e;if(d!=null){const g=b(d);c=g instanceof P?(r=g,bn(r)):1}else c=0;let h;const _=n;if(_!=null){const g=b(_);h=g instanceof P?(i=g,bn(i)):1}else h=0;if(h>c+2){const g=b(n);if(g instanceof P){const v=g;if(o=B(v),(o!=null?(s=b(o),s instanceof P?(a=s,bn(a)):1):0)>c+1){const m=b(B(v));if(m instanceof P){const w=m;return Fe(Fe(e,t,B(w)),x(w),Fe(V(w),x(v),V(v)))}else throw new Error("internal error: Set.rebalance")}else return Fe(Fe(e,t,B(v)),x(v),V(v))}else throw new Error("internal error: Set.rebalance")}else if(c>h+2){const g=b(e);if(g instanceof P){const v=g;if(u=V(v),(u!=null?(l=b(u),l instanceof P?(f=l,bn(f)):1):0)>h+1){const m=b(V(v));if(m instanceof P){const w=m;return Fe(Fe(B(v),x(v),B(w)),x(w),Fe(V(w),t,n))}else throw new Error("internal error: Set.rebalance")}else return Fe(B(v),x(v),Fe(V(v),t,n))}else throw new Error("internal error: Set.rebalance")}else return Fe(e,t,n)}function rr(e,t,n){if(n!=null){const r=b(n),i=e.Compare(t,x(r))|0;if(r instanceof P){const o=r;return i<0?Dl(rr(e,t,B(o)),x(o),V(o)):i===0?n:Dl(B(o),x(o),rr(e,t,V(o)))}else{const o=e.Compare(t,x(r))|0;return o<0?we(t,void 0,n,2):o===0?n:we(t,n,void 0,2)}}else return be(t)}function Nl(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=b(o),a=r.Compare(i,x(s))|0;if(s instanceof P){const u=s;if(a<0){e=r,t=i,n=B(u);continue e}else{if(a===0)return!0;e=r,t=i,n=V(u);continue e}}else return a===0}else return!1}}function jl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=b(r);if(i instanceof P){const o=i;jl(n,B(o)),n(x(o)),e=n,t=V(o);continue e}else n(x(i))}break}}class dg extends ge{constructor(t,n){super(),this.stack=t,this.started=n}}function Ll(e){e:for(;;){const t=e;if(R(t))return Ye();{const n=C(t),r=$(t);if(n!=null){const i=b(n);if(i instanceof P){const o=i;e=q([B(o),be(x(o)),V(o)],r);continue e}else return t}else{e=r;continue e}}}}function Vl(e){return new dg(Ll(hn(e)),!1)}function hg(){throw new Error("Enumeration not started")}function _g(){throw new Error("Enumeration already started")}function Fl(e){if(e.started){const t=e.stack;if(R(t))return _g();if(C(t)!=null){const n=b(C(t));return x(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return hg()}function pg(e){if(e.started){const t=e.stack;if(R(t))return!1;if(C(t)!=null){if(b(C(t))instanceof P)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Ll($(t)),!R(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!R(e.stack)}function Ul(e){let t=Vl(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Fl(t)},"System.Collections.IEnumerator.get_Current"(){return Fl(t)},"System.Collections.IEnumerator.MoveNext"(){return pg(t)},"System.Collections.IEnumerator.Reset"(){t=Vl(e)},Dispose(){}}}function gg(e,t,n){e:for(;;){const r=e,i=t,o=n;if(R(i))return R(o)?0:-1;if(R(o))return 1;if(C(o)!=null)if(C(i)!=null){const s=b(C(i)),a=b(C(o));if(s instanceof P){const u=s;if(B(u)==null)if(a instanceof P){const l=a;if(B(l)==null){const f=r.Compare(x(u),x(l))|0;if(f!==0)return f|0;e=r,t=je(V(u),$(i)),n=je(V(l),$(o));continue e}else{let f,c,d,h,_;switch(R(i)?R(o)?f=2:C(o)!=null?(f=1,h=$(o),_=b(C(o))):f=2:C(i)!=null?(f=0,c=$(i),d=b(C(i))):R(o)?f=2:C(o)!=null?(f=1,h=$(o),_=b(C(o))):f=2,f){case 0:if(d instanceof P){const g=d;e=r,t=q([B(g),we(x(g),void 0,V(g),0)],c),n=o;continue e}else{e=r,t=q([void 0,be(x(d))],c),n=o;continue e}case 1:if(_ instanceof P){const g=_;e=r,t=i,n=q([B(g),we(x(g),void 0,V(g),0)],h);continue e}else{e=r,t=i,n=q([void 0,be(x(_))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(x(u),x(a))|0;if(l!==0)return l|0;e=r,t=je(V(u),$(i)),n=je(void 0,$(o));continue e}else{let l,f,c,d,h;switch(R(i)?R(o)?l=2:C(o)!=null?(l=1,d=$(o),h=b(C(o))):l=2:C(i)!=null?(l=0,f=$(i),c=b(C(i))):R(o)?l=2:C(o)!=null?(l=1,d=$(o),h=b(C(o))):l=2,l){case 0:if(c instanceof P){const _=c;e=r,t=q([B(_),we(x(_),void 0,V(_),0)],f),n=o;continue e}else{e=r,t=q([void 0,be(x(c))],f),n=o;continue e}case 1:if(h instanceof P){const _=h;e=r,t=i,n=q([B(_),we(x(_),void 0,V(_),0)],d);continue e}else{e=r,t=i,n=q([void 0,be(x(h))],d);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof P){const u=a;if(B(u)==null){const l=r.Compare(x(s),x(u))|0;if(l!==0)return l|0;e=r,t=je(void 0,$(i)),n=je(V(u),$(o));continue e}else{let l,f,c,d,h;switch(R(i)?R(o)?l=2:C(o)!=null?(l=1,d=$(o),h=b(C(o))):l=2:C(i)!=null?(l=0,f=$(i),c=b(C(i))):R(o)?l=2:C(o)!=null?(l=1,d=$(o),h=b(C(o))):l=2,l){case 0:if(c instanceof P){const _=c;e=r,t=q([B(_),we(x(_),void 0,V(_),0)],f),n=o;continue e}else{e=r,t=q([void 0,be(x(c))],f),n=o;continue e}case 1:if(h instanceof P){const _=h;e=r,t=i,n=q([B(_),we(x(_),void 0,V(_),0)],d);continue e}else{e=r,t=i,n=q([void 0,be(x(h))],d);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(x(s),x(a))|0;if(u!==0)return u|0;e=r,t=$(i),n=$(o);continue e}}else{b(C(o));let s,a,u,l,f;switch(R(i)?R(o)?s=2:C(o)!=null?(s=1,l=$(o),f=b(C(o))):s=2:C(i)!=null?(s=0,a=$(i),u=b(C(i))):R(o)?s=2:C(o)!=null?(s=1,l=$(o),f=b(C(o))):s=2,s){case 0:if(u instanceof P){const c=u;e=r,t=q([B(c),we(x(c),void 0,V(c),0)],a),n=o;continue e}else{e=r,t=q([void 0,be(x(u))],a),n=o;continue e}case 1:if(f instanceof P){const c=f;e=r,t=i,n=q([B(c),we(x(c),void 0,V(c),0)],l);continue e}else{e=r,t=i,n=q([void 0,be(x(f))],l);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(C(i)!=null){b(C(i));let s,a,u,l,f;switch(R(i)?R(o)?s=2:C(o)!=null?(s=1,l=$(o),f=b(C(o))):s=2:C(i)!=null?(s=0,a=$(i),u=b(C(i))):R(o)?s=2:C(o)!=null?(s=1,l=$(o),f=b(C(o))):s=2,s){case 0:if(u instanceof P){const c=u;e=r,t=q([B(c),we(x(c),void 0,V(c),0)],a),n=o;continue e}else{e=r,t=q([void 0,be(x(u))],a),n=o;continue e}case 1:if(f instanceof P){const c=f;e=r,t=i,n=q([B(c),we(x(c),void 0,V(c),0)],l);continue e}else{e=r,t=i,n=q([void 0,be(x(f))],l);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=$(i),n=$(o);continue e}}}function Bl(e,t,n){return t==null?n==null?0:-1:n==null?1:gg(e,hn(t),hn(n))|0}function vg(e,t,n){let r=n;jl(i=>{St(t,r,i),r=r+1|0},e)}function mg(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){e=r,t=rr(r,o["System.Collections.Generic.IEnumerator`1.get_Current"](),i),n=o;continue e}else return i}}function yg(e,t){return Yn((n,r)=>rr(e,r,n),void 0,t)}function bg(e,t){return ii((n,r)=>rr(e,r,n),void 0,t)}function wg(e,t){if(Je(t))return yg(e,t);if(t instanceof Ct)return bg(e,t);{const n=X(t);try{return mg(e,void 0,n)}finally{J(n)}}}class Wo{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Og(this)|0}Equals(t){let n;const r=this;return t instanceof Wo&&(n=t,Bl(_i(r),Xe(r),Xe(n))===0)}toString(){return"set ["+Jn("; ",Le(n=>Ae(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Bl(_i(n),Xe(n),Xe(t))|0}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return Nl(_i(n),t,Xe(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){vg(Xe(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return qo(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return qo(this)|0}GetEnumerator(){return Ul(Xe(this))}[Symbol.iterator](){return Gr(X(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Ul(Xe(this))}get size(){return qo(this)|0}add(t){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(t){throw new Error("Set cannot be mutated")}has(t){return Cg(this,t)}keys(){return Le(n=>n,this)}values(){return Le(n=>n,this)}entries(){return Le(n=>[n,n],this)}forEach(t,n){const r=this;jo(i=>{t(i,i,r)},r)}}function Sg(e,t){return new Wo(e,t)}function _i(e){return e.comparer}function Xe(e){return e.tree}function qo(e){return fg(Xe(e))}function Cg(e,t){return Nl(_i(e),t,Xe(e))}function Og(e){let t=0;const n=X(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+lt(r)+631|0}}finally{J(n)}return Math.abs(t)|0}function Eg(e,t){return Sg(t,wg(t,e))}function ir(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
|
|
14
14
|
`:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
|
|
15
|
-
`:" ")}}function Ag(e,t){const n=t.tag===2?
|
|
16
|
-
Reason: `+t.fields[2]:t.tag===3?
|
|
15
|
+
`:" ")}}function Ag(e,t){const n=t.tag===2?ir(t.fields[0],t.fields[1],!0):t.tag===1?ir(t.fields[0],t.fields[1],!1)+`
|
|
16
|
+
Reason: `+t.fields[2]:t.tag===3?ir(t.fields[0],t.fields[1],!0):t.tag===4?ir(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
|
|
17
17
|
`+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
|
|
18
18
|
|
|
19
|
-
`+
|
|
19
|
+
`+Jn(`
|
|
20
20
|
|
|
21
|
-
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:
|
|
21
|
+
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:ir(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function Gl(e,t,n){const r=t(e,n);if(r.tag===1){const i=r.fields[0];return new p(1,[Ag(i[0],i[1])])}else return new p(0,[r.fields[0]])}function Ko(e,t){try{return Gl("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new p(1,["Given an invalid JSON: "+n.message]);throw n}}function Hl(e,t){return typeof t=="string"?new p(0,[t]):new p(1,[[e,new S(0,["a string",t])]])}function xg(e,t){if(typeof t=="string"){const n=t;return n.length===1?new p(0,[n[0]]):new p(1,[[e,new S(0,["a single character string",t])]])}else return new p(1,[[e,new S(0,["a char",t])]])}function Tg(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[sl(t,new re(()=>r,i=>{r=i})),r],n[0]?new p(0,[n[1]]):new p(1,[[e,new S(0,["a guid",t])]])}else return new p(1,[[e,new S(0,["a guid",t])]])}function Mg(e,t){return t==null?new p(0,[void 0]):new p(1,[[e,new S(0,["null",t])]])}const zl=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?-128<=i&&i<=127?new p(0,[(i+128&255)-128]):new p(1,[[n,new S(1,["a sbyte",i,"Value was either too large or too small for a sbyte"])]]):new p(1,[[n,new S(1,["a sbyte",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[mn(r,511,!1,8,new re(()=>o,s=>{o=s|0})),o],i[0]?new p(0,[i[1]]):new p(1,[[n,new S(0,["a sbyte",r])]])}else return new p(1,[[n,new S(0,["a sbyte",r])]])},Wl=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=255?new p(0,[i&255]):new p(1,[[n,new S(1,["a byte",i,"Value was either too large or too small for a byte"])]]):new p(1,[[n,new S(1,["a byte",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[mn(r,511,!0,8,new re(()=>o,s=>{o=s})),o],i[0]?new p(0,[i[1]]):new p(1,[[n,new S(0,["a byte",r])]])}else return new p(1,[[n,new S(0,["a byte",r])]])},ql=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?-32768<=i&&i<=32767?new p(0,[(i+32768&65535)-32768]):new p(1,[[n,new S(1,["an int16",i,"Value was either too large or too small for an int16"])]]):new p(1,[[n,new S(1,["an int16",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[mn(r,511,!1,16,new re(()=>o,s=>{o=s|0})),o],i[0]?new p(0,[i[1]]):new p(1,[[n,new S(0,["an int16",r])]])}else return new p(1,[[n,new S(0,["an int16",r])]])},Kl=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=65535?new p(0,[i&65535]):new p(1,[[n,new S(1,["an uint16",i,"Value was either too large or too small for an uint16"])]]):new p(1,[[n,new S(1,["an uint16",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[mn(r,511,!0,16,new re(()=>o,s=>{o=s})),o],i[0]?new p(0,[i[1]]):new p(1,[[n,new S(0,["an uint16",r])]])}else return new p(1,[[n,new S(0,["an uint16",r])]])},Jl=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?-2147483648<=i&&i<=2147483647?new p(0,[~~i]):new p(1,[[n,new S(1,["an int",i,"Value was either too large or too small for an int"])]]):new p(1,[[n,new S(1,["an int",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[mn(r,511,!1,32,new re(()=>o,s=>{o=s|0})),o],i[0]?new p(0,[i[1]]):new p(1,[[n,new S(0,["an int",r])]])}else return new p(1,[[n,new S(0,["an int",r])]])},Zl=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=4294967295?new p(0,[i>>>0]):new p(1,[[n,new S(1,["an uint32",i,"Value was either too large or too small for an uint32"])]]):new p(1,[[n,new S(1,["an uint32",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[mn(r,511,!0,32,new re(()=>o,s=>{o=s})),o],i[0]?new p(0,[i[1]]):new p(1,[[n,new S(0,["an uint32",r])]])}else return new p(1,[[n,new S(0,["an uint32",r])]])};function kg(e,t){return typeof t=="boolean"?new p(0,[t]):new p(1,[[e,new S(0,["a boolean",t])]])}function Ig(e,t){return typeof t=="number"?new p(0,[t]):new p(1,[[e,new S(0,["a float",t])]])}function $g(e,t){return typeof t=="number"?new p(0,[t]):new p(1,[[e,new S(0,["a float32",t])]])}function Rg(e,t){if(typeof t=="string"){let n,r=Jh();return n=[Yh(t,new re(()=>r,i=>{r=i})),r],n[0]?new p(0,[Xh(n[1])]):new p(1,[[e,new S(0,["a datetime",t])]])}else return new p(1,[[e,new S(0,["a datetime",t])]])}function Pg(e,t){if(typeof t=="string"){let n,r=Dp();return n=[jp(t,new re(()=>r,i=>{r=i})),r],n[0]?new p(0,[n[1]]):new p(1,[[e,new S(0,["a datetimeoffset",t])]])}else return new p(1,[[e,new S(0,["a datetime",t])]])}function Dg(e,t){if(typeof t=="string"){let n,r=0;return n=[Wp(t,new re(()=>r,i=>{r=i})),r],n[0]?new p(0,[n[1]]):new p(1,[[e,new S(0,["a timespan",t])]])}else return new p(1,[[e,new S(0,["a timespan",t])]])}function Yl(e,t,n,r){let i;const o=n+".["+jt(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(o,K(e,s)):new p(1,[[o,new S(5,["a longer array. Need index `"+jt(e)+"` but there are only `"+(i=s.length,jt(i))+"` entries",r])]])}else return new p(1,[[o,new S(0,["an array",r])]])}function Ng(e,t,n){return n==null?new p(0,[void 0]):ft(Ne,e(t,n))}function Xl(e,t,n){if(Array.isArray(n)){let r=-1;return ft(Do,Yn((i,o)=>{if(r=r+1|0,i.tag===0){const s=e(t+".["+jt(r)+"]",o);return s.tag===0?new p(0,[je(s.fields[0],i.fields[0])]):new p(1,[s.fields[0]])}else return i},new p(0,[Ye()]),n))}else return new p(1,[[t,new S(0,["a list",n])]])}function jg(e,t,n){if(Array.isArray(n)){let r=-1;return ft(L_,Yn((i,o)=>{if(r=r+1|0,i.tag===0){const s=e(t+".["+jt(r)+"]",o);return s.tag===0?new p(0,[Y([s.fields[0]],i.fields[0])]):new p(1,[s.fields[0]])}else return i},new p(0,[[]]),n))}else return new p(1,[[t,new S(0,["a seq",n])]])}function Ql(e,t,n){if(Array.isArray(n)){let r=-1;const i=n;return Yn((o,s)=>{if(r=r+1|0,o.tag===0){const a=o.fields[0],u=e(t+".["+jt(r)+"]",s);return u.tag===0?(St(a,r,u.fields[0]),new p(0,[a])):new p(1,[u.fields[0]])}else return o},new p(0,[Ro(new Array(i.length),0,i.length,null)]),i)}else return new p(1,[[t,new S(0,["an array",n])]])}function Lg(e,t,n){return((i,o)=>{e:for(;;){const s=i,a=o;if(R(s))return new p(1,[[t,new S(7,[a])]]);{const u=Gl(t,Q(C(s)),n);if(u.tag===1){i=$(s),o=Yu(a,hn(u.fields[0]));continue e}else return new p(0,[u.fields[0]])}}})(e,Ye())}function Vg(e,t,n){return new p(0,[e])}function ec(e,t,n,r){const i=t(n,r);return i.tag===0?e(i.fields[0],n,r):new p(1,[i.fields[0]])}function Fg(e,t,n,r){const i=t(n,r);return i.tag===1?new p(1,[i.fields[0]]):new p(0,[e(i.fields[0])])}function Ug(e,t){let n;const r=e;return n=i=>o=>Yl(0,r,i,o),i=>o=>ec(ph(s=>{let a;const u=t;return a=l=>f=>Yl(1,u,l,f),l=>f=>ec((c,d,h)=>Vg([s,c]),Q(a),l,f)}),Q(n),i,o)}function Bg(e){return lg(e,{Compare:wt})}function Gg(e){return Eg(e,{Compare:wt})}function Hg(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?v_((r,i)=>{const o=r[0];return i.tag===0?ft(s=>je(s,i.fields[0]),r[1](t+"."+o)(n[o])):i},e,new p(0,[Ye()])):new p(1,[[t,new S(0,["an object",n])]])}function zg(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?ai((i,o)=>{if(i.tag===0){const s=e(n,o);if(s.tag===0){const a=t(n+"."+o,r[o]);return a.tag===0?new p(0,[je([s.fields[0],a.fields[0]],i.fields[0])]):new p(1,[a.fields[0]])}else return new p(1,[s.fields[0]])}else return i},new p(0,[Ye()]),Object.keys(r)):new p(1,[[n,new S(0,["an object",r])]])}function tc(e,t,n,r){let i;const o=t.length+e|0;if(o!==r.length)return new p(1,[[n,new S(6,[(i=r.length|0,Ft(Ze("Expected array of length %i but got %i"))(o)(i))])]]);{let s=new p(0,[Ye()]);for(let a=e;a<=r.length-1;a++)if(s.tag===0){const u=s.fields[0],l=Ft(Ze("%s[%i]"))(n)(a),f=K(a-e,t),c=K(a,r);s=ft(d=>je(d,u),f(l)(c))}return ft(Do,s)}}function nc(e,t,n,r,i,o){const s=__(a=>Lt(a)===r,$u(n));if(s!=null){const a=s,u=fn(l=>Ue(e,t,!1,l[1]),Pu(a));return ft(l=>Ph(a,ri(l)),u.length===0&&o.length<=1?new p(0,[Ye()]):tc(1,u,i,o))}else return new p(1,[[i,new S(6,["Cannot find case "+r+" in "+G(n)])]])}function rc(e,t,n,r){let i;const o=new re(D());let s;const a=G(r);s=a===""?e:Il(a,o,e);let u;if(xo(r)){const l=fn(f=>[pl(t,Lt(f)),Ue(s,t,!1,f[1])],ln(r));u=f=>c=>ft(d=>Dh(r,ri(d)),Hg(l,f,c))}else if(Ao(r))u=l=>f=>{if(typeof f=="string")return nc(s,t,r,f,l,[]);if(Array.isArray(f)){const c=f;return Op(d=>nc(s,t,r,d,l,c),Hl(l+"[0]",K(0,c)))}else return new p(1,[[l,new S(0,["a string or array",f])]])};else if(n)u=l=>f=>new p(1,[[l,new S(2,["an extra coder for "+G(r),f])]]);else throw new Error((i=G(r),Ft(Ze(`Cannot generate auto decoder for %s. Please pass an extra decoder.
|
|
22
22
|
|
|
23
|
-
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(i)));return o.contents=u,u}function Ue(e,t,n,r){let i,o,s,a;const u=G(r),l
|
|
23
|
+
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(i)));return o.contents=u,u}function Ue(e,t,n,r){let i,o,s,a;const u=G(r),l=$l(u,e);if(l==null)if(Tu(r)){const f=Ue(e,t,!1,Wn(r));return c=>d=>Ql(Q(f),c,d)}else if(Eo(r))switch(G(Iu(r))){case"System.SByte":return c=>d=>{const h=r,_=c,g=d,v=zl(_)(g);if(v.tag===1)return new p(1,[v.fields[0]]);{const m=v.fields[0]|0;return pn(m,an(h),{Equals:(w,T)=>w===T,GetHashCode:ut})?new p(0,[un(h,m.toString())]):new p(1,[[_,new S(1,[G(h),g,"Unkown value provided for the enum"])]])}};case"System.Byte":return c=>d=>{const h=r,_=c,g=d,v=Wl(_)(g);if(v.tag===1)return new p(1,[v.fields[0]]);{const m=v.fields[0];return pn(m,an(h),{Equals:(w,T)=>w===T,GetHashCode:ut})?new p(0,[un(h,m.toString())]):new p(1,[[_,new S(1,[G(h),g,"Unkown value provided for the enum"])]])}};case"System.Int16":return c=>d=>{const h=r,_=c,g=d,v=ql(_)(g);if(v.tag===1)return new p(1,[v.fields[0]]);{const m=v.fields[0]|0;return pn(m,an(h),{Equals:(w,T)=>w===T,GetHashCode:ut})?new p(0,[un(h,ah(m))]):new p(1,[[_,new S(1,[G(h),g,"Unkown value provided for the enum"])]])}};case"System.UInt16":return c=>d=>{const h=r,_=c,g=d,v=Kl(_)(g);if(v.tag===1)return new p(1,[v.fields[0]]);{const m=v.fields[0];return pn(m,an(h),{Equals:(w,T)=>w===T,GetHashCode:ut})?new p(0,[un(h,m.toString())]):new p(1,[[_,new S(1,[G(h),g,"Unkown value provided for the enum"])]])}};case"System.Int32":return c=>d=>{const h=r,_=c,g=d,v=Jl(_)(g);if(v.tag===1)return new p(1,[v.fields[0]]);{const m=v.fields[0]|0;return pn(m,an(h),{Equals:(w,T)=>w===T,GetHashCode:ut})?new p(0,[un(h,jt(m))]):new p(1,[[_,new S(1,[G(h),g,"Unkown value provided for the enum"])]])}};case"System.UInt32":return c=>d=>{const h=r,_=c,g=d,v=Zl(_)(g);if(v.tag===1)return new p(1,[v.fields[0]]);{const m=v.fields[0];return pn(m,an(h),{Equals:(w,T)=>w===T,GetHashCode:ut})?new p(0,[un(h,m.toString())]):new p(1,[[_,new S(1,[G(h),g,"Unkown value provided for the enum"])]])}};default:{const c=G(r),d=Io(Ze(`Cannot generate auto decoder for %s.
|
|
24
24
|
Thoth.Json.Net only support the following enum types:
|
|
25
25
|
- sbyte
|
|
26
26
|
- byte
|
|
@@ -29,10 +29,10 @@ Thoth.Json.Net only support the following enum types:
|
|
|
29
29
|
- int
|
|
30
30
|
- uint32
|
|
31
31
|
If you can't use one of these types, please pass an extra decoder.
|
|
32
|
-
`))(c);return h=>d(h)}}else if(Tu(r))if(xo(r)){const f=ln(c=>Ue(e,t,!1,c),$u(r));return c=>d=>Array.isArray(d)?ct(h=>Nh(ti(h)),ec(0,f,c,d)):new p(1,[[c,new S(0,["an array",d])]])}else switch(G(Mu(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return i=Ue(e,t,!0,W(0,he(r))),c=>d=>Ng(Z(i),c,d);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return o=Ue(e,t,!1,W(0,he(r))),c=>d=>Yl(Z(o),c,d);case"System.Collections.Generic.IEnumerable`1[System.Object]":return s=Ue(e,t,!1,W(0,he(r))),c=>d=>jg(Z(s),c,d);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=Ue(e,t,!1,W(0,he(r))),d=Ue(e,t,!1,W(1,he(r)));let h;const _=Y([g=>v=>zg(Z(c),Z(d),g,v),(a=Ug(Z(c),Z(d)),g=>v=>Yl(Z(a),g,v))]);return h=g=>v=>Lg(_,g,v),g=>v=>Fg(Bg,Z(h),g,v)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=Ue(e,t,!1,W(0,he(r)));return d=>h=>{const _=Xl(Z(c),d,h);return _.tag===0?new p(0,[Gg(_.fields[0])]):new p(1,[_.fields[0]])}}default:return nc(e,t,n,r)}else switch(u){case"System.Boolean":return f=>c=>kg(f,c);case"Microsoft.FSharp.Core.Unit":return f=>c=>Mg(f,c);case"System.String":return f=>c=>Gl(f,c);case"System.Char":return f=>c=>xg(f,c);case"System.SByte":return Hl;case"System.Byte":return zl;case"System.Int16":return Wl;case"System.UInt16":return ql;case"System.Int32":return Kl;case"System.UInt32":return Jl;case"System.Double":return f=>c=>Ig(f,c);case"System.Single":return f=>c=>$g(f,c);case"System.DateTime":return f=>c=>Rg(f,c);case"System.DateTimeOffset":return f=>c=>Pg(f,c);case"System.TimeSpan":return f=>c=>Dg(f,c);case"System.Guid":return f=>c=>Tg(f,c);case"System.Object":return f=>c=>new p(0,[c]);default:return nc(e,t,n,r)}else{const f=l;return c=>d=>f.contents(c)(d)}}function Wg(e){return Ho({Compare:Gr})}function Ko(e,t,n){const r=To(t,new pn(0,[]));return Ue(Wg(),r,!1,e)}class qg extends de{constructor(t){super(),this.Roles=t}}function Kg(){return rn("ApolloIdentity.AdminUI.Jwt.JwtPayload",[],qg,()=>[["Roles",Th(Ae)]])}function Jg(e){const t=Wu(e??"",["."],void 0,0);if(!g_((n,r)=>n===r,t)&&t.length===3){let n;const r=W(1,t);return n=atob(r),qo(Z(Ko(Kg(),new pn(1,[]))),n)}else return new p(1,["Failed to decode access token"])}class Zg{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,i=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(i)}}}Dispose(){}}class Jo extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Jo.prototype)}}class Zo{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Zo.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function Ut(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Jo);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Hr(n))}});else try{e(t)}catch(n){t.onError(Hr(n))}}}function Yg(e,t){return Ut(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(i){n.onError(Hr(i))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Xg(e){return Ut(t=>t.onSuccess(e))}class Qg{Bind(t,n){return Yg(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return Ut(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let i=r.next();return this.While(()=>!i.done,this.Delay(()=>{const o=n(i.value);return i=r.next(),o}))}Return(t){return Xg(t)}ReturnFrom(t){return t}TryFinally(t,n){return Ut(r=>{t({onSuccess:i=>{n(),r.onSuccess(i)},onError:i=>{n(),r.onError(i)},onCancel:i=>{n(),r.onCancel(i)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return Ut(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:i=>{try{n(i)(r)}catch(o){r.onError(Hr(o))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return Ut(t=>t.onSuccess(void 0))}}const se=new Qg;function Yo(e){}const e0=new Zg;function t0(e){return Ut(t=>e([t.onSuccess,t.onError,t.onCancel]))}function n0(e,t){return r0(e,Yo,function(n){throw n},Yo)}function rc(e,t){return n0(e)}function r0(e,t,n,r,i){const o=new Zo;e({onSuccess:t||Yo,onError:n,onCancel:r,cancelToken:e0,trampoline:o})}class yn extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","LoadError","Read","Edit"]}}function i0(){return De("ApolloIdentity.AdminUI.AppTypes.Page",[],yn,()=>[[],[],[["Item",Fo()]],[["Item",Fo()]]])}let _i=class extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GoToEdit","GetLoginConfig","GetLoginConfigFinished"]}},rr=class extends de{constructor(t,n){super(),this.Page=t,this.Roles=n}};function o0(){return rn("ApolloIdentity.AdminUI.AppTypes.State",[],rr,()=>[["Page",i0()],["Roles",Ap()]])}function s0(e,t){let n;return t(new _i(1,[])),new rr(new yn(0,[]),(n=Jg(e),n.tag===1?Tp:xp(n.fields[0])))}function a0(e,t,n,r){switch(r.tag){case 1:return rc(se.Delay(()=>se.Bind(e(),i=>(n(new _i(2,[i])),se.Zero())))),new rr(new yn(0,[]),t.Roles);case 2:{const i=r.fields[0];return new rr(i.tag===1?new yn(1,[]):new yn(2,[i.fields[0]]),t.Roles)}default:return new rr(new yn(3,[r.fields[0]]),t.Roles)}}function u0(e,t){const n=[r=>s0(e,r),r=>i=>{const o=[r[0],r[1]];return a0(t,o[0],o[1],i)}];return np(n[0],Z(n[1]),o0())}class ir extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved"]}}function l0(e){return De("ApolloIdentity.AdminUI.CommonTypes.Deferred`1",[e],ir,()=>[[],[],[["Item",e]]])}class ft extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SSO","PartnerToken","MagicLink","Disabled"]}}function c0(){return De("ApolloIdentity.AdminUI.Components.EditLoginConfigTypes.LoginMethod",[],ft,()=>[[],[],[],[]])}class St extends de{constructor(t,n,r){super(),this.Connection=t,this.ClientId=n,this.ClientSecret=r}}function f0(){return rn("ApolloIdentity.AdminUI.Components.EditLoginConfigTypes.SSOConfig",[],St,()=>[["Connection",Ae],["ClientId",Ae],["ClientSecret",Ae]])}class dt extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetLoginMethod","SetSSOConfigConnection","SetSSOConfigClientId","SetSSOConfigClientSecret","Save","SaveFinished"]}}class Ct extends de{constructor(t,n,r){super(),this.LoginMethod=t,this.SSOConfig=n,this.Save=r}}function d0(){return rn("ApolloIdentity.AdminUI.Components.EditLoginConfigTypes.State",[],Ct,()=>[["LoginMethod",c0()],["SSOConfig",f0()],["Save",l0(De("Microsoft.FSharp.Core.FSharpResult`2",[Au,Co(Ae)],p,()=>[[["ResultValue",Au]],[["ErrorValue",Co(Ae)]]]))]])}function h0(e,t){let n,r;return new Ct(e.tag===0?e.fields[0].tag===1?new ft(2,[]):e.fields[0].tag===0?new ft(0,[]):new ft(1,[]):new ft(3,[]),e.tag===0?e.fields[0].tag===1?new St("","",""):e.fields[0].tag===0?(n=e.fields[0].fields[0].fields[0],new St(n.Connection,(r=n.ClientId,r),"")):new St("","",""):new St("","",""),new ir(0,[]))}function _0(e){switch(e.LoginMethod.tag){case 1:return new Xn(0,[new ai(2,[])]);case 2:return new Xn(0,[new ai(1,[])]);case 0:return new Xn(0,[new ai(0,[new fl({ClientId:e.SSOConfig.ClientId,ClientSecret:e.SSOConfig.ClientSecret,Connection:e.SSOConfig.Connection})])]);default:return new Xn(1,[])}}function p0(e,t,n,r,i){let o,s,a;switch(i.tag){case 1:return new Ct(n.LoginMethod,(o=n.SSOConfig,new St(i.fields[0],o.ClientId,o.ClientSecret)),n.Save);case 2:return new Ct(n.LoginMethod,(s=n.SSOConfig,new St(s.Connection,i.fields[0],s.ClientSecret)),n.Save);case 3:return new Ct(n.LoginMethod,(a=n.SSOConfig,new St(a.Connection,a.ClientId,i.fields[0])),n.Save);case 4:switch(n.Save.tag){case 0:case 2:return rc(se.Delay(()=>se.Bind(e(_0(n)),l=>(r(new dt(5,[l])),se.Zero())))),new Ct(n.LoginMethod,n.SSOConfig,new ir(1,[]));default:return n}case 5:{const u=i.fields[0];return Ep(t,u),new Ct(n.LoginMethod,n.SSOConfig,new ir(2,[u]))}default:return new Ct(i.fields[0],n.SSOConfig,n.Save)}}class g0 extends de{constructor(t,n,r){super(),this.Connection=t,this.ClientId=n,this.ClientSecret=r}}class bn extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Valid","Invalid"]}}function v0(e){return new class{get IsValid(){switch(e.LoginMethod.tag){case 1:return new bn(0,[]);case 2:return new bn(0,[]);case 0:{const n=ip(e.SSOConfig.Connection),r=sp(e.SSOConfig.ClientId),i=up(e.SSOConfig.ClientSecret);let o;switch(n!=null&&r!=null&&i!=null?o=0:o=1,o){case 0:return new bn(0,[]);default:return new bn(1,[new g0(n!=null?void 0:"Connection is invalid",r!=null?void 0:"Client ID is invalid",i!=null?void 0:"Client Secret is invalid")])}}default:return new bn(0,[])}}}}function m0(e,t,n){const r=[i=>h0(e),i=>o=>{const s=[i[0],i[1]];return p0(t,n,s[0],s[1],o)}];return ep(r[0],Z(r[1]),v0,d0())}const pi=Qn;function Xo(e){return E("p",{className:"mt-1 text-sm text-red-600",children:e})}const y0=(()=>{const e=vu(t=>{let n;const r=(n=m0(t.LoginConfig,t.UpsertLoginConfigAsync,t.NavBack),lt.useState(n))[0],i=ii(q(()=>te(T(pi("Login method")),q(()=>{let o,s,a;return te(T(E("select",fe(Y([(o="mt-2 rounded-md bg-white py-1.5 pr-8 pl-3 text-gray-900 outline-1 -outline-offset-1 outline-gray-300 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-indigo-600 text-sm/6",["className",o]),["onChange",u=>{switch(u.target.value){case"Disabled":{ge(r,new dt(0,[new ft(3,[])]));break}case"PartnerToken":{ge(r,new dt(0,[new ft(1,[])]));break}case"MagicLink":{ge(r,new dt(0,[new ft(2,[])]));break}case"SSO":{ge(r,new dt(0,[new ft(0,[])]));break}}}],["value",(s=pe(r).LoginMethod,s.tag===1?"PartnerToken":s.tag===2?"MagicLink":s.tag===0?"SSO":"Disabled")],(a=[E("option",{value:"Disabled",children:"Disabled"}),E("option",{value:"PartnerToken",children:"Partner Token"}),E("option",{value:"MagicLink",children:"Magic Link"}),E("option",{value:"SSO",children:"EntraID SSO"})],["children",lt.Children.toArray(Array.from(a))])])))),q(()=>{let u,l;return te((u=pe(r).LoginMethod,u.tag===1||u.tag===2?T(F()):u.tag===0?T(E("div",fe(Y([["className","mt-4"],(l=ii(q(()=>te(T(E("h3",{className:"text-lg font-medium leading-6 text-gray-900",children:"EntraID SSO Configuration Details"})),q(()=>te(T(pi("Connection")),q(()=>{let f;return te(T(E("input",fe(Y([(f="mt-2 w-100 block rounded-md bg-white px-3 py-1.5 text-gray-900 outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-600 text-sm/6",["className",f]),["value",pe(r).SSOConfig.Connection],["onChange",c=>{ge(r,new dt(1,[c.target.value]))}]])))),q(()=>{let c,d,h;return te((c=_n(r).IsValid,c.tag===1?c.fields[0].Connection!=null?(c.fields[0].Connection,pe(r).SSOConfig.Connection!==""?(d=c.fields[0].Connection,T(Xo(d))):T(E("p",fe(Y([["className","mt-1 text-sm text-gray-500"],(h="A human-friendly lowercase alphanumeric name that will be shown in the URL for initiating SSO logins",["children",h])]))))):T(E("p",fe(Y([["className","mt-1 text-sm text-gray-500"],(h="A human-friendly lowercase alphanumeric name that will be shown in the URL for initiating SSO logins",["children",h])])))):T(E("p",fe(Y([["className","mt-1 text-sm text-gray-500"],(h="A human-friendly lowercase alphanumeric name that will be shown in the URL for initiating SSO logins",["children",h])]))))),q(()=>te(T(pi("Client ID")),q(()=>{let _;return te(T(E("input",fe(Y([(_="mt-2 w-100 block rounded-md bg-white px-3 py-1.5 text-gray-900 outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-600 text-sm/6",["className",_]),["value",pe(r).SSOConfig.ClientId],["onChange",g=>{ge(r,new dt(2,[g.target.value]))}]])))),q(()=>{let g,v;return te((g=_n(r).IsValid,g.tag===1&&g.fields[0].ClientId!=null?(g.fields[0].ClientId,pe(r).SSOConfig.ClientId!==""?(v=g.fields[0].ClientId,T(Xo(v))):T(F())):T(F())),q(()=>te(T(pi("Client Secret")),q(()=>{let m;return te(T(E("input",fe(Y([(m="mt-2 w-100 block rounded-md bg-white px-3 py-1.5 text-gray-900 outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-600 text-sm/6",["className",m]),["value",pe(r).SSOConfig.ClientSecret],["onChange",w=>{ge(r,new dt(3,[w.target.value]))}]])))),q(()=>{const w=_n(r).IsValid;let x,N;switch(w.tag===1&&w.fields[0].ClientSecret!=null?(w.fields[0].ClientSecret,pe(r).SSOConfig.ClientSecret!==""?(x=0,N=w.fields[0].ClientSecret):x=1):x=1,x){case 0:return T(Xo(N));default:return T(F())}}))}))))}))}))))}))})))))),["children",lt.Children.toArray(Array.from(l))])])))):T(F())),q(()=>{let f;return te((f=pe(r).Save,f.tag===1?T(F()):f.tag===2&&f.fields[0].tag===1?T(E("div",{className:"mt-4 rounded-md bg-red-50 p-3 w-fit text-red-600",children:`There was an error saving: ${f.fields[0].fields[0]}`})):T(F())),q(()=>{let c,d,h;return T((c=Y([E("button",fe(Y([["type","button"],(d="mt-4 rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-xs inset-ring inset-ring-gray-300 hover:bg-gray-50 cursor-pointer",["className",d]),["onClick",_=>{t.NavBack()}],["children","⬅ Cancel"]]))),E("button",fe(Y([["type","button"],(h="ml-4 mt-4 rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-xs hover:bg-indigo-500 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 cursor-pointer disabled:opacity-50",["className",h]),["disabled",Pe(_n(r).IsValid,new bn(0,[]))?Pe(pe(r).Save,new ir(1,[])):!0],["onClick",_=>{_n(r).IsValid.tag===1||ge(r,new dt(4,[]))}],["children","💾 Save"]])))]),E("div",{children:lt.Children.toArray(Array.from(c))})))}))}))}))}))));return E("div",{children:lt.Children.toArray(Array.from(i))})});return e.displayName="Component",e})();class Qo extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class b0 extends U{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class ic extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class or extends de{constructor(t,n,r,i,o,s,a,u){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=i,this.overridenMimeType=o,this.overridenResponseType=s,this.timeout=a,this.content=u}}class wn extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class oc extends de{constructor(t,n,r,i,o,s){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=i,this.responseHeaders=o,this.content=s}}function sc(e){return new b0("Authorization",e)}const Bt=new or("",new Qo(0,[]),Ye(),!1,void 0,void 0,void 0,new ic(0,[]));new oc(0,"","","",Ho({Compare:Gr}),new wn(0,[""]));function ac(e,t){return a_(t)?new Array(0):Wu(t,[e],void 0,0)}function w0(e){switch(e.tag){case 1:return"POST";case 3:return"PATCH";case 2:return"PUT";case 4:return"DELETE";case 6:return"OPTIONS";case 5:return"HEAD";default:return"GET"}}function uc(e){return new or(e,Bt.method,Bt.headers,Bt.withCredentials,Bt.overridenMimeType,Bt.overridenResponseType,Bt.timeout,Bt.content)}function lc(e,t){return new or(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function cc(e,t){return new or(t.url,t.method,Zu(t.headers,fn(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function S0(e,t){return new or(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function fc(e){return t0(t=>{const n=new XMLHttpRequest;n.open(w0(e.method),e.url),n.onreadystatechange=()=>{let u,l,f,c,d,h,_;n.readyState===4&&t[0]((u=(l=n.responseType,l===""||l==="text"?n.responseText:""),f=n.status|0,c=n.responseType,d=(h=n.responseType,h===""?new wn(0,[n.responseText]):h==="text"?new wn(0,[n.responseText]):h==="arraybuffer"?new wn(2,[n.response]):h==="blob"?new wn(1,[n.response]):new wn(3,[n.response])),_=cg(p_(g=>{const v=Y(ac(":",g));if(!R(v))return[C(v).toLocaleLowerCase(),qn(":",$(v)).trim()]},ac(`\r
|
|
33
|
-
`,n.getAllResponseHeaders())),{Compare:
|
|
32
|
+
`))(c);return h=>d(h)}}else if(Mu(r))if(To(r)){const f=fn(c=>Ue(e,t,!1,c),Ru(r));return c=>d=>Array.isArray(d)?ft(h=>Nh(ri(h)),tc(0,f,c,d)):new p(1,[[c,new S(0,["an array",d])]])}else switch(G(ku(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return i=Ue(e,t,!0,K(0,ve(r))),c=>d=>Ng(Q(i),c,d);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return o=Ue(e,t,!1,K(0,ve(r))),c=>d=>Xl(Q(o),c,d);case"System.Collections.Generic.IEnumerable`1[System.Object]":return s=Ue(e,t,!1,K(0,ve(r))),c=>d=>jg(Q(s),c,d);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=Ue(e,t,!1,K(0,ve(r))),d=Ue(e,t,!1,K(1,ve(r)));let h;const _=Z([g=>v=>zg(Q(c),Q(d),g,v),(a=Ug(Q(c),Q(d)),g=>v=>Xl(Q(a),g,v))]);return h=g=>v=>Lg(_,g,v),g=>v=>Fg(Bg,Q(h),g,v)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=Ue(e,t,!1,K(0,ve(r)));return d=>h=>{const _=Ql(Q(c),d,h);return _.tag===0?new p(0,[Gg(_.fields[0])]):new p(1,[_.fields[0]])}}default:return rc(e,t,n,r)}else switch(u){case"System.Boolean":return f=>c=>kg(f,c);case"Microsoft.FSharp.Core.Unit":return f=>c=>Mg(f,c);case"System.String":return f=>c=>Hl(f,c);case"System.Char":return f=>c=>xg(f,c);case"System.SByte":return zl;case"System.Byte":return Wl;case"System.Int16":return ql;case"System.UInt16":return Kl;case"System.Int32":return Jl;case"System.UInt32":return Zl;case"System.Double":return f=>c=>Ig(f,c);case"System.Single":return f=>c=>$g(f,c);case"System.DateTime":return f=>c=>Rg(f,c);case"System.DateTimeOffset":return f=>c=>Pg(f,c);case"System.TimeSpan":return f=>c=>Dg(f,c);case"System.Guid":return f=>c=>Tg(f,c);case"System.Object":return f=>c=>new p(0,[c]);default:return rc(e,t,n,r)}else{const f=l;return c=>d=>f.contents(c)(d)}}function Wg(e){return zo({Compare:zr})}function Jo(e,t,n){const r=Mo(t,new vn(0,[]));return Ue(Wg(),r,!1,e)}class qg extends ge{constructor(t){super(),this.Roles=t}}function Kg(){return sn("ApolloIdentity.AdminUI.Jwt.JwtPayload",[],qg,()=>[["Roles",Th(fe)]])}function Jg(e){const t=qu(e??"",["."],void 0,0);if(!g_((n,r)=>n===r,t)&&t.length===3){let n;const r=K(1,t);return n=atob(r),Ko(Q(Jo(Kg(),new vn(1,[]))),n)}else return new p(1,["Failed to decode access token"])}class Zg{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,i=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(i)}}}Dispose(){}}class Zo extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Zo.prototype)}}class Yo{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Yo.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function Gt(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Zo);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Wr(n))}});else try{e(t)}catch(n){t.onError(Wr(n))}}}function Yg(e,t){return Gt(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(i){n.onError(Wr(i))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Xg(e){return Gt(t=>t.onSuccess(e))}class Qg{Bind(t,n){return Yg(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return Gt(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let i=r.next();return this.While(()=>!i.done,this.Delay(()=>{const o=n(i.value);return i=r.next(),o}))}Return(t){return Xg(t)}ReturnFrom(t){return t}TryFinally(t,n){return Gt(r=>{t({onSuccess:i=>{n(),r.onSuccess(i)},onError:i=>{n(),r.onError(i)},onCancel:i=>{n(),r.onCancel(i)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return Gt(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:i=>{try{n(i)(r)}catch(o){r.onError(Wr(o))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return Gt(t=>t.onSuccess(void 0))}}const ue=new Qg;function Xo(e){}const e0=new Zg;function t0(e){return Gt(t=>e([t.onSuccess,t.onError,t.onCancel]))}function n0(e,t){return r0(e,Xo,function(n){throw n},Xo)}function ic(e,t){return n0(e)}function r0(e,t,n,r,i){const o=new Yo;e({onSuccess:t||Xo,onError:n,onCancel:r,cancelToken:e0,trampoline:o})}class wn extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","LoadError","Read","Edit"]}}function i0(){return De("ApolloIdentity.AdminUI.AppTypes.Page",[],wn,()=>[[],[],[["Item",Uo()]],[["Item",Uo()]]])}let pi=class extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GoToEdit","GetLoginConfig","GetLoginConfigFinished"]}},or=class extends ge{constructor(t,n){super(),this.Page=t,this.Roles=n}};function o0(){return sn("ApolloIdentity.AdminUI.AppTypes.State",[],or,()=>[["Page",i0()],["Roles",Ap()]])}function s0(e,t){let n;return t(new pi(1,[])),new or(new wn(0,[]),(n=Jg(e),n.tag===1?Tp:xp(n.fields[0])))}function a0(e,t,n,r){switch(r.tag){case 1:return ic(ue.Delay(()=>ue.Bind(e(),i=>(n(new pi(2,[i])),ue.Zero())))),new or(new wn(0,[]),t.Roles);case 2:{const i=r.fields[0];return new or(i.tag===1?new wn(1,[]):new wn(2,[i.fields[0]]),t.Roles)}default:return new or(new wn(3,[r.fields[0]]),t.Roles)}}function u0(e,t){const n=[r=>s0(e,r),r=>i=>{const o=[r[0],r[1]];return a0(t,o[0],o[1],i)}];return np(n[0],Q(n[1]),o0())}class sr extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved"]}}function l0(e){return De("ApolloIdentity.AdminUI.CommonTypes.Deferred`1",[e],sr,()=>[[],[],[["Item",e]]])}class dt extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SSO","PartnerToken","MagicLink","Disabled"]}}function c0(){return De("ApolloIdentity.AdminUI.Components.EditLoginConfigTypes.LoginMethod",[],dt,()=>[[],[],[],[]])}class ht extends ge{constructor(t,n,r,i){super(),this.Connection=t,this.ClientId=n,this.ClientSecret=r,this.TenantId=i}}function f0(){return sn("ApolloIdentity.AdminUI.Components.EditLoginConfigTypes.SSOConfig",[],ht,()=>[["Connection",fe],["ClientId",fe],["ClientSecret",fe],["TenantId",fe]])}class Qe extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetLoginMethod","SetSSOConfigConnection","SetSSOConfigClientId","SetSSOConfigClientSecret","SetSSOConfigTenantId","Save","SaveFinished"]}}class _t extends ge{constructor(t,n,r){super(),this.LoginMethod=t,this.SSOConfig=n,this.Save=r}}function d0(){return sn("ApolloIdentity.AdminUI.Components.EditLoginConfigTypes.State",[],_t,()=>[["LoginMethod",c0()],["SSOConfig",f0()],["Save",l0(De("Microsoft.FSharp.Core.FSharpResult`2",[xu,Oo(fe)],p,()=>[[["ResultValue",xu]],[["ErrorValue",Oo(fe)]]]))]])}function h0(e,t){let n,r;return new _t(e.tag===0?e.fields[0].tag===1?new dt(2,[]):e.fields[0].tag===0?new dt(0,[]):new dt(1,[]):new dt(3,[]),e.tag===0?e.fields[0].tag===1?new ht("","","",""):e.fields[0].tag===0?(n=e.fields[0].fields[0].fields[0],new ht(n.Connection,(r=n.ClientId,r),"","")):new ht("","","",""):new ht("","","",""),new sr(0,[]))}function _0(e){switch(e.LoginMethod.tag){case 1:return new er(0,[new li(2,[])]);case 2:return new er(0,[new li(1,[])]);case 0:return new er(0,[new li(0,[new dl({ClientId:e.SSOConfig.ClientId,ClientSecret:e.SSOConfig.ClientSecret,Connection:e.SSOConfig.Connection,TenantId:e.SSOConfig.TenantId})])]);default:return new er(1,[])}}function p0(e,t,n,r,i){let o,s,a,u;switch(i.tag){case 1:return new _t(n.LoginMethod,(o=n.SSOConfig,new ht(i.fields[0],o.ClientId,o.ClientSecret,o.TenantId)),n.Save);case 2:return new _t(n.LoginMethod,(s=n.SSOConfig,new ht(s.Connection,i.fields[0],s.ClientSecret,s.TenantId)),n.Save);case 3:return new _t(n.LoginMethod,(a=n.SSOConfig,new ht(a.Connection,a.ClientId,i.fields[0],a.TenantId)),n.Save);case 4:return new _t(n.LoginMethod,(u=n.SSOConfig,new ht(u.Connection,u.ClientId,u.ClientSecret,i.fields[0])),n.Save);case 5:switch(n.Save.tag){case 0:case 2:return ic(ue.Delay(()=>ue.Bind(e(_0(n)),f=>(r(new Qe(6,[f])),ue.Zero())))),new _t(n.LoginMethod,n.SSOConfig,new sr(1,[]));default:return n}case 6:{const l=i.fields[0];return Ep(t,l),new _t(n.LoginMethod,n.SSOConfig,new sr(2,[l]))}default:return new _t(i.fields[0],n.SSOConfig,n.Save)}}class g0 extends ge{constructor(t,n,r){super(),this.Connection=t,this.ClientId=n,this.ClientSecret=r}}class Sn extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Valid","Invalid"]}}function v0(e){return new class{get IsValid(){switch(e.LoginMethod.tag){case 1:return new Sn(0,[]);case 2:return new Sn(0,[]);case 0:{const n=ip(e.SSOConfig.Connection),r=sp(e.SSOConfig.ClientId),i=up(e.SSOConfig.ClientSecret);let o;switch(n!=null&&r!=null&&i!=null?o=0:o=1,o){case 0:return new Sn(0,[]);default:return new Sn(1,[new g0(n!=null?void 0:"Connection is invalid",r!=null?void 0:"Client ID is invalid",i!=null?void 0:"Client Secret is invalid")])}}default:return new Sn(0,[])}}}}function m0(e,t,n){const r=[i=>h0(e),i=>o=>{const s=[i[0],i[1]];return p0(t,n,s[0],s[1],o)}];return ep(r[0],Q(r[1]),v0,d0())}const ar=gn;function gi(e){return O("p",{className:"mt-1 text-sm text-red-600",children:e})}const y0=(()=>{const e=vu(t=>{let n;const r=(n=m0(t.LoginConfig,t.UpsertLoginConfigAsync,t.NavBack),ct.useState(n))[0],i=si(H(()=>Y(A(ar("Login method")),H(()=>{let o,s,a;return Y(A(O("select",le(Z([(o="mt-2 rounded-md bg-white py-1.5 pr-8 pl-3 text-gray-900 outline-1 -outline-offset-1 outline-gray-300 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-indigo-600 text-sm/6",["className",o]),["onChange",u=>{switch(u.target.value){case"Disabled":{de(r,new Qe(0,[new dt(3,[])]));break}case"PartnerToken":{de(r,new Qe(0,[new dt(1,[])]));break}case"MagicLink":{de(r,new Qe(0,[new dt(2,[])]));break}case"SSO":{de(r,new Qe(0,[new dt(0,[])]));break}}}],["value",(s=ie(r).LoginMethod,s.tag===1?"PartnerToken":s.tag===2?"MagicLink":s.tag===0?"SSO":"Disabled")],(a=[O("option",{value:"Disabled",children:"Disabled"}),O("option",{value:"PartnerToken",children:"Partner Token"}),O("option",{value:"MagicLink",children:"Magic Link"}),O("option",{value:"SSO",children:"EntraID SSO"})],["children",ct.Children.toArray(Array.from(a))])])))),H(()=>{let u,l;return Y((u=ie(r).LoginMethod,u.tag===1||u.tag===2?A(D()):u.tag===0?A(O("div",le(Z([["className","mt-4"],(l=si(H(()=>Y(A(O("h3",{className:"text-lg font-medium leading-6 text-gray-900",children:"EntraID SSO Configuration Details"})),H(()=>Y(A(ar("Connection")),H(()=>{let f;return Y(A(O("input",le(Z([(f="mt-2 w-100 block rounded-md bg-white px-3 py-1.5 text-gray-900 outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-600 text-sm/6",["className",f]),["value",ie(r).SSOConfig.Connection],["onChange",c=>{de(r,new Qe(1,[c.target.value]))}]])))),H(()=>{let c,d,h;return Y((c=Ut(r).IsValid,c.tag===1?c.fields[0].Connection!=null?(c.fields[0].Connection,ie(r).SSOConfig.Connection!==""?(d=c.fields[0].Connection,A(gi(d))):A(O("p",le(Z([["className","mt-1 text-sm text-gray-500"],(h="A human-friendly lowercase alphanumeric name that will be shown in the URL for initiating SSO logins",["children",h])]))))):A(O("p",le(Z([["className","mt-1 text-sm text-gray-500"],(h="A human-friendly lowercase alphanumeric name that will be shown in the URL for initiating SSO logins",["children",h])])))):A(O("p",le(Z([["className","mt-1 text-sm text-gray-500"],(h="A human-friendly lowercase alphanumeric name that will be shown in the URL for initiating SSO logins",["children",h])]))))),H(()=>Y(A(ar("Client ID")),H(()=>{let _;return Y(A(O("input",le(Z([(_="mt-2 w-100 block rounded-md bg-white px-3 py-1.5 text-gray-900 outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-600 text-sm/6",["className",_]),["value",ie(r).SSOConfig.ClientId],["onChange",g=>{de(r,new Qe(2,[g.target.value]))}]])))),H(()=>{let g,v;return Y((g=Ut(r).IsValid,g.tag===1&&g.fields[0].ClientId!=null?(g.fields[0].ClientId,ie(r).SSOConfig.ClientId!==""?(v=g.fields[0].ClientId,A(gi(v))):A(D())):A(D())),H(()=>Y(A(ar("Client Secret")),H(()=>{let m;return Y(A(O("input",le(Z([(m="mt-2 w-100 block rounded-md bg-white px-3 py-1.5 text-gray-900 outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-600 text-sm/6",["className",m]),["value",ie(r).SSOConfig.ClientSecret],["onChange",w=>{de(r,new Qe(3,[w.target.value]))}]])))),H(()=>{let w,T;return Y((w=Ut(r).IsValid,w.tag===1&&w.fields[0].ClientSecret!=null?(w.fields[0].ClientSecret,ie(r).SSOConfig.ClientSecret!==""?(T=w.fields[0].ClientSecret,A(gi(T))):A(D())):A(D())),H(()=>Y(A(ar("TenantId")),H(()=>{let j;return Y(A(O("input",le(Z([(j="mt-2 w-100 block rounded-md bg-white px-3 py-1.5 text-gray-900 outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-600 text-sm/6",["className",j]),["value",ie(r).SSOConfig.TenantId],["onChange",z=>{de(r,new Qe(4,[z.target.value]))}]])))),H(()=>{const z=Ut(r).IsValid;let te,Ot;switch(z.tag===1&&z.fields[0].ClientSecret!=null?(z.fields[0].ClientSecret,ie(r).SSOConfig.TenantId!==""?(te=0,Ot=z.fields[0].ClientSecret):te=1):te=1,te){case 0:return A(gi(Ot));default:return A(D())}}))}))))}))}))))}))}))))}))})))))),["children",ct.Children.toArray(Array.from(l))])])))):A(D())),H(()=>{let f;return Y((f=ie(r).Save,f.tag===1?A(D()):f.tag===2&&f.fields[0].tag===1?A(O("div",{className:"mt-4 rounded-md bg-red-50 p-3 w-fit text-red-600",children:`There was an error saving: ${f.fields[0].fields[0]}`})):A(D())),H(()=>{let c,d,h;return A((c=Z([O("button",le(Z([["type","button"],(d="mt-4 rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-xs inset-ring inset-ring-gray-300 hover:bg-gray-50 cursor-pointer",["className",d]),["onClick",_=>{t.NavBack()}],["children","⬅ Cancel"]]))),O("button",le(Z([["type","button"],(h="ml-4 mt-4 rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-xs hover:bg-indigo-500 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 cursor-pointer disabled:opacity-50",["className",h]),["disabled",Pe(Ut(r).IsValid,new Sn(0,[]))?Pe(ie(r).Save,new sr(1,[])):!0],["onClick",_=>{Ut(r).IsValid.tag===1||de(r,new Qe(5,[]))}],["children","💾 Save"]])))]),O("div",{children:ct.Children.toArray(Array.from(c))})))}))}))}))}))));return O("div",{children:ct.Children.toArray(Array.from(i))})});return e.displayName="Component",e})();class Qo extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class b0 extends U{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class oc extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class ur extends ge{constructor(t,n,r,i,o,s,a,u){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=i,this.overridenMimeType=o,this.overridenResponseType=s,this.timeout=a,this.content=u}}class Cn extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class sc extends ge{constructor(t,n,r,i,o,s){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=i,this.responseHeaders=o,this.content=s}}function ac(e){return new b0("Authorization",e)}const Ht=new ur("",new Qo(0,[]),Ye(),!1,void 0,void 0,void 0,new oc(0,[]));new sc(0,"","","",zo({Compare:zr}),new Cn(0,[""]));function uc(e,t){return a_(t)?new Array(0):qu(t,[e],void 0,0)}function w0(e){switch(e.tag){case 1:return"POST";case 3:return"PATCH";case 2:return"PUT";case 4:return"DELETE";case 6:return"OPTIONS";case 5:return"HEAD";default:return"GET"}}function lc(e){return new ur(e,Ht.method,Ht.headers,Ht.withCredentials,Ht.overridenMimeType,Ht.overridenResponseType,Ht.timeout,Ht.content)}function cc(e,t){return new ur(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function fc(e,t){return new ur(t.url,t.method,Yu(t.headers,hn(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function S0(e,t){return new ur(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function dc(e){return t0(t=>{const n=new XMLHttpRequest;n.open(w0(e.method),e.url),n.onreadystatechange=()=>{let u,l,f,c,d,h,_;n.readyState===4&&t[0]((u=(l=n.responseType,l===""||l==="text"?n.responseText:""),f=n.status|0,c=n.responseType,d=(h=n.responseType,h===""?new Cn(0,[n.responseText]):h==="text"?new Cn(0,[n.responseText]):h==="arraybuffer"?new Cn(2,[n.response]):h==="blob"?new Cn(1,[n.response]):new Cn(3,[n.response])),_=cg(p_(g=>{const v=Z(uc(":",g));if(!R(v))return[C(v).toLocaleLowerCase(),Jn(":",$(v)).trim()]},uc(`\r
|
|
33
|
+
`,n.getAllResponseHeaders())),{Compare:zr}),new sc(f,u,c,n.responseURL,_,d)))};const r=X(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const u=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(u.fields[0],u.fields[1])}}finally{J(r)}n.withCredentials=e.withCredentials;const i=e.overridenMimeType;if(i!=null){const u=i;n.overrideMimeType(u)}const o=e.overridenResponseType;if(o!=null)switch(o.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const s=e.timeout;if(s!=null){const u=s|0;n.timeout=u|0}const a=e.content;switch(a.tag){case 1:{n.send(Ne(a.fields[0]));break}case 3:{n.send(Ne(a.fields[0]));break}case 2:{n.send(Ne(a.fields[0]));break}default:n.send()}})}function C0(e){return e}const hc=D();function vi(e){return Array.from(e)}function O0(e){return Xr(e,"O")}function E0(e){return Hp(e)}function A0(){return D()}function x0(e){return Xr(e,"O")}function T0(e,t){return JSON.stringify(t,void 0,Ne(e))}function M0(e){return t=>Lh(Vh(e,t),()=>hc)}function _c(e,t,n,r){let i;const o=new re(D());let s;const a=G(r);s=a===""?e:Il(a,o,e);let u;if(xo(r)){const l=fn(f=>{const c=pl(t,Lt(f)),d=pt(s,t,n,f[1]);return h=>_=>{const g=Rh(h,f);return(!n||n&&g!=null)&&(_[c]=d(g)),_}},ln(r));u=f=>ai((c,d)=>d(f)(c),{},l)}else if(Ao(r))u=l=>{const f=$h(l,r),c=f[0],d=f[1],h=d.length|0;if(h===0)return Lt(c);{const _=h|0,g=Pu(c),v=Ro(new Array(_+1),0,_+1,null);St(v,0,Lt(c));for(let m=1;m<=_;m++){const w=pt(s,t,n,K(m-1,g)[1]);St(v,m,w(K(m-1,d)))}return v}};else throw new Error((i=G(r),Ft(Ze(`Cannot generate auto encoder for %s. Please pass an extra encoder.
|
|
34
34
|
|
|
35
|
-
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(i)));return o.contents=u,u}function
|
|
35
|
+
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(i)));return o.contents=u,u}function pt(e,t,n,r){const i=G(r),o=$l(i,e);if(o==null)if(Tu(r)){const s=pt(e,t,n,Wn(r));return a=>vi(Le(s,a))}else if(Eo(r))switch(G(Iu(r))){case"System.SByte":return a=>a;case"System.Byte":return a=>a;case"System.Int16":return a=>a;case"System.UInt16":return a=>a;case"System.Int32":return a=>a;case"System.UInt32":return a=>a;default:{const a=G(r);return Io(Ze(`Cannot generate auto encoder for %s.
|
|
36
36
|
Thoth.Json.Net only support the following enum types:
|
|
37
37
|
- sbyte
|
|
38
38
|
- byte
|
|
@@ -44,4 +44,4 @@ Thoth.Json.Net only support the following enum types:
|
|
|
44
44
|
If you can't use one of these types, please pass an extra encoder.
|
|
45
45
|
|
|
46
46
|
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders
|
|
47
|
-
`))(a)}}else if(
|
|
47
|
+
`))(a)}}else if(Mu(r))if(To(r)){const s=fn(a=>pt(e,t,n,a),Ru(r));return a=>vi(j_((u,l)=>K(u,s)(l),a))}else{const s=G(ku(r));if(s==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new oh(()=>M0(pt(e,t,n,K(0,ve(r)))));return u=>u==null?hc:a.Value(u)}else if(s==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||s==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"||s==="System.Collections.Generic.IEnumerable`1[System.Object]"){const a=pt(e,t,n,K(0,ve(r)));return u=>vi(Le(a,u))}else if(s==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=K(0,ve(r)),u=pt(e,t,n,K(1,ve(r)));if(G(a)==="System.String"||G(a)==="System.Guid")return l=>ai((f,c)=>{const d=c;return f[d[0]]=u(d[1]),f},{},l);{let l;return l=pt(e,t,n,a),c=>vi(Le(d=>{const h=d;return[l(h[0]),u(h[1])]},c))}}else return _c(e,t,n,r)}else switch(i){case"System.Boolean":return s=>s;case"Microsoft.FSharp.Core.Unit":return A0;case"System.String":return s=>s;case"System.Char":return s=>s;case"System.SByte":return s=>s;case"System.Byte":return s=>s;case"System.Int16":return s=>s;case"System.UInt16":return s=>s;case"System.Int32":return s=>s;case"System.UInt32":return s=>s;case"System.Double":return s=>s;case"System.Single":return s=>s;case"System.DateTime":return x0;case"System.DateTimeOffset":return O0;case"System.TimeSpan":return E0;case"System.Guid":return C0;case"System.Object":return s=>s;default:return _c(e,t,n,r)}else{const s=o;return a=>s.contents(a)}}function k0(e){return zo({Compare:zr})}function I0(e,t,n,r){const i=Mo(t,new vn(0,[])),o=Mo(r,!0);return pt(k0(),i,o,e)}class $0 extends ge{constructor(t){super(),this.Message=t}}function R0(){return sn("ApolloIdentity.AdminUI.Api.ErrorResponse",[],$0,()=>[["Message",Oo(fe)]])}function pc(e,t,n){return`${e}/identity/admin/partners/${t}/accounts/${n}/login-config`}function P0(e,t,n,r){return ue.Delay(()=>{let i;return ue.Bind(dc((i=cc(new Qo(0,[]),lc(pc(e,t,n))),fc(ac(`Bearer ${r}`),i))),o=>{let s;const a=o;return a.statusCode===200?ue.Return((s=Ko(Q(Jo(Uo(),new vn(1,[]))),a.responseText),s.tag===1?new p(1,[void 0]):new p(0,[s.fields[0]]))):ue.Return(new p(1,[void 0]))})})}function D0(e,t,n,r,i){return ue.Delay(()=>{let o,s;return ue.Bind(dc((o=(s=cc(new Qo(2,[]),lc(pc(e,t,n))),fc(ac(`Bearer ${r}`),s)),S0(new oc(1,[T0(0,I0(wp(),new vn(1,[]),void 0,void 0)(i))]),o))),a=>{const u=a;if(u.statusCode===200)return ue.Return(new p(0,[void 0]));{const l=Ko(Q(Jo(R0(),new vn(1,[]))),u.responseText);return l.tag===1?ue.Return(new p(1,[void 0])):ue.Return(new p(1,[l.fields[0].Message]))}})})}function es(){return(es=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var N0=["context","children"];function j0(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,i){if(r==null)return{};var o,s,a={},u=Object.keys(r);for(s=0;s<u.length;s++)i.indexOf(o=u[s])>=0||(a[o]=r[o]);return a}(e,N0);return Ji(t,n)}function L0(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=O(j0,es({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var i=[],o={},s=0,a=n.attributes,u=n.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(o[a[s].name]=a[s].value,o[gc(a[s].name)]=a[s].value);for(s=u.length;s--;){var l=t(u[s],null),f=u[s].slot;f?o[f]=O(vc,{name:f},l):i[s]=l}var c=r?O(vc,null,i):i;return O(r||n.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Ki:yt)(this._vdom,this._root)}function gc(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function V0(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[gc(e)]=n,this._vdom=Ji(this._vdom,r),yt(this._vdom,this._root)}}function F0(){yt(this._vdom=null,this._root)}function vc(e,t){var n=this;return O("slot",es({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(i){i.stopPropagation(),i.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function U0(e,t,n,r){function i(){var o=Reflect.construct(HTMLElement,[],i);return o._vdomComponent=e,o._root=o,o}return(i.prototype=Object.create(HTMLElement.prototype)).constructor=i,i.prototype.connectedCallback=L0,i.prototype.attributeChangedCallback=V0,i.prototype.disconnectedCallback=F0,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),i.observedAttributes=n,n.forEach(function(o){Object.defineProperty(i.prototype,o,{get:function(){return this._vdom.props[o]},set:function(s){this._vdom?this.attributeChangedCallback(o,null,s):(this._props||(this._props={}),this._props[o]=s,this.connectedCallback());var a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(o,s)}})}),customElements.define(t,i)}function B0(e,t){U0(e,t)}const G0=(()=>{const e=vu(t=>{const n=t.CompProps,r=t.Model,i=si(H(()=>Y(A(O("style",{children:[F_]})),H(()=>{const o=ie(r).Page;switch(o.tag){case 1:return A(O("div",{children:["Error loading login configuration."]}));case 2:{const s=o.fields[0];return A(Sp({LoginConfig:s,OnEdit:jh(ie(r).Roles.ConfigureLogin?()=>{de(r,new pi(0,[s]))}:void 0)}))}case 3:return A(O(y0,{LoginConfig:o.fields[0],NavBack:()=>{de(r,new pi(1,[]))},UpsertLoginConfigAsync:s=>D0(n.backendUrl,n.partnerId,n.accountId,n.accessToken,s)}));default:return A(O("div",{children:["Loading..."]}))}}))));return O($e,{},...i)});return e.displayName="App",e})();function H0(e){let t;return O(G0,{CompProps:e,Model:(t=u0(e.accessToken,()=>P0(e.backendUrl,e.partnerId,e.accountId,e.accessToken)),ct.useState(t))[0]})}B0(e=>O(H0,e),"superhero-identity-login-config")})();
|