streamlit-nightly 1.45.2.dev20250520__py3-none-any.whl → 1.45.2.dev20250522__py3-none-any.whl
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.
- streamlit/config.py +18 -5
- streamlit/static/index.html +1 -1
- streamlit/static/static/js/{ErrorOutline.esm.CYnuXr-f.js → ErrorOutline.esm.CudC4cnG.js} +1 -1
- streamlit/static/static/js/{FileDownload.esm.CjkhjFuL.js → FileDownload.esm.qn_AyTtU.js} +1 -1
- streamlit/static/static/js/{FileHelper.CvjfDg2R.js → FileHelper.BWuvkxif.js} +1 -1
- streamlit/static/static/js/{FormClearHelper.DieF97Af.js → FormClearHelper.CHYZBZGR.js} +1 -1
- streamlit/static/static/js/{Hooks.B1Hx6FYs.js → Hooks.aQtyO1Es.js} +1 -1
- streamlit/static/static/js/{InputInstructions.B8AIK0e4.js → InputInstructions.u4jPRzPB.js} +1 -1
- streamlit/static/static/js/{ProgressBar.BVxh16au.js → ProgressBar.CG44OwiE.js} +1 -1
- streamlit/static/static/js/{RenderInPortalIfExists.DRyuwMyI.js → RenderInPortalIfExists.VXXdANh0.js} +1 -1
- streamlit/static/static/js/{Toolbar.3K8i84rX.js → Toolbar.e8AKFI20.js} +1 -1
- streamlit/static/static/js/{base-input.C1EhHiwL.js → base-input.D7ucWcOg.js} +1 -1
- streamlit/static/static/js/{checkbox.DQdrfkU_.js → checkbox.B9R-wnB7.js} +1 -1
- streamlit/static/static/js/{createSuper.DTmFPsVr.js → createSuper.C1ofFeAG.js} +1 -1
- streamlit/static/static/js/{data-grid-overlay-editor.CPiIqh8K.js → data-grid-overlay-editor.DtdlN29o.js} +1 -1
- streamlit/static/static/js/{downloader.C4KaNzxK.js → downloader.amlkJvLF.js} +1 -1
- streamlit/static/static/js/{es6.2nWKWyMO.js → es6.Bx1hXnS0.js} +2 -2
- streamlit/static/static/js/{iframeResizer.contentWindow.DOVaChyF.js → iframeResizer.contentWindow.DgHMAYbI.js} +1 -1
- streamlit/static/static/js/{index.BPnbqXpq.js → index.1mfAtb9U.js} +1 -1
- streamlit/static/static/js/{index.Bcm9abjs.js → index.7CBT51EL.js} +1 -1
- streamlit/static/static/js/{index.tW6ORFdt.js → index.B8eTe00V.js} +1 -1
- streamlit/static/static/js/{index.DZ1uB38i.js → index.BD_oIhGF.js} +1 -1
- streamlit/static/static/js/{index.mFs4Hj36.js → index.BWuE2_HE.js} +1 -1
- streamlit/static/static/js/{index.Csqhk1Jf.js → index.BaaFPBjg.js} +1 -1
- streamlit/static/static/js/{index.BzBFnPX6.js → index.BdDyuQmj.js} +1 -1
- streamlit/static/static/js/{index.InQfrcIt.js → index.Bdy3ZPdq.js} +1 -1
- streamlit/static/static/js/{index.CoUTSHXm.js → index.BgTPKzvI.js} +1 -1
- streamlit/static/static/js/{index.BZrvTwVD.js → index.BmoykTHR.js} +1 -1
- streamlit/static/static/js/{index.BT_313OI.js → index.Bn5K9Bd_.js} +1 -1
- streamlit/static/static/js/{index.CxAOY3A6.js → index.Bna1CU8i.js} +1 -1
- streamlit/static/static/js/{index.BNYIeVmg.js → index.Bon8EwWL.js} +1 -1
- streamlit/static/static/js/{index.C9p4my_G.js → index.BqEJFCLf.js} +1 -1
- streamlit/static/static/js/{index.VSUuNjWj.js → index.BtNqOUEO.js} +1 -1
- streamlit/static/static/js/{index.DSTk15fA.js → index.C0T_M4GD.js} +1 -1
- streamlit/static/static/js/{index.23pPuDjr.js → index.C3vs9CpH.js} +1 -1
- streamlit/static/static/js/{index.C6IpjREC.js → index.CMLTPeKt.js} +5 -5
- streamlit/static/static/js/index.CNh3_B-b.js +2 -0
- streamlit/static/static/js/{index.B-40SN8a.js → index.CQRM5-Cg.js} +1 -1
- streamlit/static/static/js/{index.DSqmiAEF.js → index.CYHkBSAi.js} +1 -1
- streamlit/static/static/js/{index.Cz7YuCRg.js → index.D08mj5Od.js} +1 -1
- streamlit/static/static/js/{index.CR5G6E_h.js → index.D5GJYvYX.js} +1 -1
- streamlit/static/static/js/{index.C5QL_Xc_.js → index.D97xl78q.js} +4 -4
- streamlit/static/static/js/{index.D-7j7tdp.js → index.DE1gGOzc.js} +1 -1
- streamlit/static/static/js/{index.Bh-zaqn6.js → index.DN4Mx7FE.js} +1 -1
- streamlit/static/static/js/{index.Bu_wWseL.js → index.DNwNuLWE.js} +1 -1
- streamlit/static/static/js/{index.DerK8bdM.js → index.DQ5EXoB_.js} +1 -1
- streamlit/static/static/js/{index.DucZyI7j.js → index.DUennCN8.js} +1 -1
- streamlit/static/static/js/{index.DBp4KGpt.js → index.DZf_kpi0.js} +1 -1
- streamlit/static/static/js/{index.DxkI2mS0.js → index.DiBs3xkT.js} +1 -1
- streamlit/static/static/js/{index.Cz8OuaJg.js → index.DlKdkJEq.js} +1 -1
- streamlit/static/static/js/{index.Dh4ndZnq.js → index.DxHtKYyS.js} +2 -2
- streamlit/static/static/js/{index.B0p5dBNu.js → index.N0sZYfFM.js} +1 -1
- streamlit/static/static/js/{index.jOftLS0z.js → index.Or4BfcX_.js} +1 -1
- streamlit/static/static/js/{index.CO8q3_vh.js → index.VzRep4kY.js} +1 -1
- streamlit/static/static/js/{index.BUb9IRAO.js → index.Yu7J_Dze.js} +1 -1
- streamlit/static/static/js/{input.ut_XFtNH.js → input.CRcaB9oP.js} +1 -1
- streamlit/static/static/js/{memory.DSoAMmQE.js → memory.F9D6Oyjj.js} +1 -1
- streamlit/static/static/js/{mergeWith.BY-TWxsL.js → mergeWith.BYtZfcmi.js} +1 -1
- streamlit/static/static/js/{number-overlay-editor.D5sSj_3j.js → number-overlay-editor.ClWmQbhW.js} +1 -1
- streamlit/static/static/js/{possibleConstructorReturn.BNBjNW5N.js → possibleConstructorReturn.BHxvTsgt.js} +1 -1
- streamlit/static/static/js/{sandbox.BXmhoUqL.js → sandbox.9HJbznr2.js} +1 -1
- streamlit/static/static/js/{textarea.qz8i3H9z.js → textarea.MC6GQYce.js} +1 -1
- streamlit/static/static/js/{timepicker.CZROecqL.js → timepicker.BJLSDuQc.js} +1 -1
- streamlit/static/static/js/{toConsumableArray.BoolbIbO.js → toConsumableArray.BxOYujrG.js} +1 -1
- streamlit/static/static/js/{uniqueId.DFKK3fms.js → uniqueId.nweXvThW.js} +1 -1
- streamlit/static/static/js/{useBasicWidgetState.QKx5EFIj.js → useBasicWidgetState.ByOGmtKn.js} +1 -1
- streamlit/static/static/js/{useOnInputChange.CpgAX3wz.js → useOnInputChange.oE3yUL9n.js} +1 -1
- streamlit/static/static/js/{withFullScreenWrapper.DrAgwq5e.js → withFullScreenWrapper.Cg-VqiDm.js} +1 -1
- streamlit/web/server/__init__.py +6 -2
- streamlit/web/server/component_request_handler.py +6 -2
- streamlit/web/server/media_file_handler.py +10 -4
- streamlit/web/server/routes.py +18 -8
- streamlit/web/server/server_util.py +10 -1
- streamlit/web/server/stats_request_handler.py +5 -3
- streamlit/web/server/upload_file_request_handler.py +4 -2
- {streamlit_nightly-1.45.2.dev20250520.dist-info → streamlit_nightly-1.45.2.dev20250522.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.45.2.dev20250520.dist-info → streamlit_nightly-1.45.2.dev20250522.dist-info}/RECORD +81 -81
- streamlit/static/static/js/index.C9oHDNvg.js +0 -2
- {streamlit_nightly-1.45.2.dev20250520.data → streamlit_nightly-1.45.2.dev20250522.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.45.2.dev20250520.dist-info → streamlit_nightly-1.45.2.dev20250522.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.45.2.dev20250520.dist-info → streamlit_nightly-1.45.2.dev20250522.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.45.2.dev20250520.dist-info → streamlit_nightly-1.45.2.dev20250522.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
import{aw as Ve,at as h,aU as p,g as Rt,cj as qt,bt as Qt,bZ as Bt,bU as jt,r as We,bu as Gt}from"./index.C5QL_Xc_.js";import{e as Xt,_ as M,b as T,a as D}from"./possibleConstructorReturn.BNBjNW5N.js";import{_ as O}from"./createSuper.DTmFPsVr.js";function C(o){if(o===null||o===!0||o===!1)return NaN;var a=Number(o);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}function d(o,a){if(a.length<o)throw new TypeError(o+" argument"+(o>1?"s":"")+" required, but only "+a.length+" present")}function f(o){d(1,arguments);var a=Object.prototype.toString.call(o);return o instanceof Date||Ve(o)==="object"&&a==="[object Date]"?new Date(o.getTime()):typeof o=="number"||a==="[object Number]"?new Date(o):((typeof o=="string"||a==="[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 qe(o,a){d(2,arguments);var r=f(o),t=C(a);return isNaN(t)?new Date(NaN):(t&&r.setDate(r.getDate()+t),r)}function _e(o,a){d(2,arguments);var r=f(o).getTime(),t=C(a);return new Date(r+t)}function zt(o,a){d(2,arguments);var r=C(a);return _e(o,r*1e3)}var Vt=6e4;function Zt(o,a){d(2,arguments);var r=C(a);return _e(o,r*Vt)}var Jt=36e5;function Kt(o,a){d(2,arguments);var r=C(a);return _e(o,r*Jt)}function er(o,a){d(2,arguments);var r=C(a),t=r*7;return qe(o,t)}function Oe(o,a){d(2,arguments);var r=f(o),t=C(a);if(isNaN(t))return new Date(NaN);if(!t)return r;var e=r.getDate(),n=new Date(r.getTime());n.setMonth(r.getMonth()+t+1,0);var i=n.getDate();return e>=i?n:(r.setFullYear(n.getFullYear(),n.getMonth(),e),r)}function st(o,a){d(2,arguments);var r=C(a);return Oe(o,r*12)}function tr(o,a){d(2,arguments);var r=f(o),t=f(a);return r.getFullYear()-t.getFullYear()}function he(o,a){d(2,arguments);var r=f(o),t=f(a),e=r.getTime()-t.getTime();return e<0?-1:e>0?1:e}function rr(o,a){d(2,arguments);var r=f(o),t=f(a),e=he(r,t),n=Math.abs(tr(r,t));r.setFullYear(1584),t.setFullYear(1584);var i=he(r,t)===-e,u=e*(n-Number(i));return u===0?0:u}function ar(o,a){d(2,arguments);var r=f(o),t=f(a),e=r.getFullYear()-t.getFullYear(),n=r.getMonth()-t.getMonth();return e*12+n}function Qe(o){d(1,arguments);var a=f(o);return a.setHours(23,59,59,999),a}function Be(o){d(1,arguments);var a=f(o),r=a.getMonth();return a.setFullYear(a.getFullYear(),r+1,0),a.setHours(23,59,59,999),a}function nr(o){d(1,arguments);var a=f(o);return Qe(a).getTime()===Be(a).getTime()}function Mt(o,a){d(2,arguments);var r=f(o),t=f(a),e=he(r,t),n=Math.abs(ar(r,t)),i;if(n<1)i=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-e*n);var u=he(r,t)===-e;nr(f(o))&&n===1&&he(o,t)===1&&(u=!1),i=e*(n-Number(u))}return i===0?0:i}var lt={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(a){return a<0?Math.ceil(a):Math.floor(a)}},ir="trunc";function me(o){return o?lt[o]:lt[ir]}function or(o,a,r){d(2,arguments);var t=Mt(o,a)/3;return me(void 0)(t)}function Pe(o){var a=new Date(Date.UTC(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()));return a.setUTCFullYear(o.getFullYear()),o.getTime()-a.getTime()}function ie(o){d(1,arguments);var a=f(o);return a.setHours(0,0,0,0),a}var ur=864e5;function sr(o,a){d(2,arguments);var r=ie(o),t=ie(a),e=r.getTime()-Pe(r),n=t.getTime()-Pe(t);return Math.round((e-n)/ur)}function ct(o,a){var r=o.getFullYear()-a.getFullYear()||o.getMonth()-a.getMonth()||o.getDate()-a.getDate()||o.getHours()-a.getHours()||o.getMinutes()-a.getMinutes()||o.getSeconds()-a.getSeconds()||o.getMilliseconds()-a.getMilliseconds();return r<0?-1:r>0?1:r}function Ot(o,a){d(2,arguments);var r=f(o),t=f(a),e=ct(r,t),n=Math.abs(sr(r,t));r.setDate(r.getDate()-e*n);var i=+(ct(r,t)===-e),u=e*(n-i);return u===0?0:u}function lr(o,a,r){d(2,arguments);var t=Ot(o,a)/7;return me(void 0)(t)}var Ye=6e4,Ee=36e5,cr=1e3;function Ne(o,a){return d(2,arguments),f(o).getTime()-f(a).getTime()}function dr(o,a,r){d(2,arguments);var t=Ne(o,a)/Ee;return me(void 0)(t)}function fr(o,a,r){d(2,arguments);var t=Ne(o,a)/Ye;return me(void 0)(t)}function vr(o,a,r){d(2,arguments);var t=Ne(o,a)/1e3;return me(void 0)(t)}function hr(o,a){var r;d(1,arguments);var t=o||{},e=f(t.start),n=f(t.end),i=n.getTime();if(!(e.getTime()<=i))throw new RangeError("Invalid interval");var u=[],s=e;s.setHours(0,0,0,0);var l=Number((r=void 0)!==null&&r!==void 0?r:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=i;)u.push(f(s)),s.setDate(s.getDate()+l),s.setHours(0,0,0,0);return u}var mr={};function J(){return mr}function Ie(o,a){var r,t,e,n,i,u,s,l;d(1,arguments);var c=J(),v=C((r=(t=(e=(n=a==null?void 0:a.weekStartsOn)!==null&&n!==void 0?n:a==null||(i=a.locale)===null||i===void 0||(u=i.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&e!==void 0?e:c.weekStartsOn)!==null&&t!==void 0?t:(s=c.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=f(o),w=g.getDay(),y=(w<v?-7:0)+6-(w-v);return g.setDate(g.getDate()+y),g.setHours(23,59,59,999),g}function Ae(o){d(1,arguments);var a=f(o),r=a.getFullYear();return a.setFullYear(r+1,0,0),a.setHours(23,59,59,999),a}function pr(o){return d(1,arguments),o instanceof Date||Ve(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}function Pt(o){if(d(1,arguments),!pr(o)&&typeof o!="number")return!1;var a=f(o);return!isNaN(Number(a))}function Ct(o,a){d(2,arguments);var r=C(a);return _e(o,-r)}var gr=864e5;function wr(o){d(1,arguments);var a=f(o),r=a.getTime();a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0);var t=a.getTime(),e=r-t;return Math.floor(e/gr)+1}function oe(o){d(1,arguments);var a=1,r=f(o),t=r.getUTCDay(),e=(t<a?7:0)+t-a;return r.setUTCDate(r.getUTCDate()-e),r.setUTCHours(0,0,0,0),r}function xt(o){d(1,arguments);var a=f(o),r=a.getUTCFullYear(),t=new Date(0);t.setUTCFullYear(r+1,0,4),t.setUTCHours(0,0,0,0);var e=oe(t),n=new Date(0);n.setUTCFullYear(r,0,4),n.setUTCHours(0,0,0,0);var i=oe(n);return a.getTime()>=e.getTime()?r+1:a.getTime()>=i.getTime()?r:r-1}function yr(o){d(1,arguments);var a=xt(o),r=new Date(0);r.setUTCFullYear(a,0,4),r.setUTCHours(0,0,0,0);var t=oe(r);return t}var br=6048e5;function kt(o){d(1,arguments);var a=f(o),r=oe(a).getTime()-yr(a).getTime();return Math.round(r/br)+1}function re(o,a){var r,t,e,n,i,u,s,l;d(1,arguments);var c=J(),v=C((r=(t=(e=(n=a==null?void 0:a.weekStartsOn)!==null&&n!==void 0?n:a==null||(i=a.locale)===null||i===void 0||(u=i.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&e!==void 0?e:c.weekStartsOn)!==null&&t!==void 0?t:(s=c.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=f(o),w=g.getUTCDay(),y=(w<v?7:0)+w-v;return g.setUTCDate(g.getUTCDate()-y),g.setUTCHours(0,0,0,0),g}function Ze(o,a){var r,t,e,n,i,u,s,l;d(1,arguments);var c=f(o),v=c.getUTCFullYear(),g=J(),w=C((r=(t=(e=(n=a==null?void 0:a.firstWeekContainsDate)!==null&&n!==void 0?n:a==null||(i=a.locale)===null||i===void 0||(u=i.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&e!==void 0?e:g.firstWeekContainsDate)!==null&&t!==void 0?t:(s=g.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(w>=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(v+1,0,w),y.setUTCHours(0,0,0,0);var E=re(y,a),_=new Date(0);_.setUTCFullYear(v,0,w),_.setUTCHours(0,0,0,0);var S=re(_,a);return c.getTime()>=E.getTime()?v+1:c.getTime()>=S.getTime()?v:v-1}function Tr(o,a){var r,t,e,n,i,u,s,l;d(1,arguments);var c=J(),v=C((r=(t=(e=(n=a==null?void 0:a.firstWeekContainsDate)!==null&&n!==void 0?n:a==null||(i=a.locale)===null||i===void 0||(u=i.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&e!==void 0?e:c.firstWeekContainsDate)!==null&&t!==void 0?t:(s=c.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),g=Ze(o,a),w=new Date(0);w.setUTCFullYear(g,0,v),w.setUTCHours(0,0,0,0);var y=re(w,a);return y}var Dr=6048e5;function _t(o,a){d(1,arguments);var r=f(o),t=re(r,a).getTime()-Tr(r,a).getTime();return Math.round(t/Dr)+1}function b(o,a){for(var r=o<0?"-":"",t=Math.abs(o).toString();t.length<a;)t="0"+t;return r+t}var Z={y:function(a,r){var t=a.getUTCFullYear(),e=t>0?t:1-t;return b(r==="yy"?e%100:e,r.length)},M:function(a,r){var t=a.getUTCMonth();return r==="M"?String(t+1):b(t+1,2)},d:function(a,r){return b(a.getUTCDate(),r.length)},a:function(a,r){var t=a.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h:function(a,r){return b(a.getUTCHours()%12||12,r.length)},H:function(a,r){return b(a.getUTCHours(),r.length)},m:function(a,r){return b(a.getUTCMinutes(),r.length)},s:function(a,r){return b(a.getUTCSeconds(),r.length)},S:function(a,r){var t=r.length,e=a.getUTCMilliseconds(),n=Math.floor(e*Math.pow(10,t-3));return b(n,r.length)}},ae={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Mr={G:function(a,r,t){var e=a.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return t.era(e,{width:"abbreviated"});case"GGGGG":return t.era(e,{width:"narrow"});case"GGGG":default:return t.era(e,{width:"wide"})}},y:function(a,r,t){if(r==="yo"){var e=a.getUTCFullYear(),n=e>0?e:1-e;return t.ordinalNumber(n,{unit:"year"})}return Z.y(a,r)},Y:function(a,r,t,e){var n=Ze(a,e),i=n>0?n:1-n;if(r==="YY"){var u=i%100;return b(u,2)}return r==="Yo"?t.ordinalNumber(i,{unit:"year"}):b(i,r.length)},R:function(a,r){var t=xt(a);return b(t,r.length)},u:function(a,r){var t=a.getUTCFullYear();return b(t,r.length)},Q:function(a,r,t){var e=Math.ceil((a.getUTCMonth()+1)/3);switch(r){case"Q":return String(e);case"QQ":return b(e,2);case"Qo":return t.ordinalNumber(e,{unit:"quarter"});case"QQQ":return t.quarter(e,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(e,{width:"wide",context:"formatting"})}},q:function(a,r,t){var e=Math.ceil((a.getUTCMonth()+1)/3);switch(r){case"q":return String(e);case"qq":return b(e,2);case"qo":return t.ordinalNumber(e,{unit:"quarter"});case"qqq":return t.quarter(e,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(e,{width:"wide",context:"standalone"})}},M:function(a,r,t){var e=a.getUTCMonth();switch(r){case"M":case"MM":return Z.M(a,r);case"Mo":return t.ordinalNumber(e+1,{unit:"month"});case"MMM":return t.month(e,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(e,{width:"wide",context:"formatting"})}},L:function(a,r,t){var e=a.getUTCMonth();switch(r){case"L":return String(e+1);case"LL":return b(e+1,2);case"Lo":return t.ordinalNumber(e+1,{unit:"month"});case"LLL":return t.month(e,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(e,{width:"wide",context:"standalone"})}},w:function(a,r,t,e){var n=_t(a,e);return r==="wo"?t.ordinalNumber(n,{unit:"week"}):b(n,r.length)},I:function(a,r,t){var e=kt(a);return r==="Io"?t.ordinalNumber(e,{unit:"week"}):b(e,r.length)},d:function(a,r,t){return r==="do"?t.ordinalNumber(a.getUTCDate(),{unit:"date"}):Z.d(a,r)},D:function(a,r,t){var e=wr(a);return r==="Do"?t.ordinalNumber(e,{unit:"dayOfYear"}):b(e,r.length)},E:function(a,r,t){var e=a.getUTCDay();switch(r){case"E":case"EE":case"EEE":return t.day(e,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(e,{width:"short",context:"formatting"});case"EEEE":default:return t.day(e,{width:"wide",context:"formatting"})}},e:function(a,r,t,e){var n=a.getUTCDay(),i=(n-e.weekStartsOn+8)%7||7;switch(r){case"e":return String(i);case"ee":return b(i,2);case"eo":return t.ordinalNumber(i,{unit:"day"});case"eee":return t.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(n,{width:"short",context:"formatting"});case"eeee":default:return t.day(n,{width:"wide",context:"formatting"})}},c:function(a,r,t,e){var n=a.getUTCDay(),i=(n-e.weekStartsOn+8)%7||7;switch(r){case"c":return String(i);case"cc":return b(i,r.length);case"co":return t.ordinalNumber(i,{unit:"day"});case"ccc":return t.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(n,{width:"narrow",context:"standalone"});case"cccccc":return t.day(n,{width:"short",context:"standalone"});case"cccc":default:return t.day(n,{width:"wide",context:"standalone"})}},i:function(a,r,t){var e=a.getUTCDay(),n=e===0?7:e;switch(r){case"i":return String(n);case"ii":return b(n,r.length);case"io":return t.ordinalNumber(n,{unit:"day"});case"iii":return t.day(e,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(e,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(e,{width:"short",context:"formatting"});case"iiii":default:return t.day(e,{width:"wide",context:"formatting"})}},a:function(a,r,t){var e=a.getUTCHours(),n=e/12>=1?"pm":"am";switch(r){case"a":case"aa":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(a,r,t){var e=a.getUTCHours(),n;switch(e===12?n=ae.noon:e===0?n=ae.midnight:n=e/12>=1?"pm":"am",r){case"b":case"bb":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(a,r,t){var e=a.getUTCHours(),n;switch(e>=17?n=ae.evening:e>=12?n=ae.afternoon:e>=4?n=ae.morning:n=ae.night,r){case"B":case"BB":case"BBB":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(a,r,t){if(r==="ho"){var e=a.getUTCHours()%12;return e===0&&(e=12),t.ordinalNumber(e,{unit:"hour"})}return Z.h(a,r)},H:function(a,r,t){return r==="Ho"?t.ordinalNumber(a.getUTCHours(),{unit:"hour"}):Z.H(a,r)},K:function(a,r,t){var e=a.getUTCHours()%12;return r==="Ko"?t.ordinalNumber(e,{unit:"hour"}):b(e,r.length)},k:function(a,r,t){var e=a.getUTCHours();return e===0&&(e=24),r==="ko"?t.ordinalNumber(e,{unit:"hour"}):b(e,r.length)},m:function(a,r,t){return r==="mo"?t.ordinalNumber(a.getUTCMinutes(),{unit:"minute"}):Z.m(a,r)},s:function(a,r,t){return r==="so"?t.ordinalNumber(a.getUTCSeconds(),{unit:"second"}):Z.s(a,r)},S:function(a,r){return Z.S(a,r)},X:function(a,r,t,e){var n=e._originalDate||a,i=n.getTimezoneOffset();if(i===0)return"Z";switch(r){case"X":return ft(i);case"XXXX":case"XX":return te(i);case"XXXXX":case"XXX":default:return te(i,":")}},x:function(a,r,t,e){var n=e._originalDate||a,i=n.getTimezoneOffset();switch(r){case"x":return ft(i);case"xxxx":case"xx":return te(i);case"xxxxx":case"xxx":default:return te(i,":")}},O:function(a,r,t,e){var n=e._originalDate||a,i=n.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+dt(i,":");case"OOOO":default:return"GMT"+te(i,":")}},z:function(a,r,t,e){var n=e._originalDate||a,i=n.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+dt(i,":");case"zzzz":default:return"GMT"+te(i,":")}},t:function(a,r,t,e){var n=e._originalDate||a,i=Math.floor(n.getTime()/1e3);return b(i,r.length)},T:function(a,r,t,e){var n=e._originalDate||a,i=n.getTime();return b(i,r.length)}};function dt(o,a){var r=o>0?"-":"+",t=Math.abs(o),e=Math.floor(t/60),n=t%60;if(n===0)return r+String(e);var i=a;return r+String(e)+i+b(n,2)}function ft(o,a){if(o%60===0){var r=o>0?"-":"+";return r+b(Math.abs(o)/60,2)}return te(o,a)}function te(o,a){var r=a||"",t=o>0?"-":"+",e=Math.abs(o),n=b(Math.floor(e/60),2),i=b(e%60,2);return t+n+r+i}var vt=function(a,r){switch(a){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},Yt=function(a,r){switch(a){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},Or=function(a,r){var t=a.match(/(P+)(p+)?/)||[],e=t[1],n=t[2];if(!n)return vt(a,r);var i;switch(e){case"P":i=r.dateTime({width:"short"});break;case"PP":i=r.dateTime({width:"medium"});break;case"PPP":i=r.dateTime({width:"long"});break;case"PPPP":default:i=r.dateTime({width:"full"});break}return i.replace("{{date}}",vt(e,r)).replace("{{time}}",Yt(n,r))},je={p:Yt,P:Or},Pr=["D","DD"],Cr=["YY","YYYY"];function Et(o){return Pr.indexOf(o)!==-1}function Nt(o){return Cr.indexOf(o)!==-1}function Ce(o,a,r){if(o==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(a,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(a,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(a,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(a,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var xr={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"}},kr=function(a,r,t){var e,n=xr[a];return typeof n=="string"?e=n:r===1?e=n.one:e=n.other.replace("{{count}}",r.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+e:e+" ago":e};function $e(o){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=a.width?String(a.width):o.defaultWidth,t=o.formats[r]||o.formats[o.defaultWidth];return t}}var _r={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Yr={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Er={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Nr={date:$e({formats:_r,defaultWidth:"full"}),time:$e({formats:Yr,defaultWidth:"full"}),dateTime:$e({formats:Er,defaultWidth:"full"})},Ur={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Sr=function(a,r,t,e){return Ur[a]};function de(o){return function(a,r){var t=r!=null&&r.context?String(r.context):"standalone",e;if(t==="formatting"&&o.formattingValues){var n=o.defaultFormattingWidth||o.defaultWidth,i=r!=null&&r.width?String(r.width):n;e=o.formattingValues[i]||o.formattingValues[n]}else{var u=o.defaultWidth,s=r!=null&&r.width?String(r.width):o.defaultWidth;e=o.values[s]||o.values[u]}var l=o.argumentCallback?o.argumentCallback(a):a;return e[l]}}var Hr={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Wr={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ir={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"]},Ar={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"]},$r={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"}},Lr={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"}},Fr=function(a,r){var t=Number(a),e=t%100;if(e>20||e<10)switch(e%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},Rr={ordinalNumber:Fr,era:de({values:Hr,defaultWidth:"wide"}),quarter:de({values:Wr,defaultWidth:"wide",argumentCallback:function(a){return a-1}}),month:de({values:Ir,defaultWidth:"wide"}),day:de({values:Ar,defaultWidth:"wide"}),dayPeriod:de({values:$r,defaultWidth:"wide",formattingValues:Lr,defaultFormattingWidth:"wide"})};function fe(o){return function(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=r.width,e=t&&o.matchPatterns[t]||o.matchPatterns[o.defaultMatchWidth],n=a.match(e);if(!n)return null;var i=n[0],u=t&&o.parsePatterns[t]||o.parsePatterns[o.defaultParseWidth],s=Array.isArray(u)?Qr(u,function(v){return v.test(i)}):qr(u,function(v){return v.test(i)}),l;l=o.valueCallback?o.valueCallback(s):s,l=r.valueCallback?r.valueCallback(l):l;var c=a.slice(i.length);return{value:l,rest:c}}}function qr(o,a){for(var r in o)if(o.hasOwnProperty(r)&&a(o[r]))return r}function Qr(o,a){for(var r=0;r<o.length;r++)if(a(o[r]))return r}function Br(o){return function(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=a.match(o.matchPattern);if(!t)return null;var e=t[0],n=a.match(o.parsePattern);if(!n)return null;var i=o.valueCallback?o.valueCallback(n[0]):n[0];i=r.valueCallback?r.valueCallback(i):i;var u=a.slice(e.length);return{value:i,rest:u}}}var jr=/^(\d+)(th|st|nd|rd)?/i,Gr=/\d+/i,Xr={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},zr={any:[/^b/i,/^(a|c)/i]},Vr={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Zr={any:[/1/i,/2/i,/3/i,/4/i]},Jr={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},Kr={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]},ea={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},ta={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]},ra={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},aa={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}},na={ordinalNumber:Br({matchPattern:jr,parsePattern:Gr,valueCallback:function(a){return parseInt(a,10)}}),era:fe({matchPatterns:Xr,defaultMatchWidth:"wide",parsePatterns:zr,defaultParseWidth:"any"}),quarter:fe({matchPatterns:Vr,defaultMatchWidth:"wide",parsePatterns:Zr,defaultParseWidth:"any",valueCallback:function(a){return a+1}}),month:fe({matchPatterns:Jr,defaultMatchWidth:"wide",parsePatterns:Kr,defaultParseWidth:"any"}),day:fe({matchPatterns:ea,defaultMatchWidth:"wide",parsePatterns:ta,defaultParseWidth:"any"}),dayPeriod:fe({matchPatterns:ra,defaultMatchWidth:"any",parsePatterns:aa,defaultParseWidth:"any"})},Je={code:"en-US",formatDistance:kr,formatLong:Nr,formatRelative:Sr,localize:Rr,match:na,options:{weekStartsOn:0,firstWeekContainsDate:1}},ia=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,oa=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ua=/^'([^]*?)'?$/,sa=/''/g,la=/[a-zA-Z]/;function ca(o,a,r){var t,e,n,i,u,s,l,c,v,g,w,y,E,_,S,A,B,L;d(2,arguments);var K=String(a),I=J(),F=(t=(e=r==null?void 0:r.locale)!==null&&e!==void 0?e:I.locale)!==null&&t!==void 0?t:Je,X=C((n=(i=(u=(s=r==null?void 0:r.firstWeekContainsDate)!==null&&s!==void 0?s:r==null||(l=r.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&u!==void 0?u:I.firstWeekContainsDate)!==null&&i!==void 0?i:(v=I.locale)===null||v===void 0||(g=v.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(X>=1&&X<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var z=C((w=(y=(E=(_=r==null?void 0:r.weekStartsOn)!==null&&_!==void 0?_:r==null||(S=r.locale)===null||S===void 0||(A=S.options)===null||A===void 0?void 0:A.weekStartsOn)!==null&&E!==void 0?E:I.weekStartsOn)!==null&&y!==void 0?y:(B=I.locale)===null||B===void 0||(L=B.options)===null||L===void 0?void 0:L.weekStartsOn)!==null&&w!==void 0?w:0);if(!(z>=0&&z<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!F.localize)throw new RangeError("locale must contain localize property");if(!F.formatLong)throw new RangeError("locale must contain formatLong property");var V=f(o);if(!Pt(V))throw new RangeError("Invalid time value");var ue=Pe(V),se=Ct(V,ue),le={firstWeekContainsDate:X,weekStartsOn:z,locale:F,_originalDate:V},Ue=K.match(oa).map(function(W){var $=W[0];if($==="p"||$==="P"){var ee=je[$];return ee(W,F.formatLong)}return W}).join("").match(ia).map(function(W){if(W==="''")return"'";var $=W[0];if($==="'")return da(W);var ee=Mr[$];if(ee)return!(r!=null&&r.useAdditionalWeekYearTokens)&&Nt(W)&&Ce(W,a,String(o)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Et(W)&&Ce(W,a,String(o)),ee(se,W,F.localize,le);if($.match(la))throw new RangeError("Format string contains an unescaped latin alphabet character `"+$+"`");return W}).join("");return Ue}function da(o){var a=o.match(ua);return a?a[1].replace(sa,"'"):o}function fa(o){d(1,arguments);var a=f(o),r=a.getDate();return r}function va(o){d(1,arguments);var a=f(o),r=a.getDay();return r}function Ut(o){d(1,arguments);var a=f(o),r=a.getFullYear(),t=a.getMonth(),e=new Date(0);return e.setFullYear(r,t+1,0),e.setHours(0,0,0,0),e.getDate()}function ha(o){d(1,arguments);var a=f(o),r=a.getHours();return r}function ma(o){d(1,arguments);var a=f(o),r=a.getMinutes();return r}function pa(o){d(1,arguments);var a=f(o),r=a.getMonth();return r}function ga(o){d(1,arguments);var a=f(o),r=a.getSeconds();return r}function wa(o){return d(1,arguments),f(o).getFullYear()}function ye(o,a){d(2,arguments);var r=f(o),t=f(a);return r.getTime()>t.getTime()}function ne(o,a){d(2,arguments);var r=f(o),t=f(a);return r.getTime()<t.getTime()}function ya(o,a){d(2,arguments);var r=f(o),t=f(a);return r.getTime()===t.getTime()}function ba(o,a){d(2,arguments);var r=ie(o),t=ie(a);return r.getTime()===t.getTime()}function Ta(o,a){d(2,arguments);var r=f(o),t=f(a);return r.getFullYear()===t.getFullYear()}function Da(o,a){d(2,arguments);var r=f(o),t=f(a);return r.getFullYear()===t.getFullYear()&&r.getMonth()===t.getMonth()}function ht(o){d(1,arguments);var a=f(o);return a.setMinutes(0,0,0),a}function Ma(o,a){d(2,arguments);var r=ht(o),t=ht(a);return r.getTime()===t.getTime()}function mt(o,a){var r=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!r){if(Array.isArray(o)||(r=Xt(o))||a){r&&(o=r);var t=0,e=function(){};return{s:e,n:function(){return t>=o.length?{done:!0}:{done:!1,value:o[t++]}},e:function(l){throw l},f:e}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
1
|
+
import{aw as Ve,at as h,aU as p,g as Rt,cj as qt,bt as Qt,bZ as Bt,bU as jt,r as We,bu as Gt}from"./index.D97xl78q.js";import{e as Xt,_ as M,b as T,a as D}from"./possibleConstructorReturn.BHxvTsgt.js";import{_ as O}from"./createSuper.C1ofFeAG.js";function C(o){if(o===null||o===!0||o===!1)return NaN;var a=Number(o);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}function d(o,a){if(a.length<o)throw new TypeError(o+" argument"+(o>1?"s":"")+" required, but only "+a.length+" present")}function f(o){d(1,arguments);var a=Object.prototype.toString.call(o);return o instanceof Date||Ve(o)==="object"&&a==="[object Date]"?new Date(o.getTime()):typeof o=="number"||a==="[object Number]"?new Date(o):((typeof o=="string"||a==="[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 qe(o,a){d(2,arguments);var r=f(o),t=C(a);return isNaN(t)?new Date(NaN):(t&&r.setDate(r.getDate()+t),r)}function _e(o,a){d(2,arguments);var r=f(o).getTime(),t=C(a);return new Date(r+t)}function zt(o,a){d(2,arguments);var r=C(a);return _e(o,r*1e3)}var Vt=6e4;function Zt(o,a){d(2,arguments);var r=C(a);return _e(o,r*Vt)}var Jt=36e5;function Kt(o,a){d(2,arguments);var r=C(a);return _e(o,r*Jt)}function er(o,a){d(2,arguments);var r=C(a),t=r*7;return qe(o,t)}function Oe(o,a){d(2,arguments);var r=f(o),t=C(a);if(isNaN(t))return new Date(NaN);if(!t)return r;var e=r.getDate(),n=new Date(r.getTime());n.setMonth(r.getMonth()+t+1,0);var i=n.getDate();return e>=i?n:(r.setFullYear(n.getFullYear(),n.getMonth(),e),r)}function st(o,a){d(2,arguments);var r=C(a);return Oe(o,r*12)}function tr(o,a){d(2,arguments);var r=f(o),t=f(a);return r.getFullYear()-t.getFullYear()}function he(o,a){d(2,arguments);var r=f(o),t=f(a),e=r.getTime()-t.getTime();return e<0?-1:e>0?1:e}function rr(o,a){d(2,arguments);var r=f(o),t=f(a),e=he(r,t),n=Math.abs(tr(r,t));r.setFullYear(1584),t.setFullYear(1584);var i=he(r,t)===-e,u=e*(n-Number(i));return u===0?0:u}function ar(o,a){d(2,arguments);var r=f(o),t=f(a),e=r.getFullYear()-t.getFullYear(),n=r.getMonth()-t.getMonth();return e*12+n}function Qe(o){d(1,arguments);var a=f(o);return a.setHours(23,59,59,999),a}function Be(o){d(1,arguments);var a=f(o),r=a.getMonth();return a.setFullYear(a.getFullYear(),r+1,0),a.setHours(23,59,59,999),a}function nr(o){d(1,arguments);var a=f(o);return Qe(a).getTime()===Be(a).getTime()}function Mt(o,a){d(2,arguments);var r=f(o),t=f(a),e=he(r,t),n=Math.abs(ar(r,t)),i;if(n<1)i=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-e*n);var u=he(r,t)===-e;nr(f(o))&&n===1&&he(o,t)===1&&(u=!1),i=e*(n-Number(u))}return i===0?0:i}var lt={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(a){return a<0?Math.ceil(a):Math.floor(a)}},ir="trunc";function me(o){return o?lt[o]:lt[ir]}function or(o,a,r){d(2,arguments);var t=Mt(o,a)/3;return me(void 0)(t)}function Pe(o){var a=new Date(Date.UTC(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()));return a.setUTCFullYear(o.getFullYear()),o.getTime()-a.getTime()}function ie(o){d(1,arguments);var a=f(o);return a.setHours(0,0,0,0),a}var ur=864e5;function sr(o,a){d(2,arguments);var r=ie(o),t=ie(a),e=r.getTime()-Pe(r),n=t.getTime()-Pe(t);return Math.round((e-n)/ur)}function ct(o,a){var r=o.getFullYear()-a.getFullYear()||o.getMonth()-a.getMonth()||o.getDate()-a.getDate()||o.getHours()-a.getHours()||o.getMinutes()-a.getMinutes()||o.getSeconds()-a.getSeconds()||o.getMilliseconds()-a.getMilliseconds();return r<0?-1:r>0?1:r}function Ot(o,a){d(2,arguments);var r=f(o),t=f(a),e=ct(r,t),n=Math.abs(sr(r,t));r.setDate(r.getDate()-e*n);var i=+(ct(r,t)===-e),u=e*(n-i);return u===0?0:u}function lr(o,a,r){d(2,arguments);var t=Ot(o,a)/7;return me(void 0)(t)}var Ye=6e4,Ee=36e5,cr=1e3;function Ne(o,a){return d(2,arguments),f(o).getTime()-f(a).getTime()}function dr(o,a,r){d(2,arguments);var t=Ne(o,a)/Ee;return me(void 0)(t)}function fr(o,a,r){d(2,arguments);var t=Ne(o,a)/Ye;return me(void 0)(t)}function vr(o,a,r){d(2,arguments);var t=Ne(o,a)/1e3;return me(void 0)(t)}function hr(o,a){var r;d(1,arguments);var t=o||{},e=f(t.start),n=f(t.end),i=n.getTime();if(!(e.getTime()<=i))throw new RangeError("Invalid interval");var u=[],s=e;s.setHours(0,0,0,0);var l=Number((r=void 0)!==null&&r!==void 0?r:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=i;)u.push(f(s)),s.setDate(s.getDate()+l),s.setHours(0,0,0,0);return u}var mr={};function J(){return mr}function Ie(o,a){var r,t,e,n,i,u,s,l;d(1,arguments);var c=J(),v=C((r=(t=(e=(n=a==null?void 0:a.weekStartsOn)!==null&&n!==void 0?n:a==null||(i=a.locale)===null||i===void 0||(u=i.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&e!==void 0?e:c.weekStartsOn)!==null&&t!==void 0?t:(s=c.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=f(o),w=g.getDay(),y=(w<v?-7:0)+6-(w-v);return g.setDate(g.getDate()+y),g.setHours(23,59,59,999),g}function Ae(o){d(1,arguments);var a=f(o),r=a.getFullYear();return a.setFullYear(r+1,0,0),a.setHours(23,59,59,999),a}function pr(o){return d(1,arguments),o instanceof Date||Ve(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}function Pt(o){if(d(1,arguments),!pr(o)&&typeof o!="number")return!1;var a=f(o);return!isNaN(Number(a))}function Ct(o,a){d(2,arguments);var r=C(a);return _e(o,-r)}var gr=864e5;function wr(o){d(1,arguments);var a=f(o),r=a.getTime();a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0);var t=a.getTime(),e=r-t;return Math.floor(e/gr)+1}function oe(o){d(1,arguments);var a=1,r=f(o),t=r.getUTCDay(),e=(t<a?7:0)+t-a;return r.setUTCDate(r.getUTCDate()-e),r.setUTCHours(0,0,0,0),r}function xt(o){d(1,arguments);var a=f(o),r=a.getUTCFullYear(),t=new Date(0);t.setUTCFullYear(r+1,0,4),t.setUTCHours(0,0,0,0);var e=oe(t),n=new Date(0);n.setUTCFullYear(r,0,4),n.setUTCHours(0,0,0,0);var i=oe(n);return a.getTime()>=e.getTime()?r+1:a.getTime()>=i.getTime()?r:r-1}function yr(o){d(1,arguments);var a=xt(o),r=new Date(0);r.setUTCFullYear(a,0,4),r.setUTCHours(0,0,0,0);var t=oe(r);return t}var br=6048e5;function kt(o){d(1,arguments);var a=f(o),r=oe(a).getTime()-yr(a).getTime();return Math.round(r/br)+1}function re(o,a){var r,t,e,n,i,u,s,l;d(1,arguments);var c=J(),v=C((r=(t=(e=(n=a==null?void 0:a.weekStartsOn)!==null&&n!==void 0?n:a==null||(i=a.locale)===null||i===void 0||(u=i.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&e!==void 0?e:c.weekStartsOn)!==null&&t!==void 0?t:(s=c.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=f(o),w=g.getUTCDay(),y=(w<v?7:0)+w-v;return g.setUTCDate(g.getUTCDate()-y),g.setUTCHours(0,0,0,0),g}function Ze(o,a){var r,t,e,n,i,u,s,l;d(1,arguments);var c=f(o),v=c.getUTCFullYear(),g=J(),w=C((r=(t=(e=(n=a==null?void 0:a.firstWeekContainsDate)!==null&&n!==void 0?n:a==null||(i=a.locale)===null||i===void 0||(u=i.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&e!==void 0?e:g.firstWeekContainsDate)!==null&&t!==void 0?t:(s=g.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(w>=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(v+1,0,w),y.setUTCHours(0,0,0,0);var E=re(y,a),_=new Date(0);_.setUTCFullYear(v,0,w),_.setUTCHours(0,0,0,0);var S=re(_,a);return c.getTime()>=E.getTime()?v+1:c.getTime()>=S.getTime()?v:v-1}function Tr(o,a){var r,t,e,n,i,u,s,l;d(1,arguments);var c=J(),v=C((r=(t=(e=(n=a==null?void 0:a.firstWeekContainsDate)!==null&&n!==void 0?n:a==null||(i=a.locale)===null||i===void 0||(u=i.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&e!==void 0?e:c.firstWeekContainsDate)!==null&&t!==void 0?t:(s=c.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),g=Ze(o,a),w=new Date(0);w.setUTCFullYear(g,0,v),w.setUTCHours(0,0,0,0);var y=re(w,a);return y}var Dr=6048e5;function _t(o,a){d(1,arguments);var r=f(o),t=re(r,a).getTime()-Tr(r,a).getTime();return Math.round(t/Dr)+1}function b(o,a){for(var r=o<0?"-":"",t=Math.abs(o).toString();t.length<a;)t="0"+t;return r+t}var Z={y:function(a,r){var t=a.getUTCFullYear(),e=t>0?t:1-t;return b(r==="yy"?e%100:e,r.length)},M:function(a,r){var t=a.getUTCMonth();return r==="M"?String(t+1):b(t+1,2)},d:function(a,r){return b(a.getUTCDate(),r.length)},a:function(a,r){var t=a.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h:function(a,r){return b(a.getUTCHours()%12||12,r.length)},H:function(a,r){return b(a.getUTCHours(),r.length)},m:function(a,r){return b(a.getUTCMinutes(),r.length)},s:function(a,r){return b(a.getUTCSeconds(),r.length)},S:function(a,r){var t=r.length,e=a.getUTCMilliseconds(),n=Math.floor(e*Math.pow(10,t-3));return b(n,r.length)}},ae={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Mr={G:function(a,r,t){var e=a.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return t.era(e,{width:"abbreviated"});case"GGGGG":return t.era(e,{width:"narrow"});case"GGGG":default:return t.era(e,{width:"wide"})}},y:function(a,r,t){if(r==="yo"){var e=a.getUTCFullYear(),n=e>0?e:1-e;return t.ordinalNumber(n,{unit:"year"})}return Z.y(a,r)},Y:function(a,r,t,e){var n=Ze(a,e),i=n>0?n:1-n;if(r==="YY"){var u=i%100;return b(u,2)}return r==="Yo"?t.ordinalNumber(i,{unit:"year"}):b(i,r.length)},R:function(a,r){var t=xt(a);return b(t,r.length)},u:function(a,r){var t=a.getUTCFullYear();return b(t,r.length)},Q:function(a,r,t){var e=Math.ceil((a.getUTCMonth()+1)/3);switch(r){case"Q":return String(e);case"QQ":return b(e,2);case"Qo":return t.ordinalNumber(e,{unit:"quarter"});case"QQQ":return t.quarter(e,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(e,{width:"wide",context:"formatting"})}},q:function(a,r,t){var e=Math.ceil((a.getUTCMonth()+1)/3);switch(r){case"q":return String(e);case"qq":return b(e,2);case"qo":return t.ordinalNumber(e,{unit:"quarter"});case"qqq":return t.quarter(e,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(e,{width:"wide",context:"standalone"})}},M:function(a,r,t){var e=a.getUTCMonth();switch(r){case"M":case"MM":return Z.M(a,r);case"Mo":return t.ordinalNumber(e+1,{unit:"month"});case"MMM":return t.month(e,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(e,{width:"wide",context:"formatting"})}},L:function(a,r,t){var e=a.getUTCMonth();switch(r){case"L":return String(e+1);case"LL":return b(e+1,2);case"Lo":return t.ordinalNumber(e+1,{unit:"month"});case"LLL":return t.month(e,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(e,{width:"wide",context:"standalone"})}},w:function(a,r,t,e){var n=_t(a,e);return r==="wo"?t.ordinalNumber(n,{unit:"week"}):b(n,r.length)},I:function(a,r,t){var e=kt(a);return r==="Io"?t.ordinalNumber(e,{unit:"week"}):b(e,r.length)},d:function(a,r,t){return r==="do"?t.ordinalNumber(a.getUTCDate(),{unit:"date"}):Z.d(a,r)},D:function(a,r,t){var e=wr(a);return r==="Do"?t.ordinalNumber(e,{unit:"dayOfYear"}):b(e,r.length)},E:function(a,r,t){var e=a.getUTCDay();switch(r){case"E":case"EE":case"EEE":return t.day(e,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(e,{width:"short",context:"formatting"});case"EEEE":default:return t.day(e,{width:"wide",context:"formatting"})}},e:function(a,r,t,e){var n=a.getUTCDay(),i=(n-e.weekStartsOn+8)%7||7;switch(r){case"e":return String(i);case"ee":return b(i,2);case"eo":return t.ordinalNumber(i,{unit:"day"});case"eee":return t.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(n,{width:"short",context:"formatting"});case"eeee":default:return t.day(n,{width:"wide",context:"formatting"})}},c:function(a,r,t,e){var n=a.getUTCDay(),i=(n-e.weekStartsOn+8)%7||7;switch(r){case"c":return String(i);case"cc":return b(i,r.length);case"co":return t.ordinalNumber(i,{unit:"day"});case"ccc":return t.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(n,{width:"narrow",context:"standalone"});case"cccccc":return t.day(n,{width:"short",context:"standalone"});case"cccc":default:return t.day(n,{width:"wide",context:"standalone"})}},i:function(a,r,t){var e=a.getUTCDay(),n=e===0?7:e;switch(r){case"i":return String(n);case"ii":return b(n,r.length);case"io":return t.ordinalNumber(n,{unit:"day"});case"iii":return t.day(e,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(e,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(e,{width:"short",context:"formatting"});case"iiii":default:return t.day(e,{width:"wide",context:"formatting"})}},a:function(a,r,t){var e=a.getUTCHours(),n=e/12>=1?"pm":"am";switch(r){case"a":case"aa":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(a,r,t){var e=a.getUTCHours(),n;switch(e===12?n=ae.noon:e===0?n=ae.midnight:n=e/12>=1?"pm":"am",r){case"b":case"bb":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(a,r,t){var e=a.getUTCHours(),n;switch(e>=17?n=ae.evening:e>=12?n=ae.afternoon:e>=4?n=ae.morning:n=ae.night,r){case"B":case"BB":case"BBB":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(a,r,t){if(r==="ho"){var e=a.getUTCHours()%12;return e===0&&(e=12),t.ordinalNumber(e,{unit:"hour"})}return Z.h(a,r)},H:function(a,r,t){return r==="Ho"?t.ordinalNumber(a.getUTCHours(),{unit:"hour"}):Z.H(a,r)},K:function(a,r,t){var e=a.getUTCHours()%12;return r==="Ko"?t.ordinalNumber(e,{unit:"hour"}):b(e,r.length)},k:function(a,r,t){var e=a.getUTCHours();return e===0&&(e=24),r==="ko"?t.ordinalNumber(e,{unit:"hour"}):b(e,r.length)},m:function(a,r,t){return r==="mo"?t.ordinalNumber(a.getUTCMinutes(),{unit:"minute"}):Z.m(a,r)},s:function(a,r,t){return r==="so"?t.ordinalNumber(a.getUTCSeconds(),{unit:"second"}):Z.s(a,r)},S:function(a,r){return Z.S(a,r)},X:function(a,r,t,e){var n=e._originalDate||a,i=n.getTimezoneOffset();if(i===0)return"Z";switch(r){case"X":return ft(i);case"XXXX":case"XX":return te(i);case"XXXXX":case"XXX":default:return te(i,":")}},x:function(a,r,t,e){var n=e._originalDate||a,i=n.getTimezoneOffset();switch(r){case"x":return ft(i);case"xxxx":case"xx":return te(i);case"xxxxx":case"xxx":default:return te(i,":")}},O:function(a,r,t,e){var n=e._originalDate||a,i=n.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+dt(i,":");case"OOOO":default:return"GMT"+te(i,":")}},z:function(a,r,t,e){var n=e._originalDate||a,i=n.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+dt(i,":");case"zzzz":default:return"GMT"+te(i,":")}},t:function(a,r,t,e){var n=e._originalDate||a,i=Math.floor(n.getTime()/1e3);return b(i,r.length)},T:function(a,r,t,e){var n=e._originalDate||a,i=n.getTime();return b(i,r.length)}};function dt(o,a){var r=o>0?"-":"+",t=Math.abs(o),e=Math.floor(t/60),n=t%60;if(n===0)return r+String(e);var i=a;return r+String(e)+i+b(n,2)}function ft(o,a){if(o%60===0){var r=o>0?"-":"+";return r+b(Math.abs(o)/60,2)}return te(o,a)}function te(o,a){var r=a||"",t=o>0?"-":"+",e=Math.abs(o),n=b(Math.floor(e/60),2),i=b(e%60,2);return t+n+r+i}var vt=function(a,r){switch(a){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},Yt=function(a,r){switch(a){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},Or=function(a,r){var t=a.match(/(P+)(p+)?/)||[],e=t[1],n=t[2];if(!n)return vt(a,r);var i;switch(e){case"P":i=r.dateTime({width:"short"});break;case"PP":i=r.dateTime({width:"medium"});break;case"PPP":i=r.dateTime({width:"long"});break;case"PPPP":default:i=r.dateTime({width:"full"});break}return i.replace("{{date}}",vt(e,r)).replace("{{time}}",Yt(n,r))},je={p:Yt,P:Or},Pr=["D","DD"],Cr=["YY","YYYY"];function Et(o){return Pr.indexOf(o)!==-1}function Nt(o){return Cr.indexOf(o)!==-1}function Ce(o,a,r){if(o==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(a,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(a,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(a,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(a,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var xr={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"}},kr=function(a,r,t){var e,n=xr[a];return typeof n=="string"?e=n:r===1?e=n.one:e=n.other.replace("{{count}}",r.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+e:e+" ago":e};function $e(o){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=a.width?String(a.width):o.defaultWidth,t=o.formats[r]||o.formats[o.defaultWidth];return t}}var _r={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Yr={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Er={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Nr={date:$e({formats:_r,defaultWidth:"full"}),time:$e({formats:Yr,defaultWidth:"full"}),dateTime:$e({formats:Er,defaultWidth:"full"})},Ur={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Sr=function(a,r,t,e){return Ur[a]};function de(o){return function(a,r){var t=r!=null&&r.context?String(r.context):"standalone",e;if(t==="formatting"&&o.formattingValues){var n=o.defaultFormattingWidth||o.defaultWidth,i=r!=null&&r.width?String(r.width):n;e=o.formattingValues[i]||o.formattingValues[n]}else{var u=o.defaultWidth,s=r!=null&&r.width?String(r.width):o.defaultWidth;e=o.values[s]||o.values[u]}var l=o.argumentCallback?o.argumentCallback(a):a;return e[l]}}var Hr={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Wr={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ir={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"]},Ar={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"]},$r={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"}},Lr={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"}},Fr=function(a,r){var t=Number(a),e=t%100;if(e>20||e<10)switch(e%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},Rr={ordinalNumber:Fr,era:de({values:Hr,defaultWidth:"wide"}),quarter:de({values:Wr,defaultWidth:"wide",argumentCallback:function(a){return a-1}}),month:de({values:Ir,defaultWidth:"wide"}),day:de({values:Ar,defaultWidth:"wide"}),dayPeriod:de({values:$r,defaultWidth:"wide",formattingValues:Lr,defaultFormattingWidth:"wide"})};function fe(o){return function(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=r.width,e=t&&o.matchPatterns[t]||o.matchPatterns[o.defaultMatchWidth],n=a.match(e);if(!n)return null;var i=n[0],u=t&&o.parsePatterns[t]||o.parsePatterns[o.defaultParseWidth],s=Array.isArray(u)?Qr(u,function(v){return v.test(i)}):qr(u,function(v){return v.test(i)}),l;l=o.valueCallback?o.valueCallback(s):s,l=r.valueCallback?r.valueCallback(l):l;var c=a.slice(i.length);return{value:l,rest:c}}}function qr(o,a){for(var r in o)if(o.hasOwnProperty(r)&&a(o[r]))return r}function Qr(o,a){for(var r=0;r<o.length;r++)if(a(o[r]))return r}function Br(o){return function(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=a.match(o.matchPattern);if(!t)return null;var e=t[0],n=a.match(o.parsePattern);if(!n)return null;var i=o.valueCallback?o.valueCallback(n[0]):n[0];i=r.valueCallback?r.valueCallback(i):i;var u=a.slice(e.length);return{value:i,rest:u}}}var jr=/^(\d+)(th|st|nd|rd)?/i,Gr=/\d+/i,Xr={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},zr={any:[/^b/i,/^(a|c)/i]},Vr={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Zr={any:[/1/i,/2/i,/3/i,/4/i]},Jr={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},Kr={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]},ea={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},ta={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]},ra={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},aa={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}},na={ordinalNumber:Br({matchPattern:jr,parsePattern:Gr,valueCallback:function(a){return parseInt(a,10)}}),era:fe({matchPatterns:Xr,defaultMatchWidth:"wide",parsePatterns:zr,defaultParseWidth:"any"}),quarter:fe({matchPatterns:Vr,defaultMatchWidth:"wide",parsePatterns:Zr,defaultParseWidth:"any",valueCallback:function(a){return a+1}}),month:fe({matchPatterns:Jr,defaultMatchWidth:"wide",parsePatterns:Kr,defaultParseWidth:"any"}),day:fe({matchPatterns:ea,defaultMatchWidth:"wide",parsePatterns:ta,defaultParseWidth:"any"}),dayPeriod:fe({matchPatterns:ra,defaultMatchWidth:"any",parsePatterns:aa,defaultParseWidth:"any"})},Je={code:"en-US",formatDistance:kr,formatLong:Nr,formatRelative:Sr,localize:Rr,match:na,options:{weekStartsOn:0,firstWeekContainsDate:1}},ia=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,oa=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ua=/^'([^]*?)'?$/,sa=/''/g,la=/[a-zA-Z]/;function ca(o,a,r){var t,e,n,i,u,s,l,c,v,g,w,y,E,_,S,A,B,L;d(2,arguments);var K=String(a),I=J(),F=(t=(e=r==null?void 0:r.locale)!==null&&e!==void 0?e:I.locale)!==null&&t!==void 0?t:Je,X=C((n=(i=(u=(s=r==null?void 0:r.firstWeekContainsDate)!==null&&s!==void 0?s:r==null||(l=r.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&u!==void 0?u:I.firstWeekContainsDate)!==null&&i!==void 0?i:(v=I.locale)===null||v===void 0||(g=v.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(X>=1&&X<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var z=C((w=(y=(E=(_=r==null?void 0:r.weekStartsOn)!==null&&_!==void 0?_:r==null||(S=r.locale)===null||S===void 0||(A=S.options)===null||A===void 0?void 0:A.weekStartsOn)!==null&&E!==void 0?E:I.weekStartsOn)!==null&&y!==void 0?y:(B=I.locale)===null||B===void 0||(L=B.options)===null||L===void 0?void 0:L.weekStartsOn)!==null&&w!==void 0?w:0);if(!(z>=0&&z<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!F.localize)throw new RangeError("locale must contain localize property");if(!F.formatLong)throw new RangeError("locale must contain formatLong property");var V=f(o);if(!Pt(V))throw new RangeError("Invalid time value");var ue=Pe(V),se=Ct(V,ue),le={firstWeekContainsDate:X,weekStartsOn:z,locale:F,_originalDate:V},Ue=K.match(oa).map(function(W){var $=W[0];if($==="p"||$==="P"){var ee=je[$];return ee(W,F.formatLong)}return W}).join("").match(ia).map(function(W){if(W==="''")return"'";var $=W[0];if($==="'")return da(W);var ee=Mr[$];if(ee)return!(r!=null&&r.useAdditionalWeekYearTokens)&&Nt(W)&&Ce(W,a,String(o)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Et(W)&&Ce(W,a,String(o)),ee(se,W,F.localize,le);if($.match(la))throw new RangeError("Format string contains an unescaped latin alphabet character `"+$+"`");return W}).join("");return Ue}function da(o){var a=o.match(ua);return a?a[1].replace(sa,"'"):o}function fa(o){d(1,arguments);var a=f(o),r=a.getDate();return r}function va(o){d(1,arguments);var a=f(o),r=a.getDay();return r}function Ut(o){d(1,arguments);var a=f(o),r=a.getFullYear(),t=a.getMonth(),e=new Date(0);return e.setFullYear(r,t+1,0),e.setHours(0,0,0,0),e.getDate()}function ha(o){d(1,arguments);var a=f(o),r=a.getHours();return r}function ma(o){d(1,arguments);var a=f(o),r=a.getMinutes();return r}function pa(o){d(1,arguments);var a=f(o),r=a.getMonth();return r}function ga(o){d(1,arguments);var a=f(o),r=a.getSeconds();return r}function wa(o){return d(1,arguments),f(o).getFullYear()}function ye(o,a){d(2,arguments);var r=f(o),t=f(a);return r.getTime()>t.getTime()}function ne(o,a){d(2,arguments);var r=f(o),t=f(a);return r.getTime()<t.getTime()}function ya(o,a){d(2,arguments);var r=f(o),t=f(a);return r.getTime()===t.getTime()}function ba(o,a){d(2,arguments);var r=ie(o),t=ie(a);return r.getTime()===t.getTime()}function Ta(o,a){d(2,arguments);var r=f(o),t=f(a);return r.getFullYear()===t.getFullYear()}function Da(o,a){d(2,arguments);var r=f(o),t=f(a);return r.getFullYear()===t.getFullYear()&&r.getMonth()===t.getMonth()}function ht(o){d(1,arguments);var a=f(o);return a.setMinutes(0,0,0),a}function Ma(o,a){d(2,arguments);var r=ht(o),t=ht(a);return r.getTime()===t.getTime()}function mt(o,a){var r=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!r){if(Array.isArray(o)||(r=Xt(o))||a){r&&(o=r);var t=0,e=function(){};return{s:e,n:function(){return t>=o.length?{done:!0}:{done:!1,value:o[t++]}},e:function(l){throw l},f:e}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var n,i=!0,u=!1;return{s:function(){r=r.call(o)},n:function(){var l=r.next();return i=l.done,l},e:function(l){u=!0,n=l},f:function(){try{i||r.return==null||r.return()}finally{if(u)throw n}}}}function Oa(o,a){if(o==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(o[r]=a[r]);return o}var Pa=10,St=function(){function o(){T(this,o),h(this,"priority",void 0),h(this,"subPriority",0)}return D(o,[{key:"validate",value:function(r,t){return!0}}]),o}(),Ca=function(o){M(r,o);var a=O(r);function r(t,e,n,i,u){var s;return T(this,r),s=a.call(this),s.value=t,s.validateValue=e,s.setValue=n,s.priority=i,u&&(s.subPriority=u),s}return D(r,[{key:"validate",value:function(e,n){return this.validateValue(e,this.value,n)}},{key:"set",value:function(e,n,i){return this.setValue(e,n,this.value,i)}}]),r}(St),xa=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",Pa),h(p(t),"subPriority",-1),t}return D(r,[{key:"set",value:function(e,n){if(n.timestampIsSet)return e;var i=new Date(0);return i.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),i.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),i}}]),r}(St),P=function(){function o(){T(this,o),h(this,"incompatibleTokens",void 0),h(this,"priority",void 0),h(this,"subPriority",void 0)}return D(o,[{key:"run",value:function(r,t,e,n){var i=this.parse(r,t,e,n);return i?{setter:new Ca(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}},{key:"validate",value:function(r,t,e){return!0}}]),o}(),ka=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",140),h(p(t),"incompatibleTokens",["R","u","t","T"]),t}return D(r,[{key:"parse",value:function(e,n,i){switch(n){case"G":case"GG":case"GGG":return i.era(e,{width:"abbreviated"})||i.era(e,{width:"narrow"});case"GGGGG":return i.era(e,{width:"narrow"});case"GGGG":default:return i.era(e,{width:"wide"})||i.era(e,{width:"abbreviated"})||i.era(e,{width:"narrow"})}}},{key:"set",value:function(e,n,i){return n.era=i,e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}}]),r}(P),N={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},j={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function U(o,a){return o&&{value:a(o.value),rest:o.rest}}function k(o,a){var r=a.match(o);return r?{value:parseInt(r[0],10),rest:a.slice(r[0].length)}:null}function G(o,a){var r=a.match(o);if(!r)return null;if(r[0]==="Z")return{value:0,rest:a.slice(1)};var t=r[1]==="+"?1:-1,e=r[2]?parseInt(r[2],10):0,n=r[3]?parseInt(r[3],10):0,i=r[5]?parseInt(r[5],10):0;return{value:t*(e*Ee+n*Ye+i*cr),rest:a.slice(r[0].length)}}function Ht(o){return k(N.anyDigitsSigned,o)}function Y(o,a){switch(o){case 1:return k(N.singleDigit,a);case 2:return k(N.twoDigits,a);case 3:return k(N.threeDigits,a);case 4:return k(N.fourDigits,a);default:return k(new RegExp("^\\d{1,"+o+"}"),a)}}function xe(o,a){switch(o){case 1:return k(N.singleDigitSigned,a);case 2:return k(N.twoDigitsSigned,a);case 3:return k(N.threeDigitsSigned,a);case 4:return k(N.fourDigitsSigned,a);default:return k(new RegExp("^-?\\d{1,"+o+"}"),a)}}function Ke(o){switch(o){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Wt(o,a){var r=a>0,t=r?a:1-a,e;if(t<=50)e=o||100;else{var n=t+50,i=Math.floor(n/100)*100,u=o>=n%100;e=o+i-(u?100:0)}return r?e:1-e}function It(o){return o%400===0||o%4===0&&o%100!==0}var _a=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",130),h(p(t),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),t}return D(r,[{key:"parse",value:function(e,n,i){var u=function(l){return{year:l,isTwoDigitYear:n==="yy"}};switch(n){case"y":return U(Y(4,e),u);case"yo":return U(i.ordinalNumber(e,{unit:"year"}),u);default:return U(Y(n.length,e),u)}}},{key:"validate",value:function(e,n){return n.isTwoDigitYear||n.year>0}},{key:"set",value:function(e,n,i){var u=e.getUTCFullYear();if(i.isTwoDigitYear){var s=Wt(i.year,u);return e.setUTCFullYear(s,0,1),e.setUTCHours(0,0,0,0),e}var l=!("era"in n)||n.era===1?i.year:1-i.year;return e.setUTCFullYear(l,0,1),e.setUTCHours(0,0,0,0),e}}]),r}(P),Ya=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",130),h(p(t),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),t}return D(r,[{key:"parse",value:function(e,n,i){var u=function(l){return{year:l,isTwoDigitYear:n==="YY"}};switch(n){case"Y":return U(Y(4,e),u);case"Yo":return U(i.ordinalNumber(e,{unit:"year"}),u);default:return U(Y(n.length,e),u)}}},{key:"validate",value:function(e,n){return n.isTwoDigitYear||n.year>0}},{key:"set",value:function(e,n,i,u){var s=Ze(e,u);if(i.isTwoDigitYear){var l=Wt(i.year,s);return e.setUTCFullYear(l,0,u.firstWeekContainsDate),e.setUTCHours(0,0,0,0),re(e,u)}var c=!("era"in n)||n.era===1?i.year:1-i.year;return e.setUTCFullYear(c,0,u.firstWeekContainsDate),e.setUTCHours(0,0,0,0),re(e,u)}}]),r}(P),Ea=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",130),h(p(t),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),t}return D(r,[{key:"parse",value:function(e,n){return xe(n==="R"?4:n.length,e)}},{key:"set",value:function(e,n,i){var u=new Date(0);return u.setUTCFullYear(i,0,4),u.setUTCHours(0,0,0,0),oe(u)}}]),r}(P),Na=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",130),h(p(t),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),t}return D(r,[{key:"parse",value:function(e,n){return xe(n==="u"?4:n.length,e)}},{key:"set",value:function(e,n,i){return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}}]),r}(P),Ua=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",120),h(p(t),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),t}return D(r,[{key:"parse",value:function(e,n,i){switch(n){case"Q":case"QQ":return Y(n.length,e);case"Qo":return i.ordinalNumber(e,{unit:"quarter"});case"QQQ":return i.quarter(e,{width:"abbreviated",context:"formatting"})||i.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(e,{width:"wide",context:"formatting"})||i.quarter(e,{width:"abbreviated",context:"formatting"})||i.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,n){return n>=1&&n<=4}},{key:"set",value:function(e,n,i){return e.setUTCMonth((i-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),r}(P),Sa=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",120),h(p(t),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),t}return D(r,[{key:"parse",value:function(e,n,i){switch(n){case"q":case"qq":return Y(n.length,e);case"qo":return i.ordinalNumber(e,{unit:"quarter"});case"qqq":return i.quarter(e,{width:"abbreviated",context:"standalone"})||i.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(e,{width:"wide",context:"standalone"})||i.quarter(e,{width:"abbreviated",context:"standalone"})||i.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,n){return n>=1&&n<=4}},{key:"set",value:function(e,n,i){return e.setUTCMonth((i-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),r}(P),Ha=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),h(p(t),"priority",110),t}return D(r,[{key:"parse",value:function(e,n,i){var u=function(l){return l-1};switch(n){case"M":return U(k(N.month,e),u);case"MM":return U(Y(2,e),u);case"Mo":return U(i.ordinalNumber(e,{unit:"month"}),u);case"MMM":return i.month(e,{width:"abbreviated",context:"formatting"})||i.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(e,{width:"wide",context:"formatting"})||i.month(e,{width:"abbreviated",context:"formatting"})||i.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,n){return n>=0&&n<=11}},{key:"set",value:function(e,n,i){return e.setUTCMonth(i,1),e.setUTCHours(0,0,0,0),e}}]),r}(P),Wa=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",110),h(p(t),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),t}return D(r,[{key:"parse",value:function(e,n,i){var u=function(l){return l-1};switch(n){case"L":return U(k(N.month,e),u);case"LL":return U(Y(2,e),u);case"Lo":return U(i.ordinalNumber(e,{unit:"month"}),u);case"LLL":return i.month(e,{width:"abbreviated",context:"standalone"})||i.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(e,{width:"wide",context:"standalone"})||i.month(e,{width:"abbreviated",context:"standalone"})||i.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,n){return n>=0&&n<=11}},{key:"set",value:function(e,n,i){return e.setUTCMonth(i,1),e.setUTCHours(0,0,0,0),e}}]),r}(P);function Ia(o,a,r){d(2,arguments);var t=f(o),e=C(a),n=_t(t,r)-e;return t.setUTCDate(t.getUTCDate()-n*7),t}var Aa=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",100),h(p(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),t}return D(r,[{key:"parse",value:function(e,n,i){switch(n){case"w":return k(N.week,e);case"wo":return i.ordinalNumber(e,{unit:"week"});default:return Y(n.length,e)}}},{key:"validate",value:function(e,n){return n>=1&&n<=53}},{key:"set",value:function(e,n,i,u){return re(Ia(e,i,u),u)}}]),r}(P);function $a(o,a){d(2,arguments);var r=f(o),t=C(a),e=kt(r)-t;return r.setUTCDate(r.getUTCDate()-e*7),r}var La=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",100),h(p(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),t}return D(r,[{key:"parse",value:function(e,n,i){switch(n){case"I":return k(N.week,e);case"Io":return i.ordinalNumber(e,{unit:"week"});default:return Y(n.length,e)}}},{key:"validate",value:function(e,n){return n>=1&&n<=53}},{key:"set",value:function(e,n,i){return oe($a(e,i))}}]),r}(P),Fa=[31,28,31,30,31,30,31,31,30,31,30,31],Ra=[31,29,31,30,31,30,31,31,30,31,30,31],qa=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",90),h(p(t),"subPriority",1),h(p(t),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),t}return D(r,[{key:"parse",value:function(e,n,i){switch(n){case"d":return k(N.date,e);case"do":return i.ordinalNumber(e,{unit:"date"});default:return Y(n.length,e)}}},{key:"validate",value:function(e,n){var i=e.getUTCFullYear(),u=It(i),s=e.getUTCMonth();return u?n>=1&&n<=Ra[s]:n>=1&&n<=Fa[s]}},{key:"set",value:function(e,n,i){return e.setUTCDate(i),e.setUTCHours(0,0,0,0),e}}]),r}(P),Qa=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",90),h(p(t),"subpriority",1),h(p(t),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),t}return D(r,[{key:"parse",value:function(e,n,i){switch(n){case"D":case"DD":return k(N.dayOfYear,e);case"Do":return i.ordinalNumber(e,{unit:"date"});default:return Y(n.length,e)}}},{key:"validate",value:function(e,n){var i=e.getUTCFullYear(),u=It(i);return u?n>=1&&n<=366:n>=1&&n<=365}},{key:"set",value:function(e,n,i){return e.setUTCMonth(0,i),e.setUTCHours(0,0,0,0),e}}]),r}(P);function et(o,a,r){var t,e,n,i,u,s,l,c;d(2,arguments);var v=J(),g=C((t=(e=(n=(i=r==null?void 0:r.weekStartsOn)!==null&&i!==void 0?i:r==null||(u=r.locale)===null||u===void 0||(s=u.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&n!==void 0?n:v.weekStartsOn)!==null&&e!==void 0?e:(l=v.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&t!==void 0?t:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var w=f(o),y=C(a),E=w.getUTCDay(),_=y%7,S=(_+7)%7,A=(S<g?7:0)+y-E;return w.setUTCDate(w.getUTCDate()+A),w}var Ba=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",90),h(p(t),"incompatibleTokens",["D","i","e","c","t","T"]),t}return D(r,[{key:"parse",value:function(e,n,i){switch(n){case"E":case"EE":case"EEE":return i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(e,{width:"wide",context:"formatting"})||i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,n){return n>=0&&n<=6}},{key:"set",value:function(e,n,i,u){return e=et(e,i,u),e.setUTCHours(0,0,0,0),e}}]),r}(P),ja=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",90),h(p(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),t}return D(r,[{key:"parse",value:function(e,n,i,u){var s=function(c){var v=Math.floor((c-1)/7)*7;return(c+u.weekStartsOn+6)%7+v};switch(n){case"e":case"ee":return U(Y(n.length,e),s);case"eo":return U(i.ordinalNumber(e,{unit:"day"}),s);case"eee":return i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"});case"eeeee":return i.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(e,{width:"wide",context:"formatting"})||i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,n){return n>=0&&n<=6}},{key:"set",value:function(e,n,i,u){return e=et(e,i,u),e.setUTCHours(0,0,0,0),e}}]),r}(P),Ga=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",90),h(p(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),t}return D(r,[{key:"parse",value:function(e,n,i,u){var s=function(c){var v=Math.floor((c-1)/7)*7;return(c+u.weekStartsOn+6)%7+v};switch(n){case"c":case"cc":return U(Y(n.length,e),s);case"co":return U(i.ordinalNumber(e,{unit:"day"}),s);case"ccc":return i.day(e,{width:"abbreviated",context:"standalone"})||i.day(e,{width:"short",context:"standalone"})||i.day(e,{width:"narrow",context:"standalone"});case"ccccc":return i.day(e,{width:"narrow",context:"standalone"});case"cccccc":return i.day(e,{width:"short",context:"standalone"})||i.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(e,{width:"wide",context:"standalone"})||i.day(e,{width:"abbreviated",context:"standalone"})||i.day(e,{width:"short",context:"standalone"})||i.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,n){return n>=0&&n<=6}},{key:"set",value:function(e,n,i,u){return e=et(e,i,u),e.setUTCHours(0,0,0,0),e}}]),r}(P);function Xa(o,a){d(2,arguments);var r=C(a);r%7===0&&(r=r-7);var t=1,e=f(o),n=e.getUTCDay(),i=r%7,u=(i+7)%7,s=(u<t?7:0)+r-n;return e.setUTCDate(e.getUTCDate()+s),e}var za=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",90),h(p(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),t}return D(r,[{key:"parse",value:function(e,n,i){var u=function(l){return l===0?7:l};switch(n){case"i":case"ii":return Y(n.length,e);case"io":return i.ordinalNumber(e,{unit:"day"});case"iii":return U(i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"}),u);case"iiiii":return U(i.day(e,{width:"narrow",context:"formatting"}),u);case"iiiiii":return U(i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"}),u);case"iiii":default:return U(i.day(e,{width:"wide",context:"formatting"})||i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"}),u)}}},{key:"validate",value:function(e,n){return n>=1&&n<=7}},{key:"set",value:function(e,n,i){return e=Xa(e,i),e.setUTCHours(0,0,0,0),e}}]),r}(P),Va=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",80),h(p(t),"incompatibleTokens",["b","B","H","k","t","T"]),t}return D(r,[{key:"parse",value:function(e,n,i){switch(n){case"a":case"aa":case"aaa":return i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(e,{width:"wide",context:"formatting"})||i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,n,i){return e.setUTCHours(Ke(i),0,0,0),e}}]),r}(P),Za=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",80),h(p(t),"incompatibleTokens",["a","B","H","k","t","T"]),t}return D(r,[{key:"parse",value:function(e,n,i){switch(n){case"b":case"bb":case"bbb":return i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(e,{width:"wide",context:"formatting"})||i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,n,i){return e.setUTCHours(Ke(i),0,0,0),e}}]),r}(P),Ja=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",80),h(p(t),"incompatibleTokens",["a","b","t","T"]),t}return D(r,[{key:"parse",value:function(e,n,i){switch(n){case"B":case"BB":case"BBB":return i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(e,{width:"wide",context:"formatting"})||i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,n,i){return e.setUTCHours(Ke(i),0,0,0),e}}]),r}(P),Ka=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",70),h(p(t),"incompatibleTokens",["H","K","k","t","T"]),t}return D(r,[{key:"parse",value:function(e,n,i){switch(n){case"h":return k(N.hour12h,e);case"ho":return i.ordinalNumber(e,{unit:"hour"});default:return Y(n.length,e)}}},{key:"validate",value:function(e,n){return n>=1&&n<=12}},{key:"set",value:function(e,n,i){var u=e.getUTCHours()>=12;return u&&i<12?e.setUTCHours(i+12,0,0,0):!u&&i===12?e.setUTCHours(0,0,0,0):e.setUTCHours(i,0,0,0),e}}]),r}(P),en=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",70),h(p(t),"incompatibleTokens",["a","b","h","K","k","t","T"]),t}return D(r,[{key:"parse",value:function(e,n,i){switch(n){case"H":return k(N.hour23h,e);case"Ho":return i.ordinalNumber(e,{unit:"hour"});default:return Y(n.length,e)}}},{key:"validate",value:function(e,n){return n>=0&&n<=23}},{key:"set",value:function(e,n,i){return e.setUTCHours(i,0,0,0),e}}]),r}(P),tn=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",70),h(p(t),"incompatibleTokens",["h","H","k","t","T"]),t}return D(r,[{key:"parse",value:function(e,n,i){switch(n){case"K":return k(N.hour11h,e);case"Ko":return i.ordinalNumber(e,{unit:"hour"});default:return Y(n.length,e)}}},{key:"validate",value:function(e,n){return n>=0&&n<=11}},{key:"set",value:function(e,n,i){var u=e.getUTCHours()>=12;return u&&i<12?e.setUTCHours(i+12,0,0,0):e.setUTCHours(i,0,0,0),e}}]),r}(P),rn=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",70),h(p(t),"incompatibleTokens",["a","b","h","H","K","t","T"]),t}return D(r,[{key:"parse",value:function(e,n,i){switch(n){case"k":return k(N.hour24h,e);case"ko":return i.ordinalNumber(e,{unit:"hour"});default:return Y(n.length,e)}}},{key:"validate",value:function(e,n){return n>=1&&n<=24}},{key:"set",value:function(e,n,i){var u=i<=24?i%24:i;return e.setUTCHours(u,0,0,0),e}}]),r}(P),an=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",60),h(p(t),"incompatibleTokens",["t","T"]),t}return D(r,[{key:"parse",value:function(e,n,i){switch(n){case"m":return k(N.minute,e);case"mo":return i.ordinalNumber(e,{unit:"minute"});default:return Y(n.length,e)}}},{key:"validate",value:function(e,n){return n>=0&&n<=59}},{key:"set",value:function(e,n,i){return e.setUTCMinutes(i,0,0),e}}]),r}(P),nn=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",50),h(p(t),"incompatibleTokens",["t","T"]),t}return D(r,[{key:"parse",value:function(e,n,i){switch(n){case"s":return k(N.second,e);case"so":return i.ordinalNumber(e,{unit:"second"});default:return Y(n.length,e)}}},{key:"validate",value:function(e,n){return n>=0&&n<=59}},{key:"set",value:function(e,n,i){return e.setUTCSeconds(i,0),e}}]),r}(P),on=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",30),h(p(t),"incompatibleTokens",["t","T"]),t}return D(r,[{key:"parse",value:function(e,n){var i=function(s){return Math.floor(s*Math.pow(10,-n.length+3))};return U(Y(n.length,e),i)}},{key:"set",value:function(e,n,i){return e.setUTCMilliseconds(i),e}}]),r}(P),un=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",10),h(p(t),"incompatibleTokens",["t","T","x"]),t}return D(r,[{key:"parse",value:function(e,n){switch(n){case"X":return G(j.basicOptionalMinutes,e);case"XX":return G(j.basic,e);case"XXXX":return G(j.basicOptionalSeconds,e);case"XXXXX":return G(j.extendedOptionalSeconds,e);case"XXX":default:return G(j.extended,e)}}},{key:"set",value:function(e,n,i){return n.timestampIsSet?e:new Date(e.getTime()-i)}}]),r}(P),sn=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",10),h(p(t),"incompatibleTokens",["t","T","X"]),t}return D(r,[{key:"parse",value:function(e,n){switch(n){case"x":return G(j.basicOptionalMinutes,e);case"xx":return G(j.basic,e);case"xxxx":return G(j.basicOptionalSeconds,e);case"xxxxx":return G(j.extendedOptionalSeconds,e);case"xxx":default:return G(j.extended,e)}}},{key:"set",value:function(e,n,i){return n.timestampIsSet?e:new Date(e.getTime()-i)}}]),r}(P),ln=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",40),h(p(t),"incompatibleTokens","*"),t}return D(r,[{key:"parse",value:function(e){return Ht(e)}},{key:"set",value:function(e,n,i){return[new Date(i*1e3),{timestampIsSet:!0}]}}]),r}(P),cn=function(o){M(r,o);var a=O(r);function r(){var t;T(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),h(p(t),"priority",20),h(p(t),"incompatibleTokens","*"),t}return D(r,[{key:"parse",value:function(e){return Ht(e)}},{key:"set",value:function(e,n,i){return[new Date(i),{timestampIsSet:!0}]}}]),r}(P),dn={G:new ka,y:new _a,Y:new Ya,R:new Ea,u:new Na,Q:new Ua,q:new Sa,M:new Ha,L:new Wa,w:new Aa,I:new La,d:new qa,D:new Qa,E:new Ba,e:new ja,c:new Ga,i:new za,a:new Va,b:new Za,B:new Ja,h:new Ka,H:new en,K:new tn,k:new rn,m:new an,s:new nn,S:new on,X:new un,x:new sn,t:new ln,T:new cn},fn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vn=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,hn=/^'([^]*?)'?$/,mn=/''/g,pn=/\S/,gn=/[a-zA-Z]/;function wn(o,a,r,t){var e,n,i,u,s,l,c,v,g,w,y,E,_,S,A,B,L,K;d(3,arguments);var I=String(o),F=String(a),X=J(),z=(e=(n=t==null?void 0:t.locale)!==null&&n!==void 0?n:X.locale)!==null&&e!==void 0?e:Je;if(!z.match)throw new RangeError("locale must contain match property");var V=C((i=(u=(s=(l=t==null?void 0:t.firstWeekContainsDate)!==null&&l!==void 0?l:t==null||(c=t.locale)===null||c===void 0||(v=c.options)===null||v===void 0?void 0:v.firstWeekContainsDate)!==null&&s!==void 0?s:X.firstWeekContainsDate)!==null&&u!==void 0?u:(g=X.locale)===null||g===void 0||(w=g.options)===null||w===void 0?void 0:w.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(V>=1&&V<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ue=C((y=(E=(_=(S=t==null?void 0:t.weekStartsOn)!==null&&S!==void 0?S:t==null||(A=t.locale)===null||A===void 0||(B=A.options)===null||B===void 0?void 0:B.weekStartsOn)!==null&&_!==void 0?_:X.weekStartsOn)!==null&&E!==void 0?E:(L=X.locale)===null||L===void 0||(K=L.options)===null||K===void 0?void 0:K.weekStartsOn)!==null&&y!==void 0?y:0);if(!(ue>=0&&ue<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(F==="")return I===""?f(r):new Date(NaN);var se={firstWeekContainsDate:V,weekStartsOn:ue,locale:z},le=[new xa],Ue=F.match(vn).map(function(H){var x=H[0];if(x in je){var R=je[x];return R(H,z.formatLong)}return H}).join("").match(fn),W=[],$=mt(Ue),ee;try{var Lt=function(){var x=ee.value;!(t!=null&&t.useAdditionalWeekYearTokens)&&Nt(x)&&Ce(x,F,o),!(t!=null&&t.useAdditionalDayOfYearTokens)&&Et(x)&&Ce(x,F,o);var R=x[0],we=dn[R];if(we){var it=we.incompatibleTokens;if(Array.isArray(it)){var ot=W.find(function(ut){return it.includes(ut.token)||ut.token===R});if(ot)throw new RangeError("The format string mustn't contain `".concat(ot.fullToken,"` and `").concat(x,"` at the same time"))}else if(we.incompatibleTokens==="*"&&W.length>0)throw new RangeError("The format string mustn't contain `".concat(x,"` and any other token at the same time"));W.push({token:R,fullToken:x});var He=we.run(I,x,z.match,se);if(!He)return{v:new Date(NaN)};le.push(He.setter),I=He.rest}else{if(R.match(gn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");if(x==="''"?x="'":R==="'"&&(x=yn(x)),I.indexOf(x)===0)I=I.slice(x.length);else return{v:new Date(NaN)}}};for($.s();!(ee=$.n()).done;){var tt=Lt();if(Ve(tt)==="object")return tt.v}}catch(H){$.e(H)}finally{$.f()}if(I.length>0&&pn.test(I))return new Date(NaN);var Ft=le.map(function(H){return H.priority}).sort(function(H,x){return x-H}).filter(function(H,x,R){return R.indexOf(H)===x}).map(function(H){return le.filter(function(x){return x.priority===H}).sort(function(x,R){return R.subPriority-x.subPriority})}).map(function(H){return H[0]}),Se=f(r);if(isNaN(Se.getTime()))return new Date(NaN);var ce=Ct(Se,Pe(Se)),rt={},pe=mt(Ft),at;try{for(pe.s();!(at=pe.n()).done;){var nt=at.value;if(!nt.validate(ce,se))return new Date(NaN);var ge=nt.set(ce,rt,se);Array.isArray(ge)?(ce=ge[0],Oa(rt,ge[1])):ce=ge}}catch(H){pe.e(H)}finally{pe.f()}return ce}function yn(o){return o.match(hn)[1].replace(mn,"'")}function bn(o,a){d(2,arguments);var r=f(o),t=C(a);return r.setDate(t),r}function Tn(o,a){d(2,arguments);var r=f(o),t=C(a);return r.setHours(t),r}function Dn(o,a){d(2,arguments);var r=f(o),t=C(a);return r.setMinutes(t),r}function Mn(o,a){d(2,arguments);var r=f(o),t=C(a),e=r.getFullYear(),n=r.getDate(),i=new Date(0);i.setFullYear(e,t,15),i.setHours(0,0,0,0);var u=Ut(i);return r.setMonth(t,Math.min(n,u)),r}function On(o,a){d(2,arguments);var r=f(o),t=C(a);return r.setSeconds(t),r}function Pn(o,a){d(2,arguments);var r=f(o),t=C(a);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(t),r)}function be(o){d(1,arguments);var a=f(o);return a.setDate(1),a.setHours(0,0,0,0),a}function Le(o,a){var r,t,e,n,i,u,s,l;d(1,arguments);var c=J(),v=C((r=(t=(e=(n=a==null?void 0:a.weekStartsOn)!==null&&n!==void 0?n:a==null||(i=a.locale)===null||i===void 0||(u=i.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&e!==void 0?e:c.weekStartsOn)!==null&&t!==void 0?t:(s=c.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=f(o),w=g.getDay(),y=(w<v?7:0)+w-v;return g.setDate(g.getDate()-y),g.setHours(0,0,0,0),g}function Te(o){d(1,arguments);var a=f(o),r=new Date(0);return r.setFullYear(a.getFullYear(),0,1),r.setHours(0,0,0,0),r}function Cn(o,a){var r;d(1,arguments);var t=C((r=void 0)!==null&&r!==void 0?r:2);if(t!==2&&t!==1&&t!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof o=="string"||Object.prototype.toString.call(o)==="[object String]"))return new Date(NaN);var e=Yn(o),n;if(e.date){var i=En(e.date,t);n=Nn(i.restDateString,i.year)}if(!n||isNaN(n.getTime()))return new Date(NaN);var u=n.getTime(),s=0,l;if(e.time&&(s=Un(e.time),isNaN(s)))return new Date(NaN);if(e.timezone){if(l=Sn(e.timezone),isNaN(l))return new Date(NaN)}else{var c=new Date(u+s),v=new Date(0);return v.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),v.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),v}return new Date(u+s+l)}var De={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},xn=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,kn=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,_n=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Yn(o){var a={},r=o.split(De.dateTimeDelimiter),t;if(r.length>2)return a;if(/:/.test(r[0])?t=r[0]:(a.date=r[0],t=r[1],De.timeZoneDelimiter.test(a.date)&&(a.date=o.split(De.timeZoneDelimiter)[0],t=o.substr(a.date.length,o.length))),t){var e=De.timezone.exec(t);e?(a.time=t.replace(e[1],""),a.timezone=e[1]):a.time=t}return a}function En(o,a){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+a)+"})|(\\d{2}|[+-]\\d{"+(2+a)+"})$)"),t=o.match(r);if(!t)return{year:NaN,restDateString:""};var e=t[1]?parseInt(t[1]):null,n=t[2]?parseInt(t[2]):null;return{year:n===null?e:n*100,restDateString:o.slice((t[1]||t[2]).length)}}function Nn(o,a){if(a===null)return new Date(NaN);var r=o.match(xn);if(!r)return new Date(NaN);var t=!!r[4],e=ve(r[1]),n=ve(r[2])-1,i=ve(r[3]),u=ve(r[4]),s=ve(r[5])-1;if(t)return $n(a,u,s)?Hn(a,u,s):new Date(NaN);var l=new Date(0);return!In(a,n,i)||!An(a,e)?new Date(NaN):(l.setUTCFullYear(a,n,Math.max(e,i)),l)}function ve(o){return o?parseInt(o):1}function Un(o){var a=o.match(kn);if(!a)return NaN;var r=Fe(a[1]),t=Fe(a[2]),e=Fe(a[3]);return Ln(r,t,e)?r*Ee+t*Ye+e*1e3:NaN}function Fe(o){return o&&parseFloat(o.replace(",","."))||0}function Sn(o){if(o==="Z")return 0;var a=o.match(_n);if(!a)return 0;var r=a[1]==="+"?-1:1,t=parseInt(a[2]),e=a[3]&&parseInt(a[3])||0;return Fn(t,e)?r*(t*Ee+e*Ye):NaN}function Hn(o,a,r){var t=new Date(0);t.setUTCFullYear(o,0,4);var e=t.getUTCDay()||7,n=(a-1)*7+r+1-e;return t.setUTCDate(t.getUTCDate()+n),t}var Wn=[31,null,31,30,31,30,31,31,30,31,30,31];function At(o){return o%400===0||o%4===0&&o%100!==0}function In(o,a,r){return a>=0&&a<=11&&r>=1&&r<=(Wn[a]||(At(o)?29:28))}function An(o,a){return a>=1&&a<=(At(o)?366:365)}function $n(o,a,r){return a>=1&&a<=53&&r>=0&&r<=6}function Ln(o,a,r){return o===24?a===0&&r===0:r>=0&&r<60&&a>=0&&a<60&&o>=0&&o<25}function Fn(o,a){return a>=0&&a<=59}function Rn(o,a){var r,t;d(1,arguments);var e=f(o);if(isNaN(e.getTime()))throw new RangeError("Invalid time value");var n=String((r=a==null?void 0:a.format)!==null&&r!==void 0?r:"extended"),i=String((t=a==null?void 0:a.representation)!==null&&t!==void 0?t:"complete");if(n!=="extended"&&n!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(i!=="date"&&i!=="time"&&i!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var u="",s="",l=n==="extended"?"-":"",c=n==="extended"?":":"";if(i!=="time"){var v=b(e.getDate(),2),g=b(e.getMonth()+1,2),w=b(e.getFullYear(),4);u="".concat(w).concat(l).concat(g).concat(l).concat(v)}if(i!=="date"){var y=e.getTimezoneOffset();if(y!==0){var E=Math.abs(y),_=b(Math.floor(E/60),2),S=b(E%60,2),A=y<0?"+":"-";s="".concat(A).concat(_,":").concat(S)}else s="Z";var B=b(e.getHours(),2),L=b(e.getMinutes(),2),K=b(e.getSeconds(),2),I=u===""?"":"T",F=[B,L,K].join(c);u="".concat(u).concat(I).concat(F).concat(s)}return u}function qn(o,a){d(2,arguments);var r=f(o).getTime(),t=f(a.start).getTime(),e=f(a.end).getTime();if(!(t<=e))throw new RangeError("Invalid interval");return r>=t&&r<=e}var Me={exports:{}},pt;function Qn(){return pt||(pt=1,function(o,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var r=function(s,l){switch(s){case"P":return l.date({width:"short"});case"PP":return l.date({width:"medium"});case"PPP":return l.date({width:"long"});case"PPPP":default:return l.date({width:"full"})}},t=function(s,l){switch(s){case"p":return l.time({width:"short"});case"pp":return l.time({width:"medium"});case"ppp":return l.time({width:"long"});case"pppp":default:return l.time({width:"full"})}},e=function(s,l){var c=s.match(/(P+)(p+)?/)||[],v=c[1],g=c[2];if(!g)return r(s,l);var w;switch(v){case"P":w=l.dateTime({width:"short"});break;case"PP":w=l.dateTime({width:"medium"});break;case"PPP":w=l.dateTime({width:"long"});break;case"PPPP":default:w=l.dateTime({width:"full"});break}return w.replace("{{date}}",r(v,l)).replace("{{time}}",t(g,l))},n={p:t,P:e},i=n;a.default=i,o.exports=a.default}(Me,Me.exports)),Me.exports}var Bn=Qn();const jn=Rt(Bn),Gn={dayOfMonth:"d",fullDate:"PP",fullDateWithWeekday:"PPPP",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aaa",fullDateTime24h:"PP HH:mm",fullTime:"p",fullTime12h:"hh:mm aaa",fullTime24h:"HH:mm",hours12h:"hh",hours24h:"HH",keyboardDate:"P",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aaa",keyboardDateTime24h:"P HH:mm",minutes:"mm",month:"LLLL",monthAndDate:"MMMM d",monthAndYear:"LLLL yyyy",monthShort:"MMM",weekday:"EEEE",weekdayShort:"EEE",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",seconds:"ss",shortDate:"MMM d",year:"yyyy"};class Xn{constructor({locale:a,formats:r}={}){this.lib="date-fns",this.is12HourCycleInCurrentLocale=()=>{var t;return this.locale?/a/.test((t=this.locale.formatLong)===null||t===void 0?void 0:t.time()):!0},this.getFormatHelperText=t=>{var e,n;const i=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,u=this.locale||Je;return(n=(e=t.match(i))===null||e===void 0?void 0:e.map(s=>{const l=s[0];if(l==="p"||l==="P"){const c=jn[l];return c(s,u.formatLong,{})}return s}).join("").replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase())!==null&&n!==void 0?n:t},this.parseISO=t=>Cn(t),this.toISO=t=>Rn(t,{format:"extended"}),this.getCurrentLocaleCode=()=>{var t;return((t=this.locale)===null||t===void 0?void 0:t.code)||"en-US"},this.addSeconds=(t,e)=>zt(t,e),this.addMinutes=(t,e)=>Zt(t,e),this.addHours=(t,e)=>Kt(t,e),this.addDays=(t,e)=>qe(t,e),this.addWeeks=(t,e)=>er(t,e),this.addMonths=(t,e)=>Oe(t,e),this.addYears=(t,e)=>st(t,e),this.isValid=t=>Pt(this.date(t)),this.getDiff=(t,e,n)=>{var i;const u=(i=this.date(e))!==null&&i!==void 0?i:t;if(!this.isValid(u))return 0;switch(n){case"years":return rr(t,u);case"quarters":return or(t,u);case"months":return Mt(t,u);case"weeks":return lr(t,u);case"days":return Ot(t,u);case"hours":return dr(t,u);case"minutes":return fr(t,u);case"seconds":return vr(t,u);default:return Ne(t,u)}},this.isAfter=(t,e)=>ye(t,e),this.isBefore=(t,e)=>ne(t,e),this.startOfDay=t=>ie(t),this.endOfDay=t=>Qe(t),this.getHours=t=>ha(t),this.setHours=(t,e)=>Tn(t,e),this.setMinutes=(t,e)=>Dn(t,e),this.getSeconds=t=>ga(t),this.setSeconds=(t,e)=>On(t,e),this.isSameDay=(t,e)=>ba(t,e),this.isSameMonth=(t,e)=>Da(t,e),this.isSameYear=(t,e)=>Ta(t,e),this.isSameHour=(t,e)=>Ma(t,e),this.startOfYear=t=>Te(t),this.endOfYear=t=>Ae(t),this.startOfMonth=t=>be(t),this.endOfMonth=t=>Be(t),this.startOfWeek=t=>Le(t,{locale:this.locale}),this.endOfWeek=t=>Ie(t,{locale:this.locale}),this.getYear=t=>wa(t),this.setYear=(t,e)=>Pn(t,e),this.date=t=>typeof t>"u"?new Date:t===null?null:new Date(t),this.toJsDate=t=>t,this.parse=(t,e)=>t===""?null:wn(t,e,new Date,{locale:this.locale}),this.format=(t,e)=>this.formatByString(t,this.formats[e]),this.formatByString=(t,e)=>ca(t,e,{locale:this.locale}),this.isEqual=(t,e)=>t===null&&e===null?!0:ya(t,e),this.isNull=t=>t===null,this.isAfterDay=(t,e)=>ye(t,Qe(e)),this.isBeforeDay=(t,e)=>ne(t,ie(e)),this.isBeforeYear=(t,e)=>ne(t,Te(e)),this.isAfterYear=(t,e)=>ye(t,Ae(e)),this.isWithinRange=(t,[e,n])=>qn(t,{start:e,end:n}),this.formatNumber=t=>t,this.getMinutes=t=>ma(t),this.getDate=t=>fa(t),this.setDate=(t,e)=>bn(t,e),this.getMonth=t=>pa(t),this.getDaysInMonth=t=>Ut(t),this.setMonth=(t,e)=>Mn(t,e),this.getMeridiemText=t=>t==="am"?"AM":"PM",this.getNextMonth=t=>Oe(t,1),this.getPreviousMonth=t=>Oe(t,-1),this.getMonthArray=t=>{const n=[Te(t)];for(;n.length<12;){const i=n[n.length-1];n.push(this.getNextMonth(i))}return n},this.mergeDateAndTime=(t,e)=>this.setSeconds(this.setMinutes(this.setHours(t,this.getHours(e)),this.getMinutes(e)),this.getSeconds(e)),this.getWeekdays=()=>{const t=new Date;return hr({start:Le(t,{locale:this.locale}),end:Ie(t,{locale:this.locale})}).map(e=>this.formatByString(e,"EEEEEE"))},this.getWeekArray=t=>{const e=Le(be(t),{locale:this.locale}),n=Ie(Be(t),{locale:this.locale});let i=0,u=e;const s=[];let l=null;for(;ne(u,n);){const c=Math.floor(i/7);s[c]=s[c]||[];const v=va(u);l!==v&&(l=v,s[c].push(u),i+=1),u=qe(u,1)}return s},this.getYearRange=(t,e)=>{const n=Te(t),i=Ae(e),u=[];let s=n;for(;ne(s,i);)u.push(s),s=st(s,1);return u},this.locale=a,this.formats=Object.assign({},Gn,r)}isBeforeMonth(a,r){return ne(a,be(r))}isAfterMonth(a,r){return ye(a,be(r))}}var zn=new Xn({});function Vn(o,a){return ei(o)||Kn(o,a)||Jn(o,a)||Zn()}function Zn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jn(o,a){if(o){if(typeof o=="string")return gt(o,a);var r=Object.prototype.toString.call(o).slice(8,-1);if(r==="Object"&&o.constructor&&(r=o.constructor.name),r==="Map"||r==="Set")return Array.from(o);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gt(o,a)}}function gt(o,a){(a==null||a>o.length)&&(a=o.length);for(var r=0,t=new Array(a);r<a;r++)t[r]=o[r];return t}function Kn(o,a){var r=o==null?null:typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(r!=null){var t=[],e=!0,n=!1,i,u;try{for(r=r.call(o);!(e=(i=r.next()).done)&&(t.push(i.value),!(a&&t.length===a));e=!0);}catch(s){n=!0,u=s}finally{try{!e&&r.return!=null&&r.return()}finally{if(n)throw u}}return t}}function ei(o){if(Array.isArray(o))return o}function wt(o,a){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);a&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})),r.push.apply(r,t)}return r}function yt(o){for(var a=1;a<arguments.length;a++){var r=arguments[a]!=null?arguments[a]:{};a%2?wt(Object(r),!0).forEach(function(t){m(o,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):wt(Object(r)).forEach(function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(r,t))})}return o}function ti(o,a,r){return Object.defineProperty(o,"prototype",{writable:!1}),o}function ri(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function m(o,a,r){return a in o?Object.defineProperty(o,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[a]=r,o}var $t=60,ai=$t*60,bt=ti(function o(a){var r=this;ri(this,o),m(this,"adapter",void 0),m(this,"cloneAdapter",function(t,e){var n={MomentUtils:{formats:{monthNumber:"M",dayOfMonthNumber:"D",fullOrdinalWeek:"dddd, MMMM Do YYYY",slashDate:"YYYY/MM/DD",weekday:"dddd",weekdaymin:"dd",quarter:"[Q]Q"}},DateFnsUtils:{formats:{monthNumber:"M",dayOfMonthNumber:"d",weekday:"EEEE",weekdaymin:"EEEEEE",slashDate:"yyyy/MM/dd",fullOrdinalWeek:"EEEE, MMMM do yyyy",quarter:"QQQ"}},LuxonUtils:{formats:{monthNumber:"M",dayOfMonthNumber:"d",weekday:"EEEE",weekdaymin:"EEEEE",slashDate:"yyyy/MM/dd",fullOrdinalWeek:"EEEE, MMMM dd yyyy",quarter:"Qq"}}},i=function(_){return{formats:_.formats,locale:_.locale}},u=e||i,s=t.constructor,l=t.constructor.name,c=n[l]||n.DateFnsUtils,v=c.getOptions,g=v===void 0?i:v,w=c.formats,y=g(t);return new s(Object.assign({},u(Object.assign({},y,{formats:Object.assign({},y.formats,w)}))))}),m(this,"format",function(t,e,n){var i=n?r.getAdapterWithNewLocale(n):r.adapter;return i.format(t,e)}),m(this,"getAdapterWithNewLocale",function(t){return r.cloneAdapter(r.adapter,function(e){return yt(yt({},e),{},{locale:t})})}),m(this,"date",function(t){return r.adapter.date(t)}),m(this,"dateToSeconds",function(t){var e=r.adapter.getSeconds(t),n=r.adapter.getMinutes(t)*$t,i=r.adapter.getHours(t)*ai;return e+n+i}),m(this,"secondsToHourMinute",function(t){var e=r.adapter.toJsDate(r.adapter.date(t*1e3));return[e.getUTCHours(),e.getUTCMinutes()]}),m(this,"differenceInCalendarMonths",function(t,e){var n=r.adapter.getYear(t)-r.adapter.getYear(e),i=r.adapter.getMonth(t)-r.adapter.getMonth(e);return n*12+i}),m(this,"getStartOfWeek",function(t,e){var n=e?r.getAdapterWithNewLocale(e):r.adapter;return n.startOfWeek(n.date(t))}),m(this,"formatDate",function(t,e,n){var i=n?r.getAdapterWithNewLocale(n):r.adapter;return i.formatByString(t,e)}),m(this,"getWeekdayMinInLocale",function(t,e){return r.getAdapterWithNewLocale(e).format(t,"weekdaymin")}),m(this,"getMonthInLocale",function(t,e){var n=r.getAdapterWithNewLocale(e);return n.format(n.setMonth(n.date(),t),"month")}),m(this,"getWeekdayInLocale",function(t,e){return r.getAdapterWithNewLocale(e).format(t,"weekday")}),m(this,"getQuarterInLocale",function(t,e){var n=r.getAdapterWithNewLocale(e);return n.format(n.setMonth(n.date(),t*3),"quarter")}),m(this,"getEndOfWeek",function(t){return r.adapter.endOfWeek(t)}),m(this,"getDay",function(t){return Number(r.adapter.formatByString(t,"e"))-1}),m(this,"addWeeks",function(t,e){return r.adapter.addDays(t,e*7)}),m(this,"subWeeks",function(t,e){return r.addWeeks(t,e*-1)}),m(this,"addYears",function(t,e){return r.adapter.addMonths(t,e*12)}),m(this,"subYears",function(t,e){return r.addYears(t,e*-1)}),m(this,"isSameYear",function(t,e){return t&&e?r.adapter.isSameYear(t,e):!1}),m(this,"isStartOfMonth",function(t){return r.adapter.isSameDay(t,r.adapter.startOfMonth(t))}),m(this,"isEndOfMonth",function(t){return r.adapter.isSameDay(t,r.adapter.endOfMonth(t))}),m(this,"isDayInRange",function(t,e,n){return r.adapter.isWithinRange(t,[e,n])}),m(this,"isSameDay",function(t,e){return t&&e?r.adapter.isSameDay(t,e):!1}),m(this,"isSameMonth",function(t,e){return t&&e?r.adapter.isSameMonth(t,e):!1}),m(this,"dateRangeIncludesDates",function(t,e){var n=Vn(t,2),i=n[0],u=n[1];if(i&&u&&Array.isArray(e)&&e.length)for(var s=0;s<e.length;s++){var l=e[s];if(r.isDayInRange(l,i,u))return!0}return!1}),m(this,"subDays",function(t,e){return r.adapter.addDays(t,e*-1)}),m(this,"subMonths",function(t,e){return r.adapter.addMonths(t,e*-1)}),m(this,"min",function(t){return t.reduce(function(e,n){return r.adapter.isBefore(n,e)?n:e})}),m(this,"max",function(t){return t.reduce(function(e,n){return r.adapter.isAfter(n,e)?n:e})}),m(this,"getEffectiveMinDate",function(t){var e=t.minDate,n=t.includeDates;if(n&&e){var i=n.filter(function(u){return r.isOnOrAfterDay(u,e)});return r.min(i)}else{if(n&&n.length)return r.min(n);if(!(n&&n.length)&&e)return e}return r.adapter.date()}),m(this,"getEffectiveMaxDate",function(t){var e=t.maxDate,n=t.includeDates;if(n&&e){var i=n.filter(function(u){return r.isOnOrBeforeDay(u,e)});return r.max(i)}else{if(n)return r.max(n);if(!n&&e)return e}return r.adapter.date()}),m(this,"monthDisabledBefore",function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,i=e.includeDates,u=r.subMonths(t,1);return!!n&&r.differenceInCalendarMonths(n,u)>0||!!i&&i.every(function(s){return r.differenceInCalendarMonths(s,u)>0})||!1}),m(this,"monthDisabledAfter",function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.maxDate,i=e.includeDates,u=r.adapter.addMonths(t,1);return!!n&&r.differenceInCalendarMonths(u,n)>0||!!i&&i.every(function(s){return r.differenceInCalendarMonths(u,s)>0})||!1}),m(this,"setDate",function(t,e){var n=r.adapter.startOfMonth(t),i=r.adapter.mergeDateAndTime(n,t),u=r.adapter.setSeconds(i,r.adapter.getSeconds(t));return r.adapter.addDays(u,e-1)}),m(this,"getDate",function(t){return Number(r.adapter.format(t,"dayOfMonthNumber"))}),m(this,"applyDateToTime",function(t,e){if(!t)return e;var n=r.adapter.getYear(e),i=r.adapter.getMonth(e),u=r.getDate(e),s=r.adapter.setYear(t,n),l=r.adapter.setMonth(s,i);return r.setDate(l,u)}),m(this,"applyTimeToDate",function(t,e){return t?r.adapter.setSeconds(r.adapter.mergeDateAndTime(t,e),0):e}),m(this,"isDayDisabled",function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,i=e.maxDate,u=e.excludeDates,s=e.includeDates,l=e.filterDate;return r.isOutOfBounds(t,{minDate:n,maxDate:i})||u&&u.some(function(c){return r.adapter.isSameDay(t,c)})||s&&!s.some(function(c){return r.adapter.isSameDay(t,c)})||l&&!l(t)||!1}),m(this,"isOnOrAfterDay",function(t,e){return r.adapter.isSameDay(t,e)?!0:r.adapter.isAfter(t,e)}),m(this,"isOnOrBeforeDay",function(t,e){return r.adapter.isSameDay(t,e)?!0:r.adapter.isBefore(t,e)}),m(this,"isOutOfBounds",function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,i=e.maxDate;return!!n&&!r.isOnOrAfterDay(t,n)||!!i&&!r.isOnOrBeforeDay(t,i)}),m(this,"parseString",function(t,e,n){var i=n?r.getAdapterWithNewLocale(n):r.adapter;return i.parse(t,e)}),m(this,"parse",function(t,e,n){var i=n?r.getAdapterWithNewLocale(n):r.adapter;return i.parse(t,i.formats[e])}),m(this,"setMilliseconds",function(t,e){return r.adapter.date(r.adapter.getSeconds(r.adapter.startOfDay(t))*1e3+e)}),m(this,"set",function(t,e){var n=t;return e.year!=null&&(n=r.setYear(n,e.year)),e.month!=null&&(n=r.setMonth(n,e.month)),e.date!=null&&(n=r.setDate(n,Number(e.date))),e.hours!=null&&(n=r.setHours(n,Number(e.hours))),e.minutes!=null&&(n=r.setMinutes(n,Number(e.minutes))),e.seconds!=null&&(n=r.setSeconds(n,Number(e.seconds))),n}),m(this,"getQuarter",function(t){return Math.floor(r.getMonth(t)/3)+1}),m(this,"setSeconds",function(t,e){return r.adapter.setSeconds(t,e)}),m(this,"setMinutes",function(t,e){return r.adapter.setMinutes(t,e)}),m(this,"setHours",function(t,e){return r.adapter.setHours(t,e)}),m(this,"setMonth",function(t,e){return r.adapter.setMonth(t,e)}),m(this,"setYear",function(t,e){return r.adapter.setYear(t,e)}),m(this,"getMinutes",function(t){return r.adapter.getMinutes(t)}),m(this,"getHours",function(t){return r.adapter.getHours(t)}),m(this,"getMonth",function(t){return r.adapter.getMonth(t)}),m(this,"getYear",function(t){return r.adapter.getYear(t)}),m(this,"getStartOfMonth",function(t){return r.adapter.startOfMonth(t)}),m(this,"getEndOfMonth",function(t){return r.adapter.endOfMonth(t)}),m(this,"addDays",function(t,e){return r.adapter.addDays(t,e)}),m(this,"addMonths",function(t,e){return r.adapter.addMonths(t,e)}),m(this,"isBefore",function(t,e){return r.adapter.isBefore(t,e)}),m(this,"isAfter",function(t,e){return r.adapter.isAfter(t,e)}),m(this,"isEqual",function(t,e){return r.adapter.isEqual(t,e)}),m(this,"isValid",function(t){return r.adapter.isValid(t)}),this.adapter=this.cloneAdapter(a)});function Ge(o){"@babel/helpers - typeof";return Ge=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Ge(o)}function Xe(){return Xe=Object.assign?Object.assign.bind():function(o){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(o[t]=r[t])}return o},Xe.apply(this,arguments)}function Re(o,a){return ui(o)||oi(o,a)||ii(o,a)||ni()}function ni(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
4
4
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ii(o,a){if(o){if(typeof o=="string")return Tt(o,a);var r=Object.prototype.toString.call(o).slice(8,-1);if(r==="Object"&&o.constructor&&(r=o.constructor.name),r==="Map"||r==="Set")return Array.from(o);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Tt(o,a)}}function Tt(o,a){(a==null||a>o.length)&&(a=o.length);for(var r=0,t=new Array(a);r<a;r++)t[r]=o[r];return t}function oi(o,a){var r=o==null?null:typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(r!=null){var t=[],e=!0,n=!1,i,u;try{for(r=r.call(o);!(e=(i=r.next()).done)&&(t.push(i.value),!(a&&t.length===a));e=!0);}catch(s){n=!0,u=s}finally{try{!e&&r.return!=null&&r.return()}finally{if(n)throw u}}return t}}function ui(o){if(Array.isArray(o))return o}function si(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function li(o,a){for(var r=0;r<a.length;r++){var t=a[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(o,t.key,t)}}function ci(o,a,r){return a&&li(o.prototype,a),Object.defineProperty(o,"prototype",{writable:!1}),o}function di(o,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(a&&a.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),a&&ze(o,a)}function ze(o,a){return ze=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ze(o,a)}function fi(o){var a=hi();return function(){var t=ke(o),e;if(a){var n=ke(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return vi(this,e)}}function vi(o,a){if(a&&(Ge(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return q(o)}function q(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function hi(){if(typeof Reflect>"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 ke(o){return ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ke(o)}function Q(o,a,r){return a in o?Object.defineProperty(o,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[a]=r,o}var mi=60,pi=mi*60,gi=pi*24,Dt=gi/2,wi=function(o){di(r,o);var a=fi(r);function r(t){var e;return si(this,r),e=a.call(this,t),Q(q(e),"dateHelpers",void 0),Q(q(e),"state",{steps:[],value:null}),Q(q(e),"onChange",function(n){if(e.setState({value:n.value[0]}),n.value.length===0){e.props.nullable&&e.props.onChange&&e.props.onChange(null);return}var i=typeof n.value[0].id=="string"?parseInt(n.value[0].id,10):n.value[0].id||0;e.handleChange(i)}),Q(q(e),"secondsToLabel",function(n,i){var u=e.dateHelpers.secondsToHourMinute(n),s=Re(u,2),l=s[0],c=s[1],v=function(y){return y<10?"0".concat(y):y};if(i==="12"){var g=n>=Dt;return g&&(l-=12),l===0&&(l=12),"".concat(l,":").concat(v(c)," ").concat(g?"PM":"AM")}return"".concat(v(l),":").concat(v(c))}),Q(q(e),"stringToOptions",function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"12",u=/^(1[0-2]|0?[1-9]):([0-5][0-9]) ?([AaPp][Mm]?)?$/,s=/^([0-9]|0[0-9]|1[0-9]|2[0-3]):([0-5][0-9])$/,l=i==="12"?u:s,c=n.match(l);if(!c)return[];var v=Number(c[1]),g=Number(c[2]),w=[];switch(i){case"24":{w=[{hours:v,minutes:g}];break}case"12":default:{var y=v%12,E=c[3];if(!E)w=[{hours:y,minutes:g},{hours:y+12,minutes:g}];else{var _=E.toLowerCase()[0]==="a"?y:y+12;w=[{hours:_,minutes:g}]}break}}return w.map(function(S){var A=S.hours,B=S.minutes,L=A*3600+B*60;return{id:L,label:e.secondsToLabel(L,i)}})}),Q(q(e),"handleChange",function(n){var i=e.dateHelpers.secondsToHourMinute(n),u=Re(i,2),s=u[0],l=u[1],c=e.setTime(e.props.value,s,l,0);e.props.onChange&&e.props.onChange(c)}),Q(q(e),"setTime",function(n,i,u,s){var l=e.dateHelpers,c=l.setSeconds,v=l.setMinutes,g=l.setHours,w=e.props.adapter.startOfDay(e.props.adapter.date(n||void 0));return c(v(g(w,i),u),s)}),Q(q(e),"getTimeWindowInSeconds",function(n){var i=e.props,u=i.minTime,s=i.maxTime,l=i.ignoreMinMaxDateComponent,c=e.setTime(e.props.value,0,0,0),v=e.setTime(e.props.value,24,0,0);!u||e.props.adapter.isBefore(u,c)&&!l?u=c:u=e.setTime(e.props.value,e.props.adapter.getHours(u),e.props.adapter.getMinutes(u),e.props.adapter.getSeconds(u)),!s||e.props.adapter.isAfter(s,v)&&!l?s=v:s=e.setTime(e.props.value,e.props.adapter.getHours(s),e.props.adapter.getMinutes(s),e.props.adapter.getSeconds(s)+1);var g=e.props.adapter.toJsDate(u),w=e.props.adapter.toJsDate(s),y=e.props.adapter.toJsDate(c);return{start:(g-y)/1e3,end:(w-y)/1e3}}),Q(q(e),"buildSteps",function(){var n=e.props.step,i=n===void 0?900:n,u=e.getTimeWindowInSeconds(i);(u.end-u.start)/i;for(var s=[],l=u.start;l<u.end;l+=i)s.push(l);return s}),Q(q(e),"creatableFilterOptions",function(n,i,u,s){var l=e.stringToOptions(i,e.props.format);return l.length?l:qt(n,i,u,s)}),Q(q(e),"buildSelectedOption",function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"12",u=e.dateHelpers.dateToSeconds(n);return{id:u,label:e.secondsToLabel(u,i||"12")}}),e.dateHelpers=new bt(t.adapter),e}return ci(r,[{key:"componentDidMount",value:function(){var e=this.buildSteps();if(this.props.value&&this.props.adapter.isValid(this.props.value))this.setState({steps:e,value:this.buildSelectedOption(this.props.value,this.props.format)});else{var n=this.dateHelpers.dateToSeconds(this.props.adapter.date()),i=Dt;e.forEach(function(u){Math.abs(u-n)<Math.abs(i-n)&&(i=u)}),this.setState({steps:e,value:this.props.nullable?void 0:{id:i,label:this.secondsToLabel(i,this.props.format)}}),(this.props.value||!this.props.nullable&&!this.props.value)&&this.handleChange(i)}}},{key:"componentDidUpdate",value:function(e){var n=e.format!==this.props.format,i=e.step!==this.props.step,u=e.adapter!==this.props.adapter,s=e.minTime!==this.props.minTime,l=e.maxTime!==this.props.maxTime;if(u&&(this.dateHelpers=new bt(this.props.adapter)),n||i||s||l){var c=this.buildSteps();this.setState({steps:c})}e.value&&!this.props.value&&this.setState({value:null})}},{key:"render",value:function(){var e=this,n=this.props,i=n.format,u=n.overrides,s=u===void 0?{}:u,l=n.adapter,c=Qt(s.Select,Bt),v=Re(c,2),g=v[0],w=v[1];w.overrides=jt({Dropdown:{style:{maxHeight:"126px"}}},w.overrides);var y=this.props.value&&l.isValid(this.props.value)?this.buildSelectedOption(this.props.value,this.props.format):this.state.value;return We.createElement(Gt.Consumer,null,function(E){var _=i==="12"?E.datepicker.timePickerAriaLabel12Hour:E.datepicker.timePickerAriaLabel24Hour;return We.createElement(g,Xe({"aria-label":_,disabled:e.props.disabled,error:e.props.error,positive:e.props.positive,size:e.props.size,placeholder:e.props.placeholder||"HH:mm",options:e.state.steps.map(function(S){return{id:S,label:e.secondsToLabel(S,e.props.format)}}),filterOptions:e.props.creatable?e.creatableFilterOptions:void 0,onChange:e.onChange,value:y&&[y],clearable:!1,backspaceRemoves:!1,valueKey:"label"},w))})}}]),r}(We.Component);Q(wi,"defaultProps",{format:"12",step:900,creatable:!1,adapter:zn,ignoreMinMaxDateComponent:!1});export{bt as D,wi as T,zn as a};
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import{r as a,E as m,_ as d}from"./index.
|
1
|
+
import{r as a,E as m,_ as d}from"./index.D97xl78q.js";import{e as f,f as b}from"./possibleConstructorReturn.BHxvTsgt.js";var p=a.forwardRef(function(r,t){var e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return a.createElement(m,d({iconAttrs:e,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},r,{ref:t}),a.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),a.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}))});p.displayName="Close";function h(r){if(Array.isArray(r))return r}function A(r,t){var e=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(e!=null){var i,u,s,o,l=[],n=!0,c=!1;try{if(s=(e=e.call(r)).next,t===0){if(Object(e)!==e)return;n=!1}else for(;!(n=(i=s.call(e)).done)&&(l.push(i.value),l.length!==t);n=!0);}catch(y){c=!0,u=y}finally{try{if(!n&&e.return!=null&&(o=e.return(),Object(o)!==o))return}finally{if(c)throw u}}return l}}function _(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T(r,t){return h(r)||A(r,t)||f(r,t)||_()}function v(r){if(Array.isArray(r))return b(r)}function w(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function E(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x(r){return v(r)||w(r)||f(r)||E()}export{p as C,T as _,x as a};
|
@@ -1 +1 @@
|
|
1
|
-
import{K as a,g as d}from"./index.
|
1
|
+
import{K as a,g as d}from"./index.D97xl78q.js";var r,u;function q(){if(u)return r;u=1;var e=a(),i=0;function n(t){var o=++i;return e(t)+o}return r=n,r}var s=q();const I=d(s);export{I as u};
|
streamlit/static/static/js/{useBasicWidgetState.QKx5EFIj.js → useBasicWidgetState.ByOGmtKn.js}
RENAMED
@@ -1 +1 @@
|
|
1
|
-
import{r as t,M as h}from"./index.
|
1
|
+
import{r as t,M as h}from"./index.D97xl78q.js";import{u as p}from"./FormClearHelper.CHYZBZGR.js";function v({getStateFromWidgetMgr:n,getDefaultState:c,updateWidgetMgrState:i,element:s,widgetMgr:u,fragmentId:l,onFormCleared:r}){const[V,o]=t.useState(()=>n(u,s)??c(u,s)),[f,a]=t.useState({value:V,fromUi:!1});t.useEffect(()=>{h(f)||(a(null),o(f.value),i(s,u,f,l))},[f,i,s,u,l]);const e=t.useCallback(()=>{a({value:c(u,s),fromUi:!0}),r==null||r()},[a,s,c,u,r]);return p({widgetMgr:u,element:s,onFormCleared:e}),[V,a]}function S({getStateFromWidgetMgr:n,getDefaultStateFromProto:c,getCurrStateFromProto:i,updateWidgetMgrState:s,element:u,widgetMgr:l,fragmentId:r,onFormCleared:V}){const o=t.useCallback((e,x)=>c(x),[c]),[f,a]=v({getStateFromWidgetMgr:n,getDefaultState:o,updateWidgetMgrState:s,element:u,widgetMgr:l,fragmentId:r,onFormCleared:V});return t.useEffect(()=>{u.setValue&&(u.setValue=!1,a({value:i(u),fromUi:!1}))},[u,i,a]),[f,a]}export{S as a,v as u};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as o,cp as i}from"./index.
|
1
|
+
import{r as o,cp as i}from"./index.D97xl78q.js";import{i as c}from"./inputUtils.CQWz5UKz.js";function E(r,n,s,t){o.useEffect(()=>{t||r!==n&&s(r)},[r,n,t,s])}function l(r,n,s,t,u,f=!1){return o.useCallback(e=>{const a=f?e.metaKey||e.ctrlKey:!0;!c(e)||!a||(e.preventDefault(),s&&n(),t.allowFormEnterToSubmit(r)&&t.submitForm(r,u))},[r,u,s,n,t,f])}function F({formId:r,maxChars:n,setDirty:s,setUiValue:t,setValueWithSource:u}){return o.useCallback(f=>{const{value:e}=f.target;n!==0&&e.length>n||(s(!0),t(e),i({formId:r})&&u({value:e,fromUi:!0}))},[r,n,s,t,u])}export{F as a,l as b,E as u};
|
streamlit/static/static/js/{withFullScreenWrapper.DrAgwq5e.js → withFullScreenWrapper.Cg-VqiDm.js}
RENAMED
@@ -1 +1 @@
|
|
1
|
-
import{n as p,r as n,aE as x,aD as h,bc as y,z as C,bd as b,j as i,be as w}from"./index.
|
1
|
+
import{n as p,r as n,aE as x,aD as h,bc as y,z as C,bd as b,j as i,be as w}from"./index.D97xl78q.js";const F=p("div",{target:"e1q5ojhd0"})(({theme:e,isExpanded:t})=>({width:"100%",...t?{position:"fixed",top:0,left:0,bottom:0,right:0,background:e.colors.bgColor,zIndex:e.zIndices.fullscreenWrapper,padding:e.spacing.md,paddingTop:e.sizes.fullScreenHeaderHeight,overflow:"auto",display:"flex",alignItems:"center",justifyContent:"center"}:{}})),f=n.createContext(null);f.displayName="ElementFullscreenContext";const S=()=>{const{setFullScreen:e}=n.useContext(x),[t,c]=n.useState(!1),{fullHeight:s,fullWidth:u}=h(y),l=n.useCallback(a=>{c(a),e(a)},[e]),d=n.useCallback(()=>{document.body.style.overflow="hidden",l(!0)},[l]),o=n.useCallback(()=>{document.body.style.overflow="unset",l(!1)},[l]),r=n.useCallback(a=>{a.keyCode===27&&t&&o()},[o,t]);return n.useEffect(()=>(document.addEventListener("keydown",r,!1),()=>{document.removeEventListener("keydown",r,!1)}),[r]),n.useMemo(()=>({expanded:t,zoomIn:d,zoomOut:o,fullHeight:s,fullWidth:u}),[t,d,o,s,u])},g=({children:e,height:t})=>{const c=C(),{expanded:s,fullHeight:u,fullWidth:l,zoomIn:d,zoomOut:o}=S(),[r,a]=b(),m=n.useMemo(()=>({width:s?l:r,height:s?u:t,expanded:s,expand:d,collapse:o}),[s,u,l,t,r,d,o]);return i(f.Provider,{value:m,children:i(F,{ref:a,isExpanded:s,"data-testid":"stFullScreenFrame",theme:c,children:e})})};function v(e){const t=c=>i(g,{children:i(e,{...c})});return t.displayName=`withFullScreenWrapper(${e.displayName||e.name})`,w(t,e)}export{f as E,v as w};
|
streamlit/web/server/__init__.py
CHANGED
@@ -13,7 +13,10 @@
|
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
15
|
from streamlit.web.server.component_request_handler import ComponentRequestHandler
|
16
|
-
from streamlit.web.server.routes import
|
16
|
+
from streamlit.web.server.routes import (
|
17
|
+
allow_all_cross_origin_requests,
|
18
|
+
is_allowed_origin,
|
19
|
+
)
|
17
20
|
from streamlit.web.server.server import Server, server_address_is_unix_socket
|
18
21
|
from streamlit.web.server.stats_request_handler import StatsRequestHandler
|
19
22
|
|
@@ -21,6 +24,7 @@ __all__ = [
|
|
21
24
|
"ComponentRequestHandler",
|
22
25
|
"Server",
|
23
26
|
"StatsRequestHandler",
|
24
|
-
"
|
27
|
+
"allow_all_cross_origin_requests",
|
28
|
+
"is_allowed_origin",
|
25
29
|
"server_address_is_unix_socket",
|
26
30
|
]
|
@@ -16,7 +16,7 @@ from __future__ import annotations
|
|
16
16
|
|
17
17
|
import mimetypes
|
18
18
|
import os
|
19
|
-
from typing import TYPE_CHECKING, Final
|
19
|
+
from typing import TYPE_CHECKING, Final, cast
|
20
20
|
|
21
21
|
import tornado.web
|
22
22
|
|
@@ -83,8 +83,12 @@ class ComponentRequestHandler(tornado.web.RequestHandler):
|
|
83
83
|
self.set_header("Cache-Control", "public")
|
84
84
|
|
85
85
|
def set_default_headers(self) -> None:
|
86
|
-
if streamlit.web.server.routes.
|
86
|
+
if streamlit.web.server.routes.allow_all_cross_origin_requests():
|
87
87
|
self.set_header("Access-Control-Allow-Origin", "*")
|
88
|
+
elif streamlit.web.server.routes.is_allowed_origin(
|
89
|
+
origin := self.request.headers.get("Origin")
|
90
|
+
):
|
91
|
+
self.set_header("Access-Control-Allow-Origin", cast("str", origin))
|
88
92
|
|
89
93
|
def options(self) -> None:
|
90
94
|
"""/OPTIONS handler for preflight CORS checks."""
|
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
from __future__ import annotations
|
16
16
|
|
17
|
-
from typing import Any
|
17
|
+
from typing import Any, cast
|
18
18
|
from urllib.parse import quote
|
19
19
|
|
20
20
|
import tornado.web
|
@@ -25,7 +25,7 @@ from streamlit.runtime.memory_media_file_storage import (
|
|
25
25
|
MemoryMediaFileStorage,
|
26
26
|
get_extension_for_mimetype,
|
27
27
|
)
|
28
|
-
from streamlit.web.server import
|
28
|
+
from streamlit.web.server import allow_all_cross_origin_requests, is_allowed_origin
|
29
29
|
|
30
30
|
_LOGGER = get_logger(__name__)
|
31
31
|
|
@@ -44,8 +44,10 @@ class MediaFileHandler(tornado.web.StaticFileHandler):
|
|
44
44
|
cls._storage = storage
|
45
45
|
|
46
46
|
def set_default_headers(self) -> None:
|
47
|
-
if
|
47
|
+
if allow_all_cross_origin_requests():
|
48
48
|
self.set_header("Access-Control-Allow-Origin", "*")
|
49
|
+
elif is_allowed_origin(origin := self.request.headers.get("Origin")):
|
50
|
+
self.set_header("Access-Control-Allow-Origin", cast("str", origin))
|
49
51
|
|
50
52
|
def set_extra_headers(self, path: str) -> None:
|
51
53
|
"""Add Content-Disposition header for downloadable files.
|
@@ -84,7 +86,11 @@ class MediaFileHandler(tornado.web.StaticFileHandler):
|
|
84
86
|
# static content from a database), override `get_content`,
|
85
87
|
# `get_content_size`, `get_modified_time`, `get_absolute_path`, and
|
86
88
|
# `validate_absolute_path`.
|
87
|
-
def validate_absolute_path(
|
89
|
+
def validate_absolute_path(
|
90
|
+
self,
|
91
|
+
root: str, # noqa: ARG002
|
92
|
+
absolute_path: str,
|
93
|
+
) -> str:
|
88
94
|
try:
|
89
95
|
self._storage.get_file(absolute_path)
|
90
96
|
except MediaFileStorageError:
|
streamlit/web/server/routes.py
CHANGED
@@ -15,12 +15,13 @@
|
|
15
15
|
from __future__ import annotations
|
16
16
|
|
17
17
|
import os
|
18
|
-
from typing import TYPE_CHECKING, Any, Callable
|
18
|
+
from typing import TYPE_CHECKING, Any, Callable, cast
|
19
19
|
|
20
20
|
import tornado.web
|
21
21
|
|
22
22
|
from streamlit import config, file_util
|
23
23
|
from streamlit.web.server.server_util import (
|
24
|
+
allowlisted_origins,
|
24
25
|
emit_endpoint_deprecation_notice,
|
25
26
|
is_xsrf_enabled,
|
26
27
|
)
|
@@ -29,19 +30,26 @@ if TYPE_CHECKING:
|
|
29
30
|
from collections.abc import Awaitable, Sequence
|
30
31
|
|
31
32
|
|
32
|
-
def
|
33
|
-
"""True if cross-origin requests are allowed.
|
34
|
-
|
35
|
-
We only allow cross-origin requests when CORS protection has been disabled
|
36
|
-
with server.enableCORS=False or if using the Node server. When using the
|
37
|
-
Node server, we have a dev and prod port, which count as two origins.
|
33
|
+
def allow_all_cross_origin_requests() -> bool:
|
34
|
+
"""True if cross-origin requests from any origin are allowed.
|
38
35
|
|
36
|
+
We only allow ALL cross-origin requests when CORS protection has been
|
37
|
+
disabled with server.enableCORS=False or if using the Node server in dev
|
38
|
+
mode. When in dev mode, we have a dev and prod port, which count as two
|
39
|
+
origins.
|
39
40
|
"""
|
41
|
+
|
40
42
|
return not config.get_option("server.enableCORS") or config.get_option(
|
41
43
|
"global.developmentMode"
|
42
44
|
)
|
43
45
|
|
44
46
|
|
47
|
+
def is_allowed_origin(origin: Any) -> bool:
|
48
|
+
if not isinstance(origin, str):
|
49
|
+
return False
|
50
|
+
return origin in allowlisted_origins()
|
51
|
+
|
52
|
+
|
45
53
|
class StaticFileHandler(tornado.web.StaticFileHandler):
|
46
54
|
def initialize(
|
47
55
|
self,
|
@@ -111,8 +119,10 @@ class _SpecialRequestHandler(tornado.web.RequestHandler):
|
|
111
119
|
|
112
120
|
def set_default_headers(self) -> None:
|
113
121
|
self.set_header("Cache-Control", "no-cache")
|
114
|
-
if
|
122
|
+
if allow_all_cross_origin_requests():
|
115
123
|
self.set_header("Access-Control-Allow-Origin", "*")
|
124
|
+
elif is_allowed_origin(origin := self.request.headers.get("Origin")):
|
125
|
+
self.set_header("Access-Control-Allow-Origin", cast("str", origin))
|
116
126
|
|
117
127
|
def options(self) -> None:
|
118
128
|
"""/OPTIONS handler for preflight CORS checks.
|
@@ -31,6 +31,10 @@ DEVELOPMENT_PORT: Final = 3000
|
|
31
31
|
AUTH_COOKIE_NAME: Final = "_streamlit_user"
|
32
32
|
|
33
33
|
|
34
|
+
def allowlisted_origins() -> set[str]:
|
35
|
+
return {origin.strip() for origin in config.get_option("server.corsAllowedOrigins")}
|
36
|
+
|
37
|
+
|
34
38
|
def is_url_from_allowed_origins(url: str) -> bool:
|
35
39
|
"""Return True if URL is from allowed origins (for CORS purpose).
|
36
40
|
|
@@ -47,7 +51,11 @@ def is_url_from_allowed_origins(url: str) -> bool:
|
|
47
51
|
|
48
52
|
hostname = url_util.get_hostname(url)
|
49
53
|
|
50
|
-
|
54
|
+
allowlisted_domains = [
|
55
|
+
url_util.get_hostname(origin) for origin in allowlisted_origins()
|
56
|
+
]
|
57
|
+
|
58
|
+
allowed_domains: list[str | None | Callable[[], str | None]] = [
|
51
59
|
# Check localhost first.
|
52
60
|
"localhost",
|
53
61
|
"0.0.0.0", # noqa: S104
|
@@ -58,6 +66,7 @@ def is_url_from_allowed_origins(url: str) -> bool:
|
|
58
66
|
# Then try the options that depend on HTTP requests or opening sockets.
|
59
67
|
net_util.get_internal_ip,
|
60
68
|
net_util.get_external_ip,
|
69
|
+
*allowlisted_domains,
|
61
70
|
]
|
62
71
|
|
63
72
|
for allowed_domain in allowed_domains:
|
@@ -14,11 +14,11 @@
|
|
14
14
|
|
15
15
|
from __future__ import annotations
|
16
16
|
|
17
|
-
from typing import TYPE_CHECKING
|
17
|
+
from typing import TYPE_CHECKING, cast
|
18
18
|
|
19
19
|
import tornado.web
|
20
20
|
|
21
|
-
from streamlit.web.server import
|
21
|
+
from streamlit.web.server import allow_all_cross_origin_requests, is_allowed_origin
|
22
22
|
from streamlit.web.server.server_util import emit_endpoint_deprecation_notice
|
23
23
|
|
24
24
|
if TYPE_CHECKING:
|
@@ -31,8 +31,10 @@ class StatsRequestHandler(tornado.web.RequestHandler):
|
|
31
31
|
self._manager = stats_manager
|
32
32
|
|
33
33
|
def set_default_headers(self) -> None:
|
34
|
-
if
|
34
|
+
if allow_all_cross_origin_requests():
|
35
35
|
self.set_header("Access-Control-Allow-Origin", "*")
|
36
|
+
elif is_allowed_origin(origin := self.request.headers.get("Origin")):
|
37
|
+
self.set_header("Access-Control-Allow-Origin", cast("str", origin))
|
36
38
|
|
37
39
|
def options(self) -> None:
|
38
40
|
"""/OPTIONS handler for preflight CORS checks."""
|
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
from __future__ import annotations
|
16
16
|
|
17
|
-
from typing import TYPE_CHECKING, Any, Callable
|
17
|
+
from typing import TYPE_CHECKING, Any, Callable, cast
|
18
18
|
|
19
19
|
import tornado.httputil
|
20
20
|
import tornado.web
|
@@ -60,8 +60,10 @@ class UploadFileRequestHandler(tornado.web.RequestHandler):
|
|
60
60
|
self.set_header("Access-Control-Allow-Headers", "X-Xsrftoken, Content-Type")
|
61
61
|
self.set_header("Vary", "Origin")
|
62
62
|
self.set_header("Access-Control-Allow-Credentials", "true")
|
63
|
-
elif routes.
|
63
|
+
elif routes.allow_all_cross_origin_requests():
|
64
64
|
self.set_header("Access-Control-Allow-Origin", "*")
|
65
|
+
elif routes.is_allowed_origin(origin := self.request.headers.get("Origin")):
|
66
|
+
self.set_header("Access-Control-Allow-Origin", cast("str", origin))
|
65
67
|
|
66
68
|
def options(self, **kwargs: Any) -> None:
|
67
69
|
"""/OPTIONS handler for preflight CORS checks.
|