@unchainedshop/admin-ui 4.8.30 → 4.8.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/403/index.html +3 -2
- package/out/404/index.html +3 -2
- package/out/404.html +3 -2
- package/out/423/index.html +3 -2
- package/out/500/index.html +3 -2
- package/out/_next/static/chunks/0-_s79k4_7ei_.js +5 -0
- package/out/_next/static/chunks/00aks9rqke2x0.js +7 -0
- package/out/_next/static/chunks/00az81dk4vdda.js +54 -0
- package/out/_next/static/chunks/01e4gd649r2tq.js +7 -0
- package/out/_next/static/chunks/01j2wi94k90x0.js +5 -0
- package/out/_next/static/chunks/043i-g05cyvrd.js +1 -0
- package/out/_next/static/chunks/04kyktzbxprj0.js +61 -0
- package/out/_next/static/chunks/05p330iybjojg.js +44 -0
- package/out/_next/static/chunks/05qk8ozexvlxp.js +5 -0
- package/out/_next/static/chunks/06i50j458a7g5.js +12 -0
- package/out/_next/static/chunks/07o9g5hqfpvjc.js +12 -0
- package/out/_next/static/chunks/08o61gwabp3h1.js +33 -0
- package/out/_next/static/chunks/0_bvgo8ev4gs7.js +7 -0
- package/out/_next/static/chunks/0a5nr3-_q7xx1.js +100 -0
- package/out/_next/static/chunks/0amj69l-d5-85.js +1 -0
- package/out/_next/static/chunks/0b05sca2hdcys.js +30 -0
- package/out/_next/static/chunks/0c3kwkqr9evm4.js +5 -0
- package/out/_next/static/chunks/0c4jv8pwvpxei.js +1 -0
- package/out/_next/static/chunks/0c7ljn9lo_0oh.js +5 -0
- package/out/_next/static/chunks/0dqw1oya___hr.js +1 -0
- package/out/_next/static/chunks/0ewr86ctcw7fx.js +1 -0
- package/out/_next/static/chunks/0jham55cr3rhy.js +81 -0
- package/out/_next/static/chunks/0lr7o7tyjmrmf.js +8 -0
- package/out/_next/static/chunks/0mx8opz23nwlb.js +5 -0
- package/out/_next/static/chunks/0n3ixknyc6_ma.js +1 -0
- package/out/_next/static/chunks/0o0e82-3pc7ur.js +78 -0
- package/out/_next/static/chunks/0ohk7l49gjm62.js +5 -0
- package/out/_next/static/chunks/0p31l6a9hynnt.js +6 -0
- package/out/_next/static/chunks/0p7said9rdor1.js +1 -0
- package/out/_next/static/chunks/0q2e8h8498pvo.js +4 -0
- package/out/_next/static/chunks/0qa-zbgmv-k3p.js +9 -0
- package/out/_next/static/chunks/0qj3xdz043z8l.js +12 -0
- package/out/_next/static/chunks/0skst735jufgh.js +71 -0
- package/out/_next/static/chunks/0t28q5fb2jp-6.js +8 -0
- package/out/_next/static/chunks/0tmamaq8exyij.js +1 -0
- package/out/_next/static/chunks/0ydy3ky15gx62.js +1 -0
- package/out/_next/static/chunks/0zh311lu9jf2x.js +5 -0
- package/out/_next/static/chunks/0zpyyygbqx3pf.js +152 -0
- package/out/_next/static/chunks/0zzoylv2rl1xu.js +3 -0
- package/out/_next/static/chunks/1---h4b693b81.js +1 -0
- package/out/_next/static/chunks/10m_etq9t2pkv.js +7 -0
- package/out/_next/static/chunks/11ehf3t7qzbua.js +4 -0
- package/out/_next/static/chunks/11go520d1hcm5.js +1 -0
- package/out/_next/static/chunks/120k989vjsno4.js +1 -0
- package/out/_next/static/chunks/12yd8t4k6c0t1.js +1 -0
- package/out/_next/static/chunks/153ec1_-yt3jb.js +344 -0
- package/out/_next/static/chunks/16le3cqxj12u6.js +5 -0
- package/out/_next/static/chunks/16zxfacsu_jbq.js +1 -0
- package/out/_next/static/chunks/17fibl49qtd6c.js +8 -0
- package/out/_next/static/chunks/182l1mlbf0glb.js +1 -0
- package/out/_next/static/chunks/18xyj4i_i5lyn.js +6 -0
- package/out/_next/static/chunks/1_55km6vm5mc0.js +596 -0
- package/out/_next/static/chunks/1aej6iqnlr74p.js +1 -0
- package/out/_next/static/chunks/1asbed4hne69c.js +7 -0
- package/out/_next/static/chunks/1c60nzy_x4kez.js +277 -0
- package/out/_next/static/chunks/1c77vl6xdqfd4.js +15 -0
- package/out/_next/static/chunks/1da89agg-nacc.js +224 -0
- package/out/_next/static/chunks/1f7-0l47bx76m.js +13 -0
- package/out/_next/static/chunks/1fbsyczyh9hwh.js +1 -0
- package/out/_next/static/chunks/1g96s7-fwvokd.js +2 -0
- package/out/_next/static/chunks/1gqd9vrno0rq4.js +315 -0
- package/out/_next/static/chunks/1hih2cxmgqcd3.js +10 -0
- package/out/_next/static/chunks/1hviha1jcz_og.js +4 -0
- package/out/_next/static/chunks/1il9vuoxtb2_n.js +43 -0
- package/out/_next/static/chunks/1jaatdt0mlypl.js +16 -0
- package/out/_next/static/chunks/1l4g6_of_bbr8.js +5 -0
- package/out/_next/static/chunks/1lezxecnoaxnn.js +32 -0
- package/out/_next/static/chunks/1m27au_nmk8_k.js +71 -0
- package/out/_next/static/chunks/1m4fwgl1mj4d-.js +46 -0
- package/out/_next/static/chunks/1ma82ip9shpkc.js +24 -0
- package/out/_next/static/chunks/1nbh1zkzirnuw.js +1 -0
- package/out/_next/static/chunks/1nohf8_cc6gmw.js +9 -0
- package/out/_next/static/chunks/1os6pvhjeb16o.js +1 -0
- package/out/_next/static/chunks/1qi5yjvzxspwv.js +15 -0
- package/out/_next/static/chunks/1rsexg6dg82f0.js +7 -0
- package/out/_next/static/chunks/1s9v5dndopkuz.js +12 -0
- package/out/_next/static/chunks/1sh2ogc7tcbu-.js +1 -0
- package/out/_next/static/chunks/1sksqjru86hlm.js +1 -0
- package/out/_next/static/chunks/1tkvi0wb-x3v8.js +16 -0
- package/out/_next/static/chunks/1u79pcgqjgjpq.js +1 -0
- package/out/_next/static/chunks/1uqiaqtv_0v2x.js +5 -0
- package/out/_next/static/chunks/1wnuiwsbi70eq.js +116 -0
- package/out/_next/static/chunks/1x8o-luxdxxk7.js +1 -0
- package/out/_next/static/chunks/1yjb7gogaf8po.js +31 -0
- package/out/_next/static/chunks/1zyhzessv0wtg.js +1 -0
- package/out/_next/static/chunks/2-4610weysas_.js +1 -0
- package/out/_next/static/chunks/2-pl31kdikt3k.js +5 -0
- package/out/_next/static/chunks/20c4_1i5r3kkz.js +1 -0
- package/out/_next/static/chunks/20f2gs8iua6fk.js +1 -0
- package/out/_next/static/chunks/20zdaln201w8j.js +277 -0
- package/out/_next/static/chunks/21l46nbaop06z.js +39 -0
- package/out/_next/static/chunks/22-o32hlte36e.js +130 -0
- package/out/_next/static/chunks/231j2_p-ha14w.js +7 -0
- package/out/_next/static/chunks/23s2f7_-ol94s.js +8 -0
- package/out/_next/static/chunks/26_mx-ritu68j.js +24 -0
- package/out/_next/static/chunks/26ckmxeluyknq.js +1 -0
- package/out/_next/static/chunks/26r0y7ldf3iqs.js +6 -0
- package/out/_next/static/chunks/27fzoozwycagi.js +6 -0
- package/out/_next/static/chunks/27jmq7a-vh0b4.js +7 -0
- package/out/_next/static/chunks/283567a82x9qi.js +149 -0
- package/out/_next/static/chunks/29he8uukp5s4u.js +31 -0
- package/out/_next/static/chunks/2adglo0sf0jcg.js +905 -0
- package/out/_next/static/chunks/{2kzyda4a6mqut.js → 2ajr0rk0_yax6.js} +1 -1
- package/out/_next/static/chunks/2b4ewxxz6f462.js +7 -0
- package/out/_next/static/chunks/{3zqfchpzqxd92.css → 2bh2dv7j9m8c8.css} +1 -1
- package/out/_next/static/chunks/2bi8v13lm76lr.js +95 -0
- package/out/_next/static/chunks/2burvpf9877y_.js +44 -0
- package/out/_next/static/chunks/2cj703xtrf5i6.js +46 -0
- package/out/_next/static/chunks/2cj8g3fxmitaa.js +1 -0
- package/out/_next/static/chunks/2ec7xatyld40t.js +7 -0
- package/out/_next/static/chunks/2ho4591ngh3y2.js +61 -0
- package/out/_next/static/chunks/2hoi6cb1lromr.js +4 -0
- package/out/_next/static/chunks/2i5k6tlwd58hp.js +1 -0
- package/out/_next/static/chunks/2iy0jr00qhq-q.js +5 -0
- package/out/_next/static/chunks/2jonbba27xy3u.js +14 -0
- package/out/_next/static/chunks/2l8gepfm4kyjp.js +1 -0
- package/out/_next/static/chunks/2m0rrts8gwqwp.js +1 -0
- package/out/_next/static/chunks/2m_u12ggzosat.js +5 -0
- package/out/_next/static/chunks/2mdns56l5antm.js +5 -0
- package/out/_next/static/chunks/2mrbytgs3uetd.js +4 -0
- package/out/_next/static/chunks/2p9gwjxeui1zd.js +71 -0
- package/out/_next/static/chunks/2pfhy9qy_cijn.js +5 -0
- package/out/_next/static/chunks/2q5k4rozyr2wt.js +4 -0
- package/out/_next/static/chunks/2qx8nnki_qv5v.js +171 -0
- package/out/_next/static/chunks/2r_rj84l3cy7r.js +119 -0
- package/out/_next/static/chunks/2rb1-3t3-sv5s.js +8 -0
- package/out/_next/static/chunks/2rmgaa88-4bpb.js +227 -0
- package/out/_next/static/chunks/2swxmzb-xk_bo.js +108 -0
- package/out/_next/static/chunks/2t0biwx5e_4w_.js +1 -0
- package/out/_next/static/chunks/2ts3v72jkbcdr.js +7 -0
- package/out/_next/static/chunks/2vfexvltv2avy.js +5 -0
- package/out/_next/static/chunks/2vveotzevnkfp.js +1 -0
- package/out/_next/static/chunks/2wkg65dtx56je.js +155 -0
- package/out/_next/static/chunks/2wmsx4gjbgvfv.js +18 -0
- package/out/_next/static/chunks/2xixk0t9e9mnw.js +1 -0
- package/out/_next/static/chunks/2xz7hnr9ikqzq.js +7 -0
- package/out/_next/static/chunks/2y1lq1efnvcdt.js +23 -0
- package/out/_next/static/chunks/2ziasg8l_c9n7.js +5 -0
- package/out/_next/static/chunks/3-ve59izq9j-p.js +1 -0
- package/out/_next/static/chunks/3-wsablhqgzoa.js +1 -0
- package/out/_next/static/chunks/30ppb2wc-m4ph.js +1 -0
- package/out/_next/static/chunks/336k08jwyc5i-.js +1 -0
- package/out/_next/static/chunks/33d061qpkafqm.js +39 -0
- package/out/_next/static/chunks/33fyy6d5mo55_.js +8 -0
- package/out/_next/static/chunks/33kh18frqc3b1.js +5 -0
- package/out/_next/static/chunks/33v05ol-ire9s.js +10 -0
- package/out/_next/static/chunks/33yzdcbu7w60l.js +13 -0
- package/out/_next/static/chunks/348l8p7-vo4l5.js +63 -0
- package/out/_next/static/chunks/35hu5vin0swdf.js +41 -0
- package/out/_next/static/chunks/37a6yquh875rn.js +39 -0
- package/out/_next/static/chunks/3_2i9du5-ffrp.js +59 -0
- package/out/_next/static/chunks/3_84h3z_tewmg.js +145 -0
- package/out/_next/static/chunks/3bo7uiy-wh63m.js +108 -0
- package/out/_next/static/chunks/3c-an5ft_3emc.js +1 -0
- package/out/_next/static/chunks/3d_222ci0_30_.js +41 -0
- package/out/_next/static/chunks/3dldch03dfaed.js +1 -0
- package/out/_next/static/chunks/3eedy49gsvv_t.js +1 -0
- package/out/_next/static/chunks/3fayuejnrsd90.js +15 -0
- package/out/_next/static/chunks/3fqonijzsxy8u.js +28 -0
- package/out/_next/static/chunks/3g1ale0hytu9q.js +12 -0
- package/out/_next/static/chunks/3jxeyjg2g7w94.js +1 -0
- package/out/_next/static/chunks/3k3gvr7-e3g_s.js +5 -0
- package/out/_next/static/chunks/3kwoyyxi_-q7m.js +1 -0
- package/out/_next/static/chunks/3le1bywe19_u9.js +1 -0
- package/out/_next/static/chunks/3lku4-9kpf-mj.js +267 -0
- package/out/_next/static/chunks/3lz5h1tw50wr_.js +54 -0
- package/out/_next/static/chunks/3oq-khgfpo0nx.js +39 -0
- package/out/_next/static/chunks/3ps25ocfalcap.js +43 -0
- package/out/_next/static/chunks/3q3m075m4bxz1.js +2 -0
- package/out/_next/static/chunks/3qzrrjb48t2w3.js +119 -0
- package/out/_next/static/chunks/3r0i-7zjuz9i1.js +6 -0
- package/out/_next/static/chunks/3rgn5xwtr51ul.js +7 -0
- package/out/_next/static/chunks/3ridg_u19b6ih.js +8 -0
- package/out/_next/static/chunks/3skzk-w2ytvku.js +5 -0
- package/out/_next/static/chunks/3srw10h0hcztd.js +68 -0
- package/out/_next/static/chunks/3tgrftdet8sna.js +15 -0
- package/out/_next/static/chunks/3uax_eq1kjjta.js +1 -0
- package/out/_next/static/chunks/3uj94afpsi6cs.js +1 -0
- package/out/_next/static/chunks/3vgurvjr6hkyv.js +4 -0
- package/out/_next/static/chunks/3viepyovs19ub.js +23 -0
- package/out/_next/static/chunks/3vnzp3n_wd3j_.js +1 -0
- package/out/_next/static/chunks/3w8h5lxnd0z4z.js +1 -0
- package/out/_next/static/chunks/3wh4xa9dnw-55.js +194 -0
- package/out/_next/static/chunks/3wlvio5id54ow.js +5 -0
- package/out/_next/static/chunks/3wzvscqui-9ml.js +23 -0
- package/out/_next/static/chunks/3y8h3g1tqukrv.js +36 -0
- package/out/_next/static/chunks/3zcilnj6p9-t5.js +1 -0
- package/out/_next/static/chunks/3zmmdm68s05-t.js +217 -0
- package/out/_next/static/chunks/40l5d7o95aw37.js +4 -0
- package/out/_next/static/chunks/417kn9hki8k81.js +33 -0
- package/out/_next/static/chunks/41p3ng89i5lem.js +5 -0
- package/out/_next/static/chunks/42mofxcd0l7qi.js +1 -0
- package/out/_next/static/chunks/439tz_ubj8h-g.js +342 -0
- package/out/_next/static/chunks/43hfssep7ry-z.js +5 -0
- package/out/_next/static/chunks/45bcpjurhxb-j.js +1 -0
- package/out/_next/static/chunks/turbopack-2c3mg3r-05n1w.js +1 -0
- package/out/_next/static/jOx5PlckLwWIJ5yrvePdU/_buildManifest.js +258 -0
- package/out/_offline/index.html +3 -2
- package/out/account/forgot-password/index.html +3 -2
- package/out/account/index.html +3 -2
- package/out/assortments/AssortmentDetailPage/index.html +3 -2
- package/out/assortments/index.html +3 -2
- package/out/assortments/new/index.html +3 -2
- package/out/copilot/index.html +3 -2
- package/out/country/CountryDetailPage/index.html +3 -2
- package/out/country/index.html +3 -2
- package/out/country/new/index.html +3 -2
- package/out/currency/CurrencyDetailPage/index.html +3 -2
- package/out/currency/index.html +3 -2
- package/out/currency/new/index.html +3 -2
- package/out/delivery-provider/DeliveryProviderDetailPage/index.html +3 -2
- package/out/delivery-provider/index.html +3 -2
- package/out/delivery-provider/new/index.html +3 -2
- package/out/enrollments/EnrollmentDetailPage/index.html +3 -2
- package/out/enrollments/index.html +3 -2
- package/out/events/EventDetailPage/index.html +3 -2
- package/out/events/index.html +3 -2
- package/out/exports/index.html +3 -2
- package/out/external/index.html +3 -2
- package/out/filters/FilterDetailPage/index.html +3 -2
- package/out/filters/index.html +3 -2
- package/out/filters/new/index.html +3 -2
- package/out/index.html +3 -2
- package/out/install/index.html +3 -2
- package/out/language/LanguageDetailPage/index.html +3 -2
- package/out/language/index.html +3 -2
- package/out/language/new/index.html +3 -2
- package/out/log-in/index.html +3 -2
- package/out/orders/OrderDetailPage/index.html +3 -2
- package/out/orders/index.html +3 -2
- package/out/payment-provider/PaymentProviderDetailPage/index.html +3 -2
- package/out/payment-provider/index.html +3 -2
- package/out/payment-provider/new/index.html +3 -2
- package/out/products/ProductDetailPage/index.html +3 -2
- package/out/products/index.html +3 -2
- package/out/products/new/index.html +3 -2
- package/out/quotations/QuotationDetailPage/index.html +3 -2
- package/out/quotations/index.html +3 -2
- package/out/reset-password/index.html +3 -2
- package/out/sign-up/index.html +3 -2
- package/out/styleguide/index.html +3 -2
- package/out/tokens/TokenDetailPage/index.html +3 -2
- package/out/tokens/index.html +3 -2
- package/out/users/UserDetailPage/index.html +3 -2
- package/out/users/index.html +3 -2
- package/out/users/new/index.html +3 -2
- package/out/verify-email/index.html +3 -2
- package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +3 -2
- package/out/warehousing-provider/index.html +3 -2
- package/out/warehousing-provider/new/index.html +3 -2
- package/out/works/WorkDetailPage/index.html +3 -2
- package/out/works/WorkQueueListView/index.html +3 -2
- package/out/works/index.html +3 -2
- package/out/works/management/index.html +3 -2
- package/package.json +36 -36
- package/dist/chunk-3L6EZQ6P.js +0 -135
- package/dist/chunk-54DKBWXV.js +0 -33
- package/dist/chunk-5WPFHQZN.js +0 -388
- package/dist/chunk-6UGLNLJG.js +0 -44
- package/dist/chunk-BMDNY67T.js +0 -22547
- package/dist/chunk-BOMSMJF2.js +0 -77
- package/dist/chunk-COV7BREX.js +0 -50
- package/dist/chunk-E77YIMGR.js +0 -2083
- package/dist/chunk-EJDZRZSZ.js +0 -59
- package/dist/chunk-ELPURWDC.js +0 -75
- package/dist/chunk-F6LBNV3H.js +0 -9
- package/dist/chunk-FDHXLNZQ.js +0 -44
- package/dist/chunk-GY2DRQGW.js +0 -166
- package/dist/chunk-HERLM47Z.js +0 -309
- package/dist/chunk-HJKRGBDG.js +0 -694
- package/dist/chunk-I64TXIE7.js +0 -618
- package/dist/chunk-IAQPLRXZ.js +0 -16
- package/dist/chunk-ICJH36K4.js +0 -326
- package/dist/chunk-ILYPJE4N.js +0 -57
- package/dist/chunk-IWKDBADX.js +0 -73
- package/dist/chunk-IXBMHOB5.js +0 -13
- package/dist/chunk-IYKPRAWC.js +0 -26
- package/dist/chunk-J23QSWDL.js +0 -8
- package/dist/chunk-KH5MK6ZW.js +0 -18
- package/dist/chunk-KRIRF7F6.js +0 -76
- package/dist/chunk-NT7RB7AK.js +0 -70
- package/dist/chunk-OKGJ6HDE.js +0 -26
- package/dist/chunk-OTXM2UCD.js +0 -19
- package/dist/chunk-PJLYVMUM.js +0 -3308
- package/dist/chunk-PUI5BIKO.js +0 -41
- package/dist/chunk-Q6S3LBUF.js +0 -180
- package/dist/chunk-QHR23GVH.js +0 -1099
- package/dist/chunk-QWQ3WJJN.js +0 -1
- package/dist/chunk-RAQV2GYF.js +0 -70
- package/dist/chunk-VBO377AY.js +0 -14
- package/dist/chunk-VYEXPG3M.js +0 -107
- package/dist/chunk-WPLOTFGW.js +0 -36
- package/dist/chunk-YO6PT7KD.js +0 -13
- package/dist/chunk-ZUOVKRKC.js +0 -957
- package/dist/components/ui/Accordion/Accordion.d.ts +0 -11
- package/dist/components/ui/Accordion/Accordion.d.ts.map +0 -1
- package/dist/components/ui/Accordion/AccordionHeader.d.ts +0 -6
- package/dist/components/ui/Accordion/AccordionHeader.d.ts.map +0 -1
- package/dist/components/ui/Accordion/AccordionItem.d.ts +0 -11
- package/dist/components/ui/Accordion/AccordionItem.d.ts.map +0 -1
- package/dist/components/ui/ActiveInActive.d.ts +0 -10
- package/dist/components/ui/ActiveInActive.d.ts.map +0 -1
- package/dist/components/ui/AnimatedCounter.d.ts +0 -7
- package/dist/components/ui/AnimatedCounter.d.ts.map +0 -1
- package/dist/components/ui/Badge.d.ts +0 -10
- package/dist/components/ui/Badge.d.ts.map +0 -1
- package/dist/components/ui/BreadCrumbs.d.ts +0 -7
- package/dist/components/ui/BreadCrumbs.d.ts.map +0 -1
- package/dist/components/ui/Button.d.ts +0 -36
- package/dist/components/ui/Button.d.ts.map +0 -1
- package/dist/components/ui/CopyableText.d.ts +0 -5
- package/dist/components/ui/CopyableText.d.ts.map +0 -1
- package/dist/components/ui/DateInput.d.ts +0 -15
- package/dist/components/ui/DateInput.d.ts.map +0 -1
- package/dist/components/ui/DateRangeFilterInput.d.ts +0 -4
- package/dist/components/ui/DateRangeFilterInput.d.ts.map +0 -1
- package/dist/components/ui/DetailHeader.d.ts +0 -6
- package/dist/components/ui/DetailHeader.d.ts.map +0 -1
- package/dist/components/ui/DraggableIcon.d.ts +0 -3
- package/dist/components/ui/DraggableIcon.d.ts.map +0 -1
- package/dist/components/ui/ErrorBoundary.d.ts +0 -18
- package/dist/components/ui/ErrorBoundary.d.ts.map +0 -1
- package/dist/components/ui/ErrorFallback.d.ts +0 -6
- package/dist/components/ui/ErrorFallback.d.ts.map +0 -1
- package/dist/components/ui/HelpText.d.ts +0 -11
- package/dist/components/ui/HelpText.d.ts.map +0 -1
- package/dist/components/ui/ImageWithFallback.d.ts +0 -7
- package/dist/components/ui/ImageWithFallback.d.ts.map +0 -1
- package/dist/components/ui/InfoTextBanner.d.ts +0 -6
- package/dist/components/ui/InfoTextBanner.d.ts.map +0 -1
- package/dist/components/ui/JSONView.d.ts +0 -6
- package/dist/components/ui/JSONView.d.ts.map +0 -1
- package/dist/components/ui/ListHeader.d.ts +0 -6
- package/dist/components/ui/ListHeader.d.ts.map +0 -1
- package/dist/components/ui/Loading.d.ts +0 -3
- package/dist/components/ui/Loading.d.ts.map +0 -1
- package/dist/components/ui/NoData.d.ts +0 -7
- package/dist/components/ui/NoData.d.ts.map +0 -1
- package/dist/components/ui/NoImage.d.ts +0 -7
- package/dist/components/ui/NoImage.d.ts.map +0 -1
- package/dist/components/ui/NoImageSvg.d.ts +0 -8
- package/dist/components/ui/NoImageSvg.d.ts.map +0 -1
- package/dist/components/ui/PageHeader.d.ts +0 -11
- package/dist/components/ui/PageHeader.d.ts.map +0 -1
- package/dist/components/ui/Pagination.d.ts +0 -8
- package/dist/components/ui/Pagination.d.ts.map +0 -1
- package/dist/components/ui/Portal/Portal.d.ts +0 -16
- package/dist/components/ui/Portal/Portal.d.ts.map +0 -1
- package/dist/components/ui/Portal/Portal.types.d.ts +0 -16
- package/dist/components/ui/Portal/Portal.types.d.ts.map +0 -1
- package/dist/components/ui/SaveAndCancelButtons.d.ts +0 -10
- package/dist/components/ui/SaveAndCancelButtons.d.ts.map +0 -1
- package/dist/components/ui/SearchField.d.ts +0 -7
- package/dist/components/ui/SearchField.d.ts.map +0 -1
- package/dist/components/ui/Tab.d.ts +0 -18
- package/dist/components/ui/Tab.d.ts.map +0 -1
- package/dist/components/ui/Tag/TagInput.d.ts +0 -19
- package/dist/components/ui/Tag/TagInput.d.ts.map +0 -1
- package/dist/components/ui/Tag/TagList.d.ts +0 -8
- package/dist/components/ui/Tag/TagList.d.ts.map +0 -1
- package/dist/components/ui/Tag/TagListForm.d.ts +0 -8
- package/dist/components/ui/Tag/TagListForm.d.ts.map +0 -1
- package/dist/components/ui/Toggle.d.ts +0 -11
- package/dist/components/ui/Toggle.d.ts.map +0 -1
- package/dist/components/ui/ToolTip.d.ts +0 -7
- package/dist/components/ui/ToolTip.d.ts.map +0 -1
- package/dist/components/ui/card.d.ts +0 -9
- package/dist/components/ui/card.d.ts.map +0 -1
- package/dist/components/ui/chart.d.ts +0 -42
- package/dist/components/ui/chart.d.ts.map +0 -1
- package/dist/components/ui/form/CheckboxField.d.ts +0 -4
- package/dist/components/ui/form/CheckboxField.d.ts.map +0 -1
- package/dist/components/ui/form/ChoicesField.d.ts +0 -12
- package/dist/components/ui/form/ChoicesField.d.ts.map +0 -1
- package/dist/components/ui/form/Combobox.d.ts +0 -20
- package/dist/components/ui/form/Combobox.d.ts.map +0 -1
- package/dist/components/ui/form/DatePickerField.d.ts +0 -4
- package/dist/components/ui/form/DatePickerField.d.ts.map +0 -1
- package/dist/components/ui/form/EmailField.d.ts +0 -7
- package/dist/components/ui/form/EmailField.d.ts.map +0 -1
- package/dist/components/ui/form/FieldWithHelp.d.ts +0 -10
- package/dist/components/ui/form/FieldWithHelp.d.ts.map +0 -1
- package/dist/components/ui/form/FieldWrapper.d.ts +0 -8
- package/dist/components/ui/form/FieldWrapper.d.ts.map +0 -1
- package/dist/components/ui/form/FormErrors.d.ts +0 -6
- package/dist/components/ui/form/FormErrors.d.ts.map +0 -1
- package/dist/components/ui/form/JSONAreaField.d.ts +0 -7
- package/dist/components/ui/form/JSONAreaField.d.ts.map +0 -1
- package/dist/components/ui/form/MarkdownTextAreaField.d.ts +0 -8
- package/dist/components/ui/form/MarkdownTextAreaField.d.ts.map +0 -1
- package/dist/components/ui/form/PasswordField.d.ts +0 -3
- package/dist/components/ui/form/PasswordField.d.ts.map +0 -1
- package/dist/components/ui/form/SelectField.d.ts +0 -11
- package/dist/components/ui/form/SelectField.d.ts.map +0 -1
- package/dist/components/ui/form/SubmitButton.d.ts +0 -9
- package/dist/components/ui/form/SubmitButton.d.ts.map +0 -1
- package/dist/components/ui/form/TagInputField.d.ts +0 -7
- package/dist/components/ui/form/TagInputField.d.ts.map +0 -1
- package/dist/components/ui/form/TextAreaField.d.ts +0 -8
- package/dist/components/ui/form/TextAreaField.d.ts.map +0 -1
- package/dist/components/ui/form/TextField.d.ts +0 -10
- package/dist/components/ui/form/TextField.d.ts.map +0 -1
- package/dist/components/ui/form/index.d.ts +0 -18
- package/dist/components/ui/form/index.d.ts.map +0 -1
- package/dist/components/ui/icons.d.ts +0 -4
- package/dist/components/ui/icons.d.ts.map +0 -1
- package/dist/components/ui/index.d.ts +0 -46
- package/dist/components/ui/index.d.ts.map +0 -1
- package/dist/form.js +0 -2617
- package/dist/gql/operation-types.d.ts +0 -13239
- package/dist/gql/operation-types.d.ts.map +0 -1
- package/dist/gql/schema-types.d.ts +0 -3876
- package/dist/gql/schema-types.d.ts.map +0 -1
- package/dist/gql/types.d.ts +0 -3
- package/dist/gql/types.d.ts.map +0 -1
- package/dist/hooks.js +0 -49
- package/dist/lib/utils.d.ts +0 -3
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/modal.js +0 -51
- package/dist/modules/Auth/AuthContext.d.ts +0 -9
- package/dist/modules/Auth/AuthContext.d.ts.map +0 -1
- package/dist/modules/Auth/useAuth.d.ts +0 -6
- package/dist/modules/Auth/useAuth.d.ts.map +0 -1
- package/dist/modules/UnchainedContext/UnchainedContext.d.ts +0 -8
- package/dist/modules/UnchainedContext/UnchainedContext.d.ts.map +0 -1
- package/dist/modules/UnchainedContext/useUnchainedContext.d.ts +0 -7
- package/dist/modules/UnchainedContext/useUnchainedContext.d.ts.map +0 -1
- package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts +0 -3
- package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts.map +0 -1
- package/dist/modules/accounts/fragment/UserFragment.d.ts +0 -3
- package/dist/modules/accounts/fragment/UserFragment.d.ts.map +0 -1
- package/dist/modules/accounts/hooks/useCurrentUser.d.ts +0 -10
- package/dist/modules/accounts/hooks/useCurrentUser.d.ts.map +0 -1
- package/dist/modules/accounts/hooks/useUsersCount.d.ts +0 -8
- package/dist/modules/accounts/hooks/useUsersCount.d.ts.map +0 -1
- package/dist/modules/accounts.js +0 -1349
- package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts +0 -8
- package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts.map +0 -1
- package/dist/modules/assortment.js +0 -1205
- package/dist/modules/common/components/AppContext.d.ts +0 -18
- package/dist/modules/common/components/AppContext.d.ts.map +0 -1
- package/dist/modules/common/components/FormWrapper.d.ts +0 -8
- package/dist/modules/common/components/FormWrapper.d.ts.map +0 -1
- package/dist/modules/common/components/LocaleWrapper.d.ts +0 -7
- package/dist/modules/common/components/LocaleWrapper.d.ts.map +0 -1
- package/dist/modules/common/components/MediaAvatar.d.ts +0 -6
- package/dist/modules/common/components/MediaAvatar.d.ts.map +0 -1
- package/dist/modules/common/components/SelectOptions.d.ts +0 -17
- package/dist/modules/common/components/SelectOptions.d.ts.map +0 -1
- package/dist/modules/common/components/Table.d.ts +0 -25
- package/dist/modules/common/components/Table.d.ts.map +0 -1
- package/dist/modules/common/components/TableCell.d.ts +0 -12
- package/dist/modules/common/components/TableCell.d.ts.map +0 -1
- package/dist/modules/common/components/TableRow.d.ts +0 -10
- package/dist/modules/common/components/TableRow.d.ts.map +0 -1
- package/dist/modules/common/components/ThemeWrapper.d.ts +0 -10
- package/dist/modules/common/components/ThemeWrapper.d.ts.map +0 -1
- package/dist/modules/common/data/iso-codes.d.ts +0 -4
- package/dist/modules/common/data/iso-codes.d.ts.map +0 -1
- package/dist/modules/common/data/miscellaneous.d.ts +0 -52
- package/dist/modules/common/data/miscellaneous.d.ts.map +0 -1
- package/dist/modules/common/fragments/AddressFragment.d.ts +0 -3
- package/dist/modules/common/fragments/AddressFragment.d.ts.map +0 -1
- package/dist/modules/common/hooks/useApp.d.ts +0 -11
- package/dist/modules/common/hooks/useApp.d.ts.map +0 -1
- package/dist/modules/common/hooks/useBulkResultHandler.d.ts +0 -8
- package/dist/modules/common/hooks/useBulkResultHandler.d.ts.map +0 -1
- package/dist/modules/common/hooks/useBulkSelection.d.ts +0 -12
- package/dist/modules/common/hooks/useBulkSelection.d.ts.map +0 -1
- package/dist/modules/common/hooks/useCSVExport.d.ts +0 -10
- package/dist/modules/common/hooks/useCSVExport.d.ts.map +0 -1
- package/dist/modules/common/hooks/useCSVImport.d.ts +0 -18
- package/dist/modules/common/hooks/useCSVImport.d.ts.map +0 -1
- package/dist/modules/common/hooks/useChatEndpointChecker.d.ts +0 -5
- package/dist/modules/common/hooks/useChatEndpointChecker.d.ts.map +0 -1
- package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts +0 -10
- package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts.map +0 -1
- package/dist/modules/common/hooks/useDashboardMetrics.d.ts +0 -23
- package/dist/modules/common/hooks/useDashboardMetrics.d.ts.map +0 -1
- package/dist/modules/common/hooks/useLocalStorage.d.ts +0 -3
- package/dist/modules/common/hooks/useLocalStorage.d.ts.map +0 -1
- package/dist/modules/common/hooks/useOrderAnalytics.d.ts +0 -25
- package/dist/modules/common/hooks/useOrderAnalytics.d.ts.map +0 -1
- package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts +0 -16
- package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts.map +0 -1
- package/dist/modules/common/hooks/useOutsideClick.d.ts +0 -3
- package/dist/modules/common/hooks/useOutsideClick.d.ts.map +0 -1
- package/dist/modules/common/hooks/usePortal.d.ts +0 -20
- package/dist/modules/common/hooks/usePortal.d.ts.map +0 -1
- package/dist/modules/common/hooks/useScrollRestoration.d.ts +0 -8
- package/dist/modules/common/hooks/useScrollRestoration.d.ts.map +0 -1
- package/dist/modules/common/hooks/useShopConfiguration.d.ts +0 -8
- package/dist/modules/common/hooks/useShopConfiguration.d.ts.map +0 -1
- package/dist/modules/common/hooks/useShopInfo.d.ts +0 -41
- package/dist/modules/common/hooks/useShopInfo.d.ts.map +0 -1
- package/dist/modules/common/hooks/useStatusTypes.d.ts +0 -10
- package/dist/modules/common/hooks/useStatusTypes.d.ts.map +0 -1
- package/dist/modules/common/hooks/useSystemRoles.d.ts +0 -7
- package/dist/modules/common/hooks/useSystemRoles.d.ts.map +0 -1
- package/dist/modules/common/hooks/useTheme.d.ts +0 -7
- package/dist/modules/common/hooks/useTheme.d.ts.map +0 -1
- package/dist/modules/common/utils/deBounce.d.ts +0 -3
- package/dist/modules/common/utils/deBounce.d.ts.map +0 -1
- package/dist/modules/common/utils/defaultNextImageLoader.d.ts +0 -7
- package/dist/modules/common/utils/defaultNextImageLoader.d.ts.map +0 -1
- package/dist/modules/common/utils/formatUsername.d.ts +0 -3
- package/dist/modules/common/utils/formatUsername.d.ts.map +0 -1
- package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts +0 -30
- package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts.map +0 -1
- package/dist/modules/common/utils/normalizeFilterKeys.d.ts +0 -4
- package/dist/modules/common/utils/normalizeFilterKeys.d.ts.map +0 -1
- package/dist/modules/common/utils/sharedContext.d.ts +0 -9
- package/dist/modules/common/utils/sharedContext.d.ts.map +0 -1
- package/dist/modules/common/utils/useFormatDateTime.d.ts +0 -16
- package/dist/modules/common/utils/useFormatDateTime.d.ts.map +0 -1
- package/dist/modules/common/utils/utils.d.ts +0 -21
- package/dist/modules/common/utils/utils.d.ts.map +0 -1
- package/dist/modules/country/fragments/CountryFragment.d.ts +0 -3
- package/dist/modules/country/fragments/CountryFragment.d.ts.map +0 -1
- package/dist/modules/country/hooks/useCountries.d.ts +0 -22
- package/dist/modules/country/hooks/useCountries.d.ts.map +0 -1
- package/dist/modules/country.js +0 -108
- package/dist/modules/currency.js +0 -119
- package/dist/modules/delivery-provider.js +0 -269
- package/dist/modules/enrollment.js +0 -431
- package/dist/modules/event.js +0 -123
- package/dist/modules/filter.js +0 -497
- package/dist/modules/forms/components/Form.d.ts +0 -8
- package/dist/modules/forms/components/Form.d.ts.map +0 -1
- package/dist/modules/forms/hooks/useField.d.ts +0 -35
- package/dist/modules/forms/hooks/useField.d.ts.map +0 -1
- package/dist/modules/forms/hooks/useForm.d.ts +0 -44
- package/dist/modules/forms/hooks/useForm.d.ts.map +0 -1
- package/dist/modules/forms/hooks/useFormContext.d.ts +0 -3
- package/dist/modules/forms/hooks/useFormContext.d.ts.map +0 -1
- package/dist/modules/forms/lib/FormContext.d.ts +0 -13
- package/dist/modules/forms/lib/FormContext.d.ts.map +0 -1
- package/dist/modules/forms/lib/clean.d.ts +0 -3
- package/dist/modules/forms/lib/clean.d.ts.map +0 -1
- package/dist/modules/forms/lib/validators.d.ts +0 -20
- package/dist/modules/forms/lib/validators.d.ts.map +0 -1
- package/dist/modules/language/fragments/LanguageFragment.d.ts +0 -3
- package/dist/modules/language/fragments/LanguageFragment.d.ts.map +0 -1
- package/dist/modules/language/hooks/useLanguages.d.ts +0 -19
- package/dist/modules/language/hooks/useLanguages.d.ts.map +0 -1
- package/dist/modules/language.js +0 -106
- package/dist/modules/modal/components/AlertMessage.d.ts +0 -9
- package/dist/modules/modal/components/AlertMessage.d.ts.map +0 -1
- package/dist/modules/modal/components/DangerMessage.d.ts +0 -13
- package/dist/modules/modal/components/DangerMessage.d.ts.map +0 -1
- package/dist/modules/modal/components/ImportResultMessage.d.ts +0 -14
- package/dist/modules/modal/components/ImportResultMessage.d.ts.map +0 -1
- package/dist/modules/modal/components/Modal.d.ts +0 -10
- package/dist/modules/modal/components/Modal.d.ts.map +0 -1
- package/dist/modules/modal/components/ModalWrapper.d.ts +0 -6
- package/dist/modules/modal/components/ModalWrapper.d.ts.map +0 -1
- package/dist/modules/modal/hooks/useModal.d.ts +0 -7
- package/dist/modules/modal/hooks/useModal.d.ts.map +0 -1
- package/dist/modules/modal/utils/ModalContext.d.ts +0 -9
- package/dist/modules/modal/utils/ModalContext.d.ts.map +0 -1
- package/dist/modules/order/fragments/OrderDetailFragment.d.ts +0 -3
- package/dist/modules/order/fragments/OrderDetailFragment.d.ts.map +0 -1
- package/dist/modules/order/fragments/OrderFragment.d.ts +0 -3
- package/dist/modules/order/fragments/OrderFragment.d.ts.map +0 -1
- package/dist/modules/order/hooks/useOrders.d.ts +0 -46
- package/dist/modules/order/hooks/useOrders.d.ts.map +0 -1
- package/dist/modules/order.js +0 -569
- package/dist/modules/payment-providers.js +0 -206
- package/dist/modules/product/hooks/useProductsCount.d.ts +0 -8
- package/dist/modules/product/hooks/useProductsCount.d.ts.map +0 -1
- package/dist/modules/product-review.js +0 -270
- package/dist/modules/product.js +0 -6914
- package/dist/modules/quotation.js +0 -324
- package/dist/modules/token.js +0 -143
- package/dist/modules/warehousing-providers.js +0 -206
- package/dist/modules/work/fragments/WorkFragment.d.ts +0 -3
- package/dist/modules/work/fragments/WorkFragment.d.ts.map +0 -1
- package/dist/modules/work/hooks/useAddWork.d.ts +0 -6
- package/dist/modules/work/hooks/useAddWork.d.ts.map +0 -1
- package/dist/modules/work/hooks/useWork.d.ts +0 -32
- package/dist/modules/work/hooks/useWork.d.ts.map +0 -1
- package/dist/modules/work.js +0 -232
- package/dist/plugins.js +0 -13
- package/dist/providers.js +0 -9
- package/dist/sdk/hooks.d.ts +0 -12
- package/dist/sdk/hooks.d.ts.map +0 -1
- package/dist/sdk/modal.d.ts +0 -7
- package/dist/sdk/modal.d.ts.map +0 -1
- package/dist/sdk/plugins.d.ts +0 -78
- package/dist/sdk/plugins.d.ts.map +0 -1
- package/dist/sdk/providers.d.ts +0 -5
- package/dist/sdk/providers.d.ts.map +0 -1
- package/dist/sdk/shims/admin-ui-plugins.d.ts +0 -3
- package/dist/sdk/shims/admin-ui-plugins.d.ts.map +0 -1
- package/dist/sdk/shims/apollo-client-react.d.ts +0 -3
- package/dist/sdk/shims/apollo-client-react.d.ts.map +0 -1
- package/dist/sdk/shims/apollo-client.d.ts +0 -3
- package/dist/sdk/shims/apollo-client.d.ts.map +0 -1
- package/dist/sdk/shims/host.d.ts +0 -17
- package/dist/sdk/shims/host.d.ts.map +0 -1
- package/dist/sdk/shims/next-head.d.ts +0 -3
- package/dist/sdk/shims/next-head.d.ts.map +0 -1
- package/dist/sdk/shims/next-image.d.ts +0 -3
- package/dist/sdk/shims/next-image.d.ts.map +0 -1
- package/dist/sdk/shims/next-link.d.ts +0 -3
- package/dist/sdk/shims/next-link.d.ts.map +0 -1
- package/dist/sdk/shims/next-router.d.ts +0 -3
- package/dist/sdk/shims/next-router.d.ts.map +0 -1
- package/dist/sdk/shims/react-dom-client.d.ts +0 -3
- package/dist/sdk/shims/react-dom-client.d.ts.map +0 -1
- package/dist/sdk/shims/react-dom.d.ts +0 -3
- package/dist/sdk/shims/react-dom.d.ts.map +0 -1
- package/dist/sdk/shims/react-hook-form.d.ts +0 -3
- package/dist/sdk/shims/react-hook-form.d.ts.map +0 -1
- package/dist/sdk/shims/react-intl.d.ts +0 -3
- package/dist/sdk/shims/react-intl.d.ts.map +0 -1
- package/dist/sdk/shims/react-jsx-runtime.d.ts +0 -3
- package/dist/sdk/shims/react-jsx-runtime.d.ts.map +0 -1
- package/dist/sdk/shims/react-toastify.d.ts +0 -3
- package/dist/sdk/shims/react-toastify.d.ts.map +0 -1
- package/dist/sdk/shims/react.d.ts +0 -3
- package/dist/sdk/shims/react.d.ts.map +0 -1
- package/dist/sdk/theme.d.ts +0 -26
- package/dist/sdk/theme.d.ts.map +0 -1
- package/dist/shims/admin-ui-plugins.js +0 -9
- package/dist/shims/apollo-client-react.js +0 -25
- package/dist/shims/apollo-client.js +0 -55
- package/dist/shims/next-head.js +0 -9
- package/dist/shims/next-image.js +0 -9
- package/dist/shims/next-link.js +0 -9
- package/dist/shims/next-router.js +0 -13
- package/dist/shims/react-dom-client.js +0 -11
- package/dist/shims/react-dom.js +0 -22
- package/dist/shims/react-hook-form.js +0 -25
- package/dist/shims/react-intl.js +0 -37
- package/dist/shims/react-jsx-runtime.js +0 -11
- package/dist/shims/react-toastify.js +0 -16
- package/dist/shims/react.js +0 -52
- package/dist/theme.js +0 -34
- package/dist/ui.js +0 -19731
- package/out/_next/static/F8ReqaxPvLqFJ2DaPfMdn/_buildManifest.js +0 -258
- package/out/_next/static/chunks/0-mytn4v5bu5h.js +0 -12
- package/out/_next/static/chunks/0-uh133eqcz6n.js +0 -60
- package/out/_next/static/chunks/0060t3kg_i0lf.js +0 -10
- package/out/_next/static/chunks/0186bg0b60cid.js +0 -13
- package/out/_next/static/chunks/018n9pot9f5uf.js +0 -90
- package/out/_next/static/chunks/01h4ept18s-ns.js +0 -807
- package/out/_next/static/chunks/02cdoh48sex9m.js +0 -1
- package/out/_next/static/chunks/03-z1yl608b56.js +0 -807
- package/out/_next/static/chunks/030bzkeke0edz.js +0 -7
- package/out/_next/static/chunks/037vsiy28s6dg.js +0 -41
- package/out/_next/static/chunks/049clkw76lm67.js +0 -16
- package/out/_next/static/chunks/04bb4k67x398t.js +0 -1
- package/out/_next/static/chunks/057evs7qr5y-t.js +0 -17
- package/out/_next/static/chunks/05qpw6q8uiz3l.js +0 -15
- package/out/_next/static/chunks/062myzj-2ehu-.js +0 -52
- package/out/_next/static/chunks/06l-rqlf4bp81.js +0 -108
- package/out/_next/static/chunks/06tejx8u1_0kg.js +0 -1
- package/out/_next/static/chunks/07nffhr51vke6.js +0 -59
- package/out/_next/static/chunks/08tyybz20igty.js +0 -15
- package/out/_next/static/chunks/0989pcuje2j55.js +0 -66
- package/out/_next/static/chunks/0_02skyivjqh6.js +0 -14
- package/out/_next/static/chunks/0_ngi84ak813x.js +0 -288
- package/out/_next/static/chunks/0bc02hascgv7z.js +0 -1
- package/out/_next/static/chunks/0c9ruqj2wf3n6.js +0 -905
- package/out/_next/static/chunks/0cblqqpscyy7w.js +0 -12
- package/out/_next/static/chunks/0cotrfgh1n2cx.js +0 -346
- package/out/_next/static/chunks/0d6_opzy2p6ik.js +0 -807
- package/out/_next/static/chunks/0e2e0srgvkzk9.js +0 -144
- package/out/_next/static/chunks/0g6hr3dmen536.js +0 -7
- package/out/_next/static/chunks/0gurfn3nhm859.js +0 -1
- package/out/_next/static/chunks/0h0r_q6xa9qr_.js +0 -1
- package/out/_next/static/chunks/0ht2wu-61vq9v.js +0 -807
- package/out/_next/static/chunks/0ibp5q64hnd88.js +0 -18
- package/out/_next/static/chunks/0ichlp5c67dko.js +0 -12
- package/out/_next/static/chunks/0iui_zfuxfa45.js +0 -12
- package/out/_next/static/chunks/0k6z6zl_zxqp7.js +0 -13
- package/out/_next/static/chunks/0kkky_8vhaeaz.js +0 -227
- package/out/_next/static/chunks/0lutmpv07icdg.js +0 -8
- package/out/_next/static/chunks/0m6jydfuy_4o3.js +0 -1
- package/out/_next/static/chunks/0mzh9-epgepi1.js +0 -119
- package/out/_next/static/chunks/0n0uzfbkfb7e5.js +0 -12
- package/out/_next/static/chunks/0nhczsa2mm354.js +0 -16
- package/out/_next/static/chunks/0pecsk3c09b19.js +0 -3
- package/out/_next/static/chunks/0prynyrvhm7ef.js +0 -2
- package/out/_next/static/chunks/0q-14a7j6afh3.js +0 -1
- package/out/_next/static/chunks/0r5wwinf72z4g.js +0 -1
- package/out/_next/static/chunks/0razrbxeai797.js +0 -807
- package/out/_next/static/chunks/0ryqvctymlr3k.js +0 -12
- package/out/_next/static/chunks/0se09klbk8drd.js +0 -68
- package/out/_next/static/chunks/0sh5256hzmj3b.js +0 -14
- package/out/_next/static/chunks/0srpqs12m-bwy.js +0 -13
- package/out/_next/static/chunks/0ukyxgmnqos6o.js +0 -1
- package/out/_next/static/chunks/0uv4d5f9o8wu1.js +0 -10
- package/out/_next/static/chunks/0uw9cbq0ivaz0.js +0 -1
- package/out/_next/static/chunks/0vls1lbu_rh78.js +0 -342
- package/out/_next/static/chunks/0vx_1vxljh4tn.js +0 -13
- package/out/_next/static/chunks/0vxe9bw7ffqy2.js +0 -15
- package/out/_next/static/chunks/0w0zigi7aws2m.js +0 -1
- package/out/_next/static/chunks/0w2zoz_fn_wha.js +0 -137
- package/out/_next/static/chunks/0xuevvy5i5d12.js +0 -138
- package/out/_next/static/chunks/0xxvsq70e4xn0.js +0 -1
- package/out/_next/static/chunks/0yxc1yy1eq4u3.js +0 -149
- package/out/_next/static/chunks/1-uz_5-063kh9.js +0 -188
- package/out/_next/static/chunks/10h7lznd10mmp.js +0 -384
- package/out/_next/static/chunks/10os1s66nimmi.js +0 -110
- package/out/_next/static/chunks/12_5-baf13q49.js +0 -195
- package/out/_next/static/chunks/12qzh85d5on4y.js +0 -44
- package/out/_next/static/chunks/12ukdi5bzlbeo.js +0 -596
- package/out/_next/static/chunks/1398hevtpl_69.js +0 -1
- package/out/_next/static/chunks/13qk8ukzu1snm.js +0 -288
- package/out/_next/static/chunks/164wr2-2gfnlb.js +0 -1
- package/out/_next/static/chunks/16ey81skn09dz.js +0 -1
- package/out/_next/static/chunks/18kae_yjyhjwf.js +0 -16
- package/out/_next/static/chunks/19y4w6_d_qiou.js +0 -1
- package/out/_next/static/chunks/1_quktgfhf40v.js +0 -31
- package/out/_next/static/chunks/1ae-9ft5cgojf.js +0 -1
- package/out/_next/static/chunks/1aegvtb5jv57q.js +0 -12
- package/out/_next/static/chunks/1cgxgd2cf8u3j.js +0 -157
- package/out/_next/static/chunks/1cp4-dvxowp4c.js +0 -24
- package/out/_next/static/chunks/1d951b6ed8oqn.js +0 -110
- package/out/_next/static/chunks/1d_puhcn8lg6q.js +0 -51
- package/out/_next/static/chunks/1drrou5kp4qdz.js +0 -1
- package/out/_next/static/chunks/1e4_28-3u5o85.js +0 -30
- package/out/_next/static/chunks/1f3mflnvp8_7-.js +0 -31
- package/out/_next/static/chunks/1f5-j4f3irx0j.js +0 -147
- package/out/_next/static/chunks/1fzbon-ih4_3j.js +0 -1
- package/out/_next/static/chunks/1g57y7cq7tjcb.js +0 -9
- package/out/_next/static/chunks/1g8f6jrb9cp9v.js +0 -13
- package/out/_next/static/chunks/1gksg35fivk0-.js +0 -224
- package/out/_next/static/chunks/1gt65pz91hyuz.js +0 -1
- package/out/_next/static/chunks/1gy9ae4fpd6jm.js +0 -17
- package/out/_next/static/chunks/1hq9yt63076pk.js +0 -16
- package/out/_next/static/chunks/1ikm9qcx--k3u.js +0 -807
- package/out/_next/static/chunks/1izpxynqp99t4.js +0 -193
- package/out/_next/static/chunks/1j2ko85jp-5wy.js +0 -807
- package/out/_next/static/chunks/1k-cn_5ey1u62.js +0 -15
- package/out/_next/static/chunks/1k0mvn915uz76.js +0 -14
- package/out/_next/static/chunks/1l4snbkce_jb6.js +0 -15
- package/out/_next/static/chunks/1lbsdlf5h6ojc.js +0 -16
- package/out/_next/static/chunks/1mwvnv71bl7mc.js +0 -1
- package/out/_next/static/chunks/1n7i2rp59o9o8.js +0 -384
- package/out/_next/static/chunks/1pklei2ds10d2.js +0 -66
- package/out/_next/static/chunks/1pxor-3_vf3du.js +0 -31
- package/out/_next/static/chunks/1qp68765j1aiv.js +0 -61
- package/out/_next/static/chunks/1r-cvj3mpr-7x.js +0 -87
- package/out/_next/static/chunks/1sivy8bkkmwxl.js +0 -5
- package/out/_next/static/chunks/1vk6h4qps69vq.js +0 -12
- package/out/_next/static/chunks/1vx8_u7-f7q8u.js +0 -28
- package/out/_next/static/chunks/1weq9keqxiqpy.js +0 -73
- package/out/_next/static/chunks/1xbofs3ibkjvj.js +0 -1
- package/out/_next/static/chunks/1ziicn0eb_yji.js +0 -16
- package/out/_next/static/chunks/1zza9faw4t3b_.js +0 -46
- package/out/_next/static/chunks/1zzpf1xbmchcj.js +0 -132
- package/out/_next/static/chunks/2-4ng9fxftmld.js +0 -1
- package/out/_next/static/chunks/201rx84kyo8ag.js +0 -1
- package/out/_next/static/chunks/20rtv8f0brb0n.js +0 -43
- package/out/_next/static/chunks/217_5onj-woma.js +0 -190
- package/out/_next/static/chunks/21a19t2pe0fpg.js +0 -81
- package/out/_next/static/chunks/21o2yfegozc0m.js +0 -16
- package/out/_next/static/chunks/22w2ovaffle-i.js +0 -21
- package/out/_next/static/chunks/234pfdqctlnyt.js +0 -100
- package/out/_next/static/chunks/252jebodi67kg.js +0 -1
- package/out/_next/static/chunks/25d8wr34sbm__.js +0 -15
- package/out/_next/static/chunks/275o3ly3svw4p.js +0 -1
- package/out/_next/static/chunks/28z1z7in8-kbg.js +0 -26
- package/out/_next/static/chunks/29w1exzy704_7.js +0 -8
- package/out/_next/static/chunks/2bb7696udjx6k.js +0 -44
- package/out/_next/static/chunks/2bm5aw8hqlgf2.js +0 -50
- package/out/_next/static/chunks/2c4vy8ofex0ti.js +0 -14
- package/out/_next/static/chunks/2c7gw8ronvu-c.js +0 -807
- package/out/_next/static/chunks/2cbr3ybo4xsrv.js +0 -43
- package/out/_next/static/chunks/2eh6ku1a1zbs4.js +0 -135
- package/out/_next/static/chunks/2fed4-6c0ghqp.js +0 -99
- package/out/_next/static/chunks/2g39exixp92yf.js +0 -13
- package/out/_next/static/chunks/2gil5igdermzh.js +0 -36
- package/out/_next/static/chunks/2hm0mbq0vtqmw.js +0 -5
- package/out/_next/static/chunks/2hvt_8j6jkd_n.js +0 -14
- package/out/_next/static/chunks/2i5uj5i4z-xu8.js +0 -188
- package/out/_next/static/chunks/2ismth22knujm.js +0 -1
- package/out/_next/static/chunks/2iuznbar_ttrh.js +0 -18
- package/out/_next/static/chunks/2j6cph79-th54.js +0 -7
- package/out/_next/static/chunks/2jjgby8cd1gdj.js +0 -14
- package/out/_next/static/chunks/2jln1kjysf99p.js +0 -1
- package/out/_next/static/chunks/2jtk4-i4e9lug.js +0 -1
- package/out/_next/static/chunks/2k020ab3luqev.js +0 -1
- package/out/_next/static/chunks/2kbieaechn8m8.js +0 -1
- package/out/_next/static/chunks/2ljoq6sr-g2da.js +0 -1
- package/out/_next/static/chunks/2lwxs_ly4bz1o.js +0 -12
- package/out/_next/static/chunks/2mr2k4sb6i021.js +0 -32
- package/out/_next/static/chunks/2na27-e8gs0-f.js +0 -171
- package/out/_next/static/chunks/2nn3_f04lnr0b.js +0 -807
- package/out/_next/static/chunks/2ocwu5vbc5r34.js +0 -73
- package/out/_next/static/chunks/2qprgjhjl8d4c.js +0 -807
- package/out/_next/static/chunks/2rtyphk0o1hbr.js +0 -5
- package/out/_next/static/chunks/2skxi0oqka3ef.js +0 -26
- package/out/_next/static/chunks/2sukt9l-1md8_.js +0 -25
- package/out/_next/static/chunks/2t3t6gm5vlg_0.js +0 -58
- package/out/_next/static/chunks/2vt52_i-6cdbh.js +0 -10
- package/out/_next/static/chunks/2w5y5xf0nriwx.js +0 -1
- package/out/_next/static/chunks/30g-s0ioynhjx.js +0 -224
- package/out/_next/static/chunks/31y7dx6ytab7h.js +0 -3
- package/out/_next/static/chunks/363ng2l8o_bee.js +0 -101
- package/out/_next/static/chunks/36jick0alh9oa.js +0 -50
- package/out/_next/static/chunks/36pa0vs0telmp.js +0 -1
- package/out/_next/static/chunks/36yth4lm03_j8.js +0 -1
- package/out/_next/static/chunks/37phwvegpccj0.js +0 -217
- package/out/_next/static/chunks/38b7m-s26ciug.js +0 -137
- package/out/_next/static/chunks/38ipj45w-tqay.js +0 -21
- package/out/_next/static/chunks/38pz7fmyf6ay0.js +0 -1
- package/out/_next/static/chunks/39634va9fx9s2.js +0 -13
- package/out/_next/static/chunks/3a0hqx7ohm5lh.js +0 -23
- package/out/_next/static/chunks/3a7wm2331v13r.js +0 -3
- package/out/_next/static/chunks/3dr_oa5hx41is.js +0 -14
- package/out/_next/static/chunks/3e7w6ko5psik7.js +0 -17
- package/out/_next/static/chunks/3ebh4y7h6y1vq.js +0 -58
- package/out/_next/static/chunks/3eow7lw1727kt.js +0 -13
- package/out/_next/static/chunks/3f1gb4_hyhtho.js +0 -20
- package/out/_next/static/chunks/3g4qj6_qh97q_.js +0 -12
- package/out/_next/static/chunks/3gfjdynb9mg8h.js +0 -23
- package/out/_next/static/chunks/3gx4smk7pb27x.js +0 -119
- package/out/_next/static/chunks/3jcf4ei6zgnca.js +0 -17
- package/out/_next/static/chunks/3kisw9hre44e5.js +0 -807
- package/out/_next/static/chunks/3mnt471ayfsvh.js +0 -22
- package/out/_next/static/chunks/3ondw3-zthjz5.js +0 -15
- package/out/_next/static/chunks/3opuxnw_w3yb5.js +0 -101
- package/out/_next/static/chunks/3oxv1fo564rrf.js +0 -142
- package/out/_next/static/chunks/3ra_41-fw410n.js +0 -14
- package/out/_next/static/chunks/3s22ovhmk-4h7.js +0 -1
- package/out/_next/static/chunks/3sktz8258so64.js +0 -2
- package/out/_next/static/chunks/3tq-bb0j1_lpu.js +0 -14
- package/out/_next/static/chunks/3v1dxn4rp-o3v.js +0 -315
- package/out/_next/static/chunks/3w_wwl_hd91od.js +0 -1
- package/out/_next/static/chunks/3ww_p-agyd9u-.js +0 -14
- package/out/_next/static/chunks/3wzzh45yillzb.js +0 -1
- package/out/_next/static/chunks/3xfj8_2nd5d_1.js +0 -1
- package/out/_next/static/chunks/3xhmfg-981n_5.js +0 -61
- package/out/_next/static/chunks/3yz34q3ulli7q.js +0 -12
- package/out/_next/static/chunks/3z_c5kpm-e1ty.js +0 -15
- package/out/_next/static/chunks/3zs002htik_8l.js +0 -21
- package/out/_next/static/chunks/4079hjuumfmm2.js +0 -31
- package/out/_next/static/chunks/40922jbr_e5ug.js +0 -51
- package/out/_next/static/chunks/40zy6mxa-be0m.js +0 -1
- package/out/_next/static/chunks/41fbmiggueudh.js +0 -13
- package/out/_next/static/chunks/43e0fp97w800k.js +0 -13
- package/out/_next/static/chunks/43gv4x1sfyb5l.js +0 -9
- package/out/_next/static/chunks/44nj9c766dqvc.js +0 -807
- package/out/_next/static/chunks/44r51e87s4z_d.js +0 -8
- package/out/_next/static/chunks/458tg2eg5h8j5.js +0 -324
- package/out/_next/static/chunks/45cd4ypk94sw2.js +0 -807
- package/out/_next/static/chunks/turbopack-01866gjdddrxa.js +0 -1
- package/out/_next/static/chunks/turbopack-08ttg7vxsdnsj.js +0 -1
- package/out/_next/static/chunks/turbopack-0a3j0ezn8okfg.js +0 -1
- package/out/_next/static/chunks/turbopack-0anbjm4c1j4u4.js +0 -1
- package/out/_next/static/chunks/turbopack-0ga3wfg-oyyst.js +0 -1
- package/out/_next/static/chunks/turbopack-0m3lvbvrn923g.js +0 -1
- package/out/_next/static/chunks/turbopack-0pmjdjcdx7cqp.js +0 -1
- package/out/_next/static/chunks/turbopack-0ptvhnhsw0_c7.js +0 -1
- package/out/_next/static/chunks/turbopack-0s4b5r_1d8yqv.js +0 -1
- package/out/_next/static/chunks/turbopack-0sihqflu4qpvw.js +0 -1
- package/out/_next/static/chunks/turbopack-0tc31uax4buqq.js +0 -1
- package/out/_next/static/chunks/turbopack-0w2rzh4i3j2og.js +0 -1
- package/out/_next/static/chunks/turbopack-10ldzl5n31zl-.js +0 -1
- package/out/_next/static/chunks/turbopack-19e_bi5k2rqyy.js +0 -1
- package/out/_next/static/chunks/turbopack-19i6-4a5o4fil.js +0 -1
- package/out/_next/static/chunks/turbopack-19vr9o5829d-f.js +0 -1
- package/out/_next/static/chunks/turbopack-19yw5qwon7l57.js +0 -1
- package/out/_next/static/chunks/turbopack-1cx5i7_gdoz5k.js +0 -1
- package/out/_next/static/chunks/turbopack-1d-c7awe26kf5.js +0 -1
- package/out/_next/static/chunks/turbopack-1l1aen9tojmq4.js +0 -1
- package/out/_next/static/chunks/turbopack-1o1rar8ouv6h9.js +0 -1
- package/out/_next/static/chunks/turbopack-1od_4a7nj02l4.js +0 -1
- package/out/_next/static/chunks/turbopack-1r_0o22d_puxo.js +0 -1
- package/out/_next/static/chunks/turbopack-1rmdtpi005n_6.js +0 -1
- package/out/_next/static/chunks/turbopack-1wx5785osz26z.js +0 -1
- package/out/_next/static/chunks/turbopack-21vayl2_q4r5u.js +0 -1
- package/out/_next/static/chunks/turbopack-23nr2ioaqw90j.js +0 -1
- package/out/_next/static/chunks/turbopack-23u97wxsuqiqb.js +0 -1
- package/out/_next/static/chunks/turbopack-24ylsu2au7hg1.js +0 -1
- package/out/_next/static/chunks/turbopack-28_dvdmt6lvhn.js +0 -1
- package/out/_next/static/chunks/turbopack-2bo7hmw4eirxu.js +0 -1
- package/out/_next/static/chunks/turbopack-2dk8ur1fvwxzj.js +0 -1
- package/out/_next/static/chunks/turbopack-2e_wy0ffi64id.js +0 -1
- package/out/_next/static/chunks/turbopack-2fuk9oepxr5n0.js +0 -1
- package/out/_next/static/chunks/turbopack-2g2viapamsvwe.js +0 -1
- package/out/_next/static/chunks/turbopack-2ga09m38zacev.js +0 -1
- package/out/_next/static/chunks/turbopack-2pxtve7lryqre.js +0 -1
- package/out/_next/static/chunks/turbopack-2qbfd_-7v5dbo.js +0 -1
- package/out/_next/static/chunks/turbopack-2rz_y4ejrvafp.js +0 -1
- package/out/_next/static/chunks/turbopack-2u0ls0liblo_9.js +0 -1
- package/out/_next/static/chunks/turbopack-2u_328z53ed9p.js +0 -1
- package/out/_next/static/chunks/turbopack-2xfom16ggx1i3.js +0 -1
- package/out/_next/static/chunks/turbopack-2ycfwit0p-fkf.js +0 -1
- package/out/_next/static/chunks/turbopack-2yekm5ij2g-aw.js +0 -1
- package/out/_next/static/chunks/turbopack-3-w-v8og1lok2.js +0 -1
- package/out/_next/static/chunks/turbopack-30qkgccwlkv7n.js +0 -1
- package/out/_next/static/chunks/turbopack-36bl9-rerhcfg.js +0 -1
- package/out/_next/static/chunks/turbopack-37a6lyjyz7fts.js +0 -1
- package/out/_next/static/chunks/turbopack-37lb9ujef-ujm.js +0 -1
- package/out/_next/static/chunks/turbopack-39nctu3yv9iv4.js +0 -1
- package/out/_next/static/chunks/turbopack-3_mmmbs60vr14.js +0 -1
- package/out/_next/static/chunks/turbopack-3_o3qz69ih0uu.js +0 -1
- package/out/_next/static/chunks/turbopack-3cv39r7v3s2gr.js +0 -1
- package/out/_next/static/chunks/turbopack-3cv3hgsoo_z1k.js +0 -1
- package/out/_next/static/chunks/turbopack-3pgmc-lv74ewz.js +0 -1
- package/out/_next/static/chunks/turbopack-3uj40sz7i7jg0.js +0 -1
- package/out/_next/static/chunks/turbopack-3v4nxmdavly34.js +0 -1
- package/out/_next/static/chunks/turbopack-3vfm6fp92up6y.js +0 -1
- package/out/_next/static/chunks/turbopack-3vyi51cuxeowy.js +0 -1
- package/out/_next/static/chunks/turbopack-3w26eu86co02z.js +0 -1
- package/out/_next/static/chunks/turbopack-3zc0h1216mtm2.js +0 -1
- package/out/_next/static/chunks/turbopack-4166pmk5_y_4x.js +0 -1
- package/out/_next/static/chunks/turbopack-431y1sh-m_0mp.js +0 -1
- package/out/manifest.json +0 -48
- /package/out/_next/static/{F8ReqaxPvLqFJ2DaPfMdn → jOx5PlckLwWIJ5yrvePdU}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{F8ReqaxPvLqFJ2DaPfMdn → jOx5PlckLwWIJ5yrvePdU}/_ssgManifest.js +0 -0
package/dist/chunk-E77YIMGR.js
DELETED
|
@@ -1,2083 +0,0 @@
|
|
|
1
|
-
import { toDate, isValid, millisecondsInWeek, constructFrom, startOfDay, millisecondsInDay } from './chunk-I64TXIE7.js';
|
|
2
|
-
import { useShopInfo_default, AppContext_default } from './chunk-BOMSMJF2.js';
|
|
3
|
-
import { useContext } from 'react';
|
|
4
|
-
import { useIntl } from 'react-intl';
|
|
5
|
-
|
|
6
|
-
// ../node_modules/date-fns/_lib/defaultOptions.js
|
|
7
|
-
var defaultOptions = {};
|
|
8
|
-
function getDefaultOptions() {
|
|
9
|
-
return defaultOptions;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
// ../node_modules/date-fns/startOfWeek.js
|
|
13
|
-
function startOfWeek(date, options) {
|
|
14
|
-
const defaultOptions2 = getDefaultOptions();
|
|
15
|
-
const weekStartsOn = options?.weekStartsOn ?? options?.locale?.options?.weekStartsOn ?? defaultOptions2.weekStartsOn ?? defaultOptions2.locale?.options?.weekStartsOn ?? 0;
|
|
16
|
-
const _date = toDate(date, options?.in);
|
|
17
|
-
const day = _date.getDay();
|
|
18
|
-
const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
|
|
19
|
-
_date.setDate(_date.getDate() - diff);
|
|
20
|
-
_date.setHours(0, 0, 0, 0);
|
|
21
|
-
return _date;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// ../node_modules/date-fns/startOfISOWeek.js
|
|
25
|
-
function startOfISOWeek(date, options) {
|
|
26
|
-
return startOfWeek(date, { ...options, weekStartsOn: 1 });
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// ../node_modules/date-fns/getISOWeekYear.js
|
|
30
|
-
function getISOWeekYear(date, options) {
|
|
31
|
-
const _date = toDate(date, options?.in);
|
|
32
|
-
const year = _date.getFullYear();
|
|
33
|
-
const fourthOfJanuaryOfNextYear = constructFrom(_date, 0);
|
|
34
|
-
fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);
|
|
35
|
-
fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);
|
|
36
|
-
const startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear);
|
|
37
|
-
const fourthOfJanuaryOfThisYear = constructFrom(_date, 0);
|
|
38
|
-
fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4);
|
|
39
|
-
fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0);
|
|
40
|
-
const startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear);
|
|
41
|
-
if (_date.getTime() >= startOfNextYear.getTime()) {
|
|
42
|
-
return year + 1;
|
|
43
|
-
} else if (_date.getTime() >= startOfThisYear.getTime()) {
|
|
44
|
-
return year;
|
|
45
|
-
} else {
|
|
46
|
-
return year - 1;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// ../node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
|
|
51
|
-
function getTimezoneOffsetInMilliseconds(date) {
|
|
52
|
-
const _date = toDate(date);
|
|
53
|
-
const utcDate = new Date(
|
|
54
|
-
Date.UTC(
|
|
55
|
-
_date.getFullYear(),
|
|
56
|
-
_date.getMonth(),
|
|
57
|
-
_date.getDate(),
|
|
58
|
-
_date.getHours(),
|
|
59
|
-
_date.getMinutes(),
|
|
60
|
-
_date.getSeconds(),
|
|
61
|
-
_date.getMilliseconds()
|
|
62
|
-
)
|
|
63
|
-
);
|
|
64
|
-
utcDate.setUTCFullYear(_date.getFullYear());
|
|
65
|
-
return +date - +utcDate;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// ../node_modules/date-fns/_lib/normalizeDates.js
|
|
69
|
-
function normalizeDates(context, ...dates) {
|
|
70
|
-
const normalize = constructFrom.bind(
|
|
71
|
-
null,
|
|
72
|
-
dates.find((date) => typeof date === "object")
|
|
73
|
-
);
|
|
74
|
-
return dates.map(normalize);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
// ../node_modules/date-fns/differenceInCalendarDays.js
|
|
78
|
-
function differenceInCalendarDays(laterDate, earlierDate, options) {
|
|
79
|
-
const [laterDate_, earlierDate_] = normalizeDates(
|
|
80
|
-
options?.in,
|
|
81
|
-
laterDate,
|
|
82
|
-
earlierDate
|
|
83
|
-
);
|
|
84
|
-
const laterStartOfDay = startOfDay(laterDate_);
|
|
85
|
-
const earlierStartOfDay = startOfDay(earlierDate_);
|
|
86
|
-
const laterTimestamp = +laterStartOfDay - getTimezoneOffsetInMilliseconds(laterStartOfDay);
|
|
87
|
-
const earlierTimestamp = +earlierStartOfDay - getTimezoneOffsetInMilliseconds(earlierStartOfDay);
|
|
88
|
-
return Math.round((laterTimestamp - earlierTimestamp) / millisecondsInDay);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// ../node_modules/date-fns/startOfISOWeekYear.js
|
|
92
|
-
function startOfISOWeekYear(date, options) {
|
|
93
|
-
const year = getISOWeekYear(date, options);
|
|
94
|
-
const fourthOfJanuary = constructFrom(date, 0);
|
|
95
|
-
fourthOfJanuary.setFullYear(year, 0, 4);
|
|
96
|
-
fourthOfJanuary.setHours(0, 0, 0, 0);
|
|
97
|
-
return startOfISOWeek(fourthOfJanuary);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// ../node_modules/date-fns/startOfYear.js
|
|
101
|
-
function startOfYear(date, options) {
|
|
102
|
-
const date_ = toDate(date, options?.in);
|
|
103
|
-
date_.setFullYear(date_.getFullYear(), 0, 1);
|
|
104
|
-
date_.setHours(0, 0, 0, 0);
|
|
105
|
-
return date_;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
// ../node_modules/date-fns/locale/en-US/_lib/formatDistance.js
|
|
109
|
-
var formatDistanceLocale = {
|
|
110
|
-
lessThanXSeconds: {
|
|
111
|
-
one: "less than a second",
|
|
112
|
-
other: "less than {{count}} seconds"
|
|
113
|
-
},
|
|
114
|
-
xSeconds: {
|
|
115
|
-
one: "1 second",
|
|
116
|
-
other: "{{count}} seconds"
|
|
117
|
-
},
|
|
118
|
-
halfAMinute: "half a minute",
|
|
119
|
-
lessThanXMinutes: {
|
|
120
|
-
one: "less than a minute",
|
|
121
|
-
other: "less than {{count}} minutes"
|
|
122
|
-
},
|
|
123
|
-
xMinutes: {
|
|
124
|
-
one: "1 minute",
|
|
125
|
-
other: "{{count}} minutes"
|
|
126
|
-
},
|
|
127
|
-
aboutXHours: {
|
|
128
|
-
one: "about 1 hour",
|
|
129
|
-
other: "about {{count}} hours"
|
|
130
|
-
},
|
|
131
|
-
xHours: {
|
|
132
|
-
one: "1 hour",
|
|
133
|
-
other: "{{count}} hours"
|
|
134
|
-
},
|
|
135
|
-
xDays: {
|
|
136
|
-
one: "1 day",
|
|
137
|
-
other: "{{count}} days"
|
|
138
|
-
},
|
|
139
|
-
aboutXWeeks: {
|
|
140
|
-
one: "about 1 week",
|
|
141
|
-
other: "about {{count}} weeks"
|
|
142
|
-
},
|
|
143
|
-
xWeeks: {
|
|
144
|
-
one: "1 week",
|
|
145
|
-
other: "{{count}} weeks"
|
|
146
|
-
},
|
|
147
|
-
aboutXMonths: {
|
|
148
|
-
one: "about 1 month",
|
|
149
|
-
other: "about {{count}} months"
|
|
150
|
-
},
|
|
151
|
-
xMonths: {
|
|
152
|
-
one: "1 month",
|
|
153
|
-
other: "{{count}} months"
|
|
154
|
-
},
|
|
155
|
-
aboutXYears: {
|
|
156
|
-
one: "about 1 year",
|
|
157
|
-
other: "about {{count}} years"
|
|
158
|
-
},
|
|
159
|
-
xYears: {
|
|
160
|
-
one: "1 year",
|
|
161
|
-
other: "{{count}} years"
|
|
162
|
-
},
|
|
163
|
-
overXYears: {
|
|
164
|
-
one: "over 1 year",
|
|
165
|
-
other: "over {{count}} years"
|
|
166
|
-
},
|
|
167
|
-
almostXYears: {
|
|
168
|
-
one: "almost 1 year",
|
|
169
|
-
other: "almost {{count}} years"
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
|
-
var formatDistance = (token, count, options) => {
|
|
173
|
-
let result;
|
|
174
|
-
const tokenValue = formatDistanceLocale[token];
|
|
175
|
-
if (typeof tokenValue === "string") {
|
|
176
|
-
result = tokenValue;
|
|
177
|
-
} else if (count === 1) {
|
|
178
|
-
result = tokenValue.one;
|
|
179
|
-
} else {
|
|
180
|
-
result = tokenValue.other.replace("{{count}}", count.toString());
|
|
181
|
-
}
|
|
182
|
-
if (options?.addSuffix) {
|
|
183
|
-
if (options.comparison && options.comparison > 0) {
|
|
184
|
-
return "in " + result;
|
|
185
|
-
} else {
|
|
186
|
-
return result + " ago";
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
return result;
|
|
190
|
-
};
|
|
191
|
-
|
|
192
|
-
// ../node_modules/date-fns/locale/_lib/buildFormatLongFn.js
|
|
193
|
-
function buildFormatLongFn(args) {
|
|
194
|
-
return (options = {}) => {
|
|
195
|
-
const width = options.width ? String(options.width) : args.defaultWidth;
|
|
196
|
-
const format3 = args.formats[width] || args.formats[args.defaultWidth];
|
|
197
|
-
return format3;
|
|
198
|
-
};
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
// ../node_modules/date-fns/locale/en-US/_lib/formatLong.js
|
|
202
|
-
var dateFormats = {
|
|
203
|
-
full: "EEEE, MMMM do, y",
|
|
204
|
-
long: "MMMM do, y",
|
|
205
|
-
medium: "MMM d, y",
|
|
206
|
-
short: "MM/dd/yyyy"
|
|
207
|
-
};
|
|
208
|
-
var timeFormats = {
|
|
209
|
-
full: "h:mm:ss a zzzz",
|
|
210
|
-
long: "h:mm:ss a z",
|
|
211
|
-
medium: "h:mm:ss a",
|
|
212
|
-
short: "h:mm a"
|
|
213
|
-
};
|
|
214
|
-
var dateTimeFormats = {
|
|
215
|
-
full: "{{date}} 'at' {{time}}",
|
|
216
|
-
long: "{{date}} 'at' {{time}}",
|
|
217
|
-
medium: "{{date}}, {{time}}",
|
|
218
|
-
short: "{{date}}, {{time}}"
|
|
219
|
-
};
|
|
220
|
-
var formatLong = {
|
|
221
|
-
date: buildFormatLongFn({
|
|
222
|
-
formats: dateFormats,
|
|
223
|
-
defaultWidth: "full"
|
|
224
|
-
}),
|
|
225
|
-
time: buildFormatLongFn({
|
|
226
|
-
formats: timeFormats,
|
|
227
|
-
defaultWidth: "full"
|
|
228
|
-
}),
|
|
229
|
-
dateTime: buildFormatLongFn({
|
|
230
|
-
formats: dateTimeFormats,
|
|
231
|
-
defaultWidth: "full"
|
|
232
|
-
})
|
|
233
|
-
};
|
|
234
|
-
|
|
235
|
-
// ../node_modules/date-fns/locale/en-US/_lib/formatRelative.js
|
|
236
|
-
var formatRelativeLocale = {
|
|
237
|
-
lastWeek: "'last' eeee 'at' p",
|
|
238
|
-
yesterday: "'yesterday at' p",
|
|
239
|
-
today: "'today at' p",
|
|
240
|
-
tomorrow: "'tomorrow at' p",
|
|
241
|
-
nextWeek: "eeee 'at' p",
|
|
242
|
-
other: "P"
|
|
243
|
-
};
|
|
244
|
-
var formatRelative = (token, _date, _baseDate, _options) => formatRelativeLocale[token];
|
|
245
|
-
|
|
246
|
-
// ../node_modules/date-fns/locale/_lib/buildLocalizeFn.js
|
|
247
|
-
function buildLocalizeFn(args) {
|
|
248
|
-
return (value, options) => {
|
|
249
|
-
const context = options?.context ? String(options.context) : "standalone";
|
|
250
|
-
let valuesArray;
|
|
251
|
-
if (context === "formatting" && args.formattingValues) {
|
|
252
|
-
const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
|
|
253
|
-
const width = options?.width ? String(options.width) : defaultWidth;
|
|
254
|
-
valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
|
|
255
|
-
} else {
|
|
256
|
-
const defaultWidth = args.defaultWidth;
|
|
257
|
-
const width = options?.width ? String(options.width) : args.defaultWidth;
|
|
258
|
-
valuesArray = args.values[width] || args.values[defaultWidth];
|
|
259
|
-
}
|
|
260
|
-
const index = args.argumentCallback ? args.argumentCallback(value) : value;
|
|
261
|
-
return valuesArray[index];
|
|
262
|
-
};
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
// ../node_modules/date-fns/locale/en-US/_lib/localize.js
|
|
266
|
-
var eraValues = {
|
|
267
|
-
narrow: ["B", "A"],
|
|
268
|
-
abbreviated: ["BC", "AD"],
|
|
269
|
-
wide: ["Before Christ", "Anno Domini"]
|
|
270
|
-
};
|
|
271
|
-
var quarterValues = {
|
|
272
|
-
narrow: ["1", "2", "3", "4"],
|
|
273
|
-
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
274
|
-
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
275
|
-
};
|
|
276
|
-
var monthValues = {
|
|
277
|
-
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
278
|
-
abbreviated: [
|
|
279
|
-
"Jan",
|
|
280
|
-
"Feb",
|
|
281
|
-
"Mar",
|
|
282
|
-
"Apr",
|
|
283
|
-
"May",
|
|
284
|
-
"Jun",
|
|
285
|
-
"Jul",
|
|
286
|
-
"Aug",
|
|
287
|
-
"Sep",
|
|
288
|
-
"Oct",
|
|
289
|
-
"Nov",
|
|
290
|
-
"Dec"
|
|
291
|
-
],
|
|
292
|
-
wide: [
|
|
293
|
-
"January",
|
|
294
|
-
"February",
|
|
295
|
-
"March",
|
|
296
|
-
"April",
|
|
297
|
-
"May",
|
|
298
|
-
"June",
|
|
299
|
-
"July",
|
|
300
|
-
"August",
|
|
301
|
-
"September",
|
|
302
|
-
"October",
|
|
303
|
-
"November",
|
|
304
|
-
"December"
|
|
305
|
-
]
|
|
306
|
-
};
|
|
307
|
-
var dayValues = {
|
|
308
|
-
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
309
|
-
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
310
|
-
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
311
|
-
wide: [
|
|
312
|
-
"Sunday",
|
|
313
|
-
"Monday",
|
|
314
|
-
"Tuesday",
|
|
315
|
-
"Wednesday",
|
|
316
|
-
"Thursday",
|
|
317
|
-
"Friday",
|
|
318
|
-
"Saturday"
|
|
319
|
-
]
|
|
320
|
-
};
|
|
321
|
-
var dayPeriodValues = {
|
|
322
|
-
narrow: {
|
|
323
|
-
am: "a",
|
|
324
|
-
pm: "p",
|
|
325
|
-
midnight: "mi",
|
|
326
|
-
noon: "n",
|
|
327
|
-
morning: "morning",
|
|
328
|
-
afternoon: "afternoon",
|
|
329
|
-
evening: "evening",
|
|
330
|
-
night: "night"
|
|
331
|
-
},
|
|
332
|
-
abbreviated: {
|
|
333
|
-
am: "AM",
|
|
334
|
-
pm: "PM",
|
|
335
|
-
midnight: "midnight",
|
|
336
|
-
noon: "noon",
|
|
337
|
-
morning: "morning",
|
|
338
|
-
afternoon: "afternoon",
|
|
339
|
-
evening: "evening",
|
|
340
|
-
night: "night"
|
|
341
|
-
},
|
|
342
|
-
wide: {
|
|
343
|
-
am: "a.m.",
|
|
344
|
-
pm: "p.m.",
|
|
345
|
-
midnight: "midnight",
|
|
346
|
-
noon: "noon",
|
|
347
|
-
morning: "morning",
|
|
348
|
-
afternoon: "afternoon",
|
|
349
|
-
evening: "evening",
|
|
350
|
-
night: "night"
|
|
351
|
-
}
|
|
352
|
-
};
|
|
353
|
-
var formattingDayPeriodValues = {
|
|
354
|
-
narrow: {
|
|
355
|
-
am: "a",
|
|
356
|
-
pm: "p",
|
|
357
|
-
midnight: "mi",
|
|
358
|
-
noon: "n",
|
|
359
|
-
morning: "in the morning",
|
|
360
|
-
afternoon: "in the afternoon",
|
|
361
|
-
evening: "in the evening",
|
|
362
|
-
night: "at night"
|
|
363
|
-
},
|
|
364
|
-
abbreviated: {
|
|
365
|
-
am: "AM",
|
|
366
|
-
pm: "PM",
|
|
367
|
-
midnight: "midnight",
|
|
368
|
-
noon: "noon",
|
|
369
|
-
morning: "in the morning",
|
|
370
|
-
afternoon: "in the afternoon",
|
|
371
|
-
evening: "in the evening",
|
|
372
|
-
night: "at night"
|
|
373
|
-
},
|
|
374
|
-
wide: {
|
|
375
|
-
am: "a.m.",
|
|
376
|
-
pm: "p.m.",
|
|
377
|
-
midnight: "midnight",
|
|
378
|
-
noon: "noon",
|
|
379
|
-
morning: "in the morning",
|
|
380
|
-
afternoon: "in the afternoon",
|
|
381
|
-
evening: "in the evening",
|
|
382
|
-
night: "at night"
|
|
383
|
-
}
|
|
384
|
-
};
|
|
385
|
-
var ordinalNumber = (dirtyNumber, _options) => {
|
|
386
|
-
const number = Number(dirtyNumber);
|
|
387
|
-
const rem100 = number % 100;
|
|
388
|
-
if (rem100 > 20 || rem100 < 10) {
|
|
389
|
-
switch (rem100 % 10) {
|
|
390
|
-
case 1:
|
|
391
|
-
return number + "st";
|
|
392
|
-
case 2:
|
|
393
|
-
return number + "nd";
|
|
394
|
-
case 3:
|
|
395
|
-
return number + "rd";
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
return number + "th";
|
|
399
|
-
};
|
|
400
|
-
var localize = {
|
|
401
|
-
ordinalNumber,
|
|
402
|
-
era: buildLocalizeFn({
|
|
403
|
-
values: eraValues,
|
|
404
|
-
defaultWidth: "wide"
|
|
405
|
-
}),
|
|
406
|
-
quarter: buildLocalizeFn({
|
|
407
|
-
values: quarterValues,
|
|
408
|
-
defaultWidth: "wide",
|
|
409
|
-
argumentCallback: (quarter) => quarter - 1
|
|
410
|
-
}),
|
|
411
|
-
month: buildLocalizeFn({
|
|
412
|
-
values: monthValues,
|
|
413
|
-
defaultWidth: "wide"
|
|
414
|
-
}),
|
|
415
|
-
day: buildLocalizeFn({
|
|
416
|
-
values: dayValues,
|
|
417
|
-
defaultWidth: "wide"
|
|
418
|
-
}),
|
|
419
|
-
dayPeriod: buildLocalizeFn({
|
|
420
|
-
values: dayPeriodValues,
|
|
421
|
-
defaultWidth: "wide",
|
|
422
|
-
formattingValues: formattingDayPeriodValues,
|
|
423
|
-
defaultFormattingWidth: "wide"
|
|
424
|
-
})
|
|
425
|
-
};
|
|
426
|
-
|
|
427
|
-
// ../node_modules/date-fns/locale/_lib/buildMatchFn.js
|
|
428
|
-
function buildMatchFn(args) {
|
|
429
|
-
return (string, options = {}) => {
|
|
430
|
-
const width = options.width;
|
|
431
|
-
const matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
|
|
432
|
-
const matchResult = string.match(matchPattern);
|
|
433
|
-
if (!matchResult) {
|
|
434
|
-
return null;
|
|
435
|
-
}
|
|
436
|
-
const matchedString = matchResult[0];
|
|
437
|
-
const parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
|
|
438
|
-
const key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, (pattern) => pattern.test(matchedString)) : (
|
|
439
|
-
// [TODO] -- I challenge you to fix the type
|
|
440
|
-
findKey(parsePatterns, (pattern) => pattern.test(matchedString))
|
|
441
|
-
);
|
|
442
|
-
let value;
|
|
443
|
-
value = args.valueCallback ? args.valueCallback(key) : key;
|
|
444
|
-
value = options.valueCallback ? (
|
|
445
|
-
// [TODO] -- I challenge you to fix the type
|
|
446
|
-
options.valueCallback(value)
|
|
447
|
-
) : value;
|
|
448
|
-
const rest = string.slice(matchedString.length);
|
|
449
|
-
return { value, rest };
|
|
450
|
-
};
|
|
451
|
-
}
|
|
452
|
-
function findKey(object, predicate) {
|
|
453
|
-
for (const key in object) {
|
|
454
|
-
if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) {
|
|
455
|
-
return key;
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
return void 0;
|
|
459
|
-
}
|
|
460
|
-
function findIndex(array, predicate) {
|
|
461
|
-
for (let key = 0; key < array.length; key++) {
|
|
462
|
-
if (predicate(array[key])) {
|
|
463
|
-
return key;
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
return void 0;
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
// ../node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
|
|
470
|
-
function buildMatchPatternFn(args) {
|
|
471
|
-
return (string, options = {}) => {
|
|
472
|
-
const matchResult = string.match(args.matchPattern);
|
|
473
|
-
if (!matchResult) return null;
|
|
474
|
-
const matchedString = matchResult[0];
|
|
475
|
-
const parseResult = string.match(args.parsePattern);
|
|
476
|
-
if (!parseResult) return null;
|
|
477
|
-
let value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
|
|
478
|
-
value = options.valueCallback ? options.valueCallback(value) : value;
|
|
479
|
-
const rest = string.slice(matchedString.length);
|
|
480
|
-
return { value, rest };
|
|
481
|
-
};
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
// ../node_modules/date-fns/locale/en-US/_lib/match.js
|
|
485
|
-
var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
|
|
486
|
-
var parseOrdinalNumberPattern = /\d+/i;
|
|
487
|
-
var matchEraPatterns = {
|
|
488
|
-
narrow: /^(b|a)/i,
|
|
489
|
-
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
490
|
-
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
491
|
-
};
|
|
492
|
-
var parseEraPatterns = {
|
|
493
|
-
any: [/^b/i, /^(a|c)/i]
|
|
494
|
-
};
|
|
495
|
-
var matchQuarterPatterns = {
|
|
496
|
-
narrow: /^[1234]/i,
|
|
497
|
-
abbreviated: /^q[1234]/i,
|
|
498
|
-
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
499
|
-
};
|
|
500
|
-
var parseQuarterPatterns = {
|
|
501
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
502
|
-
};
|
|
503
|
-
var matchMonthPatterns = {
|
|
504
|
-
narrow: /^[jfmasond]/i,
|
|
505
|
-
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
506
|
-
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
507
|
-
};
|
|
508
|
-
var parseMonthPatterns = {
|
|
509
|
-
narrow: [
|
|
510
|
-
/^j/i,
|
|
511
|
-
/^f/i,
|
|
512
|
-
/^m/i,
|
|
513
|
-
/^a/i,
|
|
514
|
-
/^m/i,
|
|
515
|
-
/^j/i,
|
|
516
|
-
/^j/i,
|
|
517
|
-
/^a/i,
|
|
518
|
-
/^s/i,
|
|
519
|
-
/^o/i,
|
|
520
|
-
/^n/i,
|
|
521
|
-
/^d/i
|
|
522
|
-
],
|
|
523
|
-
any: [
|
|
524
|
-
/^ja/i,
|
|
525
|
-
/^f/i,
|
|
526
|
-
/^mar/i,
|
|
527
|
-
/^ap/i,
|
|
528
|
-
/^may/i,
|
|
529
|
-
/^jun/i,
|
|
530
|
-
/^jul/i,
|
|
531
|
-
/^au/i,
|
|
532
|
-
/^s/i,
|
|
533
|
-
/^o/i,
|
|
534
|
-
/^n/i,
|
|
535
|
-
/^d/i
|
|
536
|
-
]
|
|
537
|
-
};
|
|
538
|
-
var matchDayPatterns = {
|
|
539
|
-
narrow: /^[smtwf]/i,
|
|
540
|
-
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
541
|
-
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
542
|
-
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
543
|
-
};
|
|
544
|
-
var parseDayPatterns = {
|
|
545
|
-
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
546
|
-
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
547
|
-
};
|
|
548
|
-
var matchDayPeriodPatterns = {
|
|
549
|
-
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
550
|
-
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
551
|
-
};
|
|
552
|
-
var parseDayPeriodPatterns = {
|
|
553
|
-
any: {
|
|
554
|
-
am: /^a/i,
|
|
555
|
-
pm: /^p/i,
|
|
556
|
-
midnight: /^mi/i,
|
|
557
|
-
noon: /^no/i,
|
|
558
|
-
morning: /morning/i,
|
|
559
|
-
afternoon: /afternoon/i,
|
|
560
|
-
evening: /evening/i,
|
|
561
|
-
night: /night/i
|
|
562
|
-
}
|
|
563
|
-
};
|
|
564
|
-
var match = {
|
|
565
|
-
ordinalNumber: buildMatchPatternFn({
|
|
566
|
-
matchPattern: matchOrdinalNumberPattern,
|
|
567
|
-
parsePattern: parseOrdinalNumberPattern,
|
|
568
|
-
valueCallback: (value) => parseInt(value, 10)
|
|
569
|
-
}),
|
|
570
|
-
era: buildMatchFn({
|
|
571
|
-
matchPatterns: matchEraPatterns,
|
|
572
|
-
defaultMatchWidth: "wide",
|
|
573
|
-
parsePatterns: parseEraPatterns,
|
|
574
|
-
defaultParseWidth: "any"
|
|
575
|
-
}),
|
|
576
|
-
quarter: buildMatchFn({
|
|
577
|
-
matchPatterns: matchQuarterPatterns,
|
|
578
|
-
defaultMatchWidth: "wide",
|
|
579
|
-
parsePatterns: parseQuarterPatterns,
|
|
580
|
-
defaultParseWidth: "any",
|
|
581
|
-
valueCallback: (index) => index + 1
|
|
582
|
-
}),
|
|
583
|
-
month: buildMatchFn({
|
|
584
|
-
matchPatterns: matchMonthPatterns,
|
|
585
|
-
defaultMatchWidth: "wide",
|
|
586
|
-
parsePatterns: parseMonthPatterns,
|
|
587
|
-
defaultParseWidth: "any"
|
|
588
|
-
}),
|
|
589
|
-
day: buildMatchFn({
|
|
590
|
-
matchPatterns: matchDayPatterns,
|
|
591
|
-
defaultMatchWidth: "wide",
|
|
592
|
-
parsePatterns: parseDayPatterns,
|
|
593
|
-
defaultParseWidth: "any"
|
|
594
|
-
}),
|
|
595
|
-
dayPeriod: buildMatchFn({
|
|
596
|
-
matchPatterns: matchDayPeriodPatterns,
|
|
597
|
-
defaultMatchWidth: "any",
|
|
598
|
-
parsePatterns: parseDayPeriodPatterns,
|
|
599
|
-
defaultParseWidth: "any"
|
|
600
|
-
})
|
|
601
|
-
};
|
|
602
|
-
|
|
603
|
-
// ../node_modules/date-fns/locale/en-US.js
|
|
604
|
-
var enUS = {
|
|
605
|
-
code: "en-US",
|
|
606
|
-
formatDistance,
|
|
607
|
-
formatLong,
|
|
608
|
-
formatRelative,
|
|
609
|
-
localize,
|
|
610
|
-
match,
|
|
611
|
-
options: {
|
|
612
|
-
weekStartsOn: 0,
|
|
613
|
-
firstWeekContainsDate: 1
|
|
614
|
-
}
|
|
615
|
-
};
|
|
616
|
-
|
|
617
|
-
// ../node_modules/date-fns/getDayOfYear.js
|
|
618
|
-
function getDayOfYear(date, options) {
|
|
619
|
-
const _date = toDate(date, options?.in);
|
|
620
|
-
const diff = differenceInCalendarDays(_date, startOfYear(_date));
|
|
621
|
-
const dayOfYear = diff + 1;
|
|
622
|
-
return dayOfYear;
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
// ../node_modules/date-fns/getISOWeek.js
|
|
626
|
-
function getISOWeek(date, options) {
|
|
627
|
-
const _date = toDate(date, options?.in);
|
|
628
|
-
const diff = +startOfISOWeek(_date) - +startOfISOWeekYear(_date);
|
|
629
|
-
return Math.round(diff / millisecondsInWeek) + 1;
|
|
630
|
-
}
|
|
631
|
-
|
|
632
|
-
// ../node_modules/date-fns/getWeekYear.js
|
|
633
|
-
function getWeekYear(date, options) {
|
|
634
|
-
const _date = toDate(date, options?.in);
|
|
635
|
-
const year = _date.getFullYear();
|
|
636
|
-
const defaultOptions2 = getDefaultOptions();
|
|
637
|
-
const firstWeekContainsDate = options?.firstWeekContainsDate ?? options?.locale?.options?.firstWeekContainsDate ?? defaultOptions2.firstWeekContainsDate ?? defaultOptions2.locale?.options?.firstWeekContainsDate ?? 1;
|
|
638
|
-
const firstWeekOfNextYear = constructFrom(options?.in || date, 0);
|
|
639
|
-
firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);
|
|
640
|
-
firstWeekOfNextYear.setHours(0, 0, 0, 0);
|
|
641
|
-
const startOfNextYear = startOfWeek(firstWeekOfNextYear, options);
|
|
642
|
-
const firstWeekOfThisYear = constructFrom(options?.in || date, 0);
|
|
643
|
-
firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);
|
|
644
|
-
firstWeekOfThisYear.setHours(0, 0, 0, 0);
|
|
645
|
-
const startOfThisYear = startOfWeek(firstWeekOfThisYear, options);
|
|
646
|
-
if (+_date >= +startOfNextYear) {
|
|
647
|
-
return year + 1;
|
|
648
|
-
} else if (+_date >= +startOfThisYear) {
|
|
649
|
-
return year;
|
|
650
|
-
} else {
|
|
651
|
-
return year - 1;
|
|
652
|
-
}
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
// ../node_modules/date-fns/startOfWeekYear.js
|
|
656
|
-
function startOfWeekYear(date, options) {
|
|
657
|
-
const defaultOptions2 = getDefaultOptions();
|
|
658
|
-
const firstWeekContainsDate = options?.firstWeekContainsDate ?? options?.locale?.options?.firstWeekContainsDate ?? defaultOptions2.firstWeekContainsDate ?? defaultOptions2.locale?.options?.firstWeekContainsDate ?? 1;
|
|
659
|
-
const year = getWeekYear(date, options);
|
|
660
|
-
const firstWeek = constructFrom(options?.in || date, 0);
|
|
661
|
-
firstWeek.setFullYear(year, 0, firstWeekContainsDate);
|
|
662
|
-
firstWeek.setHours(0, 0, 0, 0);
|
|
663
|
-
const _date = startOfWeek(firstWeek, options);
|
|
664
|
-
return _date;
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
// ../node_modules/date-fns/getWeek.js
|
|
668
|
-
function getWeek(date, options) {
|
|
669
|
-
const _date = toDate(date, options?.in);
|
|
670
|
-
const diff = +startOfWeek(_date, options) - +startOfWeekYear(_date, options);
|
|
671
|
-
return Math.round(diff / millisecondsInWeek) + 1;
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
// ../node_modules/date-fns/_lib/addLeadingZeros.js
|
|
675
|
-
function addLeadingZeros(number, targetLength) {
|
|
676
|
-
const sign = number < 0 ? "-" : "";
|
|
677
|
-
const output = Math.abs(number).toString().padStart(targetLength, "0");
|
|
678
|
-
return sign + output;
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
// ../node_modules/date-fns/_lib/format/lightFormatters.js
|
|
682
|
-
var lightFormatters = {
|
|
683
|
-
// Year
|
|
684
|
-
y(date, token) {
|
|
685
|
-
const signedYear = date.getFullYear();
|
|
686
|
-
const year = signedYear > 0 ? signedYear : 1 - signedYear;
|
|
687
|
-
return addLeadingZeros(token === "yy" ? year % 100 : year, token.length);
|
|
688
|
-
},
|
|
689
|
-
// Month
|
|
690
|
-
M(date, token) {
|
|
691
|
-
const month = date.getMonth();
|
|
692
|
-
return token === "M" ? String(month + 1) : addLeadingZeros(month + 1, 2);
|
|
693
|
-
},
|
|
694
|
-
// Day of the month
|
|
695
|
-
d(date, token) {
|
|
696
|
-
return addLeadingZeros(date.getDate(), token.length);
|
|
697
|
-
},
|
|
698
|
-
// AM or PM
|
|
699
|
-
a(date, token) {
|
|
700
|
-
const dayPeriodEnumValue = date.getHours() / 12 >= 1 ? "pm" : "am";
|
|
701
|
-
switch (token) {
|
|
702
|
-
case "a":
|
|
703
|
-
case "aa":
|
|
704
|
-
return dayPeriodEnumValue.toUpperCase();
|
|
705
|
-
case "aaa":
|
|
706
|
-
return dayPeriodEnumValue;
|
|
707
|
-
case "aaaaa":
|
|
708
|
-
return dayPeriodEnumValue[0];
|
|
709
|
-
case "aaaa":
|
|
710
|
-
default:
|
|
711
|
-
return dayPeriodEnumValue === "am" ? "a.m." : "p.m.";
|
|
712
|
-
}
|
|
713
|
-
},
|
|
714
|
-
// Hour [1-12]
|
|
715
|
-
h(date, token) {
|
|
716
|
-
return addLeadingZeros(date.getHours() % 12 || 12, token.length);
|
|
717
|
-
},
|
|
718
|
-
// Hour [0-23]
|
|
719
|
-
H(date, token) {
|
|
720
|
-
return addLeadingZeros(date.getHours(), token.length);
|
|
721
|
-
},
|
|
722
|
-
// Minute
|
|
723
|
-
m(date, token) {
|
|
724
|
-
return addLeadingZeros(date.getMinutes(), token.length);
|
|
725
|
-
},
|
|
726
|
-
// Second
|
|
727
|
-
s(date, token) {
|
|
728
|
-
return addLeadingZeros(date.getSeconds(), token.length);
|
|
729
|
-
},
|
|
730
|
-
// Fraction of second
|
|
731
|
-
S(date, token) {
|
|
732
|
-
const numberOfDigits = token.length;
|
|
733
|
-
const milliseconds = date.getMilliseconds();
|
|
734
|
-
const fractionalSeconds = Math.trunc(
|
|
735
|
-
milliseconds * Math.pow(10, numberOfDigits - 3)
|
|
736
|
-
);
|
|
737
|
-
return addLeadingZeros(fractionalSeconds, token.length);
|
|
738
|
-
}
|
|
739
|
-
};
|
|
740
|
-
|
|
741
|
-
// ../node_modules/date-fns/_lib/format/formatters.js
|
|
742
|
-
var dayPeriodEnum = {
|
|
743
|
-
midnight: "midnight",
|
|
744
|
-
noon: "noon",
|
|
745
|
-
morning: "morning",
|
|
746
|
-
afternoon: "afternoon",
|
|
747
|
-
evening: "evening",
|
|
748
|
-
night: "night"
|
|
749
|
-
};
|
|
750
|
-
var formatters = {
|
|
751
|
-
// Era
|
|
752
|
-
G: function(date, token, localize2) {
|
|
753
|
-
const era = date.getFullYear() > 0 ? 1 : 0;
|
|
754
|
-
switch (token) {
|
|
755
|
-
// AD, BC
|
|
756
|
-
case "G":
|
|
757
|
-
case "GG":
|
|
758
|
-
case "GGG":
|
|
759
|
-
return localize2.era(era, { width: "abbreviated" });
|
|
760
|
-
// A, B
|
|
761
|
-
case "GGGGG":
|
|
762
|
-
return localize2.era(era, { width: "narrow" });
|
|
763
|
-
// Anno Domini, Before Christ
|
|
764
|
-
case "GGGG":
|
|
765
|
-
default:
|
|
766
|
-
return localize2.era(era, { width: "wide" });
|
|
767
|
-
}
|
|
768
|
-
},
|
|
769
|
-
// Year
|
|
770
|
-
y: function(date, token, localize2) {
|
|
771
|
-
if (token === "yo") {
|
|
772
|
-
const signedYear = date.getFullYear();
|
|
773
|
-
const year = signedYear > 0 ? signedYear : 1 - signedYear;
|
|
774
|
-
return localize2.ordinalNumber(year, { unit: "year" });
|
|
775
|
-
}
|
|
776
|
-
return lightFormatters.y(date, token);
|
|
777
|
-
},
|
|
778
|
-
// Local week-numbering year
|
|
779
|
-
Y: function(date, token, localize2, options) {
|
|
780
|
-
const signedWeekYear = getWeekYear(date, options);
|
|
781
|
-
const weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear;
|
|
782
|
-
if (token === "YY") {
|
|
783
|
-
const twoDigitYear = weekYear % 100;
|
|
784
|
-
return addLeadingZeros(twoDigitYear, 2);
|
|
785
|
-
}
|
|
786
|
-
if (token === "Yo") {
|
|
787
|
-
return localize2.ordinalNumber(weekYear, { unit: "year" });
|
|
788
|
-
}
|
|
789
|
-
return addLeadingZeros(weekYear, token.length);
|
|
790
|
-
},
|
|
791
|
-
// ISO week-numbering year
|
|
792
|
-
R: function(date, token) {
|
|
793
|
-
const isoWeekYear = getISOWeekYear(date);
|
|
794
|
-
return addLeadingZeros(isoWeekYear, token.length);
|
|
795
|
-
},
|
|
796
|
-
// Extended year. This is a single number designating the year of this calendar system.
|
|
797
|
-
// The main difference between `y` and `u` localizers are B.C. years:
|
|
798
|
-
// | Year | `y` | `u` |
|
|
799
|
-
// |------|-----|-----|
|
|
800
|
-
// | AC 1 | 1 | 1 |
|
|
801
|
-
// | BC 1 | 1 | 0 |
|
|
802
|
-
// | BC 2 | 2 | -1 |
|
|
803
|
-
// Also `yy` always returns the last two digits of a year,
|
|
804
|
-
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
805
|
-
u: function(date, token) {
|
|
806
|
-
const year = date.getFullYear();
|
|
807
|
-
return addLeadingZeros(year, token.length);
|
|
808
|
-
},
|
|
809
|
-
// Quarter
|
|
810
|
-
Q: function(date, token, localize2) {
|
|
811
|
-
const quarter = Math.ceil((date.getMonth() + 1) / 3);
|
|
812
|
-
switch (token) {
|
|
813
|
-
// 1, 2, 3, 4
|
|
814
|
-
case "Q":
|
|
815
|
-
return String(quarter);
|
|
816
|
-
// 01, 02, 03, 04
|
|
817
|
-
case "QQ":
|
|
818
|
-
return addLeadingZeros(quarter, 2);
|
|
819
|
-
// 1st, 2nd, 3rd, 4th
|
|
820
|
-
case "Qo":
|
|
821
|
-
return localize2.ordinalNumber(quarter, { unit: "quarter" });
|
|
822
|
-
// Q1, Q2, Q3, Q4
|
|
823
|
-
case "QQQ":
|
|
824
|
-
return localize2.quarter(quarter, {
|
|
825
|
-
width: "abbreviated",
|
|
826
|
-
context: "formatting"
|
|
827
|
-
});
|
|
828
|
-
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
829
|
-
case "QQQQQ":
|
|
830
|
-
return localize2.quarter(quarter, {
|
|
831
|
-
width: "narrow",
|
|
832
|
-
context: "formatting"
|
|
833
|
-
});
|
|
834
|
-
// 1st quarter, 2nd quarter, ...
|
|
835
|
-
case "QQQQ":
|
|
836
|
-
default:
|
|
837
|
-
return localize2.quarter(quarter, {
|
|
838
|
-
width: "wide",
|
|
839
|
-
context: "formatting"
|
|
840
|
-
});
|
|
841
|
-
}
|
|
842
|
-
},
|
|
843
|
-
// Stand-alone quarter
|
|
844
|
-
q: function(date, token, localize2) {
|
|
845
|
-
const quarter = Math.ceil((date.getMonth() + 1) / 3);
|
|
846
|
-
switch (token) {
|
|
847
|
-
// 1, 2, 3, 4
|
|
848
|
-
case "q":
|
|
849
|
-
return String(quarter);
|
|
850
|
-
// 01, 02, 03, 04
|
|
851
|
-
case "qq":
|
|
852
|
-
return addLeadingZeros(quarter, 2);
|
|
853
|
-
// 1st, 2nd, 3rd, 4th
|
|
854
|
-
case "qo":
|
|
855
|
-
return localize2.ordinalNumber(quarter, { unit: "quarter" });
|
|
856
|
-
// Q1, Q2, Q3, Q4
|
|
857
|
-
case "qqq":
|
|
858
|
-
return localize2.quarter(quarter, {
|
|
859
|
-
width: "abbreviated",
|
|
860
|
-
context: "standalone"
|
|
861
|
-
});
|
|
862
|
-
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
863
|
-
case "qqqqq":
|
|
864
|
-
return localize2.quarter(quarter, {
|
|
865
|
-
width: "narrow",
|
|
866
|
-
context: "standalone"
|
|
867
|
-
});
|
|
868
|
-
// 1st quarter, 2nd quarter, ...
|
|
869
|
-
case "qqqq":
|
|
870
|
-
default:
|
|
871
|
-
return localize2.quarter(quarter, {
|
|
872
|
-
width: "wide",
|
|
873
|
-
context: "standalone"
|
|
874
|
-
});
|
|
875
|
-
}
|
|
876
|
-
},
|
|
877
|
-
// Month
|
|
878
|
-
M: function(date, token, localize2) {
|
|
879
|
-
const month = date.getMonth();
|
|
880
|
-
switch (token) {
|
|
881
|
-
case "M":
|
|
882
|
-
case "MM":
|
|
883
|
-
return lightFormatters.M(date, token);
|
|
884
|
-
// 1st, 2nd, ..., 12th
|
|
885
|
-
case "Mo":
|
|
886
|
-
return localize2.ordinalNumber(month + 1, { unit: "month" });
|
|
887
|
-
// Jan, Feb, ..., Dec
|
|
888
|
-
case "MMM":
|
|
889
|
-
return localize2.month(month, {
|
|
890
|
-
width: "abbreviated",
|
|
891
|
-
context: "formatting"
|
|
892
|
-
});
|
|
893
|
-
// J, F, ..., D
|
|
894
|
-
case "MMMMM":
|
|
895
|
-
return localize2.month(month, {
|
|
896
|
-
width: "narrow",
|
|
897
|
-
context: "formatting"
|
|
898
|
-
});
|
|
899
|
-
// January, February, ..., December
|
|
900
|
-
case "MMMM":
|
|
901
|
-
default:
|
|
902
|
-
return localize2.month(month, { width: "wide", context: "formatting" });
|
|
903
|
-
}
|
|
904
|
-
},
|
|
905
|
-
// Stand-alone month
|
|
906
|
-
L: function(date, token, localize2) {
|
|
907
|
-
const month = date.getMonth();
|
|
908
|
-
switch (token) {
|
|
909
|
-
// 1, 2, ..., 12
|
|
910
|
-
case "L":
|
|
911
|
-
return String(month + 1);
|
|
912
|
-
// 01, 02, ..., 12
|
|
913
|
-
case "LL":
|
|
914
|
-
return addLeadingZeros(month + 1, 2);
|
|
915
|
-
// 1st, 2nd, ..., 12th
|
|
916
|
-
case "Lo":
|
|
917
|
-
return localize2.ordinalNumber(month + 1, { unit: "month" });
|
|
918
|
-
// Jan, Feb, ..., Dec
|
|
919
|
-
case "LLL":
|
|
920
|
-
return localize2.month(month, {
|
|
921
|
-
width: "abbreviated",
|
|
922
|
-
context: "standalone"
|
|
923
|
-
});
|
|
924
|
-
// J, F, ..., D
|
|
925
|
-
case "LLLLL":
|
|
926
|
-
return localize2.month(month, {
|
|
927
|
-
width: "narrow",
|
|
928
|
-
context: "standalone"
|
|
929
|
-
});
|
|
930
|
-
// January, February, ..., December
|
|
931
|
-
case "LLLL":
|
|
932
|
-
default:
|
|
933
|
-
return localize2.month(month, { width: "wide", context: "standalone" });
|
|
934
|
-
}
|
|
935
|
-
},
|
|
936
|
-
// Local week of year
|
|
937
|
-
w: function(date, token, localize2, options) {
|
|
938
|
-
const week = getWeek(date, options);
|
|
939
|
-
if (token === "wo") {
|
|
940
|
-
return localize2.ordinalNumber(week, { unit: "week" });
|
|
941
|
-
}
|
|
942
|
-
return addLeadingZeros(week, token.length);
|
|
943
|
-
},
|
|
944
|
-
// ISO week of year
|
|
945
|
-
I: function(date, token, localize2) {
|
|
946
|
-
const isoWeek = getISOWeek(date);
|
|
947
|
-
if (token === "Io") {
|
|
948
|
-
return localize2.ordinalNumber(isoWeek, { unit: "week" });
|
|
949
|
-
}
|
|
950
|
-
return addLeadingZeros(isoWeek, token.length);
|
|
951
|
-
},
|
|
952
|
-
// Day of the month
|
|
953
|
-
d: function(date, token, localize2) {
|
|
954
|
-
if (token === "do") {
|
|
955
|
-
return localize2.ordinalNumber(date.getDate(), { unit: "date" });
|
|
956
|
-
}
|
|
957
|
-
return lightFormatters.d(date, token);
|
|
958
|
-
},
|
|
959
|
-
// Day of year
|
|
960
|
-
D: function(date, token, localize2) {
|
|
961
|
-
const dayOfYear = getDayOfYear(date);
|
|
962
|
-
if (token === "Do") {
|
|
963
|
-
return localize2.ordinalNumber(dayOfYear, { unit: "dayOfYear" });
|
|
964
|
-
}
|
|
965
|
-
return addLeadingZeros(dayOfYear, token.length);
|
|
966
|
-
},
|
|
967
|
-
// Day of week
|
|
968
|
-
E: function(date, token, localize2) {
|
|
969
|
-
const dayOfWeek = date.getDay();
|
|
970
|
-
switch (token) {
|
|
971
|
-
// Tue
|
|
972
|
-
case "E":
|
|
973
|
-
case "EE":
|
|
974
|
-
case "EEE":
|
|
975
|
-
return localize2.day(dayOfWeek, {
|
|
976
|
-
width: "abbreviated",
|
|
977
|
-
context: "formatting"
|
|
978
|
-
});
|
|
979
|
-
// T
|
|
980
|
-
case "EEEEE":
|
|
981
|
-
return localize2.day(dayOfWeek, {
|
|
982
|
-
width: "narrow",
|
|
983
|
-
context: "formatting"
|
|
984
|
-
});
|
|
985
|
-
// Tu
|
|
986
|
-
case "EEEEEE":
|
|
987
|
-
return localize2.day(dayOfWeek, {
|
|
988
|
-
width: "short",
|
|
989
|
-
context: "formatting"
|
|
990
|
-
});
|
|
991
|
-
// Tuesday
|
|
992
|
-
case "EEEE":
|
|
993
|
-
default:
|
|
994
|
-
return localize2.day(dayOfWeek, {
|
|
995
|
-
width: "wide",
|
|
996
|
-
context: "formatting"
|
|
997
|
-
});
|
|
998
|
-
}
|
|
999
|
-
},
|
|
1000
|
-
// Local day of week
|
|
1001
|
-
e: function(date, token, localize2, options) {
|
|
1002
|
-
const dayOfWeek = date.getDay();
|
|
1003
|
-
const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
|
|
1004
|
-
switch (token) {
|
|
1005
|
-
// Numerical value (Nth day of week with current locale or weekStartsOn)
|
|
1006
|
-
case "e":
|
|
1007
|
-
return String(localDayOfWeek);
|
|
1008
|
-
// Padded numerical value
|
|
1009
|
-
case "ee":
|
|
1010
|
-
return addLeadingZeros(localDayOfWeek, 2);
|
|
1011
|
-
// 1st, 2nd, ..., 7th
|
|
1012
|
-
case "eo":
|
|
1013
|
-
return localize2.ordinalNumber(localDayOfWeek, { unit: "day" });
|
|
1014
|
-
case "eee":
|
|
1015
|
-
return localize2.day(dayOfWeek, {
|
|
1016
|
-
width: "abbreviated",
|
|
1017
|
-
context: "formatting"
|
|
1018
|
-
});
|
|
1019
|
-
// T
|
|
1020
|
-
case "eeeee":
|
|
1021
|
-
return localize2.day(dayOfWeek, {
|
|
1022
|
-
width: "narrow",
|
|
1023
|
-
context: "formatting"
|
|
1024
|
-
});
|
|
1025
|
-
// Tu
|
|
1026
|
-
case "eeeeee":
|
|
1027
|
-
return localize2.day(dayOfWeek, {
|
|
1028
|
-
width: "short",
|
|
1029
|
-
context: "formatting"
|
|
1030
|
-
});
|
|
1031
|
-
// Tuesday
|
|
1032
|
-
case "eeee":
|
|
1033
|
-
default:
|
|
1034
|
-
return localize2.day(dayOfWeek, {
|
|
1035
|
-
width: "wide",
|
|
1036
|
-
context: "formatting"
|
|
1037
|
-
});
|
|
1038
|
-
}
|
|
1039
|
-
},
|
|
1040
|
-
// Stand-alone local day of week
|
|
1041
|
-
c: function(date, token, localize2, options) {
|
|
1042
|
-
const dayOfWeek = date.getDay();
|
|
1043
|
-
const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
|
|
1044
|
-
switch (token) {
|
|
1045
|
-
// Numerical value (same as in `e`)
|
|
1046
|
-
case "c":
|
|
1047
|
-
return String(localDayOfWeek);
|
|
1048
|
-
// Padded numerical value
|
|
1049
|
-
case "cc":
|
|
1050
|
-
return addLeadingZeros(localDayOfWeek, token.length);
|
|
1051
|
-
// 1st, 2nd, ..., 7th
|
|
1052
|
-
case "co":
|
|
1053
|
-
return localize2.ordinalNumber(localDayOfWeek, { unit: "day" });
|
|
1054
|
-
case "ccc":
|
|
1055
|
-
return localize2.day(dayOfWeek, {
|
|
1056
|
-
width: "abbreviated",
|
|
1057
|
-
context: "standalone"
|
|
1058
|
-
});
|
|
1059
|
-
// T
|
|
1060
|
-
case "ccccc":
|
|
1061
|
-
return localize2.day(dayOfWeek, {
|
|
1062
|
-
width: "narrow",
|
|
1063
|
-
context: "standalone"
|
|
1064
|
-
});
|
|
1065
|
-
// Tu
|
|
1066
|
-
case "cccccc":
|
|
1067
|
-
return localize2.day(dayOfWeek, {
|
|
1068
|
-
width: "short",
|
|
1069
|
-
context: "standalone"
|
|
1070
|
-
});
|
|
1071
|
-
// Tuesday
|
|
1072
|
-
case "cccc":
|
|
1073
|
-
default:
|
|
1074
|
-
return localize2.day(dayOfWeek, {
|
|
1075
|
-
width: "wide",
|
|
1076
|
-
context: "standalone"
|
|
1077
|
-
});
|
|
1078
|
-
}
|
|
1079
|
-
},
|
|
1080
|
-
// ISO day of week
|
|
1081
|
-
i: function(date, token, localize2) {
|
|
1082
|
-
const dayOfWeek = date.getDay();
|
|
1083
|
-
const isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;
|
|
1084
|
-
switch (token) {
|
|
1085
|
-
// 2
|
|
1086
|
-
case "i":
|
|
1087
|
-
return String(isoDayOfWeek);
|
|
1088
|
-
// 02
|
|
1089
|
-
case "ii":
|
|
1090
|
-
return addLeadingZeros(isoDayOfWeek, token.length);
|
|
1091
|
-
// 2nd
|
|
1092
|
-
case "io":
|
|
1093
|
-
return localize2.ordinalNumber(isoDayOfWeek, { unit: "day" });
|
|
1094
|
-
// Tue
|
|
1095
|
-
case "iii":
|
|
1096
|
-
return localize2.day(dayOfWeek, {
|
|
1097
|
-
width: "abbreviated",
|
|
1098
|
-
context: "formatting"
|
|
1099
|
-
});
|
|
1100
|
-
// T
|
|
1101
|
-
case "iiiii":
|
|
1102
|
-
return localize2.day(dayOfWeek, {
|
|
1103
|
-
width: "narrow",
|
|
1104
|
-
context: "formatting"
|
|
1105
|
-
});
|
|
1106
|
-
// Tu
|
|
1107
|
-
case "iiiiii":
|
|
1108
|
-
return localize2.day(dayOfWeek, {
|
|
1109
|
-
width: "short",
|
|
1110
|
-
context: "formatting"
|
|
1111
|
-
});
|
|
1112
|
-
// Tuesday
|
|
1113
|
-
case "iiii":
|
|
1114
|
-
default:
|
|
1115
|
-
return localize2.day(dayOfWeek, {
|
|
1116
|
-
width: "wide",
|
|
1117
|
-
context: "formatting"
|
|
1118
|
-
});
|
|
1119
|
-
}
|
|
1120
|
-
},
|
|
1121
|
-
// AM or PM
|
|
1122
|
-
a: function(date, token, localize2) {
|
|
1123
|
-
const hours = date.getHours();
|
|
1124
|
-
const dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am";
|
|
1125
|
-
switch (token) {
|
|
1126
|
-
case "a":
|
|
1127
|
-
case "aa":
|
|
1128
|
-
return localize2.dayPeriod(dayPeriodEnumValue, {
|
|
1129
|
-
width: "abbreviated",
|
|
1130
|
-
context: "formatting"
|
|
1131
|
-
});
|
|
1132
|
-
case "aaa":
|
|
1133
|
-
return localize2.dayPeriod(dayPeriodEnumValue, {
|
|
1134
|
-
width: "abbreviated",
|
|
1135
|
-
context: "formatting"
|
|
1136
|
-
}).toLowerCase();
|
|
1137
|
-
case "aaaaa":
|
|
1138
|
-
return localize2.dayPeriod(dayPeriodEnumValue, {
|
|
1139
|
-
width: "narrow",
|
|
1140
|
-
context: "formatting"
|
|
1141
|
-
});
|
|
1142
|
-
case "aaaa":
|
|
1143
|
-
default:
|
|
1144
|
-
return localize2.dayPeriod(dayPeriodEnumValue, {
|
|
1145
|
-
width: "wide",
|
|
1146
|
-
context: "formatting"
|
|
1147
|
-
});
|
|
1148
|
-
}
|
|
1149
|
-
},
|
|
1150
|
-
// AM, PM, midnight, noon
|
|
1151
|
-
b: function(date, token, localize2) {
|
|
1152
|
-
const hours = date.getHours();
|
|
1153
|
-
let dayPeriodEnumValue;
|
|
1154
|
-
if (hours === 12) {
|
|
1155
|
-
dayPeriodEnumValue = dayPeriodEnum.noon;
|
|
1156
|
-
} else if (hours === 0) {
|
|
1157
|
-
dayPeriodEnumValue = dayPeriodEnum.midnight;
|
|
1158
|
-
} else {
|
|
1159
|
-
dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am";
|
|
1160
|
-
}
|
|
1161
|
-
switch (token) {
|
|
1162
|
-
case "b":
|
|
1163
|
-
case "bb":
|
|
1164
|
-
return localize2.dayPeriod(dayPeriodEnumValue, {
|
|
1165
|
-
width: "abbreviated",
|
|
1166
|
-
context: "formatting"
|
|
1167
|
-
});
|
|
1168
|
-
case "bbb":
|
|
1169
|
-
return localize2.dayPeriod(dayPeriodEnumValue, {
|
|
1170
|
-
width: "abbreviated",
|
|
1171
|
-
context: "formatting"
|
|
1172
|
-
}).toLowerCase();
|
|
1173
|
-
case "bbbbb":
|
|
1174
|
-
return localize2.dayPeriod(dayPeriodEnumValue, {
|
|
1175
|
-
width: "narrow",
|
|
1176
|
-
context: "formatting"
|
|
1177
|
-
});
|
|
1178
|
-
case "bbbb":
|
|
1179
|
-
default:
|
|
1180
|
-
return localize2.dayPeriod(dayPeriodEnumValue, {
|
|
1181
|
-
width: "wide",
|
|
1182
|
-
context: "formatting"
|
|
1183
|
-
});
|
|
1184
|
-
}
|
|
1185
|
-
},
|
|
1186
|
-
// in the morning, in the afternoon, in the evening, at night
|
|
1187
|
-
B: function(date, token, localize2) {
|
|
1188
|
-
const hours = date.getHours();
|
|
1189
|
-
let dayPeriodEnumValue;
|
|
1190
|
-
if (hours >= 17) {
|
|
1191
|
-
dayPeriodEnumValue = dayPeriodEnum.evening;
|
|
1192
|
-
} else if (hours >= 12) {
|
|
1193
|
-
dayPeriodEnumValue = dayPeriodEnum.afternoon;
|
|
1194
|
-
} else if (hours >= 4) {
|
|
1195
|
-
dayPeriodEnumValue = dayPeriodEnum.morning;
|
|
1196
|
-
} else {
|
|
1197
|
-
dayPeriodEnumValue = dayPeriodEnum.night;
|
|
1198
|
-
}
|
|
1199
|
-
switch (token) {
|
|
1200
|
-
case "B":
|
|
1201
|
-
case "BB":
|
|
1202
|
-
case "BBB":
|
|
1203
|
-
return localize2.dayPeriod(dayPeriodEnumValue, {
|
|
1204
|
-
width: "abbreviated",
|
|
1205
|
-
context: "formatting"
|
|
1206
|
-
});
|
|
1207
|
-
case "BBBBB":
|
|
1208
|
-
return localize2.dayPeriod(dayPeriodEnumValue, {
|
|
1209
|
-
width: "narrow",
|
|
1210
|
-
context: "formatting"
|
|
1211
|
-
});
|
|
1212
|
-
case "BBBB":
|
|
1213
|
-
default:
|
|
1214
|
-
return localize2.dayPeriod(dayPeriodEnumValue, {
|
|
1215
|
-
width: "wide",
|
|
1216
|
-
context: "formatting"
|
|
1217
|
-
});
|
|
1218
|
-
}
|
|
1219
|
-
},
|
|
1220
|
-
// Hour [1-12]
|
|
1221
|
-
h: function(date, token, localize2) {
|
|
1222
|
-
if (token === "ho") {
|
|
1223
|
-
let hours = date.getHours() % 12;
|
|
1224
|
-
if (hours === 0) hours = 12;
|
|
1225
|
-
return localize2.ordinalNumber(hours, { unit: "hour" });
|
|
1226
|
-
}
|
|
1227
|
-
return lightFormatters.h(date, token);
|
|
1228
|
-
},
|
|
1229
|
-
// Hour [0-23]
|
|
1230
|
-
H: function(date, token, localize2) {
|
|
1231
|
-
if (token === "Ho") {
|
|
1232
|
-
return localize2.ordinalNumber(date.getHours(), { unit: "hour" });
|
|
1233
|
-
}
|
|
1234
|
-
return lightFormatters.H(date, token);
|
|
1235
|
-
},
|
|
1236
|
-
// Hour [0-11]
|
|
1237
|
-
K: function(date, token, localize2) {
|
|
1238
|
-
const hours = date.getHours() % 12;
|
|
1239
|
-
if (token === "Ko") {
|
|
1240
|
-
return localize2.ordinalNumber(hours, { unit: "hour" });
|
|
1241
|
-
}
|
|
1242
|
-
return addLeadingZeros(hours, token.length);
|
|
1243
|
-
},
|
|
1244
|
-
// Hour [1-24]
|
|
1245
|
-
k: function(date, token, localize2) {
|
|
1246
|
-
let hours = date.getHours();
|
|
1247
|
-
if (hours === 0) hours = 24;
|
|
1248
|
-
if (token === "ko") {
|
|
1249
|
-
return localize2.ordinalNumber(hours, { unit: "hour" });
|
|
1250
|
-
}
|
|
1251
|
-
return addLeadingZeros(hours, token.length);
|
|
1252
|
-
},
|
|
1253
|
-
// Minute
|
|
1254
|
-
m: function(date, token, localize2) {
|
|
1255
|
-
if (token === "mo") {
|
|
1256
|
-
return localize2.ordinalNumber(date.getMinutes(), { unit: "minute" });
|
|
1257
|
-
}
|
|
1258
|
-
return lightFormatters.m(date, token);
|
|
1259
|
-
},
|
|
1260
|
-
// Second
|
|
1261
|
-
s: function(date, token, localize2) {
|
|
1262
|
-
if (token === "so") {
|
|
1263
|
-
return localize2.ordinalNumber(date.getSeconds(), { unit: "second" });
|
|
1264
|
-
}
|
|
1265
|
-
return lightFormatters.s(date, token);
|
|
1266
|
-
},
|
|
1267
|
-
// Fraction of second
|
|
1268
|
-
S: function(date, token) {
|
|
1269
|
-
return lightFormatters.S(date, token);
|
|
1270
|
-
},
|
|
1271
|
-
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
1272
|
-
X: function(date, token, _localize) {
|
|
1273
|
-
const timezoneOffset = date.getTimezoneOffset();
|
|
1274
|
-
if (timezoneOffset === 0) {
|
|
1275
|
-
return "Z";
|
|
1276
|
-
}
|
|
1277
|
-
switch (token) {
|
|
1278
|
-
// Hours and optional minutes
|
|
1279
|
-
case "X":
|
|
1280
|
-
return formatTimezoneWithOptionalMinutes(timezoneOffset);
|
|
1281
|
-
// Hours, minutes and optional seconds without `:` delimiter
|
|
1282
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1283
|
-
// so this token always has the same output as `XX`
|
|
1284
|
-
case "XXXX":
|
|
1285
|
-
case "XX":
|
|
1286
|
-
return formatTimezone(timezoneOffset);
|
|
1287
|
-
// Hours, minutes and optional seconds with `:` delimiter
|
|
1288
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1289
|
-
// so this token always has the same output as `XXX`
|
|
1290
|
-
case "XXXXX":
|
|
1291
|
-
case "XXX":
|
|
1292
|
-
// Hours and minutes with `:` delimiter
|
|
1293
|
-
default:
|
|
1294
|
-
return formatTimezone(timezoneOffset, ":");
|
|
1295
|
-
}
|
|
1296
|
-
},
|
|
1297
|
-
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
1298
|
-
x: function(date, token, _localize) {
|
|
1299
|
-
const timezoneOffset = date.getTimezoneOffset();
|
|
1300
|
-
switch (token) {
|
|
1301
|
-
// Hours and optional minutes
|
|
1302
|
-
case "x":
|
|
1303
|
-
return formatTimezoneWithOptionalMinutes(timezoneOffset);
|
|
1304
|
-
// Hours, minutes and optional seconds without `:` delimiter
|
|
1305
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1306
|
-
// so this token always has the same output as `xx`
|
|
1307
|
-
case "xxxx":
|
|
1308
|
-
case "xx":
|
|
1309
|
-
return formatTimezone(timezoneOffset);
|
|
1310
|
-
// Hours, minutes and optional seconds with `:` delimiter
|
|
1311
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1312
|
-
// so this token always has the same output as `xxx`
|
|
1313
|
-
case "xxxxx":
|
|
1314
|
-
case "xxx":
|
|
1315
|
-
// Hours and minutes with `:` delimiter
|
|
1316
|
-
default:
|
|
1317
|
-
return formatTimezone(timezoneOffset, ":");
|
|
1318
|
-
}
|
|
1319
|
-
},
|
|
1320
|
-
// Timezone (GMT)
|
|
1321
|
-
O: function(date, token, _localize) {
|
|
1322
|
-
const timezoneOffset = date.getTimezoneOffset();
|
|
1323
|
-
switch (token) {
|
|
1324
|
-
// Short
|
|
1325
|
-
case "O":
|
|
1326
|
-
case "OO":
|
|
1327
|
-
case "OOO":
|
|
1328
|
-
return "GMT" + formatTimezoneShort(timezoneOffset, ":");
|
|
1329
|
-
// Long
|
|
1330
|
-
case "OOOO":
|
|
1331
|
-
default:
|
|
1332
|
-
return "GMT" + formatTimezone(timezoneOffset, ":");
|
|
1333
|
-
}
|
|
1334
|
-
},
|
|
1335
|
-
// Timezone (specific non-location)
|
|
1336
|
-
z: function(date, token, _localize) {
|
|
1337
|
-
const timezoneOffset = date.getTimezoneOffset();
|
|
1338
|
-
switch (token) {
|
|
1339
|
-
// Short
|
|
1340
|
-
case "z":
|
|
1341
|
-
case "zz":
|
|
1342
|
-
case "zzz":
|
|
1343
|
-
return "GMT" + formatTimezoneShort(timezoneOffset, ":");
|
|
1344
|
-
// Long
|
|
1345
|
-
case "zzzz":
|
|
1346
|
-
default:
|
|
1347
|
-
return "GMT" + formatTimezone(timezoneOffset, ":");
|
|
1348
|
-
}
|
|
1349
|
-
},
|
|
1350
|
-
// Seconds timestamp
|
|
1351
|
-
t: function(date, token, _localize) {
|
|
1352
|
-
const timestamp = Math.trunc(+date / 1e3);
|
|
1353
|
-
return addLeadingZeros(timestamp, token.length);
|
|
1354
|
-
},
|
|
1355
|
-
// Milliseconds timestamp
|
|
1356
|
-
T: function(date, token, _localize) {
|
|
1357
|
-
return addLeadingZeros(+date, token.length);
|
|
1358
|
-
}
|
|
1359
|
-
};
|
|
1360
|
-
function formatTimezoneShort(offset, delimiter = "") {
|
|
1361
|
-
const sign = offset > 0 ? "-" : "+";
|
|
1362
|
-
const absOffset = Math.abs(offset);
|
|
1363
|
-
const hours = Math.trunc(absOffset / 60);
|
|
1364
|
-
const minutes = absOffset % 60;
|
|
1365
|
-
if (minutes === 0) {
|
|
1366
|
-
return sign + String(hours);
|
|
1367
|
-
}
|
|
1368
|
-
return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);
|
|
1369
|
-
}
|
|
1370
|
-
function formatTimezoneWithOptionalMinutes(offset, delimiter) {
|
|
1371
|
-
if (offset % 60 === 0) {
|
|
1372
|
-
const sign = offset > 0 ? "-" : "+";
|
|
1373
|
-
return sign + addLeadingZeros(Math.abs(offset) / 60, 2);
|
|
1374
|
-
}
|
|
1375
|
-
return formatTimezone(offset, delimiter);
|
|
1376
|
-
}
|
|
1377
|
-
function formatTimezone(offset, delimiter = "") {
|
|
1378
|
-
const sign = offset > 0 ? "-" : "+";
|
|
1379
|
-
const absOffset = Math.abs(offset);
|
|
1380
|
-
const hours = addLeadingZeros(Math.trunc(absOffset / 60), 2);
|
|
1381
|
-
const minutes = addLeadingZeros(absOffset % 60, 2);
|
|
1382
|
-
return sign + hours + delimiter + minutes;
|
|
1383
|
-
}
|
|
1384
|
-
|
|
1385
|
-
// ../node_modules/date-fns/_lib/format/longFormatters.js
|
|
1386
|
-
var dateLongFormatter = (pattern, formatLong2) => {
|
|
1387
|
-
switch (pattern) {
|
|
1388
|
-
case "P":
|
|
1389
|
-
return formatLong2.date({ width: "short" });
|
|
1390
|
-
case "PP":
|
|
1391
|
-
return formatLong2.date({ width: "medium" });
|
|
1392
|
-
case "PPP":
|
|
1393
|
-
return formatLong2.date({ width: "long" });
|
|
1394
|
-
case "PPPP":
|
|
1395
|
-
default:
|
|
1396
|
-
return formatLong2.date({ width: "full" });
|
|
1397
|
-
}
|
|
1398
|
-
};
|
|
1399
|
-
var timeLongFormatter = (pattern, formatLong2) => {
|
|
1400
|
-
switch (pattern) {
|
|
1401
|
-
case "p":
|
|
1402
|
-
return formatLong2.time({ width: "short" });
|
|
1403
|
-
case "pp":
|
|
1404
|
-
return formatLong2.time({ width: "medium" });
|
|
1405
|
-
case "ppp":
|
|
1406
|
-
return formatLong2.time({ width: "long" });
|
|
1407
|
-
case "pppp":
|
|
1408
|
-
default:
|
|
1409
|
-
return formatLong2.time({ width: "full" });
|
|
1410
|
-
}
|
|
1411
|
-
};
|
|
1412
|
-
var dateTimeLongFormatter = (pattern, formatLong2) => {
|
|
1413
|
-
const matchResult = pattern.match(/(P+)(p+)?/) || [];
|
|
1414
|
-
const datePattern = matchResult[1];
|
|
1415
|
-
const timePattern = matchResult[2];
|
|
1416
|
-
if (!timePattern) {
|
|
1417
|
-
return dateLongFormatter(pattern, formatLong2);
|
|
1418
|
-
}
|
|
1419
|
-
let dateTimeFormat;
|
|
1420
|
-
switch (datePattern) {
|
|
1421
|
-
case "P":
|
|
1422
|
-
dateTimeFormat = formatLong2.dateTime({ width: "short" });
|
|
1423
|
-
break;
|
|
1424
|
-
case "PP":
|
|
1425
|
-
dateTimeFormat = formatLong2.dateTime({ width: "medium" });
|
|
1426
|
-
break;
|
|
1427
|
-
case "PPP":
|
|
1428
|
-
dateTimeFormat = formatLong2.dateTime({ width: "long" });
|
|
1429
|
-
break;
|
|
1430
|
-
case "PPPP":
|
|
1431
|
-
default:
|
|
1432
|
-
dateTimeFormat = formatLong2.dateTime({ width: "full" });
|
|
1433
|
-
break;
|
|
1434
|
-
}
|
|
1435
|
-
return dateTimeFormat.replace("{{date}}", dateLongFormatter(datePattern, formatLong2)).replace("{{time}}", timeLongFormatter(timePattern, formatLong2));
|
|
1436
|
-
};
|
|
1437
|
-
var longFormatters = {
|
|
1438
|
-
p: timeLongFormatter,
|
|
1439
|
-
P: dateTimeLongFormatter
|
|
1440
|
-
};
|
|
1441
|
-
|
|
1442
|
-
// ../node_modules/date-fns/_lib/protectedTokens.js
|
|
1443
|
-
var dayOfYearTokenRE = /^D+$/;
|
|
1444
|
-
var weekYearTokenRE = /^Y+$/;
|
|
1445
|
-
var throwTokens = ["D", "DD", "YY", "YYYY"];
|
|
1446
|
-
function isProtectedDayOfYearToken(token) {
|
|
1447
|
-
return dayOfYearTokenRE.test(token);
|
|
1448
|
-
}
|
|
1449
|
-
function isProtectedWeekYearToken(token) {
|
|
1450
|
-
return weekYearTokenRE.test(token);
|
|
1451
|
-
}
|
|
1452
|
-
function warnOrThrowProtectedError(token, format3, input) {
|
|
1453
|
-
const _message = message(token, format3, input);
|
|
1454
|
-
console.warn(_message);
|
|
1455
|
-
if (throwTokens.includes(token)) throw new RangeError(_message);
|
|
1456
|
-
}
|
|
1457
|
-
function message(token, format3, input) {
|
|
1458
|
-
const subject = token[0] === "Y" ? "years" : "days of the month";
|
|
1459
|
-
return `Use \`${token.toLowerCase()}\` instead of \`${token}\` (in \`${format3}\`) for formatting ${subject} to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1460
|
-
}
|
|
1461
|
-
|
|
1462
|
-
// ../node_modules/date-fns/format.js
|
|
1463
|
-
var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;
|
|
1464
|
-
var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
|
|
1465
|
-
var escapedStringRegExp = /^'([^]*?)'?$/;
|
|
1466
|
-
var doubleQuoteRegExp = /''/g;
|
|
1467
|
-
var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
1468
|
-
function format(date, formatStr, options) {
|
|
1469
|
-
const defaultOptions2 = getDefaultOptions();
|
|
1470
|
-
const locale = defaultOptions2.locale ?? enUS;
|
|
1471
|
-
const firstWeekContainsDate = defaultOptions2.firstWeekContainsDate ?? defaultOptions2.locale?.options?.firstWeekContainsDate ?? 1;
|
|
1472
|
-
const weekStartsOn = defaultOptions2.weekStartsOn ?? defaultOptions2.locale?.options?.weekStartsOn ?? 0;
|
|
1473
|
-
const originalDate = toDate(date, options?.in);
|
|
1474
|
-
if (!isValid(originalDate)) {
|
|
1475
|
-
throw new RangeError("Invalid time value");
|
|
1476
|
-
}
|
|
1477
|
-
let parts = formatStr.match(longFormattingTokensRegExp).map((substring) => {
|
|
1478
|
-
const firstCharacter = substring[0];
|
|
1479
|
-
if (firstCharacter === "p" || firstCharacter === "P") {
|
|
1480
|
-
const longFormatter = longFormatters[firstCharacter];
|
|
1481
|
-
return longFormatter(substring, locale.formatLong);
|
|
1482
|
-
}
|
|
1483
|
-
return substring;
|
|
1484
|
-
}).join("").match(formattingTokensRegExp).map((substring) => {
|
|
1485
|
-
if (substring === "''") {
|
|
1486
|
-
return { isToken: false, value: "'" };
|
|
1487
|
-
}
|
|
1488
|
-
const firstCharacter = substring[0];
|
|
1489
|
-
if (firstCharacter === "'") {
|
|
1490
|
-
return { isToken: false, value: cleanEscapedString(substring) };
|
|
1491
|
-
}
|
|
1492
|
-
if (formatters[firstCharacter]) {
|
|
1493
|
-
return { isToken: true, value: substring };
|
|
1494
|
-
}
|
|
1495
|
-
if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
|
|
1496
|
-
throw new RangeError(
|
|
1497
|
-
"Format string contains an unescaped latin alphabet character `" + firstCharacter + "`"
|
|
1498
|
-
);
|
|
1499
|
-
}
|
|
1500
|
-
return { isToken: false, value: substring };
|
|
1501
|
-
});
|
|
1502
|
-
if (locale.localize.preprocessor) {
|
|
1503
|
-
parts = locale.localize.preprocessor(originalDate, parts);
|
|
1504
|
-
}
|
|
1505
|
-
const formatterOptions = {
|
|
1506
|
-
firstWeekContainsDate,
|
|
1507
|
-
weekStartsOn,
|
|
1508
|
-
locale
|
|
1509
|
-
};
|
|
1510
|
-
return parts.map((part) => {
|
|
1511
|
-
if (!part.isToken) return part.value;
|
|
1512
|
-
const token = part.value;
|
|
1513
|
-
if (isProtectedWeekYearToken(token) || isProtectedDayOfYearToken(token)) {
|
|
1514
|
-
warnOrThrowProtectedError(token, formatStr, String(date));
|
|
1515
|
-
}
|
|
1516
|
-
const formatter = formatters[token[0]];
|
|
1517
|
-
return formatter(originalDate, token, locale.localize, formatterOptions);
|
|
1518
|
-
}).join("");
|
|
1519
|
-
}
|
|
1520
|
-
function cleanEscapedString(input) {
|
|
1521
|
-
const matched = input.match(escapedStringRegExp);
|
|
1522
|
-
if (!matched) {
|
|
1523
|
-
return input;
|
|
1524
|
-
}
|
|
1525
|
-
return matched[1].replace(doubleQuoteRegExp, "'");
|
|
1526
|
-
}
|
|
1527
|
-
|
|
1528
|
-
// ../node_modules/date-fns-tz/dist/esm/_lib/tzTokenizeDate/index.js
|
|
1529
|
-
function tzTokenizeDate(date, timeZone) {
|
|
1530
|
-
const dtf = getDateTimeFormat(timeZone);
|
|
1531
|
-
return "formatToParts" in dtf ? partsOffset(dtf, date) : hackyOffset(dtf, date);
|
|
1532
|
-
}
|
|
1533
|
-
var typeToPos = {
|
|
1534
|
-
year: 0,
|
|
1535
|
-
month: 1,
|
|
1536
|
-
day: 2,
|
|
1537
|
-
hour: 3,
|
|
1538
|
-
minute: 4,
|
|
1539
|
-
second: 5
|
|
1540
|
-
};
|
|
1541
|
-
function partsOffset(dtf, date) {
|
|
1542
|
-
try {
|
|
1543
|
-
const formatted = dtf.formatToParts(date);
|
|
1544
|
-
const filled = [];
|
|
1545
|
-
for (let i = 0; i < formatted.length; i++) {
|
|
1546
|
-
const pos = typeToPos[formatted[i].type];
|
|
1547
|
-
if (pos !== void 0) {
|
|
1548
|
-
filled[pos] = parseInt(formatted[i].value, 10);
|
|
1549
|
-
}
|
|
1550
|
-
}
|
|
1551
|
-
return filled;
|
|
1552
|
-
} catch (error) {
|
|
1553
|
-
if (error instanceof RangeError) {
|
|
1554
|
-
return [NaN];
|
|
1555
|
-
}
|
|
1556
|
-
throw error;
|
|
1557
|
-
}
|
|
1558
|
-
}
|
|
1559
|
-
function hackyOffset(dtf, date) {
|
|
1560
|
-
const formatted = dtf.format(date);
|
|
1561
|
-
const parsed = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(formatted);
|
|
1562
|
-
return [
|
|
1563
|
-
parseInt(parsed[3], 10),
|
|
1564
|
-
parseInt(parsed[1], 10),
|
|
1565
|
-
parseInt(parsed[2], 10),
|
|
1566
|
-
parseInt(parsed[4], 10),
|
|
1567
|
-
parseInt(parsed[5], 10),
|
|
1568
|
-
parseInt(parsed[6], 10)
|
|
1569
|
-
];
|
|
1570
|
-
}
|
|
1571
|
-
var dtfCache = {};
|
|
1572
|
-
var testDateFormatted = new Intl.DateTimeFormat("en-US", {
|
|
1573
|
-
hourCycle: "h23",
|
|
1574
|
-
timeZone: "America/New_York",
|
|
1575
|
-
year: "numeric",
|
|
1576
|
-
month: "2-digit",
|
|
1577
|
-
day: "2-digit",
|
|
1578
|
-
hour: "2-digit",
|
|
1579
|
-
minute: "2-digit",
|
|
1580
|
-
second: "2-digit"
|
|
1581
|
-
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z"));
|
|
1582
|
-
var hourCycleSupported = testDateFormatted === "06/25/2014, 00:00:00" || testDateFormatted === "\u200E06\u200E/\u200E25\u200E/\u200E2014\u200E \u200E00\u200E:\u200E00\u200E:\u200E00";
|
|
1583
|
-
function getDateTimeFormat(timeZone) {
|
|
1584
|
-
if (!dtfCache[timeZone]) {
|
|
1585
|
-
dtfCache[timeZone] = hourCycleSupported ? new Intl.DateTimeFormat("en-US", {
|
|
1586
|
-
hourCycle: "h23",
|
|
1587
|
-
timeZone,
|
|
1588
|
-
year: "numeric",
|
|
1589
|
-
month: "numeric",
|
|
1590
|
-
day: "2-digit",
|
|
1591
|
-
hour: "2-digit",
|
|
1592
|
-
minute: "2-digit",
|
|
1593
|
-
second: "2-digit"
|
|
1594
|
-
}) : new Intl.DateTimeFormat("en-US", {
|
|
1595
|
-
hour12: false,
|
|
1596
|
-
timeZone,
|
|
1597
|
-
year: "numeric",
|
|
1598
|
-
month: "numeric",
|
|
1599
|
-
day: "2-digit",
|
|
1600
|
-
hour: "2-digit",
|
|
1601
|
-
minute: "2-digit",
|
|
1602
|
-
second: "2-digit"
|
|
1603
|
-
});
|
|
1604
|
-
}
|
|
1605
|
-
return dtfCache[timeZone];
|
|
1606
|
-
}
|
|
1607
|
-
|
|
1608
|
-
// ../node_modules/date-fns-tz/dist/esm/_lib/newDateUTC/index.js
|
|
1609
|
-
function newDateUTC(fullYear, month, day, hour, minute, second, millisecond) {
|
|
1610
|
-
const utcDate = /* @__PURE__ */ new Date(0);
|
|
1611
|
-
utcDate.setUTCFullYear(fullYear, month, day);
|
|
1612
|
-
utcDate.setUTCHours(hour, minute, second, millisecond);
|
|
1613
|
-
return utcDate;
|
|
1614
|
-
}
|
|
1615
|
-
|
|
1616
|
-
// ../node_modules/date-fns-tz/dist/esm/_lib/tzParseTimezone/index.js
|
|
1617
|
-
var MILLISECONDS_IN_HOUR = 36e5;
|
|
1618
|
-
var MILLISECONDS_IN_MINUTE = 6e4;
|
|
1619
|
-
var patterns = {
|
|
1620
|
-
timezoneZ: /^(Z)$/,
|
|
1621
|
-
timezoneHH: /^([+-]\d{2})$/,
|
|
1622
|
-
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
1623
|
-
};
|
|
1624
|
-
function tzParseTimezone(timezoneString, date, isUtcDate) {
|
|
1625
|
-
if (!timezoneString) {
|
|
1626
|
-
return 0;
|
|
1627
|
-
}
|
|
1628
|
-
let token = patterns.timezoneZ.exec(timezoneString);
|
|
1629
|
-
if (token) {
|
|
1630
|
-
return 0;
|
|
1631
|
-
}
|
|
1632
|
-
let hours;
|
|
1633
|
-
let absoluteOffset;
|
|
1634
|
-
token = patterns.timezoneHH.exec(timezoneString);
|
|
1635
|
-
if (token) {
|
|
1636
|
-
hours = parseInt(token[1], 10);
|
|
1637
|
-
if (!validateTimezone(hours)) {
|
|
1638
|
-
return NaN;
|
|
1639
|
-
}
|
|
1640
|
-
return -(hours * MILLISECONDS_IN_HOUR);
|
|
1641
|
-
}
|
|
1642
|
-
token = patterns.timezoneHHMM.exec(timezoneString);
|
|
1643
|
-
if (token) {
|
|
1644
|
-
hours = parseInt(token[2], 10);
|
|
1645
|
-
const minutes = parseInt(token[3], 10);
|
|
1646
|
-
if (!validateTimezone(hours, minutes)) {
|
|
1647
|
-
return NaN;
|
|
1648
|
-
}
|
|
1649
|
-
absoluteOffset = Math.abs(hours) * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE;
|
|
1650
|
-
return token[1] === "+" ? -absoluteOffset : absoluteOffset;
|
|
1651
|
-
}
|
|
1652
|
-
if (isValidTimezoneIANAString(timezoneString)) {
|
|
1653
|
-
date = new Date(date || Date.now());
|
|
1654
|
-
const utcDate = toUtcDate(date);
|
|
1655
|
-
const offset = calcOffset(utcDate, timezoneString);
|
|
1656
|
-
const fixedOffset = fixOffset(date, offset, timezoneString);
|
|
1657
|
-
return -fixedOffset;
|
|
1658
|
-
}
|
|
1659
|
-
return NaN;
|
|
1660
|
-
}
|
|
1661
|
-
function toUtcDate(date) {
|
|
1662
|
-
return newDateUTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
|
|
1663
|
-
}
|
|
1664
|
-
function calcOffset(date, timezoneString) {
|
|
1665
|
-
const tokens = tzTokenizeDate(date, timezoneString);
|
|
1666
|
-
const asUTC = newDateUTC(tokens[0], tokens[1] - 1, tokens[2], tokens[3] % 24, tokens[4], tokens[5], 0).getTime();
|
|
1667
|
-
let asTS = date.getTime();
|
|
1668
|
-
const over = asTS % 1e3;
|
|
1669
|
-
asTS -= over >= 0 ? over : 1e3 + over;
|
|
1670
|
-
return asUTC - asTS;
|
|
1671
|
-
}
|
|
1672
|
-
function fixOffset(date, offset, timezoneString) {
|
|
1673
|
-
const localTS = date.getTime();
|
|
1674
|
-
let utcGuess = localTS - offset;
|
|
1675
|
-
const o2 = calcOffset(new Date(utcGuess), timezoneString);
|
|
1676
|
-
if (offset === o2) {
|
|
1677
|
-
return offset;
|
|
1678
|
-
}
|
|
1679
|
-
utcGuess -= o2 - offset;
|
|
1680
|
-
const o3 = calcOffset(new Date(utcGuess), timezoneString);
|
|
1681
|
-
if (o2 === o3) {
|
|
1682
|
-
return o2;
|
|
1683
|
-
}
|
|
1684
|
-
return Math.max(o2, o3);
|
|
1685
|
-
}
|
|
1686
|
-
function validateTimezone(hours, minutes) {
|
|
1687
|
-
return -23 <= hours && hours <= 23 && (minutes == null || 0 <= minutes && minutes <= 59);
|
|
1688
|
-
}
|
|
1689
|
-
var validIANATimezoneCache = {};
|
|
1690
|
-
function isValidTimezoneIANAString(timeZoneString) {
|
|
1691
|
-
if (validIANATimezoneCache[timeZoneString])
|
|
1692
|
-
return true;
|
|
1693
|
-
try {
|
|
1694
|
-
new Intl.DateTimeFormat(void 0, { timeZone: timeZoneString });
|
|
1695
|
-
validIANATimezoneCache[timeZoneString] = true;
|
|
1696
|
-
return true;
|
|
1697
|
-
} catch (error) {
|
|
1698
|
-
return false;
|
|
1699
|
-
}
|
|
1700
|
-
}
|
|
1701
|
-
|
|
1702
|
-
// ../node_modules/date-fns-tz/dist/esm/_lib/getTimezoneOffsetInMilliseconds/index.js
|
|
1703
|
-
function getTimezoneOffsetInMilliseconds2(date) {
|
|
1704
|
-
const utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
|
|
1705
|
-
utcDate.setUTCFullYear(date.getFullYear());
|
|
1706
|
-
return +date - +utcDate;
|
|
1707
|
-
}
|
|
1708
|
-
|
|
1709
|
-
// ../node_modules/date-fns-tz/dist/esm/_lib/tzPattern/index.js
|
|
1710
|
-
var tzPattern = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;
|
|
1711
|
-
|
|
1712
|
-
// ../node_modules/date-fns-tz/dist/esm/toDate/index.js
|
|
1713
|
-
var MILLISECONDS_IN_HOUR2 = 36e5;
|
|
1714
|
-
var MILLISECONDS_IN_MINUTE3 = 6e4;
|
|
1715
|
-
var DEFAULT_ADDITIONAL_DIGITS = 2;
|
|
1716
|
-
var patterns2 = {
|
|
1717
|
-
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
1718
|
-
datePattern: /^([0-9W+-]+)(.*)/,
|
|
1719
|
-
// year tokens
|
|
1720
|
-
YY: /^(\d{2})$/,
|
|
1721
|
-
YYY: [
|
|
1722
|
-
/^([+-]\d{2})$/,
|
|
1723
|
-
// 0 additional digits
|
|
1724
|
-
/^([+-]\d{3})$/,
|
|
1725
|
-
// 1 additional digit
|
|
1726
|
-
/^([+-]\d{4})$/
|
|
1727
|
-
// 2 additional digits
|
|
1728
|
-
],
|
|
1729
|
-
YYYY: /^(\d{4})/,
|
|
1730
|
-
YYYYY: [
|
|
1731
|
-
/^([+-]\d{4})/,
|
|
1732
|
-
// 0 additional digits
|
|
1733
|
-
/^([+-]\d{5})/,
|
|
1734
|
-
// 1 additional digit
|
|
1735
|
-
/^([+-]\d{6})/
|
|
1736
|
-
// 2 additional digits
|
|
1737
|
-
],
|
|
1738
|
-
// date tokens
|
|
1739
|
-
MM: /^-(\d{2})$/,
|
|
1740
|
-
DDD: /^-?(\d{3})$/,
|
|
1741
|
-
MMDD: /^-?(\d{2})-?(\d{2})$/,
|
|
1742
|
-
Www: /^-?W(\d{2})$/,
|
|
1743
|
-
WwwD: /^-?W(\d{2})-?(\d{1})$/,
|
|
1744
|
-
HH: /^(\d{2}([.,]\d*)?)$/,
|
|
1745
|
-
HHMM: /^(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
1746
|
-
HHMMSS: /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
1747
|
-
// time zone tokens (to identify the presence of a tz)
|
|
1748
|
-
timeZone: tzPattern
|
|
1749
|
-
};
|
|
1750
|
-
function toDate2(argument, options = {}) {
|
|
1751
|
-
if (arguments.length < 1) {
|
|
1752
|
-
throw new TypeError("1 argument required, but only " + arguments.length + " present");
|
|
1753
|
-
}
|
|
1754
|
-
if (argument === null) {
|
|
1755
|
-
return /* @__PURE__ */ new Date(NaN);
|
|
1756
|
-
}
|
|
1757
|
-
const additionalDigits = options.additionalDigits == null ? DEFAULT_ADDITIONAL_DIGITS : Number(options.additionalDigits);
|
|
1758
|
-
if (additionalDigits !== 2 && additionalDigits !== 1 && additionalDigits !== 0) {
|
|
1759
|
-
throw new RangeError("additionalDigits must be 0, 1 or 2");
|
|
1760
|
-
}
|
|
1761
|
-
if (argument instanceof Date || typeof argument === "object" && Object.prototype.toString.call(argument) === "[object Date]") {
|
|
1762
|
-
return new Date(argument.getTime());
|
|
1763
|
-
} else if (typeof argument === "number" || Object.prototype.toString.call(argument) === "[object Number]") {
|
|
1764
|
-
return new Date(argument);
|
|
1765
|
-
} else if (!(Object.prototype.toString.call(argument) === "[object String]")) {
|
|
1766
|
-
return /* @__PURE__ */ new Date(NaN);
|
|
1767
|
-
}
|
|
1768
|
-
const dateStrings = splitDateString(argument);
|
|
1769
|
-
const { year, restDateString } = parseYear(dateStrings.date, additionalDigits);
|
|
1770
|
-
const date = parseDate(restDateString, year);
|
|
1771
|
-
if (date === null || isNaN(date.getTime())) {
|
|
1772
|
-
return /* @__PURE__ */ new Date(NaN);
|
|
1773
|
-
}
|
|
1774
|
-
if (date) {
|
|
1775
|
-
const timestamp = date.getTime();
|
|
1776
|
-
let time = 0;
|
|
1777
|
-
let offset;
|
|
1778
|
-
if (dateStrings.time) {
|
|
1779
|
-
time = parseTime(dateStrings.time);
|
|
1780
|
-
if (time === null || isNaN(time)) {
|
|
1781
|
-
return /* @__PURE__ */ new Date(NaN);
|
|
1782
|
-
}
|
|
1783
|
-
}
|
|
1784
|
-
if (dateStrings.timeZone || options.timeZone) {
|
|
1785
|
-
offset = tzParseTimezone(dateStrings.timeZone || options.timeZone, new Date(timestamp + time));
|
|
1786
|
-
if (isNaN(offset)) {
|
|
1787
|
-
return /* @__PURE__ */ new Date(NaN);
|
|
1788
|
-
}
|
|
1789
|
-
} else {
|
|
1790
|
-
offset = getTimezoneOffsetInMilliseconds2(new Date(timestamp + time));
|
|
1791
|
-
offset = getTimezoneOffsetInMilliseconds2(new Date(timestamp + time + offset));
|
|
1792
|
-
}
|
|
1793
|
-
return new Date(timestamp + time + offset);
|
|
1794
|
-
} else {
|
|
1795
|
-
return /* @__PURE__ */ new Date(NaN);
|
|
1796
|
-
}
|
|
1797
|
-
}
|
|
1798
|
-
function splitDateString(dateString) {
|
|
1799
|
-
const dateStrings = {};
|
|
1800
|
-
let parts = patterns2.dateTimePattern.exec(dateString);
|
|
1801
|
-
let timeString;
|
|
1802
|
-
if (!parts) {
|
|
1803
|
-
parts = patterns2.datePattern.exec(dateString);
|
|
1804
|
-
if (parts) {
|
|
1805
|
-
dateStrings.date = parts[1];
|
|
1806
|
-
timeString = parts[2];
|
|
1807
|
-
} else {
|
|
1808
|
-
dateStrings.date = null;
|
|
1809
|
-
timeString = dateString;
|
|
1810
|
-
}
|
|
1811
|
-
} else {
|
|
1812
|
-
dateStrings.date = parts[1];
|
|
1813
|
-
timeString = parts[3];
|
|
1814
|
-
}
|
|
1815
|
-
if (timeString) {
|
|
1816
|
-
const token = patterns2.timeZone.exec(timeString);
|
|
1817
|
-
if (token) {
|
|
1818
|
-
dateStrings.time = timeString.replace(token[1], "");
|
|
1819
|
-
dateStrings.timeZone = token[1].trim();
|
|
1820
|
-
} else {
|
|
1821
|
-
dateStrings.time = timeString;
|
|
1822
|
-
}
|
|
1823
|
-
}
|
|
1824
|
-
return dateStrings;
|
|
1825
|
-
}
|
|
1826
|
-
function parseYear(dateString, additionalDigits) {
|
|
1827
|
-
if (dateString) {
|
|
1828
|
-
const patternYYY = patterns2.YYY[additionalDigits];
|
|
1829
|
-
const patternYYYYY = patterns2.YYYYY[additionalDigits];
|
|
1830
|
-
let token = patterns2.YYYY.exec(dateString) || patternYYYYY.exec(dateString);
|
|
1831
|
-
if (token) {
|
|
1832
|
-
const yearString = token[1];
|
|
1833
|
-
return {
|
|
1834
|
-
year: parseInt(yearString, 10),
|
|
1835
|
-
restDateString: dateString.slice(yearString.length)
|
|
1836
|
-
};
|
|
1837
|
-
}
|
|
1838
|
-
token = patterns2.YY.exec(dateString) || patternYYY.exec(dateString);
|
|
1839
|
-
if (token) {
|
|
1840
|
-
const centuryString = token[1];
|
|
1841
|
-
return {
|
|
1842
|
-
year: parseInt(centuryString, 10) * 100,
|
|
1843
|
-
restDateString: dateString.slice(centuryString.length)
|
|
1844
|
-
};
|
|
1845
|
-
}
|
|
1846
|
-
}
|
|
1847
|
-
return {
|
|
1848
|
-
year: null
|
|
1849
|
-
};
|
|
1850
|
-
}
|
|
1851
|
-
function parseDate(dateString, year) {
|
|
1852
|
-
if (year === null) {
|
|
1853
|
-
return null;
|
|
1854
|
-
}
|
|
1855
|
-
let date;
|
|
1856
|
-
let month;
|
|
1857
|
-
let week;
|
|
1858
|
-
if (!dateString || !dateString.length) {
|
|
1859
|
-
date = /* @__PURE__ */ new Date(0);
|
|
1860
|
-
date.setUTCFullYear(year);
|
|
1861
|
-
return date;
|
|
1862
|
-
}
|
|
1863
|
-
let token = patterns2.MM.exec(dateString);
|
|
1864
|
-
if (token) {
|
|
1865
|
-
date = /* @__PURE__ */ new Date(0);
|
|
1866
|
-
month = parseInt(token[1], 10) - 1;
|
|
1867
|
-
if (!validateDate(year, month)) {
|
|
1868
|
-
return /* @__PURE__ */ new Date(NaN);
|
|
1869
|
-
}
|
|
1870
|
-
date.setUTCFullYear(year, month);
|
|
1871
|
-
return date;
|
|
1872
|
-
}
|
|
1873
|
-
token = patterns2.DDD.exec(dateString);
|
|
1874
|
-
if (token) {
|
|
1875
|
-
date = /* @__PURE__ */ new Date(0);
|
|
1876
|
-
const dayOfYear = parseInt(token[1], 10);
|
|
1877
|
-
if (!validateDayOfYearDate(year, dayOfYear)) {
|
|
1878
|
-
return /* @__PURE__ */ new Date(NaN);
|
|
1879
|
-
}
|
|
1880
|
-
date.setUTCFullYear(year, 0, dayOfYear);
|
|
1881
|
-
return date;
|
|
1882
|
-
}
|
|
1883
|
-
token = patterns2.MMDD.exec(dateString);
|
|
1884
|
-
if (token) {
|
|
1885
|
-
date = /* @__PURE__ */ new Date(0);
|
|
1886
|
-
month = parseInt(token[1], 10) - 1;
|
|
1887
|
-
const day = parseInt(token[2], 10);
|
|
1888
|
-
if (!validateDate(year, month, day)) {
|
|
1889
|
-
return /* @__PURE__ */ new Date(NaN);
|
|
1890
|
-
}
|
|
1891
|
-
date.setUTCFullYear(year, month, day);
|
|
1892
|
-
return date;
|
|
1893
|
-
}
|
|
1894
|
-
token = patterns2.Www.exec(dateString);
|
|
1895
|
-
if (token) {
|
|
1896
|
-
week = parseInt(token[1], 10) - 1;
|
|
1897
|
-
if (!validateWeekDate(week)) {
|
|
1898
|
-
return /* @__PURE__ */ new Date(NaN);
|
|
1899
|
-
}
|
|
1900
|
-
return dayOfISOWeekYear(year, week);
|
|
1901
|
-
}
|
|
1902
|
-
token = patterns2.WwwD.exec(dateString);
|
|
1903
|
-
if (token) {
|
|
1904
|
-
week = parseInt(token[1], 10) - 1;
|
|
1905
|
-
const dayOfWeek = parseInt(token[2], 10) - 1;
|
|
1906
|
-
if (!validateWeekDate(week, dayOfWeek)) {
|
|
1907
|
-
return /* @__PURE__ */ new Date(NaN);
|
|
1908
|
-
}
|
|
1909
|
-
return dayOfISOWeekYear(year, week, dayOfWeek);
|
|
1910
|
-
}
|
|
1911
|
-
return null;
|
|
1912
|
-
}
|
|
1913
|
-
function parseTime(timeString) {
|
|
1914
|
-
let hours;
|
|
1915
|
-
let minutes;
|
|
1916
|
-
let token = patterns2.HH.exec(timeString);
|
|
1917
|
-
if (token) {
|
|
1918
|
-
hours = parseFloat(token[1].replace(",", "."));
|
|
1919
|
-
if (!validateTime(hours)) {
|
|
1920
|
-
return NaN;
|
|
1921
|
-
}
|
|
1922
|
-
return hours % 24 * MILLISECONDS_IN_HOUR2;
|
|
1923
|
-
}
|
|
1924
|
-
token = patterns2.HHMM.exec(timeString);
|
|
1925
|
-
if (token) {
|
|
1926
|
-
hours = parseInt(token[1], 10);
|
|
1927
|
-
minutes = parseFloat(token[2].replace(",", "."));
|
|
1928
|
-
if (!validateTime(hours, minutes)) {
|
|
1929
|
-
return NaN;
|
|
1930
|
-
}
|
|
1931
|
-
return hours % 24 * MILLISECONDS_IN_HOUR2 + minutes * MILLISECONDS_IN_MINUTE3;
|
|
1932
|
-
}
|
|
1933
|
-
token = patterns2.HHMMSS.exec(timeString);
|
|
1934
|
-
if (token) {
|
|
1935
|
-
hours = parseInt(token[1], 10);
|
|
1936
|
-
minutes = parseInt(token[2], 10);
|
|
1937
|
-
const seconds = parseFloat(token[3].replace(",", "."));
|
|
1938
|
-
if (!validateTime(hours, minutes, seconds)) {
|
|
1939
|
-
return NaN;
|
|
1940
|
-
}
|
|
1941
|
-
return hours % 24 * MILLISECONDS_IN_HOUR2 + minutes * MILLISECONDS_IN_MINUTE3 + seconds * 1e3;
|
|
1942
|
-
}
|
|
1943
|
-
return null;
|
|
1944
|
-
}
|
|
1945
|
-
function dayOfISOWeekYear(isoWeekYear, week, day) {
|
|
1946
|
-
week = week || 0;
|
|
1947
|
-
day = day || 0;
|
|
1948
|
-
const date = /* @__PURE__ */ new Date(0);
|
|
1949
|
-
date.setUTCFullYear(isoWeekYear, 0, 4);
|
|
1950
|
-
const fourthOfJanuaryDay = date.getUTCDay() || 7;
|
|
1951
|
-
const diff = week * 7 + day + 1 - fourthOfJanuaryDay;
|
|
1952
|
-
date.setUTCDate(date.getUTCDate() + diff);
|
|
1953
|
-
return date;
|
|
1954
|
-
}
|
|
1955
|
-
var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
1956
|
-
var DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
1957
|
-
function isLeapYearIndex(year) {
|
|
1958
|
-
return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0;
|
|
1959
|
-
}
|
|
1960
|
-
function validateDate(year, month, date) {
|
|
1961
|
-
if (month < 0 || month > 11) {
|
|
1962
|
-
return false;
|
|
1963
|
-
}
|
|
1964
|
-
if (date != null) {
|
|
1965
|
-
if (date < 1) {
|
|
1966
|
-
return false;
|
|
1967
|
-
}
|
|
1968
|
-
const isLeapYear = isLeapYearIndex(year);
|
|
1969
|
-
if (isLeapYear && date > DAYS_IN_MONTH_LEAP_YEAR[month]) {
|
|
1970
|
-
return false;
|
|
1971
|
-
}
|
|
1972
|
-
if (!isLeapYear && date > DAYS_IN_MONTH[month]) {
|
|
1973
|
-
return false;
|
|
1974
|
-
}
|
|
1975
|
-
}
|
|
1976
|
-
return true;
|
|
1977
|
-
}
|
|
1978
|
-
function validateDayOfYearDate(year, dayOfYear) {
|
|
1979
|
-
if (dayOfYear < 1) {
|
|
1980
|
-
return false;
|
|
1981
|
-
}
|
|
1982
|
-
const isLeapYear = isLeapYearIndex(year);
|
|
1983
|
-
if (isLeapYear && dayOfYear > 366) {
|
|
1984
|
-
return false;
|
|
1985
|
-
}
|
|
1986
|
-
if (!isLeapYear && dayOfYear > 365) {
|
|
1987
|
-
return false;
|
|
1988
|
-
}
|
|
1989
|
-
return true;
|
|
1990
|
-
}
|
|
1991
|
-
function validateWeekDate(week, day) {
|
|
1992
|
-
if (week < 0 || week > 52) {
|
|
1993
|
-
return false;
|
|
1994
|
-
}
|
|
1995
|
-
if (day != null && (day < 0 || day > 6)) {
|
|
1996
|
-
return false;
|
|
1997
|
-
}
|
|
1998
|
-
return true;
|
|
1999
|
-
}
|
|
2000
|
-
function validateTime(hours, minutes, seconds) {
|
|
2001
|
-
if (hours < 0 || hours >= 25) {
|
|
2002
|
-
return false;
|
|
2003
|
-
}
|
|
2004
|
-
if (minutes != null && (minutes < 0 || minutes >= 60)) {
|
|
2005
|
-
return false;
|
|
2006
|
-
}
|
|
2007
|
-
if (seconds != null && (seconds < 0 || seconds >= 60)) {
|
|
2008
|
-
return false;
|
|
2009
|
-
}
|
|
2010
|
-
return true;
|
|
2011
|
-
}
|
|
2012
|
-
|
|
2013
|
-
// ../node_modules/date-fns-tz/dist/esm/fromZonedTime/index.js
|
|
2014
|
-
function fromZonedTime(date, timeZone, options) {
|
|
2015
|
-
if (typeof date === "string" && !date.match(tzPattern)) {
|
|
2016
|
-
return toDate2(date, { ...options, timeZone });
|
|
2017
|
-
}
|
|
2018
|
-
date = toDate2(date, options);
|
|
2019
|
-
const utc = newDateUTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()).getTime();
|
|
2020
|
-
const offsetMilliseconds = tzParseTimezone(timeZone, new Date(utc));
|
|
2021
|
-
return new Date(utc + offsetMilliseconds);
|
|
2022
|
-
}
|
|
2023
|
-
var resolveDateTimeLocale = (uiLocale, countryCode, selectedLocale) => {
|
|
2024
|
-
if (selectedLocale) {
|
|
2025
|
-
try {
|
|
2026
|
-
return new Intl.Locale(selectedLocale).toString();
|
|
2027
|
-
} catch {
|
|
2028
|
-
}
|
|
2029
|
-
}
|
|
2030
|
-
const locale = new Intl.Locale(uiLocale || "en");
|
|
2031
|
-
if (locale.region || !countryCode) return locale.toString();
|
|
2032
|
-
try {
|
|
2033
|
-
return new Intl.Locale(locale, {
|
|
2034
|
-
region: countryCode.toUpperCase()
|
|
2035
|
-
}).toString();
|
|
2036
|
-
} catch {
|
|
2037
|
-
return locale.toString();
|
|
2038
|
-
}
|
|
2039
|
-
};
|
|
2040
|
-
var useFormatDateTime = () => {
|
|
2041
|
-
const { locale: uiLocale } = useIntl();
|
|
2042
|
-
const { shopInfo } = useShopInfo_default();
|
|
2043
|
-
const appContext = useContext(AppContext_default);
|
|
2044
|
-
const locale = resolveDateTimeLocale(
|
|
2045
|
-
uiLocale,
|
|
2046
|
-
shopInfo?.country?.isoCode,
|
|
2047
|
-
appContext?.selectedLocale
|
|
2048
|
-
);
|
|
2049
|
-
const formatDateTime = (date, options = {}) => {
|
|
2050
|
-
if (typeof date !== "string" && typeof date !== "number" && !(date instanceof Date) || date === "")
|
|
2051
|
-
return "n/a";
|
|
2052
|
-
const timestamp = new Date(date).getTime();
|
|
2053
|
-
if (Number.isNaN(timestamp)) return "n/a";
|
|
2054
|
-
return new Intl.DateTimeFormat(locale, options).format(timestamp);
|
|
2055
|
-
};
|
|
2056
|
-
const getDateFormatPattern = () => {
|
|
2057
|
-
const getPatternForPart = (part) => {
|
|
2058
|
-
switch (part.type) {
|
|
2059
|
-
case "day":
|
|
2060
|
-
return "d".repeat(part.value.length);
|
|
2061
|
-
case "month":
|
|
2062
|
-
return "M".repeat(part.value.length);
|
|
2063
|
-
case "year":
|
|
2064
|
-
return "y".repeat(part.value.length);
|
|
2065
|
-
case "literal":
|
|
2066
|
-
return part.value;
|
|
2067
|
-
default:
|
|
2068
|
-
return "dd.mm.yyyy";
|
|
2069
|
-
}
|
|
2070
|
-
};
|
|
2071
|
-
return new Intl.DateTimeFormat(locale).formatToParts(/* @__PURE__ */ new Date()).map(getPatternForPart).join("");
|
|
2072
|
-
};
|
|
2073
|
-
const parseDate2 = (value) => {
|
|
2074
|
-
return format(
|
|
2075
|
-
fromZonedTime(value, Intl.DateTimeFormat().resolvedOptions().timeZone),
|
|
2076
|
-
"yyyy-MM-dd"
|
|
2077
|
-
);
|
|
2078
|
-
};
|
|
2079
|
-
return { formatDateTime, getDateFormatPattern, parseDate: parseDate2, locale };
|
|
2080
|
-
};
|
|
2081
|
-
var useFormatDateTime_default = useFormatDateTime;
|
|
2082
|
-
|
|
2083
|
-
export { useFormatDateTime_default };
|