naria-ui 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Popover/Popover.d.ts +2 -4
- package/dist/naria-ui.cjs.js +1 -1
- package/dist/naria-ui.es.js +217 -218
- package/package.json +1 -1
|
@@ -2,10 +2,8 @@ import { FC } from 'react';
|
|
|
2
2
|
export interface props {
|
|
3
3
|
classNames?: {
|
|
4
4
|
root?: string;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
input?: string;
|
|
8
|
-
errorText?: string;
|
|
5
|
+
backdrop?: string;
|
|
6
|
+
content?: string;
|
|
9
7
|
};
|
|
10
8
|
placement?: "top-start" | "top" | "top-end" | "bottom-start" | "bottom" | "bottom-end" | "right-start" | "right" | "right-end" | "left-start" | "left" | "left-end";
|
|
11
9
|
isOpen: boolean;
|
package/dist/naria-ui.cjs.js
CHANGED
|
@@ -22,7 +22,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
22
22
|
<%s key={someKey} {...props} />`,k,U,de,U),Pe[U+k]=!0)}if(U=null,z!==void 0&&(w(z),U=""+z),Z(H)&&(w(H.key),U=""+H.key),"key"in H){z={};for(var ee in H)ee!=="key"&&(z[ee]=H[ee])}else z=H;return U&&T(z,typeof D=="function"?D.displayName||D.name||"Unknown":D),L(D,U,u,Y,C(),z,De,he)}function R(D){typeof D=="object"&&D!==null&&D.$$typeof===K&&D._store&&(D._store.validated=1)}var o=I,K=Symbol.for("react.transitional.element"),ne=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),Ye=Symbol.for("react.consumer"),ue=Symbol.for("react.context"),ge=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),W=Symbol.for("react.client.reference"),me=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Te=Object.prototype.hasOwnProperty,ce=Array.isArray,ye=console.createTask?console.createTask:function(){return null};o={"react-stack-bottom-frame":function(D){return D()}};var V,xe={},je=o["react-stack-bottom-frame"].bind(o,A)(),$e=ye(y(A)),Pe={};jt.Fragment=B,jt.jsx=function(D,H,z,k,Y){var u=1e4>me.recentlyCreatedOwnerStacks++;return _(D,H,z,!1,k,Y,u?Error("react-stack-top-frame"):je,u?ye(y(D)):$e)},jt.jsxs=function(D,H,z,k,Y){var u=1e4>me.recentlyCreatedOwnerStacks++;return _(D,H,z,!0,k,Y,u?Error("react-stack-top-frame"):je,u?ye(y(D)):$e)}}()),jt}var cn;function uo(){return cn||(cn=1,process.env.NODE_ENV==="production"?Gt.exports=io():Gt.exports=oo()),Gt.exports}var j=uo();const Jt=({classNames:d={root:"",color:""}})=>j.jsxs("svg",{className:`naria-loading ${d.root}`,"data-prop":"root",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[j.jsx("path",{d:"M32 3C35.8083 3 39.5794 3.75011 43.0978 5.20749C46.6163 6.66488 49.8132 8.80101 52.5061 11.4939C55.199 14.1868 57.3351 17.3837 58.7925 20.9022C60.2499 24.4206 61 28.1917 61 32C61 35.8083 60.2499 39.5794 58.7925 43.0978C57.3351 46.6163 55.199 49.8132 52.5061 52.5061C49.8132 55.199 46.6163 57.3351 43.0978 58.7925C39.5794 60.2499 35.8083 61 32 61C28.1917 61 24.4206 60.2499 20.9022 58.7925C17.3837 57.3351 14.1868 55.199 11.4939 52.5061C8.801 49.8132 6.66487 46.6163 5.20749 43.0978C3.7501 39.5794 3 35.8083 3 32C3 28.1917 3.75011 24.4206 5.2075 20.9022C6.66489 17.3837 8.80101 14.1868 11.4939 11.4939C14.1868 8.80099 17.3838 6.66487 20.9022 5.20749C24.4206 3.7501 28.1917 3 32 3L32 3Z",stroke:"currentColor",strokeWidth:"6",strokeLinecap:"round",strokeLinejoin:"round"}),j.jsx("path",{d:"M32 3C36.5778 3 41.0906 4.08374 45.1692 6.16256C49.2477 8.24138 52.7762 11.2562 55.466 14.9605C58.1558 18.6647 59.9304 22.9531 60.6448 27.4748C61.3591 31.9965 60.9928 36.6232 59.5759 40.9762",stroke:"currentColor",strokeWidth:"6",strokeLinecap:"round",strokeLinejoin:"round",className:d.color,"data-prop":"color"})]}),lo=({type:d="button",classNames:b={root:"",loading:{root:"",color:""}},value:w,icon:y=void 0,isLoading:C=!1,isDisabled:A=!1,...Z})=>j.jsxs("button",{type:d,disabled:A,...Z,className:`naria-button ${A?"naria-button--disabled":""} ${b==null?void 0:b.root}`,"data-class-prop":"root",children:[C?j.jsx(Jt,{classNames:{root:b.loading.root,color:b.loading.color},"data-class-prop":"root","data-class-prop-color":"color"}):y,w]}),dn=d=>We.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"currentColor",...d},We.createElement("path",{fill:"currentColor",d:"M209.5 369c-9.4 9.4-24.6 9.4-33.9 0L15.5 209c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l143 143 143-143c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-160 160z"})),pn=d=>We.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"currentColor",...d},We.createElement("path",{fill:"currentColor",d:"M7.5 105c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l151 151 151-151c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-151 151 151 151c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-151-151-151 151c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l151-151-151-151z"})),fn=d=>We.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",...d},We.createElement("path",{fill:"currentColor",d:"M368 208a160 160 0 1 0 -320 0 160 160 0 1 0 320 0zM337.1 371.1C301.7 399.2 256.8 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208c0 48.8-16.8 93.7-44.9 129.1L505 471c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L337.1 371.1z"})),Yn=(d,b,w)=>{I.useEffect(()=>{function y(C){b.current&&!b.current.contains(C.target)&&(d!=null&&d.current)&&!(d!=null&&d.current.contains(C.target))&&w()}return document.addEventListener("mousedown",y),()=>{document.removeEventListener("mousedown",y)}},[d,w])},gr=()=>{const[d,b]=I.useState(typeof window<"u"?window.innerWidth:0),w=()=>b(typeof window<"u"?window.innerWidth:0);return I.useEffect(()=>(window.addEventListener("resize",w),()=>window.removeEventListener("resize",w)),[d]),d},Mr=()=>{const d=`${window.location.pathname}${window.location.search}`;window.history.replaceState(null,"",d)},Dr=d=>{window.location.hash=d},wr=d=>{const[b,w]=I.useState(!1);return I.useEffect(()=>{const y=C=>{window.location.hash!==d?w(!0):w(!1)};return window.addEventListener("hashchange",y),()=>{window.removeEventListener("hashchange",y)}},[]),b},co=({options:d,label:b,hasError:w,title:y,value:C,api:A,selected:Z,placeholder:T,disabled:X=!1,pagination:L,optionFilterLabel:_,hasSearch:R=!1,classNames:o={root:"",label:"",title:"",button:"",input:"",listRoot:"",list:"",option:"",optionActive:"",mobileHeader:"",errorText:""},onSelectChange:K})=>{let ne=!0;const B=gr(),P=wr("#select"),[ae,Ye]=I.useState(!1),[ue,ge]=I.useState(!0),[F,te]=I.useState(null),[G,$]=I.useState(null),[q,W]=I.useState(""),[me,Te]=I.useState({page:1,pageLabel:"page",size:20,sizeLabel:"size",isLoading:!1}),ce=I.useRef(void 0),ye=I.useRef(void 0),V=I.useRef(void 0),xe=async()=>{if(ce!=null&&ce.current)try{const k=await fetch(ce==null?void 0:ce.current);if(!k.ok)throw new Error(`Response status: ${k.status}`);return await k.json()}catch(k){console.error(k.message)}};I.useEffect(()=>()=>{ne=!1},[]),I.useEffect(()=>{if(A!=null&&A.length){if(ce.current=A,ce.current.includes((L==null?void 0:L.pageLabel)||"page")){const k=new URL(A);k.searchParams.set((L==null?void 0:L.pageLabel)||"page",((L==null?void 0:L.page)||me.page).toString()),k.searchParams.set((L==null?void 0:L.sizeLabel)||"size",((L==null?void 0:L.size)||me.size).toString()),ce.current=k.href}ge(!0),xe().then(k=>{ne&&(ge(!1),$(k))})}},[A,L]),I.useEffect(()=>{if(me.isLoading){if(ce.current.includes((L==null?void 0:L.pageLabel)||"page")){const k=new URL(ce.current);k.searchParams.set((L==null?void 0:L.pageLabel)||"page",me.page.toString()),ce.current=k.href}xe().then(k=>{ne&&(ge(!1),Te({...me,isLoading:!1}),$([...G,...k]))})}},[me]),I.useEffect(()=>{var k;B<768&&(ae?(Dr("select"),document.body.style.overflow="hidden",(k=V.current)==null||k.focus()):(window.location.hash&&!document.referrer.includes("#")&&Mr(),document.body.style.overflow="auto"))},[ae]),I.useEffect(()=>{Z&&(d!=null&&d.length)&&(d!=null&&d.find(k=>k[b]===Z)?te(d==null?void 0:d.find(k=>k[b]===Z)):te(Z))},[Z]),I.useEffect(()=>{F&&R&&(C!=null&&C.length&&(G!=null&&G.find(k=>k[b]===F[b]))?W((G==null?void 0:G.find(k=>k[b]===F[b])[C])||""):W(F))},[F]),I.useEffect(()=>{P&&Ye(!1)},[P]),I.useEffect(()=>{d!=null&&d.length&&$(d)},[d]);const je=()=>{R&&$(d),Ye(k=>!k)},$e=()=>{R&&($(d),W(typeof F=="string"?F:F?F[C]:"")),Ye(!1)},Pe=k=>{R&&(C!=null&&C.length?W(k[C]):W(k)),te(k),je(),K&&K(k)},D=k=>{if(!F)return"";if(b!=null&&b.length&&k[b]===F[b])return`naria-select__option--active ${o==null?void 0:o.optionActive}`;if(k===F)return`naria-select__option--active ${o==null?void 0:o.optionActive}`},H=k=>{A!=null&&A.length&&(G!=null&&G.length)&&!me.isLoading&&k.target.offsetHeight+k.target.scrollTop>=k.target.scrollHeight-100&&Te({page:me.page+1,isLoading:!0})},z=k=>{var u,De,he;const Y=(De=(u=k==null?void 0:k.target)==null?void 0:u.value)!=null&&De.length?d.filter(U=>{var de,ee;return typeof U=="object"?U[_!=null&&_.length?_:C].includes((de=k==null?void 0:k.target)==null?void 0:de.value):U.includes((ee=k==null?void 0:k.target)==null?void 0:ee.value)}):d;$(Y),W((he=k==null?void 0:k.target)==null?void 0:he.value),ae||Ye(!0)};return Yn(ye,V,$e),j.jsxs("div",{className:`naria-select ${X?"naria-select--disabled":""} ${o==null?void 0:o.root}`,"data-class-prop":"root",children:[j.jsxs("label",{className:`naria-select__label ${w&&"naria-select__label--error"} ${o==null?void 0:o.label}`,"data-class-prop":"label",children:[j.jsx("span",{className:`naria-select__title ${o==null?void 0:o.title}`,"data-class-prop":"title",children:y}),R?j.jsxs("div",{className:"naria-select__search-input-root",children:[j.jsx("input",{ref:V,placeholder:T!=null&&T.length?T:"Select",className:`naria-select__search-input ${F?"naria-select__search-input--selected":""}
|
|
23
23
|
${w&&"naria-select__search-input--error"} ${o==null?void 0:o.input}`,value:q,disabled:X,type:"text",onClick:je,onChange:z,"data-class-prop":"input"}),ae?j.jsx(fn,{className:"naria-select__search-icon"}):j.jsx(dn,{className:`naria-select__arrow-icon ${ae?"naria-select__arrow-icon--rotate-180":""}`})]}):j.jsxs("button",{type:"button",ref:V,disabled:X,className:`naria-select__handler ${F?"select__handler--selected":""}
|
|
24
24
|
${w&&"select__handler--error"} ${o==null?void 0:o.button}`,"data-class-prop":"button",onClick:je,children:[F?C!=null&&C.length?F[C]:F:T!=null&&T.length?T:"Select"," ",j.jsx(dn,{className:`naria-select__arrow-icon ${ae?"naria-select__arrow-icon--rotate-180":""}`})]})]}),ae?j.jsx("div",{className:`naria-select__list-root ${B<768?"naria-select__list-root--mobile":""} ${o==null?void 0:o.listRoot}`,"data-class-prop":"listRoot",ref:ye,children:j.jsx("div",{className:`naria-select__list ${B<768?"naria-select__list--mobile":"naria-select__list--desktop"} ${o==null?void 0:o.list}`,"data-class-prop":"input",onScroll:H,children:A&&ue?j.jsx("div",{className:"naria-select__loading-root",children:j.jsx("div",{className:"naria-select__loading",children:j.jsx(Jt,{})})}):j.jsxs(j.Fragment,{children:[B<768?j.jsxs("div",{className:`naria-select__header--mobile ${o==null?void 0:o.mobileHeader}`,"data-class-prop":"mobileHeader",children:[R?j.jsxs("div",{className:"naria-select__search-input-root",children:[j.jsx("input",{ref:V,placeholder:T!=null&&T.length?T:"Select",className:`naria-select__search-input ${F?"naria-select__search-input--selected":""}
|
|
25
|
-
${w&&"naria-select__search-input--error"} ${o==null?void 0:o.input}`,"data-class-prop":"input",value:q,disabled:X,type:"text",onChange:z}),j.jsx(fn,{className:"naria-select__search-icon"})]}):void 0,j.jsx("button",{className:"p-3",onClick:$e,disabled:X,children:j.jsx(pn,{className:"w-6"})})]}):void 0,G!=null&&G.length?j.jsx(j.Fragment,{children:G==null?void 0:G.map((k,Y)=>j.jsx("button",{type:"button",onClick:()=>Pe(k),disabled:X,className:`naria-select__option ${o==null?void 0:o.option} ${D(k)}`,"data-class-prop":"option","data-class-prop-active":"optionActive",children:C!=null&&C.length?k[C]:k},Y.toString()))}):j.jsx("div",{children:"No Data"}),me.isLoading?j.jsx("div",{className:"naria-select__loading-more-root",children:j.jsx("div",{className:"naria-select__loading-more",children:j.jsx(Jt,{})})}):void 0]})})}):void 0,w&&j.jsx("p",{className:`naria-select--error-text ${o==null?void 0:o.errorText}`,"data-class-prop":"errorText",children:w})]})},fo=({type:d="text",placeholder:b,classNames:w={root:"",label:"",title:"",input:"",errorText:""},title:y,hasError:C,register:A,name:Z,isDisabled:T=!1,autocomplete:X=!1,...L})=>j.jsxs("div",{className:`naria-input ${w.root}`,"data-class-prop":"root",children:[j.jsxs("label",{htmlFor:Z,className:`${w.label} ${C&&"naria-input__label--error"}`,"data-class-prop":"label",children:[j.jsx("span",{className:w==null?void 0:w.title,"data-class-prop":"title",children:y}),j.jsx("input",{disabled:T,autoComplete:X?"on":"off",id:Z,...A,...L,type:d,name:Z,className:`${w.input} ${C&&"naria-input__input--error"}`,placeholder:b,"data-class-prop":"input"})]}),C&&j.jsx("p",{className:`naria-input--error-text ${w==null?void 0:w.errorText}`,"data-class-prop":"errorText",children:C})]}),ho=({classNames:d={root:"",label:"",title:"",input:"",errorText:""},placement:b="bottom-start",isOpen:w=!1,onOpenChange:y,children:C,...A})=>{const[Z,T]=I.Children.toArray(C),[X,L]=I.useState({type:"fade-in-scale",position:""}),[_,R]=I.useState({top:void 0,bottom:void 0,left:void 0,right:void 0}),o=gr(),K=I.useRef(void 0),ne=I.useRef(void 0),B=I.useRef(window.crypto.randomUUID()),P=wr("#"+B.current),ae=()=>{y&&y(!1)},Ye=()=>{y&&y(!w)};Yn(K,ne,ae),I.useEffect(()=>{w?ue():R({top:void 0,bottom:void 0,left:void 0,right:void 0})},[w]),I.useEffect(()=>{var F;o<768&&(w?(Dr(B.current),(F=ne.current)==null||F.focus()):window.location.hash&&!document.referrer.includes("#")&&Mr())},[w]),I.useEffect(()=>{P&&ae()},[P]),I.useEffect(()=>(["scroll"].forEach(F=>{window.addEventListener(F,ae)}),()=>{["scroll"].forEach(F=>{window.removeEventListener(F,ae)})}),[]);const ue=()=>{setTimeout(()=>{var F;if(ne!=null&&ne.current&&K.current){const te=((F=document.documentElement)==null?void 0:F.getAttribute("dir"))==="rtl",G=K.current.getBoundingClientRect(),$=ne.current.getBoundingClientRect();switch(!0){case b==="bottom-start":{(window.innerHeight||document.documentElement.clientHeight)-$.bottom>G.height?(L({type:X.type,position:"transform-origin-top-start"}),R({top:$.height,bottom:void 0,left:te?void 0:0,right:te?0:void 0})):(L({type:X.type,position:"transform-origin-bottom-start"}),R({top:void 0,bottom:$.height,left:te?void 0:0,right:te?0:void 0}));break}case b==="bottom-end":{(window.innerHeight||document.documentElement.clientHeight)-$.bottom>G.height?(L({type:X.type,position:"transform-origin-top-end"}),R({top:$.height,bottom:void 0,left:te?void 0:0,right:te?0:void 0})):(L({type:X.type,position:"transform-origin-bottom-end"}),R({top:void 0,bottom:$.height,left:te?void 0:0,right:te?0:void 0}));break}case b==="bottom":{let q={y:"bottom",x:"center"},W={top:void 0,bottom:$.height,left:te?void 0:0,right:te?0:void 0};(window.innerHeight||document.documentElement.clientHeight)-$.bottom>G.height&&(q={...q,y:"top"},W={...W,top:$.height,bottom:void 0}),te?(console.log(),(window.innerWidth||document.documentElement.clientWidth)-$.right>G.width/2-$.width/2?(W={...W,left:void 0,right:(G.width/2-$.width/2)*-1},q={...q,x:"center"}):q={...q,x:"start"}):G.width/2-$.width/2<$.left?(W={...W,left:(G.width/2-$.width/2)*-1,right:void 0},q={...q,x:"center"}):q={...q,x:"start"},L({type:X.type,position:`transform-origin-${q.y}-${q.x}`}),R(W);break}case b==="top":{let q={y:"top",x:"center"},W={top:$.height,bottom:void 0,left:te?void 0:0,right:te?0:void 0};$.top-G.height>0&&(q={...q,y:"bottom"},W={...W,top:void 0,bottom:$.height}),te?(window.innerWidth||document.documentElement.clientWidth)-$.right>G.width/2-$.width/2?(W={...W,left:void 0,right:(G.width/2-$.width/2)*-1},q={...q,x:"center"}):q={...q,x:"start"}:G.width/2-$.width/2<$.left?(W={...W,left:(G.width/2-$.width/2)*-1,right:void 0},q={...q,x:"center"}):q={...q,x:"start"},L({type:X.type,position:`transform-origin-${q.y}-${q.x}`}),R(W);break}case b==="top-start":{$.top-G.height>0?(L({type:X.type,position:"transform-origin-bottom-start"}),R({top:void 0,bottom:$.height,left:te?void 0:0,right:te?0:void 0})):(L({type:X.type,position:"transform-origin-top-start"}),R({top:$.height,bottom:void 0,left:te?void 0:0,right:te?0:void 0}));break}case b==="top-end":{$.top-G.height>0?(L({type:X.type,position:"transform-origin-bottom-end"}),R({top:void 0,bottom:$.height,left:te?void 0:0,right:te?0:void 0})):(L({type:X.type,position:"transform-origin-top-end"}),R({top:$.height,bottom:void 0,left:te?void 0:0,right:te?0:void 0}));break}}}},0)},ge=F=>{F.currentTarget===F.target&&ae()};return I.useEffect(()=>(window.addEventListener("resize",ue),()=>{window.removeEventListener("resize",ue)}),[ue]),j.jsxs("div",{className:`naria-popover ${d.root}`,"data-class-prop":"root",children:[I.cloneElement(Z,{onClick:()=>Ye(),ref:ne}),w&&j.jsx(j.Fragment,{children:o<768?j.jsx("div",{onClick:ge,className:"naria-popover__backdrop","data-class-prop":"backdrop",children:j.jsx("div",{className:"naria-popover__content naria-popover__content--mobile",children:T})}):j.jsx("div",{className:`naria-popover__content naria-popover__content--desktop ${X.type} ${X.position}`,ref:K,style:{bottom:_.bottom!==void 0?_.bottom:"unset",top:_.top!==void 0?_.top:"unset",left:_.left!==void 0?_.left:"unset",right:_.right!==void 0?_.right:"unset"},children:T})})]})},hn=d=>We.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 512",fill:"currentColor",...d},We.createElement("path",{fill:"currentColor",d:"M241.5 239c9.4 9.4 9.4 24.6 0 33.9L81.5 433c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l143-143-143-143c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l160 160z"})),mn=d=>We.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor",...d},We.createElement("path",{fill:"currentColor",d:"M81.5 433l160-160c9.4-9.4 9.4-24.6 0-33.9L81.5 79c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l143 143-143 143c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0zm192 0l160-160c9.4-9.4 9.4-24.6 0-33.9L273.5 79c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l143 143-143 143c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0z"}));var Vt={exports:{}};function vn(d){throw new Error('Could not dynamically require "'+d+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var zt={exports:{}},mo=zt.exports,yn;function pr(){return yn||(yn=1,function(d,b){(function(w,y){d.exports=y()})(mo,function(){var w;function y(){return w.apply(null,arguments)}function C(e){w=e}function A(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Z(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function X(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(T(e,t))return!1;return!0}function L(e){return e===void 0}function _(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function R(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function o(e,t){var r=[],n,s=e.length;for(n=0;n<s;++n)r.push(t(e[n],n));return r}function K(e,t){for(var r in t)T(t,r)&&(e[r]=t[r]);return T(t,"toString")&&(e.toString=t.toString),T(t,"valueOf")&&(e.valueOf=t.valueOf),e}function ne(e,t,r,n){return Wr(e,t,r,n,!0).utc()}function B(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function P(e){return e._pf==null&&(e._pf=B()),e._pf}var ae;Array.prototype.some?ae=Array.prototype.some:ae=function(e){var t=Object(this),r=t.length>>>0,n;for(n=0;n<r;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};function Ye(e){var t=null,r=!1,n=e._d&&!isNaN(e._d.getTime());if(n&&(t=P(e),r=ae.call(t.parsedDateParts,function(s){return s!=null}),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(n=n&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=n;else return n;return e._isValid}function ue(e){var t=ne(NaN);return e!=null?K(P(t),e):P(t).userInvalidated=!0,t}var ge=y.momentProperties=[],F=!1;function te(e,t){var r,n,s,l=ge.length;if(L(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),L(t._i)||(e._i=t._i),L(t._f)||(e._f=t._f),L(t._l)||(e._l=t._l),L(t._strict)||(e._strict=t._strict),L(t._tzm)||(e._tzm=t._tzm),L(t._isUTC)||(e._isUTC=t._isUTC),L(t._offset)||(e._offset=t._offset),L(t._pf)||(e._pf=P(t)),L(t._locale)||(e._locale=t._locale),l>0)for(r=0;r<l;r++)n=ge[r],s=t[n],L(s)||(e[n]=s);return e}function G(e){te(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),F===!1&&(F=!0,y.updateOffset(this),F=!1)}function $(e){return e instanceof G||e!=null&&e._isAMomentObject!=null}function q(e){y.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function W(e,t){var r=!0;return K(function(){if(y.deprecationHandler!=null&&y.deprecationHandler(null,e),r){var n=[],s,l,m,x=arguments.length;for(l=0;l<x;l++){if(s="",typeof arguments[l]=="object"){s+=`
|
|
25
|
+
${w&&"naria-select__search-input--error"} ${o==null?void 0:o.input}`,"data-class-prop":"input",value:q,disabled:X,type:"text",onChange:z}),j.jsx(fn,{className:"naria-select__search-icon"})]}):void 0,j.jsx("button",{className:"p-3",onClick:$e,disabled:X,children:j.jsx(pn,{className:"w-6"})})]}):void 0,G!=null&&G.length?j.jsx(j.Fragment,{children:G==null?void 0:G.map((k,Y)=>j.jsx("button",{type:"button",onClick:()=>Pe(k),disabled:X,className:`naria-select__option ${o==null?void 0:o.option} ${D(k)}`,"data-class-prop":"option","data-class-prop-active":"optionActive",children:C!=null&&C.length?k[C]:k},Y.toString()))}):j.jsx("div",{children:"No Data"}),me.isLoading?j.jsx("div",{className:"naria-select__loading-more-root",children:j.jsx("div",{className:"naria-select__loading-more",children:j.jsx(Jt,{})})}):void 0]})})}):void 0,w&&j.jsx("p",{className:`naria-select--error-text ${o==null?void 0:o.errorText}`,"data-class-prop":"errorText",children:w})]})},fo=({type:d="text",placeholder:b,classNames:w={root:"",label:"",title:"",input:"",errorText:""},title:y,hasError:C,register:A,name:Z,isDisabled:T=!1,autocomplete:X=!1,...L})=>j.jsxs("div",{className:`naria-input ${w.root}`,"data-class-prop":"root",children:[j.jsxs("label",{htmlFor:Z,className:`${w.label} ${C&&"naria-input__label--error"}`,"data-class-prop":"label",children:[j.jsx("span",{className:w==null?void 0:w.title,"data-class-prop":"title",children:y}),j.jsx("input",{disabled:T,autoComplete:X?"on":"off",id:Z,...A,...L,type:d,name:Z,className:`${w.input} ${C&&"naria-input__input--error"}`,placeholder:b,"data-class-prop":"input"})]}),C&&j.jsx("p",{className:`naria-input--error-text ${w==null?void 0:w.errorText}`,"data-class-prop":"errorText",children:C})]}),ho=({classNames:d={root:"",backdrop:"",content:""},placement:b="bottom-start",isOpen:w=!1,onOpenChange:y,children:C,...A})=>{const[Z,T]=I.Children.toArray(C),[X,L]=I.useState({type:"fade-in-scale",position:""}),[_,R]=I.useState({top:void 0,bottom:void 0,left:void 0,right:void 0}),o=gr(),K=I.useRef(void 0),ne=I.useRef(void 0),B=I.useRef(window.crypto.randomUUID()),P=wr("#"+B.current),ae=()=>{y&&y(!1)},Ye=()=>{y&&y(!w)};Yn(K,ne,ae),I.useEffect(()=>{w?ue():R({top:void 0,bottom:void 0,left:void 0,right:void 0})},[w]),I.useEffect(()=>{var F;o<768&&(w?(Dr(B.current),(F=ne.current)==null||F.focus()):window.location.hash&&!document.referrer.includes("#")&&Mr())},[w]),I.useEffect(()=>{P&&ae()},[P]),I.useEffect(()=>(["scroll"].forEach(F=>{window.addEventListener(F,ae)}),()=>{["scroll"].forEach(F=>{window.removeEventListener(F,ae)})}),[]);const ue=()=>{setTimeout(()=>{var F;if(ne!=null&&ne.current&&K.current){const te=((F=document.documentElement)==null?void 0:F.getAttribute("dir"))==="rtl",G=K.current.getBoundingClientRect(),$=ne.current.getBoundingClientRect();switch(!0){case b==="bottom-start":{(window.innerHeight||document.documentElement.clientHeight)-$.bottom>G.height?(L({type:X.type,position:"transform-origin-top-start"}),R({top:$.height,bottom:void 0,left:te?void 0:0,right:te?0:void 0})):(L({type:X.type,position:"transform-origin-bottom-start"}),R({top:void 0,bottom:$.height,left:te?void 0:0,right:te?0:void 0}));break}case b==="bottom-end":{(window.innerHeight||document.documentElement.clientHeight)-$.bottom>G.height?(L({type:X.type,position:"transform-origin-top-end"}),R({top:$.height,bottom:void 0,left:te?void 0:0,right:te?0:void 0})):(L({type:X.type,position:"transform-origin-bottom-end"}),R({top:void 0,bottom:$.height,left:te?void 0:0,right:te?0:void 0}));break}case b==="bottom":{let q={y:"bottom",x:"center"},W={top:void 0,bottom:$.height,left:te?void 0:0,right:te?0:void 0};(window.innerHeight||document.documentElement.clientHeight)-$.bottom>G.height&&(q={...q,y:"top"},W={...W,top:$.height,bottom:void 0}),te?(console.log(),(window.innerWidth||document.documentElement.clientWidth)-$.right>G.width/2-$.width/2?(W={...W,left:void 0,right:(G.width/2-$.width/2)*-1},q={...q,x:"center"}):q={...q,x:"start"}):G.width/2-$.width/2<$.left?(W={...W,left:(G.width/2-$.width/2)*-1,right:void 0},q={...q,x:"center"}):q={...q,x:"start"},L({type:X.type,position:`transform-origin-${q.y}-${q.x}`}),R(W);break}case b==="top":{let q={y:"top",x:"center"},W={top:$.height,bottom:void 0,left:te?void 0:0,right:te?0:void 0};$.top-G.height>0&&(q={...q,y:"bottom"},W={...W,top:void 0,bottom:$.height}),te?(window.innerWidth||document.documentElement.clientWidth)-$.right>G.width/2-$.width/2?(W={...W,left:void 0,right:(G.width/2-$.width/2)*-1},q={...q,x:"center"}):q={...q,x:"start"}:G.width/2-$.width/2<$.left?(W={...W,left:(G.width/2-$.width/2)*-1,right:void 0},q={...q,x:"center"}):q={...q,x:"start"},L({type:X.type,position:`transform-origin-${q.y}-${q.x}`}),R(W);break}case b==="top-start":{$.top-G.height>0?(L({type:X.type,position:"transform-origin-bottom-start"}),R({top:void 0,bottom:$.height,left:te?void 0:0,right:te?0:void 0})):(L({type:X.type,position:"transform-origin-top-start"}),R({top:$.height,bottom:void 0,left:te?void 0:0,right:te?0:void 0}));break}case b==="top-end":{$.top-G.height>0?(L({type:X.type,position:"transform-origin-bottom-end"}),R({top:void 0,bottom:$.height,left:te?void 0:0,right:te?0:void 0})):(L({type:X.type,position:"transform-origin-top-end"}),R({top:$.height,bottom:void 0,left:te?void 0:0,right:te?0:void 0}));break}}}},0)},ge=F=>{F.currentTarget===F.target&&ae()};return I.useEffect(()=>(window.addEventListener("resize",ue),()=>{window.removeEventListener("resize",ue)}),[ue]),j.jsxs("div",{className:`naria-popover ${d.root}`,"data-class-prop":"root",children:[I.cloneElement(Z,{onClick:()=>Ye(),ref:ne}),w&&j.jsx(j.Fragment,{children:o<768?j.jsx("div",{onClick:ge,className:`naria-popover__backdrop ${d.backdrop}`,"data-class-prop":"backdrop",children:j.jsx("div",{className:`naria-popover__content naria-popover__content--mobile ${d.content}`,"data-class-prop":"content",children:T})}):j.jsx("div",{className:`naria-popover__content naria-popover__content--desktop ${X.type} ${X.position} ${d.content}`,ref:K,style:{bottom:_.bottom!==void 0?_.bottom:"unset",top:_.top!==void 0?_.top:"unset",left:_.left!==void 0?_.left:"unset",right:_.right!==void 0?_.right:"unset"},"data-class-prop":"content",children:T})})]})},hn=d=>We.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 512",fill:"currentColor",...d},We.createElement("path",{fill:"currentColor",d:"M241.5 239c9.4 9.4 9.4 24.6 0 33.9L81.5 433c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l143-143-143-143c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l160 160z"})),mn=d=>We.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor",...d},We.createElement("path",{fill:"currentColor",d:"M81.5 433l160-160c9.4-9.4 9.4-24.6 0-33.9L81.5 79c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l143 143-143 143c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0zm192 0l160-160c9.4-9.4 9.4-24.6 0-33.9L273.5 79c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l143 143-143 143c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0z"}));var Vt={exports:{}};function vn(d){throw new Error('Could not dynamically require "'+d+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var zt={exports:{}},mo=zt.exports,yn;function pr(){return yn||(yn=1,function(d,b){(function(w,y){d.exports=y()})(mo,function(){var w;function y(){return w.apply(null,arguments)}function C(e){w=e}function A(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Z(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function X(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(T(e,t))return!1;return!0}function L(e){return e===void 0}function _(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function R(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function o(e,t){var r=[],n,s=e.length;for(n=0;n<s;++n)r.push(t(e[n],n));return r}function K(e,t){for(var r in t)T(t,r)&&(e[r]=t[r]);return T(t,"toString")&&(e.toString=t.toString),T(t,"valueOf")&&(e.valueOf=t.valueOf),e}function ne(e,t,r,n){return Wr(e,t,r,n,!0).utc()}function B(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function P(e){return e._pf==null&&(e._pf=B()),e._pf}var ae;Array.prototype.some?ae=Array.prototype.some:ae=function(e){var t=Object(this),r=t.length>>>0,n;for(n=0;n<r;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};function Ye(e){var t=null,r=!1,n=e._d&&!isNaN(e._d.getTime());if(n&&(t=P(e),r=ae.call(t.parsedDateParts,function(s){return s!=null}),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(n=n&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=n;else return n;return e._isValid}function ue(e){var t=ne(NaN);return e!=null?K(P(t),e):P(t).userInvalidated=!0,t}var ge=y.momentProperties=[],F=!1;function te(e,t){var r,n,s,l=ge.length;if(L(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),L(t._i)||(e._i=t._i),L(t._f)||(e._f=t._f),L(t._l)||(e._l=t._l),L(t._strict)||(e._strict=t._strict),L(t._tzm)||(e._tzm=t._tzm),L(t._isUTC)||(e._isUTC=t._isUTC),L(t._offset)||(e._offset=t._offset),L(t._pf)||(e._pf=P(t)),L(t._locale)||(e._locale=t._locale),l>0)for(r=0;r<l;r++)n=ge[r],s=t[n],L(s)||(e[n]=s);return e}function G(e){te(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),F===!1&&(F=!0,y.updateOffset(this),F=!1)}function $(e){return e instanceof G||e!=null&&e._isAMomentObject!=null}function q(e){y.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function W(e,t){var r=!0;return K(function(){if(y.deprecationHandler!=null&&y.deprecationHandler(null,e),r){var n=[],s,l,m,x=arguments.length;for(l=0;l<x;l++){if(s="",typeof arguments[l]=="object"){s+=`
|
|
26
26
|
[`+l+"] ";for(m in arguments[0])T(arguments[0],m)&&(s+=m+": "+arguments[0][m]+", ");s=s.slice(0,-2)}else s=arguments[l];n.push(s)}q(e+`
|
|
27
27
|
Arguments: `+Array.prototype.slice.call(n).join("")+`
|
|
28
28
|
`+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var me={};function Te(e,t){y.deprecationHandler!=null&&y.deprecationHandler(e,t),me[e]||(q(t),me[e]=!0)}y.suppressDeprecationWarnings=!1,y.deprecationHandler=null;function ce(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function ye(e){var t,r;for(r in e)T(e,r)&&(t=e[r],ce(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function V(e,t){var r=K({},e),n;for(n in t)T(t,n)&&(Z(e[n])&&Z(t[n])?(r[n]={},K(r[n],e[n]),K(r[n],t[n])):t[n]!=null?r[n]=t[n]:delete r[n]);for(n in e)T(e,n)&&!T(t,n)&&Z(e[n])&&(r[n]=K({},r[n]));return r}function xe(e){e!=null&&this.set(e)}var je;Object.keys?je=Object.keys:je=function(e){var t,r=[];for(t in e)T(e,t)&&r.push(t);return r};var $e={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Pe(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return ce(n)?n.call(t,r):n}function D(e,t,r){var n=""+Math.abs(e),s=t-n.length,l=e>=0;return(l?r?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+n}var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,z=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,k={},Y={};function u(e,t,r,n){var s=n;typeof n=="string"&&(s=function(){return this[n]()}),e&&(Y[e]=s),t&&(Y[t[0]]=function(){return D(s.apply(this,arguments),t[1],t[2])}),r&&(Y[r]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function De(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function he(e){var t=e.match(H),r,n;for(r=0,n=t.length;r<n;r++)Y[t[r]]?t[r]=Y[t[r]]:t[r]=De(t[r]);return function(s){var l="",m;for(m=0;m<n;m++)l+=ce(t[m])?t[m].call(s,e):t[m];return l}}function U(e,t){return e.isValid()?(t=de(t,e.localeData()),k[t]=k[t]||he(t),k[t](e)):e.localeData().invalidDate()}function de(e,t){var r=5;function n(s){return t.longDateFormat(s)||s}for(z.lastIndex=0;r>=0&&z.test(e);)e=e.replace(z,n),z.lastIndex=0,r-=1;return e}var ee={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function ke(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(H).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var mt="Invalid date";function yt(){return this._invalidDate}var Qe="%d",Xe=/\d{1,2}/;function c(e){return this._ordinal.replace("%d",e)}var f={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function M(e,t,r,n){var s=this._relativeTime[r];return ce(s)?s(e,t,r,n):s.replace(/%d/i,e)}function p(e,t){var r=this._relativeTime[e>0?"future":"past"];return ce(r)?r(t):r.replace(/%s/i,t)}var a={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function i(e){return typeof e=="string"?a[e]||a[e.toLowerCase()]:void 0}function h(e){var t={},r,n;for(n in e)T(e,n)&&(r=i(n),r&&(t[r]=e[n]));return t}var g={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function S(e){var t=[],r;for(r in e)T(e,r)&&t.push({unit:r,priority:g[r]});return t.sort(function(n,s){return n.priority-s.priority}),t}var E=/\d/,N=/\d\d/,Q=/\d{3}/,fe=/\d{4}/,ve=/[+-]?\d{6}/,ie=/\d\d?/,Re=/\d\d\d\d?/,Ke=/\d\d\d\d\d\d?/,bt=/\d{1,3}/,Zt=/\d{1,4}/,Tt=/[+-]?\d{1,6}/,at=/\d+/,xt=/[+-]?\d+/,kn=/Z|[+-]\d\d:?\d\d/gi,Ot=/Z|[+-]\d\d(?::?\d\d)?/gi,Sn=/[+-]?\d+(\.\d{1,3})?/,_t=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,st=/^[1-9]\d?/,qt=/^([1-9]\d|\d)/,$t;$t={};function O(e,t,r){$t[e]=ce(t)?t:function(n,s){return n&&r?r:t}}function jn(e,t){return T($t,e)?$t[e](t._strict,t._locale):new RegExp(bn(e))}function bn(e){return Ae(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,s,l){return r||n||s||l}))}function Ae(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Ce(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function re(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=Ce(t)),r}var Bt={};function _e(e,t){var r,n=t,s;for(typeof e=="string"&&(e=[e]),_(t)&&(n=function(l,m){m[t]=re(l)}),s=e.length,r=0;r<s;r++)Bt[e[r]]=n}function gt(e,t){_e(e,function(r,n,s,l){s._w=s._w||{},t(r,s._w,s,l)})}function Tn(e,t,r){t!=null&&T(Bt,e)&&Bt[e](t,r._a,r,e)}function Rt(e){return e%4===0&&e%100!==0||e%400===0}var be=0,Ne=1,Ee=2,Se=3,Le=4,Ie=5,et=6,xn=7,On=8;u("Y",0,0,function(){var e=this.year();return e<=9999?D(e,4):"+"+e}),u(0,["YY",2],0,function(){return this.year()%100}),u(0,["YYYY",4],0,"year"),u(0,["YYYYY",5],0,"year"),u(0,["YYYYYY",6,!0],0,"year"),O("Y",xt),O("YY",ie,N),O("YYYY",Zt,fe),O("YYYYY",Tt,ve),O("YYYYYY",Tt,ve),_e(["YYYYY","YYYYYY"],be),_e("YYYY",function(e,t){t[be]=e.length===2?y.parseTwoDigitYear(e):re(e)}),_e("YY",function(e,t){t[be]=y.parseTwoDigitYear(e)}),_e("Y",function(e,t){t[be]=parseInt(e,10)});function Mt(e){return Rt(e)?366:365}y.parseTwoDigitYear=function(e){return re(e)+(re(e)>68?1900:2e3)};var Yr=it("FullYear",!0);function $n(){return Rt(this.year())}function it(e,t){return function(r){return r!=null?(vr(this,e,r),y.updateOffset(this,t),this):Dt(this,e)}}function Dt(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function vr(e,t,r){var n,s,l,m,x;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,s=e._isUTC,t){case"Milliseconds":return void(s?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(s?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(s?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(s?n.setUTCHours(r):n.setHours(r));case"Date":return void(s?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}l=r,m=e.month(),x=e.date(),x=x===29&&m===1&&!Rt(l)?28:x,s?n.setUTCFullYear(l,m,x):n.setFullYear(l,m,x)}}function Rn(e){return e=i(e),ce(this[e])?this[e]():this}function Pn(e,t){if(typeof e=="object"){e=h(e);var r=S(e),n,s=r.length;for(n=0;n<s;n++)this[r[n].unit](e[r[n].unit])}else if(e=i(e),ce(this[e]))return this[e](t);return this}function Cn(e,t){return(e%t+t)%t}var pe;Array.prototype.indexOf?pe=Array.prototype.indexOf:pe=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Qt(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=Cn(t,12);return e+=(t-r)/12,r===1?Rt(e)?29:28:31-r%7%2}u("M",["MM",2],"Mo",function(){return this.month()+1}),u("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),u("MMMM",0,0,function(e){return this.localeData().months(this,e)}),O("M",ie,st),O("MM",ie,N),O("MMM",function(e,t){return t.monthsShortRegex(e)}),O("MMMM",function(e,t){return t.monthsRegex(e)}),_e(["M","MM"],function(e,t){t[Ne]=re(e)-1}),_e(["MMM","MMMM"],function(e,t,r,n){var s=r._locale.monthsParse(e,n,r._strict);s!=null?t[Ne]=s:P(r).invalidMonth=e});var Ln="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),kr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Sr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Fn=_t,En=_t;function Wn(e,t){return e?A(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Sr).test(t)?"format":"standalone"][e.month()]:A(this._months)?this._months:this._months.standalone}function An(e,t){return e?A(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Sr.test(t)?"format":"standalone"][e.month()]:A(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Nn(e,t,r){var n,s,l,m=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)l=ne([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(l,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(l,"").toLocaleLowerCase();return r?t==="MMM"?(s=pe.call(this._shortMonthsParse,m),s!==-1?s:null):(s=pe.call(this._longMonthsParse,m),s!==-1?s:null):t==="MMM"?(s=pe.call(this._shortMonthsParse,m),s!==-1?s:(s=pe.call(this._longMonthsParse,m),s!==-1?s:null)):(s=pe.call(this._longMonthsParse,m),s!==-1?s:(s=pe.call(this._shortMonthsParse,m),s!==-1?s:null))}function In(e,t,r){var n,s,l;if(this._monthsParseExact)return Nn.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=ne([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!r&&!this._monthsParse[n]&&(l="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(l.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[n].test(e))return n;if(r&&t==="MMM"&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}function jr(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=re(t);else if(t=e.localeData().monthsParse(t),!_(t))return e}var r=t,n=e.date();return n=n<29?n:Math.min(n,Qt(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function br(e){return e!=null?(jr(this,e),y.updateOffset(this,!0),this):Dt(this,"Month")}function Hn(){return Qt(this.year(),this.month())}function Un(e){return this._monthsParseExact?(T(this,"_monthsRegex")||Tr.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(T(this,"_monthsShortRegex")||(this._monthsShortRegex=Fn),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Gn(e){return this._monthsParseExact?(T(this,"_monthsRegex")||Tr.call(this),e?this._monthsStrictRegex:this._monthsRegex):(T(this,"_monthsRegex")||(this._monthsRegex=En),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Tr(){function e(J,se){return se.length-J.length}var t=[],r=[],n=[],s,l,m,x;for(s=0;s<12;s++)l=ne([2e3,s]),m=Ae(this.monthsShort(l,"")),x=Ae(this.months(l,"")),t.push(m),r.push(x),n.push(x),n.push(m);t.sort(e),r.sort(e),n.sort(e),this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Vn(e,t,r,n,s,l,m){var x;return e<100&&e>=0?(x=new Date(e+400,t,r,n,s,l,m),isFinite(x.getFullYear())&&x.setFullYear(e)):x=new Date(e,t,r,n,s,l,m),x}function wt(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Pt(e,t,r){var n=7+t-r,s=(7+wt(e,0,n).getUTCDay()-t)%7;return-s+n-1}function xr(e,t,r,n,s){var l=(7+r-n)%7,m=Pt(e,n,s),x=1+7*(t-1)+l+m,J,se;return x<=0?(J=e-1,se=Mt(J)+x):x>Mt(e)?(J=e+1,se=x-Mt(e)):(J=e,se=x),{year:J,dayOfYear:se}}function pt(e,t,r){var n=Pt(e.year(),t,r),s=Math.floor((e.dayOfYear()-n-1)/7)+1,l,m;return s<1?(m=e.year()-1,l=s+He(m,t,r)):s>He(e.year(),t,r)?(l=s-He(e.year(),t,r),m=e.year()+1):(m=e.year(),l=s),{week:l,year:m}}function He(e,t,r){var n=Pt(e,t,r),s=Pt(e+1,t,r);return(Mt(e)-n+s)/7}u("w",["ww",2],"wo","week"),u("W",["WW",2],"Wo","isoWeek"),O("w",ie,st),O("ww",ie,N),O("W",ie,st),O("WW",ie,N),gt(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=re(e)});function zn(e){return pt(e,this._week.dow,this._week.doy).week}var Jn={dow:0,doy:6};function Zn(){return this._week.dow}function qn(){return this._week.doy}function Bn(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Qn(e){var t=pt(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}u("d",0,"do","day"),u("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),u("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),u("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),u("e",0,0,"weekday"),u("E",0,0,"isoWeekday"),O("d",ie),O("e",ie),O("E",ie),O("dd",function(e,t){return t.weekdaysMinRegex(e)}),O("ddd",function(e,t){return t.weekdaysShortRegex(e)}),O("dddd",function(e,t){return t.weekdaysRegex(e)}),gt(["dd","ddd","dddd"],function(e,t,r,n){var s=r._locale.weekdaysParse(e,n,r._strict);s!=null?t.d=s:P(r).invalidWeekday=e}),gt(["d","e","E"],function(e,t,r,n){t[n]=re(e)});function Xn(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Kn(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Xt(e,t){return e.slice(t,7).concat(e.slice(0,t))}var ea="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Or="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ta="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ra=_t,na=_t,aa=_t;function sa(e,t){var r=A(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Xt(r,this._week.dow):e?r[e.day()]:r}function ia(e){return e===!0?Xt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function oa(e){return e===!0?Xt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function ua(e,t,r){var n,s,l,m=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)l=ne([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(l,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(l,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(l,"").toLocaleLowerCase();return r?t==="dddd"?(s=pe.call(this._weekdaysParse,m),s!==-1?s:null):t==="ddd"?(s=pe.call(this._shortWeekdaysParse,m),s!==-1?s:null):(s=pe.call(this._minWeekdaysParse,m),s!==-1?s:null):t==="dddd"?(s=pe.call(this._weekdaysParse,m),s!==-1||(s=pe.call(this._shortWeekdaysParse,m),s!==-1)?s:(s=pe.call(this._minWeekdaysParse,m),s!==-1?s:null)):t==="ddd"?(s=pe.call(this._shortWeekdaysParse,m),s!==-1||(s=pe.call(this._weekdaysParse,m),s!==-1)?s:(s=pe.call(this._minWeekdaysParse,m),s!==-1?s:null)):(s=pe.call(this._minWeekdaysParse,m),s!==-1||(s=pe.call(this._weekdaysParse,m),s!==-1)?s:(s=pe.call(this._shortWeekdaysParse,m),s!==-1?s:null))}function la(e,t,r){var n,s,l;if(this._weekdaysParseExact)return ua.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=ne([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(l="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(l.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function ca(e){if(!this.isValid())return e!=null?this:NaN;var t=Dt(this,"Day");return e!=null?(e=Xn(e,this.localeData()),this.add(e-t,"d")):t}function da(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function fa(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Kn(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function ha(e){return this._weekdaysParseExact?(T(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(T(this,"_weekdaysRegex")||(this._weekdaysRegex=ra),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function ma(e){return this._weekdaysParseExact?(T(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(T(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=na),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ya(e){return this._weekdaysParseExact?(T(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(T(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=aa),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Kt(){function e(Oe,Je){return Je.length-Oe.length}var t=[],r=[],n=[],s=[],l,m,x,J,se;for(l=0;l<7;l++)m=ne([2e3,1]).day(l),x=Ae(this.weekdaysMin(m,"")),J=Ae(this.weekdaysShort(m,"")),se=Ae(this.weekdays(m,"")),t.push(x),r.push(J),n.push(se),s.push(x),s.push(J),s.push(se);t.sort(e),r.sort(e),n.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function er(){return this.hours()%12||12}function _a(){return this.hours()||24}u("H",["HH",2],0,"hour"),u("h",["hh",2],0,er),u("k",["kk",2],0,_a),u("hmm",0,0,function(){return""+er.apply(this)+D(this.minutes(),2)}),u("hmmss",0,0,function(){return""+er.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)}),u("Hmm",0,0,function(){return""+this.hours()+D(this.minutes(),2)}),u("Hmmss",0,0,function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)});function $r(e,t){u(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}$r("a",!0),$r("A",!1);function Rr(e,t){return t._meridiemParse}O("a",Rr),O("A",Rr),O("H",ie,qt),O("h",ie,st),O("k",ie,st),O("HH",ie,N),O("hh",ie,N),O("kk",ie,N),O("hmm",Re),O("hmmss",Ke),O("Hmm",Re),O("Hmmss",Ke),_e(["H","HH"],Se),_e(["k","kk"],function(e,t,r){var n=re(e);t[Se]=n===24?0:n}),_e(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),_e(["h","hh"],function(e,t,r){t[Se]=re(e),P(r).bigHour=!0}),_e("hmm",function(e,t,r){var n=e.length-2;t[Se]=re(e.substr(0,n)),t[Le]=re(e.substr(n)),P(r).bigHour=!0}),_e("hmmss",function(e,t,r){var n=e.length-4,s=e.length-2;t[Se]=re(e.substr(0,n)),t[Le]=re(e.substr(n,2)),t[Ie]=re(e.substr(s)),P(r).bigHour=!0}),_e("Hmm",function(e,t,r){var n=e.length-2;t[Se]=re(e.substr(0,n)),t[Le]=re(e.substr(n))}),_e("Hmmss",function(e,t,r){var n=e.length-4,s=e.length-2;t[Se]=re(e.substr(0,n)),t[Le]=re(e.substr(n,2)),t[Ie]=re(e.substr(s))});function ga(e){return(e+"").toLowerCase().charAt(0)==="p"}var Ma=/[ap]\.?m?\.?/i,Da=it("Hours",!0);function wa(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var Pr={calendar:$e,longDateFormat:ee,invalidDate:mt,ordinal:Qe,dayOfMonthOrdinalParse:Xe,relativeTime:f,months:Ln,monthsShort:kr,week:Jn,weekdays:ea,weekdaysMin:ta,weekdaysShort:Or,meridiemParse:Ma},we={},Yt={},vt;function pa(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function Cr(e){return e&&e.toLowerCase().replace("_","-")}function Ya(e){for(var t=0,r,n,s,l;t<e.length;){for(l=Cr(e[t]).split("-"),r=l.length,n=Cr(e[t+1]),n=n?n.split("-"):null;r>0;){if(s=Ct(l.slice(0,r).join("-")),s)return s;if(n&&n.length>=r&&pa(l,n)>=r-1)break;r--}t++}return vt}function va(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Ct(e){var t=null,r;if(we[e]===void 0&&d&&d.exports&&va(e))try{t=vt._abbr,r=vn,r("./locale/"+e),Ze(t)}catch{we[e]=null}return we[e]}function Ze(e,t){var r;return e&&(L(t)?r=Ue(e):r=tr(e,t),r?vt=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),vt._abbr}function tr(e,t){if(t!==null){var r,n=Pr;if(t.abbr=e,we[e]!=null)Te("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=we[e]._config;else if(t.parentLocale!=null)if(we[t.parentLocale]!=null)n=we[t.parentLocale]._config;else if(r=Ct(t.parentLocale),r!=null)n=r._config;else return Yt[t.parentLocale]||(Yt[t.parentLocale]=[]),Yt[t.parentLocale].push({name:e,config:t}),null;return we[e]=new xe(V(n,t)),Yt[e]&&Yt[e].forEach(function(s){tr(s.name,s.config)}),Ze(e),we[e]}else return delete we[e],null}function ka(e,t){if(t!=null){var r,n,s=Pr;we[e]!=null&&we[e].parentLocale!=null?we[e].set(V(we[e]._config,t)):(n=Ct(e),n!=null&&(s=n._config),t=V(s,t),n==null&&(t.abbr=e),r=new xe(t),r.parentLocale=we[e],we[e]=r),Ze(e)}else we[e]!=null&&(we[e].parentLocale!=null?(we[e]=we[e].parentLocale,e===Ze()&&Ze(e)):we[e]!=null&&delete we[e]);return we[e]}function Ue(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return vt;if(!A(e)){if(t=Ct(e),t)return t;e=[e]}return Ya(e)}function Sa(){return je(we)}function rr(e){var t,r=e._a;return r&&P(e).overflow===-2&&(t=r[Ne]<0||r[Ne]>11?Ne:r[Ee]<1||r[Ee]>Qt(r[be],r[Ne])?Ee:r[Se]<0||r[Se]>24||r[Se]===24&&(r[Le]!==0||r[Ie]!==0||r[et]!==0)?Se:r[Le]<0||r[Le]>59?Le:r[Ie]<0||r[Ie]>59?Ie:r[et]<0||r[et]>999?et:-1,P(e)._overflowDayOfYear&&(t<be||t>Ee)&&(t=Ee),P(e)._overflowWeeks&&t===-1&&(t=xn),P(e)._overflowWeekday&&t===-1&&(t=On),P(e).overflow=t),e}var ja=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ba=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ta=/Z|[+-]\d\d(?::?\d\d)?/,Lt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],nr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],xa=/^\/?Date\((-?\d+)/i,Oa=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,$a={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Lr(e){var t,r,n=e._i,s=ja.exec(n)||ba.exec(n),l,m,x,J,se=Lt.length,Oe=nr.length;if(s){for(P(e).iso=!0,t=0,r=se;t<r;t++)if(Lt[t][1].exec(s[1])){m=Lt[t][0],l=Lt[t][2]!==!1;break}if(m==null){e._isValid=!1;return}if(s[3]){for(t=0,r=Oe;t<r;t++)if(nr[t][1].exec(s[3])){x=(s[2]||" ")+nr[t][0];break}if(x==null){e._isValid=!1;return}}if(!l&&x!=null){e._isValid=!1;return}if(s[4])if(Ta.exec(s[4]))J="Z";else{e._isValid=!1;return}e._f=m+(x||"")+(J||""),sr(e)}else e._isValid=!1}function Ra(e,t,r,n,s,l){var m=[Pa(e),kr.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(s,10)];return l&&m.push(parseInt(l,10)),m}function Pa(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Ca(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function La(e,t,r){if(e){var n=Or.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(n!==s)return P(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function Fa(e,t,r){if(e)return $a[e];if(t)return 0;var n=parseInt(r,10),s=n%100,l=(n-s)/100;return l*60+s}function Fr(e){var t=Oa.exec(Ca(e._i)),r;if(t){if(r=Ra(t[4],t[3],t[2],t[5],t[6],t[7]),!La(t[1],r,e))return;e._a=r,e._tzm=Fa(t[8],t[9],t[10]),e._d=wt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),P(e).rfc2822=!0}else e._isValid=!1}function Ea(e){var t=xa.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Lr(e),e._isValid===!1)delete e._isValid;else return;if(Fr(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:y.createFromInputFallback(e)}y.createFromInputFallback=W("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function ot(e,t,r){return e??t??r}function Wa(e){var t=new Date(y.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function ar(e){var t,r,n=[],s,l,m;if(!e._d){for(s=Wa(e),e._w&&e._a[Ee]==null&&e._a[Ne]==null&&Aa(e),e._dayOfYear!=null&&(m=ot(e._a[be],s[be]),(e._dayOfYear>Mt(m)||e._dayOfYear===0)&&(P(e)._overflowDayOfYear=!0),r=wt(m,0,e._dayOfYear),e._a[Ne]=r.getUTCMonth(),e._a[Ee]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=s[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Se]===24&&e._a[Le]===0&&e._a[Ie]===0&&e._a[et]===0&&(e._nextDay=!0,e._a[Se]=0),e._d=(e._useUTC?wt:Vn).apply(null,n),l=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Se]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==l&&(P(e).weekdayMismatch=!0)}}function Aa(e){var t,r,n,s,l,m,x,J,se;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(l=1,m=4,r=ot(t.GG,e._a[be],pt(Me(),1,4).year),n=ot(t.W,1),s=ot(t.E,1),(s<1||s>7)&&(J=!0)):(l=e._locale._week.dow,m=e._locale._week.doy,se=pt(Me(),l,m),r=ot(t.gg,e._a[be],se.year),n=ot(t.w,se.week),t.d!=null?(s=t.d,(s<0||s>6)&&(J=!0)):t.e!=null?(s=t.e+l,(t.e<0||t.e>6)&&(J=!0)):s=l),n<1||n>He(r,l,m)?P(e)._overflowWeeks=!0:J!=null?P(e)._overflowWeekday=!0:(x=xr(r,n,s,l,m),e._a[be]=x.year,e._dayOfYear=x.dayOfYear)}y.ISO_8601=function(){},y.RFC_2822=function(){};function sr(e){if(e._f===y.ISO_8601){Lr(e);return}if(e._f===y.RFC_2822){Fr(e);return}e._a=[],P(e).empty=!0;var t=""+e._i,r,n,s,l,m,x=t.length,J=0,se,Oe;for(s=de(e._f,e._locale).match(H)||[],Oe=s.length,r=0;r<Oe;r++)l=s[r],n=(t.match(jn(l,e))||[])[0],n&&(m=t.substr(0,t.indexOf(n)),m.length>0&&P(e).unusedInput.push(m),t=t.slice(t.indexOf(n)+n.length),J+=n.length),Y[l]?(n?P(e).empty=!1:P(e).unusedTokens.push(l),Tn(l,n,e)):e._strict&&!n&&P(e).unusedTokens.push(l);P(e).charsLeftOver=x-J,t.length>0&&P(e).unusedInput.push(t),e._a[Se]<=12&&P(e).bigHour===!0&&e._a[Se]>0&&(P(e).bigHour=void 0),P(e).parsedDateParts=e._a.slice(0),P(e).meridiem=e._meridiem,e._a[Se]=Na(e._locale,e._a[Se],e._meridiem),se=P(e).era,se!==null&&(e._a[be]=e._locale.erasConvertYear(se,e._a[be])),ar(e),rr(e)}function Na(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function Ia(e){var t,r,n,s,l,m,x=!1,J=e._f.length;if(J===0){P(e).invalidFormat=!0,e._d=new Date(NaN);return}for(s=0;s<J;s++)l=0,m=!1,t=te({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[s],sr(t),Ye(t)&&(m=!0),l+=P(t).charsLeftOver,l+=P(t).unusedTokens.length*10,P(t).score=l,x?l<n&&(n=l,r=t):(n==null||l<n||m)&&(n=l,r=t,m&&(x=!0));K(e,r||t)}function Ha(e){if(!e._d){var t=h(e._i),r=t.day===void 0?t.date:t.day;e._a=o([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)}),ar(e)}}function Ua(e){var t=new G(rr(Er(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Er(e){var t=e._i,r=e._f;return e._locale=e._locale||Ue(e._l),t===null||r===void 0&&t===""?ue({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),$(t)?new G(rr(t)):(R(t)?e._d=t:A(r)?Ia(e):r?sr(e):Ga(e),Ye(e)||(e._d=null),e))}function Ga(e){var t=e._i;L(t)?e._d=new Date(y.now()):R(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Ea(e):A(t)?(e._a=o(t.slice(0),function(r){return parseInt(r,10)}),ar(e)):Z(t)?Ha(e):_(t)?e._d=new Date(t):y.createFromInputFallback(e)}function Wr(e,t,r,n,s){var l={};return(t===!0||t===!1)&&(n=t,t=void 0),(r===!0||r===!1)&&(n=r,r=void 0),(Z(e)&&X(e)||A(e)&&e.length===0)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=s,l._l=r,l._i=e,l._f=t,l._strict=n,Ua(l)}function Me(e,t,r,n){return Wr(e,t,r,n,!1)}var Va=W("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Me.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:ue()}),za=W("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Me.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:ue()});function Ar(e,t){var r,n;if(t.length===1&&A(t[0])&&(t=t[0]),!t.length)return Me();for(r=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](r))&&(r=t[n]);return r}function Ja(){var e=[].slice.call(arguments,0);return Ar("isBefore",e)}function Za(){var e=[].slice.call(arguments,0);return Ar("isAfter",e)}var qa=function(){return Date.now?Date.now():+new Date},kt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ba(e){var t,r=!1,n,s=kt.length;for(t in e)if(T(e,t)&&!(pe.call(kt,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(n=0;n<s;++n)if(e[kt[n]]){if(r)return!1;parseFloat(e[kt[n]])!==re(e[kt[n]])&&(r=!0)}return!0}function Qa(){return this._isValid}function Xa(){return Fe(NaN)}function Ft(e){var t=h(e),r=t.year||0,n=t.quarter||0,s=t.month||0,l=t.week||t.isoWeek||0,m=t.day||0,x=t.hour||0,J=t.minute||0,se=t.second||0,Oe=t.millisecond||0;this._isValid=Ba(t),this._milliseconds=+Oe+se*1e3+J*6e4+x*1e3*60*60,this._days=+m+l*7,this._months=+s+n*3+r*12,this._data={},this._locale=Ue(),this._bubble()}function Et(e){return e instanceof Ft}function ir(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Ka(e,t,r){var n=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),l=0,m;for(m=0;m<n;m++)re(e[m])!==re(t[m])&&l++;return l+s}function Nr(e,t){u(e,0,0,function(){var r=this.utcOffset(),n="+";return r<0&&(r=-r,n="-"),n+D(~~(r/60),2)+t+D(~~r%60,2)})}Nr("Z",":"),Nr("ZZ",""),O("Z",Ot),O("ZZ",Ot),_e(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=or(Ot,e)});var es=/([\+\-]|\d\d)/gi;function or(e,t){var r=(t||"").match(e),n,s,l;return r===null?null:(n=r[r.length-1]||[],s=(n+"").match(es)||["-",0,0],l=+(s[1]*60)+re(s[2]),l===0?0:s[0]==="+"?l:-l)}function ur(e,t){var r,n;return t._isUTC?(r=t.clone(),n=($(e)||R(e)?e.valueOf():Me(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),y.updateOffset(r,!1),r):Me(e).local()}function lr(e){return-Math.round(e._d.getTimezoneOffset())}y.updateOffset=function(){};function ts(e,t,r){var n=this._offset||0,s;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=or(Ot,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(s=lr(this)),this._offset=e,this._isUTC=!0,s!=null&&this.add(s,"m"),n!==e&&(!t||this._changeInProgress?Gr(this,Fe(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,y.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:lr(this)}function rs(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function ns(e){return this.utcOffset(0,e)}function as(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(lr(this),"m")),this}function ss(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=or(kn,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function is(e){return this.isValid()?(e=e?Me(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function os(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function us(){if(!L(this._isDSTShifted))return this._isDSTShifted;var e={},t;return te(e,this),e=Er(e),e._a?(t=e._isUTC?ne(e._a):Me(e._a),this._isDSTShifted=this.isValid()&&Ka(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function ls(){return this.isValid()?!this._isUTC:!1}function cs(){return this.isValid()?this._isUTC:!1}function Ir(){return this.isValid()?this._isUTC&&this._offset===0:!1}var ds=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,fs=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Fe(e,t){var r=e,n=null,s,l,m;return Et(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:_(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=ds.exec(e))?(s=n[1]==="-"?-1:1,r={y:0,d:re(n[Ee])*s,h:re(n[Se])*s,m:re(n[Le])*s,s:re(n[Ie])*s,ms:re(ir(n[et]*1e3))*s}):(n=fs.exec(e))?(s=n[1]==="-"?-1:1,r={y:tt(n[2],s),M:tt(n[3],s),w:tt(n[4],s),d:tt(n[5],s),h:tt(n[6],s),m:tt(n[7],s),s:tt(n[8],s)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(m=hs(Me(r.from),Me(r.to)),r={},r.ms=m.milliseconds,r.M=m.months),l=new Ft(r),Et(e)&&T(e,"_locale")&&(l._locale=e._locale),Et(e)&&T(e,"_isValid")&&(l._isValid=e._isValid),l}Fe.fn=Ft.prototype,Fe.invalid=Xa;function tt(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function Hr(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function hs(e,t){var r;return e.isValid()&&t.isValid()?(t=ur(t,e),e.isBefore(t)?r=Hr(e,t):(r=Hr(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function Ur(e,t){return function(r,n){var s,l;return n!==null&&!isNaN(+n)&&(Te(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),l=r,r=n,n=l),s=Fe(r,n),Gr(this,s,e),this}}function Gr(e,t,r,n){var s=t._milliseconds,l=ir(t._days),m=ir(t._months);e.isValid()&&(n=n??!0,m&&jr(e,Dt(e,"Month")+m*r),l&&vr(e,"Date",Dt(e,"Date")+l*r),s&&e._d.setTime(e._d.valueOf()+s*r),n&&y.updateOffset(e,l||m))}var ms=Ur(1,"add"),ys=Ur(-1,"subtract");function Vr(e){return typeof e=="string"||e instanceof String}function _s(e){return $(e)||R(e)||Vr(e)||_(e)||Ms(e)||gs(e)||e===null||e===void 0}function gs(e){var t=Z(e)&&!X(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,l,m=n.length;for(s=0;s<m;s+=1)l=n[s],r=r||T(e,l);return t&&r}function Ms(e){var t=A(e),r=!1;return t&&(r=e.filter(function(n){return!_(n)&&Vr(e)}).length===0),t&&r}function Ds(e){var t=Z(e)&&!X(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,l;for(s=0;s<n.length;s+=1)l=n[s],r=r||T(e,l);return t&&r}function ws(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function ps(e,t){arguments.length===1&&(arguments[0]?_s(arguments[0])?(e=arguments[0],t=void 0):Ds(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||Me(),n=ur(r,this).startOf("day"),s=y.calendarFormat(this,n)||"sameElse",l=t&&(ce(t[s])?t[s].call(this,r):t[s]);return this.format(l||this.localeData().calendar(s,this,Me(r)))}function Ys(){return new G(this)}function vs(e,t){var r=$(e)?e:Me(e);return this.isValid()&&r.isValid()?(t=i(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function ks(e,t){var r=$(e)?e:Me(e);return this.isValid()&&r.isValid()?(t=i(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function Ss(e,t,r,n){var s=$(e)?e:Me(e),l=$(t)?t:Me(t);return this.isValid()&&s.isValid()&&l.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(s,r):!this.isBefore(s,r))&&(n[1]===")"?this.isBefore(l,r):!this.isAfter(l,r))):!1}function js(e,t){var r=$(e)?e:Me(e),n;return this.isValid()&&r.isValid()?(t=i(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf())):!1}function bs(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Ts(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function xs(e,t,r){var n,s,l;if(!this.isValid())return NaN;if(n=ur(e,this),!n.isValid())return NaN;switch(s=(n.utcOffset()-this.utcOffset())*6e4,t=i(t),t){case"year":l=Wt(this,n)/12;break;case"month":l=Wt(this,n);break;case"quarter":l=Wt(this,n)/3;break;case"second":l=(this-n)/1e3;break;case"minute":l=(this-n)/6e4;break;case"hour":l=(this-n)/36e5;break;case"day":l=(this-n-s)/864e5;break;case"week":l=(this-n-s)/6048e5;break;default:l=this-n}return r?l:Ce(l)}function Wt(e,t){if(e.date()<t.date())return-Wt(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(r,"months"),s,l;return t-n<0?(s=e.clone().add(r-1,"months"),l=(t-n)/(n-s)):(s=e.clone().add(r+1,"months"),l=(t-n)/(s-n)),-(r+l)||0}y.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",y.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Os(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function $s(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?U(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ce(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",U(r,"Z")):U(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Rs(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,s,l;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",l=t+'[")]',this.format(r+n+s+l)}function Ps(e){e||(e=this.isUtc()?y.defaultFormatUtc:y.defaultFormat);var t=U(this,e);return this.localeData().postformat(t)}function Cs(e,t){return this.isValid()&&($(e)&&e.isValid()||Me(e).isValid())?Fe({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ls(e){return this.from(Me(),e)}function Fs(e,t){return this.isValid()&&($(e)&&e.isValid()||Me(e).isValid())?Fe({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Es(e){return this.to(Me(),e)}function zr(e){var t;return e===void 0?this._locale._abbr:(t=Ue(e),t!=null&&(this._locale=t),this)}var Jr=W("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Zr(){return this._locale}var At=1e3,ut=60*At,Nt=60*ut,qr=(365*400+97)*24*Nt;function lt(e,t){return(e%t+t)%t}function Br(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-qr:new Date(e,t,r).valueOf()}function Qr(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-qr:Date.UTC(e,t,r)}function Ws(e){var t,r;if(e=i(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Qr:Br,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=lt(t+(this._isUTC?0:this.utcOffset()*ut),Nt);break;case"minute":t=this._d.valueOf(),t-=lt(t,ut);break;case"second":t=this._d.valueOf(),t-=lt(t,At);break}return this._d.setTime(t),y.updateOffset(this,!0),this}function As(e){var t,r;if(e=i(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Qr:Br,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Nt-lt(t+(this._isUTC?0:this.utcOffset()*ut),Nt)-1;break;case"minute":t=this._d.valueOf(),t+=ut-lt(t,ut)-1;break;case"second":t=this._d.valueOf(),t+=At-lt(t,At)-1;break}return this._d.setTime(t),y.updateOffset(this,!0),this}function Ns(){return this._d.valueOf()-(this._offset||0)*6e4}function Is(){return Math.floor(this.valueOf()/1e3)}function Hs(){return new Date(this.valueOf())}function Us(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Gs(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Vs(){return this.isValid()?this.toISOString():null}function zs(){return Ye(this)}function Js(){return K({},P(this))}function Zs(){return P(this).overflow}function qs(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}u("N",0,0,"eraAbbr"),u("NN",0,0,"eraAbbr"),u("NNN",0,0,"eraAbbr"),u("NNNN",0,0,"eraName"),u("NNNNN",0,0,"eraNarrow"),u("y",["y",1],"yo","eraYear"),u("y",["yy",2],0,"eraYear"),u("y",["yyy",3],0,"eraYear"),u("y",["yyyy",4],0,"eraYear"),O("N",cr),O("NN",cr),O("NNN",cr),O("NNNN",ii),O("NNNNN",oi),_e(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var s=r._locale.erasParse(e,n,r._strict);s?P(r).era=s:P(r).invalidEra=e}),O("y",at),O("yy",at),O("yyy",at),O("yyyy",at),O("yo",ui),_e(["y","yy","yyy","yyyy"],be),_e(["yo"],function(e,t,r,n){var s;r._locale._eraYearOrdinalRegex&&(s=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[be]=r._locale.eraYearOrdinalParse(e,s):t[be]=parseInt(e,10)});function Bs(e,t){var r,n,s,l=this._eras||Ue("en")._eras;for(r=0,n=l.length;r<n;++r){switch(typeof l[r].since){case"string":s=y(l[r].since).startOf("day"),l[r].since=s.valueOf();break}switch(typeof l[r].until){case"undefined":l[r].until=1/0;break;case"string":s=y(l[r].until).startOf("day").valueOf(),l[r].until=s.valueOf();break}}return l}function Qs(e,t,r){var n,s,l=this.eras(),m,x,J;for(e=e.toUpperCase(),n=0,s=l.length;n<s;++n)if(m=l[n].name.toUpperCase(),x=l[n].abbr.toUpperCase(),J=l[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(x===e)return l[n];break;case"NNNN":if(m===e)return l[n];break;case"NNNNN":if(J===e)return l[n];break}else if([m,x,J].indexOf(e)>=0)return l[n]}function Xs(e,t){var r=e.since<=e.until?1:-1;return t===void 0?y(e.since).year():y(e.since).year()+(t-e.offset)*r}function Ks(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].name;return""}function ei(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].narrow;return""}function ti(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].abbr;return""}function ri(){var e,t,r,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=s[e].since<=s[e].until?1:-1,n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return(this.year()-y(s[e].since).year())*r+s[e].offset;return this.year()}function ni(e){return T(this,"_erasNameRegex")||dr.call(this),e?this._erasNameRegex:this._erasRegex}function ai(e){return T(this,"_erasAbbrRegex")||dr.call(this),e?this._erasAbbrRegex:this._erasRegex}function si(e){return T(this,"_erasNarrowRegex")||dr.call(this),e?this._erasNarrowRegex:this._erasRegex}function cr(e,t){return t.erasAbbrRegex(e)}function ii(e,t){return t.erasNameRegex(e)}function oi(e,t){return t.erasNarrowRegex(e)}function ui(e,t){return t._eraYearOrdinalRegex||at}function dr(){var e=[],t=[],r=[],n=[],s,l,m,x,J,se=this.eras();for(s=0,l=se.length;s<l;++s)m=Ae(se[s].name),x=Ae(se[s].abbr),J=Ae(se[s].narrow),t.push(m),e.push(x),r.push(J),n.push(m),n.push(x),n.push(J);this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}u(0,["gg",2],0,function(){return this.weekYear()%100}),u(0,["GG",2],0,function(){return this.isoWeekYear()%100});function It(e,t){u(0,[e,e.length],0,t)}It("gggg","weekYear"),It("ggggg","weekYear"),It("GGGG","isoWeekYear"),It("GGGGG","isoWeekYear"),O("G",xt),O("g",xt),O("GG",ie,N),O("gg",ie,N),O("GGGG",Zt,fe),O("gggg",Zt,fe),O("GGGGG",Tt,ve),O("ggggg",Tt,ve),gt(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=re(e)}),gt(["gg","GG"],function(e,t,r,n){t[n]=y.parseTwoDigitYear(e)});function li(e){return Xr.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function ci(e){return Xr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function di(){return He(this.year(),1,4)}function fi(){return He(this.isoWeekYear(),1,4)}function hi(){var e=this.localeData()._week;return He(this.year(),e.dow,e.doy)}function mi(){var e=this.localeData()._week;return He(this.weekYear(),e.dow,e.doy)}function Xr(e,t,r,n,s){var l;return e==null?pt(this,n,s).year:(l=He(e,n,s),t>l&&(t=l),yi.call(this,e,t,r,n,s))}function yi(e,t,r,n,s){var l=xr(e,t,r,n,s),m=wt(l.year,0,l.dayOfYear);return this.year(m.getUTCFullYear()),this.month(m.getUTCMonth()),this.date(m.getUTCDate()),this}u("Q",0,"Qo","quarter"),O("Q",E),_e("Q",function(e,t){t[Ne]=(re(e)-1)*3});function _i(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}u("D",["DD",2],"Do","date"),O("D",ie,st),O("DD",ie,N),O("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),_e(["D","DD"],Ee),_e("Do",function(e,t){t[Ee]=re(e.match(ie)[0])});var Kr=it("Date",!0);u("DDD",["DDDD",3],"DDDo","dayOfYear"),O("DDD",bt),O("DDDD",Q),_e(["DDD","DDDD"],function(e,t,r){r._dayOfYear=re(e)});function gi(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}u("m",["mm",2],0,"minute"),O("m",ie,qt),O("mm",ie,N),_e(["m","mm"],Le);var Mi=it("Minutes",!1);u("s",["ss",2],0,"second"),O("s",ie,qt),O("ss",ie,N),_e(["s","ss"],Ie);var Di=it("Seconds",!1);u("S",0,0,function(){return~~(this.millisecond()/100)}),u(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),u(0,["SSS",3],0,"millisecond"),u(0,["SSSS",4],0,function(){return this.millisecond()*10}),u(0,["SSSSS",5],0,function(){return this.millisecond()*100}),u(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),u(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),u(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),u(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),O("S",bt,E),O("SS",bt,N),O("SSS",bt,Q);var qe,en;for(qe="SSSS";qe.length<=9;qe+="S")O(qe,at);function wi(e,t){t[et]=re(("0."+e)*1e3)}for(qe="S";qe.length<=9;qe+="S")_e(qe,wi);en=it("Milliseconds",!1),u("z",0,0,"zoneAbbr"),u("zz",0,0,"zoneName");function pi(){return this._isUTC?"UTC":""}function Yi(){return this._isUTC?"Coordinated Universal Time":""}var v=G.prototype;v.add=ms,v.calendar=ps,v.clone=Ys,v.diff=xs,v.endOf=As,v.format=Ps,v.from=Cs,v.fromNow=Ls,v.to=Fs,v.toNow=Es,v.get=Rn,v.invalidAt=Zs,v.isAfter=vs,v.isBefore=ks,v.isBetween=Ss,v.isSame=js,v.isSameOrAfter=bs,v.isSameOrBefore=Ts,v.isValid=zs,v.lang=Jr,v.locale=zr,v.localeData=Zr,v.max=za,v.min=Va,v.parsingFlags=Js,v.set=Pn,v.startOf=Ws,v.subtract=ys,v.toArray=Us,v.toObject=Gs,v.toDate=Hs,v.toISOString=$s,v.inspect=Rs,typeof Symbol<"u"&&Symbol.for!=null&&(v[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),v.toJSON=Vs,v.toString=Os,v.unix=Is,v.valueOf=Ns,v.creationData=qs,v.eraName=Ks,v.eraNarrow=ei,v.eraAbbr=ti,v.eraYear=ri,v.year=Yr,v.isLeapYear=$n,v.weekYear=li,v.isoWeekYear=ci,v.quarter=v.quarters=_i,v.month=br,v.daysInMonth=Hn,v.week=v.weeks=Bn,v.isoWeek=v.isoWeeks=Qn,v.weeksInYear=hi,v.weeksInWeekYear=mi,v.isoWeeksInYear=di,v.isoWeeksInISOWeekYear=fi,v.date=Kr,v.day=v.days=ca,v.weekday=da,v.isoWeekday=fa,v.dayOfYear=gi,v.hour=v.hours=Da,v.minute=v.minutes=Mi,v.second=v.seconds=Di,v.millisecond=v.milliseconds=en,v.utcOffset=ts,v.utc=ns,v.local=as,v.parseZone=ss,v.hasAlignedHourOffset=is,v.isDST=os,v.isLocal=ls,v.isUtcOffset=cs,v.isUtc=Ir,v.isUTC=Ir,v.zoneAbbr=pi,v.zoneName=Yi,v.dates=W("dates accessor is deprecated. Use date instead.",Kr),v.months=W("months accessor is deprecated. Use month instead",br),v.years=W("years accessor is deprecated. Use year instead",Yr),v.zone=W("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",rs),v.isDSTShifted=W("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",us);function vi(e){return Me(e*1e3)}function ki(){return Me.apply(null,arguments).parseZone()}function tn(e){return e}var le=xe.prototype;le.calendar=Pe,le.longDateFormat=ke,le.invalidDate=yt,le.ordinal=c,le.preparse=tn,le.postformat=tn,le.relativeTime=M,le.pastFuture=p,le.set=ye,le.eras=Bs,le.erasParse=Qs,le.erasConvertYear=Xs,le.erasAbbrRegex=ai,le.erasNameRegex=ni,le.erasNarrowRegex=si,le.months=Wn,le.monthsShort=An,le.monthsParse=In,le.monthsRegex=Gn,le.monthsShortRegex=Un,le.week=zn,le.firstDayOfYear=qn,le.firstDayOfWeek=Zn,le.weekdays=sa,le.weekdaysMin=oa,le.weekdaysShort=ia,le.weekdaysParse=la,le.weekdaysRegex=ha,le.weekdaysShortRegex=ma,le.weekdaysMinRegex=ya,le.isPM=ga,le.meridiem=wa;function Ht(e,t,r,n){var s=Ue(),l=ne().set(n,t);return s[r](l,e)}function rn(e,t,r){if(_(e)&&(t=e,e=void 0),e=e||"",t!=null)return Ht(e,t,r,"month");var n,s=[];for(n=0;n<12;n++)s[n]=Ht(e,n,r,"month");return s}function fr(e,t,r,n){typeof e=="boolean"?(_(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,_(t)&&(r=t,t=void 0),t=t||"");var s=Ue(),l=e?s._week.dow:0,m,x=[];if(r!=null)return Ht(t,(r+l)%7,n,"day");for(m=0;m<7;m++)x[m]=Ht(t,(m+l)%7,n,"day");return x}function Si(e,t){return rn(e,t,"months")}function ji(e,t){return rn(e,t,"monthsShort")}function bi(e,t,r){return fr(e,t,r,"weekdays")}function Ti(e,t,r){return fr(e,t,r,"weekdaysShort")}function xi(e,t,r){return fr(e,t,r,"weekdaysMin")}Ze("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=re(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}}),y.lang=W("moment.lang is deprecated. Use moment.locale instead.",Ze),y.langData=W("moment.langData is deprecated. Use moment.localeData instead.",Ue);var Ge=Math.abs;function Oi(){var e=this._data;return this._milliseconds=Ge(this._milliseconds),this._days=Ge(this._days),this._months=Ge(this._months),e.milliseconds=Ge(e.milliseconds),e.seconds=Ge(e.seconds),e.minutes=Ge(e.minutes),e.hours=Ge(e.hours),e.months=Ge(e.months),e.years=Ge(e.years),this}function nn(e,t,r,n){var s=Fe(t,r);return e._milliseconds+=n*s._milliseconds,e._days+=n*s._days,e._months+=n*s._months,e._bubble()}function $i(e,t){return nn(this,e,t,1)}function Ri(e,t){return nn(this,e,t,-1)}function an(e){return e<0?Math.floor(e):Math.ceil(e)}function Pi(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,s,l,m,x,J;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=an(hr(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,s=Ce(e/1e3),n.seconds=s%60,l=Ce(s/60),n.minutes=l%60,m=Ce(l/60),n.hours=m%24,t+=Ce(m/24),J=Ce(sn(t)),r+=J,t-=an(hr(J)),x=Ce(r/12),r%=12,n.days=t,n.months=r,n.years=x,this}function sn(e){return e*4800/146097}function hr(e){return e*146097/4800}function Ci(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=i(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+sn(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(hr(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function Ve(e){return function(){return this.as(e)}}var on=Ve("ms"),Li=Ve("s"),Fi=Ve("m"),Ei=Ve("h"),Wi=Ve("d"),Ai=Ve("w"),Ni=Ve("M"),Ii=Ve("Q"),Hi=Ve("y"),Ui=on;function Gi(){return Fe(this)}function Vi(e){return e=i(e),this.isValid()?this[e+"s"]():NaN}function rt(e){return function(){return this.isValid()?this._data[e]:NaN}}var zi=rt("milliseconds"),Ji=rt("seconds"),Zi=rt("minutes"),qi=rt("hours"),Bi=rt("days"),Qi=rt("months"),Xi=rt("years");function Ki(){return Ce(this.days()/7)}var ze=Math.round,ct={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function eo(e,t,r,n,s){return s.relativeTime(t||1,!!r,e,n)}function to(e,t,r,n){var s=Fe(e).abs(),l=ze(s.as("s")),m=ze(s.as("m")),x=ze(s.as("h")),J=ze(s.as("d")),se=ze(s.as("M")),Oe=ze(s.as("w")),Je=ze(s.as("y")),Be=l<=r.ss&&["s",l]||l<r.s&&["ss",l]||m<=1&&["m"]||m<r.m&&["mm",m]||x<=1&&["h"]||x<r.h&&["hh",x]||J<=1&&["d"]||J<r.d&&["dd",J];return r.w!=null&&(Be=Be||Oe<=1&&["w"]||Oe<r.w&&["ww",Oe]),Be=Be||se<=1&&["M"]||se<r.M&&["MM",se]||Je<=1&&["y"]||["yy",Je],Be[2]=t,Be[3]=+e>0,Be[4]=n,eo.apply(null,Be)}function ro(e){return e===void 0?ze:typeof e=="function"?(ze=e,!0):!1}function no(e,t){return ct[e]===void 0?!1:t===void 0?ct[e]:(ct[e]=t,e==="s"&&(ct.ss=t-1),!0)}function ao(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=ct,s,l;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},ct,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),s=this.localeData(),l=to(this,!r,n,s),r&&(l=s.pastFuture(+this,l)),s.postformat(l)}var mr=Math.abs;function dt(e){return(e>0)-(e<0)||+e}function Ut(){if(!this.isValid())return this.localeData().invalidDate();var e=mr(this._milliseconds)/1e3,t=mr(this._days),r=mr(this._months),n,s,l,m,x=this.asSeconds(),J,se,Oe,Je;return x?(n=Ce(e/60),s=Ce(n/60),e%=60,n%=60,l=Ce(r/12),r%=12,m=e?e.toFixed(3).replace(/\.?0+$/,""):"",J=x<0?"-":"",se=dt(this._months)!==dt(x)?"-":"",Oe=dt(this._days)!==dt(x)?"-":"",Je=dt(this._milliseconds)!==dt(x)?"-":"",J+"P"+(l?se+l+"Y":"")+(r?se+r+"M":"")+(t?Oe+t+"D":"")+(s||n||e?"T":"")+(s?Je+s+"H":"")+(n?Je+n+"M":"")+(e?Je+m+"S":"")):"P0D"}var oe=Ft.prototype;oe.isValid=Qa,oe.abs=Oi,oe.add=$i,oe.subtract=Ri,oe.as=Ci,oe.asMilliseconds=on,oe.asSeconds=Li,oe.asMinutes=Fi,oe.asHours=Ei,oe.asDays=Wi,oe.asWeeks=Ai,oe.asMonths=Ni,oe.asQuarters=Ii,oe.asYears=Hi,oe.valueOf=Ui,oe._bubble=Pi,oe.clone=Gi,oe.get=Vi,oe.milliseconds=zi,oe.seconds=Ji,oe.minutes=Zi,oe.hours=qi,oe.days=Bi,oe.weeks=Ki,oe.months=Qi,oe.years=Xi,oe.humanize=ao,oe.toISOString=Ut,oe.toString=Ut,oe.toJSON=Ut,oe.locale=zr,oe.localeData=Zr,oe.toIsoString=W("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ut),oe.lang=Jr,u("X",0,0,"unix"),u("x",0,0,"valueOf"),O("x",xt),O("X",Sn),_e("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)}),_e("x",function(e,t,r){r._d=new Date(re(e))});//! moment.js
|