vona-cli-set-api 1.1.89 → 1.1.91

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.
Files changed (90) hide show
  1. package/cli/templates/create/project/cabloy-basic/boilerplate/package.original.json +1 -1
  2. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-api-CHYYULgK.js → a-api-BqNqY2GN.js} +1 -1
  3. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-app-C7ZzWYyv.js → a-app-D7EP8U-3.js} +1 -1
  4. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-bean-DbU4LrMT.js → a-bean-CUO4gVIm.js} +1 -1
  5. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-behavior-eA4Ko-He.js → a-behavior-BAP2Ff4w.js} +1 -1
  6. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-behaviors-f2exgaEu.js → a-behaviors-CkK01keI.js} +1 -1
  7. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-boundary-BAhgHCTT.js → a-boundary-BoCvn9dH.js} +1 -1
  8. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-command-BOYshJRZ.js → a-command-RwirCrc8.js} +1 -1
  9. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-fetch-AIg5YBcV.js → a-fetch-B1Po-5Co.js} +1 -1
  10. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-form-BAf2Qz_J.js → a-form-B9pT_aEp.js} +1 -1
  11. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-icon-BlxtKoSc.js → a-icon-EEVl8aoi.js} +1 -1
  12. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-interceptor-DTvzdmmr.js → a-interceptor-06a7Nl5q.js} +1 -1
  13. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-logger-B7YCH8mY.js → a-logger-Bj9zsUzc.js} +1 -1
  14. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-meta-CK9pPRbq.js → a-meta-C3IXQKfQ.js} +1 -1
  15. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-model-Dy8MZZlZ.js → a-model-BmCSLXQU.js} +1 -1
  16. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-openapi-HwWghsDd.js → a-openapi-B9APBFN4.js} +1 -1
  17. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-router-D0Y00b5F.js → a-router-C7QHN86t.js} +1 -1
  18. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-routerstack-BXMhGOGB.js → a-routerstack-DxBmHbVZ.js} +1 -1
  19. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-routertabs-CUhdzubP.js → a-routertabs-9sSx4dt9.js} +1 -1
  20. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-ssr-eiXfoZ6Q.js → a-ssr-gMlPESAu.js} +1 -1
  21. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-ssrhmr-cH7AXfM5.js → a-ssrhmr-B2cvF-nD.js} +1 -1
  22. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-style-DZd6z-ny.js → a-style-Bht4iQ_d.js} +1 -1
  23. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-table-kuC_J1k8.js → a-table-BBksZBe1.js} +1 -1
  24. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-zod-Cdqw-WGX.js → a-zod-BWqOglw0.js} +1 -1
  25. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-zova-CxF5nOQp.js → a-zova-CLVn3kWM.js} +1 -1
  26. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{axios-B7gCUQ9l.js → axios-DyuziMXs.js} +1 -1
  27. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{basic-adapter-Cj2vkw9z.js → basic-adapter-DS840NRF.js} +1 -1
  28. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{basic-captcha-VrKsTQJ3.js → basic-captcha-BNweQgyJ.js} +1 -1
  29. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{basic-commands-B2edNn1P.js → basic-commands-C0VoFwfq.js} +1 -1
  30. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{basic-commandssync-Bd_kbbVQ.js → basic-commandssync-ojYOahN8.js} +1 -1
  31. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{basic-currency-DNVB5gad.js → basic-currency-B53xuwSH.js} +1 -1
  32. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{basic-date-d4feu4Im.js → basic-date-DmB2H1Wl.js} +1 -1
  33. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{basic-form-Bj4tp02u.js → basic-form-CTT8W72D.js} +1 -1
  34. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{basic-input-CvUiSrkp.js → basic-input-CujxC8t2.js} +1 -1
  35. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/basic-page-DUPLsQtX.js +1 -0
  36. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{basic-pageentry-DNpaXmae.js → basic-pageentry-CURMfZZV.js} +1 -1
  37. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{basic-select-PVPCheEJ.js → basic-select-48uSP1-o.js} +1 -1
  38. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{basic-table-BpGdazu7.js → basic-table-vjdwIkpu.js} +1 -1
  39. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{basic-text-BNx8xfbC.js → basic-text-D0lSueNu.js} +1 -1
  40. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{browser-DVyM2lRk.js → browser-BGhVutxz.js} +1 -1
  41. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{demo-student-D6S7aLYU.js → demo-student-Cb-fUR36.js} +1 -1
  42. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{devui-adapter-DKLLSAYN.js → devui-adapter-BT7_PUBh.js} +1 -1
  43. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{esm-Cyu7DhcL.js → esm-C5llv4f3.js} +1 -1
  44. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{extends-BEDPO8Vk.js → extends-DY_KS8Q4.js} +1 -1
  45. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{fecha-DKYcT2kV.js → fecha-Dt-wbMrP.js} +1 -1
  46. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{home-api-bXUVCQ2V.js → home-api-CwYBZ2Yj.js} +1 -1
  47. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{home-base-DGQFfNxH.js → home-base-BH3oFpCW.js} +1 -1
  48. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{home-icon-BlaDdQNB.js → home-icon-BbtfW8qU.js} +1 -1
  49. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{home-index-BzWHcmYp.js → home-index-Dq4LNszg.js} +1 -1
  50. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{home-layoutempty-C4ksERwb.js → home-layoutempty-C3MCtlEr.js} +1 -1
  51. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{home-layouttabs-CA_fymbL.js → home-layouttabs-DWEz1yYL.js} +1 -1
  52. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{home-login-BEk-O7Go.js → home-login-BMwC29bW.js} +1 -1
  53. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{home-passport-BdMykqqE.js → home-passport-DPYau1K1.js} +1 -1
  54. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{home-theme-CG--q4WN.js → home-theme-nhgndR7j.js} +1 -1
  55. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{index-CnDZzQ19.js → index-DBmne68H.js} +2 -2
  56. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/openapi3-FT2pEsVX.js +1 -0
  57. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{rest-resource-TyYU0ri_.js → rest-resource-C6GQiEpn.js} +1 -1
  58. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{src-CwcJuyuX.js → src-BjsHwghP.js} +1 -1
  59. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{src-C0-wYX-r.js → src-D9laPyFH.js} +1 -1
  60. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{src-DS3T1Yl4.js → src-DJBJvh6A.js} +1 -1
  61. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{src-BUCf7j9k.js → src-i44gADN5.js} +1 -1
  62. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{tanstack-form-DuMNegIR.js → tanstack-form-CXtAdtI3.js} +1 -1
  63. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{tanstack-query--KWujqw6.js → tanstack-query-CvGZOEQ7.js} +1 -1
  64. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{tanstack-query-DsCq8m8t.js → tanstack-query-DOmL-fBO.js} +1 -1
  65. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{tanstack-query-w62dJpVl.js → tanstack-query-ReR706Mh.js} +1 -1
  66. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{tanstack-table-Bo1IMehE.js → tanstack-table-Cc9nzOiG.js} +1 -1
  67. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{tanstack-table-DWHj4lH8.js → tanstack-table-Ck6NfDtc.js} +1 -1
  68. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/vue-B9pRh0Vf.js +1 -0
  69. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/vue-De0oSCem.js +1 -0
  70. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{vue-DtpXLVVU.js → vue-hlNowAAI.js} +1 -1
  71. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{vue-router-BYR57x2V.js → vue-router-CVjseDu5.js} +1 -1
  72. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{zova-DCETe0vD.js → zova-Cb9EgvUI.js} +1 -1
  73. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{zova-Bg37yi9o.js → zova-CybCK-Pu.js} +1 -1
  74. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{zova-D8v2RJZ_.js → zova-D5ZWWzCV.js} +1 -1
  75. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{zova-DtaxAeLK.js → zova-DrRXpYkJ.js} +1 -1
  76. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/zova-GXbZsK4u.js +1 -0
  77. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{zova-DrYi3lHN.js → zova-sdmNUH4m.js} +1 -1
  78. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/handler.js +45 -45
  79. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/quasar.manifest.json +1 -1
  80. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/package.json +1 -1
  81. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/zovaRest/cabloy-basic-admin/index.d.mts +5 -1
  82. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/zovaRest/cabloy-basic-admin/package.json +2 -2
  83. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/package.json +2 -2
  84. package/cli/templates/create/project/cabloy-start/boilerplate/package.original.json +1 -1
  85. package/package.json +4 -4
  86. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/basic-page-CuyulrHr.js +0 -1
  87. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/openapi3-DYIMmMEX.js +0 -1
  88. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/vue-Bfl7vS_c.js +0 -1
  89. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/vue-CHj8oCvV.js +0 -1
  90. package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/zova-DyVKtBvo.js +0 -1
