PageSourceSearch

https://pizzburg.online/_next/static/chunks/3493.5f092932cc730a3d.js

js pizzburg.online collected 2026-10-04 09:38:27 UTC 86,270 bytes, 14 lines download raw bytes

1try{let t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="d96f57c5-974a-4d11-8f83-a06c911eec6b",t._sentryDebugIdIdentifier="sentry-dbid-d96f57c5-974a-4d11-8f83-a06c911eec6b")}catch(t){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3493],{85220:function(t,e,n){n.d(e,{Z:function(){return c}});var i=n(67294),r=n(42473),o=n.n(r),s="undefined"!=typeof window&&window.document&&window.document.createElement?i.useLayoutEffect:i.useEffect;o(),"undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();var a=n(73935),c=function(t){var e,n=t.children,r=t.type,o=void 0===r?"reach-portal":r,c=(0,i.useRef)(null),u=(0,i.useRef)(null),f=(e=(0,i.useState)(Object.create(null))[1],(0,i.useCallback)(function(){e(Object.create(null))},[]));return s(function(){if(c.current){var t=c.current.ownerDocument;return u.current=null==t?void 0:t.createElement(o),t.body.appendChild(u.current),f(),function(){u.current&&u.current.ownerDocument&&u.current.ownerDocument.body.removeChild(u.current)}}},[o,f]),u.current?(0,a.createPortal)(n,u.current):(0,i.createElement)("span",{ref:c})}},32135:function(t,e,n){n.d(e,{V:function(){return i},c:function(){return s},r:function(){return o}});let i={toVector:(t,e)=>(void 0===t&&(t=e),Array.isArray(t)?t:[t,t]),add:(t,e)=>[t[0]+e[0],t[1]+e[1]],sub:(t,e)=>[t[0]-e[0],t[1]-e[1]],addTo(t,e){t[0]+=e[0],t[1]+=e[1]},subTo(t,e){t[0]-=e[0],t[1]-=e[1]}};function r(t,e,n){return 0===e||Math.abs(e)===1/0?Math.pow(t,5*n):t*e*n/(e+n*t)}function o(t,e,n,i=.15){return 0===i?Math.max(e,Math.min(t,n)):t<e?-r(e-t,n-e,i)+e:t>n?+r(t-n,n-e,i)+n:t}function s(t,[e,n],[i,r]){let[[s,a],[c,u]]=t;return[o(e,s,a,i),o(n,c,u,r)]}},63398:function(t,e,n){n.d(e,{useDrag:function(){return Z}});var i=n(32135);function r(t,e,n){var i;return(e="symbol"==typeof(i=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"))?i:String(i))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach(function(e){r(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}let a={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function c(t){return t?t[0].toUpperCase()+t.slice(1):""}let u=["enter","leave"],f=["gotpointercapture","lostpointercapture"];function h(t){return"touches"in t}function l(t){return h(t)?"touch":"pointerType"in t?t.pointerType:"mouse"}function d(t){return h(t)?("touchend"===t.type||"touchcancel"===t.type?t.changedTouches:t.targetTouches)[0]:t}function p(t){let e=d(t);return h(t)?e.identifier:e.pointerId}function v(t){let e=d(t);return[e.clientX,e.clientY]}function y(t,...e){return"function"==typeof t?t(...e):t}function g(){}function m(t,e){return Object.assign({},e,t||{})}class b{constructor(t,e,n){this.ctrl=t,this.args=e,this.key=n,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){let{state:t,shared:e,ingKey:n,args:i}=this;e[n]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=i,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){let e=this.state,n=this.config;e._active||(this.reset(),this.computeInitial(),e._active=!0,e.target=t.target,e.currentTarget=t.currentTarget,e.lastOffset=n.from?y(n.from,e):e.offset,e.offset=e.lastOffset,e.startTime=e.timeStamp=t.timeStamp)}computeValues(t){let e=this.state;e._values=t,e.values=this.config.transform(t)}computeInitial(){let t=this.state;t._initial=t._values,t.initial=t.values}compute(t){let{state:e,config:n,shared:r}=this;e.args=this.args;let o=0;if(t&&(e.event=t,n.preventDefault&&t.cancelable&&e.event.preventDefault(),e.type=t.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,function(t){let e={};if("buttons"in t&&(e.buttons=t.buttons),"shiftKey"in t){let{shiftKey:n,altKey:i,metaKey:r,ctrlKey:o}=t;Object.assign(e,{shiftKey:n,altKey:i,metaKey:r,ctrlKey:o})}return e}(t)),r.down=r.pressed=r.buttons%2==1||r.touches>0,o=t.timeStamp-e.timeStamp,e.timeStamp=t.timeStamp,e.elapsedTime=e.timeStamp-e.startTime),e._active){let t=e._delta.map(Math.abs);i.V.addTo(e._distance,t)}this.axisIntent&&this.axisIntent(t);let[s,a]=e._movement,[c,u]=n.threshold,{_step:f,values:h}=e;if(n.hasCustomTransform?(!1===f[0]&&(f[0]=Math.abs(s)>=c&&h[0]),!1===f[1]&&(f[1]=Math.abs(a)>=u&&h[1])):(!1===f[0]&&(f[0]=Math.abs(s)>=c&&Math.sign(s)*c),!1===f[1]&&(f[1]=Math.abs(a)>=u&&Math.sign(a)*u)),e.intentional=!1!==f[0]||!1!==f[1],!e.intentional)return;let l=[0,0];if(n.hasCustomTransform){let[t,e]=h;l[0]=!1!==f[0]?t-f[0]:0,l[1]=!1!==f[1]?e-f[1]:0}else l[0]=!1!==f[0]?s-f[0]:0,l[1]=!1!==f[1]?a-f[1]:0;this.restrictToAxis&&!e._blocked&&this.restrictToAxis(l);let d=e.offset,p=e._active&&!e._blocked||e.active;p&&(e.first=e._active&&!e.active,e.last=!e._active&&e.active,e.active=r[this.ingKey]=e._active,t&&(e.first&&("bounds"in n&&(e._bounds=y(n.bounds,e)),this.setup&&this.setup()),e.movement=l,this.computeOffset()));let[v,g]=e.offset,[[m,b],[x,w]]=e._bounds;e.overflow=[v<m?-1:v>b?1:0,g<x?-1:g>w?1:0],e._movementBound[0]=!!e.overflow[0]&&(!1===e._movementBound[0]?e._movement[0]:e._movementBound[0]),e._movementBound[1]=!!e.overflow[1]&&(!1===e._movementBound[1]?e._movement[1]:e._movementBound[1]);let S=e._active&&n.rubberband||[0,0];if(e.offset=(0,i.c)(e._bounds,e.offset,S),e.delta=i.V.sub(e.offset,d),this.computeMovement(),p&&(!e.last||o>32)){e.delta=i.V.sub(e.offset,d);let t=e.delta.map(Math.abs);i.V.addTo(e.distance,t),e.direction=e.delta.map(Math.sign),e._direction=e._delta.map(Math.sign),!e.first&&o>0&&(e.velocity=[t[0]/o,t[1]/o],e.timeDelta=o)}}emit(){let t=this.state,e=this.shared,n=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!n.triggerAllEvents)return;let i=this.handler(s(s(s({},e),t),{},{[this.aliasKey]:t.values}));void 0!==i&&(t.memo=i)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class x extends b{constructor(...t){super(...t),r(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=i.V.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=i.V.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){let e=this.state,n=this.config;if(!e.axis&&t){let i="object"==typeof n.axisThreshold?n.axisThreshold[l(t)]:n.axisThreshold;e.axis=function([t,e],n){let i=Math.abs(t),r=Math.abs(e);return i>r&&i>n?"x":r>i&&r>n?"y":void 0}(e._movement,i)}e._blocked=(n.lockDirection||!!n.axis)&&!e.axis||!!n.axis&&n.axis!==e.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0}}}let w=t=>t,S={enabled:(t=!0)=>t,eventOptions:(t,e,n)=>s(s({},n.shared.eventOptions),t),preventDefault:(t=!1)=>t,triggerAllEvents:(t=!1)=>t,rubberband(t=0){switch(t){case!0:return[.15,.15];case!1:return[0,0];default:return i.V.toVector(t)}},from:t=>"function"==typeof t?t:null!=t?i.V.toVector(t):void 0,transform(t,e,n){let i=t||n.shared.transform;return this.hasCustomTransform=!!i,i||w},threshold:t=>i.V.toVector(t,0)},_=0,O=s(s({},S),{},{axis(t,e,{axis:n}){if(this.lockDirection="lock"===n,!this.lockDirection)return n},axisThreshold:(t=_)=>t,bounds(t={}){if("function"==typeof t)return e=>O.bounds(t(e));if("current"in t)return()=>t.current;if("function"==typeof HTMLElement&&t instanceof HTMLElement)return t;let{left:e=-1/0,right:n=1/0,top:i=-1/0,bottom:r=1/0}=t;return[[e,n],[i,r]]}}),k={ArrowRight:(t,e=1)=>[t*e,0],ArrowLeft:(t,e=1)=>[-1*t*e,0],ArrowUp:(t,e=1)=>[0,-1*t*e],ArrowDown:(t,e=1)=>[0,t*e]},E="undefined"!=typeof window&&window.document&&window.document.createElement;function T(){return E&&"ontouchstart"in window||E&&window.navigator.maxTouchPoints>1}let M={isBrowser:E,gesture:function(){try{return"constructor"in GestureEvent}catch(t){return!1}}(),touch:T(),touchscreen:T(),pointer:E&&"onpointerdown"in window,pointerLock:E&&"exitPointerLock"in window.document},j=10,A={mouse:0,touch:0,pen:8},C=s(s({},O),{},{device(t,e,{pointer:{touch:n=!1,lock:i=!1,mouse:r=!1}={}}){return(this.pointerLock=i&&M.pointerLock,M.touch&&n)?"touch":this.pointerLock?"mouse":M.pointer&&!r?"pointer":M.touch?"touch":"mouse"},preventScrollAxis(t,e,{preventScroll:n}){if(this.preventScrollDelay="number"==typeof n?n:n||void 0===n&&t?250:void 0,M.touchscreen&&!1!==n)return t||(void 0!==n?"y":void 0)},pointerCapture(t,e,{pointer:{capture:n=!0,buttons:i=1,keys:r=!0}={}}){return this.pointerButtons=i,this.keys=r,!this.pointerLock&&"pointer"===this.device&&n},threshold(t,e,{filterTaps:n=!1,tapsThreshold:r=3,axis:o}){let s=i.V.toVector(t,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,s},swipe({velocity:t=.5,distance:e=50,duration:n=250}={}){return{velocity:this.transform(i.V.toVector(t)),distance:this.transform(i.V.toVector(e)),duration:n}},delay(t=0){switch(t){case!0:return 180;case!1:return 0;default:return t}},axisThreshold:t=>t?s(s({},A),t):A,keyboardDisplacement:(t=j)=>t});s(s({},S),{},{device(t,e,{shared:n,pointer:{touch:i=!1}={}}){if(n.target&&!M.touch&&M.gesture)return"gesture";if(M.touch&&i)return"touch";if(M.touchscreen){if(M.pointer)return"pointer";if(M.touch)return"touch"}},bounds(t,e,{scaleBounds:n={},angleBounds:i={}}){let r=t=>{let e=m(y(n,t),{min:-1/0,max:1/0});return[e.min,e.max]},o=t=>{let e=m(y(i,t),{min:-1/0,max:1/0});return[e.min,e.max]};return"function"!=typeof n&&"function"!=typeof i?[r(),o()]:t=>[r(t),o(t)]},threshold(t,e,n){this.lockDirection="lock"===n.axis;let r=i.V.toVector(t,this.lockDirection?[.1,3]:0);return r},modifierKey:t=>void 0===t?"ctrlKey":t,pinchOnWheel:(t=!0)=>t}),s(s({},O),{},{mouseOnly:(t=!0)=>t}),s(s({},O),{},{mouseOnly:(t=!0)=>t});let D=new Map,P=new Map,N={key:"drag",engine:class extends x{constructor(...t){super(...t),r(this,"ingKey","dragging")}reset(){super.reset();let t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){let t=this.state;if(t._bounds instanceof HTMLElement){let e=t._bounds.getBoundingClientRect(),n=t.currentTarget.getBoundingClientRect(),i={left:e.left-n.left+t.offset[0],right:e.right-n.right+t.offset[0],top:e.top-n.top+t.offset[1],bottom:e.bottom-n.bottom+t.offset[1]};t._bounds=O.bounds(i)}}cancel(){let t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>
1{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){let e=this.config,n=this.state;if(null!=t.buttons&&(Array.isArray(e.pointerButtons)?!e.pointerButtons.includes(t.buttons):-1!==e.pointerButtons&&e.pointerButtons!==t.buttons))return;let i=this.ctrl.setEventIds(t);e.pointerCapture&&t.target.setPointerCapture(t.pointerId),i&&i.size>1&&n._pointerActive||(this.start(t),this.setupPointer(t),n._pointerId=p(t),n._pointerActive=!0,this.computeValues(v(t)),this.computeInitial(),e.preventScrollAxis&&"mouse"!==l(t)?(n._active=!1,this.setupScrollPrevention(t)):e.delay>0?(this.setupDelayTrigger(t),e.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){let e=this.state;e._active=!0,e._preventScroll=!0,e._delayed=!1,this.compute(t),this.emit()}pointerMove(t){let e=this.state,n=this.config;if(!e._pointerActive)return;let r=p(t);if(void 0!==e._pointerId&&r!==e._pointerId)return;let o=v(t);if(document.pointerLockElement===t.target?e._delta=[t.movementX,t.movementY]:(e._delta=i.V.sub(o,e._values),this.computeValues(o)),i.V.addTo(e._movement,e._delta),this.compute(t),e._delayed&&e.intentional){this.timeoutStore.remove("dragDelay"),e.active=!1,this.startPointerDrag(t);return}if(n.preventScrollAxis&&!e._preventScroll){if(!e.axis)return;if(e.axis===n.preventScrollAxis||"xy"===n.preventScrollAxis){e._active=!1,this.clean();return}this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch(t){}let e=this.state,n=this.config;if(!e._active||!e._pointerActive)return;let i=p(t);if(void 0!==e._pointerId&&i!==e._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);let[r,o]=e._distance;if(e.tap=r<=n.tapsThreshold&&o<=n.tapsThreshold,e.tap&&n.filterTaps)e._force=!0;else{let[t,i]=e._delta,[r,o]=e._movement,[s,a]=n.swipe.velocity,[c,u]=n.swipe.distance,f=n.swipe.duration;if(e.elapsedTime<f){let n=Math.abs(t/e.timeDelta),f=Math.abs(i/e.timeDelta);n>s&&Math.abs(r)>c&&(e.swipe[0]=Math.sign(t)),f>a&&Math.abs(o)>u&&(e.swipe[1]=Math.sign(i))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){let e=this.config,n=e.device;e.pointerLock&&t.currentTarget.requestPointerLock(),e.pointerCapture||(this.eventStore.add(this.sharedConfig.window,n,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,"persist"in t&&"function"==typeof t.persist&&t.persist();let e=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",e),this.eventStore.add(this.sharedConfig.window,"touch","cancel",e),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){let e=k[t.key];if(e){let n=this.state,r=t.shiftKey?10:t.altKey?.1:1;this.start(t),n._delta=e(this.config.keyboardDisplacement,r),n._keyboardActive=!0,i.V.addTo(n._movement,n._delta),this.compute(t),this.emit()}}keyUp(t){t.key in k&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){let e=this.config.device;t(e,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(e,"change",this.pointerMove.bind(this)),t(e,"end",this.pointerUp.bind(this)),t(e,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}},resolver:C};var I=n(67294);let V={target(t){if(t)return()=>"current"in t?t.current:t},enabled:(t=!0)=>t,window:(t=M.isBrowser?window:void 0)=>
1t,eventOptions:({passive:t=!0,capture:e=!1}={})=>({passive:t,capture:e}),transform:t=>t},L=["target","eventOptions","window","enabled","transform"];function R(t={},e){let n={};for(let[i,r]of Object.entries(e))switch(typeof r){case"function":n[i]=r.call(n,t[i],i,t);break;case"object":n[i]=R(t[i],r);break;case"boolean":r&&(n[i]=t[i])}return n}class H{constructor(t,e){r(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=e}add(t,e,n,i,r){let o=this._listeners,c=function(t,e=""){let n=a[t],i=n&&n[e]||e;return t+i}(e,n),u=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},f=s(s({},u),r);t.addEventListener(c,i,f);let h=()=>{t.removeEventListener(c,i,f),o.delete(h)};return o.add(h),h}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class X{constructor(){r(this,"_timeouts",new Map)}add(t,e,n=140,...i){this.remove(t),this._timeouts.set(t,window.setTimeout(e,n,...i))}remove(t){let e=this._timeouts.get(t);e&&window.clearTimeout(e)}clean(){this._timeouts.forEach(t=>void window.clearTimeout(t)),this._timeouts.clear()}}class K{constructor(t){r(this,"gestures",new Set),r(this,"_targetEventStore",new H(this)),r(this,"gestureEventStores",{}),r(this,"gestureTimeoutStores",{}),r(this,"handlers",{}),r(this,"config",{}),r(this,"pointerIds",new Set),r(this,"touchIds",new Set),r(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),t.drag&&U(this,"drag"),t.wheel&&U(this,"wheel"),t.scroll&&U(this,"scroll"),t.move&&U(this,"move"),t.pinch&&U(this,"pinch"),t.hover&&U(this,"hover")}setEventIds(t){return h(t)?(this.touchIds=new Set(Array.from(t.touches).filter(e=>{var n,i;return e.target===t.currentTarget||(null===(n=t.currentTarget)||void 0===n?void 0:null===(i=n.contains)||void 0===i?void 0:i.call(n,e.target))}).map(t=>t.identifier)),this.touchIds):"pointerId"in t?("pointerup"===t.type||"pointercancel"===t.type?this.pointerIds.delete(t.pointerId):"pointerdown"===t.type&&this.pointerIds.add(t.pointerId),this.pointerIds):void 0}applyHandlers(t,e){this.handlers=t,this.nativeHandlers=e}applyConfig(t,e){this.config=function(t,e,n={}){let{target:i,eventOptions:r,window:o,enabled:a,transform:c}=t,u=function(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}(t,L);if(n.shared=R({target:i,eventOptions:r,window:o,enabled:a,transform:c},V),e){let t=P.get(e);n[e]=R(s({shared:n.shared},u),t)}else for(let t in u){let e=P.get(t);e&&(n[t]=R(s({shared:n.shared},u[t]),e))}return n}(t,e,this.config)}clean(){for(let t of(this._targetEventStore.clean(),this.gestures))this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){let e;let n=this.config.shared,i={};if(!n.target||(e=n.target())){if(n.enabled){for(let n of this.gestures){let r=this.config[n],o=B(i,r.eventOptions,!!e);if(r.enabled){let e=D.get(n);new e(this,t,n).bind(o)}}let r=B(i,n.eventOptions,!!e);for(let e in this.nativeHandlers)r(e,"",n=>this.nativeHandlers[e](s(s({},this.state.shared),{},{event:n,args:t})),void 0,!0)}for(let t in i)i[t]=function(...t){return 0===t.length?g:1===t.length?t[0]:function(){let e;for(let n of t)e=n.apply(this,arguments)||e;return e}}(...i[t]);if(!e)return i;for(let t in i){let{device:n,capture:r,passive:o}=function(t){let e=t.substring(2).toLowerCase(),n=!!~e.indexOf("passive");n&&(e=e.replace("passive",""));let i=f.includes(e)?"capturecapture":"capture",r=!!~e.indexOf(i);return r&&(e=e.replace("capture","")),{device:e,capture:r,passive:n}}(t);this._targetEventStore.add(e,n,"",i[t],{capture:r,passive:o})}}}}function U(t,e){t.gestures.add(e),t.gestureEventStores[e]=new H(t,e),t.gestureTimeoutStores[e]=new X}let B=(t,e,n)=>(i,r,o,s={},f=!1)=>{var h,l;let d=null!==(h=s.capture)&&void 0!==h?h:e.capture,p=null!==(l=s.passive)&&void 0!==l?l:e.passive,v=f?i:function(t,e="",n=!1){let i=a[t],r=i&&i[e]||e;return"on"+c(t)+c(r)+(!function(t=!1,e){return t&&!u.includes(e)}(n,r)?"":"Capture")}(i,r,d);n&&p&&(v+="Passive"),t[v]=t[v]||[],t[v].push(o)};function Z(t,e){return D.set(N.key,N.engine),P.set(N.key,N.resolver),function(t,e={},n,i){let r=I.useMemo(()=>new K(t),[]);
1if(r.applyHandlers(t,void 0),r.applyConfig(e,n),I.useEffect(r.effect.bind(r)),I.useEffect(()=>r.clean.bind(r),[]),void 0===e.target)return r.bind.bind(r)}({drag:t},e||{},"drag")}},99717:function(t,e,n){n.d(e,{e:function(){return D}});var i,r,o=n(67294),s=n(52798),a=n(63056),c=n(59043),u=n(54911),f=n(3884),h=n(30375),l=n(14066),d=n(89823),p={deferEvents:!1},v=function(){function t(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=(0,a.pi)((0,a.pi)({},p),t)}return t.prototype.initialize=function(t){if(this.initialized=!0,t){if(!this.options.deferEvents){this.schedule(t);return}this.process(t)}this.flushEvents()},t.prototype.schedule=function(t){if(!this.initialized||this.processingEvent){this.queue.push(t);return}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}(),y=n(98933),g=n(56115),m=new Map,b=0,x={bookId:function(){return"x:".concat(b++)},register:function(t,e){return m.set(t,e),t},get:function(t){return m.get(t)},free:function(t){m.delete(t)}};function w(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:void(l.M||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 S=n(10797),_={sync:!1,autoForward:!1};(i=r||(r={}))[i.NotStarted=0]="NotStarted",i[i.Running=1]="Running",i[i.Stopped=2]="Stopped";var O=function(){function t(e,n){var i=this;void 0===n&&(n=t.defaultOptions),this.machine=e,this.scheduler=new v,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.init=this.start,this.send=function(t,e){if((0,d.kJ)(t))return i.batch(t),i.state;var n=(0,d.g5)((0,d._v)(t,e));if(i.status===r.Stopped)return l.M||(0,d.ZK)(!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){var n=i.parent&&(e===c.K.Parent||i.parent.id===e),r=n?i.parent:(0,d.HD)(e)?i.children.get(e)||x.get(e):(0,d.Bc)(e)?e:void 0;if(!r){if(!n)throw Error("Unable to send event to child '".concat(e,"' from service '").concat(i.id,"'."));l.M||(0,d.ZK)(!1,"Service '".concat(i.id,"' has no parent: unable to send event ").concat(t.type));return}"machine"in r?r.send((0,a.pi)((0,a.pi)({},t),{name:t.name===f.vU?"".concat((0,h.vU)(i.id)):t.name,origin:i.sessionId})):r.send(t.data)};var o=(0,a.pi)((0,a.pi)({},t.defaultOptions),n),s=o.clock,u=o.logger,p=o.parent,y=o.id,g=void 0!==y?y:e.id;this.id=g,this.logger=u,this.clock=s,this.parent=p,this.options=o,this.scheduler=new v({deferEvents:this.options.deferEvents}),this.sessionId=x.bookId()}return Object.defineProperty(t.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:(0,S.J)(this,function(){return t._initialState=t.machine.initialState,t._initialState})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return l.M||(0,d.ZK)(this.status!==r.NotStarted,"Attempted to read state from uninitialized service '".concat(this.id,"'. Make sure the service is started first.")),this._state}
vendor: 8,738 bytes, line 1
1,enumerable:!1,configurable:!0}),t.prototype.execute=function(t,e){var n,i;try{for(var r=(0,a.XA)(t.actions),o=r.next();!o.done;o=r.next()){var s=o.value;this.exec(s,t,e)}}catch(t){n={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}},t.prototype.update=function(t,e){var n,i,r,o,s,c,u,f,l=this;if(t._sessionid=this.sessionId,this._state=t,this.options.execute&&this.execute(this.state),this.children.forEach(function(t){l.state.children[t.id]=t}),this.devTools&&this.devTools.send(e.data,t),t.event)try{for(var p=(0,a.XA)(this.eventListeners),v=p.next();!v.done;v=p.next()){var y=v.value;y(t.event)}}catch(t){n={error:t}}finally{try{v&&!v.done&&(i=p.return)&&i.call(p)}finally{if(n)throw n.error}}try{for(var m=(0,a.XA)(this.listeners),b=m.next();!b.done;b=m.next()){var y=b.value;y(t,t.event)}}catch(t){r={error:t}}finally{try{b&&!b.done&&(o=m.return)&&o.call(m)}finally{if(r)throw r.error}}try{for(var x=(0,a.XA)(this.contextListeners),w=x.next();!w.done;w=x.next())(0,w.value)(this.state.context,this.state.history?this.state.history.context:void 0)}catch(t){s={error:t}}finally{try{w&&!w.done&&(c=x.return)&&c.call(x)}finally{if(s)throw s.error}}var S=(0,g.Ij)(t.configuration||[],this.machine);if(this.state.configuration&&S){var _=t.configuration.find(function(t){return"final"===t.type&&t.parent===l.machine}),O=_&&_.doneData?(0,d.QX)(_.doneData,t.context,e):void 0;try{for(var k=(0,a.XA)(this.doneListeners),E=k.next();!E.done;E=k.next()){var y=E.value;y((0,h.Sl)(this.id,O))}}catch(t){u={error:t}}finally{try{E&&!E.done&&(f=k.return)&&f.call(k)}finally{if(u)throw u.error}}this.stop()}},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,o=this;if(!t)return{unsubscribe:function(){}};var s=n;return"function"==typeof t?i=t:(i=t.next.bind(t),s=t.complete.bind(t)),this.listeners.add(i),this.status===r.Running&&i(this.state),s&&this.onDone(s),{unsubscribe:function(){i&&o.listeners.delete(i),s&&o.doneListeners.delete(s)}}},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.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=this;if(this.status===r.Running)return this;this.machine._init(),x.register(this.sessionId,this),this.initialized=!0,this.status=r.Running;var n=void 0===t?this.initialState:(0,S.J)(this,function(){return(0,u.TL)(t)?e.machine.resolveState(t):e.machine.resolveState(u.ZM.from(t,e.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){e.update(n,h.bf)}),this},t.prototype.stop=function(){var t,e,n,i,o,s,c,u,f,h,l=this;try{for(var p=(0,a.XA)(this.listeners),v=p.next();!v.done;v=p.next()){var y=v.value;this.listeners.delete(y)}}catch(e){t={error:e}}finally{try{v&&!v.done&&(e=p.return)&&e.call(p)}finally{if(t)throw t.error}}try{for(var g=(0,a.XA)(this.stopListeners),m=g.next();!m.done;m=g.next()){var y=m.value;y(),this.stopListeners.delete(y)}}catch(t){n={error:t}}finally{try{m&&!m.done&&(i=g.return)&&i.call(g)}finally{if(n)throw n.error}}try{for(var b=(0,a.XA)(this.contextListeners),w=b.next();!w.done;w=b.next()){var y=w.value;this.contextListeners.delete(y)}}catch(t){o={error:t}}finally{try{w&&!w.done&&(s=b.return)&&s.call(b)}finally{if(o)throw o.error}}try{for(var S=(0,a.XA)(this.doneListeners),_=S.next();!_.done;_=S.next()){var y=_.value;this.doneListeners.delete(y)}}catch(t){c={error:t}}finally{try{_&&!_.done&&(u=S.return)&&u.call(S)}finally{if(c)throw c.error}}if(!this.initialized)return this;(0,a.ev)([],(0,a.CR)(this.state.configuration),!1).sort(function(t,e){return e.order-t.order}).forEach(function(t){var e,n;try{for(var i=(0,a.XA)(t.definition.exit),r=i.next();!r.done;r=i.next()){var o=r.value;l.exec(o,l.state)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}}),this.children.forEach(function(t){(0,d.mf)(t.stop)&&t.stop()});try{for(var O=(0,a.XA)(Object.keys(this.delayedEventsMap)),k=O.next();!k.done;k=O.next()){var E=k.value;this.clock.clearTimeout(this.delayedEventsMap[E])}}catch(t){f={error:t}}finally{try{k&&!k.done&&(h=O.return)&&h.call(O)}finally{if(f)throw f.error}}return this.scheduler.clear(),this.initialized=!1,this.status=r.Stopped,x.free(this.sessionId),this},t.prototype.batch=function(t){var e=this;if(this.status===r.NotStarted&&this.options.deferEvents)l.M||(0,d.ZK)(!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.'));this.scheduler.schedule(function(){var n,i,r=e.state,o=!1,s=[];try{for(var c=(0,a.XA)(t),f=c.next();!f.done;f=c.next()){var h=f.value;!function(t){var n=(0,d.g5)(t);e.forward(n),r=(0,S.J)(e,function(){return e.machine.transition(r,n)}),s.push.apply(s,(0,a.ev)([],(0,a.CR)(r.actions.map(function(t){return(0,u.j1)(t,r)})),!1)),o=o||!!r.changed}(h)}}catch(t){n={error:t}}finally{try{f&&!f.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}r.changed=o,r.actions=s,e.update(r,(0,d.g5)(t[t.length-1]))})},t.prototype.sender=function(t){return this.send.bind(this,t)},t.prototype.nextState=function(t){var e=this,n=(0,d.g5)(t);if(0===n.name.indexOf(f.Mg)&&!this.state.nextEvents.some(function(t){return 0===t.indexOf(f.Mg)}))throw n.data.data;return(0,S.J)(this,function(){return e.machine.transition(e.state,n)})},t.prototype.forward=function(t){var e,n;try{for(var i=(0,a.XA)(this.forwardTo),r=i.next();!r.done;r=i.next()){var o=r.value,s=this.children.get(o);if(!s)throw Error("Unable to forward event '".concat(t,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(o,"'."));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;this.delayedEventsMap[t.id]=this.clock.setTimeout(function(){t.to?e.sendTo(t._event,t.to):e.send(t._event)},t.delay)},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);var i=e.context,o=e._event,s=t.exec||(0,h.o$)(t.type,n),a=(0,d.mf)(s)?s:s?s.exec:t.exec;if(a)try{return a(i,o.data,{action:t,state:this.state,_event:o})}catch(t){throw this.parent&&this.parent.send({type:"xstate.error",data:t}),t}switch(t.type){case f.lW:if("number"==typeof t.delay){this.defer(t);break}t.to?this.sendTo(t._event,t.to):this.send(t._event);break;case f.al:this.cancel(t.sendId);break;case f.BL:if(this.status!==r.Running)break;var u=t.activity;if(!this.state.activities[u.id||u.type])break;if(u.type===c.M.Invoke){var p=(0,d.j)(u.src),v=this.machine.options.services?this.machine.options.services[p.type]:void 0,y=u.id,g=u.data;l.M||(0,d.ZK)(!("forward"in u),"`forward` property is deprecated (found in invocation of '".concat(u.src,"' in in machine '").concat(this.machine.id,"'). ")+"Please use `autoForward` instead.");var m="autoForward"in u?u.autoForward:!!u.forward;if(!v){l.M||(0,d.ZK)(!1,"No service found for invocation '".concat(u.src,"' in machine '").concat(this.machine.id,"'."));return}var b=g?(0,d.QX)(g,i,o):void 0;if("string"==typeof v)return;var x=(0,d.mf)(v)?v(i,o.data,{data:b,src:p,meta:u.meta}):v;if(!x)return;var w=void 0;(0,d.O4)(x)&&(x=b?x.withContext(b):x,w={autoForward:m}),this.spawn(x,y,w)}else this.spawnActivity(u);break;case f.sT:this.stopChild(t.activity.id);break;case f.cM:var S=t.label,_=t.value;S?this.logger(S,_):this.logger(_);break;default:l.M||(0,d.ZK)(!1,"No implementation found for action type '".concat(t.type,"'"))}},t.prototype.removeChild=function(t){var e;this.children.delete(t),this.forwardTo.delete(t),null===(e=this.state)||void 0===e||delete e.children[t]},t.prototype.stopChild=function(t){var e=this.children.get(t);e&&(this.removeChild(t),(0,d.mf)(e.stop)&&e.stop())},t.prototype.spawn=function(t,e,n){if((0,d.y8)(t))return this.spawnProm
1ise(Promise.resolve(t),e);if((0,d.mf)(t))return this.spawnCallback(t,e);if((0,y.f3)(t))return this.spawnActor(t,e);if((0,d.bi)(t))return this.spawnObservable(t,e);if((0,d.O4)(t))return this.spawnMachine(t,(0,a.pi)((0,a.pi)({},n),{id:e}));if((0,d.HV)(t))return this.spawnBehavior(t,e);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,a.pi)((0,a.pi)({},this.options),{parent:this,id:n.id||e.id})),o=(0,a.pi)((0,a.pi)({},_),n);return o.sync&&r.onTransition(function(t){i.send(f.Vx,{state:t,id:r.id})}),this.children.set(r.id,r),o.autoForward&&this.forwardTo.add(r.id),r.onDone(function(t){i.removeChild(r.id),i.send((0,d.g5)(t,{origin:r.id}))}).start(),r},t.prototype.spawnBehavior=function(t,e){var n,i,r,o,s,a,c,u,f=(n={id:e,parent:this},i=t.initialState,r=new Set,o=[],s=!1,a=function(){if(!s){for(s=!0;o.length>0;){var e=o.shift();i=t.transition(i,e,u),r.forEach(function(t){return t.next(i)})}s=!1}}
1,c=(0,y.vk)({id:n.id,send:function(t){o.push(t),a()},getSnapshot:function(){return i},subscribe:function(t,e,n){var o=(0,d.zM)(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,f),f},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,d.g5)((0,h.Sl)(e,t),{origin:e})))},function(t){if(!o){r.removeChild(e);var n=(0,h.vU)(e,t);try{r.send((0,d.g5)(n,{origin:e}))}catch(i){(0,d.v4)(t,i,e),r.devTools&&r.devTools.send(n,r.state),r.machine.strict&&r.stop()}}});var s=((n={id:e,send:function(){},subscribe:function(e,n,i){var r=(0,d.zM)(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}})[d.L$]=function(){return this},n);return this.children.set(e,s),s},t.prototype.spawnCallback=function(t,e){var n,i,r,o=this,s=!1,a=new Set,c=new Set;try{r=t(function(t){i=t,c.forEach(function(e){return e(t)}),s||o.send((0,d.g5)(t,{origin:e}))},function(t){a.add(t)})}catch(t){this.send((0,h.vU)(e,t))}if((0,d.y8)(r))return this.spawnPromise(r,e);var u=((n={id:e,send:function(t){return a.forEach(function(e){return e(t)})},subscribe:function(t){var e=(0,d.zM)(t);return c.add(e.next),{unsubscribe:function(){c.delete(e.next)}}},stop:function(){s=!0,(0,d.mf)(r)&&r()},toJSON:function(){return{id:e}},getSnapshot:function(){return i}})[d.L$]=function(){return this},n);return this.children.set(e,u),u},t.prototype.spawnObservable=function(t,e){var n,i,r=this,o=t.subscribe(function(t){i=t,r.send((0,d.g5)(t,{origin:e}))},function(t){r.removeChild(e),r.send((0,d.g5)((0,h.vU)(e,t),{origin:e}))},function(){r.removeChild(e),r.send((0,d.g5)((0,h.Sl)(e),{origin:e}))}),s=((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}}})[d.L$]=function(){return this},n);return this.children.set(e,s),s},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){l.M||(0,d.ZK)(!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}}})[d.L$]=function(){return this},n))},t.prototype.attachDev=function(){var t=w();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,a.pi)((0,a.pi)({name:this.id,autoPause:!0,stateSanitizer:function(t){return{value:t.value,context:t.context,actions:t.actions}}},e),{features:(0,a.pi)({jump:!1,skip:!1},e?e.features:void 0)}),this.machine),this.devTools.init(this.state)}!function(t){if(w()){var e=function(){var t=w();if(t&&"__xstate__"in t)return t.__xstate__}();e&&e.register(t)}}(this)}},t.prototype.toJSON=function(){return{id:this.id}},t.prototype[d.L$]=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=k,t}();function k(t,e){return new O(t,e)}var E=o.useLayoutEffect;function T(t){var e=o.useRef();return e.current||(e.current={v:t()}),e.current.v}var M=function(){return(M=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)},j=function(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},A=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)s.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 s};function C(t){return t}function D(t){for(var e,n,i,a,c,f,h,l,d,p=[],v=1;v<arguments.length;v++)p[v-1]=arguments[v];var y=A(p,1)[0],g=void 0===y?{}:y,m=(e=T(function(){return"function"==typeof t?t():t}),n=g.context,i=g.guards,a=g.actions,c=g.activities,f=g.services,h=g.delays,g.state,l=j(g,["context","guards","actions","activities","services","delays","state"]),d=T(function(){return k(e.withConfig({context:n,guards:i,actions:a,activities:c,services:f,delays:h},function(){return M(M({},e.context),n)}),l)}),E(function(){Object.assign(d.machine.options.actions,a),Object.assign(d.machine.options.guards,i),Object.assign(d.machine.options.activities,c),Object.assign(d.machine.options.services,f),Object.assign(d.machine.options.delays,h)},[a,i,c,f,h]),d),b=(0,o.useCallback)(function(){return m.status===r.NotStarted?g.state?u.ZM.create(g.
1state):m.machine.initialState:m.getSnapshot()},[m]),x=(0,o.useCallback)(function(t,e){return function(t,e,n){if(t.status===r.NotStarted)return!0;var i=void 0===n.changed&&(Object.keys(n.children).length>0||"boolean"==typeof e.changed);return!(n.changed||i)}(m,t,e)},[m]),w=(0,o.useCallback)(function(t){return m.subscribe(t).unsubscribe},[m]),S=(0,s.useSyncExternalStoreWithSelector)(w,b,b,C,x);return(0,o.useEffect)(function(){var t=g.state;return m.start(t?u.ZM.create(t):void 0),function(){m.stop(),m.status=r.NotStarted}},[]),[S,m.send,m]}},42473:function(t){t.exports=function(){}},98933:function(t,e,n){n.d(e,{f3:function(){return c},mu:function(){return a},vk:function(){return u}});var i=n(63056),r=n(89823),o=n(10797);function s(t){var e;return(e={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:t}}})[r.L$]=function(){return this},e}function a(t,e,n,i){var a,c=(0,r.j)(t.src),u=null===(a=null==e?void 0:e.options.services)||void 0===a?void 0:a[c.type],f=t.data?(0,r.QX)(t.data,n,i):void 0,h=u?function(t,e,n){var i=s(e);if(i.deferred=!0,(0,r.O4)(t)){var a=i.state=(0,o.J)(void 0,function(){return(n?t.withContext(n):t).initialState});i.getSnapshot=function(){return a}}return i}(u,t.id,f):s(t.id);return h.meta=t,h}function c(t){return function(t){try{return"function"==typeof t.send}catch(t){return!1}}(t)&&"id"in t}function u(t){var e;return(0,i.pi)(((e={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[r.L$]=function(){return this},e),t)}},4723:function(t,e,n){n.d(e,{J:function(){return m}});var i=n(63056),r=n(89823),o=n(59043),s=n(54911),a=n(3884),c=n(30375),u=n(14066),f=n(87353),h=n(56115),l=n(98933);function d(t){return(0,i.pi)((0,i.pi)({type:a.dw},t),{toJSON:function(){t.onDone,t.onError;var e=(0,i._T)(t,["onDone","onError"]);return(0,i.pi)((0,i.pi)({},e),{type:a.dw,src:function(t){if("string"==typeof t){var e={type:t};return e.toString=function(){return t},e}return t}(t.src)})}})}var p={},v=function(t){return"#"===t[0]},y=function(t,e,n){var i=n.slice(0,-1).some(function(t){return!("cond"in t)&&!("in"in t)&&((0,r.HD)(t.target)||(0,r.O4)(t.target))});(0,r.ZK)(!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.")},g=function(){function t(e,n,o,s){var a,l=this;void 0===o&&(o="context"in e?e.context:void 0),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==s?void 0:s.parent,this.key=this.config.key||(null==s?void 0:s.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:f.iS),this.id=this.config.id||(0,i.ev)([this.machine.key],(0,i.CR)(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!==(a=this.config.schema)&&void 0!==a?a:{},this.description=this.config.description,u.M||(0,r.ZK)(!("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.Q8)(this.config.states,function(e,n){var r,o=new t(e,{},void 0,{parent:l,key:n});return Object.assign(l.idMap,(0,i.pi)(((r={})[o.id]=o,r),o.idMap)),o}):p;var v=0;!function t(e){var n,r;e.order=v++;try{for(var o=(0,i.XA)((0,h.G)(e)),s=o.next();!s.done;s=o.next()){var a=s.value;t(a)}}catch(t){n={error:t}}finally{try{s&&!s.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: 12,878 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.qo)(this.config.entry||this.config.onEntry).map(function(t){return(0,c.Q8)(t)}),this.onExit=(0,r.qo)(this.config.exit||this.config.onExit).map(function(t){return(0,c.Q8)(t)}),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=(0,r.qo)(this.config.invoke).map(function(t,e){if((0,r.O4)(t)){var n,o,s=(0,r.bx)(l.id,e);return l.machine.options.services=(0,i.pi)(((n={})[s]=t,n),l.machine.options.services),d({src:s,id:s})}if((0,r.HD)(t.src)){var s=t.id||(0,r.bx)(l.id,e);return d((0,i.pi)((0,i.pi)({},t),{id:s,src:t.src}))}if((0,r.O4)(t.src)||(0,r.mf)(t.src)){var s=t.id||(0,r.bx)(l.id,e);return l.machine.options.services=(0,i.pi)(((o={})[s]=t.src,o),l.machine.options.services),d((0,i.pi)((0,i.pi)({id:s},t),{src:s}))}var a=t.src;return d((0,i.pi)((0,i.pi)({id:(0,r.bx)(l.id,e)},t),{src:a}))}),this.activities=(0,r.qo)(this.config.activities).concat(this.invoke).map(function(t){return(0,c.XA)(t)}),this.transition=this.transition.bind(this),this.tags=(0,r.qo)(this.config.tags)}return t.prototype._init=function(){this.__cache.transitions||(0,h.ac)(this).forEach(function(t){return t.on})},t.prototype.withConfig=function(e,n){var r=this.options,o=r.actions,s=r.activities,a=r.guards,c=r.services,u=r.delays;return new t(this.config,{actions:(0,i.pi)((0,i.pi)({},o),e.actions),activities:(0,i.pi)((0,i.pi)({},s),e.activities),guards:(0,i.pi)((0,i.pi)({},a),e.guards),services:(0,i.pi)((0,i.pi)({},c),e.services),delays:(0,i.pi)((0,i.pi)({},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.mf)(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.Q8)(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.mf)(e)?"".concat(t.id,":delay[").concat(n,"]"):e,o=(0,c.e4)(i,t.id);return t.onEntry.push((0,c.lW)(o,{delay:e})),t.onExit.push((0,c.al)(o)),o};return((0,r.kJ)(e)?e.map(function(t,e){var r=n(t.delay,e);return(0,i.pi)((0,i.pi)({},t),{event:r})}):(0,r.xH)(Object.keys(e).map(function(t,o){var s=e[t],a=(0,r.HD)(s)?{target:s}:s,c=isNaN(+t)?t:+t,u=n(c,o);return(0,r.qo)(a).map(function(t){return(0,i.pi)((0,i.pi)({},t),{event:u,delay:c})})}))).map(function(e){var n=e.delay;return(0,i.pi)((0,i.pi)({},t.formatTransition(e)),{delay:n})})},t.prototype.getStateNodes=function(t){var e,n=this;if(!t)return[];var o=t instanceof s.ZM?t.value:(0,r.WM)(t,this.delimiter);if((0,r.HD)(o)){var a=this.getStateNode(o).initial;return void 0!==a?this.getStateNodes(((e={})[o]=a,e)):[this,this.states[o]]}var c=Object.keys(o),u=[this];return u.push.apply(u,(0,i.ev)([],(0,i.CR)((0,r.xH)(c.map(function(t){return n.getStateNode(t).getStateNodes(o[t])}))),!1)),u},t.prototype.handles=function(t){var e=(0,r.x6)(t);return this.events.includes(e)},t.prototype.resolveState=function(t){var e=t instanceof s.ZM?t:s.ZM.create(t),n=Array.from((0,h.P_)([],this.getStateNodes(e.value)));return new s.ZM((0,i.pi)((0,i.pi)({},e),{value:this.resolve(e.value),configuration:n,done:(0,h.Ij)(n,this),tags:(0,h.Oe)(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,s,a={};try{for(var c=(0,i.XA)(Object.keys(t)),u=c.next();!u.done;u=c.next()){var f=u.value,h=t[f];if(h){var l=this.getStateNode(f)._transition(h,e,n);l&&(a[f]=l)}}}catch(t){o={error:t}}finally{try{u&&!u.done&&(s=c.return)&&s.call(c)}finally{if(o)throw o.error}}var d=Object.keys(a).map(function(t){return a[t]}),p=(0,r.xH)(d.map(function(t){return t.transitions}));if(!d.some(function(t){return t.transitions.length>0}))return this.next(e,n);var v=(0,r.xH)(d.map(function(t){return t.entrySet})),y=(0,r.xH)(Object.keys(a).map(function(t){return a[t].configuration}));return{transitions:p,entrySet:v,exitSet:(0,r.xH)(d.map(function(t){return t.exitSet})),configuration:y,source:e,actions:(0,r.xH)(Object.keys(a).map(function(t){return a[t].actions}))}},t.prototype._transition=function(t,e,n){return(0,r.HD)(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.g5)(e))},t.prototype.next=function(t,e){var n,o,s,a=this,c=e.name,u=[],f=[];try{for(var h=(0,i.XA)(this.getCandidates(c)),l=h.next();!l.done;l=h.next()){var d=l.value,p=d.cond,y=d.in,g=t.context,m=!y||((0,r.HD)(y)&&v(y)?t.matches((0,r.WM)(this.getStateNodeById(y).path,this.delimiter)):(0,r.W)((0,r.WM)(y,this.delimiter),(0,r.ET)(this.path.slice(0,-2))(t.value))),b=!1;try{b=!p||(0,r.vx)(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(b&&m){void 0!==d.target&&(f=d.target),u.push.apply(u,(0,i.ev)([],(0,i.CR)(d.actions),!1)),s=d;break}}}catch(t){n={error:t}}finally{try{l&&!l.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}if(s){if(!f.length)return{transitions:[s],entrySet:[],exitSet:[],configuration:t.value?[this]:[],source:t,actions:u};var x=(0,r.xH)(f.map(function(e){return a.getRelativeStateNodes(e,t.historyValue)})),w=!!s.internal;return{transitions:[s],entrySet:w?[]:(0,r.xH)(x.map(function(t){return a.nodesFromChild(t)})),exitSet:w?[]:[this],configuration:x,source:t,actions:u}}},t.prototype.nodesFromChild=function(t){if(t.escapes(this))return[];for(var e=[],n=t;n&&n!==this;)e.push(n),n=n.parent;return e.push(this),e},t.prototype.escapes=function(t){if(this===t)return!1;for(var e=this.parent;e;){if(e===t)return!1;e=e.parent}return!0},t.prototype.getActions=function(t,e,n,o){var s,a,u,f,l=(0,h.P_)([],o?this.getStateNodes(o.value):[this]),d=t.configuration.length?(0,h.P_)(l,t.configuration):l;try{for(var p=(0,i.XA)(d),v=p.next();!v.done;v=p.next()){var y=v.value;(0,h.e$)(l,y)||t.entrySet.push(y)}}catch(t){s={error:t}}finally{try{v&&!v.done&&(a=p.return)&&a.call(p)}finally{if(s)throw s.error}}try{for(var g=(0,i.XA)(l),m=g.next();!m.done;m=g.next()){var y=m.value;(!(0,h.e$)(d,y)||(0,h.e$)(t.exitSet,y.parent))&&t.exitSet.push(y)}}catch(t){u={error:t}}finally{try{m&&!m.done&&(f=g.return)&&f.call(g)}finally{if(u)throw u.error}}var b=(0,r.xH)(t.entrySet.map(function(i){var o=[];if("final"!==i.type)return o;var s=i.parent;if(!s.parent)return o;o.push((0,c.aT)(i.id,i.doneData),(0,c.aT)(s.id,i.doneData?(0,r.QX)(i.doneData,e,n):void 0));var a=s.parent;return"parallel"===a.type&&(0,h.G)(a).every(function(e){return(0,h.Ij)(t.configuration,e)})&&o.push((0,c.aT)(a.id)),o}));t.exitSet.sort(function(t,e){return e.order-t.order}),t.entrySet.sort(function(t,e){return t.order-e.order});var x=new Set(t.entrySet),w=new Set(t.exitSet),S=(0,i.CR)([(0,r.xH)(Array.from(x).map(function(t){return(0,i.ev)((0,i.ev)([],(0,i.CR)(t.activities.map(function(t){return(0,c.BL)(t)})),!1),(0,i.CR)(t.onEntry),!1)})).concat(b.map(c.OU)),(0,r.xH)(Array.from(w).map(function(t){return(0,i.ev)((0,i.ev)([],(0,i.CR)(t.onExit),!1),(0,i.CR)(t.activities.map(function(t){return(0,c.sT)(t)})),!1)}))],2),_=S[0],O=S[1];return(0,c.AE)(O.concat(t.actions).concat(_),this.machine.options.actions)},t.prototype.transition=function(t,e,n){void 0===t&&(t=this.initialState);var o,a=(0,r.g5)(e);if(t instanceof s.ZM)o=void 0===n?t:this.resolveState(s.ZM.from(t,n));else{var c=(0,r.HD)(t)?this.resolve((0,r.on)(this.getResolvedPath(t))):this.resolve(t),f=null!=n?n:this.machine.context;o=this.resolveState(s.ZM.from(c,f))}if(!u.M&&"*"===a.name)throw Error("An event cannot have the wildcard type ('".concat("*","')"));if(this.strict&&!this.events.includes(a.name)&&!(0,r.JQ)(a.name))throw Error("Machine '".concat(this.id,"' does not accept event '").concat(a.name,"'"));var l=this._transition(o.value,o,a)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:o,actions:[]},d=(0,h.P_)([],this.getStateNodes(o.value)),p=l.configuration.length?(0,h.P_)(d,l.configuration):d;return l.configuration=(0,i.ev)([],(0,i.CR)(p),!1),this.resolveTransition(l,o,o.context,a)},t.prototype.resolveRaisedTransition=function(t,e,n){var r,o=t.actions;return(t=this.transition(t,e))._event=n,t.event=n.data,(r=t.actions).unshift.apply(r,(0,i.ev)([],(0,i.CR)(o),!1)),t},t.prototype.resolveTransition=function(t,e,n,u){var f,d,p=this;void 0===u&&(u=c.bf);var v=t.configuration,y=!e||t.transitions.length>0,g=y?(0,h.NA)(this.machine,v):void 0,m=e?e.historyValue?e.historyValue:t.source?this.machine.historyValue(e.value):void 0:void 0,b=this.getActions(t,n,u,e),x=e?(0,i.pi)({},e.activities):{};try{for(var w=(0,i.XA)(b),S=w.next();!S.done;S=w.next()){var _=S.value;_.type===a.BL?x[_.activity.id||_.activity.type]=_:_.type===a.sT&&(x[_.activity.id||_.activity.type]=!1)}}catch(t){f={error:t}}finally{try{S&&!S.done&&(d=w.return)&&d.call(w)}finally{if(f)throw f.error}}var O=(0,i.CR)((0,c.yC)(this,e,n,u,b,this.machine.config.preserveActionOrder),2),k=O[0],E=O[1],T=(0,i.CR)((0,r.uK)(k,function(t){return t.type===a.OU||t.type===a.lW&&t.to===o.K.Internal}),2),M=T[0],j=T[1],A=k.filter(function(t){var e;return t.type===a.BL&&(null===(e=t.activity)||void 0===e?void 0:e.type)===a.dw}).reduce(function(t,e){return t[e.activity.id]=(0,l.mu)(e.activity,p.machine,E,u),t},e?(0,i.pi)({},e.children):{}),C=y?t.configuration:e?e.configuration:[],D=(0,h.Ij)(C,this),P=new s.ZM({value:g||e.value,context:E,_event:u,_sessionid:e?e._sessionid:null,historyValue:g?m?(0,r.yv)(m,g):void 0:e?e.historyValue:void 0,history:!g||t.source?e:void 0,actions:g?j:[],activities:g?x:e?e.activities:{},events:[],configuration:C,transitions:t.transitions,children:A,done:D,tags:null==e?void 0:e.tags,machine:this}),N=n!==E;P.changed=u.name===a.Vx||N;var I=P.history;I&&delete I.history;var V=!D&&(this._transient||v.some(function(t){return t._transient}));if(!y&&(!V||""===u.name))return P;var L=P;if(!D)for(V&&(L=this.resolveRaisedTransition(L,{type:a.IA},u));M.length;){var R=M.shift();L=this.resolveRaisedTransition(L,R._event,u)}var H=L.changed||(I?!!L.actions.length||N||typeof I.value!=typeof L.value||!(0,s.j_)(L.value,I.value):void 0);return L.changed=H,L.history=I,L.tags=(0,h.Oe)(L.configuration),L},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.get
1StateNodeById(t.slice(1))}catch(t){}for(var e=(0,r.Q9)(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||p;switch(this.type){case"parallel":return(0,r.Q8)(this.initialStateValue,function(e,i){return e?n.getStateNode(i).resolve(t[i]||e):p});case"compound":if((0,r.HD)(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.Q8)(t,function(t,e){return t?n.getStateNode(e).resolve(t):p});default:return t||p}},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.Q9)(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.ib)(this.states,function(t){return t.initialStateValue||p},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.N9)(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},enumerable:!1,configurable:!0}),t.prototype.getInitialState=function(t,e){this._init();var n=this.getStateNodes(t);return this.resolveTransition({configuration:n,entrySet: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.HD)(e.target)&&v(e.target)?(0,r.on)(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.N9)(this))return[this];if("compound"===this.type&&!this.initial)return u.M||(0,r.ZK)(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this];var e=(0,r.SA)(this.initialStateValue);return(0,r.xH)(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.CR)(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.ib)(this.states,function(e,n){if(!t)return e.historyValue();var i=(0,r.HD)(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.xH)((0,r.SA)(i).map(function(t){return n.getFromRelativePath(t)})):n.initialStateNodes}var o=(0,r.gk)(n.path,"states")(t).current;return(0,r.HD)(o)?[n.getStateNode(o)]:(0,r.xH)((0,r.SA)(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.xH)(Object.keys(this.states).map(function(e){return t.states[e].stateIds}));return[this.id].concat(e)}
1,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,s=new Set(this.ownEvents);if(o)try{for(var a=(0,i.XA)(Object.keys(o)),c=a.next();!c.done;c=a.next()){var u=o[c.value];if(u.states)try{for(var f=(n=void 0,(0,i.XA)(u.events)),h=f.next();!h.done;h=f.next()){var l=h.value;s.add("".concat(l))}}catch(t){n={error:t}}finally{try{h&&!h.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(s)},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.HD)(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.rg)(t.target),o="internal"in t?t.internal:!n||n.some(function(t){return(0,r.HD)(t)&&t[0]===e.delimiter}),s=this.machine.options.guards,a=this.resolveTarget(n),u=(0,i.pi)((0,i.pi)({},t),{actions:(0,c.AE)((0,r.qo)(t.actions)),cond:(0,r.Qi)(t.cond,s),target:a,source:this,internal:o,eventType:t.event,toJSON:function(){return(0,i.pi)((0,i.pi)({},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 s=this.config.on,a=s["*"],f=(0,i._T)(s,["*"]);n=(0,r.xH)(Object.keys(f).map(function(t){u.M||""!==t||(0,r.ZK)(!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.jh)(t,f[t]);return u.M||y(o,t,e),e}).concat((0,r.jh)("*",void 0===a?[]:a)))}}else n=[];var h=this.config.always?(0,r.jh)("",this.config.always):[],l=this.config.onDone?(0,r.jh)(String((0,c.aT)(this.id)),this.config.onDone):[];u.M||(0,r.ZK)(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var d=(0,r.xH)(this.invoke.map(function(t){var e=[];return t.onDone&&e.push.apply(e,(0,i.ev)([],(0,i.CR)((0,r.jh)(String((0,c.Sl)(t.id)),t.onDone)),!1)),t.onError&&e.push.apply(e,(0,i.ev)([],(0,i.CR)((0,r.jh)(String((0,c.vU)(t.id)),t.onError)),!1)),e})),p=this.after,v=(0,r.xH)((0,i.ev)((0,i.ev)((0,i.ev)((0,i.ev)([],(0,i.CR)(l),!1),(0,i.CR)(d),!1),(0,i.CR)(n),!1),(0,i.CR)(h),!1).map(function(t){return(0,r.qo)(t).map(function(t){return o.formatTransition(t)})}));try{for(var g=(0,i.XA)(p),m=g.next();!m.done;m=g.next()){var b=m.value;v.push(b)}}catch(e){t={error:e}}finally{try{m&&!m.done&&(e=g.return)&&e.call(g)}finally{if(t)throw t.error}}return v},t}();function m(t,e,n){return void 0===n&&(n=t.context),new g(t,e,n)}},54911:function(t,e,n){n.d(e,{TL:function(){return u},ZM:function(){return h},j1:function(){return f},j_:function(){return function t(e,n){if(e===n)return!0;if(void 0===e||void 0===n)return!1;if((0,o.HD)(e)||(0,o.HD)(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(63056),r=n(87353),o=n(89823),s=n(56115),a=n(30375),c=n(14066);function u(t){return"object"==typeof t&&null!==t&&"value"in t&&"_event"in t}function f(t,e){var n=t.exec;return(0,i.pi)((0,i.pi)({},t),{exec:void 0!==n?function(){return n(e.context,e.event,{action:t,state:e,_event:e._event})}:void 0})}var h=function(){function t(t){var e,n=this;this.actions=[],this.activities=r.qP,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.qP,this.meta=(0,s.xZ)(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)&&void 0!==e?e:new Set,this.machine=t.machine,Object.defineProperty(this,"nextEvents",{get:function(){return(0,s.nJ)(n.configuration)}})}return t.from=function(e,n){if(e instanceof t)return 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;var i=a.bf;return new t({value:e,context:n,_event:i,_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=a.bf;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.HD)(t))return[t];var r=Object.keys(t);return r.concat.apply(r,(0,i.ev)([],(0,i.CR)(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._T)(this,["configuration","transitions","tags","machine"]);return(0,i.pi)((0,i.pi)({},e),{tags:Array.from(t)})},t.prototype.matches=function(t){return(0,o.W)(t,this.value)},t.prototype.hasTag=function(t){return this.tags.has(t)},t.prototype.can=function(t){c.M&&(0,o.ZK)(!!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?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}()},63056:function(t,e,n){n.d(e,{CR:function(){return s},XA:function(){return o},_T:function(){return r},ev:function(){return a},pi:function(){return i}});/*! *****************************************************************************
2Copyright (c) Microsoft Corporation.
3
4Permission to use, copy, modify, and/or distribute this software for any
5purpose with or without fee is hereby granted.
6
7THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13PERFORMANCE OF THIS SOFTWARE.
14***************************************************************************** */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 s(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)s.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 s}function a(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))}},3884:function(t,e,n){n.d(e,{BL:function(){return r},IA:function(){return u},Le:function(){return m},Mg:function(){return p},OU:function(){return s},RN:function(){return g},S1:function(){return l},Vx:function(){return y},al:function(){return c},cM:function(){return h},dw:function(){return d},f0:function(){return f},lW:function(){return a},sT:function(){return o},vU:function(){return v}});var i=n(59043),r=i.M.Start,o=i.M.Stop,s=i.M.Raise,a=i.M.Send,c=i.M.Cancel,u=i.M.NullEvent,f=i.M.Assign;i.M.After,i.M.DoneState;var h=i.M.Log,l=i.M.Init,d=i.M.Invoke;i.M.ErrorExecution;var p=i.M.ErrorPlatform,v=i.M.ErrorCustom,y=i.M.Update,g=i.M.Choose,m=i.M.Pure},30375:function(t,e,n){n.d(e,{AE:function(){return h},BL:function(){return m},OU:function(){return d},Q8:function(){return f},Sl:function(){return _},Tn:function(){return k},XA:function(){return l},aT:function(){return S},al:function(){return g},bf:function(){return c},e4:function(){return w},f0:function(){return x},lW:function(){return p},lj:function(){return v},o$:function(){return u},sT:function(){return b},vU:function(){return O},xc:function(){return y},yC:function(){return function t(e,n,c,u,l,d){void 0===d&&(d=!1);var p=(0,i.CR)(d?[[],l]:(0,s.uK)(l,function(t){return t.type===o.f0}),2),v=p[0],y=p[1],g=v.length?(0,s.dt)(c,u,v,n):c,m=d?[c]:void 0;return[(0,s.xH)(y.map(function(c){switch(c.type){case o.OU:return{type:o.OU,_event:(0,s.g5)(c.event)};case o.lW:var l,p,v,y,b=function(t,e,n,r){var o,a={_event:n}
14,c=(0,s.g5)((0,s.mf)(t.event)?t.event(e,n.data,a):t.event);if((0,s.HD)(t.delay)){var u=r&&r[t.delay];o=(0,s.mf)(u)?u(e,n.data,a):u}else o=(0,s.mf)(t.delay)?t.delay(e,n.data,a):t.delay;var f=(0,s.mf)(t.to)?t.to(e,n.data,a):t.to;return(0,i.pi)((0,i.pi)({},t),{to:f,_event:c,event:c.data,delay:o})}(c,g,u,e.options.delays);return a.M||(0,s.ZK)(!(0,s.HD)(c.delay)||"number"==typeof b.delay,"No delay reference for delay expression '".concat(c.delay,"' was found on machine '").concat(e.id,"'")),b;case o.cM:return p=g,(0,i.pi)((0,i.pi)({},c),{value:(0,s.HD)(c.expr)?c.expr:c.expr(p,u.data,{_event:u})});case o.RN:var x=null===(l=c.conds.find(function(t){var i=(0,s.Qi)(t.cond,e.options.guards);return!i||(0,s.vx)(e,i,g,u,n)}))||void 0===l?void 0:l.actions;if(!x)return[];var w=(0,i.CR)(t(e,n,g,u,h((0,s.qo)(x),e.options.actions),d),2),S=w[0];return g=w[1],null==m||m.push(g),S;case o.Le:var x=c.get(g,u.data);if(!x)return[];var _=(0,i.CR)(t(e,n,g,u,h((0,s.qo)(x),e.options.actions),d),2),O=_[0];return g=_[1],null==m||m.push(g),O;case o.sT:return v=g,y=(0,s.mf)(c.activity)?c.activity(v,u.data):c.activity,{type:r.M.Stop,activity:"string"==typeof y?{id:y}:y};case o.f0:g=(0,s.dt)(g,u,[c],n),null==m||m.push(g);break;default:var k=f(c,e.options.actions),E=k.exec;if(E&&m){var T=m.length-1;k=(0,i.pi)((0,i.pi)({},k),{exec:function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];E.apply(void 0,(0,i.ev)([m[T]],(0,i.CR)(e),!1))}})}return k}}).filter(function(t){return!!t})),g]}}});var i=n(63056),r=n(59043),o=n(3884),s=n(89823),a=n(14066),c=(0,s.g5)({type:o.S1});function u(t,e){return e&&e[t]||void 0}function f(t,e){var n;if((0,s.HD)(t)||"number"==typeof t){var r=u(t,e);n=(0,s.mf)(r)?{type:t,exec:r}:r||{type:t,exec:void 0}}else if((0,s.mf)(t))n={type:t.name||t.toString(),exec:t};else{var r=u(t.type,e);if((0,s.mf)(r))n=(0,i.pi)((0,i.pi)({},t),{exec:r});else if(r){var o=r.type||t.type;n=(0,i.pi)((0,i.pi)((0,i.pi)({},r),t),{type:o})}else n=t}return n}var h=function(t,e){return t?((0,s.kJ)(t)?t:[t]).map(function(t){return f(t,e)}):[]};function l(t){var e=f(t);return(0,i.pi)((0,i.pi)({id:(0,s.HD)(t)?t:e.id},e),{type:e.type})}function d(t){return(0,s.HD)(t)?{type:o.OU,event:t}:p(t,{to:r.K.Internal})}function p(t,e){return{to:e?e.to:void 0,type:o.lW,event:(0,s.mf)(t)?t:(0,s._v)(t),delay:e?e.delay:void 0,id:e&&void 0!==e.id?e.id:(0,s.mf)(t)?t.name:(0,s.x6)(t)}}function v(t,e){return p(t,(0,i.pi)((0,i.pi)({},e),{to:r.K.Parent}))}function y(){return v(o.Vx)}var g=function(t){return{type:o.al,sendId:t}};function m(t){var e=l(t);return{type:r.M.Start,activity:e,exec:void 0}}function b(t){var e=(0,s.mf)(t)?t:l(t);return{type:r.M.Stop,activity:e,exec:void 0}}var x=function(t){return{type:o.f0,assignment:t}};function w(t,e){return"".concat(r.M.After,"(").concat(t,")").concat(e?"#".concat(e):"")}function S(t,e){var n="".concat(r.M.DoneState,".").concat(t),i={type:n,data:e};return i.toString=function(){return n},i}function _(t,e){var n="".concat(r.M.DoneInvoke,".").concat(t),i={type:n,data:e};return i.toString=function(){return n},i}function O(t,e){var n="".concat(r.M.ErrorPlatform,".").concat(t),i={type:n,data:e};return i.toString=function(){return n},i}function k(t,e){return p(function(t,e){return e},(0,i.pi)((0,i.pi)({},e),{to:t}))}},87353:function(t,e,n){n.d(e,{TV:function(){return o},iS:function(){return i},qP:function(){return r},rt:function(){return s}});var i=".",r={},o="xstate.guard",s=""},14066:function(t,e,n){n.d(e,{M:function(){return i}});var i=!0},62494:function(t,e,n){n.d(e,{f0:function(){return r}});var i=n(30375),r=i.f0;i.lW,i.lj,i.xc,i.Tn,i.Sl},10797:function(t,e,n){n.d(e,{J:function(){return r}});var i=[],r=function(t,e){i.push(t);var n=e(t);return i.pop(),n}},56115:function(t,e,n){n.d(e,{G:function(){return s},Ij:function(){return function t(e,n){return"compound"===n.type?s(n).some(function(t){return"final"===t.type&&h(e,t)}):"parallel"===n.type&&s(n).every(function(n){return t(e,n)})}},N9:function(){return o},NA:function(){return f},Oe:function(){return p},P_:function(){return c},ac:function(){return a},e$:function(){return h},nJ:function(){return l},xZ:function(){return d}});var i=n(63056),r=n(89823),o=function(t){return"atomic"===t.type||"final"===t.type};function s(t){return Object.keys(t.states).map(function(e){return t.states[e]})}function a(t){var e=[t];return o(t)?e:e.concat((0,r.xH)(s(t).map(a)))}function c(t,e){var n,r,o,a,c,f,h,l,d=u(new Set(t)),p=new Set(e);try{for(var v=(0,i.XA)(p),y=v.next();!y.done;y=v.next())for(var g=y.value,m=g.parent;m&&!p.has(m);)p.add(m),m=m.parent}catch(t){n={error:t}}finally{try{y&&!y.done&&(r=v.return)&&r.call(v)}finally{if(n)throw n.error}}var b=u(p);try{for(var x=(0,i.XA)(p),w=x.next();!w.done;w=x.next()){var g=w.value;if("compound"!==g.type||b.get(g)&&b.get(g).length){if("parallel"===g.type)try{for(var S=(c=void 0,(0,i.XA)(s(g))),_=S.next();!_.done;_=S.next()){var O=_.value;"history"!==O.type&&(p.has(O)||(p.add(O),d.get(O)?d.get(O).forEach(function(t){return p.add(t)}
14):O.initialStateNodes.forEach(function(t){return p.add(t)})))}}catch(t){c={error:t}}finally{try{_&&!_.done&&(f=S.return)&&f.call(S)}finally{if(c)throw c.error}}}else d.get(g)?d.get(g).forEach(function(t){return p.add(t)}):g.initialStateNodes.forEach(function(t){return p.add(t)})}}catch(t){o={error:t}}finally{try{w&&!w.done&&(a=x.return)&&a.call(x)}finally{if(o)throw o.error}}try{for(var k=(0,i.XA)(p),E=k.next();!E.done;E=k.next())for(var g=E.value,m=g.parent;m&&!p.has(m);)p.add(m),m=m.parent}catch(t){h={error:t}}finally{try{E&&!E.done&&(l=k.return)&&l.call(k)}finally{if(h)throw h.error}}return p}function u(t){var e,n,r=new Map;try{for(var o=(0,i.XA)(t),s=o.next();!s.done;s=o.next()){var a=s.value;r.has(a)||r.set(a,[]),a.parent&&(r.has(a.parent)||r.set(a.parent,[]),r.get(a.parent).push(a))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}function f(t,e){var n=c([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 s={};return i.forEach(function(e){s[e.key]=t(e,n)}),s}(t,u(n))}function h(t,e){return Array.isArray(t)?t.some(function(t){return t===e}):t instanceof Set&&t.has(e)}function l(t){return(0,i.ev)([],(0,i.CR)(new Set((0,r.xH)((0,i.ev)([],(0,i.CR)(t.map(function(t){return t.ownEvents})),!1)))),!1)}function d(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.xH)(t.map(function(t){return t.tags})))}},59043:function(t,e,n){var i,r,o,s;n.d(e,{K:function(){return r},M:function(){return i}}),(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",(s=r||(r={})).Parent="#_parent",s.Internal="#_internal"},89823:function(t,e,n){n.d(e,{Bc:function(){return D},ET:function(){return d},HD:function(){return T},HV:function(){return x},JQ:function(){return m},L$:function(){return A},O4:function(){return C},Q8:function(){return h},Q9:function(){return c},QX:function(){return g},Qi:function(){return M},SA:function(){return function t(e){return e?T(e)?[[e]]:v(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]]})):[[]]}},W:function(){return function t(e,n,i){void 0===i&&(i=o.iS);var r=u(e,i),s=u(n,i);return T(s)?!!T(r)&&s===r:T(r)?r in s:Object.keys(r).every(function(e){return e in s&&t(r[e],s[e])})}},WM:function(){return u},ZK:function(){return O},_v:function(){return P},bi:function(){return j},bx:function(){return K},dt:function(){return _},g5:function(){return N},gk:function(){return p},ib:function(){return l},j:function(){return H},jh:function(){return I},kJ:function(){return k},mf:function(){return E},on:function(){return f},qo:function(){return y},rg:function(){return V},uK:function(){return w},v4:function(){return L},vx:function(){return R},x6:function(){return a},xH:function(){return v},y8:function(){return b},yv:function(){return S},zM:function(){return X}});var i,r=n(63056),o=n(87353),s=n(14066);function a(t){try{return T(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 c(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 u(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(c(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 h(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 l(t,e,n){var i,o,s={};try{for(var a=(0,r.XA)(Object.keys(t)),c=a.next();!c.done;c=a.next()){var u=c.value,f=t[u];n(f)&&(s[u]=e(f,u,t))}}catch(t){i={error:t}}
14finally{try{c&&!c.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}return s}var d=function(t){return function(e){var n,i,o=e;try{for(var s=(0,r.XA)(t),a=s.next();!a.done;a=s.next())o=o[a.value]}catch(t){n={error:t}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return o}};function p(t,e){return function(n){var i,o,s=n;try{for(var a=(0,r.XA)(t),c=a.next();!c.done;c=a.next()){var u=c.value;s=s[e][u]}}catch(t){i={error:t}}finally{try{c&&!c.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}return s}}function v(t){var e;return(e=[]).concat.apply(e,(0,r.ev)([],(0,r.CR)(t),!1))}function y(t){return void 0===t?[]:k(t)?t:[t]}function g(t,e,n){if(E(t))return t(e,n.data);var i,o,s={};try{for(var a=(0,r.XA)(Object.keys(t)),c=a.next();!c.done;c=a.next()){var u=c.value,f=t[u];E(f)?s[u]=f(e,n.data):s[u]=f}}catch(t){i={error:t}}finally{try{c&&!c.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}return s}function m(t){return/^(done|error)\./.test(t)}function b(t){return!!(t instanceof Promise||null!==t&&(E(t)||"object"==typeof t)&&E(t.then))}function x(t){return null!==t&&"object"==typeof t&&"transition"in t&&"function"==typeof t.transition}function w(t,e){var n,i,o=(0,r.CR)([[],[]],2),s=o[0],a=o[1];try{for(var c=(0,r.XA)(t),u=c.next();!u.done;u=c.next()){var f=u.value;e(f)?s.push(f):a.push(f)}}catch(t){n={error:t}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}return[s,a]}function S(t,e){return{current:e,states:function t(e,n){return h(e.states,function(e,i){if(e){var r=(T(n)?void 0:n[i])||(e?e.current:void 0);if(r)return{current:r,states:t(e,r)}}})}(t,e)}}function _(t,e,n,i){return s.M||O(!!t,"Attempting to update undefined context"),t?n.reduce(function(t,n){var o,s,a=n.assignment,c={state:i,action:n,_event:e},u={};if(E(a))u=a(t,e.data,c);else try{for(var f=(0,r.XA)(Object.keys(a)),h=f.next();!h.done;h=f.next()){var l=h.value,d=a[l];u[l]=E(d)?d(t,e.data,c):d}}catch(t){o={error:t}}finally{try{h&&!h.done&&(s=f.return)&&s.call(f)}finally{if(o)throw o.error}}return Object.assign({},t,u)},t):t}var O=function(){};function k(t){return Array.isArray(t)}function E(t){return"function"==typeof t}function T(t){return"string"==typeof t}function M(t,e){return t?T(t)?{type:o.TV,name:t,predicate:e?e[t]:void 0}:E(t)?{type:o.TV,name:t.name,predicate:t}:t:void 0}function j(t){try{return"subscribe"in t&&E(t.subscribe)}catch(t){return!1}}s.M||(O=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 A="function"==typeof Symbol&&Symbol.observable||"@@observable";function C(t){return!!t&&"__xstatenode"in t}function D(t){return!!t&&"function"==typeof t.send}function P(t,e){return T(t)||"number"==typeof t?(0,r.pi)({type:t},e):t}function N(t,e){if(!T(t)&&"$$type"in t&&"scxml"===t.$$type)return t;var n=P(t);return(0,r.pi)({name:n.type,data:n,$$type:"scxml",type:"external"},e)}function I(t,e){return(k(e)?e:[e]).map(function(e){return void 0===e||"string"==typeof e||C(e)?{target:e,event:t}:(0,r.pi)((0,r.pi)({},e),{event:t})})}function V(t){if(void 0!==t&&t!==o.rt)return y(t)}function L(t,e,n){if(!s.M){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 R(t,e,n,i,r){var s=t.options.guards,a={state:r,cond:e,_event:i};if(e.type===o.TV)return((null==s?void 0:s[e.name])||e.predicate)(n,i.data,a);var c=null==s?void 0:s[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 H(t){return"string"==typeof t?{type:t}:t}function X(t,e,n){if("object"==typeof t)return t;var i=function(){};return{next:t,error:e||i,complete:n||i}}function K(t,e){return"".concat(t,":invocation[").concat(e,"]")}(i={})[A]=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.