diff --git a/feature/shlink-web-component/assets/index-8807ba74.js b/feature/shlink-web-component/assets/index-7f3917df.js similarity index 92% rename from feature/shlink-web-component/assets/index-8807ba74.js rename to feature/shlink-web-component/assets/index-7f3917df.js index c784f144..c32ba1f2 100644 --- a/feature/shlink-web-component/assets/index-8807ba74.js +++ b/feature/shlink-web-component/assets/index-7f3917df.js @@ -889,7 +889,7 @@ ${t}`),e(r,i,o,...s)}}const GJ=typeof window=="object"&&window.Element||function `);return Array.prototype.forEach.call(o,s=>{Array.prototype.forEach.call(i,a=>{a.addEventListener(s,t,r)})}),function(){Array.prototype.forEach.call(o,a=>{Array.prototype.forEach.call(i,l=>{l.removeEventListener(a,t,r)})})}}const II=["a[href]","area[href]","input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","object","embed","[tabindex]:not(.modal):not(.offcanvas)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'];C.oneOfType([C.bool,C.string]),C.string,C.object;const eee=["className","cssModule","noGutters","tag","widths"],tee=["xs","sm","md","lg","xl","xxl"],Ol=C.oneOfType([C.number,C.string]),nee={tag:Pe,noGutters:DI(C.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:C.string,cssModule:C.object,xs:Ol,sm:Ol,md:Ol,lg:Ol,xl:Ol,xxl:Ol,widths:C.array},ree={tag:"div",widths:tee};function Xn(e){const{className:t,cssModule:n,noGutters:r,tag:i,widths:o}=e,s=qe(e,eee),a=[];o.forEach((c,f)=>{let h=e[c];if(delete s[c],!h)return;const p=!f;a.push(p?`row-cols-${h}`:`row-cols-${c}-${h}`)});const l=Ie(me(t,r?"gx-0":null,"row",a),n);return H.createElement(i,$e({},s,{className:l}))}Xn.propTypes=nee;Xn.defaultProps=ree;const iee=["className","cssModule","widths","tag"],FI=["xs","sm","md","lg","xl","xxl"],zM=C.oneOfType([C.number,C.string]),Pl=C.oneOfType([C.bool,C.number,C.string,C.shape({size:C.oneOfType([C.bool,C.number,C.string]),order:zM,offset:zM})]),oee={tag:Pe,xs:Pl,sm:Pl,md:Pl,lg:Pl,xl:Pl,xxl:Pl,className:C.string,cssModule:C.object,widths:C.array},see={tag:"div",widths:FI},HM=(e,t,n)=>n===!0||n===""?e?"col":`col-${t}`:n==="auto"?e?"col-auto":`col-${t}-auto`:e?`col-${n}`:`col-${t}-${n}`,aee=(e,t,n=FI)=>{const r=e,i=[];return n.forEach((o,s)=>{let a=r[o];if(delete r[o],!a&&a!=="")return;const l=!s;if(Gg(a)){const c=l?"-":`-${o}-`,f=HM(l,o,a.size);i.push(Ie(me({[f]:a.size||a.size==="",[`order${c}${a.order}`]:a.order||a.order===0,[`offset${c}${a.offset}`]:a.offset||a.offset===0}),t))}else{const c=HM(l,o,a);i.push(c)}}),{colClasses:i,modifiedAttributes:r}};function wC(e){const{className:t,cssModule:n,widths:r,tag:i}=e,o=qe(e,iee);let{modifiedAttributes:s,colClasses:a}=aee(o,n,r);a.length||a.push("col");const l=Ie(me(t,a),n);return H.createElement(i,$e({},s,{className:l}))}wC.propTypes=oee;wC.defaultProps=see;const lee=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"],cee={children:C.node,className:C.string,color:C.string,container:C.oneOfType([C.bool,C.string]),cssModule:C.object,dark:C.bool,expand:C.oneOfType([C.bool,C.string]),fixed:C.string,full:C.bool,light:C.bool,role:C.string,sticky:C.string,tag:Pe},uee={tag:"nav",expand:!1,container:"fluid"},fee=e=>e===!1?!1:e===!0||e==="xs"?"navbar-expand":`navbar-expand-${e}`;function xC(e){const{expand:t,className:n,cssModule:r,light:i,dark:o,fixed:s,sticky:a,color:l,container:c,tag:f,children:h}=e,p=qe(e,lee),g=Ie(me(n,"navbar",fee(t),{"navbar-light":i,"navbar-dark":o,[`bg-${l}`]:l,[`fixed-${s}`]:s,[`sticky-${a}`]:a}),r),v=c&&c===!0?"container":`container-${c}`;return H.createElement(f,$e({},p,{className:g}),c?H.createElement("div",{className:v},h):h)}xC.propTypes=cee;xC.defaultProps=uee;const dee=["className","cssModule","tag"],hee={className:C.string,cssModule:C.object,tag:Pe},pee={tag:"a"};function SC(e){const{className:t,cssModule:n,tag:r}=e,i=qe(e,dee),o=Ie(me(t,"navbar-brand"),n);return H.createElement(r,$e({},i,{className:o}))}SC.propTypes=hee;SC.defaultProps=pee;C.string,C.object,C.bool;const mee=["className","cssModule","children","tag"],gee={className:C.string,cssModule:C.object,tag:Pe,type:C.string,children:C.node},vee={tag:"button",type:"button"};function CC(e){const{className:t,cssModule:n,children:r,tag:i}=e,o=qe(e,mee),s=Ie(me(t,"navbar-toggler"),n);return H.createElement(i,$e({"aria-label":"Toggle navigation"},o,{className:s}),r||H.createElement("span",{className:Ie("navbar-toggler-icon",n)}))}CC.propTypes=gee;CC.defaultProps=vee;const yee=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"],_ee={card:C.bool,className:C.string,cssModule:C.object,fill:C.bool,horizontal:C.oneOf(["center","end"]),justified:C.bool,navbar:C.bool,pills:C.bool,tabs:C.bool,tag:Pe,vertical:C.oneOfType([C.bool,C.string])},bee={tag:"ul",vertical:!1},wee=e=>e===!1?!1:e===!0||e==="xs"?"flex-column":`flex-${e}-column`;function Jy(e){const{className:t,cssModule:n,tabs:r,pills:i,vertical:o,horizontal:s,justified:a,fill:l,navbar:c,card:f,tag:h}=e,p=qe(e,yee),g=Ie(me(t,c?"navbar-nav":"nav",s?`justify-content-${s}`:!1,wee(o),{"nav-tabs":r,"card-header-tabs":f&&r,"nav-pills":i,"card-header-pills":f&&i,"nav-justified":a,"nav-fill":l}),n);return H.createElement(h,$e({},p,{className:g}))}Jy.propTypes=_ee;Jy.defaultProps=bee;const xee=["className","cssModule","active","tag"],See={active:C.bool,className:C.string,cssModule:C.object,tag:Pe},Cee={tag:"li"};function EC(e){const{className:t,cssModule:n,active:r,tag:i}=e,o=qe(e,xee),s=Ie(me(t,"nav-item",r?"active":!1),n);return H.createElement(i,$e({},o,{className:s}))}EC.propTypes=See;EC.defaultProps=Cee;const Eee=["className","cssModule","active","tag","innerRef"],Tee={active:C.bool,className:C.string,cssModule:C.object,disabled:C.bool,href:C.any,innerRef:C.oneOfType([C.object,C.func,C.string]),onClick:C.func,tag:Pe},Oee={tag:"a"};class TC extends H.Component{constructor(t){super(t),this.onClick=this.onClick.bind(this)}onClick(t){if(this.props.disabled){t.preventDefault();return}this.props.href==="#"&&t.preventDefault(),this.props.onClick&&this.props.onClick(t)}render(){let t=this.props,{className:n,cssModule:r,active:i,tag:o,innerRef:s}=t,a=qe(t,Eee);const l=Ie(me(n,"nav-link",{disabled:a.disabled,active:i}),r);return H.createElement(o,$e({},a,{ref:s,onClick:this.onClick,className:l}))}}TC.propTypes=Tee;TC.defaultProps=Oee;var $I=TC;C.string,C.node,C.string,C.object,C.string;C.bool,C.string,C.object;const Pee=["className","cssModule","variant","innerRef"],kee={active:C.bool,"aria-label":C.string,onClick:C.func,variant:C.oneOf(["white"]),className:C.string,cssModule:C.object,innerRef:C.oneOfType([C.object,C.string,C.func])},Mee={"aria-label":"close"};function OC(e){const{className:t,cssModule:n,variant:r,innerRef:i}=e,o=qe(e,Pee),s=Ie(me(t,"btn-close",r&&`btn-close-${r}`));return H.createElement("button",$e({ref:i,type:"button",className:s},o))}OC.propTypes=kee;OC.defaultProps=Mee;const Ree=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"],Nee={active:C.bool,"aria-label":C.string,block:C.bool,children:C.node,className:C.string,cssModule:C.object,close:C.bool,color:C.string,disabled:C.bool,innerRef:C.oneOfType([C.object,C.func,C.string]),onClick:C.func,outline:C.bool,size:C.string,tag:Pe},Lee={color:"secondary",tag:"button"};function ht(e){const t=B.useCallback(x=>{if(e.disabled){x.preventDefault();return}if(e.onClick)return e.onClick(x)},[e.onClick,e.disabled]);let{active:n,"aria-label":r,block:i,className:o,close:s,cssModule:a,color:l,outline:c,size:f,tag:h,innerRef:p}=e,g=qe(e,Ree);if(s)return H.createElement(OC,g);const v=`btn${c?"-outline":""}-${l}`,y=Ie(me(o,"btn",v,f?`btn-${f}`:!1,i?"d-block w-100":!1,{active:n,disabled:e.disabled}),a);return g.href&&h==="button"&&(h="a"),H.createElement(h,$e({type:h==="button"&&g.onClick?"button":void 0},g,{className:y,ref:p,onClick:t,"aria-label":r}))}ht.propTypes=Nee;ht.defaultProps=Lee;C.func,C.func,C.func,C.bool,C.string,C.object;const pd=H.createContext({}),BI=H.createContext({}),Dee=["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","tag","menuRole"],Aee={a11y:C.bool,disabled:C.bool,direction:C.oneOf(["up","down","start","end","left","right"]),group:C.bool,isOpen:C.bool,nav:C.bool,active:C.bool,size:C.string,tag:Pe,toggle:C.func,children:C.node,className:C.string,cssModule:C.object,dropup:C.bool,inNavbar:C.bool,setActiveFromChild:C.bool,menuRole:C.oneOf(["listbox","menu"])},jee={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},Iee=[mt.space,mt.enter,mt.up,mt.down,mt.end,mt.home];class e_ extends H.Component{constructor(t){super(t),this.addEvents=this.addEvents.bind(this),this.handleDocumentClick=this.handleDocumentClick.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.removeEvents=this.removeEvents.bind(this),this.toggle=this.toggle.bind(this),this.handleMenuRef=this.handleMenuRef.bind(this),this.handleToggleRef=this.handleToggleRef.bind(this),this.containerRef=H.createRef(),this.menuRef=H.createRef(),this.toggleRef=H.createRef()}componentDidMount(){this.handleProps()}componentDidUpdate(t){this.props.isOpen!==t.isOpen&&this.handleProps()}componentWillUnmount(){this.removeEvents()}handleMenuRef(t){this.menuRef.current=t}handleToggleRef(t){this.toggleRef.current=t}handleDocumentClick(t){if(t&&(t.which===3||t.type==="keyup"&&t.which!==mt.tab))return;const n=this.getContainer(),r=this.getMenu(),i=this.getToggle(),o=t.target===i,s=r&&r.contains(t.target)&&r!==t.target;let a=!1;n&&(a=n.classList.contains("input-group")&&n.classList.contains("dropdown")&&t.target.tagName==="INPUT"),!((o&&!a||s)&&(t.type!=="keyup"||t.which===mt.tab))&&this.toggle(t)}handleKeyDown(t){const n=t.target.getAttribute("role")==="menuitem"||t.target.getAttribute("role")==="option",r=this.getMenuCtrl()===t.target,i=mt.tab===t.which;if(!(/input|textarea/i.test(t.target.tagName)||i&&!this.props.a11y||i&&!(n||r))&&((Iee.indexOf(t.which)!==-1||t.which>=48&&t.which<=90)&&t.preventDefault(),!this.props.disabled&&(r&&([mt.space,mt.enter,mt.up,mt.down].indexOf(t.which)>-1?(this.props.isOpen||this.toggle(t),setTimeout(()=>this.getMenuItems()[0].focus())):this.props.isOpen&&i?(t.preventDefault(),this.getMenuItems()[0].focus()):this.props.isOpen&&t.which===mt.esc&&this.toggle(t)),this.props.isOpen&&n))){if([mt.tab,mt.esc].indexOf(t.which)>-1)this.toggle(t),this.getMenuCtrl().focus();else if([mt.space,mt.enter].indexOf(t.which)>-1)t.target.click(),this.getMenuCtrl().focus();else if([mt.down,mt.up].indexOf(t.which)>-1||[mt.n,mt.p].indexOf(t.which)>-1&&t.ctrlKey){const o=this.getMenuItems();let s=o.indexOf(t.target);mt.up===t.which||mt.p===t.which&&t.ctrlKey?s=s!==0?s-1:o.length-1:(mt.down===t.which||mt.n===t.which&&t.ctrlKey)&&(s=s===o.length-1?0:s+1),o[s].focus()}else if(mt.end===t.which){const o=this.getMenuItems();o[o.length-1].focus()}else if(mt.home===t.which)this.getMenuItems()[0].focus();else if(t.which>=48&&t.which<=90){const o=this.getMenuItems(),s=String.fromCharCode(t.which).toLowerCase();for(let a=0;adocument.addEventListener(t,this.handleDocumentClick,!0))}removeEvents(){["click","touchstart","keyup"].forEach(t=>document.removeEventListener(t,this.handleDocumentClick,!0))}toggle(t){return this.props.disabled?t&&t.preventDefault():this.props.toggle(t)}render(){const t=Cr(this.props,["toggle","disabled","inNavbar","a11y"]),{className:n,cssModule:r,direction:i,isOpen:o,group:s,size:a,nav:l,setActiveFromChild:c,active:f,tag:h,menuRole:p}=t,g=qe(t,Dee),v=h||(l?"li":"div");let y=!1;c&&H.Children.map(this.props.children[1].props.children,b=>{b&&b.props.active&&(y=!0)});const x=Ie(me(n,l&&f?"active":!1,c&&y?"active":!1,{"btn-group":s,[`btn-group-${a}`]:!!a,dropdown:!s,dropup:i==="up",dropstart:i==="start"||i==="left",dropend:i==="end"||i==="right",show:o,"nav-item":l}),r);return this.context.insideInputGroup?H.createElement(pd.Provider,{value:this.getContextValue()},H.createElement(TM,null,H.Children.map(this.props.children,b=>H.cloneElement(b,{onKeyDown:this.handleKeyDown})))):H.createElement(pd.Provider,{value:this.getContextValue()},H.createElement(TM,null,H.createElement(v,$e({},g,{[typeof v=="string"?"ref":"innerRef"]:this.containerRef,onKeyDown:this.handleKeyDown,className:x}))))}}e_.propTypes=Aee;e_.defaultProps=jee;e_.contextType=BI;var Gc=e_;const Fee={children:C.node};function PC(e){return H.createElement(Gc,$e({group:!0},e))}PC.propTypes=Fee;C.string,C.string,C.object,C.string,C.string,C.bool;C.string,C.string,C.object,C.string;const $ee=["className","cssModule","divider","tag","header","active","text"],Bee={children:C.node,active:C.bool,disabled:C.bool,divider:C.bool,tag:Pe,header:C.bool,onClick:C.func,className:C.string,cssModule:C.object,toggle:C.bool,text:C.bool},Uee={tag:"button",toggle:!0};class t_ extends H.Component{constructor(t){super(t),this.onClick=this.onClick.bind(this),this.getTabIndex=this.getTabIndex.bind(this)}onClick(t){const{disabled:n,header:r,divider:i,text:o}=this.props;if(n||r||i||o){t.preventDefault();return}this.props.onClick&&this.props.onClick(t),this.props.toggle&&this.context.toggle(t)}getRole(){return this.context.menuRole==="listbox"?"option":"menuitem"}getTabIndex(){const{disabled:t,header:n,divider:r,text:i}=this.props;return t||n||r||i?"-1":"0"}render(){const t=this.getTabIndex(),n=t>-1?this.getRole():void 0;let r=Cr(this.props,["toggle"]),{className:i,cssModule:o,divider:s,tag:a,header:l,active:c,text:f}=r,h=qe(r,$ee);const p=Ie(me(i,{disabled:h.disabled,"dropdown-item":!s&&!l&&!f,active:c,"dropdown-header":l,"dropdown-divider":s,"dropdown-item-text":f}),o);return a==="button"&&(l?a="h6":s?a="div":h.href?a="a":f&&(a="span")),H.createElement(a,$e({type:a==="button"&&(h.onClick||this.props.toggle)?"button":void 0},h,{tabIndex:t,role:n,className:p,onClick:this.onClick}))}}t_.propTypes=Bee;t_.defaultProps=Uee;t_.contextType=pd;var ze=t_;const zee=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container","updateOnSelect"],Hee={tag:Pe,children:C.node.isRequired,dark:C.bool,end:C.bool,flip:C.bool,modifiers:C.array,className:C.string,cssModule:C.object,style:C.object,persist:C.bool,strategy:C.string,container:Fs,updateOnSelect:C.bool,right:DI(C.bool,'Please use "end" instead.')},Vee={tag:"div",flip:!0,modifiers:[]},Wee={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"};class n_ extends H.Component{getRole(){return this.context.menuRole==="listbox"?"listbox":"menu"}render(){const t=this.props,{className:n,cssModule:r,dark:i,end:o,right:s,tag:a,flip:l,modifiers:c,persist:f,strategy:h,container:p,updateOnSelect:g}=t,v=qe(t,zee),y=Ie(me(n,"dropdown-menu",{"dropdown-menu-dark":i,"dropdown-menu-end":o||s,show:this.context.isOpen}),r),x=a;if(f||this.context.isOpen&&!this.context.inNavbar){const T=`${Wee[this.context.direction]||"bottom"}-${o||s?"end":"start"}`,k=[...c,{name:"flip",enabled:!!l}],P=H.createElement(PI,{placement:T,modifiers:k,strategy:h},({ref:N,style:D,placement:V,update:A})=>{let W=We(We({},this.props.style),D);const Y=ee=>{N(ee);const{onMenuRef:q}=this.context;q&&q(ee)};return H.createElement(x,$e({tabIndex:"-1",role:this.getRole(),ref:Y},v,{style:W,"aria-hidden":!this.context.isOpen,className:y,"data-popper-placement":V,onClick:()=>g&&A()}))});return p?La.createPortal(P,Mc(p)):P}const{onMenuRef:b}=this.context;return H.createElement(x,$e({tabIndex:"-1",role:this.getRole()},v,{ref:b,"aria-hidden":!this.context.isOpen,className:y,"data-popper-placement":v.placement}))}}n_.propTypes=Hee;n_.defaultProps=Vee;n_.contextType=pd;var Zc=n_;const Yee=["className","color","cssModule","caret","split","nav","tag","innerRef"],qee={caret:C.bool,color:C.string,children:C.node,className:C.string,cssModule:C.object,disabled:C.bool,onClick:C.func,"aria-haspopup":C.bool,split:C.bool,tag:Pe,nav:C.bool,innerRef:C.oneOfType([C.object,C.string,C.func])},Gee={color:"secondary","aria-haspopup":!0};class r_ extends H.Component{constructor(t){super(t),this.onClick=this.onClick.bind(this)}onClick(t){if(this.props.disabled||this.context.disabled){t.preventDefault();return}this.props.nav&&!this.props.tag&&t.preventDefault(),this.props.onClick&&this.props.onClick(t),this.context.toggle(t)}getRole(){return this.context.menuRole||this.props["aria-haspopup"]}render(){const t=this.props,{className:n,color:r,cssModule:i,caret:o,split:s,nav:a,tag:l,innerRef:c}=t,f=qe(t,Yee),h=f["aria-label"]||"Toggle Dropdown",p=Ie(me(n,{"dropdown-toggle":o||s,"dropdown-toggle-split":s,"nav-link":a}),i),g=typeof f.children<"u"?f.children:H.createElement("span",{className:"visually-hidden"},h);let v;return a&&!l?(v="a",f.href="#"):l?v=l:(v=ht,f.color=r,f.cssModule=i),this.context.inNavbar?H.createElement(v,$e({},f,{className:p,onClick:this.onClick,ref:this.context.onToggleRef,"aria-expanded":this.context.isOpen,"aria-haspopup":this.getRole(),children:g})):H.createElement(UJ,{innerRef:c},({ref:y})=>{const x=b=>{y(b);const{onToggleRef:w}=this.context;w&&w(b)};return H.createElement(v,$e({},f,{[typeof v=="string"?"ref":"innerRef"]:x,className:p,onClick:this.onClick,"aria-expanded":this.context.isOpen,"aria-haspopup":this.getRole(),children:g}))})}}r_.propTypes=qee;r_.defaultProps=Gee;r_.contextType=pd;var Vd=r_;const Zee=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"],Kee=We(We({},Fo.propTypes),{},{children:C.oneOfType([C.arrayOf(C.node),C.node]),tag:Pe,baseClass:C.string,baseClassActive:C.string,className:C.string,cssModule:C.object,innerRef:C.oneOfType([C.object,C.string,C.func])}),Xee=We(We({},Fo.defaultProps),{},{tag:"div",baseClass:"fade",baseClassActive:"show",timeout:Ga.Fade,appear:!0,enter:!0,exit:!0,in:!0});function Zt(e){const{tag:t,baseClass:n,baseClassActive:r,className:i,cssModule:o,children:s,innerRef:a}=e,l=qe(e,Zee),c=LI(l,qg),f=Cr(l,qg);return H.createElement(Fo,c,h=>{const g=Ie(me(i,n,h==="entered"&&r),o);return H.createElement(t,$e({className:g},f,{ref:a}),s)})}Zt.propTypes=Kee;Zt.defaultProps=Xee;H.createContext({});C.node,C.string,C.object,C.bool,C.oneOfType([C.object,C.string,C.func]),C.oneOfType([C.array,C.string]).isRequired,C.func.isRequired;C.string,C.object,C.oneOfType([C.object,C.string,C.func]),C.node,C.oneOfType([C.array,C.string]),C.bool;C.node,C.string,C.object,C.oneOfType([C.object,C.string,C.func]),C.string.isRequired;C.node,C.string,C.object,C.oneOfType([C.object,C.string,C.func]);const Qee=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],Jee=We(We({},Fo.propTypes),{},{horizontal:C.bool,isOpen:C.bool,children:C.oneOfType([C.arrayOf(C.node),C.node]),tag:Pe,className:C.node,navbar:C.bool,cssModule:C.object,innerRef:C.shape({current:C.object})}),ete=We(We({},Fo.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:Ga.Collapse}),tte={[mo.ENTERING]:"collapsing",[mo.ENTERED]:"collapse show",[mo.EXITING]:"collapsing",[mo.EXITED]:"collapse"};function nte(e){return tte[e]||"collapse"}class kC extends B.Component{constructor(t){super(t),this.state={dimension:null},this.nodeRef=t.innerRef||H.createRef(),["onEntering","onEntered","onExit","onExiting","onExited"].forEach(n=>{this[n]=this[n].bind(this)})}onEntering(t,n){const r=this.getNode();this.setState({dimension:this.getDimension(r)}),this.props.onEntering(r,n)}onEntered(t,n){const r=this.getNode();this.setState({dimension:null}),this.props.onEntered(r,n)}onExit(){const t=this.getNode();this.setState({dimension:this.getDimension(t)}),this.props.onExit(t)}onExiting(){const t=this.getNode();this.getDimension(t),this.setState({dimension:0}),this.props.onExiting(t)}onExited(){const t=this.getNode();this.setState({dimension:null}),this.props.onExited(t)}getNode(){return this.nodeRef.current}getDimension(t){return this.props.horizontal?t.scrollWidth:t.scrollHeight}render(){const t=this.props,{tag:n,horizontal:r,isOpen:i,className:o,navbar:s,cssModule:a,children:l,innerRef:c}=t,f=qe(t,Qee),{dimension:h}=this.state,p=LI(f,qg),g=Cr(f,qg);return H.createElement(Fo,$e({},p,{in:i,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),v=>{let y=nte(v);const x=Ie(me(o,r&&"collapse-horizontal",y,s&&"navbar-collapse"),a),b=h===null?null:{[r?"width":"height"]:h};return H.createElement(n,$e({},g,{style:We(We({},g.style),b),className:x,ref:this.nodeRef}),l)})}}kC.propTypes=Jee;kC.defaultProps=ete;var UI=kC;C.string.isRequired,C.string,C.node,C.object,C.oneOfType([C.object,C.string,C.func]);C.node,C.string,C.string,C.object,C.oneOfType([C.object,C.func,C.string]),C.bool;const rte=["className","cssModule","color","body","inverse","outline","tag","innerRef"],ite={body:C.bool,className:C.string,color:C.string,cssModule:C.object,innerRef:C.oneOfType([C.object,C.string,C.func]),inverse:C.bool,outline:C.bool,tag:Pe},ote={tag:"div"};function xr(e){const{className:t,cssModule:n,color:r,body:i,inverse:o,outline:s,tag:a,innerRef:l}=e,c=qe(e,rte),f=Ie(me(t,"card",o?"text-white":!1,i?"card-body":!1,r?`${s?"border":"bg"}-${r}`:!1),n);return H.createElement(a,$e({},c,{className:f,ref:l}))}xr.propTypes=ite;xr.defaultProps=ote;C.string,C.object;C.string,C.object;C.string,C.object;const ste=["className","cssModule","innerRef","tag"],ate={className:C.string,cssModule:C.object,innerRef:C.oneOfType([C.object,C.string,C.func]),tag:Pe},lte={tag:"div"};function Za(e){const{className:t,cssModule:n,innerRef:r,tag:i}=e,o=qe(e,ste),s=Ie(me(t,"card-body"),n);return H.createElement(i,$e({},o,{className:s,ref:r}))}Za.propTypes=ate;Za.defaultProps=lte;C.oneOfType([C.object,C.func,C.string]),C.string,C.object;const cte=["className","cssModule","tag"],ute={className:C.string,cssModule:C.object,tag:Pe},fte={tag:"div"};function MC(e){const{className:t,cssModule:n,tag:r}=e,i=qe(e,cte),o=Ie(me(t,"card-footer"),n);return H.createElement(r,$e({},i,{className:o}))}MC.propTypes=ute;MC.defaultProps=fte;const dte=["className","cssModule","tag"],hte={className:C.string,cssModule:C.object,tag:Pe},pte={tag:"div"};function Ka(e){const{className:t,cssModule:n,tag:r}=e,i=qe(e,dte),o=Ie(me(t,"card-header"),n);return H.createElement(r,$e({},i,{className:o}))}Ka.propTypes=hte;Ka.defaultProps=pte;C.bool,C.string,C.object,C.bool;C.string,C.object;const am=H.createContext({}),mte=["in","children","cssModule","slide","tag","className"];class i_ extends H.Component{constructor(t){super(t),this.state={startAnimation:!1},this.onEnter=this.onEnter.bind(this),this.onEntering=this.onEntering.bind(this),this.onExit=this.onExit.bind(this),this.onExiting=this.onExiting.bind(this),this.onExited=this.onExited.bind(this)}onEnter(t,n){this.setState({startAnimation:!1}),this.props.onEnter(t,n)}onEntering(t,n){const{offsetHeight:r}=t;return this.setState({startAnimation:!0}),this.props.onEntering(t,n),r}onExit(t){this.setState({startAnimation:!1}),this.props.onExit(t)}onExiting(t){this.setState({startAnimation:!0}),t.dispatchEvent(new CustomEvent("slide.bs.carousel")),this.props.onExiting(t)}onExited(t){t.dispatchEvent(new CustomEvent("slid.bs.carousel")),this.props.onExited(t)}render(){const t=this.props,{in:n,children:r,cssModule:i,slide:o,tag:s,className:a}=t,l=qe(t,mte);return H.createElement(Fo,$e({},l,{enter:o,exit:o,in:n,onEnter:this.onEnter,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),c=>{const{direction:f}=this.context,h=c===mo.ENTERED||c===mo.EXITING,p=(c===mo.ENTERING||c===mo.EXITING)&&this.state.startAnimation&&(f==="end"?"carousel-item-start":"carousel-item-end"),g=c===mo.ENTERING&&(f==="end"?"carousel-item-next":"carousel-item-prev"),v=Ie(me(a,"carousel-item",h&&"active",p,g),i);return H.createElement(s,{className:v},r)})}}i_.propTypes=We(We({},Fo.propTypes),{},{tag:Pe,in:C.bool,cssModule:C.object,children:C.node,slide:C.bool,className:C.string});i_.defaultProps=We(We({},Fo.defaultProps),{},{tag:"div",timeout:Ga.Carousel,slide:!0});i_.contextType=am;var zI=i_;const gte=40,HI={activeIndex:C.number,next:C.func.isRequired,previous:C.func.isRequired,keyboard:C.bool,pause:C.oneOf(["hover",!1]),ride:C.oneOf(["carousel"]),interval:C.oneOfType([C.number,C.string,C.bool]),children:C.array,mouseEnter:C.func,mouseLeave:C.func,slide:C.bool,dark:C.bool,fade:C.bool,cssModule:C.object,className:C.string,enableTouch:C.bool},vte=Object.keys(HI),yte={interval:5e3,pause:"hover",keyboard:!0,slide:!0,enableTouch:!0,fade:!1};class RC extends H.Component{constructor(t){super(t),this.handleKeyPress=this.handleKeyPress.bind(this),this.renderItems=this.renderItems.bind(this),this.hoverStart=this.hoverStart.bind(this),this.hoverEnd=this.hoverEnd.bind(this),this.handleTouchStart=this.handleTouchStart.bind(this),this.handleTouchEnd=this.handleTouchEnd.bind(this),this.touchStartX=0,this.touchStartY=0,this.state={activeIndex:this.props.activeIndex,direction:"end",indicatorClicked:!1}}componentDidMount(){this.props.ride==="carousel"&&this.setInterval(),document.addEventListener("keyup",this.handleKeyPress)}static getDerivedStateFromProps(t,n){let r=null,{activeIndex:i,direction:o,indicatorClicked:s}=n;return t.activeIndex!==i&&(t.activeIndex===i+1?o="end":t.activeIndex===i-1?o="start":t.activeIndex{this.props.next()},parseInt(this.props.interval,10)))}clearInterval(){clearInterval(this.cycleInterval)}hoverStart(...t){this.props.pause==="hover"&&this.clearInterval(),this.props.mouseEnter&&this.props.mouseEnter(...t)}hoverEnd(...t){this.props.pause==="hover"&&this.setInterval(),this.props.mouseLeave&&this.props.mouseLeave(...t)}renderItems(t,n){const{slide:r}=this.props;return H.createElement("div",{className:n},t.map((i,o)=>{const s=o===this.state.activeIndex;return H.cloneElement(i,{in:s,slide:r})}))}render(){const{cssModule:t,slide:n,className:r,dark:i,fade:o}=this.props,s=Cr(this.props,vte),a=Ie(me(r,"carousel",o&&"carousel-fade",n&&"slide",i&&"carousel-dark"),t),l=Ie(me("carousel-inner"),t),c=this.props.children.filter(b=>b!=null&&typeof b!="boolean");if(c.every(b=>b.type===zI))return H.createElement("div",$e({},s,{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd}),H.createElement(am.Provider,{value:this.getContextValue()},this.renderItems(c,l)));if(c[0]instanceof Array){const b=c[0],w=c[1],S=c[2];return H.createElement("div",$e({},s,{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd}),H.createElement(am.Provider,{value:this.getContextValue()},this.renderItems(b,l),w,S))}const h=c[0],p=b=>{typeof h.props.onClickHandler=="function"&&this.setState({indicatorClicked:!0},()=>h.props.onClickHandler(b))},g=H.cloneElement(h,{onClickHandler:p}),v=c[1],y=c[2],x=c[3];return H.createElement("div",$e({},s,{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),H.createElement(am.Provider,{value:this.getContextValue()},g,this.renderItems(v,l),y,x))}}RC.propTypes=HI;RC.defaultProps=yte;var _te=RC;const bte=["direction","onClickHandler","cssModule","directionText","className"];function bw(e){const{direction:t,onClickHandler:n,cssModule:r,directionText:i,className:o}=e,s=qe(e,bte),a=Ie(me(o,`carousel-control-${t}`),r),l=Ie(me(`carousel-control-${t}-icon`),r),c=Ie(me("visually-hidden"),r);return H.createElement("a",$e({},s,{className:a,style:{cursor:"pointer"},role:"button",tabIndex:"0",onClick:f=>{f.preventDefault(),n()}}),H.createElement("span",{className:l,"aria-hidden":"true"}),H.createElement("span",{className:c},i||t))}bw.propTypes={direction:C.oneOf(["prev","next"]).isRequired,onClickHandler:C.func.isRequired,cssModule:C.object,directionText:C.string,className:C.string};const wte=["items","activeIndex","cssModule","onClickHandler","className"];function VI(e){const{items:t,activeIndex:n,cssModule:r,onClickHandler:i,className:o}=e,s=qe(e,wte),a=Ie(me(o,"carousel-indicators"),r),l=t.map((c,f)=>{const h=Ie(me({active:n===f}),r);return H.createElement("button",{"aria-label":c.caption,"data-bs-target":!0,type:"button",key:`${c.key||Object.values(c).join("")}`,onClick:p=>{p.preventDefault(),i(f)},className:h})});return H.createElement("div",$e({className:a},s),l)}VI.propTypes={activeIndex:C.number.isRequired,className:C.string,cssModule:C.object,items:C.array.isRequired,onClickHandler:C.func.isRequired};function WI(e){const{captionHeader:t,captionText:n,cssModule:r,className:i}=e,o=Ie(me(i,"carousel-caption","d-none","d-md-block"),r);return H.createElement("div",{className:o},H.createElement("h3",null,t),H.createElement("p",null,n))}WI.propTypes={captionHeader:C.node,captionText:C.node.isRequired,className:C.string,cssModule:C.object};const xte=["defaultActiveIndex","autoPlay","indicators","controls","items","goToIndex"],Ste={items:C.array.isRequired,indicators:C.bool,controls:C.bool,autoPlay:C.bool,defaultActiveIndex:C.number,activeIndex:C.number,next:C.func,previous:C.func,goToIndex:C.func};class YI extends B.Component{constructor(t){super(t),this.animating=!1,this.state={activeIndex:t.defaultActiveIndex||0},this.next=this.next.bind(this),this.previous=this.previous.bind(this),this.goToIndex=this.goToIndex.bind(this),this.onExiting=this.onExiting.bind(this),this.onExited=this.onExited.bind(this)}onExiting(){this.animating=!0}onExited(){this.animating=!1}next(){this.animating||this.setState(t=>({activeIndex:t.activeIndex===this.props.items.length-1?0:t.activeIndex+1}))}previous(){this.animating||this.setState(t=>({activeIndex:t.activeIndex===0?this.props.items.length-1:t.activeIndex-1}))}goToIndex(t){this.animating||this.setState({activeIndex:t})}render(){const t=this.props,{defaultActiveIndex:n,autoPlay:r,indicators:i,controls:o,items:s,goToIndex:a}=t,l=qe(t,xte),{activeIndex:c}=this.state,f=s.map(h=>{const p=h.key||h.src;return H.createElement(zI,{onExiting:this.onExiting,onExited:this.onExited,key:p},H.createElement("img",{className:"d-block w-100",src:h.src,alt:h.altText}),H.createElement(WI,{captionText:h.caption,captionHeader:h.header||h.caption}))});return H.createElement(_te,$e({activeIndex:c,next:this.next,previous:this.previous,ride:r?"carousel":void 0},l),i&&H.createElement(VI,{items:s,activeIndex:l.activeIndex||c,onClickHandler:a||this.goToIndex}),f,o&&H.createElement(bw,{direction:"prev",directionText:"Previous",onClickHandler:l.previous||this.previous}),o&&H.createElement(bw,{direction:"next",directionText:"Next",onClickHandler:l.next||this.next}))}}YI.propTypes=Ste;YI.defaultProps={controls:!0,indicators:!0,autoPlay:!0};C.string,C.object;const Cte=["className","cssModule","tag"],Ete={className:C.string,cssModule:C.object,tag:Pe},Tte={tag:"p"};function NC(e){const{className:t,cssModule:n,tag:r}=e,i=qe(e,Cte),o=Ie(me(t,"card-text"),n);return H.createElement(r,$e({},i,{className:o}))}NC.propTypes=Ete;NC.defaultProps=Tte;const Ote=["className","cssModule","tag"],Pte={className:C.string,cssModule:C.object,tag:Pe},kte={tag:"div"};function LC(e){const{className:t,cssModule:n,tag:r}=e,i=qe(e,Ote),o=Ie(me(t,"card-title"),n);return H.createElement(r,$e({},i,{className:o}))}LC.propTypes=Pte;LC.defaultProps=kte;const Mte=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function Rte(){}const Nte={children:C.oneOfType([C.node,C.func]).isRequired,popperClassName:C.string,placement:C.string,placementPrefix:C.string,arrowClassName:C.string,hideArrow:C.bool,tag:Pe,isOpen:C.bool,cssModule:C.object,offset:C.arrayOf(C.number),fallbackPlacements:C.array,flip:C.bool,container:Fs,target:Fs.isRequired,modifiers:C.array,strategy:C.string,boundariesElement:C.oneOfType([C.string,_C]),onClosed:C.func,fade:C.bool,transition:C.shape(Zt.propTypes)},Lte={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:Rte,fade:!0,transition:We({},Zt.defaultProps)};class DC extends H.Component{constructor(t){super(t),this.setTargetNode=this.setTargetNode.bind(this),this.getTargetNode=this.getTargetNode.bind(this),this.getRef=this.getRef.bind(this),this.onClosed=this.onClosed.bind(this),this.state={isOpen:t.isOpen}}static getDerivedStateFromProps(t,n){return t.isOpen&&!n.isOpen?{isOpen:t.isOpen}:null}componentDidUpdate(){this._element&&this._element.childNodes&&this._element.childNodes[0]&&this._element.childNodes[0].focus&&this._element.childNodes[0].focus()}onClosed(){this.props.onClosed(),this.setState({isOpen:!1})}getTargetNode(){return this.targetNode}getContainerNode(){return Mc(this.props.container)}getRef(t){this._element=t}setTargetNode(t){this.targetNode=typeof t=="string"?Mc(t):t}renderChildren(){const t=this.props,{cssModule:n,children:r,isOpen:i,flip:o,target:s,offset:a,fallbackPlacements:l,placementPrefix:c,arrowClassName:f,hideArrow:h,popperClassName:p,tag:g,container:v,modifiers:y,strategy:x,boundariesElement:b,onClosed:w,fade:S,transition:T,placement:k}=t,P=qe(t,Mte),N=Ie(me("arrow",f),n),D=Ie(me(p,c?`${c}-auto`:""),this.props.cssModule),V=y.map(ee=>ee.name),W=[...[{name:"offset",options:{offset:a}},{name:"flip",enabled:o,options:{fallbackPlacements:l}},{name:"preventOverflow",options:{boundary:b}}].filter(ee=>!V.includes(ee.name)),...y],Y=We(We(We({},Zt.defaultProps),T),{},{baseClass:S?T.baseClass:"",timeout:S?T.timeout:0});return H.createElement(Zt,$e({},Y,P,{in:i,onExited:this.onClosed,tag:g}),H.createElement(PI,{referenceElement:this.targetNode,modifiers:W,placement:k,strategy:x},({ref:ee,style:q,placement:X,isReferenceHidden:ie,arrowProps:le,update:G})=>H.createElement("div",{ref:ee,style:q,className:D,"data-popper-placement":X,"data-popper-reference-hidden":ie?"true":void 0},typeof r=="function"?r({update:G}):r,!h&&H.createElement("span",{ref:le.ref,className:N,style:le.style}))))}render(){return this.setTargetNode(this.props.target),this.state.isOpen?this.props.container==="inline"?this.renderChildren():La.createPortal(H.createElement("div",{ref:this.getRef},this.renderChildren()),this.getContainerNode()):null}}DC.propTypes=Nte;DC.defaultProps=Lte;var Dte=DC;C.object.isRequired;Fs.isRequired;const o_={children:C.oneOfType([C.node,C.func]),placement:C.oneOf(ZJ),target:Fs.isRequired,container:Fs,isOpen:C.bool,disabled:C.bool,hideArrow:C.bool,boundariesElement:C.oneOfType([C.string,_C]),className:C.string,innerClassName:C.string,arrowClassName:C.string,popperClassName:C.string,cssModule:C.object,toggle:C.func,autohide:C.bool,placementPrefix:C.string,delay:C.oneOfType([C.shape({show:C.number,hide:C.number}),C.number]),modifiers:C.array,strategy:C.string,offset:C.arrayOf(C.number),innerRef:C.oneOfType([C.func,C.string,C.object]),trigger:C.string,fade:C.bool,flip:C.bool},qI={show:0,hide:50},Ate={isOpen:!1,hideArrow:!1,autohide:!1,delay:qI,toggle:function(){},trigger:"click",fade:!0};function GI(e,t){return t&&(e===t||t.contains(e))}function VM(e,t=[]){return t&&t.length&&t.filter(n=>GI(e,n))[0]}class AC extends H.Component{constructor(t){super(t),this._targets=[],this.currentTargetElement=null,this.addTargetEvents=this.addTargetEvents.bind(this),this.handleDocumentClick=this.handleDocumentClick.bind(this),this.removeTargetEvents=this.removeTargetEvents.bind(this),this.toggle=this.toggle.bind(this),this.showWithDelay=this.showWithDelay.bind(this),this.hideWithDelay=this.hideWithDelay.bind(this),this.onMouseOverTooltipContent=this.onMouseOverTooltipContent.bind(this),this.onMouseLeaveTooltipContent=this.onMouseLeaveTooltipContent.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.onEscKeyDown=this.onEscKeyDown.bind(this),this.getRef=this.getRef.bind(this),this.state={isOpen:t.isOpen},this._isMounted=!1}componentDidMount(){this._isMounted=!0,this.updateTarget()}componentWillUnmount(){this._isMounted=!1,this.removeTargetEvents(),this._targets=null,this.clearShowTimeout(),this.clearHideTimeout()}static getDerivedStateFromProps(t,n){return t.isOpen&&!n.isOpen?{isOpen:t.isOpen}:null}handleDocumentClick(t){const n=this.props.trigger.split(" ");n.indexOf("legacy")>-1&&(this.props.isOpen||VM(t.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!GI(t.target,this._popover)?this.hideWithDelay(t):this.props.isOpen||this.showWithDelay(t)):n.indexOf("click")>-1&&VM(t.target,this._targets)&&(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen?this.hideWithDelay(t):this.showWithDelay(t))}onMouseOverTooltipContent(){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._hideTimeout&&this.clearHideTimeout(),this.state.isOpen&&!this.props.isOpen&&this.toggle())}onMouseLeaveTooltipContent(t){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._showTimeout&&this.clearShowTimeout(),t.persist(),this._hideTimeout=setTimeout(this.hide.bind(this,t),this.getDelay("hide")))}onEscKeyDown(t){t.key==="Escape"&&this.hide(t)}getRef(t){const{innerRef:n}=this.props;n&&(typeof n=="function"?n(t):typeof n=="object"&&(n.current=t)),this._popover=t}getDelay(t){const{delay:n}=this.props;return typeof n=="object"?isNaN(n[t])?qI[t]:n[t]:n}getCurrentTarget(t){if(!t)return null;const n=this._targets.indexOf(t);return n>=0?this._targets[n]:this.getCurrentTarget(t.parentElement)}show(t){if(!this.props.isOpen){if(this.clearShowTimeout(),this.currentTargetElement=t?t.currentTarget||this.getCurrentTarget(t.target):null,t&&t.composedPath&&typeof t.composedPath=="function"){const n=t.composedPath();this.currentTargetElement=n&&n[0]||this.currentTargetElement}this.toggle(t)}}showWithDelay(t){this._hideTimeout&&this.clearHideTimeout(),this._showTimeout=setTimeout(this.show.bind(this,t),this.getDelay("show"))}hide(t){this.props.isOpen&&(this.clearHideTimeout(),this.currentTargetElement=null,this.toggle(t))}hideWithDelay(t){this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide.bind(this,t),this.getDelay("hide"))}clearShowTimeout(){clearTimeout(this._showTimeout),this._showTimeout=void 0}clearHideTimeout(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}addEventOnTargets(t,n,r){this._targets.forEach(i=>{i.addEventListener(t,n,r)})}removeEventOnTargets(t,n,r){this._targets.forEach(i=>{i.removeEventListener(t,n,r)})}addTargetEvents(){if(this.props.trigger){let t=this.props.trigger.split(" ");t.indexOf("manual")===-1&&((t.indexOf("click")>-1||t.indexOf("legacy")>-1)&&document.addEventListener("click",this.handleDocumentClick,!0),this._targets&&this._targets.length&&(t.indexOf("hover")>-1&&(this.addEventOnTargets("mouseover",this.showWithDelay,!0),this.addEventOnTargets("mouseout",this.hideWithDelay,!0)),t.indexOf("focus")>-1&&(this.addEventOnTargets("focusin",this.show,!0),this.addEventOnTargets("focusout",this.hide,!0)),this.addEventOnTargets("keydown",this.onEscKeyDown,!0)))}}removeTargetEvents(){this._targets&&(this.removeEventOnTargets("mouseover",this.showWithDelay,!0),this.removeEventOnTargets("mouseout",this.hideWithDelay,!0),this.removeEventOnTargets("keydown",this.onEscKeyDown,!0),this.removeEventOnTargets("focusin",this.show,!0),this.removeEventOnTargets("focusout",this.hide,!0)),document.removeEventListener("click",this.handleDocumentClick,!0)}updateTarget(){const t=Mc(this.props.target,!0);t!==this._targets&&(this.removeTargetEvents(),this._targets=t?Array.from(t):[],this.currentTargetElement=this.currentTargetElement||this._targets[0],this.addTargetEvents())}toggle(t){return this.props.disabled||!this._isMounted?t&&t.preventDefault():this.props.toggle(t)}render(){this.props.isOpen&&this.updateTarget();const t=this.currentTargetElement||this._targets[0];if(!t)return null;const{className:n,cssModule:r,innerClassName:i,isOpen:o,hideArrow:s,boundariesElement:a,placement:l,placementPrefix:c,arrowClassName:f,popperClassName:h,container:p,modifiers:g,strategy:v,offset:y,fade:x,flip:b,children:w}=this.props,S=Cr(this.props,Object.keys(o_)),T=Ie(h,r),k=Ie(i,r);return H.createElement(Dte,{className:n,target:t,isOpen:o,hideArrow:s,boundariesElement:a,placement:l,placementPrefix:c,arrowClassName:f,popperClassName:T,container:p,modifiers:g,strategy:v,offset:y,cssModule:r,fade:x,flip:b},({update:P})=>H.createElement("div",$e({},S,{ref:this.getRef,className:k,role:"tooltip",onMouseOver:this.onMouseOverTooltipContent,onMouseLeave:this.onMouseLeaveTooltipContent,onKeyDown:this.onEscKeyDown}),typeof w=="function"?w({update:P}):w))}}AC.propTypes=o_;AC.defaultProps=Ate;var ZI=AC;const jte={placement:"right",placementPrefix:"bs-popover",trigger:"click",offset:[0,8]};function Wd(e){const t=me("popover","show",e.popperClassName),n=me("popover-inner",e.innerClassName);return H.createElement(ZI,$e({},e,{arrowClassName:"popover-arrow",popperClassName:t,innerClassName:n}))}Wd.propTypes=o_;Wd.defaultProps=jte;const Ite=["defaultOpen"];class Fte extends B.Component{constructor(t){super(t),this.state={isOpen:t.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(){this.setState(t=>({isOpen:!t.isOpen}))}render(){return H.createElement(Wd,$e({isOpen:this.state.isOpen,toggle:this.toggle},Cr(this.props,Ite)))}}Fte.propTypes=We({defaultOpen:C.bool},Wd.propTypes);C.string,C.object;C.string,C.object;const $te=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"],Bte={animated:C.bool,bar:C.bool,barAriaLabelledBy:C.string,barAriaValueText:C.string,barClassName:C.string,barStyle:C.object,children:C.node,className:C.string,cssModule:C.object,color:C.string,max:C.oneOfType([C.string,C.number]),min:C.oneOfType([C.string,C.number]),multi:C.bool,striped:C.bool,style:C.object,tag:Pe,value:C.oneOfType([C.string,C.number])},Ute={tag:"div",value:0,min:0,max:100,style:{},barStyle:{}};function jC(e){const{children:t,className:n,barClassName:r,cssModule:i,value:o,min:s,max:a,animated:l,striped:c,color:f,bar:h,multi:p,tag:g,style:v,barStyle:y,barAriaValueText:x,barAriaLabelledBy:b}=e,w=qe(e,$te),S=UM(o)/UM(a)*100,T=Ie(me(n,"progress"),i),P={className:Ie(me("progress-bar",h&&n||r,l?"progress-bar-animated":null,f?`bg-${f}`:null,c||l?"progress-bar-striped":null),i),style:We(We(We({},h?v:{}),y),{},{width:`${S}%`}),role:"progressbar","aria-valuenow":o,"aria-valuemin":s,"aria-valuemax":a,"aria-valuetext":x,"aria-labelledby":b,children:t};return h?H.createElement(g,$e({},w,P)):H.createElement(g,$e({},w,{style:v,className:T}),p?t:H.createElement("div",P))}jC.propTypes=Bte;jC.defaultProps=Ute;const zte={children:C.node.isRequired,node:C.any};class KI extends H.Component{componentWillUnmount(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}render(){return bC?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),La.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}KI.propTypes=zte;var XI=KI;function Kg(){}const WM=C.shape(Zt.propTypes),QI={autoFocus:C.bool,backdrop:C.oneOfType([C.bool,C.oneOf(["static"])]),backdropClassName:C.string,backdropTransition:WM,centered:C.bool,children:C.node,contentClassName:C.string,className:C.string,container:Fs,cssModule:C.object,external:C.node,fade:C.bool,fullscreen:C.oneOfType([C.bool,C.oneOf(["sm","md","lg","xl"])]),innerRef:C.oneOfType([C.object,C.string,C.func]),isOpen:C.bool,keyboard:C.bool,labelledBy:C.string,modalClassName:C.string,modalTransition:WM,onClosed:C.func,onEnter:C.func,onExit:C.func,onOpened:C.func,returnFocusAfterClose:C.bool,role:C.string,scrollable:C.bool,size:C.string,toggle:C.func,trapFocus:C.bool,unmountOnClose:C.bool,wrapClassName:C.string,zIndex:C.oneOfType([C.number,C.string])},Hte=Object.keys(QI),Vte={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:Kg,onClosed:Kg,modalTransition:{timeout:Ga.Modal},backdropTransition:{mountOnEnter:!0,timeout:Ga.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1};class Un extends H.Component{constructor(t){super(t),this._element=null,this._originalBodyPadding=null,this.getFocusableChildren=this.getFocusableChildren.bind(this),this.handleBackdropClick=this.handleBackdropClick.bind(this),this.handleBackdropMouseDown=this.handleBackdropMouseDown.bind(this),this.handleEscape=this.handleEscape.bind(this),this.handleStaticBackdropAnimation=this.handleStaticBackdropAnimation.bind(this),this.handleTab=this.handleTab.bind(this),this.onOpened=this.onOpened.bind(this),this.onClosed=this.onClosed.bind(this),this.manageFocusAfterClose=this.manageFocusAfterClose.bind(this),this.clearBackdropAnimationTimeout=this.clearBackdropAnimationTimeout.bind(this),this.trapFocus=this.trapFocus.bind(this),this.state={isOpen:!1,showStaticBackdropAnimation:!1}}componentDidMount(){const{isOpen:t,autoFocus:n,onEnter:r}=this.props;t&&(this.init(),this.setState({isOpen:!0}),n&&this.setFocus()),r&&r(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}componentDidUpdate(t,n){if(this.props.isOpen&&!t.isOpen){this.init(),this.setState({isOpen:!0});return}this.props.autoFocus&&this.state.isOpen&&!n.isOpen&&this.setFocus(),this._element&&t.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}componentWillUnmount(){this.clearBackdropAnimationTimeout(),this.props.onExit&&this.props.onExit(),this._element&&(this.destroy(),(this.props.isOpen||this.state.isOpen)&&this.close()),document.removeEventListener("focus",this.trapFocus,!0),this._isMounted=!1}handleBackdropClick(t){if(t.target===this._mouseDownElement){t.stopPropagation();const n=this._dialog?this._dialog.parentNode:null;if(n&&t.target===n&&this.props.backdrop==="static"&&this.handleStaticBackdropAnimation(),!this.props.isOpen||this.props.backdrop!==!0)return;n&&t.target===n&&this.props.toggle&&this.props.toggle(t)}}handleTab(t){if(t.which!==9||this.modalIndex{this.setState({showStaticBackdropAnimation:!1})},100)}onOpened(t,n){this.props.onOpened(),(this.props.modalTransition.onEntered||Kg)(t,n)}onClosed(t){const{unmountOnClose:n}=this.props;this.props.onClosed(),(this.props.modalTransition.onExited||Kg)(t),n&&this.destroy(),this.close(),this._isMounted&&this.setState({isOpen:!1})}setFocus(){this._dialog&&this._dialog.parentNode&&typeof this._dialog.parentNode.focus=="function"&&this._dialog.parentNode.focus()}getFocusableChildren(){return this._element.querySelectorAll(II.join(", "))}getFocusedChild(){let t;const n=this.getFocusableChildren();try{t=document.activeElement}catch{t=n[0]}return t}trapFocus(t){if(!this.props.trapFocus||!this._element||this._dialog&&this._dialog.parentNode===t.target||this.modalIndex0&&(t.preventDefault(),t.stopPropagation(),n[0].focus())}init(){try{this._triggeringElement=document.activeElement}catch{this._triggeringElement=null}this._element||(this._element=document.createElement("div"),this._element.setAttribute("tabindex","-1"),this._element.style.position="relative",this._element.style.zIndex=this.props.zIndex,this._mountContainer=Mc(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=RI(),Un.openCount<1&&(Un.originalBodyOverflow=window.getComputedStyle(document.body).overflow),NI(),Un.openCount===0&&(document.body.className=me(document.body.className,Ie("modal-open",this.props.cssModule)),document.body.style.overflow="hidden"),this.modalIndex=Un.openCount,Un.openCount+=1}destroy(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}manageFocusAfterClose(){if(this._triggeringElement){const{returnFocusAfterClose:t}=this.props;this._triggeringElement.focus&&t&&this._triggeringElement.focus(),this._triggeringElement=null}}close(){if(Un.openCount<=1){const t=Ie("modal-open",this.props.cssModule),n=new RegExp(`(^| )${t}( |$)`);document.body.className=document.body.className.replace(n," ").trim(),document.body.style.overflow=Un.originalBodyOverflow}this.manageFocusAfterClose(),Un.openCount=Math.max(0,Un.openCount-1),yC(this._originalBodyPadding)}clearBackdropAnimationTimeout(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}renderModalDialog(){const t=Cr(this.props,Hte),n="modal-dialog";return H.createElement("div",$e({},t,{className:Ie(me(n,this.props.className,{[`modal-${this.props.size}`]:this.props.size,[`${n}-centered`]:this.props.centered,[`${n}-scrollable`]:this.props.scrollable,"modal-fullscreen":this.props.fullscreen===!0,[`modal-fullscreen-${this.props.fullscreen}-down`]:typeof this.props.fullscreen=="string"}),this.props.cssModule),role:"document",ref:r=>{this._dialog=r}}),H.createElement("div",{className:Ie(me("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))}render(){const{unmountOnClose:t}=this.props;if(this._element&&(this.state.isOpen||!t)){const n=!!this._element&&!this.state.isOpen&&!t;this._element.style.display=n?"none":"block";const{wrapClassName:r,modalClassName:i,backdropClassName:o,cssModule:s,isOpen:a,backdrop:l,role:c,labelledBy:f,external:h,innerRef:p}=this.props,g={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":f,role:c,tabIndex:"-1"},v=this.props.fade,y=We(We(We({},Zt.defaultProps),this.props.modalTransition),{},{baseClass:v?this.props.modalTransition.baseClass:"",timeout:v?this.props.modalTransition.timeout:0}),x=We(We(We({},Zt.defaultProps),this.props.backdropTransition),{},{baseClass:v?this.props.backdropTransition.baseClass:"",timeout:v?this.props.backdropTransition.timeout:0}),b=l&&(v?H.createElement(Zt,$e({},x,{in:a&&!!l,cssModule:s,className:Ie(me("modal-backdrop",o),s)})):H.createElement("div",{className:Ie(me("modal-backdrop","show",o),s)}));return H.createElement(XI,{node:this._element},H.createElement("div",{className:Ie(r)},H.createElement(Zt,$e({},g,y,{in:a,onEntered:this.onOpened,onExited:this.onClosed,cssModule:s,className:Ie(me("modal",i,this.state.showStaticBackdropAnimation&&"modal-static"),s),innerRef:p}),h,this.renderModalDialog()),b))}return null}}Un.propTypes=QI;Un.defaultProps=Vte;Un.openCount=0;Un.originalBodyOverflow=null;var $o=Un;const Wte=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"],Yte={children:C.node,className:C.string,close:C.object,closeAriaLabel:C.string,cssModule:C.object,tag:Pe,toggle:C.func,wrapTag:Pe},qte={tag:"h5",wrapTag:"div",closeAriaLabel:"Close"};function to(e){let t;const{className:n,cssModule:r,children:i,toggle:o,tag:s,wrapTag:a,closeAriaLabel:l,close:c}=e,f=qe(e,Wte),h=Ie(me(n,"modal-header"),r);return!c&&o&&(t=H.createElement("button",{type:"button",onClick:o,className:Ie("btn-close",r),"aria-label":l})),H.createElement(a,$e({},f,{className:h}),H.createElement(s,{className:Ie("modal-title",r)},i),c||t)}to.propTypes=Yte;to.defaultProps=qte;const Gte=["className","cssModule","tag"],Zte={className:C.string,cssModule:C.object,tag:Pe},Kte={tag:"div"};function Oi(e){const{className:t,cssModule:n,tag:r}=e,i=qe(e,Gte),o=Ie(me(t,"modal-body"),n);return H.createElement(r,$e({},i,{className:o}))}Oi.propTypes=Zte;Oi.defaultProps=Kte;const Xte=["className","cssModule","tag"],Qte={className:C.string,cssModule:C.object,tag:Pe},Jte={tag:"div"};function Zs(e){const{className:t,cssModule:n,tag:r}=e,i=qe(e,Xte),o=Ie(me(t,"modal-footer"),n);return H.createElement(r,$e({},i,{className:o}))}Zs.propTypes=Qte;Zs.defaultProps=Jte;const ene={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"};function Yd(e){const t=me("tooltip","show",e.popperClassName),n=me("tooltip-inner",e.innerClassName);return H.createElement(ZI,$e({},e,{arrowClassName:"tooltip-arrow",popperClassName:t,innerClassName:n}))}Yd.propTypes=o_;Yd.defaultProps=ene;C.bool,C.bool,C.string,C.object,C.bool,C.bool,C.oneOfType([C.func,C.string,C.object]),C.oneOfType([C.bool,C.string]),C.string,C.bool;const tne=["className","cssModule","tag","flush","horizontal","numbered"],nne={className:C.string,cssModule:C.object,flush:C.bool,horizontal:C.oneOfType([C.bool,C.string]),numbered:C.bool,tag:Pe},rne={tag:"ul",horizontal:!1,numbered:!1},ine=e=>e===!1?!1:e===!0||e==="xs"?"list-group-horizontal":`list-group-horizontal-${e}`;function IC(e){const{className:t,cssModule:n,tag:r,flush:i,horizontal:o,numbered:s}=e,a=qe(e,tne),l=Ie(me(t,"list-group",i?"list-group-flush":ine(o),{"list-group-numbered":s}),n);return H.createElement(r,$e({},a,{className:l}))}IC.propTypes=nne;IC.defaultProps=rne;const one=["className","cssModule","tag","innerRef"],sne={children:C.node,tag:Pe,innerRef:C.oneOfType([C.object,C.func,C.string]),className:C.string,cssModule:C.object},ane={tag:"form"};class JI extends B.Component{constructor(t){super(t),this.getRef=this.getRef.bind(this),this.submit=this.submit.bind(this)}getRef(t){this.props.innerRef&&this.props.innerRef(t),this.ref=t}submit(){this.ref&&this.ref.submit()}render(){const t=this.props,{className:n,cssModule:r,tag:i,innerRef:o}=t,s=qe(t,one),a=Ie(n,r);return H.createElement(i,$e({},s,{ref:o,className:a}))}}JI.propTypes=sne;JI.defaultProps=ane;C.node,C.string,C.object,C.bool,C.bool;const lne=["className","cssModule","row","disabled","check","inline","floating","tag","switch"],cne={children:C.node,row:C.bool,check:C.bool,switch:C.bool,inline:C.bool,floating:C.bool,disabled:C.bool,tag:Pe,className:C.string,cssModule:C.object},une={tag:"div"};function gr(e){const{className:t,cssModule:n,row:r,disabled:i,check:o,inline:s,floating:a,tag:l,switch:c}=e,f=qe(e,lne),h=o||c,p=Ie(me(t,r?"row":!1,h?"form-check":"mb-3",c?"form-switch":!1,h&&s?"form-check-inline":!1,h&&i?"disabled":!1,a&&"form-floating"),n);return l==="fieldset"&&(f.disabled=i),H.createElement(l,$e({},f,{className:p}))}gr.propTypes=cne;gr.defaultProps=une;C.node,C.bool,C.string,C.string,C.object;const fne=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"],dne={children:C.node,type:C.string,size:C.oneOfType([C.number,C.string]),bsSize:C.string,valid:C.bool,invalid:C.bool,tag:Pe,innerRef:C.oneOfType([C.object,C.func,C.string]),plaintext:C.bool,addon:C.bool,className:C.string,cssModule:C.object},hne={type:"text"};let FC=class extends H.Component{constructor(t){super(t),this.getRef=this.getRef.bind(this),this.focus=this.focus.bind(this)}getRef(t){this.props.innerRef&&this.props.innerRef(t),this.ref=t}focus(){this.ref&&this.ref.focus()}render(){let t=this.props,{className:n,cssModule:r,type:i,bsSize:o,valid:s,invalid:a,tag:l,addon:c,plaintext:f,innerRef:h}=t,p=qe(t,fne);const g=["switch","radio","checkbox"].indexOf(i)>-1,v=/\D/g,y=i==="textarea",x=i==="select",b=i==="range";let w=l||(x||y?i:"input"),S="form-control";f?(S=`${S}-plaintext`,w=l||"input"):b?S="form-range":x?S="form-select":g&&(c?S=null:S="form-check-input"),p.size&&v.test(p.size)&&(_w(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),o=p.size,delete p.size);const T=Ie(me(n,a&&"is-invalid",s&&"is-valid",o?x?`form-select-${o}`:`form-control-${o}`:!1,S),r);return(w==="input"||l&&typeof l=="function")&&(p.type=i==="switch"?"checkbox":i),p.children&&!(f||i==="select"||typeof w!="string"||w==="select")&&(_w(`Input with a type of "${i}" cannot have children. Please use "value"/"defaultValue" instead.`),delete p.children),H.createElement(w,$e({},p,{ref:h,className:T,"aria-invalid":a}))}};FC.propTypes=dne;FC.defaultProps=hne;var Rc=FC;const pne=["className","cssModule","tag","type","size"],mne={className:C.string,cssModule:C.object,size:C.string,tag:Pe,type:C.string},gne={tag:"div"};function qd(e){const{className:t,cssModule:n,tag:r,type:i,size:o}=e,s=qe(e,pne),a=Ie(me(t,"input-group",o?`input-group-${o}`:null),n);return e.type==="dropdown"?H.createElement(Gc,$e({},s,{className:a})):H.createElement(BI.Provider,{value:{insideInputGroup:!0}},H.createElement(r,$e({},s,{className:a})))}qd.propTypes=mne;qd.defaultProps=gne;C.string,C.object;const q0=C.oneOfType([C.number,C.string]),kl=C.oneOfType([C.bool,C.string,C.number,C.shape({size:q0,order:q0,offset:q0})]);C.node,C.bool,C.bool,C.string,C.string,C.string,C.object,C.array;C.bool,C.bool,C.node,C.string,C.object,C.bool,C.bool,C.bool,C.bool,C.bool,C.bool,C.bool;function Xg(){}const YM=C.shape(Zt.propTypes),e6={autoFocus:C.bool,backdrop:C.bool,backdropClassName:C.string,backdropTransition:YM,children:C.node,className:C.string,container:Fs,cssModule:C.object,direction:C.oneOf(["start","end","bottom","top"]),fade:C.bool,innerRef:C.oneOfType([C.object,C.string,C.func]),isOpen:C.bool,keyboard:C.bool,labelledBy:C.string,offcanvasTransition:YM,onClosed:C.func,onEnter:C.func,onExit:C.func,style:C.object,onOpened:C.func,returnFocusAfterClose:C.bool,role:C.string,scrollable:C.bool,toggle:C.func,trapFocus:C.bool,unmountOnClose:C.bool,zIndex:C.oneOfType([C.number,C.string])},vne=Object.keys(e6),yne={isOpen:!1,autoFocus:!0,direction:"start",scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:Xg,onClosed:Xg,offcanvasTransition:{timeout:Ga.Offcanvas},backdropTransition:{mountOnEnter:!0,timeout:Ga.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1};class hi extends H.Component{constructor(t){super(t),this._element=null,this._originalBodyPadding=null,this.getFocusableChildren=this.getFocusableChildren.bind(this),this.handleBackdropClick=this.handleBackdropClick.bind(this),this.handleBackdropMouseDown=this.handleBackdropMouseDown.bind(this),this.handleEscape=this.handleEscape.bind(this),this.handleTab=this.handleTab.bind(this),this.onOpened=this.onOpened.bind(this),this.onClosed=this.onClosed.bind(this),this.manageFocusAfterClose=this.manageFocusAfterClose.bind(this),this.clearBackdropAnimationTimeout=this.clearBackdropAnimationTimeout.bind(this),this.trapFocus=this.trapFocus.bind(this),this.state={isOpen:!1}}componentDidMount(){const{isOpen:t,autoFocus:n,onEnter:r}=this.props;t&&(this.init(),this.setState({isOpen:!0}),n&&this.setFocus()),r&&r(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}componentDidUpdate(t,n){if(this.props.isOpen&&!t.isOpen){this.init(),this.setState({isOpen:!0});return}this.props.autoFocus&&this.state.isOpen&&!n.isOpen&&this.setFocus(),this._element&&t.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}componentWillUnmount(){this.clearBackdropAnimationTimeout(),this.props.onExit&&this.props.onExit(),this._element&&(this.destroy(),(this.props.isOpen||this.state.isOpen)&&this.close()),document.removeEventListener("focus",this.trapFocus,!0),this._isMounted=!1}handleBackdropClick(t){if(t.target===this._mouseDownElement){t.stopPropagation();const n=this._backdrop;if(!this.props.isOpen||this.props.backdrop!==!0)return;n&&t.target===n&&this.props.toggle&&this.props.toggle(t)}}handleTab(t){if(t.which!==9||this.offcanvasIndex0&&(t.preventDefault(),t.stopPropagation(),n[0].focus())}init(){try{this._triggeringElement=document.activeElement}catch{this._triggeringElement=null}this._element||(this._element=document.createElement("div"),this._element.setAttribute("tabindex","-1"),this._element.style.position="relative",this._element.style.zIndex=this.props.zIndex,this._mountContainer=Mc(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=RI(),NI(),hi.openCount===0&&this.props.backdrop&&!this.props.scrollable&&(document.body.style.overflow="hidden"),this.offcanvasIndex=hi.openCount,hi.openCount+=1}destroy(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}manageFocusAfterClose(){if(this._triggeringElement){const{returnFocusAfterClose:t}=this.props;this._triggeringElement.focus&&t&&this._triggeringElement.focus(),this._triggeringElement=null}}close(){this.manageFocusAfterClose(),hi.openCount=Math.max(0,hi.openCount-1),document.body.style.overflow=null,yC(this._originalBodyPadding)}clearBackdropAnimationTimeout(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}render(){const{direction:t,unmountOnClose:n}=this.props;if(this._element&&(this.state.isOpen||!n)){const r=!!this._element&&!this.state.isOpen&&!n;this._element.style.display=r?"none":"block";const{className:i,backdropClassName:o,cssModule:s,isOpen:a,backdrop:l,role:c,labelledBy:f,style:h}=this.props,p={onKeyUp:this.handleEscape,onKeyDown:this.handleTab,"aria-labelledby":f,role:c,tabIndex:"-1"},g=this.props.fade,v=We(We(We({},Zt.defaultProps),this.props.offcanvasTransition),{},{baseClass:g?this.props.offcanvasTransition.baseClass:"",timeout:g?this.props.offcanvasTransition.timeout:0}),y=We(We(We({},Zt.defaultProps),this.props.backdropTransition),{},{baseClass:g?this.props.backdropTransition.baseClass:"",timeout:g?this.props.backdropTransition.timeout:0}),x=l&&(g?H.createElement(Zt,$e({},y,{in:a&&!!l,innerRef:w=>{this._backdrop=w},cssModule:s,className:Ie(me("offcanvas-backdrop",o),s),onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown})):H.createElement("div",{className:Ie(me("offcanvas-backdrop","show",o),s),onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown})),b=Cr(this.props,vne);return H.createElement(XI,{node:this._element},H.createElement(Zt,$e({},b,p,v,{in:a,onEntered:this.onOpened,onExited:this.onClosed,cssModule:s,className:Ie(me("offcanvas",i,`offcanvas-${t}`),s),innerRef:w=>{this._dialog=w},style:We(We({},h),{},{visibility:a?"visible":"hidden"})}),this.props.children),x)}return null}}hi.propTypes=e6;hi.defaultProps=yne;hi.openCount=0;C.string,C.object;C.node,C.string,C.object,C.string,C.object,C.func;const _ne=["className","listClassName","cssModule","size","tag","listTag","aria-label"],bne={children:C.node,className:C.string,listClassName:C.string,cssModule:C.object,size:C.string,tag:Pe,listTag:Pe,"aria-label":C.string},wne={tag:"nav",listTag:"ul","aria-label":"pagination"};function s_(e){const{className:t,listClassName:n,cssModule:r,size:i,tag:o,listTag:s,"aria-label":a}=e,l=qe(e,_ne),c=Ie(me(t),r),f=Ie(me(n,"pagination",{[`pagination-${i}`]:!!i}),r);return H.createElement(o,{className:c,"aria-label":a},H.createElement(s,$e({},l,{className:f})))}s_.propTypes=bne;s_.defaultProps=wne;const xne=["active","className","cssModule","disabled","tag"],Sne={active:C.bool,children:C.node,className:C.string,cssModule:C.object,disabled:C.bool,tag:Pe},Cne={tag:"li"};function Os(e){const{active:t,className:n,cssModule:r,disabled:i,tag:o}=e,s=qe(e,xne),a=Ie(me(n,"page-item",{active:t,disabled:i}),r);return H.createElement(o,$e({},s,{className:a}))}Os.propTypes=Sne;Os.defaultProps=Cne;const Ene=["className","cssModule","next","previous","first","last","tag"],Tne={"aria-label":C.string,children:C.node,className:C.string,cssModule:C.object,next:C.bool,previous:C.bool,first:C.bool,last:C.bool,tag:Pe},One={tag:"a"};function Ps(e){let{className:t,cssModule:n,next:r,previous:i,first:o,last:s,tag:a}=e,l=qe(e,Ene);const c=Ie(me(t,"page-link"),n);let f;i?f="Previous":r?f="Next":o?f="First":s&&(f="Last");const h=e["aria-label"]||f;let p;i?p="‹":r?p="›":o?p="«":s&&(p="»");let{children:g}=e;return g&&Array.isArray(g)&&g.length===0&&(g=null),!l.href&&a==="a"&&(a="button"),(i||r||o||s)&&(g=[H.createElement("span",{"aria-hidden":"true",key:"caret"},g||p),H.createElement("span",{className:"visually-hidden",key:"ariaLabel"},h)]),H.createElement(a,$e({},l,{className:c,"aria-label":h}),g)}Ps.propTypes=Tne;Ps.defaultProps=One;const Pne=H.createContext({}),t6={tag:Pe,activeTab:C.any,className:C.string,cssModule:C.object},kne={tag:"div"};class n6 extends B.Component{static getDerivedStateFromProps(t,n){return n.activeTab!==t.activeTab?{activeTab:t.activeTab}:null}constructor(t){super(t),this.state={activeTab:this.props.activeTab}}render(){const{className:t,cssModule:n,tag:r}=this.props,i=Cr(this.props,Object.keys(t6)),o=Ie(me("tab-content",t),n);return H.createElement(Pne.Provider,{value:{activeTabId:this.state.activeTab}},H.createElement(r,$e({},i,{className:o})))}}n6.propTypes=t6;n6.defaultProps=kne;C.string,C.object,C.any;const Mne=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"],Rne={children:C.node,className:C.string,closeClassName:C.string,closeAriaLabel:C.string,color:C.string,cssModule:C.object,fade:C.bool,innerRef:C.oneOfType([C.object,C.string,C.func]),isOpen:C.bool,tag:Pe,toggle:C.func,transition:C.shape(Zt.propTypes)},Nne={color:"success",isOpen:!0,tag:"div",closeAriaLabel:"Close",fade:!0,transition:We(We({},Zt.defaultProps),{},{unmountOnExit:!0})};function $C(e){const{className:t,closeClassName:n,closeAriaLabel:r,cssModule:i,tag:o,color:s,isOpen:a,toggle:l,children:c,transition:f,fade:h,innerRef:p}=e,g=qe(e,Mne),v=Ie(me(t,"alert",`alert-${s}`,{"alert-dismissible":l}),i),y=Ie(me("btn-close",n),i),x=We(We(We({},Zt.defaultProps),f),{},{baseClass:h?f.baseClass:"",timeout:h?f.timeout:0});return H.createElement(Zt,$e({},g,x,{tag:o,className:v,in:a,role:"alert",innerRef:p}),l?H.createElement("button",{type:"button",className:y,"aria-label":r,onClick:l}):null,c)}$C.propTypes=Rne;$C.defaultProps=Nne;C.node,C.string,C.object,C.bool,C.bool,C.shape(Zt.propTypes),C.oneOfType([C.object,C.string,C.func]);We(We({},Zt.defaultProps),{},{unmountOnExit:!0});C.string,C.object,C.oneOfType([C.object,C.string,C.func]);C.oneOfType([C.string,C.node]),C.func,C.string,C.object,C.node,C.string,C.oneOfType([C.string,C.number]),C.object,C.string;const Lne=["className","cssModule","tag","active","disabled","action","color"],Dne={action:C.bool,active:C.bool,className:C.string,cssModule:C.object,color:C.string,disabled:C.bool,tag:Pe},Ane={tag:"li"},jne=e=>{e.preventDefault()};function BC(e){const{className:t,cssModule:n,tag:r,active:i,disabled:o,action:s,color:a}=e,l=qe(e,Lne),c=Ie(me(t,i?"active":!1,o?"disabled":!1,s?"list-group-item-action":!1,a?`list-group-item-${a}`:!1,"list-group-item"),n);return o&&(l.onClick=jne),H.createElement(r,$e({},l,{className:c}))}BC.propTypes=Dne;BC.defaultProps=Ane;C.string,C.object;C.string,C.object;const Ine=["className","cssModule","tag","type"],Fne={className:C.string,cssModule:C.object,tag:Pe,type:C.string},$ne={tag:"ul"},UC=B.forwardRef((e,t)=>{const{className:n,cssModule:r,tag:i,type:o}=e,s=qe(e,Ine),a=Ie(me(n,o?`list-${o}`:!1),r);return H.createElement(i,$e({},s,{className:a,ref:t}))});UC.name="List";UC.propTypes=Fne;UC.defaultProps=$ne;const Bne=["className","cssModule","tag"],Une={className:C.string,cssModule:C.object,tag:Pe},zne={tag:"li"},zC=B.forwardRef((e,t)=>{const{className:n,cssModule:r,tag:i}=e,o=qe(e,Bne),s=Ie(me(n,"list-inline-item"),r);return H.createElement(i,$e({},o,{className:s,ref:t}))});zC.name="ListInlineItem";zC.propTypes=Une;zC.defaultProps=zne;const Hne=["defaultOpen"];class Vne extends B.Component{constructor(t){super(t),this.state={isOpen:t.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(){this.setState(t=>({isOpen:!t.isOpen}))}render(){return H.createElement(PC,$e({isOpen:this.state.isOpen,toggle:this.toggle},Cr(this.props,Hne)))}}Vne.propTypes=We({defaultOpen:C.bool},PC.propTypes);const Wne=["toggleEvents","defaultOpen"],Yne={defaultOpen:C.bool,toggler:C.string.isRequired,toggleEvents:C.arrayOf(C.string)},qne={toggleEvents:QJ};class r6 extends B.Component{constructor(t){super(t),this.togglers=null,this.removeEventListeners=null,this.toggle=this.toggle.bind(this),this.state={isOpen:t.defaultOpen||!1}}componentDidMount(){this.togglers=jI(this.props.toggler),this.togglers.length&&(this.removeEventListeners=JJ(this.togglers,this.toggle,this.props.toggleEvents))}componentWillUnmount(){this.togglers.length&&this.removeEventListeners&&this.removeEventListeners()}toggle(t){this.setState(({isOpen:n})=>({isOpen:!n})),t.preventDefault()}render(){return H.createElement(UI,$e({isOpen:this.state.isOpen},Cr(this.props,Wne)))}}r6.propTypes=Yne;r6.defaultProps=qne;const Gne=["defaultOpen"];class Gd extends B.Component{constructor(t){super(t),this.state={isOpen:t.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(t){this.setState(n=>({isOpen:!n.isOpen}),()=>{this.props.onToggle&&this.props.onToggle(t,this.state.isOpen)})}render(){return H.createElement(Gc,$e({isOpen:this.state.isOpen,toggle:this.toggle},Cr(this.props,Gne)))}}Gd.propTypes=We({defaultOpen:C.bool,onToggle:C.func},Gc.propTypes);const Zne=["defaultOpen"];class Er extends B.Component{constructor(t){super(t),this.state={isOpen:t.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(){this.setState(t=>({isOpen:!t.isOpen}))}render(){return H.createElement(Yd,$e({isOpen:this.state.isOpen,toggle:this.toggle},Cr(this.props,Zne)))}}Er.propTypes=We({defaultOpen:C.bool},Yd.propTypes);C.oneOf(["border","grow"]),C.oneOf(["sm"]),C.oneOf(["primary","secondary","success","danger","warning","info","light","dark"]),C.string,C.object,C.string;We(We({},wC.propTypes),{},{color:C.string,tag:Pe,animation:C.oneOf(["glow","wave"]),innerRef:C.oneOfType([C.object,C.func,C.string]),size:C.oneOf(["lg","sm","xs"])});C.string,C.string,C.bool,C.string,C.object;(()=>{if(typeof window!="object"||typeof window.CustomEvent=="function")return;const e=(t,n)=>{n=n||{bubbles:!1,cancelable:!1,detail:null};let r=document.createEvent("CustomEvent");return r.initCustomEvent(t,n.bubbles,n.cancelable,n.detail),r};window.CustomEvent=e})();(()=>{if(typeof Object.values=="function")return;Object.values=t=>Object.keys(t).map(n=>t[n])})();const Kne=e=>({error:"border-danger",default:""})[e],Xne=e=>({error:"text-danger",default:"text-muted"})[e],wo=({className:e,children:t,loading:n=!1,type:r="default",fullWidth:i=!1})=>{const o=me({"col-md-12":i,"col-md-10 offset-md-1":!i});return m.jsx(Xn,{className:me("g-0",e),children:m.jsx("div",{className:o,children:m.jsx(xr,{className:Kne(r),body:!0,children:m.jsxs("h3",{className:me("text-center mb-0",Xne(r)),children:[n&&m.jsx(Fe,{icon:Oj,spin:!0}),n&&m.jsx("span",{className:"ms-2",children:t??"Loading..."}),!n&&t]})})})})},cn=({title:e,children:t,bodyClassName:n,...r})=>m.jsxs(xr,{...r,children:[e&&m.jsx(Ka,{role:"heading",children:e}),m.jsx(Za,{className:n,children:t})]}),Nr=({children:e,type:t,className:n,small:r=!1})=>m.jsx(Xn,{className:n,children:m.jsx("div",{className:me({"col-md-10 offset-md-1":!r,"col-12":r}),children:m.jsx(cn,{role:"document",className:me("text-center",{"bg-main":t==="success","bg-danger":t==="error","bg-warning":t==="warning","text-white":t!=="warning"}),bodyClassName:me({"p-2":r}),children:e})})});var yp,Qne=new Uint8Array(16);function Jne(){if(!yp&&(yp=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!yp))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return yp(Qne)}const ere=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function tre(e){return typeof e=="string"&&ere.test(e)}var Fn=[];for(var G0=0;G0<256;++G0)Fn.push((G0+256).toString(16).substr(1));function nre(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Fn[e[t+0]]+Fn[e[t+1]]+Fn[e[t+2]]+Fn[e[t+3]]+"-"+Fn[e[t+4]]+Fn[e[t+5]]+"-"+Fn[e[t+6]]+Fn[e[t+7]]+"-"+Fn[e[t+8]]+Fn[e[t+9]]+"-"+Fn[e[t+10]]+Fn[e[t+11]]+Fn[e[t+12]]+Fn[e[t+13]]+Fn[e[t+14]]+Fn[e[t+15]]).toLowerCase();if(!tre(n))throw TypeError("Stringified UUID is invalid");return n}function HC(e,t,n){e=e||{};var r=e.random||(e.rng||Jne)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return nre(r)}const hn=(e=!1)=>{const[t,n]=B.useState(e);return[t,()=>n(!t),()=>n(!0),()=>n(!1)]},a_=()=>{const{current:e}=B.useRef(`dom-${HC()}`);return e},al=()=>B.useRef(null),i6=({checked:e=!1,onChange:t=qy,className:n,children:r,type:i,inline:o=!1})=>{const s=a_(),a=f=>t(f.target.checked,f),l={"form-switch":i==="switch","form-checkbox":i==="checkbox"},c=o?{display:"inline-block"}:{};return m.jsxs("span",{className:me("form-check",l,n),style:c,children:[m.jsx("input",{type:"checkbox",className:"form-check-input",id:s,checked:e,onChange:a}),m.jsx("label",{className:"form-check-label",htmlFor:s,children:r})]})},o6=e=>m.jsx(i6,{type:"checkbox",...e}),Nc=e=>m.jsx(i6,{type:"switch",...e}),Kc=({children:e,label:t,className:n="",labelClassName:r="",noMargin:i=!1,id:o})=>m.jsxs("div",{className:`${n} ${i?"":"mb-3"}`,children:[m.jsx("label",{className:`form-label ${r}`,htmlFor:o,children:t}),e]}),lm=({children:e,value:t,onChange:n,type:r,required:i,placeholder:o,className:s,labelClassName:a})=>{const l=a_();return m.jsx(Kc,{label:m.jsxs(m.Fragment,{children:[e,":"]}),className:s??"",labelClassName:a,id:l,children:m.jsx("input",{id:l,className:"form-control",type:r??"text",value:t,required:i??!0,placeholder:o,onChange:c=>n(c.target.value)})})};const rre=500;let _p;const Zd=({onChange:e,className:t,large:n=!0,noBorder:r=!1,initialValue:i=""})=>{const[o,s]=B.useState(i),a=()=>{_p&&clearTimeout(_p),_p=null},l=(c,f=rre)=>{s(c),a(),_p=setTimeout(()=>{e(c),a()},f)};return m.jsxs("div",{className:me("search-field",t),children:[m.jsx("input",{type:"text",className:me("form-control search-field__input",{"form-control-lg":n,"search-field__input--no-border":r}),placeholder:"Search...",value:o,onChange:c=>l(c.target.value)}),m.jsx(Fe,{icon:pK,className:"search-field__icon"}),m.jsx("div",{className:"close search-field__close btn-close",hidden:o==="",id:"search-field__close",onClick:()=>l("",0)})]})};const Bo=({text:e,disabled:t=!1,className:n,children:r,dropdownClassName:i,noCaret:o,end:s=!1,minWidth:a,inline:l,size:c})=>{const[f,h]=hn(),p=me("dropdown-btn__toggle",n,{"btn-block":!l,"dropdown-btn__toggle--with-caret":!o}),g={minWidth:a&&`${a}px`};return m.jsxs(Gc,{isOpen:f,toggle:h,disabled:t,className:i,children:[m.jsx(Vd,{size:c,caret:!o,className:p,color:"primary",children:e}),m.jsx(Zc,{className:"w-100",end:s,style:g,children:r})]})},l_=({children:e,minWidth:t})=>m.jsx(Bo,{text:m.jsx(Fe,{className:"px-1",icon:oK}),size:"sm",minWidth:t,end:!0,noCaret:!0,inline:!0,children:e});const wf=({children:e,...t})=>m.jsx($I,{className:"nav-pills__nav-link",tag:Q4,...t,children:e}),s6=({children:e,fill:t=!1,className:n=""})=>m.jsx(xr,{className:`nav-pills__nav p-0 overflow-hidden ${n}`,body:!0,children:m.jsx(Jy,{pills:!0,fill:t,children:B.Children.map(e,r=>{if(!B.isValidElement(r)||r.type!==wf)throw new Error("Only NavPillItem children are allowed inside NavPills.");return r})})}),c_=(e,t,n)=>e!==t?"ASC":n?{ASC:"DESC",DESC:void 0}[n]:"ASC",a6=(e,{field:t,dir:n})=>!t||!n?e:e.sort((r,i)=>{const o=n==="ASC"?1:-1,s=n==="ASC"?-1:1;return r[t]>i[t]?o:s}),l6=e=>e.dir?`${e.field}-${e.dir}`:void 0,ire=e=>{const[t,n]=e.split("-");return{field:t,dir:n}};function Kd({items:e,order:t,onChange:n,isButton:r=!0,right:i=!1,prefixed:o=!0}){const s=a=>()=>{const l=c_(a,t.field,t.dir);n(l?a:void 0,l)};return m.jsxs(Gd,{children:[m.jsxs(Vd,{caret:!0,color:r?"primary":"link",className:me({"dropdown-btn__toggle btn-block pe-4 overflow-hidden":r,"btn-sm p-0":!r}),children:[!r&&m.jsx(m.Fragment,{children:"Order by"}),r&&!t.field&&m.jsx("i",{children:"Order by..."}),r&&t.field&&m.jsxs(m.Fragment,{children:[o&&"Order by: ",e[t.field]," - ",m.jsx("small",{children:t.dir??"DESC"})]})]}),m.jsxs(Zc,{end:i,className:me("w-100",{"ordering-dropdown__menu--link":!r}),children:[Ug(e).map(([a,l])=>m.jsxs(ze,{active:t.field===a,onClick:s(a),children:[l,t.field===a&&m.jsx(Fe,{icon:t.dir==="ASC"?cK:ZZ,className:"ordering-dropdown__sort-icon"})]},a)),m.jsx(ze,{divider:!0}),m.jsx(ze,{disabled:!t.field,onClick:()=>n(),children:m.jsx("i",{children:"Clear selection"})})]})]})}const VC="#4696e5",ore="rgba(70, 150, 229, 0.4)",c6="#f77f28",sre="rgba(247, 127, 40, 0.4)",are="white",lre="#161b22",u6=e=>{var t;return(t=document.querySelector("html"))==null?void 0:t.setAttribute("data-theme",e)},cre=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("data-theme"))==="dark"};var ure=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;t[n]=i;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,n);if(s.value!==i||s.enumerable!==!0)return!1}return!0},qM=typeof Symbol<"u"&&Symbol,fre=ure,dre=function(){return typeof qM!="function"||typeof Symbol!="function"||typeof qM("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:fre()},hre="Function.prototype.bind called on incompatible ",Z0=Array.prototype.slice,pre=Object.prototype.toString,mre="[object Function]",gre=function(t){var n=this;if(typeof n!="function"||pre.call(n)!==mre)throw new TypeError(hre+n);for(var r=Z0.call(arguments,1),i,o=function(){if(this instanceof i){var f=n.apply(this,r.concat(Z0.call(arguments)));return Object(f)===f?f:this}else return n.apply(t,r.concat(Z0.call(arguments)))},s=Math.max(0,n.length-r.length),a=[],l=0;l"u"?st:Jo(Uint8Array),uc={"%AggregateError%":typeof AggregateError>"u"?st:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?st:ArrayBuffer,"%ArrayIteratorPrototype%":Ml?Jo([][Symbol.iterator]()):st,"%AsyncFromSyncIteratorPrototype%":st,"%AsyncFunction%":jl,"%AsyncGenerator%":jl,"%AsyncGeneratorFunction%":jl,"%AsyncIteratorPrototype%":jl,"%Atomics%":typeof Atomics>"u"?st:Atomics,"%BigInt%":typeof BigInt>"u"?st:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?st:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?st:Float32Array,"%Float64Array%":typeof Float64Array>"u"?st:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?st:FinalizationRegistry,"%Function%":f6,"%GeneratorFunction%":jl,"%Int8Array%":typeof Int8Array>"u"?st:Int8Array,"%Int16Array%":typeof Int16Array>"u"?st:Int16Array,"%Int32Array%":typeof Int32Array>"u"?st:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ml?Jo(Jo([][Symbol.iterator]())):st,"%JSON%":typeof JSON=="object"?JSON:st,"%Map%":typeof Map>"u"?st:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ml?st:Jo(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?st:Promise,"%Proxy%":typeof Proxy>"u"?st:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?st:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?st:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ml?st:Jo(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?st:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ml?Jo(""[Symbol.iterator]()):st,"%Symbol%":Ml?Symbol:st,"%SyntaxError%":md,"%ThrowTypeError%":bre,"%TypedArray%":wre,"%TypeError%":cc,"%Uint8Array%":typeof Uint8Array>"u"?st:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?st:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?st:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?st:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?st:WeakMap,"%WeakRef%":typeof WeakRef>"u"?st:WeakRef,"%WeakSet%":typeof WeakSet>"u"?st:WeakSet},xre=function e(t){var n;if(t==="%AsyncFunction%")n=K0("async function () {}");else if(t==="%GeneratorFunction%")n=K0("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=K0("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(n=Jo(i.prototype))}return uc[t]=n,n},GM={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},u_=WC,Qg=_re,Sre=u_.call(Function.call,Array.prototype.concat),Cre=u_.call(Function.apply,Array.prototype.splice),ZM=u_.call(Function.call,String.prototype.replace),Jg=u_.call(Function.call,String.prototype.slice),Ere=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Tre=/\\(\\)?/g,Ore=function(t){var n=Jg(t,0,1),r=Jg(t,-1);if(n==="%"&&r!=="%")throw new md("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new md("invalid intrinsic syntax, expected opening `%`");var i=[];return ZM(t,Ere,function(o,s,a,l){i[i.length]=a?ZM(l,Tre,"$1"):s||o}),i},Pre=function(t,n){var r=t,i;if(Qg(GM,r)&&(i=GM[r],r="%"+i[0]+"%"),Qg(uc,r)){var o=uc[r];if(o===jl&&(o=xre(r)),typeof o>"u"&&!n)throw new cc("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:o}}throw new md("intrinsic "+t+" does not exist!")},YC=function(t,n){if(typeof t!="string"||t.length===0)throw new cc("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new cc('"allowMissing" argument must be a boolean');var r=Ore(t),i=r.length>0?r[0]:"",o=Pre("%"+i+"%",n),s=o.name,a=o.value,l=!1,c=o.alias;c&&(i=c[0],Cre(r,Sre([0,1],c)));for(var f=1,h=!0;f=r.length){var y=Aa(a,p);h=!!y,h&&"get"in y&&!("originalValue"in y.get)?a=y.get:a=a[p]}else h=Qg(a,p),a=a[p];h&&!l&&(uc[s]=a)}}return a},d6={exports:{}};(function(e){var t=WC,n=YC,r=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||t.call(i,r),s=n("%Object.getOwnPropertyDescriptor%",!0),a=n("%Object.defineProperty%",!0),l=n("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}e.exports=function(h){var p=o(t,i,arguments);if(s&&a){var g=s(p,"length");g.configurable&&a(p,"length",{value:1+l(0,h.length-(arguments.length-1))})}return p};var c=function(){return o(t,r,arguments)};a?a(e.exports,"apply",{value:c}):e.exports.apply=c})(d6);var kre=d6.exports,h6=YC,p6=kre,Mre=p6(h6("String.prototype.indexOf")),Rre=function(t,n){var r=h6(t,!!n);return typeof r=="function"&&Mre(t,".prototype.")>-1?p6(r):r};const Nre={},Lre=Object.freeze(Object.defineProperty({__proto__:null,default:Nre},Symbol.toStringTag,{value:"Module"})),Dre=m$(Lre);var qC=typeof Map=="function"&&Map.prototype,Q0=Object.getOwnPropertyDescriptor&&qC?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ev=qC&&Q0&&typeof Q0.get=="function"?Q0.get:null,Are=qC&&Map.prototype.forEach,GC=typeof Set=="function"&&Set.prototype,J0=Object.getOwnPropertyDescriptor&&GC?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,tv=GC&&J0&&typeof J0.get=="function"?J0.get:null,jre=GC&&Set.prototype.forEach,Ire=typeof WeakMap=="function"&&WeakMap.prototype,xf=Ire?WeakMap.prototype.has:null,Fre=typeof WeakSet=="function"&&WeakSet.prototype,Sf=Fre?WeakSet.prototype.has:null,$re=typeof WeakRef=="function"&&WeakRef.prototype,KM=$re?WeakRef.prototype.deref:null,Bre=Boolean.prototype.valueOf,Ure=Object.prototype.toString,zre=Function.prototype.toString,Hre=String.prototype.match,ZC=String.prototype.slice,ps=String.prototype.replace,Vre=String.prototype.toUpperCase,XM=String.prototype.toLowerCase,m6=RegExp.prototype.test,QM=Array.prototype.concat,Fi=Array.prototype.join,Wre=Array.prototype.slice,JM=Math.floor,ww=typeof BigInt=="function"?BigInt.prototype.valueOf:null,e1=Object.getOwnPropertySymbols,xw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Lc=typeof Symbol=="function"&&typeof Symbol.iterator=="object",tr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Lc||"symbol")?Symbol.toStringTag:null,g6=Object.prototype.propertyIsEnumerable,e3=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function t3(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||m6.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-JM(-e):JM(e);if(r!==e){var i=String(r),o=ZC.call(t,i.length+1);return ps.call(i,n,"$&_")+"."+ps.call(ps.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ps.call(t,n,"$&_")}var t1=Dre.custom,n1=t1&&y6(t1)?t1:null,Yre=function e(t,n,r,i){var o=n||{};if(es(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(es(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=es(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(es(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(es(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return b6(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?t3(t,l):l}if(typeof t=="bigint"){var c=String(t)+"n";return a?t3(t,c):c}var f=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=f&&f>0&&typeof t=="object")return Sw(t)?"[Array]":"[Object]";var h=fie(o,r);if(typeof i>"u")i=[];else if(_6(i,t)>=0)return"[Circular]";function p(ee,q,X){if(q&&(i=Wre.call(i),i.push(q)),X){var ie={depth:o.depth};return es(o,"quoteStyle")&&(ie.quoteStyle=o.quoteStyle),e(ee,ie,r+1,i)}return e(ee,o,r+1,i)}if(typeof t=="function"){var g=nie(t),v=bp(t,p);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(v.length>0?" { "+Fi.call(v,", ")+" }":"")}if(y6(t)){var y=Lc?ps.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):xw.call(t);return typeof t=="object"&&!Lc?Nu(y):y}if(lie(t)){for(var x="<"+XM.call(String(t.nodeName)),b=t.attributes||[],w=0;w",x}if(Sw(t)){if(t.length===0)return"[]";var S=bp(t,p);return h&&!uie(S)?"["+Cw(S,h)+"]":"[ "+Fi.call(S,", ")+" ]"}if(Kre(t)){var T=bp(t,p);return"cause"in t&&!g6.call(t,"cause")?"{ ["+String(t)+"] "+Fi.call(QM.call("[cause]: "+p(t.cause),T),", ")+" }":T.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Fi.call(T,", ")+" }"}if(typeof t=="object"&&s){if(n1&&typeof t[n1]=="function")return t[n1]();if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(rie(t)){var k=[];return Are.call(t,function(ee,q){k.push(p(q,t,!0)+" => "+p(ee,t))}),n3("Map",ev.call(t),k,h)}if(sie(t)){var P=[];return jre.call(t,function(ee){P.push(p(ee,t))}),n3("Set",tv.call(t),P,h)}if(iie(t))return r1("WeakMap");if(aie(t))return r1("WeakSet");if(oie(t))return r1("WeakRef");if(Qre(t))return Nu(p(Number(t)));if(eie(t))return Nu(p(ww.call(t)));if(Jre(t))return Nu(Bre.call(t));if(Xre(t))return Nu(p(String(t)));if(!Gre(t)&&!Zre(t)){var N=bp(t,p),D=e3?e3(t)===Object.prototype:t instanceof Object||t.constructor===Object,V=t instanceof Object?"":"null prototype",A=!D&&tr&&Object(t)===t&&tr in t?ZC.call(Ks(t),8,-1):V?"Object":"",W=D||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Y=W+(A||V?"["+Fi.call(QM.call([],A||[],V||[]),": ")+"] ":"");return N.length===0?Y+"{}":h?Y+"{"+Cw(N,h)+"}":Y+"{ "+Fi.call(N,", ")+" }"}return String(t)};function v6(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function qre(e){return ps.call(String(e),/"/g,""")}function Sw(e){return Ks(e)==="[object Array]"&&(!tr||!(typeof e=="object"&&tr in e))}function Gre(e){return Ks(e)==="[object Date]"&&(!tr||!(typeof e=="object"&&tr in e))}function Zre(e){return Ks(e)==="[object RegExp]"&&(!tr||!(typeof e=="object"&&tr in e))}function Kre(e){return Ks(e)==="[object Error]"&&(!tr||!(typeof e=="object"&&tr in e))}function Xre(e){return Ks(e)==="[object String]"&&(!tr||!(typeof e=="object"&&tr in e))}function Qre(e){return Ks(e)==="[object Number]"&&(!tr||!(typeof e=="object"&&tr in e))}function Jre(e){return Ks(e)==="[object Boolean]"&&(!tr||!(typeof e=="object"&&tr in e))}function y6(e){if(Lc)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!xw)return!1;try{return xw.call(e),!0}catch{}return!1}function eie(e){if(!e||typeof e!="object"||!ww)return!1;try{return ww.call(e),!0}catch{}return!1}var tie=Object.prototype.hasOwnProperty||function(e){return e in this};function es(e,t){return tie.call(e,t)}function Ks(e){return Ure.call(e)}function nie(e){if(e.name)return e.name;var t=Hre.call(zre.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function _6(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return b6(ZC.call(e,0,t.maxStringLength),t)+r}var i=ps.call(ps.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,cie);return v6(i,"single",t)}function cie(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+Vre.call(t.toString(16))}function Nu(e){return"Object("+e+")"}function r1(e){return e+" { ? }"}function n3(e,t,n,r){var i=r?Cw(n,r):Fi.call(n,", ");return e+" ("+t+") {"+i+"}"}function uie(e){for(var t=0;t=0)return!1;return!0}function fie(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Fi.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Fi.call(Array(t+1),n)}}function Cw(e,t){if(e.length===0)return"";var n=` `+t.prev+t.base;return n+Fi.call(e,","+n)+` -`+t.prev}function bp(e,t){var n=Sw(e),r=[];if(n){r.length=e.length;for(var i=0;i1;){var n=t.pop(),r=n.obj[n.prop];if(wa(r)){for(var i=[],o=0;o=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===Tie.RFC1738&&(c===40||c===41)){a+=s.charAt(l);continue}if(c<128){a=a+Di[c];continue}if(c<2048){a=a+(Di[192|c>>6]+Di[128|c&63]);continue}if(c<55296||c>=57344){a=a+(Di[224|c>>12]+Di[128|c>>6&63]+Di[128|c&63]);continue}l+=1,c=65536+((c&1023)<<10|s.charCodeAt(l)&1023),a+=Di[240|c>>18]+Di[128|c>>12&63]+Di[128|c>>6&63]+Di[128|c&63]}return a},Nie=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],i=0;i"u"&&(S=0)}if(typeof l=="function"?b=l(n,b):b instanceof Date?b=h(b):r==="comma"&&po(b)&&(b=Ew.maybeMap(b,function(F){return F instanceof Date?h(F):F})),b===null){if(o)return a&&!v?a(n,$n.encoder,y,"key",p):n;b=""}if(Uie(b)||Ew.isBuffer(b)){if(a){var P=v?n:a(n,$n.encoder,y,"key",p);if(r==="comma"&&v){for(var N=Fie.call(String(b),","),D="",V=0;V"u")return A;var W;if(r==="comma"&&po(b))W=[{value:b.length>0?b.join(",")||null:void 0}];else if(po(l))W=l;else{var Y=Object.keys(b);W=c?Y.sort(c):Y}for(var ee=i&&po(b)&&b.length===1?n+"[]":n,q=0;q"u"?$n.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:$n.charsetSentinel,delimiter:typeof t.delimiter>"u"?$n.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:$n.encode,encoder:typeof t.encoder=="function"?t.encoder:$n.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:$n.encodeValuesOnly,filter:o,format:r,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:$n.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:$n.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:$n.strictNullHandling}},Vie=function(e,t){var n=e,r=Hie(t),i,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):po(r.filter)&&(o=r.filter,i=o);var s=[];if(typeof n!="object"||n===null)return"";var a;t&&t.arrayFormat in r3?a=t.arrayFormat:t&&"indices"in t?a=t.indices?"indices":"repeat":a="indices";var l=r3[a];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=l==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var f=S6(),h=0;h0?v+g:""},Dc=x6,Tw=Object.prototype.hasOwnProperty,Wie=Array.isArray,Sn={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Dc.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Yie=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},E6=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},qie="utf8=%26%2310003%3B",Gie="utf8=%E2%9C%93",Zie=function(t,n){var r={},i=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=n.parameterLimit===1/0?void 0:n.parameterLimit,s=i.split(n.delimiter,o),a=-1,l,c=n.charset;if(n.charsetSentinel)for(l=0;l-1&&(v=Wie(v)?[v]:v),Tw.call(r,g)?r[g]=Dc.combine(r[g],v):r[g]=v}return r},Kie=function(e,t,n,r){for(var i=r?t:E6(t,n),o=e.length-1;o>=0;--o){var s,a=e[o];if(a==="[]"&&n.parseArrays)s=[].concat(i);else{s=n.plainObjects?Object.create(null):{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,c=parseInt(l,10);!n.parseArrays&&l===""?s={0:i}:!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(s=[],s[c]=i):l!=="__proto__"&&(s[l]=i)}i=s}return i},Xie=function(t,n,r,i){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=r.depth>0&&s.exec(o),c=l?o.slice(0,l.index):o,f=[];if(c){if(!r.plainObjects&&Tw.call(Object.prototype,c)&&!r.allowPrototypes)return;f.push(c)}for(var h=0;r.depth>0&&(l=a.exec(o))!==null&&h"u"?Sn.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Sn.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Sn.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Sn.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Sn.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Sn.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Sn.comma,decoder:typeof t.decoder=="function"?t.decoder:Sn.decoder,delimiter:typeof t.delimiter=="string"||Dc.isRegExp(t.delimiter)?t.delimiter:Sn.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Sn.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Sn.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Sn.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Sn.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Sn.strictNullHandling}},Jie=function(e,t){var n=Qie(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?Zie(e,n):e,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),s=0;sT6.parse(e,{ignoreQueryPrefix:!0}),Xd=e=>T6.stringify(e,{arrayFormat:"brackets"});var f_=(e=>(e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.INVALID_SHORT_URL_DELETION="INVALID_SHORT_URL_DELETION",e.DOMAIN_NOT_FOUND="DOMAIN_NOT_FOUND",e.FORBIDDEN_OPERATION="FORBIDDEN_OPERATION",e.INVALID_URL="INVALID_URL",e.INVALID_SLUG="INVALID_SLUG",e.INVALID_SHORTCODE="INVALID_SHORTCODE",e.TAG_CONFLICT="TAG_CONFLICT",e.TAG_NOT_FOUND="TAG_NOT_FOUND",e.MERCURE_NOT_CONFIGURED="MERCURE_NOT_CONFIGURED",e.INVALID_AUTHORIZATION="INVALID_AUTHORIZATION",e.INVALID_API_KEY="INVALID_API_KEY",e.NOT_FOUND="NOT_FOUND",e))(f_||{}),d_=(e=>(e.INVALID_ARGUMENT="https://shlink.io/api/error/invalid-data",e.INVALID_SHORT_URL_DELETION="https://shlink.io/api/error/invalid-short-url-deletion",e.DOMAIN_NOT_FOUND="https://shlink.io/api/error/domain-not-found",e.FORBIDDEN_OPERATION="https://shlink.io/api/error/forbidden-tag-operation",e.INVALID_URL="https://shlink.io/api/error/invalid-url",e.INVALID_SLUG="https://shlink.io/api/error/non-unique-slug",e.INVALID_SHORTCODE="https://shlink.io/api/error/short-url-not-found",e.TAG_CONFLICT="https://shlink.io/api/error/tag-conflict",e.TAG_NOT_FOUND="https://shlink.io/api/error/tag-not-found",e.MERCURE_NOT_CONFIGURED="https://shlink.io/api/error/mercure-not-configured",e.INVALID_AUTHORIZATION="https://shlink.io/api/error/missing-authentication",e.INVALID_API_KEY="https://shlink.io/api/error/invalid-api-key",e.NOT_FOUND="https://shlink.io/api/error/not-found",e))(d_||{});const ioe=(e,t)=>{const[n,r]=e.split("://"),[,...i]=r.split("/"),o=i.length?`/${i.join("/")}`:"";return`${n}://${t}${o}`},ooe=(e,t)=>`${e}/rest/v${t}`,soe=Fd(Ao),aoe=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:n,...r})=>({...r,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:n===!0?"true":void 0,orderBy:l6(e)}),loe=e=>e===null||!(typeof e=="object"&&"type"in e&&"status"in e)?!1:(e.type===f_.NOT_FOUND||e.type===d_.NOT_FOUND)&&e.status===404;class coe{constructor(t,n,r){xe(this,"apiVersion");xe(this,"listShortUrls",async(t={})=>this.performRequest({url:"/short-urls",query:aoe(t)}).then(({shortUrls:n})=>n));xe(this,"createShortUrl",async t=>{const n=Fd(r=>Wn(r)||Ao(r),t);return this.performRequest({url:"/short-urls",method:"POST",body:n})});xe(this,"getShortUrlVisits",async(t,n)=>this.performRequest({url:`/short-urls/${t}/visits`,query:n}).then(({visits:r})=>r));xe(this,"getTagVisits",async(t,n)=>this.performRequest({url:`/tags/${t}/visits`,query:n}).then(({visits:r})=>r));xe(this,"getDomainVisits",async(t,n)=>this.performRequest({url:`/domains/${t}/visits`,query:n}).then(({visits:r})=>r));xe(this,"getOrphanVisits",async t=>this.performRequest({url:"/visits/orphan",query:t}).then(({visits:n})=>n));xe(this,"getNonOrphanVisits",async t=>this.performRequest({url:"/visits/non-orphan",query:t}).then(({visits:n})=>n));xe(this,"getVisitsOverview",async()=>this.performRequest({url:"/visits"}).then(({visits:t})=>t));xe(this,"getShortUrl",async(t,n)=>this.performRequest({url:`/short-urls/${t}`,query:{domain:n}}));xe(this,"deleteShortUrl",async(t,n)=>this.performEmptyRequest({url:`/short-urls/${t}`,method:"DELETE",query:{domain:n}}));xe(this,"updateShortUrl",async(t,n,r)=>this.performRequest({url:`/short-urls/${t}`,method:"PATCH",query:{domain:n},body:r}));xe(this,"listTags",async()=>this.performRequest({url:"/tags",query:{withStats:"true"}}).then(({tags:t})=>t).then(({data:t,stats:n})=>({tags:t,stats:n})));xe(this,"tagsStats",async()=>this.performRequest({url:"/tags/stats"}).then(({tags:t})=>t).then(({data:t})=>({tags:t.map(({tag:n})=>n),stats:t})));xe(this,"deleteTags",async t=>this.performEmptyRequest({url:"/tags",method:"DELETE",query:{tags:t}}).then(()=>({tags:t})));xe(this,"editTag",async(t,n)=>this.performEmptyRequest({url:"/tags",method:"PUT",body:{oldName:t,newName:n}}).then(()=>({oldName:t,newName:n})));xe(this,"health",async t=>this.performRequest({url:"/health",domain:t}));xe(this,"mercureInfo",async()=>this.performRequest({url:"/mercure-info"}));xe(this,"listDomains",async()=>this.performRequest({url:"/domains"}).then(({domains:t})=>t));xe(this,"editDomainRedirects",async t=>this.performRequest({url:"/domains/redirects",method:"PATCH",body:t}));xe(this,"performRequest",async t=>this.httpClient.fetchJson(...this.toFetchParams(t)).catch(this.handleFetchError(()=>this.httpClient.fetchJson(...this.toFetchParams(t)))));xe(this,"performEmptyRequest",async t=>this.httpClient.fetchEmpty(...this.toFetchParams(t)).catch(this.handleFetchError(()=>this.httpClient.fetchEmpty(...this.toFetchParams(t)))));xe(this,"toFetchParams",({url:t,method:n="GET",query:r={},body:i,domain:o})=>{const s=Xd(soe(r)),a=Wn(s)?"":`?${s}`,l=o?ioe(this.baseUrl,o):this.baseUrl;return[`${ooe(l,this.apiVersion)}${t}${a}`,{method:n,body:i&&JSON.stringify(i),headers:{"X-Api-Key":this.apiKey}}]});xe(this,"handleFetchError",t=>n=>{if(!loe(n))throw n;return this.apiVersion=2,t()});this.httpClient=t,this.baseUrl=n,this.apiKey=r,this.apiVersion=3}}const a1={},uoe=e=>typeof e=="function",foe=e=>{const{selectedServer:t}=e();if(!Ej(t))throw new Error("There's no selected server or it is not found");return t},doe=e=>t=>{const{url:n,apiKey:r}=uoe(t)?foe(t):t,i=`${n}_${r}`;return a1[i]||(a1[i]=new coe(e,n,r)),a1[i]},hoe=e=>{e.serviceFactory("buildShlinkApiClient",doe,"HttpClient")};const poe=({isOpen:e,toggle:t,forceUpdate:n})=>{const[r,,i]=hn(),o=()=>{i(),n()};return m.jsxs($C,{className:"app-update-banner",isOpen:e,toggle:t,tag:cn,color:"secondary",children:[m.jsx("h4",{className:"mb-4",children:"This app has just been updated!"}),m.jsxs("p",{className:"mb-0",children:["Restart it to enjoy the new features.",m.jsxs(ht,{role:"button",disabled:r,className:"ms-2",color:"secondary",size:"sm",onClick:o,children:[!r&&m.jsxs(m.Fragment,{children:["Restart now ",m.jsx(Fe,{icon:_K,className:"ms-1"})]}),r&&m.jsx(m.Fragment,{children:"Restarting..."})]})]})]})},O6=({to:e="/",children:t="Home"})=>m.jsx("div",{className:"home",children:m.jsxs(cn,{className:"p-4",children:[m.jsx("h2",{children:"Oops! We could not find requested route."}),m.jsx("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),m.jsx("br",{}),m.jsx(Dt,{to:e,className:"btn btn-outline-primary btn-lg",children:t})]})}),moe=async()=>{var t;(await((t=navigator.serviceWorker)==null?void 0:t.getRegistrations())??[]).forEach(({waiting:n})=>{n==null||n.addEventListener("statechange",r=>{var i;((i=r.target)==null?void 0:i.state)==="activated"&&window.location.reload()}),n==null||n.postMessage({type:"SKIP_WAITING"})})};const goe=(e,t,n,r,i,o,s,a)=>({fetchServers:l,servers:c,settings:f,appUpdated:h,resetAppUpdate:p})=>{const v=bn().pathname==="/";return B.useEffect(()=>{var y;Object.keys(c).length===0&&l(),u6(((y=f.ui)==null?void 0:y.theme)??"light")},[]),m.jsxs("div",{className:"container-fluid app-container",children:[m.jsx(e,{}),m.jsxs("div",{className:"app",children:[m.jsx("div",{className:me("shlink-wrapper",{"d-flex d-md-block align-items-center":v}),children:m.jsxs(Hy,{children:[m.jsx(gt,{index:!0,element:m.jsx(t,{})}),m.jsx(gt,{path:"/settings/*",element:m.jsx(o,{})}),m.jsx(gt,{path:"/manage-servers",element:m.jsx(s,{})}),m.jsx(gt,{path:"/server/create",element:m.jsx(r,{})}),m.jsx(gt,{path:"/server/:serverId/edit",element:m.jsx(i,{})}),m.jsx(gt,{path:"/server/:serverId/*",element:m.jsx(n,{})}),m.jsx(gt,{path:"*",element:m.jsx(O6,{})})]})}),m.jsx("div",{className:"shlink-footer",children:m.jsx(a,{})})]}),m.jsx(poe,{isOpen:h,toggle:p,forceUpdate:moe})]})};function mi(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:JC(e)?2:eE(e)?3:0}function fc(e,t){return Qc(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function voe(e,t){return Qc(e)===2?e.get(t):e[t]}function P6(e,t,n){var r=Qc(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function k6(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function JC(e){return Soe&&e instanceof Map}function eE(e){return Coe&&e instanceof Set}function _a(e){return e.o||e.t}function tE(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=R6(e);delete t[At];for(var n=dc(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=yoe),Object.freeze(e),t&&Xa(e,function(n,r){return nE(r,!0)},!0)),e}function yoe(){mi(2)}function rE(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Zi(e){var t=Mw[e];return t||mi(18,e),t}function _oe(e,t){Mw[e]||(Mw[e]=t)}function Ow(){return gd}function l1(e,t){t&&(Zi("Patches"),e.u=[],e.s=[],e.v=t)}function nv(e){Pw(e),e.p.forEach(boe),e.p=null}function Pw(e){e===gd&&(gd=e.l)}function o3(e){return gd={p:[],l:gd,h:e,m:!0,_:0}}function boe(e){var t=e[At];t.i===0||t.i===1?t.j():t.O=!0}function c1(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||Zi("ES5").S(t,e,r),r?(n[At].P&&(nv(t),mi(4)),Mo(e)&&(e=rv(t,e),t.l||iv(t,e)),t.u&&Zi("Patches").M(n[At].t,e,t.u,t.s)):e=rv(t,n,[]),nv(t),t.u&&t.v(t.u,t.s),e!==M6?e:void 0}function rv(e,t,n){if(rE(t))return t;var r=t[At];if(!r)return Xa(t,function(o,s){return s3(e,r,t,o,s,n)},!0),t;if(r.A!==e)return t;if(!r.P)return iv(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=tE(r.k):r.o;Xa(r.i===3?new Set(i):i,function(o,s){return s3(e,r,i,o,s,n)}),iv(e,i,!1),n&&e.u&&Zi("Patches").R(r,n,e.u,e.s)}return r.o}function s3(e,t,n,r,i,o){if($s(i)){var s=rv(e,i,o&&t&&t.i!==3&&!fc(t.D,r)?o.concat(r):void 0);if(P6(n,r,s),!$s(s))return;e.m=!1}if(Mo(i)&&!rE(i)){if(!e.h.F&&e._<1)return;rv(e,i),t&&t.A.l||iv(e,i)}}function iv(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&nE(t,n)}function u1(e,t){var n=e[At];return(n?_a(n):e)[t]}function a3(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function is(e){e.P||(e.P=!0,e.l&&is(e.l))}function f1(e){e.o||(e.o=tE(e.t))}function kw(e,t,n){var r=JC(t)?Zi("MapSet").N(t,n):eE(t)?Zi("MapSet").T(t,n):e.g?function(i,o){var s=Array.isArray(i),a={i:s?1:0,A:o?o.A:Ow(),P:!1,I:!1,D:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=a,c=vd;s&&(l=[a],c=Zu);var f=Proxy.revocable(l,c),h=f.revoke,p=f.proxy;return a.k=p,a.j=h,p}(t,n):Zi("ES5").J(t,n);return(n?n.A:Ow()).p.push(r),r}function woe(e){return $s(e)||mi(22,e),function t(n){if(!Mo(n))return n;var r,i=n[At],o=Qc(n);if(i){if(!i.P&&(i.i<4||!Zi("ES5").K(i)))return i.t;i.I=!0,r=l3(n,o),i.I=!1}else r=l3(n,o);return Xa(r,function(s,a){i&&voe(i.t,s)===a||P6(r,s,t(a))}),o===3?new Set(r):r}(e)}function l3(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return tE(e)}function xoe(){function e(o,s){var a=i[o];return a?a.enumerable=s:i[o]=a={configurable:!0,enumerable:s,get:function(){var l=this[At];return vd.get(l,o)},set:function(l){var c=this[At];vd.set(c,o,l)}},a}function t(o){for(var s=o.length-1;s>=0;s--){var a=o[s][At];if(!a.P)switch(a.i){case 5:r(a)&&is(a);break;case 4:n(a)&&is(a)}}}function n(o){for(var s=o.t,a=o.k,l=dc(a),c=l.length-1;c>=0;c--){var f=l[c];if(f!==At){var h=s[f];if(h===void 0&&!fc(s,f))return!0;var p=a[f],g=p&&p[At];if(g?g.t!==h:!k6(p,h))return!0}}var v=!!s[At];return l.length!==dc(s).length+(v?0:1)}function r(o){var s=o.k;if(s.length!==o.t.length)return!0;var a=Object.getOwnPropertyDescriptor(s,s.length-1);if(a&&!a.get)return!0;for(var l=0;l1?b-1:0),S=1;S1?f-1:0),p=1;p=0;i--){var o=r[i];if(o.path.length===0&&o.op==="replace"){n=o.value;break}}i>-1&&(r=r.slice(i+1));var s=Zi("Patches").$;return $s(n)?s(n,r):this.produce(n,function(a){return s(a,r)})},e}(),Ar=new Toe,N6=Ar.produce;Ar.produceWithPatches.bind(Ar);Ar.setAutoFreeze.bind(Ar);Ar.setUseProxies.bind(Ar);Ar.applyPatches.bind(Ar);Ar.createDraft.bind(Ar);Ar.finishDraft.bind(Ar);function Ooe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function h3(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Gn(1));return n(L6)(e,t)}if(typeof e!="function")throw new Error(Gn(2));var i=e,o=t,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function f(){if(l)throw new Error(Gn(3));return o}function h(y){if(typeof y!="function")throw new Error(Gn(4));if(l)throw new Error(Gn(5));var x=!0;return c(),a.push(y),function(){if(x){if(l)throw new Error(Gn(6));x=!1,c();var w=a.indexOf(y);a.splice(w,1),s=null}}}function p(y){if(!Poe(y))throw new Error(Gn(7));if(typeof y.type>"u")throw new Error(Gn(8));if(l)throw new Error(Gn(9));try{l=!0,o=i(o,y)}finally{l=!1}for(var x=s=a,b=0;b"u")throw new Error(Gn(12));if(typeof n(void 0,{type:ov.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Gn(13))})}function oE(e){for(var t=Object.keys(e),n={},r=0;r"u")throw c&&c.type,new Error(Gn(14));h[g]=x,f=f||x!==y}return f=f||o.length!==Object.keys(l).length,f?h:l}}function sv(){for(var e=arguments.length,t=new Array(e),n=0;n0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:rse,resetAppUpdate:ise}=tse,ose=nse,sse=(e,t)=>{e.serviceFactory("App",goe,"MainHeader","Home","ShlinkWebComponentContainer","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>rse),e.serviceFactory("resetAppUpdate",()=>ise)};const ase=({listDomains:e,value:t,domainsList:n,onChange:r})=>{const[i,,o,s]=hn(),{domains:a}=n,l=Wn(t),c=()=>r("");return B.useEffect(()=>{e()},[]),i?m.jsxs(qd,{children:[m.jsx(Rc,{value:t??"",placeholder:"Domain",onChange:f=>r(f.target.value)}),m.jsx(ht,{id:"backToDropdown",outline:!0,type:"button",className:"domains-dropdown__back-btn","aria-label":"Back to domains list",onClick:Tt(c,s),children:m.jsx(Fe,{icon:nK})}),m.jsx(Er,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):m.jsxs(Bo,{text:l?"Domain":`Domain: ${t}`,className:l?"domains-dropdown__toggle-btn":"domains-dropdown__toggle-btn--active",children:[a.map(({domain:f,isDefault:h})=>m.jsxs(ze,{active:(t===f||h)&&l,onClick:()=>r(f),children:[f,h&&m.jsx("span",{className:"float-end text-muted",children:"default"})]},f)),m.jsx(ze,{divider:!0}),m.jsx(ze,{onClick:Tt(c,o),children:m.jsx("i",{children:"New domain"})})]})},lse=e=>(e==null?void 0:e.type)===f_.INVALID_ARGUMENT||(e==null?void 0:e.type)===d_.INVALID_ARGUMENT,cse=e=>(e==null?void 0:e.type)==="INVALID_SHORTCODE_DELETION"||(e==null?void 0:e.type)===f_.INVALID_SHORT_URL_DELETION||(e==null?void 0:e.type)===d_.INVALID_SHORT_URL_DELETION,use=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),Uo=e=>use(e)?e:void 0,Ro=({errorData:e,fallbackMessage:t})=>m.jsxs(m.Fragment,{children:[(e==null?void 0:e.detail)??t,lse(e)&&m.jsxs("p",{className:"mb-0",children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]}),fse=(e,t)=>{const n=b3(e),r=b3(t),i=n.pop(),o=r.pop(),s=S3(n,r);return s!==0?s:i&&o?S3(i.split("."),o.split(".")):i||o?i?-1:1:0},Nw=(e,t,n)=>{mse(n);const r=fse(e,t);return $6[n].includes(r)},dse=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,b3=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(dse);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},w3=e=>e==="*"||e==="x"||e==="X",x3=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},hse=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],pse=(e,t)=>{if(w3(e)||w3(t))return 0;const[n,r]=hse(x3(e),x3(t));return n>r?1:n{for(let n=0;n":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},C3=Object.keys($6),mse=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(C3.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${C3.join("|")}`)},gse=(e,{maxVersion:t,minVersion:n})=>{const r=!n||Nw(e,n,">=");return(!t||Nw(e,t,"<="))&&r},B6={domainVisits:"3.1.0",excludeBotsOnShortUrls:"3.4.0",filterDisabledUrls:"3.4.0",deviceLongUrls:"3.5.0"};Object.freeze(B6);const Sp=(e,t)=>gse(t,{minVersion:B6[e]}),U6=e=>({domainVisits:Sp("domainVisits",e),excludeBotsOnShortUrls:Sp("excludeBotsOnShortUrls",e),filterDisabledUrls:Sp("filterDisabledUrls",e),deviceLongUrls:Sp("deviceLongUrls",e)}),vse=e=>B.useMemo(()=>U6(e),[e]),z6=B.createContext(U6("0.0.0")),yse=z6.Provider,Qd=e=>B.useContext(z6)[e],H6=B.createContext(""),_se=H6.Provider,cl=()=>B.useContext(H6),Ef=(e,t,n)=>Ao(n)?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n,bse=(e,t)=>!e.domain&&t===v5?!0:e.domain===t,wse=(e,t)=>{const n=(t==null?void 0:t.validateUrls)??!1;return e?{longUrl:e.longUrl,tags:e.tags,title:e.title??void 0,domain:e.domain??void 0,validSince:e.meta.validSince??void 0,validUntil:e.meta.validUntil??void 0,maxVisits:e.meta.maxVisits??void 0,crawlable:e.crawlable,forwardQuery:e.forwardQuery,deviceLongUrls:e.deviceLongUrls,validateUrl:n}:{longUrl:"",validateUrl:n}},V6="__",xse=e=>e.replaceAll("/",V6),cm=e=>e.replaceAll(V6,"/");function Qe(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Oe(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function um(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?um=function(n){return typeof n}:um=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},um(e)}function Me(e){Oe(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||um(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(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 ul(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function Ji(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var s=o.getDate();return i>=s?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function fm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fm=function(n){return typeof n}:fm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},fm(e)}function Sse(e,t){if(Oe(2,arguments),!t||fm(t)!=="object")return new Date(NaN);var n=t.years?Qe(t.years):0,r=t.months?Qe(t.months):0,i=t.weeks?Qe(t.weeks):0,o=t.days?Qe(t.days):0,s=t.hours?Qe(t.hours):0,a=t.minutes?Qe(t.minutes):0,l=t.seconds?Qe(t.seconds):0,c=Me(e),f=r||n?Ji(c,r+n*12):c,h=o||i?ul(f,o+i*7):f,p=a+s*60,g=l+p*60,v=g*1e3,y=new Date(h.getTime()+v);return y}function aE(e,t){Oe(2,arguments);var n=Me(e).getTime(),r=Qe(t);return new Date(n+r)}var Cse=36e5;function Ese(e,t){Oe(2,arguments);var n=Qe(t);return aE(e,n*Cse)}var Tse={};function zo(){return Tse}function W6(e,t){var n,r,i,o,s,a,l,c;Oe(1,arguments);var f=zo(),h=Qe((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Me(e),g=p.getDay(),v=(g=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Pse(e){Oe(1,arguments);var t=Ose(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=yd(n);return r}function Ac(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Lr(e){Oe(1,arguments);var t=Me(e);return t.setHours(0,0,0,0),t}var kse=864e5;function _d(e,t){Oe(2,arguments);var n=Lr(e),r=Lr(t),i=n.getTime()-Ac(n),o=r.getTime()-Ac(r);return Math.round((i-o)/kse)}var Mse=6e4;function Lw(e,t){Oe(2,arguments);var n=Qe(t);return aE(e,n*Mse)}function lE(e,t){Oe(2,arguments);var n=Qe(t),r=n*7;return ul(e,r)}function jc(e,t){Oe(2,arguments);var n=Qe(t);return Ji(e,n*12)}function dm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?dm=function(n){return typeof n}:dm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},dm(e)}function E3(e){Oe(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(dm(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=Me(r);(n===void 0||ni||isNaN(i.getDate()))&&(n=i)}),n||new Date(NaN)}function pm(e,t){Oe(2,arguments);var n=Me(e),r=Me(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var cE=6e4,h_=36e5,Rse=1e3;function Nse(e,t){Oe(2,arguments);var n=Lr(e),r=Lr(t);return n.getTime()===r.getTime()}function mm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?mm=function(n){return typeof n}:mm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},mm(e)}function uE(e){return Oe(1,arguments),e instanceof Date||mm(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Y6(e){if(Oe(1,arguments),!uE(e)&&typeof e!="number")return!1;var t=Me(e);return!isNaN(Number(t))}function bd(e,t){Oe(2,arguments);var n=Me(e),r=Me(t),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return i*12+o}function Dw(e){Oe(1,arguments);var t=Me(e),n=Math.floor(t.getMonth()/3)+1;return n}function lv(e,t){Oe(2,arguments);var n=Me(e),r=Me(t);return n.getFullYear()-r.getFullYear()}function O3(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function fE(e,t){Oe(2,arguments);var n=Me(e),r=Me(t),i=O3(n,r),o=Math.abs(_d(n,r));n.setDate(n.getDate()-i*o);var s=+(O3(n,r)===-i),a=i*(o-s);return a===0?0:a}function q6(e,t){return Oe(2,arguments),Me(e).getTime()-Me(t).getTime()}var P3={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},Lse="trunc";function dE(e){return e?P3[e]:P3[Lse]}function Dse(e,t,n){Oe(2,arguments);var r=q6(e,t)/h_;return dE(n==null?void 0:n.roundingMethod)(r)}function Qa(e){Oe(1,arguments);var t=Me(e);return t.setHours(23,59,59,999),t}function Ase(e){Oe(1,arguments);var t=Me(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function jse(e){Oe(1,arguments);var t=Me(e);return Qa(t).getTime()===Ase(t).getTime()}function cv(e,t){Oe(2,arguments);var n=Me(e),r=Me(t),i=pm(n,r),o=Math.abs(bd(n,r)),s;if(o<1)s=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*o);var a=pm(n,r)===-i;jse(Me(e))&&o===1&&pm(e,r)===1&&(a=!1),s=i*(o-Number(a))}return s===0?0:s}function Ise(e,t,n){Oe(2,arguments);var r=q6(e,t)/1e3;return dE(n==null?void 0:n.roundingMethod)(r)}function Fse(e,t,n){Oe(2,arguments);var r=fE(e,t)/7;return dE(n==null?void 0:n.roundingMethod)(r)}function Aw(e){Oe(1,arguments);var t=Me(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function $se(e){Oe(1,arguments);var t=Me(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Bse(e){Oe(1,arguments);var t=Me(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Use(e,t){var n,r,i,o,s,a,l,c;Oe(1,arguments);var f=zo(),h=Qe((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Me(e),g=p.getDay(),v=(g=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Wse(e){Oe(1,arguments);var t=Z6(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Ic(n);return r}var Yse=6048e5;function K6(e){Oe(1,arguments);var t=Me(e),n=Ic(t).getTime()-Wse(t).getTime();return Math.round(n/Yse)+1}function Ja(e,t){var n,r,i,o,s,a,l,c;Oe(1,arguments);var f=zo(),h=Qe((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Me(e),g=p.getUTCDay(),v=(g=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(h+1,0,g),v.setUTCHours(0,0,0,0);var y=Ja(v,t),x=new Date(0);x.setUTCFullYear(h,0,g),x.setUTCHours(0,0,0,0);var b=Ja(x,t);return f.getTime()>=y.getTime()?h+1:f.getTime()>=b.getTime()?h:h-1}function qse(e,t){var n,r,i,o,s,a,l,c;Oe(1,arguments);var f=zo(),h=Qe((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:f.firstWeekContainsDate)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=hE(e,t),g=new Date(0);g.setUTCFullYear(p,0,h),g.setUTCHours(0,0,0,0);var v=Ja(g,t);return v}var Gse=6048e5;function X6(e,t){Oe(1,arguments);var n=Me(e),r=Ja(n,t).getTime()-qse(n,t).getTime();return Math.round(r/Gse)+1}function tt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return tt(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):tt(r+1,2)},d:function(t,n){return tt(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return tt(t.getUTCHours()%12||12,n.length)},H:function(t,n){return tt(t.getUTCHours(),n.length)},m:function(t,n){return tt(t.getUTCMinutes(),n.length)},s:function(t,n){return tt(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return tt(o,n.length)}};const Go=Zse;var Rl={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Kse={G:function(t,n,r){var i=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return Go.y(t,n)},Y:function(t,n,r,i){var o=hE(t,i),s=o>0?o:1-o;if(n==="YY"){var a=s%100;return tt(a,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):tt(s,n.length)},R:function(t,n){var r=Z6(t);return tt(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return tt(r,n.length)},Q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return tt(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return tt(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){var i=t.getUTCMonth();switch(n){case"M":case"MM":return Go.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){var i=t.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return tt(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){var o=X6(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):tt(o,n.length)},I:function(t,n,r){var i=K6(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):tt(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Go.d(t,n)},D:function(t,n,r){var i=Vse(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):tt(i,n.length)},E:function(t,n,r){var i=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return tt(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return tt(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return tt(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),o;switch(i===12?o=Rl.noon:i===0?o=Rl.midnight:o=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),o;switch(i>=17?o=Rl.evening:i>=12?o=Rl.afternoon:i>=4?o=Rl.morning:o=Rl.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return Go.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Go.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):tt(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):tt(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Go.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Go.s(t,n)},S:function(t,n){return Go.S(t,n)},X:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return M3(s);case"XXXX":case"XX":return ba(s);case"XXXXX":case"XXX":default:return ba(s,":")}},x:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"x":return M3(s);case"xxxx":case"xx":return ba(s);case"xxxxx":case"xxx":default:return ba(s,":")}},O:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+k3(s,":");case"OOOO":default:return"GMT"+ba(s,":")}},z:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+k3(s,":");case"zzzz":default:return"GMT"+ba(s,":")}},t:function(t,n,r,i){var o=i._originalDate||t,s=Math.floor(o.getTime()/1e3);return tt(s,n.length)},T:function(t,n,r,i){var o=i._originalDate||t,s=o.getTime();return tt(s,n.length)}};function k3(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var s=t||"";return n+String(i)+s+tt(o,2)}function M3(e,t){if(e%60===0){var n=e>0?"-":"+";return n+tt(Math.abs(e)/60,2)}return ba(e,t)}function ba(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=tt(Math.floor(i/60),2),s=tt(i%60,2);return r+o+n+s}const Xse=Kse;var R3=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Q6=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Qse=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return R3(t,n);var s;switch(i){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",R3(i,n)).replace("{{time}}",Q6(o,n))},Jse={p:Q6,P:Qse};const jw=Jse;var eae=["D","DD"],tae=["YY","YYYY"];function J6(e){return eae.indexOf(e)!==-1}function e5(e){return tae.indexOf(e)!==-1}function uv(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; 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(t,"`) for formatting years to the input `").concat(n,"`; 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(t,"`) for formatting days of the month to the input `").concat(n,"`; 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(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var nae={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"}},rae=function(t,n,r){var i,o=nae[t];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};const iae=rae;function m1(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var oae={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},sae={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},aae={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},lae={date:m1({formats:oae,defaultWidth:"full"}),time:m1({formats:sae,defaultWidth:"full"}),dateTime:m1({formats:aae,defaultWidth:"full"})};const cae=lae;var uae={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},fae=function(t,n,r,i){return uae[t]};const dae=fae;function Lu(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{var a=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[a]}var c=e.argumentCallback?e.argumentCallback(t):t;return i[c]}}var hae={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},pae={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},mae={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"]},gae={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"]},vae={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"}},yae={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"}},_ae=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},bae={ordinalNumber:_ae,era:Lu({values:hae,defaultWidth:"wide"}),quarter:Lu({values:pae,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Lu({values:mae,defaultWidth:"wide"}),day:Lu({values:gae,defaultWidth:"wide"}),dayPeriod:Lu({values:vae,defaultWidth:"wide",formattingValues:yae,defaultFormattingWidth:"wide"})};const wae=bae;function Du(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var s=o[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?Sae(a,function(h){return h.test(s)}):xae(a,function(h){return h.test(s)}),c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;var f=t.slice(s.length);return{value:c,rest:f}}}function xae(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Sae(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var s=e.valueCallback?e.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;var a=t.slice(i.length);return{value:s,rest:a}}}var Eae=/^(\d+)(th|st|nd|rd)?/i,Tae=/\d+/i,Oae={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},Pae={any:[/^b/i,/^(a|c)/i]},kae={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Mae={any:[/1/i,/2/i,/3/i,/4/i]},Rae={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},Nae={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]},Lae={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},Dae={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]},Aae={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},jae={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}},Iae={ordinalNumber:Cae({matchPattern:Eae,parsePattern:Tae,valueCallback:function(t){return parseInt(t,10)}}),era:Du({matchPatterns:Oae,defaultMatchWidth:"wide",parsePatterns:Pae,defaultParseWidth:"any"}),quarter:Du({matchPatterns:kae,defaultMatchWidth:"wide",parsePatterns:Mae,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Du({matchPatterns:Rae,defaultMatchWidth:"wide",parsePatterns:Nae,defaultParseWidth:"any"}),day:Du({matchPatterns:Lae,defaultMatchWidth:"wide",parsePatterns:Dae,defaultParseWidth:"any"}),dayPeriod:Du({matchPatterns:Aae,defaultMatchWidth:"any",parsePatterns:jae,defaultParseWidth:"any"})};const Fae=Iae;var $ae={code:"en-US",formatDistance:iae,formatLong:cae,formatRelative:dae,localize:wae,match:Fae,options:{weekStartsOn:0,firstWeekContainsDate:1}};const pE=$ae;var Bae=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Uae=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zae=/^'([^]*?)'?$/,Hae=/''/g,Vae=/[a-zA-Z]/;function Fc(e,t,n){var r,i,o,s,a,l,c,f,h,p,g,v,y,x,b,w,S,T;Oe(2,arguments);var k=String(t),P=zo(),N=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:P.locale)!==null&&r!==void 0?r:pE,D=Qe((o=(s=(a=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(c=n.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&a!==void 0?a:P.firstWeekContainsDate)!==null&&s!==void 0?s:(h=P.locale)===null||h===void 0||(p=h.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(D>=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var V=Qe((g=(v=(y=(x=n==null?void 0:n.weekStartsOn)!==null&&x!==void 0?x:n==null||(b=n.locale)===null||b===void 0||(w=b.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&y!==void 0?y:P.weekStartsOn)!==null&&v!==void 0?v:(S=P.locale)===null||S===void 0||(T=S.options)===null||T===void 0?void 0:T.weekStartsOn)!==null&&g!==void 0?g:0);if(!(V>=0&&V<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!N.localize)throw new RangeError("locale must contain localize property");if(!N.formatLong)throw new RangeError("locale must contain formatLong property");var A=Me(e);if(!Y6(A))throw new RangeError("Invalid time value");var W=Ac(A),Y=G6(A,W),ee={firstWeekContainsDate:D,weekStartsOn:V,locale:N,_originalDate:A},q=k.match(Uae).map(function(X){var ie=X[0];if(ie==="p"||ie==="P"){var le=jw[ie];return le(X,N.formatLong)}return X}).join("").match(Bae).map(function(X){if(X==="''")return"'";var ie=X[0];if(ie==="'")return Wae(X);var le=Xse[ie];if(le)return!(n!=null&&n.useAdditionalWeekYearTokens)&&e5(X)&&uv(X,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&J6(X)&&uv(X,t,String(e)),le(Y,X,N.localize,ee);if(ie.match(Vae))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ie+"`");return X}).join("");return q}function Wae(e){var t=e.match(zae);return t?t[1].replace(Hae,"'"):e}function mE(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Yae(e){return mE({},e)}var N3=1440,qae=2520,g1=43200,Gae=86400;function Zae(e,t,n){var r,i;Oe(2,arguments);var o=zo(),s=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:o.locale)!==null&&r!==void 0?r:pE;if(!s.formatDistance)throw new RangeError("locale must contain formatDistance property");var a=pm(e,t);if(isNaN(a))throw new RangeError("Invalid time value");var l=mE(Yae(n),{addSuffix:!!(n!=null&&n.addSuffix),comparison:a}),c,f;a>0?(c=Me(t),f=Me(e)):(c=Me(e),f=Me(t));var h=Ise(f,c),p=(Ac(f)-Ac(c))/1e3,g=Math.round((h-p)/60),v;if(g<2)return n!=null&&n.includeSeconds?h<5?s.formatDistance("lessThanXSeconds",5,l):h<10?s.formatDistance("lessThanXSeconds",10,l):h<20?s.formatDistance("lessThanXSeconds",20,l):h<40?s.formatDistance("halfAMinute",0,l):h<60?s.formatDistance("lessThanXMinutes",1,l):s.formatDistance("xMinutes",1,l):g===0?s.formatDistance("lessThanXMinutes",1,l):s.formatDistance("xMinutes",g,l);if(g<45)return s.formatDistance("xMinutes",g,l);if(g<90)return s.formatDistance("aboutXHours",1,l);if(gr.getTime()}function Gr(e,t){Oe(2,arguments);var n=Me(e),r=Me(t);return n.getTime()"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function dv(e){return dv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},dv(e)}function gE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D3(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hv(e){return hv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},hv(e)}function I3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gle=function(e){dle(n,e);var t=hle(n);function n(){var r;ule(this,n);for(var i=arguments.length,o=new Array(i),s=0;s0,r=n?t:1-t,i;if(r<=50)i=e||100;else{var o=r+50,s=Math.floor(o/100)*100,a=e>=o%100;i=e+s-(a?100:0)}return n?i:1-i}function a5(e){return e%400===0||e%4===0&&e%100!==0}function ym(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ym=function(n){return typeof n}:ym=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ym(e)}function vle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F3(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function mv(e){return mv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},mv(e)}function $3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sle=function(e){_le(n,e);var t=ble(n);function n(){var r;vle(this,n);for(var i=arguments.length,o=new Array(i),s=0;s0}},{key:"set",value:function(i,o,s){var a=i.getUTCFullYear();if(s.isTwoDigitYear){var l=s5(s.year,a);return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}var c=!("era"in o)||o.era===1?s.year:1-s.year;return i.setUTCFullYear(c,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function _m(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_m=function(n){return typeof n}:_m=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_m(e)}function Cle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B3(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function gv(e){return gv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},gv(e)}function U3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mle=function(e){Tle(n,e);var t=Ole(n);function n(){var r;Cle(this,n);for(var i=arguments.length,o=new Array(i),s=0;s0}},{key:"set",value:function(i,o,s,a){var l=hE(i,a);if(s.isTwoDigitYear){var c=s5(s.year,l);return i.setUTCFullYear(c,0,a.firstWeekContainsDate),i.setUTCHours(0,0,0,0),Ja(i,a)}var f=!("era"in o)||o.era===1?s.year:1-s.year;return i.setUTCFullYear(f,0,a.firstWeekContainsDate),i.setUTCHours(0,0,0,0),Ja(i,a)}}]),n}(pt);function bm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?bm=function(n){return typeof n}:bm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},bm(e)}function Rle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z3(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vv(e){return vv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},vv(e)}function H3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ile=function(e){Lle(n,e);var t=Dle(n);function n(){var r;Rle(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function yv(e){return yv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},yv(e)}function W3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vle=function(e){Ble(n,e);var t=Ule(n);function n(){var r;Fle(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _v(e){return _v=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_v(e)}function q3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xle=function(e){qle(n,e);var t=Gle(n);function n(){var r;Wle(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=4}},{key:"set",value:function(i,o,s){return i.setUTCMonth((s-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function Sm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Sm=function(n){return typeof n}:Sm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Sm(e)}function Qle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G3(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function bv(e){return bv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},bv(e)}function Z3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ice=function(e){ece(n,e);var t=tce(n);function n(){var r;Qle(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=4}},{key:"set",value:function(i,o,s){return i.setUTCMonth((s-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function Cm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Cm=function(n){return typeof n}:Cm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Cm(e)}function oce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K3(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function wv(e){return wv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},wv(e)}function X3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fce=function(e){ace(n,e);var t=lce(n);function n(){var r;oce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=11}},{key:"set",value:function(i,o,s){return i.setUTCMonth(s,1),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function Em(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Em=function(n){return typeof n}:Em=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Em(e)}function dce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q3(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xv(e){return xv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},xv(e)}function J3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yce=function(e){pce(n,e);var t=mce(n);function n(){var r;dce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=11}},{key:"set",value:function(i,o,s){return i.setUTCMonth(s,1),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function _ce(e,t,n){Oe(2,arguments);var r=Me(e),i=Qe(t),o=X6(r,n)-i;return r.setUTCDate(r.getUTCDate()-o*7),r}function Tm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Tm=function(n){return typeof n}:Tm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Tm(e)}function bce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Sv(e){return Sv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Sv(e)}function tR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tce=function(e){xce(n,e);var t=Sce(n);function n(){var r;bce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=53}},{key:"set",value:function(i,o,s,a){return Ja(_ce(i,s,a),a)}}]),n}(pt);function Oce(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t),i=K6(n)-r;return n.setUTCDate(n.getUTCDate()-i*7),n}function Om(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Om=function(n){return typeof n}:Om=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Om(e)}function Pce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Cv(e){return Cv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Cv(e)}function rR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Dce=function(e){Mce(n,e);var t=Rce(n);function n(){var r;Pce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=53}},{key:"set",value:function(i,o,s){return Ic(Oce(i,s))}}]),n}(pt);function Pm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pm=function(n){return typeof n}:Pm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Pm(e)}function Ace(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ev(e){return Ev=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ev(e)}function v1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Uce=[31,28,31,30,31,30,31,31,30,31,30,31],zce=[31,29,31,30,31,30,31,31,30,31,30,31],Hce=function(e){Ice(n,e);var t=Fce(n);function n(){var r;Ace(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=zce[l]:o>=1&&o<=Uce[l]}},{key:"set",value:function(i,o,s){return i.setUTCDate(s),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function Mm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mm=function(n){return typeof n}:Mm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Mm(e)}function Vce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Tv(e){return Tv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Tv(e)}function y1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Kce=function(e){Yce(n,e);var t=qce(n);function n(){var r;Vce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(i,o,s){return i.setUTCMonth(0,s),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function _E(e,t,n){var r,i,o,s,a,l,c,f;Oe(2,arguments);var h=zo(),p=Qe((r=(i=(o=(s=n==null?void 0:n.weekStartsOn)!==null&&s!==void 0?s:n==null||(a=n.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:h.weekStartsOn)!==null&&i!==void 0?i:(c=h.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=Me(e),v=Qe(t),y=g.getUTCDay(),x=v%7,b=(x+7)%7,w=(b"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ov(e){return Ov=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ov(e)}function aR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rue=function(e){Jce(n,e);var t=eue(n);function n(){var r;Xce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=6}},{key:"set",value:function(i,o,s,a){return i=_E(i,s,a),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function Lm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Lm=function(n){return typeof n}:Lm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Lm(e)}function iue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Pv(e){return Pv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Pv(e)}function cR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uue=function(e){sue(n,e);var t=aue(n);function n(){var r;iue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=6}},{key:"set",value:function(i,o,s,a){return i=_E(i,s,a),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function Dm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Dm=function(n){return typeof n}:Dm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Dm(e)}function fue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function kv(e){return kv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},kv(e)}function fR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vue=function(e){hue(n,e);var t=pue(n);function n(){var r;fue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=6}},{key:"set",value:function(i,o,s,a){return i=_E(i,s,a),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function yue(e,t){Oe(2,arguments);var n=Qe(t);n%7===0&&(n=n-7);var r=1,i=Me(e),o=i.getUTCDay(),s=n%7,a=(s+7)%7,l=(a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Mv(e){return Mv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Mv(e)}function hR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Eue=function(e){wue(n,e);var t=xue(n);function n(){var r;_ue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=7}},{key:"set",value:function(i,o,s){return i=yue(i,s),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function jm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jm=function(n){return typeof n}:jm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},jm(e)}function Tue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rv(e){return Rv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Rv(e)}function mR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nue=function(e){Pue(n,e);var t=kue(n);function n(){var r;Tue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Nv(e){return Nv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Nv(e)}function vR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $ue=function(e){Aue(n,e);var t=jue(n);function n(){var r;Lue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Lv(e){return Lv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Lv(e)}function _R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yue=function(e){zue(n,e);var t=Hue(n);function n(){var r;Bue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Dv(e){return Dv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Dv(e)}function wR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jue=function(e){Zue(n,e);var t=Kue(n);function n(){var r;que(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=12}},{key:"set",value:function(i,o,s){var a=i.getUTCHours()>=12;return a&&s<12?i.setUTCHours(s+12,0,0,0):!a&&s===12?i.setUTCHours(0,0,0,0):i.setUTCHours(s,0,0,0),i}}]),n}(pt);function Bm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bm=function(n){return typeof n}:Bm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Bm(e)}function efe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Av(e){return Av=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Av(e)}function SR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sfe=function(e){nfe(n,e);var t=rfe(n);function n(){var r;efe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=23}},{key:"set",value:function(i,o,s){return i.setUTCHours(s,0,0,0),i}}]),n}(pt);function Um(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Um=function(n){return typeof n}:Um=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Um(e)}function afe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function jv(e){return jv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},jv(e)}function ER(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hfe=function(e){cfe(n,e);var t=ufe(n);function n(){var r;afe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=11}},{key:"set",value:function(i,o,s){var a=i.getUTCHours()>=12;return a&&s<12?i.setUTCHours(s+12,0,0,0):i.setUTCHours(s,0,0,0),i}}]),n}(pt);function zm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zm=function(n){return typeof n}:zm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},zm(e)}function pfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Iv(e){return Iv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Iv(e)}function OR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bfe=function(e){gfe(n,e);var t=vfe(n);function n(){var r;pfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=24}},{key:"set",value:function(i,o,s){var a=s<=24?s%24:s;return i.setUTCHours(a,0,0,0),i}}]),n}(pt);function Hm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Hm=function(n){return typeof n}:Hm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Hm(e)}function wfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Fv(e){return Fv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Fv(e)}function kR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ofe=function(e){Sfe(n,e);var t=Cfe(n);function n(){var r;wfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=59}},{key:"set",value:function(i,o,s){return i.setUTCMinutes(s,0,0),i}}]),n}(pt);function Vm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vm=function(n){return typeof n}:Vm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vm(e)}function Pfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $v(e){return $v=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},$v(e)}function RR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Dfe=function(e){Mfe(n,e);var t=Rfe(n);function n(){var r;Pfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=59}},{key:"set",value:function(i,o,s){return i.setUTCSeconds(s,0),i}}]),n}(pt);function Wm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Wm=function(n){return typeof n}:Wm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Wm(e)}function Afe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Bv(e){return Bv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Bv(e)}function LR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ufe=function(e){Ife(n,e);var t=Ffe(n);function n(){var r;Afe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Uv(e){return Uv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Uv(e)}function AR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gfe=function(e){Vfe(n,e);var t=Wfe(n);function n(){var r;zfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function zv(e){return zv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},zv(e)}function IR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tde=function(e){Xfe(n,e);var t=Qfe(n);function n(){var r;Zfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Hv(e){return Hv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Hv(e)}function $R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lde=function(e){ide(n,e);var t=ode(n);function n(){var r;nde(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Vv(e){return Vv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Vv(e)}function UR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mde=function(e){fde(n,e);var t=dde(n);function n(){var r;cde(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=vde(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +`+t.prev}function bp(e,t){var n=Sw(e),r=[];if(n){r.length=e.length;for(var i=0;i1;){var n=t.pop(),r=n.obj[n.prop];if(wa(r)){for(var i=[],o=0;o=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===Tie.RFC1738&&(c===40||c===41)){a+=s.charAt(l);continue}if(c<128){a=a+Di[c];continue}if(c<2048){a=a+(Di[192|c>>6]+Di[128|c&63]);continue}if(c<55296||c>=57344){a=a+(Di[224|c>>12]+Di[128|c>>6&63]+Di[128|c&63]);continue}l+=1,c=65536+((c&1023)<<10|s.charCodeAt(l)&1023),a+=Di[240|c>>18]+Di[128|c>>12&63]+Di[128|c>>6&63]+Di[128|c&63]}return a},Nie=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],i=0;i"u"&&(S=0)}if(typeof l=="function"?b=l(n,b):b instanceof Date?b=h(b):r==="comma"&&po(b)&&(b=Ew.maybeMap(b,function(F){return F instanceof Date?h(F):F})),b===null){if(o)return a&&!v?a(n,$n.encoder,y,"key",p):n;b=""}if(Uie(b)||Ew.isBuffer(b)){if(a){var P=v?n:a(n,$n.encoder,y,"key",p);if(r==="comma"&&v){for(var N=Fie.call(String(b),","),D="",V=0;V"u")return A;var W;if(r==="comma"&&po(b))W=[{value:b.length>0?b.join(",")||null:void 0}];else if(po(l))W=l;else{var Y=Object.keys(b);W=c?Y.sort(c):Y}for(var ee=i&&po(b)&&b.length===1?n+"[]":n,q=0;q"u"?$n.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:$n.charsetSentinel,delimiter:typeof t.delimiter>"u"?$n.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:$n.encode,encoder:typeof t.encoder=="function"?t.encoder:$n.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:$n.encodeValuesOnly,filter:o,format:r,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:$n.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:$n.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:$n.strictNullHandling}},Vie=function(e,t){var n=e,r=Hie(t),i,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):po(r.filter)&&(o=r.filter,i=o);var s=[];if(typeof n!="object"||n===null)return"";var a;t&&t.arrayFormat in r3?a=t.arrayFormat:t&&"indices"in t?a=t.indices?"indices":"repeat":a="indices";var l=r3[a];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=l==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var f=S6(),h=0;h0?v+g:""},Dc=x6,Tw=Object.prototype.hasOwnProperty,Wie=Array.isArray,Sn={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Dc.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Yie=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},E6=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},qie="utf8=%26%2310003%3B",Gie="utf8=%E2%9C%93",Zie=function(t,n){var r={},i=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=n.parameterLimit===1/0?void 0:n.parameterLimit,s=i.split(n.delimiter,o),a=-1,l,c=n.charset;if(n.charsetSentinel)for(l=0;l-1&&(v=Wie(v)?[v]:v),Tw.call(r,g)?r[g]=Dc.combine(r[g],v):r[g]=v}return r},Kie=function(e,t,n,r){for(var i=r?t:E6(t,n),o=e.length-1;o>=0;--o){var s,a=e[o];if(a==="[]"&&n.parseArrays)s=[].concat(i);else{s=n.plainObjects?Object.create(null):{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,c=parseInt(l,10);!n.parseArrays&&l===""?s={0:i}:!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(s=[],s[c]=i):l!=="__proto__"&&(s[l]=i)}i=s}return i},Xie=function(t,n,r,i){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=r.depth>0&&s.exec(o),c=l?o.slice(0,l.index):o,f=[];if(c){if(!r.plainObjects&&Tw.call(Object.prototype,c)&&!r.allowPrototypes)return;f.push(c)}for(var h=0;r.depth>0&&(l=a.exec(o))!==null&&h"u"?Sn.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Sn.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Sn.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Sn.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Sn.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Sn.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Sn.comma,decoder:typeof t.decoder=="function"?t.decoder:Sn.decoder,delimiter:typeof t.delimiter=="string"||Dc.isRegExp(t.delimiter)?t.delimiter:Sn.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Sn.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Sn.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Sn.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Sn.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Sn.strictNullHandling}},Jie=function(e,t){var n=Qie(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?Zie(e,n):e,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),s=0;sT6.parse(e,{ignoreQueryPrefix:!0}),Xd=e=>T6.stringify(e,{arrayFormat:"brackets"});var f_=(e=>(e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.INVALID_SHORT_URL_DELETION="INVALID_SHORT_URL_DELETION",e.DOMAIN_NOT_FOUND="DOMAIN_NOT_FOUND",e.FORBIDDEN_OPERATION="FORBIDDEN_OPERATION",e.INVALID_URL="INVALID_URL",e.INVALID_SLUG="INVALID_SLUG",e.INVALID_SHORTCODE="INVALID_SHORTCODE",e.TAG_CONFLICT="TAG_CONFLICT",e.TAG_NOT_FOUND="TAG_NOT_FOUND",e.MERCURE_NOT_CONFIGURED="MERCURE_NOT_CONFIGURED",e.INVALID_AUTHORIZATION="INVALID_AUTHORIZATION",e.INVALID_API_KEY="INVALID_API_KEY",e.NOT_FOUND="NOT_FOUND",e))(f_||{}),d_=(e=>(e.INVALID_ARGUMENT="https://shlink.io/api/error/invalid-data",e.INVALID_SHORT_URL_DELETION="https://shlink.io/api/error/invalid-short-url-deletion",e.DOMAIN_NOT_FOUND="https://shlink.io/api/error/domain-not-found",e.FORBIDDEN_OPERATION="https://shlink.io/api/error/forbidden-tag-operation",e.INVALID_URL="https://shlink.io/api/error/invalid-url",e.INVALID_SLUG="https://shlink.io/api/error/non-unique-slug",e.INVALID_SHORTCODE="https://shlink.io/api/error/short-url-not-found",e.TAG_CONFLICT="https://shlink.io/api/error/tag-conflict",e.TAG_NOT_FOUND="https://shlink.io/api/error/tag-not-found",e.MERCURE_NOT_CONFIGURED="https://shlink.io/api/error/mercure-not-configured",e.INVALID_AUTHORIZATION="https://shlink.io/api/error/missing-authentication",e.INVALID_API_KEY="https://shlink.io/api/error/invalid-api-key",e.NOT_FOUND="https://shlink.io/api/error/not-found",e))(d_||{});const ioe=(e,t)=>{const[n,r]=e.split("://"),[,...i]=r.split("/"),o=i.length?`/${i.join("/")}`:"";return`${n}://${t}${o}`},ooe=(e,t)=>`${e}/rest/v${t}`,soe=Fd(Ao),aoe=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:n,...r})=>({...r,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:n===!0?"true":void 0,orderBy:l6(e)}),loe=e=>e===null||!(typeof e=="object"&&"type"in e&&"status"in e)?!1:(e.type===f_.NOT_FOUND||e.type===d_.NOT_FOUND)&&e.status===404;class coe{constructor(t,n,r){xe(this,"apiVersion");xe(this,"listShortUrls",async(t={})=>this.performRequest({url:"/short-urls",query:aoe(t)}).then(({shortUrls:n})=>n));xe(this,"createShortUrl",async t=>{const n=Fd(r=>Wn(r)||Ao(r),t);return this.performRequest({url:"/short-urls",method:"POST",body:n})});xe(this,"getShortUrlVisits",async(t,n)=>this.performRequest({url:`/short-urls/${t}/visits`,query:n}).then(({visits:r})=>r));xe(this,"getTagVisits",async(t,n)=>this.performRequest({url:`/tags/${t}/visits`,query:n}).then(({visits:r})=>r));xe(this,"getDomainVisits",async(t,n)=>this.performRequest({url:`/domains/${t}/visits`,query:n}).then(({visits:r})=>r));xe(this,"getOrphanVisits",async t=>this.performRequest({url:"/visits/orphan",query:t}).then(({visits:n})=>n));xe(this,"getNonOrphanVisits",async t=>this.performRequest({url:"/visits/non-orphan",query:t}).then(({visits:n})=>n));xe(this,"getVisitsOverview",async()=>this.performRequest({url:"/visits"}).then(({visits:t})=>t));xe(this,"getShortUrl",async(t,n)=>this.performRequest({url:`/short-urls/${t}`,query:{domain:n}}));xe(this,"deleteShortUrl",async(t,n)=>this.performEmptyRequest({url:`/short-urls/${t}`,method:"DELETE",query:{domain:n}}));xe(this,"updateShortUrl",async(t,n,r)=>this.performRequest({url:`/short-urls/${t}`,method:"PATCH",query:{domain:n},body:r}));xe(this,"listTags",async()=>this.performRequest({url:"/tags",query:{withStats:"true"}}).then(({tags:t})=>t).then(({data:t,stats:n})=>({tags:t,stats:n})));xe(this,"tagsStats",async()=>this.performRequest({url:"/tags/stats"}).then(({tags:t})=>t).then(({data:t})=>({tags:t.map(({tag:n})=>n),stats:t})));xe(this,"deleteTags",async t=>this.performEmptyRequest({url:"/tags",method:"DELETE",query:{tags:t}}).then(()=>({tags:t})));xe(this,"editTag",async(t,n)=>this.performEmptyRequest({url:"/tags",method:"PUT",body:{oldName:t,newName:n}}).then(()=>({oldName:t,newName:n})));xe(this,"health",async t=>this.performRequest({url:"/health",domain:t}));xe(this,"mercureInfo",async()=>this.performRequest({url:"/mercure-info"}));xe(this,"listDomains",async()=>this.performRequest({url:"/domains"}).then(({domains:t})=>t));xe(this,"editDomainRedirects",async t=>this.performRequest({url:"/domains/redirects",method:"PATCH",body:t}));xe(this,"performRequest",async t=>this.httpClient.fetchJson(...this.toFetchParams(t)).catch(this.handleFetchError(()=>this.httpClient.fetchJson(...this.toFetchParams(t)))));xe(this,"performEmptyRequest",async t=>this.httpClient.fetchEmpty(...this.toFetchParams(t)).catch(this.handleFetchError(()=>this.httpClient.fetchEmpty(...this.toFetchParams(t)))));xe(this,"toFetchParams",({url:t,method:n="GET",query:r={},body:i,domain:o})=>{const s=Xd(soe(r)),a=Wn(s)?"":`?${s}`,l=o?ioe(this.baseUrl,o):this.baseUrl;return[`${ooe(l,this.apiVersion)}${t}${a}`,{method:n,body:i&&JSON.stringify(i),headers:{"X-Api-Key":this.apiKey}}]});xe(this,"handleFetchError",t=>n=>{if(!loe(n))throw n;return this.apiVersion=2,t()});this.httpClient=t,this.baseUrl=n,this.apiKey=r,this.apiVersion=3}}const a1={},uoe=e=>typeof e=="function",foe=e=>{const{selectedServer:t}=e();if(!Ej(t))throw new Error("There's no selected server or it is not found");return t},doe=e=>t=>{const{url:n,apiKey:r}=uoe(t)?foe(t):t,i=`${n}_${r}`;return a1[i]||(a1[i]=new coe(e,n,r)),a1[i]},hoe=e=>{e.serviceFactory("buildShlinkApiClient",doe,"HttpClient")};const poe=({isOpen:e,toggle:t,forceUpdate:n})=>{const[r,,i]=hn(),o=()=>{i(),n()};return m.jsxs($C,{className:"app-update-banner",isOpen:e,toggle:t,tag:cn,color:"secondary",children:[m.jsx("h4",{className:"mb-4",children:"This app has just been updated!"}),m.jsxs("p",{className:"mb-0",children:["Restart it to enjoy the new features.",m.jsxs(ht,{role:"button",disabled:r,className:"ms-2",color:"secondary",size:"sm",onClick:o,children:[!r&&m.jsxs(m.Fragment,{children:["Restart now ",m.jsx(Fe,{icon:_K,className:"ms-1"})]}),r&&m.jsx(m.Fragment,{children:"Restarting..."})]})]})]})},O6=({to:e="/",children:t="Home"})=>m.jsx("div",{className:"home",children:m.jsxs(cn,{className:"p-4",children:[m.jsx("h2",{children:"Oops! We could not find requested route."}),m.jsx("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),m.jsx("br",{}),m.jsx(Dt,{to:e,className:"btn btn-outline-primary btn-lg",children:t})]})}),moe=async()=>{var t;(await((t=navigator.serviceWorker)==null?void 0:t.getRegistrations())??[]).forEach(({waiting:n})=>{n==null||n.addEventListener("statechange",r=>{var i;((i=r.target)==null?void 0:i.state)==="activated"&&window.location.reload()}),n==null||n.postMessage({type:"SKIP_WAITING"})})};const goe=(e,t,n,r,i,o,s,a)=>({fetchServers:l,servers:c,settings:f,appUpdated:h,resetAppUpdate:p})=>{const v=bn().pathname==="/";return B.useEffect(()=>{var y;Object.keys(c).length===0&&l(),u6(((y=f.ui)==null?void 0:y.theme)??"light")},[]),m.jsxs("div",{className:"container-fluid app-container",children:[m.jsx(e,{}),m.jsxs("div",{className:"app",children:[m.jsx("div",{className:me("shlink-wrapper",{"d-flex d-md-block align-items-center":v}),children:m.jsxs(Hy,{children:[m.jsx(gt,{index:!0,element:m.jsx(t,{})}),m.jsx(gt,{path:"/settings/*",element:m.jsx(o,{})}),m.jsx(gt,{path:"/manage-servers",element:m.jsx(s,{})}),m.jsx(gt,{path:"/server/create",element:m.jsx(r,{})}),m.jsx(gt,{path:"/server/:serverId/edit",element:m.jsx(i,{})}),m.jsx(gt,{path:"/server/:serverId/*",element:m.jsx(n,{})}),m.jsx(gt,{path:"*",element:m.jsx(O6,{})})]})}),m.jsx("div",{className:"shlink-footer",children:m.jsx(a,{})})]}),m.jsx(poe,{isOpen:h,toggle:p,forceUpdate:moe})]})};function mi(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:JC(e)?2:eE(e)?3:0}function fc(e,t){return Qc(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function voe(e,t){return Qc(e)===2?e.get(t):e[t]}function P6(e,t,n){var r=Qc(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function k6(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function JC(e){return Soe&&e instanceof Map}function eE(e){return Coe&&e instanceof Set}function _a(e){return e.o||e.t}function tE(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=R6(e);delete t[At];for(var n=dc(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=yoe),Object.freeze(e),t&&Xa(e,function(n,r){return nE(r,!0)},!0)),e}function yoe(){mi(2)}function rE(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Zi(e){var t=Mw[e];return t||mi(18,e),t}function _oe(e,t){Mw[e]||(Mw[e]=t)}function Ow(){return gd}function l1(e,t){t&&(Zi("Patches"),e.u=[],e.s=[],e.v=t)}function nv(e){Pw(e),e.p.forEach(boe),e.p=null}function Pw(e){e===gd&&(gd=e.l)}function o3(e){return gd={p:[],l:gd,h:e,m:!0,_:0}}function boe(e){var t=e[At];t.i===0||t.i===1?t.j():t.O=!0}function c1(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||Zi("ES5").S(t,e,r),r?(n[At].P&&(nv(t),mi(4)),Mo(e)&&(e=rv(t,e),t.l||iv(t,e)),t.u&&Zi("Patches").M(n[At].t,e,t.u,t.s)):e=rv(t,n,[]),nv(t),t.u&&t.v(t.u,t.s),e!==M6?e:void 0}function rv(e,t,n){if(rE(t))return t;var r=t[At];if(!r)return Xa(t,function(o,s){return s3(e,r,t,o,s,n)},!0),t;if(r.A!==e)return t;if(!r.P)return iv(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=tE(r.k):r.o;Xa(r.i===3?new Set(i):i,function(o,s){return s3(e,r,i,o,s,n)}),iv(e,i,!1),n&&e.u&&Zi("Patches").R(r,n,e.u,e.s)}return r.o}function s3(e,t,n,r,i,o){if($s(i)){var s=rv(e,i,o&&t&&t.i!==3&&!fc(t.D,r)?o.concat(r):void 0);if(P6(n,r,s),!$s(s))return;e.m=!1}if(Mo(i)&&!rE(i)){if(!e.h.F&&e._<1)return;rv(e,i),t&&t.A.l||iv(e,i)}}function iv(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&nE(t,n)}function u1(e,t){var n=e[At];return(n?_a(n):e)[t]}function a3(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function is(e){e.P||(e.P=!0,e.l&&is(e.l))}function f1(e){e.o||(e.o=tE(e.t))}function kw(e,t,n){var r=JC(t)?Zi("MapSet").N(t,n):eE(t)?Zi("MapSet").T(t,n):e.g?function(i,o){var s=Array.isArray(i),a={i:s?1:0,A:o?o.A:Ow(),P:!1,I:!1,D:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=a,c=vd;s&&(l=[a],c=Zu);var f=Proxy.revocable(l,c),h=f.revoke,p=f.proxy;return a.k=p,a.j=h,p}(t,n):Zi("ES5").J(t,n);return(n?n.A:Ow()).p.push(r),r}function woe(e){return $s(e)||mi(22,e),function t(n){if(!Mo(n))return n;var r,i=n[At],o=Qc(n);if(i){if(!i.P&&(i.i<4||!Zi("ES5").K(i)))return i.t;i.I=!0,r=l3(n,o),i.I=!1}else r=l3(n,o);return Xa(r,function(s,a){i&&voe(i.t,s)===a||P6(r,s,t(a))}),o===3?new Set(r):r}(e)}function l3(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return tE(e)}function xoe(){function e(o,s){var a=i[o];return a?a.enumerable=s:i[o]=a={configurable:!0,enumerable:s,get:function(){var l=this[At];return vd.get(l,o)},set:function(l){var c=this[At];vd.set(c,o,l)}},a}function t(o){for(var s=o.length-1;s>=0;s--){var a=o[s][At];if(!a.P)switch(a.i){case 5:r(a)&&is(a);break;case 4:n(a)&&is(a)}}}function n(o){for(var s=o.t,a=o.k,l=dc(a),c=l.length-1;c>=0;c--){var f=l[c];if(f!==At){var h=s[f];if(h===void 0&&!fc(s,f))return!0;var p=a[f],g=p&&p[At];if(g?g.t!==h:!k6(p,h))return!0}}var v=!!s[At];return l.length!==dc(s).length+(v?0:1)}function r(o){var s=o.k;if(s.length!==o.t.length)return!0;var a=Object.getOwnPropertyDescriptor(s,s.length-1);if(a&&!a.get)return!0;for(var l=0;l1?b-1:0),S=1;S1?f-1:0),p=1;p=0;i--){var o=r[i];if(o.path.length===0&&o.op==="replace"){n=o.value;break}}i>-1&&(r=r.slice(i+1));var s=Zi("Patches").$;return $s(n)?s(n,r):this.produce(n,function(a){return s(a,r)})},e}(),Ar=new Toe,N6=Ar.produce;Ar.produceWithPatches.bind(Ar);Ar.setAutoFreeze.bind(Ar);Ar.setUseProxies.bind(Ar);Ar.applyPatches.bind(Ar);Ar.createDraft.bind(Ar);Ar.finishDraft.bind(Ar);function Ooe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function h3(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Gn(1));return n(L6)(e,t)}if(typeof e!="function")throw new Error(Gn(2));var i=e,o=t,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function f(){if(l)throw new Error(Gn(3));return o}function h(y){if(typeof y!="function")throw new Error(Gn(4));if(l)throw new Error(Gn(5));var x=!0;return c(),a.push(y),function(){if(x){if(l)throw new Error(Gn(6));x=!1,c();var w=a.indexOf(y);a.splice(w,1),s=null}}}function p(y){if(!Poe(y))throw new Error(Gn(7));if(typeof y.type>"u")throw new Error(Gn(8));if(l)throw new Error(Gn(9));try{l=!0,o=i(o,y)}finally{l=!1}for(var x=s=a,b=0;b"u")throw new Error(Gn(12));if(typeof n(void 0,{type:ov.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Gn(13))})}function oE(e){for(var t=Object.keys(e),n={},r=0;r"u")throw c&&c.type,new Error(Gn(14));h[g]=x,f=f||x!==y}return f=f||o.length!==Object.keys(l).length,f?h:l}}function sv(){for(var e=arguments.length,t=new Array(e),n=0;n0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:rse,resetAppUpdate:ise}=tse,ose=nse,sse=(e,t)=>{e.serviceFactory("App",goe,"MainHeader","Home","ShlinkWebComponentContainer","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>rse),e.serviceFactory("resetAppUpdate",()=>ise)};const ase=({listDomains:e,value:t,domainsList:n,onChange:r})=>{const[i,,o,s]=hn(),{domains:a}=n,l=Wn(t),c=()=>r("");return B.useEffect(()=>{e()},[]),i?m.jsxs(qd,{children:[m.jsx(Rc,{value:t??"",placeholder:"Domain",onChange:f=>r(f.target.value)}),m.jsx(ht,{id:"backToDropdown",outline:!0,type:"button",className:"domains-dropdown__back-btn","aria-label":"Back to domains list",onClick:Tt(c,s),children:m.jsx(Fe,{icon:nK})}),m.jsx(Er,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):m.jsxs(Bo,{text:l?"Domain":`Domain: ${t}`,className:l?"domains-dropdown__toggle-btn":"domains-dropdown__toggle-btn--active",children:[a.map(({domain:f,isDefault:h})=>m.jsxs(ze,{active:(t===f||h)&&l,onClick:()=>r(f),children:[f,h&&m.jsx("span",{className:"float-end text-muted",children:"default"})]},f)),m.jsx(ze,{divider:!0}),m.jsx(ze,{onClick:Tt(c,o),children:m.jsx("i",{children:"New domain"})})]})},lse=e=>(e==null?void 0:e.type)===f_.INVALID_ARGUMENT||(e==null?void 0:e.type)===d_.INVALID_ARGUMENT,cse=e=>(e==null?void 0:e.type)==="INVALID_SHORTCODE_DELETION"||(e==null?void 0:e.type)===f_.INVALID_SHORT_URL_DELETION||(e==null?void 0:e.type)===d_.INVALID_SHORT_URL_DELETION,use=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),Uo=e=>use(e)?e:void 0,Ro=({errorData:e,fallbackMessage:t})=>m.jsxs(m.Fragment,{children:[(e==null?void 0:e.detail)??t,lse(e)&&m.jsxs("p",{className:"mb-0",children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]}),fse=(e,t)=>{const n=b3(e),r=b3(t),i=n.pop(),o=r.pop(),s=S3(n,r);return s!==0?s:i&&o?S3(i.split("."),o.split(".")):i||o?i?-1:1:0},Nw=(e,t,n)=>{mse(n);const r=fse(e,t);return $6[n].includes(r)},dse=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,b3=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(dse);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},w3=e=>e==="*"||e==="x"||e==="X",x3=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},hse=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],pse=(e,t)=>{if(w3(e)||w3(t))return 0;const[n,r]=hse(x3(e),x3(t));return n>r?1:n{for(let n=0;n":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},C3=Object.keys($6),mse=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(C3.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${C3.join("|")}`)},gse=(e,{maxVersion:t,minVersion:n})=>{const r=!n||Nw(e,n,">=");return(!t||Nw(e,t,"<="))&&r},B6={domainVisits:"3.1.0",excludeBotsOnShortUrls:"3.4.0",filterDisabledUrls:"3.4.0",deviceLongUrls:"3.5.0"};Object.freeze(B6);const Sp=(e,t)=>gse(t,{minVersion:B6[e]}),U6=e=>({domainVisits:Sp("domainVisits",e),excludeBotsOnShortUrls:Sp("excludeBotsOnShortUrls",e),filterDisabledUrls:Sp("filterDisabledUrls",e),deviceLongUrls:Sp("deviceLongUrls",e)}),vse=e=>B.useMemo(()=>U6(e),[e]),z6=B.createContext(U6("0.0.0")),yse=z6.Provider,Qd=e=>B.useContext(z6)[e],H6=B.createContext(""),_se=H6.Provider,cl=()=>B.useContext(H6),Ef=(e,t,n)=>Ao(n)?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n,bse=(e,t)=>!e.domain&&t===v5?!0:e.domain===t,wse=(e,t)=>{const n=(t==null?void 0:t.validateUrls)??!1;return e?{longUrl:e.longUrl,tags:e.tags,title:e.title??void 0,domain:e.domain??void 0,validSince:e.meta.validSince??void 0,validUntil:e.meta.validUntil??void 0,maxVisits:e.meta.maxVisits??void 0,crawlable:e.crawlable,forwardQuery:e.forwardQuery,deviceLongUrls:e.deviceLongUrls&&{android:e.deviceLongUrls.android??void 0,ios:e.deviceLongUrls.ios??void 0,desktop:e.deviceLongUrls.desktop??void 0},validateUrl:n}:{longUrl:"",validateUrl:n}},V6="__",xse=e=>e.replaceAll("/",V6),cm=e=>e.replaceAll(V6,"/");function Qe(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Oe(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function um(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?um=function(n){return typeof n}:um=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},um(e)}function Me(e){Oe(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||um(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(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 ul(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function Ji(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var s=o.getDate();return i>=s?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function fm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fm=function(n){return typeof n}:fm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},fm(e)}function Sse(e,t){if(Oe(2,arguments),!t||fm(t)!=="object")return new Date(NaN);var n=t.years?Qe(t.years):0,r=t.months?Qe(t.months):0,i=t.weeks?Qe(t.weeks):0,o=t.days?Qe(t.days):0,s=t.hours?Qe(t.hours):0,a=t.minutes?Qe(t.minutes):0,l=t.seconds?Qe(t.seconds):0,c=Me(e),f=r||n?Ji(c,r+n*12):c,h=o||i?ul(f,o+i*7):f,p=a+s*60,g=l+p*60,v=g*1e3,y=new Date(h.getTime()+v);return y}function aE(e,t){Oe(2,arguments);var n=Me(e).getTime(),r=Qe(t);return new Date(n+r)}var Cse=36e5;function Ese(e,t){Oe(2,arguments);var n=Qe(t);return aE(e,n*Cse)}var Tse={};function zo(){return Tse}function W6(e,t){var n,r,i,o,s,a,l,c;Oe(1,arguments);var f=zo(),h=Qe((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Me(e),g=p.getDay(),v=(g=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Pse(e){Oe(1,arguments);var t=Ose(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=yd(n);return r}function Ac(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Lr(e){Oe(1,arguments);var t=Me(e);return t.setHours(0,0,0,0),t}var kse=864e5;function _d(e,t){Oe(2,arguments);var n=Lr(e),r=Lr(t),i=n.getTime()-Ac(n),o=r.getTime()-Ac(r);return Math.round((i-o)/kse)}var Mse=6e4;function Lw(e,t){Oe(2,arguments);var n=Qe(t);return aE(e,n*Mse)}function lE(e,t){Oe(2,arguments);var n=Qe(t),r=n*7;return ul(e,r)}function jc(e,t){Oe(2,arguments);var n=Qe(t);return Ji(e,n*12)}function dm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?dm=function(n){return typeof n}:dm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},dm(e)}function E3(e){Oe(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(dm(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=Me(r);(n===void 0||ni||isNaN(i.getDate()))&&(n=i)}),n||new Date(NaN)}function pm(e,t){Oe(2,arguments);var n=Me(e),r=Me(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var cE=6e4,h_=36e5,Rse=1e3;function Nse(e,t){Oe(2,arguments);var n=Lr(e),r=Lr(t);return n.getTime()===r.getTime()}function mm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?mm=function(n){return typeof n}:mm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},mm(e)}function uE(e){return Oe(1,arguments),e instanceof Date||mm(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Y6(e){if(Oe(1,arguments),!uE(e)&&typeof e!="number")return!1;var t=Me(e);return!isNaN(Number(t))}function bd(e,t){Oe(2,arguments);var n=Me(e),r=Me(t),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return i*12+o}function Dw(e){Oe(1,arguments);var t=Me(e),n=Math.floor(t.getMonth()/3)+1;return n}function lv(e,t){Oe(2,arguments);var n=Me(e),r=Me(t);return n.getFullYear()-r.getFullYear()}function O3(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function fE(e,t){Oe(2,arguments);var n=Me(e),r=Me(t),i=O3(n,r),o=Math.abs(_d(n,r));n.setDate(n.getDate()-i*o);var s=+(O3(n,r)===-i),a=i*(o-s);return a===0?0:a}function q6(e,t){return Oe(2,arguments),Me(e).getTime()-Me(t).getTime()}var P3={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},Lse="trunc";function dE(e){return e?P3[e]:P3[Lse]}function Dse(e,t,n){Oe(2,arguments);var r=q6(e,t)/h_;return dE(n==null?void 0:n.roundingMethod)(r)}function Qa(e){Oe(1,arguments);var t=Me(e);return t.setHours(23,59,59,999),t}function Ase(e){Oe(1,arguments);var t=Me(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function jse(e){Oe(1,arguments);var t=Me(e);return Qa(t).getTime()===Ase(t).getTime()}function cv(e,t){Oe(2,arguments);var n=Me(e),r=Me(t),i=pm(n,r),o=Math.abs(bd(n,r)),s;if(o<1)s=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*o);var a=pm(n,r)===-i;jse(Me(e))&&o===1&&pm(e,r)===1&&(a=!1),s=i*(o-Number(a))}return s===0?0:s}function Ise(e,t,n){Oe(2,arguments);var r=q6(e,t)/1e3;return dE(n==null?void 0:n.roundingMethod)(r)}function Fse(e,t,n){Oe(2,arguments);var r=fE(e,t)/7;return dE(n==null?void 0:n.roundingMethod)(r)}function Aw(e){Oe(1,arguments);var t=Me(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function $se(e){Oe(1,arguments);var t=Me(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Bse(e){Oe(1,arguments);var t=Me(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Use(e,t){var n,r,i,o,s,a,l,c;Oe(1,arguments);var f=zo(),h=Qe((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Me(e),g=p.getDay(),v=(g=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Wse(e){Oe(1,arguments);var t=Z6(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Ic(n);return r}var Yse=6048e5;function K6(e){Oe(1,arguments);var t=Me(e),n=Ic(t).getTime()-Wse(t).getTime();return Math.round(n/Yse)+1}function Ja(e,t){var n,r,i,o,s,a,l,c;Oe(1,arguments);var f=zo(),h=Qe((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Me(e),g=p.getUTCDay(),v=(g=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(h+1,0,g),v.setUTCHours(0,0,0,0);var y=Ja(v,t),x=new Date(0);x.setUTCFullYear(h,0,g),x.setUTCHours(0,0,0,0);var b=Ja(x,t);return f.getTime()>=y.getTime()?h+1:f.getTime()>=b.getTime()?h:h-1}function qse(e,t){var n,r,i,o,s,a,l,c;Oe(1,arguments);var f=zo(),h=Qe((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:f.firstWeekContainsDate)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=hE(e,t),g=new Date(0);g.setUTCFullYear(p,0,h),g.setUTCHours(0,0,0,0);var v=Ja(g,t);return v}var Gse=6048e5;function X6(e,t){Oe(1,arguments);var n=Me(e),r=Ja(n,t).getTime()-qse(n,t).getTime();return Math.round(r/Gse)+1}function tt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return tt(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):tt(r+1,2)},d:function(t,n){return tt(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return tt(t.getUTCHours()%12||12,n.length)},H:function(t,n){return tt(t.getUTCHours(),n.length)},m:function(t,n){return tt(t.getUTCMinutes(),n.length)},s:function(t,n){return tt(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return tt(o,n.length)}};const Go=Zse;var Rl={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Kse={G:function(t,n,r){var i=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return Go.y(t,n)},Y:function(t,n,r,i){var o=hE(t,i),s=o>0?o:1-o;if(n==="YY"){var a=s%100;return tt(a,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):tt(s,n.length)},R:function(t,n){var r=Z6(t);return tt(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return tt(r,n.length)},Q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return tt(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return tt(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){var i=t.getUTCMonth();switch(n){case"M":case"MM":return Go.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){var i=t.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return tt(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){var o=X6(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):tt(o,n.length)},I:function(t,n,r){var i=K6(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):tt(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Go.d(t,n)},D:function(t,n,r){var i=Vse(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):tt(i,n.length)},E:function(t,n,r){var i=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return tt(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return tt(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return tt(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),o;switch(i===12?o=Rl.noon:i===0?o=Rl.midnight:o=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),o;switch(i>=17?o=Rl.evening:i>=12?o=Rl.afternoon:i>=4?o=Rl.morning:o=Rl.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return Go.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Go.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):tt(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):tt(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Go.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Go.s(t,n)},S:function(t,n){return Go.S(t,n)},X:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return M3(s);case"XXXX":case"XX":return ba(s);case"XXXXX":case"XXX":default:return ba(s,":")}},x:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"x":return M3(s);case"xxxx":case"xx":return ba(s);case"xxxxx":case"xxx":default:return ba(s,":")}},O:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+k3(s,":");case"OOOO":default:return"GMT"+ba(s,":")}},z:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+k3(s,":");case"zzzz":default:return"GMT"+ba(s,":")}},t:function(t,n,r,i){var o=i._originalDate||t,s=Math.floor(o.getTime()/1e3);return tt(s,n.length)},T:function(t,n,r,i){var o=i._originalDate||t,s=o.getTime();return tt(s,n.length)}};function k3(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var s=t||"";return n+String(i)+s+tt(o,2)}function M3(e,t){if(e%60===0){var n=e>0?"-":"+";return n+tt(Math.abs(e)/60,2)}return ba(e,t)}function ba(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=tt(Math.floor(i/60),2),s=tt(i%60,2);return r+o+n+s}const Xse=Kse;var R3=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Q6=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Qse=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return R3(t,n);var s;switch(i){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",R3(i,n)).replace("{{time}}",Q6(o,n))},Jse={p:Q6,P:Qse};const jw=Jse;var eae=["D","DD"],tae=["YY","YYYY"];function J6(e){return eae.indexOf(e)!==-1}function e5(e){return tae.indexOf(e)!==-1}function uv(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; 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(t,"`) for formatting years to the input `").concat(n,"`; 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(t,"`) for formatting days of the month to the input `").concat(n,"`; 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(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var nae={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"}},rae=function(t,n,r){var i,o=nae[t];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};const iae=rae;function m1(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var oae={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},sae={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},aae={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},lae={date:m1({formats:oae,defaultWidth:"full"}),time:m1({formats:sae,defaultWidth:"full"}),dateTime:m1({formats:aae,defaultWidth:"full"})};const cae=lae;var uae={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},fae=function(t,n,r,i){return uae[t]};const dae=fae;function Lu(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{var a=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[a]}var c=e.argumentCallback?e.argumentCallback(t):t;return i[c]}}var hae={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},pae={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},mae={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"]},gae={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"]},vae={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"}},yae={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"}},_ae=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},bae={ordinalNumber:_ae,era:Lu({values:hae,defaultWidth:"wide"}),quarter:Lu({values:pae,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Lu({values:mae,defaultWidth:"wide"}),day:Lu({values:gae,defaultWidth:"wide"}),dayPeriod:Lu({values:vae,defaultWidth:"wide",formattingValues:yae,defaultFormattingWidth:"wide"})};const wae=bae;function Du(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var s=o[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?Sae(a,function(h){return h.test(s)}):xae(a,function(h){return h.test(s)}),c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;var f=t.slice(s.length);return{value:c,rest:f}}}function xae(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Sae(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var s=e.valueCallback?e.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;var a=t.slice(i.length);return{value:s,rest:a}}}var Eae=/^(\d+)(th|st|nd|rd)?/i,Tae=/\d+/i,Oae={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},Pae={any:[/^b/i,/^(a|c)/i]},kae={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Mae={any:[/1/i,/2/i,/3/i,/4/i]},Rae={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},Nae={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]},Lae={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},Dae={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]},Aae={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},jae={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}},Iae={ordinalNumber:Cae({matchPattern:Eae,parsePattern:Tae,valueCallback:function(t){return parseInt(t,10)}}),era:Du({matchPatterns:Oae,defaultMatchWidth:"wide",parsePatterns:Pae,defaultParseWidth:"any"}),quarter:Du({matchPatterns:kae,defaultMatchWidth:"wide",parsePatterns:Mae,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Du({matchPatterns:Rae,defaultMatchWidth:"wide",parsePatterns:Nae,defaultParseWidth:"any"}),day:Du({matchPatterns:Lae,defaultMatchWidth:"wide",parsePatterns:Dae,defaultParseWidth:"any"}),dayPeriod:Du({matchPatterns:Aae,defaultMatchWidth:"any",parsePatterns:jae,defaultParseWidth:"any"})};const Fae=Iae;var $ae={code:"en-US",formatDistance:iae,formatLong:cae,formatRelative:dae,localize:wae,match:Fae,options:{weekStartsOn:0,firstWeekContainsDate:1}};const pE=$ae;var Bae=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Uae=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zae=/^'([^]*?)'?$/,Hae=/''/g,Vae=/[a-zA-Z]/;function Fc(e,t,n){var r,i,o,s,a,l,c,f,h,p,g,v,y,x,b,w,S,T;Oe(2,arguments);var k=String(t),P=zo(),N=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:P.locale)!==null&&r!==void 0?r:pE,D=Qe((o=(s=(a=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(c=n.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&a!==void 0?a:P.firstWeekContainsDate)!==null&&s!==void 0?s:(h=P.locale)===null||h===void 0||(p=h.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(D>=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var V=Qe((g=(v=(y=(x=n==null?void 0:n.weekStartsOn)!==null&&x!==void 0?x:n==null||(b=n.locale)===null||b===void 0||(w=b.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&y!==void 0?y:P.weekStartsOn)!==null&&v!==void 0?v:(S=P.locale)===null||S===void 0||(T=S.options)===null||T===void 0?void 0:T.weekStartsOn)!==null&&g!==void 0?g:0);if(!(V>=0&&V<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!N.localize)throw new RangeError("locale must contain localize property");if(!N.formatLong)throw new RangeError("locale must contain formatLong property");var A=Me(e);if(!Y6(A))throw new RangeError("Invalid time value");var W=Ac(A),Y=G6(A,W),ee={firstWeekContainsDate:D,weekStartsOn:V,locale:N,_originalDate:A},q=k.match(Uae).map(function(X){var ie=X[0];if(ie==="p"||ie==="P"){var le=jw[ie];return le(X,N.formatLong)}return X}).join("").match(Bae).map(function(X){if(X==="''")return"'";var ie=X[0];if(ie==="'")return Wae(X);var le=Xse[ie];if(le)return!(n!=null&&n.useAdditionalWeekYearTokens)&&e5(X)&&uv(X,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&J6(X)&&uv(X,t,String(e)),le(Y,X,N.localize,ee);if(ie.match(Vae))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ie+"`");return X}).join("");return q}function Wae(e){var t=e.match(zae);return t?t[1].replace(Hae,"'"):e}function mE(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Yae(e){return mE({},e)}var N3=1440,qae=2520,g1=43200,Gae=86400;function Zae(e,t,n){var r,i;Oe(2,arguments);var o=zo(),s=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:o.locale)!==null&&r!==void 0?r:pE;if(!s.formatDistance)throw new RangeError("locale must contain formatDistance property");var a=pm(e,t);if(isNaN(a))throw new RangeError("Invalid time value");var l=mE(Yae(n),{addSuffix:!!(n!=null&&n.addSuffix),comparison:a}),c,f;a>0?(c=Me(t),f=Me(e)):(c=Me(e),f=Me(t));var h=Ise(f,c),p=(Ac(f)-Ac(c))/1e3,g=Math.round((h-p)/60),v;if(g<2)return n!=null&&n.includeSeconds?h<5?s.formatDistance("lessThanXSeconds",5,l):h<10?s.formatDistance("lessThanXSeconds",10,l):h<20?s.formatDistance("lessThanXSeconds",20,l):h<40?s.formatDistance("halfAMinute",0,l):h<60?s.formatDistance("lessThanXMinutes",1,l):s.formatDistance("xMinutes",1,l):g===0?s.formatDistance("lessThanXMinutes",1,l):s.formatDistance("xMinutes",g,l);if(g<45)return s.formatDistance("xMinutes",g,l);if(g<90)return s.formatDistance("aboutXHours",1,l);if(gr.getTime()}function Gr(e,t){Oe(2,arguments);var n=Me(e),r=Me(t);return n.getTime()"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function dv(e){return dv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},dv(e)}function gE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D3(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hv(e){return hv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},hv(e)}function I3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gle=function(e){dle(n,e);var t=hle(n);function n(){var r;ule(this,n);for(var i=arguments.length,o=new Array(i),s=0;s0,r=n?t:1-t,i;if(r<=50)i=e||100;else{var o=r+50,s=Math.floor(o/100)*100,a=e>=o%100;i=e+s-(a?100:0)}return n?i:1-i}function a5(e){return e%400===0||e%4===0&&e%100!==0}function ym(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ym=function(n){return typeof n}:ym=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ym(e)}function vle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F3(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function mv(e){return mv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},mv(e)}function $3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sle=function(e){_le(n,e);var t=ble(n);function n(){var r;vle(this,n);for(var i=arguments.length,o=new Array(i),s=0;s0}},{key:"set",value:function(i,o,s){var a=i.getUTCFullYear();if(s.isTwoDigitYear){var l=s5(s.year,a);return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}var c=!("era"in o)||o.era===1?s.year:1-s.year;return i.setUTCFullYear(c,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function _m(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_m=function(n){return typeof n}:_m=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_m(e)}function Cle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B3(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function gv(e){return gv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},gv(e)}function U3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mle=function(e){Tle(n,e);var t=Ole(n);function n(){var r;Cle(this,n);for(var i=arguments.length,o=new Array(i),s=0;s0}},{key:"set",value:function(i,o,s,a){var l=hE(i,a);if(s.isTwoDigitYear){var c=s5(s.year,l);return i.setUTCFullYear(c,0,a.firstWeekContainsDate),i.setUTCHours(0,0,0,0),Ja(i,a)}var f=!("era"in o)||o.era===1?s.year:1-s.year;return i.setUTCFullYear(f,0,a.firstWeekContainsDate),i.setUTCHours(0,0,0,0),Ja(i,a)}}]),n}(pt);function bm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?bm=function(n){return typeof n}:bm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},bm(e)}function Rle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z3(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vv(e){return vv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},vv(e)}function H3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ile=function(e){Lle(n,e);var t=Dle(n);function n(){var r;Rle(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function yv(e){return yv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},yv(e)}function W3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vle=function(e){Ble(n,e);var t=Ule(n);function n(){var r;Fle(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _v(e){return _v=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_v(e)}function q3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xle=function(e){qle(n,e);var t=Gle(n);function n(){var r;Wle(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=4}},{key:"set",value:function(i,o,s){return i.setUTCMonth((s-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function Sm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Sm=function(n){return typeof n}:Sm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Sm(e)}function Qle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G3(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function bv(e){return bv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},bv(e)}function Z3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ice=function(e){ece(n,e);var t=tce(n);function n(){var r;Qle(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=4}},{key:"set",value:function(i,o,s){return i.setUTCMonth((s-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function Cm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Cm=function(n){return typeof n}:Cm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Cm(e)}function oce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K3(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function wv(e){return wv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},wv(e)}function X3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fce=function(e){ace(n,e);var t=lce(n);function n(){var r;oce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=11}},{key:"set",value:function(i,o,s){return i.setUTCMonth(s,1),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function Em(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Em=function(n){return typeof n}:Em=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Em(e)}function dce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q3(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xv(e){return xv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},xv(e)}function J3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yce=function(e){pce(n,e);var t=mce(n);function n(){var r;dce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=11}},{key:"set",value:function(i,o,s){return i.setUTCMonth(s,1),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function _ce(e,t,n){Oe(2,arguments);var r=Me(e),i=Qe(t),o=X6(r,n)-i;return r.setUTCDate(r.getUTCDate()-o*7),r}function Tm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Tm=function(n){return typeof n}:Tm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Tm(e)}function bce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Sv(e){return Sv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Sv(e)}function tR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tce=function(e){xce(n,e);var t=Sce(n);function n(){var r;bce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=53}},{key:"set",value:function(i,o,s,a){return Ja(_ce(i,s,a),a)}}]),n}(pt);function Oce(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t),i=K6(n)-r;return n.setUTCDate(n.getUTCDate()-i*7),n}function Om(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Om=function(n){return typeof n}:Om=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Om(e)}function Pce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Cv(e){return Cv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Cv(e)}function rR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Dce=function(e){Mce(n,e);var t=Rce(n);function n(){var r;Pce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=53}},{key:"set",value:function(i,o,s){return Ic(Oce(i,s))}}]),n}(pt);function Pm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pm=function(n){return typeof n}:Pm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Pm(e)}function Ace(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ev(e){return Ev=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ev(e)}function v1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Uce=[31,28,31,30,31,30,31,31,30,31,30,31],zce=[31,29,31,30,31,30,31,31,30,31,30,31],Hce=function(e){Ice(n,e);var t=Fce(n);function n(){var r;Ace(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=zce[l]:o>=1&&o<=Uce[l]}},{key:"set",value:function(i,o,s){return i.setUTCDate(s),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function Mm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mm=function(n){return typeof n}:Mm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Mm(e)}function Vce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Tv(e){return Tv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Tv(e)}function y1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Kce=function(e){Yce(n,e);var t=qce(n);function n(){var r;Vce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(i,o,s){return i.setUTCMonth(0,s),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function _E(e,t,n){var r,i,o,s,a,l,c,f;Oe(2,arguments);var h=zo(),p=Qe((r=(i=(o=(s=n==null?void 0:n.weekStartsOn)!==null&&s!==void 0?s:n==null||(a=n.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:h.weekStartsOn)!==null&&i!==void 0?i:(c=h.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=Me(e),v=Qe(t),y=g.getUTCDay(),x=v%7,b=(x+7)%7,w=(b"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ov(e){return Ov=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ov(e)}function aR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rue=function(e){Jce(n,e);var t=eue(n);function n(){var r;Xce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=6}},{key:"set",value:function(i,o,s,a){return i=_E(i,s,a),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function Lm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Lm=function(n){return typeof n}:Lm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Lm(e)}function iue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Pv(e){return Pv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Pv(e)}function cR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uue=function(e){sue(n,e);var t=aue(n);function n(){var r;iue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=6}},{key:"set",value:function(i,o,s,a){return i=_E(i,s,a),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function Dm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Dm=function(n){return typeof n}:Dm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Dm(e)}function fue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function kv(e){return kv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},kv(e)}function fR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vue=function(e){hue(n,e);var t=pue(n);function n(){var r;fue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=6}},{key:"set",value:function(i,o,s,a){return i=_E(i,s,a),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function yue(e,t){Oe(2,arguments);var n=Qe(t);n%7===0&&(n=n-7);var r=1,i=Me(e),o=i.getUTCDay(),s=n%7,a=(s+7)%7,l=(a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Mv(e){return Mv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Mv(e)}function hR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Eue=function(e){wue(n,e);var t=xue(n);function n(){var r;_ue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=7}},{key:"set",value:function(i,o,s){return i=yue(i,s),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function jm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jm=function(n){return typeof n}:jm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},jm(e)}function Tue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rv(e){return Rv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Rv(e)}function mR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nue=function(e){Pue(n,e);var t=kue(n);function n(){var r;Tue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Nv(e){return Nv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Nv(e)}function vR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $ue=function(e){Aue(n,e);var t=jue(n);function n(){var r;Lue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Lv(e){return Lv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Lv(e)}function _R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yue=function(e){zue(n,e);var t=Hue(n);function n(){var r;Bue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Dv(e){return Dv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Dv(e)}function wR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jue=function(e){Zue(n,e);var t=Kue(n);function n(){var r;que(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=12}},{key:"set",value:function(i,o,s){var a=i.getUTCHours()>=12;return a&&s<12?i.setUTCHours(s+12,0,0,0):!a&&s===12?i.setUTCHours(0,0,0,0):i.setUTCHours(s,0,0,0),i}}]),n}(pt);function Bm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bm=function(n){return typeof n}:Bm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Bm(e)}function efe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Av(e){return Av=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Av(e)}function SR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sfe=function(e){nfe(n,e);var t=rfe(n);function n(){var r;efe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=23}},{key:"set",value:function(i,o,s){return i.setUTCHours(s,0,0,0),i}}]),n}(pt);function Um(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Um=function(n){return typeof n}:Um=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Um(e)}function afe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function jv(e){return jv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},jv(e)}function ER(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hfe=function(e){cfe(n,e);var t=ufe(n);function n(){var r;afe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=11}},{key:"set",value:function(i,o,s){var a=i.getUTCHours()>=12;return a&&s<12?i.setUTCHours(s+12,0,0,0):i.setUTCHours(s,0,0,0),i}}]),n}(pt);function zm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zm=function(n){return typeof n}:zm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},zm(e)}function pfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Iv(e){return Iv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Iv(e)}function OR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bfe=function(e){gfe(n,e);var t=vfe(n);function n(){var r;pfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=24}},{key:"set",value:function(i,o,s){var a=s<=24?s%24:s;return i.setUTCHours(a,0,0,0),i}}]),n}(pt);function Hm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Hm=function(n){return typeof n}:Hm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Hm(e)}function wfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Fv(e){return Fv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Fv(e)}function kR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ofe=function(e){Sfe(n,e);var t=Cfe(n);function n(){var r;wfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=59}},{key:"set",value:function(i,o,s){return i.setUTCMinutes(s,0,0),i}}]),n}(pt);function Vm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vm=function(n){return typeof n}:Vm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vm(e)}function Pfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $v(e){return $v=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},$v(e)}function RR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Dfe=function(e){Mfe(n,e);var t=Rfe(n);function n(){var r;Pfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=59}},{key:"set",value:function(i,o,s){return i.setUTCSeconds(s,0),i}}]),n}(pt);function Wm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Wm=function(n){return typeof n}:Wm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Wm(e)}function Afe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Bv(e){return Bv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Bv(e)}function LR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ufe=function(e){Ife(n,e);var t=Ffe(n);function n(){var r;Afe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Uv(e){return Uv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Uv(e)}function AR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gfe=function(e){Vfe(n,e);var t=Wfe(n);function n(){var r;zfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function zv(e){return zv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},zv(e)}function IR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tde=function(e){Xfe(n,e);var t=Qfe(n);function n(){var r;Zfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Hv(e){return Hv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Hv(e)}function $R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lde=function(e){ide(n,e);var t=ode(n);function n(){var r;nde(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Vv(e){return Vv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Vv(e)}function UR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mde=function(e){fde(n,e);var t=dde(n);function n(){var r;cde(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=vde(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,a;return{s:function(){n=e[Symbol.iterator]()},n:function(){var c=n.next();return o=c.done,c},e:function(c){s=!0,a=c},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(s)throw a}}}}function vde(e,t){if(e){if(typeof e=="string")return HR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return HR(e,t)}}function HR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var W=Qe((v=(y=(x=(b=r==null?void 0:r.weekStartsOn)!==null&&b!==void 0?b:r==null||(w=r.locale)===null||w===void 0||(S=w.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&x!==void 0?x:D.weekStartsOn)!==null&&y!==void 0?y:(T=D.locale)===null||T===void 0||(k=T.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&v!==void 0?v:0);if(!(W>=0&&W<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(N==="")return P===""?Me(n):new Date(NaN);var Y={firstWeekContainsDate:A,weekStartsOn:W,locale:V},ee=[new ale],q=N.match(_de).map(function(O){var R=O[0];if(R in jw){var I=jw[R];return I(O,V.formatLong)}return O}).join("").match(yde),X=[],ie=zR(q),le;try{var G=function(){var R=le.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&e5(R)&&uv(R,N,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&J6(R)&&uv(R,N,e);var I=R[0],Q=gde[I];if(Q){var K=Q.incompatibleTokens;if(Array.isArray(K)){var oe=X.find(function(Le){return K.includes(Le.token)||Le.token===I});if(oe)throw new RangeError("The format string mustn't contain `".concat(oe.fullToken,"` and `").concat(R,"` at the same time"))}else if(Q.incompatibleTokens==="*"&&X.length>0)throw new RangeError("The format string mustn't contain `".concat(R,"` and any other token at the same time"));X.push({token:I,fullToken:R});var ge=Q.run(P,R,V.match,Y);if(!ge)return{v:new Date(NaN)};ee.push(ge.setter),P=ge.rest}else{if(I.match(Sde))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");if(R==="''"?R="'":I==="'"&&(R=Cde(R)),P.indexOf(R)===0)P=P.slice(R.length);else return{v:new Date(NaN)}}};for(ie.s();!(le=ie.n()).done;){var F=G();if(Km(F)==="object")return F.v}}catch(O){ie.e(O)}finally{ie.f()}if(P.length>0&&xde.test(P))return new Date(NaN);var j=ee.map(function(O){return O.priority}).sort(function(O,R){return R-O}).filter(function(O,R,I){return I.indexOf(O)===R}).map(function(O){return ee.filter(function(R){return R.priority===O}).sort(function(R,I){return I.subPriority-R.subPriority})}).map(function(O){return O[0]}),U=Me(n);if(isNaN(U.getTime()))return new Date(NaN);var te=G6(U,Ac(U)),z={},Z=zR(j),ne;try{for(Z.s();!(ne=Z.n()).done;){var ae=ne.value;if(!ae.validate(te,Y))return new Date(NaN);var pe=ae.set(te,z,Y);Array.isArray(pe)?(te=pe[0],mE(z,pe[1])):te=pe}}catch(O){Z.e(O)}finally{Z.f()}return te}function Cde(e){return e.match(bde)[1].replace(wde,"'")}function Ede(e,t){Oe(2,arguments);var n=Me(e),r=Me(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function Tde(e,t){Oe(2,arguments);var n=Aw(e),r=Aw(t);return n.getTime()===r.getTime()}function Ode(e,t){Oe(2,arguments);var n=Me(e),r=Me(t);return n.getFullYear()===r.getFullYear()}function $c(e,t){Oe(2,arguments);var n=Me(e).getTime(),r=Me(t.start).getTime(),i=Me(t.end).getTime();if(!(r<=i))throw new RangeError("Invalid interval");return n>=r&&n<=i}function bE(e,t){Oe(2,arguments);var n=Qe(t);return ul(e,-n)}function No(e,t){var n;Oe(1,arguments);var r=Qe((n=t==null?void 0:t.additionalDigits)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=Rde(e),o;if(i.date){var s=Nde(i.date,r);o=Lde(s.restDateString,s.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var a=o.getTime(),l=0,c;if(i.time&&(l=Dde(i.time),isNaN(l)))return new Date(NaN);if(i.timezone){if(c=Ade(i.timezone),isNaN(c))return new Date(NaN)}else{var f=new Date(a+l),h=new Date(0);return h.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),h.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),h}return new Date(a+l+c)}var Cp={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Pde=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,kde=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Mde=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Rde(e){var t={},n=e.split(Cp.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Cp.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Cp.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var i=Cp.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function Nde(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function Lde(e,t){if(t===null)return new Date(NaN);var n=e.match(Pde);if(!n)return new Date(NaN);var r=!!n[4],i=Au(n[1]),o=Au(n[2])-1,s=Au(n[3]),a=Au(n[4]),l=Au(n[5])-1;if(r)return Bde(t,a,l)?jde(t,a,l):new Date(NaN);var c=new Date(0);return!Fde(t,o,s)||!$de(t,i)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(i,s)),c)}function Au(e){return e?parseInt(e):1}function Dde(e){var t=e.match(kde);if(!t)return NaN;var n=b1(t[1]),r=b1(t[2]),i=b1(t[3]);return Ude(n,r,i)?n*h_+r*cE+i*1e3:NaN}function b1(e){return e&&parseFloat(e.replace(",","."))||0}function Ade(e){if(e==="Z")return 0;var t=e.match(Mde);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return zde(r,i)?n*(r*h_+i*cE):NaN}function jde(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}var Ide=[31,null,31,30,31,30,31,31,30,31,30,31];function l5(e){return e%400===0||e%4===0&&e%100!==0}function Fde(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Ide[t]||(l5(e)?29:28))}function $de(e,t){return t>=1&&t<=(l5(e)?366:365)}function Bde(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Ude(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function zde(e,t){return t>=0&&t<=59}function zi(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t),i=n.getFullYear(),o=n.getDate(),s=new Date(0);s.setFullYear(i,r,15),s.setHours(0,0,0,0);var a=Qae(s);return n.setMonth(r,Math.min(o,a)),n}function Tf(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t);return n.setHours(r),n}function Of(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t);return n.setMinutes(r),n}function Ku(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t),i=Math.floor(n.getMonth()/3)+1,o=r-i;return zi(n,n.getMonth()+o*3)}function Hde(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t);return n.setSeconds(r),n}function Wv(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function wd(e,t){Oe(2,arguments);var n=Qe(t);return Ji(e,-n)}function Vde(e,t){Oe(2,arguments);var n=Qe(t);return lE(e,-n)}function xd(e,t){Oe(2,arguments);var n=Qe(t);return jc(e,-n)}const c5="yyyy-MM-dd",wE="yyyy-MM-dd HH:mm",Us=()=>new Date,xE=e=>typeof e!="string",SE=(e,t)=>!e||!xE(e)?e:t?Fc(e,t):Kae(e),zs=e=>SE(e,void 0),Pa=e=>SE(e,c5),Yv=e=>SE(e,wE),yi=e=>xE(e)?e:No(e),Jd=(e,t,n)=>{try{return $c(yi(e),{start:yi(t??e),end:yi(n??e)})}catch{return!1}},ca=(e,t)=>t5(e,t)||Gr(e,t),eh="all",u5={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[eh]:void 0},f5=Object.keys(u5),d5=e=>e===void 0||Wn(vj(Boolean,e)),qv=e=>typeof e=="string"&&f5.includes(e),Wde=f5.filter(e=>e!==eh),VR=e=>e?yi(e):null,h5=(e,t)=>({startDate:VR(e),endDate:VR(t)}),Yde=e=>{if(!(!e||d5(e)))return e.startDate&&!e.endDate?`Since ${Pa(e.startDate)}`:!e.startDate&&e.endDate?`Until ${Pa(e.endDate)}`:`${Pa(e.startDate)} - ${Pa(e.endDate)}`},p5=e=>{if(!(!e||e===eh))return qv(e)?u5[e]:Yde(e)},Yr=e=>Lr(bE(Us(),e)),Nl=e=>({startDate:e,endDate:Qa(Us())}),ua=e=>t=>e===t,m5=VS([[ua("today"),()=>Nl(Lr(Us()))],[ua("yesterday"),()=>({startDate:Yr(1),endDate:Qa(bE(Us(),1))})],[ua("last7Days"),()=>Nl(Yr(7))],[ua("last30Days"),()=>Nl(Yr(30))],[ua("last90Days"),()=>Nl(Yr(90))],[ua("last180Days"),()=>Nl(Yr(180))],[ua("last365Days"),()=>Nl(Yr(365))],[uj,()=>({})]]),qde=e=>{const t=yi(e);return VS([[()=>ca(Lr(Us()),t),()=>"today"],[()=>ca(Yr(1),t),()=>"yesterday"],[()=>ca(Yr(7),t),()=>"last7Days"],[()=>ca(Yr(30),t),()=>"last30Days"],[()=>ca(Yr(90),t),()=>"last90Days"],[()=>ca(Yr(180),t),()=>"last180Days"],[()=>ca(Yr(365),t),()=>"last365Days"],[uj,()=>eh]])()},Gde=e=>qv(e)?m5(e):e,Sr=(e,t)=>F6(e,t,{serializeError:qy}),th=On("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),WR=5e3,YR=4,qR=2,Zde=({currentPage:e,pagesCount:t})=>e>=t,Kde=(e,t)=>t*100/e,nh=({typePrefix:e,createLoaders:t,getExtraFulfilledPayload:n,shouldCancel:r})=>{const i=On(`${e}/progressChanged`),o=On(`${e}/large`),s=On(`${e}/fallbackToInterval`),a=Sr(e,async(l,{getState:c,dispatch:f})=>{var w;const[h,p]=t(l),g=async S=>Promise.all(S.map(async T=>h(T,WR).then(at("data")))).then(GG),v=async(S,T=0)=>{if(r(c))return[];const k=await g(S[T]);return f(i(Kde(S.length,T+qR))),T{const{pagination:T,data:k}=await h(S,WR);if(!T||Zde(T))return k;const P=YS(qR,T.pagesCount+1),N=od(YR,P);return T.pagesCount-1>YR&&f(o()),k.concat(await v(N))},[x,b]=await Promise.all([y(),p((w=l.query)==null?void 0:w.excludeBots)]);return!x.length&&b&&f(s(qde(b.date))),{...n(l),visits:x}});return Object.assign(a,{progressChanged:i,large:o,fallbackToInterval:s})},rh=(e,t)=>async n=>e?t({page:1,itemsPerPage:1,excludeBots:n}).then(({data:r})=>r[0]):Promise.resolve(void 0),ih=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisits:r})=>{const{pending:i,rejected:o,fulfilled:s,large:a,progressChanged:l,fallbackToInterval:c}=t,{reducer:f,actions:h}=nr({name:e,initialState:n,reducers:{cancelGetVisits:g=>({...g,cancelLoad:!0})},extraReducers:g=>{g.addCase(i,()=>({...n,loading:!0})),g.addCase(o,(v,{error:y})=>({...n,error:!0,errorData:Uo(y)})),g.addCase(s,(v,{payload:y})=>({...v,...y,loading:!1,loadingLarge:!1,error:!1})),g.addCase(a,v=>({...v,loadingLarge:!0})),g.addCase(l,(v,{payload:y})=>({...v,progress:y})),g.addCase(c,(v,{payload:y})=>({...v,fallbackInterval:y})),g.addCase(th,(v,{payload:y})=>{const{visits:x}=v,b=r(v,y.createdVisits).map(({visit:w})=>w);return b.length?{...v,visits:[...b,...x]}:v})}}),{cancelGetVisits:p}=h;return{reducer:f,cancelGetVisits:p}},g5="shlink/domainVisits",v5="DEFAULT",Xde={visits:[],domain:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},Qde=e=>nh({typePrefix:`${g5}/getDomainVisits`,createLoaders:({domain:t,query:n={},doIntervalFallback:r=!1})=>{const{getDomainVisits:i}=e(),o=async(a,l)=>i(t,{...n,page:a,itemsPerPage:l}),s=rh(r,async a=>i(t,a));return[o,s]},getExtraFulfilledPayload:({domain:t,query:n={}})=>({domain:t,query:n}),shouldCancel:t=>t().domainVisits.cancelLoad}),Jde=e=>ih({name:g5,initialState:Xde,asyncThunkCreator:e,filterCreatedVisits:({domain:t,query:n={}},r)=>{const{startDate:i,endDate:o}=n;return r.filter(({shortUrl:s,visit:a})=>s&&bse(s,t)&&Jd(a.date,i,o))}}),Xm=({className:e="",placement:t,children:n})=>{const r=al();return m.jsxs(m.Fragment,{children:[m.jsx("span",{className:e,ref:r,children:m.jsx(Fe,{icon:KS})}),m.jsx(Er,{target:r,placement:t,children:n})]})},p_=e=>Tt(t=>t.preventDefault(),e),CE=(e,t,n=1)=>YS(n,e+1).map(t),Hi=e=>!Ao(e)&&!Wn(e),w1=e=>Wn(e)?null:e,y5=e=>e?"true":"false",x1=e=>e===void 0?void 0:y5(e),S1=({isLast:e,...t})=>m.jsx(lm,{...t,required:!1,type:"url",placeholder:"No redirect",className:e?"mb-0":""}),ehe=({isOpen:e,toggle:t,domain:n,editDomainRedirects:r})=>{var h,p,g;const[i,o]=B.useState(((h=n.redirects)==null?void 0:h.baseUrlRedirect)??""),[s,a]=B.useState(((p=n.redirects)==null?void 0:p.regular404Redirect)??""),[l,c]=B.useState(((g=n.redirects)==null?void 0:g.invalidShortUrlRedirect)??""),f=p_(async()=>r({domain:n.domain,redirects:{baseUrlRedirect:w1(i),regular404Redirect:w1(s),invalidShortUrlRedirect:w1(l)}}).then(t));return m.jsx($o,{isOpen:e,toggle:t,centered:!0,children:m.jsxs("form",{name:"domainRedirectsModal",onSubmit:f,children:[m.jsxs(to,{toggle:t,children:["Edit redirects for ",m.jsx("b",{children:n.domain})]}),m.jsxs(Oi,{children:[m.jsxs(S1,{value:i,onChange:o,children:[m.jsxs(Xm,{className:"me-2",placement:"bottom",children:["Visitors accessing the base url, as in ",m.jsxs("b",{children:["https://",n.domain,"/"]}),", will be redirected to this URL."]}),"Base URL"]}),m.jsxs(S1,{value:s,onChange:a,children:[m.jsxs(Xm,{className:"me-2",placement:"bottom",children:["Visitors accessing a url not matching a short URL pattern, as in ",m.jsxs("b",{children:["https://",n.domain,"/???/[...]"]}),", will be redirected to this URL."]}),"Regular 404"]}),m.jsxs(S1,{value:l,isLast:!0,onChange:c,children:[m.jsx(Xm,{className:"me-2",placement:"bottom",children:"Visitors accessing a url matching a short URL pattern, but not matching an existing short code, will be redirected to this URL."}),"Invalid short URL"]})]}),m.jsxs(Zs,{children:[m.jsx(ht,{color:"link",type:"button",onClick:t,children:"Cancel"}),m.jsx(ht,{color:"primary",children:"Save"})]})]})})},the=({domain:e,editDomainRedirects:t})=>{const[n,r]=hn(),i=Qd("domainVisits"),o=cl();return m.jsxs(l_,{children:[i&&m.jsxs(ze,{tag:Dt,to:`${o}/domain/${e.domain}${e.isDefault?`_${v5}`:""}/visits`,children:[m.jsx(Fe,{icon:ZS,fixedWidth:!0})," Visit stats"]}),m.jsxs(ze,{onClick:r,children:[m.jsx(Fe,{fixedWidth:!0,icon:GS})," Edit redirects"]}),m.jsx(ehe,{domain:e,isOpen:n,toggle:r,editDomainRedirects:t})]})},Ci=({href:e,children:t,rel:n,...r})=>m.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e}),nhe=({status:e,matchMedia:t=window.matchMedia})=>{const n=al(),r=()=>t("(max-width: 991px)").matches,[i,o]=B.useState(r());return B.useEffect(()=>{const s=()=>o(r());return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),e==="validating"?m.jsx(Fe,{fixedWidth:!0,icon:Oj,spin:!0}):m.jsxs(m.Fragment,{children:[m.jsx("span",{ref:n,children:e==="valid"?m.jsx(Fe,{fixedWidth:!0,icon:sd,className:"text-muted"}):m.jsx(Fe,{fixedWidth:!0,icon:Jb,className:"text-danger"})}),m.jsx(Er,{target:n,placement:i?"top-start":"left",autohide:e==="valid",children:e==="valid"?"Congratulations! This domain is properly configured.":m.jsxs("span",{children:["Oops! There is some missing configuration, and short URLs shared with this domain will not work.",m.jsx("br",{}),"Check the ",m.jsx(Ci,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},C1=({fallback:e})=>m.jsxs("span",{className:"text-muted",children:[!e&&m.jsx("small",{children:"No redirect"}),e&&m.jsxs(m.Fragment,{children:[e," ",m.jsx("small",{children:"(as fallback)"})]})]}),rhe=()=>m.jsxs(m.Fragment,{children:[m.jsx(Fe,{fixedWidth:!0,icon:FZ,className:"text-primary",id:"defaultDomainIcon"}),m.jsx(Er,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]}),ihe=({domain:e,editDomainRedirects:t,checkDomainHealth:n,defaultRedirects:r})=>{const{domain:i,isDefault:o,redirects:s,status:a}=e;return B.useEffect(()=>{n(e.domain)},[]),m.jsxs("tr",{className:"responsive-table__row",children:[m.jsx("td",{className:"responsive-table__cell","data-th":"Is default domain",children:o&&m.jsx(rhe,{})}),m.jsx("th",{className:"responsive-table__cell","data-th":"Domain",children:i}),m.jsx("td",{className:"responsive-table__cell","data-th":"Base path redirect",children:(s==null?void 0:s.baseUrlRedirect)??m.jsx(C1,{fallback:r==null?void 0:r.baseUrlRedirect})}),m.jsx("td",{className:"responsive-table__cell","data-th":"Regular 404 redirect",children:(s==null?void 0:s.regular404Redirect)??m.jsx(C1,{fallback:r==null?void 0:r.regular404Redirect})}),m.jsx("td",{className:"responsive-table__cell","data-th":"Invalid short URL redirect",children:(s==null?void 0:s.invalidShortUrlRedirect)??m.jsx(C1,{fallback:r==null?void 0:r.invalidShortUrlRedirect})}),m.jsx("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:m.jsx(nhe,{status:a})}),m.jsx("td",{className:"responsive-table__cell text-end",children:m.jsx(the,{domain:e,editDomainRedirects:t})})]})},GR=["","Domain","Base path redirect","Regular 404 redirect","Invalid short URL redirect","",""],ohe=({listDomains:e,domainsList:t,filterDomains:n,editDomainRedirects:r,checkDomainHealth:i})=>{var p;const{filteredDomains:o,defaultRedirects:s,loading:a,error:l,errorData:c}=t,f=s??((p=o.find(({isDefault:g})=>g))==null?void 0:p.redirects);if(B.useEffect(()=>{e()},[]),a)return m.jsx(wo,{loading:!0});const h=()=>l?m.jsx(Nr,{type:"error",children:m.jsx(Ro,{errorData:c,fallbackMessage:"Error loading domains :("})}):m.jsx(cn,{children:m.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[m.jsx("thead",{className:"responsive-table__header",children:m.jsx("tr",{children:GR.map((g,v)=>m.jsx("th",{children:g},v))})}),m.jsxs("tbody",{children:[o.length<1&&m.jsx("tr",{children:m.jsx("td",{colSpan:GR.length,className:"text-center",children:"No results found"})}),o.map(g=>m.jsx(ihe,{domain:g,editDomainRedirects:r,checkDomainHealth:i,defaultRedirects:f},g.domain))]})]})});return m.jsxs(m.Fragment,{children:[m.jsx(Zd,{className:"mb-3",onChange:n}),h()]})},she="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",ahe=e=>Sr(she,async({domain:t,redirects:n})=>{const i=await e().editDomainRedirects({domain:t,...n});return{domain:t,redirects:i}}),Ep="shlink/domainsList",Tp={domains:[],filteredDomains:[],loading:!1,error:!1},ZR=({domain:e,redirects:t})=>n=>n.domain!==e?n:{...n,redirects:t},KR=(e,t)=>n=>n.domain!==e?n:{...n,status:t},lhe=(e,t)=>{const n=Sr(`${Ep}/listDomains`,async()=>{const{data:s,defaultRedirects:a}=await e().listDomains();return{domains:s.map(l=>({...l,status:"validating"})),defaultRedirects:a}}),r=Sr(`${Ep}/checkDomainHealth`,async s=>{try{const{status:a}=await e().health(s);return{domain:s,status:a==="pass"?"valid":"invalid"}}catch{return{domain:s,status:"invalid"}}}),i=On(`${Ep}/filterDomains`),{reducer:o}=nr({name:Ep,initialState:Tp,reducers:{},extraReducers:s=>{s.addCase(n.pending,()=>({...Tp,loading:!0})),s.addCase(n.rejected,(a,{error:l})=>({...Tp,error:!0,errorData:Uo(l)})),s.addCase(n.fulfilled,(a,{payload:l})=>({...Tp,...l,filteredDomains:l.domains})),s.addCase(r.fulfilled,({domains:a,filteredDomains:l,...c},{payload:f})=>({...c,domains:a.map(KR(f.domain,f.status)),filteredDomains:l.map(KR(f.domain,f.status))})),s.addCase(i,(a,{payload:l})=>({...a,filteredDomains:a.domains.filter(({domain:c})=>c.toLowerCase().match(l.toLowerCase()))})),s.addCase(t.fulfilled,(a,{payload:l})=>({...a,domains:a.domains.map(ZR(l)),filteredDomains:a.filteredDomains.map(ZR(l))}))}});return{reducer:o,listDomains:n,checkDomainHealth:r,filterDomains:i}},che=(e,t)=>{e.serviceFactory("DomainSelector",()=>ase),e.decorator("DomainSelector",t(["domainsList"],["listDomains"])),e.serviceFactory("ManageDomains",()=>ohe),e.decorator("ManageDomains",t(["domainsList"],["listDomains","filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",lhe,"apiClientFactory","editDomainRedirects"),e.serviceFactory("domainsListReducer",at("reducer"),"domainsListReducerCreator"),e.serviceFactory("listDomains",at("listDomains"),"domainsListReducerCreator"),e.serviceFactory("filterDomains",at("filterDomains"),"domainsListReducerCreator"),e.serviceFactory("editDomainRedirects",ahe,"apiClientFactory"),e.serviceFactory("checkDomainHealth",at("checkDomainHealth"),"domainsListReducerCreator")},XR="shlink/mercure",uhe={loading:!0,error:!1},fhe=e=>{const t=Sr(`${XR}/loadMercureInfo`,({realTimeUpdates:r})=>{if(r&&!r.enabled)throw new Error("Real time updates not enabled");return e().mercureInfo()}),{reducer:n}=nr({name:XR,initialState:uhe,reducers:{},extraReducers:r=>{r.addCase(t.pending,i=>({...i,loading:!0,error:!1})),r.addCase(t.rejected,i=>({...i,loading:!1,error:!0})),r.addCase(t.fulfilled,(i,{payload:o})=>({...o,loading:!1,error:!1}))}});return{loadMercureInfo:t,reducer:n}},dhe=e=>{e.serviceFactory("mercureInfoReducerCreator",fhe,"apiClientFactory"),e.serviceFactory("mercureInfoReducer",at("reducer"),"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",at("loadMercureInfo"),"mercureInfoReducerCreator")};var Yx={exports:{}};/** @license * eventsource.js * Available under MIT License (MIT) diff --git a/feature/shlink-web-component/index.html b/feature/shlink-web-component/index.html index 3f1b5ffe..a19080cb 100644 --- a/feature/shlink-web-component/index.html +++ b/feature/shlink-web-component/index.html @@ -79,7 +79,7 @@ Shlink — The URL shortener - + diff --git a/feature/shlink-web-component/service-worker.js b/feature/shlink-web-component/service-worker.js index 5f6e9fbc..d36f81d1 100644 --- a/feature/shlink-web-component/service-worker.js +++ b/feature/shlink-web-component/service-worker.js @@ -1,2 +1,2 @@ try{self["workbox:core:6.5.3"]&&_()}catch{}const z=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},G=z;class h extends Error{constructor(e,t){const n=G(e,t);super(n),this.name=e,this.details=t}}const B=new Set;function Q(s){B.add(s)}const d={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},k=s=>[d.prefix,s,d.suffix].filter(e=>e&&e.length>0).join("-"),J=s=>{for(const e of Object.keys(d))s(e)},x={updateDetails:s=>{J(e=>{typeof s[e]=="string"&&(d[e]=s[e])})},getGoogleAnalyticsName:s=>s||k(d.googleAnalytics),getPrecacheName:s=>s||k(d.precache),getPrefix:()=>d.prefix,getRuntimeName:s=>s||k(d.runtime),getSuffix:()=>d.suffix};function K(s,e){const t=new URL(s);for(const n of e)t.searchParams.delete(n);return t.href}async function X(s,e,t,n){const r=K(e.url,t);if(e.url===r)return s.match(e,n);const a=Object.assign(Object.assign({},n),{ignoreSearch:!0}),i=await s.keys(e,a);for(const c of i){const o=K(c.url,t);if(r===o)return s.match(c,n)}}let m;function Y(){if(m===void 0){const s=new Response("");if("body"in s)try{new Response(s.body),m=!0}catch{m=!1}m=!1}return m}function q(s){s.then(()=>{})}class Z{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}async function ee(){for(const s of B)await s()}const te=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function se(s){return new Promise(e=>setTimeout(e,s))}function A(s,e){const t=e();return s.waitUntil(t),t}async function ne(s,e){let t=null;if(s.url&&(t=new URL(s.url).origin),t!==self.location.origin)throw new h("cross-origin-copy-response",{origin:t});const n=s.clone(),r={headers:new Headers(n.headers),status:n.status,statusText:n.statusText},a=e?e(r):r,i=Y()?n.body:await n.blob();return new Response(i,a)}function re(){self.addEventListener("activate",()=>self.clients.claim())}const ae=(s,e)=>e.some(t=>s instanceof t);let j,O;function ie(){return j||(j=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function ce(){return O||(O=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const F=new WeakMap,U=new WeakMap,H=new WeakMap,E=new WeakMap,P=new WeakMap;function oe(s){const e=new Promise((t,n)=>{const r=()=>{s.removeEventListener("success",a),s.removeEventListener("error",i)},a=()=>{t(f(s.result)),r()},i=()=>{n(s.error),r()};s.addEventListener("success",a),s.addEventListener("error",i)});return e.then(t=>{t instanceof IDBCursor&&F.set(t,s)}).catch(()=>{}),P.set(e,s),e}function le(s){if(U.has(s))return;const e=new Promise((t,n)=>{const r=()=>{s.removeEventListener("complete",a),s.removeEventListener("error",i),s.removeEventListener("abort",i)},a=()=>{t(),r()},i=()=>{n(s.error||new DOMException("AbortError","AbortError")),r()};s.addEventListener("complete",a),s.addEventListener("error",i),s.addEventListener("abort",i)});U.set(s,e)}let T={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return U.get(s);if(e==="objectStoreNames")return s.objectStoreNames||H.get(s);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return f(s[e])},set(s,e,t){return s[e]=t,!0},has(s,e){return s instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in s}};function he(s){T=s(T)}function ue(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const n=s.call(D(this),e,...t);return H.set(n,e.sort?e.sort():[e]),f(n)}:ce().includes(s)?function(...e){return s.apply(D(this),e),f(F.get(this))}:function(...e){return f(s.apply(D(this),e))}}function de(s){return typeof s=="function"?ue(s):(s instanceof IDBTransaction&&le(s),ae(s,ie())?new Proxy(s,T):s)}function f(s){if(s instanceof IDBRequest)return oe(s);if(E.has(s))return E.get(s);const e=de(s);return e!==s&&(E.set(s,e),P.set(e,s)),e}const D=s=>P.get(s);function fe(s,e,{blocked:t,upgrade:n,blocking:r,terminated:a}={}){const i=indexedDB.open(s,e),c=f(i);return n&&i.addEventListener("upgradeneeded",o=>{n(f(i.result),o.oldVersion,o.newVersion,f(i.transaction),o)}),t&&i.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{a&&o.addEventListener("close",()=>a()),r&&o.addEventListener("versionchange",l=>r(l.oldVersion,l.newVersion,l))}).catch(()=>{}),c}function pe(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",n=>e(n.oldVersion,n)),f(t).then(()=>{})}const ge=["get","getKey","getAll","getAllKeys","count"],me=["put","add","delete","clear"],v=new Map;function S(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(v.get(e))return v.get(e);const t=e.replace(/FromIndex$/,""),n=e!==t,r=me.includes(t);if(!(t in(n?IDBIndex:IDBObjectStore).prototype)||!(r||ge.includes(t)))return;const a=async function(i,...c){const o=this.transaction(i,r?"readwrite":"readonly");let l=o.store;return n&&(l=l.index(c.shift())),(await Promise.all([l[t](...c),r&&o.done]))[0]};return v.set(e,a),a}he(s=>({...s,get:(e,t,n)=>S(e,t)||s.get(e,t,n),has:(e,t)=>!!S(e,t)||s.has(e,t)}));try{self["workbox:expiration:6.5.3"]&&_()}catch{}const we="workbox-expiration",w="cache-entries",W=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class ye{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(w,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&pe(this._cacheName)}async setTimestamp(e,t){e=W(e);const n={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},a=(await this.getDb()).transaction(w,"readwrite",{durability:"relaxed"});await a.store.put(n),await a.done}async getTimestamp(e){const n=await(await this.getDb()).get(w,this._getId(e));return n==null?void 0:n.timestamp}async expireEntries(e,t){const n=await this.getDb();let r=await n.transaction(w).store.index("timestamp").openCursor(null,"prev");const a=[];let i=0;for(;r;){const o=r.value;o.cacheName===this._cacheName&&(e&&o.timestamp=t?a.push(r.value):i++),r=await r.continue()}const c=[];for(const o of a)await n.delete(w,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+W(e)}async getDb(){return this._db||(this._db=await fe(we,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class be{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new ye(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),n=await self.caches.open(this._cacheName);for(const r of t)await n.delete(r,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,q(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),n=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t{if(!a)return null;const i=this._isResponseDateFresh(a),c=this._getCacheExpiration(r);q(c.expireEntries());const o=c.updateTimestamp(n.url);if(t)try{t.waitUntil(o)}catch{}return i?a:null},this.cacheDidUpdate=async({cacheName:t,request:n})=>{const r=this._getCacheExpiration(t);await r.updateTimestamp(n.url),await r.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&Q(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===x.getRuntimeName())throw new h("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new be(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(t===null)return!0;const n=Date.now();return t>=n-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),r=new Date(t).getTime();return isNaN(r)?null:r}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}try{self["workbox:precaching:6.5.3"]&&_()}catch{}const Re="__WB_REVISION__";function Ce(s){if(!s)throw new h("add-to-cache-list-unexpected-type",{entry:s});if(typeof s=="string"){const a=new URL(s,location.href);return{cacheKey:a.href,url:a.href}}const{revision:e,url:t}=s;if(!t)throw new h("add-to-cache-list-unexpected-type",{entry:s});if(!e){const a=new URL(t,location.href);return{cacheKey:a.href,url:a.href}}const n=new URL(t,location.href),r=new URL(t,location.href);return n.searchParams.set(Re,e),{cacheKey:n.href,url:r.href}}class xe{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:n})=>{if(e.type==="install"&&t&&t.originalRequest&&t.originalRequest instanceof Request){const r=t.originalRequest.url;n?this.notUpdatedURLs.push(r):this.updatedURLs.push(r)}return n}}}class ke{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:t,params:n})=>{const r=(n==null?void 0:n.cacheKey)||this._precacheController.getCacheKeyForURL(t.url);return r?new Request(r,{headers:t.headers}):t},this._precacheController=e}}try{self["workbox:strategies:6.5.3"]&&_()}catch{}function R(s){return typeof s=="string"?new Request(s):s}class Ee{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new Z,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const n of this._plugins)this._pluginStateMap.set(n,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let n=R(e);if(n.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const i=await t.preloadResponse;if(i)return i}const r=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const i of this.iterateCallbacks("requestWillFetch"))n=await i({request:n.clone(),event:t})}catch(i){if(i instanceof Error)throw new h("plugin-error-request-will-fetch",{thrownErrorMessage:i.message})}const a=n.clone();try{let i;i=await fetch(n,n.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))i=await c({event:t,request:a,response:i});return i}catch(i){throw r&&await this.runCallbacks("fetchDidFail",{error:i,event:t,originalRequest:r.clone(),request:a.clone()}),i}}async fetchAndCachePut(e){const t=await this.fetch(e),n=t.clone();return this.waitUntil(this.cachePut(e,n)),t}async cacheMatch(e){const t=R(e);let n;const{cacheName:r,matchOptions:a}=this._strategy,i=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},a),{cacheName:r});n=await caches.match(i,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))n=await o({cacheName:r,matchOptions:a,cachedResponse:n,request:i,event:this.event})||void 0;return n}async cachePut(e,t){const n=R(e);await se(0);const r=await this.getCacheKey(n,"write");if(!t)throw new h("cache-put-with-no-response",{url:te(r.url)});const a=await this._ensureResponseSafeToCache(t);if(!a)return!1;const{cacheName:i,matchOptions:c}=this._strategy,o=await self.caches.open(i),l=this.hasCallback("cacheDidUpdate"),g=l?await X(o,r.clone(),["__WB_REVISION__"],c):null;try{await o.put(r,l?a.clone():a)}catch(u){if(u instanceof Error)throw u.name==="QuotaExceededError"&&await ee(),u}for(const u of this.iterateCallbacks("cacheDidUpdate"))await u({cacheName:i,oldResponse:g,newResponse:a.clone(),request:r,event:this.event});return!0}async getCacheKey(e,t){const n=`${e.url} | ${t}`;if(!this._cacheKeys[n]){let r=e;for(const a of this.iterateCallbacks("cacheKeyWillBeUsed"))r=R(await a({mode:t,request:r,event:this.event,params:this.params}));this._cacheKeys[n]=r}return this._cacheKeys[n]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const n of this.iterateCallbacks(e))await n(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const n=this._pluginStateMap.get(t);yield a=>{const i=Object.assign(Object.assign({},a),{state:n});return t[e](i)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,n=!1;for(const r of this.iterateCallbacks("cacheWillUpdate"))if(t=await r({request:this.request,response:t,event:this.event})||void 0,n=!0,!t)break;return n||t&&t.status!==200&&(t=void 0),t}}class V{constructor(e={}){this.cacheName=x.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,n=typeof e.request=="string"?new Request(e.request):e.request,r="params"in e?e.params:void 0,a=new Ee(this,{event:t,request:n,params:r}),i=this._getResponse(a,n,t),c=this._awaitComplete(i,a,n,t);return[i,c]}async _getResponse(e,t,n){await e.runCallbacks("handlerWillStart",{event:n,request:t});let r;try{if(r=await this._handle(t,e),!r||r.type==="error")throw new h("no-response",{url:t.url})}catch(a){if(a instanceof Error){for(const i of e.iterateCallbacks("handlerDidError"))if(r=await i({error:a,event:n,request:t}),r)break}if(!r)throw a}for(const a of e.iterateCallbacks("handlerWillRespond"))r=await a({event:n,request:t,response:r});return r}async _awaitComplete(e,t,n,r){let a,i;try{a=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:r,request:n,response:a}),await t.doneWaiting()}catch(c){c instanceof Error&&(i=c)}if(await t.runCallbacks("handlerDidComplete",{event:r,request:n,response:a,error:i}),t.destroy(),i)throw i}}class p extends V{constructor(e={}){e.cacheName=x.getPrecacheName(e.cacheName),super(e),this._fallbackToNetwork=e.fallbackToNetwork!==!1,this.plugins.push(p.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const n=await t.cacheMatch(e);return n||(t.event&&t.event.type==="install"?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let n;const r=t.params||{};if(this._fallbackToNetwork){const a=r.integrity,i=e.integrity,c=!i||i===a;n=await t.fetch(new Request(e,{integrity:e.mode!=="no-cors"?i||a:void 0})),a&&c&&e.mode!=="no-cors"&&(this._useDefaultCacheabilityPluginIfNeeded(),await t.cachePut(e,n.clone()))}else throw new h("missing-precache-entry",{cacheName:this.cacheName,url:e.url});return n}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();const n=await t.fetch(e);if(!await t.cachePut(e,n.clone()))throw new h("bad-precaching-response",{url:e.url,status:n.status});return n}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[n,r]of this.plugins.entries())r!==p.copyRedirectedCacheableResponsesPlugin&&(r===p.defaultPrecacheCacheabilityPlugin&&(e=n),r.cacheWillUpdate&&t++);t===0?this.plugins.push(p.defaultPrecacheCacheabilityPlugin):t>1&&e!==null&&this.plugins.splice(e,1)}}p.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate({response:s}){return!s||s.status>=400?null:s}};p.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate({response:s}){return s.redirected?await ne(s):s}};class De{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:n=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new p({cacheName:x.getPrecacheName(e),plugins:[...t,new ke({precacheController:this})],fallbackToNetwork:n}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){const t=[];for(const n of e){typeof n=="string"?t.push(n):n&&n.revision===void 0&&t.push(n.url);const{cacheKey:r,url:a}=Ce(n),i=typeof n!="string"&&n.revision?"reload":"default";if(this._urlsToCacheKeys.has(a)&&this._urlsToCacheKeys.get(a)!==r)throw new h("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(a),secondEntry:r});if(typeof n!="string"&&n.integrity){if(this._cacheKeysToIntegrities.has(r)&&this._cacheKeysToIntegrities.get(r)!==n.integrity)throw new h("add-to-cache-list-conflicting-integrities",{url:a});this._cacheKeysToIntegrities.set(r,n.integrity)}if(this._urlsToCacheKeys.set(a,r),this._urlsToCacheModes.set(a,i),t.length>0){const c=`Workbox is precaching URLs without revision info: ${t.join(", ")} -This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return A(e,async()=>{const t=new xe;this.strategy.plugins.push(t);for(const[a,i]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(i),o=this._urlsToCacheModes.get(a),l=new Request(a,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:i},request:l,event:e}))}const{updatedURLs:n,notUpdatedURLs:r}=t;return{updatedURLs:n,notUpdatedURLs:r}})}activate(e){return A(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),n=await t.keys(),r=new Set(this._urlsToCacheKeys.values()),a=[];for(const i of n)r.has(i.url)||(await t.delete(i),a.push(i.url));return{deletedURLs:a}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,n=this.getCacheKeyForURL(t);if(n)return(await self.caches.open(this.strategy.cacheName)).match(n)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new h("non-precached-url",{url:e});return n=>(n.request=new Request(e),n.params=Object.assign({cacheKey:t},n.params),this.strategy.handle(n))}}let L;const I=()=>(L||(L=new De),L);try{self["workbox:routing:6.5.3"]&&_()}catch{}const $="GET",C=s=>s&&typeof s=="object"?s:{handle:s};class b{constructor(e,t,n=$){this.handler=C(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=C(e)}}class ve extends b{constructor(e,t,n){const r=({url:a})=>{const i=e.exec(a.href);if(i&&!(a.origin!==location.origin&&i.index!==0))return i.slice(1)};super(r,t,n)}}class Le{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(r=>{typeof r=="string"&&(r=[r]);const a=new Request(...r);return this.handleRequest({request:a,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const n=new URL(e.url,location.href);if(!n.protocol.startsWith("http"))return;const r=n.origin===location.origin,{params:a,route:i}=this.findMatchingRoute({event:t,request:e,sameOrigin:r,url:n});let c=i&&i.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:n,request:e,event:t,params:a})}catch(u){l=Promise.reject(u)}const g=i&&i.catchHandler;return l instanceof Promise&&(this._catchHandler||g)&&(l=l.catch(async u=>{if(g)try{return await g.handle({url:n,request:e,event:t,params:a})}catch(N){N instanceof Error&&(u=N)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw u})),l}findMatchingRoute({url:e,sameOrigin:t,request:n,event:r}){const a=this._routes.get(n.method)||[];for(const i of a){let c;const o=i.match({url:e,sameOrigin:t,request:n,event:r});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:i,params:c}}return{}}setDefaultHandler(e,t=$){this._defaultHandlerMap.set(t,C(e))}setCatchHandler(e){this._catchHandler=C(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new h("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new h("unregister-route-route-not-registered")}}let y;const Ue=()=>(y||(y=new Le,y.addFetchListener(),y.addCacheListener()),y);function M(s,e,t){let n;if(typeof s=="string"){const a=new URL(s,location.href),i=({url:c})=>c.href===a.href;n=new b(i,e,t)}else if(s instanceof RegExp)n=new ve(s,e,t);else if(typeof s=="function")n=new b(s,e,t);else if(s instanceof b)n=s;else throw new h("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return Ue().registerRoute(n),n}function Te(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(n=>n.test(t))&&s.searchParams.delete(t);return s}function*Pe(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:n=!0,urlManipulation:r}={}){const a=new URL(s,location.href);a.hash="",yield a.href;const i=Te(a,e);if(yield i.href,t&&i.pathname.endsWith("/")){const c=new URL(i.href);c.pathname+=t,yield c.href}if(n){const c=new URL(i.href);c.pathname+=".html",yield c.href}if(r){const c=r({url:a});for(const o of c)yield o.href}}class Ie extends b{constructor(e,t){const n=({request:r})=>{const a=e.getURLsToCacheKeys();for(const i of Pe(r.url,t)){const c=a.get(i);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(n,e.strategy)}}function Me(s){const e=I(),t=new Ie(e,s);M(t)}function Ne(s){return I().createHandlerBoundToURL(s)}function Ke(s){I().precache(s)}function Ae(s,e){Ke(s),Me(e)}const je={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class Oe extends V{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(je)}async _handle(e,t){const n=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(n);let r=await t.cacheMatch(e),a;if(!r)try{r=await n}catch(i){i instanceof Error&&(a=i)}if(!r)throw new h("no-response",{url:e.url,error:a});return r}}const Se="shlink-web-client",We="A React-based progressive web application for shlink",Be="/shlink-web-client/feature/shlink-web-component",qe="https://github.com/shlinkio/shlink-web-client",Fe="MIT",He={lint:"npm run lint:css && npm run lint:js","lint:css":"stylelint src/*.scss src/**/*.scss shlink-web-component/*.scss shlink-web-component/**/*.scss shlink-frontend-kit/*.scss shlink-frontend-kit/**/*.scss","lint:js":"eslint --ext .js,.ts,.tsx src shlink-web-component shlink-frontend-kit test","lint:fix":"npm run lint:css:fix && npm run lint:js:fix","lint:css:fix":"npm run lint:css -- --fix","lint:js:fix":"npm run lint:js -- --fix",types:"tsc",start:"vite serve --host=0.0.0.0",preview:"vite preview --host=0.0.0.0",build:"npm run types && vite build && node scripts/replace-version.mjs","build:dist":"npm run build && node scripts/create-dist-file.mjs",test:"vitest run --run","test:watch":"vitest --watch","test:ci":"npm run test -- --coverage","test:verbose":"npm run test -- --verbose"},Ve={"@fortawesome/fontawesome-free":"^6.3.0","@fortawesome/fontawesome-svg-core":"^6.3.0","@fortawesome/free-brands-svg-icons":"^6.3.0","@fortawesome/free-regular-svg-icons":"^6.3.0","@fortawesome/free-solid-svg-icons":"^6.3.0","@fortawesome/react-fontawesome":"^0.2.0","@json2csv/plainjs":"^6.1.2","@reduxjs/toolkit":"^1.9.1",bootstrap:"^5.2.3",bottlejs:"^2.0.1",bowser:"^2.11.0","chart.js":"^4.1.1",classnames:"^2.3.2","compare-versions":"^5.0.3",csvtojson:"^2.0.10","date-fns":"^2.29.3","event-source-polyfill":"^1.0.31",history:"^5.3.0",leaflet:"^1.9.3",qs:"^6.11.0",ramda:"^0.27.2",react:"^18.2.0","react-chartjs-2":"^5.1.0","react-colorful":"^5.6.1","react-copy-to-clipboard":"^5.1.0","react-datepicker":"^4.8.0","react-dom":"^18.2.0","react-external-link":"^2.2.0","react-leaflet":"^4.2.0","react-redux":"^8.0.5","react-router-dom":"^6.6.1","react-swipeable":"^7.0.0","react-tag-autocomplete":"^6.3.0",reactstrap:"^9.1.5","redux-localstorage-simple":"^2.5.1",uuid:"^8.3.2","workbox-core":"^6.5.4","workbox-expiration":"^6.5.4","workbox-precaching":"^6.5.4","workbox-routing":"^6.5.4","workbox-strategies":"^6.5.4"},$e={"@shlinkio/eslint-config-js-coding-standard":"~2.1.0","@shlinkio/stylelint-config-css-coding-standard":"~1.0.1","@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^14.0.0","@testing-library/user-event":"^14.4.3","@total-typescript/shoehorn":"^0.1.0","@types/json2csv":"^5.0.3","@types/leaflet":"^1.9.0","@types/qs":"^6.9.7","@types/ramda":"^0.28.15","@types/react":"^18.0.26","@types/react-color":"^3.0.6","@types/react-copy-to-clipboard":"^5.0.4","@types/react-datepicker":"^4.8.0","@types/react-dom":"^18.0.10","@types/react-tag-autocomplete":"^6.3.0","@types/uuid":"^8.3.4","@vitejs/plugin-react":"^4.0.0","@vitest/coverage-v8":"^0.32.0","adm-zip":"^0.5.10",chalk:"^5.2.0",eslint:"^8.30.0",jsdom:"^22.0.0","resize-observer-polyfill":"^1.5.1",sass:"^1.57.1",stylelint:"^15.10.1",typescript:"^5.0.2",vite:"^4.3.9","vite-plugin-pwa":"^0.14.4",vitest:"^0.32.0","vitest-canvas-mock":"^0.2.2"},ze=[">0.2%","not dead","not ie <= 11","not op_mini all"];var Ge={name:Se,description:We,private:!1,homepage:Be,repository:qe,license:Fe,scripts:He,dependencies:Ve,devDependencies:$e,browserslist:ze};re();Ae([{"revision":null,"url":"assets/index-2dc0b2c7.css"},{"revision":null,"url":"assets/index-8807ba74.js"},{"revision":"4f10fadce91ee0a93a710bc4ab5b0ad7","url":"index.html"},{"revision":"3e8169a112865ef0d76bba4e2dfd3a89","url":"./icons/icon-16x16.png"},{"revision":"20f0b51945ae3c973420e31d6b4d43c1","url":"./icons/icon-24x24.png"},{"revision":"4c9695cfb4cea403c1b66bbb7b4f7420","url":"./icons/icon-32x32.png"},{"revision":"f74edb9cc54ac938c1589876f8da9f21","url":"./icons/icon-40x40.png"},{"revision":"52933970fac8498311687de13549b014","url":"./icons/icon-48x48.png"},{"revision":"40209a194f29b21882571c77bd2bd906","url":"./icons/icon-60x60.png"},{"revision":"c8ba5a8c1da76d74c7bb21827fcf975c","url":"./icons/icon-64x64.png"},{"revision":"ae3435baceb494f9c966e2c2c736ea35","url":"./icons/icon-72x72.png"},{"revision":"850aa5b026fd1452af6c1ddd9d71850f","url":"./icons/icon-76x76.png"},{"revision":"8c62535e6b7a498ece1f6c6ae62ede59","url":"./icons/icon-96x96.png"},{"revision":"2dff586aaefa4c8d17f4c0bcbdef8b53","url":"./icons/icon-114x114.png"},{"revision":"8e28257a68ef1c55bc68bfff80e1a310","url":"./icons/icon-120x120.png"},{"revision":"0059b6f0c97fa871a5c29643b2857585","url":"./icons/icon-128x128.png"},{"revision":"41478c2456281f61e54d714718743ecc","url":"./icons/icon-144x144.png"},{"revision":"625251910295f33a578ae6d8117711c9","url":"./icons/icon-150x150.png"},{"revision":"19b71508b1d05defe32cf16a7d453001","url":"./icons/icon-152x152.png"},{"revision":"9d029a32a54ba3084c67acd5d74f8ac4","url":"./icons/icon-160x160.png"},{"revision":"6ec104aeaf745f003ecdaef2edddce97","url":"./icons/icon-167x167.png"},{"revision":"871d67907434ed0ddf5d2a6c220e09af","url":"./icons/icon-180x180.png"},{"revision":"cee2529402074d73b2135e2ddee25f6b","url":"./icons/icon-192x192.png"},{"revision":"85055b452284c0193142936dee7d2cd1","url":"./icons/icon-196x196.png"},{"revision":"f471155dd70b99924422dd9dd87ea94d","url":"./icons/icon-228x228.png"},{"revision":"4d896c5c7025582605de31fb74f0316b","url":"./icons/icon-256x256.png"},{"revision":"d99b49e5bcad41968313c3e132e7c661","url":"./icons/icon-310x310.png"},{"revision":"f9597636bef677327c3abc0fd1a743c4","url":"./icons/icon-384x384.png"},{"revision":"de22c0eb9e08d3576df5cedb568ca56b","url":"./icons/icon-512x512.png"},{"revision":"583b223ad8e20f05aaa64923d7db2e46","url":"./icons/icon-1024x1024.png"},{"revision":"6ca8c43525af31dbad2cb508afa5d62a","url":"manifest.json"}]);const Qe=new RegExp("/[^/?]+\\.[^/]+$");M(({request:s,url:e})=>!(s.mode!=="navigate"||e.pathname.startsWith("/_")||e.pathname.match(Qe)),Ne(`${Ge.homepage}/index.html`));M(({url:s})=>s.origin===self.location.origin&&s.pathname.endsWith(".png"),new Oe({cacheName:"images",plugins:[new _e({maxEntries:50})]}));self.addEventListener("message",s=>{s.data&&s.data.type==="SKIP_WAITING"&&self.skipWaiting()}); +This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return A(e,async()=>{const t=new xe;this.strategy.plugins.push(t);for(const[a,i]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(i),o=this._urlsToCacheModes.get(a),l=new Request(a,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:i},request:l,event:e}))}const{updatedURLs:n,notUpdatedURLs:r}=t;return{updatedURLs:n,notUpdatedURLs:r}})}activate(e){return A(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),n=await t.keys(),r=new Set(this._urlsToCacheKeys.values()),a=[];for(const i of n)r.has(i.url)||(await t.delete(i),a.push(i.url));return{deletedURLs:a}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,n=this.getCacheKeyForURL(t);if(n)return(await self.caches.open(this.strategy.cacheName)).match(n)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new h("non-precached-url",{url:e});return n=>(n.request=new Request(e),n.params=Object.assign({cacheKey:t},n.params),this.strategy.handle(n))}}let L;const I=()=>(L||(L=new De),L);try{self["workbox:routing:6.5.3"]&&_()}catch{}const $="GET",C=s=>s&&typeof s=="object"?s:{handle:s};class b{constructor(e,t,n=$){this.handler=C(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=C(e)}}class ve extends b{constructor(e,t,n){const r=({url:a})=>{const i=e.exec(a.href);if(i&&!(a.origin!==location.origin&&i.index!==0))return i.slice(1)};super(r,t,n)}}class Le{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(r=>{typeof r=="string"&&(r=[r]);const a=new Request(...r);return this.handleRequest({request:a,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const n=new URL(e.url,location.href);if(!n.protocol.startsWith("http"))return;const r=n.origin===location.origin,{params:a,route:i}=this.findMatchingRoute({event:t,request:e,sameOrigin:r,url:n});let c=i&&i.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:n,request:e,event:t,params:a})}catch(u){l=Promise.reject(u)}const g=i&&i.catchHandler;return l instanceof Promise&&(this._catchHandler||g)&&(l=l.catch(async u=>{if(g)try{return await g.handle({url:n,request:e,event:t,params:a})}catch(N){N instanceof Error&&(u=N)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw u})),l}findMatchingRoute({url:e,sameOrigin:t,request:n,event:r}){const a=this._routes.get(n.method)||[];for(const i of a){let c;const o=i.match({url:e,sameOrigin:t,request:n,event:r});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:i,params:c}}return{}}setDefaultHandler(e,t=$){this._defaultHandlerMap.set(t,C(e))}setCatchHandler(e){this._catchHandler=C(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new h("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new h("unregister-route-route-not-registered")}}let y;const Ue=()=>(y||(y=new Le,y.addFetchListener(),y.addCacheListener()),y);function M(s,e,t){let n;if(typeof s=="string"){const a=new URL(s,location.href),i=({url:c})=>c.href===a.href;n=new b(i,e,t)}else if(s instanceof RegExp)n=new ve(s,e,t);else if(typeof s=="function")n=new b(s,e,t);else if(s instanceof b)n=s;else throw new h("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return Ue().registerRoute(n),n}function Te(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(n=>n.test(t))&&s.searchParams.delete(t);return s}function*Pe(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:n=!0,urlManipulation:r}={}){const a=new URL(s,location.href);a.hash="",yield a.href;const i=Te(a,e);if(yield i.href,t&&i.pathname.endsWith("/")){const c=new URL(i.href);c.pathname+=t,yield c.href}if(n){const c=new URL(i.href);c.pathname+=".html",yield c.href}if(r){const c=r({url:a});for(const o of c)yield o.href}}class Ie extends b{constructor(e,t){const n=({request:r})=>{const a=e.getURLsToCacheKeys();for(const i of Pe(r.url,t)){const c=a.get(i);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(n,e.strategy)}}function Me(s){const e=I(),t=new Ie(e,s);M(t)}function Ne(s){return I().createHandlerBoundToURL(s)}function Ke(s){I().precache(s)}function Ae(s,e){Ke(s),Me(e)}const je={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class Oe extends V{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(je)}async _handle(e,t){const n=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(n);let r=await t.cacheMatch(e),a;if(!r)try{r=await n}catch(i){i instanceof Error&&(a=i)}if(!r)throw new h("no-response",{url:e.url,error:a});return r}}const Se="shlink-web-client",We="A React-based progressive web application for shlink",Be="/shlink-web-client/feature/shlink-web-component",qe="https://github.com/shlinkio/shlink-web-client",Fe="MIT",He={lint:"npm run lint:css && npm run lint:js","lint:css":"stylelint src/*.scss src/**/*.scss shlink-web-component/*.scss shlink-web-component/**/*.scss shlink-frontend-kit/*.scss shlink-frontend-kit/**/*.scss","lint:js":"eslint --ext .js,.ts,.tsx src shlink-web-component shlink-frontend-kit test","lint:fix":"npm run lint:css:fix && npm run lint:js:fix","lint:css:fix":"npm run lint:css -- --fix","lint:js:fix":"npm run lint:js -- --fix",types:"tsc",start:"vite serve --host=0.0.0.0",preview:"vite preview --host=0.0.0.0",build:"npm run types && vite build && node scripts/replace-version.mjs","build:dist":"npm run build && node scripts/create-dist-file.mjs",test:"vitest run --run","test:watch":"vitest --watch","test:ci":"npm run test -- --coverage","test:verbose":"npm run test -- --verbose"},Ve={"@fortawesome/fontawesome-free":"^6.3.0","@fortawesome/fontawesome-svg-core":"^6.3.0","@fortawesome/free-brands-svg-icons":"^6.3.0","@fortawesome/free-regular-svg-icons":"^6.3.0","@fortawesome/free-solid-svg-icons":"^6.3.0","@fortawesome/react-fontawesome":"^0.2.0","@json2csv/plainjs":"^6.1.2","@reduxjs/toolkit":"^1.9.1",bootstrap:"^5.2.3",bottlejs:"^2.0.1",bowser:"^2.11.0","chart.js":"^4.1.1",classnames:"^2.3.2","compare-versions":"^5.0.3",csvtojson:"^2.0.10","date-fns":"^2.29.3","event-source-polyfill":"^1.0.31",history:"^5.3.0",leaflet:"^1.9.3",qs:"^6.11.0",ramda:"^0.27.2",react:"^18.2.0","react-chartjs-2":"^5.1.0","react-colorful":"^5.6.1","react-copy-to-clipboard":"^5.1.0","react-datepicker":"^4.8.0","react-dom":"^18.2.0","react-external-link":"^2.2.0","react-leaflet":"^4.2.0","react-redux":"^8.0.5","react-router-dom":"^6.6.1","react-swipeable":"^7.0.0","react-tag-autocomplete":"^6.3.0",reactstrap:"^9.1.5","redux-localstorage-simple":"^2.5.1",uuid:"^8.3.2","workbox-core":"^6.5.4","workbox-expiration":"^6.5.4","workbox-precaching":"^6.5.4","workbox-routing":"^6.5.4","workbox-strategies":"^6.5.4"},$e={"@shlinkio/eslint-config-js-coding-standard":"~2.1.0","@shlinkio/stylelint-config-css-coding-standard":"~1.0.1","@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^14.0.0","@testing-library/user-event":"^14.4.3","@total-typescript/shoehorn":"^0.1.0","@types/json2csv":"^5.0.3","@types/leaflet":"^1.9.0","@types/qs":"^6.9.7","@types/ramda":"^0.28.15","@types/react":"^18.0.26","@types/react-color":"^3.0.6","@types/react-copy-to-clipboard":"^5.0.4","@types/react-datepicker":"^4.8.0","@types/react-dom":"^18.0.10","@types/react-tag-autocomplete":"^6.3.0","@types/uuid":"^8.3.4","@vitejs/plugin-react":"^4.0.0","@vitest/coverage-v8":"^0.32.0","adm-zip":"^0.5.10",chalk:"^5.2.0",eslint:"^8.30.0",jsdom:"^22.0.0","resize-observer-polyfill":"^1.5.1",sass:"^1.57.1",stylelint:"^15.10.1",typescript:"^5.0.2",vite:"^4.3.9","vite-plugin-pwa":"^0.14.4",vitest:"^0.32.0","vitest-canvas-mock":"^0.2.2"},ze=[">0.2%","not dead","not ie <= 11","not op_mini all"];var Ge={name:Se,description:We,private:!1,homepage:Be,repository:qe,license:Fe,scripts:He,dependencies:Ve,devDependencies:$e,browserslist:ze};re();Ae([{"revision":null,"url":"assets/index-2dc0b2c7.css"},{"revision":null,"url":"assets/index-7f3917df.js"},{"revision":"85de97f6985e26a826a99fe247d92e58","url":"index.html"},{"revision":"3e8169a112865ef0d76bba4e2dfd3a89","url":"./icons/icon-16x16.png"},{"revision":"20f0b51945ae3c973420e31d6b4d43c1","url":"./icons/icon-24x24.png"},{"revision":"4c9695cfb4cea403c1b66bbb7b4f7420","url":"./icons/icon-32x32.png"},{"revision":"f74edb9cc54ac938c1589876f8da9f21","url":"./icons/icon-40x40.png"},{"revision":"52933970fac8498311687de13549b014","url":"./icons/icon-48x48.png"},{"revision":"40209a194f29b21882571c77bd2bd906","url":"./icons/icon-60x60.png"},{"revision":"c8ba5a8c1da76d74c7bb21827fcf975c","url":"./icons/icon-64x64.png"},{"revision":"ae3435baceb494f9c966e2c2c736ea35","url":"./icons/icon-72x72.png"},{"revision":"850aa5b026fd1452af6c1ddd9d71850f","url":"./icons/icon-76x76.png"},{"revision":"8c62535e6b7a498ece1f6c6ae62ede59","url":"./icons/icon-96x96.png"},{"revision":"2dff586aaefa4c8d17f4c0bcbdef8b53","url":"./icons/icon-114x114.png"},{"revision":"8e28257a68ef1c55bc68bfff80e1a310","url":"./icons/icon-120x120.png"},{"revision":"0059b6f0c97fa871a5c29643b2857585","url":"./icons/icon-128x128.png"},{"revision":"41478c2456281f61e54d714718743ecc","url":"./icons/icon-144x144.png"},{"revision":"625251910295f33a578ae6d8117711c9","url":"./icons/icon-150x150.png"},{"revision":"19b71508b1d05defe32cf16a7d453001","url":"./icons/icon-152x152.png"},{"revision":"9d029a32a54ba3084c67acd5d74f8ac4","url":"./icons/icon-160x160.png"},{"revision":"6ec104aeaf745f003ecdaef2edddce97","url":"./icons/icon-167x167.png"},{"revision":"871d67907434ed0ddf5d2a6c220e09af","url":"./icons/icon-180x180.png"},{"revision":"cee2529402074d73b2135e2ddee25f6b","url":"./icons/icon-192x192.png"},{"revision":"85055b452284c0193142936dee7d2cd1","url":"./icons/icon-196x196.png"},{"revision":"f471155dd70b99924422dd9dd87ea94d","url":"./icons/icon-228x228.png"},{"revision":"4d896c5c7025582605de31fb74f0316b","url":"./icons/icon-256x256.png"},{"revision":"d99b49e5bcad41968313c3e132e7c661","url":"./icons/icon-310x310.png"},{"revision":"f9597636bef677327c3abc0fd1a743c4","url":"./icons/icon-384x384.png"},{"revision":"de22c0eb9e08d3576df5cedb568ca56b","url":"./icons/icon-512x512.png"},{"revision":"583b223ad8e20f05aaa64923d7db2e46","url":"./icons/icon-1024x1024.png"},{"revision":"6ca8c43525af31dbad2cb508afa5d62a","url":"manifest.json"}]);const Qe=new RegExp("/[^/?]+\\.[^/]+$");M(({request:s,url:e})=>!(s.mode!=="navigate"||e.pathname.startsWith("/_")||e.pathname.match(Qe)),Ne(`${Ge.homepage}/index.html`));M(({url:s})=>s.origin===self.location.origin&&s.pathname.endsWith(".png"),new Oe({cacheName:"images",plugins:[new _e({maxEntries:50})]}));self.addEventListener("message",s=>{s.data&&s.data.type==="SKIP_WAITING"&&self.skipWaiting()});