airport-one-embeddable-widgets 0.16.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -42,5 +42,5 @@ Error generating stack: `+r.message+`
|
|
|
42
42
|
`)].join(`
|
|
43
43
|
`));let y=X_((a=_.props)==null?void 0:a.className,l.className),S=y?{className:y}:{};return U.cloneElement(_,Object.assign({},Q_(_.props,il(cl(l,["ref"]))),m,d,Yp(_.ref,d.ref),S))}return U.createElement(r,Object.assign({},cl(l,["ref"]),r!==U.Fragment&&d,r!==U.Fragment&&m),_)}function Yp(...e){return{ref:e.every(o=>o==null)?void 0:o=>{for(let t of e)t!=null&&(typeof t=="function"?t(o):t.current=o)}}}function Q_(...e){if(e.length===0)return{};if(e.length===1)return e[0];let o={},t={};for(let n of e)for(let a in n)a.startsWith("on")&&typeof n[a]=="function"?(t[a]!=null||(t[a]=[]),t[a].push(n[a])):o[a]=n[a];if(o.disabled||o["aria-disabled"])return Object.assign(o,Object.fromEntries(Object.keys(t).map(n=>[n,void 0])));for(let n in t)Object.assign(o,{[n](a,...r){let i=t[n];for(let c of i){if((a instanceof Event||(a==null?void 0:a.nativeEvent)instanceof Event)&&a.defaultPrevented)return;c(a,...r)}}});return o}function fo(e){var o;return Object.assign(U.forwardRef(e),{displayName:(o=e.displayName)!=null?o:e.name})}function il(e){let o=Object.assign({},e);for(let t in o)o[t]===void 0&&delete o[t];return o}function cl(e,o=[]){let t=Object.assign({},e);for(let n of o)n in t&&delete t[n];return t}function Jp(e){let o=e.parentElement,t=null;for(;o&&!(o instanceof HTMLFieldSetElement);)o instanceof HTMLLegendElement&&(t=o),o=o.parentElement;let n=(o==null?void 0:o.getAttribute("disabled"))==="";return n&&zp(t)?!1:n}function zp(e){if(!e)return!1;let o=e.previousElementSibling;for(;o!==null;){if(o instanceof HTMLLegendElement)return!1;o=o.previousElementSibling}return!0}function j_(e={},o=null,t=[]){for(let[n,a]of Object.entries(e))q_(t,Z_(o,n),a);return t}function Z_(e,o){return e?e+"["+o+"]":o}function q_(e,o,t){if(Array.isArray(t))for(let[n,a]of t.entries())q_(e,Z_(o,n.toString()),a);else t instanceof Date?e.push([o,t.toISOString()]):typeof t=="boolean"?e.push([o,t?"1":"0"]):typeof t=="string"?e.push([o,t]):typeof t=="number"?e.push([o,`${t}`]):t==null?e.push([o,""]):j_(t,o,e)}let $p="div";var es=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(es||{});function Xp(e,o){let r=e,{features:t=1}=r,n=Qe(r,["features"]),a={ref:o,"aria-hidden":(t&2)===2?!0:void 0,style:b({position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},(t&4)===4&&(t&2)!==2&&{display:"none"})};return To({ourProps:a,theirProps:n,slot:{},defaultTag:$p,name:"Hidden"})}let Qp=fo(Xp),ll=U.createContext(null);ll.displayName="OpenClosedContext";var $e=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))($e||{});function dl(){return U.useContext(ll)}function os({value:e,children:o}){return Ue.createElement(ll.Provider,{value:e},o)}var Ne=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Ne||{});function jp(e,o,t){let[n,a]=U.useState(t),r=e!==void 0,i=U.useRef(r),c=U.useRef(!1),l=U.useRef(!1);return r&&!i.current&&!c.current?(c.current=!0,i.current=r,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!r&&i.current&&!l.current&&(l.current=!0,i.current=r,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[r?e:n,W(d=>(r||a(d),o==null?void 0:o(d)))]}function ts(e,o){let t=U.useRef([]),n=W(e);U.useEffect(()=>{let a=[...t.current];for(let[r,i]of o.entries())if(t.current[r]!==i){let c=n(o,a);return t.current=o,c}},[n,...o])}function ns(e){return[e.screenX,e.screenY]}function Zp(){let e=U.useRef([-1,-1]);return{wasMoved(o){let t=ns(o);return e.current[0]===t[0]&&e.current[1]===t[1]?!1:(e.current=t,!0)},update(o){e.current=ns(o)}}}function qp(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function e9(){return/Android/gi.test(window.navigator.userAgent)}function o9(){return qp()||e9()}var t9=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(t9||{}),n9=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(n9||{}),a9=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(a9||{}),r9=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e))(r9||{});function ul(e,o=t=>t){let t=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,n=Ip(o(e.options.slice()),r=>r.dataRef.current.domRef.current),a=t?n.indexOf(t):null;return a===-1&&(a=null),{options:n,activeOptionIndex:a}}let i9={[1](e){var o;return(o=e.dataRef.current)!=null&&o.disabled||e.comboboxState===1?e:pe(b({},e),{activeOptionIndex:null,comboboxState:1})},[0](e){var o;if((o=e.dataRef.current)!=null&&o.disabled||e.comboboxState===0)return e;let t=e.activeOptionIndex;if(e.dataRef.current){let{isSelected:n}=e.dataRef.current,a=e.options.findIndex(r=>n(r.dataRef.current.value));a!==-1&&(t=a)}return pe(b({},e),{comboboxState:0,activeOptionIndex:t})},[2](e,o){var t,n,a,r;if((t=e.dataRef.current)!=null&&t.disabled||(n=e.dataRef.current)!=null&&n.optionsRef.current&&!((a=e.dataRef.current)!=null&&a.optionsPropsRef.current.static)&&e.comboboxState===1)return e;let i=ul(e);if(i.activeOptionIndex===null){let l=i.options.findIndex(d=>!d.dataRef.current.disabled);l!==-1&&(i.activeOptionIndex=l)}let c=Vp(o,{resolveItems:()=>i.options,resolveActiveIndex:()=>i.activeOptionIndex,resolveId:l=>l.id,resolveDisabled:l=>l.dataRef.current.disabled});return pe(b(b({},e),i),{activeOptionIndex:c,activationTrigger:(r=o.trigger)!=null?r:1})},[3]:(e,o)=>{var t,n;let a={id:o.id,dataRef:o.dataRef},r=ul(e,c=>[...c,a]);e.activeOptionIndex===null&&(t=e.dataRef.current)!=null&&t.isSelected(o.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(a));let i=pe(b(b({},e),r),{activationTrigger:1});return(n=e.dataRef.current)!=null&&n.__demoMode&&e.dataRef.current.value===void 0&&(i.activeOptionIndex=0),i},[4]:(e,o)=>{let t=ul(e,n=>{let a=n.findIndex(r=>r.id===o.id);return a!==-1&&n.splice(a,1),n});return pe(b(b({},e),t),{activationTrigger:1})},[5]:(e,o)=>pe(b({},e),{labelId:o.id})},_l=U.createContext(null);_l.displayName="ComboboxActionsContext";function qn(e){let o=U.useContext(_l);if(o===null){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,qn),t}return o}let sl=U.createContext(null);sl.displayName="ComboboxDataContext";function on(e){let o=U.useContext(sl);if(o===null){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,on),t}return o}function c9(e,o){return Ce(o.type,i9,e,o)}let l9=U.Fragment;function d9(e,o){let no=e,{value:t,defaultValue:n,onChange:a,name:r,by:i=(O,z)=>O===z,disabled:c=!1,__demoMode:l=!1,nullable:d=!1,multiple:_=!1}=no,m=Qe(no,["value","defaultValue","onChange","name","by","disabled","__demoMode","nullable","multiple"]),[u=_?[]:void 0,y]=jp(t,a,n),[S,f]=U.useReducer(c9,{dataRef:U.createRef(),comboboxState:l?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),h=U.useRef(!1),s=U.useRef({static:!1,hold:!1}),p=U.useRef(null),g=U.useRef(null),A=U.useRef(null),v=U.useRef(null),w=W(typeof i=="string"?(O,z)=>{let oe=i;return(O==null?void 0:O[oe])===(z==null?void 0:z[oe])}:i),P=U.useCallback(O=>Ce(K.mode,{[1]:()=>u.some(z=>w(z,O)),[0]:()=>w(u,O)}),[u]),K=U.useMemo(()=>pe(b({},S),{optionsPropsRef:s,labelRef:p,inputRef:g,buttonRef:A,optionsRef:v,value:u,defaultValue:n,disabled:c,mode:_?1:0,get activeOptionIndex(){if(h.current&&S.activeOptionIndex===null&&S.options.length>0){let O=S.options.findIndex(z=>!z.dataRef.current.disabled);if(O!==-1)return O}return S.activeOptionIndex},compare:w,isSelected:P,nullable:d,__demoMode:l}),[u,n,c,_,d,l,S]),N=U.useRef(K.activeOptionIndex!==null?K.options[K.activeOptionIndex]:null);U.useEffect(()=>{let O=K.activeOptionIndex!==null?K.options[K.activeOptionIndex]:null;N.current!==O&&(N.current=O)}),Fe(()=>{S.dataRef.current=K},[K]),Hp([K.buttonRef,K.inputRef,K.optionsRef],()=>F.closeCombobox(),K.comboboxState===0);let R=U.useMemo(()=>({open:K.comboboxState===0,disabled:c,activeIndex:K.activeOptionIndex,activeOption:K.activeOptionIndex===null?null:K.options[K.activeOptionIndex].dataRef.current.value,value:u}),[K,c,u]),I=W(O=>{let z=K.options.find(oe=>oe.id===O);z&&C(z.dataRef.current.value)}),k=W(()=>{if(K.activeOptionIndex!==null){let{dataRef:O,id:z}=K.options[K.activeOptionIndex];C(O.current.value),F.goToOption(Me.Specific,z)}}),Z=W(()=>{f({type:0}),h.current=!0}),se=W(()=>{f({type:1}),h.current=!1}),J=W((O,z,oe)=>(h.current=!1,O===Me.Specific?f({type:2,focus:Me.Specific,id:z,trigger:oe}):f({type:2,focus:O,trigger:oe}))),ie=W((O,z)=>(f({type:3,id:O,dataRef:z}),()=>{var oe;((oe=N.current)==null?void 0:oe.id)===O&&(h.current=!0),f({type:4,id:O})})),B=W(O=>(f({type:5,id:O}),()=>f({type:5,id:null}))),C=W(O=>Ce(K.mode,{[0](){return y==null?void 0:y(O)},[1](){let z=K.value.slice(),oe=z.findIndex(Bo=>w(Bo,O));return oe===-1?z.push(O):z.splice(oe,1),y==null?void 0:y(z)}})),F=U.useMemo(()=>({onChange:C,registerOption:ie,registerLabel:B,goToOption:J,closeCombobox:se,openCombobox:Z,selectActiveOption:k,selectOption:I}),[]),T=o===null?{}:{ref:o},G=U.useRef(null),H=jn();return U.useEffect(()=>{G.current&&n!==void 0&&H.addEventListener(G.current,"reset",()=>{C(n)})},[G,C]),Ue.createElement(_l.Provider,{value:F},Ue.createElement(sl.Provider,{value:K},Ue.createElement(os,{value:Ce(K.comboboxState,{[0]:$e.Open,[1]:$e.Closed})},r!=null&&u!=null&&j_({[r]:u}).map(([O,z],oe)=>Ue.createElement(Qp,b({features:es.Hidden,ref:oe===0?Bo=>{var e1;G.current=(e1=Bo==null?void 0:Bo.closest("form"))!=null?e1:null}:void 0},il({key:O,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:O,value:z})))),To({ourProps:T,theirProps:m,slot:R,defaultTag:l9,name:"Combobox"}))))}let u9="input";function _9(e,o){var t,n,a,r;let i=Zn(),I=e,{id:c=`headlessui-combobox-input-${i}`,onChange:l,displayValue:d,type:_="text"}=I,m=Qe(I,["id","onChange","displayValue","type"]),u=on("Combobox.Input"),y=qn("Combobox.Input"),S=Ut(u.inputRef,o),f=U.useRef(!1),h=jn(),s=function(){var k;return typeof d=="function"&&u.value!==void 0?(k=d(u.value))!=null?k:"":typeof u.value=="string"?u.value:""}();ts(([k,Z],[se,J])=>{f.current||u.inputRef.current&&(J===0&&Z===1||k!==se)&&(u.inputRef.current.value=k)},[s,u.comboboxState]),ts(([k],[Z])=>{if(k===0&&Z===1){let se=u.inputRef.current;if(!se)return;let J=se.value,{selectionStart:ie,selectionEnd:B,selectionDirection:C}=se;se.value="",se.value=J,C!==null?se.setSelectionRange(ie,B,C):se.setSelectionRange(ie,B)}},[u.comboboxState]);let p=U.useRef(!1),g=W(()=>{p.current=!0}),A=W(()=>{setTimeout(()=>{p.current=!1})}),v=W(k=>{switch(f.current=!0,k.key){case Ne.Backspace:case Ne.Delete:if(u.mode!==0||!u.nullable)return;let Z=k.currentTarget;h.requestAnimationFrame(()=>{Z.value===""&&(y.onChange(null),u.optionsRef.current&&(u.optionsRef.current.scrollTop=0),y.goToOption(Me.Nothing))});break;case Ne.Enter:if(f.current=!1,u.comboboxState!==0||p.current)return;if(k.preventDefault(),k.stopPropagation(),u.activeOptionIndex===null){y.closeCombobox();return}y.selectActiveOption(),u.mode===0&&y.closeCombobox();break;case Ne.ArrowDown:return f.current=!1,k.preventDefault(),k.stopPropagation(),Ce(u.comboboxState,{[0]:()=>{y.goToOption(Me.Next)},[1]:()=>{y.openCombobox()}});case Ne.ArrowUp:return f.current=!1,k.preventDefault(),k.stopPropagation(),Ce(u.comboboxState,{[0]:()=>{y.goToOption(Me.Previous)},[1]:()=>{y.openCombobox(),h.nextFrame(()=>{u.value||y.goToOption(Me.Last)})}});case Ne.Home:if(k.shiftKey)break;return f.current=!1,k.preventDefault(),k.stopPropagation(),y.goToOption(Me.First);case Ne.PageUp:return f.current=!1,k.preventDefault(),k.stopPropagation(),y.goToOption(Me.First);case Ne.End:if(k.shiftKey)break;return f.current=!1,k.preventDefault(),k.stopPropagation(),y.goToOption(Me.Last);case Ne.PageDown:return f.current=!1,k.preventDefault(),k.stopPropagation(),y.goToOption(Me.Last);case Ne.Escape:return f.current=!1,u.comboboxState!==0?void 0:(k.preventDefault(),u.optionsRef.current&&!u.optionsPropsRef.current.static&&k.stopPropagation(),y.closeCombobox());case Ne.Tab:if(f.current=!1,u.comboboxState!==0)return;u.mode===0&&y.selectActiveOption(),y.closeCombobox();break}}),w=W(k=>{y.openCombobox(),l==null||l(k)}),P=W(()=>{f.current=!1}),K=nl(()=>{if(u.labelId)return[u.labelId].join(" ")},[u.labelId]),N=U.useMemo(()=>({open:u.comboboxState===0,disabled:u.disabled}),[u]),R={ref:S,id:c,role:"combobox",type:_,"aria-controls":(t=u.optionsRef.current)==null?void 0:t.id,"aria-expanded":u.disabled?void 0:u.comboboxState===0,"aria-activedescendant":u.activeOptionIndex===null||(n=u.options[u.activeOptionIndex])==null?void 0:n.id,"aria-labelledby":K,"aria-autocomplete":"list",defaultValue:(r=(a=e.defaultValue)!=null?a:u.defaultValue!==void 0?d==null?void 0:d(u.defaultValue):null)!=null?r:u.defaultValue,disabled:u.disabled,onCompositionStart:g,onCompositionEnd:A,onKeyDown:v,onChange:w,onBlur:P};return To({ourProps:R,theirProps:m,slot:N,defaultTag:u9,name:"Combobox.Input"})}let s9="button";function p9(e,o){var t;let n=on("Combobox.Button"),a=qn("Combobox.Button"),r=Ut(n.buttonRef,o),i=Zn(),f=e,{id:c=`headlessui-combobox-button-${i}`}=f,l=Qe(f,["id"]),d=jn(),_=W(h=>{switch(h.key){case Ne.ArrowDown:return h.preventDefault(),h.stopPropagation(),n.comboboxState===1&&a.openCombobox(),d.nextFrame(()=>{var s;return(s=n.inputRef.current)==null?void 0:s.focus({preventScroll:!0})});case Ne.ArrowUp:return h.preventDefault(),h.stopPropagation(),n.comboboxState===1&&(a.openCombobox(),d.nextFrame(()=>{n.value||a.goToOption(Me.Last)})),d.nextFrame(()=>{var s;return(s=n.inputRef.current)==null?void 0:s.focus({preventScroll:!0})});case Ne.Escape:return n.comboboxState!==0?void 0:(h.preventDefault(),n.optionsRef.current&&!n.optionsPropsRef.current.static&&h.stopPropagation(),a.closeCombobox(),d.nextFrame(()=>{var s;return(s=n.inputRef.current)==null?void 0:s.focus({preventScroll:!0})}));default:return}}),m=W(h=>{if(Jp(h.currentTarget))return h.preventDefault();n.comboboxState===0?a.closeCombobox():(h.preventDefault(),a.openCombobox()),d.nextFrame(()=>{var s;return(s=n.inputRef.current)==null?void 0:s.focus({preventScroll:!0})})}),u=nl(()=>{if(n.labelId)return[n.labelId,c].join(" ")},[n.labelId,c]),y=U.useMemo(()=>({open:n.comboboxState===0,disabled:n.disabled,value:n.value}),[n]),S={ref:r,id:c,type:xp(e,n.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":(t=n.optionsRef.current)==null?void 0:t.id,"aria-expanded":n.disabled?void 0:n.comboboxState===0,"aria-labelledby":u,disabled:n.disabled,onClick:m,onKeyDown:_};return To({ourProps:S,theirProps:l,slot:y,defaultTag:s9,name:"Combobox.Button"})}let m9="label";function y9(e,o){let t=Zn(),_=e,{id:n=`headlessui-combobox-label-${t}`}=_,a=Qe(_,["id"]),r=on("Combobox.Label"),i=qn("Combobox.Label"),c=Ut(r.labelRef,o);Fe(()=>i.registerLabel(n),[n]);let l=W(()=>{var m;return(m=r.inputRef.current)==null?void 0:m.focus({preventScroll:!0})}),d=U.useMemo(()=>({open:r.comboboxState===0,disabled:r.disabled}),[r]);return To({ourProps:{ref:c,id:n,onClick:l},theirProps:a,slot:d,defaultTag:m9,name:"Combobox.Label"})}let g9="ul",S9=Ur.RenderStrategy|Ur.Static;function f9(e,o){let t=Zn(),y=e,{id:n=`headlessui-combobox-options-${t}`,hold:a=!1}=y,r=Qe(y,["id","hold"]),i=on("Combobox.Options"),c=Ut(i.optionsRef,o),l=dl(),d=(()=>l!==null?(l&$e.Open)===$e.Open:i.comboboxState===0)();Fe(()=>{var S;i.optionsPropsRef.current.static=(S=e.static)!=null?S:!1},[i.optionsPropsRef,e.static]),Fe(()=>{i.optionsPropsRef.current.hold=a},[i.optionsPropsRef,a]),Gp({container:i.optionsRef.current,enabled:i.comboboxState===0,accept(S){return S.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:S.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(S){S.setAttribute("role","none")}});let _=nl(()=>{var S,f;return(f=i.labelId)!=null?f:(S=i.buttonRef.current)==null?void 0:S.id},[i.labelId,i.buttonRef.current]),m=U.useMemo(()=>({open:i.comboboxState===0}),[i]),u={"aria-labelledby":_,role:"listbox","aria-multiselectable":i.mode===1?!0:void 0,id:n,ref:c};return To({ourProps:u,theirProps:r,slot:m,defaultTag:g9,features:S9,visible:d,name:"Combobox.Options"})}let A9="li";function U9(e,o){var t,n;let a=Zn(),N=e,{id:r=`headlessui-combobox-option-${a}`,disabled:i=!1,value:c}=N,l=Qe(N,["id","disabled","value"]),d=on("Combobox.Option"),_=qn("Combobox.Option"),m=d.activeOptionIndex!==null?d.options[d.activeOptionIndex].id===r:!1,u=d.isSelected(c),y=U.useRef(null),S=Fo({disabled:i,value:c,domRef:y,textValue:(n=(t=y.current)==null?void 0:t.textContent)==null?void 0:n.toLowerCase()}),f=Ut(o,y),h=W(()=>_.selectOption(r));Fe(()=>_.registerOption(r,S),[S,r]);let s=U.useRef(!d.__demoMode);Fe(()=>{if(!d.__demoMode)return;let R=At();return R.requestAnimationFrame(()=>{s.current=!0}),R.dispose},[]),Fe(()=>{if(d.comboboxState!==0||!m||!s.current||d.activationTrigger===0)return;let R=At();return R.requestAnimationFrame(()=>{var I,k;(k=(I=y.current)==null?void 0:I.scrollIntoView)==null||k.call(I,{block:"nearest"})}),R.dispose},[y,m,d.comboboxState,d.activationTrigger,d.activeOptionIndex]);let p=W(R=>{if(i)return R.preventDefault();h(),d.mode===0&&_.closeCombobox(),o9()||requestAnimationFrame(()=>{var I;return(I=d.inputRef.current)==null?void 0:I.focus()})}),g=W(()=>{if(i)return _.goToOption(Me.Nothing);_.goToOption(Me.Specific,r)}),A=Zp(),v=W(R=>A.update(R)),w=W(R=>{A.wasMoved(R)&&(i||m||_.goToOption(Me.Specific,r,0))}),P=W(R=>{A.wasMoved(R)&&(i||m&&(d.optionsPropsRef.current.hold||_.goToOption(Me.Nothing)))}),K=U.useMemo(()=>({active:m,selected:u,disabled:i}),[m,u,i]);return To({ourProps:{id:r,ref:f,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":u,disabled:void 0,onClick:p,onFocus:g,onPointerEnter:v,onMouseEnter:v,onPointerMove:w,onMouseMove:w,onPointerLeave:P,onMouseLeave:P},theirProps:l,slot:K,defaultTag:A9,name:"Combobox.Option"})}let h9=fo(d9),K9=fo(p9),v9=fo(_9),C9=fo(y9),M9=fo(f9),w9=fo(U9),Kr=Object.assign(h9,{Input:v9,Button:K9,Label:C9,Options:M9,Option:w9});function as(){let e=U.useRef(!1);return Fe(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function P9(e=0){let[o,t]=U.useState(e),n=U.useCallback(c=>t(l=>l|c),[o]),a=U.useCallback(c=>Boolean(o&c),[o]),r=U.useCallback(c=>t(l=>l&~c),[t]),i=U.useCallback(c=>t(l=>l^c),[t]);return{flags:o,addFlag:n,hasFlag:a,removeFlag:r,toggleFlag:i}}function R9(e){let o={called:!1};return(...t)=>{if(!o.called)return o.called=!0,e(...t)}}function pl(e,...o){e&&o.length>0&&e.classList.add(...o)}function ml(e,...o){e&&o.length>0&&e.classList.remove(...o)}function L9(e,o){let t=At();if(!e)return t.dispose;let{transitionDuration:n,transitionDelay:a}=getComputedStyle(e),[r,i]=[n,a].map(l=>{let[d=0]=l.split(",").filter(Boolean).map(_=>_.includes("ms")?parseFloat(_):parseFloat(_)*1e3).sort((_,m)=>m-_);return d}),c=r+i;if(c!==0){t.group(d=>{d.setTimeout(()=>{o(),d.dispose()},c),d.addEventListener(e,"transitionrun",_=>{_.target===_.currentTarget&&d.dispose()})});let l=t.addEventListener(e,"transitionend",d=>{d.target===d.currentTarget&&(o(),l())})}else o();return t.add(()=>o()),t.dispose}function F9(e,o,t,n){let a=t?"enter":"leave",r=At(),i=n!==void 0?R9(n):()=>{};a==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=Ce(a,{enter:()=>o.enter,leave:()=>o.leave}),l=Ce(a,{enter:()=>o.enterTo,leave:()=>o.leaveTo}),d=Ce(a,{enter:()=>o.enterFrom,leave:()=>o.leaveFrom});return ml(e,...o.enter,...o.enterTo,...o.enterFrom,...o.leave,...o.leaveFrom,...o.leaveTo,...o.entered),pl(e,...c,...d),r.nextFrame(()=>{ml(e,...d),pl(e,...l),L9(e,()=>(ml(e,...c),pl(e,...o.entered),i()))}),r.dispose}function E9({container:e,direction:o,classes:t,onStart:n,onStop:a}){let r=as(),i=jn(),c=Fo(o);Fe(()=>{let l=At();i.add(l.dispose);let d=e.current;if(d&&c.current!=="idle"&&r.current)return l.dispose(),n.current(c.current),l.add(F9(d,t.current,c.current==="enter",()=>{l.dispose(),a.current(c.current)})),l.dispose},[o])}function ht(e=""){return e.split(" ").filter(o=>o.trim().length>1)}let vr=U.createContext(null);vr.displayName="TransitionContext";var T9=(e=>(e.Visible="visible",e.Hidden="hidden",e))(T9||{});function k9(){let e=U.useContext(vr);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function B9(){let e=U.useContext(Cr);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Cr=U.createContext(null);Cr.displayName="NestingContext";function Mr(e){return"children"in e?Mr(e.children):e.current.filter(({el:o})=>o.current!==null).filter(({state:o})=>o==="visible").length>0}function rs(e,o){let t=Fo(e),n=U.useRef([]),a=as(),r=jn(),i=W((y,S=Eo.Hidden)=>{let f=n.current.findIndex(({el:h})=>h===y);f!==-1&&(Ce(S,{[Eo.Unmount](){n.current.splice(f,1)},[Eo.Hidden](){n.current[f].state="hidden"}}),r.microTask(()=>{var h;!Mr(n)&&a.current&&((h=t.current)==null||h.call(t))}))}),c=W(y=>{let S=n.current.find(({el:f})=>f===y);return S?S.state!=="visible"&&(S.state="visible"):n.current.push({el:y,state:"visible"}),()=>i(y,Eo.Unmount)}),l=U.useRef([]),d=U.useRef(Promise.resolve()),_=U.useRef({enter:[],leave:[],idle:[]}),m=W((y,S,f)=>{l.current.splice(0),o&&(o.chains.current[S]=o.chains.current[S].filter(([h])=>h!==y)),o==null||o.chains.current[S].push([y,new Promise(h=>{l.current.push(h)})]),o==null||o.chains.current[S].push([y,new Promise(h=>{Promise.all(_.current[S].map(([s,p])=>p)).then(()=>h())})]),S==="enter"?d.current=d.current.then(()=>o==null?void 0:o.wait.current).then(()=>f(S)):f(S)}),u=W((y,S,f)=>{Promise.all(_.current[S].splice(0).map(([h,s])=>s)).then(()=>{var h;(h=l.current.shift())==null||h()}).then(()=>f(S))});return U.useMemo(()=>({children:n,register:c,unregister:i,onStart:m,onStop:u,wait:d,chains:_}),[c,i,n,m,u,_,d])}function N9(){}let O9=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function is(e){var o;let t={};for(let n of O9)t[n]=(o=e[n])!=null?o:N9;return t}function D9(e){let o=U.useRef(is(e));return U.useEffect(()=>{o.current=is(e)},[e]),o}let I9="div",cs=Ur.RenderStrategy;function H9(e,o){let G=e,{beforeEnter:t,afterEnter:n,beforeLeave:a,afterLeave:r,enter:i,enterFrom:c,enterTo:l,entered:d,leave:_,leaveFrom:m,leaveTo:u}=G,y=Qe(G,["beforeEnter","afterEnter","beforeLeave","afterLeave","enter","enterFrom","enterTo","entered","leave","leaveFrom","leaveTo"]),S=U.useRef(null),f=Ut(S,o),h=y.unmount?Eo.Unmount:Eo.Hidden,{show:s,appear:p,initial:g}=k9(),[A,v]=U.useState(s?"visible":"hidden"),w=B9(),{register:P,unregister:K}=w,N=U.useRef(null);U.useEffect(()=>P(S),[P,S]),U.useEffect(()=>{if(h===Eo.Hidden&&S.current){if(s&&A!=="visible"){v("visible");return}return Ce(A,{hidden:()=>K(S),visible:()=>P(S)})}},[A,S,P,K,s,h]);let R=Fo({enter:ht(i),enterFrom:ht(c),enterTo:ht(l),entered:ht(d),leave:ht(_),leaveFrom:ht(m),leaveTo:ht(u)}),I=D9({beforeEnter:t,afterEnter:n,beforeLeave:a,afterLeave:r}),k=al();U.useEffect(()=>{if(k&&A==="visible"&&S.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[S,A,k]);let Z=g&&!p,se=(()=>!k||Z||N.current===s?"idle":s?"enter":"leave")(),J=P9(0),ie=W(H=>Ce(H,{enter:()=>{J.addFlag($e.Opening),I.current.beforeEnter()},leave:()=>{J.addFlag($e.Closing),I.current.beforeLeave()},idle:()=>{}})),B=W(H=>Ce(H,{enter:()=>{J.removeFlag($e.Opening),I.current.afterEnter()},leave:()=>{J.removeFlag($e.Closing),I.current.afterLeave()},idle:()=>{}})),C=rs(()=>{v("hidden"),K(S)},w);E9({container:S,classes:R,direction:se,onStart:Fo(H=>{C.onStart(S,H,ie)}),onStop:Fo(H=>{C.onStop(S,H,B),H==="leave"&&!Mr(C)&&(v("hidden"),K(S))})}),U.useEffect(()=>{Z&&(h===Eo.Hidden?N.current=null:N.current=s)},[s,Z,A]);let F=y,T={ref:f};return p&&s&&ot.isServer&&(F=pe(b({},F),{className:X_(y.className,...R.current.enter,...R.current.enterFrom)})),Ue.createElement(Cr.Provider,{value:C},Ue.createElement(os,{value:Ce(A,{visible:$e.Open,hidden:$e.Closed})|J.flags},To({ourProps:T,theirProps:F,defaultTag:I9,features:cs,visible:A==="visible",name:"Transition.Child"})))}function x9(e,o){let s=e,{show:t,appear:n=!1,unmount:a}=s,r=Qe(s,["show","appear","unmount"]),i=U.useRef(null),c=Ut(i,o);al();let l=dl();if(t===void 0&&l!==null&&(t=(l&$e.Open)===$e.Open),![!0,!1].includes(t))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,_]=U.useState(t?"visible":"hidden"),m=rs(()=>{_("hidden")}),[u,y]=U.useState(!0),S=U.useRef([t]);Fe(()=>{u!==!1&&S.current[S.current.length-1]!==t&&(S.current.push(t),y(!1))},[S,t]);let f=U.useMemo(()=>({show:t,appear:n,initial:u}),[t,n,u]);U.useEffect(()=>{if(t)_("visible");else if(!Mr(m))_("hidden");else{let p=i.current;if(!p)return;let g=p.getBoundingClientRect();g.x===0&&g.y===0&&g.width===0&&g.height===0&&_("hidden")}},[t,m]);let h={unmount:a};return Ue.createElement(Cr.Provider,{value:m},Ue.createElement(vr.Provider,{value:f},To({ourProps:pe(b({},h),{as:U.Fragment,children:Ue.createElement(ls,b(b({ref:c},h),r))}),theirProps:{},defaultTag:U.Fragment,features:cs,visible:d==="visible",name:"Transition"})))}function W9(e,o){let t=U.useContext(vr)!==null,n=dl()!==null;return Ue.createElement(Ue.Fragment,null,!t&&n?Ue.createElement(yl,b({ref:o},e)):Ue.createElement(ls,b({ref:o},e)))}let yl=fo(x9),ls=fo(H9),G9=fo(W9),ds=Object.assign(yl,{Child:G9,Root:yl});const b9=(e,o,t,n)=>E("li",{className:`${t}`,children:n});function us({label:e,name:o,items:t,value:n=null,primaryColor:a,accentColor:r,onChange:i,getKey:c,getValue:l,filter:d,children:_=b9,disabled:m=!1,icon:u}){const[y,S]=U.useState(""),[f,h]=U.useState(!1),s=y===""?t:t==null?void 0:t.filter(N=>d(y,N)),p="a1-z-100 a1-absolute a1-max-h-56 a1-max-w-full lg:a1-max-w-[none] a1-rounded-lg a1-border a1-border-gray-200 a1-bg-white a1-shadow-lg a1-mt-2 a1-overflow-x-hidden",g="a1-border-b a1-border-gray-200 a1-text-left a1-border-l-0 a1-border-r-0 a1-px-4 a1-py-2 a1-cursor-pointer a1-overflow-hidden",A="a1-bg-accent",v="a1-bg-primary a1-text-white",w="a1-text-gray-900 a1-bg-white a1-rounded-lg focus:a1-border-primary",P="a1-ring-2 a1-ring-primary";let K={};return a&&(K["--color-primary"]=a),r&&(K["--color-accent"]=r),E("div",{style:K,children:E(Kr,{disabled:m,name:o,value:n,onChange:N=>{typeof i=="function"&&i(N)},children:({open:N})=>E(Dl,{children:Oe("div",{className:"a1-relative",children:[Oe("div",{className:`a1-flex a1-flex-row a1-items-center a1-gap-1 ${w} ${f?P:"a1-ring-2 a1-ring-gray-200"} ${m?"a1-opacity-50":""}`,children:[!!u&&E("span",{className:"a1-p-3",children:u}),E(Kr.Input,{autoComplete:"off",className:"focus:a1-outline-none a1-w-full",onChange:R=>S(R.target.value),onFocus:()=>h(!0),onBlur:()=>setTimeout(()=>h(!1),200),placeholder:e})]}),E(ds,{show:N||f&&y==="",className:"a1-relative a1-z-10",enter:"a1-transition a1-duration-100 a1-ease-out",enterFrom:"a1-transform a1-scale-95 a1-opacity-0",enterTo:"a1-transform a1-scale-100 a1-opacity-100",leave:"a1-transition a1-duration-75 a1-ease-out",leaveFrom:"a1-transform a1-scale-100 a1-opacity-100",leaveTo:"a1-transform a1-scale-95 a1-opacity-0",children:E(Kr.Options,{className:`${p}`,children:s==null?void 0:s.slice(0,25).map((R,I)=>E(Kr.Option,{value:l(R),as:U.Fragment,children:({active:k,selected:Z})=>_(k,Z,`${g} ${k?A:""} ${Z?v:"a1-text-gray-900"} ${!k&&!Z?"a1-bg-white":""}`,R)},`${c(R)}-${I}`))})})]})})})})}function X(e){if(e===null||e===!0||e===!1)return NaN;var o=Number(e);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}function Q(e,o){if(o.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+o.length+" present")}function wr(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?wr=function(t){return typeof t}:wr=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wr(e)}function fe(e){Q(1,arguments);var o=Object.prototype.toString.call(e);return e instanceof Date||wr(e)==="object"&&o==="[object Date]"?new Date(e.getTime()):typeof e=="number"||o==="[object Number]"?new Date(e):((typeof e=="string"||o==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Pr(e,o){Q(2,arguments);var t=fe(e),n=X(o);return isNaN(n)?new Date(NaN):(n&&t.setDate(t.getDate()+n),t)}function _s(e,o){Q(2,arguments);var t=fe(e),n=X(o);if(isNaN(n))return new Date(NaN);if(!n)return t;var a=t.getDate(),r=new Date(t.getTime());r.setMonth(t.getMonth()+n+1,0);var i=r.getDate();return a>=i?r:(t.setFullYear(r.getFullYear(),r.getMonth(),a),t)}function Rr(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Rr=function(t){return typeof t}:Rr=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rr(e)}function V9(e,o){if(Q(2,arguments),!o||Rr(o)!=="object")return new Date(NaN);var t=o.years?X(o.years):0,n=o.months?X(o.months):0,a=o.weeks?X(o.weeks):0,r=o.days?X(o.days):0,i=o.hours?X(o.hours):0,c=o.minutes?X(o.minutes):0,l=o.seconds?X(o.seconds):0,d=fe(e),_=n||t?_s(d,n+t*12):d,m=r||a?Pr(_,r+a*7):_,u=c+i*60,y=l+u*60,S=y*1e3,f=new Date(m.getTime()+S);return f}function Y9(e,o){Q(2,arguments);var t=fe(e).getTime(),n=X(o);return new Date(t+n)}var J9={};function ea(){return J9}function z9(e,o){var t,n,a,r,i,c,l,d;Q(1,arguments);var _=ea(),m=X((t=(n=(a=(r=o==null?void 0:o.weekStartsOn)!==null&&r!==void 0?r:o==null||(i=o.locale)===null||i===void 0||(c=i.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&a!==void 0?a:_.weekStartsOn)!==null&&n!==void 0?n:(l=_.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=fe(e),y=u.getDay(),S=(y<m?7:0)+y-m;return u.setDate(u.getDate()-S),u.setHours(0,0,0,0),u}function $9(e){var o=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return o.setUTCFullYear(e.getFullYear()),e.getTime()-o.getTime()}function ss(e){Q(1,arguments);var o=fe(e);return o.setHours(0,0,0,0),o}function Lr(e,o){Q(2,arguments);var t=ss(e),n=ss(o);return t.getTime()===n.getTime()}function Fr(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fr=function(t){return typeof t}:Fr=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fr(e)}function X9(e){return Q(1,arguments),e instanceof Date||Fr(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Q9(e){if(Q(1,arguments),!X9(e)&&typeof e!="number")return!1;var o=fe(e);return!isNaN(Number(o))}function j9(e){Q(1,arguments);var o=fe(e);return o.setDate(1),o.setHours(0,0,0,0),o}function Z9(e,o){Q(2,arguments);var t=X(o);return Y9(e,-t)}var q9=864e5;function em(e){Q(1,arguments);var o=fe(e),t=o.getTime();o.setUTCMonth(0,1),o.setUTCHours(0,0,0,0);var n=o.getTime(),a=t-n;return Math.floor(a/q9)+1}function Er(e){Q(1,arguments);var o=1,t=fe(e),n=t.getUTCDay(),a=(n<o?7:0)+n-o;return t.setUTCDate(t.getUTCDate()-a),t.setUTCHours(0,0,0,0),t}function ps(e){Q(1,arguments);var o=fe(e),t=o.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(t+1,0,4),n.setUTCHours(0,0,0,0);var a=Er(n),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var i=Er(r);return o.getTime()>=a.getTime()?t+1:o.getTime()>=i.getTime()?t:t-1}function om(e){Q(1,arguments);var o=ps(e),t=new Date(0);t.setUTCFullYear(o,0,4),t.setUTCHours(0,0,0,0);var n=Er(t);return n}var tm=6048e5;function nm(e){Q(1,arguments);var o=fe(e),t=Er(o).getTime()-om(o).getTime();return Math.round(t/tm)+1}function Tr(e,o){var t,n,a,r,i,c,l,d;Q(1,arguments);var _=ea(),m=X((t=(n=(a=(r=o==null?void 0:o.weekStartsOn)!==null&&r!==void 0?r:o==null||(i=o.locale)===null||i===void 0||(c=i.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&a!==void 0?a:_.weekStartsOn)!==null&&n!==void 0?n:(l=_.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=fe(e),y=u.getUTCDay(),S=(y<m?7:0)+y-m;return u.setUTCDate(u.getUTCDate()-S),u.setUTCHours(0,0,0,0),u}function ms(e,o){var t,n,a,r,i,c,l,d;Q(1,arguments);var _=fe(e),m=_.getUTCFullYear(),u=ea(),y=X((t=(n=(a=(r=o==null?void 0:o.firstWeekContainsDate)!==null&&r!==void 0?r:o==null||(i=o.locale)===null||i===void 0||(c=i.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&a!==void 0?a:u.firstWeekContainsDate)!==null&&n!==void 0?n:(l=u.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=new Date(0);S.setUTCFullYear(m+1,0,y),S.setUTCHours(0,0,0,0);var f=Tr(S,o),h=new Date(0);h.setUTCFullYear(m,0,y),h.setUTCHours(0,0,0,0);var s=Tr(h,o);return _.getTime()>=f.getTime()?m+1:_.getTime()>=s.getTime()?m:m-1}function am(e,o){var t,n,a,r,i,c,l,d;Q(1,arguments);var _=ea(),m=X((t=(n=(a=(r=o==null?void 0:o.firstWeekContainsDate)!==null&&r!==void 0?r:o==null||(i=o.locale)===null||i===void 0||(c=i.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&a!==void 0?a:_.firstWeekContainsDate)!==null&&n!==void 0?n:(l=_.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),u=ms(e,o),y=new Date(0);y.setUTCFullYear(u,0,m),y.setUTCHours(0,0,0,0);var S=Tr(y,o);return S}var rm=6048e5;function im(e,o){Q(1,arguments);var t=fe(e),n=Tr(t,o).getTime()-am(t,o).getTime();return Math.round(n/rm)+1}function Y(e,o){for(var t=e<0?"-":"",n=Math.abs(e).toString();n.length<o;)n="0"+n;return t+n}var cm={y:function(o,t){var n=o.getUTCFullYear(),a=n>0?n:1-n;return Y(t==="yy"?a%100:a,t.length)},M:function(o,t){var n=o.getUTCMonth();return t==="M"?String(n+1):Y(n+1,2)},d:function(o,t){return Y(o.getUTCDate(),t.length)},a:function(o,t){var n=o.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(o,t){return Y(o.getUTCHours()%12||12,t.length)},H:function(o,t){return Y(o.getUTCHours(),t.length)},m:function(o,t){return Y(o.getUTCMinutes(),t.length)},s:function(o,t){return Y(o.getUTCSeconds(),t.length)},S:function(o,t){var n=t.length,a=o.getUTCMilliseconds(),r=Math.floor(a*Math.pow(10,n-3));return Y(r,t.length)}};const tt=cm;var tn={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},lm={G:function(o,t,n){var a=o.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})}},y:function(o,t,n){if(t==="yo"){var a=o.getUTCFullYear(),r=a>0?a:1-a;return n.ordinalNumber(r,{unit:"year"})}return tt.y(o,t)},Y:function(o,t,n,a){var r=ms(o,a),i=r>0?r:1-r;if(t==="YY"){var c=i%100;return Y(c,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):Y(i,t.length)},R:function(o,t){var n=ps(o);return Y(n,t.length)},u:function(o,t){var n=o.getUTCFullYear();return Y(n,t.length)},Q:function(o,t,n){var a=Math.ceil((o.getUTCMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return Y(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(o,t,n){var a=Math.ceil((o.getUTCMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return Y(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(o,t,n){var a=o.getUTCMonth();switch(t){case"M":case"MM":return tt.M(o,t);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(o,t,n){var a=o.getUTCMonth();switch(t){case"L":return String(a+1);case"LL":return Y(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(o,t,n,a){var r=im(o,a);return t==="wo"?n.ordinalNumber(r,{unit:"week"}):Y(r,t.length)},I:function(o,t,n){var a=nm(o);return t==="Io"?n.ordinalNumber(a,{unit:"week"}):Y(a,t.length)},d:function(o,t,n){return t==="do"?n.ordinalNumber(o.getUTCDate(),{unit:"date"}):tt.d(o,t)},D:function(o,t,n){var a=em(o);return t==="Do"?n.ordinalNumber(a,{unit:"dayOfYear"}):Y(a,t.length)},E:function(o,t,n){var a=o.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(o,t,n,a){var r=o.getUTCDay(),i=(r-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Y(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});case"eeee":default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(o,t,n,a){var r=o.getUTCDay(),i=(r-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Y(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});case"cccc":default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(o,t,n){var a=o.getUTCDay(),r=a===0?7:a;switch(t){case"i":return String(r);case"ii":return Y(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});case"iiii":default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(o,t,n){var a=o.getUTCHours(),r=a/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(o,t,n){var a=o.getUTCHours(),r;switch(a===12?r=tn.noon:a===0?r=tn.midnight:r=a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(o,t,n){var a=o.getUTCHours(),r;switch(a>=17?r=tn.evening:a>=12?r=tn.afternoon:a>=4?r=tn.morning:r=tn.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(o,t,n){if(t==="ho"){var a=o.getUTCHours()%12;return a===0&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return tt.h(o,t)},H:function(o,t,n){return t==="Ho"?n.ordinalNumber(o.getUTCHours(),{unit:"hour"}):tt.H(o,t)},K:function(o,t,n){var a=o.getUTCHours()%12;return t==="Ko"?n.ordinalNumber(a,{unit:"hour"}):Y(a,t.length)},k:function(o,t,n){var a=o.getUTCHours();return a===0&&(a=24),t==="ko"?n.ordinalNumber(a,{unit:"hour"}):Y(a,t.length)},m:function(o,t,n){return t==="mo"?n.ordinalNumber(o.getUTCMinutes(),{unit:"minute"}):tt.m(o,t)},s:function(o,t,n){return t==="so"?n.ordinalNumber(o.getUTCSeconds(),{unit:"second"}):tt.s(o,t)},S:function(o,t){return tt.S(o,t)},X:function(o,t,n,a){var r=a._originalDate||o,i=r.getTimezoneOffset();if(i===0)return"Z";switch(t){case"X":return gs(i);case"XXXX":case"XX":return Kt(i);case"XXXXX":case"XXX":default:return Kt(i,":")}},x:function(o,t,n,a){var r=a._originalDate||o,i=r.getTimezoneOffset();switch(t){case"x":return gs(i);case"xxxx":case"xx":return Kt(i);case"xxxxx":case"xxx":default:return Kt(i,":")}},O:function(o,t,n,a){var r=a._originalDate||o,i=r.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ys(i,":");case"OOOO":default:return"GMT"+Kt(i,":")}},z:function(o,t,n,a){var r=a._originalDate||o,i=r.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ys(i,":");case"zzzz":default:return"GMT"+Kt(i,":")}},t:function(o,t,n,a){var r=a._originalDate||o,i=Math.floor(r.getTime()/1e3);return Y(i,t.length)},T:function(o,t,n,a){var r=a._originalDate||o,i=r.getTime();return Y(i,t.length)}};function ys(e,o){var t=e>0?"-":"+",n=Math.abs(e),a=Math.floor(n/60),r=n%60;if(r===0)return t+String(a);var i=o||"";return t+String(a)+i+Y(r,2)}function gs(e,o){if(e%60===0){var t=e>0?"-":"+";return t+Y(Math.abs(e)/60,2)}return Kt(e,o)}function Kt(e,o){var t=o||"",n=e>0?"-":"+",a=Math.abs(e),r=Y(Math.floor(a/60),2),i=Y(a%60,2);return n+r+t+i}const dm=lm;var Ss=function(o,t){switch(o){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},fs=function(o,t){switch(o){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},um=function(o,t){var n=o.match(/(P+)(p+)?/)||[],a=n[1],r=n[2];if(!r)return Ss(o,t);var i;switch(a){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",Ss(a,t)).replace("{{time}}",fs(r,t))},_m={p:fs,P:um};const sm=_m;var pm=["D","DD"],mm=["YY","YYYY"];function ym(e){return pm.indexOf(e)!==-1}function gm(e){return mm.indexOf(e)!==-1}function As(e,o,t){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(o,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(o,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(o,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(o,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Sm={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},fm=function(o,t,n){var a,r=Sm[o];return typeof r=="string"?a=r:t===1?a=r.one:a=r.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};const Am=fm;function gl(e){return function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=o.width?String(o.width):e.defaultWidth,n=e.formats[t]||e.formats[e.defaultWidth];return n}}var Um={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},hm={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Km={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},vm={date:gl({formats:Um,defaultWidth:"full"}),time:gl({formats:hm,defaultWidth:"full"}),dateTime:gl({formats:Km,defaultWidth:"full"})};const Cm=vm;var Mm={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},wm=function(o,t,n,a){return Mm[o]};const Pm=wm;function oa(e){return function(o,t){var n=t!=null&&t.context?String(t.context):"standalone",a;if(n==="formatting"&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,i=t!=null&&t.width?String(t.width):r;a=e.formattingValues[i]||e.formattingValues[r]}else{var c=e.defaultWidth,l=t!=null&&t.width?String(t.width):e.defaultWidth;a=e.values[l]||e.values[c]}var d=e.argumentCallback?e.argumentCallback(o):o;return a[d]}}var Rm={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Lm={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Fm={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Em={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Tm={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},km={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Bm=function(o,t){var n=Number(o),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Nm={ordinalNumber:Bm,era:oa({values:Rm,defaultWidth:"wide"}),quarter:oa({values:Lm,defaultWidth:"wide",argumentCallback:function(o){return o-1}}),month:oa({values:Fm,defaultWidth:"wide"}),day:oa({values:Em,defaultWidth:"wide"}),dayPeriod:oa({values:Tm,defaultWidth:"wide",formattingValues:km,defaultFormattingWidth:"wide"})};const Om=Nm;function ta(e){return function(o){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],r=o.match(a);if(!r)return null;var i=r[0],c=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(c)?Im(c,function(m){return m.test(i)}):Dm(c,function(m){return m.test(i)}),d;d=e.valueCallback?e.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var _=o.slice(i.length);return{value:d,rest:_}}}function Dm(e,o){for(var t in e)if(e.hasOwnProperty(t)&&o(e[t]))return t}function Im(e,o){for(var t=0;t<e.length;t++)if(o(e[t]))return t}function Hm(e){return function(o){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=o.match(e.matchPattern);if(!n)return null;var a=n[0],r=o.match(e.parsePattern);if(!r)return null;var i=e.valueCallback?e.valueCallback(r[0]):r[0];i=t.valueCallback?t.valueCallback(i):i;var c=o.slice(a.length);return{value:i,rest:c}}}var xm=/^(\d+)(th|st|nd|rd)?/i,Wm=/\d+/i,Gm={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},bm={any:[/^b/i,/^(a|c)/i]},Vm={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ym={any:[/1/i,/2/i,/3/i,/4/i]},Jm={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},zm={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},$m={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Xm={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Qm={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},jm={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Zm={ordinalNumber:Hm({matchPattern:xm,parsePattern:Wm,valueCallback:function(o){return parseInt(o,10)}}),era:ta({matchPatterns:Gm,defaultMatchWidth:"wide",parsePatterns:bm,defaultParseWidth:"any"}),quarter:ta({matchPatterns:Vm,defaultMatchWidth:"wide",parsePatterns:Ym,defaultParseWidth:"any",valueCallback:function(o){return o+1}}),month:ta({matchPatterns:Jm,defaultMatchWidth:"wide",parsePatterns:zm,defaultParseWidth:"any"}),day:ta({matchPatterns:$m,defaultMatchWidth:"wide",parsePatterns:Xm,defaultParseWidth:"any"}),dayPeriod:ta({matchPatterns:Qm,defaultMatchWidth:"any",parsePatterns:jm,defaultParseWidth:"any"})},qm={code:"en-US",formatDistance:Am,formatLong:Cm,formatRelative:Pm,localize:Om,match:Zm,options:{weekStartsOn:0,firstWeekContainsDate:1}};const ey=qm;var oy=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ty=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ny=/^'([^]*?)'?$/,ay=/''/g,ry=/[a-zA-Z]/;function iy(e,o,t){var n,a,r,i,c,l,d,_,m,u,y,S,f,h,s,p,g,A;Q(2,arguments);var v=String(o),w=ea(),P=(n=(a=t==null?void 0:t.locale)!==null&&a!==void 0?a:w.locale)!==null&&n!==void 0?n:ey,K=X((r=(i=(c=(l=t==null?void 0:t.firstWeekContainsDate)!==null&&l!==void 0?l:t==null||(d=t.locale)===null||d===void 0||(_=d.options)===null||_===void 0?void 0:_.firstWeekContainsDate)!==null&&c!==void 0?c:w.firstWeekContainsDate)!==null&&i!==void 0?i:(m=w.locale)===null||m===void 0||(u=m.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(K>=1&&K<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var N=X((y=(S=(f=(h=t==null?void 0:t.weekStartsOn)!==null&&h!==void 0?h:t==null||(s=t.locale)===null||s===void 0||(p=s.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&f!==void 0?f:w.weekStartsOn)!==null&&S!==void 0?S:(g=w.locale)===null||g===void 0||(A=g.options)===null||A===void 0?void 0:A.weekStartsOn)!==null&&y!==void 0?y:0);if(!(N>=0&&N<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!P.localize)throw new RangeError("locale must contain localize property");if(!P.formatLong)throw new RangeError("locale must contain formatLong property");var R=fe(e);if(!Q9(R))throw new RangeError("Invalid time value");var I=$9(R),k=Z9(R,I),Z={firstWeekContainsDate:K,weekStartsOn:N,locale:P,_originalDate:R},se=v.match(ty).map(function(J){var ie=J[0];if(ie==="p"||ie==="P"){var B=sm[ie];return B(J,P.formatLong)}return J}).join("").match(oy).map(function(J){if(J==="''")return"'";var ie=J[0];if(ie==="'")return cy(J);var B=dm[ie];if(B)return!(t!=null&&t.useAdditionalWeekYearTokens)&&gm(J)&&As(J,o,String(e)),!(t!=null&&t.useAdditionalDayOfYearTokens)&&ym(J)&&As(J,o,String(e)),B(k,J,P.localize,Z);if(ie.match(ry))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ie+"`");return J}).join("");return se}function cy(e){var o=e.match(ny);return o?o[1].replace(ay,"'"):e}function ly(e,o){Q(2,arguments);var t=fe(e),n=fe(o);return t.getTime()<n.getTime()}function dy(e,o){Q(2,arguments);var t=X(o);return Pr(e,-t)}function uy(e,o){Q(2,arguments);var t=X(o);return _s(e,-t)}function kr(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?kr=function(t){return typeof t}:kr=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kr(e)}function _y(e,o){if(Q(2,arguments),!o||kr(o)!=="object")return new Date(NaN);var t=o.years?X(o.years):0,n=o.months?X(o.months):0,a=o.weeks?X(o.weeks):0,r=o.days?X(o.days):0,i=o.hours?X(o.hours):0,c=o.minutes?X(o.minutes):0,l=o.seconds?X(o.seconds):0,d=uy(e,n+t*12),_=dy(d,r+a*7),m=c+i*60,u=l+m*60,y=u*1e3,S=new Date(_.getTime()-y);return S}var Sl=function(e,o){return Sl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])},Sl(e,o)};function nt(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");Sl(e,o);function t(){this.constructor=e}e.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}function sy(e,o,t,n){function a(r){return r instanceof t?r:new t(function(i){i(r)})}return new(t||(t=Promise))(function(r,i){function c(_){try{d(n.next(_))}catch(m){i(m)}}function l(_){try{d(n.throw(_))}catch(m){i(m)}}function d(_){_.done?r(_.value):a(_.value).then(c,l)}d((n=n.apply(e,o||[])).next())})}function Us(e,o){var t={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,a,r,i;return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(d){return function(_){return l([d,_])}}function l(d){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,d[0]&&(t=0)),t;)try{if(n=1,a&&(r=d[0]&2?a.return:d[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,d[1])).done)return r;switch(a=0,r&&(d=[d[0]&2,r.value]),d[0]){case 0:case 1:r=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,a=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(r=t.trys,!(r=r.length>0&&r[r.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!r||d[1]>r[0]&&d[1]<r[3])){t.label=d[1];break}if(d[0]===6&&t.label<r[1]){t.label=r[1],r=d;break}if(r&&t.label<r[2]){t.label=r[2],t.ops.push(d);break}r[2]&&t.ops.pop(),t.trys.pop();continue}d=o.call(e,t)}catch(_){d=[6,_],a=0}finally{n=r=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function vt(e){var o=typeof Symbol=="function"&&Symbol.iterator,t=o&&e[o],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")}function at(e,o){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),a,r=[],i;try{for(;(o===void 0||o-- >0)&&!(a=n.next()).done;)r.push(a.value)}catch(c){i={error:c}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(i)throw i.error}}return r}function Ct(e,o,t){if(t||arguments.length===2)for(var n=0,a=o.length,r;n<a;n++)(r||!(n in o))&&(r||(r=Array.prototype.slice.call(o,0,n)),r[n]=o[n]);return e.concat(r||Array.prototype.slice.call(o))}function nn(e){return this instanceof nn?(this.v=e,this):new nn(e)}function py(e,o,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t.apply(e,o||[]),a,r=[];return a={},i("next"),i("throw"),i("return"),a[Symbol.asyncIterator]=function(){return this},a;function i(u){n[u]&&(a[u]=function(y){return new Promise(function(S,f){r.push([u,y,S,f])>1||c(u,y)})})}function c(u,y){try{l(n[u](y))}catch(S){m(r[0][3],S)}}function l(u){u.value instanceof nn?Promise.resolve(u.value.v).then(d,_):m(r[0][2],u)}function d(u){c("next",u)}function _(u){c("throw",u)}function m(u,y){u(y),r.shift(),r.length&&c(r[0][0],r[0][1])}}function my(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=e[Symbol.asyncIterator],t;return o?o.call(e):(e=typeof vt=="function"?vt(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(i){return new Promise(function(c,l){i=e[r](i),a(c,l,i.done,i.value)})}}function a(r,i,c,l){Promise.resolve(l).then(function(d){r({value:d,done:c})},i)}}function j(e){return typeof e=="function"}function hs(e){var o=function(n){Error.call(n),n.stack=new Error().stack},t=e(o);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var fl=hs(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
44
44
|
`+t.map(function(n,a){return a+1+") "+n.toString()}).join(`
|
|
45
|
-
`):"",this.name="UnsubscriptionError",this.errors=t}});function na(e,o){if(e){var t=e.indexOf(o);0<=t&&e.splice(t,1)}}var an=function(){function e(o){this.initialTeardown=o,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var o,t,n,a,r;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var c=vt(i),l=c.next();!l.done;l=c.next()){var d=l.value;d.remove(this)}}catch(f){o={error:f}}finally{try{l&&!l.done&&(t=c.return)&&t.call(c)}finally{if(o)throw o.error}}else i.remove(this);var _=this.initialTeardown;if(j(_))try{_()}catch(f){r=f instanceof fl?f.errors:[f]}var m=this._finalizers;if(m){this._finalizers=null;try{for(var u=vt(m),y=u.next();!y.done;y=u.next()){var S=y.value;try{Cs(S)}catch(f){r=r!=null?r:[],f instanceof fl?r=Ct(Ct([],at(r)),at(f.errors)):r.push(f)}}}catch(f){n={error:f}}finally{try{y&&!y.done&&(a=u.return)&&a.call(u)}finally{if(n)throw n.error}}}if(r)throw new fl(r)}},e.prototype.add=function(o){var t;if(o&&o!==this)if(this.closed)Cs(o);else{if(o instanceof e){if(o.closed||o._hasParent(this))return;o._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(o)}},e.prototype._hasParent=function(o){var t=this._parentage;return t===o||Array.isArray(t)&&t.includes(o)},e.prototype._addParent=function(o){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(o),t):t?[t,o]:o},e.prototype._removeParent=function(o){var t=this._parentage;t===o?this._parentage=null:Array.isArray(t)&&na(t,o)},e.prototype.remove=function(o){var t=this._finalizers;t&&na(t,o),o instanceof e&&o._removeParent(this)},e.EMPTY=function(){var o=new e;return o.closed=!0,o}(),e}(),Ks=an.EMPTY;function vs(e){return e instanceof an||e&&"closed"in e&&j(e.remove)&&j(e.add)&&j(e.unsubscribe)}function Cs(e){j(e)?e():e.unsubscribe()}var Ms={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Al={setTimeout:function(e,o){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];var a=Al.delegate;return a!=null&&a.setTimeout?a.setTimeout.apply(a,Ct([e,o],at(t))):setTimeout.apply(void 0,Ct([e,o],at(t)))},clearTimeout:function(e){var o=Al.delegate;return((o==null?void 0:o.clearTimeout)||clearTimeout)(e)},delegate:void 0};function ws(e){Al.setTimeout(function(){throw e})}function Ps(){}function Br(e){e()}var Ul=function(e){nt(o,e);function o(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,vs(t)&&t.add(n)):n.destination=fy,n}return o.create=function(t,n,a){return new Kl(t,n,a)},o.prototype.next=function(t){this.isStopped||this._next(t)},o.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},o.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},o.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},o.prototype._next=function(t){this.destination.next(t)},o.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},o.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},o}(an),yy=Function.prototype.bind;function hl(e,o){return yy.call(e,o)}var gy=function(){function e(o){this.partialObserver=o}return e.prototype.next=function(o){var t=this.partialObserver;if(t.next)try{t.next(o)}catch(n){Nr(n)}},e.prototype.error=function(o){var t=this.partialObserver;if(t.error)try{t.error(o)}catch(n){Nr(n)}else Nr(o)},e.prototype.complete=function(){var o=this.partialObserver;if(o.complete)try{o.complete()}catch(t){Nr(t)}},e}(),Kl=function(e){nt(o,e);function o(t,n,a){var r=e.call(this)||this,i;if(j(t)||!t)i={next:t!=null?t:void 0,error:n!=null?n:void 0,complete:a!=null?a:void 0};else{var c;r&&Ms.useDeprecatedNextContext?(c=Object.create(t),c.unsubscribe=function(){return r.unsubscribe()},i={next:t.next&&hl(t.next,c),error:t.error&&hl(t.error,c),complete:t.complete&&hl(t.complete,c)}):i=t}return r.destination=new gy(i),r}return o}(Ul);function Nr(e){ws(e)}function Sy(e){throw e}var fy={closed:!0,next:Ps,error:Sy,complete:Ps},vl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Rs(e){return e}function Ay(e){return e.length===0?Rs:e.length===1?e[0]:function(t){return e.reduce(function(n,a){return a(n)},t)}}var Xe=function(){function e(o){o&&(this._subscribe=o)}return e.prototype.lift=function(o){var t=new e;return t.source=this,t.operator=o,t},e.prototype.subscribe=function(o,t,n){var a=this,r=hy(o)?o:new Kl(o,t,n);return Br(function(){var i=a,c=i.operator,l=i.source;r.add(c?c.call(r,l):l?a._subscribe(r):a._trySubscribe(r))}),r},e.prototype._trySubscribe=function(o){try{return this._subscribe(o)}catch(t){o.error(t)}},e.prototype.forEach=function(o,t){var n=this;return t=Ls(t),new t(function(a,r){var i=new Kl({next:function(c){try{o(c)}catch(l){r(l),i.unsubscribe()}},error:r,complete:a});n.subscribe(i)})},e.prototype._subscribe=function(o){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(o)},e.prototype[vl]=function(){return this},e.prototype.pipe=function(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];return Ay(o)(this)},e.prototype.toPromise=function(o){var t=this;return o=Ls(o),new o(function(n,a){var r;t.subscribe(function(i){return r=i},function(i){return a(i)},function(){return n(r)})})},e.create=function(o){return new e(o)},e}();function Ls(e){var o;return(o=e!=null?e:Ms.Promise)!==null&&o!==void 0?o:Promise}function Uy(e){return e&&j(e.next)&&j(e.error)&&j(e.complete)}function hy(e){return e&&e instanceof Ul||Uy(e)&&vs(e)}function Ky(e){return j(e==null?void 0:e.lift)}function rn(e){return function(o){if(Ky(o))return o.lift(function(t){try{return e(t,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function cn(e,o,t,n,a){return new vy(e,o,t,n,a)}var vy=function(e){nt(o,e);function o(t,n,a,r,i,c){var l=e.call(this,t)||this;return l.onFinalize=i,l.shouldUnsubscribe=c,l._next=n?function(d){try{n(d)}catch(_){t.error(_)}}:e.prototype._next,l._error=r?function(d){try{r(d)}catch(_){t.error(_)}finally{this.unsubscribe()}}:e.prototype._error,l._complete=a?function(){try{a()}catch(d){t.error(d)}finally{this.unsubscribe()}}:e.prototype._complete,l}return o.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},o}(Ul),Cy=hs(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Fs=function(e){nt(o,e);function o(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return o.prototype.lift=function(t){var n=new Es(this,this);return n.operator=t,n},o.prototype._throwIfClosed=function(){if(this.closed)throw new Cy},o.prototype.next=function(t){var n=this;Br(function(){var a,r;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var i=vt(n.currentObservers),c=i.next();!c.done;c=i.next()){var l=c.value;l.next(t)}}catch(d){a={error:d}}finally{try{c&&!c.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}}})},o.prototype.error=function(t){var n=this;Br(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var a=n.observers;a.length;)a.shift().error(t)}})},o.prototype.complete=function(){var t=this;Br(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var n=t.observers;n.length;)n.shift().complete()}})},o.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(o.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),o.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},o.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},o.prototype._innerSubscribe=function(t){var n=this,a=this,r=a.hasError,i=a.isStopped,c=a.observers;return r||i?Ks:(this.currentObservers=null,c.push(t),new an(function(){n.currentObservers=null,na(c,t)}))},o.prototype._checkFinalizedStatuses=function(t){var n=this,a=n.hasError,r=n.thrownError,i=n.isStopped;a?t.error(r):i&&t.complete()},o.prototype.asObservable=function(){var t=new Xe;return t.source=this,t},o.create=function(t,n){return new Es(t,n)},o}(Xe),Es=function(e){nt(o,e);function o(t,n){var a=e.call(this)||this;return a.destination=t,a.source=n,a}return o.prototype.next=function(t){var n,a;(a=(n=this.destination)===null||n===void 0?void 0:n.next)===null||a===void 0||a.call(n,t)},o.prototype.error=function(t){var n,a;(a=(n=this.destination)===null||n===void 0?void 0:n.error)===null||a===void 0||a.call(n,t)},o.prototype.complete=function(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)},o.prototype._subscribe=function(t){var n,a;return(a=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&a!==void 0?a:Ks},o}(Fs),Ts={now:function(){return(Ts.delegate||Date).now()},delegate:void 0},My=function(e){nt(o,e);function o(t,n){return e.call(this)||this}return o.prototype.schedule=function(t,n){return this},o}(an),Or={setInterval:function(e,o){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];var a=Or.delegate;return a!=null&&a.setInterval?a.setInterval.apply(a,Ct([e,o],at(t))):setInterval.apply(void 0,Ct([e,o],at(t)))},clearInterval:function(e){var o=Or.delegate;return((o==null?void 0:o.clearInterval)||clearInterval)(e)},delegate:void 0},wy=function(e){nt(o,e);function o(t,n){var a=e.call(this,t,n)||this;return a.scheduler=t,a.work=n,a.pending=!1,a}return o.prototype.schedule=function(t,n){var a;if(n===void 0&&(n=0),this.closed)return this;this.state=t;var r=this.id,i=this.scheduler;return r!=null&&(this.id=this.recycleAsyncId(i,r,n)),this.pending=!0,this.delay=n,this.id=(a=this.id)!==null&&a!==void 0?a:this.requestAsyncId(i,this.id,n),this},o.prototype.requestAsyncId=function(t,n,a){return a===void 0&&(a=0),Or.setInterval(t.flush.bind(t,this),a)},o.prototype.recycleAsyncId=function(t,n,a){if(a===void 0&&(a=0),a!=null&&this.delay===a&&this.pending===!1)return n;n!=null&&Or.clearInterval(n)},o.prototype.execute=function(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var a=this._execute(t,n);if(a)return a;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},o.prototype._execute=function(t,n){var a=!1,r;try{this.work(t)}catch(i){a=!0,r=i||new Error("Scheduled action threw falsy error")}if(a)return this.unsubscribe(),r},o.prototype.unsubscribe=function(){if(!this.closed){var t=this,n=t.id,a=t.scheduler,r=a.actions;this.work=this.state=this.scheduler=null,this.pending=!1,na(r,this),n!=null&&(this.id=this.recycleAsyncId(a,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},o}(My),ks=function(){function e(o,t){t===void 0&&(t=e.now),this.schedulerActionCtor=o,this.now=t}return e.prototype.schedule=function(o,t,n){return t===void 0&&(t=0),new this.schedulerActionCtor(this,o).schedule(n,t)},e.now=Ts.now,e}(),Py=function(e){nt(o,e);function o(t,n){n===void 0&&(n=ks.now);var a=e.call(this,t,n)||this;return a.actions=[],a._active=!1,a}return o.prototype.flush=function(t){var n=this.actions;if(this._active){n.push(t);return}var a;this._active=!0;do if(a=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,a){for(;t=n.shift();)t.unsubscribe();throw a}},o}(ks),Ry=new Py(wy),Ly=new Xe(function(e){return e.complete()});function Fy(e){return e&&j(e.schedule)}function Bs(e){return e[e.length-1]}function Ns(e){return Fy(Bs(e))?e.pop():void 0}function Ey(e,o){return typeof Bs(e)=="number"?e.pop():o}var Cl=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Os(e){return j(e==null?void 0:e.then)}function Ds(e){return j(e[vl])}function Is(e){return Symbol.asyncIterator&&j(e==null?void 0:e[Symbol.asyncIterator])}function Hs(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Ty(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var xs=Ty();function Ws(e){return j(e==null?void 0:e[xs])}function Gs(e){return py(this,arguments,function(){var t,n,a,r;return Us(this,function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,nn(t.read())];case 3:return n=i.sent(),a=n.value,r=n.done,r?[4,nn(void 0)]:[3,5];case 4:return[2,i.sent()];case 5:return[4,nn(a)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function bs(e){return j(e==null?void 0:e.getReader)}function Mt(e){if(e instanceof Xe)return e;if(e!=null){if(Ds(e))return ky(e);if(Cl(e))return By(e);if(Os(e))return Ny(e);if(Is(e))return Vs(e);if(Ws(e))return Oy(e);if(bs(e))return Dy(e)}throw Hs(e)}function ky(e){return new Xe(function(o){var t=e[vl]();if(j(t.subscribe))return t.subscribe(o);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function By(e){return new Xe(function(o){for(var t=0;t<e.length&&!o.closed;t++)o.next(e[t]);o.complete()})}function Ny(e){return new Xe(function(o){e.then(function(t){o.closed||(o.next(t),o.complete())},function(t){return o.error(t)}).then(null,ws)})}function Oy(e){return new Xe(function(o){var t,n;try{for(var a=vt(e),r=a.next();!r.done;r=a.next()){var i=r.value;if(o.next(i),o.closed)return}}catch(c){t={error:c}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}o.complete()})}function Vs(e){return new Xe(function(o){Iy(e,o).catch(function(t){return o.error(t)})})}function Dy(e){return Vs(Gs(e))}function Iy(e,o){var t,n,a,r;return sy(this,void 0,void 0,function(){var i,c;return Us(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),t=my(e),l.label=1;case 1:return[4,t.next()];case 2:if(n=l.sent(),!!n.done)return[3,4];if(i=n.value,o.next(i),o.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return c=l.sent(),a={error:c},[3,11];case 6:return l.trys.push([6,,9,10]),n&&!n.done&&(r=t.return)?[4,r.call(t)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(a)throw a.error;return[7];case 10:return[7];case 11:return o.complete(),[2]}})})}function Ao(e,o,t,n,a){n===void 0&&(n=0),a===void 0&&(a=!1);var r=o.schedule(function(){t(),a?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(r),!a)return r}function Ys(e,o){return o===void 0&&(o=0),rn(function(t,n){t.subscribe(cn(n,function(a){return Ao(n,e,function(){return n.next(a)},o)},function(){return Ao(n,e,function(){return n.complete()},o)},function(a){return Ao(n,e,function(){return n.error(a)},o)}))})}function Js(e,o){return o===void 0&&(o=0),rn(function(t,n){n.add(e.schedule(function(){return t.subscribe(n)},o))})}function Hy(e,o){return Mt(e).pipe(Js(o),Ys(o))}function xy(e,o){return Mt(e).pipe(Js(o),Ys(o))}function Wy(e,o){return new Xe(function(t){var n=0;return o.schedule(function(){n===e.length?t.complete():(t.next(e[n++]),t.closed||this.schedule())})})}function Gy(e,o){return new Xe(function(t){var n;return Ao(t,o,function(){n=e[xs](),Ao(t,o,function(){var a,r,i;try{a=n.next(),r=a.value,i=a.done}catch(c){t.error(c);return}i?t.complete():t.next(r)},0,!0)}),function(){return j(n==null?void 0:n.return)&&n.return()}})}function zs(e,o){if(!e)throw new Error("Iterable cannot be null");return new Xe(function(t){Ao(t,o,function(){var n=e[Symbol.asyncIterator]();Ao(t,o,function(){n.next().then(function(a){a.done?t.complete():t.next(a.value)})},0,!0)})})}function by(e,o){return zs(Gs(e),o)}function Vy(e,o){if(e!=null){if(Ds(e))return Hy(e,o);if(Cl(e))return Wy(e,o);if(Os(e))return xy(e,o);if(Is(e))return zs(e,o);if(Ws(e))return Gy(e,o);if(bs(e))return by(e,o)}throw Hs(e)}function Yy(e,o){return o?Vy(e,o):Mt(e)}function aa(e,o){return rn(function(t,n){var a=0;t.subscribe(cn(n,function(r){n.next(e.call(o,r,a++))}))})}var Jy=Array.isArray;function zy(e,o){return Jy(o)?e.apply(void 0,Ct([],at(o))):e(o)}function $y(e){return aa(function(o){return zy(e,o)})}function Xy(e,o,t,n,a,r,i,c){var l=[],d=0,_=0,m=!1,u=function(){m&&!l.length&&!d&&o.complete()},y=function(f){return d<n?S(f):l.push(f)},S=function(f){r&&o.next(f),d++;var h=!1;Mt(t(f,_++)).subscribe(cn(o,function(s){a==null||a(s),r?y(s):o.next(s)},function(){h=!0},void 0,function(){if(h)try{d--;for(var s=function(){var p=l.shift();i?Ao(o,i,function(){return S(p)}):S(p)};l.length&&d<n;)s();u()}catch(p){o.error(p)}}))};return e.subscribe(cn(o,y,function(){m=!0,u()})),function(){c==null||c()}}function Ml(e,o,t){return t===void 0&&(t=1/0),j(o)?Ml(function(n,a){return aa(function(r,i){return o(n,r,a,i)})(Mt(e(n,a)))},t):(typeof o=="number"&&(t=o),rn(function(n,a){return Xy(n,a,e,t)}))}function Qy(e){return e===void 0&&(e=1/0),Ml(Rs,e)}var jy=["addListener","removeListener"],Zy=["addEventListener","removeEventListener"],qy=["on","off"];function Dr(e,o,t,n){if(j(t)&&(n=t,t=void 0),n)return Dr(e,o,t).pipe($y(n));var a=at(tg(e)?Zy.map(function(c){return function(l){return e[c](o,l,t)}}):eg(e)?jy.map($s(e,o)):og(e)?qy.map($s(e,o)):[],2),r=a[0],i=a[1];if(!r&&Cl(e))return Ml(function(c){return Dr(c,o,t)})(Mt(e));if(!r)throw new TypeError("Invalid event target");return new Xe(function(c){var l=function(){for(var d=[],_=0;_<arguments.length;_++)d[_]=arguments[_];return c.next(1<d.length?d:d[0])};return r(l),function(){return i(l)}})}function $s(e,o){return function(t){return function(n){return e[t](o,n)}}}function eg(e){return j(e.addListener)&&j(e.removeListener)}function og(e){return j(e.on)&&j(e.off)}function tg(e){return j(e.addEventListener)&&j(e.removeEventListener)}function ng(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var t=Ns(e),n=Ey(e,1/0),a=e;return a.length?a.length===1?Mt(a[0]):Qy(n)(Yy(a,t)):Ly}function ag(e,o){return rn(function(t,n){var a=0;t.subscribe(cn(n,function(r){return e.call(o,r,a++)&&n.next(r)}))})}function rg(e){for(var o,t,n=[],a=1;a<arguments.length;a++)n[a-1]=arguments[a];var r=(o=Ns(n))!==null&&o!==void 0?o:Ry,i=(t=n[0])!==null&&t!==void 0?t:null,c=n[1]||1/0;return rn(function(l,d){var _=[],m=!1,u=function(f){var h=f.buffer,s=f.subs;s.unsubscribe(),na(_,f),d.next(h),m&&y()},y=function(){if(_){var f=new an;d.add(f);var h=[],s={buffer:h,subs:f};_.push(s),Ao(f,r,function(){return u(s)},e)}};i!==null&&i>=0?Ao(d,r,y,i,!0):m=!0,y();var S=cn(d,function(f){var h,s,p=_.slice();try{for(var g=vt(p),A=g.next();!A.done;A=g.next()){var v=A.value,w=v.buffer;w.push(f),c<=w.length&&u(v)}}catch(P){h={error:P}}finally{try{A&&!A.done&&(s=g.return)&&s.call(g)}finally{if(h)throw h.error}}},function(){for(;_!=null&&_.length;)d.next(_.shift().buffer);S==null||S.unsubscribe(),d.complete(),d.unsubscribe()},void 0,function(){return _=null});l.subscribe(S)})}function ig({date:e,startDate:o,endDate:t,onChange:n,onHover:a}){const r=o?Lr(e,o):!1;let i=o&&t?e>o&&e<t:!1,c=t?Lr(e,t):!1,l=e<new Date;const d="after:a1-absolute after:a1-bg-primary after:a1-top-0 after:a1-bottom-0 after:a1-left-0 after:a1-right-0 after:a1-rounded-full",m=`a1-relative ${t?"before:a1-absolute before:a1-left-1/2 before:a1-right-0 before:a1-top-0 before:a1-bottom-0 before:a1-bg-secondary":""} ${d}`,u="a1-rounded-none",S=`a1-relative ${d} before:a1-absolute before:a1-left-0 before:a1-right-1/2 before:a1-top-0 before:a1-bottom-0 before:a1-bg-secondary`;return E("div",{className:`a1-w-10 a1-h-10 a1-flex a1-items-center a1-justify-center a1-cursor-pointer ${r||c?"a1-text-white":i?"a1-bg-secondary":"a1-text-gray-700"} ${r?m:i?u:c?S:""} ${l?"a1-opacity-50 a1-cursor-not-allowed":"a1-relative hover:after:a1-z-10 hover:after:a1-left-0 hover:after:a1-right-0 hover:after:a1-absolute hover:after:a1-w-full hover:after:a1-h-full hover:after:a1-rounded-full hover:after:a1-ring-2 hover:before:a1-ring-primary"}`,onClick:()=>{l||n(new Date(e))},onMouseOver:()=>{l||a(new Date(e))},children:E("span",{className:"a1-relative a1-z-20",children:e.getDate()})})}function cg({initialDate:e,startDate:o,endDate:t,onChange:n,onReset:a}){const[r,i]=U.useState(j9(e)),c=iy(r,"MMMM yyyy"),l=z9(r),[d,_]=U.useState(null),[m,u]=U.useState(null);U.useEffect(()=>{u(o&&!t?d:t)},[d,o,t]);const y=["S","M","T","W","T","F","S"],S=new Array(6*7).fill(0).map((f,h)=>Pr(l,h));return Oe("div",{className:"a1-w-max",children:[Oe("div",{className:"a1-px-4 a1-py-2 a1-flex a1-gap-4",children:[E("button",{type:"button",onClick:()=>a(),className:"a1-text-primary a1-tracking-wide a1-uppercase a1-text-xs a1-bold",children:"Reset"}),Oe("div",{className:"a1-flex a1-flex-grow a1-justify-between a1-items-center a1-text-gray-700",children:[E("button",{type:"button",className:"a1-w-8 a1-h-8 a1-bg-white a1-rounded-full a1-flex a1-items-center a1-justify-center a1-text-gray-700 a1-p-0",onClick:()=>i(_y(r,{months:1})),children:E("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"a1-w-6 a1-h-6",children:E("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})})}),E("div",{className:"mx-2",children:c}),E("button",{type:"button",className:"a1-w-8 a1-h-8 a1-bg-white a1-rounded-full a1-flex a1-items-center a1-justify-center a1-text-gray-700 a1-p-0",onClick:()=>i(V9(r,{months:1})),children:E("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"a1-w-6 a1-h-6",children:E("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})})})]})]}),E("div",{className:"a1-grid a1-grid-cols-7",children:y.map((f,h)=>E("div",{className:"a1-w-10 a1-h-10 a1-rounded-full a1-flex a1-items-center a1-justify-center",children:f},`${f}-${h}`))}),E("div",{className:"a1-grid a1-grid-cols-7 a1-grid-rows-6",children:S.map(f=>E(ig,{date:f,startDate:o,endDate:m,onChange:n,onHover:()=>_(f)},f.toISOString()))})]})}function lg({onChange:e,className:o,primaryColor:t,secondaryColor:n}){const[a,r]=U.useState(null),[i,c]=U.useState(null),[l,d]=U.useState(!1),[_,m]=U.useState(new Date),u=U.useRef(null),[y,S]=U.useState(new Fs),f=v=>{a?i?Lr(v,a)&&Lr(v,i)?(r(v),c(null)):ly(v,Pr(a,3))?r(v):c(v):c(v):r(v)};U.useEffect(()=>{let v=null;if(u!=null&&u.current){const w=Dr(document,"click"),P=Dr(u.current,"click");v=ng(w.pipe(aa(()=>!1)),y.pipe(aa(()=>!0)),P.pipe(aa(()=>!0))).pipe(rg(50),ag(N=>N.length>0)).subscribe(N=>{let R=N.some(I=>I===!0);d(R)})}return()=>{v==null||v.unsubscribe()}},[u]),U.useEffect(()=>{e(a,i)},[a,i]);const h="a1-bg-white a1-border a1-border-gray-300 a1-rounded-lg a1-shadow-md",s="a1-absolute a1-left-2 a1-right-2 a1-top-1/2 md:a1-top-2 md:a1-bottom-2 md:a1-left-1/2 a1-rounded-lg a1-h-[2px] md:a1-h-[initial] md:a1-w-[2px] a1-bg-gray-200",g=`a1-relative a1-h-full a1-flex a1-flex-col md:a1-flex-row md:a1-items-center a1-gap-4 a1-p-3 a1-rounded-lg a1-bg-white ${l?"a1-ring-2 a1-ring-primary":"a1-ring-2 a1-ring-gray-200"}`;let A={};return t&&(A["--color-primary"]=t),n&&(A["--color-secondary"]=n),E("div",{id:"A1-DateRangePicker",className:o,style:A,children:Oe("div",{ref:u,className:g,children:[Oe("div",{className:"a1-flex a1-grow a1-gap-2",children:[E("span",{children:E("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"a1-w-6 a1-h-6",children:E("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 012.25-2.25h13.5A2.25 2.25 0 0121 7.5v11.25m-18 0A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75m-18 0v-7.5A2.25 2.25 0 015.25 9h13.5A2.25 2.25 0 0121 11.25v7.5m-9-6h.008v.008H12v-.008zM12 15h.008v.008H12V15zm0 2.25h.008v.008H12v-.008zM9.75 15h.008v.008H9.75V15zm0 2.25h.008v.008H9.75v-.008zM7.5 15h.008v.008H7.5V15zm0 2.25h.008v.008H7.5v-.008zm6.75-4.5h.008v.008h-.008v-.008zm0 2.25h.008v.008h-.008V15zm0 2.25h.008v.008h-.008v-.008zm2.25-4.5h.008v.008H16.5v-.008zm0 2.25h.008v.008H16.5V15z"})})}),E("input",{type:"text",name:"start-date",value:a==null?void 0:a.toLocaleDateString(),placeholder:"Start Date",autoComplete:"off",className:"a1-all-initial focus:a1-outline-none"})]}),E("div",{className:s}),E("div",{className:"a1-grow",children:E("input",{type:"text",name:"end-date",value:i==null?void 0:i.toLocaleDateString(),placeholder:"End Date",autoComplete:"off",className:"focus:a1-outline-none"})}),E(ds,{show:l,className:"a1-absolute a1-z-10 a1-top-full a1-left-1/2 a1--translate-x-1/2",enter:"a1-transition a1-duration-100 a1-ease-out",enterFrom:"a1-transform a1-scale-95 a1-opacity-0",enterTo:"a1-transform a1-scale-100 a1-opacity-100",leave:"a1-transition a1-duration-75 a1-ease-out",leaveFrom:"a1-transform a1-scale-100 a1-opacity-100",leaveTo:"a1-transform a1-scale-95 a1-opacity-0",children:E("div",{id:"Calendar",className:`a1-mt-2 ${h}`,onClick:v=>y.next(!0),children:E(cg,{initialDate:_,startDate:a,endDate:i,onChange:f,onReset:()=>{r(null),c(null)}},_.toISOString())})})]})})}var ko={},dg={get exports(){return ko},set exports(e){ko=e}},ug="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",_g=ug,sg=_g;function Xs(){}function Qs(){}Qs.resetWarningCache=Xs;var pg=function(){function e(n,a,r,i,c,l){if(l!==sg){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}e.isRequired=e;function o(){return e}var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:o,element:e,elementType:e,instanceOf:o,node:e,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:Qs,resetWarningCache:Xs};return t.PropTypes=t,t};dg.exports=pg();const js={origin:ko.string,destination:ko.string,airlines:ko.string,providers:ko.string,destinations:ko.string,primaryColor:ko.string,secondaryColor:ko.string};function Zs({origin:e,destination:o,airlines:t,providers:n,destinations:a,primaryColor:r,secondaryColor:i}){const[c,l]=U.useState({origin:e||null,destination:o||null,startDate:null,endDate:null});e=e==null?void 0:e.toLocaleUpperCase(),o=o==null?void 0:o.toLocaleUpperCase();const d=t==null?void 0:t.split(",").map(B=>B.toLocaleUpperCase().trim()).filter(B=>B!==""),_=n==null?void 0:n.split(",").map(B=>B.toLocaleUpperCase().trim()).filter(B=>B!==""),m=a==null?void 0:a.split(",").map(B=>B.toLocaleUpperCase().trim()).filter(B=>B!==""),[u,y]=U.useState(!1),[S,f]=U.useState(!!e),[h,s]=U.useState(!!o),p=()=>{const{origin:B,destination:C,startDate:F,endDate:T}=c;y(!!(B&&C&&F&&T))};U.useEffect(()=>{l(pe(b({},c),{origin:e||null,destination:o||null})),f(!!e),s(!!o)},[e,o]),U.useEffect(()=>{p()},[c.origin,c.destination,c.startDate,c.endDate]);const g=B=>{l(pe(b({},c),{origin:B}))},A=B=>{l(pe(b({},c),{destination:B}))},v=(B,C)=>{l(pe(b({},c),{startDate:B,endDate:C}))},w=()=>{const{origin:B,destination:C}=c;console.log(B,C),l(pe(b({},c),{origin:C,destination:B})),f(h),s(S)},P=B=>{B.preventDefault();const C=new FormData(B.currentTarget),F=Object.fromEntries(C.entries()),{origin:T,destination:G}=F;let H=F["start-date"]||"",no=F["end-date"]||"";if(!T||!G||!H||!no)throw new Error("All fields must be filled out");H=new Date(H).toISOString().split("T")[0],no=new Date(no).toISOString().split("T")[0];let O=`/fma/${T}/${T}-${G}/${H}/${no}/v1`;(d!=null&&d.length||_!=null&&_.length)&&(O+="?fs=",d!=null&&d.length&&(O+=`airlines=${d.join(",")}`,_!=null&&_.length&&(O+=";")),_!=null&&_.length&&(O+=`providers=${_.join(",")}`));const oe=`https://worker.search.flymyairport.com${O}`;window.open(oe,"_blank")},K={items:ol,value:null,filter:(B,C)=>{var T;const F=B.toLocaleLowerCase();return C.iata_code?C.name.toLocaleLowerCase().includes(F)||((T=C.iata_code)==null?void 0:T.toLocaleLowerCase().includes(F)):!1},getKey:B=>B.iata_code,getValue:B=>B.iata_code},N=pe(b({},K),{label:"Departure Airport",name:"origin",onChange:g,value:c.origin,disabled:S,icon:E("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"a1-w-6 a1-h-6",children:E("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v2.25m6.364.386l-1.591 1.591M21 12h-2.25m-.386 6.364l-1.591-1.591M12 18.75V21m-4.773-4.227l-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z"})})}),R=m!=null&&m.length?ol.filter(B=>m==null?void 0:m.find(C=>C===B.iata_code)):ol,I=pe(b({},K),{items:R,label:"Arrival Airport",name:"destination",value:c.destination,disabled:h,onChange:A,icon:Oe("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"a1-w-6 a1-h-6",children:[E("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 10.5a3 3 0 11-6 0 3 3 0 016 0z"}),E("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1115 0z"})]})}),k="a1-truncate a1-block",Z="a1-opacity-80",se="a1-h-full a1-grow-0 a1-rounded-lg a1-flex a1-align-center a1-items-center a1-gap-1 a1-bg-primary a1-text-white a1-px-4 a1-py-2 hover:a1-bg-blue-700 disabled:a1-bg-gray-400",J="a1-h-full a1-w-6 a1-flex a1-justify-center a1-items-center a1-text-gray-500 a1-rotate-90 lg:a1-rotate-0",ie={};return r&&(ie["--color-primary"]=r),i&&(ie["--color-secondary"]=i),E("div",{style:ie,children:Oe("form",{className:"a1-flex a1-flex-col lg:a1-flex-row lg:a1-h-[48px] a1-gap-6",onSubmit:P,children:[Oe("div",{className:"a1-flex a1-flex-col lg:a1-flex-row a1-items-center a1-gap-2",children:[E("div",{className:"a1-w-full",children:E(us,pe(b({},N),{children:(B,C,F,T)=>Oe("li",{className:`${F}`,children:[E("span",{className:k,children:T.name}),E("span",{className:Z,children:T.iata_code})]})}))}),E("button",{type:"button",className:J,onClick:w,children:E("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"a1-w-6 a1-h-6",children:E("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 21L3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"})})}),E("div",{className:"a1-w-full",children:E(us,pe(b({},I),{children:(B,C,F,T)=>Oe("li",{className:`${F}`,children:[E("span",{className:k,children:T.name}),E("span",{className:Z,children:T.iata_code})]})}))})]}),E(lg,{onChange:v}),E("div",{className:"a1-flex a1-items-center a1-justify-center",children:Oe("button",{disabled:!u,type:"submit",className:se,children:[E("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"a1-w-6 a1-h-6",children:E("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})}),E("span",{className:"lg:a1-hidden",children:"Search"})]})})]})})}Zs.propTypes=js;const mg=`/*! tailwindcss v3.2.7 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.a1-absolute{position:absolute}.a1-relative{position:relative}.a1-left-1\\/2{left:50%}.a1-left-2{left:.5rem}.a1-right-2{right:.5rem}.a1-top-1\\/2{top:50%}.a1-top-full{top:100%}.a1-z-10{z-index:10}.a1-z-20{z-index:20}.a1-mt-2{margin-top:8px}.a1-block{display:block}.a1-flex{display:flex}.a1-grid{display:grid}.a1-h-10{height:40px}.a1-h-6{height:24px}.a1-h-8{height:32px}.a1-h-\\[2px\\]{height:2px}.a1-h-full{height:100%}.a1-max-h-56{max-height:224px}.a1-w-10{width:40px}.a1-w-6{width:24px}.a1-w-8{width:32px}.a1-w-full{width:100%}.a1-w-max{width:-moz-max-content;width:max-content}.a1-max-w-full{max-width:100%}.a1-flex-grow,.a1-grow{flex-grow:1}.a1-grow-0{flex-grow:0}.a1--translate-x-1\\/2{--tw-translate-x:-50%}.a1--translate-x-1\\/2,.a1-rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.a1-rotate-90{--tw-rotate:90deg}.a1-scale-100{--tw-scale-x:1;--tw-scale-y:1}.a1-scale-100,.a1-scale-95{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.a1-scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.a1-transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.a1-cursor-not-allowed{cursor:not-allowed}.a1-cursor-pointer{cursor:pointer}.a1-grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.a1-grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.a1-flex-row{flex-direction:row}.a1-flex-col{flex-direction:column}.a1-items-center{align-items:center}.a1-justify-center{justify-content:center}.a1-justify-between{justify-content:space-between}.a1-gap-1{gap:4px}.a1-gap-2{gap:8px}.a1-gap-4{gap:16px}.a1-gap-6{gap:24px}.a1-overflow-hidden{overflow:hidden}.a1-overflow-x-hidden{overflow-x:hidden}.a1-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.a1-rounded-full{border-radius:9999px}.a1-rounded-lg{border-radius:8px}.a1-rounded-none{border-radius:0}.a1-border{border-width:1px}.a1-border-b{border-bottom-width:1px}.a1-border-l-0{border-left-width:0}.a1-border-r-0{border-right-width:0}.a1-border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.a1-border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.a1-bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.a1-bg-primary{background-color:var(--color-primary)}.a1-bg-secondary{background-color:var(--color-secondary)}.a1-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.a1-p-0{padding:0}.a1-p-3{padding:12px}.a1-px-4{padding-left:16px;padding-right:16px}.a1-py-2{padding-bottom:8px;padding-top:8px}.a1-text-left{text-align:left}.a1-text-xs{font-size:12px}.a1-uppercase{text-transform:uppercase}.a1-tracking-wide{letter-spacing:.025em}.a1-text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.a1-text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.a1-text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.a1-text-primary{color:var(--color-primary)}.a1-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.a1-opacity-0{opacity:0}.a1-opacity-100{opacity:1}.a1-opacity-50{opacity:.5}.a1-opacity-80{opacity:.8}.a1-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.a1-shadow-lg,.a1-shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.a1-shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.a1-ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.a1-ring-gray-200{--tw-ring-opacity:1;--tw-ring-color:rgb(229 231 235/var(--tw-ring-opacity))}.a1-ring-primary{--tw-ring-color:var(--color-primary)}.a1-transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.a1-duration-100{transition-duration:.1s}.a1-duration-75{transition-duration:75ms}.a1-ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.before\\:a1-absolute:before{content:var(--tw-content);position:absolute}.before\\:a1-bottom-0:before{bottom:0;content:var(--tw-content)}.before\\:a1-left-0:before{content:var(--tw-content);left:0}.before\\:a1-left-1\\/2:before{content:var(--tw-content);left:50%}.before\\:a1-right-0:before{content:var(--tw-content);right:0}.before\\:a1-right-1\\/2:before{content:var(--tw-content);right:50%}.before\\:a1-top-0:before{content:var(--tw-content);top:0}.before\\:a1-bg-secondary:before{background-color:var(--color-secondary);content:var(--tw-content)}.after\\:a1-absolute:after{content:var(--tw-content);position:absolute}.after\\:a1-bottom-0:after{bottom:0;content:var(--tw-content)}.after\\:a1-left-0:after{content:var(--tw-content);left:0}.after\\:a1-right-0:after{content:var(--tw-content);right:0}.after\\:a1-top-0:after{content:var(--tw-content);top:0}.after\\:a1-rounded-full:after{border-radius:9999px;content:var(--tw-content)}.after\\:a1-bg-primary:after{background-color:var(--color-primary);content:var(--tw-content)}.hover\\:a1-bg-blue-700:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity))}.hover\\:before\\:a1-ring-primary:hover:before{--tw-ring-color:var(--color-primary);content:var(--tw-content)}.hover\\:after\\:a1-absolute:hover:after{content:var(--tw-content);position:absolute}.hover\\:after\\:a1-left-0:hover:after{content:var(--tw-content);left:0}.hover\\:after\\:a1-right-0:hover:after{content:var(--tw-content);right:0}.hover\\:after\\:a1-z-10:hover:after{content:var(--tw-content);z-index:10}.hover\\:after\\:a1-h-full:hover:after{content:var(--tw-content);height:100%}.hover\\:after\\:a1-w-full:hover:after{content:var(--tw-content);width:100%}.hover\\:after\\:a1-rounded-full:hover:after{border-radius:9999px;content:var(--tw-content)}.hover\\:after\\:a1-ring-2:hover:after{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000);content:var(--tw-content)}.focus\\:a1-border-primary:focus{border-color:var(--color-primary)}.focus\\:a1-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.disabled\\:a1-bg-gray-400:disabled{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity))}@media (min-width:768px){.md\\:a1-bottom-2{bottom:.5rem}.md\\:a1-left-1\\/2{left:50%}.md\\:a1-top-2{top:.5rem}.md\\:a1-h-\\[initial\\]{height:auto}.md\\:a1-w-\\[2px\\]{width:2px}.md\\:a1-flex-row{flex-direction:row}.md\\:a1-items-center{align-items:center}}@media (min-width:1024px){.lg\\:a1-hidden{display:none}.lg\\:a1-h-\\[48px\\]{height:48px}.lg\\:a1-max-w-\\[none\\]{max-width:none}.lg\\:a1-rotate-0{--tw-rotate:0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:a1-flex-row{flex-direction:row}}
|
|
45
|
+
`):"",this.name="UnsubscriptionError",this.errors=t}});function na(e,o){if(e){var t=e.indexOf(o);0<=t&&e.splice(t,1)}}var an=function(){function e(o){this.initialTeardown=o,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var o,t,n,a,r;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var c=vt(i),l=c.next();!l.done;l=c.next()){var d=l.value;d.remove(this)}}catch(f){o={error:f}}finally{try{l&&!l.done&&(t=c.return)&&t.call(c)}finally{if(o)throw o.error}}else i.remove(this);var _=this.initialTeardown;if(j(_))try{_()}catch(f){r=f instanceof fl?f.errors:[f]}var m=this._finalizers;if(m){this._finalizers=null;try{for(var u=vt(m),y=u.next();!y.done;y=u.next()){var S=y.value;try{Cs(S)}catch(f){r=r!=null?r:[],f instanceof fl?r=Ct(Ct([],at(r)),at(f.errors)):r.push(f)}}}catch(f){n={error:f}}finally{try{y&&!y.done&&(a=u.return)&&a.call(u)}finally{if(n)throw n.error}}}if(r)throw new fl(r)}},e.prototype.add=function(o){var t;if(o&&o!==this)if(this.closed)Cs(o);else{if(o instanceof e){if(o.closed||o._hasParent(this))return;o._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(o)}},e.prototype._hasParent=function(o){var t=this._parentage;return t===o||Array.isArray(t)&&t.includes(o)},e.prototype._addParent=function(o){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(o),t):t?[t,o]:o},e.prototype._removeParent=function(o){var t=this._parentage;t===o?this._parentage=null:Array.isArray(t)&&na(t,o)},e.prototype.remove=function(o){var t=this._finalizers;t&&na(t,o),o instanceof e&&o._removeParent(this)},e.EMPTY=function(){var o=new e;return o.closed=!0,o}(),e}(),Ks=an.EMPTY;function vs(e){return e instanceof an||e&&"closed"in e&&j(e.remove)&&j(e.add)&&j(e.unsubscribe)}function Cs(e){j(e)?e():e.unsubscribe()}var Ms={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Al={setTimeout:function(e,o){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];var a=Al.delegate;return a!=null&&a.setTimeout?a.setTimeout.apply(a,Ct([e,o],at(t))):setTimeout.apply(void 0,Ct([e,o],at(t)))},clearTimeout:function(e){var o=Al.delegate;return((o==null?void 0:o.clearTimeout)||clearTimeout)(e)},delegate:void 0};function ws(e){Al.setTimeout(function(){throw e})}function Ps(){}function Br(e){e()}var Ul=function(e){nt(o,e);function o(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,vs(t)&&t.add(n)):n.destination=fy,n}return o.create=function(t,n,a){return new Kl(t,n,a)},o.prototype.next=function(t){this.isStopped||this._next(t)},o.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},o.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},o.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},o.prototype._next=function(t){this.destination.next(t)},o.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},o.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},o}(an),yy=Function.prototype.bind;function hl(e,o){return yy.call(e,o)}var gy=function(){function e(o){this.partialObserver=o}return e.prototype.next=function(o){var t=this.partialObserver;if(t.next)try{t.next(o)}catch(n){Nr(n)}},e.prototype.error=function(o){var t=this.partialObserver;if(t.error)try{t.error(o)}catch(n){Nr(n)}else Nr(o)},e.prototype.complete=function(){var o=this.partialObserver;if(o.complete)try{o.complete()}catch(t){Nr(t)}},e}(),Kl=function(e){nt(o,e);function o(t,n,a){var r=e.call(this)||this,i;if(j(t)||!t)i={next:t!=null?t:void 0,error:n!=null?n:void 0,complete:a!=null?a:void 0};else{var c;r&&Ms.useDeprecatedNextContext?(c=Object.create(t),c.unsubscribe=function(){return r.unsubscribe()},i={next:t.next&&hl(t.next,c),error:t.error&&hl(t.error,c),complete:t.complete&&hl(t.complete,c)}):i=t}return r.destination=new gy(i),r}return o}(Ul);function Nr(e){ws(e)}function Sy(e){throw e}var fy={closed:!0,next:Ps,error:Sy,complete:Ps},vl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Rs(e){return e}function Ay(e){return e.length===0?Rs:e.length===1?e[0]:function(t){return e.reduce(function(n,a){return a(n)},t)}}var Xe=function(){function e(o){o&&(this._subscribe=o)}return e.prototype.lift=function(o){var t=new e;return t.source=this,t.operator=o,t},e.prototype.subscribe=function(o,t,n){var a=this,r=hy(o)?o:new Kl(o,t,n);return Br(function(){var i=a,c=i.operator,l=i.source;r.add(c?c.call(r,l):l?a._subscribe(r):a._trySubscribe(r))}),r},e.prototype._trySubscribe=function(o){try{return this._subscribe(o)}catch(t){o.error(t)}},e.prototype.forEach=function(o,t){var n=this;return t=Ls(t),new t(function(a,r){var i=new Kl({next:function(c){try{o(c)}catch(l){r(l),i.unsubscribe()}},error:r,complete:a});n.subscribe(i)})},e.prototype._subscribe=function(o){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(o)},e.prototype[vl]=function(){return this},e.prototype.pipe=function(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];return Ay(o)(this)},e.prototype.toPromise=function(o){var t=this;return o=Ls(o),new o(function(n,a){var r;t.subscribe(function(i){return r=i},function(i){return a(i)},function(){return n(r)})})},e.create=function(o){return new e(o)},e}();function Ls(e){var o;return(o=e!=null?e:Ms.Promise)!==null&&o!==void 0?o:Promise}function Uy(e){return e&&j(e.next)&&j(e.error)&&j(e.complete)}function hy(e){return e&&e instanceof Ul||Uy(e)&&vs(e)}function Ky(e){return j(e==null?void 0:e.lift)}function rn(e){return function(o){if(Ky(o))return o.lift(function(t){try{return e(t,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function cn(e,o,t,n,a){return new vy(e,o,t,n,a)}var vy=function(e){nt(o,e);function o(t,n,a,r,i,c){var l=e.call(this,t)||this;return l.onFinalize=i,l.shouldUnsubscribe=c,l._next=n?function(d){try{n(d)}catch(_){t.error(_)}}:e.prototype._next,l._error=r?function(d){try{r(d)}catch(_){t.error(_)}finally{this.unsubscribe()}}:e.prototype._error,l._complete=a?function(){try{a()}catch(d){t.error(d)}finally{this.unsubscribe()}}:e.prototype._complete,l}return o.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},o}(Ul),Cy=hs(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Fs=function(e){nt(o,e);function o(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return o.prototype.lift=function(t){var n=new Es(this,this);return n.operator=t,n},o.prototype._throwIfClosed=function(){if(this.closed)throw new Cy},o.prototype.next=function(t){var n=this;Br(function(){var a,r;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var i=vt(n.currentObservers),c=i.next();!c.done;c=i.next()){var l=c.value;l.next(t)}}catch(d){a={error:d}}finally{try{c&&!c.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}}})},o.prototype.error=function(t){var n=this;Br(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var a=n.observers;a.length;)a.shift().error(t)}})},o.prototype.complete=function(){var t=this;Br(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var n=t.observers;n.length;)n.shift().complete()}})},o.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(o.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),o.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},o.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},o.prototype._innerSubscribe=function(t){var n=this,a=this,r=a.hasError,i=a.isStopped,c=a.observers;return r||i?Ks:(this.currentObservers=null,c.push(t),new an(function(){n.currentObservers=null,na(c,t)}))},o.prototype._checkFinalizedStatuses=function(t){var n=this,a=n.hasError,r=n.thrownError,i=n.isStopped;a?t.error(r):i&&t.complete()},o.prototype.asObservable=function(){var t=new Xe;return t.source=this,t},o.create=function(t,n){return new Es(t,n)},o}(Xe),Es=function(e){nt(o,e);function o(t,n){var a=e.call(this)||this;return a.destination=t,a.source=n,a}return o.prototype.next=function(t){var n,a;(a=(n=this.destination)===null||n===void 0?void 0:n.next)===null||a===void 0||a.call(n,t)},o.prototype.error=function(t){var n,a;(a=(n=this.destination)===null||n===void 0?void 0:n.error)===null||a===void 0||a.call(n,t)},o.prototype.complete=function(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)},o.prototype._subscribe=function(t){var n,a;return(a=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&a!==void 0?a:Ks},o}(Fs),Ts={now:function(){return(Ts.delegate||Date).now()},delegate:void 0},My=function(e){nt(o,e);function o(t,n){return e.call(this)||this}return o.prototype.schedule=function(t,n){return this},o}(an),Or={setInterval:function(e,o){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];var a=Or.delegate;return a!=null&&a.setInterval?a.setInterval.apply(a,Ct([e,o],at(t))):setInterval.apply(void 0,Ct([e,o],at(t)))},clearInterval:function(e){var o=Or.delegate;return((o==null?void 0:o.clearInterval)||clearInterval)(e)},delegate:void 0},wy=function(e){nt(o,e);function o(t,n){var a=e.call(this,t,n)||this;return a.scheduler=t,a.work=n,a.pending=!1,a}return o.prototype.schedule=function(t,n){var a;if(n===void 0&&(n=0),this.closed)return this;this.state=t;var r=this.id,i=this.scheduler;return r!=null&&(this.id=this.recycleAsyncId(i,r,n)),this.pending=!0,this.delay=n,this.id=(a=this.id)!==null&&a!==void 0?a:this.requestAsyncId(i,this.id,n),this},o.prototype.requestAsyncId=function(t,n,a){return a===void 0&&(a=0),Or.setInterval(t.flush.bind(t,this),a)},o.prototype.recycleAsyncId=function(t,n,a){if(a===void 0&&(a=0),a!=null&&this.delay===a&&this.pending===!1)return n;n!=null&&Or.clearInterval(n)},o.prototype.execute=function(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var a=this._execute(t,n);if(a)return a;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},o.prototype._execute=function(t,n){var a=!1,r;try{this.work(t)}catch(i){a=!0,r=i||new Error("Scheduled action threw falsy error")}if(a)return this.unsubscribe(),r},o.prototype.unsubscribe=function(){if(!this.closed){var t=this,n=t.id,a=t.scheduler,r=a.actions;this.work=this.state=this.scheduler=null,this.pending=!1,na(r,this),n!=null&&(this.id=this.recycleAsyncId(a,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},o}(My),ks=function(){function e(o,t){t===void 0&&(t=e.now),this.schedulerActionCtor=o,this.now=t}return e.prototype.schedule=function(o,t,n){return t===void 0&&(t=0),new this.schedulerActionCtor(this,o).schedule(n,t)},e.now=Ts.now,e}(),Py=function(e){nt(o,e);function o(t,n){n===void 0&&(n=ks.now);var a=e.call(this,t,n)||this;return a.actions=[],a._active=!1,a}return o.prototype.flush=function(t){var n=this.actions;if(this._active){n.push(t);return}var a;this._active=!0;do if(a=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,a){for(;t=n.shift();)t.unsubscribe();throw a}},o}(ks),Ry=new Py(wy),Ly=new Xe(function(e){return e.complete()});function Fy(e){return e&&j(e.schedule)}function Bs(e){return e[e.length-1]}function Ns(e){return Fy(Bs(e))?e.pop():void 0}function Ey(e,o){return typeof Bs(e)=="number"?e.pop():o}var Cl=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Os(e){return j(e==null?void 0:e.then)}function Ds(e){return j(e[vl])}function Is(e){return Symbol.asyncIterator&&j(e==null?void 0:e[Symbol.asyncIterator])}function Hs(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Ty(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var xs=Ty();function Ws(e){return j(e==null?void 0:e[xs])}function Gs(e){return py(this,arguments,function(){var t,n,a,r;return Us(this,function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,nn(t.read())];case 3:return n=i.sent(),a=n.value,r=n.done,r?[4,nn(void 0)]:[3,5];case 4:return[2,i.sent()];case 5:return[4,nn(a)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function bs(e){return j(e==null?void 0:e.getReader)}function Mt(e){if(e instanceof Xe)return e;if(e!=null){if(Ds(e))return ky(e);if(Cl(e))return By(e);if(Os(e))return Ny(e);if(Is(e))return Vs(e);if(Ws(e))return Oy(e);if(bs(e))return Dy(e)}throw Hs(e)}function ky(e){return new Xe(function(o){var t=e[vl]();if(j(t.subscribe))return t.subscribe(o);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function By(e){return new Xe(function(o){for(var t=0;t<e.length&&!o.closed;t++)o.next(e[t]);o.complete()})}function Ny(e){return new Xe(function(o){e.then(function(t){o.closed||(o.next(t),o.complete())},function(t){return o.error(t)}).then(null,ws)})}function Oy(e){return new Xe(function(o){var t,n;try{for(var a=vt(e),r=a.next();!r.done;r=a.next()){var i=r.value;if(o.next(i),o.closed)return}}catch(c){t={error:c}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}o.complete()})}function Vs(e){return new Xe(function(o){Iy(e,o).catch(function(t){return o.error(t)})})}function Dy(e){return Vs(Gs(e))}function Iy(e,o){var t,n,a,r;return sy(this,void 0,void 0,function(){var i,c;return Us(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),t=my(e),l.label=1;case 1:return[4,t.next()];case 2:if(n=l.sent(),!!n.done)return[3,4];if(i=n.value,o.next(i),o.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return c=l.sent(),a={error:c},[3,11];case 6:return l.trys.push([6,,9,10]),n&&!n.done&&(r=t.return)?[4,r.call(t)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(a)throw a.error;return[7];case 10:return[7];case 11:return o.complete(),[2]}})})}function Ao(e,o,t,n,a){n===void 0&&(n=0),a===void 0&&(a=!1);var r=o.schedule(function(){t(),a?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(r),!a)return r}function Ys(e,o){return o===void 0&&(o=0),rn(function(t,n){t.subscribe(cn(n,function(a){return Ao(n,e,function(){return n.next(a)},o)},function(){return Ao(n,e,function(){return n.complete()},o)},function(a){return Ao(n,e,function(){return n.error(a)},o)}))})}function Js(e,o){return o===void 0&&(o=0),rn(function(t,n){n.add(e.schedule(function(){return t.subscribe(n)},o))})}function Hy(e,o){return Mt(e).pipe(Js(o),Ys(o))}function xy(e,o){return Mt(e).pipe(Js(o),Ys(o))}function Wy(e,o){return new Xe(function(t){var n=0;return o.schedule(function(){n===e.length?t.complete():(t.next(e[n++]),t.closed||this.schedule())})})}function Gy(e,o){return new Xe(function(t){var n;return Ao(t,o,function(){n=e[xs](),Ao(t,o,function(){var a,r,i;try{a=n.next(),r=a.value,i=a.done}catch(c){t.error(c);return}i?t.complete():t.next(r)},0,!0)}),function(){return j(n==null?void 0:n.return)&&n.return()}})}function zs(e,o){if(!e)throw new Error("Iterable cannot be null");return new Xe(function(t){Ao(t,o,function(){var n=e[Symbol.asyncIterator]();Ao(t,o,function(){n.next().then(function(a){a.done?t.complete():t.next(a.value)})},0,!0)})})}function by(e,o){return zs(Gs(e),o)}function Vy(e,o){if(e!=null){if(Ds(e))return Hy(e,o);if(Cl(e))return Wy(e,o);if(Os(e))return xy(e,o);if(Is(e))return zs(e,o);if(Ws(e))return Gy(e,o);if(bs(e))return by(e,o)}throw Hs(e)}function Yy(e,o){return o?Vy(e,o):Mt(e)}function aa(e,o){return rn(function(t,n){var a=0;t.subscribe(cn(n,function(r){n.next(e.call(o,r,a++))}))})}var Jy=Array.isArray;function zy(e,o){return Jy(o)?e.apply(void 0,Ct([],at(o))):e(o)}function $y(e){return aa(function(o){return zy(e,o)})}function Xy(e,o,t,n,a,r,i,c){var l=[],d=0,_=0,m=!1,u=function(){m&&!l.length&&!d&&o.complete()},y=function(f){return d<n?S(f):l.push(f)},S=function(f){r&&o.next(f),d++;var h=!1;Mt(t(f,_++)).subscribe(cn(o,function(s){a==null||a(s),r?y(s):o.next(s)},function(){h=!0},void 0,function(){if(h)try{d--;for(var s=function(){var p=l.shift();i?Ao(o,i,function(){return S(p)}):S(p)};l.length&&d<n;)s();u()}catch(p){o.error(p)}}))};return e.subscribe(cn(o,y,function(){m=!0,u()})),function(){c==null||c()}}function Ml(e,o,t){return t===void 0&&(t=1/0),j(o)?Ml(function(n,a){return aa(function(r,i){return o(n,r,a,i)})(Mt(e(n,a)))},t):(typeof o=="number"&&(t=o),rn(function(n,a){return Xy(n,a,e,t)}))}function Qy(e){return e===void 0&&(e=1/0),Ml(Rs,e)}var jy=["addListener","removeListener"],Zy=["addEventListener","removeEventListener"],qy=["on","off"];function Dr(e,o,t,n){if(j(t)&&(n=t,t=void 0),n)return Dr(e,o,t).pipe($y(n));var a=at(tg(e)?Zy.map(function(c){return function(l){return e[c](o,l,t)}}):eg(e)?jy.map($s(e,o)):og(e)?qy.map($s(e,o)):[],2),r=a[0],i=a[1];if(!r&&Cl(e))return Ml(function(c){return Dr(c,o,t)})(Mt(e));if(!r)throw new TypeError("Invalid event target");return new Xe(function(c){var l=function(){for(var d=[],_=0;_<arguments.length;_++)d[_]=arguments[_];return c.next(1<d.length?d:d[0])};return r(l),function(){return i(l)}})}function $s(e,o){return function(t){return function(n){return e[t](o,n)}}}function eg(e){return j(e.addListener)&&j(e.removeListener)}function og(e){return j(e.on)&&j(e.off)}function tg(e){return j(e.addEventListener)&&j(e.removeEventListener)}function ng(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var t=Ns(e),n=Ey(e,1/0),a=e;return a.length?a.length===1?Mt(a[0]):Qy(n)(Yy(a,t)):Ly}function ag(e,o){return rn(function(t,n){var a=0;t.subscribe(cn(n,function(r){return e.call(o,r,a++)&&n.next(r)}))})}function rg(e){for(var o,t,n=[],a=1;a<arguments.length;a++)n[a-1]=arguments[a];var r=(o=Ns(n))!==null&&o!==void 0?o:Ry,i=(t=n[0])!==null&&t!==void 0?t:null,c=n[1]||1/0;return rn(function(l,d){var _=[],m=!1,u=function(f){var h=f.buffer,s=f.subs;s.unsubscribe(),na(_,f),d.next(h),m&&y()},y=function(){if(_){var f=new an;d.add(f);var h=[],s={buffer:h,subs:f};_.push(s),Ao(f,r,function(){return u(s)},e)}};i!==null&&i>=0?Ao(d,r,y,i,!0):m=!0,y();var S=cn(d,function(f){var h,s,p=_.slice();try{for(var g=vt(p),A=g.next();!A.done;A=g.next()){var v=A.value,w=v.buffer;w.push(f),c<=w.length&&u(v)}}catch(P){h={error:P}}finally{try{A&&!A.done&&(s=g.return)&&s.call(g)}finally{if(h)throw h.error}}},function(){for(;_!=null&&_.length;)d.next(_.shift().buffer);S==null||S.unsubscribe(),d.complete(),d.unsubscribe()},void 0,function(){return _=null});l.subscribe(S)})}function ig({date:e,startDate:o,endDate:t,onChange:n,onHover:a}){const r=o?Lr(e,o):!1;let i=o&&t?e>o&&e<t:!1,c=t?Lr(e,t):!1,l=e<new Date;const d="after:a1-absolute after:a1-bg-primary after:a1-top-0 after:a1-bottom-0 after:a1-left-0 after:a1-right-0 after:a1-rounded-full",m=`a1-relative ${t?"before:a1-absolute before:a1-left-1/2 before:a1-right-0 before:a1-top-0 before:a1-bottom-0 before:a1-bg-secondary":""} ${d}`,u="a1-rounded-none",S=`a1-relative ${d} before:a1-absolute before:a1-left-0 before:a1-right-1/2 before:a1-top-0 before:a1-bottom-0 before:a1-bg-secondary`;return E("div",{className:`a1-w-10 a1-h-10 a1-flex a1-items-center a1-justify-center a1-cursor-pointer ${r||c?"a1-text-white":i?"a1-bg-secondary":"a1-text-gray-700"} ${r?m:i?u:c?S:""} ${l?"a1-opacity-50 a1-cursor-not-allowed":"a1-relative hover:after:a1-z-10 hover:after:a1-left-0 hover:after:a1-right-0 hover:after:a1-absolute hover:after:a1-w-full hover:after:a1-h-full hover:after:a1-rounded-full hover:after:a1-ring-2 hover:before:a1-ring-primary"}`,onClick:()=>{l||n(new Date(e))},onMouseOver:()=>{l||a(new Date(e))},children:E("span",{className:"a1-relative a1-z-20",children:e.getDate()})})}function cg({initialDate:e,startDate:o,endDate:t,onChange:n,onReset:a}){const[r,i]=U.useState(j9(e)),c=iy(r,"MMMM yyyy"),l=z9(r),[d,_]=U.useState(null),[m,u]=U.useState(null);U.useEffect(()=>{u(o&&!t?d:t)},[d,o,t]);const y=["S","M","T","W","T","F","S"],S=new Array(6*7).fill(0).map((f,h)=>Pr(l,h));return Oe("div",{className:"a1-w-max",children:[Oe("div",{className:"a1-px-4 a1-py-2 a1-flex a1-gap-4",children:[E("button",{type:"button",onClick:()=>a(),className:"a1-text-primary a1-tracking-wide a1-uppercase a1-text-xs a1-bold",children:"Reset"}),Oe("div",{className:"a1-flex a1-flex-grow a1-justify-between a1-items-center a1-text-gray-700",children:[E("button",{type:"button",className:"a1-w-8 a1-h-8 a1-bg-white a1-rounded-full a1-flex a1-items-center a1-justify-center a1-text-gray-700 a1-p-0",onClick:()=>i(_y(r,{months:1})),children:E("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"a1-w-6 a1-h-6",children:E("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})})}),E("div",{className:"mx-2",children:c}),E("button",{type:"button",className:"a1-w-8 a1-h-8 a1-bg-white a1-rounded-full a1-flex a1-items-center a1-justify-center a1-text-gray-700 a1-p-0",onClick:()=>i(V9(r,{months:1})),children:E("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"a1-w-6 a1-h-6",children:E("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})})})]})]}),E("div",{className:"a1-grid a1-grid-cols-7",children:y.map((f,h)=>E("div",{className:"a1-w-10 a1-h-10 a1-rounded-full a1-flex a1-items-center a1-justify-center",children:f},`${f}-${h}`))}),E("div",{className:"a1-grid a1-grid-cols-7 a1-grid-rows-6",children:S.map(f=>E(ig,{date:f,startDate:o,endDate:m,onChange:n,onHover:()=>_(f)},f.toISOString()))})]})}function lg({onChange:e,className:o,primaryColor:t,secondaryColor:n}){const[a,r]=U.useState(null),[i,c]=U.useState(null),[l,d]=U.useState(!1),[_,m]=U.useState(new Date),u=U.useRef(null),[y,S]=U.useState(new Fs),f=v=>{a?i?Lr(v,a)&&Lr(v,i)?(r(v),c(null)):ly(v,Pr(a,3))?r(v):c(v):c(v):r(v)};U.useEffect(()=>{let v=null;if(u!=null&&u.current){const w=Dr(document,"click"),P=Dr(u.current,"click");v=ng(w.pipe(aa(()=>!1)),y.pipe(aa(()=>!0)),P.pipe(aa(()=>!0))).pipe(rg(50),ag(N=>N.length>0)).subscribe(N=>{let R=N.some(I=>I===!0);d(R)})}return()=>{v==null||v.unsubscribe()}},[u]),U.useEffect(()=>{e(a,i)},[a,i]);const h="a1-bg-white a1-border a1-border-gray-300 a1-rounded-lg a1-shadow-md",s="a1-absolute a1-left-2 a1-right-2 a1-top-1/2 md:a1-top-2 md:a1-bottom-2 md:a1-left-1/2 a1-rounded-lg a1-h-[2px] md:a1-h-[initial] md:a1-w-[2px] a1-bg-gray-200",g=`a1-relative a1-h-full a1-flex a1-flex-col md:a1-flex-row md:a1-items-center a1-gap-4 a1-p-3 a1-rounded-lg a1-bg-white ${l?"a1-ring-2 a1-ring-primary":"a1-ring-2 a1-ring-gray-200"}`;let A={};return t&&(A["--color-primary"]=t),n&&(A["--color-secondary"]=n),E("div",{id:"A1-DateRangePicker",className:o,style:A,children:Oe("div",{ref:u,className:g,children:[Oe("div",{className:"a1-flex a1-grow a1-gap-2",children:[E("span",{children:E("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"a1-w-6 a1-h-6",children:E("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 012.25-2.25h13.5A2.25 2.25 0 0121 7.5v11.25m-18 0A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75m-18 0v-7.5A2.25 2.25 0 015.25 9h13.5A2.25 2.25 0 0121 11.25v7.5m-9-6h.008v.008H12v-.008zM12 15h.008v.008H12V15zm0 2.25h.008v.008H12v-.008zM9.75 15h.008v.008H9.75V15zm0 2.25h.008v.008H9.75v-.008zM7.5 15h.008v.008H7.5V15zm0 2.25h.008v.008H7.5v-.008zm6.75-4.5h.008v.008h-.008v-.008zm0 2.25h.008v.008h-.008V15zm0 2.25h.008v.008h-.008v-.008zm2.25-4.5h.008v.008H16.5v-.008zm0 2.25h.008v.008H16.5V15z"})})}),E("input",{type:"text",name:"start-date",value:a==null?void 0:a.toLocaleDateString(),placeholder:"Start Date",autoComplete:"off",className:"a1-all-initial focus:a1-outline-none"})]}),E("div",{className:s}),E("div",{className:"a1-grow",children:E("input",{type:"text",name:"end-date",value:i==null?void 0:i.toLocaleDateString(),placeholder:"End Date",autoComplete:"off",className:"focus:a1-outline-none"})}),E(ds,{show:l,className:"a1-absolute a1-z-10 a1-top-full a1-left-1/2 a1--translate-x-1/2",enter:"a1-transition a1-duration-100 a1-ease-out",enterFrom:"a1-transform a1-scale-95 a1-opacity-0",enterTo:"a1-transform a1-scale-100 a1-opacity-100",leave:"a1-transition a1-duration-75 a1-ease-out",leaveFrom:"a1-transform a1-scale-100 a1-opacity-100",leaveTo:"a1-transform a1-scale-95 a1-opacity-0",children:E("div",{id:"Calendar",className:`a1-mt-2 ${h}`,onClick:v=>y.next(!0),children:E(cg,{initialDate:_,startDate:a,endDate:i,onChange:f,onReset:()=>{r(null),c(null)}},_.toISOString())})})]})})}var ko={},dg={get exports(){return ko},set exports(e){ko=e}},ug="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",_g=ug,sg=_g;function Xs(){}function Qs(){}Qs.resetWarningCache=Xs;var pg=function(){function e(n,a,r,i,c,l){if(l!==sg){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}e.isRequired=e;function o(){return e}var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:o,element:e,elementType:e,instanceOf:o,node:e,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:Qs,resetWarningCache:Xs};return t.PropTypes=t,t};dg.exports=pg();const js={origin:ko.string,destination:ko.string,airlines:ko.string,providers:ko.string,destinations:ko.string,primaryColor:ko.string,secondaryColor:ko.string};function Zs({origin:e,destination:o,airlines:t,providers:n,destinations:a,primaryColor:r,secondaryColor:i}){const[c,l]=U.useState({origin:e||null,destination:o||null,startDate:null,endDate:null});e=e==null?void 0:e.toLocaleUpperCase(),o=o==null?void 0:o.toLocaleUpperCase();const d=t==null?void 0:t.split(",").map(B=>B.toLocaleUpperCase().trim()).filter(B=>B!==""),_=n==null?void 0:n.split(",").map(B=>B.toLocaleUpperCase().trim()).filter(B=>B!==""),m=a==null?void 0:a.split(",").map(B=>B.toLocaleUpperCase().trim()).filter(B=>B!==""),[u,y]=U.useState(!1),[S,f]=U.useState(!!e),[h,s]=U.useState(!!o),p=()=>{const{origin:B,destination:C,startDate:F,endDate:T}=c;y(!!(B&&C&&F&&T))};U.useEffect(()=>{l(pe(b({},c),{origin:e||null,destination:o||null})),f(!!e),s(!!o)},[e,o]),U.useEffect(()=>{p()},[c.origin,c.destination,c.startDate,c.endDate]);const g=B=>{l(pe(b({},c),{origin:B}))},A=B=>{l(pe(b({},c),{destination:B}))},v=(B,C)=>{l(pe(b({},c),{startDate:B,endDate:C}))},w=()=>{const{origin:B,destination:C}=c;console.log(B,C),l(pe(b({},c),{origin:C,destination:B})),f(h),s(S)},P=B=>{B.preventDefault();const C=new FormData(B.currentTarget),F=Object.fromEntries(C.entries()),{origin:T,destination:G}=F;let H=F["start-date"]||"",no=F["end-date"]||"";if(!T||!G||!H||!no)throw new Error("All fields must be filled out");H=new Date(H).toISOString().split("T")[0],no=new Date(no).toISOString().split("T")[0];let O=`/fma/${T}/${T}-${G}/${H}/${no}/v1`;(d!=null&&d.length||_!=null&&_.length)&&(O+="?fs=",d!=null&&d.length&&(O+=`airlines=${d.join(",")}`,_!=null&&_.length&&(O+=";")),_!=null&&_.length&&(O+=`providers=${_.join(",")}`));const oe=`https://worker.search.flymyairport.com${O}`;window.open(oe,"_blank")},K={items:ol,value:null,filter:(B,C)=>{var T;const F=B.toLocaleLowerCase();return C.iata_code?C.name.toLocaleLowerCase().includes(F)||((T=C.iata_code)==null?void 0:T.toLocaleLowerCase().includes(F)):!1},getKey:B=>B.iata_code,getValue:B=>B.iata_code},N=pe(b({},K),{label:"Departure Airport",name:"origin",onChange:g,value:c.origin,disabled:S,icon:E("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"a1-w-6 a1-h-6",children:E("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v2.25m6.364.386l-1.591 1.591M21 12h-2.25m-.386 6.364l-1.591-1.591M12 18.75V21m-4.773-4.227l-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z"})})}),R=m!=null&&m.length?ol.filter(B=>m==null?void 0:m.find(C=>C===B.iata_code)):ol,I=pe(b({},K),{items:R,label:"Arrival Airport",name:"destination",value:c.destination,disabled:h,onChange:A,icon:Oe("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"a1-w-6 a1-h-6",children:[E("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 10.5a3 3 0 11-6 0 3 3 0 016 0z"}),E("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1115 0z"})]})}),k="a1-truncate a1-block",Z="a1-opacity-80",se="a1-h-full a1-grow-0 a1-rounded-lg a1-flex a1-align-center a1-items-center a1-gap-1 a1-bg-primary a1-text-white a1-px-4 a1-py-2 hover:a1-bg-secondary disabled:a1-bg-gray-400",J="a1-h-full a1-w-6 a1-flex a1-justify-center a1-items-center a1-text-gray-500 a1-rotate-90 lg:a1-rotate-0",ie={};return r&&r!=""&&r!=null&&(ie["--color-primary"]=r),i&&i!=""&&i!=null&&(ie["--color-secondary"]=i),E("div",{style:ie,children:Oe("form",{className:"a1-flex a1-flex-col lg:a1-flex-row lg:a1-h-[48px] a1-gap-6",onSubmit:P,children:[Oe("div",{className:"a1-flex a1-flex-col lg:a1-flex-row a1-items-center a1-gap-2",children:[E("div",{className:"a1-w-full",children:E(us,pe(b({},N),{children:(B,C,F,T)=>Oe("li",{className:`${F}`,children:[E("span",{className:k,children:T.name}),E("span",{className:Z,children:T.iata_code})]})}))}),E("button",{type:"button",className:J,onClick:w,children:E("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"a1-w-6 a1-h-6",children:E("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 21L3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"})})}),E("div",{className:"a1-w-full",children:E(us,pe(b({},I),{children:(B,C,F,T)=>Oe("li",{className:`${F}`,children:[E("span",{className:k,children:T.name}),E("span",{className:Z,children:T.iata_code})]})}))})]}),E(lg,{onChange:v}),E("div",{className:"a1-flex a1-items-center a1-justify-center",children:Oe("button",{disabled:!u,type:"submit",className:se,children:[E("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"a1-w-6 a1-h-6",children:E("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})}),E("span",{className:"lg:a1-hidden",children:"Search"})]})})]})})}Zs.propTypes=js;const mg=`/*! tailwindcss v3.2.7 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}:root{--color-primary:#1e3a8a;--color-secondary:#60a5fa}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.a1-absolute{position:absolute}.a1-relative{position:relative}.a1-left-1\\/2{left:50%}.a1-left-2{left:.5rem}.a1-right-2{right:.5rem}.a1-top-1\\/2{top:50%}.a1-top-full{top:100%}.a1-z-10{z-index:10}.a1-z-20{z-index:20}.a1-mt-2{margin-top:8px}.a1-block{display:block}.a1-flex{display:flex}.a1-grid{display:grid}.a1-h-10{height:40px}.a1-h-6{height:24px}.a1-h-8{height:32px}.a1-h-\\[2px\\]{height:2px}.a1-h-full{height:100%}.a1-max-h-56{max-height:224px}.a1-w-10{width:40px}.a1-w-6{width:24px}.a1-w-8{width:32px}.a1-w-full{width:100%}.a1-w-max{width:-moz-max-content;width:max-content}.a1-max-w-full{max-width:100%}.a1-flex-grow,.a1-grow{flex-grow:1}.a1-grow-0{flex-grow:0}.a1--translate-x-1\\/2{--tw-translate-x:-50%}.a1--translate-x-1\\/2,.a1-rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.a1-rotate-90{--tw-rotate:90deg}.a1-scale-100{--tw-scale-x:1;--tw-scale-y:1}.a1-scale-100,.a1-scale-95{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.a1-scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.a1-transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.a1-cursor-not-allowed{cursor:not-allowed}.a1-cursor-pointer{cursor:pointer}.a1-grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.a1-grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.a1-flex-row{flex-direction:row}.a1-flex-col{flex-direction:column}.a1-items-center{align-items:center}.a1-justify-center{justify-content:center}.a1-justify-between{justify-content:space-between}.a1-gap-1{gap:4px}.a1-gap-2{gap:8px}.a1-gap-4{gap:16px}.a1-gap-6{gap:24px}.a1-overflow-hidden{overflow:hidden}.a1-overflow-x-hidden{overflow-x:hidden}.a1-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.a1-rounded-full{border-radius:9999px}.a1-rounded-lg{border-radius:8px}.a1-rounded-none{border-radius:0}.a1-border{border-width:1px}.a1-border-b{border-bottom-width:1px}.a1-border-l-0{border-left-width:0}.a1-border-r-0{border-right-width:0}.a1-border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.a1-border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.a1-bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.a1-bg-primary{background-color:var(--color-primary)}.a1-bg-secondary{background-color:var(--color-secondary)}.a1-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.a1-p-0{padding:0}.a1-p-3{padding:12px}.a1-px-4{padding-left:16px;padding-right:16px}.a1-py-2{padding-bottom:8px;padding-top:8px}.a1-text-left{text-align:left}.a1-text-xs{font-size:12px}.a1-uppercase{text-transform:uppercase}.a1-tracking-wide{letter-spacing:.025em}.a1-text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.a1-text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.a1-text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.a1-text-primary{color:var(--color-primary)}.a1-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.a1-opacity-0{opacity:0}.a1-opacity-100{opacity:1}.a1-opacity-50{opacity:.5}.a1-opacity-80{opacity:.8}.a1-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.a1-shadow-lg,.a1-shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.a1-shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.a1-ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.a1-ring-gray-200{--tw-ring-opacity:1;--tw-ring-color:rgb(229 231 235/var(--tw-ring-opacity))}.a1-ring-primary{--tw-ring-color:var(--color-primary)}.a1-transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.a1-duration-100{transition-duration:.1s}.a1-duration-75{transition-duration:75ms}.a1-ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.before\\:a1-absolute:before{content:var(--tw-content);position:absolute}.before\\:a1-bottom-0:before{bottom:0;content:var(--tw-content)}.before\\:a1-left-0:before{content:var(--tw-content);left:0}.before\\:a1-left-1\\/2:before{content:var(--tw-content);left:50%}.before\\:a1-right-0:before{content:var(--tw-content);right:0}.before\\:a1-right-1\\/2:before{content:var(--tw-content);right:50%}.before\\:a1-top-0:before{content:var(--tw-content);top:0}.before\\:a1-bg-secondary:before{background-color:var(--color-secondary);content:var(--tw-content)}.after\\:a1-absolute:after{content:var(--tw-content);position:absolute}.after\\:a1-bottom-0:after{bottom:0;content:var(--tw-content)}.after\\:a1-left-0:after{content:var(--tw-content);left:0}.after\\:a1-right-0:after{content:var(--tw-content);right:0}.after\\:a1-top-0:after{content:var(--tw-content);top:0}.after\\:a1-rounded-full:after{border-radius:9999px;content:var(--tw-content)}.after\\:a1-bg-primary:after{background-color:var(--color-primary);content:var(--tw-content)}.hover\\:a1-bg-secondary:hover{background-color:var(--color-secondary)}.hover\\:before\\:a1-ring-primary:hover:before{--tw-ring-color:var(--color-primary);content:var(--tw-content)}.hover\\:after\\:a1-absolute:hover:after{content:var(--tw-content);position:absolute}.hover\\:after\\:a1-left-0:hover:after{content:var(--tw-content);left:0}.hover\\:after\\:a1-right-0:hover:after{content:var(--tw-content);right:0}.hover\\:after\\:a1-z-10:hover:after{content:var(--tw-content);z-index:10}.hover\\:after\\:a1-h-full:hover:after{content:var(--tw-content);height:100%}.hover\\:after\\:a1-w-full:hover:after{content:var(--tw-content);width:100%}.hover\\:after\\:a1-rounded-full:hover:after{border-radius:9999px;content:var(--tw-content)}.hover\\:after\\:a1-ring-2:hover:after{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000);content:var(--tw-content)}.focus\\:a1-border-primary:focus{border-color:var(--color-primary)}.focus\\:a1-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.disabled\\:a1-bg-gray-400:disabled{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity))}@media (min-width:768px){.md\\:a1-bottom-2{bottom:.5rem}.md\\:a1-left-1\\/2{left:50%}.md\\:a1-top-2{top:.5rem}.md\\:a1-h-\\[initial\\]{height:auto}.md\\:a1-w-\\[2px\\]{width:2px}.md\\:a1-flex-row{flex-direction:row}.md\\:a1-items-center{align-items:center}}@media (min-width:1024px){.lg\\:a1-hidden{display:none}.lg\\:a1-h-\\[48px\\]{height:48px}.lg\\:a1-max-w-\\[none\\]{max-width:none}.lg\\:a1-rotate-0{--tw-rotate:0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:a1-flex-row{flex-direction:row}}
|
|
46
46
|
`;function Ir(e){return Oe(Dl,{children:[E("style",{children:mg}),E(Zs,b({},e))]})}Ir.propTypes=js;class qs extends HTMLElement{connectedCallback(){const o=document.createElement("span");this.attachShadow({mode:"closed"}).appendChild(o);const t=Object.keys(Ir.propTypes).reduce((a,r)=>(a[r]=this.getAttribute(r.toLocaleLowerCase()),a),{});Yr.createRoot(o).render(E(Ir,b({},t)))}}return customElements.define("flight-search-form",qs),ce.FlightSearchForm=qs,ce.default=Ir,Object.defineProperties(ce,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),ce}({});
|