@@ -1 +1 @@
1
- import{n as t}from"./rolldown-runtime-CHbrDDT0.js";import{C as e,D as s,E as i,O as n,S as a,T as r,b as o,d as u,f as l,i as h,m as c,p as d,r as v,w as f,x as p,y}from"./fecha-DKYcT2kV.js";import{i as m,n as b,r as g,t as w}from"./extends-BEDPO8Vk.js";var O,M,S,P,k,q,C,R,F,W=t(()=>{O=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}}),A=t(()=>{W(),n(),f(),a(),M=new WeakMap,S=new WeakMap,P=new WeakMap,k=new class extends O{constructor(){super(),s(this,M,void 0),s(this,S,void 0),s(this,P,void 0),e(P,this,t=>{if("undefined"!=typeof window&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}})}onSubscribe(){p(S,this)||this.setEventListener(p(P,this))}onUnsubscribe(){var t;this.hasListeners()||(null===(t=p(S,this))||void 0===t||t.call(this),e(S,this,void 0))}setEventListener(t){var s;e(P,this,t),null===(s=p(S,this))||void 0===s||s.call(this),e(S,this,t(t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()}))}setFocused(t){p(M,this)!==t&&(e(M,this,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){var t;return"boolean"==typeof p(M,this)?p(M,this):"hidden"!==(null===(t=globalThis.document)||void 0===t?void 0:t.visibilityState)}}});function E(t){setTimeout(t,0)}var D,Q,j,T=t(()=>{n(),a(),f(),R={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},q=new WeakMap,C=new WeakMap,F=new class{constructor(){s(this,q,R),s(this,C,!1)}setTimeoutProvider(t){e(q,this,t)}setTimeout(t,e){return p(q,this).setTimeout(t,e)}clearTimeout(t){p(q,this).clearTimeout(t)}setInterval(t,e){return p(q,this).setInterval(t,e)}clearInterval(t){p(q,this).clearInterval(t)}}});function U(){}function x(t){return"number"==typeof t&&t>=0&&t!==1/0}function K(t,e){return Math.max(t+(e||0)-Date.now(),0)}function I(t,e){return"function"==typeof t?t(e):t}function L(t,e){return"function"==typeof t?t(e):t}function H(t,e){const{type:s="all",exact:i,fetchStatus:n,predicate:a,queryKey:r,stale:o}=t;if(r)if(i){if(e.queryHash!==_(r,e.options))return!1}else if(!B(e.queryKey,r))return!1;if("all"!==s){const t=e.isActive();if("active"===s&&!t)return!1;if("inactive"===s&&t)return!1}return("boolean"!=typeof o||e.isStale()===o)&&((!n||n===e.state.fetchStatus)&&!(a&&!a(e)))}function G(t,e){const{exact:s,status:i,predicate:n,mutationKey:a}=t;if(a){if(!e.options.mutationKey)return!1;if(s){if(N(e.options.mutationKey)!==N(a))return!1}else if(!B(e.options.mutationKey,a))return!1}return(!i||e.state.status===i)&&!(n&&!n(e))}function _(t,e){return((null==e?void 0:e.queryKeyHashFn)||N)(t)}function N(t){return JSON.stringify(t,(t,e)=>V(e)?Object.keys(e).sort().reduce((t,s)=>(t[s]=e[s],t),{}):e)}function B(t,e){return t===e||typeof t==typeof e&&(!(!t||!e||"object"!=typeof t||"object"!=typeof e)&&Object.keys(e).every(s=>B(t[s],e[s])))}function z(t,e,s=0){if(t===e)return t;if(s>500)return e;const i=J(t)&&J(e);if(!(i||V(t)&&V(e)))return e;const n=(i?t:Object.keys(t)).length,a=i?e:Object.keys(e),r=a.length,o=i?new Array(r):{};let u=0;for(let l=0;l<r;l++){const r=i?l:a[l],h=t[r],c=e[r];if(h===c){o[r]=h,(i?l<n:Q.call(t,r))&&u++;continue}if(null===h||null===c||"object"!=typeof h||"object"!=typeof c){o[r]=c;continue}const d=z(h,c,s+1);o[r]=d,d===h&&u++}return n===r&&u===n?t:o}function $(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const s in t)if(t[s]!==e[s])return!1;return!0}function J(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function V(t){if(!X(t))return!1;const e=t.constructor;if(void 0===e)return!0;const s=e.prototype;return!!X(s)&&(!!s.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(t)===Object.prototype)}function X(t){return"[object Object]"===Object.prototype.toString.call(t)}function Y(t,e,s){return"function"==typeof s.structuralSharing?s.structuralSharing(t,e):!1!==s.structuralSharing?z(t,e):e}function Z(t,e,s=0){const i=[...t,e];return s&&i.length>s?i.slice(1):i}function tt(t,e,s=0){const i=[e,...t];return s&&i.length>s?i.slice(0,-1):i}function et(t,e){return!t.queryFn&&(null==e?void 0:e.initialPromise)?()=>e.initialPromise:t.queryFn&&t.queryFn!==j?t.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`))}function st(t,e){return"function"==typeof t?t(...e):!!t}var it,nt=t(()=>{T(),D="undefined"==typeof window||"Deno"in globalThis,Q=Object.prototype.hasOwnProperty,j=Symbol()}),at=t(()=>{nt(),it=(()=>{let t=()=>D;return{isServer:()=>t(),setIsServer(e){t=e}}})()});function rt(){let t,e;const s=new Promise((s,i)=>{t=s,e=i});function i(t){Object.assign(s,t),delete s.resolve,delete s.reject}return s.status="pending",s.catch(()=>{}),s.resolve=e=>{i({status:"fulfilled",value:e}),t(e)},s.reject=t=>{i({status:"rejected",reason:t}),e(t)},s}var ot,ut,lt=t(()=>{nt()});function ht(t){return t}function ct(t){return"success"===t.state.status}function dt(t,e,s){var i,n,a,r;if("object"!=typeof e||null===e)return;const o=t.getMutationCache(),l=t.getQueryCache(),h=null!==(i=null!==(n=null==s||null===(a=s.defaultOptions)||void 0===a?void 0:a.deserializeData)&&void 0!==n?n:null===(r=t.getDefaultOptions().hydrate)||void 0===r?void 0:r.deserializeData)&&void 0!==i?i:ht,c=e.mutations||[],d=e.queries||[];c.forEach(e=>{var i,n;let{state:a}=e,r=v(e,ot);o.build(t,u(u(u({},null===(i=t.getDefaultOptions().hydrate)||void 0===i?void 0:i.mutations),null==s||null===(n=s.defaultOptions)||void 0===n?void 0:n.mutations),r),a)}),d.forEach(({queryKey:e,state:i,queryHash:n,meta:a,promise:r,dehydratedAt:o,queryType:c})=>{const d=r?function(t){var e;let s;if(null===(e=t.then(t=>(s=t,t),U))||void 0===e||e.catch(U),void 0!==s)return{data:s}}(r):void 0,f=void 0===i.data?null==d?void 0:d.data:i.data,p=void 0===f?f:h(f);let y=l.get(n);const m="pending"===(null==y?void 0:y.state.status),b="fetching"===(null==y?void 0:y.state.fetchStatus);if(y){const t=d&&void 0!==o&&o>y.state.dataUpdatedAt;if(i.dataUpdatedAt>y.state.dataUpdatedAt||t){const{fetchStatus:t}=i,e=v(i,ut);y.setState(u(u({},e),{},{data:p},"pending"===i.status&&void 0!==p&&u({status:"success"},!b&&{fetchStatus:"idle"})))}}else{var g,w;y=l.build(t,u(u(u({},null===(g=t.getDefaultOptions().hydrate)||void 0===g?void 0:g.queries),null==s||null===(w=s.defaultOptions)||void 0===w?void 0:w.queries),{},{queryKey:e,queryHash:n,meta:a,_type:c}),u(u({},i),{},{data:p,fetchStatus:"idle",status:"pending"===i.status&&void 0!==p?"success":i.status}))}!r||d||m||b||!(void 0===o||o>y.state.dataUpdatedAt)||y.fetch(void 0,{initialPromise:Promise.resolve(r).then(h)}).catch(U)})}var vt,ft,pt=t(()=>{lt(),nt(),l(),h(),ot=["state"],ut=["fetchStatus"]});function yt(){let t=[],e=0,s=t=>{t()},i=t=>{t()},n=vt;const a=i=>{e?t.push(i):n(()=>{s(i)})};return{batch:a=>{let r;e++;try{r=a()}finally{e--,e||(()=>{const e=t;t=[],e.length&&n(()=>{i(()=>{e.forEach(t=>{s(t)})})})})()}return r},batchCalls:t=>(...e)=>{a(()=>{t(...e)})},schedule:a,setNotifyFunction:t=>{s=t},setBatchNotifyFunction:t=>{i=t},setScheduler:t=>{n=t}}}var mt,bt,gt,wt,Ot,Mt=t(()=>{T(),vt=E,ft=yt()}),St=t(()=>{W(),n(),f(),a(),mt=new WeakMap,bt=new WeakMap,gt=new WeakMap,wt=new class extends O{constructor(){super(),s(this,mt,!0),s(this,bt,void 0),s(this,gt,void 0),e(gt,this,t=>{if("undefined"!=typeof window&&window.addEventListener){const e=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",s)}}})}onSubscribe(){p(bt,this)||this.setEventListener(p(gt,this))}onUnsubscribe(){var t;this.hasListeners()||(null===(t=p(bt,this))||void 0===t||t.call(this),e(bt,this,void 0))}setEventListener(t){var s;e(gt,this,t),null===(s=p(bt,this))||void 0===s||s.call(this),e(bt,this,t(this.setOnline.bind(this)))}setOnline(t){p(mt,this)!==t&&(e(mt,this,t),this.listeners.forEach(e=>{e(t)}))}isOnline(){return p(mt,this)}}});function Pt(t){return Math.min(1e3*Math.pow(2,t),3e4)}function kt(t){return"online"!==(null!=t?t:"online")||wt.isOnline()}function qt(t){let e,s=!1,i=0;const n=rt(),a=()=>"pending"!==n.status,r=()=>k.isFocused()&&("always"===t.networkMode||wt.isOnline())&&t.canRun(),o=()=>kt(t.networkMode)&&t.canRun(),u=t=>{a()||(null==e||e(),n.resolve(t))},l=t=>{a()||(null==e||e(),n.reject(t))},h=()=>new Promise(s=>{var i;e=t=>{(a()||r())&&s(t)},null===(i=t.onPause)||void 0===i||i.call(t)}).then(()=>{var s;(e=void 0,a())||(null===(s=t.onContinue)||void 0===s||s.call(t))}),c=()=>{if(a())return;let e;const n=0===i?t.initialPromise:void 0;try{e=null!=n?n:t.fn()}catch(o){e=Promise.reject(o)}Promise.resolve(e).then(u).catch(e=>{var n,o,u;if(a())return;const d=null!==(n=t.retry)&&void 0!==n?n:it.isServer()?0:3,v=null!==(o=t.retryDelay)&&void 0!==o?o:Pt,f="function"==typeof v?v(i,e):v,p=!0===d||"number"==typeof d&&i<d||"function"==typeof d&&d(i,e);var y;!s&&p?(i++,null===(u=t.onFail)||void 0===u||u.call(t,i,e),(y=f,new Promise(t=>{F.setTimeout(t,y)})).then(()=>r()?void 0:h()).then(()=>{s?l(e):c()})):l(e)})};return{promise:n,status:()=>n.status,cancel:e=>{if(!a()){var s;const i=new Ot(e);l(i),null===(s=t.onCancel)||void 0===s||s.call(t,i)}},continue:()=>(null==e||e(),n),cancelRetry:()=>{s=!0},continueRetry:()=>{s=!1},canStart:o,start:()=>(o()?c():h().then(c),n)}}var Ct,Rt,Ft=t(()=>{A(),St(),lt(),at(),nt(),Ot=class extends Error{constructor(t){super("CancelledError"),this.revert=null==t?void 0:t.revert,this.silent=null==t?void 0:t.silent}}}),Wt=t(()=>{T(),at(),nt(),n(),f(),a(),Ct=new WeakMap,Rt=class{constructor(){s(this,Ct,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),x(this.gcTime)&&e(Ct,this,F.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,null!=t?t:it.isServer()?1/0:3e5)}clearGcTimeout(){void 0!==p(Ct,this)&&(F.clearTimeout(p(Ct,this)),e(Ct,this,void 0))}}});function At(t){return{onFetch:(e,s)=>{var i,n,a;const r=e.options,o=null===(i=e.fetchOptions)||void 0===i||null===(i=i.meta)||void 0===i||null===(i=i.fetchMore)||void 0===i?void 0:i.direction,u=(null===(n=e.state.data)||void 0===n?void 0:n.pages)||[],l=(null===(a=e.state.data)||void 0===a?void 0:a.pageParams)||[];let h={pages:[],pageParams:[]},c=0;const v=(f=d(function*(){let s=!1;const i=t=>{!function(t,e,s){let i,n=!1;Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{var t;return null!==(t=i)&&void 0!==t||(i=e()),n||(n=!0,i.aborted?s():i.addEventListener("abort",s,{once:!0})),i}})}(t,()=>e.signal,()=>s=!0)},n=et(e.options,e.fetchOptions),a=(v=d(function*(t,a,r){if(s)return Promise.reject(e.signal.reason);if(null==a&&t.pages.length)return Promise.resolve(t);const o=yield n((()=>{const t={client:e.client,queryKey:e.queryKey,pageParam:a,direction:r?"backward":"forward",meta:e.options.meta};return i(t),t})()),{maxPages:u}=e.options,l=r?tt:Z;return{pages:l(t.pages,o,u),pageParams:l(t.pageParams,a,u)}}),function(t,e,s){return v.apply(this,arguments)});var v;if(o&&u.length){const t="backward"===o,e=t?Dt:Et,s={pages:u,pageParams:l};h=yield a(s,e(r,s),t)}else{const e=null!=t?t:u.length;do{var f;const t=0===c?null!==(f=l[0])&&void 0!==f?f:r.initialPageParam:Et(r,h);if(c>0&&null==t)break;h=yield a(h,t),c++}while(c<e)}return h}),function(){return f.apply(this,arguments)});var f;e.options.persister?e.fetchFn=()=>{var t,i;return null===(t=(i=e.options).persister)||void 0===t?void 0:t.call(i,v,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},s)}:e.fetchFn=v}}}function Et(t,{pages:e,pageParams:s}){const i=e.length-1;return e.length>0?t.getNextPageParam(e[i],e,s[i],s):void 0}function Dt(t,{pages:e,pageParams:s}){var i;return e.length>0?null===(i=t.getPreviousPageParam)||void 0===i?void 0:i.call(t,e[0],e,s[0],s):void 0}var Qt,jt,Tt,Ut,xt,Kt,It,Lt,Ht,Gt,_t=t(()=>{nt(),c()});function Nt(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}function Bt(t){this.state=(s=>{switch(t.type){case"failed":return u(u({},s),{},{fetchFailureCount:t.failureCount,fetchFailureReason:t.error});case"pause":return u(u({},s),{},{fetchStatus:"paused"});case"continue":return u(u({},s),{},{fetchStatus:"fetching"});case"fetch":var i;return u(u(u({},s),zt(s.data,this.options)),{},{fetchMeta:null!==(i=t.meta)&&void 0!==i?i:null});case"success":const n=u(u(u({},s),$t(t.data,t.dataUpdatedAt)),{},{dataUpdateCount:s.dataUpdateCount+1},!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});return e(Tt,this,t.manual?n:void 0),n;case"error":const a=t.error;return u(u({},s),{},{error:a,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0});case"invalidate":return u(u({},s),{},{isInvalidated:!0});case"setState":return u(u({},s),t.state)}})(this.state),ft.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate()}),p(Ut,this).notify({query:this,type:"updated",action:t})})}function zt(t,e){return u({fetchFailureCount:0,fetchFailureReason:null,fetchStatus:kt(e.networkMode)?"fetching":"paused"},void 0===t&&{error:null,status:"pending"})}function $t(t,e){return{data:t,dataUpdatedAt:null!=e?e:Date.now(),error:null,isInvalidated:!1,status:"success"}}function Jt(t){const e="function"==typeof t.initialData?t.initialData():t.initialData,s=void 0!==e,i=s?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:s?null!=i?i:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var Vt,Xt,Yt,Zt,te,ee,se,ie,ne,ae,re,oe,ue,le,he,ce,de,ve=t(()=>{nt(),Mt(),Ft(),Wt(),_t(),o(),n(),f(),a(),l(),i(),c(),Qt=new WeakMap,jt=new WeakMap,Tt=new WeakMap,Ut=new WeakMap,xt=new WeakMap,Kt=new WeakMap,It=new WeakMap,Lt=new WeakMap,Ht=new WeakSet,Gt=class extends Rt{constructor(t){var i;super(),y(this,Ht),s(this,Qt,void 0),s(this,jt,void 0),s(this,Tt,void 0),s(this,Ut,void 0),s(this,xt,void 0),s(this,Kt,void 0),s(this,It,void 0),s(this,Lt,void 0),e(Lt,this,!1),e(It,this,t.defaultOptions),this.setOptions(t.options),this.observers=[],e(xt,this,t.client),e(Ut,this,p(xt,this).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,e(jt,this,Jt(this.options)),this.state=null!==(i=t.state)&&void 0!==i?i:p(jt,this),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return p(Qt,this)}get promise(){var t;return null===(t=p(Kt,this))||void 0===t?void 0:t.promise}setOptions(t){if(this.options=u(u({},p(It,this)),t),(null==t?void 0:t._type)&&e(Qt,this,t._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const t=Jt(this.options);void 0!==t.data&&(this.setState($t(t.data,t.dataUpdatedAt)),e(jt,this,t))}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||p(Ut,this).remove(this)}setData(t,e){const s=Y(this.state.data,t,this.options);return r(Ht,this,Bt).call(this,{data:s,type:"success",dataUpdatedAt:null==e?void 0:e.updatedAt,manual:null==e?void 0:e.manual}),s}setState(t){r(Ht,this,Bt).call(this,{type:"setState",state:t})}cancel(t){var e,s;const i=null===(e=p(Kt,this))||void 0===e?void 0:e.promise;return null===(s=p(Kt,this))||void 0===s||s.cancel(t),i?i.then(U).catch(U):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return p(jt,this)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>!1!==L(t.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===j||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(t=>"static"===I(t.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(t=0){return void 0===this.state.data||"static"!==t&&(!!this.state.isInvalidated||!K(this.state.dataUpdatedAt,t))}onFocus(){var t;const e=this.observers.find(t=>t.shouldFetchOnWindowFocus());null==e||e.refetch({cancelRefetch:!1}),null===(t=p(Kt,this))||void 0===t||t.continue()}onOnline(){var t;const e=this.observers.find(t=>t.shouldFetchOnReconnect());null==e||e.refetch({cancelRefetch:!1}),null===(t=p(Kt,this))||void 0===t||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),p(Ut,this).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(p(Kt,this)&&(p(Lt,this)||r(Ht,this,Nt).call(this)?p(Kt,this).cancel({revert:!0}):p(Kt,this).cancelRetry()),this.scheduleGc()),p(Ut,this).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||r(Ht,this,Bt).call(this,{type:"invalidate"})}fetch(t,s){var i=this;return d(function*(){var n,a;if("idle"!==i.state.fetchStatus&&"rejected"!==(null===(n=p(Kt,i))||void 0===n?void 0:n.status()))if(void 0!==i.state.data&&(null==s?void 0:s.cancelRefetch))i.cancel({silent:!0});else if(p(Kt,i))return p(Kt,i).continueRetry(),p(Kt,i).promise;if(t&&i.setOptions(t),!i.options.queryFn){const t=i.observers.find(t=>t.options.queryFn);t&&i.setOptions(t.options)}const o=new AbortController,l=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(e(Lt,i,!0),o.signal)})},h=()=>{const t=et(i.options,s),n=(()=>{const t={client:p(xt,i),queryKey:i.queryKey,meta:i.meta};return l(t),t})();return e(Lt,i,!1),i.options.persister?i.options.persister(t,n,i):t(n)},c=(()=>{const t={fetchOptions:s,options:i.options,queryKey:i.queryKey,client:p(xt,i),state:i.state,fetchFn:h};return l(t),t})(),d="infinite"===p(Qt,i)?At(i.options.pages):i.options.behavior;var v;(null==d||d.onFetch(c,i),e(Tt,i,i.state),"idle"===i.state.fetchStatus||i.state.fetchMeta!==(null===(a=c.fetchOptions)||void 0===a?void 0:a.meta))&&r(Ht,i,Bt).call(i,{type:"fetch",meta:null===(v=c.fetchOptions)||void 0===v?void 0:v.meta});e(Kt,i,qt({initialPromise:null==s?void 0:s.initialPromise,fn:c.fetchFn,onCancel:t=>{t instanceof Ot&&t.revert&&i.setState(u(u({},p(Tt,i)),{},{fetchStatus:"idle"})),o.abort()},onFail:(t,e)=>{r(Ht,i,Bt).call(i,{type:"failed",failureCount:t,error:e})},onPause:()=>{r(Ht,i,Bt).call(i,{type:"pause"})},onContinue:()=>{r(Ht,i,Bt).call(i,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{var f,y,m,b;const t=yield p(Kt,i).start();if(void 0===t)throw new Error(`${i.queryHash} data is undefined`);return i.setData(t),null===(f=(y=p(Ut,i).config).onSuccess)||void 0===f||f.call(y,t,i),null===(m=(b=p(Ut,i).config).onSettled)||void 0===m||m.call(b,t,i.state.error,i),t}catch(S){var g,w,O,M;if(S instanceof Ot){if(S.silent)return p(Kt,i).promise;if(S.revert){if(void 0===i.state.data)throw S;return i.state.data}}throw r(Ht,i,Bt).call(i,{type:"error",error:S}),null===(g=(w=p(Ut,i).config).onError)||void 0===g||g.call(w,S,i),null===(O=(M=p(Ut,i).config).onSettled)||void 0===O||O.call(M,i.state.data,S,i),S}finally{i.scheduleGc()}})()}}});function fe(t){r(ce,this,Oe).call(this);let e=p(Xt,this).fetch(this.options,t);return(null==t?void 0:t.throwOnError)||(e=e.catch(U)),e}function pe(){r(ce,this,ge).call(this);const t=I(this.options.staleTime,p(Xt,this));if(it.isServer()||p(Zt,this).isStale||!x(t))return;const s=K(p(Zt,this).dataUpdatedAt,t)+1;e(oe,this,F.setTimeout(()=>{p(Zt,this).isStale||this.updateResult()},s))}function ye(){var t;return null!==(t="function"==typeof this.options.refetchInterval?this.options.refetchInterval(p(Xt,this)):this.options.refetchInterval)&&void 0!==t&&t}function me(t){r(ce,this,we).call(this),e(le,this,t),!it.isServer()&&!1!==L(this.options.enabled,p(Xt,this))&&x(p(le,this))&&0!==p(le,this)&&e(ue,this,F.setInterval(()=>{(this.options.refetchIntervalInBackground||k.isFocused())&&r(ce,this,fe).call(this)},p(le,this)))}function be(){r(ce,this,pe).call(this),r(ce,this,me).call(this,r(ce,this,ye).call(this))}function ge(){void 0!==p(oe,this)&&(F.clearTimeout(p(oe,this)),e(oe,this,void 0))}function we(){void 0!==p(ue,this)&&(F.clearInterval(p(ue,this)),e(ue,this,void 0))}function Oe(){const t=p(Vt,this).getQueryCache().build(p(Vt,this),this.options);if(t===p(Xt,this))return;const s=p(Xt,this);e(Xt,this,t),e(Yt,this,t.state),this.hasListeners()&&(null==s||s.removeObserver(this),t.addObserver(this))}function Me(t){ft.batch(()=>{t.listeners&&this.listeners.forEach(t=>{t(p(Zt,this))}),p(Vt,this).getQueryCache().notify({query:p(Xt,this),type:"observerResultsUpdated"})})}function Se(t,e){return function(t,e){return!1!==L(e.enabled,t)&&void 0===t.state.data&&!("error"===t.state.status&&!1===L(e.retryOnMount,t))}(t,e)||void 0!==t.state.data&&Pe(t,e,e.refetchOnMount)}function Pe(t,e,s){if(!1!==L(e.enabled,t)&&"static"!==I(e.staleTime,t)){const i="function"==typeof s?s(t):s;return"always"===i||!1!==i&&qe(t,e)}return!1}function ke(t,e,s,i){return(t!==e||!1===L(i.enabled,t))&&(!s.suspense||"error"!==t.state.status)&&qe(t,s)}function qe(t,e){return!1!==L(e.enabled,t)&&t.isStaleByTime(I(e.staleTime,t))}var Ce,Re,Fe,We,Ae,Ee,De=t(()=>{A(),at(),Mt(),ve(),W(),lt(),nt(),T(),o(),n(),f(),a(),i(),m(),b(),l(),Vt=new WeakMap,Xt=new WeakMap,Yt=new WeakMap,Zt=new WeakMap,te=new WeakMap,ee=new WeakMap,se=new WeakMap,ie=new WeakMap,ne=new WeakMap,ae=new WeakMap,re=new WeakMap,oe=new WeakMap,ue=new WeakMap,le=new WeakMap,he=new WeakMap,ce=new WeakSet,de=class extends O{constructor(t,i){super(),y(this,ce),s(this,Vt,void 0),s(this,Xt,void 0),s(this,Yt,void 0),s(this,Zt,void 0),s(this,te,void 0),s(this,ee,void 0),s(this,se,void 0),s(this,ie,void 0),s(this,ne,void 0),s(this,ae,void 0),s(this,re,void 0),s(this,oe,void 0),s(this,ue,void 0),s(this,le,void 0),s(this,he,new Set),this.options=i,e(Vt,this,t),e(ie,this,null),e(se,this,rt()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(p(Xt,this).addObserver(this),Se(p(Xt,this),this.options)?r(ce,this,fe).call(this):this.updateResult(),r(ce,this,be).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Pe(p(Xt,this),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Pe(p(Xt,this),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,r(ce,this,ge).call(this),r(ce,this,we).call(this),p(Xt,this).removeObserver(this)}setOptions(t){const e=this.options,s=p(Xt,this);if(this.options=p(Vt,this).defaultQueryOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof L(this.options.enabled,p(Xt,this)))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");r(ce,this,Oe).call(this),p(Xt,this).setOptions(this.options),e._defaulted&&!$(this.options,e)&&p(Vt,this).getQueryCache().notify({type:"observerOptionsUpdated",query:p(Xt,this),observer:this});const i=this.hasListeners();i&&ke(p(Xt,this),s,this.options,e)&&r(ce,this,fe).call(this),this.updateResult(),!i||p(Xt,this)===s&&L(this.options.enabled,p(Xt,this))===L(e.enabled,p(Xt,this))&&I(this.options.staleTime,p(Xt,this))===I(e.staleTime,p(Xt,this))||r(ce,this,pe).call(this);const n=r(ce,this,ye).call(this);!i||p(Xt,this)===s&&L(this.options.enabled,p(Xt,this))===L(e.enabled,p(Xt,this))&&n===p(le,this)||r(ce,this,me).call(this,n)}getOptimisticResult(t){const s=p(Vt,this).getQueryCache().build(p(Vt,this),t),i=this.createResult(s,t);var n;return n=i,$(this.getCurrentResult(),n)||(e(Zt,this,i),e(ee,this,this.options),e(te,this,p(Xt,this).state)),i}getCurrentResult(){return p(Zt,this)}trackResult(t,e){return new Proxy(t,{get:(t,s)=>(this.trackProp(s),null==e||e(s),"promise"===s&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==p(se,this).status||p(se,this).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(t,s))})}trackProp(t){p(he,this).add(t)}getCurrentQuery(){return p(Xt,this)}refetch(t={}){let e=w({},(g(t),t));return this.fetch(u({},e))}fetchOptimistic(t){const e=p(Vt,this).defaultQueryOptions(t),s=p(Vt,this).getQueryCache().build(p(Vt,this),e);return s.fetch().then(()=>this.createResult(s,e))}fetch(t){var e;return r(ce,this,fe).call(this,u(u({},t),{},{cancelRefetch:null===(e=t.cancelRefetch)||void 0===e||e})).then(()=>(this.updateResult(),p(Zt,this)))}createResult(t,s){const i=p(Xt,this),n=this.options,a=p(Zt,this),r=p(te,this),o=p(ee,this),l=t!==i?t.state:p(Yt,this),{state:h}=t;let c,d=u({},h),v=!1;if(s._optimisticResults){const e=this.hasListeners(),a=!e&&Se(t,s),r=e&&ke(t,i,s,n);(a||r)&&(d=u(u({},d),zt(h.data,t.options))),"isRestoring"===s._optimisticResults&&(d.fetchStatus="idle")}let{error:f,errorUpdatedAt:y,status:m}=d;c=d.data;let b=!1;if(void 0!==s.placeholderData&&void 0===c&&"pending"===m){let t;var g;if((null==a?void 0:a.isPlaceholderData)&&s.placeholderData===(null==o?void 0:o.placeholderData))t=a.data,b=!0;else t="function"==typeof s.placeholderData?s.placeholderData(null===(g=p(re,this))||void 0===g?void 0:g.state.data,p(re,this)):s.placeholderData;void 0!==t&&(m="success",c=Y(null==a?void 0:a.data,t,s),v=!0)}if(s.select&&void 0!==c&&!b)if(a&&c===(null==r?void 0:r.data)&&s.select===p(ne,this))c=p(ae,this);else try{e(ne,this,s.select),c=s.select(c),c=Y(null==a?void 0:a.data,c,s),e(ae,this,c),e(ie,this,null)}catch(q){e(ie,this,q)}p(ie,this)&&(f=p(ie,this),c=p(ae,this),y=Date.now(),m="error");const w="fetching"===d.fetchStatus,O="pending"===m,M="error"===m,S=O&&w,P=void 0!==c,k={status:m,fetchStatus:d.fetchStatus,isPending:O,isSuccess:"success"===m,isError:M,isInitialLoading:S,isLoading:S,data:c,dataUpdatedAt:d.dataUpdatedAt,error:f,errorUpdatedAt:y,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:w,isRefetching:w&&!O,isLoadingError:M&&!P,isPaused:"paused"===d.fetchStatus,isPlaceholderData:v,isRefetchError:M&&P,isStale:qe(t,s),refetch:this.refetch,promise:p(se,this),isEnabled:!1!==L(s.enabled,t)};if(this.options.experimental_prefetchInRender){const s=void 0!==k.data,n="error"===k.status&&!s,a=t=>{n?t.reject(k.error):s&&t.resolve(k.data)},r=()=>{a(e(se,this,k.promise=rt()))},o=p(se,this);switch(o.status){case"pending":t.queryHash===i.queryHash&&a(o);break;case"fulfilled":(n||k.data!==o.value)&&r();break;case"rejected":n&&k.error===o.reason||r()}}return k}updateResult(){const t=p(Zt,this),s=this.createResult(p(Xt,this),this.options);if(e(te,this,p(Xt,this).state),e(ee,this,this.options),void 0!==p(te,this).data&&e(re,this,p(Xt,this)),$(s,t))return;e(Zt,this,s);r(ce,this,Me).call(this,{listeners:(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,s="function"==typeof e?e():e;if("all"===s||!s&&!p(he,this).size)return!0;const i=new Set(null!=s?s:p(he,this));return this.options.throwOnError&&i.add("error"),Object.keys(p(Zt,this)).some(e=>{const s=e;return p(Zt,this)[s]!==t[s]&&i.has(s)})})()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&r(ce,this,be).call(this)}}});function Qe(t){this.state=(e=>{switch(t.type){case"failed":return u(u({},e),{},{failureCount:t.failureCount,failureReason:t.error});case"pause":return u(u({},e),{},{isPaused:!0});case"continue":return u(u({},e),{},{isPaused:!1});case"pending":return u(u({},e),{},{context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()});case"success":return u(u({},e),{},{data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return u(u({},e),{},{data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"})}})(this.state),ft.batch(()=>{p(Re,this).forEach(e=>{e.onMutationUpdate(t)}),p(Fe,this).notify({mutation:this,type:"updated",action:t})})}var je,Te,Ue,xe,Ke=t(()=>{Mt(),Wt(),Ft(),o(),n(),f(),a(),i(),c(),l(),Ce=new WeakMap,Re=new WeakMap,Fe=new WeakMap,We=new WeakMap,Ae=new WeakSet,Ee=class extends Rt{constructor(t){super(),y(this,Ae),s(this,Ce,void 0),s(this,Re,void 0),s(this,Fe,void 0),s(this,We,void 0),e(Ce,this,t.client),this.mutationId=t.mutationId,e(Fe,this,t.mutationCache),e(Re,this,[]),this.state=t.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){p(Re,this).includes(t)||(p(Re,this).push(t),this.clearGcTimeout(),p(Fe,this).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){e(Re,this,p(Re,this).filter(e=>e!==t)),this.scheduleGc(),p(Fe,this).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){p(Re,this).length||("pending"===this.state.status?this.scheduleGc():p(Fe,this).remove(this))}continue(){var t,e;return null!==(t=null===(e=p(We,this))||void 0===e?void 0:e.continue())&&void 0!==t?t:this.execute(this.state.variables)}execute(t){var s=this;return d(function*(){var i;const n=()=>{r(Ae,s,Qe).call(s,{type:"continue"})},a={client:p(Ce,s),meta:s.options.meta,mutationKey:s.options.mutationKey};e(We,s,qt({fn:()=>s.options.mutationFn?s.options.mutationFn(t,a):Promise.reject(new Error("No mutationFn found")),onFail:(t,e)=>{r(Ae,s,Qe).call(s,{type:"failed",failureCount:t,error:e})},onPause:()=>{r(Ae,s,Qe).call(s,{type:"pause"})},onContinue:n,retry:null!==(i=s.options.retry)&&void 0!==i?i:0,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>p(Fe,s).canRun(s)}));const o="pending"===s.state.status,u=!p(We,s).canStart();try{var l,h,c,d,v,f,y,m;if(o)n();else{var b,g;r(Ae,s,Qe).call(s,{type:"pending",variables:t,isPaused:u}),p(Fe,s).config.onMutate&&(yield p(Fe,s).config.onMutate(t,s,a));const e=yield null===(b=(g=s.options).onMutate)||void 0===b?void 0:b.call(g,t,a);e!==s.state.context&&r(Ae,s,Qe).call(s,{type:"pending",context:e,variables:t,isPaused:u})}const e=yield p(We,s).start();return yield null===(l=(h=p(Fe,s).config).onSuccess)||void 0===l?void 0:l.call(h,e,t,s.state.context,s,a),yield null===(c=(d=s.options).onSuccess)||void 0===c?void 0:c.call(d,e,t,s.state.context,a),yield null===(v=(f=p(Fe,s).config).onSettled)||void 0===v?void 0:v.call(f,e,null,s.state.variables,s.state.context,s,a),yield null===(y=(m=s.options).onSettled)||void 0===y?void 0:y.call(m,e,null,t,s.state.context,a),r(Ae,s,Qe).call(s,{type:"success",data:e}),e}catch(R){try{var w,O;yield null===(w=(O=p(Fe,s).config).onError)||void 0===w?void 0:w.call(O,R,t,s.state.context,s,a)}catch(F){Promise.reject(F)}try{var M,S;yield null===(M=(S=s.options).onError)||void 0===M?void 0:M.call(S,R,t,s.state.context,a)}catch(F){Promise.reject(F)}try{var P,k;yield null===(P=(k=p(Fe,s).config).onSettled)||void 0===P?void 0:P.call(k,void 0,R,s.state.variables,s.state.context,s,a)}catch(F){Promise.reject(F)}try{var q,C;yield null===(q=(C=s.options).onSettled)||void 0===q?void 0:q.call(C,void 0,R,t,s.state.context,a)}catch(F){Promise.reject(F)}throw r(Ae,s,Qe).call(s,{type:"error",error:R}),R}finally{p(Fe,s).runNext(s)}})()}}});function Ie(t){var e;return null===(e=t.options.scope)||void 0===e?void 0:e.id}var Le,He,Ge,_e,Ne,Be,ze=t(()=>{Mt(),Ke(),nt(),W(),n(),f(),a(),l(),je=new WeakMap,Te=new WeakMap,Ue=new WeakMap,xe=class extends O{constructor(t={}){super(),s(this,je,void 0),s(this,Te,void 0),s(this,Ue,void 0),this.config=t,e(je,this,new Set),e(Te,this,new Map),e(Ue,this,0)}build(t,s,i){var n;const a=new Ee({client:t,mutationCache:this,mutationId:e(Ue,this,(n=p(Ue,this),++n)),options:t.defaultMutationOptions(s),state:i});return this.add(a),a}add(t){p(je,this).add(t);const e=Ie(t);if("string"==typeof e){const s=p(Te,this).get(e);s?s.push(t):p(Te,this).set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(p(je,this).delete(t)){const e=Ie(t);if("string"==typeof e){const s=p(Te,this).get(e);if(s)if(s.length>1){const e=s.indexOf(t);-1!==e&&s.splice(e,1)}else s[0]===t&&p(Te,this).delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=Ie(t);if("string"==typeof e){const s=p(Te,this).get(e),i=null==s?void 0:s.find(t=>"pending"===t.state.status);return!i||i===t}return!0}runNext(t){const e=Ie(t);if("string"==typeof e){var s,i;const n=null===(s=p(Te,this).get(e))||void 0===s?void 0:s.find(e=>e!==t&&e.state.isPaused);return null!==(i=null==n?void 0:n.continue())&&void 0!==i?i:Promise.resolve()}return Promise.resolve()}clear(){ft.batch(()=>{p(je,this).forEach(t=>{this.notify({type:"removed",mutation:t})}),p(je,this).clear(),p(Te,this).clear()})}getAll(){return Array.from(p(je,this))}find(t){const e=u({exact:!0},t);return this.getAll().find(t=>G(e,t))}findAll(t={}){return this.getAll().filter(e=>G(t,e))}notify(t){ft.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(t=>t.state.isPaused);return ft.batch(()=>Promise.all(t.map(t=>t.continue().catch(U))))}}});function $e(){var t,s;const i=null!==(t=null===(s=p(Ge,this))||void 0===s?void 0:s.state)&&void 0!==t?t:{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};e(He,this,u(u({},i),{},{isPending:"pending"===i.status,isSuccess:"success"===i.status,isError:"error"===i.status,isIdle:"idle"===i.status,mutate:this.mutate,reset:this.reset}))}function Je(t){ft.batch(()=>{if(p(_e,this)&&this.hasListeners()){const h=p(He,this).variables,c=p(He,this).context,d={client:p(Le,this),meta:this.options.meta,mutationKey:this.options.mutationKey};if("success"===(null==t?void 0:t.type)){try{var e,s;null===(e=(s=p(_e,this)).onSuccess)||void 0===e||e.call(s,t.data,h,c,d)}catch(l){Promise.reject(l)}try{var i,n;null===(i=(n=p(_e,this)).onSettled)||void 0===i||i.call(n,t.data,null,h,c,d)}catch(l){Promise.reject(l)}}else if("error"===(null==t?void 0:t.type)){try{var a,r;null===(a=(r=p(_e,this)).onError)||void 0===a||a.call(r,t.error,h,c,d)}catch(l){Promise.reject(l)}try{var o,u;null===(o=(u=p(_e,this)).onSettled)||void 0===o||o.call(u,void 0,t.error,h,c,d)}catch(l){Promise.reject(l)}}}this.listeners.forEach(t=>{t(p(He,this))})})}var Ve,Xe,Ye,Ze,ts,es,ss,is,ns,as,rs,os=t(()=>{Ke(),Mt(),W(),nt(),o(),n(),f(),i(),a(),l(),Le=new WeakMap,He=new WeakMap,Ge=new WeakMap,_e=new WeakMap,Ne=new WeakSet,Be=class extends O{constructor(t,i){super(),y(this,Ne),s(this,Le,void 0),s(this,He,void 0),s(this,Ge,void 0),s(this,_e,void 0),e(Le,this,t),this.setOptions(i),this.bindMethods(),r(Ne,this,$e).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var e;const s=this.options;this.options=p(Le,this).defaultMutationOptions(t),$(this.options,s)||p(Le,this).getMutationCache().notify({type:"observerOptionsUpdated",mutation:p(Ge,this),observer:this}),(null==s?void 0:s.mutationKey)&&this.options.mutationKey&&N(s.mutationKey)!==N(this.options.mutationKey)?this.reset():"pending"===(null===(e=p(Ge,this))||void 0===e?void 0:e.state.status)&&p(Ge,this).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(null===(t=p(Ge,this))||void 0===t||t.removeObserver(this))}onMutationUpdate(t){r(Ne,this,$e).call(this),r(Ne,this,Je).call(this,t)}getCurrentResult(){return p(He,this)}reset(){var t;null===(t=p(Ge,this))||void 0===t||t.removeObserver(this),e(Ge,this,void 0),r(Ne,this,$e).call(this),r(Ne,this,Je).call(this)}mutate(t,s){var i;return e(_e,this,s),null===(i=p(Ge,this))||void 0===i||i.removeObserver(this),e(Ge,this,p(Le,this).getMutationCache().build(p(Le,this),this.options)),p(Ge,this).addObserver(this),p(Ge,this).execute(t)}}}),us=t(()=>{nt(),ve(),Mt(),W(),n(),f(),a(),l(),Ve=new WeakMap,Xe=class extends O{constructor(t={}){super(),s(this,Ve,void 0),this.config=t,e(Ve,this,new Map)}build(t,e,s){var i;const n=e.queryKey,a=null!==(i=e.queryHash)&&void 0!==i?i:_(n,e);let r=this.get(a);return r||(r=new Gt({client:t,queryKey:n,queryHash:a,options:t.defaultQueryOptions(e),state:s,defaultOptions:t.getQueryDefaults(n)}),this.add(r)),r}add(t){p(Ve,this).has(t.queryHash)||(p(Ve,this).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=p(Ve,this).get(t.queryHash);e&&(t.destroy(),e===t&&p(Ve,this).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ft.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return p(Ve,this).get(t)}getAll(){return[...p(Ve,this).values()]}find(t){const e=u({exact:!0},t);return this.getAll().find(t=>H(e,t))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(e=>H(t,e)):e}notify(t){ft.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){ft.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ft.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}}}),ls=t(()=>{nt(),us(),ze(),A(),St(),Mt(),n(),f(),a(),c(),l(),Ye=new WeakMap,Ze=new WeakMap,ts=new WeakMap,es=new WeakMap,ss=new WeakMap,is=new WeakMap,ns=new WeakMap,as=new WeakMap,rs=class{constructor(t={}){s(this,Ye,void 0),s(this,Ze,void 0),s(this,ts,void 0),s(this,es,void 0),s(this,ss,void 0),s(this,is,void 0),s(this,ns,void 0),s(this,as,void 0),e(Ye,this,t.queryCache||new Xe),e(Ze,this,t.mutationCache||new xe),e(ts,this,t.defaultOptions||{}),e(es,this,new Map),e(ss,this,new Map),e(is,this,0)}mount(){var t,s,i,n=this;(e(is,this,(t=p(is,this),++t)),1===p(is,this))&&(e(ns,this,k.subscribe((s=d(function*(t){t&&(yield n.resumePausedMutations(),p(Ye,n).onFocus())}),function(t){return s.apply(this,arguments)}))),e(as,this,wt.subscribe((i=d(function*(t){t&&(yield n.resumePausedMutations(),p(Ye,n).onOnline())}),function(t){return i.apply(this,arguments)}))))}unmount(){var t,s,i;e(is,this,(t=p(is,this),--t)),0===p(is,this)&&(null===(s=p(ns,this))||void 0===s||s.call(this),e(ns,this,void 0),null===(i=p(as,this))||void 0===i||i.call(this),e(as,this,void 0))}isFetching(t){return p(Ye,this).findAll(u(u({},t),{},{fetchStatus:"fetching"})).length}isMutating(t){return p(Ze,this).findAll(u(u({},t),{},{status:"pending"})).length}getQueryData(t){var e;const s=this.defaultQueryOptions({queryKey:t});return null===(e=p(Ye,this).get(s.queryHash))||void 0===e?void 0:e.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),s=p(Ye,this).build(this,e),i=s.state.data;return void 0===i?this.fetchQuery(t):(t.revalidateIfStale&&s.isStaleByTime(I(e.staleTime,s))&&this.prefetchQuery(e),Promise.resolve(i))}getQueriesData(t){return p(Ye,this).findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,s){const i=this.defaultQueryOptions({queryKey:t}),n=p(Ye,this).get(i.queryHash),a=function(t,e){return"function"==typeof t?t(e):t}(e,null==n?void 0:n.state.data);if(void 0!==a)return p(Ye,this).build(this,i).setData(a,u(u({},s),{},{manual:!0}))}setQueriesData(t,e,s){return ft.batch(()=>p(Ye,this).findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,s)]))}getQueryState(t){var e;const s=this.defaultQueryOptions({queryKey:t});return null===(e=p(Ye,this).get(s.queryHash))||void 0===e?void 0:e.state}removeQueries(t){const e=p(Ye,this);ft.batch(()=>{e.findAll(t).forEach(t=>{e.remove(t)})})}resetQueries(t,e){const s=p(Ye,this);return ft.batch(()=>(s.findAll(t).forEach(t=>{t.reset()}),this.refetchQueries(u({type:"active"},t),e)))}cancelQueries(t,e={}){const s=u({revert:!0},e),i=ft.batch(()=>p(Ye,this).findAll(t).map(t=>t.cancel(s)));return Promise.all(i).then(U).catch(U)}invalidateQueries(t,e={}){return ft.batch(()=>{var s,i;return p(Ye,this).findAll(t).forEach(t=>{t.invalidate()}),"none"===(null==t?void 0:t.refetchType)?Promise.resolve():this.refetchQueries(u(u({},t),{},{type:null!==(s=null!==(i=null==t?void 0:t.refetchType)&&void 0!==i?i:null==t?void 0:t.type)&&void 0!==s?s:"active"}),e)})}refetchQueries(t,e={}){var s;const i=u(u({},e),{},{cancelRefetch:null===(s=e.cancelRefetch)||void 0===s||s}),n=ft.batch(()=>p(Ye,this).findAll(t).filter(t=>!t.isDisabled()&&!t.isStatic()).map(t=>{let e=t.fetch(void 0,i);return i.throwOnError||(e=e.catch(U)),"paused"===t.state.fetchStatus?Promise.resolve():e}));return Promise.all(n).then(U)}fetchQuery(t){const e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);const s=p(Ye,this).build(this,e);return s.isStaleByTime(I(e.staleTime,s))?s.fetch(e):Promise.resolve(s.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(U).catch(U)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(U).catch(U)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return wt.isOnline()?p(Ze,this).resumePausedMutations():Promise.resolve()}getQueryCache(){return p(Ye,this)}getMutationCache(){return p(Ze,this)}getDefaultOptions(){return p(ts,this)}setDefaultOptions(t){e(ts,this,t)}setQueryDefaults(t,e){p(es,this).set(N(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...p(es,this).values()],s={};return e.forEach(e=>{B(t,e.queryKey)&&Object.assign(s,e.defaultOptions)}),s}setMutationDefaults(t,e){p(ss,this).set(N(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...p(ss,this).values()],s={};return e.forEach(e=>{B(t,e.mutationKey)&&Object.assign(s,e.defaultOptions)}),s}defaultQueryOptions(t){if(t._defaulted)return t;const e=u(u(u(u({},p(ts,this).queries),this.getQueryDefaults(t.queryKey)),t),{},{_defaulted:!0});return e.queryHash||(e.queryHash=_(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.throwOnError&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===j&&(e.enabled=!1),e}defaultMutationOptions(t){return(null==t?void 0:t._defaulted)?t:u(u(u(u({},p(ts,this).mutations),(null==t?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey)),t),{},{_defaulted:!0})}clear(){p(Ye,this).clear(),p(Ze,this).clear()}}}),hs=t(()=>{}),cs=t(()=>{pt(),ze(),os(),Mt(),us(),ls(),De(),nt(),hs()});export{xe as a,ct as c,D as d,H as f,Be as i,dt as l,st as m,rs as n,de as o,B as p,Xe as r,ft as s,cs as t,N as u};
1
+ import{n as t}from"./rolldown-runtime-CHbrDDT0.js";import{C as e,D as s,E as i,O as n,S as a,T as r,b as o,d as u,f as l,i as h,m as c,p as d,r as v,w as f,x as p,y}from"./fecha-Dt-wbMrP.js";import{i as m,n as b,r as g,t as w}from"./extends-DY_KS8Q4.js";var O,M,S,P,k,q,C,R,F,W=t(()=>{O=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}}),A=t(()=>{W(),n(),f(),a(),M=new WeakMap,S=new WeakMap,P=new WeakMap,k=new class extends O{constructor(){super(),s(this,M,void 0),s(this,S,void 0),s(this,P,void 0),e(P,this,t=>{if("undefined"!=typeof window&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}})}onSubscribe(){p(S,this)||this.setEventListener(p(P,this))}onUnsubscribe(){var t;this.hasListeners()||(null===(t=p(S,this))||void 0===t||t.call(this),e(S,this,void 0))}setEventListener(t){var s;e(P,this,t),null===(s=p(S,this))||void 0===s||s.call(this),e(S,this,t(t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()}))}setFocused(t){p(M,this)!==t&&(e(M,this,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){var t;return"boolean"==typeof p(M,this)?p(M,this):"hidden"!==(null===(t=globalThis.document)||void 0===t?void 0:t.visibilityState)}}});function E(t){setTimeout(t,0)}var D,Q,j,T=t(()=>{n(),a(),f(),R={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},q=new WeakMap,C=new WeakMap,F=new class{constructor(){s(this,q,R),s(this,C,!1)}setTimeoutProvider(t){e(q,this,t)}setTimeout(t,e){return p(q,this).setTimeout(t,e)}clearTimeout(t){p(q,this).clearTimeout(t)}setInterval(t,e){return p(q,this).setInterval(t,e)}clearInterval(t){p(q,this).clearInterval(t)}}});function U(){}function x(t){return"number"==typeof t&&t>=0&&t!==1/0}function K(t,e){return Math.max(t+(e||0)-Date.now(),0)}function I(t,e){return"function"==typeof t?t(e):t}function L(t,e){return"function"==typeof t?t(e):t}function H(t,e){const{type:s="all",exact:i,fetchStatus:n,predicate:a,queryKey:r,stale:o}=t;if(r)if(i){if(e.queryHash!==_(r,e.options))return!1}else if(!B(e.queryKey,r))return!1;if("all"!==s){const t=e.isActive();if("active"===s&&!t)return!1;if("inactive"===s&&t)return!1}return("boolean"!=typeof o||e.isStale()===o)&&((!n||n===e.state.fetchStatus)&&!(a&&!a(e)))}function G(t,e){const{exact:s,status:i,predicate:n,mutationKey:a}=t;if(a){if(!e.options.mutationKey)return!1;if(s){if(N(e.options.mutationKey)!==N(a))return!1}else if(!B(e.options.mutationKey,a))return!1}return(!i||e.state.status===i)&&!(n&&!n(e))}function _(t,e){return((null==e?void 0:e.queryKeyHashFn)||N)(t)}function N(t){return JSON.stringify(t,(t,e)=>V(e)?Object.keys(e).sort().reduce((t,s)=>(t[s]=e[s],t),{}):e)}function B(t,e){return t===e||typeof t==typeof e&&(!(!t||!e||"object"!=typeof t||"object"!=typeof e)&&Object.keys(e).every(s=>B(t[s],e[s])))}function z(t,e,s=0){if(t===e)return t;if(s>500)return e;const i=J(t)&&J(e);if(!(i||V(t)&&V(e)))return e;const n=(i?t:Object.keys(t)).length,a=i?e:Object.keys(e),r=a.length,o=i?new Array(r):{};let u=0;for(let l=0;l<r;l++){const r=i?l:a[l],h=t[r],c=e[r];if(h===c){o[r]=h,(i?l<n:Q.call(t,r))&&u++;continue}if(null===h||null===c||"object"!=typeof h||"object"!=typeof c){o[r]=c;continue}const d=z(h,c,s+1);o[r]=d,d===h&&u++}return n===r&&u===n?t:o}function $(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const s in t)if(t[s]!==e[s])return!1;return!0}function J(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function V(t){if(!X(t))return!1;const e=t.constructor;if(void 0===e)return!0;const s=e.prototype;return!!X(s)&&(!!s.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(t)===Object.prototype)}function X(t){return"[object Object]"===Object.prototype.toString.call(t)}function Y(t,e,s){return"function"==typeof s.structuralSharing?s.structuralSharing(t,e):!1!==s.structuralSharing?z(t,e):e}function Z(t,e,s=0){const i=[...t,e];return s&&i.length>s?i.slice(1):i}function tt(t,e,s=0){const i=[e,...t];return s&&i.length>s?i.slice(0,-1):i}function et(t,e){return!t.queryFn&&(null==e?void 0:e.initialPromise)?()=>e.initialPromise:t.queryFn&&t.queryFn!==j?t.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`))}function st(t,e){return"function"==typeof t?t(...e):!!t}var it,nt=t(()=>{T(),D="undefined"==typeof window||"Deno"in globalThis,Q=Object.prototype.hasOwnProperty,j=Symbol()}),at=t(()=>{nt(),it=(()=>{let t=()=>D;return{isServer:()=>t(),setIsServer(e){t=e}}})()});function rt(){let t,e;const s=new Promise((s,i)=>{t=s,e=i});function i(t){Object.assign(s,t),delete s.resolve,delete s.reject}return s.status="pending",s.catch(()=>{}),s.resolve=e=>{i({status:"fulfilled",value:e}),t(e)},s.reject=t=>{i({status:"rejected",reason:t}),e(t)},s}var ot,ut,lt=t(()=>{nt()});function ht(t){return t}function ct(t){return"success"===t.state.status}function dt(t,e,s){var i,n,a,r;if("object"!=typeof e||null===e)return;const o=t.getMutationCache(),l=t.getQueryCache(),h=null!==(i=null!==(n=null==s||null===(a=s.defaultOptions)||void 0===a?void 0:a.deserializeData)&&void 0!==n?n:null===(r=t.getDefaultOptions().hydrate)||void 0===r?void 0:r.deserializeData)&&void 0!==i?i:ht,c=e.mutations||[],d=e.queries||[];c.forEach(e=>{var i,n;let{state:a}=e,r=v(e,ot);o.build(t,u(u(u({},null===(i=t.getDefaultOptions().hydrate)||void 0===i?void 0:i.mutations),null==s||null===(n=s.defaultOptions)||void 0===n?void 0:n.mutations),r),a)}),d.forEach(({queryKey:e,state:i,queryHash:n,meta:a,promise:r,dehydratedAt:o,queryType:c})=>{const d=r?function(t){var e;let s;if(null===(e=t.then(t=>(s=t,t),U))||void 0===e||e.catch(U),void 0!==s)return{data:s}}(r):void 0,f=void 0===i.data?null==d?void 0:d.data:i.data,p=void 0===f?f:h(f);let y=l.get(n);const m="pending"===(null==y?void 0:y.state.status),b="fetching"===(null==y?void 0:y.state.fetchStatus);if(y){const t=d&&void 0!==o&&o>y.state.dataUpdatedAt;if(i.dataUpdatedAt>y.state.dataUpdatedAt||t){const{fetchStatus:t}=i,e=v(i,ut);y.setState(u(u({},e),{},{data:p},"pending"===i.status&&void 0!==p&&u({status:"success"},!b&&{fetchStatus:"idle"})))}}else{var g,w;y=l.build(t,u(u(u({},null===(g=t.getDefaultOptions().hydrate)||void 0===g?void 0:g.queries),null==s||null===(w=s.defaultOptions)||void 0===w?void 0:w.queries),{},{queryKey:e,queryHash:n,meta:a,_type:c}),u(u({},i),{},{data:p,fetchStatus:"idle",status:"pending"===i.status&&void 0!==p?"success":i.status}))}!r||d||m||b||!(void 0===o||o>y.state.dataUpdatedAt)||y.fetch(void 0,{initialPromise:Promise.resolve(r).then(h)}).catch(U)})}var vt,ft,pt=t(()=>{lt(),nt(),l(),h(),ot=["state"],ut=["fetchStatus"]});function yt(){let t=[],e=0,s=t=>{t()},i=t=>{t()},n=vt;const a=i=>{e?t.push(i):n(()=>{s(i)})};return{batch:a=>{let r;e++;try{r=a()}finally{e--,e||(()=>{const e=t;t=[],e.length&&n(()=>{i(()=>{e.forEach(t=>{s(t)})})})})()}return r},batchCalls:t=>(...e)=>{a(()=>{t(...e)})},schedule:a,setNotifyFunction:t=>{s=t},setBatchNotifyFunction:t=>{i=t},setScheduler:t=>{n=t}}}var mt,bt,gt,wt,Ot,Mt=t(()=>{T(),vt=E,ft=yt()}),St=t(()=>{W(),n(),f(),a(),mt=new WeakMap,bt=new WeakMap,gt=new WeakMap,wt=new class extends O{constructor(){super(),s(this,mt,!0),s(this,bt,void 0),s(this,gt,void 0),e(gt,this,t=>{if("undefined"!=typeof window&&window.addEventListener){const e=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",s)}}})}onSubscribe(){p(bt,this)||this.setEventListener(p(gt,this))}onUnsubscribe(){var t;this.hasListeners()||(null===(t=p(bt,this))||void 0===t||t.call(this),e(bt,this,void 0))}setEventListener(t){var s;e(gt,this,t),null===(s=p(bt,this))||void 0===s||s.call(this),e(bt,this,t(this.setOnline.bind(this)))}setOnline(t){p(mt,this)!==t&&(e(mt,this,t),this.listeners.forEach(e=>{e(t)}))}isOnline(){return p(mt,this)}}});function Pt(t){return Math.min(1e3*Math.pow(2,t),3e4)}function kt(t){return"online"!==(null!=t?t:"online")||wt.isOnline()}function qt(t){let e,s=!1,i=0;const n=rt(),a=()=>"pending"!==n.status,r=()=>k.isFocused()&&("always"===t.networkMode||wt.isOnline())&&t.canRun(),o=()=>kt(t.networkMode)&&t.canRun(),u=t=>{a()||(null==e||e(),n.resolve(t))},l=t=>{a()||(null==e||e(),n.reject(t))},h=()=>new Promise(s=>{var i;e=t=>{(a()||r())&&s(t)},null===(i=t.onPause)||void 0===i||i.call(t)}).then(()=>{var s;(e=void 0,a())||(null===(s=t.onContinue)||void 0===s||s.call(t))}),c=()=>{if(a())return;let e;const n=0===i?t.initialPromise:void 0;try{e=null!=n?n:t.fn()}catch(o){e=Promise.reject(o)}Promise.resolve(e).then(u).catch(e=>{var n,o,u;if(a())return;const d=null!==(n=t.retry)&&void 0!==n?n:it.isServer()?0:3,v=null!==(o=t.retryDelay)&&void 0!==o?o:Pt,f="function"==typeof v?v(i,e):v,p=!0===d||"number"==typeof d&&i<d||"function"==typeof d&&d(i,e);var y;!s&&p?(i++,null===(u=t.onFail)||void 0===u||u.call(t,i,e),(y=f,new Promise(t=>{F.setTimeout(t,y)})).then(()=>r()?void 0:h()).then(()=>{s?l(e):c()})):l(e)})};return{promise:n,status:()=>n.status,cancel:e=>{if(!a()){var s;const i=new Ot(e);l(i),null===(s=t.onCancel)||void 0===s||s.call(t,i)}},continue:()=>(null==e||e(),n),cancelRetry:()=>{s=!0},continueRetry:()=>{s=!1},canStart:o,start:()=>(o()?c():h().then(c),n)}}var Ct,Rt,Ft=t(()=>{A(),St(),lt(),at(),nt(),Ot=class extends Error{constructor(t){super("CancelledError"),this.revert=null==t?void 0:t.revert,this.silent=null==t?void 0:t.silent}}}),Wt=t(()=>{T(),at(),nt(),n(),f(),a(),Ct=new WeakMap,Rt=class{constructor(){s(this,Ct,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),x(this.gcTime)&&e(Ct,this,F.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,null!=t?t:it.isServer()?1/0:3e5)}clearGcTimeout(){void 0!==p(Ct,this)&&(F.clearTimeout(p(Ct,this)),e(Ct,this,void 0))}}});function At(t){return{onFetch:(e,s)=>{var i,n,a;const r=e.options,o=null===(i=e.fetchOptions)||void 0===i||null===(i=i.meta)||void 0===i||null===(i=i.fetchMore)||void 0===i?void 0:i.direction,u=(null===(n=e.state.data)||void 0===n?void 0:n.pages)||[],l=(null===(a=e.state.data)||void 0===a?void 0:a.pageParams)||[];let h={pages:[],pageParams:[]},c=0;const v=(f=d(function*(){let s=!1;const i=t=>{!function(t,e,s){let i,n=!1;Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{var t;return null!==(t=i)&&void 0!==t||(i=e()),n||(n=!0,i.aborted?s():i.addEventListener("abort",s,{once:!0})),i}})}(t,()=>e.signal,()=>s=!0)},n=et(e.options,e.fetchOptions),a=(v=d(function*(t,a,r){if(s)return Promise.reject(e.signal.reason);if(null==a&&t.pages.length)return Promise.resolve(t);const o=yield n((()=>{const t={client:e.client,queryKey:e.queryKey,pageParam:a,direction:r?"backward":"forward",meta:e.options.meta};return i(t),t})()),{maxPages:u}=e.options,l=r?tt:Z;return{pages:l(t.pages,o,u),pageParams:l(t.pageParams,a,u)}}),function(t,e,s){return v.apply(this,arguments)});var v;if(o&&u.length){const t="backward"===o,e=t?Dt:Et,s={pages:u,pageParams:l};h=yield a(s,e(r,s),t)}else{const e=null!=t?t:u.length;do{var f;const t=0===c?null!==(f=l[0])&&void 0!==f?f:r.initialPageParam:Et(r,h);if(c>0&&null==t)break;h=yield a(h,t),c++}while(c<e)}return h}),function(){return f.apply(this,arguments)});var f;e.options.persister?e.fetchFn=()=>{var t,i;return null===(t=(i=e.options).persister)||void 0===t?void 0:t.call(i,v,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},s)}:e.fetchFn=v}}}function Et(t,{pages:e,pageParams:s}){const i=e.length-1;return e.length>0?t.getNextPageParam(e[i],e,s[i],s):void 0}function Dt(t,{pages:e,pageParams:s}){var i;return e.length>0?null===(i=t.getPreviousPageParam)||void 0===i?void 0:i.call(t,e[0],e,s[0],s):void 0}var Qt,jt,Tt,Ut,xt,Kt,It,Lt,Ht,Gt,_t=t(()=>{nt(),c()});function Nt(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}function Bt(t){this.state=(s=>{switch(t.type){case"failed":return u(u({},s),{},{fetchFailureCount:t.failureCount,fetchFailureReason:t.error});case"pause":return u(u({},s),{},{fetchStatus:"paused"});case"continue":return u(u({},s),{},{fetchStatus:"fetching"});case"fetch":var i;return u(u(u({},s),zt(s.data,this.options)),{},{fetchMeta:null!==(i=t.meta)&&void 0!==i?i:null});case"success":const n=u(u(u({},s),$t(t.data,t.dataUpdatedAt)),{},{dataUpdateCount:s.dataUpdateCount+1},!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});return e(Tt,this,t.manual?n:void 0),n;case"error":const a=t.error;return u(u({},s),{},{error:a,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0});case"invalidate":return u(u({},s),{},{isInvalidated:!0});case"setState":return u(u({},s),t.state)}})(this.state),ft.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate()}),p(Ut,this).notify({query:this,type:"updated",action:t})})}function zt(t,e){return u({fetchFailureCount:0,fetchFailureReason:null,fetchStatus:kt(e.networkMode)?"fetching":"paused"},void 0===t&&{error:null,status:"pending"})}function $t(t,e){return{data:t,dataUpdatedAt:null!=e?e:Date.now(),error:null,isInvalidated:!1,status:"success"}}function Jt(t){const e="function"==typeof t.initialData?t.initialData():t.initialData,s=void 0!==e,i=s?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:s?null!=i?i:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var Vt,Xt,Yt,Zt,te,ee,se,ie,ne,ae,re,oe,ue,le,he,ce,de,ve=t(()=>{nt(),Mt(),Ft(),Wt(),_t(),o(),n(),f(),a(),l(),i(),c(),Qt=new WeakMap,jt=new WeakMap,Tt=new WeakMap,Ut=new WeakMap,xt=new WeakMap,Kt=new WeakMap,It=new WeakMap,Lt=new WeakMap,Ht=new WeakSet,Gt=class extends Rt{constructor(t){var i;super(),y(this,Ht),s(this,Qt,void 0),s(this,jt,void 0),s(this,Tt,void 0),s(this,Ut,void 0),s(this,xt,void 0),s(this,Kt,void 0),s(this,It,void 0),s(this,Lt,void 0),e(Lt,this,!1),e(It,this,t.defaultOptions),this.setOptions(t.options),this.observers=[],e(xt,this,t.client),e(Ut,this,p(xt,this).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,e(jt,this,Jt(this.options)),this.state=null!==(i=t.state)&&void 0!==i?i:p(jt,this),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return p(Qt,this)}get promise(){var t;return null===(t=p(Kt,this))||void 0===t?void 0:t.promise}setOptions(t){if(this.options=u(u({},p(It,this)),t),(null==t?void 0:t._type)&&e(Qt,this,t._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const t=Jt(this.options);void 0!==t.data&&(this.setState($t(t.data,t.dataUpdatedAt)),e(jt,this,t))}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||p(Ut,this).remove(this)}setData(t,e){const s=Y(this.state.data,t,this.options);return r(Ht,this,Bt).call(this,{data:s,type:"success",dataUpdatedAt:null==e?void 0:e.updatedAt,manual:null==e?void 0:e.manual}),s}setState(t){r(Ht,this,Bt).call(this,{type:"setState",state:t})}cancel(t){var e,s;const i=null===(e=p(Kt,this))||void 0===e?void 0:e.promise;return null===(s=p(Kt,this))||void 0===s||s.cancel(t),i?i.then(U).catch(U):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return p(jt,this)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>!1!==L(t.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===j||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(t=>"static"===I(t.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(t=0){return void 0===this.state.data||"static"!==t&&(!!this.state.isInvalidated||!K(this.state.dataUpdatedAt,t))}onFocus(){var t;const e=this.observers.find(t=>t.shouldFetchOnWindowFocus());null==e||e.refetch({cancelRefetch:!1}),null===(t=p(Kt,this))||void 0===t||t.continue()}onOnline(){var t;const e=this.observers.find(t=>t.shouldFetchOnReconnect());null==e||e.refetch({cancelRefetch:!1}),null===(t=p(Kt,this))||void 0===t||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),p(Ut,this).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(p(Kt,this)&&(p(Lt,this)||r(Ht,this,Nt).call(this)?p(Kt,this).cancel({revert:!0}):p(Kt,this).cancelRetry()),this.scheduleGc()),p(Ut,this).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||r(Ht,this,Bt).call(this,{type:"invalidate"})}fetch(t,s){var i=this;return d(function*(){var n,a;if("idle"!==i.state.fetchStatus&&"rejected"!==(null===(n=p(Kt,i))||void 0===n?void 0:n.status()))if(void 0!==i.state.data&&(null==s?void 0:s.cancelRefetch))i.cancel({silent:!0});else if(p(Kt,i))return p(Kt,i).continueRetry(),p(Kt,i).promise;if(t&&i.setOptions(t),!i.options.queryFn){const t=i.observers.find(t=>t.options.queryFn);t&&i.setOptions(t.options)}const o=new AbortController,l=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(e(Lt,i,!0),o.signal)})},h=()=>{const t=et(i.options,s),n=(()=>{const t={client:p(xt,i),queryKey:i.queryKey,meta:i.meta};return l(t),t})();return e(Lt,i,!1),i.options.persister?i.options.persister(t,n,i):t(n)},c=(()=>{const t={fetchOptions:s,options:i.options,queryKey:i.queryKey,client:p(xt,i),state:i.state,fetchFn:h};return l(t),t})(),d="infinite"===p(Qt,i)?At(i.options.pages):i.options.behavior;var v;(null==d||d.onFetch(c,i),e(Tt,i,i.state),"idle"===i.state.fetchStatus||i.state.fetchMeta!==(null===(a=c.fetchOptions)||void 0===a?void 0:a.meta))&&r(Ht,i,Bt).call(i,{type:"fetch",meta:null===(v=c.fetchOptions)||void 0===v?void 0:v.meta});e(Kt,i,qt({initialPromise:null==s?void 0:s.initialPromise,fn:c.fetchFn,onCancel:t=>{t instanceof Ot&&t.revert&&i.setState(u(u({},p(Tt,i)),{},{fetchStatus:"idle"})),o.abort()},onFail:(t,e)=>{r(Ht,i,Bt).call(i,{type:"failed",failureCount:t,error:e})},onPause:()=>{r(Ht,i,Bt).call(i,{type:"pause"})},onContinue:()=>{r(Ht,i,Bt).call(i,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{var f,y,m,b;const t=yield p(Kt,i).start();if(void 0===t)throw new Error(`${i.queryHash} data is undefined`);return i.setData(t),null===(f=(y=p(Ut,i).config).onSuccess)||void 0===f||f.call(y,t,i),null===(m=(b=p(Ut,i).config).onSettled)||void 0===m||m.call(b,t,i.state.error,i),t}catch(S){var g,w,O,M;if(S instanceof Ot){if(S.silent)return p(Kt,i).promise;if(S.revert){if(void 0===i.state.data)throw S;return i.state.data}}throw r(Ht,i,Bt).call(i,{type:"error",error:S}),null===(g=(w=p(Ut,i).config).onError)||void 0===g||g.call(w,S,i),null===(O=(M=p(Ut,i).config).onSettled)||void 0===O||O.call(M,i.state.data,S,i),S}finally{i.scheduleGc()}})()}}});function fe(t){r(ce,this,Oe).call(this);let e=p(Xt,this).fetch(this.options,t);return(null==t?void 0:t.throwOnError)||(e=e.catch(U)),e}function pe(){r(ce,this,ge).call(this);const t=I(this.options.staleTime,p(Xt,this));if(it.isServer()||p(Zt,this).isStale||!x(t))return;const s=K(p(Zt,this).dataUpdatedAt,t)+1;e(oe,this,F.setTimeout(()=>{p(Zt,this).isStale||this.updateResult()},s))}function ye(){var t;return null!==(t="function"==typeof this.options.refetchInterval?this.options.refetchInterval(p(Xt,this)):this.options.refetchInterval)&&void 0!==t&&t}function me(t){r(ce,this,we).call(this),e(le,this,t),!it.isServer()&&!1!==L(this.options.enabled,p(Xt,this))&&x(p(le,this))&&0!==p(le,this)&&e(ue,this,F.setInterval(()=>{(this.options.refetchIntervalInBackground||k.isFocused())&&r(ce,this,fe).call(this)},p(le,this)))}function be(){r(ce,this,pe).call(this),r(ce,this,me).call(this,r(ce,this,ye).call(this))}function ge(){void 0!==p(oe,this)&&(F.clearTimeout(p(oe,this)),e(oe,this,void 0))}function we(){void 0!==p(ue,this)&&(F.clearInterval(p(ue,this)),e(ue,this,void 0))}function Oe(){const t=p(Vt,this).getQueryCache().build(p(Vt,this),this.options);if(t===p(Xt,this))return;const s=p(Xt,this);e(Xt,this,t),e(Yt,this,t.state),this.hasListeners()&&(null==s||s.removeObserver(this),t.addObserver(this))}function Me(t){ft.batch(()=>{t.listeners&&this.listeners.forEach(t=>{t(p(Zt,this))}),p(Vt,this).getQueryCache().notify({query:p(Xt,this),type:"observerResultsUpdated"})})}function Se(t,e){return function(t,e){return!1!==L(e.enabled,t)&&void 0===t.state.data&&!("error"===t.state.status&&!1===L(e.retryOnMount,t))}(t,e)||void 0!==t.state.data&&Pe(t,e,e.refetchOnMount)}function Pe(t,e,s){if(!1!==L(e.enabled,t)&&"static"!==I(e.staleTime,t)){const i="function"==typeof s?s(t):s;return"always"===i||!1!==i&&qe(t,e)}return!1}function ke(t,e,s,i){return(t!==e||!1===L(i.enabled,t))&&(!s.suspense||"error"!==t.state.status)&&qe(t,s)}function qe(t,e){return!1!==L(e.enabled,t)&&t.isStaleByTime(I(e.staleTime,t))}var Ce,Re,Fe,We,Ae,Ee,De=t(()=>{A(),at(),Mt(),ve(),W(),lt(),nt(),T(),o(),n(),f(),a(),i(),m(),b(),l(),Vt=new WeakMap,Xt=new WeakMap,Yt=new WeakMap,Zt=new WeakMap,te=new WeakMap,ee=new WeakMap,se=new WeakMap,ie=new WeakMap,ne=new WeakMap,ae=new WeakMap,re=new WeakMap,oe=new WeakMap,ue=new WeakMap,le=new WeakMap,he=new WeakMap,ce=new WeakSet,de=class extends O{constructor(t,i){super(),y(this,ce),s(this,Vt,void 0),s(this,Xt,void 0),s(this,Yt,void 0),s(this,Zt,void 0),s(this,te,void 0),s(this,ee,void 0),s(this,se,void 0),s(this,ie,void 0),s(this,ne,void 0),s(this,ae,void 0),s(this,re,void 0),s(this,oe,void 0),s(this,ue,void 0),s(this,le,void 0),s(this,he,new Set),this.options=i,e(Vt,this,t),e(ie,this,null),e(se,this,rt()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(p(Xt,this).addObserver(this),Se(p(Xt,this),this.options)?r(ce,this,fe).call(this):this.updateResult(),r(ce,this,be).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Pe(p(Xt,this),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Pe(p(Xt,this),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,r(ce,this,ge).call(this),r(ce,this,we).call(this),p(Xt,this).removeObserver(this)}setOptions(t){const e=this.options,s=p(Xt,this);if(this.options=p(Vt,this).defaultQueryOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof L(this.options.enabled,p(Xt,this)))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");r(ce,this,Oe).call(this),p(Xt,this).setOptions(this.options),e._defaulted&&!$(this.options,e)&&p(Vt,this).getQueryCache().notify({type:"observerOptionsUpdated",query:p(Xt,this),observer:this});const i=this.hasListeners();i&&ke(p(Xt,this),s,this.options,e)&&r(ce,this,fe).call(this),this.updateResult(),!i||p(Xt,this)===s&&L(this.options.enabled,p(Xt,this))===L(e.enabled,p(Xt,this))&&I(this.options.staleTime,p(Xt,this))===I(e.staleTime,p(Xt,this))||r(ce,this,pe).call(this);const n=r(ce,this,ye).call(this);!i||p(Xt,this)===s&&L(this.options.enabled,p(Xt,this))===L(e.enabled,p(Xt,this))&&n===p(le,this)||r(ce,this,me).call(this,n)}getOptimisticResult(t){const s=p(Vt,this).getQueryCache().build(p(Vt,this),t),i=this.createResult(s,t);var n;return n=i,$(this.getCurrentResult(),n)||(e(Zt,this,i),e(ee,this,this.options),e(te,this,p(Xt,this).state)),i}getCurrentResult(){return p(Zt,this)}trackResult(t,e){return new Proxy(t,{get:(t,s)=>(this.trackProp(s),null==e||e(s),"promise"===s&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==p(se,this).status||p(se,this).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(t,s))})}trackProp(t){p(he,this).add(t)}getCurrentQuery(){return p(Xt,this)}refetch(t={}){let e=w({},(g(t),t));return this.fetch(u({},e))}fetchOptimistic(t){const e=p(Vt,this).defaultQueryOptions(t),s=p(Vt,this).getQueryCache().build(p(Vt,this),e);return s.fetch().then(()=>this.createResult(s,e))}fetch(t){var e;return r(ce,this,fe).call(this,u(u({},t),{},{cancelRefetch:null===(e=t.cancelRefetch)||void 0===e||e})).then(()=>(this.updateResult(),p(Zt,this)))}createResult(t,s){const i=p(Xt,this),n=this.options,a=p(Zt,this),r=p(te,this),o=p(ee,this),l=t!==i?t.state:p(Yt,this),{state:h}=t;let c,d=u({},h),v=!1;if(s._optimisticResults){const e=this.hasListeners(),a=!e&&Se(t,s),r=e&&ke(t,i,s,n);(a||r)&&(d=u(u({},d),zt(h.data,t.options))),"isRestoring"===s._optimisticResults&&(d.fetchStatus="idle")}let{error:f,errorUpdatedAt:y,status:m}=d;c=d.data;let b=!1;if(void 0!==s.placeholderData&&void 0===c&&"pending"===m){let t;var g;if((null==a?void 0:a.isPlaceholderData)&&s.placeholderData===(null==o?void 0:o.placeholderData))t=a.data,b=!0;else t="function"==typeof s.placeholderData?s.placeholderData(null===(g=p(re,this))||void 0===g?void 0:g.state.data,p(re,this)):s.placeholderData;void 0!==t&&(m="success",c=Y(null==a?void 0:a.data,t,s),v=!0)}if(s.select&&void 0!==c&&!b)if(a&&c===(null==r?void 0:r.data)&&s.select===p(ne,this))c=p(ae,this);else try{e(ne,this,s.select),c=s.select(c),c=Y(null==a?void 0:a.data,c,s),e(ae,this,c),e(ie,this,null)}catch(q){e(ie,this,q)}p(ie,this)&&(f=p(ie,this),c=p(ae,this),y=Date.now(),m="error");const w="fetching"===d.fetchStatus,O="pending"===m,M="error"===m,S=O&&w,P=void 0!==c,k={status:m,fetchStatus:d.fetchStatus,isPending:O,isSuccess:"success"===m,isError:M,isInitialLoading:S,isLoading:S,data:c,dataUpdatedAt:d.dataUpdatedAt,error:f,errorUpdatedAt:y,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:w,isRefetching:w&&!O,isLoadingError:M&&!P,isPaused:"paused"===d.fetchStatus,isPlaceholderData:v,isRefetchError:M&&P,isStale:qe(t,s),refetch:this.refetch,promise:p(se,this),isEnabled:!1!==L(s.enabled,t)};if(this.options.experimental_prefetchInRender){const s=void 0!==k.data,n="error"===k.status&&!s,a=t=>{n?t.reject(k.error):s&&t.resolve(k.data)},r=()=>{a(e(se,this,k.promise=rt()))},o=p(se,this);switch(o.status){case"pending":t.queryHash===i.queryHash&&a(o);break;case"fulfilled":(n||k.data!==o.value)&&r();break;case"rejected":n&&k.error===o.reason||r()}}return k}updateResult(){const t=p(Zt,this),s=this.createResult(p(Xt,this),this.options);if(e(te,this,p(Xt,this).state),e(ee,this,this.options),void 0!==p(te,this).data&&e(re,this,p(Xt,this)),$(s,t))return;e(Zt,this,s);r(ce,this,Me).call(this,{listeners:(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,s="function"==typeof e?e():e;if("all"===s||!s&&!p(he,this).size)return!0;const i=new Set(null!=s?s:p(he,this));return this.options.throwOnError&&i.add("error"),Object.keys(p(Zt,this)).some(e=>{const s=e;return p(Zt,this)[s]!==t[s]&&i.has(s)})})()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&r(ce,this,be).call(this)}}});function Qe(t){this.state=(e=>{switch(t.type){case"failed":return u(u({},e),{},{failureCount:t.failureCount,failureReason:t.error});case"pause":return u(u({},e),{},{isPaused:!0});case"continue":return u(u({},e),{},{isPaused:!1});case"pending":return u(u({},e),{},{context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()});case"success":return u(u({},e),{},{data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return u(u({},e),{},{data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"})}})(this.state),ft.batch(()=>{p(Re,this).forEach(e=>{e.onMutationUpdate(t)}),p(Fe,this).notify({mutation:this,type:"updated",action:t})})}var je,Te,Ue,xe,Ke=t(()=>{Mt(),Wt(),Ft(),o(),n(),f(),a(),i(),c(),l(),Ce=new WeakMap,Re=new WeakMap,Fe=new WeakMap,We=new WeakMap,Ae=new WeakSet,Ee=class extends Rt{constructor(t){super(),y(this,Ae),s(this,Ce,void 0),s(this,Re,void 0),s(this,Fe,void 0),s(this,We,void 0),e(Ce,this,t.client),this.mutationId=t.mutationId,e(Fe,this,t.mutationCache),e(Re,this,[]),this.state=t.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){p(Re,this).includes(t)||(p(Re,this).push(t),this.clearGcTimeout(),p(Fe,this).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){e(Re,this,p(Re,this).filter(e=>e!==t)),this.scheduleGc(),p(Fe,this).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){p(Re,this).length||("pending"===this.state.status?this.scheduleGc():p(Fe,this).remove(this))}continue(){var t,e;return null!==(t=null===(e=p(We,this))||void 0===e?void 0:e.continue())&&void 0!==t?t:this.execute(this.state.variables)}execute(t){var s=this;return d(function*(){var i;const n=()=>{r(Ae,s,Qe).call(s,{type:"continue"})},a={client:p(Ce,s),meta:s.options.meta,mutationKey:s.options.mutationKey};e(We,s,qt({fn:()=>s.options.mutationFn?s.options.mutationFn(t,a):Promise.reject(new Error("No mutationFn found")),onFail:(t,e)=>{r(Ae,s,Qe).call(s,{type:"failed",failureCount:t,error:e})},onPause:()=>{r(Ae,s,Qe).call(s,{type:"pause"})},onContinue:n,retry:null!==(i=s.options.retry)&&void 0!==i?i:0,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>p(Fe,s).canRun(s)}));const o="pending"===s.state.status,u=!p(We,s).canStart();try{var l,h,c,d,v,f,y,m;if(o)n();else{var b,g;r(Ae,s,Qe).call(s,{type:"pending",variables:t,isPaused:u}),p(Fe,s).config.onMutate&&(yield p(Fe,s).config.onMutate(t,s,a));const e=yield null===(b=(g=s.options).onMutate)||void 0===b?void 0:b.call(g,t,a);e!==s.state.context&&r(Ae,s,Qe).call(s,{type:"pending",context:e,variables:t,isPaused:u})}const e=yield p(We,s).start();return yield null===(l=(h=p(Fe,s).config).onSuccess)||void 0===l?void 0:l.call(h,e,t,s.state.context,s,a),yield null===(c=(d=s.options).onSuccess)||void 0===c?void 0:c.call(d,e,t,s.state.context,a),yield null===(v=(f=p(Fe,s).config).onSettled)||void 0===v?void 0:v.call(f,e,null,s.state.variables,s.state.context,s,a),yield null===(y=(m=s.options).onSettled)||void 0===y?void 0:y.call(m,e,null,t,s.state.context,a),r(Ae,s,Qe).call(s,{type:"success",data:e}),e}catch(R){try{var w,O;yield null===(w=(O=p(Fe,s).config).onError)||void 0===w?void 0:w.call(O,R,t,s.state.context,s,a)}catch(F){Promise.reject(F)}try{var M,S;yield null===(M=(S=s.options).onError)||void 0===M?void 0:M.call(S,R,t,s.state.context,a)}catch(F){Promise.reject(F)}try{var P,k;yield null===(P=(k=p(Fe,s).config).onSettled)||void 0===P?void 0:P.call(k,void 0,R,s.state.variables,s.state.context,s,a)}catch(F){Promise.reject(F)}try{var q,C;yield null===(q=(C=s.options).onSettled)||void 0===q?void 0:q.call(C,void 0,R,t,s.state.context,a)}catch(F){Promise.reject(F)}throw r(Ae,s,Qe).call(s,{type:"error",error:R}),R}finally{p(Fe,s).runNext(s)}})()}}});function Ie(t){var e;return null===(e=t.options.scope)||void 0===e?void 0:e.id}var Le,He,Ge,_e,Ne,Be,ze=t(()=>{Mt(),Ke(),nt(),W(),n(),f(),a(),l(),je=new WeakMap,Te=new WeakMap,Ue=new WeakMap,xe=class extends O{constructor(t={}){super(),s(this,je,void 0),s(this,Te,void 0),s(this,Ue,void 0),this.config=t,e(je,this,new Set),e(Te,this,new Map),e(Ue,this,0)}build(t,s,i){var n;const a=new Ee({client:t,mutationCache:this,mutationId:e(Ue,this,(n=p(Ue,this),++n)),options:t.defaultMutationOptions(s),state:i});return this.add(a),a}add(t){p(je,this).add(t);const e=Ie(t);if("string"==typeof e){const s=p(Te,this).get(e);s?s.push(t):p(Te,this).set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(p(je,this).delete(t)){const e=Ie(t);if("string"==typeof e){const s=p(Te,this).get(e);if(s)if(s.length>1){const e=s.indexOf(t);-1!==e&&s.splice(e,1)}else s[0]===t&&p(Te,this).delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=Ie(t);if("string"==typeof e){const s=p(Te,this).get(e),i=null==s?void 0:s.find(t=>"pending"===t.state.status);return!i||i===t}return!0}runNext(t){const e=Ie(t);if("string"==typeof e){var s,i;const n=null===(s=p(Te,this).get(e))||void 0===s?void 0:s.find(e=>e!==t&&e.state.isPaused);return null!==(i=null==n?void 0:n.continue())&&void 0!==i?i:Promise.resolve()}return Promise.resolve()}clear(){ft.batch(()=>{p(je,this).forEach(t=>{this.notify({type:"removed",mutation:t})}),p(je,this).clear(),p(Te,this).clear()})}getAll(){return Array.from(p(je,this))}find(t){const e=u({exact:!0},t);return this.getAll().find(t=>G(e,t))}findAll(t={}){return this.getAll().filter(e=>G(t,e))}notify(t){ft.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(t=>t.state.isPaused);return ft.batch(()=>Promise.all(t.map(t=>t.continue().catch(U))))}}});function $e(){var t,s;const i=null!==(t=null===(s=p(Ge,this))||void 0===s?void 0:s.state)&&void 0!==t?t:{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};e(He,this,u(u({},i),{},{isPending:"pending"===i.status,isSuccess:"success"===i.status,isError:"error"===i.status,isIdle:"idle"===i.status,mutate:this.mutate,reset:this.reset}))}function Je(t){ft.batch(()=>{if(p(_e,this)&&this.hasListeners()){const h=p(He,this).variables,c=p(He,this).context,d={client:p(Le,this),meta:this.options.meta,mutationKey:this.options.mutationKey};if("success"===(null==t?void 0:t.type)){try{var e,s;null===(e=(s=p(_e,this)).onSuccess)||void 0===e||e.call(s,t.data,h,c,d)}catch(l){Promise.reject(l)}try{var i,n;null===(i=(n=p(_e,this)).onSettled)||void 0===i||i.call(n,t.data,null,h,c,d)}catch(l){Promise.reject(l)}}else if("error"===(null==t?void 0:t.type)){try{var a,r;null===(a=(r=p(_e,this)).onError)||void 0===a||a.call(r,t.error,h,c,d)}catch(l){Promise.reject(l)}try{var o,u;null===(o=(u=p(_e,this)).onSettled)||void 0===o||o.call(u,void 0,t.error,h,c,d)}catch(l){Promise.reject(l)}}}this.listeners.forEach(t=>{t(p(He,this))})})}var Ve,Xe,Ye,Ze,ts,es,ss,is,ns,as,rs,os=t(()=>{Ke(),Mt(),W(),nt(),o(),n(),f(),i(),a(),l(),Le=new WeakMap,He=new WeakMap,Ge=new WeakMap,_e=new WeakMap,Ne=new WeakSet,Be=class extends O{constructor(t,i){super(),y(this,Ne),s(this,Le,void 0),s(this,He,void 0),s(this,Ge,void 0),s(this,_e,void 0),e(Le,this,t),this.setOptions(i),this.bindMethods(),r(Ne,this,$e).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var e;const s=this.options;this.options=p(Le,this).defaultMutationOptions(t),$(this.options,s)||p(Le,this).getMutationCache().notify({type:"observerOptionsUpdated",mutation:p(Ge,this),observer:this}),(null==s?void 0:s.mutationKey)&&this.options.mutationKey&&N(s.mutationKey)!==N(this.options.mutationKey)?this.reset():"pending"===(null===(e=p(Ge,this))||void 0===e?void 0:e.state.status)&&p(Ge,this).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(null===(t=p(Ge,this))||void 0===t||t.removeObserver(this))}onMutationUpdate(t){r(Ne,this,$e).call(this),r(Ne,this,Je).call(this,t)}getCurrentResult(){return p(He,this)}reset(){var t;null===(t=p(Ge,this))||void 0===t||t.removeObserver(this),e(Ge,this,void 0),r(Ne,this,$e).call(this),r(Ne,this,Je).call(this)}mutate(t,s){var i;return e(_e,this,s),null===(i=p(Ge,this))||void 0===i||i.removeObserver(this),e(Ge,this,p(Le,this).getMutationCache().build(p(Le,this),this.options)),p(Ge,this).addObserver(this),p(Ge,this).execute(t)}}}),us=t(()=>{nt(),ve(),Mt(),W(),n(),f(),a(),l(),Ve=new WeakMap,Xe=class extends O{constructor(t={}){super(),s(this,Ve,void 0),this.config=t,e(Ve,this,new Map)}build(t,e,s){var i;const n=e.queryKey,a=null!==(i=e.queryHash)&&void 0!==i?i:_(n,e);let r=this.get(a);return r||(r=new Gt({client:t,queryKey:n,queryHash:a,options:t.defaultQueryOptions(e),state:s,defaultOptions:t.getQueryDefaults(n)}),this.add(r)),r}add(t){p(Ve,this).has(t.queryHash)||(p(Ve,this).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=p(Ve,this).get(t.queryHash);e&&(t.destroy(),e===t&&p(Ve,this).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ft.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return p(Ve,this).get(t)}getAll(){return[...p(Ve,this).values()]}find(t){const e=u({exact:!0},t);return this.getAll().find(t=>H(e,t))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(e=>H(t,e)):e}notify(t){ft.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){ft.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ft.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}}}),ls=t(()=>{nt(),us(),ze(),A(),St(),Mt(),n(),f(),a(),c(),l(),Ye=new WeakMap,Ze=new WeakMap,ts=new WeakMap,es=new WeakMap,ss=new WeakMap,is=new WeakMap,ns=new WeakMap,as=new WeakMap,rs=class{constructor(t={}){s(this,Ye,void 0),s(this,Ze,void 0),s(this,ts,void 0),s(this,es,void 0),s(this,ss,void 0),s(this,is,void 0),s(this,ns,void 0),s(this,as,void 0),e(Ye,this,t.queryCache||new Xe),e(Ze,this,t.mutationCache||new xe),e(ts,this,t.defaultOptions||{}),e(es,this,new Map),e(ss,this,new Map),e(is,this,0)}mount(){var t,s,i,n=this;(e(is,this,(t=p(is,this),++t)),1===p(is,this))&&(e(ns,this,k.subscribe((s=d(function*(t){t&&(yield n.resumePausedMutations(),p(Ye,n).onFocus())}),function(t){return s.apply(this,arguments)}))),e(as,this,wt.subscribe((i=d(function*(t){t&&(yield n.resumePausedMutations(),p(Ye,n).onOnline())}),function(t){return i.apply(this,arguments)}))))}unmount(){var t,s,i;e(is,this,(t=p(is,this),--t)),0===p(is,this)&&(null===(s=p(ns,this))||void 0===s||s.call(this),e(ns,this,void 0),null===(i=p(as,this))||void 0===i||i.call(this),e(as,this,void 0))}isFetching(t){return p(Ye,this).findAll(u(u({},t),{},{fetchStatus:"fetching"})).length}isMutating(t){return p(Ze,this).findAll(u(u({},t),{},{status:"pending"})).length}getQueryData(t){var e;const s=this.defaultQueryOptions({queryKey:t});return null===(e=p(Ye,this).get(s.queryHash))||void 0===e?void 0:e.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),s=p(Ye,this).build(this,e),i=s.state.data;return void 0===i?this.fetchQuery(t):(t.revalidateIfStale&&s.isStaleByTime(I(e.staleTime,s))&&this.prefetchQuery(e),Promise.resolve(i))}getQueriesData(t){return p(Ye,this).findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,s){const i=this.defaultQueryOptions({queryKey:t}),n=p(Ye,this).get(i.queryHash),a=function(t,e){return"function"==typeof t?t(e):t}(e,null==n?void 0:n.state.data);if(void 0!==a)return p(Ye,this).build(this,i).setData(a,u(u({},s),{},{manual:!0}))}setQueriesData(t,e,s){return ft.batch(()=>p(Ye,this).findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,s)]))}getQueryState(t){var e;const s=this.defaultQueryOptions({queryKey:t});return null===(e=p(Ye,this).get(s.queryHash))||void 0===e?void 0:e.state}removeQueries(t){const e=p(Ye,this);ft.batch(()=>{e.findAll(t).forEach(t=>{e.remove(t)})})}resetQueries(t,e){const s=p(Ye,this);return ft.batch(()=>(s.findAll(t).forEach(t=>{t.reset()}),this.refetchQueries(u({type:"active"},t),e)))}cancelQueries(t,e={}){const s=u({revert:!0},e),i=ft.batch(()=>p(Ye,this).findAll(t).map(t=>t.cancel(s)));return Promise.all(i).then(U).catch(U)}invalidateQueries(t,e={}){return ft.batch(()=>{var s,i;return p(Ye,this).findAll(t).forEach(t=>{t.invalidate()}),"none"===(null==t?void 0:t.refetchType)?Promise.resolve():this.refetchQueries(u(u({},t),{},{type:null!==(s=null!==(i=null==t?void 0:t.refetchType)&&void 0!==i?i:null==t?void 0:t.type)&&void 0!==s?s:"active"}),e)})}refetchQueries(t,e={}){var s;const i=u(u({},e),{},{cancelRefetch:null===(s=e.cancelRefetch)||void 0===s||s}),n=ft.batch(()=>p(Ye,this).findAll(t).filter(t=>!t.isDisabled()&&!t.isStatic()).map(t=>{let e=t.fetch(void 0,i);return i.throwOnError||(e=e.catch(U)),"paused"===t.state.fetchStatus?Promise.resolve():e}));return Promise.all(n).then(U)}fetchQuery(t){const e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);const s=p(Ye,this).build(this,e);return s.isStaleByTime(I(e.staleTime,s))?s.fetch(e):Promise.resolve(s.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(U).catch(U)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(U).catch(U)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return wt.isOnline()?p(Ze,this).resumePausedMutations():Promise.resolve()}getQueryCache(){return p(Ye,this)}getMutationCache(){return p(Ze,this)}getDefaultOptions(){return p(ts,this)}setDefaultOptions(t){e(ts,this,t)}setQueryDefaults(t,e){p(es,this).set(N(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...p(es,this).values()],s={};return e.forEach(e=>{B(t,e.queryKey)&&Object.assign(s,e.defaultOptions)}),s}setMutationDefaults(t,e){p(ss,this).set(N(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...p(ss,this).values()],s={};return e.forEach(e=>{B(t,e.mutationKey)&&Object.assign(s,e.defaultOptions)}),s}defaultQueryOptions(t){if(t._defaulted)return t;const e=u(u(u(u({},p(ts,this).queries),this.getQueryDefaults(t.queryKey)),t),{},{_defaulted:!0});return e.queryHash||(e.queryHash=_(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.throwOnError&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===j&&(e.enabled=!1),e}defaultMutationOptions(t){return(null==t?void 0:t._defaulted)?t:u(u(u(u({},p(ts,this).mutations),(null==t?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey)),t),{},{_defaulted:!0})}clear(){p(Ye,this).clear(),p(Ze,this).clear()}}}),hs=t(()=>{}),cs=t(()=>{pt(),ze(),os(),Mt(),us(),ls(),De(),nt(),hs()});export{xe as a,ct as c,D as d,H as f,Be as i,dt as l,st as m,rs as n,de as o,B as p,Xe as r,ft as s,cs as t,N as u};
@@ -1 +1 @@
1
- import{n as e}from"./rolldown-runtime-CHbrDDT0.js";import{T as t,c as r,h as n,y as a}from"./vue-Dl-yK_yx.js";import{A as o,d as s,k as u,p as i}from"./vue-Bfl7vS_c.js";import{n as l}from"./vue-CHj8oCvV.js";import{d as f,f as p}from"./fecha-DKYcT2kV.js";import{i as c,n as m}from"./tanstack-table-DWHj4lH8.js";function d(){return!0}function g(e){return"value"in e?e.value:e}function y(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new Proxy({get(e){for(let r=t.length-1;r>=0;r--){const n=g(t[r])[e];if(void 0!==n)return n}},has(e){for(let r=t.length-1;r>=0;r--)if(e in g(t[r]))return!0;return!1},keys(){const e=[];for(let r=0;r<t.length;r++)e.push(...Object.keys(g(t[r])));return[...Array.from(new Set(e))]}},S)}function h(e){return y(e,{data:t(e.data)})}function v(e){const t=r(e.data),s=m(y({state:{},onStateChange:()=>{},renderFallbackValue:null,mergeOptions:(e,r)=>t?f(f({},e),r):y(e,r)},t?h(e):e));if(t){const t=a(e.data);u(t,()=>{s.setState(e=>f(f({},e),{},{data:t.value}))},{immediate:!0})}const i=n(s.initialState);return o(()=>{s.setOptions(r=>{var n;const a=new Proxy({},{get:(e,t)=>i.value[t]});return y(r,t?h(e):e,{state:y(a,null!=(n=e.state)?n:{}),onStateChange:t=>{i.value=t instanceof Function?t(i.value):t,null==e.onStateChange||e.onStateChange(t)}})})}),s}var j,S,b,w=e(()=>{c(),p(),c(),l(),j=Symbol("merge-proxy"),S={get:(e,t,r)=>t===j?r:e.get(t),has:(e,t)=>e.has(t),set:d,deleteProperty:d,getOwnPropertyDescriptor:(e,t)=>({configurable:!0,enumerable:!0,get:()=>e.get(t),set:d,deleteProperty:d}),ownKeys:e=>e.keys()},b=s({props:["render","props"],setup:e=>()=>"function"==typeof e.render||"object"==typeof e.render?i(e.render,e.props):e.render})});export{w as n,v as r,b as t};
1
+ import{n as e}from"./rolldown-runtime-CHbrDDT0.js";import{T as t,c as r,h as n,y as a}from"./vue-Dl-yK_yx.js";import{A as o,d as s,k as u,p as i}from"./vue-De0oSCem.js";import{n as l}from"./vue-B9pRh0Vf.js";import{d as f,f as p}from"./fecha-Dt-wbMrP.js";import{i as c,n as m}from"./tanstack-table-Ck6NfDtc.js";function d(){return!0}function g(e){return"value"in e?e.value:e}function y(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new Proxy({get(e){for(let r=t.length-1;r>=0;r--){const n=g(t[r])[e];if(void 0!==n)return n}},has(e){for(let r=t.length-1;r>=0;r--)if(e in g(t[r]))return!0;return!1},keys(){const e=[];for(let r=0;r<t.length;r++)e.push(...Object.keys(g(t[r])));return[...Array.from(new Set(e))]}},S)}function h(e){return y(e,{data:t(e.data)})}function v(e){const t=r(e.data),s=m(y({state:{},onStateChange:()=>{},renderFallbackValue:null,mergeOptions:(e,r)=>t?f(f({},e),r):y(e,r)},t?h(e):e));if(t){const t=a(e.data);u(t,()=>{s.setState(e=>f(f({},e),{},{data:t.value}))},{immediate:!0})}const i=n(s.initialState);return o(()=>{s.setOptions(r=>{var n;const a=new Proxy({},{get:(e,t)=>i.value[t]});return y(r,t?h(e):e,{state:y(a,null!=(n=e.state)?n:{}),onStateChange:t=>{i.value=t instanceof Function?t(i.value):t,null==e.onStateChange||e.onStateChange(t)}})})}),s}var j,S,b,w=e(()=>{c(),p(),c(),l(),j=Symbol("merge-proxy"),S={get:(e,t,r)=>t===j?r:e.get(t),has:(e,t)=>e.has(t),set:d,deleteProperty:d,getOwnPropertyDescriptor:(e,t)=>({configurable:!0,enumerable:!0,get:()=>e.get(t),set:d,deleteProperty:d}),ownKeys:e=>e.keys()},b=s({props:["render","props"],setup:e=>()=>"function"==typeof e.render||"object"==typeof e.render?i(e.render,e.props):e.render})});export{w as n,v as r,b as t};
@@ -1 +1 @@
1
- import{n as e}from"./rolldown-runtime-CHbrDDT0.js";import{_ as t,d as n,f as l,i as o,r as i,v as r}from"./fecha-DKYcT2kV.js";function a(){return{accessor:(e,t)=>n(n({},t),{},"function"==typeof e?{accessorFn:e}:{accessorKey:e}),display:e=>e,group:e=>e}}function u(e,t){return"function"==typeof e?e(t):e}function s(e,t){return l=>{t.setState(t=>n(n({},t),{},{[e]:u(l,t[e])}))}}function g(e){return e instanceof Function}function d(e,t,n){let l,o=[];return i=>{let r;n.key&&n.debug&&(r=Date.now());const a=e(i);if(a.length===o.length&&!a.some((e,t)=>o[t]!==e))return l;let u;if(o=a,n.key&&n.debug&&(u=Date.now()),l=t(...a),null==n||null==n.onChange||n.onChange(l),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-r))/100,t=Math.round(100*(Date.now()-u))/100,l=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*l,120))}deg 100% 31%);`,null==n?void 0:n.key)}return l}}function c(e,t,n,l){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:l}}function p(e,t,n){var l;let o={id:null!=(l=n.id)?l:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(t=>{null==t.createHeader||t.createHeader(o,e)}),o}function m(e,t,n,l){var o,i;let r=0;const a=function(e,t){void 0===t&&(t=1),r=Math.max(r,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;null!=(n=e.columns)&&n.length&&a(e.columns,t+1)},0)};a(e);let u=[];const s=(e,t)=>{const o={depth:t,id:[l,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach(e=>{const r=[...i].reverse()[0];let a,u=!1;if(e.column.depth===o.depth&&e.column.parent?a=e.column.parent:(a=e.column,u=!0),r&&(null==r?void 0:r.column)===a)r.subHeaders.push(e);else{const o=p(n,a,{id:[l,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:u,placeholderId:u?`${i.filter(e=>e.column===a).length}`:void 0,depth:t,index:i.length});o.subHeaders.push(e),i.push(o)}o.headers.push(e),e.headerGroup=o}),u.push(o),t>0&&s(i,t-1)};s(t.map((e,t)=>p(n,e,{depth:r,index:t})),r-1),u.reverse();const g=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,l=[0];e.subHeaders&&e.subHeaders.length?(l=[],g(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:o}=e;t+=n,l.push(o)})):t=1;return n+=Math.min(...l),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return g(null!=(o=null==(i=u[0])?void 0:i.headers)?o:[]),u}function f(e){return null==e||""===e}function S(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}function C(e){return"touchstart"===e.type}function w(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}function v(e,t){const l=e.getState().rowSelection,o=[],i={},r=function(e,t){return e.map(e=>{var t;const a=h(e,l);if(a&&(o.push(e),i[e.id]=e),null!=(t=e.subRows)&&t.length&&(e=n(n({},e),{},{subRows:r(e.subRows)})),a)return e}).filter(Boolean)};return{rows:r(t.rows),flatRows:o,rowsById:i}}function h(e,t){var n;return null!=(n=t[e.id])&&n}function R(e,t,n){var l;if(null==(l=e.subRows)||!l.length)return!1;let o=!0,i=!1;return e.subRows.forEach(e=>{if((!i||o)&&(e.getCanSelect()&&(h(e,t)?i=!0:o=!1),e.subRows&&e.subRows.length)){const n=R(e,t);"all"===n?i=!0:"some"===n?(i=!0,o=!1):o=!1}}),o?"all":!!i&&"some"}function b(e,t){return e===t?0:e>t?1:-1}function F(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function M(e,t){const n=e.split(Z).filter(Boolean),l=t.split(Z).filter(Boolean);for(;n.length&&l.length;){const e=n.shift(),t=l.shift(),o=parseInt(e,10),i=parseInt(t,10),r=[o,i].sort();if(isNaN(r[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(r[1]))return isNaN(o)?-1:1;if(o>i)return 1;if(i>o)return-1}}return n.length-l.length}function P(e){var t,l;const o=[...te,...null!=(t=e._features)?t:[]];let i={_features:o};const r=i._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(i)),{});let a=n(n({},{}),null!=(l=e.initialState)?l:{});i._features.forEach(e=>{var t;a=null!=(t=null==e.getInitialState?void 0:e.getInitialState(a))?t:a});const s=[];let g=!1;const p={_features:o,options:n(n({},r),e),initialState:a,_queue:e=>{s.push(e),g||(g=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();g=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{i.setState(i.initialState)},setOptions:e=>{i.options=(e=>i.options.mergeOptions?i.options.mergeOptions(r,e):n(n({},r),e))(u(e,i.options))},getState:()=>i.options.state,setState:e=>{null==i.options.onStateChange||i.options.onStateChange(e)},_getRowId:(e,t,n)=>{var l;return null!=(l=null==i.options.getRowId?void 0:i.options.getRowId(e,t,n))?l:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?i.getPrePaginationRowModel():i.getRowModel()).rowsById[e];if(!n&&(n=i.getCoreRowModel().rowsById[e],!n))throw new Error;return n},_getDefaultColumnDef:d(()=>[i.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},n(n({header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null}},i._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{})),e)},c(e,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:d(()=>[i._getColumnDefs()],e=>{const t=function(e,l,o){return void 0===o&&(o=0),e.map(e=>{const r=function(e,t,l,o){var i,r;const a=n(n({},e._getDefaultColumnDef()),t),u=a.accessorKey;let s,g=null!=(i=null!=(r=a.id)?r:u?"function"==typeof String.prototype.replaceAll?u.replaceAll(".","_"):u.replace(/\./g,"_"):void 0)?i:"string"==typeof a.header?a.header:void 0;if(a.accessorFn?s=a.accessorFn:u&&(s=u.includes(".")?e=>{let t=e;for(const l of u.split(".")){var n;t=null==(n=t)?void 0:n[l]}return t}:e=>e[a.accessorKey]),!g)throw new Error;let p={id:`${String(g)}`,accessorFn:s,parent:o,depth:l,columnDef:a,columns:[],getFlatColumns:d(()=>[!0],()=>{var e;return[p,...null==(e=p.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},c(e.options,"debugColumns")),getLeafColumns:d(()=>[e._getOrderColumnsFn()],e=>{var t;return null!=(t=p.columns)&&t.length?e(p.columns.flatMap(e=>e.getLeafColumns())):[p]},c(e.options,"debugColumns"))};for(const n of e._features)null==n.createColumn||n.createColumn(p,e);return p}(i,e,o,l),a=e;return r.columns=a.columns?t(a.columns,r,o+1):[],r})};return t(e)},c(e,"debugColumns")),getAllFlatColumns:d(()=>[i.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),c(e,"debugColumns")),_getAllFlatColumnsById:d(()=>[i.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),c(e,"debugColumns")),getAllLeafColumns:d(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),c(e,"debugColumns")),getColumn:e=>i._getAllFlatColumnsById()[e]};Object.assign(i,p);for(let n=0;n<i._features.length;n++){const e=i._features[n];null==e||null==e.createTable||e.createTable(i)}return i}function I(){return e=>d(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},l=function(t,o,i){void 0===o&&(o=0);const r=[];for(let u=0;u<t.length;u++){const s=_(e,e._getRowId(t[u],u,i),t[u],u,o,void 0,null==i?void 0:i.id);var a;if(n.flatRows.push(s),n.rowsById[s.id]=s,r.push(s),e.options.getSubRows)s.originalSubRows=e.options.getSubRows(t[u],u),null!=(a=s.originalSubRows)&&a.length&&(s.subRows=l(s.originalSubRows,o+1,s))}return r};return n.rows=l(t),n},c(e.options,"debugTable",0,()=>e._autoResetPageIndex()))}var V,x,_,y,E,z,G,A,D,H,L,O,T,B,q,k,j,N,U,X,$,K,J,Q,W,Y,Z,ee,te,ne=e(()=>{l(),t(),o(),V="debugHeaders",x={createTable:e=>{e.getHeaderGroups=d(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,l,o)=>{var i,r;const a=null!=(i=null==l?void 0:l.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[],u=null!=(r=null==o?void 0:o.map(e=>n.find(t=>t.id===e)).filter(Boolean))?r:[];return m(t,[...a,...n.filter(e=>!(null!=l&&l.includes(e.id)||null!=o&&o.includes(e.id))),...u],e)},c(e.options,V)),e.getCenterHeaderGroups=d(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,l,o)=>m(t,n=n.filter(e=>!(null!=l&&l.includes(e.id)||null!=o&&o.includes(e.id))),e,"center"),c(e.options,V)),e.getLeftHeaderGroups=d(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,l)=>{var o;return m(t,null!=(o=null==l?void 0:l.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[],e,"left")},c(e.options,V)),e.getRightHeaderGroups=d(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,l)=>{var o;return m(t,null!=(o=null==l?void 0:l.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[],e,"right")},c(e.options,V)),e.getFooterGroups=d(()=>[e.getHeaderGroups()],e=>[...e].reverse(),c(e.options,V)),e.getLeftFooterGroups=d(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),c(e.options,V)),e.getCenterFooterGroups=d(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),c(e.options,V)),e.getRightFooterGroups=d(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),c(e.options,V)),e.getFlatHeaders=d(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),c(e.options,V)),e.getLeftFlatHeaders=d(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),c(e.options,V)),e.getCenterFlatHeaders=d(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),c(e.options,V)),e.getRightFlatHeaders=d(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),c(e.options,V)),e.getCenterLeafHeaders=d(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),c(e.options,V)),e.getLeftLeafHeaders=d(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),c(e.options,V)),e.getRightLeafHeaders=d(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),c(e.options,V)),e.getLeafHeaders=d(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var l,o,i,r,a,u;return[...null!=(l=null==(o=e[0])?void 0:o.headers)?l:[],...null!=(i=null==(r=t[0])?void 0:r.headers)?i:[],...null!=(a=null==(u=n[0])?void 0:u.headers)?a:[]].map(e=>e.getLeafHeaders()).flat()},c(e.options,V))}},_=(e,t,n,l,o,i,r)=>{let a={id:t,index:l,original:n,depth:o,parentId:r,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(a._valuesCache.hasOwnProperty(t))return a._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(a._valuesCache[t]=n.accessorFn(a.original,l),a._valuesCache[t]):void 0},getUniqueValues:t=>{if(a._uniqueValuesCache.hasOwnProperty(t))return a._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(a._uniqueValuesCache[t]=n.columnDef.getUniqueValues(a.original,l),a._uniqueValuesCache[t]):(a._uniqueValuesCache[t]=[a.getValue(t)],a._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=a.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=i?i:[],getLeafRows:()=>function(e,t){const n=[],l=e=>{e.forEach(e=>{n.push(e);const o=t(e);null!=o&&o.length&&l(o)})};return l(e),n}(a.subRows,e=>e.subRows),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let e=[],t=a;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:d(()=>[e.getAllLeafColumns()],t=>t.map(t=>function(e,t,n,l){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(l),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:d(()=>[e,n,t,o],(e,t,n,l)=>({table:e,column:t,row:n,cell:l,getValue:l.getValue,renderValue:l.renderValue}),c(e.options,"debugCells"))};return e._features.forEach(l=>{null==l.createCell||l.createCell(o,n,t,e)},{}),o}(e,a,t,t.id)),c(e.options,"debugRows")),_getAllCellsByColumnId:d(()=>[a.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),c(e.options,"debugRows"))};for(let u=0;u<e._features.length;u++){const t=e._features[u];null==t||null==t.createRow||t.createRow(a,e)}return a},y={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},(E=(e,t,n)=>{var l,o;const i=null==n||null==(l=n.toString())?void 0:l.toLowerCase();return Boolean(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())?void 0:o.includes(i))}).autoRemove=e=>f(e),(z=(e,t,n)=>{var l;return Boolean(null==(l=e.getValue(t))||null==(l=l.toString())?void 0:l.includes(n))}).autoRemove=e=>f(e),(G=(e,t,n)=>{var l;return(null==(l=e.getValue(t))||null==(l=l.toString())?void 0:l.toLowerCase())===(null==n?void 0:n.toLowerCase())}).autoRemove=e=>f(e),(A=(e,t,n)=>{var l;return null==(l=e.getValue(t))?void 0:l.includes(n)}).autoRemove=e=>f(e),(D=(e,t,n)=>!n.some(n=>{var l;return!(null!=(l=e.getValue(t))&&l.includes(n))})).autoRemove=e=>f(e)||!(null!=e&&e.length),(H=(e,t,n)=>n.some(n=>{var l;return null==(l=e.getValue(t))?void 0:l.includes(n)})).autoRemove=e=>f(e)||!(null!=e&&e.length),(L=(e,t,n)=>e.getValue(t)===n).autoRemove=e=>f(e),(O=(e,t,n)=>e.getValue(t)==n).autoRemove=e=>f(e),T=(e,t,n)=>{let[l,o]=n;const i=e.getValue(t);return i>=l&&i<=o},T.resolveFilterValue=e=>{let[t,n]=e,l="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,i=null===t||Number.isNaN(l)?-1/0:l,r=null===n||Number.isNaN(o)?1/0:o;if(i>r){const e=i;i=r,r=e}return[i,r]},T.autoRemove=e=>f(e)||f(e[0])&&f(e[1]),B={includesString:E,includesStringSensitive:z,equalsString:G,arrIncludes:A,arrIncludesAll:D,arrIncludesSome:H,equals:L,weakEquals:O,inNumberRange:T},q={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>n({columnFilters:[]},e),getDefaultOptions:e=>({onColumnFiltersChange:s("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],l=null==n?void 0:n.getValue(e.id);return"string"==typeof l?B.includesString:"number"==typeof l?B.inNumberRange:"boolean"==typeof l||null!==l&&"object"==typeof l?B.equals:Array.isArray(l)?B.arrIncludes:B.weakEquals},e.getFilterFn=()=>{var n,l;return g(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(l=t.options.filterFns)?void 0:l[e.columnDef.filterFn])?n:B[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,l,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(l=t.options.enableColumnFilters)||l)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find(t=>t.id===e.id))?void 0:n.value},e.getFilterIndex=()=>{var n,l;return null!=(n=null==(l=t.getState().columnFilters)?void 0:l.findIndex(t=>t.id===e.id))?n:-1},e.setFilterValue=n=>{t.setColumnFilters(t=>{const l=e.getFilterFn(),o=null==t?void 0:t.find(t=>t.id===e.id),i=u(n,o?o.value:void 0);var r;if(S(l,i,e))return null!=(r=null==t?void 0:t.filter(t=>t.id!==e.id))?r:[];const a={id:e.id,value:i};var s;return o?null!=(s=null==t?void 0:t.map(t=>t.id===e.id?a:t))?s:[]:null!=t&&t.length?[...t,a]:[a]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var l;return null==(l=u(t,e))?void 0:l.filter(e=>{const t=n.find(t=>t.id===e.id);return!t||!S(t.getFilterFn(),e.value,t)})})},e.resetColumnFilters=t=>{var n,l;e.setColumnFilters(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}},k=(e,t,n)=>{let l,o;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(void 0===l?n>=n&&(l=o=n):(l>n&&(l=n),o<n&&(o=n)))}),[l,o]},j=(e,t)=>{let n=0,l=0;if(t.forEach(t=>{let o=t.getValue(e);null!=o&&(o=+o)>=o&&(++n,l+=o)}),n)return l/n},N={sum:(e,t,n)=>n.reduce((t,n)=>{const l=n.getValue(e);return t+("number"==typeof l?l:0)},0),min:(e,t,n)=>{let l;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(l>n||void 0===l&&n>=n)&&(l=n)}),l},max:(e,t,n)=>{let l;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(l<n||void 0===l&&n>=n)&&(l=n)}),l},extent:k,mean:j,median:(e,t)=>{if(!t.length)return;const n=t.map(t=>t.getValue(e));if(l=n,!Array.isArray(l)||!l.every(e=>"number"==typeof e))return;var l;if(1===n.length)return n[0];const o=Math.floor(n.length/2),i=n.sort((e,t)=>e-t);return n.length%2!=0?i[o]:(i[o-1]+i[o])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},U={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>n({grouping:[]},e),getDefaultOptions:e=>({onGroupingChange:s("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},e.getCanGroup=()=>{var n,l;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(l=t.options.enableGrouping)||l)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],l=null==n?void 0:n.getValue(e.id);return"number"==typeof l?N.sum:"[object Date]"===Object.prototype.toString.call(l)?N.extent:void 0},e.getAggregationFn=()=>{var n,l;if(!e)throw new Error;return g(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(l=t.options.aggregationFns)?void 0:l[e.columnDef.aggregationFn])?n:N[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,l;e.setGrouping(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const l=t.getColumn(n);return null!=l&&l.columnDef.getGroupingValue?(e._groupingValuesCache[n]=l.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,l)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}},X={getInitialState:e=>n({columnOrder:[]},e),getDefaultOptions:e=>({onColumnOrderChange:s("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=d(e=>[w(t,e)],t=>t.findIndex(t=>t.id===e.id),c(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var l;return(null==(l=w(t,n)[0])?void 0:l.id)===e.id},e.getIsLastColumn=n=>{var l;const o=w(t,n);return(null==(l=o[o.length-1])?void 0:l.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=d(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>l=>{let o=[];if(null!=e&&e.length){const t=[...e],n=[...l];for(;n.length&&t.length;){const e=t.shift(),l=n.findIndex(t=>t.id===e);l>-1&&o.push(n.splice(l,1)[0])}o=[...o,...n]}else o=l;return function(e,t,n){if(null==t||!t.length||!n)return e;const l=e.filter(e=>!t.includes(e.id));return"remove"===n?l:[...t.map(t=>e.find(e=>e.id===t)).filter(Boolean),...l]}(o,t,n)},c(e.options,"debugTable"))}},$={getInitialState:e=>n({columnPinning:{left:[],right:[]}},e),getDefaultOptions:e=>({onColumnPinningChange:s("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const l=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,o,i,r,a,u;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter(e=>!(null!=l&&l.includes(e))),right:[...(null!=(r=null==e?void 0:e.right)?r:[]).filter(e=>!(null!=l&&l.includes(e))),...l]}:"left"===n?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter(e=>!(null!=l&&l.includes(e))),...l],right:(null!=(u=null==e?void 0:e.right)?u:[]).filter(e=>!(null!=l&&l.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=l&&l.includes(e))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter(e=>!(null!=l&&l.includes(e)))}})},e.getCanPin=()=>e.getLeafColumns().some(e=>{var n,l,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(l=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||l)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(e=>e.id),{left:l,right:o}=t.getState().columnPinning,i=n.some(e=>null==l?void 0:l.includes(e)),r=n.some(e=>null==o?void 0:o.includes(e));return i?"left":!!r&&"right"},e.getPinnedIndex=()=>{var n,l;const o=e.getIsPinned();return o?null!=(n=null==(l=t.getState().columnPinning)||null==(l=l[o])?void 0:l.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=d(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{const l=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!l.includes(e.column.id))},c(t.options,"debugRows")),e.getLeftVisibleCells=d(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>n(n({},e),{},{position:"left"})),c(t.options,"debugRows")),e.getRightVisibleCells=d(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>n(n({},e),{},{position:"right"})),c(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,l;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(l=e.initialState)?void 0:l.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const l=e.getState().columnPinning;var o,i;return t?Boolean(null==(n=l[t])?void 0:n.length):Boolean((null==(o=l.left)?void 0:o.length)||(null==(i=l.right)?void 0:i.length))},e.getLeftLeafColumns=d(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),c(e.options,"debugColumns")),e.getRightLeafColumns=d(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),c(e.options,"debugColumns")),e.getCenterLeafColumns=d(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{const l=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!l.includes(e.id))},c(e.options,"debugColumns"))}},K={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},J={getDefaultColumnDef:()=>K,getInitialState:e=>n({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}},e),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:s("columnSizing",e),onColumnSizingInfoChange:s("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,l,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:K.minSize,null!=(l=null!=i?i:e.columnDef.size)?l:K.size),null!=(o=e.columnDef.maxSize)?o:K.maxSize)},e.getStart=d(e=>[e,w(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),c(t.options,"debugColumns")),e.getAfter=d(e=>[e,w(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),c(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(t=>{let n=e.id,{[n]:l}=t;return i(t,[n].map(r))})},e.getCanResize=()=>{var n,l;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(l=t.options.enableColumnResizing)||l)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var l;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(l=e.column.getSize())?l:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=l=>{const o=t.getColumn(e.column.id),i=null==o?void 0:o.getCanResize();return r=>{if(!o||!i)return;if(null==r.persist||r.persist(),C(r)&&r.touches&&r.touches.length>1)return;const a=e.getSize(),u=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[o.id,o.getSize()]],s=C(r)?Math.round(r.touches[0].clientX):r.clientX,g={},d=(e,l)=>{"number"==typeof l&&(t.setColumnSizingInfo(e=>{var o,i;const r="rtl"===t.options.columnResizeDirection?-1:1,a=(l-(null!=(o=null==e?void 0:e.startOffset)?o:0))*r,u=Math.max(a/(null!=(i=null==e?void 0:e.startSize)?i:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;g[t]=Math.round(100*Math.max(n+n*u,0))/100}),n(n({},e),{},{deltaOffset:a,deltaPercentage:u})}),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing(e=>n(n({},e),g)))},c=e=>d("move",e),p=e=>{d("end",e),t.setColumnSizingInfo(e=>n(n({},e),{},{isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},m=l||("undefined"!=typeof document?document:null);const f={moveHandler:e=>c(e.clientX),upHandler:e=>{null==m||m.removeEventListener("mousemove",f.moveHandler),null==m||m.removeEventListener("mouseup",f.upHandler),p(e.clientX)}},S={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),c(e.touches[0].clientX),!1),upHandler:e=>{var t;null==m||m.removeEventListener("touchmove",S.moveHandler),null==m||m.removeEventListener("touchend",S.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),p(null==(t=e.touches[0])?void 0:t.clientX)}},w=!!function(){if("boolean"==typeof Q)return Q;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return Q=e}()&&{passive:!1};C(r)?(null==m||m.addEventListener("touchmove",S.moveHandler,w),null==m||m.addEventListener("touchend",S.upHandler,w)):(null==m||m.addEventListener("mousemove",f.moveHandler,w),null==m||m.addEventListener("mouseup",f.upHandler,w)),t.setColumnSizingInfo(e=>n(n({},e),{},{startOffset:s,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:u,isResizingColumn:o.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}},Q=null,W={getInitialState:e=>n({rowSelection:{}},e),getDefaultOptions:e=>({onRowSelectionChange:s("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(l=>{t=void 0!==t?t:!e.getIsAllRowsSelected();const o=n({},l),i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(e=>{e.getCanSelect()&&(o[e.id]=!0)}):i.forEach(e=>{delete o[e.id]}),o})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(l=>{const o=void 0!==t?t:!e.getIsAllPageRowsSelected(),i=n({},l);return e.getRowModel().rows.forEach(t=>{Y(i,t.id,o,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=d(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?v(e,n):{rows:[],flatRows:[],rowsById:{}},c(e.options,"debugTable")),e.getFilteredSelectedRowModel=d(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?v(e,n):{rows:[],flatRows:[],rowsById:{}},c(e.options,"debugTable")),e.getGroupedSelectedRowModel=d(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?v(e,n):{rows:[],flatRows:[],rowsById:{}},c(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let l=Boolean(t.length&&Object.keys(n).length);return l&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(l=!1),l},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState();let l=!!t.length;return l&&t.some(e=>!n[e.id])&&(l=!1),l},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(l,o)=>{const i=e.getIsSelected();t.setRowSelection(r=>{var a;if(l=void 0!==l?l:!i,e.getCanSelect()&&i===l)return r;const u=n({},r);return Y(u,e.id,l,null==(a=null==o?void 0:o.selectChildren)||a,t),u})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return h(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===R(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===R(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var l;t&&e.toggleSelected(null==(l=n.target)?void 0:l.checked)}}}},Y=(e,t,n,l,o)=>{var i;const r=o.getRow(t,!0);n?(r.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),r.getCanSelect()&&(e[t]=!0)):delete e[t],l&&null!=(i=r.subRows)&&i.length&&r.getCanSelectSubRows()&&r.subRows.forEach(t=>Y(e,t.id,n,l,o))},Z=/([0-9]+)/gm,ee={alphanumeric:(e,t,n)=>M(F(e.getValue(n)).toLowerCase(),F(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>M(F(e.getValue(n)),F(t.getValue(n))),text:(e,t,n)=>b(F(e.getValue(n)).toLowerCase(),F(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>b(F(e.getValue(n)),F(t.getValue(n))),datetime:(e,t,n)=>{const l=e.getValue(n),o=t.getValue(n);return l>o?1:l<o?-1:0},basic:(e,t,n)=>b(e.getValue(n),t.getValue(n))},te=[x,{getInitialState:e=>n({columnVisibility:{}},e),getDefaultOptions:e=>({onColumnVisibilityChange:s("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=l=>{e.getCanHide()&&t.setColumnVisibility(t=>n(n({},t),{},{[e.id]:null!=l?l:!e.getIsVisible()}))},e.getIsVisible=()=>{var n,l;const o=e.columns;return null==(n=o.length?o.some(e=>e.getIsVisible()):null==(l=t.getState().columnVisibility)?void 0:l[e.id])||n},e.getCanHide=()=>{var n,l;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(l=t.options.enableHiding)||l)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=d(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),c(t.options,"debugRows")),e.getVisibleCells=d(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],c(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>d(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),c(e.options,"debugColumns"));e.getVisibleFlatColumns=t(0,()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t(0,()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t(0,()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t(0,()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t(0,()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var l;t=null!=(l=t)?l:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,l)=>n(n({},e),{},{[l.id]:t||!(null!=l.getCanHide&&l.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},X,$,y,q,{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>n({globalFilter:void 0},e),getDefaultOptions:e=>({onGlobalFilterChange:s("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const l=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof l||"number"==typeof l}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,l,o,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(l=t.options.enableGlobalFilter)||l)&&(null==(o=t.options.enableFilters)||o)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>B.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:l}=e.options;return g(l)?l:"auto"===l?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[l])?t:B[l]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},{getInitialState:e=>n({sorting:[]},e),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:s("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let l=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return ee.datetime;if("string"==typeof n&&(l=!0,n.split(Z).length>1))return ee.alphanumeric}return l?ee.text:ee.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,l;if(!e)throw new Error;return g(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(l=t.options.sortingFns)?void 0:l[e.columnDef.sortingFn])?n:ee[e.columnDef.sortingFn]},e.toggleSorting=(l,o)=>{const i=e.getNextSortingOrder(),r=null!=l;t.setSorting(a=>{const u=null==a?void 0:a.find(t=>t.id===e.id),s=null==a?void 0:a.findIndex(t=>t.id===e.id);let g,d=[],c=r?l:"desc"===i;var p;(g=null!=a&&a.length&&e.getCanMultiSort()&&o?u?"toggle":"add":null!=a&&a.length&&s!==a.length-1?"replace":u?"toggle":"replace","toggle"===g&&(r||i||(g="remove")),"add"===g)?(d=[...a,{id:e.id,desc:c}],d.splice(0,d.length-(null!=(p=t.options.maxMultiSortColCount)?p:Number.MAX_SAFE_INTEGER))):d="toggle"===g?a.map(t=>t.id===e.id?n(n({},t),{},{desc:c}):t):"remove"===g?a.filter(t=>t.id!==e.id):[{id:e.id,desc:c}];return d})},e.getFirstSortDir=()=>{var n,l;return(null!=(n=null!=(l=e.columnDef.sortDescFirst)?l:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var l,o;const i=e.getFirstSortDir(),r=e.getIsSorted();return r?!!(r===i||null!=(l=t.options.enableSortingRemoval)&&!l||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===r?"asc":"desc"):i},e.getCanSort=()=>{var n,l;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(l=t.options.enableSorting)||l)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,l;return null!=(n=null!=(l=e.columnDef.enableMultiSort)?l:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const l=null==(n=t.getState().sorting)?void 0:n.find(t=>t.id===e.id);return!!l&&(l.desc?"desc":"asc")},e.getSortIndex=()=>{var n,l;return null!=(n=null==(l=t.getState().sorting)?void 0:l.findIndex(t=>t.id===e.id))?n:-1},e.clearSorting=()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return l=>{n&&(null==l.persist||l.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(l))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,l;e.setSorting(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},U,{getInitialState:e=>n({expanded:{}},e),getDefaultOptions:e=>({onExpandedChange:s("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var l,o;if(t){if(null!=(l=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?l:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}}else e._queue(()=>{t=!0})},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,l;e.setExpanded(t?{}:null!=(n=null==(l=e.initialState)?void 0:l.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some(e=>!e.getIsExpanded())},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{const n=e.split(".");t=Math.max(t,n.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=l=>{t.setExpanded(o=>{var a;const u=!0===o||!(null==o||!o[e.id]);let s={};if(!0===o?Object.keys(t.getRowModel().rowsById).forEach(e=>{s[e]=!0}):s=o,l=null!=(a=l)?a:!u,!u&&l)return n(n({},s),{},{[e.id]:!0});if(u&&!l){const t=e.id,{[t]:n}=s;return i(s,[t].map(r))}return o})},e.getIsExpanded=()=>{var n;const l=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===l||(null==l?void 0:l[e.id]))},e.getCanExpand=()=>{var n,l,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(l=t.options.enableExpanding)||l)&&!(null==(o=e.subRows)||!o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,l=e;for(;n&&l.parentId;)l=t.getRow(l.parentId,!0),n=l.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},{getInitialState:e=>n(n({},e),{},{pagination:n(n({},{pageIndex:0,pageSize:10}),null==e?void 0:e.pagination)}),getDefaultOptions:e=>({onPaginationChange:s("pagination",e)}),createTable:e=>{let t=!1,l=!1;e._autoResetPageIndex=()=>{var n,o;if(t){if(null!=(n=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?n:!e.options.manualPagination){if(l)return;l=!0,e._queue(()=>{e.resetPageIndex(),l=!1})}}else e._queue(()=>{t=!0})},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>u(t,e)),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination(l=>{let o=u(t,l.pageIndex);const i=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,i)),n(n({},l),{},{pageIndex:o})})},e.resetPageIndex=t=>{var n,l;e.setPageIndex(t?0:null!=(n=null==(l=e.initialState)||null==(l=l.pagination)?void 0:l.pageIndex)?n:0)},e.resetPageSize=t=>{var n,l;e.setPageSize(t?10:null!=(n=null==(l=e.initialState)||null==(l=l.pagination)?void 0:l.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination(e=>{const l=Math.max(1,u(t,e.pageSize)),o=e.pageSize*e.pageIndex,i=Math.floor(o/l);return n(n({},e),{},{pageIndex:i,pageSize:l})})},e.setPageCount=t=>e.setPagination(l=>{var o;let i=u(t,null!=(o=e.options.pageCount)?o:-1);return"number"==typeof i&&(i=Math.max(-1,i)),n(n({},l),{},{pageCount:i})}),e.getPageOptions=d(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map((e,t)=>t)),t},c(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},{getInitialState:e=>n({rowPinning:{top:[],bottom:[]}},e),getDefaultOptions:e=>({onRowPinningChange:s("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,l,o)=>{const i=l?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],r=o?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],a=new Set([...r,e.id,...i]);t.setRowPinning(e=>{var t,l,o,i,r,u;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter(e=>!(null!=a&&a.has(e))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter(e=>!(null!=a&&a.has(e))),...Array.from(a)]}:"top"===n?{top:[...(null!=(r=null==e?void 0:e.top)?r:[]).filter(e=>!(null!=a&&a.has(e))),...Array.from(a)],bottom:(null!=(u=null==e?void 0:e.bottom)?u:[]).filter(e=>!(null!=a&&a.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=a&&a.has(e))),bottom:(null!=(l=null==e?void 0:e.bottom)?l:[]).filter(e=>!(null!=a&&a.has(e)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:l,enablePinning:o}=t.options;return"function"==typeof l?l(e):null==(n=null!=l?l:o)||n},e.getIsPinned=()=>{const n=[e.id],{top:l,bottom:o}=t.getState().rowPinning,i=n.some(e=>null==l?void 0:l.includes(e)),r=n.some(e=>null==o?void 0:o.includes(e));return i?"top":!!r&&"bottom"},e.getPinnedIndex=()=>{var n,l;const o=e.getIsPinned();if(!o)return-1;const i=null==(n="top"===o?t.getTopRows():t.getBottomRows())?void 0:n.map(e=>{let{id:t}=e;return t});return null!=(l=null==i?void 0:i.indexOf(e.id))?l:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,l;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(l=e.initialState)?void 0:l.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const l=e.getState().rowPinning;var o,i;return t?Boolean(null==(n=l[t])?void 0:n.length):Boolean((null==(o=l.top)?void 0:o.length)||(null==(i=l.bottom)?void 0:i.length))},e._getPinnedRows=(t,l,o)=>{var i;return(null==(i=e.options.keepPinnedRows)||i?(null!=l?l:[]).map(t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null}):(null!=l?l:[]).map(e=>t.find(t=>t.id===e))).filter(Boolean).map(e=>n(n({},e),{},{position:o}))},e.getTopRows=d(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),c(e.options,"debugRows")),e.getBottomRows=d(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),c(e.options,"debugRows")),e.getCenterRows=d(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{const l=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter(e=>!l.has(e.id))},c(e.options,"debugRows"))}},W,J]});export{ne as i,P as n,I as r,a as t};
1
+ import{n as e}from"./rolldown-runtime-CHbrDDT0.js";import{_ as t,d as n,f as l,i as o,r as i,v as r}from"./fecha-Dt-wbMrP.js";function a(){return{accessor:(e,t)=>n(n({},t),{},"function"==typeof e?{accessorFn:e}:{accessorKey:e}),display:e=>e,group:e=>e}}function u(e,t){return"function"==typeof e?e(t):e}function s(e,t){return l=>{t.setState(t=>n(n({},t),{},{[e]:u(l,t[e])}))}}function g(e){return e instanceof Function}function d(e,t,n){let l,o=[];return i=>{let r;n.key&&n.debug&&(r=Date.now());const a=e(i);if(a.length===o.length&&!a.some((e,t)=>o[t]!==e))return l;let u;if(o=a,n.key&&n.debug&&(u=Date.now()),l=t(...a),null==n||null==n.onChange||n.onChange(l),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-r))/100,t=Math.round(100*(Date.now()-u))/100,l=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*l,120))}deg 100% 31%);`,null==n?void 0:n.key)}return l}}function c(e,t,n,l){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:l}}function p(e,t,n){var l;let o={id:null!=(l=n.id)?l:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(t=>{null==t.createHeader||t.createHeader(o,e)}),o}function m(e,t,n,l){var o,i;let r=0;const a=function(e,t){void 0===t&&(t=1),r=Math.max(r,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;null!=(n=e.columns)&&n.length&&a(e.columns,t+1)},0)};a(e);let u=[];const s=(e,t)=>{const o={depth:t,id:[l,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach(e=>{const r=[...i].reverse()[0];let a,u=!1;if(e.column.depth===o.depth&&e.column.parent?a=e.column.parent:(a=e.column,u=!0),r&&(null==r?void 0:r.column)===a)r.subHeaders.push(e);else{const o=p(n,a,{id:[l,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:u,placeholderId:u?`${i.filter(e=>e.column===a).length}`:void 0,depth:t,index:i.length});o.subHeaders.push(e),i.push(o)}o.headers.push(e),e.headerGroup=o}),u.push(o),t>0&&s(i,t-1)};s(t.map((e,t)=>p(n,e,{depth:r,index:t})),r-1),u.reverse();const g=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,l=[0];e.subHeaders&&e.subHeaders.length?(l=[],g(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:o}=e;t+=n,l.push(o)})):t=1;return n+=Math.min(...l),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return g(null!=(o=null==(i=u[0])?void 0:i.headers)?o:[]),u}function f(e){return null==e||""===e}function S(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}function C(e){return"touchstart"===e.type}function w(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}function v(e,t){const l=e.getState().rowSelection,o=[],i={},r=function(e,t){return e.map(e=>{var t;const a=h(e,l);if(a&&(o.push(e),i[e.id]=e),null!=(t=e.subRows)&&t.length&&(e=n(n({},e),{},{subRows:r(e.subRows)})),a)return e}).filter(Boolean)};return{rows:r(t.rows),flatRows:o,rowsById:i}}function h(e,t){var n;return null!=(n=t[e.id])&&n}function R(e,t,n){var l;if(null==(l=e.subRows)||!l.length)return!1;let o=!0,i=!1;return e.subRows.forEach(e=>{if((!i||o)&&(e.getCanSelect()&&(h(e,t)?i=!0:o=!1),e.subRows&&e.subRows.length)){const n=R(e,t);"all"===n?i=!0:"some"===n?(i=!0,o=!1):o=!1}}),o?"all":!!i&&"some"}function b(e,t){return e===t?0:e>t?1:-1}function F(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function M(e,t){const n=e.split(Z).filter(Boolean),l=t.split(Z).filter(Boolean);for(;n.length&&l.length;){const e=n.shift(),t=l.shift(),o=parseInt(e,10),i=parseInt(t,10),r=[o,i].sort();if(isNaN(r[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(r[1]))return isNaN(o)?-1:1;if(o>i)return 1;if(i>o)return-1}}return n.length-l.length}function P(e){var t,l;const o=[...te,...null!=(t=e._features)?t:[]];let i={_features:o};const r=i._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(i)),{});let a=n(n({},{}),null!=(l=e.initialState)?l:{});i._features.forEach(e=>{var t;a=null!=(t=null==e.getInitialState?void 0:e.getInitialState(a))?t:a});const s=[];let g=!1;const p={_features:o,options:n(n({},r),e),initialState:a,_queue:e=>{s.push(e),g||(g=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();g=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{i.setState(i.initialState)},setOptions:e=>{i.options=(e=>i.options.mergeOptions?i.options.mergeOptions(r,e):n(n({},r),e))(u(e,i.options))},getState:()=>i.options.state,setState:e=>{null==i.options.onStateChange||i.options.onStateChange(e)},_getRowId:(e,t,n)=>{var l;return null!=(l=null==i.options.getRowId?void 0:i.options.getRowId(e,t,n))?l:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?i.getPrePaginationRowModel():i.getRowModel()).rowsById[e];if(!n&&(n=i.getCoreRowModel().rowsById[e],!n))throw new Error;return n},_getDefaultColumnDef:d(()=>[i.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},n(n({header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null}},i._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{})),e)},c(e,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:d(()=>[i._getColumnDefs()],e=>{const t=function(e,l,o){return void 0===o&&(o=0),e.map(e=>{const r=function(e,t,l,o){var i,r;const a=n(n({},e._getDefaultColumnDef()),t),u=a.accessorKey;let s,g=null!=(i=null!=(r=a.id)?r:u?"function"==typeof String.prototype.replaceAll?u.replaceAll(".","_"):u.replace(/\./g,"_"):void 0)?i:"string"==typeof a.header?a.header:void 0;if(a.accessorFn?s=a.accessorFn:u&&(s=u.includes(".")?e=>{let t=e;for(const l of u.split(".")){var n;t=null==(n=t)?void 0:n[l]}return t}:e=>e[a.accessorKey]),!g)throw new Error;let p={id:`${String(g)}`,accessorFn:s,parent:o,depth:l,columnDef:a,columns:[],getFlatColumns:d(()=>[!0],()=>{var e;return[p,...null==(e=p.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},c(e.options,"debugColumns")),getLeafColumns:d(()=>[e._getOrderColumnsFn()],e=>{var t;return null!=(t=p.columns)&&t.length?e(p.columns.flatMap(e=>e.getLeafColumns())):[p]},c(e.options,"debugColumns"))};for(const n of e._features)null==n.createColumn||n.createColumn(p,e);return p}(i,e,o,l),a=e;return r.columns=a.columns?t(a.columns,r,o+1):[],r})};return t(e)},c(e,"debugColumns")),getAllFlatColumns:d(()=>[i.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),c(e,"debugColumns")),_getAllFlatColumnsById:d(()=>[i.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),c(e,"debugColumns")),getAllLeafColumns:d(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),c(e,"debugColumns")),getColumn:e=>i._getAllFlatColumnsById()[e]};Object.assign(i,p);for(let n=0;n<i._features.length;n++){const e=i._features[n];null==e||null==e.createTable||e.createTable(i)}return i}function I(){return e=>d(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},l=function(t,o,i){void 0===o&&(o=0);const r=[];for(let u=0;u<t.length;u++){const s=_(e,e._getRowId(t[u],u,i),t[u],u,o,void 0,null==i?void 0:i.id);var a;if(n.flatRows.push(s),n.rowsById[s.id]=s,r.push(s),e.options.getSubRows)s.originalSubRows=e.options.getSubRows(t[u],u),null!=(a=s.originalSubRows)&&a.length&&(s.subRows=l(s.originalSubRows,o+1,s))}return r};return n.rows=l(t),n},c(e.options,"debugTable",0,()=>e._autoResetPageIndex()))}var V,x,_,y,E,z,G,A,D,H,L,O,T,B,q,k,j,N,U,X,$,K,J,Q,W,Y,Z,ee,te,ne=e(()=>{l(),t(),o(),V="debugHeaders",x={createTable:e=>{e.getHeaderGroups=d(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,l,o)=>{var i,r;const a=null!=(i=null==l?void 0:l.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[],u=null!=(r=null==o?void 0:o.map(e=>n.find(t=>t.id===e)).filter(Boolean))?r:[];return m(t,[...a,...n.filter(e=>!(null!=l&&l.includes(e.id)||null!=o&&o.includes(e.id))),...u],e)},c(e.options,V)),e.getCenterHeaderGroups=d(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,l,o)=>m(t,n=n.filter(e=>!(null!=l&&l.includes(e.id)||null!=o&&o.includes(e.id))),e,"center"),c(e.options,V)),e.getLeftHeaderGroups=d(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,l)=>{var o;return m(t,null!=(o=null==l?void 0:l.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[],e,"left")},c(e.options,V)),e.getRightHeaderGroups=d(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,l)=>{var o;return m(t,null!=(o=null==l?void 0:l.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[],e,"right")},c(e.options,V)),e.getFooterGroups=d(()=>[e.getHeaderGroups()],e=>[...e].reverse(),c(e.options,V)),e.getLeftFooterGroups=d(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),c(e.options,V)),e.getCenterFooterGroups=d(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),c(e.options,V)),e.getRightFooterGroups=d(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),c(e.options,V)),e.getFlatHeaders=d(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),c(e.options,V)),e.getLeftFlatHeaders=d(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),c(e.options,V)),e.getCenterFlatHeaders=d(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),c(e.options,V)),e.getRightFlatHeaders=d(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),c(e.options,V)),e.getCenterLeafHeaders=d(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),c(e.options,V)),e.getLeftLeafHeaders=d(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),c(e.options,V)),e.getRightLeafHeaders=d(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),c(e.options,V)),e.getLeafHeaders=d(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var l,o,i,r,a,u;return[...null!=(l=null==(o=e[0])?void 0:o.headers)?l:[],...null!=(i=null==(r=t[0])?void 0:r.headers)?i:[],...null!=(a=null==(u=n[0])?void 0:u.headers)?a:[]].map(e=>e.getLeafHeaders()).flat()},c(e.options,V))}},_=(e,t,n,l,o,i,r)=>{let a={id:t,index:l,original:n,depth:o,parentId:r,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(a._valuesCache.hasOwnProperty(t))return a._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(a._valuesCache[t]=n.accessorFn(a.original,l),a._valuesCache[t]):void 0},getUniqueValues:t=>{if(a._uniqueValuesCache.hasOwnProperty(t))return a._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(a._uniqueValuesCache[t]=n.columnDef.getUniqueValues(a.original,l),a._uniqueValuesCache[t]):(a._uniqueValuesCache[t]=[a.getValue(t)],a._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=a.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=i?i:[],getLeafRows:()=>function(e,t){const n=[],l=e=>{e.forEach(e=>{n.push(e);const o=t(e);null!=o&&o.length&&l(o)})};return l(e),n}(a.subRows,e=>e.subRows),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let e=[],t=a;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:d(()=>[e.getAllLeafColumns()],t=>t.map(t=>function(e,t,n,l){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(l),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:d(()=>[e,n,t,o],(e,t,n,l)=>({table:e,column:t,row:n,cell:l,getValue:l.getValue,renderValue:l.renderValue}),c(e.options,"debugCells"))};return e._features.forEach(l=>{null==l.createCell||l.createCell(o,n,t,e)},{}),o}(e,a,t,t.id)),c(e.options,"debugRows")),_getAllCellsByColumnId:d(()=>[a.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),c(e.options,"debugRows"))};for(let u=0;u<e._features.length;u++){const t=e._features[u];null==t||null==t.createRow||t.createRow(a,e)}return a},y={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},(E=(e,t,n)=>{var l,o;const i=null==n||null==(l=n.toString())?void 0:l.toLowerCase();return Boolean(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())?void 0:o.includes(i))}).autoRemove=e=>f(e),(z=(e,t,n)=>{var l;return Boolean(null==(l=e.getValue(t))||null==(l=l.toString())?void 0:l.includes(n))}).autoRemove=e=>f(e),(G=(e,t,n)=>{var l;return(null==(l=e.getValue(t))||null==(l=l.toString())?void 0:l.toLowerCase())===(null==n?void 0:n.toLowerCase())}).autoRemove=e=>f(e),(A=(e,t,n)=>{var l;return null==(l=e.getValue(t))?void 0:l.includes(n)}).autoRemove=e=>f(e),(D=(e,t,n)=>!n.some(n=>{var l;return!(null!=(l=e.getValue(t))&&l.includes(n))})).autoRemove=e=>f(e)||!(null!=e&&e.length),(H=(e,t,n)=>n.some(n=>{var l;return null==(l=e.getValue(t))?void 0:l.includes(n)})).autoRemove=e=>f(e)||!(null!=e&&e.length),(L=(e,t,n)=>e.getValue(t)===n).autoRemove=e=>f(e),(O=(e,t,n)=>e.getValue(t)==n).autoRemove=e=>f(e),T=(e,t,n)=>{let[l,o]=n;const i=e.getValue(t);return i>=l&&i<=o},T.resolveFilterValue=e=>{let[t,n]=e,l="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,i=null===t||Number.isNaN(l)?-1/0:l,r=null===n||Number.isNaN(o)?1/0:o;if(i>r){const e=i;i=r,r=e}return[i,r]},T.autoRemove=e=>f(e)||f(e[0])&&f(e[1]),B={includesString:E,includesStringSensitive:z,equalsString:G,arrIncludes:A,arrIncludesAll:D,arrIncludesSome:H,equals:L,weakEquals:O,inNumberRange:T},q={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>n({columnFilters:[]},e),getDefaultOptions:e=>({onColumnFiltersChange:s("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],l=null==n?void 0:n.getValue(e.id);return"string"==typeof l?B.includesString:"number"==typeof l?B.inNumberRange:"boolean"==typeof l||null!==l&&"object"==typeof l?B.equals:Array.isArray(l)?B.arrIncludes:B.weakEquals},e.getFilterFn=()=>{var n,l;return g(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(l=t.options.filterFns)?void 0:l[e.columnDef.filterFn])?n:B[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,l,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(l=t.options.enableColumnFilters)||l)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find(t=>t.id===e.id))?void 0:n.value},e.getFilterIndex=()=>{var n,l;return null!=(n=null==(l=t.getState().columnFilters)?void 0:l.findIndex(t=>t.id===e.id))?n:-1},e.setFilterValue=n=>{t.setColumnFilters(t=>{const l=e.getFilterFn(),o=null==t?void 0:t.find(t=>t.id===e.id),i=u(n,o?o.value:void 0);var r;if(S(l,i,e))return null!=(r=null==t?void 0:t.filter(t=>t.id!==e.id))?r:[];const a={id:e.id,value:i};var s;return o?null!=(s=null==t?void 0:t.map(t=>t.id===e.id?a:t))?s:[]:null!=t&&t.length?[...t,a]:[a]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var l;return null==(l=u(t,e))?void 0:l.filter(e=>{const t=n.find(t=>t.id===e.id);return!t||!S(t.getFilterFn(),e.value,t)})})},e.resetColumnFilters=t=>{var n,l;e.setColumnFilters(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}},k=(e,t,n)=>{let l,o;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(void 0===l?n>=n&&(l=o=n):(l>n&&(l=n),o<n&&(o=n)))}),[l,o]},j=(e,t)=>{let n=0,l=0;if(t.forEach(t=>{let o=t.getValue(e);null!=o&&(o=+o)>=o&&(++n,l+=o)}),n)return l/n},N={sum:(e,t,n)=>n.reduce((t,n)=>{const l=n.getValue(e);return t+("number"==typeof l?l:0)},0),min:(e,t,n)=>{let l;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(l>n||void 0===l&&n>=n)&&(l=n)}),l},max:(e,t,n)=>{let l;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(l<n||void 0===l&&n>=n)&&(l=n)}),l},extent:k,mean:j,median:(e,t)=>{if(!t.length)return;const n=t.map(t=>t.getValue(e));if(l=n,!Array.isArray(l)||!l.every(e=>"number"==typeof e))return;var l;if(1===n.length)return n[0];const o=Math.floor(n.length/2),i=n.sort((e,t)=>e-t);return n.length%2!=0?i[o]:(i[o-1]+i[o])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},U={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>n({grouping:[]},e),getDefaultOptions:e=>({onGroupingChange:s("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},e.getCanGroup=()=>{var n,l;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(l=t.options.enableGrouping)||l)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],l=null==n?void 0:n.getValue(e.id);return"number"==typeof l?N.sum:"[object Date]"===Object.prototype.toString.call(l)?N.extent:void 0},e.getAggregationFn=()=>{var n,l;if(!e)throw new Error;return g(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(l=t.options.aggregationFns)?void 0:l[e.columnDef.aggregationFn])?n:N[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,l;e.setGrouping(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const l=t.getColumn(n);return null!=l&&l.columnDef.getGroupingValue?(e._groupingValuesCache[n]=l.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,l)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}},X={getInitialState:e=>n({columnOrder:[]},e),getDefaultOptions:e=>({onColumnOrderChange:s("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=d(e=>[w(t,e)],t=>t.findIndex(t=>t.id===e.id),c(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var l;return(null==(l=w(t,n)[0])?void 0:l.id)===e.id},e.getIsLastColumn=n=>{var l;const o=w(t,n);return(null==(l=o[o.length-1])?void 0:l.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=d(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>l=>{let o=[];if(null!=e&&e.length){const t=[...e],n=[...l];for(;n.length&&t.length;){const e=t.shift(),l=n.findIndex(t=>t.id===e);l>-1&&o.push(n.splice(l,1)[0])}o=[...o,...n]}else o=l;return function(e,t,n){if(null==t||!t.length||!n)return e;const l=e.filter(e=>!t.includes(e.id));return"remove"===n?l:[...t.map(t=>e.find(e=>e.id===t)).filter(Boolean),...l]}(o,t,n)},c(e.options,"debugTable"))}},$={getInitialState:e=>n({columnPinning:{left:[],right:[]}},e),getDefaultOptions:e=>({onColumnPinningChange:s("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const l=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,o,i,r,a,u;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter(e=>!(null!=l&&l.includes(e))),right:[...(null!=(r=null==e?void 0:e.right)?r:[]).filter(e=>!(null!=l&&l.includes(e))),...l]}:"left"===n?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter(e=>!(null!=l&&l.includes(e))),...l],right:(null!=(u=null==e?void 0:e.right)?u:[]).filter(e=>!(null!=l&&l.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=l&&l.includes(e))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter(e=>!(null!=l&&l.includes(e)))}})},e.getCanPin=()=>e.getLeafColumns().some(e=>{var n,l,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(l=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||l)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(e=>e.id),{left:l,right:o}=t.getState().columnPinning,i=n.some(e=>null==l?void 0:l.includes(e)),r=n.some(e=>null==o?void 0:o.includes(e));return i?"left":!!r&&"right"},e.getPinnedIndex=()=>{var n,l;const o=e.getIsPinned();return o?null!=(n=null==(l=t.getState().columnPinning)||null==(l=l[o])?void 0:l.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=d(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{const l=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!l.includes(e.column.id))},c(t.options,"debugRows")),e.getLeftVisibleCells=d(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>n(n({},e),{},{position:"left"})),c(t.options,"debugRows")),e.getRightVisibleCells=d(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>n(n({},e),{},{position:"right"})),c(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,l;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(l=e.initialState)?void 0:l.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const l=e.getState().columnPinning;var o,i;return t?Boolean(null==(n=l[t])?void 0:n.length):Boolean((null==(o=l.left)?void 0:o.length)||(null==(i=l.right)?void 0:i.length))},e.getLeftLeafColumns=d(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),c(e.options,"debugColumns")),e.getRightLeafColumns=d(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),c(e.options,"debugColumns")),e.getCenterLeafColumns=d(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{const l=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!l.includes(e.id))},c(e.options,"debugColumns"))}},K={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},J={getDefaultColumnDef:()=>K,getInitialState:e=>n({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}},e),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:s("columnSizing",e),onColumnSizingInfoChange:s("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,l,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:K.minSize,null!=(l=null!=i?i:e.columnDef.size)?l:K.size),null!=(o=e.columnDef.maxSize)?o:K.maxSize)},e.getStart=d(e=>[e,w(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),c(t.options,"debugColumns")),e.getAfter=d(e=>[e,w(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),c(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(t=>{let n=e.id,{[n]:l}=t;return i(t,[n].map(r))})},e.getCanResize=()=>{var n,l;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(l=t.options.enableColumnResizing)||l)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var l;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(l=e.column.getSize())?l:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=l=>{const o=t.getColumn(e.column.id),i=null==o?void 0:o.getCanResize();return r=>{if(!o||!i)return;if(null==r.persist||r.persist(),C(r)&&r.touches&&r.touches.length>1)return;const a=e.getSize(),u=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[o.id,o.getSize()]],s=C(r)?Math.round(r.touches[0].clientX):r.clientX,g={},d=(e,l)=>{"number"==typeof l&&(t.setColumnSizingInfo(e=>{var o,i;const r="rtl"===t.options.columnResizeDirection?-1:1,a=(l-(null!=(o=null==e?void 0:e.startOffset)?o:0))*r,u=Math.max(a/(null!=(i=null==e?void 0:e.startSize)?i:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;g[t]=Math.round(100*Math.max(n+n*u,0))/100}),n(n({},e),{},{deltaOffset:a,deltaPercentage:u})}),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing(e=>n(n({},e),g)))},c=e=>d("move",e),p=e=>{d("end",e),t.setColumnSizingInfo(e=>n(n({},e),{},{isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},m=l||("undefined"!=typeof document?document:null);const f={moveHandler:e=>c(e.clientX),upHandler:e=>{null==m||m.removeEventListener("mousemove",f.moveHandler),null==m||m.removeEventListener("mouseup",f.upHandler),p(e.clientX)}},S={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),c(e.touches[0].clientX),!1),upHandler:e=>{var t;null==m||m.removeEventListener("touchmove",S.moveHandler),null==m||m.removeEventListener("touchend",S.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),p(null==(t=e.touches[0])?void 0:t.clientX)}},w=!!function(){if("boolean"==typeof Q)return Q;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return Q=e}()&&{passive:!1};C(r)?(null==m||m.addEventListener("touchmove",S.moveHandler,w),null==m||m.addEventListener("touchend",S.upHandler,w)):(null==m||m.addEventListener("mousemove",f.moveHandler,w),null==m||m.addEventListener("mouseup",f.upHandler,w)),t.setColumnSizingInfo(e=>n(n({},e),{},{startOffset:s,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:u,isResizingColumn:o.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}},Q=null,W={getInitialState:e=>n({rowSelection:{}},e),getDefaultOptions:e=>({onRowSelectionChange:s("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(l=>{t=void 0!==t?t:!e.getIsAllRowsSelected();const o=n({},l),i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(e=>{e.getCanSelect()&&(o[e.id]=!0)}):i.forEach(e=>{delete o[e.id]}),o})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(l=>{const o=void 0!==t?t:!e.getIsAllPageRowsSelected(),i=n({},l);return e.getRowModel().rows.forEach(t=>{Y(i,t.id,o,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=d(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?v(e,n):{rows:[],flatRows:[],rowsById:{}},c(e.options,"debugTable")),e.getFilteredSelectedRowModel=d(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?v(e,n):{rows:[],flatRows:[],rowsById:{}},c(e.options,"debugTable")),e.getGroupedSelectedRowModel=d(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?v(e,n):{rows:[],flatRows:[],rowsById:{}},c(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let l=Boolean(t.length&&Object.keys(n).length);return l&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(l=!1),l},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState();let l=!!t.length;return l&&t.some(e=>!n[e.id])&&(l=!1),l},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(l,o)=>{const i=e.getIsSelected();t.setRowSelection(r=>{var a;if(l=void 0!==l?l:!i,e.getCanSelect()&&i===l)return r;const u=n({},r);return Y(u,e.id,l,null==(a=null==o?void 0:o.selectChildren)||a,t),u})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return h(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===R(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===R(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var l;t&&e.toggleSelected(null==(l=n.target)?void 0:l.checked)}}}},Y=(e,t,n,l,o)=>{var i;const r=o.getRow(t,!0);n?(r.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),r.getCanSelect()&&(e[t]=!0)):delete e[t],l&&null!=(i=r.subRows)&&i.length&&r.getCanSelectSubRows()&&r.subRows.forEach(t=>Y(e,t.id,n,l,o))},Z=/([0-9]+)/gm,ee={alphanumeric:(e,t,n)=>M(F(e.getValue(n)).toLowerCase(),F(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>M(F(e.getValue(n)),F(t.getValue(n))),text:(e,t,n)=>b(F(e.getValue(n)).toLowerCase(),F(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>b(F(e.getValue(n)),F(t.getValue(n))),datetime:(e,t,n)=>{const l=e.getValue(n),o=t.getValue(n);return l>o?1:l<o?-1:0},basic:(e,t,n)=>b(e.getValue(n),t.getValue(n))},te=[x,{getInitialState:e=>n({columnVisibility:{}},e),getDefaultOptions:e=>({onColumnVisibilityChange:s("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=l=>{e.getCanHide()&&t.setColumnVisibility(t=>n(n({},t),{},{[e.id]:null!=l?l:!e.getIsVisible()}))},e.getIsVisible=()=>{var n,l;const o=e.columns;return null==(n=o.length?o.some(e=>e.getIsVisible()):null==(l=t.getState().columnVisibility)?void 0:l[e.id])||n},e.getCanHide=()=>{var n,l;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(l=t.options.enableHiding)||l)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=d(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),c(t.options,"debugRows")),e.getVisibleCells=d(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],c(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>d(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),c(e.options,"debugColumns"));e.getVisibleFlatColumns=t(0,()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t(0,()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t(0,()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t(0,()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t(0,()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var l;t=null!=(l=t)?l:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,l)=>n(n({},e),{},{[l.id]:t||!(null!=l.getCanHide&&l.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},X,$,y,q,{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>n({globalFilter:void 0},e),getDefaultOptions:e=>({onGlobalFilterChange:s("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const l=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof l||"number"==typeof l}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,l,o,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(l=t.options.enableGlobalFilter)||l)&&(null==(o=t.options.enableFilters)||o)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>B.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:l}=e.options;return g(l)?l:"auto"===l?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[l])?t:B[l]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},{getInitialState:e=>n({sorting:[]},e),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:s("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let l=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return ee.datetime;if("string"==typeof n&&(l=!0,n.split(Z).length>1))return ee.alphanumeric}return l?ee.text:ee.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,l;if(!e)throw new Error;return g(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(l=t.options.sortingFns)?void 0:l[e.columnDef.sortingFn])?n:ee[e.columnDef.sortingFn]},e.toggleSorting=(l,o)=>{const i=e.getNextSortingOrder(),r=null!=l;t.setSorting(a=>{const u=null==a?void 0:a.find(t=>t.id===e.id),s=null==a?void 0:a.findIndex(t=>t.id===e.id);let g,d=[],c=r?l:"desc"===i;var p;(g=null!=a&&a.length&&e.getCanMultiSort()&&o?u?"toggle":"add":null!=a&&a.length&&s!==a.length-1?"replace":u?"toggle":"replace","toggle"===g&&(r||i||(g="remove")),"add"===g)?(d=[...a,{id:e.id,desc:c}],d.splice(0,d.length-(null!=(p=t.options.maxMultiSortColCount)?p:Number.MAX_SAFE_INTEGER))):d="toggle"===g?a.map(t=>t.id===e.id?n(n({},t),{},{desc:c}):t):"remove"===g?a.filter(t=>t.id!==e.id):[{id:e.id,desc:c}];return d})},e.getFirstSortDir=()=>{var n,l;return(null!=(n=null!=(l=e.columnDef.sortDescFirst)?l:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var l,o;const i=e.getFirstSortDir(),r=e.getIsSorted();return r?!!(r===i||null!=(l=t.options.enableSortingRemoval)&&!l||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===r?"asc":"desc"):i},e.getCanSort=()=>{var n,l;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(l=t.options.enableSorting)||l)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,l;return null!=(n=null!=(l=e.columnDef.enableMultiSort)?l:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const l=null==(n=t.getState().sorting)?void 0:n.find(t=>t.id===e.id);return!!l&&(l.desc?"desc":"asc")},e.getSortIndex=()=>{var n,l;return null!=(n=null==(l=t.getState().sorting)?void 0:l.findIndex(t=>t.id===e.id))?n:-1},e.clearSorting=()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return l=>{n&&(null==l.persist||l.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(l))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,l;e.setSorting(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},U,{getInitialState:e=>n({expanded:{}},e),getDefaultOptions:e=>({onExpandedChange:s("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var l,o;if(t){if(null!=(l=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?l:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}}else e._queue(()=>{t=!0})},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,l;e.setExpanded(t?{}:null!=(n=null==(l=e.initialState)?void 0:l.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some(e=>!e.getIsExpanded())},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{const n=e.split(".");t=Math.max(t,n.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=l=>{t.setExpanded(o=>{var a;const u=!0===o||!(null==o||!o[e.id]);let s={};if(!0===o?Object.keys(t.getRowModel().rowsById).forEach(e=>{s[e]=!0}):s=o,l=null!=(a=l)?a:!u,!u&&l)return n(n({},s),{},{[e.id]:!0});if(u&&!l){const t=e.id,{[t]:n}=s;return i(s,[t].map(r))}return o})},e.getIsExpanded=()=>{var n;const l=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===l||(null==l?void 0:l[e.id]))},e.getCanExpand=()=>{var n,l,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(l=t.options.enableExpanding)||l)&&!(null==(o=e.subRows)||!o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,l=e;for(;n&&l.parentId;)l=t.getRow(l.parentId,!0),n=l.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},{getInitialState:e=>n(n({},e),{},{pagination:n(n({},{pageIndex:0,pageSize:10}),null==e?void 0:e.pagination)}),getDefaultOptions:e=>({onPaginationChange:s("pagination",e)}),createTable:e=>{let t=!1,l=!1;e._autoResetPageIndex=()=>{var n,o;if(t){if(null!=(n=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?n:!e.options.manualPagination){if(l)return;l=!0,e._queue(()=>{e.resetPageIndex(),l=!1})}}else e._queue(()=>{t=!0})},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>u(t,e)),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination(l=>{let o=u(t,l.pageIndex);const i=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,i)),n(n({},l),{},{pageIndex:o})})},e.resetPageIndex=t=>{var n,l;e.setPageIndex(t?0:null!=(n=null==(l=e.initialState)||null==(l=l.pagination)?void 0:l.pageIndex)?n:0)},e.resetPageSize=t=>{var n,l;e.setPageSize(t?10:null!=(n=null==(l=e.initialState)||null==(l=l.pagination)?void 0:l.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination(e=>{const l=Math.max(1,u(t,e.pageSize)),o=e.pageSize*e.pageIndex,i=Math.floor(o/l);return n(n({},e),{},{pageIndex:i,pageSize:l})})},e.setPageCount=t=>e.setPagination(l=>{var o;let i=u(t,null!=(o=e.options.pageCount)?o:-1);return"number"==typeof i&&(i=Math.max(-1,i)),n(n({},l),{},{pageCount:i})}),e.getPageOptions=d(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map((e,t)=>t)),t},c(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},{getInitialState:e=>n({rowPinning:{top:[],bottom:[]}},e),getDefaultOptions:e=>({onRowPinningChange:s("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,l,o)=>{const i=l?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],r=o?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],a=new Set([...r,e.id,...i]);t.setRowPinning(e=>{var t,l,o,i,r,u;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter(e=>!(null!=a&&a.has(e))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter(e=>!(null!=a&&a.has(e))),...Array.from(a)]}:"top"===n?{top:[...(null!=(r=null==e?void 0:e.top)?r:[]).filter(e=>!(null!=a&&a.has(e))),...Array.from(a)],bottom:(null!=(u=null==e?void 0:e.bottom)?u:[]).filter(e=>!(null!=a&&a.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=a&&a.has(e))),bottom:(null!=(l=null==e?void 0:e.bottom)?l:[]).filter(e=>!(null!=a&&a.has(e)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:l,enablePinning:o}=t.options;return"function"==typeof l?l(e):null==(n=null!=l?l:o)||n},e.getIsPinned=()=>{const n=[e.id],{top:l,bottom:o}=t.getState().rowPinning,i=n.some(e=>null==l?void 0:l.includes(e)),r=n.some(e=>null==o?void 0:o.includes(e));return i?"top":!!r&&"bottom"},e.getPinnedIndex=()=>{var n,l;const o=e.getIsPinned();if(!o)return-1;const i=null==(n="top"===o?t.getTopRows():t.getBottomRows())?void 0:n.map(e=>{let{id:t}=e;return t});return null!=(l=null==i?void 0:i.indexOf(e.id))?l:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,l;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(l=e.initialState)?void 0:l.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const l=e.getState().rowPinning;var o,i;return t?Boolean(null==(n=l[t])?void 0:n.length):Boolean((null==(o=l.top)?void 0:o.length)||(null==(i=l.bottom)?void 0:i.length))},e._getPinnedRows=(t,l,o)=>{var i;return(null==(i=e.options.keepPinnedRows)||i?(null!=l?l:[]).map(t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null}):(null!=l?l:[]).map(e=>t.find(t=>t.id===e))).filter(Boolean).map(e=>n(n({},e),{},{position:o}))},e.getTopRows=d(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),c(e.options,"debugRows")),e.getBottomRows=d(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),c(e.options,"debugRows")),e.getCenterRows=d(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{const l=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter(e=>!l.has(e.id))},c(e.options,"debugRows"))}},W,J]});export{ne as i,P as n,I as r,a as t};
@@ -0,0 +1 @@
1
+ import{n as r}from"./rolldown-runtime-CHbrDDT0.js";import{r as o}from"./vue-hlNowAAI.js";var s=r(()=>{o()}),a=r(()=>{s()});export{s as n,a as t};