!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).XState={})}(this,function(t){"use strict";var e,n,r=function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function a(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function s(){for(var t=[],e=0;ei.length)&&(i=u)}}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return t[i]},t.actions=Lt,t.assign=ut,t.send=rt,t.sendParent=it,t.interpret=It,t.Interpreter=kt,t.matchState=function(t,e,n){var r,i,s=M.from(t,t instanceof M?t.context:void 0);try{for(var u=o(e),c=u.next();!c.done;c=u.next()){var h=a(c.value,2),d=h[0],l=h[1];if(s.matches(d))return l(s)}}catch(t){r={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}return n(s)},t.spawn=function(t,e){var n=jt(e);return At(void 0,function(e){return e?e.spawn(t,n.name,n):Vt(n.name)})},Object.defineProperty(t,"__esModule",{value:!0})});