PageSourceSearch

https://www.express.com/rvn/9892.9ae56c4c.chunk.js

js express.com collected 2026-09-24 17:13:06 UTC 185,534 bytes, 2 lines download raw bytes

1/*! For license information please see 9892.9ae56c4c.chunk.js.LICENSE.txt */
2"use strict";(self.webpackChunkexpress_com=self.webpackChunkexpress_com||[]).push([[9892],{96962(e,t,n){n.d(t,{A:()=>r});const r=e=>null==e?"":e.trim().toLowerCase().split(/ +/g).map(e=>e[0].toUpperCase()+e.substring(1)).join(" ")},7794(e,t,n){n.d(t,{Ay:()=>a});const r=/^(\d{2,4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,3})$/g,i=/(\d{1,2})-(\d{1,2})-(\d{2,4})/g,o=e=>1===e.toString().length?`0${e}`:e,a=(e,t)=>{if(""===e||null==e)return"";if(!0===(e=>{if(""!==e&&"string"==typeof e){const t=new Date(e);return t instanceof Date&&!isNaN(t.getTime())}return!1})(e))return((e,t)=>{const n=new Date(e),r=o(n.getUTCMinutes().toString()),i=o(n.getUTCHours().toString()),a=o(`${n.getUTCMonth()+1}`),s=o(n.getUTCDate().toString());return"YYYYDDMMTime to DDMMYYY"!==t&&e.toString().includes(":")?"MMMDDYYYY"===t?(e=>e.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"2-digit"}))(n):`${a}/${s}/${n.getUTCFullYear().toString()} ${i}:${r}`:`${a}/${s}/${n.getUTCFullYear().toString()}`})(e,t);if(null!=e.toString().match(r)){const n=e.toString().split(" "),r=n[0].split("-"),i=`${r[1]}/${r[2]}/${r[0]}`;if("YYYYDDMMTime to DDMMYYY"===t)return i;const o=n[1].split(":");return`${i} ${o[0]}:${o[1]}`}return null!==e.toString().match(i)?e.toString().replace(i,"$1/$2/$3"):""}},73094(e,t,n){function r(e){return Object.keys(e)}n.d(t,{A:()=>r})},64919(e,t,n){n.d(t,{A:()=>s});var r=n(80478),i=n(41594),o=n.n(i),a=n(81320);const s=o().forwardRef(function(e,t){const{className:n,children:i,htmlFor:s,form:c,mode:u}=e,l=(0,r._)(e,["className","children","htmlFor","form","mode"]);return o().createElement("label",Object.assign({ref:t,htmlFor:s,form:c,className:(0,a.A)("H3FHBSuu",("vertical"===u||"v"===u)&&"MiuJQpbM",("horizontal"===u||"h"===u)&&"sFZQuSDf",n)},l),i)})},71572(e,t,n){n.d(t,{A:()=>u});var r=n(80478),i=n(41594),o=n.n(i),a=n(81320);const s=(e,t)=>{var n,r,i,o;switch(e){case"a11yDisabled":return[null!==(n=null==t?void 0:t.override)&&void 0!==n?n:"",null!==(r=null==t?void 0:t.a11yDisabled)&&void 0!==r?r:""];case"error":return[null!==(i=null==t?void 0:t.override)&&void 0!==i?i:"",null!==(o=null==t?void 0:t.error)&&void 0!==o?o:""];default:return null}};var c={atom:"ZpTih5pZ",slant:"Tj1KSMik",input:"nXYPqEe-",circle:"VgYWHXuR",dot:"XL77Jfvt",slantPath:"F2nIF5-v",a11yDisabled:"v5ByVosH",error:"QDi9bLCH"};const u=o().forwardRef((e,t)=>{const{className:n,classNameInput:i,classNameCircle:u,classNameSlant:l,classNameSlantPath:d,classNameDot:f,variant:h}=e,p=(0,r._)(e,["className","classNameInput","classNameCircle","classNameSlant","classNameSlantPath","classNameDot","variant"]);return o().createElement("div",{"data-testid":"radio",className:(0,a.A)(c.atom,n)},o().createElement("input",Object.assign({ref:t,"data-testid":"input",type:"radio",className:(0,a.A)(c.input,s(h,c),i)},p)),o().createElement("div",{"data-testid":"circle",className:(0,a.A)(c.circle,u)},("a11yDisabled"===h||p.disabled)&&o().createElement("svg",{"data-testid":"slant",className:(0,a.A)(c.slant,l),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},o().createElement("path",{"data-testid":"slantPath",d:"M0 20 L20 0",className:(0,a.A)(c.slantPath,d)})),o().createElement("div",{"data-testid":"dot",className:(0,a.A)(c.dot,f)})))});u.displayName="AtomicRadio"},58424(e,t,n){n.d(t,{A:()=>l});var r=n(41594),i=n.n(r),o=n(81320),a=n(38383),s="G7yFj2fX",c="Nx5P-RHf",u="CkM2IlpT";const l=({className:e,colorSwatches:t=[],displayTitle:n=!0,onSelectColor:l,priceRange:d,productId:f,selectedSwatch:h={},size:p="small",isPriceTier:v=!1,salePrice:m,listPrice:y})=>{const[g,b]=(0,r.useState)({}),{colorCode:w,colorName:S,colorProductId:E}=h,x=t?.length>0;if((0,r.useEffect)(()=>{if(x){const{colorCode:e,colorName:n,colorProductId:r}=t[0];b({colorCode:w||e,colorName:S||n,colorProductId:E||r})}},[t,w,S,E,x]),!x)return null;const k=(0,r.useCallback)(e=>{const t=e.target.dataset,{colorname:n,colorcode:r,productid:i}=t;b({colorCode:r,colorName:n,colorProductId:i}),l?.(n,r,i)},[]),{colorName:_,colorCode:C}=g,N=_?.toLowerCase(),O=(e="")=>parseFloat(e.replace(/[^0-9.]/g,""))||0;return i().createElement("div",{className:e},n&&i().createElement("p",{className:"Kft2OXK4"},i().createElement("span",{className:s},"Color: "),i().createElement("span",{className:c},N),i().createElement("span",{className:c},C),i().createElement("span",{className:(0,o.A)("Lp6QZQ8r",(P=y,A=m,O(P)>O(A)&&u))},m||y||"")),d&&i().createElement("p",{className:"ORyIn7j-"},i().createElement("span",{className:(0,o.A)(s,v&&u)},v&&"Clearance")),i().createElement("div",{className:(0,o.A)("g4D4fpAh")},t.map(e=>{const{backgroundImage:t,colorCode:n,colorName:r,colorProductId:o}=e;return i().createElement(a.A,{backgroundImage:t,checked:r===_,className:"pYPSXESz",colorCode:n,colorName:r,id:r,key:`${r}-${n}|`,onChange:k,productId:o||f,size:p,value:r})})));var P,A}},30961(e,t,n){n.d(t,{A:()=>y});var r=n(41594),i=n.n(r),o=n(81320),a=n(73075),s="HvqGgjta";const c="default",u="hover",l="dark",d="play",f="pause",h="sound",p="mute",v={play:"dcplay",pause:"dcpause"},m=({title:e,url:t})=>i().createElement("div",{className:"z6-12Mq4"},i().createElement("a",{href:t},e)),y=e=>{const{className:t,containerClassName:n,doUseVideoPlayer:y=!0,isLazyLoaded:g=!1,onMediaSelect:b,imageAlt:w,imgSrc:S,videoSrc:E,videoState:
2x,videoWidth:k="",videoHeight:_="",onPlayPauseClick:C,soundState:N,onSoundMuteClick:O,optionalCta:P,bodyCopy:A,muteButtonClassName:T,playButtonClassName:R,videoClassName:I}=e,M=(0,r.createRef)(),[D,j]=(0,r.useState)(!0),[L,z]=(0,r.useState)(d),[B,V]=(0,r.useState)(p),[F,H]=(0,r.useState)(c),[$,U]=(0,r.useState)(c);(0,r.useEffect)(()=>{x===d&&D&&j(!1)},[D,x,N]),(0,r.useEffect)(()=>{if(M.current||y||x)switch(x){case"stop":z(d),M.current&&(M.current.currentTime=0,M.current.pause());break;case d:z(f),M.current?.play();break;case f:z(d),M.current?.pause()}},[y,x,M]),(0,r.useEffect)(()=>{if(M.current||y||N)switch(N){case p:V(h),M.current&&(M.current.muted=!0);break;case h:V(p),M.current&&(M.current.muted=!1)}},[y,N,M]);const q=(0,r.useCallback)(()=>(F===l||H(F===c?u:c),null),[F]),G=(0,r.useCallback)(()=>($===l||U($===c?u:c),null),[$]),K=(0,r.useCallback)(()=>{H(l),C()},[]),Q=(0,r.useCallback)(()=>{U(l),"function"==typeof O&&O()},[O]),Y=(0,r.useCallback)(()=>{U(c),H(c),C(),"function"==typeof O&&O()},[O]);return i().createElement("div",{className:(0,o.A)("VGXNiCQ2",t)},i().createElement("div",{className:(0,o.A)("IScykBp1",n)},i().createElement("div",{className:"Kjq0CtJ6","data-testid":"video-container-div",onClick:b,onKeyDown:b,role:"button",tabIndex:0},y&&i().createElement("video",{loop:!0,className:(0,o.A)("djzdjobH",I,y&&D&&s),"data-testid":"video-tag",onEnded:Y,playsInline:!0,preload:"metadata",ref:M,width:k,height:_},i().createElement("source",{src:E,type:"video/mp4",width:k,height:_})),g&&i().createElement("img",{alt:w,className:(0,o.A)(y&&!D&&s),src:S,width:k,height:_,loading:"lazy"}),!g&&i().createElement("img",{alt:w,className:(0,o.A)("LEt0K2l8",y&&!D&&s),src:S,width:k,height:_,loading:"eager"})),i().createElement("div",{className:"APaSgiAz"},i().createElement("div",{className:(0,o.A)("rDxYrmLB",T)},i().createElement("button",{type:"button","data-testid":`icon-${N}`,onMouseEnter:G,onMouseLeave:G,onClick:Q},i().createElement(a.A,{icon:B,size:"large",chroma:$}))),i().createElement("div",{className:(0,o.A)("TjEbbSml",R)},i().createElement("button",{type:"button","data-testid":`icon-${x}`,onMouseEnter:q,onMouseLeave:q,onClick:K},i().createElement(a.A,{icon:v[L],size:"large",chroma:F}))))),(P?.length||0)>0&&i().createElement("div",{className:"smJy3CAI"},P?.map((e,t)=>i().createElement(m,{key:t,...e}))),A&&i().createElement("div",{className:"PyxeIrSF"},A))};y.displayName="DynamicContentVideo"},35775(e,t,n){n.d(t,{P:()=>Ec});var r=n(41594),i=n.n(r),o=n(81320);function a(e,t){let n=null;return(...r)=>{null!==n&&clearTimeout(n),n=setTimeout(()=>{n=null,e(...r)},t)}}var s=n(18817),c=n(73075),u=n(47665),l=(n(9771),d()?r.useLayoutEffect:r.useEffect);"undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math&&self;function d(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var f=n(75206);const h=function(e){var t,n=e.children,i=e.type,o=void 0===i?"reach-portal":i,a=(0,r.useRef)(null),s=(0,r.useRef)(null),c=(t=(0,r.useState)(Object.create(null))[1],(0,r.useCallback)(function(){t(Object.create(null))},[]));return l(function(){if(a.current){var e=a.current.ownerDocument;return s.current=null==e?void 0:e.createElement(o),e.body.appendChild(s.current),c(),function(){s.current&&s.current.ownerDocument&&s.current.ownerDocument.body.removeChild(s.current)}}},[o,c]),s.current?(0,f.createPortal)(n,s.current):(0,r.createElement)("span",{ref:a})};var p=function(){return p=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},p.apply(this,arguments)};function v(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function m(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);
vendor: 4,973 bytes, line 2
2if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function g(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var b,w,S={},E="xstate.guard";!function(e){e.Start="xstate.start",e.Stop="xstate.stop",e.Raise="xstate.raise",e.Send="xstate.send",e.Cancel="xstate.cancel",e.NullEvent="",e.Assign="xstate.assign",e.After="xstate.after",e.DoneState="done.state",e.DoneInvoke="done.invoke",e.Log="xstate.log",e.Init="xstate.init",e.Invoke="xstate.invoke",e.ErrorExecution="error.execution",e.ErrorCommunication="error.communication",e.ErrorPlatform="error.platform",e.ErrorCustom="xstate.error",e.Update="xstate.update",e.Pure="xstate.pure",e.Choose="xstate.choose"}(b||(b={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(w||(w={}));var x,k=b.Start,_=b.Stop,C=b.Raise,N=b.Send,O=b.Cancel,P=b.NullEvent,A=b.Assign,T=(b.After,b.DoneState,b.Log),R=b.Init,I=b.Invoke,M=(b.ErrorExecution,b.ErrorPlatform),D=b.ErrorCustom,j=b.Update,L=b.Choose,z=b.Pure;function B(e,t,n){void 0===n&&(n=".");var r=H(e,n),i=H(t,n);return ie(i)?!!ie(r)&&i===r:ie(r)?r in i:Object.keys(r).every(function(e){return e in i&&B(r[e],i[e])})}function V(e){try{return ie(e)||"number"==typeof e?"".concat(e):e.type}catch(e){throw new Error("Events must be strings or objects with a string event.type property.")}}function F(e,t){try{return ne(e)?e:e.toString().split(t)}catch(t){throw new Error("'".concat(e,"' is not a valid state path."))}}function H(e,t){return"object"==typeof(n=e)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?e.value:ne(e)?$(e):"string"!=typeof e?e:$(F(e,t));var n}function $(e){if(1===e.length)return e[0];for(var t={},n=t,r=0;r<e.length-1;r++)r===e.length-2?n[e[r]]=e[r+1]:(n[e[r]]={},n=n[e[r]]);return t}function U(e,t){for(var n={},r=Object.keys(e),i=0;i<r.length;i++){var o=r[i];n[o]=t(e[o],o,e,i)}return n}function q(e,t,n){var r,i,o={};try{for(var a=m(Object.keys(e)),s=a.next();!s.done;s=a.next()){var c=s.value,u=e[c];n(u)&&(o[c]=t(u,c,e))}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}var G=function(e){return function(t){var n,r,i=t;try{for(var o=m(e),a=o.next();!a.done;a=o.next()){i=i[a.value]}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}};function K(e){return e?ie(e)?[[e]]:Q(Object.keys(e).map(function(t){var n=e[t];return"string"==typeof n||n&&Object.keys(n).length?K(e[t]).map(function(e){return[t].concat(e)}):[[t]]})):[[]]}function Q(e){var t;return(t=[]).concat.apply(t,g([],y(e),!1))}function Y(e){return ne(e)?e:[e]}function X(e){return void 0===e?[]:Y(e)}function W(e,t,n){var r,i;if(re(e))return e(t,n.data);var o={};try{for(var a=m(Object.keys(e)),s=a.next();!s.done;s=a.next()){var c=s.value,u=e[c];re(u)?o[c]=u(t,n.data):o[c]=u}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}function Z(e){return e instanceof Promise||!(null===e||!re(e)&&"object"!=typeof e||!re(e.then))}function J(e,t){return U(e.states,function(e,n){if(e){var r=(ie(t)?void 0:t[n])||(e?e.current:void 0);if(r)return{current:r,states:J(e,r)}}})}function ee(e,t,n,r){var i=e?n.reduce(function(e,n){var i,o,a=n.assignment,s={state:r,action:n,_event:t},c={};if(re(a))c=a(e,t.data,s);else try{for(var u=m(Object.keys(a)),l=u.next();!l.done;l=u.next()){var d=l.value,f=a[d];c[d]=re(f)?f(e,t.data,s):f}}catch(e){i={error:e}}finally{try{l&&!l.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}return Object.assign({},e,c)},e):e;return i}var te=function(){};function ne(e){return Array.isArray(e)}function re(e){return"function"==typeof e}function ie(e){return"string"==typeof e}function oe(e,t){if(e)return ie(e)?{type:E,name:e,predicate:t?t[e]:void 0}:re(e)?{type:E,name:e.name,predicate:e}:e}var ae=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();(x={})[ae]=function(){return this},x[Symbol.observable]=function(){return this};function se(e){return!!e&&"__xstatenode"in e}function ce(e,t){return ie(e)||"number"==typeof e?p({type:e},t):e}function ue(e,t){if(!ie(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var n=ce(e);return p({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function le(e,t){return Y(t).map(function(t){return void 0===t||"string"==typeof t||se(t)?{target:t,event:e}:p(p({},t),{event:e})})}function de(e,t,n,r,i){var o=e.options.guards,a={state:i,cond:t,_event:r};
2if(t.type===E)return((null==o?void 0:o[t.name])||t.predicate)(n,r.data,a);var s=null==o?void 0:o[t.type];if(!s)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return s(n,r.data,a)}function fe(e){return"string"==typeof e?{type:e}:e}function he(e,t,n){var r=function(){},i="object"==typeof e,o=i?e:null;return{next:((i?e.next:e)||r).bind(o),error:((i?e.error:t)||r).bind(o),complete:((i?e.complete:n)||r).bind(o)}}function pe(e,t){return"".concat(e,":invocation[").concat(t,"]")}function ve(e){return(e.type===C||e.type===N&&e.to===w.Internal)&&"number"!=typeof e.delay}var me=function(e){return"atomic"===e.type||"final"===e.type};function ye(e){return Object.keys(e.states).map(function(t){return e.states[t]})}function ge(e){return ye(e).filter(function(e){return"history"!==e.type})}function be(e){var t=[e];return me(e)?t:t.concat(Q(ge(e).map(be)))}function we(e,t){var n,r,i,o,a,s,c,u,l=Ee(new Set(e)),d=new Set(t);try{for(var f=m(d),h=f.next();!h.done;h=f.next())for(var p=(k=h.value).parent;p&&!d.has(p);)d.add(p),p=p.parent}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}var v=Ee(d);try{for(var y=m(d),g=y.next();!g.done;g=y.next()){if("compound"!==(k=g.value).type||v.get(k)&&v.get(k).length){if("parallel"===k.type)try{for(var b=(a=void 0,m(ge(k))),w=b.next();!w.done;w=b.next()){var S=w.value;d.has(S)||(d.add(S),l.get(S)?l.get(S).forEach(function(e){return d.add(e)}):S.initialStateNodes.forEach(function(e){return d.add(e)}))}}catch(e){a={error:e}}finally{try{w&&!w.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}}else l.get(k)?l.get(k).forEach(function(e){return d.add(e)}):k.initialStateNodes.forEach(function(e){return d.add(e)})}}catch(e){i={error:e}}finally{try{g&&!g.done&&(o=y.return)&&o.call(y)}finally{if(i)throw i.error}}try{for(var E=m(d),x=E.next();!x.done;x=E.next()){var k;for(p=(k=x.value).parent;p&&!d.has(p);)d.add(p),p=p.parent}}catch(e){c={error:e}}finally{try{x&&!x.done&&(u=E.return)&&u.call(E)}finally{if(c)throw c.error}}return d}function Se(e,t){var n=t.get(e);if(!n)return{};if("compound"===e.type){var r=n[0];if(!r)return{};if(me(r))return r.key}var i={};return n.forEach(function(e){i[e.key]=Se(e,t)}),i}function Ee(e){var t,n,r=new Map;try{for(var i=m(e),o=i.next();!o.done;o=i.next()){var a=o.value;r.has(a)||r.set(a,[]),a.parent&&(r.has(a.parent)||r.set(a.parent,[]),r.get(a.parent).push(a))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function xe(e,t){return Se(e,Ee(we([e],t)))}function ke(e,t){return Array.isArray(e)?e.some(function(e){return e===t}):e instanceof Set&&e.has(t)}function _e(e,t){return"compound"===t.type?ge(t).some(function(t){return"final"===t.type&&ke(e,t)}):"parallel"===t.type&&ge(t).every(function(t){return _e(e,t)})}function Ce(e){return new Set(Q(e.map(function(e){return e.tags})))}var Ne=ue({type:R});function Oe(e,t){return t&&t[e]||void 0}function Pe(e,t){var n;if(ie(e)||"number"==typeof e)n=re(r=Oe(e,t))?{type:e,exec:r}:r||{type:e,exec:void 0};else if(re(e))n={type:e.name||e.toString(),exec:e};else{var r;if(re(r=Oe(e.type,t)))n=p(p({},e),{exec:r});else if(r){var i=r.type||e.type;n=p(p(p({},r),e),{type:i})}else n=e}return n}var Ae=function(e,t){return e?(ne(e)?e:[e]).map(function(e){return Pe(e,t)}):[]};function Te(e){var t=Pe(e);return p(p({id:ie(e)?e:t.id},t),{type:t.type})}function Re(e,t){return{to:t?t.to:void 0,type:N,event:re(e)?e:ce(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:re(e)?e.name:V(e)}}function Ie(e,t){var n="".concat(b.DoneState,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Me(e,t){var n="".concat(b.DoneInvoke,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function De(e,t){var n="".concat(b.ErrorPlatform,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function je(e,t,n,r,i,o,a){void 0===a&&(a=!1);var s=a?[]:function(e){var t,n,r=[];try{for(var i=m(e),o=i.next();!o.done;o=i.next())for(var a=o.value,s=0;s<a.actions.length;)a.actions[s].type!==A?s++:(r.push(a.actions[s]),a.actions.splice(s,1))}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}(i),c=s.length?ee(n,r,s,t):n,u=a?[n]:void 0,l=[];function d(i,s){var d;switch(s.type){case C:var f=function(e,t,n,r){var i,o={_event:n},a=ue(re(e.event)?e.event(t,n.data,o):e.event);if(ie(e.delay)){var s=r&&r[e.delay];i=re(s)?s(t,n.data,o):s}else i=re(e.delay)?e.delay(t,n.data,o):e.delay;return p(p({},e),{type:C,_event:a,delay:i})}(s,c,r,e.options.delays);return o&&"number"==typeof f.delay&&o(f,c,r),f;case N:var h=function(e,t,n,r){var i,o={_event:n},a=ue(re(e.event)?e.event(t,n.data,o):e.event);if(ie(e.delay)){var s=r&&r[e.delay];i=re(s)?s(t,n.data,o):s}else i=re(e.delay)?e.delay(t,n.data,o):e.delay;var c=re(e.to)?e.to(t,n.data,o):e.to;return p(p({},e),{to:c,_event:a,event:a.data,delay:i})}(s,c,r,e.options.delays);return o&&h.to!==w.Internal&&("entry"===i?l.push(h):o(h,c,r)),h;case T:var v=function(e,t,n){return p(p({},e),{value:ie(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})}(s,c,r);return null==o||o(v,c,r),v;case L:if(!(x=null===(d=s.conds.find(function(n){var i=oe(n.cond,e.o
vendor: 7,704 bytes, line 2
2ptions.guards);return!i||de(e,i,c,r,o?void 0:t)}))||void 0===d?void 0:d.actions))return[];var m=y(je(e,t,c,r,[{type:i,actions:Ae(X(x),e.options.actions)}],o,a),2),S=m[0],E=m[1];return c=E,null==u||u.push(c),S;case z:var x;if(!(x=s.get(c,r.data)))return[];var k=y(je(e,t,c,r,[{type:i,actions:Ae(X(x),e.options.actions)}],o,a),2),O=k[0],P=k[1];return c=P,null==u||u.push(c),O;case _:v=function(e,t,n){var r=re(e.activity)?e.activity(t,n.data):e.activity,i="string"==typeof r?{id:r}:r;return{type:b.Stop,activity:i}}(s,c,r);return null==o||o(v,n,r),v;case A:c=ee(c,r,[s],o?void 0:t),null==u||u.push(c);break;default:var R=Pe(s,e.options.actions),I=R.exec;if(o)o(R,c,r);else if(I&&u){var M=u.length-1,D=p(p({},R),{exec:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];I.apply(void 0,g([u[M]],y(t),!1))}});R=D}return R}}var f=Q(i.map(function(e){var t,n,i=[];try{for(var a=m(e.actions),s=a.next();!s.done;s=a.next()){var u=s.value,f=d(e.type,u);f&&(i=i.concat(f))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return l.forEach(function(e){o(e,c,r)}),l.length=0,i}));return[f,c]}function Le(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if(ie(e)||ie(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(function(n){return Le(e[n],t[n])})}function ze(e){return"object"==typeof e&&null!==e&&("value"in e&&"_event"in e)}var Be=function(){function e(e){var t,n,r=this;this.actions=[],this.activities=S,this.meta={},this.events=[],this.value=e.value,this.context=e.context,this._event=e._event,this._sessionid=e._sessionid,this.event=this._event.data,this.historyValue=e.historyValue,this.history=e.history,this.actions=e.actions||[],this.activities=e.activities||S,this.meta=(void 0===(n=e.configuration)&&(n=[]),n.reduce(function(e,t){return void 0!==t.meta&&(e[t.id]=t.meta),e},{})),this.events=e.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=e.configuration,this.transitions=e.transitions,this.children=e.children,this.done=!!e.done,this.tags=null!==(t=Array.isArray(e.tags)?new Set(e.tags):e.tags)&&void 0!==t?t:new Set,this.machine=e.machine,Object.defineProperty(this,"nextEvents",{get:function(){return function(e){return g([],y(new Set(Q(g([],y(e.map(function(e){return e.ownEvents})),!1)))),!1)}(r.configuration)}})}return e.from=function(t,n){return t instanceof e?t.context!==n?new e({value:t.value,context:n,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):t:new e({value:t,context:n,_event:Ne,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,n){if(t instanceof e){if(!t.actions.length)return t;var r=Ne;return new e({value:t.value,context:n,_event:r,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,n)},e.prototype.toStrings=function(e,t){var n=this;if(void 0===e&&(e=this.value),void 0===t&&(t="."),ie(e))return[e];var r=Object.keys(e);return r.concat.apply(r,g([],y(r.map(function(r){return n.toStrings(e[r],t).map(function(e){return r+t+e})})),!1))},e.prototype.toJSON=function(){var e=this;e.configuration,e.transitions;var t=e.tags;e.machine;var n=v(e,["configuration","transitions","tags","machine"]);return p(p({},n),{tags:Array.from(t)})},e.prototype.matches=function(e){return B(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){var t;te(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false.");var n=null===(t=this.machine)||void 0===t?void 0:t.getTransitionData(this,e);return!!(null==n?void 0:n.transitions.length)&&n.transitions.some(function(e){return void 0!==e.target||e.actions.length})},e}(),Ve=r.useLayoutEffect,Fe={deferEvents:!1},He=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=p(p({},Fe),e)}return e.prototype.initialize=function(e){if(this.initialized=!0,e){if(!this.options.deferEvents)return void this.schedule(e);this.process(e)}this.flushEvents()},e.prototype.schedule=function(e){if(this.initialized&&!this.processingEvent){if(0!==this.queue.length)throw new Error("Event queue should be empty when it is not processing events");this.process(e),this.flushEvents()}else this.queue.push(e)},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var e=this.queue.shift();e;)this.process(e),e=this.queue.shift()},e.prototype.process=function(e){this.processingEvent=!0;try{e()}catch(e){throw this.clear(),e}finally{this.processingEvent=!1}},e}(),$e=[],Ue=function(e,t){$e.push(e);var n=t(e);return $e.pop(),n};function qe(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[ae]=function(){return this},t}function Ge(e,t,n){var r=qe(t);if(r.deferred=!0,se(e)){var i=r.state=Ue(void 0,function(){return(n?e.withContext(n):e).initialState});r.getSnapshot=function(){return i}}return r}var Ke=new Map,Qe=0,Ye=function(){return"x:".concat(Qe++)},Xe=function(e,t){return Ke.set(e,t),e},We=function(e){return Ke.get(e)},Ze=function(e){Ke.delete(e)};function Je(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:void 0}function et(e){if(Je()){var t=function(){var e=Je();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}function tt(e,t){void 0===t&&(t={});var n=e.initialState,r=new Set,i=[],o=!1,a=function(e){var t;return p(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[ae]=function(){return this},t),e)}({id:t.id,send:function(t){i.push(t),function(){if(!o){for(o=!0;i.length>0;){var t=i.shift();n=e.transition(n,t,s),r.forEach(function(e){return e.next(n)})}o=!1}}()},getSnapshot:function(){return n},subscribe:function(e,t,i){var o=he(e,t,i);return r.add(o),o.next(n),{unsubscribe:function(){r.delete(o)}}}}),s={parent:t.parent,self:a,id:t.id||"anonymous",observers:r};return n=e.start?e.start(s):n,a}var nt,rt={sync:!1,autoForward:!1};!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(nt||(nt={}));var it,ot=function(){function e(t,n){void 0===n&&(n=e.defaultOptions);var r=this;this.machine=t,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=nt.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if(ne(e))return r.batch(e),r.state;var n=ue(ce(e,t));if(r.status===nt.Stopped)return r.state;if(r.status!==nt.Running&&!r.options.deferEvents)throw new Error('Event "'.concat(n.name,'" was sent to uninitialized service "').concat(r.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 r.scheduler.schedule(function(){r.forward(n);var e=r._nextState(n);r.update(e,n)}),r._state},this.sendTo=function(e,t,n){var i,o=r.parent&&(t===w.Parent||r.parent.id===t),a=o?r.parent:ie(t)?t===w.Internal?r:r.children.get(t)||We(t):(i=t)&&"function"==typeof i.send?t:void 0;
2if(a)if("machine"in a){if(r.status!==nt.Stopped||r.parent!==a||r.state.done){var s=p(p({},e),{name:e.name===D?"".concat(De(r.id)):e.name,origin:r.sessionId});!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([a,s]):a.send(s)}}else!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([a,e.data]):a.send(e.data);else if(!o)throw new Error("Unable to send event to child '".concat(t,"' from service '").concat(r.id,"'."))},this._exec=function(e,t,n,i){void 0===i&&(i=r.machine.options.actions);var o=e.exec||Oe(e.type,i),a=re(o)?o:o?o.exec:e.exec;if(a)try{return a(t,n.data,r.machine.config.predictableActionArguments?{action:e,_event:n}:{action:e,state:r.state,_event:n})}catch(e){throw r.parent&&r.parent.send({type:"xstate.error",data:e}),e}switch(e.type){case C:var s=e;r.defer(s);break;case N:var c=e;if("number"==typeof c.delay)return void r.defer(c);c.to?r.sendTo(c._event,c.to,n===Ne):r.send(c._event);break;case O:r.cancel(e.sendId);break;case k:if(r.status!==nt.Running)return;var u=e.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[u.id||u.type])break;if(u.type===b.Invoke){var l=fe(u.src),d=r.machine.options.services?r.machine.options.services[l.type]:void 0,f=u.id,h=u.data;0;var p="autoForward"in u?u.autoForward:!!u.forward;if(!d)return void 0;var v=h?W(h,t,n):void 0;if("string"==typeof d)return;var m=re(d)?d(t,n.data,{data:v,src:l,meta:u.meta}):d;if(!m)return;var y=void 0;se(m)&&(m=v?m.withContext(v):m,y={autoForward:p}),r.spawn(m,f,y)}else r.spawnActivity(u);break;case _:r.stopChild(e.activity.id);break;case T:var g=e,w=g.label,S=g.value;w?r.logger(w,S):r.logger(S)}};var i=p(p({},e.defaultOptions),n),o=i.clock,a=i.logger,s=i.parent,c=i.id,u=void 0!==c?c:t.id;this.id=u,this.logger=a,this.clock=o,this.parent=s,this.options=i,this.scheduler=new He({deferEvents:this.options.deferEvents}),this.sessionId=Ye()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:Ue(this,function(){return e._initialState=e.machine.initialState,e._initialState})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(e,t){var n,r;try{for(var i=m(e.actions),o=i.next();!o.done;o=i.next()){var a=o.value;this.exec(a,e,t)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e.prototype.update=function(e,t){var n,r,i,o,a,s,c,u,l=this;if(e._sessionid=this.sessionId,this._state=e,this.machine.config.predictableActionArguments&&t!==Ne||!this.options.execute)for(var d=void 0;d=this._outgoingQueue.shift();)d[0].send(d[1]);else this.execute(this.state);if(this.children.forEach(function(e){l.state.children[e.id]=e}),this.devTools&&this.devTools.send(t.data,e),e.event)try{for(var f=m(this.eventListeners),h=f.next();!h.done;h=f.next()){(0,h.value)(e.event)}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}try{for(var p=m(this.listeners),v=p.next();!v.done;v=p.next()){(0,v.value)(e,e.event)}}catch(e){i={error:e}}finally{try{v&&!v.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}try{for(var y=m(this.contextListeners),g=y.next();!g.done;g=y.next()){(0,g.value)(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(e){a={error:e}}finally{try{g&&!g.done&&(s=y.return)&&s.call(y)}finally{if(a)throw a.error}}if(this.state.done){var b=e.configuration.find(function(e){return"final"===e.type&&e.parent===l.machine}),w=b&&b.doneData?W(b.doneData,e.context,t):void 0;this._doneEvent=Me(this.id,w);try{for(var S=m(this.doneListeners),E=S.next();!E.done;E=S.next()){(0,E.value)(this._doneEvent)}}catch(e){c={error:e}}finally{try{E&&!E.done&&(u=S.return)&&u.call(S)}finally{if(c)throw c.error}}this._stop(),this._stopChildren(),Ze(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===nt.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var r=this,i=he(e,t,n);this.listeners.add(i.next),this.status!==nt.NotStarted&&i.next(this.state);var o=function(){r.doneListeners.delete(o),r.stopListeners.delete(o),i.complete()};return this.status===nt.Stopped?i.complete():(this.onDone(o),this.onStop(o)),{unsubscribe:function(){r.listeners.delete(i.next),r.doneListeners.delete(o),r.stopListeners.delete(o)}}},e.prototype.onEvent=function(e){return this.eventListeners.add(e),this},e.prototype.onSend=function(e){return this.sendListeners.add(e),this},e.prototype.onChange=function(e){return this.contextListeners.add(e),this},e.prototype.onStop=function(e){return this.stopListeners.add(e),this},e.prototype.onDone=function(e){return this.status===nt.Stopped&&this._doneEvent?e(this._doneEvent):this.doneListeners.add(e),this},e.prototype.off=function(e){return this.listeners.delete(e),this.eventListeners.delete(e),this.sendListeners.delete(e),this.stopListeners.delete(e),this.doneListeners.delete(e),this.contextListeners.delete(e),this},e.prototype.start=function(e){var t=this;if(this.status===nt.Running)return this;this.machine._init(),Xe(this.sessionId,this),this.initialized=!0,this.status=nt.Running;var n=void 0===e?this.initialState:Ue(this,function(){return ze(e)?t.machine.resolveState(e):t.machine.resolveState(Be.from(e,t.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){t.update(n,Ne)}),this}
2,e.prototype._stopChildren=function(){this.children.forEach(function(e){re(e.stop)&&e.stop()}),this.children.clear()},e.prototype._stop=function(){var e,t,n,r,i,o,a,s,c,u;try{for(var l=m(this.listeners),d=l.next();!d.done;d=l.next()){var f=d.value;this.listeners.delete(f)}}catch(t){e={error:t}}finally{try{d&&!d.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}try{for(var h=m(this.stopListeners),p=h.next();!p.done;p=h.next()){(f=p.value)(),this.stopListeners.delete(f)}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}try{for(var v=m(this.contextListeners),y=v.next();!y.done;y=v.next()){f=y.value;this.contextListeners.delete(f)}}catch(e){i={error:e}}finally{try{y&&!y.done&&(o=v.return)&&o.call(v)}finally{if(i)throw i.error}}try{for(var g=m(this.doneListeners),b=g.next();!b.done;b=g.next()){f=b.value;this.doneListeners.delete(f)}}catch(e){a={error:e}}finally{try{b&&!b.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}if(!this.initialized)return this;this.initialized=!1,this.status=nt.Stopped,this._initialState=void 0;try{for(var w=m(Object.keys(this.delayedEventsMap)),S=w.next();!S.done;S=w.next()){var E=S.value;this.clock.clearTimeout(this.delayedEventsMap[E])}}catch(e){c={error:e}}finally{try{S&&!S.done&&(u=w.return)&&u.call(w)}finally{if(c)throw c.error}}this.scheduler.clear(),this.scheduler=new He({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var e=this,t=this.scheduler;return this._stop(),t.schedule(function(){var t;if(!(null===(t=e._state)||void 0===t?void 0:t.done)){var n=ue({type:"xstate.stop"}),r=Ue(e,function(){var t=Q(g([],y(e.state.configuration),!1).sort(function(e,t){return t.order-e.order}).map(function(t){return Ae(t.onExit,e.machine.options.actions)})),r=y(je(e.machine,e.state,e.state.context,n,[{type:"exit",actions:t}],e.machine.config.predictableActionArguments?e._exec:void 0,e.machine.config.predictableActionArguments||e.machine.config.preserveActionOrder),2),i=r[0],o=r[1],a=new Be({value:e.state.value,context:o,_event:n,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:i.filter(function(e){return!ve(e)}),activities:{},events:[],configuration:[],transitions:[],children:{},done:e.state.done,tags:e.state.tags,machine:e.machine});return a.changed=!0,a});e.update(r,n),e._stopChildren(),Ze(e.sessionId)}}),this},e.prototype.batch=function(e){var t=this;if(this.status===nt.NotStarted&&this.options.deferEvents)0;else if(this.status!==nt.Running)throw new Error("".concat(e.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(e.length){var n=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule(function(){var r,i,o=t.state,a=!1,s=[],c=function(e){var r=ue(e);t.forward(r),o=Ue(t,function(){return t.machine.transition(o,r,void 0,n||void 0)}),s.push.apply(s,g([],y(t.machine.config.predictableActionArguments?o.actions:o.actions.map(function(e){return function(e,t){var n=e.exec;return p(p({},e),{exec:void 0!==n?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0})}(e,o)})),!1)),a=a||!!o.changed};try{for(var u=m(e),l=u.next();!l.done;l=u.next()){c(l.value)}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}o.changed=a,o.actions=s,t.update(o,ue(e[e.length-1]))})}},e.prototype.sender=function(e){return this.send.bind(this,e)},e.prototype._nextState=function(e,t){var n=this;void 0===t&&(t=!!this.machine.config.predictableActionArguments&&this._exec);var r=ue(e);if(0===r.name.indexOf(M)&&!this.state.nextEvents.some(function(e){return 0===e.indexOf(M)}
vendor: 6,117 bytes, line 2
2))throw r.data.data;return Ue(this,function(){return n.machine.transition(n.state,r,void 0,t||void 0)})},e.prototype.nextState=function(e){return this._nextState(e,!1)},e.prototype.forward=function(e){var t,n;try{for(var r=m(this.forwardTo),i=r.next();!i.done;i=r.next()){var o=i.value,a=this.children.get(o);if(!a)throw new Error("Unable to forward event '".concat(e,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(o,"'."));a.send(e)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.defer=function(e){var t=this,n=this.clock.setTimeout(function(){"to"in e&&e.to?t.sendTo(e._event,e.to,!0):t.send(e._event)},e.delay);e.id&&(this.delayedEventsMap[e.id]=n)},e.prototype.cancel=function(e){this.clock.clearTimeout(this.delayedEventsMap[e]),delete this.delayedEventsMap[e]},e.prototype.exec=function(e,t,n){void 0===n&&(n=this.machine.options.actions),this._exec(e,t.context,t._event,n)},e.prototype.removeChild=function(e){var t;this.children.delete(e),this.forwardTo.delete(e),null===(t=this.state)||void 0===t||delete t.children[e]},e.prototype.stopChild=function(e){var t=this.children.get(e);t&&(this.removeChild(e),re(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,n){if(this.status!==nt.Running)return Ge(e,t);if(Z(e))return this.spawnPromise(Promise.resolve(e),t);if(re(e))return this.spawnCallback(e,t);if(function(e){try{return"function"==typeof e.send}catch(e){return!1}}(i=e)&&"id"in i)return this.spawnActor(e,t);if(function(e){try{return"subscribe"in e&&re(e.subscribe)}catch(e){return!1}}(e))return this.spawnObservable(e,t);if(se(e))return this.spawnMachine(e,p(p({},n),{id:t}));if(null!==(r=e)&&"object"==typeof r&&"transition"in r&&"function"==typeof r.transition)return this.spawnBehavior(e,t);throw new Error('Unable to spawn entity "'.concat(t,'" of type "').concat(typeof e,'".'));var r,i},e.prototype.spawnMachine=function(t,n){var r=this;void 0===n&&(n={});var i=new e(t,p(p({},this.options),{parent:this,id:n.id||t.id})),o=p(p({},rt),n);o.sync&&i.onTransition(function(e){r.send(j,{state:e,id:i.id})});var a=i;return this.children.set(i.id,a),o.autoForward&&this.forwardTo.add(i.id),i.onDone(function(e){r.removeChild(i.id),r.send(ue(e,{origin:i.id}))}).start(),a},e.prototype.spawnBehavior=function(e,t){var n=tt(e,{id:t,parent:this});return this.children.set(t,n),n},e.prototype.spawnPromise=function(e,t){var n,r,i=this,o=!1;e.then(function(e){o||(r=e,i.removeChild(t),i.send(ue(Me(t,e),{origin:t})))},function(e){if(!o){i.removeChild(t);var n=De(t,e);try{i.send(ue(n,{origin:t}))}catch(e){i.devTools&&i.devTools.send(n,i.state),i.machine.strict&&i.stop()}}});var a=(n={id:t,send:function(){},subscribe:function(t,n,r){var i=he(t,n,r),o=!1;return e.then(function(e){o||(i.next(e),o||i.complete())},function(e){o||i.error(e)}),{unsubscribe:function(){return o=!0}}},stop:function(){o=!0},toJSON:function(){return{id:t}},getSnapshot:function(){return r}},n[ae]=function(){return this},n);return this.children.set(t,a),a},e.prototype.spawnCallback=function(e,t){var n,r,i,o=this,a=!1,s=new Set,c=new Set;try{i=e(function(e){r=e,c.forEach(function(t){return t(e)}),a||o.send(ue(e,{origin:t}))},function(e){s.add(e)})}catch(e){this.send(De(t,e))}if(Z(i))return this.spawnPromise(i,t);var u=(n={id:t,send:function(e){return s.forEach(function(t){return t(e)})},subscribe:function(e){var t=he(e);return c.add(t.next),{unsubscribe:function(){c.delete(t.next)}}},stop:function(){a=!0,re(i)&&i()},toJSON:function(){return{id:t}},getSnapshot:function(){return r}},n[ae]=function(){return this},n);return this.children.set(t,u),u},e.prototype.spawnObservable=function(e,t){var n,r,i=this,o=e.subscribe(function(e){r=e,i.send(ue(e,{origin:t}))},function(e){i.removeChild(t),i.send(ue(De(t,e),{origin:t}))},function(){i.removeChild(t),i.send(ue(Me(t),{origin:t}))}),a=((n={id:t,send:function(){},subscribe:function(t,n,r){return e.subscribe(t,n,r)},stop:function(){return o.unsubscribe()},getSnapshot:function(){return r},toJSON:function(){return{id:t}}})[ae]=function(){return this},n);return this.children.set(t,a),a},e.prototype.spawnActor=function(e,t){return this.children.set(t,e),e},e.prototype.spawnActivity=function(e){var t=this.machine.options&&this.machine.options.activities?this.machine.options.activities[e.type]:void 0;if(t){var n=t(this.state.context,e);this.spawnEffect(e.id,n)}},e.prototype.spawnEffect=function(e,t){var n;this.children.set(e,((n={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:t||void 0,getSnapshot:function(){},toJSON:function(){return{id:e}}})[ae]=function(){return this},n))},e.prototype.attachDev=function(){var e=Je();if(this.options.devTools&&e){if(e.__REDUX_DEVTOOLS_EXTENSION__){var t="object"==typeof this.options.devTools?this.options.devTools:void 0;this.devTools=e.__REDUX_DEVTOOLS_EXTENSION__.connect(p(p({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:p({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}et(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[ae]=function(){return this},e.prototype.getSnapshot=function(){return this.status===nt.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(e,t){return setTimeout(e,t)},clearTimeout:function(e){return clearTimeout(e)}},logger:console.log.bind(console),devTools:!1},e.interpret=at,e}();function at(e,t){return new ot(e,t)}function st(e){var t=r.useRef();return t.current||(t.current={v:e()}),t.current.v}!function(e){e[e.Effect=1]="Effect",e[e.LayoutEffect=2]="LayoutEffect"}(it||(it={}));var ct=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},ut=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);
2if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var lt=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},dt=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};function ft(e,t){(0,e.exec)(t.context,t._event.data,{action:e,state:t,_event:t._event})()}function ht(e){var t=(0,r.useRef)([]),n=(0,r.useRef)([]);Ve(function(){var r=e.subscribe(function(e){var r,i;if(e.actions.length){var o=e.actions.filter(function(e){return"function"==typeof e.exec&&"__effect"in e.exec}),a=lt(function(e,t){var n,r,i=ct([[],[]],2),o=i[0],a=i[1];try{for(var s=ut(e),c=s.next();!c.done;c=s.next()){var u=c.value;t(u)?o.push(u):a.push(u)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return[o,a]}(o,function(e){return e.exec.__effect===it.Effect}),2),s=a[0],c=a[1];(r=t.current).push.apply(r,dt([],lt(s.map(function(t){return[t,e]})),!1)),(i=n.current).push.apply(i,dt([],lt(c.map(function(t){return[t,e]})),!1))}});return function(){r.unsubscribe()}},[]),Ve(function(){for(;n.current.length;){var e=lt(n.current.shift(),2);ft(e[0],e[1])}}),(0,r.useEffect)(function(){for(;t.current.length;){var e=lt(t.current.shift(),2);ft(e[0],e[1])}})}var pt=function(){return pt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},pt.apply(this,arguments)},vt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};var mt=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function yt(e,t){void 0===t&&(t={});var n=(0,r.useCallback)(function(e){var t=void 0===e.changed&&Object.keys(e.children).length;(e.changed||t)&&s(e)},[]),i=function(e,t,n){void 0===t&&(t={});var r=st(function(){return"function"==typeof e?e():e}),i=t.context,o=t.guards,a=t.actions,s=t.activities,c=t.services,u=t.delays,l=t.state,d=vt(t,["context","guards","actions","activities","services","delays","state"]),f=st(function(){var e={context:i,guards:o,actions:a,activities:s,services:c,delays:u};return at(r.withConfig(e,function(){return pt(pt({},r.context),i)}),pt({deferEvents:!0},d))});return Ve(function(){var e;return n&&(e=f.subscribe(function(e){if("object"==typeof e)return e;var t=function(){};return{next:e,error:void 0||t,complete:void 0||t}}(n))),function(){null==e||e.unsubscribe()}},[n]),Ve(function(){return f.start(l?Be.create(l):void 0),function(){f.stop()}},[]),Ve(function(){Object.assign(f.machine.options.actions,a),Object.assign(f.machine.options.guards,o),Object.assign(f.machine.options.activities,s),Object.assign(f.machine.options.services,c),Object.assign(f.machine.options.delays,u)},[a,o,s,c,u]),ht(f),f}(e,t,n),o=mt((0,r.useState)(function(){var e=i.machine.initialState;return t.state?Be.create(t.state):e}),2),a=o[0],s=o[1];return[a,i.send,i]}var gt=Mt(),bt=e=>At(e,gt),wt=Mt();bt.write=e=>At(e,wt);var St=Mt();bt.onStart=e=>At(e,St);var Et=Mt();bt.onFrame=e=>At(e,Et);var xt=Mt();bt.onFinish=e=>At(e,xt);var kt=[];bt.setTimeout=(e,t)=>{const n=bt.now()+t,r=()=>{const e=kt.findIndex(e=>e.cancel==r);~e&&kt.splice(e,1),Ot-=~e?1:0},i={time:n,handler:e,cancel:r};return kt.splice(_t(n),0,i),Ot+=1,Tt(),i};var _t=e=>~(~kt.findIndex(t=>t.time>e)||~kt.length);bt.cancel=e=>{St.delete(e),Et.delete(e),xt.delete(e),gt.delete(e),wt.delete(e)},bt.sync=e=>{Pt=!0,bt.batchedUpdates(e),Pt=!1},bt.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,bt.onStart(n)}return r.handler=e,r.cancel=()=>{St.delete(n),t=null},r};var Ct="undefined"!=typeof window?window.requestAnimationFrame:()=>{};bt.use=e=>Ct=e,bt.now="undefined"!=typeof performance?()=>performance.now():Date.now,bt.batchedUpdates=e=>e(),bt.catch=console.error,bt.frameLoop="always",bt.advance=()=>{"demand"!==bt.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):It()};var Nt=-1,Ot=0,Pt=!1;function At(e,t){Pt?(t.delete(e),e(0)):(t.add(e),Tt())}function Tt(){Nt<0&&(Nt=0,"demand"!==bt.frameLoop&&Ct(Rt))}function Rt(){~Nt&&(Ct(Rt),bt.batchedUpdates(It))}function It(){const e=Nt;Nt=bt.now();const t=_t(Nt);t&&(Dt(kt.splice(0,t),e=>e.handler()),Ot-=t),Ot?(St.flush(),gt.flush(e?Math.min(64,Nt-e):16.667),Et.flush(),wt.flush(),xt.flush()):Nt=-1}function Mt(){let e=new Set,t=e;return{add(n){Ot+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(Ot-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,Ot-=t.size,Dt(t,t=>t(n)&&e.add(t)),Ot+=e.size,t=e)}}}
2function Dt(e,t){e.forEach(e=>{try{t(e)}catch(e){bt.catch(e)}})}var jt=Object.defineProperty,Lt={};function zt(){}((e,t)=>{for(var n in t)jt(e,n,{get:t[n],enumerable:!0})})(Lt,{assign:()=>Zt,colors:()=>Yt,createStringInterpolator:()=>qt,skipAnimation:()=>Xt,to:()=>Gt,willAdvance:()=>Wt});var Bt={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function Vt(e,t){if(Bt.arr(e)){if(!Bt.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var Ft=(e,t)=>e.forEach(t);function Ht(e,t,n){if(Bt.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var $t=e=>Bt.und(e)?[]:Bt.arr(e)?e:[e];function Ut(e,t){if(e.size){const n=Array.from(e);e.clear(),Ft(n,t)}}var qt,Gt,Kt=(e,...t)=>Ut(e,e=>e(...t)),Qt=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Yt=null,Xt=!1,Wt=zt,Zt=e=>{e.to&&(Gt=e.to),e.now&&(bt.now=e.now),void 0!==e.colors&&(Yt=e.colors),null!=e.skipAnimation&&(Xt=e.skipAnimation),e.createStringInterpolator&&(qt=e.createStringInterpolator),e.requestAnimationFrame&&bt.use(e.requestAnimationFrame),e.batchedUpdates&&(bt.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Wt=e.willAdvance),e.frameLoop&&(bt.frameLoop=e.frameLoop)},Jt=new Set,en=[],tn=[],nn=0,rn={get idle(){return!Jt.size&&!en.length},start(e){nn>e.priority?(Jt.add(e),bt.onStart(on)):(an(e),bt(cn))},advance:cn,sort(e){if(nn)bt.onFrame(()=>rn.sort(e));else{const t=en.indexOf(e);~t&&(en.splice(t,1),sn(e))}},clear(){en=[],Jt.clear()}};function on(){Jt.forEach(an),Jt.clear(),bt(cn)}function an(e){en.includes(e)||sn(e)}function sn(e){en.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(en,t=>t.priority>e.priority),0,e)}function cn(e){const t=tn;for(let n=0;n<en.length;n++){const r=en[n];nn=r.priority,r.idle||(Wt(r),r.advance(e),r.idle||t.push(r))}return nn=0,(tn=en).length=0,(en=t).length>0}var un="[-+]?\\d*\\.?\\d+",ln=un+"%";function dn(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var fn=new RegExp("rgb"+dn(un,un,un)),hn=new RegExp("rgba"+dn(un,un,un,un)),pn=new RegExp("hsl"+dn(un,ln,ln)),vn=new RegExp("hsla"+dn(un,ln,ln,un)),mn=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,yn=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gn=/^#([0-9a-fA-F]{6})$/,bn=/^#([0-9a-fA-F]{8})$/;function wn(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Sn(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=wn(i,r,e+1/3),a=wn(i,r,e),s=wn(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function En(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function xn(e){return(parseFloat(e)%360+360)%360/360}function kn(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function _n(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Cn(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=gn.exec(e))?parseInt(t[1]+"ff",16)>>>0:Yt&&void 0!==Yt[e]?Yt[e]:(t=fn.exec(e))?(En(t[1])<<24|En(t[2])<<16|En(t[3])<<8|255)>>>0:(t=hn.exec(e))?(En(t[1])<<24|En(t[2])<<16|En(t[3])<<8|kn(t[4]))>>>0:(t=mn.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=bn.exec(e))?parseInt(t[1],16)>>>0:(t=yn.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=pn.exec(e))?(255|Sn(xn(t[1]),_n(t[2]),_n(t[3])))>>>0:(t=vn.exec(e))?(Sn(xn(t[1]),_n(t[2]),_n(t[3]))|kn(t[4]))>>>0:null}(e);if(null===t)return e;t=t||0;return`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}var Nn=(e,t,n)=>{if(Bt.fun(e))return e;if(Bt.arr(e))return Nn({range:e,output:t,extrapolate:n});if(Bt.str(e.output[0]))return qt(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",c=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,a,s,c){let u=c?c(e):e;if(u<t){if("identity"===a)return u;"clamp"===a&&(u=t)}if(u>n){if("identity"===s)return u;"clamp"===s&&(u=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t);u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r;return u}(e,o[t],o[t+1],i[t],i[t+1],c,a,s,r.map)}};var On=1.70158,Pn=1.525*On,An=On+1,Tn=2*Math.PI/3,Rn=2*Math.PI/4.5,In=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},Mn={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>An*e*e*e-On*e*e,easeOutBack:e=>1+An*Math.pow(e-1,3)+On*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-Pn)/2:(Math.pow(2*e-2,2)*((Pn+1)*(2*e-2)+Pn)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Tn),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Tn)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Rn)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Rn)/2+1,easeInBounce:e=>1-In(1-e),easeOutBounce:In,easeInOutBounce:e=>e<.5?(1-In(1-2*e))/2:(1+In(2*e-1))/2,steps:(e,t="end")=>n=>{const r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return((e,t,n)=>Math.min(Math.max(n,e),t))(0,1,("end"===t?Math.floor(r):Math.ceil(r))/e)}},Dn=Symbol.for("FluidValue.get"),jn=Symbol.for("FluidValue.observers"),Ln=e=>Boolean(e&&e[Dn]),zn=e=>e&&e[Dn]?e[Dn]():e,Bn=e=>e[jn]||null;function Vn(e,t){const n=e[jn];
2n&&n.forEach(e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)})}var Fn=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Hn(this,e)}},Hn=(e,t)=>Gn(e,Dn,t);function $n(e,t){if(e[Dn]){let n=e[jn];n||Gn(e,jn,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Un(e,t){const n=e[jn];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[jn]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var qn,Gn=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Kn=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Qn=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Yn=new RegExp(`(${Kn.source})(%|[a-z]+)`,"i"),Xn=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Wn=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Zn=e=>{const[t,n]=Jn(e);if(!t||Qt())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&Wn.test(n)?Zn(n):n||e},Jn=e=>{const t=Wn.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},er=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,tr=e=>{qn||(qn=Yt?new RegExp(`(${Object.keys(Yt).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(e=>zn(e).replace(Wn,Zn).replace(Qn,Cn).replace(qn,Cn)),n=t.map(e=>e.match(Kn).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>Nn({...e,output:t}));return e=>{const n=!Yn.test(t[0])&&t.find(e=>Yn.test(e))?.replace(Kn,"");let i=0;return t[0].replace(Kn,()=>`${r[i++](e)}${n||""}`).replace(Xn,er)}},nr="react-spring: ",rr=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${nr}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},ir=rr(console.warn);function or(){ir(`${nr}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var ar=rr(console.warn);function sr(e){return Bt.str(e)&&("#"==e[0]||/\d/.test(e)||!Qt()&&Wn.test(e)||e in(Yt||{}))}var cr=Qt()?r.useEffect:r.useLayoutEffect;function ur(){const e=(0,r.useState)()[1],t=(()=>{const e=(0,r.useRef)(!1);return cr(()=>(e.current=!0,()=>{e.current=!1}),[]),e})();return()=>{t.current&&e(Math.random())}}var lr=e=>(0,r.useEffect)(e,dr),dr=[];function fr(e){const t=(0,r.useRef)();return(0,r.useEffect)(()=>{t.current=e}),t.current}var hr=Symbol.for("Animated:node"),pr=e=>
2e&&e[hr],vr=(e,t)=>{return n=e,r=hr,i=t,Object.defineProperty(n,r,{value:i,writable:!0,configurable:!0});var n,r,i},mr=e=>e&&e[hr]&&e[hr].getPayload(),yr=class{constructor(){vr(this,this)}getPayload(){return this.payload||[]}},gr=class extends yr{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Bt.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new gr(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Bt.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Bt.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},br=class extends gr{constructor(e){super(0),this._string=null,this._toString=Nn({output:[e,e]})}static create(e){return new br(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(Bt.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=Nn({output:[this.getValue(),e]})),this._value=0,super.reset()}},wr={dependencies:null},Sr=class extends yr{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Ht(this.source,(n,r)=>{var i;(i=n)&&i[hr]===i?t[r]=n.getValue(e):Ln(n)?t[r]=zn(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ft(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Ht(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){wr.dependencies&&Ln(e)&&wr.dependencies.add(e);const t=mr(e);t&&Ft(t,e=>this.add(e))}},Er=class extends Sr{constructor(e){super(e)}static create(e){return new Er(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(xr)),!0)}};function xr(e){return(sr(e)?br:gr).create(e)}function kr(e){const t=pr(e);return t?t.constructor:Bt.arr(e)?Er:sr(e)?br:gr}var _r=(e,t)=>{const n=!Bt.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,r.forwardRef)((i,o)=>{const a=(0,r.useRef)(null),s=n&&(0,r.useCallback)(e=>{a.current=function(e,t){e&&(Bt.fun(e)?e(t):e.current=t);return t}(o,e)},[o]),[c,u]=function(e,t){const n=new Set;wr.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}
2);return e=new Sr(e),wr.dependencies=null,[e,n]}(i,t),l=ur(),d=()=>{const e=a.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,c.getValue(!0)))&&l()},f=new Cr(d,u),h=(0,r.useRef)();cr(()=>(h.current=f,Ft(u,e=>$n(e,f)),()=>{h.current&&(Ft(h.current.deps,e=>Un(e,h.current)),bt.cancel(h.current.update))})),(0,r.useEffect)(d,[]),lr(()=>()=>{const e=h.current;Ft(e.deps,t=>Un(t,e))});const p=t.getComponentProps(c.getValue());return r.createElement(e,{...p,ref:s})})},Cr=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&bt.write(this.update)}};var Nr=Symbol.for("AnimatedComponent"),Or=e=>Bt.str(e)?e:e&&Bt.str(e.displayName)?e.displayName:Bt.fun(e)&&e.name||null;function Pr(e,...t){return Bt.fun(e)?e(...t):e}var Ar=(e,t)=>!0===e||!!(t&&e&&(Bt.fun(e)?e(t):$t(e).includes(t))),Tr=(e,t)=>Bt.obj(e)?t&&e[t]:e,Rr=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Ir=e=>e,Mr=(e,t=Ir)=>{let n=Dr;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const n=t(e[i],i);Bt.und(n)||(r[i]=n)}return r},Dr=["config","onProps","onStart","onChange","onPause","onResume","onRest"],jr={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Lr(e){const t=function(e){const t={};let n=0;if(Ht(e,(e,r)=>{jr[r]||(t[r]=e,n++)}),n)return t}(e);if(t){const n={to:t};return Ht(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function zr(e){return e=zn(e),Bt.arr(e)?e.map(zr):sr(e)?Lt.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Br(e){for(const t in e)return!0;return!1}function Vr(e){return Bt.fun(e)||Bt.arr(e)&&Bt.obj(e[0])}function Fr(e,t){e.ref?.delete(e),t?.delete(e)}function Hr(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var $r={tension:170,friction:26},Ur={...$r,mass:1,damping:1,easing:Mn.linear,clamp:!1},qr=class{constructor(){this.velocity=0,Object.assign(this,Ur)}};function Gr(e,t){if(Bt.und(t.decay)){const n=!Bt.und(t.tension)||!Bt.und(t.friction);!n&&Bt.und(t.frequency)&&Bt.und(t.damping)&&Bt.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Kr=[],Qr=class{constructor(){this.changed=!1,this.values=Kr,this.toValues=null,this.fromValues=Kr,this.config=new qr,this.immediate=!1}};function Yr(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let c,u,l=Ar(n.cancel??r?.cancel,t);if(l)h();else{Bt.und(n.pause)||(i.paused=Ar(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||Ar(e,t)),c=Pr(n.delay||0,t),e?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),c=u.time-bt.now()}function f(){c>0&&!Lt.skipAnimation?(i.delayed=!0,u=bt.setTimeout(h,c),i.pauseQueue.add(d),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(l=!0);try{o.start({...n,callId:e,cancel:l},a)}catch(e){s(e)}}})}var Xr=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?Jr(e.get()):t.every(e=>e.noop)?Wr(e.get()):Zr(e.get(),t.every(e=>e.finished)),Wr=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Zr=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Jr=e=>({value:e,cancelled:!0,finished:!1});function ei(e,t,n,r){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:c}=n;return o||e!==s||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const u=Mr(t,(e,t)=>"onRest"===t?void 0:e);let l,d;const f=new Promise((e,t)=>(l=e,d=t)),h=e=>{const t=i<=(n.cancelId||0)&&Jr(r)||i!==n.asyncId&&Zr(r,!1);if(t)throw e.result=t,d(e),e},p=(e,t)=>{const o=new ni,a=new ri;return(async()=>{if(Lt.skipAnimation)throw ti(n),a.result=Zr(r,!1),d(a),a;h(o);const s=Bt.obj(e)?{...e}:{...t,to:e};s.parentId=i,Ht(u,(e,t)=>{Bt.und(s[t])&&(s[t]=e)});const c=await r.start(s);return h(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),c})()};let v;if(Lt.skipAnimation)return ti(n),Zr(r,!1);try{let t;t=Bt.arr(e)?(async e=>{for(const t of e)await p(t)})(e):Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([t.then(l),f]),v=Zr(r.get(),!0,!1)}catch(e){if(e instanceof ni)v=e.result;else{if(!(e instanceof ri))throw e;v=e.result}}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?c:void 0)}return Bt.fun(a)&&bt.batchedUpdates(()=>{a(v,r,r.item)}),v})():c}function ti(e,t){Ut(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}
2var ni=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},ri=class extends Error{constructor(){super("SkipAnimationSignal")}},ii=e=>e instanceof ai,oi=1,ai=class extends Fn{constructor(){super(...arguments),this.id=oi++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=pr(this);return e&&e.getValue()}to(...e){return Lt.to(this,e)}interpolate(...e){return or(),Lt.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Vn(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||rn.sort(this),Vn(this,{type:"priority",parent:this,priority:e})}},si=Symbol.for("SpringPhase"),ci=e=>(1&e[si])>0,ui=e=>(2&e[si])>0,li=e=>(4&e[si])>0,di=(e,t)=>t?e[si]|=3:e[si]&=-3,fi=(e,t)=>t?e[si]|=4:e[si]&=-5,hi=class extends ai{constructor(e,t){if(super(),this.animation=new Qr,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Bt.und(e)||!Bt.und(t)){const n=Bt.obj(e)?{...e}:{...t,from:e};Bt.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(ui(this)||this._state.asyncTo)||li(this)}get goal(){return zn(this.animation.to)}get velocity(){const e=pr(this);return e instanceof gr?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return ci(this)}get isAnimating(){return ui(this)}get isPaused(){return li(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:o}=r,a=mr(r.to);!a&&Ln(r.to)&&(i=$t(zn(r.to))),r.values.forEach((s,c)=>{if(s.done)return;const u=s.constructor==br?1:a?a[c].lastPosition:i[c];let l=r.immediate,d=u;if(!l){if(d=s.lastPosition,o.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[c],i=null!=s.v0?s.v0:s.v0=Bt.arr(o.velocity)?o.velocity[c]:o.velocity;let a;const f=o.precision||(n==u?.005:Math.min(1,.001*Math.abs(u-n)));if(Bt.und(o.duration))if(o.decay){const e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*t);d=n+i/(1-e)*(1-r),l=Math.abs(s.lastPosition-d)<=f,a=i*r}else{a=null==s.lastVelocity?i:s.lastVelocity;const t=o.restVelocity||f/10,r=o.clamp?0:o.bounce,c=!Bt.und(r),h=n==u?s.v0>0:n<u;let p,v=!1;const m=1,y=Math.ceil(e/m);for(let e=0;e<y&&(p=Math.abs(a)>t,p||(l=Math.abs(u-d)<=f,!l));++e){c&&(v=d==u||d>u==h,v&&(a=-a*r,d=u));a+=(1e-6*-o.tension*(d-u)+.001*-o.friction*a)/o.mass*m,d+=a*m}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(o.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+o.easing(r)*(u-n),a=(d-s.lastPosition)/e,l=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),l=!0)}a&&!a[c].done&&(l=!1),l?s.done=!0:t=!1,s.setValue(d,o.round)&&(n=!0)});const s=pr(this),c=s.getValue();if(t){const e=zn(r.to);c===e&&!n||o.decay?n&&o.decay&&this._onChange(c):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(c)}set(e){return bt.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(ui(this)){const{to:e,config:t}=this.animation;bt.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Bt.und(e)?(n=this.queue||[],this.queue=[]):n=[Bt.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>Xr(this,e))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),ti(this._state,e&&this._lastCallId),bt.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=Bt.obj(n)?n[t]:n,(null==n||Vr(n))&&(n=void 0),r=Bt.obj(r)?r[t]:r,null==r&&(r=void 0);const i={to:n,from:r};return ci(this)||(e.reverse&&([n,r]=[r,n]),r=zn(r),Bt.und(r)?pr(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Mr(e,(e,t)=>/^on/.test(t)?Tr(e,n):e)),wi(this,e,"onProps"),Si(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did 
2you forget to pass your component to `animated(...)` before animating its props?");const o=this._state;return Yr(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{li(this)||(fi(this,!0),Kt(o.pauseQueue),Si(this,"onPause",Zr(this,pi(this,this.animation.to)),this))},resume:()=>{li(this)&&(fi(this,!1),ui(this)&&this._resume(),Kt(o.resumeQueue),Si(this,"onResume",Zr(this,pi(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=vi(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Jr(this));const r=!Bt.und(e.to),i=!Bt.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(Jr(this));this._lastToId=t.callId}const{key:o,defaultProps:a,animation:s}=this,{to:c,from:u}=s;let{to:l=c,from:d=u}=e;!i||r||t.default&&!Bt.und(l)||(l=d),t.reverse&&([l,d]=[d,l]);const f=!Vt(d,u);f&&(s.from=d),d=zn(d);const h=!Vt(l,c);h&&this._focus(l);const p=Vr(t.to),{config:v}=s,{decay:m,velocity:y}=v;(r||i)&&(v.velocity=0),t.config&&!p&&function(e,t,n){n&&(Gr(n={...n},t),t={...n,...t}),Gr(e,t),Object.assign(e,t);for(const t in Ur)null==e[t]&&(e[t]=Ur[t]);let{frequency:r,damping:i}=e;const{mass:o}=e;Bt.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r)}(v,Pr(t.config,o),t.config!==a.config?Pr(a.config,o):void 0);let g=pr(this);if(!g||Bt.und(l))return n(Zr(this,!0));const b=Bt.und(t.reset)?i&&!t.default:!Bt.und(d)&&Ar(t.reset,o),w=b?d:this.get(),S=zr(l),E=Bt.num(S)||Bt.arr(S)||sr(S),x=!p&&(!E||Ar(a.immediate||t.immediate,o));if(h){const e=kr(l);if(e!==g.constructor){if(!x)throw Error(`Cannot animate between ${g.constructor.name} and ${e.name}, as the "to" prop suggests`);g=this._set(S)}}const k=g.constructor;let _=Ln(l),C=!1;if(!_){const e=b||!ci(this)&&f;(h||e)&&(C=Vt(zr(w),S),_=!C),(Vt(s.immediate,x)||x)&&Vt(v.decay,m)&&Vt(v.velocity,y)||(_=!0)}if(C&&ui(this)&&(s.changed&&!b?_=!0:_||this._stop(c)),!p&&((_||Ln(c))&&(s.values=g.getPayload(),s.toValues=Ln(l)?null:k==br?[1]:$t(S)),s.immediate!=x&&(s.immediate=x,x||b||this._set(c)),_)){const{onRest:e}=s;Ft(bi,e=>wi(this,t,e));const r=Zr(this,pi(this,c));Kt(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&bt.batchedUpdates(()=>{s.changed=!b,e?.(r,this),b?Pr(a.onRest,r):s.onStart?.(r,this)})}b&&this._set(w),p?n(ei(t.to,t,this._state,this)):_?this._start():ui(this)&&!h?this._pendingCalls.add(n):n(Wr(w))}_focus(e){const t=this.animation;e!==t.to&&(Bn(this)&&this._detach(),t.to=e,Bn(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Ln(t)&&($n(t,this),ii(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ln(e)&&Un(e,this)}_set(e,t=!0){const n=zn(e);if(!Bt.und(n)){const e=pr(this);if(!e||!Vt(n,e.getValue())){const r=kr(n);e&&e.constructor==r?e.setValue(n):vr(this,r.create(n)),e&&bt.batchedUpdates(()=>{this._onChange(n,t)})}}return pr(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Si(this,"onStart",Zr(this,pi(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Pr(this.animation.onChange,e,this)),Pr(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;pr(this).reset(zn(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),ui(this)||(di(this,!0),li(this)||this._resume())}_resume(){Lt.skipAnimation?this.finish():rn.start(this)}_stop(e,t){if(ui(this)){di(this,!1);const n=this.animation;Ft(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Vn(this,{type:"idle",parent:this});const r=t?Jr(this.get()):Zr(this.get(),pi(this,e??n.to));Kt(this._pendingCalls,r),n.changed&&(n.changed=!1,Si(this,"onRest",r,this))}}};function pi(e,t){const n=zr(t);return Vt(zr(e.get()),n)}function vi(e,t=e.loop,n=e.to){const r=Pr(t);if(r){const i=!0!==r&&Lr(r),o=(i||e).reverse,a=!i||i.reset;return mi({...e,loop:t,default:!1,pause:void 0,to:!o||Vr(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function mi(e){const{to:t,from:n}=e=Lr(e),r=new Set;return Bt.obj(t)&&gi(t,r),Bt.obj(n)&&gi(n,r),e.keys=r.size?Array.from(r):null,e}function yi(e){const t=mi(e);return Bt.und(t.default)&&(t.default=Mr(t)),t}function gi(e,t){Ht(e,(e,n)=>null!=e&&t.add(n))}var bi=["onStart","onRest","onChange","onPause","onResume"];function wi(e,t,n){e.animation[n]=t[n]!==Rr(t,n)?Tr(t[n],e.key):void 0}function Si(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var Ei=["onStart","onChange","onRest"],xi=1,ki=class{constructor(e,t){this.id=xi++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];Bt.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(mi(e)),this}start(e){let{queue:t}=this;return e?t=$t(e).map(mi):this.queue=[],this._flush?this._flush(this,t):(Ti(this,t),_i(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Ft($t(t),t=>n[t].stop(!!e))}else ti(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(Bt.und(e))this.start({pause:!0});else{const t=this.springs;Ft($t(e),e=>t[e].pause())}return this}resume(e){if(Bt.und(e))this.start({pause:!1});else{const t=this.springs;Ft($t(e),e=>t[e].resume())}return this}each(e){Ht(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Ut(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));const o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&Ut(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,Ut(n,([e,t])=>{t.value=a,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}bt.onFrame(this._onFrame)}};function _i(e,t){return Promise.all(t.map(t=>Ci(e,t))).then(t=>Xr(e,t))}async function Ci(e,t,n){const{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:c}=t,u=Bt.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);const l=Bt.arr(i)||Bt.fun(i)?i:void 0;l?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):Ft(Ei,n=>{const r=t[n];if(Bt.fun(r)){const i=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Kt(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),h=!0===t.cancel||!0===Rr(t,"cancel");(l||h&&d.asyncId)&&f.push(Yr(++e._lastAsyncId,{props:t,state:d,actions:{pause:zt,resume:zt,start(t,n){h?(ti(d,e._lastAsyncId),n(Jr(e))):(t.onRest=s,n(ei(l,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});const p=Xr(e,await Promise.all(f));if(a&&p.finished&&(!n||!p.noop)){const n=vi(t,a,i);if(n)return Ti(e,[n]),Ci(e,n,!0)}return c&&bt.batchedUpdates(()=>c(p,e,e.item)),p}function Ni(e,t){const n={...e.springs};return t&&Ft($t(t),e=>{Bt.und(e.keys)&&(e=mi(e)),Bt.obj(e.to)||(e={...e,to:void 0}),Ai(n,e,e=>Pi(e))}),Oi(e,n),n}function Oi(e,t){Ht(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,$n(t,e))})}function Pi(e,t){const n=new hi;return n.key=e,t&&$n(n,t),n}
2function Ai(e,t,n){t.keys&&Ft(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Ti(e,t){Ft(t,t=>{Ai(e.springs,t,t=>Pi(t,e))})}var Ri=({children:e,...t})=>{const n=(0,r.useContext)(Ii),i=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=function(e,t){const[n]=(0,r.useState)(()=>({inputs:t,result:e()})),i=(0,r.useRef)(),o=i.current;let a=o;a?Boolean(t&&a.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,a.inputs))||(a={inputs:t,result:e()}):a=n;return(0,r.useEffect)(()=>{i.current=a,o==n&&(n.inputs=n.result=void 0)},[a]),a.result}(()=>({pause:i,immediate:o}),[i,o]);const{Provider:a}=Ii;return r.createElement(a,{value:t},e)},Ii=function(e,t){return Object.assign(e,r.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}(Ri,{});Ri.Provider=Ii.Provider,Ri.Consumer=Ii.Consumer;var Mi=()=>{const e=[],t=function(t){ar(`${nr}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return Ft(e,(e,i)=>{if(Bt.und(t))r.push(e.start());else{const o=n(t,e,i);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Ft(e,e=>e.pause(...arguments)),this},t.resume=function(){return Ft(e,e=>e.resume(...arguments)),this},t.set=function(t){Ft(e,(e,n)=>{const r=Bt.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){const n=[];return Ft(e,(e,r)=>{if(Bt.und(t))n.push(e.start());else{const i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return Ft(e,e=>e.stop(...arguments)),this},t.update=function(t){return Ft(e,(e,n)=>e.update(this._getProps(t,e,n))),this};const n=function(e,t,n){return Bt.fun(e)?e(n,t):e};return t._getProps=n,t};function Di(e,t,n){const i=Bt.fun(t)&&t;i&&!n&&(n=[]);const o=(0,r.useMemo)(()=>i||3==arguments.length?Mi():void 0,[]),a=(0,r.useRef)(0),s=ur(),c=(0,r.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){const n=Ni(e,t);return a.current>0&&!c.queue.length&&!Object.keys(n).some(t=>!e.springs[t])?_i(e,t):new Promise(r=>{Oi(e,n),c.queue.push(()=>{r(_i(e,t))}),s()})}}),[]),u=(0,r.useRef)([...c.ctrls]),l=[],d=fr(e)||0;function f(e,n){for(let r=e;r<n;r++){const e=u.current[r]||(u.current[r]=new ki(null,c.flush)),n=i?i(r,e):t[r];n&&(l[r]=yi(n))}}(0,r.useMemo)(()=>{Ft(u.current.slice(e,d),e=>{Fr(e,o),e.stop(!0)}),u.current.length=e,f(d,e)},[e]),(0,r.useMemo)(()=>{f(0,Math.min(d,e))},n);const h=u.current.map((e,t)=>Ni(e,l[t])),p=(0,r.useContext)(Ri),v=fr(p),m=p!==v&&Br(p);cr(()=>{a.current++,c.ctrls=u.current;const{queue:e}=c;e.length&&(c.queue=[],Ft(e,e=>e())),Ft(u.current,(e,t)=>{o?.add(e),m&&e.start({default:p});const n=l[t];n&&(Hr(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),lr(()=>()=>{Ft(c.ctrls,e=>e.stop(!0))});const y=h.map(e=>({...e}));return o?[y,o]:y}function ji(e,t){const n=Bt.fun(e),[[r],i]=Di(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}var Li=class extends ai{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Nn(...t);const n=this._get(),r=kr(n);vr(this,r.create(n))}advance(e){const t=this._get();Vt(t,this.get())||(pr(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Bi(this._active)&&Vi(this)}_get(){const e=Bt.arr(this.source)?this.source.map(zn):$t(zn(this.source));return this.calc(...e)}_start(){this.idle&&!Bi(this._active)&&(this.idle=!1,Ft(mr(this),e=>{e.done=!1}),Lt.skipAnimation?(bt.batchedUpdates(()=>this.advance()),Vi(this)):rn.start(this))}_attach(){let e=1;Ft($t(this.source),t=>{Ln(t)&&$n(t,this),ii(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Ft($t(this.source),e=>{Ln(e)&&Un(e,this)}),this._active.clear(),Vi(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=$t(this.source).reduce((e,t)=>Math.max(e,(ii(t)?t.priority:0)+1),0))}};function zi(e){return!1!==e.idle}function Bi(e){return!e.size||Array.from(e).every(zi)}function Vi(e){e.idle||(e.idle=!0,Ft(mr(e),e=>{e.done=!0}),Vn(e,{type:"idle",parent:e}))}var Fi=(e,...t)=>(or(),new Li(e,t));Lt.assign({createStringInterpolator:tr,to:(e,t)=>new Li(e,t)});rn.advance;var Hi=/^--/;function $i(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Hi.test(e)||qi.hasOwnProperty(e)&&qi[e]?(""+t).trim():t+"px"}var Ui={};var qi={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Gi=["Webkit","Ms","Moz","O"];qi=Object.keys(qi).reduce((e,t)=>
2(Gi.forEach(n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t]),e),qi);var Ki=/^(matrix|translate|scale|rotate|skew)/,Qi=/^(translate)/,Yi=/^(rotate|skew)/,Xi=(e,t)=>Bt.num(e)&&0!==e?e+t:e,Wi=(e,t)=>Bt.arr(e)?e.every(e=>Wi(e,t)):Bt.num(e)?e===t:parseFloat(e)===t,Zi=class extends Sr{constructor({x:e,y:t,z:n,...r}){const i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(e=>[`translate3d(${e.map(e=>Xi(e,"px")).join(",")})`,Wi(e,0)])),Ht(r,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(Ki.test(t)){if(delete r[t],Bt.und(e))return;const n=Qi.test(t)?"px":Yi.test(t)?"deg":"";i.push($t(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${Xi(i,n)})`,Wi(i,0)]:e=>[`${t}(${e.map(e=>Xi(e,n)).join(",")})`,Wi(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new Ji(i,o)),super(r)}},Ji=class extends Fn{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Ft(this.inputs,(n,r)=>{const i=zn(n[0]),[o,a]=this.transforms[r](Bt.arr(i)?i:n.map(zn));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){1==e&&Ft(this.inputs,e=>Ft(e,e=>Ln(e)&&$n(e,this)))}observerRemoved(e){0==e&&Ft(this.inputs,e=>Ft(e,e=>Ln(e)&&Un(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),Vn(this,e)}};Lt.assign({batchedUpdates:f.unstable_batchedUpdates,createStringInterpolator:tr,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var eo=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new Sr(e),getComponentProps:r=e=>e}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{const t=Or(e)||"Anonymous";return(e=Bt.str(e)?o[e]||(o[e]=_r(e,i)):e[Nr]||(e[Nr]=_r(e,i))).displayName=`Animated(${t})`,e};return Ht(e,(t,n)=>{Bt.arr(e)&&(n=Or(t)),o[n]=o(t)}),{animated:o}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{className:r,style:i,children:o,scrollTop:a,scrollLeft:s,viewBox:c,...u}=t,l=Object.values(u),d=Object.keys(u).map(t=>n||e.hasAttribute(t)?t:Ui[t]||(Ui[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));void 0!==o&&(e.textContent=o);for(const t in i)if(i.hasOwnProperty(t)){const n=$i(t,i[t]);Hi.test(t)?e.style.setProperty(t,n):e.style[t]=n}
2d.forEach((t,n)=>{e.setAttribute(t,l[n])}),void 0!==r&&(e.className=r),void 0!==a&&(e.scrollTop=a),void 0!==s&&(e.scrollLeft=s),void 0!==c&&e.setAttribute("viewBox",c)},createAnimatedStyle:e=>new Zi(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),to=eo.animated;function no(e,t){return e.map(function(e,n){return e+t[n]})}function ro(e,t){return e.map(function(e,n){return e-t[n]})}function io(e){return Math.hypot.apply(Math,e)}function oo(e,t,n){var r=io(t),i=0===r?0:1/r,o=0===n?0:1/n,a=o*r,s=t.map(function(e){return o*e}),c=t.map(function(e){return i*e});return{velocities:s,velocity:a,distance:io(e),direction:c}}function ao(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function so(e,t,n){return 0===t||Math.abs(t)===1/0?function(e,t){return Math.pow(e,5*t)}(e,n):e*t*n/(t+n*e)}function co(e,t,n,r){return void 0===r&&(r=.15),0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):e<t?-so(t-e,n-t,r)+t:e>n?+so(e-n,n-t,r)+n:e}function uo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function lo(){return lo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lo.apply(this,arguments)}function fo(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function ho(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function po(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mo(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return vo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vo(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function yo(){}function go(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?yo:1===t.length?t[0]:function(){for(var e,n,r=mo(t);!(n=r()).done;){e=n.value.apply(this,arguments)||e}return e}}function bo(e,t){if(void 0===e){if(void 0===t)throw new Error("Mu
2st define fallback value if undefined is expected");e=t}return Array.isArray(e)?e:[e,e]}function wo(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}return e}function So(e,t){void 0===e&&(e={});for(var n={},r=0,i=Object.entries(t);r<i.length;r++){var o=i[r],a=o[0],s=o[1];switch(typeof s){case"function":n[a]=s.call(n,e[a],a,e);break;case"object":n[a]=So(e[a],s);break;case"boolean":s&&(n[a]=e[a])}}return n}var Eo={threshold:function(e){return void 0===e&&(e=0),bo(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return bo(.15);case!1:return bo(0);default:return bo(e)}},enabled:function(e){return void 0===e&&(e=!0),e},triggerAllEvents:function(e){return void 0===e&&(e=!1),e},initial:function(e){return void 0===e&&(e=0),"function"==typeof e?e:bo(e)}},xo=lo({},Eo,{axis:!0,lockDirection:function(e){return void 0===e&&(e=!1),e},bounds:function(e){if(void 0===e&&(e={}),"function"==typeof e)return function(t){return xo.bounds(e(t))};var t=e,n=t.left,r=void 0===n?-1/0:n,i=t.right,o=void 0===i?1/0:i,a=t.top,s=void 0===a?-1/0:a,c=t.bottom;return[[r,o],[s,void 0===c?1/0:c]]}}),ko="undefined"!=typeof window&&window.document&&window.document.createElement,_o={enabled:function(e){return void 0===e&&(e=!0),e},domTarget:!0,window:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){return void 0===e&&(e=ko?window:void 0),e}),eventOptions:function(e){var t=void 0===e?{}:e,n=t.passive,r=void 0===n||n,i=t.capture;return{passive:r,capture:void 0!==i&&i}}},Co=lo({},xo,{threshold:function(e,t,n){var r=n.filterTaps,i=void 0!==r&&r,o=n.lockDirection,a=void 0!==o&&o,s=n.axis,c=bo(e,i?3:a||(void 0===s?void 0:s)?1:0);return this.filterTaps=i||c[0]+c[1]>0,c},swipeVelocity:function(e){return void 0===e&&(e=.5),bo(e)},swipeDistance:function(e){return void 0===e&&(e=60),bo(e)},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function No(e){return void 0===e&&(e={}),So(e,_o)}function Oo(e){return void 0===e&&(e={}),So(e,Co)}function Po(e){var t=e.domTarget,n=e.eventOptions,r=e.window,i=e.enabled,o=ho(e,["domTarget","eventOptions","window","enabled"]),a=No({domTarget:t,eventOptions:n,window:r,enabled:i});return a.drag=Oo(o),a}function Ao(e){return lo({_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_lastEventType:void 0,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:yo,canceled:!1,memo:void 0,args:void 0},e)}function To(){return{shared:{hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1},drag:Ao({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,_isTap:!0,_delayedEvent:!1,_pointerId:void 0,tap:!1,swipe:[0,0]}),pinch:Ao({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:Ao({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:Ao({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:Ao({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var Ro=new Map,Io=function(){function e(e,t){var n=this;void 0===t&&(t=[]),this.controller=e,this.args=t,this.debounced=!0,this.setTimeout=function(e,t){var r;void 0===t&&(t=140),clearTimeout(n.controller.timeouts[n.stateKey]);for(var i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];n.controller.timeouts[n.stateKey]=(r=window).setTimeout.apply(r,[e,t].concat(o))},this.clearTimeout=function(){clearTimeout(n.controller.timeouts[n.stateKey])},this.fireGestureHandler=function(e){if(void 0===e&&(e=!1),n.state._blocked)return n.debounced||(n.state._active=!1,n.clean()),null;if(!e&&!n.state.intentional&&!n.config.triggerAllEvents)return null;if(n.state.intentional){var t=n.state.active,r=n.state._active;n.state.active=r,n.state.first=r&&!t,n.state.last=t&&!r,n.controller.state.shared[n.ingKey]=r}var i=lo({},n.controller.state.shared,n.state,n.mapStateValues(n.state)),o=n.handler(i);return n.state.memo=void 0!==o?o:n.state.memo,n.state._active||n.clean(),i}}var t,n,r,i=e.prototype;return i.updateSharedState=function(e){Object.assign(this.controller.state.shared,e)},i.updateGestureState=function(e){Object.assign(this.state,e)},i.checkIntentionality=function(e,t){return{_intentional:e,_blocked:!1}},i.getMovement=function(e){var t=this.config,n=t.initial,r=t.boun
2ds,i=t.rubberband,o=t.threshold,a=this.state,s=a._bounds,c=a._initial,u=a._active,l=a._intentional,d=a.lastOffset,f=a.movement,h=this.getInternalMovement(e,this.state),p=!1===l[0]?Mo(h[0],o[0]):l[0],v=!1===l[1]?Mo(h[1],o[1]):l[1],m=this.checkIntentionality([p,v],h);if(m._blocked)return lo({},m,{_movement:h,delta:[0,0]});var y,g,b,w,S=m._intentional,E=h;(!1!==S[0]&&!1===l[0]&&(g=wo(n,this.state),y=wo(r,this.state),c[0]=g[0],s[0]=y[0]),!1!==S[1]&&!1===l[1])&&(g=null!=(b=g)?b:wo(n,this.state),y=null!=(w=y)?w:wo(r,this.state),c[1]=g[1],s[1]=y[1]);var x=[!1!==S[0]?h[0]-S[0]:c[0],!1!==S[1]?h[1]-S[1]:c[1]],k=no(x,d),_=u?i:[0,0];return x=Do(s,no(x,c),_),lo({},m,{intentional:!1!==S[0]||!1!==S[1],_initial:c,_movement:E,movement:x,values:e,offset:Do(s,k,_),delta:ro(x,f)})},i.clean=function(){this.clearTimeout()},t=e,(n=[{key:"config",get:function(){return this.controller.config[this.stateKey]}},{key:"enabled",get:function(){return this.controller.config.enabled&&this.config.enabled}},{key:"state",get:function(){return this.controller.state[this.stateKey]}},{key:"handler",get:function(){return this.controller.handlers[this.stateKey]}}])&&uo(t.prototype,n),r&&uo(t,r),e}();function Mo(e,t){return Math.abs(e)>=t&&ao(e)*t}function Do(e,t,n){var r=t[0],i=t[1],o=n[0],a=n[1],s=e[0],c=s[0],u=s[1],l=e[1],d=l[0],f=l[1];return[co(r,c,u,o),co(i,d,f,a)]}function jo(e,t,n){var r=e.state,i=e.args,o=t.timeStamp,a=t.type,s=r.values;return{_lastEventType:a,event:t,timeStamp:o,elapsedTime:n?0:o-r.startTime,args:i,previous:s}}function Lo(e,t,n){var r=e.state.offset,i=n.timeStamp;return lo({},To()[e.stateKey],{_active:!0,values:t,initial:t,offset:r,lastOffset:r,startTime:i})}function zo(e,t){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return e.call.apply(e,[this,lo({},t,{event:n})].concat(i))}}var Bo=function(e){var t=this;this.classes=e,this.bind=function(){for(var e={},n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var o,a=mo(t.classes);!(o=a()).done;){new(0,o.value)(t,r).addBindings(e)}for(var s=0,c=Object.entries(t.nativeRefs);s<c.length;s++){var u=c[s];Ho(e,u[0],zo(u[1],lo({},t.state.shared,{args:r})))}return t.config.domTarget?function(e,t){var n=e.config,r=e.domListeners,i=Fo(n);if(!i)throw new Error("domTarget must be defined");var o=n.eventOptions;Uo(i,Vo(r),o);for(var a=0,s=Object.entries(t);a<s.length;a++){var c=s[a],u=c[0],l=c[1],d=u.slice(2).toLowerCase();r.push([d,go.apply(void 0,l)])}$o(i,r,o)}(t,e):function(e,t){for(var n=e.config,r={},i=n.eventOptions.capture?"Capture":"",o=0,a=Object.entries(t);o<a.length;o++){var s=a[o],c=s[0],u=s[1],l=Array.isArray(u)?u:[u];r[c+i]=go.apply(void 0,l)}return r}(t,e)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=Fo(t.config),n=t.config.eventOptions;e&&Uo(e,Vo(t.domListeners),n),Object.values(t.timeouts).forEach(clearTimeout),function(e){var t=e.config,n=t.window,r=t.eventOptions,i=e.windowListeners;if(!n)return;for(var o in i){Uo(n,i[o],r)}e.windowListeners={}}(t)},this.state=To(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function Vo(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function Fo(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function Ho(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function $o(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,i=mo(t);!(r=i()).done;){var o=r.value,a=o[0],s=o[1];e.addEventListener(a,s,n)}}function Uo(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,i=mo(t);!(r=i()).done;){var o=r.value,a=o[0],s=o[1];e.removeEventListener(a,s,n)}}function qo(e,t,n){void 0===n&&(n={});var r=function(e){var t=new Set;e.drag&&t.add(Ro.get("drag"));e.wheel&&t.add(Ro.get("wheel"));e.scroll&&t.add(Ro.get("scroll"));e.move&&t.add(Ro.get("move"));e.pinch&&t.add(Ro.get("pinch"));e.hover&&t.add(Ro.get("hover"));return t}(e),o=i().useMemo(function(){return new Bo(r)},[]);return o.config=t,o.handlers=e,o.nativeRefs=n,i().useEffect(o.effect,[]),o.config.domTarget?Go:o.bind}function Go(){0}var Ko=function(e){function t(){return e.apply(this,arguments)||this}fo(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return ro(e,t.initial)},n.checkIntentionality=function(e,t){if(!1===e[0]&&!1===e[1])return{_intentional:e,axis:this.state.axis};var n=t.map(Math.abs),r=n[0],i=n[1],o=this.state.axis||(r>i?"x":r<i?"y":void 0);return this.config.axis||this.config.lockDirection?o?this.config.axis&&o!==this.config.axis?{_intentional:e,_blocked:!0,axis:o}:(e["x"===o?1:0]=!1,{_intentional:e,_blocked:!1,axis:o}):{_intentional:[!1,!1],_blocked:!1,axis:o}:{_intentional:e,_blocked:!1,axis:o}},n.getKinematics=function(e,t){var n=this.getMovement(e);
2if(!n._blocked){var r=t.timeStamp-this.state.timeStamp;Object.assign(n,oo(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(Io);function Qo(e){if("touches"in e){var t=e.targetTouches,n=e.changedTouches;return t.length>0?t:n}return null}function Yo(e){var t="buttons"in e?e.buttons:0,n=Qo(e),r=n&&n.length||0;return{touches:r,down:r>0||t>0,buttons:t,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey}}function Xo(e){var t=Qo(e),n=t?t[0]:e;return[n.clientX,n.clientY]}var Wo=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).ingKey="dragging",t.stateKey="drag",t.onDragStart=function(e){t.enabled&&!t.state._active&&(!function(e,t,n){var r=e.config,i=e.windowListeners;void 0===n&&(n=[]),r.window&&(Uo(r.window,i[t],r.eventOptions),$o(r.window,i[t]=n,r.eventOptions))}(t.controller,t.stateKey,[["pointermove",t.onDragChange],["pointerup",t.onDragEnd],["pointercancel",t.onDragEnd]]),t.updateGestureState({_pointerId:e.pointerId}),t.config.delay>0?(t.state._delayedEvent=!0,"persist"in e&&"function"==typeof e.persist&&e.persist(),t.setTimeout(t.startDrag.bind(po(t)),t.config.delay,e)):t.startDrag(e))},t.onDragChange=function(e){if(!t.state.canceled&&e.pointerId===t.state._pointerId)if(t.state._active){var n=Yo(e);if(n.down){t.updateSharedState(n);var r=Xo(e),i=t.getKinematics(r,e),o=jo(po(t),e),a=t.state._isTap,s=io(i._movement);a&&s>=3&&(a=!1),t.updateGestureState(lo({},o,i,{_isTap:a})),t.fireGestureHandler()}else t.onDragEnd(e)}else t.state._delayedEvent&&(t.clearTimeout(),t.startDrag(e))},t.onDragEnd=function(e){if(e.pointerId===t.state._pointerId){t.state._active=!1,t.updateSharedState({down:!1,buttons:0,touches:0});var n=t.state._isTap,r=t.state.velocities,i=r[0],o=r[1],a=t.state.movement,s=a[0],c=a[1],u=t.state._intentional,l=u[0],d=u[1],f=t.config.swipeVelocity,h=f[0],p=f[1],v=t.config.swipeDistance,m=v[0],y=v[1],g=lo({},jo(po(t),e),t.getMovement(t.state.values)),b=[0,0];g.elapsedTime<220&&(!1!==l&&Math.abs(i)>h&&Math.abs(s)>m&&(b[0]=ao(i)),!1!==d&&Math.abs(o)>p&&Math.abs(c)>y&&(b[1]=ao(o))),t.updateGestureState(lo({},g,{tap:n,swipe:b})),t.fireGestureHandler(!0===n)}},t.clean=function(){e.prototype.clean.call(po(t)),t.state._delayedEvent=!1,function(e,t){var n=e.config,r=e.windowListeners;n.window&&(Uo(n.window,r[t],n.eventOptions),delete r[t])}(t.controller,t.stateKey)},t.onCancel=function(){t.state.canceled||(t.updateGestureState({canceled:!0}),t.state._active=!1,t.updateSharedState({down:!1,buttons:0,touches:0}),requestAnimationFrame(function(){return t.fireGestureHandler()}))},t.onClick=function(e){t.state._isTap||e.stopPropagation()},t}fo(t,e);var n=t.prototype;return n.startDrag=function(e){var t=Xo(e);this.updateSharedState(Yo(e)),this.updateGestureState(lo({},Lo(this,t,e),jo(this,e,!0),{_pointerId:e.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(t)),this.fireGestureHandler()},n.addBindings=function(e){(Ho(e,"onPointerDown",this.onDragStart),this.config.filterTaps)&&Ho(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(Ko);function Zo(e,t){var n,r,i=[],o=!1;return function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return o&&n===this&&t(s,i)||(r=e.apply(this,s),o=!0,n=this,i=s),r}}function Jo(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,i,o;if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!==r--;)if(!Jo(e[r],t[r]))return!1;return!0}if("function"==typeof Map&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!Jo(r.value[1],t.get(r.value[0])))return!1;return!0}if("function"==typeof Set&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if("undefined"!=typeof Element&&e instanceof Element)return!1;for(r=n;0!==r--;)if(!("_owner"===i[r]&&e.$$typeof||Jo(e[i[r]],t[i[r]])))return!1;return!0}return e!=e&&t!=t}function ea(e,t){try{return Jo(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}var ta=["input","select","textarea","a[href]","button","[tabindex]:not
2(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],na=ta.join(","),ra="undefined"==typeof Element,ia=ra?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,oa=!ra&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},aa=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(na));return t&&ia.call(e,na)&&r.unshift(e),r=r.filter(n)},sa=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if("SLOT"===a.tagName){var s=a.assignedElements(),c=e(s.length?s:a.children,!0,r);r.flatten?i.push.apply(i,c):i.push({scope:a,candidates:c})}else{ia.call(a,na)&&r.filter(a)&&(n||!t.includes(a))&&i.push(a);var u=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),l=!r.shadowRootFilter||r.shadowRootFilter(a);if(u&&l){var d=e(!0===u?a.children:u.children,!0,r);r.flatten?i.push.apply(i,d):i.push({scope:a,candidates:d})}else o.unshift.apply(o,a.children)}}return i},ca=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},ua=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},la=function(e){return"INPUT"===e.tagName},da=function(e){return function(e){return la(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||oa(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)},fa=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},ha=function(e,t){return!(t.disabled||function(e){return la(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=ia.call(e,"details>summary:first-of-type")?e.parentElement:e;if(ia.call(i,"details:not([open]) *"))return!0;var o=oa(e).host,a=(null==o?void 0:o.ownerDocument.contains(o))||e.ownerDocument.contains(e);if(n&&"full"!==n){if("non-zero-area"===n)return fa(e)}else{if("function"==typeof r){for(var s=e;e;){var c=e.parentElement,u=oa(e);if(c&&!c.shadowRoot&&!0===r(c))return fa(e);e=e.assignedSlot?e.assignedSlot:c||u===e.ownerDocument?c:u.host}e=s}if(a)return!e.getClientRects().length}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!ia.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},pa=function(e,t){return!(da(t)||ca(t)<0||!ha(e,t))},va=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},ma=function e(t){var n=[],r=[];return t.forEach(function(t,i){var o=!!t.scope,a=o?t.scope:t,s=ca(a,o),c=o?e(t.candidates):a;0===s?o?n.push.apply(n,c):n.push(a):r.push({documentOrder:i,tabIndex:s,item:t,isScope:o,content:c})}),r.sort(ua).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},ya=function(e,t){var n;return n=(t=t||{}).getShadowRoot?sa([e],t.includeContainer,{filter:pa.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:va}):aa(e,t.includeContainer,pa.bind(null,t)),ma(n)},ga=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==ia.call(e,na)&&pa(t,e)},ba=ta.concat("iframe").join(","),wa=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==ia.call(e,ba)&&ha(t,e)};function Sa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ea(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?Sa(Object(n),!0).forEach(function(t){xa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ka,_a=(ka=[],{activateTrap:function(e){if(ka.length>0){var t=ka[ka.length-1];t!==e&&t.pause()}var n=ka.indexOf(e);-1===n||ka.splice(n,1),ka.push(e)},deactivateTrap:function(e){var t=ka.indexOf(e);-1!==t&&ka.splice(t,1),ka.length>0&&ka[ka.length-1].unpause()}}),Ca=function(e){return setTimeout(e,0)},Na=function(e,t){var n=-1;return e.every(function(e,r){return!t(e)||(n=r,!1)}),n},Oa=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},Pa=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},Aa=function(e,t){var n,r=(null==t?void 0:t.document)||document,i=Ea({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a=function(e,t,n){return e&&void 0!==e[t]?e[t]:i[n||t]},s=function(e){return o.containerGroups.findIndex(function(t){var n=t.container,r=t.tabbableNodes;return n.contains(e)||r.find(function(t){return t===e})})},c=function(e){var t=i[e];if("function"==typeof t){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];t=t.apply(void 0,o)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var s=t;if("string"==typeof t&&!(s=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return s},u=function(){var e=c("initialFocus");if(!1===e)return!1;if(void 0===e)if(s(r.activeElement)>=0)e=r.activeElement;else{var t=o.tabbableGroups[0];e=t&&t.firstTabbableNode||c("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},l=function(){if(o.containerGroups=o.containers.map(function(e){var t,n,r=ya(e,i.tabbableOptions),o=(t=e,(n=(n=i.tabbableOptions)||{}).getShadowRoot?sa([t],n.includeContainer,{filter:ha.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):aa(t,n.includeContainer,ha.bind(null,n)));return{container:e,tabbableNodes:r,focusableNodes:o,firstTabbableNode:r.length>0?r[0]:null,lastTabbableNode:r.length>0?r[r.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=o.findIndex(function(t){return t===e});if(!(n<0))return t?o.slice(n+1).find(function(e){return ga(e,i.tabbableOptions)}):o.slice(0,n).reverse().find(function(e){return ga(e,i.tabbableOptions)})}}}),o.tabbableGroups=o.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),o.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},d=function e(t){!1!==t&&t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(u()))},f=function(e){var t=c("setReturnFocus",e);return t||!1!==t&&e},h=function(e){var t=Pa(e);s(t)>=0||(Oa(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate&&!wa(t,i.tabbableOptions)}):Oa(i.allowOutsideClick,e)||e.preventDefault())},p=function(e){var t=Pa(e),n=s(t)>=0;n||t instanceof Document?n&&(o.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),d(o.mostRecentlyFocusedNode||u()))},v=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==Oa(i.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=Pa(e);l();var n=null;if(o.tabbableGroups.length>0){var r=s(t),a=r>=0?o.containerGroups[r]:void 0;if(r<0)n=e.shiftKey?o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:o.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var u=Na(o.tabbableGroups,function(e){var n=e.firstTabbableNode;return t===n});if(u<0&&(a.container===t||wa(t,i.tabbableOptions)&&!ga(t,i.tabbableOptions)&&!a.nextTabbableNode(t,!1))&&(u=r),u>=0){var f=0===u?o.tabbableGroups.length-1:u-1;n=o.tabbableGroups[f].lastTabbableNode}}else{var h=Na(o.tabbableGroups,function(e){var n=e.lastTabbableNode;return t===n});if(h<0&&(a.container===t||wa(t,i.tabbableOptions)&&!ga(t,i.tabbableOptions)&&!a.nextTabbableNode(t))&&(h=r),h>=0){var p=h===o.tabbableGroups.length-1?0:h+1;n=o.tabbableGroups[p].firstTabbableNode}}}else n=c("fallbackFocus");n&&(e.preventDefault(),d(n))}(e)},m=function(e){var t=Pa(e);s(t)>
2=0||Oa(i.clickOutsideDeactivates,e)||Oa(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},y=function(){if(o.active)return _a.activateTrap(n),o.delayInitialFocusTimer=i.delayInitialFocus?Ca(function(){d(u())}):d(u()),r.addEventListener("focusin",p,!0),r.addEventListener("mousedown",h,{capture:!0,passive:!1}),r.addEventListener("touchstart",h,{capture:!0,passive:!1}),r.addEventListener("click",m,{capture:!0,passive:!1}),r.addEventListener("keydown",v,{capture:!0,passive:!1}),n},g=function(){if(o.active)return r.removeEventListener("focusin",p,!0),r.removeEventListener("mousedown",h,!0),r.removeEventListener("touchstart",h,!0),r.removeEventListener("click",m,!0),r.removeEventListener("keydown",v,!0),n};return(n={get active(){return o.active},get paused(){return o.paused},activate:function(e){if(o.active)return this;var t=a(e,"onActivate"),n=a(e,"onPostActivate"),i=a(e,"checkCanFocusTrap");i||l(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=r.activeElement,t&&t();var s=function(){i&&l(),y(),n&&n()};return i?(i(o.containers.concat()).then(s,s),this):(s(),this)},deactivate:function(e){if(!o.active)return this;var t=Ea({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,g(),o.active=!1,o.paused=!1,_a.deactivateTrap(n);var r=a(t,"onDeactivate"),s=a(t,"onPostDeactivate"),c=a(t,"checkCanReturnFocus"),u=a(t,"returnFocus","returnFocusOnDeactivate");r&&r();var l=function(){Ca(function(){u&&d(f(o.nodeFocusedBeforeActivation)),s&&s()})};return u&&c?(c(f(o.nodeFocusedBeforeActivation)).then(l,l),this):(l(),this)},pause:function(){return o.paused||!o.active||(o.paused=!0,g()),this},unpause:function(){return o.paused&&o.active?(o.paused=!1,l(),y(),this):this}
2,updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return o.containers=t.map(function(e){return"string"==typeof e?r.querySelector(e):e}),o.active&&l(),this}}).updateContainerElements(e),n};var Ta=!1;if("undefined"!=typeof window){var Ra={get passive(){Ta=!0}};window.addEventListener("testPassive",null,Ra),window.removeEventListener("testPassive",null,Ra)}var Ia,Ma="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),Da=[],ja=!1,La=-1,za=void 0,Ba=void 0,Va=function(e){return Da.some(function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))})},Fa=function(e){var t=e||window.event;return!!Va(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},Ha=function(){void 0!==Ba&&(document.body.style.paddingRight=Ba,Ba=void 0),void 0!==za&&(document.body.style.overflow=za,za=void 0)},$a=function(e,t){if(e){if(!Da.some(function(t){return t.targetElement===e})){var n={targetElement:e,options:t||{}};Da=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Da),[n]),Ma?(e.ontouchstart=function(e){1===e.targetTouches.length&&(La=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-La;!Va(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?Fa(e):e.stopPropagation())}(t,e)},ja||(document.addEventListener("touchmove",Fa,Ta?{passive:!1}:void 0),ja=!0)):function(e){if(void 0===Ba){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(Ba=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===za&&(za=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},Ua=[],qa=function(){return Ua.some(function(e){return e.activeTargets.length>0})},Ga="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(Ia||(Ia={}));var Ka,Qa=function(e){return Object.freeze(e)},Ya=function(e,t){this.inlineSize=e,this.blockSize=t,Qa(this)},Xa=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Qa(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Wa=function(e){return e instanceof SVGElement&&"getBBox"in e},Za=function(e){if(Wa(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||e.getClientRects().length)},Ja=function(e){var t;if(e instanceof Element)return!0;var n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},es="undefined"!=typeof window?window:{},ts=new WeakMap,ns=/auto|scroll/,rs=/^tb|vertical/,is=/msie|trident/i.test(es.navigator&&es.navigator.userAgent),os=function(e){return parseFloat(e||"0")},as=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new Ya((n?t:e)||0,(n?e:t)||0)},ss=Qa({devicePixelContentBoxSize:as(),borderBoxSize:as(),contentBoxSize:as(),contentRect:new Xa(0,0,0,0)}),cs=function(e,t){if(void 0===t&&(t=!1),ts.has(e)&&!t)return ts.get(e);if(Za(e))return ts.set(e,ss),ss;var n=getComputedStyle(e),r=Wa(e)&&e.ownerSVGElement&&e.getBBox(),i=!is&&"border-box"===n.boxSizing,o=rs.test(n.writingMode||""),a=!r&&ns.test(n.overflowY||""),s=!r&&ns.test(n.overflowX||""),c=r?0:os(n.paddingTop),u=r?0:os(n.paddingRight),l=r?0:os(n.paddingBottom),d=r?0:os(n.paddingLeft),f=r?0:os(n.borderTopWidth),h=r?0:os(n.borderRightWidth),p=r?0:os(n.borderBottomWidth),v=d+u,m=c+l,y=(r?0:os(n.borderLeftWidth))+h,g=f+p,b=s?e.offsetHeight-g-e.clientHeight:0,w=a?e.offsetWidth-y-e.clientWidth:0,S=i?v+y:0,E=i?m+g:0,x=r?r.width:os(n.width)-S-w,k=r?r.height:os(n.height)-E-b,_=x+v+w+y,C=k+m+b+g,N=Qa({devicePixelContentBoxSize:as(Math.round(x*devicePixelRatio),Math.round(k*devicePixelRatio),o),borderBoxSize:as(_,C,o),contentBoxSize:as(x,k,o),contentRect:new Xa(d,c,x,k)});return ts.set(e,N),N},us=function(e,t,n){var r=cs(e,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case Ia.DEVICE_PIXEL_CONTENT_BOX:return a;case Ia.BORDER_BOX:return i;default:return o}},ls=function(e){var t=cs(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=Qa([t.borderBoxSize]),this.contentBoxSize=Qa([t.contentBoxSize]),this.devicePixelContentBoxSize=Qa([t.devicePixelContentBoxSize])},ds=function(e){if(Za(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},fs=function(){var e=1/0,t=[];
2Ua.forEach(function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach(function(t){var n=new ls(t.target),i=ds(t.target);r.push(n),t.lastReportedSize=us(t.target,t.observedBox),i<e&&(e=i)}),t.push(function(){n.callback.call(n.observer,r,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){(0,r[n])()}return e},hs=function(e){Ua.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(ds(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},ps=function(){var e=0;for(hs(e);qa();)e=fs(),hs(e);return Ua.some(function(e){return e.skippedTargets.length>0})&&function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:Ga}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=Ga),window.dispatchEvent(e)}(),e>0},vs=[],ms=function(e){if(!Ka){var t=0,n=document.createTextNode("");new MutationObserver(function(){return vs.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),Ka=function(){n.textContent="".concat(t?t--:t++)}}vs.push(e),Ka()},ys=0,gs={attributes:!0,characterData:!0,childList:!0,subtree:!0},bs=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],ws=function(e){return void 0===e&&(e=0),Date.now()+e},Ss=!1,Es=function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!Ss){Ss=!0;var n,r=ws(e);n=function(){var n=!1;try{n=ps()}finally{if(Ss=!1,e=r-ws(),!ys)return;n?t.run(1e3):e>0?t.run(e):t.start()}},ms(function(){requestAnimationFrame(n)})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,gs)};document.body?t():es.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),bs.forEach(function(t){return es.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),bs.forEach(function(t){return es.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}(),xs=new Es,ks=function(e){!ys&&e>0&&xs.start(),!(ys+=e)&&xs.stop()},_s=function(){function e(e,t){this.target=e,this.observedBox=t||Ia.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=us(this.target,this.observedBox,!0);return e=this.target,Wa(e)||function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Cs=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},Ns=new WeakMap,Os=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Ps=function(){function e(){}return e.connect=function(e,t){var n=new Cs(e,t);Ns.set(e,n)},e.observe=function(e,t,n){var r=Ns.get(e),i=0===r.observationTargets.length;Os(r.observationTargets,t)<0&&(i&&Ua.push(r),r.observationTargets.push(new _s(t,n&&n.box)),ks(1),xs.schedule())},e.unobserve=function(e,t){var n=Ns.get(e),r=Os(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&Ua.splice(Ua.indexOf(n),1),n.observationTargets.splice(r,1),ks(-1))},e.disconnect=function(e){var t=this,n=Ns.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),As=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Ps.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ja(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Ps.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ja(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Ps.unobserve(this,e)},e.prototype.disconnect=function(){Ps.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function Ts(e){if("string"==typeof e){var t={type:e,toString:function(){return e}};return t}return e}function Rs(e){return p(p({type:I},e),{toJSON:function(){e.onDone,e.onError;var t=v(e,["onDone","onError"]);return p(p({},t),{type:I,src:Ts(e.src)})}})}var Is="",Ms="*",Ds={},js=function(e){return"#"===e[0]},Ls=function(){function e(t,n,r,i){void 0===r&&(r="context"in t?t.context:void 0);var o,a=this;this.config=t,this._context=r,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==i?void 0:i.parent,this.key=this.config.key||(null==i?void 0:i.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:"."),this.id=this.config.id||g([this.machine.key],y(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!==(o=this.config.schema)&&void 0!==o?o:{},this.description=this.config.description,this.initial=this.config.initial,this.states=this.config.states?U(this.config.states,function(t,n){var r,i=new e(t,{},void 0,{parent:a,key:n});return Object.assign(a.idMap,p(((r={})[i.id]=i,r),i.idMap)),i}):Ds;var s=0;!function e(t){var n,r;t.order=s++;try{for(var i=m(ye(t)),o=i.next();!o.done;o=i.next()){e(o.value)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||
vendor: 4,078 bytes, line 2
2!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some(function(e){return e.event===Is}):Is in this.config.on),this.strict=!!this.config.strict,this.onEntry=X(this.config.entry||this.config.onEntry).map(function(e){return Pe(e)}),this.onExit=X(this.config.exit||this.config.onExit).map(function(e){return Pe(e)}),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=X(this.config.invoke).map(function(e,t){var n,r;if(se(e)){var i=pe(a.id,t);return a.machine.options.services=p(((n={})[i]=e,n),a.machine.options.services),Rs({src:i,id:i})}if(ie(e.src)){i=e.id||pe(a.id,t);return Rs(p(p({},e),{id:i,src:e.src}))}if(se(e.src)||re(e.src)){i=e.id||pe(a.id,t);return a.machine.options.services=p(((r={})[i]=e.src,r),a.machine.options.services),Rs(p(p({id:i},e),{src:i}))}var o=e.src;return Rs(p(p({id:pe(a.id,t)},e),{src:o}))}),this.activities=X(this.config.activities).concat(this.invoke).map(function(e){return Te(e)}),this.transition=this.transition.bind(this),this.tags=X(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||be(this).forEach(function(e){return e.on})},e.prototype.withConfig=function(t,n){var r=this.options,i=r.actions,o=r.activities,a=r.guards,s=r.services,c=r.delays;return new e(this.config,{actions:p(p({},i),t.actions),activities:p(p({},o),t.activities),guards:p(p({},a),t.guards),services:p(p({},s),t.services),delays:p(p({},c),t.delays)},null!=n?n:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return re(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.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:U(this.states,function(e){return e.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}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var e=this.transitions;return this.__cache.on=e.reduce(function(e,t){return e[t.eventType]=e[t.eventType]||[],e[t.eventType].push(t),e},{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(e){if(this.__cache.candidates[e])return this.__cache.candidates[e];var t=e===Is,n=this.transitions.filter(function(n){var r=n.eventType===e;return t?r:r||n.eventType===Ms});return this.__cache.candidates[e]=n,n},e.prototype.getDelayedTransitions=function(){var e=this,t=this.config.after;if(!t)return[];var n=function(t,n){var r=function(e,t){var n=t?"#".concat(t):"";return"".concat(b.After,"(").concat(e,")").concat(n)}(re(t)?"".concat(e.id,":delay[").concat(n,"]"):t,e.id);return e.onEntry.push(Re(r,{delay:t})),e.onExit.push({type:O,sendId:r}),r},r=ne(t)?t.map(function(e,t){var r=n(e.delay,t);return p(p({},e),{event:r})}):Q(Object.keys(t).map(function(e,r){var i=t[e],o=ie(i)?{target:i}:i,a=isNaN(+e)?e:+e,s=n(a,r);return X(o).map(function(e){return p(p({},e),{event:s,delay:a})})}));return r.map(function(t){var n=t.delay;return p(p({},e.formatTransition(t)),{delay:n})})},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var r=e instanceof Be?e.value:H(e,this.delimiter);if(ie(r)){var i=this.getStateNode(r).initial;
2return void 0!==i?this.getStateNodes(((t={})[r]=i,t)):[this,this.states[r]]}var o=Object.keys(r),a=[this];return a.push.apply(a,g([],y(Q(o.map(function(e){return n.getStateNode(e).getStateNodes(r[e])}))),!1)),a},e.prototype.handles=function(e){var t=V(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof Be?e:Be.create(e),n=Array.from(we([],this.getStateNodes(t.value)));return new Be(p(p({},t),{value:this.resolve(t.value),configuration:n,done:_e(n,this),tags:Ce(n),machine:this.machine}))},e.prototype.transitionLeafNode=function(e,t,n){var r=this.getStateNode(e).next(t,n);return r&&r.transitions.length?r:this.next(t,n)},e.prototype.transitionCompoundNode=function(e,t,n){var r=Object.keys(e),i=this.getStateNode(r[0])._transition(e[r[0]],t,n);return i&&i.transitions.length?i:this.next(t,n)},e.prototype.transitionParallelNode=function(e,t,n){var r,i,o={};try{for(var a=m(Object.keys(e)),s=a.next();!s.done;s=a.next()){var c=s.value,u=e[c];if(u){var l=this.getStateNode(c)._transition(u,t,n);l&&(o[c]=l)}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}var d=Object.keys(o).map(function(e){return o[e]}),f=Q(d.map(function(e){return e.transitions}));if(!d.some(function(e){return e.transitions.length>0}))return this.next(t,n);var h=Q(Object.keys(o).map(function(e){return o[e].configuration}));return{transitions:f,exitSet:Q(d.map(function(e){return e.exitSet})),configuration:h,source:t,actions:Q(Object.keys(o).map(function(e){return o[e].actions}))}},e.prototype._transition=function(e,t,n){return ie(e)?this.transitionLeafNode(e,t,n):1===Object.keys(e).length?this.transitionCompoundNode(e,t,n):this.transitionParallelNode(e,t,n)},e.prototype.getTransitionData=function(e,t){return this._transition(e.value,e,ue(t))},e.prototype.next=function(e,t){var n,r,i,o=this,a=t.name,s=[],c=[];try{for(var u=m(this.getCandidates(a)),l=u.next();!l.done;l=u.next()){var d=l.value,f=d.cond,h=d.in,p=e.context,v=!h||(ie(h)&&js(h)?e.matches(H(this.getStateNodeById(h).path,this.delimiter)):B(H(h,this.delimiter),G(this.path.slice(0,-2))(e.value))),b=!1;try{b=!f||de(this.machine,f,p,t,e)}catch(e){throw new Error("Unable to evaluate guard '".concat(f.name||f.type,"' in transition for event '").concat(a,"' in state node '").concat(this.id,"':\n").concat(e.message))}if(b&&v){void 0!==d.target&&(c=d.target),s.push.apply(s,g([],y(d.actions),!1)),i=d;break}}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}if(i){if(!c.length)return{transitions:[i],exitSet:[],configuration:e.value?[this]:[],source:e,actions:s};var w=Q(c.map(function(t){return o.getRelativeStateNodes(t,e.historyValue)}));return{transitions:[i],exitSet:!!i.internal?[]:Q(c.map(function(e){return o.getPotentiallyReenteringNodes(e)})),configuration:w,source:e,actions:s}}},e.prototype.getPotentiallyReenteringNodes=function(e){if(this.order<e.order)return[this];for(var t=[],n=this,r=e;n&&n!==r;)t.push(n),n=n.parent;return n!==r?[]:(t.push(r),t)},e.prototype.getActions=function(e,t,n,r,i,o,a){var s,c,u,l,d=this,f=o?we([],this.getStateNodes(o.value)):[],h=new Set;try{for(var p=m(Array.from(e).sort(function(e,t){return e.order-t.order})),v=p.next();!v.done;v=p.next()){(!ke(f,E=v.value)||ke(n.exitSet,E)||E.parent&&h.has(E.parent))&&h.add(E)}}catch(e){s={error:e}}finally{try{v&&!v.done&&(c=p.return)&&c.call(p)}finally{if(s)throw s.error}}try{for(var w=m(f),S=w.next();!S.done;S=w.next()){var E;ke(e,E=S.value)&&!ke(n.exitSet,E.parent)||n.exitSet.push(E)}}catch(e){u={error:e}}finally{try{S&&!S.done&&(l=w.return)&&l.call(w)}finally{if(u)throw u.error}}n.exitSet.sort(function(e,t){return t.order-e.order});var x=Array.from(h).sort(function(e,t){return e.order-t.order}),k=new Set(n.exitSet),_=Q(x.map(function(e){var t=[];if("final"!==e.type)return t;var o=e.parent;if(!o.parent)return t;
2t.push(Ie(e.id,e.doneData),Ie(o.id,e.doneData?W(e.doneData,r,i):void 0));var a=o.parent;return"parallel"===a.type&&ge(a).every(function(e){return _e(n.configuration,e)})&&t.push(Ie(a.id)),t})),N=x.map(function(e){var t=e.onEntry,n=e.activities.map(function(e){return function(e){var t=Te(e);return{type:b.Start,activity:t,exec:void 0}}(e)});return{type:"entry",actions:Ae(a?g(g([],y(t),!1),y(n),!1):g(g([],y(n),!1),y(t),!1),d.machine.options.actions)}}).concat({type:"state_done",actions:_.map(function(e){return function(e,t){return{type:C,event:"function"==typeof e?e:ce(e),delay:t?t.delay:void 0,id:null==t?void 0:t.id}}(e)})}),O=Array.from(k).map(function(e){return{type:"exit",actions:Ae(g(g([],y(e.onExit),!1),y(e.activities.map(function(e){return function(e){var t=re(e)?e:Te(e);return{type:b.Stop,activity:t,exec:void 0}}(e)})),!1),d.machine.options.actions)}}).concat({type:"transition",actions:Ae(n.actions,this.machine.options.actions)}).concat(N);if(t){var P=Ae(Q(g([],y(e),!1).sort(function(e,t){return t.order-e.order}).map(function(e){return e.onExit})),this.machine.options.actions).filter(function(e){return!ve(e)});return O.concat({type:"stop",actions:P})}return O},e.prototype.transition=function(e,t,n,r){void 0===e&&(e=this.initialState);var i,o,a=ue(t);if(e instanceof Be)i=void 0===n?e:this.resolveState(Be.from(e,n));else{var s=ie(e)?this.resolve($(this.getResolvedPath(e))):this.resolve(e),c=null!=n?n:this.machine.context;i=this.resolveState(Be.from(s,c))}if(this.strict&&!this.events.includes(a.name)&&(o=a.name,!/^(done|error)\./.test(o)))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(a.name,"'"));var u=this._transition(i.value,i,a)||{transitions:[],configuration:[],exitSet:[],source:i,actions:[]},l=we([],this.getStateNodes(i.value)),d=u.configuration.length?we(l,u.configuration):l;return u.configuration=g([],y(d),!1),this.resolveTransition(u,i,i.context,r,a)},e.prototype.resolveRaisedTransition=function(e,t,n,r){var i,o=e.actions;return(e=this.transition(e,t,void 0,r))._event=n,e.event=n.data,(i=e.actions).unshift.apply(i,g([],y(o),!1)),e},e.prototype.resolveTransition=function(e,t,n,r,i){var o,a,s,c,u=this;void 0===i&&(i=Ne);var l=e.configuration,d=!t||e.transitions.length>0,f=d?e.configuration:t?t.configuration:[],h=_e(f,this),v=d?xe(this.machine,l):void 0,g=t?t.historyValue?t.historyValue:e.source?this.machine.historyValue(t.value):void 0:void 0,b=this.getActions(new Set(f),h,e,n,i,t,r),w=t?p({},t.activities):{};try{for(var S=m(b),E=S.next();!E.done;E=S.next()){var x=E.value;try{for(var C=(s=void 0,m(x.actions)),N=C.next();!N.done;N=C.next()){var O=N.value;O.type===k?w[O.activity.id||O.activity.type]=O:O.type===_&&(w[O.activity.id||O.activity.type]=!1)}}catch(e){s={error:e}}finally{try{N&&!N.done&&(c=C.return)&&c.call(C)}finally{if(s)throw s.error}}}}catch(e){o={error:e}}finally{try{E&&!E.done&&(a=S.return)&&a.call(S)}finally{if(o)throw o.error}}var A,T,R=y(je(this,t,n,i,b,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),M=R[0],D=R[1],L=y(function(e,t){var n,r,i=y([[],[]],2),o=i[0],a=i[1];try{for(var s=m(e),c=s.next();!c.done;c=s.next()){var u=c.value;t(u)?o.push(u):a.push(u)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return[o,a]}(M,ve),2),z=L[0],B=L[1],V=M.filter(function(e){var t;return e.type===k&&(null===(t=e.activity)||void 0===t?void 0:t.type)===I}),F=V.reduce(function(e,t){return e[t.activity.id]=function(e,t,n,r){var i,o=fe(e.src),a=null===(i=null==t?void 0:t.options.services)||void 0===i?void 0:i[o.type],s=e.data?W(e.data,n,r):void 0,c=a?Ge(a,e.id,s):qe(e.id);return c.meta=e,c}(t.activity,u.machine,D,i),e},t?p({},t.children):{}),H=new Be({value:v||t.value,context:D,_event:i,_sessionid:t?t._sessionid:null,historyValue:v?g?(A=g,T=v,{current:T,states:J(A,T)}):void 0:t?t.historyValue:void 0,history:!v||e.source?t:void 0,actions:v?B:[],activities:v?w:t?t.activities:{},events:[],configuration:f,transitions:e.transitions,children:F,done:h,tags:Ce(f),machine:this}),$=n!==D;H.changed=i.name===j||$;var U=H.history;U&&delete U.history;var q=!h&&(this._transient||l.some(function(e){return e._transient}));if(!(d||q&&i.name!==Is))return H;var G=H;if(!h)for(q&&(G=this.resolveRaisedTransition(G,{type:P},i,r));z.length;){var K=z.shift();G=this.resolveRaisedTransition(G,K._event,i,r)}var Q=G.changed||(U?!!G.actions.length||$||typeof U.value!=typeof G.value||!Le(G.value,U.value):void 0);return G.changed=Q,G.history=U,G},e.prototype.getStateNode=function(e){if(js(e))return this.machine.getStateNodeById(e);if(!this.states)throw new Error("Unable to retrieve child state '".concat(e,"' from '").concat(this.id,"'; no child states exist."));var t=this.states[e];if(!t)throw new Error("Child state '".concat(e,"' does not exist on '").concat(this.id,"'"));return t},e.prototype.getStateNodeById=function(e){var t=js(e)?e.slice(1):e;if(t===this.id)return this;var n=this.machine.idMap[t];if(!n)throw new Error("Child state node '#".concat(t,"' does not exist on machine '").concat(this.id,"'"));return n},e.prototype.getStateNodeByPath=function(e){if("string"==typeof e&&js(e))try{return this.get
vendor: 4,130 bytes, line 2
2StateNodeById(e.slice(1))}catch(e){}for(var t=F(e,this.delimiter).slice(),n=this;t.length;){var r=t.shift();if(!r.length)break;n=n.getStateNode(r)}return n},e.prototype.resolve=function(e){var t,n=this;if(!e)return this.initialStateValue||Ds;switch(this.type){case"parallel":return U(this.initialStateValue,function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):Ds});case"compound":if(ie(e)){var r=this.getStateNode(e);return"parallel"===r.type||"compound"===r.type?((t={})[e]=r.initialStateValue,t):e}return Object.keys(e).length?U(e,function(e,t){return e?n.getStateNode(t).resolve(e):Ds}):this.initialStateValue||{};default:return e||Ds}},e.prototype.getResolvedPath=function(e){if(js(e)){var t=this.machine.idMap[e.slice(1)];if(!t)throw new Error("Unable to find state node '".concat(e,"'"));return t.path}return F(e,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var e,t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)t=q(this.states,function(e){return e.initialStateValue||Ds},function(e){return!("history"===e.type)});else if(void 0!==this.initial){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));t=me(this.states[this.initial])?this.initial:((e={})[this.initial]=this.states[this.initial].initialStateValue,e)}else t={};return this.__cache.initialStateValue=t,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(e,t){this._init();var n=this.getStateNodes(e);return this.resolveTransition({configuration:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,null!=t?t:this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this.initialStateValue;if(!e)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var e;if("history"===this.type){var t=this.config;e=ie(t.target)&&js(t.target)?$(this.machine.getStateNodeById(t.target).path.slice(this.path.length-1)):t.target}return e},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(e,t,n){return void 0===n&&(n=!0),n?"history"===e.type?e.resolveHistory(t):e.initialStateNodes:[e]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var e=this;return me(this)?[this]:"compound"!==this.type||this.initial?Q(K(this.initialStateValue).map(function(t){return e.getFromRelativePath(t)})):[this]},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(e){if(!e.length)return[this];var t=y(e),n=t[0],r=t.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(n,"' from node with no states"));var i=this.getStateNode(n);if("history"===i.type)return i.resolveHistory();if(!this.states[n])throw new Error("Child state '".concat(n,"' does not exist on '").concat(this.id,"'"));return this.states[n].getFromRelativePath(r)},e.prototype.historyValue=function(e){if(Object.keys(this.states).length)return{current:e||this.initialStateValue,states:q(this.states,function(t,n){if(!e)return t.historyValue();var r=ie(e)?void 0:e[n];return t.historyValue(r||t.initialStateValue)},function(e){return!e.history})}},e.prototype.resolveHistory=function(e){var t=this;if("history"!==this.type)return[this];var n=this.parent;if(!e){var r=this.target;return r?Q(K(r).map(function(e){return n.getFromRelativePath(e)})):n.initialStateNodes}var i,o,a=(i=n.path,o="states",function(e){var t,n,r=e;try{for(var a=m(i),s=a.next();!s.done;s=a.next()){var c=s.value;r=r[o][c]}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r})(e).current;return ie(a)?[n.getStateNode(a)]:Q(K(a).map(function(e){return"deep"===t.history?n.getFromRelativePath(e):[n.states[e[0]]]}))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var e=this,t=Q(Object.keys(this.states).map(function(t){return e.states[t].stateIds}));return[this.id].concat(t)}
2,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var e,t,n,r;if(this.__cache.events)return this.__cache.events;var i=this.states,o=new Set(this.ownEvents);if(i)try{for(var a=m(Object.keys(i)),s=a.next();!s.done;s=a.next()){var c=i[s.value];if(c.states)try{for(var u=(n=void 0,m(c.events)),l=u.next();!l.done;l=u.next()){var d=l.value;o.add("".concat(d))}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return this.__cache.events=Array.from(o)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){var e=new Set(this.transitions.filter(function(e){return!(!e.target&&!e.actions.length&&e.internal)}).map(function(e){return e.eventType}));return Array.from(e)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(e){var t=this;if(void 0!==e)return e.map(function(e){if(!ie(e))return e;var n=e[0]===t.delimiter;if(n&&!t.parent)return t.getStateNodeByPath(e.slice(1));var r=n?t.key+e:e;if(!t.parent)return t.getStateNodeByPath(r);try{return t.parent.getStateNodeByPath(r)}catch(e){throw new Error("Invalid transition definition for state node '".concat(t.id,"':\n").concat(e.message))}})},e.prototype.formatTransition=function(e){var t=this,n=function(e){if(void 0!==e&&""!==e)return X(e)}(e.target),r="internal"in e?e.internal:!n||n.some(function(e){return ie(e)&&e[0]===t.delimiter}),i=this.machine.options.guards,o=this.resolveTarget(n),a=p(p({},e),{actions:Ae(X(e.actions)),cond:oe(e.cond,i),target:o,source:this,internal:r,eventType:e.event,toJSON:function(){return p(p({},a),{target:a.target?a.target.map(function(e){return"#".concat(e.id)}):void 0,source:"#".concat(t.id)})}});return a},e.prototype.formatTransitions=function(){var e,t,n,r=this;if(this.config.on)if(Array.isArray(this.config.on))n=this.config.on;else{var i=this.config.on,o=Ms,a=i[o],s=void 0===a?[]:a,c=v(i,["*"]);n=Q(Object.keys(c).map(function(e){var t=le(e,c[e]);return t}).concat(le(Ms,s)))}else n=[];var u=this.config.always?le("",this.config.always):[],l=this.config.onDone?le(String(Ie(this.id)),this.config.onDone):[];var d=Q(this.invoke.map(function(e){var t=[];return e.onDone&&t.push.apply(t,g([],y(le(String(Me(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,g([],y(le(String(De(e.id)),e.onError)),!1)),t})),f=this.after,h=Q(g(g(g(g([],y(l),!1),y(d),!1),y(n),!1),y(u),!1).map(function(e){return X(e).map(function(e){return r.formatTransition(e)})}));try{for(var p=m(f),b=p.next();!b.done;b=p.next()){var w=b.value;h.push(w)}}catch(t){e={error:t}}finally{try{b&&!b.done&&(t=p.return)&&t.call(p)}finally{if(e)throw e.error}}return h},e}();var zs=function(e){return{type:A,assignment:e}};function Bs(){return Bs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bs.apply(this,arguments)}function Vs(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}var Fs="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function Hs(e,t,n){return t=(t=+t)==t?t:0,n=(n=+n)==n?n:0,(e=+e)==e&&(e=(e=e<=n?e:n)>=t?e:t),e}function $s(e){var t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}var Us={box:"border-box"};function qs(e,t){var n=t.label,i=t.enabled,o=t.resizeSourceRef,a=(0,r.useState)(0),s=a[0],c=a[1];(0,r.useDebugValue)(n+": "+s);var u=(0,r.useCallback)(function(e){c(e[0].borderBoxSize[0].blockSize),o.current="element"},[o]);return Fs(function(){if(e.current&&i){var t=new As(u);return t.observe(e.current,Us),function(){t.disconnect()}}},[e,u,i]),i?s:0}function Gs(e){return void 0===e&&(e=1e3),new Promise(function(t){return setTimeout(t,e)})}var Ks={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},Qs={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},Ys=function(e,t,n){return void 0===n&&(n=e.context),new Ls(e,t,n)}({id:"overlay",initial:"closed",context:{initialState:"CLOSED"},states:{closed:{on:{OPEN:"opening",CLOSE:void 0}},opening:{initial:"start",states:{start:{invoke:{src:"onOpenStart",onDone:"transition"}},transition:{always:[{target:"immediately",cond:"initiallyOpen"},{target:"smoothly",cond:"initiallyClosed"}]},immediately:{initial:"open",states:{open:{invoke:{src:"openImmediately",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"#overlay.opening.end"},on:Bs({},Ks,Qs)}}},smoothly:{initial:"visuallyHidden",states:{visuallyHidden:{invoke:{src:"renderVisuallyHidden",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"open"}},open:{invoke:{src:"openSmoothly",onDone:"#overlay.opening.end"},on:Bs({},Ks,Qs)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:Bs({},{CLOSE:{target:"#overlay.closing",actions:"onOpenCancel"}}),onDone:"open"},open:{on:{DRAG:"#overlay.dragging",SNAP:"snapping",RESIZE:"resizing"}},dragging:{on:{SNAP:"snapping"}},snapping:{initial:"start",states:{start:{invoke:{src:"onSnapStart",onDone:"snappingSmoothly"}
2,entry:[zs({y:function(e,t){return t.payload.y},velocity:function(e,t){return t.payload.velocity},snapSource:function(e,t){var n=t.payload.source;return void 0===n?"custom":n}})]},snappingSmoothly:{invoke:{src:"snapSmoothly",onDone:"end"}},end:{invoke:{src:"onSnapEnd",onDone:"done"},on:{RESIZE:"#overlay.resizing",SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{SNAP:{target:"snapping",actions:"onSnapEnd"},RESIZE:{target:"#overlay.resizing",actions:"onSnapCancel"},DRAG:{target:"#overlay.dragging",actions:"onSnapCancel"},CLOSE:{target:"#overlay.closing",actions:"onSnapCancel"}},onDone:"open"},resizing:{initial:"start",states:{start:{invoke:{src:"onResizeStart",onDone:"resizingSmoothly"}},resizingSmoothly:{invoke:{src:"resizeSmoothly",onDone:"end"}},end:{invoke:{src:"onResizeEnd",onDone:"done"},on:{SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{RESIZE:{target:"resizing",actions:"onResizeEnd"},SNAP:{target:"snapping",actions:"onResizeCancel"},DRAG:{target:"#overlay.dragging",actions:"onResizeCancel"},CLOSE:{target:"#overlay.closing",actions:"onResizeCancel"}},onDone:"open"},closing:{initial:"start",states:{start:{invoke:{src:"onCloseStart",onDone:"deactivating"},on:{OPEN:{target:"#overlay.open",actions:"onCloseCancel"}}},deactivating:{invoke:{src:"deactivate",onDone:"closingSmoothly"}},closingSmoothly:{invoke:{src:"closeSmoothly",onDone:"end"}},end:{invoke:{src:"onCloseEnd",onDone:"done"},on:{OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}}},done:{type:"final"}},on:{CLOSE:void 0,OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}},onDone:"closed"}},on:{CLOSE:"closing"}},{actions:{onOpenCancel:function(e,t){},onSnapCancel:function(e,t){},onResizeCancel:function(e,t){},onCloseCancel:function(e,t){},onOpenEnd:function(e,t){},onSnapEnd:function(e,t){},onRezizeEnd:function(e,t){}},services:{onSnapStart:function(){try{return Promise.resolve(Gs()).then(function(){})}catch(e){return Promise.reject(e)}},onOpenStart:function(){try{return Promise.resolve(Gs()).then(function(){})}catch(e){return Promise.reject(e)}},onCloseStart:function(){try{return Promise.resolve(Gs()).then(function(){})}catch(e){return Promise.reject(e)}},onResizeStart:function(){try{return Promise.resolve(Gs()).then(function(){})}catch(e){return Promise.reject(e)}},onSnapEnd:function(){try{return Promise.resolve(Gs()).then(function(){})}catch(e){return Promise.reject(e)}},onOpenEnd:function(){try{return Promise.resolve(Gs()).then(function(){})}catch(e){return Promise.reject(e)}},onCloseEnd:function(){try{return Promise.resolve(Gs()).then(function(){})}catch(e){return Promise.reject(e)}},onResizeEnd:function(){try{return Promise.resolve(Gs()).then(function(){})}catch(e){return Promise.reject(e)}},renderVisuallyHidden:function(e,t){try{return Promise.resolve(Gs()).then(function(){})}catch(e){return Promise.reject(e)}},activate:function(e,t){try{return Promise.resolve(Gs()).then(function(){})}catch(e){return Promise.reject(e)}},deactivate:function(e,t){try{return Promise.resolve(Gs()).then(function(){})}catch(e){return Promise.reject(e)}},openSmoothly:function(e,t){try{return Promise.resolve(Gs()).then(function(){})}catch(e){return Promise.reject(e)}},openImmediately:function(e,t){try{return Promise.resolve(Gs()).then(function(){})}catch(e){return Promise.reject(e)}},snapSmoothly:function(e,t){try{return Promise.resolve(Gs()).then(function(){})}catch(e){return Promise.reject(e)}},resizeSmoothly:function(e,t){try{return Promise.resolve(Gs()).then(function(){})}catch(e){return Promise.reject(e)}},closeSmoothly:function(e,t){try{return Promise.resolve(Gs()).then(function(){})}catch(e){return Promise.reject(e)}}},guards:{initiallyClosed:function(e){return"CLOSED"===e.initialState},initiallyOpen:function(e){return"OPEN"===e.initialState}}}),Xs=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],Ws=["velocity"],Zs=["onRest","config"],Js=$r,ec=Js.tension,tc=Js.friction,nc=i().forwardRef(function(e,t){var n=e.children,o=e.sibling,a=e.className,s=e.footer,c=e.header,u=e.open,l=e.initialState,d=e.lastSnapRef,f=e.initialFocusRef,h=e.onDismiss,p=e.maxHeight,v=e.defaultSnap,m=void 0===v?ic:v,y=e.snapPoints,g=void 0===y?oc:y,b=e.blocking,w=void 0===b||b,S=e.scrollLocking,E=void 0===S||S,x=e.style,k=e.onSpringStart,_=e.onSpringCancel,C=e.onSpringEnd,N=e.reserveScrollBarGap,O=void 0===N?w:N,P=e.expandOnContentDrag,A=void 0!==P&&P,T=Vs(e,Xs),R=function(){var e=(0,r.useState)(!1),t=e[0],n=e[1],i=(0,r.useState)({}),o=i[0],a=i[1],s=(0,r.useCallback)(function(e){return a(function(t){var n;return Bs({},t,((n={})[e]=!1,n))}),function(){a(function(t){var n;return Bs({},t,((n={})[e]=!0,n))})}},[]);return(0,r.useEffect)(function(){var e=Object.values(o);0!==e.length&&e.every(Boolean)&&n(!0)},[o]),{ready:t,registerReady:s}}(),I=R.ready,M=R.registerReady,D=(0,r.useRef)(!1),j=(0,r.useRef)(k),L=(0,r.useRef)(_),z=(0,r.useRef)(C);(0,r.useEffect)(function(){j.current=k,L.current=_,z.current=C},[_,k,C]);var B,V,F=ji(function(){return{y:0,ready:0,maxHeight:0,minSnap:0,maxSnap:0}}),H=F[0],$=F[1],U=(0,r.useRef)(null),q=(0,r.useRef)(null),G=(0,r.useRef)(null),K=(0,r.useRef)(null),Q=(0,r.useRef)(null),Y=(0,r.useRef)(null),X=(0,r.useRef)(0),W=(0,r.useRef)(),Z=(0,r.useRef)(!1),J=(B=(0,r.useMemo)(function(){return"undefined"!=typeof window?window.matchMedia("(prefers-reduced-motion: reduce)"):null},[]),V=(0,r.useRef)(null==B?void 0:B.matches),(0,r.useDebugValue)(V.current?"reduce":"no-preference"),(0,r.useEffect)(function(){var e=function(e){V.current=e.matches};return null==B||B.addListener(e),function(){return null==B?void 0:B.removeListener(e)}}
2,[B]),V),ee=function(e){var t=e.targetRef,n=e.enabled,i=e.reserveScrollBarGap,o=(0,r.useRef)({activate:function(){throw new TypeError("Tried to activate scroll lock too early")},deactivate:function(){}});return(0,r.useDebugValue)(n?"Enabled":"Disabled"),(0,r.useEffect)(function(){if(!n)return o.current.deactivate(),void(o.current={activate:function(){},deactivate:function(){}});var e=t.current,r=!1;o.current={activate:function(){r||(r=!0,$a(e,{allowTouchMove:function(e){return e.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:i}))},deactivate:function(){var t;r&&(r=!1,(t=e)?(Da=Da.filter(function(e){return e.targetElement!==t}),Ma?(t.ontouchstart=null,t.ontouchmove=null,ja&&0===Da.length&&(document.removeEventListener("touchmove",Fa,Ta?{passive:!1}:void 0),ja=!1)):Da.length||Ha()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices."))}}},[n,t,i]),o}({targetRef:q,enabled:I&&E,reserveScrollBarGap:O}),te=function(e){var t=e.targetRef,n=e.enabled,i=(0,r.useRef)({activate:function(){throw new TypeError("Tried to activate aria hider too early")},deactivate:function(){}});return(0,r.useDebugValue)(n?"Enabled":"Disabled"),(0,r.useEffect)(function(){if(!n)return i.current.deactivate(),void(i.current={activate:function(){},deactivate:function(){}});var e=t.current,r=!1,o=[],a=[];i.current={activate:function(){if(!r){r=!0;var t=e.parentNode;document.querySelectorAll("body > *").forEach(function(e){if(e!==t){var n=e.getAttribute("aria-hidden");null!==n&&"false"!==n||(o.push(n),a.push(e),e.setAttribute("aria-hidden","true"))}})}},deactivate:function(){r&&(r=!1,a.forEach(function(e,t){var n=o[t];null===n?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n)}),o=[],a=[])}}},[t,n]),i}({targetRef:U,enabled:I&&w}),ne=function(e){var t=e.targetRef,n=e.fallbackRef,i=e.initialFocusRef,o=e.enabled,a=(0,r.useRef)({activate:function(){throw new TypeError("Tried to activate focus trap too early")},deactivate:function(){}});return(0,r.useDebugValue)(o?"Enabled":"Disabled"),(0,r.useEffect)(function(){if(!o)return a.current.deactivate(),void(a.current={activate:function(){},deactivate:function(){}});var e=n.current,r=Aa(t.current,{onActivate:void 0,initialFocus:i?function(){return(null==i?void 0:i.current)||e}:void 0,fallbackFocus:e,escapeDeactivates:!1,clickOutsideDeactivates:!1}),s=!1;a.current={activate:function(){try{return s?Promise.resolve():(s=!0,Promise.resolve(r.activate()).then(function(){return Promise.resolve(new Promise(function(e){return setTimeout(function(){return e(void 0)},0)})).then(function(){})}))}catch(e){return Promise.reject(e)}},deactivate:function(){s&&(s=!1,r.deactivate())}}},[o,n,i,t]),a}({targetRef:U,fallbackRef:Y,initialFocusRef:f||void 0,enabled:I&&w&&
2!1!==f}),re=function(e){var t=e.getSnapPoints,n=e.heightRef,i=e.lastSnapRef,o=e.ready,a=function(e){var t=e.contentRef,n=e.controlledMaxHeight,i=e.footerEnabled,o=e.footerRef,a=e.headerEnabled,s=e.headerRef,c=e.registerReady,u=e.resizeSourceRef,l=(0,r.useMemo)(function(){return c("contentHeight")},[c]),d=function(e,t,n){var i=(0,r.useMemo)(function(){return t("maxHeight")},[t]),o=(0,r.useState)(function(){return $s(e)||"undefined"!=typeof window?window.innerHeight:0}),a=o[0],s=o[1],c=a>0,u=(0,r.useRef)(0);return(0,r.useDebugValue)(e?"controlled":"auto"),(0,r.useEffect)(function(){c&&i()},[c,i]),Fs(function(){if(e)return s($s(e)),void(n.current="maxheightprop");var t=function(){u.current||(u.current=requestAnimationFrame(function(){s(window.innerHeight),n.current="window",u.current=0}))};return window.addEventListener("resize",t),s(window.innerHeight),n.current="window",i(),function(){window.removeEventListener("resize",t),cancelAnimationFrame(u.current)}},[e,i,n]),a}(n,c,u),f=qs(s,{label:"headerHeight",enabled:a,resizeSourceRef:u}),h=qs(t,{label:"contentHeight",enabled:!0,resizeSourceRef:u}),p=qs(o,{label:"footerHeight",enabled:i,resizeSourceRef:u}),v=Math.min(d-f-p,h)+f+p;(0,r.useDebugValue)("minHeight: "+v);var m=h>0;return(0,r.useEffect)(function(){m&&l()},[m,l]),{maxHeight:d,minHeight:v,headerHeight:f,footerHeight:p}}({contentRef:e.contentRef,controlledMaxHeight:e.controlledMaxHeight,footerEnabled:e.footerEnabled,footerRef:e.footerRef,headerEnabled:e.headerEnabled,headerRef:e.headerRef,registerReady:e.registerReady,resizeSourceRef:e.resizeSourceRef}),s=a.maxHeight,c=a.minHeight,u=a.headerHeight,l=a.footerHeight,d=function(e,t){var n=[].concat(e).map($s).reduce(function(e,n){return e.add(Hs(n,0,t)),e},new Set),r=Array.from(n),i=Math.min.apply(Math,r);if(Number.isNaN(i))throw new TypeError("minSnap is NaN");var o=Math.max.apply(Math,r);if(Number.isNaN(o))throw new TypeError("maxSnap is NaN");return{snapPoints:r,minSnap:i,maxSnap:o}}(o?t({height:n.current,footerHeight:l,headerHeight:u,minHeight:c,maxHeight:s}):[0],s),f=d.snapPoints,h=d.minSnap,p=d.maxSnap;return(0,r.useDebugValue)("minSnap: "+h+", maxSnap:"+p),{minSnap:h,maxSnap:p,findSnap:function(e){var t=$s("function"==typeof e?e({footerHeight:l,headerHeight:u,height:n.current,minHeight:c,maxHeight:s,snapPoints:f,lastSnap:i.current}):e);return f.reduce(function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e},h)},maxHeight:s}}({contentRef:G,controlledMaxHeight:p,footerEnabled:!!s,footerRef:Q,getSnapPoints:g,headerEnabled:!1!==c,headerRef:K,heightRef:X,lastSnapRef:d,ready:I,registerReady:M,resizeSourceRef:W}),ie=re.minSnap,oe=re.maxSnap,ae=re.maxHeight,se=re.findSnap,ce=(0,r.useRef)(ae),ue=(0,r.useRef)(ie),le=(0,r.useRef)(oe),de=(0,r.useRef)(se),fe=(0,r.useRef)(0);Fs(function(){ce.current=ae,le.current=oe,ue.current=ie,de.current=se,fe.current=se(m)},[se,m,ae,oe,ie]);var he=(0,r.useCallback)(function(e){var t=e.onRest,n=e.config,r=(n=void 0===n?{}:n).velocity,i=void 0===r?1:r,o=Vs(n,Ws),a=Vs(e,Zs);return new Promise(function(e){return $(Bs({},a,{config:Bs({velocity:i},o,{mass:1,tension:ec,friction:Math.max(tc,tc+(tc-tc*i))}),onRest:function(){var n=[].slice.call(arguments);e.apply(void 0,n),null==t||t.apply(void 0,n)}}))})},[$]),pe=yt(Ys,{devTools:!1,actions:{onOpenCancel:(0,r.useCallback)(function(){return null==L.current?void 0:L.current({type:"OPEN"})},[]),onSnapCancel:(0,r.useCallback)(function(e){return null==L.current?void 0:L.current({type:"SNAP",source:e.snapSource})},[]),onCloseCancel:(0,r.useCallback)(function(){return null==L.current?void 0:L.current({type:"CLOSE"})},[]),onResizeCancel:(0,r.useCallback)(function(){return null==L.current?void 0:L.current({type:"RESIZE",source:W.current})},[]),onOpenEnd:(0,r.useCallback)(function(){return null==z.current?void 0:z.current({type:"OPEN"})},[]),onSnapEnd:(0,r.useCallback)(function(e,t){return null==z.current?void 0:z.current({type:"SNAP",source:e.snapSource})},[]),onResizeEnd:(0,r.useCallback)(function(){return null==z.current?void 0:z.current({type:"RESIZE",source:W.current})},[])},context:{initialState:l},services:{onSnapStart:(0,r.useCallback)(function(e,t){try{return Promise.resolve(null==j.current?void 0:j.current({type:"SNAP",source:t.payload.source||"custom"}))}catch(e){return Promise.reject(e)}},[]),onOpenStart:(0,r.useCallback)(function(){try{return Promise.resolve(null==j.current?void 0:j.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}},[]),onCloseStart:(0,r.useCallback)(function(){try{return Promise.resolve(null==j.current?void 0:j.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}},[]),onResizeStart:(0,r.useCallback)(function(){try{return Promise.resolve(null==j.current?void 0:j.current({type:"RESIZE",source:W.current}))}catch(e){return Promise.reject(e)}},[]),onSnapEnd:(0,r.useCallback)(function(e,t){try{return Promise.resolve(null==z.current?void 0:z.current({type:"SNAP",source:e.snapSource}))}catch(e){return Promise.reject(e)}},[]),onOpenEnd:(0,r.useCallback)(function(){try{return Promise.resolve(null==z.current?void 0:z.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}},[]),onCloseEnd:(0,r.useCallback)(function(){try{return Promise.resolve(null==z.current?void 0:z.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}},[]),onResizeEnd:(0,r.useCallback)(function(){try{return Promise.resolve(null==z.current?void 0:z.current({type:"RESIZE",source:W.current}))}catch(e){return Promise.reject(e)}},[]),renderVisuallyHidden:(0,r.useCallback)(function(e,t){try{return Promise.resolve(he({y:fe.current,ready:0,maxHeight:ce.current,maxSnap:le.current,minSnap:fe.current,immediate:!0})).then(function(){})}catch(e){return Promise.reject(e)}},[he]),activate:(0,r.useCallback)(function(e,t){try{return D.current=!0,Promise.resolve(Promise.all([ee.current.activate(),ne.current.activate(),te.current.activate()])).then(function(){})}catch(e){return Promise.reject(e)}},[te,ne,ee]),deactivate:(0,r.useCallback)(function(){try{return ee.current.deactivate(),ne.current.deactivate(),te.current.deactivate(),D.current=!1,Promise.resolve()}catch(e){return Promise.reject(e)}},[te,ne,ee]),openImmediately:(0,r.useCallback)(function(){try{return X.current=fe.current,Promise.resolve(he({y:fe.current,ready:1,maxHeight:ce.current,maxSnap:le.current,minSnap:fe.current,immediate:!0})).then(function(){})}catch(e){return Promise.reject(e)}},[he]),openSmoothly:(0,r.useCallback)(function(){try{return Promise.resolve(he({y:0,ready:1,maxHeight:ce.current,maxSnap:le.current,minSnap:fe.current,immediate:!0})).then(function(){return X.current=fe.current,Promise.resolve(he({y:fe.current,ready:1,maxHeight:ce.current,maxSnap:le.current,minSnap:fe.current,immediate:J.current})).then(function(){})})}catch(e){return Promise.reject(e)}},[he,J]),snapSmoothly:(0,r.useCallback)(function(e,t){try{var n=de.current(e.y);return X.current=n,d.current=n,Promise.resolve(he({y:n,ready:1,maxHeight:ce.current,maxSnap:le.current,minSnap:ue.current,immediate:J.current,config:{velocity:e.velocity}})).then(function(){})}catch(e){return Promise.reject(e)}},[he,d,J]),resizeSmoothly:(0,r.useCallback)(function(){try{var e=de.current(X.current);return X.current=e,d.current=e,Promise.resolve(he({y:e,ready:1,maxHeight:ce.current,maxSnap:le.current,minSnap:ue.current,immediate:"element"!==W.current||J.current})).then(function(){})}catch(e){return Promise.reject(e)}},[he,d,J]),closeSmoothly:(0,r.useCallback)(function(e,t){try{return he({minSnap:X.current,immediate:!0}),X.current=0,Promise.resolve(he({y:0,maxHeight:ce.current,maxSnap:le.current,immediate:J.current})).then(function(){return Promise.resolve(he({ready:0,immediate:!0})).then(function(){})})}catch(e){return Promise.reject(e)}},[he,J])}}),ve=pe[0],me=pe[1];(0,r.useEffect)(function(){I&&me(u?"OPEN":"CLOSE")},[u,me,I]),Fs(function(){(ae||oe||ie)&&me("RESIZE")},[ae,oe,ie,me]),(0,r.useEffect)(function(){return function(){ee.current.deactivate(),ne.current.deactivate(),te.current.deactivate()}},[te,ne,ee]),(0,r.useImperativeHandle)(t,function(){return{snapTo:function(e,t){var n=void 0===t?{}:t,r=n.velocity,i=void 0===r?1:r,o=n.source,a=void 0===o?"custom"
2:o;me("SNAP",{payload:{y:de.current(e),velocity:i,source:a}})},get height(){return X.current}}},[me]),(0,r.useEffect)(function(){var e=q.current,t=function(e){Z.current&&e.preventDefault()},n=function(t){e.scrollTop<0&&(requestAnimationFrame(function(){e.style.overflow="hidden",e.scrollTop=0,e.style.removeProperty("overflow")}),t.preventDefault())};return A&&(e.addEventListener("scroll",t),e.addEventListener("touchmove",t),e.addEventListener("touchstart",n)),function(){e.removeEventListener("scroll",t),e.removeEventListener("touchmove",t),e.removeEventListener("touchstart",n)}},[A,q]);var ye=function(e,t){void 0===t&&(t={}),Ro.set("drag",Wo);var n=(0,r.useRef)();return n.current||(n.current=Zo(Po,ea)),qo({drag:e},n.current(t))}(function(e){var t=e.args,n=(t=void 0===t?[]:t)[0],r=(n=void 0===n?{}:n).closeOnTap,i=void 0!==r&&r,o=n.isContentDragging,a=void 0!==o&&o,s=e.cancel,c=e.direction[1],u=e.down,l=e.first,d=e.last,f=e.memo,p=void 0===f?H.y.get():f,v=e.tap,m=e.velocity,y=-1*e.movement[1];if(!D.current)return s(),p;if(h&&i&&v)return s(),setTimeout(function(){return h()},0),p;if(v)return p;var g=p+y,b=y*m,w=Math.max(ue.current,Math.min(le.current,g+2*b));if(!u&&h&&c>0&&g+b<ue.current/2)return s(),h(),p;var S=u?h||ue.current!==le.current?co(g,h?0:ue.current,le.current,.55):g<ue.current?co(g,ue.current,2*le.current,.55):co(g,ue.current/2,le.current,.55):w;return A&&a?(S>=le.current&&(S=le.current),p===le.current&&q.current.scrollTop>0&&(S=le.current),Z.current=S<le.current):Z.current=!1,l&&me("DRAG"),d?(me("SNAP",{payload:{y:S,velocity:m>.05?m:1,source:"dragging"}}),p):($({y:S,ready:1,maxHeight:ce.current,maxSnap:le.current,minSnap:ue.current,immediate:!0,config:{velocity:m}}),p)},{filterTaps:!0});if(Number.isNaN(le.current))throw new TypeError("maxSnapRef is NaN!!");if(Number.isNaN(ue.current))throw new TypeError("minSnapRef is NaN!!");var ge=function(e){var t,n=e.spring,r=Fi([n.y,n.maxHeight],function(e,t){return Math.round(Hs(t-e,0,16))+"px"}),i=Fi([n.y,n.minSnap,n.maxSnap],function(e,t,n){return Hs(e,t,n)+"px"}),o=Fi([n.y,n.minSnap,n.maxSnap],function(e,t,n){return e<t?t-e+"px":e>n?n-e+"px":"0px"}),a=Fi([n.y,n.maxSnap],function(e,t){return e>=t?Math.ceil(e-t):0}),s=Fi([n.y,n.minSnap],function(e,t){if(!t)return 0;var n=Math.max(t/2-45,0);return Hs((e-n)*(1/(Math.min(t/2+45,t)-n)+0),0,1)}),c=Fi([n.y,n.minSnap],function(e,t){return t?Hs(e/t,0,1):0});return(t={})["--rsbs-content-opacity"]=s,t["--rsbs-backdrop-opacity"]=c,t["--rsbs-antigap-scale-y"]=a,t["--rsbs-overlay-translate-y"]=o,t["--rsbs-overlay-rounded"]=r,t["--rsbs-overlay-h"]=i,t}({spring:H});return i().createElement(to.div,Bs({},T,{"data-rsbs-root":!0,"data-rsbs-state":rc.find(ve.matches),"data-rsbs-is-blocking":w,"data-rsbs-is-dismissable":!!h,"data-rsbs-has-header":!!c,"data-rsbs-has-footer":!!s,className:a,ref:U,style:Bs({},ge,x,{opacity:H.ready})}),o,w&&i().createElement("div",Bs({key:"backdrop","data-rsbs-backdrop":!0},ye({closeOnTap:!0}))),i().createElement("div",{key:"overlay","aria-modal":"true",role:"dialog","data-rsbs-overlay":!0,tabIndex:-1,ref:Y,onKeyDown:function(e){"Escape"===e.key&&(e.stopPropagation(),h&&h())}},!1!==c&&i().createElement("div",Bs({key:"header","data-rsbs-header":!0,ref:K},ye()),c),i().createElement("div",Bs({key:"scroll","data-rsbs-scroll":!0,ref:q},A?ye({isContentDragging:!0}):{}),i().createElement("div",{"data-rsbs-content":!0,ref:G},n)),s&&i().createElement("div",Bs({key:"footer",ref:Q,"data-rsbs-footer":!0},ye()),s)))}),rc=["closed","opening","open","closing","dragging","snapping","resizing"];function ic(e){var t=e.lastSnap;return null!=t?t:Math.min.apply(Math,e.snapPoints)}function oc(e){return e.minHeight}var ac=["onSpringStart","onSpringEnd","skipInitialTransition"],sc=(0,r.forwardRef)(function(e,t){var n=e.onSpringStart,o=e.onSpringEnd,a=e.skipInitialTransition,s=Vs(e,ac),c=(0,r.useState)(!1),u=c[0],l=c[1],d=(0,r.useRef)(),f=(0,r.useRef)(null),p=(0,r.useRef)(a&&s.open?"OPEN":"CLOSED");Fs(function(){if(s.open)return cancelAnimationFrame(d.current),l(!0),function(){p.current="CLOSED"}},[s.open]);var v=(0,r.useCallback)(function(e){return Promise.resolve(null==n?void 0:n(e)).then(function(){"OPEN"===e.type&&cancelAnimationFrame(d.current)})},[n]),m=(0,r.useCallback)(function(e){return Promise.resolve(null==o?void 0:o(e)).then(function(){"CLOSE"===e.type&&(d.current=requestAnimationFrame(function(){return l(!1)}))})},[o]);return u?i().createElement(h,{"data-rsbs-portal":!0},i().createElement(nc,Bs({},s,{lastSnapRef:f,ref:t,initialState:p.current,onSpringStart:v,onSpringEnd:m}))):null}),cc=(n(18417),n(936)),uc=n(97371),lc=n(60781),dc=n(60281),fc=n(82782),hc={flyoutContainer:"RlKZ--we",flyoutContainerShow:"RmF4BOwH",flyoutContainerHide:"_0QyBo3mx",closeIconMobile:"FZwOsPko",closeIconButtonMobile:"dYjBnUOy",closeIconDesktop:"KIYC-roI",closeIconButtonDesktop:"qoeLNyMb",addToBagFlyoutSlideoutWrapper:"HqgB60D1",addToBagFlyoutSlideoutWrapperShow:"eApcOzcm",addToBagItemContainer:"uLUzY8mM"};const pc=e=>{const{lastSnap:t,snapPoints:n}=e;return t??Math.max(...n)},vc=e=>{const{minHeight:t,maxHeight:n}=e;return[t,.7*n,.8*n]},mc=({children:e=null,hideOverlay:t=!1,isMobile:n=!1,show:a=!1,manualClose:s=!1,onClose:l})=>{const d=(0,r.useCallback)(()=>{l?.()},[l]);return(0,r.useEffect)(()=>{const{classList:e}=document.body;return a?(e.add("flyout-container"),e.add("expressView-flyout-container")):(e.remove("flyout-container"),e.remove("expressView-flyout-container")),()=>{e.remove("flyout-container"),e.remove("expressView-flyout-container")}},[a]),(0,r.useEffect)(()=>{let e;return a&&!s&&(document.body.classList.add("js-flyout-hide-floater
2s"),e=setTimeout(()=>d(),5e3)),()=>{clearTimeout(e)}},[a,s,d]),n?i().createElement(u.tH,{fallback:i().createElement("div",null,"Something went wrong")},i().createElement(r.Suspense,{fallback:i().createElement("div",null)},i().createElement(sc,{blocking:!1,className:hc.bottomSheet,"data-body-scroll-lock-ignore":"true","data-testid":"bottom-sheet-mobile",defaultSnap:pc,expandOnContentDrag:!1,header:i().createElement("div",{className:hc.closeIconMobile},i().createElement("button",{"aria-label":"close",type:"button","data-testid":"close-flyout-modal",id:"closeModal",onClick:d,className:hc.closeIconButtonMobile},i().createElement(c.A,{icon:"close",size:"large"}))),onDismiss:d,open:a,snapPoints:vc},e))):i().createElement(i().Fragment,null,!t&&i().createElement("div",{className:(0,o.A)(hc.addToBagFlyoutSlideoutWrapper,a&&hc.addToBagFlyoutSlideoutWrapperShow),role:"button",onClick:d}),i().createElement("div",{className:(0,o.A)(hc.flyoutContainer,a&&hc.flyoutContainerShow,!a&&hc.flyoutContainerHide)},i().createElement("div",{className:hc.closeIconDesktop},i().createElement("button",{"aria-label":"close",className:hc.closeIconButtonDesktop,"data-testid":"flyout-modal-close-button",id:"closeModal",onClick:d,type:"button"},i().createElement(c.A,{icon:"close",size:"large"}))),i().createElement("div",{className:(0,o.A)(hc.addToBagItemContainer)},e)))};const yc=({className:e,items:t,onCardClick:n})=>{const r=t?.length;return r?i().createElement("div",{className:(0,o.A)("PNrgU-6X",e),id:"flyout","data-testid":"product-list"},t.map(({listPrice:e,marketplaceProduct:t,name:r,newProduct:o,onlineExclusive:a,productC
2olorSwatches:s,productId:c,productImage:u,productRating:l,productURL:d,salePrice:f})=>{const h={colorSwatches:s?.filter(e=>null!==e)},p=l?parseInt(l):0;return i().createElement("div",{className:"tAmtl1wi",key:c},i().createElement(cc.A,{colors:h,isNew:o,layout:"landscape",listPrice:e,marketplaceProduct:t,name:r,onCardClick:n,onlineExclusive:a,productId:c,productImage:u,productLinkTitle:r,productURL:d,rating:String(p),salePrice:f}))})):null};var gc={viewBagBtn:"t7eDjSw4",keepShoppingBtn:"zlgQviQz",notificationHeader:"YTTUZVjQ",addToBagAnimatedCheckmarkContainer:"VB1OWD6q",addToBagAnimatedCheckmarkIcon:"rVLBdjwC",addToBagAnimatedCheckmarkDesc:"NkOTDxGd",addToBagFooter:"-JnSR3tD",bagSubTotalContainer:"pQNU0L5-",bagSubTotalLabel:"XHWUmpyb",bagSubTotalAmount:"TES7pEPi",buttonsContainer:"TEkeD5YH",bagCount:"-MpakDWR"};const bc=({bagCount:e,className:t,descriptionClassName:n,footerClassName:r,headerClassName:a,imageClassName:s,isMobile:c,item:u,onClose:l,onViewBagClick:d,productCardClassName:f,subtotalContainerClassName:h,titleClassName:p})=>{const{bagTotalAmount:v,colorName:m,ensemblePromoMessage:y,isStorePickup:g,listPrice:b,productId:w,productImage:S,productName:E,promoMessage:x,salePrice:k,size:_}=u;return i().createElement("div",{className:(0,o.A)(gc.notificationContainer,t)},i().createElement("div",{className:(0,o.A)(gc.notificationHeader,a)},i().createElement("div",{className:(0,o.A)(gc.addToBagAnimatedCheckmarkContainer,p)},i().createElement("span",{className:(0,o.A)(gc.addToBagAnimatedCheckmarkIcon)},i().createElement(uc.Ay,{icon:"animatedCheckmark"})),i().createElement("span",{className:(0,o.A)(gc.addToBagAnimatedCheckmarkDesc)},"Item Added To Your Bag")),i().createElement(cc.A,{className:f,colorName:m,descriptionWrapperClassName:n,imageClassName:s,isStorePickup:g,layout:"landscape",listPrice:b,name:E,productId:w,productImage:S,productLinkTitle:E,promoMessage:x||y,salePrice:k,sizeName:_})),i().createElement("div",{className:(0,o.A)(gc.addToBagFooter,r)},i().createElement("div",{className:(0,o.A)(gc.bagSubTotalContainer,h)},i().createElement("span",{className:(0,o.A)(gc.bagSubTotalLabel),"aria-label":"subTotal"},"Bag Subtotal:"),i().createElement("span",{className:(0,o.A)(gc.bagSubTotalAmount)},v)),i().createElement("div",{className:(0,o.A)(gc.buttonsContainer)},i().createElement(lc.$,{"aria-label":"keep-shopping",as:"button",className:(0,o.A)(gc.keepShoppingBtn,c&&gc.keepShoppingBtnMobile),mode:"ghost",onClick:l},"Keep Shopping"),i().createElement(dc.A,{"aria-label":"view-bag",className:(0,o.A)(gc.viewBagBtn),onClick:d,to:"/bag"},i().createElement("span",null,"View Bag"),e&&i().createElement("span",{className:gc.bagCount},`(${e})`)))))};var wc={addToBagBackArrowContainer:"_6Jxm1Ldm",backArrowIcon:"A4ePB1YG",addToBagBackArrowLink:"rHpMpDaT"};function Sc({isMobile:e=!1,onClick:t}){return i().createElement("div",{className:(0,o.A)(wc.addToBagBackArrowContainer,!e&&wc.addToBagBackArrowContainerDesktop)},i().createElement("span",{className:(0,o.A)(wc.backArrowIcon)},i().createElement(uc.Ay,{icon:"arrowBack"})),i().createElement(fc.A,{className:(0,o.A)(wc.addToBagBackArrowLink),"data-testid":"add-to-bag-flyout-arrow",onClick:t},"Back"))}const Ec=({bagCount:e,bodyClassName:t,className:n,customContent:c,customContentClassName:u,hasBackArrow:l=!1,isLoading:d,item:f,onCardClick:h,onClose:p,onViewBagClick:v,relatedItems:m,show:y,isMobile:g,manualClose:b})=>{const[w,S]=(0,r.useState)(!1),E=(0,r.useRef)(null),x=(0,r.useCallback)(()=>{const e=E.current?E.current.scrollTop:0;S(e>0)},[]);return i().createElement(mc,{show:y,onClose:p,isMobile:g,manualClose:b},l&&i().createElement(Sc,{onClick:p}),d&&i().createElement("div",{className:(0,o.A)("nFL-jYNh",!g&&"PpyZn7BI")},i().createElement(s.A,{"data-loader":"AddToBagFlyoutContainer",size:"large",chroma:"dark",display:"inline"})),!d&&i().createElement("div",{className:(0,o.A)("_2s5R2cK4",g&&"MMcH6XBp",!g&&w&&"_32S2zLt-",g&&w&&"gaoruGj7",n),id:"flyoutContainer","data-testid":"flyoutContainer",onScroll:a(x,10),ref:E},i().createElement(bc,{bagCount:e,className:(0,o.A)("KppDJXaI",w&&"_0qwTCh7c"),descriptionClassName:(0,o.A)("DRapkwNv",w&&"bAfpUDvD"),footerClassName:(0,o.A)("IMDtb5n3",w&&"Cb6Ip3CC"),headerClassName:(0,o.A)("w4SGk8pR",w&&"f9rIE2k
2R"),imageClassName:(0,o.A)("aOg2WUGF",w&&"_7pngsMB-"),isMobile:g,item:f,onClose:p,onViewBagClick:v,titleClassName:(0,o.A)("AqOuR6NQ",w&&"CEsBITn6")}),i().createElement("div",{className:(0,o.A)("CmUSBflX",w&&"mOeL32VI",t)},c&&i().createElement("div",{className:(0,o.A)("BNzwpJZc",u)},c),i().createElement(yc,{items:m,onCardClick:h}))))}},68219(e,t,n){n.d(t,{A:()=>l});var r=n(41594),i=n.n(r),o=n(64919),a=n(71572),s=n(85015),c=n(81320),u=(n(61225),{label:"gF8coXAe",radio:"Takxd-v7"});const l=i().forwardRef(function({children:e,className:t,classNameInput:n,classNameLabel:r,form:l,name:d,onClick:f,onKeyDown:h,onMouseDown:p,variant:v,...m},y){const g="a11yDisabled"===v,b="error"===v,w=(0,s.u)(g,f),S=(0,s.a)(g,h),E=(0,s.c)(g,p),x={"aria-disabled":g,className:(0,c.A)("rvn-ui--radio",u.radio),classNameInput:n,form:l,name:d,onClick:w,onKeyDown:S,onMouseDown:E,variant:v,...m};return i().createElement("div",{className:(0,c.A)(u.wrapper,"rvn-ui--input",g&&[u.wrapperAccessiblyDisabled,"rvn-ui--radio--accessibly-disabled"],b&&[u.wrapperError,"rvn-ui--radio--error"],t)},e&&i().createElement(o.A,{form:l,className:(0,c.A)(u.label,"rvn-ui--radio--label",g&&[u.radioAccessiblyDisabled,"rvn-ui--radio-label--accessibly-disabled"],b&&[u.wrapperError,"rvn-ui--radio-label--error"],r)},i().createElement(a.A,{ref:y,...x}),e),!e&&i().createElement(a.A,{ref:y,...x}))});l.displayName="RadioButton"},90680(e,t,n){n.d(t,{S:()=>g});var r=n(41594),i=n.n(r),o=n(96962),a=n(81320),s=n(60781),c=n(82782),u=n(73075),l="x9-IN8Lc",d={container:"FPQNjAZB",iconContainer:"uOTheayN",content:"lXH5bBBo",error:"rvqqx9Fp"};const f="error",h="info",p="success",v="warning",m={[f]:"error-red-filled",[h]:"information",[p]:"check-green",[v]:"warning-yellow"},y=({children:e="",className:t="",containerClassName:n="",icon:r,iconClassName:o="",iconSize:s="small",noIcon:c=!1,variant:l})=>{let f;return r&&(f=((e,t)=>e&&!t&&["error","info","success","warning"].includes(e)&&m[e]?m[e]:t)(l,r)),i().createElement("div",{className:(0,a.A)(d.container,l&&d[l],n),"data-testid":"inline-message-container"},!c&&r&&f&&i().createElement("span",{className:(0,a.A)(d.iconContainer,o)},i().createElement(u.A,{icon:f,size:s,className:o})),i().createElement("span",{className:(0,a.A)(d.content,l&&d[l],t),"data-testid":"add-to-bag-message"},e))},g=({beddingSizes:e=!1,className:t="",displayNotifyMe:n=!1,enableErrors:d=!1,errorMessage:f=[],fractionalSizes:h=!1,groupTitle:p="",inseam:v="",onClick:m,notifyMeTextClassName:g,notifyMeIconClassName:b,sizes:w,titleClassName:S=""})=>{const[E,x]=(0,r.useState)(),k=(0,r.useCallback)(e=>{const t=e;x(t.currentTarget.value),m(t.currentTarget.value)},[m]),_=!w.every(e=>!!e.available)&&n;return i().createElement("div",null,i().createElement("div",{className:(0,a.A)("dLjWnwSG",_?"HtxrYy3h":"",t)},!v&&p&&Array.isArray(f)&&1===f.length&&d&&i().createElement(y,{variant:"error",noIcon:!0,containerClassName:l},f[0]),!v&&p&&Array.isArray(f)&&2===f.length&&d&&i().createElement(y,{variant:"error",noIcon:!0,containerClassName:l},i().createElement("span",{className:"kqVZVCXO"},f[0],": "),i().createElement("span",null,f[1])),p&&!f.length&&i().createElement("p",{className:S},p),w.map((t,n)=>i().createElement("div",{className:"UqlaZW83",key:`${t.value}-${n}`},i().createElement(s.$,{className:(0,a.A)("IBVcroSd",h&&"naKOi01i",e&&"Lhp8rT5t",(t.isSelected||E===t.label)&&"GEzxjWZ1",!t.available&&"BcAfxAJM"),as:"button",size:"small",mode:"ghost",onClick:k,value:t.value,"aria-label":`Select ${t.label}`},i().createElement("span",{className:(0,a.A)("NIHahexf",!t.available&&"oeZYwCGK")},((e,t)=>e&&t?(0,o.A)(e):e.toUpperCase())(t.label,e)),!t.available&&i().createElement("svg",{className:"_8XSKzL1N",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},i().createElement("line",{className:"OLwIeL-N",x1:"0",y1:"100",x2:"100",y2:"0"})))))),_&&i().createElement("div",{className:(0,a.A)("_5XekOUMv","bodySecondary"),id:"notifyMeContainer"},i().createElement(u.A,{className:b,icon:"alert-error-solid",chroma:"light",size:"small"}),i().createElement("p",{className:(0,a.A)("zc7lnlPT",g,"bodySecondary")},i().createElement("span",{className:"LXXoP4KU"},"Size Out of Stock?"),i().createElement(c.A,{className:"XqdbBHu-",theme:"dark",size:"body",as:"span",id:"notifyMe"}
2,"Notify me when it's back"))))}},18417(){},9771(e){var t=function(){};e.exports=t},25279(e,t,n){n.d(t,{A:()=>c});const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let i;const o=new Uint8Array(16);const a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).slice(1));function s(e,t=0){return(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase()}const c=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const a=(e=e||{}).random??e.rng?.()??function(){if(!i){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");i=crypto.getRandomValues.bind(crypto)}return i(o)}();if(a.length<16)throw new Error("Random bytes length must be >= 16");if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=a[e];return t}return s(a)}}}]);

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.