1!function(){try{var t="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};t.SENTRY_RELEASE={id:"pr-12921"},t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[(new t.Error).stack]=function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];if(null!=n)for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i])}return t}({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:webapp-next":!0});var e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="56d7db66-fe0d-49a2-a643-628f86be06c5",t._sentryDebugIdIdentifier="sentry-dbid-56d7db66-fe0d-49a2-a643-628f86be06c5")}catch(t){}}();"use strict";(self.webpackChunkwebapp_next=self.webpackChunkwebapp_next||[]).push([["npm.xstate"],{52495(t,e,n){n.d(e,{Py:()=>c,gY:()=>u,pz:()=>s,sk:()=>h});var i=n(99628),r=n(98339),o=n(56093);function a(t){var e;return(e={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:t}}})[r.s7]=function(){return this},e}function s(t,e,n,i){var o,s=(0,r.Xd)(t.src),u=null==(o=null==e?void 0:e.options.services)?void 0:o[s.type],h=t.data?(0,r.A9)(t.data,n,i):void 0,l=u?c(u,t.id,h):a(t.id);return l.meta=t,l}function c(t,e,n){var i=a(e);if(i.deferred=!0,(0,r.Ai)(t)){var s=i.state=(0,o.G)(void 0,function(){return(n?t.withContext(n):t).initialState});i.getSnapshot=function(){return s}}return i}function u(t){return function(t){try{return"function"==typeof t.send}catch(t){return!1}}(t)&&"id"in t}function h(t){var e;return(0,i.Cl)(((e={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[r.s7]=function(){return this},e),t)}},5134(t,e,n){n.d(e,{u:()=>g});var i=n(99628),r=n(98339),o=n(69755),a=n(73401),s=n(37505),c=n(25363),u=n(94899),h=n(67370),l=n(52495);function f(t){return(0,i.Cl)((0,i.Cl)({type:a.lA},t),{toJSON:function(){t.onDone,t.onError;var e=(0,i.Tt)(t,["onDone","onError"]);return(0,i.Cl)((0,i.Cl)({},e),{type:a.lA,src:function(t){if("string"==typeof t){var e={type:t};return e.toString=function(){return t},e}return t}(t.src)})}})}var d={},v=function(t){return"#"===t[0]},p=function(t,e,n){var i=n.slice(0,-1).some(function(t){return!("cond"in t)&&!("in"in t)&&((0,r.Kg)(t.target)||(0,r.Ai)(t.target))});(0,r.R8)(!i,"One or more transitions for ".concat(""===e?"the transient event":"event '".concat(e,"'")," on state '").concat(t.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")},y=function(){function t(e,n,o,a){void 0===o&&(o="context"in e?e.context:void 0);var l,v=this;this.config=e,this._context=o,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},n),this.parent=null==a?void 0:a.parent,this.key=this.config.key||(null==a?void 0:a.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:u.AD),this.id=this.config.id||(0,i.fX)([this.machine.key],(0,i.zs)(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!=(l=this.config.schema)?l:{},this.description=this.config.description,c.p||(0,r.R8)(!("parallel"in this.config),'The "parallel" property is deprecated and will be removed in version 4.1. '.concat(this.config.parallel?"Replace with `type: 'parallel'`":"Use `type: '".concat(this.type,"'`")," in the config for state node '").concat(this.id,"' instead.")),this.initial=this.config.initial,this.states=this.config.states?(0,r.LG)(this.config.states,function(e,n){var r,o=new t(e,{},void 0,{parent:v,key:n});return Object.assign(v.idMap,(0,i.Cl)(((r={})[o.id]=o,r),o.idMap)),o}):d;var p=0;!function t(e){var n,r;e.order=p++;try{for(var o=(0,i.Ju)((0,h.rz)(e)),a=o.next();!a.done;a=o.next()){var s=a.value;t(s)}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||
vendor: 4,321 bytes, line 1
1!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some(function(t){return""===t.event}):""in this.config.on),this.strict=!!this.config.strict,this.onEntry=(0,r.$r)(this.config.entry||this.config.onEntry).map(function(t){return(0,s.Hf)(t)}),this.onExit=(0,r.$r)(this.config.exit||this.config.onExit).map(function(t){return(0,s.Hf)(t)}),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=(0,r.$r)(this.config.invoke).map(function(t,e){if((0,r.Ai)(t)){var n,o,a=(0,r.cv)(v.id,e);return v.machine.options.services=(0,i.Cl)(((n={})[a]=t,n),v.machine.options.services),f({src:a,id:a})}if((0,r.Kg)(t.src)){var a=t.id||(0,r.cv)(v.id,e);return f((0,i.Cl)((0,i.Cl)({},t),{id:a,src:t.src}))}if((0,r.Ai)(t.src)||(0,r.Tn)(t.src)){var a=t.id||(0,r.cv)(v.id,e);return v.machine.options.services=(0,i.Cl)(((o={})[a]=t.src,o),v.machine.options.services),f((0,i.Cl)((0,i.Cl)({id:a},t),{src:a}))}var s=t.src;return f((0,i.Cl)((0,i.Cl)({id:(0,r.cv)(v.id,e)},t),{src:s}))}),this.activities=(0,r.$r)(this.config.activities).concat(this.invoke).map(function(t){return(0,s._4)(t)}),this.transition=this.transition.bind(this),this.tags=(0,r.$r)(this.config.tags)}return t.prototype._init=function(){this.__cache.transitions||(0,h.Ki)(this).forEach(function(t){return t.on})},t.prototype.withConfig=function(e,n){var r=this.options,o=r.actions,a=r.activities,s=r.guards,c=r.services,u=r.delays;return new t(this.config,{actions:(0,i.Cl)((0,i.Cl)({},o),e.actions),activities:(0,i.Cl)((0,i.Cl)({},a),e.activities),guards:(0,i.Cl)((0,i.Cl)({},s),e.guards),services:(0,i.Cl)((0,i.Cl)({},c),e.services),delays:(0,i.Cl)((0,i.Cl)({},u),e.delays)},null!=n?n:this.context)},t.prototype.withContext=function(e){return new t(this.config,this.options,e)},Object.defineProperty(t.prototype,"context",{get:function(){return(0,r.Tn)(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:(0,r.LG)(this.states,function(t){return t.definition}),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){return this.definition},Object.defineProperty(t.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var t=this.transitions;return this.__cache.on=t.reduce(function(t,e){return t[e.eventType]=t[e.eventType]||[],t[e.eventType].push(e),t},{})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),t.prototype.getCandidates=function(t){if(this.__cache.candidates[t])return this.__cache.candidates[t];var e=""===t,n=this.transitions.filter(function(n){var i=n.eventType===t;return e?i:i||"*"===n.eventType});return this.__cache.candidates[t]=n,n},t.prototype.getDelayedTransitions=function(){var t=this,e=this.config.after;if(!e)return[];var n=function(e,n){var i=(0,r.Tn)(e)?"".concat(t.id,":delay[").concat(n,"]"):e,o=(0,s.Pl)(i,t.id);return t.onEntry.push((0,s.tN)(o,{delay:e})),t.onExit.push((0,s.ZT)(o)),o};return((0,r.cy)(e)?e.map(function(t,e){var r=n(t.delay,e);return(0,i.Cl)((0,i.Cl)({},t),{event:r})}):(0,r.Bq)(Object.keys(e).map(function(t,o){var a=e[t],s=(0,r.Kg)(a)?{target:a}:a,c=isNaN(+t)?t:+t,u=n(c,o);return(0,r.$r)(s).map(function(t){return(0,i.Cl)((0,i.Cl)({},t),{event:u,delay:c})})}))).map(function(e){var n=e.delay;return(0,i.Cl)((0,i.Cl)({},t.formatTransition(e)),{delay:n})})},t.prototype.getStateNodes=function(t){var e,n=this;if(!t)return[];var a=t instanceof o.Uw?t.value:(0,r.at)(t,this.delimiter);if((0,r.Kg)(a)){var s=this.getStateNode(a).initial;
1return void 0!==s?this.getStateNodes(((e={})[a]=s,e)):[this,this.states[a]]}var c=Object.keys(a),u=[this];return u.push.apply(u,(0,i.fX)([],(0,i.zs)((0,r.Bq)(c.map(function(t){return n.getStateNode(t).getStateNodes(a[t])}))),!1)),u},t.prototype.handles=function(t){var e=(0,r.vd)(t);return this.events.includes(e)},t.prototype.resolveState=function(t){var e=t instanceof o.Uw?t:o.Uw.create(t),n=Array.from((0,h.D0)([],this.getStateNodes(e.value)));return new o.Uw((0,i.Cl)((0,i.Cl)({},e),{value:this.resolve(e.value),configuration:n,done:(0,h.BJ)(n,this),tags:(0,h.iU)(n),machine:this.machine}))},t.prototype.transitionLeafNode=function(t,e,n){var i=this.getStateNode(t).next(e,n);return i&&i.transitions.length?i:this.next(e,n)},t.prototype.transitionCompoundNode=function(t,e,n){var i=Object.keys(t),r=this.getStateNode(i[0])._transition(t[i[0]],e,n);return r&&r.transitions.length?r:this.next(e,n)},t.prototype.transitionParallelNode=function(t,e,n){var o,a,s={};try{for(var c=(0,i.Ju)(Object.keys(t)),u=c.next();!u.done;u=c.next()){var h=u.value,l=t[h];if(l){var f=this.getStateNode(h)._transition(l,e,n);f&&(s[h]=f)}}}catch(t){o={error:t}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(o)throw o.error}}var d=Object.keys(s).map(function(t){return s[t]}),v=(0,r.Bq)(d.map(function(t){return t.transitions}));if(!d.some(function(t){return t.transitions.length>0}))return this.next(e,n);var p=(0,r.Bq)(Object.keys(s).map(function(t){return s[t].configuration}));return{transitions:v,exitSet:(0,r.Bq)(d.map(function(t){return t.exitSet})),configuration:p,source:e,actions:(0,r.Bq)(Object.keys(s).map(function(t){return s[t].actions}))}},t.prototype._transition=function(t,e,n){return(0,r.Kg)(t)?this.transitionLeafNode(t,e,n):1===Object.keys(t).length?this.transitionCompoundNode(t,e,n):this.transitionParallelNode(t,e,n)},t.prototype.getTransitionData=function(t,e){return this._transition(t.value,t,(0,r.ft)(e))},t.prototype.next=function(t,e){var n,o,a,s=this,c=e.name,u=[],h=[];try{for(var l=(0,i.Ju)(this.getCandidates(c)),f=l.next();!f.done;f=l.next()){var d=f.value,p=d.cond,y=d.in,g=t.context,m=!y||((0,r.Kg)(y)&&v(y)?t.matches((0,r.at)(this.getStateNodeById(y).path,this.delimiter)):(0,r.HK)((0,r.at)(y,this.delimiter),(0,r.Ae)(this.path.slice(0,-2))(t.value))),_=!1;try{_=!p||(0,r.re)(this.machine,p,g,e,t)}catch(t){throw Error("Unable to evaluate guard '".concat(p.name||p.type,"' in transition for event '").concat(c,"' in state node '").concat(this.id,"':\n").concat(t.message))}if(_&&m){void 0!==d.target&&(h=d.target),u.push.apply(u,(0,i.fX)([],(0,i.zs)(d.actions),!1)),a=d;break}}}catch(t){n={error:t}}finally{try{f&&!f.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}if(a){if(!h.length)return{transitions:[a],exitSet:[],configuration:t.value?[this]:[],source:t,actions:u};var x=(0,r.Bq)(h.map(function(e){return s.getRelativeStateNodes(e,t.historyValue)})),b=!!a.internal;return{transitions:[a],exitSet:b?[]:(0,r.Bq)(h.map(function(t){return s.getPotentiallyReenteringNodes(t)})),configuration:x,source:t,actions:u}}},t.prototype.getPotentiallyReenteringNodes=function(t){if(this.order<t.order)return[this];for(var e=[],n=this;n&&n!==t;)e.push(n),n=n.parent;return n!==t?[]:(e.push(t),e)},t.prototype.getActions=function(t,e,n,o,a,c,u){var l,f,d,v,p=this,y=c?(0,h.D0)([],this.getStateNodes(c.value)):[],g=new Set;try{for(var m=(0,i.Ju)(Array.from(t).sort(function(t,e){return t.order-e.order})),_=m.next();!_.done;_=m.next()){var x=_.value;(!(0,h.zy)(y,x)||(0,h.zy)(n.exitSet,x)||x.parent&&g.has(x.parent))&&g.add(x)}}catch(t){l={error:t}}finally{try{_&&!_.done&&(f=m.return)&&f.call(m)}finally{if(l)throw l.error}}try{for(var b=(0,i.Ju)(y),S=b.next();!S.done;S=b.next()){var x=S.value;(!(0,h.zy)(t,x)||(0,h.zy)(n.exitSet,x.parent))&&n.exitSet.push(x)}}catch(t){d={error:t}}finally{try{S&&!S.done&&(v=b.return)&&v.call(b)}finally{if(d)throw d.error}}n.exitSet.sort(function(t,e){return e.order-t.order});var w=Array.from(g).sort(function(t,e){return t.order-e.order}),E=new Set(n.exitSet),C=(0,r.Bq)(w.map(function(t){var e=[];if("final"!==t.type)return e;var i=t.parent;if(!i.parent)return e;e.push((0,s.Vw)(t.id,t.doneData),(0,s.Vw)(i.id,t.doneData?(0,r.A9)(t.doneData,o,a):void 0));var c=i.parent;return"parallel"===c.type&&(0,h.i0)(c).every(function(t){return(0,h.BJ)(n.configuration,t)})&&e.push((0,s.Vw)(c.id)),e})),T=w.map(function(t){var e=t.onEntry,n=t.activities.map(function(t){return(0,s.ni)(t)});return{type:"entry",actions:(0,s.Um)(u?(0,i.fX)((0,i.fX)([],(0,i.zs)(e),!1),(0,i.zs)(n),!1):(0,i.fX)((0,i.fX)([],(0,i.zs)(n),!1),(0,i.zs)(e),!1),p.machine.options.actions)}}).concat({type:"state_done",actions:C.map(function(t){return(0,s.xl)(t)})}),k=Array.from(E).map(function(t){return{type:"exit",actions:(0,s.Um)((0,i.fX)((0,i.fX)([],(0,i.zs)(t.onExit),!1),(0,i.zs)(t.activities.map(function(t){return(0,s.ds)(t)})),!1),p.machine.options.actions)}}).concat({type:"transition",actions:(0,s.Um)(n.actions,this.machine.options.actions)}).concat(T);if(e){var O=(0,s.Um)((0,r.Bq)((0,i.fX)([],(0,i.zs)(t),!1).sort(function(t,e){return e.order-t.order}).map(function(t){return t.onExit})),this.machine.options.actions).filter(function(t){return!(0,r.Gx)(t)});return k.concat({type:"stop",actions:O})}return k},t.prototype.transition=function(t,e,n,a){void 0===t&&(t=this.initialState);var s,u=(0,r.ft)(e);if(t instanceof o.Uw)s=void 0===n?t:this.resolveState(o.Uw.from(t,n));else{var l=(0,r.Kg)(t)?this.resolve((0,r.zr)(this.getResolvedPath(t))):this.resolve(t),f=null!=n?n:this.machine.context;s=this.resolveState(o.Uw.from(l,f))}if(!c.p&&"*"===u.name)throw Error("An event cannot have the wildcard type ('".concat("*","')"));
1if(this.strict&&!this.events.includes(u.name)&&!(0,r.M7)(u.name))throw Error("Machine '".concat(this.id,"' does not accept event '").concat(u.name,"'"));var d=this._transition(s.value,s,u)||{transitions:[],configuration:[],exitSet:[],source:s,actions:[]},v=(0,h.D0)([],this.getStateNodes(s.value)),p=d.configuration.length?(0,h.D0)(v,d.configuration):v;return d.configuration=(0,i.fX)([],(0,i.zs)(p),!1),this.resolveTransition(d,s,s.context,a,u)},t.prototype.resolveRaisedTransition=function(t,e,n,r){var o,a=t.actions;return(t=this.transition(t,e,void 0,r))._event=n,t.event=n.data,(o=t.actions).unshift.apply(o,(0,i.fX)([],(0,i.zs)(a),!1)),t},t.prototype.resolveTransition=function(t,e,n,c,u){var f,d,v,p,y=this;void 0===u&&(u=s.zp);var g=t.configuration,m=!e||t.transitions.length>0,_=m?t.configuration:e?e.configuration:[],x=(0,h.BJ)(_,this),b=m?(0,h._W)(this.machine,g):void 0,S=e?e.historyValue?e.historyValue:t.source?this.machine.historyValue(e.value):void 0:void 0,w=this.getActions(new Set(_),x,t,n,u,e,c),E=e?(0,i.Cl)({},e.activities):{};try{for(var C=(0,i.Ju)(w),T=C.next();!T.done;T=C.next()){var k=T.value;try{for(var O=(v=void 0,(0,i.Ju)(k.actions)),A=O.next();!A.done;A=O.next()){var N=A.value;N.type===a.ni?E[N.activity.id||N.activity.type]=N:N.type===a.ds&&(E[N.activity.id||N.activity.type]=!1)}}catch(t){v={error:t}}finally{try{A&&!A.done&&(p=O.return)&&p.call(O)}finally{if(v)throw v.error}}}}catch(t){f={error:t}}finally{try{T&&!T.done&&(d=C.return)&&d.call(C)}finally{if(f)throw f.error}}var z=(0,i.zs)((0,s.AS)(this,e,n,u,w,c,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),j=z[0],P=z[1],J=(0,i.zs)((0,r.jB)(j,r.Gx),2),R=J[0],V=J[1],D=j.filter(function(t){var e;return t.type===a.ni&&(null==(e=t.activity)?void 0:e.type)===a.lA}).reduce(function(t,e){return t[e.activity.id]=(0,l.pz)(e.activity,y.machine,P,u),t},e?(0,i.Cl)({},e.children):{}),B=new o.Uw({value:b||e.value,context:P,_event:u,_sessionid:e?e._sessionid:null,historyValue:b?S?(0,r.BY)(S,b):void 0:e?e.historyValue:void 0,history:!b||t.source?e:void 0,actions:b?V:[],activities:b?E:e?e.activities:{},events:[],configuration:_,transitions:t.transitions,children:D,done:x,tags:(0,h.iU)(_),machine:this}),L=n!==P;B.changed=u.name===a.yo||L;var I=B.history;I&&delete I.history;var X=!x&&(this._transient||g.some(function(t){return t._transient}));if(!m&&(!X||""===u.name))return B;var M=B;if(!x)for(X&&(M=this.resolveRaisedTransition(M,{type:a.kx},u,c));R.length;){var Q=R.shift();M=this.resolveRaisedTransition(M,Q._event,u,c)}var K=M.changed||(I?!!M.actions.length||L||typeof I.value!=typeof M.value||!(0,o.iE)(M.value,I.value):void 0);return M.changed=K,M.history=I,M},t.prototype.getStateNode=function(t){if(v(t))return this.machine.getStateNodeById(t);if(!this.states)throw Error("Unable to retrieve child state '".concat(t,"' from '").concat(this.id,"'; no child states exist."));var e=this.states[t];if(!e)throw Error("Child state '".concat(t,"' does not exist on '").concat(this.id,"'"));return e},t.prototype.getStateNodeById=function(t){var e=v(t)?t.slice(1):t;if(e===this.id)return this;var n=this.machine.idMap[e];if(!n)throw Error("Child state node '#".concat(e,"' does not exist on machine '").concat(this.id,"'"));return n},t.prototype.getStateNodeByPath=function(t){if("string"==typeof t&&v(t))try{return this.getStateNodeById(t.slice(1))}catch(t){}for(var e=(0,r._J)(t,this.delimiter).slice(),n=this;e.length;){var i=e.shift();if(!i.length)break;n=n.getStateNode(i)}return n},t.prototype.resolve=function(t){var e,n=this;if(!t)return this.initialStateValue||d;switch(this.type){case"parallel":return(0,r.LG)(this.initialStateValue,function(e,i){return e?n.getStateNode(i).resolve(t[i]||e):d});case"compound":if((0,r.Kg)(t)){var i=this.getStateNode(t);if("parallel"===i.type||"compound"===i.type)return(e={})[t]=i.initialStateValue,e;return t}if(!Object.keys(t).length)return this.initialStateValue||{};return(0,r.LG)(t,function(t,e){return t?n.getStateNode(e).resolve(t):d});default:return t||d}},t.prototype.getResolvedPath=function(t){if(v(t)){var e=this.machine.idMap[t.slice(1)];if(!e)throw Error("Unable to find state node '".concat(t,"'"));return e.path}return(0,r._J)(t,this.delimiter)},Object.defineProperty(t.prototype,"initialStateValue",{get:function(){var t,e;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)e=(0,r.rp)(this.states,function(t){return t.initialStateValue||d},function(t){return"history"!==t.type});else if(void 0!==this.initial){if(!this.states[this.initial])throw Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));e=(0,h.d2)(this.states[this.initial])?this.initial:((t={})[this.initial]=this.states[this.initial].initialStateValue,t)}else e={};return this.__cache.initialStateValue=e,this.__cache.initialStateValue}
vendor: 5,597 bytes, line 1
1,enumerable:!1,configurable:!0}),t.prototype.getInitialState=function(t,e){this._init();var n=this.getStateNodes(t);return this.resolveTransition({configuration:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,null!=e?e:this.machine.context,void 0)},Object.defineProperty(t.prototype,"initialState",{get:function(){var t=this.initialStateValue;if(!t)throw Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){var t;if("history"===this.type){var e=this.config;t=(0,r.Kg)(e.target)&&v(e.target)?(0,r.zr)(this.machine.getStateNodeById(e.target).path.slice(this.path.length-1)):e.target}return t},enumerable:!1,configurable:!0}),t.prototype.getRelativeStateNodes=function(t,e,n){return void 0===n&&(n=!0),n?"history"===t.type?t.resolveHistory(e):t.initialStateNodes:[t]},Object.defineProperty(t.prototype,"initialStateNodes",{get:function(){var t=this;if((0,h.d2)(this))return[this];if("compound"===this.type&&!this.initial)return c.p||(0,r.R8)(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this];var e=(0,r.bm)(this.initialStateValue);return(0,r.Bq)(e.map(function(e){return t.getFromRelativePath(e)}))},enumerable:!1,configurable:!0}),t.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var e=(0,i.zs)(t),n=e[0],r=e.slice(1);if(!this.states)throw Error("Cannot retrieve subPath '".concat(n,"' from node with no states"));var o=this.getStateNode(n);if("history"===o.type)return o.resolveHistory();if(!this.states[n])throw Error("Child state '".concat(n,"' does not exist on '").concat(this.id,"'"));return this.states[n].getFromRelativePath(r)},t.prototype.historyValue=function(t){if(Object.keys(this.states).length)return{current:t||this.initialStateValue,states:(0,r.rp)(this.states,function(e,n){if(!t)return e.historyValue();var i=(0,r.Kg)(t)?void 0:t[n];return e.historyValue(i||e.initialStateValue)},function(t){return!t.history})}},t.prototype.resolveHistory=function(t){var e=this;if("history"!==this.type)return[this];var n=this.parent;if(!t){var i=this.target;return i?(0,r.Bq)((0,r.bm)(i).map(function(t){return n.getFromRelativePath(t)})):n.initialStateNodes}var o=(0,r.VQ)(n.path,"states")(t).current;return(0,r.Kg)(o)?[n.getStateNode(o)]:(0,r.Bq)((0,r.bm)(o).map(function(t){return"deep"===e.history?n.getFromRelativePath(t):[n.states[t[0]]]}))},Object.defineProperty(t.prototype,"stateIds",{get:function(){var t=this,e=(0,r.Bq)(Object.keys(this.states).map(function(e){return t.states[e].stateIds}));return[this.id].concat(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){if(this.__cache.events)return this.__cache.events;var t,e,n,r,o=this.states,a=new Set(this.ownEvents);if(o)try{for(var s=(0,i.Ju)(Object.keys(o)),c=s.next();!c.done;c=s.next()){var u=o[c.value];if(u.states)try{for(var h=(n=void 0,(0,i.Ju)(u.events)),l=h.next();!l.done;l=h.next()){var f=l.value;a.add("".concat(f))}}catch(t){n={error:t}}finally{try{l&&!l.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(a)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ownEvents",{get:function(){return Array.from(new Set(this.transitions.filter(function(t){return!(!t.target&&!t.actions.length&&t.internal)}).map(function(t){return t.eventType})))},enumerable:!1,configurable:!0}),t.prototype.resolveTarget=function(t){var e=this;if(void 0!==t)return t.map(function(t){if(!(0,r.Kg)(t))return t;var n=t[0]===e.delimiter;if(n&&!e.parent)return e.getStateNodeByPath(t.slice(1));var i=n?e.key+t:t;if(!e.parent)return e.getStateNodeByPath(i);try{return e.parent.getStateNodeByPath(i)}catch(t){throw Error("Invalid transition definition for state node '".concat(e.id,"':\n").concat(t.message))}})},t.prototype.formatTransition=function(t){var e=this,n=(0,r.R_)(t.target),o="internal"in t?t.internal:!n||n.some(function(t){return(0,r.Kg)(t)&&t[0]===e.delimiter}),a=this.machine.options.guards,c=this.resolveTarget(n),u=(0,i.Cl)((0,i.Cl)({},t),{actions:(0,s.Um)((0,r.$r)(t.actions)),cond:(0,r.Z8)(t.cond,a),target:c,source:this,internal:o,eventType:t.event,toJSON:function(){return(0,i.Cl)((0,i.Cl)({},u),{target:u.target?u.target.map(function(t){return"#".concat(t.id)}):void 0,source:"#".concat(e.id)})}});return u},t.prototype.formatTransitions=function(){var t,e,n,o=this;if(this.config.on)if(Array.isArray(this.config.on))n=this.config.on;else{var a=this.config.on,u=a["*"],h=(0,i.Tt)(a,["*"]);n=(0,r.Bq)(Object.keys(h).map(function(t){c.p||""!==t||(0,r.R8)(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(o.id,'".'));var e=(0,r.oc)(t,h[t]);return c.p||p(o,t,e),e}).concat((0,r.oc)("*",void 0===u?[]:u)))}else n=[];var l=this.config.always?(0,r.oc)("",this.config.always):[],f=this.config.onDone?(0,r.oc)(String((0,s.Vw)(this.id)),this.config.onDone):[];c.p||(0,r.R8)(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var d=(0,r.Bq)(this.invoke.map(function(t){var e=[];return t.onDone&&e.push.apply(e,(0,i.fX)([],(0,i.zs)((0,r.oc)(String((0,s.tS)(t.id)),t.onDone)),!1)),t.onError&&e.push.apply(e,(0,i.fX)([],(0,i.zs)((0,r.oc)(String((0,s.z3)(t.
1id)),t.onError)),!1)),e})),v=this.after,y=(0,r.Bq)((0,i.fX)((0,i.fX)((0,i.fX)((0,i.fX)([],(0,i.zs)(f),!1),(0,i.zs)(d),!1),(0,i.zs)(n),!1),(0,i.zs)(l),!1).map(function(t){return(0,r.$r)(t).map(function(t){return o.formatTransition(t)})}));try{for(var g=(0,i.Ju)(v),m=g.next();!m.done;m=g.next()){var _=m.value;y.push(_)}}catch(e){t={error:e}}finally{try{m&&!m.done&&(e=g.return)&&e.call(g)}finally{if(t)throw t.error}}return y},t}();function g(t,e,n){return void 0===n&&(n=t.context),new y(t,e,n)}},69755(t,e,n){n.d(e,{OS:()=>u,Sv:()=>h,Uw:()=>l,iE:()=>function t(e,n){if(e===n)return!0;if(void 0===e||void 0===n)return!1;if((0,o.Kg)(e)||(0,o.Kg)(n))return e===n;var i=Object.keys(e),r=Object.keys(n);return i.length===r.length&&i.every(function(i){return t(e[i],n[i])})}});var i=n(99628),r=n(94899),o=n(98339),a=n(67370),s=n(37505),c=n(25363);function u(t){return"object"==typeof t&&null!==t&&"value"in t&&"_event"in t}function h(t,e){var n=t.exec;return(0,i.Cl)((0,i.Cl)({},t),{exec:void 0!==n?function(){return n(e.context,e.event,{action:t,state:e,_event:e._event})}:void 0})}var l=function(){function t(t){var e,n=this;this.actions=[],this.activities=r.xP,this.meta={},this.events=[],this.value=t.value,this.context=t.context,this._event=t._event,this._sessionid=t._sessionid,this.event=this._event.data,this.historyValue=t.historyValue,this.history=t.history,this.actions=t.actions||[],this.activities=t.activities||r.xP,this.meta=(0,a.IQ)(t.configuration),this.events=t.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=t.configuration,this.transitions=t.transitions,this.children=t.children,this.done=!!t.done,this.tags=null!=(e=Array.isArray(t.tags)?new Set(t.tags):t.tags)?e:new Set,this.machine=t.machine,Object.defineProperty(this,"nextEvents",{get:function(){return(0,a.Xh)(n.configuration)}})}return t.from=function(e,n){return e instanceof t?e.context!==n?new t({value:e.value,context:n,_event:e._event,_sessionid:null,historyValue:e.historyValue,history:e.history,actions:[],activities:e.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):e:new t({value:e,context:n,_event:s.zp,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},t.create=function(e){return new t(e)},t.inert=function(e,n){if(e instanceof t){if(!e.actions.length)return e;var i=s.zp;return new t({value:e.value,context:n,_event:i,_sessionid:null,historyValue:e.historyValue,history:e.history,activities:e.activities,configuration:e.configuration,transitions:[],children:{}})}return t.from(e,n)},t.prototype.toStrings=function(t,e){var n=this;if(void 0===t&&(t=this.value),void 0===e&&(e="."),(0,o.Kg)(t))return[t];var r=Object.keys(t);return r.concat.apply(r,(0,i.fX)([],(0,i.zs)(r.map(function(i){return n.toStrings(t[i],e).map(function(t){return i+e+t})})),!1))},t.prototype.toJSON=function(){this.configuration,this.transitions;var t=this.tags;this.machine;var e=(0,i.Tt)(this,["configuration","transitions","tags","machine"]);return(0,i.Cl)((0,i.Cl)({},e),{tags:Array.from(t)})},t.prototype.matches=function(t){return(0,o.HK)(t,this.value)},t.prototype.hasTag=function(t){return this.tags.has(t)},t.prototype.can=function(t){c.p&&(0,o.R8)(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false.");var e,n=null==(e=this.machine)?void 0:e.getTransitionData(this,t);return!!(null==n?void 0:n.transitions.length)&&n.transitions.some(function(t){return void 0!==t.target||t.actions.length})},t}()},99628(t,e,n){n.d(e,{Cl:()=>i,Ju:()=>o,Tt:()=>r,fX:()=>s,zs:()=>a});var i=function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function r(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&0>e.indexOf(i)&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)0>e.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n}function o(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function s(t,e,n){if(n||2==arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}},73401(t,e,n){n.d(e,{LM:()=>
1m,O$:()=>v,Rm:()=>l,Sw:()=>g,Ts:()=>f,ZT:()=>c,ds:()=>o,kp:()=>h,kx:()=>u,lA:()=>d,ni:()=>r,tN:()=>s,xl:()=>a,yo:()=>y,z3:()=>p});var i=n(90751),r=i.Q.Start,o=i.Q.Stop,a=i.Q.Raise,s=i.Q.Send,c=i.Q.Cancel,u=i.Q.NullEvent,h=i.Q.Assign;i.Q.After,i.Q.DoneState;var l=i.Q.Log,f=i.Q.Init,d=i.Q.Invoke;i.Q.ErrorExecution;var v=i.Q.ErrorPlatform,p=i.Q.ErrorCustom,y=i.Q.Update,g=i.Q.Choose,m=i.Q.Pure},37505(t,e,n){n.d(e,{AS:()=>function t(e,n,c,u,f,d,v){void 0===v&&(v=!1);var p=v?[]:w(f),y=p.length?(0,a.r_)(c,u,p,n):c,g=v?[c]:void 0,m=[];return[(0,a.Bq)(f.map(function(f){var p,_,x=[];try{for(var b=(0,i.Ju)(f.actions),S=b.next();!S.done;S=b.next()){var w=S.value,E=function(f,p){var _;switch(p.type){case o.xl:var x=function(t,e,n,r){var s,c={_event:n},u=(0,a.ft)((0,a.Tn)(t.event)?t.event(e,n.data,c):t.event);if((0,a.Kg)(t.delay)){var h=r&&r[t.delay];s=(0,a.Tn)(h)?h(e,n.data,c):h}else s=(0,a.Tn)(t.delay)?t.delay(e,n.data,c):t.delay;return(0,i.Cl)((0,i.Cl)({},t),{type:o.xl,_event:u,delay:s})}(p,y,u,e.options.delays);return d&&"number"==typeof x.delay&&d(x,y,u),x;case o.tN:var b=function(t,e,n,r){var o,s={_event:n},c=(0,a.ft)((0,a.Tn)(t.event)?t.event(e,n.data,s):t.event);if((0,a.Kg)(t.delay)){var u=r&&r[t.delay];o=(0,a.Tn)(u)?u(e,n.data,s):u}else o=(0,a.Tn)(t.delay)?t.delay(e,n.data,s):t.delay;var h=(0,a.Tn)(t.to)?t.to(e,n.data,s):t.to;return(0,i.Cl)((0,i.Cl)({},t),{to:h,_event:c,event:c.data,delay:o})}(p,y,u,e.options.delays);if(!s.p){var S=p.delay;(0,a.R8)(!(0,a.Kg)(S)||"number"==typeof b.delay,"No delay reference for delay expression '".concat(S,"' was found on machine '").concat(e.id,"'"))}return d&&b.to!==r.i.Internal&&("entry"===f?m.push(b):d(b,y,u)),b;case o.Rm:var w,E=(w=y,(0,i.Cl)((0,i.Cl)({},p),{value:(0,a.Kg)(p.expr)?p.expr:p.expr(w,u.data,{_event:u})}));return null==d||d(E,y,u),E;case o.Sw:var C=null==(_=p.conds.find(function(t){var i=(0,a.Z8)(t.cond,e.options.guards);return!i||(0,a.re)(e,i,y,u,d?void 0:n)}))?void 0:_.actions;if(!C)return[];var T=(0,i.zs)(t(e,n,y,u,[{type:f,actions:l((0,a.$r)(C),e.options.actions)}],d,v),2),k=T[0];return y=T[1],null==g||g.push(y),k;case o.LM:var C=p.get(y,u.data);if(!C)return[];var O=(0,i.zs)(t(e,n,y,u,[{type:f,actions:l((0,a.$r)(C),e.options.actions)}],d,v),2),A=O[0];return y=O[1],null==g||g.push(y),A;case o.ds:var N,z,E=(N=y,z=(0,a.Tn)(p.activity)?p.activity(N,u.data):p.activity,{type:r.Q.Stop,activity:"string"==typeof z?{id:z}:z});return null==d||d(E,c,u),E;case o.kp:y=(0,a.r_)(y,u,[p],d?void 0:n),null==g||g.push(y);break;default:var j=h(p,e.options.actions),P=j.exec;if(d)d(j,y,u);else if(P&&g){var J=g.length-1;j=(0,i.Cl)((0,i.Cl)({},j),{exec:function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];P.apply(void 0,(0,i.fX)([g[J]],(0,i.zs)(e),!1))}})}return j}}(f.type,w);E&&(x=x.concat(E))}}catch(t){p={error:t}}finally{try{S&&!S.done&&(_=b.return)&&_.call(b)}finally{if(p)throw p.error}}return m.forEach(function(t){d(t,y,u)}),m.length=0,x})),y]},H7:()=>u,Hf:()=>h,Pl:()=>_,Um:()=>l,Vw:()=>x,ZT:()=>p,_4:()=>f,ds:()=>g,kp:()=>m,ni:()=>y,tN:()=>v,tS:()=>b,xl:()=>d,z3:()=>S,zp:()=>c});var i=n(99628),r=n(90751),o=n(73401),a=n(98339),s=n(25363),c=(0,a.ft)({type:o.Ts});function u(t,e){return e&&e[t]||void 0}function h(t,e){var n;if((0,a.Kg)(t)||"number"==typeof t){var r=u(t,e);n=(0,a.Tn)(r)?{type:t,exec:r}:r||{type:t,exec:void 0}}else if((0,a.Tn)(t))n={type:t.name||t.toString(),exec:t};else{var r=u(t.type,e);if((0,a.Tn)(r))n=(0,i.Cl)((0,i.Cl)({},t),{exec:r});else if(r){var o=r.type||t.type;n=(0,i.Cl)((0,i.Cl)((0,i.Cl)({},r),t),{type:o})}else n=t}return n}var l=function(t,e){return t?((0,a.cy)(t)?t:[t]).map(function(t){return h(t,e)}):[]};function f(t){var e=h(t);return(0,i.Cl)((0,i.Cl)({id:(0,a.Kg)(t)?t:e.id},e),{type:e.type})}function d(t,e){return{type:o.xl,event:"function"==typeof t?t:(0,a.jK)(t),delay:e?e.delay:void 0,id:null==e?void 0:e.id}}function v(t,e){return{to:e?e.to:void 0,type:o.tN,event:(0,a.Tn)(t)?t:(0,a.jK)(t),delay:e?e.delay:void 0,id:e&&void 0!==e.id?e.id:(0,a.Tn)(t)?t.name:(0,a.vd)(t)}}var p=function(t){return{type:o.ZT,sendId:t}};function y(t){var e=f(t);return{type:r.Q.Start,activity:e,exec:void 0}}function g(t){var e=(0,a.Tn)(t)?t:f(t);return{type:r.Q.Stop,activity:e,exec:void 0}}var m=function(t){return{type:o.kp,assignment:t}};function _(t,e){return"".concat(r.Q.After,"(").concat(t,")").concat(e?"#".concat(e):"")}function x(t,e){var n="".concat(r.Q.DoneState,".").concat(t),i={type:n,data:e};return i.toString=function(){return n},i}function b(t,e){var n="".concat(r.Q.DoneInvoke,".").concat(t),i={type:n,data:e};return i.toString=function(){return n},i}function S(t,e){var n="".concat(r.Q.ErrorPlatform,".").concat(t),i={type:n,data:e};return i.toString=function(){return n},i}var w=function(t){var e,n,r=[];try{for(var a=(0,i.Ju)(t),s=a.next();!s.done;s=a.next())for(var c=s.value,u=0;u<c.actions.length;
1){if(c.actions[u].type===o.kp){r.push(c.actions[u]),c.actions.splice(u,1);continue}u++}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return r}},94899(t,e,n){n.d(e,{$D:()=>a,AD:()=>i,hS:()=>o,xP:()=>r});var i=".",r={},o="xstate.guard",a=""},25363(t,e,n){n.d(e,{p:()=>i});var i=!0},58402(t,e,n){n.d(e,{kp:()=>r,tN:()=>o});var i=n(37505),r=i.kp,o=i.tN},56418(t,e,n){n.d(e,{vy:()=>r,U4:()=>S});var i,r,o=n(99628),a=n(90751),s=n(69755),c=n(73401),u=n(37505),h=n(25363),l=n(98339),f={deferEvents:!1},d=function(){function t(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=(0,o.Cl)((0,o.Cl)({},f),t)}return t.prototype.initialize=function(t){if(this.initialized=!0,t){if(!this.options.deferEvents)return void this.schedule(t);this.process(t)}this.flushEvents()},t.prototype.schedule=function(t){if(!this.initialized||this.processingEvent)return void this.queue.push(t);if(0!==this.queue.length)throw Error("Event queue should be empty when it is not processing events");this.process(t),this.flushEvents()},t.prototype.clear=function(){this.queue=[]},t.prototype.flushEvents=function(){for(var t=this.queue.shift();t;)this.process(t),t=this.queue.shift()},t.prototype.process=function(t){this.processingEvent=!0;try{t()}catch(t){throw this.clear(),t}finally{this.processingEvent=!1}},t}(),v=n(52495),p=new Map,y=0,g=function(t){p.delete(t)};function m(){return"u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:void 0!==n.g?n.g:void(!h.p&&console.warn("XState could not find a global object in this environment. Please let the maintainers know and raise an issue here: https://github.com/statelyai/xstate/issues"))}var _=n(56093),x={sync:!1,autoForward:!1};(i=r||(r={}))[i.NotStarted=0]="NotStarted",i[i.Running=1]="Running",i[i.Stopped=2]="Stopped";var b=function(){function t(e,n){void 0===n&&(n=t.defaultOptions);var i=this;this.machine=e,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=r.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(t,e){if((0,l.cy)(t))return i.batch(t),i.state;var n=(0,l.ft)((0,l.jK)(t,e));if(i.status===r.Stopped)return h.p||(0,l.R8)(!1,'Event "'.concat(n.name,'" was sent to stopped service "').concat(i.machine.id,'". This service has already reached its final state, and will not transition.\nEvent: ').concat(JSON.stringify(n.data))),i.state;if(i.status!==r.Running&&!i.options.deferEvents)throw Error('Event "'.concat(n.name,'" was sent to uninitialized service "').concat(i.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: ').concat(JSON.stringify(n.data)));return i.scheduler.schedule(function(){i.forward(n);var t=i._nextState(n);i.update(t,n)}),i._state},this.sendTo=function(t,e,n){var s,f=i.parent&&(e===a.i.Parent||i.parent.id===e),d=f?i.parent:(0,l.Kg)(e)?e===a.i.Internal?i:i.children.get(e)||(s=e,p.get(s)):(0,l._3)(e)?e:void 0;if(!d){if(!f)throw Error("Unable to send event to child '".concat(e,"' from service '").concat(i.id,"'."));h.p||(0,l.R8)(!1,"Service '".concat(i.id,"' has no parent: unable to send event ").concat(t.type));return}if("machine"in d){if(i.status!==r.Stopped||i.parent!==d||i.state.done){var v=(0,o.Cl)((0,o.Cl)({},t),{name:t.name===c.z3?"".concat((0,u.z3)(i.id)):t.name,origin:i.sessionId});!n&&i.machine.config.predictableActionArguments?i._outgoingQueue.push([d,v]):d.send(v)}}else!n&&i.machine.config.predictableActionArguments?i._outgoingQueue.push([d,t.data]):d.send(t.data)},this._exec=function(t,e,n,o){void 0===o&&(o=i.machine.options.actions);var s=t.exec||(0,u.H7)(t.type,o),f=(0,l.Tn)(s)?s:s?s.exec:t.exec;if(f)try{return f(e,n.data,i.machine.config.predictableActionArguments?{action:t,_event:n}:{action:t,state:i.state,_event:n})}catch(t){throw i.parent&&i.parent.send({type:"xstate.error",data:t}),t}switch(t.type){case c.xl:i.defer(t);break;case c.tN:if("number"==typeof t.delay)return void i.defer(t);t.to?i.sendTo(t._event,t.to,n===u.zp):i.send(t._event);break;case c.ZT:i.cancel(t.sendId);break;case c.ni:if(i.status!==r.Running)return;var d=t.activity;if(!i.machine.config.predictableActionArguments&&!i.state.activities[d.id||d.type])break;if(d.type===a.Q.Invoke){var v=(0,l.Xd)(d.src),p=i.machine.options.services?i.machine.options.services[v.type]:void 0,y=d.id,g=d.data;h.p||(0,l.R8)(!("forward"in d),"`forward` property is deprecated (found in invocation of '".concat(d.src,"' in in machine '").concat(i.machine.id,"'). ")+"Please use `autoForward` instead.");var m="autoForward"in d?d.autoForward:!!d.forward;if(!p){h.p||(0,l.R8)(!1,"No service found for invocation '".concat(d.src,"' in machine '").concat(i.machine.id,"'."));return}var _=g?(0,l.A9)(g,e,n):void 0;if("string"==typeof p)return;var x=(0,l.Tn)(p)?p(e,n.data,{data:_,src:v,meta:d.meta}):p;if(!x)return;var b=void 0;(0,l.Ai)(x)&&(x=_?x.withContext(_):x,b={autoForward:m}),i.spawn(x,y,b)}else i.spawnActivity(d);break;case c.ds:i.stopChild(t.activity.id);break;case c.Rm:var S=t.label,w=t.value;S?i.logger(S,w):i.logger(w);break;default:h.p||(0,l.R8)(!1,"No implementation found for action type '".concat(t.type,"'"))}};var s=(0,o.Cl)((0,o.Cl)({},t.defaultOptions),n),f=s.clock,v=s.logger,g=s.parent,m=s.id,_=void 0!==m?m:e.id;this.id=_,this.logger=v,this.clock=f,this.parent=g,this.options=s,this.scheduler
1=new d({deferEvents:this.options.deferEvents}),this.sessionId="x:".concat(y++)}return Object.defineProperty(t.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:(0,_.G)(this,function(){return t._initialState=t.machine.initialState,t._initialState})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return h.p||(0,l.R8)(this.status!==r.NotStarted,"Attempted to read state from uninitialized service '".concat(this.id,"'. Make sure the service is started first.")),this._state},enumerable:!1,configurable:!0}),t.prototype.execute=function(t,e){var n,i;try{for(var r=(0,o.Ju)(t.actions),a=r.next();!a.done;a=r.next()){var s=a.value;this.exec(s,t,e)}}catch(t){n={error:t}}finally{try{a&&!a.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}},t.prototype.update=function(t,e){var n,i,r,a,s,c,h,f,d=this;if(t._sessionid=this.sessionId,this._state=t,(!this.machine.config.predictableActionArguments||e===u.zp)&&this.options.execute)this.execute(this.state);else for(var v=void 0;v=this._outgoingQueue.shift();)v[0].send(v[1]);if(this.children.forEach(function(t){d.state.children[t.id]=t}),this.devTools&&this.devTools.send(e.data,t),t.event)try{for(var p=(0,o.Ju)(this.eventListeners),y=p.next();!y.done;y=p.next()){var m=y.value;m(t.event)}}catch(t){n={error:t}}finally{try{y&&!y.done&&(i=p.return)&&i.call(p)}finally{if(n)throw n.error}}try{for(var _=(0,o.Ju)(this.listeners),x=_.next();!x.done;x=_.next()){var m=x.value;m(t,t.event)}}catch(t){r={error:t}}finally{try{x&&!x.done&&(a=_.return)&&a.call(_)}finally{if(r)throw r.error}}try{for(var b=(0,o.Ju)(this.contextListeners),S=b.next();!S.done;S=b.next())(0,S.value)(this.state.context,this.state.history?this.state.history.context:void 0)}catch(t){s={error:t}}finally{try{S&&!S.done&&(c=b.return)&&c.call(b)}finally{if(s)throw s.error}}if(this.state.done){var w=t.configuration.find(function(t){return"final"===t.type&&t.parent===d.machine}),E=w&&w.doneData?(0,l.A9)(w.doneData,t.context,e):void 0;this._doneEvent=(0,u.tS)(this.id,E);try{for(var C=(0,o.Ju)(this.doneListeners),T=C.next();!T.done;T=C.next()){var m=T.value;m(this._doneEvent)}}catch(t){h={error:t}}finally{try{T&&!T.done&&(f=C.return)&&f.call(C)}finally{if(h)throw h.error}}this._stop(),this._stopChildren(),g(this.sessionId)}},t.prototype.onTransition=function(t){return this.listeners.add(t),this.status===r.Running&&t(this.state,this.state.event),this},t.prototype.subscribe=function(t,e,n){var i=this,o=(0,l.WV)(t,e,n);this.listeners.add(o.next),this.status!==r.NotStarted&&o.next(this.state);var a=function(){i.doneListeners.delete(a),i.stopListeners.delete(a),o.complete()};return this.status===r.Stopped?o.complete():(this.onDone(a),this.onStop(a)),{unsubscribe:function(){i.listeners.delete(o.next),i.doneListeners.delete(a),i.stopListeners.delete(a)}}},t.prototype.onEvent=function(t){return this.eventListeners.add(t),this},t.prototype.onSend=function(t){return this.sendListeners.add(t),this},t.prototype.onChange=function(t){return this.contextListeners.add(t),this},t.prototype.onStop=function(t){return this.stopListeners.add(t),this},t.prototype.onDone=function(t){return this.status===r.Stopped&&this._doneEvent?t(this._doneEvent):this.doneListeners.add(t),this},t.prototype.off=function(t){return this.listeners.delete(t),this.eventListeners.delete(t),this.sendListeners.delete(t),this.stopListeners.delete(t),this.doneListeners.delete(t),this.contextListeners.delete(t),this},t.prototype.start=function(t){var e,n,i=this;if(this.status===r.Running)return this;this.machine._init(),e=this.sessionId,n=this,p.set(e,n),this.initialized=!0,this.status=r.Running;var o=void 0===t?this.initialState:(0,_.G)(this,function(){return(0,s.OS)(t)?i.machine.resolveState(t):i.machine.resolveState(s.Uw.from(t,i.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){i.update(o,u.zp)}),this},t.prototype._stopChildren=function(){this.children.forEach(function(t){(0,l.Tn)(t.stop)&&t.stop()}),this.children.clear()},t.prototype._stop=function(){var t,e,n,i,a,s,c,u,h,l;try{for(var f=(0,o.Ju)(this.listeners),v=f.next();!v.done;v=f.next()){var p=v.value;this.listeners.delete(p)}}catch(e){t={error:e}}finally{try{v&&!v.done&&(e=f.return)&&e.call(f)}finally{if(t)throw t.error}}try{for(var y=(0,o.Ju)(this.stopListeners),g=y.next();!g.done;g=y.next()){var p=g.value;p(),this.stopListeners.delete(p)}}catch(t){n={error:t}}finally{try{g&&!g.done&&(i=y.return)&&i.call(y)}finally{if(n)throw n.error}}try{for(var m=(0,o.Ju)(this.contextListeners),_=m.next();!_.done;_=m.next()){var p=_.value;this.contextListeners.delete(p)}}catch(t){a={error:t}}finally{try{_&&!_.done&&(s=m.return)&&s.call(m)}finally{if(a)throw a.error}}try{for(var x=(0,o.Ju)(this.doneListeners),b=x.next();!b.done;b=x.next()){var p=b.value;this.doneListeners.delete(p)}}catch(t){c={error:t}}finally{try{b&&!b.done&&(u=x.return)&&u.call(x)}finally{if(c)throw c.error}}if(!this.initialized)return this;this.initialized=!1,this.status=r.Stopped,this._initialState=void 0;try{for(var S=(0,o.Ju)(Object.keys(this.delayedEventsMap)),w=S.next();!w.done;w=S.next()){var E=w.value;this.clock.clearTimeout(this.delayedEventsMap[E])}}catch(t){h={error:t}}finally{try{w&&!w.done&&(l=S.return)&&l.call(S)}finally{if(h)throw h.error}}
1this.scheduler.clear(),this.scheduler=new d({deferEvents:this.options.deferEvents})},t.prototype.stop=function(){var t=this,e=this.scheduler;return this._stop(),e.schedule(function(){if(null==(e=t._state)||!e.done){var e,n=(0,l.ft)({type:"xstate.stop"}),i=(0,_.G)(t,function(){var e=(0,l.Bq)((0,o.fX)([],(0,o.zs)(t.state.configuration),!1).sort(function(t,e){return e.order-t.order}).map(function(e){return(0,u.Um)(e.onExit,t.machine.options.actions)})),i=(0,o.zs)((0,u.AS)(t.machine,t.state,t.state.context,n,[{type:"exit",actions:e}],t.machine.config.predictableActionArguments?t._exec:void 0,t.machine.config.predictableActionArguments||t.machine.config.preserveActionOrder),2),r=i[0],a=i[1],c=new s.Uw({value:t.state.value,context:a,_event:n,_sessionid:t.sessionId,historyValue:void 0,history:t.state,actions:r.filter(function(t){return!(0,l.Gx)(t)}),activities:{},events:[],configuration:[],transitions:[],children:{},done:t.state.done,tags:t.state.tags,machine:t.machine});return c.changed=!0,c});t.update(i,n),t._stopChildren(),g(t.sessionId)}}),this},t.prototype.batch=function(t){var e=this;if(this.status===r.NotStarted&&this.options.deferEvents)h.p||(0,l.R8)(!1,"".concat(t.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'" and are deferred. Make sure .start() is called for this service.\nEvent: ').concat(JSON.stringify(event)));else if(this.status!==r.Running)throw Error("".concat(t.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'));if(t.length){var n=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule(function(){var i,r,a=e.state,c=!1,u=[];try{for(var h=(0,o.Ju)(t),f=h.next();!f.done;f=h.next()){var d=f.value;!function(t){var i=(0,l.ft)(t);e.forward(i),a=(0,_.G)(e,function(){return e.machine.transition(a,i,void 0,n||void 0)}),u.push.apply(u,(0,o.fX)([],(0,o.zs)(e.machine.config.predictableActionArguments?a.actions:a.actions.map(function(t){return(0,s.Sv)(t,a)})),!1)),c=c||!!a.changed}(d)}}catch(t){i={error:t}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(i)throw i.error}}a.changed=c,a.actions=u,e.update(a,(0,l.ft)(t[t.length-1]))})}},t.prototype.sender=function(t){return this.send.bind(this,t)},t.prototype._nextState=function(t,e){var n=this;void 0===e&&(e=!!this.machine.config.predictableActionArguments&&this._exec);var i=(0,l.ft)(t);if(0===i.name.indexOf(c.O$)&&!this.state.nextEvents.some(function(t){return 0===t.indexOf(c.O$)}))throw i.data.data;return(0,_.G)(this,function(){return n.machine.transition(n.state,i,void 0,e||void 0)})},t.prototype.nextState=function(t){return this._nextState(t,!1)},t.prototype.forward=function(t){var e,n;try{for(var i=(0,o.Ju)(this.forwardTo),r=i.next();!r.done;r=i.next()){var a=r.value,s=this.children.get(a);if(!s)throw Error("Unable to forward event '".concat(t,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(a,"'."));s.send(t)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},t.prototype.defer=function(t){var e=this,n=this.clock.setTimeout(function(){"to"in t&&t.to?e.sendTo(t._event,t.to,!0):e.send(t._event)},t.delay);t.id&&(this.delayedEventsMap[t.id]=n)},t.prototype.cancel=function(t){this.clock.clearTimeout(this.delayedEventsMap[t]),delete this.delayedEventsMap[t]},t.prototype.exec=function(t,e,n){void 0===n&&(n=this.machine.options.actions),this._exec(t,e.context,e._event,n)},t.prototype.removeChild=function(t){var e;this.children.delete(t),this.forwardTo.delete(t),null==(e=this.state)||delete e.children[t]},t.prototype.stopChild=function(t){var e=this.children.get(t);e&&(this.removeChild(t),(0,l.Tn)(e.stop)&&e.stop())},t.prototype.spawn=function(t,e,n){if(this.status!==r.Running)return(0,v.Py)(t,e);if((0,l.$X)(t))return this.spawnPromise(Promise.resolve(t),e);if((0,l.Tn)(t))return this.spawnCallback(t,e);if((0,v.gY)(t))return this.spawnActor(t,e);if((0,l.AT)(t))return this.spawnObservable(t,e);
1if((0,l.Ai)(t))return this.spawnMachine(t,(0,o.Cl)((0,o.Cl)({},n),{id:e}));else if((0,l.lx)(t))return this.spawnBehavior(t,e);else throw Error('Unable to spawn entity "'.concat(e,'" of type "').concat(typeof t,'".'))},t.prototype.spawnMachine=function(e,n){var i=this;void 0===n&&(n={});var r=new t(e,(0,o.Cl)((0,o.Cl)({},this.options),{parent:this,id:n.id||e.id})),a=(0,o.Cl)((0,o.Cl)({},x),n);return a.sync&&r.onTransition(function(t){i.send(c.yo,{state:t,id:r.id})}),this.children.set(r.id,r),a.autoForward&&this.forwardTo.add(r.id),r.onDone(function(t){i.removeChild(r.id),i.send((0,l.ft)(t,{origin:r.id}))}).start(),r},t.prototype.spawnBehavior=function(t,e){var n,i,r,o,a,s,c,u,h=(n={id:e,parent:this},i=t.initialState,r=new Set,o=[],a=!1,s=function(){if(!a){for(a=!0;o.length>0;){var e=o.shift();i=t.transition(i,e,u),r.forEach(function(t){return t.next(i)})}a=!1}},c=(0,v.sk)({id:n.id,send:function(t){o.push(t),s()},getSnapshot:function(){return i},subscribe:function(t,e,n){var o=(0,l.WV)(t,e,n);return r.add(o),o.next(i),{unsubscribe:function(){r.delete(o)}}}}),u={parent:n.parent,self:c,id:n.id||"anonymous",observers:r},i=t.start?t.start(u):i,c);return this.children.set(e,h),h},t.prototype.spawnPromise=function(t,e){var n,i,r=this,o=!1;t.then(function(t){o||(i=t,r.removeChild(e),r.send((0,l.ft)((0,u.tS)(e,t),{origin:e})))},function(t){if(!o){r.removeChild(e);var n=(0,u.z3)(e,t);try{r.send((0,l.ft)(n,{origin:e}))}catch(i){(0,l.En)(t,i,e),r.devTools&&r.devTools.send(n,r.state),r.machine.strict&&r.stop()}}});var a=((n={id:e,send:function(){},subscribe:function(e,n,i){var r=(0,l.WV)(e,n,i),o=!1;return t.then(function(t){o||(r.next(t),o||r.complete())},function(t){o||r.error(t)}),{unsubscribe:function(){return o=!0}}},stop:function(){o=!0},toJSON:function(){return{id:e}},getSnapshot:function(){return i}})[l.s7]=function(){return this},n);return this.children.set(e,a),a},t.prototype.spawnCallback=function(t,e){var n,i,r,o=this,a=!1,s=new Set,c=new Set;try{r=t(function(t){i=t,c.forEach(function(e){return e(t)}),a||o.send((0,l.ft)(t,{origin:e}))},function(t){s.add(t)})}catch(t){this.send((0,u.z3)(e,t))}if((0,l.$X)(r))return this.spawnPromise(r,e);var h=((n={id:e,send:function(t){return s.forEach(function(e){return e(t)})},subscribe:function(t){var e=(0,l.WV)(t);return c.add(e.next),{unsubscribe:function(){c.delete(e.next)}}},stop:function(){a=!0,(0,l.Tn)(r)&&r()},toJSON:function(){return{id:e}},getSnapshot:function(){return i}})[l.s7]=function(){return this},n);return this.children.set(e,h),h},t.prototype.spawnObservable=function(t,e){var n,i,r=this,o=t.subscribe(function(t){i=t,r.send((0,l.ft)(t,{origin:e}))},function(t){r.removeChild(e),r.send((0,l.ft)((0,u.z3)(e,t),{origin:e}))},function(){r.removeChild(e),r.send((0,l.ft)((0,u.tS)(e),{origin:e}))}),a=((n={id:e,send:function(){},subscribe:function(e,n,i){return t.subscribe(e,n,i)},stop:function(){return o.unsubscribe()},getSnapshot:function(){return i},toJSON:function(){return{id:e}}})[l.s7]=function(){return this},n);return this.children.set(e,a),a},t.prototype.spawnActor=function(t,e){return this.children.set(e,t),t},t.prototype.spawnActivity=function(t){var e=this.machine.options&&this.machine.options.activities?this.machine.options.activities[t.type]:void 0;if(!e){h.p||(0,l.R8)(!1,"No implementation found for activity '".concat(t.type,"'"));return}var n=e(this.state.context,t);this.spawnEffect(t.id,n)},t.prototype.spawnEffect=function(t,e){var n;this.children.set(t,((n={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:e||void 0,getSnapshot:function(){},toJSON:function(){return{id:t}}})[l.s7]=function(){return this},n))},t.prototype.attachDev=function(){var t=m();if(this.options.devTools&&t){if(t.__REDUX_DEVTOOLS_EXTENSION__){var e="object"==typeof this.options.devTools?this.options.devTools:void 0;this.devTools=t.__REDUX_DEVTOOLS_EXTENSION__.connect((0,o.Cl)((0,o.Cl)({name:this.id,autoPause:!0,stateSanitizer:function(t){return{value:t.value,context:t.context,actions:t.actions}}},e),{features:(0,o.Cl)({jump:!1,skip:!1},e?e.features:void 0)}),this.machine),this.devTools.init(this.state)}if(m()){var n=function(){var t=m();if(t&&"__xstate__"in t)return t.__xstate__}();n&&n.register(this)}}},t.prototype.toJSON=function(){return{id:this.id}},t.prototype[l.s7]=function(){return this},t.prototype.getSnapshot=function(){return this.status===r.NotStarted?this.initialState:this._state},t.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(t,e){return setTimeout(t,e)},clearTimeout:function(t){return clearTimeout(t)}},logger:console.log.bind(console),devTools:!1},t.interpret=S,t}();function S(t,e){return new b(t,e)}},56093(t,e,n){n.d(e,{G:()=>r});var i=[],r=function(t,e){i.push(t);var n=e(t);return i.pop(),n}},67370(t,e,n){n.d(e,{BJ:()=>function t(e,n){return"compound"===n.type?s(n).some(function(t){return"final"===t.type&&f(e,t)}):"parallel"===n.type&&s(n).every(function(n){return t(e,n)})},D0:()=>u,IQ:()=>v,Ki:()=>c,Xh:()=>d,_W:()=>l,d2:()=>
1o,i0:()=>s,iU:()=>p,rz:()=>a,zy:()=>f});var i=n(99628),r=n(98339),o=function(t){return"atomic"===t.type||"final"===t.type};function a(t){return Object.keys(t.states).map(function(e){return t.states[e]})}function s(t){return a(t).filter(function(t){return"history"!==t.type})}function c(t){var e=[t];return o(t)?e:e.concat((0,r.Bq)(s(t).map(c)))}function u(t,e){var n,r,o,a,c,u,l,f,d=h(new Set(t)),v=new Set(e);try{for(var p=(0,i.Ju)(v),y=p.next();!y.done;y=p.next())for(var g=y.value,m=g.parent;m&&!v.has(m);)v.add(m),m=m.parent}catch(t){n={error:t}}finally{try{y&&!y.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}var _=h(v);try{for(var x=(0,i.Ju)(v),b=x.next();!b.done;b=x.next()){var g=b.value;if("compound"!==g.type||_.get(g)&&_.get(g).length){if("parallel"===g.type)try{for(var S=(c=void 0,(0,i.Ju)(s(g))),w=S.next();!w.done;w=S.next()){var E=w.value;v.has(E)||(v.add(E),d.get(E)?d.get(E).forEach(function(t){return v.add(t)}):E.initialStateNodes.forEach(function(t){return v.add(t)}))}}catch(t){c={error:t}}finally{try{w&&!w.done&&(u=S.return)&&u.call(S)}finally{if(c)throw c.error}}}else d.get(g)?d.get(g).forEach(function(t){return v.add(t)}):g.initialStateNodes.forEach(function(t){return v.add(t)})}}catch(t){o={error:t}}finally{try{b&&!b.done&&(a=x.return)&&a.call(x)}finally{if(o)throw o.error}}try{for(var C=(0,i.Ju)(v),T=C.next();!T.done;T=C.next())for(var g=T.value,m=g.parent;m&&!v.has(m);)v.add(m),m=m.parent}catch(t){l={error:t}}finally{try{T&&!T.done&&(f=C.return)&&f.call(C)}finally{if(l)throw l.error}}return v}function h(t){var e,n,r=new Map;try{for(var o=(0,i.Ju)(t),a=o.next();!a.done;a=o.next()){var s=a.value;r.has(s)||r.set(s,[]),s.parent&&(r.has(s.parent)||r.set(s.parent,[]),r.get(s.parent).push(s))}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}function l(t,e){var n=u([t],e);return function t(e,n){var i=n.get(e);if(!i)return{};if("compound"===e.type){var r=i[0];if(!r)return{};if(o(r))return r.key}var a={};return i.forEach(function(e){a[e.key]=t(e,n)}),a}(t,h(n))}function f(t,e){return Array.isArray(t)?t.some(function(t){return t===e}):t instanceof Set&&t.has(e)}function d(t){return(0,i.fX)([],(0,i.zs)(new Set((0,r.Bq)((0,i.fX)([],(0,i.zs)(t.map(function(t){return t.ownEvents})),!1)))),!1)}function v(t){return void 0===t&&(t=[]),t.reduce(function(t,e){return void 0!==e.meta&&(t[e.id]=e.meta),t},{})}function p(t){return new Set((0,r.Bq)(t.map(function(t){return t.tags})))}},90751(t,e,n){var i,r,o,a;n.d(e,{Q:()=>i,i:()=>r}),(o=i||(i={})).Start="xstate.start",o.Stop="xstate.stop",o.Raise="xstate.raise",o.Send="xstate.send",o.Cancel="xstate.cancel",o.NullEvent="",o.Assign="xstate.assign",o.After="xstate.after",o.DoneState="done.state",o.DoneInvoke="done.invoke",o.Log="xstate.log",o.Init="xstate.init",o.Invoke="xstate.invoke",o.ErrorExecution="error.execution",o.ErrorCommunication="error.communication",o.ErrorPlatform="error.platform",o.ErrorCustom="xstate.error",o.Update="xstate.update",o.Pure="xstate.pure",o.Choose="xstate.choose",(a=r||(r={})).Parent="#_parent",a.Internal="#_internal"},98339(t,e,n){n.d(e,{$X:()=>b,$r:()=>m,A9:()=>_,AT:()=>z,Ae:()=>p,Ai:()=>P,BY:()=>E,Bq:()=>g,En:()=>L,Gx:()=>K,HK:()=>function t(e,n,i){void 0===i&&(i=s.AD);var r=l(e,i),o=l(n,i);return A(o)?!!A(r)&&o===r:A(r)?r in o:Object.keys(r).every(function(e){return e in o&&t(r[e],o[e])})},Kg:()=>A,LG:()=>d,M7:()=>x,R8:()=>T,R_:()=>B,Tn:()=>O,VQ:()=>y,WV:()=>M,Xd:()=>X,Z8:()=>N,_3:()=>J,_J:()=>h,at:()=>l,bm:()=>function t(e){return e?A(e)?[[e]]:g(Object.keys(e).map(function(n){var i=e[n];return"string"==typeof i||i&&Object.keys(i).length?t(e[n]).map(function(t){return[n].concat(t)}):[[n]]})):[[]]},cv:()=>Q,cy:()=>k,ft:()=>V,jB:()=>w,jK:()=>R,lx:()=>S,oc:()=>D,r_:()=>C,re:()=>I,rp:()=>v,s7:()=>j,vd:()=>u,zr:()=>f});var i,r=n(99628),o=n(90751),a=n(73401),s=n(94899),c=n(25363);function u(t){try{return A(t)||"number"==typeof t?"".concat(t):t.type}catch(t){throw Error("Events must be strings or objects with a string event.type property.")}}function h(t,e){try{if(k(t))return t;return t.toString().split(e)}catch(e){throw Error("'".concat(t,"' is not a valid state path."))}}function l(t,e){return"object"==typeof t&&"value"in t&&"context"in t&&"event"in t&&"_event"in t?t.value:k(t)?f(t):"string"!=typeof t?t:f(h(t,e))}function f(t){if(1===t.length)return t[0];for(var e={},n=e,i=0;i<t.length-1;i++)i===t.length-2?n[t[i]]=t[i+1]:(n[t[i]]={},n=n[t[i]]);return e}function d(t,e){for(var n={},i=Object.keys(t),r=0;r<i.length;r++){var o=i[r];n[o]=e(t[o],o,t,r)}return n}function v(t,e,n){var i,o,a={};try{for(var s=(0,r.Ju)(Object.keys(t)),c=s.next();!c.done;c=s.next()){var u=c.value,h=t[u];
1n(h)&&(a[u]=e(h,u,t))}}catch(t){i={error:t}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}return a}var p=function(t){return function(e){var n,i,o=e;try{for(var a=(0,r.Ju)(t),s=a.next();!s.done;s=a.next())o=o[s.value]}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return o}};function y(t,e){return function(n){var i,o,a=n;try{for(var s=(0,r.Ju)(t),c=s.next();!c.done;c=s.next()){var u=c.value;a=a[e][u]}}catch(t){i={error:t}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}return a}}function g(t){var e;return(e=[]).concat.apply(e,(0,r.fX)([],(0,r.zs)(t),!1))}function m(t){var e;return void 0===t?[]:k(e=t)?e:[e]}function _(t,e,n){if(O(t))return t(e,n.data);var i,o,a={};try{for(var s=(0,r.Ju)(Object.keys(t)),c=s.next();!c.done;c=s.next()){var u=c.value,h=t[u];O(h)?a[u]=h(e,n.data):a[u]=h}}catch(t){i={error:t}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}return a}function x(t){return/^(done|error)\./.test(t)}function b(t){return!!(t instanceof Promise||null!==t&&(O(t)||"object"==typeof t)&&O(t.then))}function S(t){return null!==t&&"object"==typeof t&&"transition"in t&&"function"==typeof t.transition}function w(t,e){var n,i,o=(0,r.zs)([[],[]],2),a=o[0],s=o[1];try{for(var c=(0,r.Ju)(t),u=c.next();!u.done;u=c.next()){var h=u.value;e(h)?a.push(h):s.push(h)}}catch(t){n={error:t}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}return[a,s]}function E(t,e){return{current:e,states:function t(e,n){return d(e.states,function(e,i){if(e){var r=(A(n)?void 0:n[i])||(e?e.current:void 0);if(r)return{current:r,states:t(e,r)}}})}(t,e)}}function C(t,e,n,i){return c.p||T(!!t,"Attempting to update undefined context"),t?n.reduce(function(t,n){var o,a,s=n.assignment,c={state:i,action:n,_event:e},u={};if(O(s))u=s(t,e.data,c);else try{for(var h=(0,r.Ju)(Object.keys(s)),l=h.next();!l.done;l=h.next()){var f=l.value,d=s[f];u[f]=O(d)?d(t,e.data,c):d}}catch(t){o={error:t}}finally{try{l&&!l.done&&(a=h.return)&&a.call(h)}finally{if(o)throw o.error}}return Object.assign({},t,u)},t):t}var T=function(){};function k(t){return Array.isArray(t)}function O(t){return"function"==typeof t}function A(t){return"string"==typeof t}function N(t,e){if(t)return A(t)?{type:s.hS,name:t,predicate:e?e[t]:void 0}:O(t)?{type:s.hS,name:t.name,predicate:t}:t}function z(t){try{return"subscribe"in t&&O(t.subscribe)}catch(t){return!1}}c.p||(T=function(t,e){var n=t instanceof Error?t:void 0;if((n||!t)&&void 0!==console){var i=["Warning: ".concat(e)];n&&i.push(n),console.warn.apply(console,i)}});var j="function"==typeof Symbol&&Symbol.observable||"@@observable";function P(t){return!!t&&"__xstatenode"in t}function J(t){return!!t&&"function"==typeof t.send}function R(t,e){return A(t)||"number"==typeof t?(0,r.Cl)({type:t},e):t}function V(t,e){if(!A(t)&&"$$type"in t&&"scxml"===t.$$type)return t;var n=R(t);return(0,r.Cl)({name:n.type,data:n,$$type:"scxml",type:"external"},e)}function D(t,e){var n;return(k(n=e)?n:[n]).map(function(e){return void 0===e||"string"==typeof e||P(e)?{target:e,event:t}:(0,r.Cl)((0,r.Cl)({},e),{event:t})})}function B(t){if(void 0!==t&&t!==s.$D)return m(t)}function L(t,e,n){if(!c.p){var i=t.stack?" Stacktrace was '".concat(t.stack,"'"):"";if(t===e)console.error("Missing onError handler for invocation '".concat(n,"', error was '").concat(t,"'.").concat(i));else{var r=e.stack?" Stacktrace was '".concat(e.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(n,"'. ")+"Original error: '".concat(t,"'. ").concat(i," Current error is '").concat(e,"'.").concat(r))}}}function I(t,e,n,i,r){var o=t.options.guards,a={state:r,cond:e,_event:i};if(e.type===s.hS)return((null==o?void 0:o[e.name])||e.predicate)(n,i.data,a);var c=null==o?void 0:o[e.type];if(!c)throw Error("Guard '".concat(e.type,"' is not implemented on machine '").concat(t.id,"'."));return c(n,i.data,a)}function X(t){return"string"==typeof t?{type:t}:t}function M(t,e,n){var i=function(){},r="object"==typeof t,o=r?t:null;return{next:((r?t.next:t)||i).bind(o),error:((r?t.error:e)||i).bind(o),c
1omplete:((r?t.complete:n)||i).bind(o)}}function Q(t,e){return"".concat(t,":invocation[").concat(e,"]")}function K(t){return(t.type===a.xl||t.type===a.tN&&t.to===o.i.Internal)&&"number"!=typeof t.delay}(i={})[j]=function(){return this},i[Symbol.observable]=function(){return this}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.