twenty 2.48.0 → 2.49.0

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 (119) hide show
  1. package/dist/app-template/yarn.lock +157 -183
  2. package/dist/app-worker.cjs +1 -1
  3. package/dist/chunks/application-BE-X21OV.cjs +5 -0
  4. package/dist/chunks/{build-pull-entities-BBNc4zkt.cjs → build-pull-entities-caP3XupC.cjs} +2 -2
  5. package/dist/chunks/{build-source-manifest-BMjw7BvT.cjs → build-source-manifest-DWRbCMVq.cjs} +1 -1
  6. package/dist/chunks/{build-source-snapshot-BbQlyo_m.cjs → build-source-snapshot-CtgBQfSx.cjs} +813 -154
  7. package/dist/chunks/cli-version.constant-BBeYll5N.cjs +1 -0
  8. package/dist/chunks/{collect-translatable-strings-C3TWaO1V.cjs → collect-translatable-strings-GBVXMoaX.cjs} +1 -1
  9. package/dist/chunks/{collect-watch-inputs-Cexr5YYZ.cjs → collect-watch-inputs-CJVgCTo5.cjs} +1 -1
  10. package/dist/chunks/compile-application-translations-B4jILjGc.cjs +1 -0
  11. package/dist/chunks/{constants-Du9J-8Ug-CD8GTrut.cjs → constants-CemcuPi_-D7dbw2cv.cjs} +1 -1
  12. package/dist/chunks/{convert-to-label-D24GvvpW.cjs → convert-to-label-DH4ArWop.cjs} +1 -1
  13. package/dist/chunks/{create-http-status-error-Dd3336c8.cjs → create-http-status-error-C6gJS0JS.cjs} +1 -1
  14. package/dist/chunks/create-metadata-client-BRD2ys8z.cjs +6 -0
  15. package/dist/chunks/{create-pull-base-write-Cl1jfQ6l.cjs → create-pull-base-write-CX9yftCd.cjs} +1 -1
  16. package/dist/chunks/{create-rest-client-r3OA3fUu.cjs → create-rest-client-Cc5Cmakp.cjs} +17 -17
  17. package/dist/chunks/extract-manifest-from-file-mvb6OhWm.cjs +1 -0
  18. package/dist/chunks/{extract-source-translations-BLQ-XFuN.cjs → extract-source-translations-Bd_030qL.cjs} +1 -1
  19. package/dist/chunks/{fetch-metadata-inspection-BwJjaHCB.cjs → fetch-metadata-inspection-CAmEp-xl.cjs} +1 -1
  20. package/dist/chunks/{fetch-signed-in-identity-CWFlsW7e.cjs → fetch-signed-in-identity-b_LbRuL-.cjs} +1 -1
  21. package/dist/chunks/{fetch-workspace-id-DJFdCITG.cjs → fetch-workspace-id-C9kY0s84.cjs} +1 -1
  22. package/dist/chunks/format-body-BIv-9Sd5.cjs +1 -0
  23. package/dist/chunks/{format-data-value-C5itQm1i.cjs → format-data-value-C7Njc7Sb.cjs} +1 -1
  24. package/dist/chunks/{format-metadata-fields-BozY419E.cjs → format-metadata-fields-BOG2kj2h.cjs} +1 -1
  25. package/dist/chunks/{format-metadata-owner-C6CksDIK.cjs → format-metadata-owner-CyEMvoQr.cjs} +1 -1
  26. package/dist/chunks/format-progress-line-DgxG_7p2.cjs +1 -0
  27. package/dist/chunks/{generate-application-client-BApuJWQO.cjs → generate-application-client-BOLnv8nr.cjs} +1 -1
  28. package/dist/chunks/{get-app-plan-summary-F_MjZOGe.cjs → get-app-plan-summary-D1Dsd34P.cjs} +1 -1
  29. package/dist/chunks/{get-client-generation-skip-reason-B5f_gcok.cjs → get-client-generation-skip-reason-CUn0Y2Vu.cjs} +1 -1
  30. package/dist/chunks/{get-function-input-schema-GNk3NRLJ-oQ5Evald.cjs → get-function-input-schema-GNk3NRLJ-CWNFoyKh.cjs} +1 -1
  31. package/dist/chunks/{global-flags.constant-BPHQAhn7.cjs → global-flags.constant-0k222fHC.cjs} +1 -1
  32. package/dist/chunks/{is-access-token-expiring-DIimejBr.cjs → is-access-token-expiring-D-YfufId.cjs} +1 -1
  33. package/dist/chunks/{is-application-not-found-error-D0BAcKyX.cjs → is-application-not-found-error-4vnGlYbm.cjs} +1 -1
  34. package/dist/chunks/{is-exported-manifest-RF_O2ibz.cjs → is-exported-manifest-dsiWCcjx.cjs} +1 -1
  35. package/dist/chunks/{is-locale-catalog-Dzj6m_Xt.cjs → is-locale-catalog-CRn-mKHj.cjs} +1 -1
  36. package/dist/chunks/is-supported-locale-BOZxTj7r.cjs +1 -0
  37. package/dist/chunks/{locale-catalog-format-BT6ommA1.cjs → locale-catalog-format-rg5FMb7l.cjs} +2 -2
  38. package/dist/chunks/metadata-Vepr2xeA.cjs +1 -0
  39. package/dist/chunks/{metadata-page.constant-CnR03vnh.cjs → metadata-page.constant-thBSPIZT.cjs} +1 -1
  40. package/dist/chunks/{parse-api-url-C9MmGtLY.cjs → parse-api-url-CEfjRyid.cjs} +1 -1
  41. package/dist/chunks/{parse-app-export-BT6nM7Ki.cjs → parse-app-export-DUZ2dQJ8.cjs} +1 -1
  42. package/dist/chunks/{parse-extraction-locale-CM7sARBo.cjs → parse-extraction-locale-fg7K8vps.cjs} +1 -1
  43. package/dist/chunks/{parse-graphql-response-DbYu3YlQ.cjs → parse-graphql-response-DvoRiFPV.cjs} +1 -1
  44. package/dist/chunks/{parse-json-input-DaXTn_6C.cjs → parse-json-input-DE451WQG.cjs} +1 -1
  45. package/dist/chunks/{print-typescript-value-BoxeFXca.cjs → print-typescript-value-DaEFmMda.cjs} +1 -1
  46. package/dist/chunks/{pull-source-DNswr_80.cjs → pull-source-D9QUEAsK.cjs} +1 -1
  47. package/dist/chunks/{read-app-identity-CtO3wiSx.cjs → read-app-identity-DtEnxiEF.cjs} +1 -1
  48. package/dist/chunks/{read-application-identifier-B51ax_Q6.cjs → read-application-identifier-DyZcsUV4.cjs} +1 -1
  49. package/dist/chunks/{read-application-identity-Bx8B9Bel.cjs → read-application-identity-CMJ-W5D8.cjs} +1 -1
  50. package/dist/chunks/{read-config-LKYhSPOb.cjs → read-config-DdtXhdPp.cjs} +1 -1
  51. package/dist/chunks/{read-json-object-BONMjSVo.cjs → read-json-object-CgaXuNS0.cjs} +1 -1
  52. package/dist/chunks/{read-snapshot-file-ClIpemjz.cjs → read-snapshot-file-dvWjVexO.cjs} +1 -1
  53. package/dist/chunks/{read-source-identity-C4eKC14c.cjs → read-source-identity-Ca7QkuwC.cjs} +1 -1
  54. package/dist/chunks/{record-pull-base-CdTOndSf.cjs → record-pull-base-Dfqth7Uy.cjs} +1 -1
  55. package/dist/chunks/{record-typecheck-config-inputs-DcCY-_Z1.cjs → record-typecheck-config-inputs-DZy2PhMY.cjs} +1 -1
  56. package/dist/chunks/{request-oauth-tokens-CS79pVAp.cjs → request-oauth-tokens-BY5ew3aM.cjs} +1 -1
  57. package/dist/chunks/{resolve-app-project-BQnFOdLH.cjs → resolve-app-project-dftvbB2P.cjs} +1 -1
  58. package/dist/chunks/{resolve-command-target-CKYtQQPx.cjs → resolve-command-target-0k6iitOZ.cjs} +1 -1
  59. package/dist/chunks/{resolve-inside-sdk-Cc_y-RWT.cjs → resolve-inside-sdk-6M8jy9bi.cjs} +1 -1
  60. package/dist/chunks/{resolve-metadata-object-CRWbF9Ce.cjs → resolve-metadata-object-DzDTQF_T.cjs} +1 -1
  61. package/dist/chunks/{resolve-project-typescript-CZW_p97L.cjs → resolve-project-typescript-Cw2kvn6E.cjs} +1 -1
  62. package/dist/chunks/{resolve-request-url-BrqiqInn.cjs → resolve-request-url-Cnuxu_nj.cjs} +1 -1
  63. package/dist/chunks/{resolve-source-sdk-CGEJC-UH.cjs → resolve-source-sdk-B1Fxlsmt.cjs} +1 -1
  64. package/dist/chunks/{run-api-graphql-command-KlIMjpOY.cjs → run-api-graphql-command-CzQ4IH4l.cjs} +1 -1
  65. package/dist/chunks/{run-api-rest-command-W4gCU562.cjs → run-api-rest-command-BtXv11uz.cjs} +1 -1
  66. package/dist/chunks/{run-app-add-command-C6rIt02R.cjs → run-app-add-command-DsgrCsEl.cjs} +1 -1
  67. package/dist/chunks/{run-app-apply-command-BckNNni9.cjs → run-app-apply-command-X_XGAwRN.cjs} +1 -1
  68. package/dist/chunks/{run-app-build-command-DW0r-w2C.cjs → run-app-build-command--t8qRNsn.cjs} +1 -1
  69. package/dist/chunks/{run-app-dev-command-C3U-3OiV.cjs → run-app-dev-command-Cc-nhH2t.cjs} +1 -1
  70. package/dist/chunks/{run-app-exec-command-DNeCk5qs.cjs → run-app-exec-command-mdXCYmUn.cjs} +1 -1
  71. package/dist/chunks/{run-app-generate-client-command-HAgBNVFU.cjs → run-app-generate-client-command-3DMg-WyX.cjs} +1 -1
  72. package/dist/chunks/{run-app-init-command-dTbY28oS.cjs → run-app-init-command-BfS8IFmY.cjs} +1 -1
  73. package/dist/chunks/{run-app-install-command-BX30OsrQ.cjs → run-app-install-command-DMbwFvtE.cjs} +1 -1
  74. package/dist/chunks/{run-app-logs-command-CdAXR-XY.cjs → run-app-logs-command-B7_iDOj1.cjs} +1 -1
  75. package/dist/chunks/{run-app-operation--X_q0SAn.cjs → run-app-operation-DFCj0sG_.cjs} +1 -1
  76. package/dist/chunks/{run-app-plan-command-Bm1eXl7V.cjs → run-app-plan-command-Dh_DFA7H.cjs} +1 -1
  77. package/dist/chunks/{run-app-publish-command-Cdb3OlI2.cjs → run-app-publish-command-eJcYGb8S.cjs} +1 -1
  78. package/dist/chunks/{run-app-pull-command-DljZP4Ey.cjs → run-app-pull-command-BV2cMuLU.cjs} +1 -1
  79. package/dist/chunks/{run-app-translations-extract-command-Cc053lZ6.cjs → run-app-translations-extract-command-CBBbk_vJ.cjs} +1 -1
  80. package/dist/chunks/{run-app-typecheck-command-B7o20_BR.cjs → run-app-typecheck-command-pAHhuBGo.cjs} +1 -1
  81. package/dist/chunks/{run-app-uninstall-command-DJsWZtoI.cjs → run-app-uninstall-command-C5um6udQ.cjs} +1 -1
  82. package/dist/chunks/{run-auth-login-command-21pHzpvT.cjs → run-auth-login-command-C4VI44Xu.cjs} +1 -1
  83. package/dist/chunks/{run-auth-logout-command-DWOafJmL.cjs → run-auth-logout-command-5Tvqclki.cjs} +1 -1
  84. package/dist/chunks/{run-auth-status-command-BBAcouvs.cjs → run-auth-status-command-CLH1bylR.cjs} +1 -1
  85. package/dist/chunks/{run-cli-D1VWVXar.cjs → run-cli-BA0FsxzB.cjs} +1 -1
  86. package/dist/chunks/{run-commands-command-6x3V48LL.cjs → run-commands-command-CjzkTcrO.cjs} +1 -1
  87. package/dist/chunks/{run-data-get-command-DrgvC-zi.cjs → run-data-get-command-DoZIpf8O.cjs} +1 -1
  88. package/dist/chunks/{run-data-list-command-Cs8GAHbD.cjs → run-data-list-command-DAoplyqj.cjs} +1 -1
  89. package/dist/chunks/{run-doctor-command-BM4pkNY0.cjs → run-doctor-command-D8cpt7FI.cjs} +1 -1
  90. package/dist/chunks/{run-metadata-field-describe-command-CrmzNFh8.cjs → run-metadata-field-describe-command-BrZYIhjH.cjs} +1 -1
  91. package/dist/chunks/{run-metadata-field-list-command-B2CbERvZ.cjs → run-metadata-field-list-command-C9-pHXbx.cjs} +1 -1
  92. package/dist/chunks/{run-metadata-object-describe-command-PLt5ySLJ.cjs → run-metadata-object-describe-command-WFdGu1Iq.cjs} +1 -1
  93. package/dist/chunks/{run-metadata-object-list-command-BcnWKmgh.cjs → run-metadata-object-list-command-8UKU3cMW.cjs} +1 -1
  94. package/dist/chunks/{run-open-command-CzMO5wI4.cjs → run-open-command-B1pdHp36.cjs} +1 -1
  95. package/dist/chunks/{run-remote-list-command-37zf0rSp.cjs → run-remote-list-command-BRPcCOKx.cjs} +1 -1
  96. package/dist/chunks/{run-remote-remove-command-B-XUqYBY.cjs → run-remote-remove-command-CS6za2Pm.cjs} +1 -1
  97. package/dist/chunks/{run-remote-rename-command-Bmg3nZfB.cjs → run-remote-rename-command-BOqWQUR4.cjs} +1 -1
  98. package/dist/chunks/{run-remote-use-command-r2NUlgWw.cjs → run-remote-use-command-BANiokD-.cjs} +1 -1
  99. package/dist/chunks/{run-version-command-DfDcA927.cjs → run-version-command-C0xgcPP6.cjs} +1 -1
  100. package/dist/chunks/{select-target-CEy96CC9.cjs → select-target-CfuNLCQL.cjs} +1 -1
  101. package/dist/chunks/{sign-in-to-remote-again-9cHGpXda.cjs → sign-in-to-remote-again-DYCWIDa9.cjs} +1 -1
  102. package/dist/chunks/{sign-in-with-browser-StQ_Fkku.cjs → sign-in-with-browser-Ck4tOxtA.cjs} +1 -1
  103. package/dist/chunks/{to-public-target-T4zHrdLQ.cjs → to-public-target-C0POrVoG.cjs} +1 -1
  104. package/dist/chunks/{to-worker-output-diagnostics-BeJKIsDG.cjs → to-worker-output-diagnostics-Bt_acI26.cjs} +1 -1
  105. package/dist/chunks/{typecheck-application-DLdoLIDx.cjs → typecheck-application-DEO1SVdO.cjs} +1 -1
  106. package/dist/chunks/{update-config-CNOHxgkF.cjs → update-config-FzOzO3wZ.cjs} +1 -1
  107. package/dist/chunks/{utils-BEfQWzTA-z2Y1wZJq.cjs → utils-ZOESAfF8-ub6jPiZ-.cjs} +1 -1
  108. package/dist/chunks/{write-config-atomically-gr2Ldzm8.cjs → write-config-atomically-C-YMKq3P.cjs} +1 -1
  109. package/dist/cli.cjs +1 -1
  110. package/package.json +2 -2
  111. package/dist/chunks/application-VJqniwXy.cjs +0 -5
  112. package/dist/chunks/cli-version.constant-BJdY4dXs.cjs +0 -1
  113. package/dist/chunks/compile-application-translations-Dhfvrs__.cjs +0 -1
  114. package/dist/chunks/create-metadata-client-DEBMHFDo.cjs +0 -6
  115. package/dist/chunks/extract-manifest-from-file-D3w7Ampa.cjs +0 -1
  116. package/dist/chunks/format-body-CJyi3Ukr.cjs +0 -1
  117. package/dist/chunks/format-progress-line-C5nYDVHB.cjs +0 -1
  118. package/dist/chunks/is-supported-locale-C9iuFQ39.cjs +0 -1
  119. package/dist/chunks/metadata-BtOyR6x0.cjs +0 -1
@@ -1 +1 @@
1
- const e=require("./build-CX6FBrbu.cjs"),t=require("./style-BR52fK4V.cjs"),n=require("./get-config-path-C-D-QHuX.cjs"),r=require("./read-config-LKYhSPOb.cjs"),i=require("./get-credential-kind-JI9heHe2.cjs"),a=require("./credential-kind-labels.constant-CKdoQF8o.cjs"),o=require("./format-table-4drtI5sP.cjs");var s=e.t(),c=async()=>{let e=await r.t(n.t()),c=Object.entries(e.remotes).map(([t,n])=>({name:t,apiUrl:n.apiUrl,credentials:i.t(n),workspaceName:(0,s.isString)(n.workspaceName)?n.workspaceName:null,isDefault:t===e.defaultRemote})).sort((e,t)=>e.name.localeCompare(t.name));return c.length===0?{data:{remotes:c,defaultRemote:null},human:`No saved remotes. ${t.i(`Sign in with: `)}${t.r(`twenty auth login --url <url>`)}`}:{data:{remotes:c,defaultRemote:e.defaultRemote??null},human:o.t({rows:c,columns:[{header:` `,value:e=>e.isDefault?t.n(`green`,`●`):``},{header:`NAME`,value:e=>e.name},{header:`URL`,value:e=>e.apiUrl},{header:`AUTH`,value:e=>a.t[e.credentials]},{header:`WORKSPACE`,value:e=>e.workspaceName??``}]})}};exports.runRemoteListCommand=c;
1
+ const e=require("./build-CX6FBrbu.cjs"),t=require("./style-BR52fK4V.cjs"),n=require("./get-config-path-C-D-QHuX.cjs"),r=require("./read-config-DdtXhdPp.cjs"),i=require("./get-credential-kind-JI9heHe2.cjs"),a=require("./credential-kind-labels.constant-CKdoQF8o.cjs"),o=require("./format-table-4drtI5sP.cjs");var s=e.t(),c=async()=>{let e=await r.t(n.t()),c=Object.entries(e.remotes).map(([t,n])=>({name:t,apiUrl:n.apiUrl,credentials:i.t(n),workspaceName:(0,s.isString)(n.workspaceName)?n.workspaceName:null,isDefault:t===e.defaultRemote})).sort((e,t)=>e.name.localeCompare(t.name));return c.length===0?{data:{remotes:c,defaultRemote:null},human:`No saved remotes. ${t.i(`Sign in with: `)}${t.r(`twenty auth login --url <url>`)}`}:{data:{remotes:c,defaultRemote:e.defaultRemote??null},human:o.t({rows:c,columns:[{header:` `,value:e=>e.isDefault?t.n(`green`,`●`):``},{header:`NAME`,value:e=>e.name},{header:`URL`,value:e=>e.apiUrl},{header:`AUTH`,value:e=>a.t[e.credentials]},{header:`WORKSPACE`,value:e=>e.workspaceName??``}]})}};exports.runRemoteListCommand=c;
@@ -1,2 +1,2 @@
1
- const e=require("./read-command-values-uSJqBG_E.cjs"),t=require("./style-BR52fK4V.cjs"),n=require("./get-config-path-C-D-QHuX.cjs"),r=require("./find-remote-D48r20g0.cjs"),i=require("./update-config-CNOHxgkF.cjs");var a=async({arguments:a,signal:o})=>{let s=e.n(a,0)??``,c=await i.t({configPath:n.t(),signal:o,update:e=>{r.t(e,s);let{[s]:t,...n}=e.remotes,{defaultRemote:i,...a}=e,o=i===s;return{result:o,config:{...o?a:e,remotes:n}}}});return{data:{removed:s,wasDefault:c},human:[t.o(`Removed ${s}.`),...c?[t.i(` There is no default remote now. Pick one with: twenty remote use <name>`)]:[]].join(`
1
+ const e=require("./read-command-values-uSJqBG_E.cjs"),t=require("./style-BR52fK4V.cjs"),n=require("./get-config-path-C-D-QHuX.cjs"),r=require("./find-remote-D48r20g0.cjs"),i=require("./update-config-FzOzO3wZ.cjs");var a=async({arguments:a,signal:o})=>{let s=e.n(a,0)??``,c=await i.t({configPath:n.t(),signal:o,update:e=>{r.t(e,s);let{[s]:t,...n}=e.remotes,{defaultRemote:i,...a}=e,o=i===s;return{result:o,config:{...o?a:e,remotes:n}}}});return{data:{removed:s,wasDefault:c},human:[t.o(`Removed ${s}.`),...c?[t.i(` There is no default remote now. Pick one with: twenty remote use <name>`)]:[]].join(`
2
2
  `)}};exports.runRemoteRemoveCommand=a;
@@ -1 +1 @@
1
- const e=require("./cli-error-CSsayo0u.cjs"),t=require("./read-command-values-uSJqBG_E.cjs"),n=require("./style-BR52fK4V.cjs"),r=require("./get-config-path-C-D-QHuX.cjs"),i=require("./find-remote-D48r20g0.cjs"),a=require("./update-config-CNOHxgkF.cjs"),o=require("./validate-remote-name-w-qnr43w.cjs");var s=async({arguments:s,signal:c})=>{let l=t.n(s,0)??``,u=o.t(t.n(s,1)??``);return{data:{previousName:l,name:u,isDefault:await a.t({configPath:r.t(),signal:c,update:t=>{let n=i.t(t,l);if(Object.hasOwn(t.remotes,u))throw new e.t({code:`REMOTE_EXISTS`,exitCode:e.n.USAGE,message:`A remote named ${u} already exists.`,hint:`Pick another name, or remove it first: twenty remote remove ${u}`});let{[l]:r,...a}=t.remotes,o=t.defaultRemote===l;return{result:o,config:{...t,remotes:{...a,[u]:n},...o?{defaultRemote:u}:{}}}}})},human:n.o(`Renamed ${l} to ${u}.`)}};exports.runRemoteRenameCommand=s;
1
+ const e=require("./cli-error-CSsayo0u.cjs"),t=require("./read-command-values-uSJqBG_E.cjs"),n=require("./style-BR52fK4V.cjs"),r=require("./get-config-path-C-D-QHuX.cjs"),i=require("./find-remote-D48r20g0.cjs"),a=require("./update-config-FzOzO3wZ.cjs"),o=require("./validate-remote-name-w-qnr43w.cjs");var s=async({arguments:s,signal:c})=>{let l=t.n(s,0)??``,u=o.t(t.n(s,1)??``);return{data:{previousName:l,name:u,isDefault:await a.t({configPath:r.t(),signal:c,update:t=>{let n=i.t(t,l);if(Object.hasOwn(t.remotes,u))throw new e.t({code:`REMOTE_EXISTS`,exitCode:e.n.USAGE,message:`A remote named ${u} already exists.`,hint:`Pick another name, or remove it first: twenty remote remove ${u}`});let{[l]:r,...a}=t.remotes,o=t.defaultRemote===l;return{result:o,config:{...t,remotes:{...a,[u]:n},...o?{defaultRemote:u}:{}}}}})},human:n.o(`Renamed ${l} to ${u}.`)}};exports.runRemoteRenameCommand=s;
@@ -1 +1 @@
1
- const e=require("./read-command-values-uSJqBG_E.cjs"),t=require("./style-BR52fK4V.cjs"),n=require("./get-config-path-C-D-QHuX.cjs"),r=require("./find-remote-D48r20g0.cjs"),i=require("./update-config-CNOHxgkF.cjs");var a=async({arguments:a,signal:o})=>{let s=e.n(a,0)??``,c=await i.t({configPath:n.t(),signal:o,update:e=>({result:r.t(e,s),config:{...e,defaultRemote:s}})});return{data:{defaultRemote:s,apiUrl:c.apiUrl},human:t.o(`Default remote is now ${s} ${t.i(`(${c.apiUrl})`)}`)}};exports.runRemoteUseCommand=a;
1
+ const e=require("./read-command-values-uSJqBG_E.cjs"),t=require("./style-BR52fK4V.cjs"),n=require("./get-config-path-C-D-QHuX.cjs"),r=require("./find-remote-D48r20g0.cjs"),i=require("./update-config-FzOzO3wZ.cjs");var a=async({arguments:a,signal:o})=>{let s=e.n(a,0)??``,c=await i.t({configPath:n.t(),signal:o,update:e=>({result:r.t(e,s),config:{...e,defaultRemote:s}})});return{data:{defaultRemote:s,apiUrl:c.apiUrl},human:t.o(`Default remote is now ${s} ${t.i(`(${c.apiUrl})`)}`)}};exports.runRemoteUseCommand=a;
@@ -1 +1 @@
1
- const e=require("./style-BR52fK4V.cjs"),t=require("./cli-version.constant-BJdY4dXs.cjs");var n=async()=>{let n={version:t.t,node:process.versions.node,platform:process.platform,arch:process.arch};return{data:n,human:`twenty ${n.version} ${e.i(`(node ${n.node}, ${n.platform}-${n.arch})`)}`}};exports.runVersionCommand=n;
1
+ const e=require("./style-BR52fK4V.cjs"),t=require("./cli-version.constant-BBeYll5N.cjs");var n=async()=>{let n={version:t.t,node:process.versions.node,platform:process.platform,arch:process.arch};return{data:n,human:`twenty ${n.version} ${e.i(`(node ${n.node}, ${n.platform}-${n.arch})`)}`}};exports.runVersionCommand=n;
@@ -1 +1 @@
1
- const e=require("./build-CX6FBrbu.cjs"),t=require("./utils-BEfQWzTA-z2Y1wZJq.cjs"),n=require("./constants-Du9J-8Ug-CD8GTrut.cjs"),r=require("./cli-error-CSsayo0u.cjs"),i=require("./target-environment-variable.constant-D7z8AihP.cjs"),a=require("./find-remote-D48r20g0.cjs");var o=e.t(),s=e=>e.length<=1?e.join(``):`${e.slice(0,-1).join(`, `)} and ${e[e.length-1]}`,c=(e,t)=>{let n=e[t]?.trim();return(0,o.isNonEmptyString)(n)?n:void 0},l=(e,t)=>({source:`remote`,remoteName:t,remote:a.t(e,t)}),u=async({environment:e,remoteFlag:a,loadConfig:o,warn:u})=>{let d=c(e,i.t.REMOTE),f=c(e,i.t.API_URL),p=c(e,i.t.API_KEY);if(n.Vt(a)){let r=Object.values(i.t).filter(t=>n.Vt(c(e,t)));return t.r(r)&&u({code:`ENVIRONMENT_TARGET_IGNORED`,message:`Using remote ${a}. Ignoring ${s(r)}.`}),l(await o(),a)}if(n.Vt(d)){if(n.Vt(f)||n.Vt(p))throw new r.t({code:`CONFLICTING_TARGET`,exitCode:r.n.USAGE,message:`${i.t.REMOTE} cannot be combined with ${i.t.API_URL} or ${i.t.API_KEY}.`,hint:`Unset one of them, or choose with --remote.`});return l(await o(),d)}if(n.Vt(f)!==n.Vt(p)){let e=n.Vt(f)?i.t.API_KEY:i.t.API_URL;throw new r.t({code:`INCOMPLETE_TARGET`,exitCode:r.n.USAGE,message:`${e} is not set.`,hint:`Set both ${i.t.API_URL} and ${i.t.API_KEY}, or neither.`})}if(n.Vt(f)&&n.Vt(p))return{source:`environment`,apiUrl:f,apiKey:p};let m=await o();if(n.Vt(m.defaultRemote))return l(m,m.defaultRemote);throw new r.t({code:`TARGET_REQUIRED`,exitCode:r.n.USAGE,message:`No workspace selected.`,hint:`Sign in with: twenty auth login --url <url>. Or set ${i.t.API_URL} and ${i.t.API_KEY}.`})};Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return u}});
1
+ const e=require("./build-CX6FBrbu.cjs"),t=require("./utils-ZOESAfF8-ub6jPiZ-.cjs"),n=require("./constants-CemcuPi_-D7dbw2cv.cjs"),r=require("./cli-error-CSsayo0u.cjs"),i=require("./target-environment-variable.constant-D7z8AihP.cjs"),a=require("./find-remote-D48r20g0.cjs");var o=e.t(),s=e=>e.length<=1?e.join(``):`${e.slice(0,-1).join(`, `)} and ${e[e.length-1]}`,c=(e,t)=>{let n=e[t]?.trim();return(0,o.isNonEmptyString)(n)?n:void 0},l=(e,t)=>({source:`remote`,remoteName:t,remote:a.t(e,t)}),u=async({environment:e,remoteFlag:a,loadConfig:o,warn:u})=>{let d=c(e,i.t.REMOTE),f=c(e,i.t.API_URL),p=c(e,i.t.API_KEY);if(n.Vt(a)){let r=Object.values(i.t).filter(t=>n.Vt(c(e,t)));return t.r(r)&&u({code:`ENVIRONMENT_TARGET_IGNORED`,message:`Using remote ${a}. Ignoring ${s(r)}.`}),l(await o(),a)}if(n.Vt(d)){if(n.Vt(f)||n.Vt(p))throw new r.t({code:`CONFLICTING_TARGET`,exitCode:r.n.USAGE,message:`${i.t.REMOTE} cannot be combined with ${i.t.API_URL} or ${i.t.API_KEY}.`,hint:`Unset one of them, or choose with --remote.`});return l(await o(),d)}if(n.Vt(f)!==n.Vt(p)){let e=n.Vt(f)?i.t.API_KEY:i.t.API_URL;throw new r.t({code:`INCOMPLETE_TARGET`,exitCode:r.n.USAGE,message:`${e} is not set.`,hint:`Set both ${i.t.API_URL} and ${i.t.API_KEY}, or neither.`})}if(n.Vt(f)&&n.Vt(p))return{source:`environment`,apiUrl:f,apiKey:p};let m=await o();if(n.Vt(m.defaultRemote))return l(m,m.defaultRemote);throw new r.t({code:`TARGET_REQUIRED`,exitCode:r.n.USAGE,message:`No workspace selected.`,hint:`Sign in with: twenty auth login --url <url>. Or set ${i.t.API_URL} and ${i.t.API_KEY}.`})};Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return u}});
@@ -1 +1 @@
1
- const e=require("./constants-Du9J-8Ug-CD8GTrut.cjs"),t=require("./cli-error-CSsayo0u.cjs"),n=require("./parse-api-url-C9MmGtLY.cjs"),r=require("./confirm-in-terminal-BxEM5lxE.cjs"),i=require("./read-config-LKYhSPOb.cjs"),a=require("./get-credential-kind-JI9heHe2.cjs"),o=require("./sign-in-with-browser-StQ_Fkku.cjs"),s=require("./update-config-CNOHxgkF.cjs"),c=require("./fetch-signed-in-identity-CWFlsW7e.cjs");var l=(r,i,o)=>{let s=Object.hasOwn(r.remotes,o)?r.remotes[o]:void 0;if(!e.Vt(s)||a.t(s)!==`oauth`||s.twentyCLIAccessToken!==i.bearerToken||n.t({rawUrl:s.apiUrl,sourceName:o})!==i.apiUrl)throw new t.t({code:`CONFLICT`,exitCode:t.n.CONFLICT,message:`Remote ${o} changed while signing in again. No credentials were saved.`,hint:`Run the command again.`});return s},u=async({target:e,remoteName:t,error:n,configPath:a,output:u,signal:d})=>{if(l(await i.t(a),e,t),!await r.t({question:`Your session on ${t} is no longer valid. Sign in again now?`,signal:d}))throw n;let f=await o.t({apiUrl:e.apiUrl,output:u,signal:d}),p={...e,bearerToken:f.accessToken};return await c.t({target:p,signal:d}),await s.t({configPath:a,signal:d,update:n=>{let r=l(n,e,t);return{result:void 0,config:{...n,remotes:{...n.remotes,[t]:o.n({remote:r,credentials:{kind:`oauth`,...f}})}}}}}),p};exports.signInToRemoteAgain=u;
1
+ const e=require("./constants-CemcuPi_-D7dbw2cv.cjs"),t=require("./cli-error-CSsayo0u.cjs"),n=require("./parse-api-url-CEfjRyid.cjs"),r=require("./confirm-in-terminal-BxEM5lxE.cjs"),i=require("./read-config-DdtXhdPp.cjs"),a=require("./get-credential-kind-JI9heHe2.cjs"),o=require("./sign-in-with-browser-Ck4tOxtA.cjs"),s=require("./update-config-FzOzO3wZ.cjs"),c=require("./fetch-signed-in-identity-b_LbRuL-.cjs");var l=(r,i,o)=>{let s=Object.hasOwn(r.remotes,o)?r.remotes[o]:void 0;if(!e.Vt(s)||a.t(s)!==`oauth`||s.twentyCLIAccessToken!==i.bearerToken||n.t({rawUrl:s.apiUrl,sourceName:o})!==i.apiUrl)throw new t.t({code:`CONFLICT`,exitCode:t.n.CONFLICT,message:`Remote ${o} changed while signing in again. No credentials were saved.`,hint:`Run the command again.`});return s},u=async({target:e,remoteName:t,error:n,configPath:a,output:u,signal:d})=>{if(l(await i.t(a),e,t),!await r.t({question:`Your session on ${t} is no longer valid. Sign in again now?`,signal:d}))throw n;let f=await o.t({apiUrl:e.apiUrl,output:u,signal:d}),p={...e,bearerToken:f.accessToken};return await c.t({target:p,signal:d}),await s.t({configPath:a,signal:d,update:n=>{let r=l(n,e,t);return{result:void 0,config:{...n,remotes:{...n.remotes,[t]:o.n({remote:r,credentials:{kind:`oauth`,...f}})}}}}}),p};exports.signInToRemoteAgain=u;
@@ -1 +1 @@
1
- const e=require("./build-CX6FBrbu.cjs"),t=require("./constants-Du9J-8Ug-CD8GTrut.cjs"),n=require("./cli-error-CSsayo0u.cjs"),r=require("./oauth-timing.constant-BClMQcKn.cjs"),i=require("./request-oauth-tokens-CS79pVAp.cjs"),a=require("./open-browser-LPuVspT7.cjs");let o=require("node:http"),s=require("node:crypto");var c=({remote:e,credentials:n})=>{let{apiKey:r,twentyCLIAccessToken:i,twentyCLIRefreshToken:a,twentyCLIRegistrationClientId:o,...s}=e;return{...s,...n.kind===`apiKey`?{apiKey:n.apiKey}:{twentyCLIAccessToken:n.accessToken,twentyCLIRegistrationClientId:n.clientId,...t.Vt(n.refreshToken)?{twentyCLIRefreshToken:n.refreshToken}:{}}}},l=()=>{let e=(0,s.randomBytes)(32).toString(`base64url`);return{codeVerifier:e,codeChallenge:(0,s.createHash)(`sha256`).update(e).digest(`base64url`)}},u=e.t(),d=e=>{let n=e.address();if(!t.Vt(n)||(0,u.isString)(n))throw Error(`The server is not listening on a TCP port.`);return n.port},f=`/callback`,p=e=>`<!doctype html><meta charset="utf-8"><title>Twenty CLI</title><body style="margin:0;display:grid;place-items:center;min-height:100vh;font-family:system-ui,sans-serif"><p>${e}</p></body>`,m=e=>new n.t({code:`OAUTH_FAILED`,message:e,hint:`Run twenty auth login again.`}),h=({url:e,state:n,issuer:r,isIssuerInResponse:i})=>{let a=e.searchParams.get(`iss`);if(i&&!t.Vt(a))throw m(`The sign-in response does not say which server sent it.`);if(t.Vt(a)&&a!==r)throw m(`The sign-in response came from ${a} instead of ${r}.`);if(e.searchParams.get(`state`)!==n)throw m(`The sign-in response does not match this login attempt.`);let o=e.searchParams.get(`error`);if((0,u.isNonEmptyString)(o))throw m(o===`access_denied`?`Sign-in was declined in the browser.`:`Sign-in failed: ${e.searchParams.get(`error_description`)??o}`);let s=e.searchParams.get(`code`);if(!(0,u.isNonEmptyString)(s))throw m(`The sign-in response has no authorization code.`);return s},g=async({state:e,issuer:t,isIssuerInResponse:i,signal:a})=>{let{promise:s,resolve:c,reject:l}=Promise.withResolvers();s.catch(()=>void 0);let u=(0,o.createServer)((n,r)=>{let a=new URL(n.url??`/`,`http://127.0.0.1`);if(a.pathname!==f){r.writeHead(404,{Connection:`close`}).end();return}try{let n=h({url:a,state:e,issuer:t,isIssuerInResponse:i});r.writeHead(200,{"Content-Type":`text/html; charset=utf-8`,Connection:`close`}).end(p(`Signed in. You can close this tab and go back to the terminal.`)),c(n)}catch(e){r.writeHead(400,{"Content-Type":`text/html; charset=utf-8`,Connection:`close`}).end(p(`Sign-in did not complete. Go back to the terminal for details.`)),l(e)}});await new Promise((e,t)=>{u.once(`error`,t),u.listen(0,`127.0.0.1`,()=>e())});let m=d(u),g=setTimeout(()=>l(new n.t({code:`TIMEOUT`,message:`Sign-in was not completed within ${r.t.SIGN_IN_TIMEOUT_MILLISECONDS/6e4} minutes.`,hint:`Run twenty auth login again.`})),r.t.SIGN_IN_TIMEOUT_MILLISECONDS),_=()=>l(a.reason),v=()=>{clearTimeout(g),a.removeEventListener(`abort`,_),u.closeAllConnections(),u.close()};return a.aborted&&(v(),a.throwIfAborted()),a.addEventListener(`abort`,_,{once:!0}),{redirectUri:`http://127.0.0.1:${m}${f}`,waitForCode:()=>s,close:v}},_=async({apiUrl:e,output:t,signal:n})=>{let r=await i.n({apiUrl:e,signal:n}),{codeVerifier:o,codeChallenge:c}=l(),u=(0,s.randomBytes)(16).toString(`base64url`),d=await g({state:u,issuer:r.issuer,isIssuerInResponse:r.isIssuerInResponse,signal:n});try{let s=new URL(r.authorizationEndpoint);s.searchParams.set(`response_type`,`code`),s.searchParams.set(`client_id`,r.clientId),s.searchParams.set(`code_challenge`,c),s.searchParams.set(`code_challenge_method`,`S256`),s.searchParams.set(`redirect_uri`,d.redirectUri),s.searchParams.set(`state`,u),t.progress({message:`Opening your browser to sign in to ${new URL(e).host}…`}),a.t(s.href),t.progress({message:`If nothing opens, visit: ${s.href}`}),t.progress({message:`Waiting for you to approve in the browser. Press Ctrl+C to cancel.`});let l=await d.waitForCode();return{...await i.t({apiUrl:e,tokenEndpoint:r.tokenEndpoint,parameters:{grant_type:`authorization_code`,code:l,code_verifier:o,redirect_uri:d.redirectUri,client_id:r.clientId},signal:n}),clientId:r.clientId}}finally{d.close()}};Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return _}});
1
+ const e=require("./build-CX6FBrbu.cjs"),t=require("./constants-CemcuPi_-D7dbw2cv.cjs"),n=require("./cli-error-CSsayo0u.cjs"),r=require("./oauth-timing.constant-BClMQcKn.cjs"),i=require("./request-oauth-tokens-BY5ew3aM.cjs"),a=require("./open-browser-LPuVspT7.cjs");let o=require("node:http"),s=require("node:crypto");var c=({remote:e,credentials:n})=>{let{apiKey:r,twentyCLIAccessToken:i,twentyCLIRefreshToken:a,twentyCLIRegistrationClientId:o,...s}=e;return{...s,...n.kind===`apiKey`?{apiKey:n.apiKey}:{twentyCLIAccessToken:n.accessToken,twentyCLIRegistrationClientId:n.clientId,...t.Vt(n.refreshToken)?{twentyCLIRefreshToken:n.refreshToken}:{}}}},l=()=>{let e=(0,s.randomBytes)(32).toString(`base64url`);return{codeVerifier:e,codeChallenge:(0,s.createHash)(`sha256`).update(e).digest(`base64url`)}},u=e.t(),d=e=>{let n=e.address();if(!t.Vt(n)||(0,u.isString)(n))throw Error(`The server is not listening on a TCP port.`);return n.port},f=`/callback`,p=e=>`<!doctype html><meta charset="utf-8"><title>Twenty CLI</title><body style="margin:0;display:grid;place-items:center;min-height:100vh;font-family:system-ui,sans-serif"><p>${e}</p></body>`,m=e=>new n.t({code:`OAUTH_FAILED`,message:e,hint:`Run twenty auth login again.`}),h=({url:e,state:n,issuer:r,isIssuerInResponse:i})=>{let a=e.searchParams.get(`iss`);if(i&&!t.Vt(a))throw m(`The sign-in response does not say which server sent it.`);if(t.Vt(a)&&a!==r)throw m(`The sign-in response came from ${a} instead of ${r}.`);if(e.searchParams.get(`state`)!==n)throw m(`The sign-in response does not match this login attempt.`);let o=e.searchParams.get(`error`);if((0,u.isNonEmptyString)(o))throw m(o===`access_denied`?`Sign-in was declined in the browser.`:`Sign-in failed: ${e.searchParams.get(`error_description`)??o}`);let s=e.searchParams.get(`code`);if(!(0,u.isNonEmptyString)(s))throw m(`The sign-in response has no authorization code.`);return s},g=async({state:e,issuer:t,isIssuerInResponse:i,signal:a})=>{let{promise:s,resolve:c,reject:l}=Promise.withResolvers();s.catch(()=>void 0);let u=(0,o.createServer)((n,r)=>{let a=new URL(n.url??`/`,`http://127.0.0.1`);if(a.pathname!==f){r.writeHead(404,{Connection:`close`}).end();return}try{let n=h({url:a,state:e,issuer:t,isIssuerInResponse:i});r.writeHead(200,{"Content-Type":`text/html; charset=utf-8`,Connection:`close`}).end(p(`Signed in. You can close this tab and go back to the terminal.`)),c(n)}catch(e){r.writeHead(400,{"Content-Type":`text/html; charset=utf-8`,Connection:`close`}).end(p(`Sign-in did not complete. Go back to the terminal for details.`)),l(e)}});await new Promise((e,t)=>{u.once(`error`,t),u.listen(0,`127.0.0.1`,()=>e())});let m=d(u),g=setTimeout(()=>l(new n.t({code:`TIMEOUT`,message:`Sign-in was not completed within ${r.t.SIGN_IN_TIMEOUT_MILLISECONDS/6e4} minutes.`,hint:`Run twenty auth login again.`})),r.t.SIGN_IN_TIMEOUT_MILLISECONDS),_=()=>l(a.reason),v=()=>{clearTimeout(g),a.removeEventListener(`abort`,_),u.closeAllConnections(),u.close()};return a.aborted&&(v(),a.throwIfAborted()),a.addEventListener(`abort`,_,{once:!0}),{redirectUri:`http://127.0.0.1:${m}${f}`,waitForCode:()=>s,close:v}},_=async({apiUrl:e,output:t,signal:n})=>{let r=await i.n({apiUrl:e,signal:n}),{codeVerifier:o,codeChallenge:c}=l(),u=(0,s.randomBytes)(16).toString(`base64url`),d=await g({state:u,issuer:r.issuer,isIssuerInResponse:r.isIssuerInResponse,signal:n});try{let s=new URL(r.authorizationEndpoint);s.searchParams.set(`response_type`,`code`),s.searchParams.set(`client_id`,r.clientId),s.searchParams.set(`code_challenge`,c),s.searchParams.set(`code_challenge_method`,`S256`),s.searchParams.set(`redirect_uri`,d.redirectUri),s.searchParams.set(`state`,u),t.progress({message:`Opening your browser to sign in to ${new URL(e).host}…`}),a.t(s.href),t.progress({message:`If nothing opens, visit: ${s.href}`}),t.progress({message:`Waiting for you to approve in the browser. Press Ctrl+C to cancel.`});let l=await d.waitForCode();return{...await i.t({apiUrl:e,tokenEndpoint:r.tokenEndpoint,parameters:{grant_type:`authorization_code`,code:l,code_verifier:o,redirect_uri:d.redirectUri,client_id:r.clientId},signal:n}),clientId:r.clientId}}finally{d.close()}};Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return _}});
@@ -1 +1 @@
1
- const e=require("./constants-Du9J-8Ug-CD8GTrut.cjs");var t=({apiUrl:t,source:n,remoteName:r})=>({...e.Vt(r)?{remote:r}:{},apiUrl:t,source:n});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return t}});
1
+ const e=require("./constants-CemcuPi_-D7dbw2cv.cjs");var t=({apiUrl:t,source:n,remoteName:r})=>({...e.Vt(r)?{remote:r}:{},apiUrl:t,source:n});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return t}});
@@ -1,2 +1,2 @@
1
- const e=require("./build-CX6FBrbu.cjs"),t=require("./constants-Du9J-8Ug-CD8GTrut.cjs"),n=require("./cli-error-CSsayo0u.cjs"),r=require("./target-environment-variable.constant-D7z8AihP.cjs"),i=require("./create-cancelled-error-DgrNfOv2.cjs"),a=require("./style-BR52fK4V.cjs");let o=require("node:path"),s=require("node:fs"),c=require("node:child_process");var l=({severity:e,code:n,message:r,file:i,line:o,column:s})=>{let c=[t.Vt(i)?[i,o,s].filter(t.Vt).join(`:`):void 0,a.i(n,process.stderr),r].filter(t.Vt).join(` `);return e===`error`?a.a(c):a.s(c)},u=e.t(),d=e=>!t.Vt(e)||(0,u.isString)(e),f=e=>!t.Vt(e)||(0,u.isNumber)(e),p=e=>t.p(e)&&(e.severity===`error`||e.severity===`warning`)&&(0,u.isString)(e.code)&&(0,u.isString)(e.message)&&d(e.file)&&f(e.line)&&f(e.column),m=e=>t.p(e)&&(0,u.isString)(e.path)&&(0,u.isString)(e.role)&&(0,u.isString)(e.sourcePath)&&(0,u.isNumber)(e.size)&&(0,u.isString)(e.sha256),h=()=>new n.t({code:`WORKER_FAILED`,message:`The app worker returned a result this CLI cannot read.`,hint:`Check that the app and the CLI use compatible versions.`}),g=e=>{if(!(!t.p(e)||!(0,u.isString)(e.buildId)||!d(e.directory)||!(0,u.isString)(e.contentHash)||!t.p(e.application)||!(0,u.isString)(e.application.universalIdentifier)||!(0,u.isString)(e.application.name)||!(0,u.isString)(e.application.displayName)||!(0,u.isString)(e.manifestFormat)||!t.p(e.manifest)||!(0,u.isArray)(e.files)||!e.files.every(m)))return{data:{buildId:e.buildId,...(0,u.isString)(e.directory)?{directory:e.directory}:{},contentHash:e.contentHash,application:{universalIdentifier:e.application.universalIdentifier,name:e.application.name,displayName:e.application.displayName},manifestFormat:e.manifestFormat,manifest:e.manifest,files:e.files}}},_=e=>(0,u.isNull)(e)?{data:null}:void 0,v=({value:e,parseData:n})=>{if(!t.p(e)||!(0,u.isArray)(e.diagnostics)||!e.diagnostics.every(p))throw h();let r=e.diagnostics;if(e.success===!0){let i=n(e.data);if(!t.Vt(i))throw h();return{success:!0,data:i.data,diagnostics:r}}if(e.success===!1&&t.p(e.error)&&(0,u.isString)(e.error.code)&&(0,u.isString)(e.error.message))return{success:!1,error:{code:e.error.code,message:e.error.message,...(0,u.isString)(e.error.hint)?{hint:e.error.hint}:{},...t.p(e.error.details)?{details:e.error.details}:{}},diagnostics:r};throw h()},y={CANCEL_GRACE_MILLISECONDS:3e3,OUTPUT_LIMIT_BYTES:64*1024},b=new Set([...Object.values(r.t),`TWENTY_APP_ACCESS_TOKEN`,`TWENTY_APP_APPLICATION_ACCESS_TOKEN`]),x=/^TWENTY_.*(TOKEN|KEY|SECRET|PASSWORD)$/,S=e=>Object.fromEntries(Object.entries(e).filter(([e])=>!b.has(e)&&!x.test(e))),C=e=>{let t=Buffer.alloc(e),n=0,r=!1;return{add:i=>{let a=i.copy(t,n,0,e-n);n+=a,r||=a<i.length},read:()=>({text:t.toString(`utf8`,0,n),isTruncated:r})}},w=()=>({modulePath:(0,o.join)((0,o.dirname)((0,s.realpathSync)(process.argv[1]??``)),`app-worker.cjs`),execArgv:[]}),T=e=>t.p(e)&&(e.type===`result`&&`result`in e&&(e.isSnapshotHeld===!0||e.isSnapshotHeld===!1)||e.type===`released`&&`release`in e||e.type===`failure`&&(0,u.isString)(e.message)&&(!t.Vt(e.code)||(0,u.isString)(e.code))&&(!t.Vt(e.hint)||(0,u.isString)(e.hint))&&(!t.Vt(e.details)||t.p(e.details))),E=async({request:e,signal:r,useHeldSnapshot:a})=>{r.throwIfAborted();let{modulePath:o,execArgv:s}=w(),l=(0,c.fork)(o,[],{cwd:e.appPath,env:S(process.env),execArgv:s,serialization:`json`,stdio:[`ignore`,`pipe`,`pipe`,`ipc`]}),u=C(y.OUTPUT_LIMIT_BYTES),d=C(y.OUTPUT_LIMIT_BYTES);return l.stdout?.on(`data`,u.add),l.stderr?.on(`data`,d.add),new Promise((o,s)=>{let c,f,p,m,h,g=!1,_=()=>{let e=u.read(),t=d.read();return{stdout:e.text,stderr:t.text,isTruncated:e.isTruncated||t.isTruncated}},v=e=>{l.connected&&l.send(e),h=setTimeout(()=>l.kill(`SIGKILL`),y.CANCEL_GRACE_MILLISECONDS)},b=()=>v({type:`cancel`}),x=e=>{g||(g=!0,r.removeEventListener(`abort`,b),clearTimeout(h),e())},S=e=>{r.removeEventListener(`abort`,b),clearTimeout(h),m=(t.Vt(a)?a({result:e.result,watchInputs:e.watchInputs,output:_()}):Promise.resolve()).then(()=>({isSuccessful:!0}),e=>({isSuccessful:!1,error:e})).finally(()=>v({type:`release`}))},C=({exitCode:e,exitSignal:a,heldOutcome:l})=>x(()=>{let u=_();if(t.Vt(l)&&!l.isSuccessful){s(l.error);return}if(t.Vt(c)){o({result:c.result,watchInputs:c.watchInputs,release:c.isSnapshotHeld?p?.release:c.release,isSnapshotHeld:c.isSnapshotHeld,output:u});return}if(r.aborted){s(i.t());return}let d=t.Vt(a)?`signal ${a}`:`exit code ${e}`;s(new n.t({code:`WORKER_FAILED`,message:t.Vt(f)?`The app worker failed: ${f.message}`:`The app worker stopped before finishing (${d}). App code or a dependency may have exited the process.`,hint:f?.hint,details:{...f?.details,workerErrorCode:f?.code,exitCode:e,signal:a,output:u}}))});r.addEventListener(`abort`,b,{once:!0}),l.on(`message`,e=>{if(T(e)){if(e.type===`released`){p=e;return}if(e.type===`failure`){f=e;return}c=e,e.isSnapshotHeld&&S(e)}}),l.on(`error`,e=>x(()=>s(new n.t({code:`WORKER_FAILED`,message:`The app worker could not run: ${e.message}`})))),l.on(`close`,(e,n)=>{if(!t.Vt(m)){C({exitCode:e,exitSignal:n});return}m.then(t=>C({exitCode:e,exitSignal:n,heldOutcome:t})).catch(e=>x(()=>s(e)))}),l.send(e)})},D=e=>[[`stdout`,e.stdout],[`stderr`,e.stderr]].filter(([,e])=>(0,u.isNonEmptyString)(e.trim())).map(([t,n])=>({severity:`warning`,code:`PROJECT_OUTPUT`,message:`The app or twenty-sdk wrote to ${t}:\n${n.trimEnd()}${e.isTruncated?`
1
+ const e=require("./build-CX6FBrbu.cjs"),t=require("./constants-CemcuPi_-D7dbw2cv.cjs"),n=require("./cli-error-CSsayo0u.cjs"),r=require("./target-environment-variable.constant-D7z8AihP.cjs"),i=require("./create-cancelled-error-DgrNfOv2.cjs"),a=require("./style-BR52fK4V.cjs");let o=require("node:path"),s=require("node:fs"),c=require("node:child_process");var l=({severity:e,code:n,message:r,file:i,line:o,column:s})=>{let c=[t.Vt(i)?[i,o,s].filter(t.Vt).join(`:`):void 0,a.i(n,process.stderr),r].filter(t.Vt).join(` `);return e===`error`?a.a(c):a.s(c)},u=e.t(),d=e=>!t.Vt(e)||(0,u.isString)(e),f=e=>!t.Vt(e)||(0,u.isNumber)(e),p=e=>t.p(e)&&(e.severity===`error`||e.severity===`warning`)&&(0,u.isString)(e.code)&&(0,u.isString)(e.message)&&d(e.file)&&f(e.line)&&f(e.column),m=e=>t.p(e)&&(0,u.isString)(e.path)&&(0,u.isString)(e.role)&&(0,u.isString)(e.sourcePath)&&(0,u.isNumber)(e.size)&&(0,u.isString)(e.sha256),h=()=>new n.t({code:`WORKER_FAILED`,message:`The app worker returned a result this CLI cannot read.`,hint:`Check that the app and the CLI use compatible versions.`}),g=e=>{if(!(!t.p(e)||!(0,u.isString)(e.buildId)||!d(e.directory)||!(0,u.isString)(e.contentHash)||!t.p(e.application)||!(0,u.isString)(e.application.universalIdentifier)||!(0,u.isString)(e.application.name)||!(0,u.isString)(e.application.displayName)||!(0,u.isString)(e.manifestFormat)||!t.p(e.manifest)||!(0,u.isArray)(e.files)||!e.files.every(m)))return{data:{buildId:e.buildId,...(0,u.isString)(e.directory)?{directory:e.directory}:{},contentHash:e.contentHash,application:{universalIdentifier:e.application.universalIdentifier,name:e.application.name,displayName:e.application.displayName},manifestFormat:e.manifestFormat,manifest:e.manifest,files:e.files}}},_=e=>(0,u.isNull)(e)?{data:null}:void 0,v=({value:e,parseData:n})=>{if(!t.p(e)||!(0,u.isArray)(e.diagnostics)||!e.diagnostics.every(p))throw h();let r=e.diagnostics;if(e.success===!0){let i=n(e.data);if(!t.Vt(i))throw h();return{success:!0,data:i.data,diagnostics:r}}if(e.success===!1&&t.p(e.error)&&(0,u.isString)(e.error.code)&&(0,u.isString)(e.error.message))return{success:!1,error:{code:e.error.code,message:e.error.message,...(0,u.isString)(e.error.hint)?{hint:e.error.hint}:{},...t.p(e.error.details)?{details:e.error.details}:{}},diagnostics:r};throw h()},y={CANCEL_GRACE_MILLISECONDS:3e3,OUTPUT_LIMIT_BYTES:64*1024},b=new Set([...Object.values(r.t),`TWENTY_APP_ACCESS_TOKEN`,`TWENTY_APP_APPLICATION_ACCESS_TOKEN`]),x=/^TWENTY_.*(TOKEN|KEY|SECRET|PASSWORD)$/,S=e=>Object.fromEntries(Object.entries(e).filter(([e])=>!b.has(e)&&!x.test(e))),C=e=>{let t=Buffer.alloc(e),n=0,r=!1;return{add:i=>{let a=i.copy(t,n,0,e-n);n+=a,r||=a<i.length},read:()=>({text:t.toString(`utf8`,0,n),isTruncated:r})}},w=()=>({modulePath:(0,o.join)((0,o.dirname)((0,s.realpathSync)(process.argv[1]??``)),`app-worker.cjs`),execArgv:[]}),T=e=>t.p(e)&&(e.type===`result`&&`result`in e&&(e.isSnapshotHeld===!0||e.isSnapshotHeld===!1)||e.type===`released`&&`release`in e||e.type===`failure`&&(0,u.isString)(e.message)&&(!t.Vt(e.code)||(0,u.isString)(e.code))&&(!t.Vt(e.hint)||(0,u.isString)(e.hint))&&(!t.Vt(e.details)||t.p(e.details))),E=async({request:e,signal:r,useHeldSnapshot:a})=>{r.throwIfAborted();let{modulePath:o,execArgv:s}=w(),l=(0,c.fork)(o,[],{cwd:e.appPath,env:S(process.env),execArgv:s,serialization:`json`,stdio:[`ignore`,`pipe`,`pipe`,`ipc`]}),u=C(y.OUTPUT_LIMIT_BYTES),d=C(y.OUTPUT_LIMIT_BYTES);return l.stdout?.on(`data`,u.add),l.stderr?.on(`data`,d.add),new Promise((o,s)=>{let c,f,p,m,h,g=!1,_=()=>{let e=u.read(),t=d.read();return{stdout:e.text,stderr:t.text,isTruncated:e.isTruncated||t.isTruncated}},v=e=>{l.connected&&l.send(e),h=setTimeout(()=>l.kill(`SIGKILL`),y.CANCEL_GRACE_MILLISECONDS)},b=()=>v({type:`cancel`}),x=e=>{g||(g=!0,r.removeEventListener(`abort`,b),clearTimeout(h),e())},S=e=>{r.removeEventListener(`abort`,b),clearTimeout(h),m=(t.Vt(a)?a({result:e.result,watchInputs:e.watchInputs,output:_()}):Promise.resolve()).then(()=>({isSuccessful:!0}),e=>({isSuccessful:!1,error:e})).finally(()=>v({type:`release`}))},C=({exitCode:e,exitSignal:a,heldOutcome:l})=>x(()=>{let u=_();if(t.Vt(l)&&!l.isSuccessful){s(l.error);return}if(t.Vt(c)){o({result:c.result,watchInputs:c.watchInputs,release:c.isSnapshotHeld?p?.release:c.release,isSnapshotHeld:c.isSnapshotHeld,output:u});return}if(r.aborted){s(i.t());return}let d=t.Vt(a)?`signal ${a}`:`exit code ${e}`;s(new n.t({code:`WORKER_FAILED`,message:t.Vt(f)?`The app worker failed: ${f.message}`:`The app worker stopped before finishing (${d}). App code or a dependency may have exited the process.`,hint:f?.hint,details:{...f?.details,workerErrorCode:f?.code,exitCode:e,signal:a,output:u}}))});r.addEventListener(`abort`,b,{once:!0}),l.on(`message`,e=>{if(T(e)){if(e.type===`released`){p=e;return}if(e.type===`failure`){f=e;return}c=e,e.isSnapshotHeld&&S(e)}}),l.on(`error`,e=>x(()=>s(new n.t({code:`WORKER_FAILED`,message:`The app worker could not run: ${e.message}`})))),l.on(`close`,(e,n)=>{if(!t.Vt(m)){C({exitCode:e,exitSignal:n});return}m.then(t=>C({exitCode:e,exitSignal:n,heldOutcome:t})).catch(e=>x(()=>s(e)))}),l.send(e)})},D=e=>[[`stdout`,e.stdout],[`stderr`,e.stderr]].filter(([,e])=>(0,u.isNonEmptyString)(e.trim())).map(([t,n])=>({severity:`warning`,code:`PROJECT_OUTPUT`,message:`The app or twenty-sdk wrote to ${t}:\n${n.trimEnd()}${e.isTruncated?`
2
2
  (output truncated)`:``}`}));Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return D}});
@@ -1,2 +1,2 @@
1
- const e=require("./build-CX6FBrbu.cjs"),t=require("./constants-Du9J-8Ug-CD8GTrut.cjs"),n=require("./validate-app-path-Dau-PC0a.cjs"),r=require("./collect-watch-inputs-Cexr5YYZ.cjs"),i=require("./resolve-project-typescript-CZW_p97L.cjs"),a=require("./cli-error-CSsayo0u.cjs"),o=require("./get-tooling-error-context-C69TBSej.cjs");let s=require("node:path");var c=e.r({typecheckApplication:()=>d}),l=({diagnostic:e,appPath:n,typescript:r})=>{let i=t.Vt(e.file)&&t.Vt(e.start)?e.file.getLineAndCharacterOfPosition(e.start):void 0;return{severity:e.category===r.DiagnosticCategory.Warning?`warning`:`error`,code:`TS${e.code}`,message:r.flattenDiagnosticMessageText(e.messageText,`
1
+ const e=require("./build-CX6FBrbu.cjs"),t=require("./constants-CemcuPi_-D7dbw2cv.cjs"),n=require("./validate-app-path-Dau-PC0a.cjs"),r=require("./collect-watch-inputs-CJVgCTo5.cjs"),i=require("./resolve-project-typescript-Cw2kvn6E.cjs"),a=require("./cli-error-CSsayo0u.cjs"),o=require("./get-tooling-error-context-C69TBSej.cjs");let s=require("node:path");var c=e.r({typecheckApplication:()=>d}),l=({diagnostic:e,appPath:n,typescript:r})=>{let i=t.Vt(e.file)&&t.Vt(e.start)?e.file.getLineAndCharacterOfPosition(e.start):void 0;return{severity:e.category===r.DiagnosticCategory.Warning?`warning`:`error`,code:`TS${e.code}`,message:r.flattenDiagnosticMessageText(e.messageText,`
2
2
  `),...t.Vt(e.file)?{file:(0,s.relative)(n,e.file.fileName)}:{},...t.Vt(i)?{line:i.line+1,column:i.character+1}:{}}},u=({appPath:e,typescript:n})=>{let i=(0,s.join)(e,`tsconfig.json`),a=(e,t)=>(r.r(e),n.sys.readFile(e,t)),o=n.readConfigFile(i,a);if(t.Vt(o.error))return[o.error];let c=n.parseJsonConfigFileContent(o.config,{...n.sys,readFile:a},e,{noEmit:!0},i);if(c.errors.length>0)return c.errors;let l=n.createCompilerHost(c.options),u=l.readFile;l.readFile=e=>(r.r(e),u(e));let d=l.fileExists;l.fileExists=e=>{let t=d(e);return t||r.i(e),t};let f=n.createProgram({host:l,rootNames:c.fileNames,options:c.options,projectReferences:c.projectReferences});return n.getPreEmitDiagnostics(f)},d=async({appPath:e,signal:t})=>{let r=await n.t(e);if(!r.success)return r;try{t?.throwIfAborted();let n=await i.t(e);t?.throwIfAborted();let r=u({appPath:e,typescript:n});t?.throwIfAborted();let a=r.map(t=>l({diagnostic:t,appPath:e,typescript:n}));return a.some(e=>e.severity===`error`)?{success:!1,error:{code:`TYPECHECK_FAILED`,message:`Typecheck failed.`},diagnostics:a}:{success:!0,data:null,diagnostics:a}}catch(e){return{success:!1,error:{code:t?.aborted?`CANCELLED`:e instanceof a.t?e.code:`TYPECHECK_FAILED`,message:e instanceof Error?e.message:String(e),...o.t(e)},diagnostics:[]}}};Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return d}});
@@ -1 +1 @@
1
- const e=require("./read-config-LKYhSPOb.cjs"),t=require("./write-config-atomically-gr2Ldzm8.cjs");var n=({configPath:n,signal:r,update:i})=>t.n({configPath:n,signal:r,operation:async()=>{let{config:a,result:o}=i(await e.t(n));return r.throwIfAborted(),await t.t(n,a),o}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return n}});
1
+ const e=require("./read-config-DdtXhdPp.cjs"),t=require("./write-config-atomically-C-YMKq3P.cjs");var n=({configPath:n,signal:r,update:i})=>t.n({configPath:n,signal:r,operation:async()=>{let{config:a,result:o}=i(await e.t(n));return r.throwIfAborted(),await t.t(n,a),o}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return n}});
@@ -1,4 +1,4 @@
1
- const e=require("./build-CX6FBrbu.cjs"),t=require("./constants-Du9J-8Ug-CD8GTrut.cjs");var n=e=>/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e),r=({objectNameSingular:e,recordId:t,displayName:n})=>`[[record:${e}:${t}:${n}]]`,i=({skillId:e,label:t})=>`[[skill:${e}:${t}]]`,a={en:`en`,"pseudo-en":`pseudo-en`,"af-ZA":`af-ZA`,"ar-SA":`ar-SA`,"ca-ES":`ca-ES`,"cs-CZ":`cs-CZ`,"da-DK":`da-DK`,"de-DE":`de-DE`,"el-GR":`el-GR`,"es-ES":`es-ES`,"fa-IR":`fa-IR`,"fi-FI":`fi-FI`,"fr-FR":`fr-FR`,"he-IL":`he-IL`,"hu-HU":`hu-HU`,"hy-AM":`hy-AM`,"it-IT":`it-IT`,"ja-JP":`ja-JP`,"ko-KR":`ko-KR`,"nl-NL":`nl-NL`,"no-NO":`no-NO`,"pl-PL":`pl-PL`,"pt-BR":`pt-BR`,"pt-PT":`pt-PT`,"ro-RO":`ro-RO`,"ru-RU":`ru-RU`,"sr-Cyrl":`sr-Cyrl`,"sr-Latn":`sr-Latn`,"sv-SE":`sv-SE`,"tr-TR":`tr-TR`,"uk-UA":`uk-UA`,"uz-UZ":`uz-UZ`,"vi-VN":`vi-VN`,"zh-CN":`zh-CN`,"zh-TW":`zh-TW`},o=e.t(),s=e=>(0,o.isNonEmptyString)(e)?e.charAt(0).toUpperCase()+e.slice(1):``,c=`INUMBER`,l=`IOP1`,u=`IOP2`,d=`IOP3`,f=`IVAR`,p=`IVARNAME`,m=`IFUNCALL`,h=`IFUNDEF`,g=`IEXPR`,_=`IEXPREVAL`,v=`IMEMBER`,y=`IENDSTATEMENT`,b=`IARRAY`;function x(e,t){this.type=e,this.value=t??0}x.prototype.toString=function(){switch(this.type){case c:case l:case u:case d:case f:case p:case y:return this.value;case m:return`CALL `+this.value;case h:return`DEF `+this.value;case b:return`ARRAY `+this.value;case v:return`.`+this.value;default:return`Invalid Instruction`}};function S(e){return new x(l,e)}function C(e){return new x(u,e)}function w(e){return new x(d,e)}function T(e,t,n,r,i){for(var a=[],o=[],s,m,h,_,y=0;y<e.length;y++){var S=e[y],C=S.type;if(C===c||C===p)Array.isArray(S.value)?a.push.apply(a,T(S.value.map(function(e){return new x(c,e)}).concat(new x(b,S.value.length)),t,n,r,i)):a.push(S);else if(C===f&&Object.hasOwn(i,S.value))S=new x(c,i[S.value]),a.push(S);else if(C===u&&a.length>1)m=a.pop(),s=a.pop(),_=n[S.value],S=new x(c,_(s.value,m.value)),a.push(S);else if(C===d&&a.length>2)h=a.pop(),m=a.pop(),s=a.pop(),S.value===`?`?a.push(s.value?m.value:h.value):(_=r[S.value],S=new x(c,_(s.value,m.value,h.value)),a.push(S));else if(C===l&&a.length>0)s=a.pop(),_=t[S.value],S=new x(c,_(s.value)),a.push(S);else if(C===g){for(;a.length>0;)o.push(a.shift());o.push(new x(g,T(S.value,t,n,r,i)))}else if(C===v&&a.length>0)s=a.pop(),a.push(new x(c,s.value[S.value]));else{for(;a.length>0;)o.push(a.shift());o.push(S)}}for(;a.length>0;)o.push(a.shift());return o}function E(e,t,n){for(var r=[],i=0;i<e.length;i++){var a=e[i],o=a.type;if(o===f&&a.value===t)for(var s=0;s<n.tokens.length;s++){var c=n.tokens[s],p=c.type===l?S(c.value):c.type===u?C(c.value):c.type===d?w(c.value):new x(c.type,c.value);r.push(p)}else o===g?r.push(new x(g,E(a.value,t,n))):r.push(a)}return r}function ee(e,t,n){if(Object.values(t.functions).includes(e))return!0;for(let i of Object.values(n))if(typeof i==`object`&&i){for(let n of Object.values(i))if(n===e){let e=Object.freeze({abs:Math.abs,acos:Math.acos,asin:Math.asin,atan:Math.atan,atan2:Math.atan2,ceil:Math.ceil,clz32:Math.clz32,cos:Math.cos,exp:Math.exp,floor:Math.floor,imul:Math.imul,fround:Math.fround,f16round:Math.f16round,log:Math.log,max:Math.max,min:Math.min,pow:Math.pow,random:Math.random,round:Math.round,sin:Math.sin,sqrt:Math.sqrt,tan:Math.tan,log10:Math.log10,log2:Math.log2,log1p:Math.log1p,expm1:Math.expm1,cosh:Math.cosh,sinh:Math.sinh,tanh:Math.tanh,acosh:Math.acosh,asinh:Math.asinh,atanh:Math.atanh,hypot:Math.hypot,trunc:Math.trunc,sign:Math.sign,cbrt:Math.cbrt});for(var r of Object.getOwnPropertyNames(e))if(e[r]===n)return!0;return Object.values(t.functions).includes(n)}}return!1}function D(e,t,n){var r=[],i,a,o,s,x,S;if(k(e))return A(e,n);for(var C=e.length,w=0;w<C;w++){var T=e[w],E=T.type;if(E===c||E===p)r.push(T.value);else if(E===u)a=r.pop(),i=r.pop(),T.value===`and`?r.push(i?!!D(a,t,n):!1):T.value===`or`?r.push(i?!0:!!D(a,t,n)):T.value===`=`?(s=t.binaryOps[T.value],r.push(s(i,D(a,t,n),n))):(s=t.binaryOps[T.value],r.push(s(A(i,n),A(a,n))));else if(E===d)o=r.pop(),a=r.pop(),i=r.pop(),T.value===`?`?r.push(D(i?a:o,t,n)):(s=t.ternaryOps[T.value],r.push(s(A(i,n),A(a,n),A(o,n))));else if(E===f){if(/^__proto__|prototype|constructor$/.test(T.value))throw Error(`prototype access detected`);if(T.value in t.functions)r.push(t.functions[T.value]);else if(T.value in t.unaryOps&&t.parser.isOperatorEnabled(T.value))r.push(t.unaryOps[T.value]);else{var j=n[T.value];if(j!==void 0){if(typeof j==`function`&&!ee(j,t,n))throw Error(`Variable references an unallowed function: `+T.value);r.push(j)}else throw Error(`undefined variable: `+T.value)}}else if(E===l)i=r.pop(),s=t.unaryOps[T.value],r.push(s(A(i,n)));else if(E===m){for(S=T.value,x=[];S-- >0;)x.unshift(A(r.pop(),n));if(s=r.pop(),!ee(s,t,n))throw Error(`Is not an allowed function.`);if(s.apply&&s.call)r.push(s.apply(void 0,x));else throw Error(s+` is not a function`)}else if(E===h)r.push((function(){for(var e=r.pop(),i=[],a=T.value;a-- >0;)i.unshift(r.pop());var o=r.pop(),s=function(){for(var r=Object.assign({},n),a=0,o=i.length;a<o;a++)r[i[a]]=arguments[a];return D(e,t,r)};return t.functions[`lambda_`+ t.functions.__counter++]=s,n[o]=s,s})());else if(E===g)r.push(O(T,t));else if(E===_)r.push(T);else if(E===v){if(i=r.pop(),/^__proto__|prototype|constructor$/.test(T.value))throw Error(`prototype access detected in MEMBER`);if(typeof i==`object`&&typeof i[T.value]==`function`&&!ee(i[T.value],t,n))throw Error(`Is not an allowed function in MEMBER.`);r.push(i[T.value])}else if(E===y)r.pop();else if(E===b){for(S=T.value,x=[];S-- >0;)x.unshift(r.pop());r.push(x)}else throw Error(`invalid Expression`)}if(r.length>1)throw Error(`invalid Expression (parity)`);return r[0]===0?0:A(r[0],n)}function O(e,t,n){return k(e)?e:{type:_,value:function(n){return D(e.value,t,n)}}}function k(e){return e&&e.type===_}function A(e,t){return k(e)?e.value(t):e}function j(e,t){for(var n=[],r,i,a,o,s,_,x=0;x<e.length;x++){var S=e[x],C=S.type;if(C===c)typeof S.value==`number`&&S.value<0?n.push(`(`+S.value+`)`):Array.isArray(S.value)?n.push(`[`+S.value.map(M).join(`, `)+`]`):n.push(M(S.value));else if(C===u)i=n.pop(),r=n.pop(),o=S.value,t?o===`^`?n.push(`Math.pow(`+r+`, `+i+`)`):o===`and`?n.push(`(!!`+r+` && !!`+i+`)`):o===`or`?n.push(`(!!`+r+` || !!`+i+`)`):o===`||`?n.push(`(function(a,b){ return Array.isArray(a) && Array.isArray(b) ? a.concat(b) : String(a) + String(b); }((`+r+`),(`+i+`)))`):o===`==`?n.push(`(`+r+` === `+i+`)`):o===`!=`?n.push(`(`+r+` !== `+i+`)`):o===`[`?n.push(r+`[(`+i+`) | 0]`):n.push(`(`+r+` `+o+` `+i+`)`):o===`[`?n.push(r+`[`+i+`]`):n.push(`(`+r+` `+o+` `+i+`)`);else if(C===d)if(a=n.pop(),i=n.pop(),r=n.pop(),o=S.value,o===`?`)n.push(`(`+r+` ? `+i+` : `+a+`)`);else throw Error(`invalid Expression`);else if(C===f||C===p)n.push(S.value);else if(C===l)r=n.pop(),o=S.value,o===`-`||o===`+`?n.push(`(`+o+r+`)`):t?o===`not`?n.push(`(!`+r+`)`):o===`!`?n.push(`fac(`+r+`)`):n.push(o+`(`+r+`)`):o===`!`?n.push(`(`+r+`!)`):n.push(`(`+o+` `+r+`)`);else if(C===m){for(_=S.value,s=[];_-- >0;)s.unshift(n.pop());o=n.pop(),n.push(o+`(`+s.join(`, `)+`)`)}else if(C===h){for(i=n.pop(),_=S.value,s=[];_-- >0;)s.unshift(n.pop());r=n.pop(),t?n.push(`(`+r+` = function(`+s.join(`, `)+`) { return `+i+` })`):n.push(`(`+r+`(`+s.join(`, `)+`) = `+i+`)`)}else if(C===v)r=n.pop(),n.push(r+`.`+S.value);else if(C===b){for(_=S.value,s=[];_-- >0;)s.unshift(n.pop());n.push(`[`+s.join(`, `)+`]`)}else if(C===g)n.push(`(`+j(S.value,t)+`)`);else if(C!==y)throw Error(`invalid Expression`)}return n.length>1&&(n=t?[n.join(`,`)]:[n.join(`;`)]),String(n[0])}function M(e){return typeof e==`string`?JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`):e}function N(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1}function P(e,t,n){n||={};for(var r=!!n.withMembers,i=null,a=0;a<e.length;a++){var o=e[a];o.type===f||o.type===p?!r&&!N(t,o.value)?t.push(o.value):(i===null||N(t,i)||t.push(i),i=o.value):o.type===v&&r&&i!==null?i+=`.`+o.value:o.type===g?P(o.value,t,n):i!==null&&(N(t,i)||t.push(i),i=null)}i!==null&&!N(t,i)&&t.push(i)}function F(e,t){this.tokens=e,this.parser=t,this.unaryOps=t.unaryOps,this.binaryOps=t.binaryOps,this.ternaryOps=t.ternaryOps,this.functions=t.functions}F.prototype.simplify=function(e){return e||={},new F(T(this.tokens,this.unaryOps,this.binaryOps,this.ternaryOps,e),this.parser)},F.prototype.substitute=function(e,t){return t instanceof F||(t=this.parser.parse(String(t))),new F(E(this.tokens,e,t),this.parser)},F.prototype.evaluate=function(e){return e||={},D(this.tokens,this,e)},F.prototype.toString=function(){return j(this.tokens,!1)},F.prototype.symbols=function(e){e||={};var t=[];return P(this.tokens,t,e),t},F.prototype.variables=function(e){e||={};var t=[];P(this.tokens,t,e);var n=this.functions;return t.filter(function(e){return!(e in n)})},F.prototype.toJSFunction=function(e,t){var n=this,r=Function(e,`with(this.functions) with (this.ternaryOps) with (this.binaryOps) with (this.unaryOps) { return `+j(this.simplify(t).tokens,!0)+`; }`);return function(){return r.apply(n,arguments)}};var I=`TEOF`,L=`TOP`,R=`TNUMBER`,te=`TSTRING`,z=`TPAREN`,ne=`TBRACKET`,re=`TCOMMA`,ie=`TNAME`,ae=`TSEMICOLON`;function oe(e,t,n){this.type=e,this.value=t,this.index=n}oe.prototype.toString=function(){return this.type+`: `+this.value};function B(e,t){this.pos=0,this.current=null,this.unaryOps=e.unaryOps,this.binaryOps=e.binaryOps,this.ternaryOps=e.ternaryOps,this.consts=e.consts,this.expression=t,this.savedPosition=0,this.savedCurrent=null,this.options=e.options,this.parser=e}B.prototype.newToken=function(e,t,n){return new oe(e,t,n??this.pos)},B.prototype.save=function(){this.savedPosition=this.pos,this.savedCurrent=this.current},B.prototype.restore=function(){this.pos=this.savedPosition,this.current=this.savedCurrent},B.prototype.next=function(){if(this.pos>=this.expression.length)return this.newToken(I,`EOF`);if(this.isWhitespace()||this.isComment())return this.next();if(this.isRadixInteger()||this.isNumber()||this.isOperator()||this.isString()||this.isParen()||this.isBracket()||this.isComma()||this.isSemicolon()||this.isNamedOp()||this.isConst()||this.isName())return this.current;this.parseError(`Unknown character "`+this.expression.charAt(this.pos)+`"`)},B.prototype.isString=function(){var e=!1,t=this.pos,n=this.expression.charAt(t);if(n===`'`||n===`"`)for(var r=this.expression.indexOf(n,t+1);r>=0&&this.pos<this.expression.length;){if(this.pos=r+1,this.expression.charAt(r-1)!==`\\`){var i=this.expression.substring(t+1,r);this.current=this.newToken(te,this.unescape(i),t),e=!0;break}r=this.expression.indexOf(n,r+1)}return e},B.prototype.isParen=function(){var e=this.expression.charAt(this.pos);return e===`(`||e===`)`?(this.current=this.newToken(z,e),this.pos++,!0):!1},B.prototype.isBracket=function(){var e=this.expression.charAt(this.pos);return(e===`[`||e===`]`)&&this.isOperatorEnabled(`[`)?(this.current=this.newToken(ne,e),this.pos++,!0):!1},B.prototype.isComma=function(){return this.expression.charAt(this.pos)===`,`?(this.current=this.newToken(re,`,`),this.pos++,!0):!1},B.prototype.isSemicolon=function(){return this.expression.charAt(this.pos)===`;`?(this.current=this.newToken(ae,`;`),this.pos++,!0):!1},B.prototype.isConst=function(){for(var e=this.pos,t=e;t<this.expression.length;t++){var n=this.expression.charAt(t);if(n.toUpperCase()===n.toLowerCase()&&(t===this.pos||n!==`_`&&n!==`.`&&(n<`0`||n>`9`)))break}if(t>e){var r=this.expression.substring(e,t);if(r in this.consts)return this.current=this.newToken(R,this.consts[r]),this.pos+=r.length,!0}return!1},B.prototype.isNamedOp=function(){for(var e=this.pos,t=e;t<this.expression.length;t++){var n=this.expression.charAt(t);if(n.toUpperCase()===n.toLowerCase()&&(t===this.pos||n!==`_`&&(n<`0`||n>`9`)))break}if(t>e){var r=this.expression.substring(e,t);if(this.isOperatorEnabled(r)&&(r in this.binaryOps||r in this.unaryOps||r in this.ternaryOps))return this.current=this.newToken(L,r),this.pos+=r.length,!0}return!1},B.prototype.isName=function(){for(var e=this.pos,t=e,n=!1;t<this.expression.length;t++){var r=this.expression.charAt(t);if(r.toUpperCase()===r.toLowerCase()){if(t===this.pos&&(r===`$`||r===`_`)){r===`_`&&(n=!0);continue}else if(t===this.pos||!n||r!==`_`&&(r<`0`||r>`9`))break}else n=!0}if(n){var i=this.expression.substring(e,t);return this.current=this.newToken(ie,i),this.pos+=i.length,!0}return!1},B.prototype.isWhitespace=function(){for(var e=!1,t=this.expression.charAt(this.pos);(t===` `||t===` `||t===`
1
+ const e=require("./build-CX6FBrbu.cjs"),t=require("./constants-CemcuPi_-D7dbw2cv.cjs");var n=e=>/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e),r=({objectNameSingular:e,recordId:t,displayName:n})=>e===`agentChatAssistant`?`@${n}`:`[[record:${e}:${t}:${n}]]`,i=({skillId:e,label:t})=>`[[skill:${e}:${t}]]`,a={en:`en`,"pseudo-en":`pseudo-en`,"af-ZA":`af-ZA`,"ar-SA":`ar-SA`,"ca-ES":`ca-ES`,"cs-CZ":`cs-CZ`,"da-DK":`da-DK`,"de-DE":`de-DE`,"el-GR":`el-GR`,"es-ES":`es-ES`,"fa-IR":`fa-IR`,"fi-FI":`fi-FI`,"fr-FR":`fr-FR`,"he-IL":`he-IL`,"hu-HU":`hu-HU`,"hy-AM":`hy-AM`,"it-IT":`it-IT`,"ja-JP":`ja-JP`,"ko-KR":`ko-KR`,"nl-NL":`nl-NL`,"no-NO":`no-NO`,"pl-PL":`pl-PL`,"pt-BR":`pt-BR`,"pt-PT":`pt-PT`,"ro-RO":`ro-RO`,"ru-RU":`ru-RU`,"sr-Cyrl":`sr-Cyrl`,"sr-Latn":`sr-Latn`,"sv-SE":`sv-SE`,"tr-TR":`tr-TR`,"uk-UA":`uk-UA`,"uz-UZ":`uz-UZ`,"vi-VN":`vi-VN`,"zh-CN":`zh-CN`,"zh-TW":`zh-TW`},o=e.t(),s=e=>(0,o.isNonEmptyString)(e)?e.charAt(0).toUpperCase()+e.slice(1):``,c=`INUMBER`,l=`IOP1`,u=`IOP2`,d=`IOP3`,f=`IVAR`,p=`IVARNAME`,m=`IFUNCALL`,h=`IFUNDEF`,g=`IEXPR`,_=`IEXPREVAL`,v=`IMEMBER`,y=`IENDSTATEMENT`,b=`IARRAY`;function x(e,t){this.type=e,this.value=t??0}x.prototype.toString=function(){switch(this.type){case c:case l:case u:case d:case f:case p:case y:return this.value;case m:return`CALL `+this.value;case h:return`DEF `+this.value;case b:return`ARRAY `+this.value;case v:return`.`+this.value;default:return`Invalid Instruction`}};function S(e){return new x(l,e)}function C(e){return new x(u,e)}function w(e){return new x(d,e)}function T(e,t,n,r,i){for(var a=[],o=[],s,m,h,_,y=0;y<e.length;y++){var S=e[y],C=S.type;if(C===c||C===p)Array.isArray(S.value)?a.push.apply(a,T(S.value.map(function(e){return new x(c,e)}).concat(new x(b,S.value.length)),t,n,r,i)):a.push(S);else if(C===f&&Object.hasOwn(i,S.value))S=new x(c,i[S.value]),a.push(S);else if(C===u&&a.length>1)m=a.pop(),s=a.pop(),_=n[S.value],S=new x(c,_(s.value,m.value)),a.push(S);else if(C===d&&a.length>2)h=a.pop(),m=a.pop(),s=a.pop(),S.value===`?`?a.push(s.value?m.value:h.value):(_=r[S.value],S=new x(c,_(s.value,m.value,h.value)),a.push(S));else if(C===l&&a.length>0)s=a.pop(),_=t[S.value],S=new x(c,_(s.value)),a.push(S);else if(C===g){for(;a.length>0;)o.push(a.shift());o.push(new x(g,T(S.value,t,n,r,i)))}else if(C===v&&a.length>0)s=a.pop(),a.push(new x(c,s.value[S.value]));else{for(;a.length>0;)o.push(a.shift());o.push(S)}}for(;a.length>0;)o.push(a.shift());return o}function E(e,t,n){for(var r=[],i=0;i<e.length;i++){var a=e[i],o=a.type;if(o===f&&a.value===t)for(var s=0;s<n.tokens.length;s++){var c=n.tokens[s],p=c.type===l?S(c.value):c.type===u?C(c.value):c.type===d?w(c.value):new x(c.type,c.value);r.push(p)}else o===g?r.push(new x(g,E(a.value,t,n))):r.push(a)}return r}function ee(e,t,n){if(Object.values(t.functions).includes(e))return!0;for(let i of Object.values(n))if(typeof i==`object`&&i){for(let n of Object.values(i))if(n===e){let e=Object.freeze({abs:Math.abs,acos:Math.acos,asin:Math.asin,atan:Math.atan,atan2:Math.atan2,ceil:Math.ceil,clz32:Math.clz32,cos:Math.cos,exp:Math.exp,floor:Math.floor,imul:Math.imul,fround:Math.fround,f16round:Math.f16round,log:Math.log,max:Math.max,min:Math.min,pow:Math.pow,random:Math.random,round:Math.round,sin:Math.sin,sqrt:Math.sqrt,tan:Math.tan,log10:Math.log10,log2:Math.log2,log1p:Math.log1p,expm1:Math.expm1,cosh:Math.cosh,sinh:Math.sinh,tanh:Math.tanh,acosh:Math.acosh,asinh:Math.asinh,atanh:Math.atanh,hypot:Math.hypot,trunc:Math.trunc,sign:Math.sign,cbrt:Math.cbrt});for(var r of Object.getOwnPropertyNames(e))if(e[r]===n)return!0;return Object.values(t.functions).includes(n)}}return!1}function D(e,t,n){var r=[],i,a,o,s,x,S;if(k(e))return A(e,n);for(var C=e.length,w=0;w<C;w++){var T=e[w],E=T.type;if(E===c||E===p)r.push(T.value);else if(E===u)a=r.pop(),i=r.pop(),T.value===`and`?r.push(i?!!D(a,t,n):!1):T.value===`or`?r.push(i?!0:!!D(a,t,n)):T.value===`=`?(s=t.binaryOps[T.value],r.push(s(i,D(a,t,n),n))):(s=t.binaryOps[T.value],r.push(s(A(i,n),A(a,n))));else if(E===d)o=r.pop(),a=r.pop(),i=r.pop(),T.value===`?`?r.push(D(i?a:o,t,n)):(s=t.ternaryOps[T.value],r.push(s(A(i,n),A(a,n),A(o,n))));else if(E===f){if(/^__proto__|prototype|constructor$/.test(T.value))throw Error(`prototype access detected`);if(T.value in t.functions)r.push(t.functions[T.value]);else if(T.value in t.unaryOps&&t.parser.isOperatorEnabled(T.value))r.push(t.unaryOps[T.value]);else{var j=n[T.value];if(j!==void 0){if(typeof j==`function`&&!ee(j,t,n))throw Error(`Variable references an unallowed function: `+T.value);r.push(j)}else throw Error(`undefined variable: `+T.value)}}else if(E===l)i=r.pop(),s=t.unaryOps[T.value],r.push(s(A(i,n)));else if(E===m){for(S=T.value,x=[];S-- >0;)x.unshift(A(r.pop(),n));if(s=r.pop(),!ee(s,t,n))throw Error(`Is not an allowed function.`);if(s.apply&&s.call)r.push(s.apply(void 0,x));else throw Error(s+` is not a function`)}else if(E===h)r.push((function(){for(var e=r.pop(),i=[],a=T.value;a-- >0;)i.unshift(r.pop());var o=r.pop(),s=function(){for(var r=Object.assign({},n),a=0,o=i.length;a<o;a++)r[i[a]]=arguments[a];return D(e,t,r)};return t.functions[`lambda_`+ t.functions.__counter++]=s,n[o]=s,s})());else if(E===g)r.push(O(T,t));else if(E===_)r.push(T);else if(E===v){if(i=r.pop(),/^__proto__|prototype|constructor$/.test(T.value))throw Error(`prototype access detected in MEMBER`);if(typeof i==`object`&&typeof i[T.value]==`function`&&!ee(i[T.value],t,n))throw Error(`Is not an allowed function in MEMBER.`);r.push(i[T.value])}else if(E===y)r.pop();else if(E===b){for(S=T.value,x=[];S-- >0;)x.unshift(r.pop());r.push(x)}else throw Error(`invalid Expression`)}if(r.length>1)throw Error(`invalid Expression (parity)`);return r[0]===0?0:A(r[0],n)}function O(e,t,n){return k(e)?e:{type:_,value:function(n){return D(e.value,t,n)}}}function k(e){return e&&e.type===_}function A(e,t){return k(e)?e.value(t):e}function j(e,t){for(var n=[],r,i,a,o,s,_,x=0;x<e.length;x++){var S=e[x],C=S.type;if(C===c)typeof S.value==`number`&&S.value<0?n.push(`(`+S.value+`)`):Array.isArray(S.value)?n.push(`[`+S.value.map(M).join(`, `)+`]`):n.push(M(S.value));else if(C===u)i=n.pop(),r=n.pop(),o=S.value,t?o===`^`?n.push(`Math.pow(`+r+`, `+i+`)`):o===`and`?n.push(`(!!`+r+` && !!`+i+`)`):o===`or`?n.push(`(!!`+r+` || !!`+i+`)`):o===`||`?n.push(`(function(a,b){ return Array.isArray(a) && Array.isArray(b) ? a.concat(b) : String(a) + String(b); }((`+r+`),(`+i+`)))`):o===`==`?n.push(`(`+r+` === `+i+`)`):o===`!=`?n.push(`(`+r+` !== `+i+`)`):o===`[`?n.push(r+`[(`+i+`) | 0]`):n.push(`(`+r+` `+o+` `+i+`)`):o===`[`?n.push(r+`[`+i+`]`):n.push(`(`+r+` `+o+` `+i+`)`);else if(C===d)if(a=n.pop(),i=n.pop(),r=n.pop(),o=S.value,o===`?`)n.push(`(`+r+` ? `+i+` : `+a+`)`);else throw Error(`invalid Expression`);else if(C===f||C===p)n.push(S.value);else if(C===l)r=n.pop(),o=S.value,o===`-`||o===`+`?n.push(`(`+o+r+`)`):t?o===`not`?n.push(`(!`+r+`)`):o===`!`?n.push(`fac(`+r+`)`):n.push(o+`(`+r+`)`):o===`!`?n.push(`(`+r+`!)`):n.push(`(`+o+` `+r+`)`);else if(C===m){for(_=S.value,s=[];_-- >0;)s.unshift(n.pop());o=n.pop(),n.push(o+`(`+s.join(`, `)+`)`)}else if(C===h){for(i=n.pop(),_=S.value,s=[];_-- >0;)s.unshift(n.pop());r=n.pop(),t?n.push(`(`+r+` = function(`+s.join(`, `)+`) { return `+i+` })`):n.push(`(`+r+`(`+s.join(`, `)+`) = `+i+`)`)}else if(C===v)r=n.pop(),n.push(r+`.`+S.value);else if(C===b){for(_=S.value,s=[];_-- >0;)s.unshift(n.pop());n.push(`[`+s.join(`, `)+`]`)}else if(C===g)n.push(`(`+j(S.value,t)+`)`);else if(C!==y)throw Error(`invalid Expression`)}return n.length>1&&(n=t?[n.join(`,`)]:[n.join(`;`)]),String(n[0])}function M(e){return typeof e==`string`?JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`):e}function N(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1}function P(e,t,n){n||={};for(var r=!!n.withMembers,i=null,a=0;a<e.length;a++){var o=e[a];o.type===f||o.type===p?!r&&!N(t,o.value)?t.push(o.value):(i===null||N(t,i)||t.push(i),i=o.value):o.type===v&&r&&i!==null?i+=`.`+o.value:o.type===g?P(o.value,t,n):i!==null&&(N(t,i)||t.push(i),i=null)}i!==null&&!N(t,i)&&t.push(i)}function F(e,t){this.tokens=e,this.parser=t,this.unaryOps=t.unaryOps,this.binaryOps=t.binaryOps,this.ternaryOps=t.ternaryOps,this.functions=t.functions}F.prototype.simplify=function(e){return e||={},new F(T(this.tokens,this.unaryOps,this.binaryOps,this.ternaryOps,e),this.parser)},F.prototype.substitute=function(e,t){return t instanceof F||(t=this.parser.parse(String(t))),new F(E(this.tokens,e,t),this.parser)},F.prototype.evaluate=function(e){return e||={},D(this.tokens,this,e)},F.prototype.toString=function(){return j(this.tokens,!1)},F.prototype.symbols=function(e){e||={};var t=[];return P(this.tokens,t,e),t},F.prototype.variables=function(e){e||={};var t=[];P(this.tokens,t,e);var n=this.functions;return t.filter(function(e){return!(e in n)})},F.prototype.toJSFunction=function(e,t){var n=this,r=Function(e,`with(this.functions) with (this.ternaryOps) with (this.binaryOps) with (this.unaryOps) { return `+j(this.simplify(t).tokens,!0)+`; }`);return function(){return r.apply(n,arguments)}};var I=`TEOF`,L=`TOP`,R=`TNUMBER`,te=`TSTRING`,z=`TPAREN`,ne=`TBRACKET`,re=`TCOMMA`,ie=`TNAME`,ae=`TSEMICOLON`;function oe(e,t,n){this.type=e,this.value=t,this.index=n}oe.prototype.toString=function(){return this.type+`: `+this.value};function B(e,t){this.pos=0,this.current=null,this.unaryOps=e.unaryOps,this.binaryOps=e.binaryOps,this.ternaryOps=e.ternaryOps,this.consts=e.consts,this.expression=t,this.savedPosition=0,this.savedCurrent=null,this.options=e.options,this.parser=e}B.prototype.newToken=function(e,t,n){return new oe(e,t,n??this.pos)},B.prototype.save=function(){this.savedPosition=this.pos,this.savedCurrent=this.current},B.prototype.restore=function(){this.pos=this.savedPosition,this.current=this.savedCurrent},B.prototype.next=function(){if(this.pos>=this.expression.length)return this.newToken(I,`EOF`);if(this.isWhitespace()||this.isComment())return this.next();if(this.isRadixInteger()||this.isNumber()||this.isOperator()||this.isString()||this.isParen()||this.isBracket()||this.isComma()||this.isSemicolon()||this.isNamedOp()||this.isConst()||this.isName())return this.current;this.parseError(`Unknown character "`+this.expression.charAt(this.pos)+`"`)},B.prototype.isString=function(){var e=!1,t=this.pos,n=this.expression.charAt(t);if(n===`'`||n===`"`)for(var r=this.expression.indexOf(n,t+1);r>=0&&this.pos<this.expression.length;){if(this.pos=r+1,this.expression.charAt(r-1)!==`\\`){var i=this.expression.substring(t+1,r);this.current=this.newToken(te,this.unescape(i),t),e=!0;break}r=this.expression.indexOf(n,r+1)}return e},B.prototype.isParen=function(){var e=this.expression.charAt(this.pos);return e===`(`||e===`)`?(this.current=this.newToken(z,e),this.pos++,!0):!1},B.prototype.isBracket=function(){var e=this.expression.charAt(this.pos);return(e===`[`||e===`]`)&&this.isOperatorEnabled(`[`)?(this.current=this.newToken(ne,e),this.pos++,!0):!1},B.prototype.isComma=function(){return this.expression.charAt(this.pos)===`,`?(this.current=this.newToken(re,`,`),this.pos++,!0):!1},B.prototype.isSemicolon=function(){return this.expression.charAt(this.pos)===`;`?(this.current=this.newToken(ae,`;`),this.pos++,!0):!1},B.prototype.isConst=function(){for(var e=this.pos,t=e;t<this.expression.length;t++){var n=this.expression.charAt(t);if(n.toUpperCase()===n.toLowerCase()&&(t===this.pos||n!==`_`&&n!==`.`&&(n<`0`||n>`9`)))break}if(t>e){var r=this.expression.substring(e,t);if(r in this.consts)return this.current=this.newToken(R,this.consts[r]),this.pos+=r.length,!0}return!1},B.prototype.isNamedOp=function(){for(var e=this.pos,t=e;t<this.expression.length;t++){var n=this.expression.charAt(t);if(n.toUpperCase()===n.toLowerCase()&&(t===this.pos||n!==`_`&&(n<`0`||n>`9`)))break}if(t>e){var r=this.expression.substring(e,t);if(this.isOperatorEnabled(r)&&(r in this.binaryOps||r in this.unaryOps||r in this.ternaryOps))return this.current=this.newToken(L,r),this.pos+=r.length,!0}return!1},B.prototype.isName=function(){for(var e=this.pos,t=e,n=!1;t<this.expression.length;t++){var r=this.expression.charAt(t);if(r.toUpperCase()===r.toLowerCase()){if(t===this.pos&&(r===`$`||r===`_`)){r===`_`&&(n=!0);continue}else if(t===this.pos||!n||r!==`_`&&(r<`0`||r>`9`))break}else n=!0}if(n){var i=this.expression.substring(e,t);return this.current=this.newToken(ie,i),this.pos+=i.length,!0}return!1},B.prototype.isWhitespace=function(){for(var e=!1,t=this.expression.charAt(this.pos);(t===` `||t===` `||t===`
2
2
  `||t===`\r`)&&(e=!0,this.pos++,!(this.pos>=this.expression.length));)t=this.expression.charAt(this.pos);return e};var se=/^[0-9a-f]{4}$/i;B.prototype.unescape=function(e){var t=e.indexOf(`\\`);if(t<0)return e;for(var n=e.substring(0,t);t>=0;){var r=e.charAt(++t);switch(r){case`'`:n+=`'`;break;case`"`:n+=`"`;break;case`\\`:n+=`\\`;break;case`/`:n+=`/`;break;case`b`:n+=`\b`;break;case`f`:n+=`\f`;break;case`n`:n+=`
3
3
  `;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;case`u`:var i=e.substring(t+1,t+5);se.test(i)||this.parseError(`Illegal escape sequence: \\u`+i),n+=String.fromCharCode(parseInt(i,16)),t+=4;break;default:throw this.parseError(`Illegal escape sequence: "\\`+r+`"`)}++t;var a=e.indexOf(`\\`,t);n+=e.substring(t,a<0?e.length:a),t=a}return n},B.prototype.isComment=function(){return this.expression.charAt(this.pos)===`/`&&this.expression.charAt(this.pos+1)===`*`?(this.pos=this.expression.indexOf(`*/`,this.pos)+2,this.pos===1&&(this.pos=this.expression.length),!0):!1},B.prototype.isRadixInteger=function(){var e=this.pos;if(e>=this.expression.length-2||this.expression.charAt(e)!==`0`)return!1;++e;var t,n;if(this.expression.charAt(e)===`x`)t=16,n=/^[0-9a-f]$/i,++e;else if(this.expression.charAt(e)===`b`)t=2,n=/^[01]$/i,++e;else return!1;for(var r=!1,i=e;e<this.expression.length;){var a=this.expression.charAt(e);if(n.test(a))e++,r=!0;else break}return r&&(this.current=this.newToken(R,parseInt(this.expression.substring(i,e),t)),this.pos=e),r},B.prototype.isNumber=function(){for(var e=!1,t=this.pos,n=t,r=t,i=!1,a=!1,o;t<this.expression.length&&(o=this.expression.charAt(t),o>=`0`&&o<=`9`||!i&&o===`.`);)o===`.`?i=!0:a=!0,t++,e=a;if(e&&(r=t),o===`e`||o===`E`){t++;for(var s=!0,c=!1;t<this.expression.length;){if(o=this.expression.charAt(t),s&&(o===`+`||o===`-`))s=!1;else if(o>=`0`&&o<=`9`)c=!0,s=!1;else break;t++}c||(t=r)}return e?(this.current=this.newToken(R,parseFloat(this.expression.substring(n,t))),this.pos=t):this.pos=r,e},B.prototype.isOperator=function(){var e=this.pos,t=this.expression.charAt(this.pos);if(t===`+`||t===`-`||t===`*`||t===`/`||t===`%`||t===`^`||t===`?`||t===`:`||t===`.`)this.current=this.newToken(L,t);else if(t===`∙`||t===`•`)this.current=this.newToken(L,`*`);else if(t===`>`)this.expression.charAt(this.pos+1)===`=`?(this.current=this.newToken(L,`>=`),this.pos++):this.current=this.newToken(L,`>`);else if(t===`<`)this.expression.charAt(this.pos+1)===`=`?(this.current=this.newToken(L,`<=`),this.pos++):this.current=this.newToken(L,`<`);else if(t===`|`)if(this.expression.charAt(this.pos+1)===`|`)this.current=this.newToken(L,`||`),this.pos++;else return!1;else if(t===`=`)this.expression.charAt(this.pos+1)===`=`?(this.current=this.newToken(L,`==`),this.pos++):this.current=this.newToken(L,t);else if(t===`!`)this.expression.charAt(this.pos+1)===`=`?(this.current=this.newToken(L,`!=`),this.pos++):this.current=this.newToken(L,t);else return!1;return this.pos++,this.isOperatorEnabled(this.current.value)?!0:(this.pos=e,!1)},B.prototype.isOperatorEnabled=function(e){return this.parser.isOperatorEnabled(e)},B.prototype.getCoordinates=function(){var e=0,t,n=-1;do e++,t=this.pos-n,n=this.expression.indexOf(`
4
4
  `,n+1);while(n>=0&&n<this.pos);return{line:e,column:t}},B.prototype.parseError=function(e){var t=this.getCoordinates();throw Error(`parse error [`+t.line+`:`+t.column+`]: `+e)};function V(e,t,n){this.parser=e,this.tokens=t,this.current=null,this.nextToken=null,this.next(),this.savedCurrent=null,this.savedNextToken=null,this.allowMemberAccess=n.allowMemberAccess!==!1}V.prototype.next=function(){return this.current=this.nextToken,this.nextToken=this.tokens.next()},V.prototype.tokenMatches=function(e,t){return t===void 0?!0:Array.isArray(t)?N(t,e.value):typeof t==`function`?t(e):e.value===t},V.prototype.save=function(){this.savedCurrent=this.current,this.savedNextToken=this.nextToken,this.tokens.save()},V.prototype.restore=function(){this.tokens.restore(),this.current=this.savedCurrent,this.nextToken=this.savedNextToken},V.prototype.accept=function(e,t){return this.nextToken.type===e&&this.tokenMatches(this.nextToken,t)?(this.next(),!0):!1},V.prototype.expect=function(e,t){if(!this.accept(e,t)){var n=this.tokens.getCoordinates();throw Error(`parse error [`+n.line+`:`+n.column+`]: Expected `+(t||e))}},V.prototype.parseAtom=function(e){var t=this.tokens.unaryOps;function n(e){return e.value in t}if(this.accept(ie)||this.accept(L,n))e.push(new x(f,this.current.value));else if(this.accept(R))e.push(new x(c,this.current.value));else if(this.accept(te))e.push(new x(c,this.current.value));else if(this.accept(z,`(`))this.parseExpression(e),this.expect(z,`)`);else if(this.accept(ne,`[`))if(this.accept(ne,`]`))e.push(new x(b,0));else{var r=this.parseArrayList(e);e.push(new x(b,r))}else throw Error(`unexpected `+this.nextToken)},V.prototype.parseExpression=function(e){var t=[];this.parseUntilEndStatement(e,t)||(this.parseVariableAssignmentExpression(t),!this.parseUntilEndStatement(e,t)&&this.pushExpression(e,t))},V.prototype.pushExpression=function(e,t){for(var n=0,r=t.length;n<r;n++)e.push(t[n])},V.prototype.parseUntilEndStatement=function(e,t){return this.accept(ae)?(this.nextToken&&this.nextToken.type!==I&&!(this.nextToken.type===z&&this.nextToken.value===`)`)&&t.push(new x(y)),this.nextToken.type!==I&&this.parseExpression(t),e.push(new x(g,t)),!0):!1},V.prototype.parseArrayList=function(e){for(var t=0;!this.accept(ne,`]`);)for(this.parseExpression(e),++t;this.accept(re);)this.parseExpression(e),++t;return t},V.prototype.parseVariableAssignmentExpression=function(e){for(this.parseConditionalExpression(e);this.accept(L,`=`);){var t=e.pop(),n=[],r=e.length-1;if(t.type===m){if(!this.tokens.isOperatorEnabled(`()=`))throw Error(`function definition is not permitted`);for(var i=0,a=t.value+1;i<a;i++){var o=r-i;e[o].type===f&&(e[o]=new x(p,e[o].value))}this.parseVariableAssignmentExpression(n),e.push(new x(g,n)),e.push(new x(h,t.value));continue}if(t.type!==f&&t.type!==v)throw Error(`expected variable for assignment`);this.parseVariableAssignmentExpression(n),e.push(new x(p,t.value)),e.push(new x(g,n)),e.push(C(`=`))}},V.prototype.parseConditionalExpression=function(e){for(this.parseOrExpression(e);this.accept(L,`?`);){var t=[],n=[];this.parseConditionalExpression(t),this.expect(L,`:`),this.parseConditionalExpression(n),e.push(new x(g,t)),e.push(new x(g,n)),e.push(w(`?`))}},V.prototype.parseOrExpression=function(e){for(this.parseAndExpression(e);this.accept(L,`or`);){var t=[];this.parseAndExpression(t),e.push(new x(g,t)),e.push(C(`or`))}},V.prototype.parseAndExpression=function(e){for(this.parseComparison(e);this.accept(L,`and`);){var t=[];this.parseComparison(t),e.push(new x(g,t)),e.push(C(`and`))}};var ce=[`==`,`!=`,`<`,`<=`,`>=`,`>`,`in`];V.prototype.parseComparison=function(e){for(this.parseAddSub(e);this.accept(L,ce);){var t=this.current;this.parseAddSub(e),e.push(C(t.value))}};var le=[`+`,`-`,`||`];V.prototype.parseAddSub=function(e){for(this.parseTerm(e);this.accept(L,le);){var t=this.current;this.parseTerm(e),e.push(C(t.value))}};var ue=[`*`,`/`,`%`];V.prototype.parseTerm=function(e){for(this.parseFactor(e);this.accept(L,ue);){var t=this.current;this.parseFactor(e),e.push(C(t.value))}},V.prototype.parseFactor=function(e){var t=this.tokens.unaryOps;function n(e){return e.value in t}if(this.save(),this.accept(L,n)){if(this.current.value!==`-`&&this.current.value!==`+`){if(this.nextToken.type===z&&this.nextToken.value===`(`){this.restore(),this.parseExponential(e);return}else if(this.nextToken.type===ae||this.nextToken.type===re||this.nextToken.type===I||this.nextToken.type===z&&this.nextToken.value===`)`){this.restore(),this.parseAtom(e);return}}var r=this.current;this.parseFactor(e),e.push(S(r.value))}else this.parseExponential(e)},V.prototype.parseExponential=function(e){for(this.parsePostfixExpression(e);this.accept(L,`^`);)this.parseFactor(e),e.push(C(`^`))},V.prototype.parsePostfixExpression=function(e){for(this.parseFunctionCall(e);this.accept(L,`!`);)e.push(S(`!`))},V.prototype.parseFunctionCall=function(e){var t=this.tokens.unaryOps;function n(e){return e.value in t}if(this.accept(L,n)){var r=this.current;this.parseAtom(e),e.push(S(r.value))}else for(this.parseMemberExpression(e);this.accept(z,`(`);)if(this.accept(z,`)`))e.push(new x(m,0));else{var i=this.parseArgumentList(e);e.push(new x(m,i))}},V.prototype.parseArgumentList=function(e){for(var t=0;!this.accept(z,`)`);)for(this.parseExpression(e),++t;this.accept(re);)this.parseExpression(e),++t;return t},V.prototype.parseMemberExpression=function(e){for(this.parseAtom(e);this.accept(L,`.`)||this.accept(ne,`[`);){var t=this.current;if(t.value===`.`){if(!this.allowMemberAccess)throw Error(`unexpected ".", member access is not permitted`);this.expect(ie),e.push(new x(v,this.current.value))}else if(t.value===`[`){if(!this.tokens.isOperatorEnabled(`[`))throw Error(`unexpected "[]", arrays are disabled`);this.parseExpression(e),this.expect(ne,`]`),e.push(C(`[`))}else throw Error(`unexpected symbol: `+t.value)}};function H(e,t){return Number(e)+Number(t)}function de(e,t){return e-t}function fe(e,t){return e*t}function U(e,t){return e/t}function pe(e,t){return e%t}function me(e,t){return Array.isArray(e)&&Array.isArray(t)?e.concat(t):``+e+t}function he(e,t){return e===t}function ge(e,t){return e!==t}function _e(e,t){return e>t}function ve(e,t){return e<t}function ye(e,t){return e>=t}function be(e,t){return e<=t}function xe(e,t){return!!(e&&t)}function Se(e,t){return!!(e||t)}function Ce(e,t){return N(t,e)}function we(e){return(Math.exp(e)-Math.exp(-e))/2}function Te(e){return(Math.exp(e)+Math.exp(-e))/2}function Ee(e){return e===1/0?1:e===-1/0?-1:(Math.exp(e)-Math.exp(-e))/(Math.exp(e)+Math.exp(-e))}function De(e){return e===-1/0?e:Math.log(e+Math.sqrt(e*e+1))}function Oe(e){return Math.log(e+Math.sqrt(e*e-1))}function ke(e){return Math.log((1+e)/(1-e))/2}function Ae(e){return Math.log(e)*Math.LOG10E}function je(e){return-e}function Me(e){return!e}function Ne(e){return e<0?Math.ceil(e):Math.floor(e)}function Pe(e){return Math.random()*(e||1)}function Fe(e){return ze(e+1)}function Ie(e){return isFinite(e)&&e===Math.round(e)}var Le=4.7421875,Re=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];function ze(e){var t,n;if(Ie(e)){if(e<=0)return isFinite(e)?1/0:NaN;if(e>171)return 1/0;for(var r=e-2,i=e-1;r>1;)i*=r,r--;return i===0&&(i=1),i}if(e<.5)return Math.PI/(Math.sin(Math.PI*e)*ze(1-e));if(e>=171.35)return 1/0;if(e>85){var a=e*e,o=a*e,s=o*e,c=s*e;return Math.sqrt(2*Math.PI/e)*(e/Math.E)**+e*(1+1/(12*e)+1/(288*a)-139/(51840*o)-571/(2488320*s)+163879/(209018880*c)+5246819/(75246796800*c*e))}--e,n=Re[0];for(var l=1;l<Re.length;++l)n+=Re[l]/(e+l);return t=e+Le+.5,Math.sqrt(2*Math.PI)*t**+(e+.5)*Math.exp(-t)*n}function Be(e){return Array.isArray(e)?e.length:String(e).length}function Ve(){for(var e=0,t=0,n=0;n<arguments.length;n++){var r=Math.abs(arguments[n]),i;t<r?(i=t/r,e=e*i*i+1,t=r):r>0?(i=r/t,e+=i*i):e+=r}return t===1/0?1/0:t*Math.sqrt(e)}function He(e,t,n){return e?t:n}function Ue(e,t){return t===void 0||+t==0?Math.round(e):(e=+e,t=-+t,isNaN(e)||!(typeof t==`number`&&t%1==0)?NaN:(e=e.toString().split(`e`),e=Math.round(+(e[0]+`e`+(e[1]?+e[1]-t:-t))),e=e.toString().split(`e`),+(e[0]+`e`+(e[1]?+e[1]+t:t))))}function We(e,t,n){return n&&(n[e]=t),t}function Ge(e,t){return e[t|0]}function Ke(e){return arguments.length===1&&Array.isArray(e)?Math.max.apply(Math,e):Math.max.apply(Math,arguments)}function qe(e){return arguments.length===1&&Array.isArray(e)?Math.min.apply(Math,e):Math.min.apply(Math,arguments)}function Je(e,t){if(typeof e!=`function`)throw Error(`First argument to map is not a function`);if(!Array.isArray(t))throw Error(`Second argument to map is not an array`);return t.map(function(t,n){return e(t,n)})}function Ye(e,t,n){if(typeof e!=`function`)throw Error(`First argument to fold is not a function`);if(!Array.isArray(n))throw Error(`Second argument to fold is not an array`);return n.reduce(function(t,n,r){return e(t,n,r)},t)}function Xe(e,t){if(typeof e!=`function`)throw Error(`First argument to filter is not a function`);if(!Array.isArray(t))throw Error(`Second argument to filter is not an array`);return t.filter(function(t,n){return e(t,n)})}function Ze(e,t){if(!(Array.isArray(t)||typeof t==`string`))throw Error(`Second argument to indexOf is not a string or array`);return t.indexOf(e)}function Qe(e,t){if(!Array.isArray(t))throw Error(`Second argument to join is not an array`);return t.join(e)}function $e(e){return(e>0)-(e<0)||+e}var et=1/3;function tt(e){return e<0?-((-e)**+et):e**+et}function nt(e){return Math.exp(e)-1}function rt(e){return Math.log(1+e)}function it(e){return Math.log(e)/Math.LN2}function at(e){if(!Array.isArray(e))throw Error(`Sum argument is not an array`);return e.reduce(function(e,t){return e+Number(t)},0)}function ot(e){this.options=e||{},this.unaryOps={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sinh:Math.sinh||we,cosh:Math.cosh||Te,tanh:Math.tanh||Ee,asinh:Math.asinh||De,acosh:Math.acosh||Oe,atanh:Math.atanh||ke,sqrt:Math.sqrt,cbrt:Math.cbrt||tt,log:Math.log,log2:Math.log2||it,ln:Math.log,lg:Math.log10||Ae,log10:Math.log10||Ae,expm1:Math.expm1||nt,log1p:Math.log1p||rt,abs:Math.abs,ceil:Math.ceil,floor:Math.floor,round:Math.round,trunc:Math.trunc||Ne,"-":je,"+":Number,exp:Math.exp,not:Me,length:Be,"!":Fe,sign:Math.sign||$e},this.binaryOps={"+":H,"-":de,"*":fe,"/":U,"%":pe,"^":Math.pow,"||":me,"==":he,"!=":ge,">":_e,"<":ve,">=":ye,"<=":be,and:xe,or:Se,in:Ce,"=":We,"[":Ge},this.ternaryOps={"?":He},this.functions={random:Pe,fac:Fe,min:qe,max:Ke,hypot:Math.hypot||Ve,pyt:Math.hypot||Ve,pow:Math.pow,atan2:Math.atan2,if:He,gamma:ze,roundTo:Ue,map:Je,fold:Ye,filter:Xe,indexOf:Ze,join:Qe,sum:at},this.consts={E:Math.E,PI:Math.PI,true:!0,false:!1}}ot.prototype.parse=function(e){var t=[],n=new V(this,new B(this,e),{allowMemberAccess:this.options.allowMemberAccess});return n.parseExpression(t),n.expect(I,`EOF`),new F(t,this)},ot.prototype.evaluate=function(e,t){return this.parse(e).evaluate(t)};var st=new ot;ot.parse=function(e){return st.parse(e)},ot.evaluate=function(e,t){return st.parse(e).evaluate(t)};var ct={"+":`add`,"-":`subtract`,"*":`multiply`,"/":`divide`,"%":`remainder`,"^":`power`,"!":`factorial`,"<":`comparison`,">":`comparison`,"<=":`comparison`,">=":`comparison`,"==":`comparison`,"!=":`comparison`,"||":`concatenate`,and:`logical`,or:`logical`,not:`logical`,"?":`conditional`,":":`conditional`,"=":`assignment`,"[":`array`,"()=":`fndef`};function lt(e){return Object.hasOwn(ct,e)?ct[e]:e}ot.prototype.isOperatorEnabled=function(e){var t=lt(e),n=this.options.operators||{};return!(t in n)||!!n[t]};function ut(e,t,n,r,i){return dt(t,((e,t)=>{let n=e[t];if(n===void 0)throw TypeError(Gs(t));return n})(e,t),n,r,i)}function dt(e,t,n,r,i,a){let o=At(t,n,r);if(i&&t!==o)throw RangeError(Us(e,t,n,r,a));return o}function ft(e){return e!==null&&/object|function/.test(typeof e)}function pt(e,t=Map){let n=new t;return(t,...r)=>{if(n.has(t))return n.get(t);let i=e(t,...r);return n.set(t,i),i}}function mt(e){return ht({name:e},1)}function ht(e,t){return yt((e=>({value:e,configurable:1,writable:!t})),e)}function gt(e){return yt((e=>({get:e,configurable:1})),e)}function _t(e){return{[Symbol.toStringTag]:{value:e,configurable:1}}}function vt(e,t){let n={},r=e.length;for(let i of t)n[e[--r]]=i;return n}function yt(e,t,n){let r={};for(let i in t)r[i]=e(t[i],i,n);return r}function bt(e,t,n){let r={};for(let i=0;i<t.length;i++){let a=t[i];r[a]=e(a,i,n)}return r}function xt(e,t,n){let r={};for(let i=0;i<e.length;i++)r[t[i]]=n[e[i]];return r}function St(e,t){let n=Object.create(null);for(let r of e)n[r]=t[r];return n}function Ct(e,t){for(let n of t)if(n in e)return 1;return 0}function wt(e,t,n){for(let r of e)if(t[r]!==n[r])return 0;return 1}function Tt(e,t,n){let r={...n};for(let n=0;n<t;n++)r[e[n]]=0;return r}function W(e,...t){return(...n)=>e(...t,...n)}function Et(e){return e[0].toUpperCase()+e.substring(1)}function Dt(e){return e.slice().sort()}function Ot(e,t){return String(t).padStart(e,`0`)}function kt(e,t){return Math.sign(e-t)}function At(e,t,n){return Math.min(Math.max(e,t),n)}function jt(e,t){return[Math.floor(e/t),Mt(e,t)]}function Mt(e,t){return(e%t+t)%t}function Nt(e,t){return[Pt(e,t),Ft(e,t)]}function Pt(e,t){return Math.trunc(e/t)||0}function Ft(e,t){return e%t||0}function It(e){return Math.abs(e%1)===.5}function Lt(e,t,n){let r=0,i=0;for(let a=0;a<=t;a++){let t=e[n[a]],o=Hc[a],[s,c]=Nt(t,K/o);r+=c*o,i+=s}let[a,o]=Nt(r,K);return[i+a,o]}function Rt(e,t,n){let r={};for(let i=t;i>=0;i--){let t=Hc[i];r[n[i]]=Pt(e,t),e=Ft(e,t)}return r}function zt(e){if(e!==void 0)return pl(e)}function Bt(e){if(e!==void 0)return Ht(e)}function Vt(e){if(e!==void 0)return Ut(e)}function Ht(e){return Jt(Ut(e))}function Ut(e){return qt(hl(e))}function Wt(e,t){if(t==null)throw RangeError(Gs(e));return t}function Gt(e){if(!ft(e))throw TypeError(Hs);return e}function Kt(e,t,n=e){if(typeof t!==e)throw TypeError(Ws(n,t));return t}function qt(e,t=`number`){if(!Number.isInteger(e))throw RangeError(Is(t,e));return e||0}function Jt(e,t=`number`){if(e<=0)throw RangeError(Ls(t,e));return e}function Yt(e){if(typeof e==`symbol`)throw TypeError(Vs);return String(e)}function Xt(e,t){return ft(e)?String(e):pl(e,t)}function Zt(e){if(typeof e==`string`)return BigInt(e);if(typeof e!=`bigint`)throw TypeError(Bs(e));return e}function Qt(e,t=`number`){if(typeof e==`bigint`)throw TypeError(zs(t));if(e=Number(e),!Number.isFinite(e))throw RangeError(Rs(t,e));return e}function $t(e,t){return Math.trunc(Qt(e,t))||0}function en(e,t){return qt(Qt(e,t),t)}function tn(e,t){return Jt($t(e,t),t)}function nn(e,t){let[n,r]=Nt(t,K),i=e+n,a=Math.sign(i);return a&&a===-Math.sign(r)&&(i-=a,r+=a*K),[i,r]}function rn(e,t,n=1){return nn(e[0]+t[0]*n,e[1]+t[1]*n)}function an(e,t){return nn(e[0],e[1]+t)}function on(e,t){return rn(t,e,-1)}function sn(e,t){return kt(e[0],t[0])||kt(e[1],t[1])}function cn(e,t,n){return sn(e,t)===-1||sn(e,n)===1}function ln(e,t=1){let n=BigInt(K/t);return[Number(e/n),Number(e%n)*t]}function un(e,t=1){let[n,r]=Nt(e,K/t);return[n,r*t]}function dn(e,t=1,n){let[r,i]=e,[a,o]=Nt(i,t);return K/t*r+(a+(n?o/t:0))}function fn(e,t,n=jt){let[r,i]=e,[a,o]=n(i,t);return[K/t*r+a,o]}function pn(e){return ut(e,`isoYear`,Ll,Il,1),e.isoYear===Ll?ut(e,`isoMonth`,4,12,1):e.isoYear===Il&&ut(e,`isoMonth`,1,9,1),e}function mn(e){return hn({...e,...Al,isoHour:12}),e}function hn(e){let t=ut(e,`isoYear`,Ll,Il,1),n=t===Ll?1:t===Il?-1:0;return n&&gn(xn({...e,isoDay:e.isoDay+n,isoNanosecond:e.isoNanosecond-n})),e}function gn(e){if(!e||cn(e,Fl,Pl))throw RangeError(vc);return e}function _n(e){return Lt(e,5,wl)[1]}function vn(e){let[t,n]=jt(e,K);return[Rt(n,5,wl),t]}function yn(e){return fn(e,zc)}function bn(e){return wn(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond)}function xn(e){let t=bn(e);if(t!==void 0){let[n,r]=Nt(t,Fc);return[n,r*Rc+(e.isoMicrosecond||0)*Lc+(e.isoNanosecond||0)]}}function Sn(e,t){let[n,r]=vn(_n(e)-t);return gn(xn({...e,isoDay:e.isoDay+r,...n}))}function Cn(...e){return wn(...e)/Ic}function wn(...e){let[t,n]=Tn(...e),r=t.valueOf();if(!isNaN(r))return r-n*Fc}function Tn(e,t=1,n=1,r=0,i=0,a=0,o=0){let s=e===Ll?1:e===Il?-1:0,c=new Date;return c.setUTCHours(r,i,a,o),c.setUTCFullYear(e,t-1,n+s),[c,s]}function En(e,t){let[n,r]=an(e,t);r<0&&(r+=K,--n);let[i,a]=jt(r,Rc),[o,s]=jt(a,Lc);return Dn(n*Fc+i,o,s)}function Dn(e,t=0,n=0){let r=Math.ceil(Math.max(0,Math.abs(e)-Nl)/Fc)*Math.sign(e),i=new Date(e-r*Fc);return vt(El,[i.getUTCFullYear(),i.getUTCMonth()+1,i.getUTCDate()+r,i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds(),t,n])}function On(e,t){if(t<-Nl)throw RangeError(vc);let n=e.formatToParts(t),r={};for(let e of n)r[e.type]=e.value;return r}function kn(e){return[e.isoYear,e.isoMonth,e.isoDay]}function An(e,t){return[t,0]}function jn(){return Hl}function Mn(e,t){switch(t){case 2:return Pn(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function Nn(e){return Pn(e)?366:365}function Pn(e){return e%4==0&&(e%100!=0||e%400==0)}function Fn(e){let[t,n]=Tn(e.isoYear,e.isoMonth,e.isoDay);return Mt(t.getUTCDay()-n,7)||7}function In(e){return this.id===cl?(({isoYear:e})=>e<1?[`gregory-inverse`,1-e]:[`gregory`,e])(e):this.id===ll?Wl(e):[]}function Ln(e){let t=bn(e);if(t<Ul){let{isoYear:t}=e;return t<1?[`japanese-inverse`,1-t]:[`japanese`,t]}let{era:n,eraYear:r}=vo(On($u(ll),t),ll);return[n,r]}function Rn(e){return zn(e),Hn(e,1),e}function zn(e){return Vn(e,1),e}function Bn(e){return wt(Tl,e,Vn(e))}function Vn(e,t){let{isoYear:n}=e,r=ut(e,`isoMonth`,1,jn(),t);return{isoYear:n,isoMonth:r,isoDay:ut(e,`isoDay`,1,Mn(n,r),t)}}function Hn(e,t){return vt(wl,[ut(e,`isoHour`,0,23,t),ut(e,`isoMinute`,0,59,t),ut(e,`isoSecond`,0,59,t),ut(e,`isoMillisecond`,0,999,t),ut(e,`isoMicrosecond`,0,999,t),ut(e,`isoNanosecond`,0,999,t)])}function G(e){return e===void 0?0:lu(Gt(e))}function Un(e,t=0){e=er(e);let n=uu(e),r=du(e,t);return[lu(e),r,n]}function Wn(e,t,n,r=9,i=0,a=4){t=er(t);let o=su(t,r,i),s=Zn(t),c=hu(t,a),l=ou(t,r,i,1);return o==null?o=Math.max(n,l):ar(o,l),s=Qn(s,l,1),e&&(c=(e=>e<4?(e+2)%4:e)(c)),[o,l,s,c]}function Gn(e,t=6,n){let r=Zn(e=tr(e,Gl)),i=hu(e,7),a=ou(e,t);return a=Wt(Gl,a),r=Qn(r,a,void 0,n),[a,r,i]}function Kn(e){return fu(er(e))}function qn(e,t){return Yn(er(e),t)}function Jn(e){let t=ir(Xl,au,tr(e,Xl),0);if(!t)throw RangeError(Ws(Xl,t));return t}function Yn(e,t=4){let n=$n(e);return[hu(e,4),...Xn(ou(e,t),n)]}function Xn(e,t){return e==null?[t===void 0?1:10**(9-t),t]:[Hc[e],e<4?9-3*e:-1]}function Zn(e){let t=e[ql];return t===void 0?1:$t(t,ql)}function Qn(e,t,n,r){let i=r?K:Hc[t+1];if(i){let n=Hc[t];if(i%((e=dt(ql,e,1,i/n-+!r,1))*n))throw RangeError(Ws(ql,e))}else e=dt(ql,e,1,n?10**9:1,1);return e}function $n(e){let t=e[Jl];if(t!==void 0){if(typeof t!=`number`){if(Yt(t)===`auto`)return;throw RangeError(Ws(Jl,t))}t=dt(Jl,Math.floor(t),0,9,1)}return t}function er(e){return e===void 0?{}:Gt(e)}function tr(e,t){return typeof e==`string`?{[t]:e}:Gt(e)}function nr(e){return{overflow:Ql[e]}}function rr(e,t,n=9,r=0,i){let a=t[e];if(a===void 0)return i?r:void 0;if(a=Yt(a),a===`auto`)return i?r:null;let o=Nc[a];if(o===void 0&&(o=bl[a]),o===void 0)throw RangeError(Xs(e,a,Nc));return dt(e,o,r,n,1,Pc),o}function ir(e,t,n,r=0){let i=n[e];if(i===void 0)return r;let a=Yt(i),o=t[a];if(o===void 0)throw RangeError(Xs(e,a,t));return o}function ar(e,t){if(t>e)throw RangeError(wc)}function or(e){return{branding:Su,epochNanoseconds:e}}function sr(e,t,n){return{branding:xu,calendar:n,timeZone:t,epochNanoseconds:e}}function cr(e,t=e.calendar){return{branding:yu,calendar:t,...St(kl,e)}}function lr(e,t=e.calendar){return{branding:vu,calendar:t,...St(Dl,e)}}function ur(e,t=e.calendar){return{branding:gu,calendar:t,...St(Dl,e)}}function dr(e,t=e.calendar){return{branding:_u,calendar:t,...St(Dl,e)}}function fr(e){return{branding:bu,...St(Ol,e)}}function pr(e){return{branding:Cu,sign:Ri(e),...St(gl,e)}}function mr(e){return fn(e.epochNanoseconds,Rc)[0]}function hr(e){return((e,t=1)=>{let[n,r]=e,i=Math.floor(r/t),a=K/t;return BigInt(n)*BigInt(a)+BigInt(i)})(e.epochNanoseconds)}function gr(e){return e.epochNanoseconds}function _r(e,t,n,r,i){let a=Gi(r),[o,s]=((e,t)=>{let n=t((e=tr(e,Kl))[Yl]),r=cu(e);return r=Wt(Kl,r),[r,n]})(i,e);if(!s&&ji(Math.max(o,a),s))return vr(r,o);if(!s)throw RangeError(xc);if(!r.sign)return 0;let[c,l,u]=Ei(t,n,s),d=Di(u),f=Oi(u),p=ki(u),m=f(l,c,r);Ai(s)||(hn(c),hn(m));let h=p(l,c,m,o);return ji(o,s)?vr(h,o):((e,t,n,r,i,a,o)=>{let s=Ri(e),[c,l]=yr(r,Cl(n,e),n,s,i,a,o),u=br(t,c,l);return e[q[n]]+u*s})(h,d(m),o,l,c,d,f)}function vr(e,t){return dn(Vi(e),Hc[t],1)}function yr(e,t,n,r,i,a,o){let s=q[n],c={...t,[s]:t[s]+r},l=o(e,i,t),u=o(e,i,c);return[a(l),a(u)]}function br(e,t,n){let r=dn(on(t,n));if(!r)throw RangeError(cc);return dn(on(t,e))/r}function xr(e,t){let[n,r,i]=Gn(t,5,1);return or(Ir(e.epochNanoseconds,n,r,i,1))}function Sr(e,t,n){let{epochNanoseconds:r,timeZone:i,calendar:a}=t,[o,s,c]=Gn(n);if(o===0&&s===1)return t;let l=e(i);if(o===6)r=((e,t,n,r)=>{let[i,a]=e(Au(n,t)),o=n.epochNanoseconds,s=pi(t,i),c=pi(t,a);if(cn(o,s,c))throw RangeError(cc);return zr(br(o,s,c),r)?c:s})(Mr,l,t,c);else{let e=l.R(r);r=di(l,Dr(En(r,e),o,s,c),e,2,0,1)}return sr(r,i,a)}function Cr(e,t){return cr(Dr(e,...Gn(t)),e.calendar)}function wr(e,t){let[n,r,i]=Gn(t,5);var a;return fr((a=i,kr(e,jr(n,r),a)[0]))}function Tr(e,t){let n=e(t.timeZone),[r,i]=Mr(Au(t,n)),a=dn(on(pi(n,r),pi(n,i)),Vc,1);if(a<=0)throw RangeError(cc);return a}function Er(e,t){let{timeZone:n,calendar:r}=t;return sr(((e,t,n)=>pi(t,e(Au(n,t))))(Nr,e(n),t),n,r)}function Dr(e,t,n,r){return Or(e,jr(t,n),r)}function Or(e,t,n){let[r,i]=kr(e,t,n);return hn({...Ti(e,i),...r})}function kr(e,t,n){return vn(Rr(_n(e),t,n))}function Ar(e){return Rr(e,Bc,7)}function jr(e,t){return Hc[e]*t}function Mr(e){let t=Nr(e);return[t,Ti(t,1)]}function Nr(e){return jl(6,e)}function Pr(e,t,n){let r=Math.min(Gi(e),6);return Hi(Lr(Vi(e,r),t,n),r)}function Fr(e,t,n,r,i,a,o,s,c,l){if(r===0&&i===1)return e;let[u,d,f]=(ji(r,s)?Ai(s)&&r<6&&n>=6?Vr:Br:Hr)(e,t,n,r,i,a,o,s,c,l);return f&&r!==7&&(u=((e,t,n,r,i,a,o,s)=>{let c=Ri(e);for(let l=r+1;l<=n;l++){if(l===7&&n!==7)continue;let r=Cl(l,e);r[q[l]]+=c;let u=dn(on(o(s(i,a,r)),t));if(u&&Math.sign(u)!==c)break;e=r}return e})(u,d,n,Math.max(6,r),o,s,c,l)),u}function Ir(e,t,n,r,i){return t===6?[Rr((e=>e[0]+e[1]/K)(e),n,r),0]:Lr(e,jr(t,n),r,i)}function Lr(e,t,n,r){let[i,a]=e;r&&a<0&&(a+=K,--i);let[o,s]=jt(Rr(a,t,n),K);return nn(i+o,s)}function Rr(e,t,n){return zr(e/t,n)*t}function zr(e,t){return wu[t](e)}function Br(e,t,n,r,i,a){let o=Ri(e),s=Vi(e),c=Ir(s,r,i,a),l=on(s,c),u=Math.sign(c[0]-s[0])===o,d=Hi(c,Math.min(n,6));return[{...e,...d},rn(t,l),u]}function Vr(e,t,n,r,i,a,o,s,c,l){let u=Ri(e)||1,d=dn(Vi(e,5)),f=jr(r,i),p=Rr(d,f,a),[m,h]=yr(o,{...e,...Sl},6,u,s,c,l),g=p-dn(on(m,h)),_=0;g&&Math.sign(g)!==u?t=an(m,p):(_+=u,p=Rr(g,f,a),t=an(h,p));let v=Ui(p);return[{...e,...v,days:e.days+_},t,!!_]}function Hr(e,t,n,r,i,a,o,s,c,l){let u=Ri(e),d=q[r],f=Cl(r,e);r===7&&(e={...e,weeks:e.weeks+Math.trunc(e.days/7)});let p=Pt(e[d],i)*i;f[d]=p;let[m,h]=yr(o,f,r,i*u,s,c,l),g=p+br(t,m,h)*u*i,_=Rr(g,i,a),v=Math.sign(_-g)===u;return f[d]=_,[f,v?h:m,v]}function Ur(e,t,n,r){let[i,a,o,s]=(e=>{let t=Yn(e=er(e));return[e.timeZone,...t]})(r),c=i!==void 0;return((e,t,n,r,i,a)=>{n=Lr(n,i,r,1);let o=t.R(n);return $r(En(n,o),a)+(e?ii(Ar(o)):`Z`)})(c,t(c?e(i):Tu),n.epochNanoseconds,a,o,s)}function Wr(e,t,n){let[r,i,a,o,s,c]=(e=>{e=er(e);let t=fu(e),n=$n(e),r=mu(e),i=hu(e,4),a=ou(e,4);return[t,pu(e),r,i,...Xn(a,n)]})(n);return((e,t,n,r,i,a,o,s,c,l)=>{r=Lr(r,c,s,1);let u=e(n).R(r);return $r(En(r,u),l)+ii(Ar(u),o)+((e,t)=>t===1?``:`[`+(t===2?`!`:``)+e+`]`)(n,a)+ai(t,i)})(e,t.calendar,t.timeZone,t.epochNanoseconds,r,i,a,o,s,c)}function Gr(e,t){let[n,r,i,a]=(e=>(e=er(e),[fu(e),...Yn(e)]))(t);return o=e.calendar,s=n,c=a,$r(Or(e,i,r),c)+ai(o,s);var o,s,c}function Kr(e,t){return n=e.calendar,r=e,i=Kn(t),ei(r)+ai(n,i);var n,r,i}function qr(e,t){return Zr(e.calendar,ti,e,Kn(t))}function Jr(e,t){return Zr(e.calendar,ni,e,Kn(t))}function Yr(e,t){let[n,r,i]=qn(t);return a=i,ri(kr(e,r,n)[0],a);var a}function Xr(e,t){let[n,r,i]=qn(t,3);return r>1&&zi(e={...e,...Pr(e,r,n)}),((e,t)=>{let{sign:n}=e,r=n===-1?Ii(e):e,{hours:i,minutes:a}=r,[o,s]=fn(Vi(r,3),zc,Nt);Bi(o);let c=si(s,t),l=t>=0||!n||c;return(n<0?`-`:``)+`P`+Qr({Y:li(r.years),M:li(r.months),W:li(r.weeks),D:li(r.days)})+(i||a||o||l?`T`+Qr({H:li(i),M:li(a),S:li(o,l)+c}):``)})(e,i)}function Zr(e,t,n,r){return r===1?e===`iso8601`?t(n):ei(n):r>1||r===0&&e!==`iso8601`?ei(n)+oi(e,r===2):t(n)}function Qr(e){let t=[];for(let n in e){let r=e[n];r&&t.push(r,n)}return t.join(``)}function $r(e,t){return ei(e)+`T`+ri(e,t)}function ei(e){return ti(e)+`-`+Mc(e.isoDay)}function ti(e){let{isoYear:t}=e;return(t<0||t>9999?ci(t)+Ot(6,Math.abs(t)):Ot(4,t))+`-`+Mc(e.isoMonth)}function ni(e){return Mc(e.isoMonth)+`-`+Mc(e.isoDay)}function ri(e,t){let n=[Mc(e.isoHour),Mc(e.isoMinute)];return t!==-1&&n.push(Mc(e.isoSecond)+((e,t,n,r)=>si(e*1e6+t*Lc+n,r))(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,t)),n.join(`:`)}function ii(e,t=0){if(t===1)return``;let[n,r]=jt(Math.abs(e),Vc),[i,a]=jt(r,Bc),[o,s]=jt(a,zc);return ci(e)+Mc(n)+`:`+Mc(i)+(o||s?`:`+Mc(o)+si(s):``)}function ai(e,t){return t!==1&&(t>1||t===0&&e!==`iso8601`)?oi(e,t===2):``}function oi(e,t){return`[`+(t?`!`:``)+`u-ca=`+e+`]`}function si(e,t){let n=Ot(9,e);return n=t===void 0?n.replace(ku,``):n.slice(0,t),n?`.`+n:``}function ci(e){return e<0?`-`:`+`}function li(e,t){return e||t?e.toLocaleString(`fullwide`,{useGrouping:0}):``}function ui(e,t){let{epochNanoseconds:n}=e,r=(t.R?t:t(e.timeZone)).R(n),i=En(n,r);return{calendar:e.calendar,...i,offsetNanoseconds:r}}function di(e,t,n,r=0,i=0,a,o){if(n!==void 0&&r===1&&(r===1||o))return Sn(t,n);let s=e.I(t);if(n!==void 0&&r!==3){let e=((e,t,n,r)=>{let i=xn(t);r&&(n=Ar(n));for(let t of e){let e=dn(on(t,i));if(r&&(e=Ar(e)),e===n)return t}})(s,t,n,a);if(e!==void 0)return e;if(r===0)throw RangeError(gc)}return o?xn(t):fi(e,t,i,s)}function fi(e,t,n=0,r=e.I(t)){if(r.length===1)return r[0];if(n===1)throw RangeError(_c);if(r.length)return r[+(n===3)];let i=xn(t),a=((e,t)=>{let n=e.R(an(t,-K));return(e=>{if(e>K)throw RangeError(hc);return e})(e.R(an(t,K))-n)})(e,i)*(n===2?-1:1);return(r=e.I(En(i,a)))[n===2?0:r.length-1]}function pi(e,t){let n=e.I(t);if(n.length)return n[0];let r=an(xn(t),-K);return e.O(r,1)}function mi(e,t,n){return or(gn(rn(t.epochNanoseconds,(e=>{if(Wi(e))throw RangeError(Sc);return Vi(e,5)})(e?Ii(n):n))))}function hi(e,t,n,r,i,a=Object.create(null)){let o=t(r.timeZone),s=e(r.calendar);return{...r,...bi(o,s,r,n?Ii(i):i,a)}}function gi(e,t,n,r,i=Object.create(null)){let{calendar:a}=n;return cr(xi(e(a),n,t?Ii(r):r,i),a)}function _i(e,t,n,r,i){let{calendar:a}=n;return lr(Si(e(a),n,t?Ii(r):r,i),a)}function vi(e,t,n,r,i){let a=n.calendar,o=e(a),s=mn(Ci(o,n));return t&&(r=Fi(r)),r.sign<0&&(s=o.P(s,{...xl,months:1}),s=Ti(s,-1)),ur(Ci(o,o.P(s,r,i)),a)}function yi(e,t,n){return fr(wi(t,e?Ii(n):n)[0])}function bi(e,t,n,r,i){let a=Vi(r,5),o=n.epochNanoseconds;if(Wi(r)){let s=Au(n,e);o=rn(fi(e,{...Si(t,s,{...r,...Sl},i),...St(wl,s)}),a)}else o=rn(o,a),G(i);return{epochNanoseconds:gn(o)}}function xi(e,t,n,r){let[i,a]=wi(t,n);return hn({...Si(e,t,{...n,...Sl,days:n.days+a},r),...i})}function Si(e,t,n,r){if(n.years||n.months||n.weeks)return e.P(t,n,r);G(r);let i=n.days+Vi(n,5)[0];return i?mn(Ti(t,i)):t}function Ci(e,t,n=1){return Ti(t,n-e.day(t))}function wi(e,t){let[n,r]=Vi(t,5),[i,a]=vn(_n(e)+r);return[i,n+a]}function Ti(e,t){return t?{...e,...Dn(bn(e)+t*Fc)}:e}function Ei(e,t,n){let r=e(n.calendar);return Ai(n)?[n,r,t(n.timeZone)]:[{...n,...Al},r]}function Di(e){return e?gr:xn}function Oi(e){return e?W(bi,e):xi}function ki(e){return e?W(qa,e):Ja}function Ai(e){return e&&e.epochNanoseconds}function ji(e,t){return e<=6-!!Ai(t)}function Mi(e,t,n,r,i,a,o){let s=e(er(o).relativeTo),c=Math.max(Gi(i),Gi(a));if(ji(c,s))return pr(zi(((e,t,n,r)=>{let i=rn(Vi(e),Vi(t),r?-1:1);if(!Number.isFinite(i[0]))throw RangeError(vc);return{...xl,...Hi(i,n)}})(i,a,c,r)));if(!s)throw RangeError(xc);r&&(a=Ii(a));let[l,u,d]=Ei(t,n,s),f=Oi(d);return pr(ki(d)(u,l,f(u,f(u,l,i),a),c))}function Ni(e,t,n,r,i){let a=Gi(r),[o,s,c,l,u]=((e,t,n)=>{e=tr(e,Gl);let r=su(e),i=n(e[Yl]),a=Zn(e),o=hu(e,7),s=ou(e);if(r===void 0&&s===void 0)throw RangeError(Cc);if(s??=0,r??=Math.max(s,t),ar(r,s),a=Qn(a,s,1),a>1&&s>5&&r!==s)throw RangeError(`For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit`);return[r,s,a,o,i]})(i,a,e);if(!u&&Math.max(a,o)<=6)return pr(zi(((e,t,n,r,i)=>{let a=Ir(Vi(e),n,r,i);return{...xl,...Hi(a,t)}})(r,o,s,c,l)));if(!Ai(u)&&!r.sign)return r;if(!u)throw RangeError(xc);let[d,f,p]=Ei(t,n,u),m=Di(p),h=Oi(p),g=ki(p),_=h(f,d,r);Ai(u)||(hn(d),hn(_));let v=g(f,d,_,o),y=r.sign,b=Ri(v);if(y&&b&&y!==b)throw RangeError(cc);return v=Fr(v,m(_),o,s,c,l,f,d,m,h),pr(v)}function Pi(e){return e.sign===-1?Fi(e):e}function Fi(e){return pr(Ii(e))}function Ii(e){let t={};for(let n of q)t[n]=-1*e[n]||0;return t}function Li(e){return!e.sign}function Ri(e,t=q){let n=0;for(let r of t){let t=Math.sign(e[r]);if(t){if(n&&n!==t)throw RangeError(bc);n=t}}return n}function zi(e){for(let t of yl)dt(t,e[t],-ju,ju,1);return Bi(dn(Vi(e),zc)),e}function Bi(e){if(!Number.isSafeInteger(e))throw RangeError(yc)}function Vi(e,t=6){return Lt(e,t,q)}function Hi(e,t=6){let[n,r]=e,i=Rt(r,t,q);if(i[q[t]]+=n*(K/Hc[t]),!Number.isFinite(i[q[t]]))throw RangeError(vc);return i}function Ui(e,t=5){return Rt(e,t,q)}function Wi(e){return!!Ri(e,vl)}function Gi(e){let t=9;for(;t>0&&!e[q[t]];t--);return t}function Ki(e,t){return[e,t]}function qi(e){let t=Math.floor(e/Eu)*Eu;return[t,t+Eu]}function Ji(e){let t=da(e=Xt(e));if(!t)throw RangeError(Tc(e));let n;if(t.j)n=0;else{if(!t.offset)throw RangeError(Tc(e));n=Zi(t.offset)}return t.timeZone&&ma(t.timeZone,1),or(Sn(Rn(t),n))}function Yi(e){let t=da(pl(e));if(!t)throw RangeError(Tc(e));if(t.timeZone)return sa(t,t.offset?Zi(t.offset):void 0);if(t.j)throw RangeError(Tc(e));return la(t)}function Xi(e,t){let n=da(pl(e));if(!n||!n.timeZone)throw RangeError(Tc(e));let{offset:r}=n,i=r?Zi(r):void 0,[,a,o]=Un(t);return sa(n,i,a,o)}function Zi(e){let t=ma(e);if(t===void 0)throw RangeError(Tc(e));return t}function Qi(e){let t=da(pl(e));if(!t||t.j)throw RangeError(Tc(e));return cr(ca(t))}function $i(e,t,n){let r=da(pl(e));if(!r||r.j)throw RangeError(Tc(e));return t?r.calendar===`iso8601`&&(r=r.isoYear===-271821&&r.isoMonth===4?{...r,isoDay:20,...Al}:{...r,isoDay:1,...Al}):n&&r.calendar===`iso8601`&&(r={...r,isoYear:Vl}),lr(r.C?ca(r):la(r))}function ea(e,t){let n=fa(pl(t));if(n)return ta(n),ur(pn(zn(n)));let r=$i(t,1);return ur(Ci(e(r.calendar),r))}function ta(e){if(e.calendar!==`iso8601`)throw RangeError(Ec(e.calendar))}function na(e,t){let n=pa(pl(t));if(n)return ta(n),dr(zn(n));let r=$i(t,0,1),{calendar:i}=r,a=e(i),[o,s,c]=a.v(r),[l,u]=a.q(o,s),[d,f]=a.G(l,u,c);return dr(mn(a.V(d,f,c)),i)}function ra(e){let t,n=(e=>{let t=Wu.exec(e);return t?(_a(t[10]),ga(t)):void 0})(pl(e));if(!n){if(n=da(e),!n||!n.C)throw RangeError(Tc(e));if(n.j)throw RangeError(Ec(`Z`));ta(n)}if((t=fa(e))&&Bn(t)||(t=pa(e))&&Bn(t))throw RangeError(Tc(e));return fr(Hn(n,1))}function ia(e){let t=(e=>{let t=qu.exec(e);return t?(e=>{function t(e,t,a){let o=0,s=0;if(a&&([o,i]=jt(i,Hc[a])),e!==void 0){if(r)throw RangeError(Ec(e));s=(e=>{let t=parseInt(e);if(!Number.isFinite(t))throw RangeError(Ec(e));return t})(e),n=1,t&&(i=va(t)*(Hc[a]/zc),r=1)}return o+s}let n=0,r=0,i=0,a={...vt(q,[t(e[2]),t(e[3]),t(e[4]),t(e[5]),t(e[6],e[7],5),t(e[8],e[9],4),t(e[10],e[11],3)]),...Rt(i,2,q)};if(!n)throw RangeError(Js(q));return ba(e[1])<0&&(a=Ii(a)),a})(t):void 0})(pl(e));if(!t)throw RangeError(Tc(e));return pr(zi(t))}function aa(e){let t=da(e)||fa(e)||pa(e);return t?t.calendar:e}function oa(e){let t=da(e);return t&&(t.timeZone||t.j&&Tu||t.offset)||e}function sa(e,t,n=0,r=0){let i=Ca(e.timeZone),a=J(i),o;return Rn(e),o=e.C?di(a,e,t,n,r,!a.$,e.j):pi(a,e),sr(o,i,Ao(e.calendar))}function ca(e){return ua(hn(Rn(e)))}function la(e){return ua(mn(zn(e)))}function ua(e){return{...e,calendar:Ao(e.calendar)}}function da(e){let t=Uu.exec(e);return t?(e=>{let t=e[10],n=(t||``).toUpperCase()===`Z`;return{isoYear:ha(e),isoMonth:parseInt(e[4]),isoDay:parseInt(e[5]),...ga(e.slice(5)),..._a(e[16]),C:!!e[6],j:n,offset:n?void 0:t}})(t):void 0}function fa(e){let t=Vu.exec(e);return t?(e=>({isoYear:ha(e),isoMonth:parseInt(e[4]),isoDay:1,..._a(e[5])}))(t):void 0}function pa(e){let t=Hu.exec(e);return t?(e=>({isoYear:Vl,isoMonth:parseInt(e[1]),isoDay:parseInt(e[2]),..._a(e[3])}))(t):void 0}function ma(e,t){let n=Gu.exec(e);return n?((e,t)=>{let n=e[4]||e[5];if(t&&n)throw RangeError(Ec(n));return(e=>{if(Math.abs(e)>=K)throw RangeError(mc);return e})((xa(e[2])*Vc+xa(e[3])*Bc+xa(e[4])*zc+va(e[5]||``))*ba(e[1]))})(n,t):void 0}function ha(e){let t=ba(e[1]),n=parseInt(e[2]||e[3]);if(t<0&&!n)throw RangeError(Ec(-0));return t*n}function ga(e){let t=xa(e[3]);return{...vn(va(e[4]||``))[0],isoHour:xa(e[1]),isoMinute:xa(e[2]),isoSecond:t===60?59:t}}function _a(e){let t,n,r=[];if(e.replace(Ku,((e,i,a)=>{let o=!!i,[s,c]=a.split(`=`).reverse();if(c){if(c===`u-ca`)r.push(s),t||=o;else if(o||/[A-Z]/.test(c))throw RangeError(Ec(e))}else{if(n)throw RangeError(Ec(e));n=s}return``})),r.length>1&&t)throw RangeError(Ec(e));return{timeZone:n,calendar:r[0]||`iso8601`}}function va(e){return parseInt(e.padEnd(9,`0`))}function ya(e){return RegExp(`^${e}$`,`i`)}function ba(e){return e&&e!==`+`?-1:1}function xa(e){return e===void 0?0:parseInt(e)}function Sa(e){return Ca(pl(e))}function Ca(e){let t=Ta(e);return typeof t==`number`?ii(t):t?(e=>{if(Xu.test(e))throw RangeError(dc(e));if(Yu.test(e))throw RangeError(pc);return e.toLowerCase().split(`/`).map(((e,t)=>(e.length<=3||/\d/.test(e))&&!/etc|yap/.test(e)?e.toUpperCase():e.replace(/baja|dumont|[a-z]+/g,((e,n)=>e.length<=2&&!t||e===`in`||e===`chat`?e.toUpperCase():e.length>2||!n?Et(e).replace(/island|noronha|murdo|rivadavia|urville/,Et):e)))).join(`/`)})(e):Tu}function wa(e){let t=Ta(e);return typeof t==`number`?t:t?t.resolvedOptions().timeZone:Tu}function Ta(e){let t=ma(e=e.toUpperCase(),1);return t===void 0?e===Tu?void 0:Ju(e):t}function Ea(e,t){return sn(e.epochNanoseconds,t.epochNanoseconds)}function Da(e,t){return sn(e.epochNanoseconds,t.epochNanoseconds)}function Oa(e,t,n,r,i,a){let o=e(er(a).relativeTo),s=Math.max(Gi(r),Gi(i));if(wt(q,r,i))return 0;if(ji(s,o))return sn(Vi(r),Vi(i));if(!o)throw RangeError(xc);let[c,l,u]=Ei(t,n,o),d=Di(u),f=Oi(u);return sn(d(f(l,c,r)),d(f(l,c,i)))}function ka(e,t){return Aa(e,t)||ja(e,t)}function Aa(e,t){return kt(bn(e),bn(t))}function ja(e,t){return kt(_n(e),_n(t))}function Ma(e,t){return!Ea(e,t)}function Na(e,t){return!Da(e,t)&&!!za(e.timeZone,t.timeZone)&&e.calendar===t.calendar}function Pa(e,t){return!ka(e,t)&&e.calendar===t.calendar}function Fa(e,t){return!Aa(e,t)&&e.calendar===t.calendar}function Ia(e,t){return!Aa(e,t)&&e.calendar===t.calendar}function La(e,t){return!Aa(e,t)&&e.calendar===t.calendar}function Ra(e,t){return!ja(e,t)}function za(e,t){if(e===t)return 1;try{return wa(e)===wa(t)}catch{}}function Ba(e,t,n,r){let i=Wn(e,r,3,5),a=Za(t.epochNanoseconds,n.epochNanoseconds,...i);return pr(e?Ii(a):a)}function Va(e,t,n,r,i,a){let o=no(r.calendar,i.calendar),[s,c,l,u]=Wn(n,a,5),d=r.epochNanoseconds,f=i.epochNanoseconds,p=sn(f,d),m;if(p)if(s<6)m=Za(d,f,s,c,l,u);else{let n=t(((e,t)=>{if(!za(e,t))throw RangeError(fc);return e})(r.timeZone,i.timeZone)),d=e(o);m=Ya(d,n,r,i,p,s,a),m=Fr(m,f,s,c,l,u,d,r,gr,W(bi,n))}else m=xl;return pr(n?Ii(m):m)}function Ha(e,t,n,r,i){let a=no(n.calendar,r.calendar),[o,s,c,l]=Wn(t,i,6),u=xn(n),d=xn(r),f=sn(d,u),p;if(f)if(o<=6)p=Za(u,d,o,s,c,l);else{let t=e(a);p=Xa(t,n,r,f,o,i),p=Fr(p,d,o,s,c,l,t,n,xn,xi)}else p=xl;return pr(t?Ii(p):p)}function Ua(e,t,n,r,i){let a=no(n.calendar,r.calendar);return Ga(t,(()=>e(a)),n,r,...Wn(t,i,6,9,6))}function Wa(e,t,n,r,i){let a=no(n.calendar,r.calendar),o=Wn(t,i,9,9,8),s=e(a),c=Ci(s,n),l=Ci(s,r);return c.isoYear===l.isoYear&&c.isoMonth===l.isoMonth&&c.isoDay===l.isoDay?pr(xl):Ga(t,(()=>s),mn(c),mn(l),...o,8)}function Ga(e,t,n,r,i,a,o,s,c=6){let l=xn(n),u=xn(r);if(l===void 0||u===void 0)throw RangeError(vc);let d;if(sn(u,l))if(i===6)d=Za(l,u,i,a,o,s);else{let e=t();d=e.N(n,r,i),a===c&&o===1||(d=Fr(d,u,i,a,o,s,e,n,xn,Si))}else d=xl;return pr(e?Ii(d):d)}function Ka(e,t,n,r){let[i,a,o,s]=Wn(e,r,5,5),c=Rr(to(t,n),jr(a,o),s),l={...xl,...Ui(c,i)};return pr(e?Ii(l):l)}function qa(e,t,n,r,i,a){let o=sn(r.epochNanoseconds,n.epochNanoseconds);return o?i<6?Qa(n.epochNanoseconds,r.epochNanoseconds,i):Ya(t,e,n,r,o,i,a):xl}function Ja(e,t,n,r,i){let a=xn(t),o=xn(n),s=sn(o,a);return s?r<=6?Qa(a,o,r):Xa(e,t,n,s,r,i):xl}function Ya(e,t,n,r,i,a,o){let[s,c,l]=((e,t,n,r)=>{function i(){return d={...Ti(s,l++*-r),...o},f=fi(e,d),sn(c,f)===-r}let a=Au(t,e),o=St(wl,a),s=Au(n,e),c=n.epochNanoseconds,l=0,u=to(a,s),d,f;if(Math.sign(u)===-r&&l++,i()&&(r===-1||i()))throw RangeError(cc);let p=dn(on(f,c));return[a,d,p]})(t,n,r,i);var u,d;return{...a===6?(u=s,d=c,{...xl,days:$a(u,d)}):e.N(s,c,a,o),...Ui(l)}}function Xa(e,t,n,r,i,a){let[o,s,c]=((e,t,n)=>{let r=t,i=to(e,t);return Math.sign(i)===-n&&(r=Ti(t,-n),i+=K*n),[e,r,i]})(t,n,r);return{...e.N(o,s,i,a),...Ui(c)}}function Za(e,t,n,r,i,a){return{...xl,...Hi(Ir(on(e,t),r,i,a),n)}}function Qa(e,t,n){return{...xl,...Hi(on(e,t),n)}}function $a(e,t){return eo(bn(e),bn(t))}function eo(e,t){return Math.trunc((t-e)/Fc)}function to(e,t){return _n(t)-_n(e)}function no(e,t){if(e!==t)throw RangeError(uc);return e}function ro(e){return this.m(e)[0]}function io(e){return this.m(e)[1]}function ao(e){let[t]=this.v(e);return eo(this.p(t),bn(e))+1}function oo(e){let t=Zu.exec(e);if(!t)throw RangeError(ic(e));return[parseInt(t[1]),!!t[2]]}function so(e,t){return`M`+Mc(e)+(t?`L`:``)}function co(e,t,n){return e+(t||n&&e>=n?1:0)}function lo(e,t){return e-(t&&e>=t?1:0)}function uo(e,t){return(t+e)*(Math.sign(t)||1)||0}function fo(e){return ul[mo(e)]}function po(e){return fl[mo(e)]}function mo(e){return jo(e.id||`iso8601`)}function ho(e){function t(e){return((e,t)=>({...vo(e,t),o:e.month,day:parseInt(e.day)}))(On(n,e),r)}let n=$u(e),r=jo(e);return{id:e,h:go(t),l:_o(t)}}function go(e){return pt((t=>e(bn(t))),WeakMap)}function _o(e){let t=e(0).year-Bl;return pt((n=>{let r,i=wn(n-t),a=0,o=[],s=[];do i+=400*Fc;while((r=e(i)).year<=n);do if(i+=(1-r.day)*Fc,r.year===n&&(o.push(i),s.push(r.o)),i-=Fc,++a>100||i<-Nl)throw RangeError(cc);while((r=e(i)).year>=n);return{i:o.reverse(),u:Ac(s.reverse())}}))}function vo(e,t){let n,r,i=yo(e);if(e.era){let a=ul[t],o=dl[t]||{};a!==void 0&&(n=t===`islamic`?`ah`:e.era.normalize(`NFD`).toLowerCase().replace(/[^a-z0-9]/g,``),n===`bc`||n===`b`?n=`bce`:n===`ad`||n===`a`?n=`ce`:n===`beforeroc`&&(n=`broc`),n=o[n]||n,r=i,i=uo(r,a[n]||0))}return{era:n,eraYear:r,year:i}}function yo(e){return parseInt(e.relatedYear||e.year)}function bo(e){let{year:t,o:n,day:r}=this.h(e),{u:i}=this.l(t);return[t,i[n]+1,r]}function xo(e,t=1,n=1){return this.l(e).i[t-1]+(n-1)*Fc}function So(e,t){let n=Co.call(this,e);return[lo(t,n),n===t]}function Co(e){let t=Oo(this,e),n=Oo(this,e-1),r=t.length;if(r>n.length){let e=po(this);if(e<0)return-e;for(let e=0;e<r;e++)if(t[e]!==n[e])return e+1}}function wo(e){return eo(xo.call(this,e),xo.call(this,e+1))}function To(e,t){let{i:n}=this.l(e),r=t+1,i=n;return r>n.length&&(r=1,i=this.l(e+1).i),eo(n[t-1],i[r-1])}function Eo(e){return this.l(e).i.length}function Do(e){let t=this.h(e);return[t.era,t.eraYear]}function Oo(e,t){return Object.keys(e.l(t).u)}function ko(e){return Ao(pl(e))}function Ao(e){if((e=e.toLowerCase())!==`iso8601`&&e!==cl){let t=$u(e).resolvedOptions().calendar;if(jo(e)!==jo(t))throw RangeError(lc(e));return t}return e}function jo(e){return e===`islamicc`&&(e=`islamic`),e.split(`-`)[0]}function Mo(e,t){return n=>n===`iso8601`?e:n===cl||n===ll?Object.assign(Object.create(e),{id:n}):Object.assign(Object.create(t),Qu(n))}function No(e,t,n,r){let i=Vo(n,r,rl,[],Jc);if(i.timeZone!==void 0){let r=n.F(i),a=Uo(i),o=e(i.timeZone);return{epochNanoseconds:di(t(o),{...r,...a},i.offset===void 0?void 0:Zi(i.offset)),timeZone:o}}return{...n.F(i),...Al}}function Po(e,t,n,r,i,a){let o=Vo(n,i,rl,Kc,Jc),s=e(o.timeZone),[c,l,u]=Un(a),d=n.F(o,nr(c)),f=Uo(o,c);return sr(di(t(s),{...d,...f},o.offset===void 0?void 0:Zi(o.offset),l,u),s,r)}function Fo(e,t,n){let r=Vo(e,t,rl,[],Uc),i=G(n);return cr(hn({...e.F(r,nr(i)),...Uo(r,i)}))}function Io(e,t,n,r=[]){let i=Vo(e,t,rl,r);return e.F(i,n)}function Lo(e,t,n,r){let i=Vo(e,t,tl,r);return e.K(i,n)}function Ro(e,t,n,r){let i=Vo(e,n,rl,el);return t&&i.month!==void 0&&i.monthCode===void 0&&i.year===void 0&&(i.year=Vl),e._(i,r)}function zo(e,t){return fr(Uo(Ho(e,Wc,[],1),G(t)))}function Bo(e){let t=Ho(e,gl);return pr(zi({...xl,...t}))}function Vo(e,t,n,r=[],i=[]){return Ho(t,[...e.fields(n),...i].sort(),r)}function Ho(e,t,n,r=!n){let i={},a,o=0;for(let r of t){if(r===a)throw RangeError(qs(r));if(r===`constructor`||r===`__proto__`)throw RangeError(Ks(r));let t=e[r];if(t!==void 0)o=1,od[r]&&(t=od[r](t,r)),i[r]=t;else if(n){if(n.includes(r))throw TypeError(Gs(r));i[r]=ol[r]}a=r}if(r&&!o)throw TypeError(Js(t));return i}function Uo(e,t){return Hn(sd({...ol,...e}),t)}function Wo(e,t,n,r,i){let{calendar:a,timeZone:o}=n,s=e(a),c=t(o),l=[...s.fields(rl),...qc].sort(),u=(e=>{let t=Au(e,J),n=ii(t.offsetNanoseconds),r=ad(e.calendar),[i,a,o]=r.v(t),[s,c]=r.q(i,a),l=so(s,c);return{...cd(t),year:i,monthCode:l,day:o,offset:n}})(n),d=Ho(r,l),f=s.k(u,d),p={...u,...d},[m,h,g]=Un(i,2);return sr(di(c,{...s.F(f,nr(m)),...Hn(sd(p),m)},Zi(p.offset),h,g),o,a)}function Go(e,t,n,r){let i=e(t.calendar),a=[...i.fields(rl),...Uc].sort(),o={...ns(s=t),hour:s.isoHour,minute:s.isoMinute,second:s.isoSecond,millisecond:s.isoMillisecond,microsecond:s.isoMicrosecond,nanosecond:s.isoNanosecond};var s;let c=Ho(n,a),l=G(r),u=i.k(o,c),d={...o,...c};return cr(hn({...i.F(u,nr(l)),...Hn(sd(d),l)}))}function Ko(e,t,n,r){let i=e(t.calendar),a=i.fields(rl).sort(),o=ns(t),s=Ho(n,a),c=i.k(o,s);return i.F(c,r)}function qo(e,t,n,r){let i=e(t.calendar),a=i.fields(tl).sort(),o=(e=>{let t=ad(e.calendar),[n,r]=t.v(e),[i,a]=t.q(n,r);return{year:n,monthCode:so(i,a)}})(t),s=Ho(n,a),c=i.k(o,s);return i.K(c,r)}function Jo(e,t,n,r){let i=e(t.calendar),a=i.fields(rl).sort(),o=(e=>{let t=ad(e.calendar),[n,r,i]=t.v(e),[a,o]=t.q(n,r);return{monthCode:so(a,o),day:i}})(t),s=Ho(n,a),c=i.k(o,s);return i._(c,r)}function Yo(e,t,n){return fr(((e,t,n)=>Uo({...St(Wc,e),...Ho(t,Wc)},G(n)))(e,t,n))}function Xo(e,t){return pr((n=e,r=t,zi({...n,...Ho(r,gl)})));var n,r}function Zo(e,t,n,r,i){t=St(n=e.fields(n),t),r=Ho(r,i=e.fields(i),[]);let a=e.k(t,r);return a=Ho(a,[...n,...i].sort(),[]),e.F(a)}function Qo(e,t){let n=fo(e),r=dl[e.id||``]||{},{era:i,eraYear:a,year:o}=t;if(i!==void 0||a!==void 0){if(i===void 0||a===void 0)throw TypeError(ec);if(!n)throw RangeError($s);let e=n[r[i]||i];if(e===void 0)throw RangeError(nc(i));let t=uo(a,e);if(o!==void 0&&o!==t)throw RangeError(tc);o=t}else if(o===void 0)throw TypeError(rc(n));return o}function $o(e,t,n,r){let{month:i,monthCode:a}=t;if(a!==void 0){let t=((e,t,n,r)=>{let i=e.L(n),[a,o]=oo(t),s=co(a,o,i);if(o){let t=po(e);if(t===void 0)throw RangeError(sc);if(t>0){if(s>t)throw RangeError(sc);if(i===void 0){if(r===1)throw RangeError(sc);s--}}else if(s!==-t||i===void 0&&r===1)throw RangeError(sc)}return s})(e,a,n,r);if(i!==void 0&&i!==t)throw RangeError(ac);i=t,r=1}else if(i===void 0)throw TypeError(oc);return dt(`month`,i,1,e.B(n),r)}function es(e,t,n,r,i){return ut(t,`day`,1,e.U(r,n),i)}function ts(e,t,n,r){let i=0,a=[];for(let e of n)t[e]===void 0?a.push(e):i=1;if(Object.assign(e,t),i)for(let t of r||a)delete e[t]}function ns(e){let t=ad(e.calendar),[n,r,i]=t.v(e),[a,o]=t.q(n,r);return{year:n,monthCode:so(a,o),day:i}}function rs(e){return or(gn(ln(Zt(e))))}function is(e,t,n,r,i=sl){return sr(gn(ln(Zt(n))),t(r),e(i))}function as(e,t,n,r,i=0,a=0,o=0,s=0,c=0,l=0,u=sl){return cr(hn(Rn(yt($t,vt(El,[t,n,r,i,a,o,s,c,l])))),e(u))}function os(e,t,n,r,i=sl){return lr(mn(zn(yt($t,{isoYear:t,isoMonth:n,isoDay:r}))),e(i))}function ss(e,t,n,r=sl,i=1){let a=$t(t),o=$t(n),s=e(r);return ur(pn(zn({isoYear:a,isoMonth:o,isoDay:$t(i)})),s)}function cs(e,t,n,r=sl,i=Vl){let a=$t(t),o=$t(n),s=e(r);return dr(mn(zn({isoYear:$t(i),isoMonth:a,isoDay:o})),s)}function ls(e=0,t=0,n=0,r=0,i=0,a=0){return fr(Hn(yt($t,vt(wl,[e,t,n,r,i,a])),1))}function us(e=0,t=0,n=0,r=0,i=0,a=0,o=0,s=0,c=0,l=0){return pr(zi(yt(en,vt(q,[e,t,n,r,i,a,o,s,c,l]))))}function ds(e,t,n=sl){return sr(e.epochNanoseconds,t,n)}function fs(e){return or(e.epochNanoseconds)}function ps(e,t){return cr(Au(t,e))}function ms(e,t){return lr(Au(t,e))}function hs(e,t){return fr(Au(t,e))}function gs(e,t,n,r){return sr(gn(((e,t,n,r)=>{let i=(e=>uu(er(e)))(r);return fi(e(t),n,i)})(e,n,t,r)),n,t.calendar)}function _s(e,t,n,r,i){let a=e(i.timeZone),o=i.plainTime,s=o===void 0?void 0:t(o),c=n(a),l;return l=s?fi(c,{...r,...s}):pi(c,{...r,...Al}),sr(l,a,r.calendar)}function vs(e,t=Al){return cr(hn({...e,...t}))}function ys(e,t,n){return((e,t)=>{let n=Vo(e,t,nl);return e.K(n,void 0)})(e(t.calendar),n)}function bs(e,t,n){return((e,t)=>{let n=Vo(e,t,al);return e._(n)})(e(t.calendar),n)}function xs(e,t,n,r){return((e,t,n)=>Zo(e,t,nl,Gt(n),el))(e(t.calendar),n,r)}function Ss(e,t,n,r){return((e,t,n)=>Zo(e,t,al,Gt(n),Zc))(e(t.calendar),n,r)}function Cs(e){return or(gn(un(en(e),Rc)))}function ws(e){return or(gn(ln(Zt(e))))}function Ts(e,t,n){let r=new Set(n);return(i,a)=>{let o=n&&Ct(i,n);if(!Ct(i=((e,t)=>{let n={};for(let r in t)e.has(r)||(n[r]=t[r]);return n})(r,i),e)){if(a&&o)throw TypeError(`Invalid formatting options`);i={...t,...i}}return n&&(i.timeZone=Tu,[`full`,`long`].includes(i.J)&&(i.J=`medium`)),i}}function Es(e,t=Ds,n=0){let[r,,,i]=e;return(a,o=Rd,...s)=>{let c=t(i&&i(...s),a,o,r,n);return[c,...Os(e,c.resolvedOptions(),s)]}}function Ds(e,t,n,r,i){if(n=r(n,i),e){if(n.timeZone!==void 0)throw TypeError(kc);n.timeZone=e}return new Rl(t,n)}function Os(e,t,n){let[,r,i]=e;return n.map((e=>(e.calendar&&((e,t,n)=>{if((n||e!==`iso8601`)&&e!==t)throw RangeError(uc)})(e.calendar,t.calendar,i),r(e,t))))}function ks(e,t,n){let r=t.timeZone,i=e(r),a={...Au(t,i),...n||Al},o;return o=n?di(i,a,a.offsetNanoseconds,2):pi(i,a),sr(o,r,t.calendar)}function As(e,t=Al){return cr(hn({...e,...t}))}function js(e,t){return{...e,calendar:t}}function Ms(e,t){return{...e,timeZone:t}}function Ns(e){let t=Ps();return En(t,e.R(t))}function Ps(){return un(Date.now(),Rc)}function Fs(){return qd||=new Rl().resolvedOptions().timeZone}var Is=(e,t)=>`Non-integer ${e}: ${t}`,Ls=(e,t)=>`Non-positive ${e}: ${t}`,Rs=(e,t)=>`Non-finite ${e}: ${t}`,zs=e=>`Cannot convert bigint to ${e}`,Bs=e=>`Invalid bigint: ${e}`,Vs=`Cannot convert Symbol to string`,Hs=`Invalid object`,Us=(e,t,n,r,i)=>i?Us(e,i[t],i[n],i[r]):Ws(e,t)+`; must be between ${n}-${r}`,Ws=(e,t)=>`Invalid ${e}: ${t}`,Gs=e=>`Missing ${e}`,Ks=e=>`Invalid field ${e}`,qs=e=>`Duplicate field ${e}`,Js=e=>`No valid fields: `+e.join(),Ys=`Invalid bag`,Xs=(e,t,n)=>Ws(e,t)+`; must be `+Object.keys(n).join(),Zs=`Cannot use valueOf`,Qs=`Invalid calling context`,$s=`Forbidden era/eraYear`,ec=`Mismatching era/eraYear`,tc=`Mismatching year/eraYear`,nc=e=>`Invalid era: ${e}`,rc=e=>`Missing year`+(e?`/era/eraYear`:``),ic=e=>`Invalid monthCode: ${e}`,ac=`Mismatching month/monthCode`,oc=`Missing month/monthCode`,sc=`Invalid leap month`,cc=`Invalid protocol results`,lc=e=>Ws(`Calendar`,e),uc=`Mismatching Calendars`,dc=e=>Ws(`TimeZone`,e),fc=`Mismatching TimeZones`,pc=`Forbidden ICU TimeZone`,mc=`Out-of-bounds offset`,hc=`Out-of-bounds TimeZone gap`,gc=`Invalid TimeZone offset`,_c=`Ambiguous offset`,vc=`Out-of-bounds date`,yc=`Out-of-bounds duration`,bc=`Cannot mix duration signs`,xc=`Missing relativeTo`,Sc=`Cannot use large units`,Cc=`Required smallestUnit or largestUnit`,wc=`smallestUnit > largestUnit`,Tc=e=>`Cannot parse: ${e}`,Ec=e=>`Invalid substring: ${e}`,Dc=e=>`Cannot format ${e}`,Oc=`Mismatching types for formatting`,kc=`Cannot specify TimeZone`,Ac=W(bt,((e,t)=>t)),jc=W(bt,((e,t,n)=>n)),Mc=W(Ot,2),Nc={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},Pc=Object.keys(Nc),Fc=864e5,Ic=1e3,Lc=1e3,Rc=1e6,zc=1e9,Bc=6e10,Vc=36e11,K=864e11,Hc=[1,Lc,Rc,zc,Bc,Vc,K],Uc=Pc.slice(0,6),Wc=Dt(Uc),Gc=[`offset`],Kc=[`timeZone`],qc=Uc.concat(Gc),Jc=qc.concat(Kc),Yc=[`era`,`eraYear`],Xc=Yc.concat([`year`]),Zc=[`year`],Qc=[`monthCode`],$c=[`month`].concat(Qc),el=[`day`],tl=$c.concat(Zc),nl=Qc.concat(Zc),rl=el.concat(tl),il=el.concat($c),al=el.concat(Qc),ol=jc(Uc,0),sl=`iso8601`,cl=`gregory`,ll=`japanese`,ul={[cl]:{"gregory-inverse":-1,gregory:0},[ll]:{"japanese-inverse":-1,japanese:0,meiji:1867,taisho:1911,showa:1925,heisei:1988,reiwa:2018},ethiopic:{ethioaa:0,ethiopic:5500},coptic:{"coptic-inverse":-1,coptic:0},roc:{"roc-inverse":-1,roc:0},buddhist:{be:0},islamic:{ah:0},indian:{saka:0},persian:{ap:0}},dl={[cl]:{bce:`gregory-inverse`,ce:`gregory`},[ll]:{bce:`japanese-inverse`,ce:`japanese`},ethiopic:{era0:`ethioaa`,era1:`ethiopic`},coptic:{era0:`coptic-inverse`,era1:`coptic`},roc:{broc:`roc-inverse`,minguo:`roc`}},fl={chinese:13,dangi:13,hebrew:-6},pl=W(Kt,`string`),ml=W(Kt,`boolean`),hl=W(Kt,`number`),q=Pc.map((e=>e+`s`)),gl=Dt(q),_l=q.slice(0,6),vl=q.slice(6),yl=vl.slice(1),bl=Ac(q),xl=jc(q,0),Sl=jc(_l,0),Cl=W(Tt,q),wl=[`isoNanosecond`,`isoMicrosecond`,`isoMillisecond`,`isoSecond`,`isoMinute`,`isoHour`],Tl=[`isoDay`,`isoMonth`,`isoYear`],El=wl.concat(Tl),Dl=Dt(Tl),Ol=Dt(wl),kl=Dt(El),Al=jc(Ol,0),jl=W(Tt,El),Ml=1e8,Nl=Ml*Fc,Pl=[Ml,0],Fl=[-1e8,0],Il=275760,Ll=-271821,Rl=Intl.DateTimeFormat,zl=`en-GB`,Bl=1970,Vl=1972,Hl=12,Ul=wn(1868,9,8),Wl=pt(Ln,WeakMap),Gl=`smallestUnit`,Kl=`unit`,ql=`roundingIncrement`,Jl=`fractionalSecondDigits`,Yl=`relativeTo`,Xl=`direction`,Zl={constrain:0,reject:1},Ql=Object.keys(Zl),$l={compatible:0,reject:1,earlier:2,later:3},eu={reject:0,use:1,prefer:2,ignore:3},tu={auto:0,never:1,critical:2,always:3},nu={auto:0,never:1,critical:2},ru={auto:0,never:1},iu={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},au={previous:-1,next:1},ou=W(rr,Gl),su=W(rr,`largestUnit`),cu=W(rr,Kl),lu=W(ir,`overflow`,Zl),uu=W(ir,`disambiguation`,$l),du=W(ir,`offset`,eu),fu=W(ir,`calendarName`,tu),pu=W(ir,`timeZoneName`,nu),mu=W(ir,`offset`,ru),hu=W(ir,`roundingMode`,iu),gu=`PlainYearMonth`,_u=`PlainMonthDay`,vu=`PlainDate`,yu=`PlainDateTime`,bu=`PlainTime`,xu=`ZonedDateTime`,Su=`Instant`,Cu=`Duration`,wu=[Math.floor,e=>It(e)?Math.floor(e):Math.round(e),Math.ceil,e=>It(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>It(e)?Math.trunc(e)||0:Math.round(e),e=>e<0?Math.floor(e):Math.ceil(e),e=>Math.sign(e)*Math.round(Math.abs(e))||0,e=>It(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],Tu=`UTC`,Eu=5184e3,Du=Cn(1847),Ou=Cn(new Date().getUTCFullYear()+10),ku=/0+$/,Au=pt(ui,WeakMap),ju=2**32-1,J=pt((e=>{let t=Ta(e);return typeof t==`object`?new Nu(t):new Mu(t||0)})),Mu=class{constructor(e){this.$=e}R(){return this.$}I(e){return(e=>{let t=xn({...e,...Al});if(!t||Math.abs(t[0])>1e8)throw RangeError(vc)})(e),[Sn(e,this.$)]}O(){}},Nu=class{constructor(e){this.nn=(e=>{function t(e){let[t,s]=qi(At(e,a,o)),c=r(t),l=r(s);return c===l?c:n(i(t,s),c,l,e)}function n(t,n,r,i){let a,o;for(;(i===void 0||(a=i<t[0]?n:i>=t[1]?r:void 0)===void 0)&&(o=t[1]-t[0]);){let n=t[0]+Math.floor(o/2);e(n)===r?t[1]=n:t[0]=n+1}return a}let r=pt(e),i=pt(Ki),a=Du,o=Ou;return{tn(e){let n=t(e-86400),r=t(e+86400),i=e-n,a=e-r;if(n===r)return[i];let o=t(i);return o===t(a)?[e-o]:n>r?[i,a]:[]},rn:t,O(e,t){let s=At(e,a,o),[c,l]=qi(s),u=Eu*t,d=t<0?()=>l>a||(a=s,0):()=>c<o||(o=s,0);for(;d();){let a=r(c),o=r(l);if(a!==o){let r=i(c,l);n(r,a,o);let s=r[0];if((kt(s,e)||1)===t)return s}c+=u,l+=u}}}})((e=>t=>{let n=On(e,t*Ic);return Cn(yo(n),parseInt(n.month),parseInt(n.day),parseInt(n.hour),parseInt(n.minute),parseInt(n.second))-t})(e))}R(e){return this.nn.rn((e=>yn(e)[0])(e))*zc}I(e){let[t,n]=[Cn((r=e).isoYear,r.isoMonth,r.isoDay,r.isoHour,r.isoMinute,r.isoSecond),r.isoMillisecond*Rc+r.isoMicrosecond*Lc+r.isoNanosecond];var r;return this.nn.tn(t).map((e=>gn(an(un(e,zc),n))))}O(e,t){let[n,r]=yn(e),i=this.nn.O(n+(t>0||r?1:0),t);if(i!==void 0)return un(i,zc)}},Pu=`([+-])`,Fu=`(?:[.,](\\d{1,9}))?`,Iu=`(?:(?:${Pu}(\\d{6}))|(\\d{4}))-?(\\d{2})`,Lu=`([+-])(\\d{2})(?::?(\\d{2})(?::?(\\d{2})(?:[.,](\\d{1,9}))?)?)?`,Ru=Iu+`-?(\\d{2})(?:[T ](\\d{2})(?::?(\\d{2})(?::?(\\d{2})(?:[.,](\\d{1,9}))?)?)?(Z|([+-])(\\d{2})(?::?(\\d{2})(?::?(\\d{2})(?:[.,](\\d{1,9}))?)?)?)?)?`,zu=`\\[(!?)([^\\]]*)\\]`,Bu=`((?:${zu}){0,9})`,Vu=ya(Iu+Bu),Hu=ya(`(?:--)?(\\d{2})-?(\\d{2})`+Bu),Uu=ya(Ru+Bu),Wu=ya(`T?(\\d{2})(?::?(\\d{2})(?::?(\\d{2})(?:[.,](\\d{1,9}))?)?)?(?:([+-])(\\d{2})(?::?(\\d{2})(?::?(\\d{2})(?:[.,](\\d{1,9}))?)?)?)?`+Bu),Gu=ya(Lu),Ku=new RegExp(zu,`g`),qu=ya(`${Pu}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${Fu}H)?(?:(\\d+)${Fu}M)?(?:(\\d+)${Fu}S)?)?`),Ju=pt((e=>new Rl(zl,{timeZone:e,era:`short`,year:`numeric`,month:`numeric`,day:`numeric`,hour:`numeric`,minute:`numeric`,second:`numeric`}))),Yu=/^(AC|AE|AG|AR|AS|BE|BS|CA|CN|CS|CT|EA|EC|IE|IS|JS|MI|NE|NS|PL|PN|PR|PS|SS|VS)T$/,Xu=/[^\w\/:+-]+/,Zu=/^M(\d{2})(L?)$/,Qu=pt(ho),$u=pt((e=>new Rl(zl,{calendar:e,timeZone:Tu,era:`short`,year:`numeric`,month:`short`,day:`numeric`}))),ed={P(e,t,n){let r=G(n),i,{years:a,months:o,weeks:s,days:c}=t;if(c+=Vi(t,5)[0],a||o)i=((e,t,n,r,i)=>{let[a,o,s]=e.v(t);if(n){let[t,r]=e.q(a,o);a+=n,o=co(t,r,e.L(a)),o=dt(`month`,o,1,e.B(a),i)}return r&&([a,o]=e.un(a,o,r)),s=dt(`day`,s,1,e.U(a,o),i),e.p(a,o,s)})(this,e,a,o,r);else{if(!s&&!c)return e;i=bn(e)}if(i===void 0)throw RangeError(vc);return i+=(7*s+c)*Fc,mn(Dn(i))},N(e,t,n){if(n<=7){let r=0,i=$a({...e,...Al},{...t,...Al});return n===7&&([r,i]=Nt(i,7)),{...xl,weeks:r,days:i}}let r=this.v(e),i=this.v(t),[a,o,s]=((e,t,n,r,i,a,o)=>{let s=i-t,c=a-n,l=o-r;if(s||c){let u=Math.sign(s||c),d=e.U(i,a),f=0;if(Math.sign(l)===-u){let r=d;[i,a]=e.un(i,a,-u),s=i-t,c=a-n,d=e.U(i,a),f=u<0?-r:d}if(l=o-Math.min(r,d)+f,s){let[r,o]=e.q(t,n),[l,d]=e.q(i,a);if(c=l-r||Number(d)-Number(o),Math.sign(c)===-u){let n=u<0&&-e.B(i);s=(i-=u)-t,c=a-co(r,o,e.L(i))+(n||e.B(i))}}}return[s,c,l]})(this,...r,...i);return n===8&&(o+=this.cn(a,r[0]),a=0),{...xl,years:a,months:o,days:s}},F(e,t){let n=G(t),r=Qo(this,e),i=$o(this,e,r,n),a=es(this,e,i,r,n);return lr(mn(this.V(r,i,a)),this.id||`iso8601`)},K(e,t){let n=G(t),r=Qo(this,e),i=$o(this,e,r,n);return ur(pn(this.V(r,i,1)),this.id||`iso8601`)},_(e,t){let n=G(t),r,i,a,o=e.eraYear!==void 0||e.year!==void 0?Qo(this,e):void 0,s=!this.id;if(o===void 0&&s&&(o=Vl),o!==void 0){let t=$o(this,e,o,n);r=es(this,e,t,o,n);let s=this.L(o);i=lo(t,s),a=t===s}else{if(e.monthCode===void 0)throw TypeError(oc);if([i,a]=oo(e.monthCode),this.id&&this.id!==cl&&this.id!==ll)if(this.id&&jo(this.id)===`coptic`&&n===0){let t=a||i!==13?30:6;r=e.day,r=At(r,1,t)}else if(this.id&&jo(this.id)===`chinese`&&n===0){let t=!a||i!==1&&i!==9&&i!==10&&i!==11&&i!==12?30:29;r=e.day,r=At(r,1,t)}else r=e.day;else r=es(this,e,$o(this,e,Vl,n),Vl,n)}let c=this.G(i,a,r);if(!c)throw RangeError(`Cannot guess year`);let[l,u]=c;return dr(mn(this.V(l,u,r)),this.id||`iso8601`)},fields(e){return fo(this)&&e.includes(`year`)?[...e,...Yc]:e},k(e,t){let n=Object.assign(Object.create(null),e);return ts(n,t,$c),fo(this)&&(ts(n,t,Xc),this.id===ll&&ts(n,t,il,Yc)),n},inLeapYear(e){let[t]=this.v(e);return this.sn(t)},monthsInYear(e){let[t]=this.v(e);return this.B(t)},daysInMonth(e){let[t,n]=this.v(e);return this.U(t,n)},daysInYear(e){let[t]=this.v(e);return this.fn(t)},dayOfYear:ao,era(e){return this.hn(e)[0]},eraYear(e){return this.hn(e)[1]},monthCode(e){let[t,n]=this.v(e),[r,i]=this.q(t,n);return so(r,i)},dayOfWeek:Fn,daysInWeek(){return 7}},td={v:kn,hn:In,q:An},nd=Object.assign({},ed,Object.assign({},{dayOfYear:ao,v:kn,p:wn},{weekOfYear:ro,yearOfWeek:io,m(e){function t(e){return(7-e<r?7:0)-e}function n(e){let n=Nn(f+e),r=e||1;return u=(n+(t(Mt(c+n*r,7))-l)*r)/7}let r=this.id?1:4,i=Fn(e),a=this.dayOfYear(e),o=Mt(i-1,7),s=a-1,c=Mt(o-s,7),l=t(c),u,d=Math.floor((s-l)/7)+1,f=e.isoYear;return d?d>n(0)&&(d=1,f++):(d=n(-1),f--),[d,f,u]}}),{v:kn,hn:In,q:An,G(e,t){if(!t)return[Vl,e]},sn:Pn,L(){},B:jn,cn:e=>e*Hl,U:Mn,fn:Nn,V:(e,t,n)=>({isoYear:e,isoMonth:t,isoDay:n}),p:wn,un:(e,t,n)=>(e+=Pt(n,Hl),(t+=Ft(n,Hl))<1?(e--,t+=Hl):t>Hl&&(e++,t-=Hl),[e,t]),year(e){return e.isoYear},month(e){return e.isoMonth},day:e=>e.isoDay}),rd={v:bo,hn:Do,q:So},id=Object.assign({},ed,{dayOfYear:ao,v:bo,p:xo,weekOfYear:ro,yearOfWeek:io,m(){return[]}},{v:bo,hn:Do,q:So,G(e,t,n){let r=this.id&&jo(this.id)===`chinese`?((e,t,n)=>{if(t)switch(e){case 1:return 1651;case 2:return n<30?1947:1765;case 3:return n<30?1966:1955;case 4:return n<30?1963:1944;case 5:return n<30?1971:1952;case 6:return n<30?1960:1941;case 7:return n<30?1968:1938;case 8:return n<30?1957:1718;case 9:return 1832;case 10:return 1870;case 11:return 1814;case 12:return 1890}return 1972})(e,t,n):Vl,[i,a,o]=bo.call(this,{isoYear:r,isoMonth:Hl,isoDay:31}),s=Co.call(this,i),c=a===s;(kt(e,lo(a,s))||kt(Number(t),Number(c))||kt(n,o))===1&&i--;for(let r=0;r<100;r++){let a=i-r,o=Co.call(this,a),s=co(e,t,o);if(t===(s===o)&&n<=To.call(this,a,s))return[a,s]}},sn(e){let t=wo.call(this,e);return t>wo.call(this,e-1)&&t>wo.call(this,e+1)},L:Co,B:Eo,cn(e,t){let n=t+e,r=Math.sign(e),i=r<0?-1:0,a=0;for(let e=t;e!==n;e+=r)a+=Eo.call(this,e+i);return a},U:To,fn:wo,V(e,t,n){return Dn(xo.call(this,e,t,n))},p:xo,un(e,t,n){if(n){if(t+=n,!Number.isSafeInteger(t))throw RangeError(vc);if(n<0)for(;t<1;)t+=Eo.call(this,--e);else{let n;for(;t>(n=Eo.call(this,e));)t-=n,e++}}return[e,t]},year(e){return this.h(e).year},month(e){let{year:t,o:n}=this.h(e),{u:r}=this.l(t);return r[n]+1},day(e){return this.h(e).day}}),ad=Mo(td,rd),Y=Mo(nd,id),od={era:Xt,eraYear:$t,year:$t,month:tn,monthCode(e){let t=Xt(e);return oo(t),t},day:tn,...jc(Uc,$t),...jc(q,en),offset(e){let t=Xt(e);return Zi(t),t}},sd=W(xt,Uc,wl),cd=W(xt,wl,Uc),ld=`numeric`,ud=[`timeZoneName`],dd={month:ld,day:ld},fd={year:ld,month:ld},pd=Object.assign({},fd,{day:ld}),md={hour:ld,minute:ld,second:ld},hd=Object.assign({},pd,md),gd=Object.assign({},hd,{timeZoneName:`short`}),_d=Object.keys(fd),vd=Object.keys(dd),yd=Object.keys(pd),bd=Object.keys(md),xd=[`dateStyle`],Sd=_d.concat(xd),Cd=vd.concat(xd),wd=yd.concat(xd,[`weekday`]),Td=bd.concat([`dayPeriod`,`timeStyle`,`fractionalSecondDigits`]),Ed=wd.concat(Td),Dd=ud.concat(Td),Od=ud.concat(wd),kd=ud.concat([`day`,`weekday`],Td),Ad=ud.concat([`year`,`weekday`],Td),jd=Ts(Ed,hd),Md=Ts(Ed,gd),Nd=Ts(Ed,hd,ud),Pd=Ts(wd,pd,Dd),Fd=Ts(Td,md,Od),Id=Ts(Sd,fd,kd),Ld=Ts(Cd,dd,Ad),Rd={},zd=new Rl(void 0,{calendar:sl}).resolvedOptions().calendar===sl,Bd=[jd,mr],Vd=[Md,mr,0,(e,t)=>{let n=e.timeZone;if(t&&t.timeZone!==n)throw RangeError(fc);return n}],Hd=[Nd,bn],Ud=[Pd,bn],Wd=[Fd,e=>_n(e)/Rc],Gd=[Id,bn,zd],Kd=[Ld,bn,zd],qd;function Jd(e,t,n,r,i){function a(...e){if(!(this instanceof a))throw TypeError(Qs);xf(this,t(...e))}function o(e,t){return Object.defineProperties((function(...t){return e.call(this,s(this),...t)}),mt(t))}function s(t){let n=bf(t);if(!n||n.branding!==e)throw TypeError(Qs);return n}return Object.defineProperties(a.prototype,{...gt(yt(o,n)),...ht(yt(o,r)),..._t(`Temporal.`+e)}),Object.defineProperties(a,{...ht(i),...mt(e)}),[a,e=>{let t=Object.create(a.prototype);return xf(t,e),t},s]}function Yd(e){if(bf(e)||e.calendar!==void 0||e.timeZone!==void 0)throw TypeError(Ys);return e}function Xd(e){return Zd(e)||`iso8601`}function Zd(e){let{calendar:t}=e;if(t!==void 0)return Qd(t)}function Qd(e){if(ft(e)){let{calendar:t}=bf(e)||{};if(!t)throw TypeError(lc(e));return t}return(e=>Ao(aa(pl(e))))(e)}function $d(e){let t={};for(let n in e)t[n]=e=>{let{calendar:t}=e;return Y(t)[n](e)};return t}function ef(){throw TypeError(Zs)}function tf(e){if(ft(e)){let{timeZone:t}=bf(e)||{};if(!t)throw TypeError(dc(e));return t}return(e=>Ca(oa(pl(e))))(e)}function nf(e){if(ft(e)){let t=bf(e);return t&&t.branding===`Duration`?t:Bo(e)}return ia(e)}function rf(e){if(e!==void 0){if(ft(e)){let t=bf(e)||{};switch(t.branding){case xu:case vu:return t;case yu:return lr(t)}let n=Xd(e);return{...No(tf,J,Y(n),e),calendar:n}}return Yi(e)}}function af(e,t){if(ft(e)){let n=bf(e)||{};switch(n.branding){case bu:return G(t),n;case yu:return G(t),fr(n);case xu:return G(t),hs(J,n)}return zo(e,t)}let n=ra(e);return G(t),n}function of(e){return e===void 0?void 0:af(e)}function sf(e,t){if(ft(e)){let n=bf(e)||{};switch(n.branding){case yu:return G(t),n;case vu:return G(t),cr({...n,...Al});case xu:return G(t),ps(J,n)}return Fo(Y(Xd(e)),e,t)}let n=Qi(e);return G(t),n}function cf(e,t){if(ft(e)){let n=bf(e);if(n&&n.branding===`PlainMonthDay`)return G(t),n;let r=Zd(e);return Ro(Y(r||`iso8601`),!r,e,t)}let n=na(Y,e);return G(t),n}function lf(e,t){if(ft(e)){let n=bf(e);return n&&n.branding===`PlainYearMonth`?(G(t),n):Lo(Y(Xd(e)),e,t)}let n=ea(Y,e);return G(t),n}function uf(e,t){if(ft(e)){let n=bf(e)||{};switch(n.branding){case vu:return G(t),n;case yu:return G(t),lr(n);case xu:return G(t),ms(J,n)}return Io(Y(Xd(e)),e,t)}let n=$i(e);return G(t),n}function df(e,t){if(ft(e)){let n=bf(e);if(n&&n.branding===`ZonedDateTime`)return Un(t),n;let r=Xd(e);return Po(tf,J,Y(r),r,e,t)}return Xi(e,t)}function ff(e){return yt((e=>t=>e(pf(t))),e)}function pf(e){return Au(e,J)}function mf(e){if(ft(e)){let t=bf(e);if(t)switch(t.branding){case Su:return t;case xu:return or(t.epochNanoseconds)}}return Ji(e)}function hf(){function e(e,n){return new t(e,n)}function t(e,t=Object.create(null)){up.set(this,((e,t)=>{let n=new Rl(e,t),r=n.resolvedOptions(),i=r.locale,a=St(Object.keys(t),r),o=pt(vf),s=(e,...t)=>{if(e){if(t.length!==2)throw TypeError(Oc);for(let e of t)if(e===void 0)throw TypeError(Oc)}e||t[0]!==void 0||(t=[]);let r=t.map((e=>bf(e)||Number(e))),s,c=0;for(let e of r){let t=typeof e==`object`?e.branding:void 0;if(c++&&t!==s)throw TypeError(Oc);s=t}return s?o(s)(i,a,...r):[n,...r]};return s.X=n,s})(e,t))}let n=Rl.prototype,r=Object.getOwnPropertyDescriptors(n),i=Object.getOwnPropertyDescriptors(Rl);for(let t in r){let n=r[t],i=t.startsWith(`format`)&&gf(t);typeof n.value==`function`?n.value=t===`constructor`?e:i||_f(t):i&&(n.get=function(){if(!up.has(this))throw TypeError(`Invalid calling context`);return(...e)=>i.apply(this,e)},Object.defineProperties(n.get,mt(`get ${t}`)))}return i.prototype.value=t.prototype=Object.create({},r),Object.defineProperties(e,i),e}function gf(e){return Object.defineProperties((function(...t){let[n,...r]=up.get(this)(e.includes(`Range`),...t);return n[e](...r)}),mt(e))}function _f(e){return Object.defineProperties((function(...t){return up.get(this).X[e](...t)}),mt(e))}function vf(e){let t=Ff[e];if(!t)throw TypeError(Dc(e));return Es(t,pt(Ds),1)}var yf=new WeakMap,bf=yf.get.bind(yf),xf=yf.set.bind(yf),Sf={era:zt,eraYear:Vt,year:Ut,month:Ht,daysInMonth:Ht,daysInYear:Ht,inLeapYear:ml,monthsInYear:Ht},Cf={monthCode:pl},wf={day:Ht},Tf=$d(Object.assign({},Sf,Cf,wf,{dayOfWeek:Ht,dayOfYear:Ht,weekOfYear:Bt,yearOfWeek:Vt,daysInWeek:Ht})),Ef=$d({...Sf,...Cf}),Df=$d({...Cf,...wf}),Of={calendarId:e=>e.calendar},kf=bt((e=>t=>t[e]),q.concat(`sign`)),Af=bt(((e,t)=>e=>e[wl[t]]),Uc),jf={epochMilliseconds:mr,epochNanoseconds:hr},[Mf,Nf,Pf]=Jd(Cu,us,{...kf,blank:Li},{with:(e,t)=>Nf(Xo(e,t)),negated:e=>Nf(Fi(e)),abs:e=>Nf(Pi(e)),add:(e,t,n)=>Nf(Mi(rf,Y,J,0,e,nf(t),n)),subtract:(e,t,n)=>Nf(Mi(rf,Y,J,1,e,nf(t),n)),round:(e,t)=>Nf(Ni(rf,Y,J,e,t)),total:(e,t)=>_r(rf,Y,J,e,t),toLocaleString(e,t,n){return Intl.DurationFormat?new Intl.DurationFormat(t,n).format(this):Xr(e)},toString:Xr,toJSON:e=>Xr(e),valueOf:ef},{from:e=>Nf(nf(e)),compare:(e,t,n)=>Oa(rf,Y,J,nf(e),nf(t),n)}),Ff={Instant:Bd,PlainDateTime:Hd,PlainDate:Ud,PlainTime:Wd,PlainYearMonth:Gd,PlainMonthDay:Kd},If=Es(Bd),Lf=Es(Vd),Rf=Es(Hd),zf=Es(Ud),Bf=Es(Wd),Vf=Es(Gd),Hf=Es(Kd),[Uf,Wf]=Jd(bu,ls,Af,{with(e,t,n){return Wf(Yo(this,Yd(t),n))},add:(e,t)=>Wf(yi(0,e,nf(t))),subtract:(e,t)=>Wf(yi(1,e,nf(t))),until:(e,t,n)=>Nf(Ka(0,e,af(t),n)),since:(e,t,n)=>Nf(Ka(1,e,af(t),n)),round:(e,t)=>Wf(wr(e,t)),equals:(e,t)=>Ra(e,af(t)),toLocaleString(e,t,n){let[r,i]=Bf(t,n,e);return r.format(i)},toString:Yr,toJSON:e=>Yr(e),valueOf:ef},{from:(e,t)=>Wf(af(e,t)),compare:(e,t)=>ja(af(e),af(t))}),[Gf,Kf]=Jd(yu,W(as,ko),{...Of,...Tf,...Af},{with:(e,t,n)=>Kf(Go(Y,e,Yd(t),n)),withCalendar:(e,t)=>Kf(js(e,Qd(t))),withPlainTime:(e,t)=>Kf(As(e,of(t))),add:(e,t,n)=>Kf(gi(Y,0,e,nf(t),n)),subtract:(e,t,n)=>Kf(gi(Y,1,e,nf(t),n)),until:(e,t,n)=>Nf(Ha(Y,0,e,sf(t),n)),since:(e,t,n)=>Nf(Ha(Y,1,e,sf(t),n)),round:(e,t)=>Kf(Cr(e,t)),equals:(e,t)=>Pa(e,sf(t)),toZonedDateTime:(e,t,n)=>rp(gs(J,e,tf(t),n)),toPlainDate:e=>ep(lr(e)),toPlainTime:e=>Wf(fr(e)),toLocaleString(e,t,n){let[r,i]=Rf(t,n,e);return r.format(i)},toString:Gr,toJSON:e=>Gr(e),valueOf:ef},{from:(e,t)=>Kf(sf(e,t)),compare:(e,t)=>ka(sf(e),sf(t))}),[qf,Jf,Yf]=Jd(_u,W(cs,ko),{...Of,...Df},{with:(e,t,n)=>Jf(Jo(Y,e,Yd(t),n)),equals:(e,t)=>La(e,cf(t)),toPlainDate(e,t){return ep(Ss(Y,e,this,t))},toLocaleString(e,t,n){let[r,i]=Hf(t,n,e);return r.format(i)},toString:Jr,toJSON:e=>Jr(e),valueOf:ef},{from:(e,t)=>Jf(cf(e,t))}),[Xf,Zf,Qf]=Jd(gu,W(ss,ko),{...Of,...Ef},{with:(e,t,n)=>Zf(qo(Y,e,Yd(t),n)),add:(e,t,n)=>Zf(vi(Y,0,e,nf(t),n)),subtract:(e,t,n)=>Zf(vi(Y,1,e,nf(t),n)),until:(e,t,n)=>Nf(Wa(Y,0,e,lf(t),n)),since:(e,t,n)=>Nf(Wa(Y,1,e,lf(t),n)),equals:(e,t)=>Ia(e,lf(t)),toPlainDate(e,t){return ep(xs(Y,e,this,t))},toLocaleString(e,t,n){let[r,i]=Vf(t,n,e);return r.format(i)},toString:qr,toJSON:e=>qr(e),valueOf:ef},{from:(e,t)=>Zf(lf(e,t)),compare:(e,t)=>Aa(lf(e),lf(t))}),[$f,ep,tp]=Jd(vu,W(os,ko),{...Of,...Tf},{with:(e,t,n)=>ep(Ko(Y,e,Yd(t),n)),withCalendar:(e,t)=>ep(js(e,Qd(t))),add:(e,t,n)=>ep(_i(Y,0,e,nf(t),n)),subtract:(e,t,n)=>ep(_i(Y,1,e,nf(t),n)),until:(e,t,n)=>Nf(Ua(Y,0,e,uf(t),n)),since:(e,t,n)=>Nf(Ua(Y,1,e,uf(t),n)),equals:(e,t)=>Fa(e,uf(t)),toZonedDateTime(e,t){return rp(_s(tf,af,J,e,ft(t)?t:{timeZone:t}))},toPlainDateTime:(e,t)=>Kf(vs(e,of(t))),toPlainYearMonth(e){return Zf(ys(Y,e,this))},toPlainMonthDay(e){return Jf(bs(Y,e,this))},toLocaleString(e,t,n){let[r,i]=zf(t,n,e);return r.format(i)},toString:Kr,toJSON:e=>Kr(e),valueOf:ef},{from:(e,t)=>ep(uf(e,t)),compare:(e,t)=>Aa(uf(e),uf(t))}),[np,rp]=Jd(xu,W(is,ko,Sa),{...jf,...Of,...ff(Tf),...ff(Af),offset:e=>ii(pf(e).offsetNanoseconds),offsetNanoseconds:e=>pf(e).offsetNanoseconds,timeZoneId:e=>e.timeZone,hoursInDay:e=>Tr(J,e)},{with:(e,t,n)=>rp(Wo(Y,J,e,Yd(t),n)),withCalendar:(e,t)=>rp(js(e,Qd(t))),withTimeZone:(e,t)=>rp(Ms(e,tf(t))),withPlainTime:(e,t)=>rp(ks(J,e,of(t))),add:(e,t,n)=>rp(hi(Y,J,0,e,nf(t),n)),subtract:(e,t,n)=>rp(hi(Y,J,1,e,nf(t),n)),until:(e,t,n)=>Nf(pr(Va(Y,J,0,e,df(t),n))),since:(e,t,n)=>Nf(pr(Va(Y,J,1,e,df(t),n))),round:(e,t)=>rp(Sr(J,e,t)),startOfDay:e=>rp(Er(J,e)),equals:(e,t)=>Na(e,df(t)),toInstant:e=>ap(fs(e)),toPlainDateTime:e=>Kf(ps(J,e)),toPlainDate:e=>ep(ms(J,e)),toPlainTime:e=>Wf(hs(J,e)),toLocaleString(e,t,n={}){let[r,i]=Lf(t,n,e);return r.format(i)},toString:(e,t)=>Wr(J,e,t),toJSON:e=>Wr(J,e),valueOf:ef,getTimeZoneTransition(e,t){let{timeZone:n,epochNanoseconds:r}=e,i=Jn(t),a=J(n).O(r,i);return a?rp({...e,epochNanoseconds:a}):null}},{from:(e,t)=>rp(df(e,t)),compare:(e,t)=>Da(df(e),df(t))}),[ip,ap,op]=Jd(Su,rs,jf,{add:(e,t)=>ap(mi(0,e,nf(t))),subtract:(e,t)=>ap(mi(1,e,nf(t))),until:(e,t,n)=>Nf(Ba(0,e,mf(t),n)),since:(e,t,n)=>Nf(Ba(1,e,mf(t),n)),round:(e,t)=>ap(xr(e,t)),equals:(e,t)=>Ma(e,mf(t)),toZonedDateTimeISO:(e,t)=>rp(ds(e,tf(t))),toLocaleString(e,t,n){let[r,i]=If(t,n,e);return r.format(i)},toString:(e,t)=>Ur(tf,J,e,t),toJSON:e=>Ur(tf,J,e),valueOf:ef},{from:e=>ap(mf(e)),fromEpochMilliseconds:e=>ap(Cs(e)),fromEpochNanoseconds:e=>ap(ws(e)),compare:(e,t)=>Ea(mf(e),mf(t))}),sp=Object.defineProperties({},{..._t(`Temporal.Now`),...ht({timeZoneId:()=>Fs(),instant:()=>ap(or(Ps())),zonedDateTimeISO:(e=Fs())=>rp(sr(Ps(),tf(e),sl)),plainDateTimeISO:(e=Fs())=>Kf(cr(Ns(J(tf(e))),sl)),plainDateISO:(e=Fs())=>ep(lr(Ns(J(tf(e))),sl)),plainTimeISO:(e=Fs())=>Wf(fr(Ns(J(tf(e)))))})}),cp=Object.defineProperties({},{..._t(`Temporal`),...ht({PlainYearMonth:Xf,PlainMonthDay:qf,PlainDate:$f,PlainTime:Uf,PlainDateTime:Gf,ZonedDateTime:np,Instant:ip,Duration:Mf,Now:sp})}),lp=hf(),up=new WeakMap;ht({DateTimeFormat:lp});var dp=e.n(((e,t)=>{t.exports=n;function n(e){var t=new i(e).tokenize(),n=[],a=[],o=[];return t.forEach(function(e){e.type===`operator`&&(e.value===`,`||e.value===`;`)?(a.length&&n.push(a),a=[]):a.push(e)}),a.length&&n.push(a),n.forEach(function(e){e=r(e),e.length&&(o=o.concat(e))}),o}function r(e){var t,r=!1,i=`text`,a,o=[],s={address:[],comment:[],group:[],text:[]},c,l;for(c=0,l=e.length;c<l;c++)if(t=e[c],t.type===`operator`)switch(t.value){case`<`:i=`address`;break;case`(`:i=`comment`;break;case`:`:i=`group`,r=!0;break;default:i=`text`}else t.value&&(i===`address`&&(t.value=t.value.replace(/^[^<]*<\s*/,``)),s[i].push(t.value));if(!s.text.length&&s.comment.length&&(s.text=s.comment,s.comment=[]),r)s.text=s.text.join(` `),o.push({name:s.text||a&&a.name,group:s.group.length?n(s.group.join(`,`)):[]});else{if(!s.address.length&&s.text.length){for(c=s.text.length-1;c>=0;c--)if(s.text[c].match(/^[^@\s]+@[^@\s]+$/)){s.address=s.text.splice(c,1);break}var u=function(e){return s.address.length?e:(s.address=[e.trim()],` `)};if(!s.address.length)for(c=s.text.length-1;c>=0&&(s.text[c]=s.text[c].replace(/\s*\b[^@\s]+@[^\s]+\b\s*/,u).trim(),!s.address.length);c--);}if(!s.text.length&&s.comment.length&&(s.text=s.comment,s.comment=[]),s.address.length>1&&(s.text=s.text.concat(s.address.splice(1))),s.text=s.text.join(` `),s.address=s.address.join(` `),!s.address&&r)return[];a={address:s.address||s.text||``,name:s.text||s.address||``},a.address===a.name&&((a.address||``).match(/@/)?a.name=``:a.address=``),o.push(a)}return o}function i(e){this.str=(e||``).toString(),this.operatorCurrent=``,this.operatorExpecting=``,this.node=null,this.escaped=!1,this.list=[]}i.prototype.operators={'"':`"`,"(":`)`,"<":`>`,",":``,":":`;`,";":``},i.prototype.tokenize=function(){for(var e,t=[],n=0,r=this.str.length;n<r;n++)e=this.str.charAt(n),this.checkChar(e);return this.list.forEach(function(e){e.value=(e.value||``).toString().trim(),e.value&&t.push(e)}),t},i.prototype.checkChar=function(e){if((e in this.operators||e===`\\`)&&this.escaped)this.escaped=!1;else if(this.operatorExpecting&&e===this.operatorExpecting){this.node={type:`operator`,value:e},this.list.push(this.node),this.node=null,this.operatorExpecting=``,this.escaped=!1;return}else if(!this.operatorExpecting&&e in this.operators){this.node={type:`operator`,value:e},this.list.push(this.node),this.node=null,this.operatorExpecting=this.operators[e],this.escaped=!1;return}if(!this.escaped&&e===`\\`){this.escaped=!0;return}this.node||(this.node={type:`text`,value:``},this.list.push(this.node)),this.escaped&&e!==`\\`&&(this.node.value+=`\\`),this.node.value+=e,this.escaped=!1}})),fp=e.n(((e,t)=>{var n=1/0,r=`[object Symbol]`,i=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o=`\\ud800-\\udfff`,s=`\\u0300-\\u036f\\ufe20-\\ufe23`,c=`\\u20d0-\\u20f0`,l=`\\u2700-\\u27bf`,u=`a-z\\xdf-\\xf6\\xf8-\\xff`,d=`\\xac\\xb1\\xd7\\xf7`,f=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,p=`\\u2000-\\u206f`,m=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,h=`A-Z\\xc0-\\xd6\\xd8-\\xde`,g=`\\ufe0e\\ufe0f`,_=d+f+p+m,v=`['’]`,y=`[`+o+`]`,b=`[`+_+`]`,x=`[`+s+c+`]`,S=`\\d+`,C=`[`+l+`]`,w=`[`+u+`]`,T=`[^`+o+_+S+l+u+h+`]`,E=`\\ud83c[\\udffb-\\udfff]`,ee=`(?:`+x+`|`+E+`)`,D=`[^`+o+`]`,O=`(?:\\ud83c[\\udde6-\\uddff]){2}`,k=`[\\ud800-\\udbff][\\udc00-\\udfff]`,A=`[`+h+`]`,j=`\\u200d`,M=`(?:`+w+`|`+T+`)`,N=`(?:`+A+`|`+T+`)`,P=`(?:`+v+`(?:d|ll|m|re|s|t|ve))?`,F=`(?:`+v+`(?:D|LL|M|RE|S|T|VE))?`,I=ee+`?`,L=`[`+g+`]?`,R=`(?:`+j+`(?:`+[D,O,k].join(`|`)+`)`+L+I+`)*`,te=L+I+R,z=`(?:`+[C,O,k].join(`|`)+`)`+te,ne=`(?:`+[D+x+`?`,x,O,k,y].join(`|`)+`)`,re=RegExp(v,`g`),ie=RegExp(x,`g`),ae=RegExp(E+`(?=`+E+`)|`+ne+te,`g`),oe=RegExp([A+`?`+w+`+`+P+`(?=`+[b,A,`$`].join(`|`)+`)`,N+`+`+F+`(?=`+[b,A+M,`$`].join(`|`)+`)`,A+`?`+M+`+`+P,A+`+`+F,S,z].join(`|`),`g`),B=RegExp(`[`+j+o+s+c+g+`]`),se=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,V={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`ss`},ce=typeof global==`object`&&global&&global.Object===Object&&global,le=typeof self==`object`&&self&&self.Object===Object&&self,ue=ce||le||Function(`return this`)();function H(e,t,n,r){var i=-1,a=e?e.length:0;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function de(e){return e.split(``)}function fe(e){return e.match(i)||[]}function U(e){return function(t){return e?.[t]}}var pe=U(V);function me(e){return B.test(e)}function he(e){return se.test(e)}function ge(e){return me(e)?_e(e):de(e)}function _e(e){return e.match(ae)||[]}function ve(e){return e.match(oe)||[]}var ye=Object.prototype.toString,be=ue.Symbol,xe=be?be.prototype:void 0,Se=xe?xe.toString:void 0;function Ce(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}function we(e){if(typeof e==`string`)return e;if(ke(e))return Se?Se.call(e):``;var t=e+``;return t==`0`&&1/e==-n?`-0`:t}function Te(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Ce(e,t,n)}function Ee(e){return function(t){t=Ae(t);var n=me(t)?ge(t):void 0,r=n?n[0]:t.charAt(0),i=n?Te(n,1).join(``):t.slice(1);return r[e]()+i}}function De(e){return function(t){return H(Fe(Ne(t).replace(re,``)),e,``)}}function Oe(e){return!!e&&typeof e==`object`}function ke(e){return typeof e==`symbol`||Oe(e)&&ye.call(e)==r}function Ae(e){return e==null?``:we(e)}var je=De(function(e,t,n){return t=t.toLowerCase(),e+(n?Me(t):t)});function Me(e){return Pe(Ae(e).toLowerCase())}function Ne(e){return e=Ae(e),e&&e.replace(a,pe).replace(ie,``)}var Pe=Ee(`toUpperCase`);function Fe(e,t,n){return e=Ae(e),t=n?void 0:t,t===void 0?he(e)?ve(e):fe(e):e.match(t)||[]}t.exports=je})),pp=e.n(((e,t)=>{var n=1/0,r=`[object Symbol]`,i=/[\\^$.*+?()[\]{}|]/g,a=RegExp(i.source),o=typeof global==`object`&&global&&global.Object===Object&&global,s=typeof self==`object`&&self&&self.Object===Object&&self,c=o||s||Function(`return this`)(),l=Object.prototype.toString,u=c.Symbol,d=u?u.prototype:void 0,f=d?d.toString:void 0;function p(e){if(typeof e==`string`)return e;if(h(e))return f?f.call(e):``;var t=e+``;return t==`0`&&1/e==-n?`-0`:t}function m(e){return!!e&&typeof e==`object`}function h(e){return typeof e==`symbol`||m(e)&&l.call(e)==r}function g(e){return e==null?``:p(e)}function _(e){return e=g(e),e&&a.test(e)?e.replace(i,`\\$&`):e}t.exports=_})),mp=e.n(((e,t)=>{t.exports=TypeError})),hp=e.n(((e,t)=>{t.exports={}})),gp=e.n(((e,t)=>{var n=typeof Map==`function`&&Map.prototype,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,`size`):null,i=n&&r&&typeof r.get==`function`?r.get:null,a=n&&Map.prototype.forEach,o=typeof Set==`function`&&Set.prototype,s=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,`size`):null,c=o&&s&&typeof s.get==`function`?s.get:null,l=o&&Set.prototype.forEach,u=typeof WeakMap==`function`&&WeakMap.prototype?WeakMap.prototype.has:null,d=typeof WeakSet==`function`&&WeakSet.prototype?WeakSet.prototype.has:null,f=typeof WeakRef==`function`&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,h=Function.prototype.toString,g=String.prototype.match,_=String.prototype.slice,v=String.prototype.replace,y=String.prototype.toUpperCase,b=String.prototype.toLowerCase,x=RegExp.prototype.test,S=Array.prototype.concat,C=Array.prototype.join,w=Array.prototype.slice,T=Math.floor,E=typeof BigInt==`function`?BigInt.prototype.valueOf:null,ee=Object.getOwnPropertySymbols,D=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?Symbol.prototype.toString:null,O=typeof Symbol==`function`&&typeof Symbol.iterator==`object`,k=typeof Symbol==`function`&&Symbol.toStringTag?Symbol.toStringTag:null,A=Object.prototype.propertyIsEnumerable,j=(typeof Reflect==`function`?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function M(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==`number`){var r=e<0?-T(-e):T(e);if(r!==e){var i=String(r),a=_.call(t,i.length+1);return v.call(i,n,`$&_`)+`.`+v.call(v.call(a,/([0-9]{3})/g,`$&_`),/_$/,``)}}return v.call(t,n,`$&_`)}var N=hp(),P=N.custom,F=V(P)?P:null,I={__proto__:null,double:`"`,single:`'`},L={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};t.exports=function e(t,n,r,o){var s=n||{};if(ue(s,`quoteStyle`)&&!ue(I,s.quoteStyle))throw TypeError(`option "quoteStyle" must be "single" or "double"`);if(ue(s,`maxStringLength`)&&(typeof s.maxStringLength==`number`?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=ue(s,`customInspect`)?s.customInspect:!0;if(typeof u!=`boolean`&&u!==`symbol`)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ue(s,`indent`)&&s.indent!==null&&s.indent!==` `&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ue(s,`numericSeparator`)&&typeof s.numericSeparator!=`boolean`)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=s.numericSeparator;if(t===void 0)return`undefined`;if(t===null)return`null`;if(typeof t==`boolean`)return t?`true`:`false`;if(typeof t==`string`)return ve(t,s);if(typeof t==`number`){if(t===0)return 1/0/t>0?`0`:`-0`;var f=String(t);return d?M(t,f):f}if(typeof t==`bigint`){var m=String(t)+`n`;return d?M(t,m):m}var h=s.depth===void 0?5:s.depth;if(r===void 0&&(r=0),r>=h&&h>0&&typeof t==`object`)return ne(t)?`[Array]`:`[Object]`;var g=we(s,r);if(o===void 0)o=[];else if(fe(o,t)>=0)return`[Circular]`;function y(t,n,i){if(n&&(o=w.call(o),o.push(n)),i){var a={depth:s.depth};return ue(s,`quoteStyle`)&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if(typeof t==`function`&&!ie(t)){var x=de(t),T=Ee(t,y);return`[Function`+(x?`: `+x:` (anonymous)`)+`]`+(T.length>0?` { `+C.call(T,`, `)+` }`:``)}if(V(t)){var ee=O?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,`$1`):D.call(t);return typeof t==`object`&&!O?be(ee):ee}if(_e(t)){for(var P=`<`+b.call(String(t.nodeName)),L=t.attributes||[],z=0;z<L.length;z++)P+=` `+L[z].name+`=`+R(te(L[z].value),`double`,s);return P+=`>`,t.childNodes&&t.childNodes.length&&(P+=`...`),P+=`</`+b.call(String(t.nodeName))+`>`,P}if(ne(t)){if(t.length===0)return`[]`;var le=Ee(t,y);return g&&!Ce(le)?`[`+Te(le,g)+`]`:`[ `+C.call(le,`, `)+` ]`}if(ae(t)){var ye=Ee(t,y);return!(`cause`in Error.prototype)&&`cause`in t&&!A.call(t,`cause`)?`{ [`+String(t)+`] `+C.call(S.call(`[cause]: `+y(t.cause),ye),`, `)+` }`:ye.length===0?`[`+String(t)+`]`:`{ [`+String(t)+`] `+C.call(ye,`, `)+` }`}if(typeof t==`object`&&u){if(F&&typeof t[F]==`function`&&N)return N(t,{depth:h-r});if(u!==`symbol`&&typeof t.inspect==`function`)return t.inspect()}if(U(t)){var De=[];return a&&a.call(t,function(e,n){De.push(y(n,t,!0)+` => `+y(e,t))}),Se(`Map`,i.call(t),De,g)}if(he(t)){var Oe=[];return l&&l.call(t,function(e){Oe.push(y(e,t))}),Se(`Set`,c.call(t),Oe,g)}if(pe(t))return xe(`WeakMap`);if(ge(t))return xe(`WeakSet`);if(me(t))return xe(`WeakRef`);if(B(t))return be(y(Number(t)));if(ce(t))return be(y(E.call(t)));if(se(t))return be(p.call(t));if(oe(t))return be(y(String(t)));if(typeof window<`u`&&t===window)return`{ [object Window] }`;if(typeof globalThis<`u`&&t===globalThis||typeof global<`u`&&t===global)return`{ [object globalThis] }`;if(!re(t)&&!ie(t)){var ke=Ee(t,y),Ae=j?j(t)===Object.prototype:t instanceof Object||t.constructor===Object,je=t instanceof Object?``:`null prototype`,Me=!Ae&&k&&Object(t)===t&&k in t?_.call(H(t),8,-1):je?`Object`:``,Ne=(Ae||typeof t.constructor!=`function`?``:t.constructor.name?t.constructor.name+` `:``)+(Me||je?`[`+C.call(S.call([],Me||[],je||[]),`: `)+`] `:``);return ke.length===0?Ne+`{}`:g?Ne+`{`+Te(ke,g)+`}`:Ne+`{ `+C.call(ke,`, `)+` }`}return String(t)};function R(e,t,n){var r=I[n.quoteStyle||t];return r+e+r}function te(e){return v.call(String(e),/"/g,`&quot;`)}function z(e){return!k||!(typeof e==`object`&&(k in e||e[k]!==void 0))}function ne(e){return H(e)===`[object Array]`&&z(e)}function re(e){return H(e)===`[object Date]`&&z(e)}function ie(e){return H(e)===`[object RegExp]`&&z(e)}function ae(e){return H(e)===`[object Error]`&&z(e)}function oe(e){return H(e)===`[object String]`&&z(e)}function B(e){return H(e)===`[object Number]`&&z(e)}function se(e){return H(e)===`[object Boolean]`&&z(e)}function V(e){if(O)return e&&typeof e==`object`&&e instanceof Symbol;if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||!D)return!1;try{return D.call(e),!0}catch{}return!1}function ce(e){if(!e||typeof e!=`object`||!E)return!1;try{return E.call(e),!0}catch{}return!1}var le=Object.prototype.hasOwnProperty||function(e){return e in this};function ue(e,t){return le.call(e,t)}function H(e){return m.call(e)}function de(e){if(e.name)return e.name;var t=g.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function fe(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function U(e){if(!i||!e||typeof e!=`object`)return!1;try{i.call(e);try{c.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function pe(e){if(!u||!e||typeof e!=`object`)return!1;try{u.call(e,u);try{d.call(e,d)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function me(e){if(!f||!e||typeof e!=`object`)return!1;try{return f.call(e),!0}catch{}return!1}function he(e){if(!c||!e||typeof e!=`object`)return!1;try{c.call(e);try{i.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function ge(e){if(!d||!e||typeof e!=`object`)return!1;try{d.call(e,d);try{u.call(e,u)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function _e(e){return!e||typeof e!=`object`?!1:typeof HTMLElement<`u`&&e instanceof HTMLElement?!0:typeof e.nodeName==`string`&&typeof e.getAttribute==`function`}function ve(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r=`... `+n+` more character`+(n>1?`s`:``);return ve(_.call(e,0,t.maxStringLength),t)+r}var i=L[t.quoteStyle||`single`];return i.lastIndex=0,R(v.call(v.call(e,i,`\\$1`),/[\x00-\x1f]/g,ye),`single`,t)}function ye(e){var t=e.charCodeAt(0),n={8:`b`,9:`t`,10:`n`,12:`f`,13:`r`}[t];return n?`\\`+n:`\\x`+(t<16?`0`:``)+y.call(t.toString(16))}function be(e){return`Object(`+e+`)`}function xe(e){return e+` { ? }`}function Se(e,t,n,r){var i=r?Te(n,r):C.call(n,`, `);return e+` (`+t+`) {`+i+`}`}function Ce(e){for(var t=0;t<e.length;t++)if(fe(e[t],`
@@ -1 +1 @@
1
- const e=require("./build-CX6FBrbu.cjs"),t=require("./constants-Du9J-8Ug-CD8GTrut.cjs"),n=require("./cli-error-CSsayo0u.cjs"),r=require("./request-timeout-milliseconds.constant-DtyQHrll.cjs"),i=require("./config-file-mode.constant-DLBzKKUl.cjs");let a=require("node:crypto"),o=require("node:fs/promises"),s=require("node:path"),c=require("node:timers/promises");var l=e.t(),u={TIMEOUT_MILLISECONDS:2*r.t+5e3,RETRY_MILLISECONDS:50},d=async e=>{try{let n=JSON.parse(await(0,o.readFile)(e,`utf8`));return t.p(n)&&(0,l.isNumber)(n.pid)&&(0,l.isString)(n.token)?{pid:n.pid,token:n.token}:void 0}catch{return}},f=e=>{try{return process.kill(e,0),!0}catch(e){return n.r(e,`EPERM`)}},p=async e=>{let r=await d(e),i=t.Vt(r)&&!f(r.pid),a=t.Vt(r)?` (pid ${r.pid})`:``;return new n.t({code:`CONFIG_LOCKED`,message:i?`A twenty command (pid ${r.pid}) stopped without releasing ${e}.`:`Another twenty command${a} is changing ${(0,s.dirname)(e)}.`,hint:i?`Delete ${e} and try again.`:`Try again when it finishes. If no twenty command is running, delete ${e}.`,details:{lockPath:e,ownerPid:r?.pid??null}})},m=async(e,t)=>{try{let n=await(0,o.open)(e,`wx`,i.t.PRIVATE_FILE);return await n.writeFile(JSON.stringify({pid:process.pid,token:t})),await n.close(),!0}catch(e){if(n.r(e,`EEXIST`))return!1;throw e}},h=async({lockPath:e,token:n,signal:r})=>{let i=Date.now()+u.TIMEOUT_MILLISECONDS,a=await m(e,n);for(;!a;){r.throwIfAborted();let o=await d(e);if(t.Vt(o)&&!f(o.pid)||Date.now()>i)throw await p(e);await(0,c.setTimeout)(u.RETRY_MILLISECONDS,void 0,{signal:r}),a=await m(e,n)}},g=async(e,t)=>{(await d(e))?.token===t&&await(0,o.rm)(e,{force:!0})},_=async({configPath:e,signal:t,operation:n})=>{let r=`${e}.lock`,c=(0,a.randomUUID)();await(0,o.mkdir)((0,s.dirname)(e),{recursive:!0,mode:i.t.PRIVATE_DIRECTORY}),await h({lockPath:r,token:c,signal:t});try{return await n()}finally{await g(r,c)}},v=async(e,t)=>{let n=`${e}.${process.pid}.${(0,a.randomUUID)()}.tmp`,r=await(0,o.open)(n,`wx`,i.t.PRIVATE_FILE);try{await r.writeFile(`${JSON.stringify(t,null,2)}\n`),await r.sync(),await r.close(),await(0,o.rename)(n,e)}catch(e){throw await r.close().catch(()=>void 0),await(0,o.rm)(n,{force:!0}),e}};Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return v}});
1
+ const e=require("./build-CX6FBrbu.cjs"),t=require("./constants-CemcuPi_-D7dbw2cv.cjs"),n=require("./cli-error-CSsayo0u.cjs"),r=require("./request-timeout-milliseconds.constant-DtyQHrll.cjs"),i=require("./config-file-mode.constant-DLBzKKUl.cjs");let a=require("node:crypto"),o=require("node:fs/promises"),s=require("node:path"),c=require("node:timers/promises");var l=e.t(),u={TIMEOUT_MILLISECONDS:2*r.t+5e3,RETRY_MILLISECONDS:50},d=async e=>{try{let n=JSON.parse(await(0,o.readFile)(e,`utf8`));return t.p(n)&&(0,l.isNumber)(n.pid)&&(0,l.isString)(n.token)?{pid:n.pid,token:n.token}:void 0}catch{return}},f=e=>{try{return process.kill(e,0),!0}catch(e){return n.r(e,`EPERM`)}},p=async e=>{let r=await d(e),i=t.Vt(r)&&!f(r.pid),a=t.Vt(r)?` (pid ${r.pid})`:``;return new n.t({code:`CONFIG_LOCKED`,message:i?`A twenty command (pid ${r.pid}) stopped without releasing ${e}.`:`Another twenty command${a} is changing ${(0,s.dirname)(e)}.`,hint:i?`Delete ${e} and try again.`:`Try again when it finishes. If no twenty command is running, delete ${e}.`,details:{lockPath:e,ownerPid:r?.pid??null}})},m=async(e,t)=>{try{let n=await(0,o.open)(e,`wx`,i.t.PRIVATE_FILE);return await n.writeFile(JSON.stringify({pid:process.pid,token:t})),await n.close(),!0}catch(e){if(n.r(e,`EEXIST`))return!1;throw e}},h=async({lockPath:e,token:n,signal:r})=>{let i=Date.now()+u.TIMEOUT_MILLISECONDS,a=await m(e,n);for(;!a;){r.throwIfAborted();let o=await d(e);if(t.Vt(o)&&!f(o.pid)||Date.now()>i)throw await p(e);await(0,c.setTimeout)(u.RETRY_MILLISECONDS,void 0,{signal:r}),a=await m(e,n)}},g=async(e,t)=>{(await d(e))?.token===t&&await(0,o.rm)(e,{force:!0})},_=async({configPath:e,signal:t,operation:n})=>{let r=`${e}.lock`,c=(0,a.randomUUID)();await(0,o.mkdir)((0,s.dirname)(e),{recursive:!0,mode:i.t.PRIVATE_DIRECTORY}),await h({lockPath:r,token:c,signal:t});try{return await n()}finally{await g(r,c)}},v=async(e,t)=>{let n=`${e}.${process.pid}.${(0,a.randomUUID)()}.tmp`,r=await(0,o.open)(n,`wx`,i.t.PRIVATE_FILE);try{await r.writeFile(`${JSON.stringify(t,null,2)}\n`),await r.sync(),await r.close(),await(0,o.rename)(n,e)}catch(e){throw await r.close().catch(()=>void 0),await(0,o.rm)(n,{force:!0}),e}};Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return v}});
package/dist/cli.cjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const e=require("./chunks/check-node-requirement-CGBKvEqH.cjs"),t=require("./chunks/cli-node-version-range.constant-D7fE8edk.cjs");process.stdout.on(`error`,e=>{if(e.code!==`EPIPE`)throw e;process.exit()}),(async({args:n,nodeVersion:r,loadCli:i})=>{if(e.t({version:r,range:`>=24.5.0`})!==`satisfied`){process.stderr.write(`twenty requires Node.js ${t.t}; this is Node.js ${r}. Switch to a supported Node.js version, then try again.\n`),process.exitCode=1;return}await(await i()).runCli(n)})({args:process.argv.slice(2),nodeVersion:process.versions.node,loadCli:()=>Promise.resolve().then(()=>require("./chunks/run-cli-D1VWVXar.cjs"))});
2
+ const e=require("./chunks/check-node-requirement-CGBKvEqH.cjs"),t=require("./chunks/cli-node-version-range.constant-D7fE8edk.cjs");process.stdout.on(`error`,e=>{if(e.code!==`EPIPE`)throw e;process.exit()}),(async({args:n,nodeVersion:r,loadCli:i})=>{if(e.t({version:r,range:`>=24.5.0`})!==`satisfied`){process.stderr.write(`twenty requires Node.js ${t.t}; this is Node.js ${r}. Switch to a supported Node.js version, then try again.\n`),process.exitCode=1;return}await(await i()).runCli(n)})({args:process.argv.slice(2),nodeVersion:process.versions.node,loadCli:()=>Promise.resolve().then(()=>require("./chunks/run-cli-BA0FsxzB.cjs"))});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "twenty",
3
- "version": "2.48.0",
3
+ "version": "2.49.0",
4
4
  "description": "The Twenty command line.",
5
5
  "homepage": "https://twenty.com",
6
6
  "repository": {
@@ -35,7 +35,7 @@
35
35
  "npm-pick-manifest": "^11.0.1",
36
36
  "semver": "7.6.3",
37
37
  "string-width": "^8.2.0",
38
- "twenty-client-sdk": "2.48.0",
38
+ "twenty-client-sdk": "2.49.0",
39
39
  "twenty-shared": "0.0.0",
40
40
  "undici": "^7.29.0",
41
41
  "uuid": "^13.0.2",
@@ -1,5 +0,0 @@
1
- const e=require("./build-CX6FBrbu.cjs"),t=require("./utils-BEfQWzTA-z2Y1wZJq.cjs"),n=require("./constants-Du9J-8Ug-CD8GTrut.cjs");function r(e){if(!n.mt(e))throw TypeError(`Invalid UUID`);let t;return Uint8Array.of((t=parseInt(e.slice(0,8),16))>>>24,t>>>16&255,t>>>8&255,t&255,(t=parseInt(e.slice(9,13),16))>>>8,t&255,(t=parseInt(e.slice(14,18),16))>>>8,t&255,(t=parseInt(e.slice(19,23),16))>>>8,t&255,(t=parseInt(e.slice(24,36),16))/1099511627776&255,t/4294967296&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255)}function i(e){e=unescape(encodeURIComponent(e));let t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}var a=`6ba7b810-9dad-11d1-80b4-00c04fd430c8`,o=`6ba7b811-9dad-11d1-80b4-00c04fd430c8`;function s(e,t,a,o,s,c){let l=typeof a==`string`?i(a):a,u=typeof o==`string`?r(o):o;if(typeof o==`string`&&(o=r(o)),o?.length!==16)throw TypeError(`Namespace must be array-like (16 iterable integer values, 0-255)`);let d=new Uint8Array(16+l.length);if(d.set(u),d.set(l,u.length),d=t(d),d[6]=d[6]&15|e,d[8]=d[8]&63|128,s){if(c||=0,c<0||c+16>s.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let e=0;e<16;++e)s[c+e]=d[e];return s}return n.pt(d)}function c(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function l(e,t){return e<<t|e>>>32-t}function u(e){let t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520],r=new Uint8Array(e.length+1);r.set(e),r[e.length]=128,e=r;let i=e.length/4+2,a=Math.ceil(i/16),o=Array(a);for(let t=0;t<a;++t){let n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[t*64+r*4]<<24|e[t*64+r*4+1]<<16|e[t*64+r*4+2]<<8|e[t*64+r*4+3];o[t]=n}o[a-1][14]=(e.length-1)*8/2**32,o[a-1][14]=Math.floor(o[a-1][14]),o[a-1][15]=(e.length-1)*8&4294967295;for(let e=0;e<a;++e){let r=new Uint32Array(80);for(let t=0;t<16;++t)r[t]=o[e][t];for(let e=16;e<80;++e)r[e]=l(r[e-3]^r[e-8]^r[e-14]^r[e-16],1);let i=n[0],a=n[1],s=n[2],u=n[3],d=n[4];for(let e=0;e<80;++e){let n=Math.floor(e/20),o=l(i,5)+c(n,a,s,u)+d+t[n]+r[e]>>>0;d=u,u=s,s=l(a,30)>>>0,a=i,i=o}n[0]=n[0]+i>>>0,n[1]=n[1]+a>>>0,n[2]=n[2]+s>>>0,n[3]=n[3]+u>>>0,n[4]=n[4]+d>>>0}return Uint8Array.of(n[0]>>24,n[0]>>16,n[0]>>8,n[0],n[1]>>24,n[1]>>16,n[1]>>8,n[1],n[2]>>24,n[2]>>16,n[2]>>8,n[2],n[3]>>24,n[3]>>16,n[3]>>8,n[3],n[4]>>24,n[4]>>16,n[4]>>8,n[4])}function d(e,t,n,r){return s(80,u,e,t,n,r)}d.DNS=a,d.URL=o;function f(e){if(!n.mt(e))throw TypeError(`Invalid UUID`);return parseInt(e.slice(14,15),16)}function p(e){return e instanceof Boolean||typeof e==`boolean`}function m(e){return e instanceof String||typeof e==`string`}function h(e){return e!=null&&(typeof e==`object`||typeof e==`function`)&&!Array.isArray(e)}var ee=[`choice`,`score`,`boolean`],te=/^[a-zA-Z0-9_.-]{1,64}$/,ne=e=>te.test(e),g=e.t(),_=function(e){return e.CODE=`CODE`,e.LOGIC_FUNCTION=`LOGIC_FUNCTION`,e.SEND_EMAIL=`SEND_EMAIL`,e.SEND_CHAT_MESSAGE=`SEND_CHAT_MESSAGE`,e.DRAFT_EMAIL=`DRAFT_EMAIL`,e.CREATE_CALENDAR_EVENT=`CREATE_CALENDAR_EVENT`,e.CREATE_RECORD=`CREATE_RECORD`,e.UPDATE_RECORD=`UPDATE_RECORD`,e.DELETE_RECORD=`DELETE_RECORD`,e.UPSERT_RECORD=`UPSERT_RECORD`,e.FIND_RECORDS=`FIND_RECORDS`,e.PICK_RECORD=`PICK_RECORD`,e.FORM=`FORM`,e.FILTER=`FILTER`,e.IF_ELSE=`IF_ELSE`,e.HTTP_REQUEST=`HTTP_REQUEST`,e.AI_AGENT=`AI_AGENT`,e.CLASSIFY=`CLASSIFY`,e.ITERATOR=`ITERATOR`,e.EMPTY=`EMPTY`,e.DELAY=`DELAY`,e.WAIT_FOR_EVENT=`WAIT_FOR_EVENT`,e}({}),v=`trigger`,re=e=>{let t=[],n=``,r=!1,i=0;for(;i<e.length;){let a=e[i];if(a===`[`&&!r){n.length>0&&(t.push(n),n=``),r=!0,i++;continue}if(a===`]`&&r){t.push(n),n=``,r=!1,i++,i<e.length&&e[i]===`.`&&i++;continue}if(a===`.`&&!r){n.length>0&&(t.push(n),n=``),i++;continue}n+=a,i++}return n.length>0&&t.push(n),t},ie=/{{([^{}]+)}}/g;function*y(e){if((0,g.isString)(e)){for(let[,t]of e.matchAll(ie))n.Vt(t)&&(yield t);return}if((0,g.isObject)(e))for(let t of Object.values(e))yield*y(t)}var ae=e=>[...y(e)],oe=(e,t)=>{let n=e.length+1,r=t.length+1,i=Array.from({length:n},()=>Array(r).fill(0));for(let e=0;e<n;e++)i[e][0]=e;for(let e=0;e<r;e++)i[0][e]=e;for(let a=1;a<n;a++){let n=i[a-1],o=i[a];for(let i=1;i<r;i++){let r=e[a-1]===t[i-1]?0:1;o[i]=Math.min(n[i]+1,o[i-1]+1,n[i-1]+r)}}return i[e.length][t.length]},se=e=>{if(!n.Vt(e)||!h(e)||Array.isArray(e))return!1;let t=Object.values(e);return t.length===0?!1:t.every(e=>n.Vt(e)&&h(e)&&p(e.isLeaf))},b=(e,t=[])=>{let n=[];if(!(0,g.isObject)(e))return n;for(let[r,i]of Object.entries(e)){if(!(0,g.isObject)(i))continue;let e=[...t,r];n.push(e.join(`.`)),!i.isLeaf&&(0,g.isObject)(i.value)&&n.push(...b(i.value,e))}return n},ce=({schema:e,propertyPath:t})=>{let r=e;for(let e=0;e<t.length;e++){let i=t[e];if(!n.Vt(i))return;if(!(0,g.isObject)(r))return{validPrefix:t.slice(0,e),failedSegment:i,availableKeys:[]};let a=r[i];if(!n.Vt(a))return{validPrefix:t.slice(0,e),failedSegment:i,availableKeys:Object.keys(r)};if(a.isLeaf){let r=t[e+1];return n.Vt(r)?{validPrefix:t.slice(0,e+1),failedSegment:r,availableKeys:[]}:void 0}r=a.value}},x={found:!1},S=e=>n.p(e)&&p(e.isLeaf),C=e=>n.p(e)&&e._outputSchemaType===`RECORD`&&n.p(e.fields),w=e=>n.p(e)&&!(`_outputSchemaType`in e)&&S(e.first)&&e.first.isLeaf===!1&&C(e.first.value)&&S(e.totalCount),T=e=>({found:!0,type:m(e.type)?e.type:void 0,label:m(e.label)?e.label:void 0}),E=(e,t)=>t.length===0?T(e):O(e.value,t),le=(e,t)=>{for(let n=1;n<=t.length;n++){let r=e[t.slice(0,n).join(`.`)];if(S(r))return E(r,t.slice(n))}return x},ue=(e,t)=>{let[n,...r]=t;if(n===`first`)return r.length===0?T(e.first):O(e.first.value,r);if(n===`all`||n===`totalCount`){let t=e[n];return r.length===0&&S(t)?T(t):x}return x},D=(e,t)=>{let[r,...i]=t;if(!n.Vt(r))return x;let a=e[r];return S(a)?E(a,i):n.Vt(a)?i.length===0?{found:!0}:n.p(a)?D(a,i):x:x},O=(e,t)=>t.length===0||!n.p(e)?x:C(e)?le(e.fields,t):w(e)?ue(e,t):D(e,t),de=({schema:e,propertyPath:t})=>O(e,t),k=e=>{let t=[];for(let[r,i]of Object.entries(e))if(S(i)){if(t.push(r),i.isLeaf)continue;let e=i.value;if(C(e))for(let n of k(e.fields))t.push(`${r}.${n}`);else if(n.p(e))for(let n of k(e))t.push(`${r}.${n}`)}else if(n.Vt(i)&&(t.push(r),n.p(i)))for(let e of k(i))t.push(`${r}.${e}`);return t},A=e=>{if(!n.p(e))return[];if(C(e))return k(e.fields);if(w(e)){let t=[];if(S(e.first)){t.push(`first`);for(let n of A(e.first.value))t.push(`first.${n}`)}return n.Vt(e.all)&&t.push(`all`),t.push(`totalCount`),t}return k(e)},fe=3,j=e=>n.p(e)?e._outputSchemaType===`RECORD`?!0:Object.values(e).some(e=>n.p(e)&&j(e.value)):!1,M=(e,t)=>t.map(t=>({candidate:t,distance:oe(e,t)})).filter(({candidate:e,distance:t})=>t<=Math.ceil(e.length/2)).sort((e,t)=>e.distance-t.distance).slice(0,fe).map(({candidate:e})=>e),pe=({schema:e,propertyPath:t,referencedStepId:r})=>{if(!se(e)||j(e)){let n=A(e);return M(t.join(`.`),n).map(e=>[r,e].join(`.`))}let i=ce({schema:e,propertyPath:t});if(!n.Vt(i))return[];let a=M(i.failedSegment,i.availableKeys).map(e=>[r,...i.validPrefix,e].join(`.`));if((0,g.isNonEmptyArray)(a))return a;let o=b(e);return M(t.join(`.`),o).map(e=>[r,e].join(`.`))},me=({workflow:e,graph:t,stepsById:r})=>{let i=[],a=new Set(e.steps?.map(e=>e.id)??[]);for(let o of e.steps??[]){let s=ae(o.settings?.input),c=t.ancestorsByStepId.get(o.id)??new Set;for(let t of s){let s=re(t),l=s[0];if(!n.Vt(l)){i.push({severity:`error`,code:`VARIABLE_INVALID_PATH`,message:`Step "${o.name??o.id}" has a variable "{{${t}}}" with an invalid path. Variable references must start with a step ID, e.g. "{{stepId.property}}".`,stepId:o.id,path:t});continue}let u=l===v;if(!u&&!a.has(l)){i.push({severity:`error`,code:`VARIABLE_UNKNOWN_STEP`,message:`Step "${o.name??o.id}" references variable "{{${t}}}" from an unknown step "${l}".`,stepId:o.id,path:t});continue}let d=l===o.id;if(!u&&!d&&!c.has(l)){let e=r.get(l)?.name??l;i.push({severity:`error`,code:`VARIABLE_NOT_UPSTREAM`,message:`Step "${o.name??o.id}" references variable "{{${t}}}" from step "${e}", which does not run before it. Ensure step "${e}" is an ancestor (connected via nextStepIds chain from the trigger, before this step).`,stepId:o.id,path:t});continue}i.push(...he({step:o,variable:t,pathSegments:s,referencedStepId:l,isTriggerReference:u,trigger:e.trigger,stepsById:r}))}}return i},he=({step:e,variable:t,pathSegments:r,referencedStepId:i,isTriggerReference:a,trigger:o,stepsById:s})=>{let c=r.slice(1);if(c.length===0)return[];let l=a?o?.settings?.outputSchema:s.get(i)?.settings?.outputSchema,u=n.Vt(l)&&(0,g.isObject)(l)&&!Array.isArray(l)&&Object.keys(l).length===0;if(!n.Vt(l)||u)return[];if(!de({schema:l,propertyPath:c}).found){let r=pe({schema:l,propertyPath:c,referencedStepId:i}),a=_e(l,i),o=(0,g.isNonEmptyArray)(r)?`Did you mean "{{${r[0]}}}"?${r.length>1?` Other options: ${r.slice(1).map(e=>`{{${e}}}`).join(`, `)}.`:``}`:(0,g.isNonEmptyArray)(a)?`Available paths: ${a.map(e=>`{{${e}}}`).join(`, `)}.`:void 0;return[{severity:`error`,code:`VARIABLE_PATH_NOT_FOUND`,message:`Step "${e.name??e.id}" references variable "{{${t}}}" but the path "${c.join(`.`)}" was not found in the output of step "${i}".`,stepId:e.id,path:t,...n.Vt(o)?{hint:o}:{},...(0,g.isNonEmptyArray)(r)?{suggestions:r}:{},...(0,g.isNonEmptyArray)(a)?{availablePaths:a}:{}}]}return[]},ge=20,_e=(e,t)=>A(e).slice(0,ge).map(e=>`${t}.${e}`),ve=n.jt({type:n.Dt(`object`),properties:n.Nt(n.Ft(),n.jt({type:n.vt([`string`,`number`,`boolean`]),description:n.Ft().optional()})).refine(e=>Object.keys(e).every(ne),{message:`Output field names can only contain letters, numbers, underscores, dots or hyphens (max 64 characters)`}),required:n.xt(n.Ft()).optional(),additionalProperties:n.Dt(!1).optional()}),ye=n.Ct(`type`,[n.jt({type:n.Dt(`text`)}),n.jt({type:n.Dt(`json`),schema:ve})]),N=[1e3,5e3,15e3],P=n.jt({input:n.Ot({}).describe(`Input data for the workflow action. Structure depends on the action type.`),outputSchema:n.Ot({}).describe(`Schema defining the output data structure. This data can be referenced in subsequent steps using {{stepId.fieldName}}.`),errorHandlingOptions:n.jt({retryOnFailure:n.jt({value:n.Mt(e=>typeof e==`boolean`?Number(e):e,n.At().int().min(0).max(N.length).describe(`How many times to retry the action if it fails, between 0 and ${N.length}. 0 disables retries.`))}),continueOnFailure:n.jt({value:n.St().describe(`Whether to continue to the next step if this action fails.`)})})}),be={expectedOutputSchema:n.Ot({}).optional().describe(`A sample output value declared by the user for steps whose output structure is only known at runtime.`)},xe=P.extend({input:n.jt({url:n.Ft(),method:n.vt([`GET`,`POST`,`PUT`,`PATCH`,`DELETE`]),headers:n.Nt(n.Ft(),n.Ft()).optional(),body:n.Nt(n.Ft(),n.It([n.Ft(),n.At(),n.St(),n.yt(),n.xt(n.It([n.Ft(),n.At(),n.St(),n.yt()]))])).or(n.Ft()).optional()}),...be}),Se=/^[a-zA-Z0-9_-]{1,64}$/,Ce=n.jt({id:n.Rt().describe(`Stable identifier for this criterion row.`),name:n.Ft().describe(`Option name for a choice question, or the label of one score level.`),description:n.Ft().optional().describe(`What the model should understand this option to mean.`)}),we=n.jt({id:n.Rt().describe(`Stable identifier for this question row.`),name:n.Ft().regex(Se,`Answer name must be empty or contain 1 to 64 characters using only letters, digits, underscores and dashes`).or(n.Dt(``)).describe(`Answer key for this question, made of letters, digits, underscores and dashes. Downstream steps read {{stepId.answers.<name>}}.`),type:n.vt(ee).describe(`choice picks one option, score grades an ordered rubric, boolean estimates the probability that a statement holds.`),instructions:n.Ft().describe(`What the model should decide about the shared state.`),criteria:n.xt(Ce).describe(`Options for a choice question, or ordered levels (lowest first) for a score question. Empty for boolean.`)}),Te=P.extend({input:n.jt({state:n.Ft().describe(`The shared state every question is asked about. Supports variables.`),questions:n.xt(we)})}),Ee=P.extend({input:n.jt({items:n.It([n.xt(n.It([n.Ft(),n.At(),n.St(),n.yt(),n.Nt(n.Ft(),n.bt()),n.bt()])),n.Ft()]).optional(),initialLoopStepIds:n.xt(n.Ft()).optional(),shouldContinueOnIterationFailure:n.St().optional()})}),De=P.extend({input:n.jt({delayType:n.vt([`SCHEDULED_DATE`,`DURATION`]),scheduledDateTime:n.Ft().nullable().optional(),duration:n.jt({days:n.It([n.At().min(0),n.Ft()]).optional(),hours:n.It([n.At().min(0),n.Ft()]).optional(),minutes:n.It([n.At().min(0),n.Ft()]).optional(),seconds:n.It([n.At().min(0),n.Ft()]).optional()}).optional()})}),Oe=P.extend({input:n.jt({eventName:n.Ft().describe(`Event to wait for, in format objectName.action (e.g., "company.updated", "task.created", "person.deleted").`),recordId:n.Ft().nullable().optional().describe(`Only resume for this record. Usually a variable such as {{trigger.properties.after.id}}. Leave empty to resume on any record.`),updatedFields:n.xt(n.Ft()).nullable().optional().describe(`For update events, only resume when one of these fields changed.`),timeout:n.jt({days:n.It([n.At().min(0),n.Ft()]).optional(),hours:n.It([n.At().min(0),n.Ft()]).optional(),minutes:n.It([n.At().min(0),n.Ft()]).optional()}).nullable().optional().describe(`Stop waiting after this duration. The step then succeeds with hasTimedOut set to true.`)})}),ke=P.extend({input:n.jt({})}),F=n.Nt(n.Ft(),n.bt()).describe(`Record data object. Use nested objects for relationships (e.g., "company": {"id": "{{reference}}"}). Common patterns:
2
- - Person: {"name": {"firstName": "John", "lastName": "Doe"}, "emails": {"primaryEmail": "john@example.com"}, "company": {"id": "{{trigger.properties.after.id}}"}}
3
- - Company: {"name": "Acme Corp", "domainName": {"primaryLinkUrl": "https://acme.com"}}
4
- - Task: {"title": "Follow up", "status": "TODO", "assignee": {"id": "{{user.id}}"}}`),Ae=P.extend({input:n.jt({objectName:n.Ft().describe(`The name of the object to create a record in. Must be lowercase (e.g., "person", "company", "task").`),objectRecord:F.describe(`The record data to create.`)})}),je=P.extend({input:n.jt({objectName:n.Ft(),objectRecord:F,objectRecordId:n.Ft(),fieldsToUpdate:n.xt(n.Ft())})}),Me=P.extend({input:n.jt({objectName:n.Ft(),objectRecord:F})}),Ne=P.extend({input:n.jt({objectName:n.Ft(),objectRecordId:n.Ft()})}),I=n.Ft().regex(/^{{[^{}]+}}$/,`Expected a workflow variable reference like {{stepId.path}}`),Pe=P.extend({input:n.jt({objectName:n.Ft(),limit:n.It([n.At(),I]).optional(),offset:n.It([n.At().int().nonnegative(),I]).optional(),filter:n.jt({recordFilterGroups:n.xt(n.bt()).optional(),recordFilters:n.xt(n.bt()).optional()}).optional(),orderBy:n.jt({recordSorts:n.xt(n.bt()).optional(),gqlOperationOrderBy:n.xt(n.Nt(n.Ft(),n.bt())).optional()}).optional()})}),Fe=n.jt({id:n.Ft(),name:n.Ft(),label:n.Ft(),type:n.It([n.Dt(n.ot.TEXT),n.Dt(n.ot.NUMBER),n.Dt(n.ot.DATE),n.Dt(n.ot.SELECT),n.Dt(n.ot.MULTI_SELECT),n.Dt(`RECORD`)]),placeholder:n.Ft().optional(),settings:n.Nt(n.Ft(),n.bt()).optional(),value:n.bt().optional()}),Ie=P.extend({input:n.xt(Fe),instructions:n.Ft().optional()}),L=n.jt({id:n.Ft(),logicalOperator:n.vt(n.P),parentStepFilterGroupId:n.Ft().optional(),positionInStepFilterGroup:n.At().optional()}),R=n.jt({id:n.Ft(),type:n.Ft(),stepOutputKey:n.Ft(),operand:n.vt(n.W).or(n.vt(n.L)),value:n.Ft(),stepFilterGroupId:n.Ft(),positionInStepFilterGroup:n.At().optional(),fieldMetadataId:n.Ft().optional(),compositeFieldSubFieldName:n.Ft().optional()}),Le=P.extend({input:n.jt({stepFilterGroups:n.xt(L),stepFilters:n.xt(R)})}),Re=n.jt({id:n.Ft(),nextStepIds:n.xt(n.Ft()),filterGroupId:n.Ft().optional()}),ze=P.extend({input:n.jt({stepFilterGroups:n.xt(L),stepFilters:n.xt(R),branches:n.xt(Re)})}),Be=n.vt([`RANDOM`,`ROUND_ROBIN`,`LOAD_BALANCED`]);P.extend({input:n.jt({objectName:n.Ft(),strategy:Be,recordIds:n.xt(n.Ft()),loadBalance:n.jt({objectNameSingular:n.Ft(),fieldName:n.Ft()}).optional()}).superRefine((e,t)=>{e.strategy===`LOAD_BALANCED`&&!n.Vt(e.loadBalance)&&t.addIssue({code:n._t.custom,path:[`loadBalance`],message:`loadBalance is required when strategy is LOAD_BALANCED`})})});var z=n.jt({name:n.Ft().optional().describe(`Human-readable name for the trigger. Optional but recommended for clarity.`),type:n.vt([`DATABASE_EVENT`,`MANUAL`,`CRON`,`WEBHOOK`]).describe(`Type of trigger. DATABASE_EVENT for record changes, MANUAL for user-initiated, CRON for scheduled, WEBHOOK for external calls.`),position:n.jt({x:n.At(),y:n.At()}).optional().nullable().describe(`Position coordinates for the trigger in the workflow diagram. Use (0, 0) for the trigger step.`),nextStepIds:n.xt(n.Ft()).optional().nullable().describe(`Array of step IDs that the trigger connects to. These are the first steps in the workflow.`)}),Ve=z.extend({type:n.Dt(`CRON`),settings:n.Ct(`type`,[n.jt({type:n.Dt(`DAYS`),schedule:n.jt({day:n.At().min(1),hour:n.At().min(0).max(23),minute:n.At().min(0).max(59)}),outputSchema:n.Ot({})}),n.jt({type:n.Dt(`HOURS`),schedule:n.jt({hour:n.At().min(1),minute:n.At().min(0).max(59)}),outputSchema:n.Ot({})}),n.jt({type:n.Dt(`MINUTES`),schedule:n.jt({minute:n.At().min(1).max(60)}),outputSchema:n.Ot({})}),n.jt({type:n.Dt(`CUSTOM`),pattern:n.Ft(),outputSchema:n.Ot({})})])}),He=z.extend({type:n.Dt(`WEBHOOK`),settings:n.Ct(`httpMethod`,[n.jt({outputSchema:n.Ot({}),httpMethod:n.Dt(`GET`),authentication:n.Dt(`API_KEY`).nullable()}),n.jt({outputSchema:n.Ot({}),expectedOutputSchema:n.Ot({}).optional(),httpMethod:n.Dt(`POST`),expectedBody:n.Ot({}),authentication:n.Dt(`API_KEY`).nullable()})])}),Ue=e=>{let t=e.settings?.input;return e.type===_.IF_ELSE&&(0,g.isObject)(t)&&`branches`in t&&Array.isArray(t.branches)},B=e=>{let t=e.settings?.input;return e.type===_.ITERATOR&&(0,g.isObject)(t)&&`initialLoopStepIds`in t&&(0,g.isNonEmptyArray)(t.initialLoopStepIds)},We=e=>{let t=e.settings?.input;if(n.Vt(t)&&(0,g.isObject)(t))return t},Ge=e=>{let t=new Set(e.nextStepIds??[]);if(Ue(e))for(let n of e.settings.input.branches??[])for(let e of n?.nextStepIds??[])t.add(e);if(B(e))for(let n of e.settings.input.initialLoopStepIds??[])t.add(n);return[...t]},Ke=({trigger:e,steps:t})=>{let r=new Map,i=n.Vt(e?.nextStepIds)?e.nextStepIds.filter(n.Vt):[];r.set(v,i);for(let e of t??[])r.set(e.id,Ge(e));let a=new Set,o=[v];for(;o.length>0;){let e=o.shift();if(!(!n.Vt(e)||a.has(e))){a.add(e);for(let t of r.get(e)??[])a.has(t)||o.push(t)}}return{childrenByStepId:r,reachableFromTrigger:a,ancestorsByStepId:qe(r)}},qe=e=>{let t=new Map;for(let[n,r]of e.entries())for(let e of r){let r=t.get(e)??new Set;r.add(n),t.set(e,r)}let n=new Map;for(let r of e.keys()){if(n.has(r))continue;let e=new Set,i=[...t.get(r)??[]];for(;i.length>0;){let n=i.shift();if(!e.has(n)){e.add(n);for(let r of t.get(n)??[])e.has(r)||i.push(r)}}n.set(r,e)}return n},Je=({workflow:e,graph:t})=>{let r=[],i=new Set,a=new Set,o=new Map((e.steps??[]).map(e=>[e.id,e])),s=(e,c=[],l)=>{let u=c[c.length-1];if(i.has(e)){if(e!==l&&u===e)return;r.push({severity:`error`,code:`WORKFLOW_CYCLE`,stepId:e,message:`Workflow contains a cycle at step ${e}`});return}let d=o.get(e),f=`${e}:${c.join(`,`)}`;if(!n.Vt(d)||a.has(f))return;i.add(e),B(d)&&(d.settings.input.initialLoopStepIds??[]).forEach(t=>s(t,[...c,e],e));let p=d.type===_.ITERATOR?d.nextStepIds??[]:t.childrenByStepId.get(e)??[];n.Vt(u)&&p.length===0&&r.push({severity:`error`,code:`ITERATOR_MISSING_RETURN`,stepId:e,message:`Loop body step ${e} must return to iterator ${u}`}),p.forEach(t=>s(t,c,e)),i.delete(e),a.add(f)};return e.trigger?.nextStepIds?.forEach(e=>s(e)),r},Ye=({workflow:e,graph:r})=>{let i=[],a=e.steps??[],o=new Set(a.map(e=>e.id)),s=new Set;for(let e of a)s.has(e.id)&&i.push({severity:`error`,code:`DUPLICATE_STEP_ID`,message:`Duplicate step id "${e.id}". Every step id must be unique within the workflow.`,stepId:e.id}),s.add(e.id);let c=(e.trigger?.nextStepIds??[]).filter(n.Vt);t.r(a)&&c.length===0&&i.push({severity:`error`,code:`TRIGGER_HAS_NO_NEXT_STEP`,message:`The trigger is not connected to any step. The trigger must have a "nextStepIds" array pointing to the first step (e.g. nextStepIds: ["${a[0].id}"]). If you used edges, also set trigger.nextStepIds.`});for(let e of c)o.has(e)||i.push({severity:`error`,code:`DANGLING_REFERENCE`,message:`The trigger references a non-existent step "${e}".`});for(let e of a){for(let t of r.childrenByStepId.get(e.id)??[])o.has(t)||i.push({severity:`error`,code:`DANGLING_REFERENCE`,message:`Step "${e.name??e.id}" references a non-existent step "${t}".`,stepId:e.id});i.push(...Xe(e))}for(let e of a)r.reachableFromTrigger.has(e.id)||i.push({severity:`error`,code:`UNREACHABLE_STEP`,message:`Step "${e.name??e.id}" is not reachable from the trigger. Ensure a chain of nextStepIds connects the trigger to this step. Check that the preceding step includes this step's id ("${e.id}") in its nextStepIds array.`,stepId:e.id});return i},Xe=e=>{let t=[],r=We(e);if(e.type===_.IF_ELSE){let i=r?.branches,a=Array.isArray(i)?i:[];a.length<2&&t.push({severity:`warning`,code:`IF_ELSE_INSUFFICIENT_BRANCHES`,message:`If/Else step "${e.name??e.id}" should have at least two branches (a condition branch and an else branch).`,stepId:e.id});let o=r?.stepFilterGroups,s=new Set((Array.isArray(o)?o:[]).filter(n.Vt).map(e=>e.id));for(let r of a){let i=r?.nextStepIds;(!Array.isArray(i)||i.length===0)&&t.push({severity:`error`,code:`IF_ELSE_BRANCH_HAS_NO_NEXT_STEP`,message:`A branch of If/Else step "${e.name??e.id}" is not connected to any step.`,stepId:e.id}),n.Vt(r?.filterGroupId)&&!s.has(r.filterGroupId)&&t.push({severity:`error`,code:`INVALID_STEP_PARAMS`,message:`A branch of If/Else step "${e.name??e.id}" references filter group "${r.filterGroupId}", which does not exist.`,stepId:e.id})}}if(e.type===_.ITERATOR){let n=r,i=n?.items,a=typeof i==`string`&&i.length>0||Array.isArray(i)&&i.length>0,o=n?.initialLoopStepIds,s=Array.isArray(o)&&o.length>0;a&&!s&&t.push({severity:`error`,code:`ITERATOR_MISSING_LOOP_BODY`,message:`Iterator step "${e.name??e.id}" has items to iterate over but no steps inside the loop.`,stepId:e.id})}return t},Ze=`20202020-64aa-4b6f-b003-9c74b97cee20`,V=({entityNamespace:e,value:t,applicationUniversalIdentifier:n})=>d(`${e}:${t}`,n),Qe=({applicationUniversalIdentifier:e,objectUniversalIdentifier:t,name:n})=>V({entityNamespace:`fieldMetadata`,value:`${t}:${n}`,applicationUniversalIdentifier:e}),H=({applicationUniversalIdentifier:e,objectUniversalIdentifier:t,name:n})=>V({entityNamespace:`pageLayout`,value:t?`${t}:${n}`:n,applicationUniversalIdentifier:e}),$e=({objectMetadataApplicationUniversalIdentifier:e,pageLayoutUniversalIdentifier:t,title:n})=>V({entityNamespace:`pageLayoutTab`,value:`${t}:${n}`,applicationUniversalIdentifier:e}),et=({objectMetadataApplicationUniversalIdentifier:e,pageLayoutTabUniversalIdentifier:t,title:n})=>V({entityNamespace:`pageLayoutWidget`,value:`${t}:${n}`,applicationUniversalIdentifier:e}),tt=({objectMetadataApplicationUniversalIdentifier:e,objectUniversalIdentifier:t})=>H({applicationUniversalIdentifier:e,objectUniversalIdentifier:t,name:n.X.RECORD_PAGE}),nt=({applicationUniversalIdentifier:e,objectUniversalIdentifier:t,relationTargetObjectUniversalIdentifier:n})=>V({entityNamespace:`fieldMetadata`,value:`${t}:systemRelation:${n}`,applicationUniversalIdentifier:e}),rt=({objectMetadataApplicationUniversalIdentifier:e,viewUniversalIdentifier:t,name:n})=>V({entityNamespace:`viewFieldGroup`,value:`${t}:${n}`,applicationUniversalIdentifier:e}),it=({fieldMetadataApplicationUniversalIdentifier:e,viewUniversalIdentifier:t,fieldMetadataUniversalIdentifier:n})=>V({entityNamespace:`viewField`,value:`${t}:${n}`,applicationUniversalIdentifier:e}),at={INDEX:`INDEX`,FIELDS_WIDGET:`FIELDS_WIDGET`},ot=({objectMetadataApplicationUniversalIdentifier:e,objectUniversalIdentifier:t,viewKey:n})=>V({entityNamespace:`view`,value:`${t}:${n}`,applicationUniversalIdentifier:e}),U=function(e){return e.OK=`OK`,e.SUCCESS=`SUCCESS`,e.INFO=`INFO`,e.WARNING=`WARNING`,e.ERROR=`ERROR`,e.NEUTRAL=`NEUTRAL`,e.UNKNOWN=`UNKNOWN`,e}({});Object.values(U).filter(e=>e!==U.OK&&e!==U.UNKNOWN),n.ot.TEXT,n.ot.ARRAY,n.ot.BOOLEAN,n.ot.DATE,n.ot.DATE_TIME,n.ot.NUMBER,n.ot.NUMERIC,n.ot.RAW_JSON,n.ot.RICH_TEXT,n.ot.SELECT,n.ot.MULTI_SELECT,_.SEND_EMAIL,_.DRAFT_EMAIL,_.CREATE_CALENDAR_EVENT;var st=`public`,ct=`front-component-shared-dependencies.mjs`,lt=`twenty:front-component-shared-dependencies`;n.X.RECORD_PAGE,n.X.DASHBOARD;var ut={js:`import { createRequire as __createRequire } from 'module';
5
- const require = __createRequire(import.meta.url);`},dt=`.twenty/output`,ft=({applicationUniversalIdentifier:e,roleUniversalIdentifier:t,fieldUniversalIdentifier:n})=>V({entityNamespace:`fieldPermission`,value:`${t}:${n}`,applicationUniversalIdentifier:e}),pt=({applicationUniversalIdentifier:e,roleUniversalIdentifier:t,objectUniversalIdentifier:n})=>V({entityNamespace:`objectPermission`,value:`${t}:${n}`,applicationUniversalIdentifier:e}),mt=({objectMetadataApplicationUniversalIdentifier:e,objectUniversalIdentifier:t})=>H({applicationUniversalIdentifier:e,objectUniversalIdentifier:t,name:n.X.RECORD_FORM}),ht=({pageLayoutTabManifest:e,pageLayoutType:r})=>{let i=e.layoutMode??(r===n.X.STANDALONE_PAGE?n.J.VERTICAL_LIST:n.J.GRID),a=e.widgets??[],o=[];if(!Object.values(n.J).some(e=>e===i))return{status:`fail`,errors:[`Page layout tab "${e.title}" defines unsupported layoutMode "${i}". Expected GRID, VERTICAL_LIST or CANVAS.`]};for(let t of a){let r=[t.heightBehavior,n.p(t.position)&&`heightBehavior`in t.position?t.position.heightBehavior:void 0].filter(n.Vt);r.length>0&&i!==n.J.VERTICAL_LIST&&o.push(`Page layout widget "${t.title}" defines heightBehavior, but its parent tab "${e.title}" uses ${i}. heightBehavior is only supported for VERTICAL_LIST tabs.`);for(let e of r)Object.values(n.ct).some(t=>t===e)||o.push(`Page layout widget "${t.title}" defines unsupported heightBehavior "${e}". Expected FIT_CONTENT or TAB_VIEWPORT.`)}if(o.length>0)return{status:`fail`,errors:o};let s={...e,layoutMode:i,widgets:a.map(({heightBehavior:e,position:r,gridPosition:a,...o},s)=>{if(n.Vt(r))return{...o,position:r.layoutMode===n.J.VERTICAL_LIST&&n.Vt(e)?{...r,heightBehavior:e}:r};if(n.Vt(a))return{...o,position:{layoutMode:n.J.GRID,...a}};switch(i){case n.J.GRID:return{...o,position:{layoutMode:i,row:0,column:0,rowSpan:n.k.default.h,columnSpan:n.k.default.w}};case n.J.VERTICAL_LIST:return{...o,position:{layoutMode:i,index:s,...n.Vt(e)?{heightBehavior:e}:{}}};case n.J.CANVAS:return{...o,position:{layoutMode:i}};default:return t.o(i)}})};for(let e of s.widgets)e.position.layoutMode!==i&&o.push(`Page layout widget "${e.title}" uses a ${e.position.layoutMode} position, but its parent tab "${s.title}" uses ${i}.`);if(i===n.J.VERTICAL_LIST){let e=s.widgets.filter(({type:e,position:r})=>r.layoutMode===n.J.VERTICAL_LIST&&t.t({widgetType:e,heightBehavior:r.heightBehavior})===n.ct.TAB_VIEWPORT);e.length>1&&o.push(`Page layout tab "${s.title}" can contain only one TAB_VIEWPORT widget.`);let r=e.length===1?e[0]:void 0;n.Vt(r)&&s.widgets.some(e=>e!==r&&e.position.layoutMode===n.J.VERTICAL_LIST&&r.position.layoutMode===n.J.VERTICAL_LIST&&e.position.index>=r.position.index)&&o.push(`Page layout tab "${s.title}" must place its TAB_VIEWPORT widget last.`)}return o.length>0?{status:`fail`,errors:o}:{status:`success`,pageLayoutTab:s}},W=[`canReadObjectRecords`,`canUpdateObjectRecords`,`canSoftDeleteObjectRecords`,`canDestroyObjectRecords`],G={canReadObjectRecords:`canReadAllObjectRecords`,canUpdateObjectRecords:`canUpdateAllObjectRecords`,canSoftDeleteObjectRecords:`canSoftDeleteAllObjectRecords`,canDestroyObjectRecords:`canDestroyAllObjectRecords`},K=({role:e,objectUniversalIdentifier:t})=>{let n=e.objectPermissions?.find(e=>e.objectUniversalIdentifier===t);return{canReadObjectRecords:n?.canReadObjectRecords??e[G.canReadObjectRecords]??!1,canUpdateObjectRecords:n?.canUpdateObjectRecords??e[G.canUpdateObjectRecords]??!1,canSoftDeleteObjectRecords:n?.canSoftDeleteObjectRecords??e[G.canSoftDeleteObjectRecords]??!1,canDestroyObjectRecords:n?.canDestroyObjectRecords??e[G.canDestroyObjectRecords]??!1}},gt=e=>JSON.stringify(e,(e,t)=>n.p(t)?Object.fromEntries(Object.entries(t).sort(([e],[t])=>e.localeCompare(t))):t),_t=({groupsByUniversalIdentifier:e,predicateGroupUniversalIdentifier:t})=>{let r=[],i=new Set,a=t;for(;n.Vt(a)&&!i.has(a);){i.add(a);let t=e.get(a);if(!n.Vt(t))break;r.push(t.logicalOperator),a=t.parentPredicateGroupUniversalIdentifier}return r},q=({role:e,objectUniversalIdentifier:t})=>{let n=new Map((e.rowLevelPermissionPredicateGroups??[]).map(e=>[e.universalIdentifier,e]));return(e.rowLevelPermissionPredicates??[]).filter(e=>e.objectUniversalIdentifier===t).map(e=>gt({fieldUniversalIdentifier:e.fieldUniversalIdentifier,subFieldName:e.subFieldName??null,operand:e.operand,value:e.value??null,workspaceMemberFieldUniversalIdentifier:e.workspaceMemberFieldUniversalIdentifier??null,workspaceMemberSubFieldName:e.workspaceMemberSubFieldName??null,groupOperatorPath:_t({groupsByUniversalIdentifier:n,predicateGroupUniversalIdentifier:e.predicateGroupUniversalIdentifier})})).sort()},vt=n.x.map(e=>n.S[e]),yt=({roleSignature:e,supersetSignature:t})=>e.length===t.length&&e.every((e,n)=>e===t[n]),bt=({role:e,superset:t})=>[...W.filter(n=>{let r=G[n];return e[r]&&!t[r]}).map(e=>({type:`ALL_OBJECT_RECORDS`,action:e})),...e.canUpdateAllSettings&&!t.canUpdateAllSettings?[{type:`ALL_SETTINGS`}]:[],...e.canAccessAllTools&&!t.canAccessAllTools?[{type:`ALL_TOOLS`}]:[]],xt=({role:e,superset:t,toolPermissionFlagUniversalIdentifiers:n})=>{let r=new Set([...vt,...n]),i=new Set(t.permissionFlagUniversalIdentifiers??[]);return[...new Set(e.permissionFlagUniversalIdentifiers??[])].filter(e=>!(r.has(e)?t.canAccessAllTools:t.canUpdateAllSettings)&&!i.has(e)).map(e=>({type:`PERMISSION_FLAG`,permissionFlagUniversalIdentifier:e}))},St=({role:e,superset:t})=>[...new Set([...[...e.objectPermissions??[],...t.objectPermissions??[]].map(e=>e.objectUniversalIdentifier),...(t.rowLevelPermissionPredicates??[]).map(e=>e.objectUniversalIdentifier)])].flatMap(n=>{let r=K({role:e,objectUniversalIdentifier:n}),i=K({role:t,objectUniversalIdentifier:n}),a=W.filter(e=>r[e]&&!i[e]).map(e=>({type:`OBJECT_RECORDS`,objectUniversalIdentifier:n,action:e})),o=W.some(e=>r[e]),s=q({role:t,objectUniversalIdentifier:n}),c=q({role:e,objectUniversalIdentifier:n});return o&&s.length>0&&!yt({roleSignature:c,supersetSignature:s})?[...a,{type:`ROW_LEVEL_RESTRICTION`,objectUniversalIdentifier:n}]:a}),Ct=({role:e,superset:t})=>(t.fieldPermissions??[]).flatMap(t=>{let{objectUniversalIdentifier:n,fieldUniversalIdentifier:r}=t,i=K({role:e,objectUniversalIdentifier:n}),a=e.fieldPermissions?.find(e=>e.objectUniversalIdentifier===n&&e.fieldUniversalIdentifier===r),o=t.canReadFieldValue===!1&&i.canReadObjectRecords&&a?.canReadFieldValue!==!1,s=t.canUpdateFieldValue===!1&&i.canUpdateObjectRecords&&a?.canUpdateFieldValue!==!1;return[...o?[{type:`FIELD_VALUE`,objectUniversalIdentifier:n,fieldUniversalIdentifier:r,action:`canReadFieldValue`}]:[],...s?[{type:`FIELD_VALUE`,objectUniversalIdentifier:n,fieldUniversalIdentifier:r,action:`canUpdateFieldValue`}]:[]]}),wt=({role:e,superset:t,toolPermissionFlagUniversalIdentifiers:n})=>[...bt({role:e,superset:t}),...xt({role:e,superset:t,toolPermissionFlagUniversalIdentifiers:n}),...St({role:e,superset:t}),...Ct({role:e,superset:t})],Tt=e=>n.mt(e)&&f(e)>=4,J={universalIdentifier:n.Rt(),name:n.Ft().min(1),nextStepIds:n.xt(n.Rt()),position:n.jt({x:n.At(),y:n.At()}).optional(),outputSchema:n.Nt(n.Ft(),n.Lt()).optional(),expectedOutputSchema:n.Nt(n.Ft(),n.Lt()).optional(),errorHandlingOptions:P.shape.errorHandlingOptions.optional()},Y=(e,t)=>n.Pt({...J,type:n.Dt(e),input:t}),X=n.Ot({fieldMetadataUniversalIdentifier:n.Rt(),fieldMetadataId:n.kt().optional()}),Z=R.omit({fieldMetadataId:!0}).extend({fieldMetadataUniversalIdentifier:n.Rt().optional()}).strict(),Q={objectUniversalIdentifier:n.Rt()},Et=n.Ct(`type`,[n.Pt({...J,type:n.Dt(`LOGIC_FUNCTION`),logicFunctionUniversalIdentifier:n.Rt(),input:n.Nt(n.Ft(),n.Lt())}),Y(`HTTP_REQUEST`,xe.shape.input),Y(`CLASSIFY`,Te.shape.input),Y(`ITERATOR`,Ee.shape.input),Y(`DELAY`,De.shape.input),Y(`WAIT_FOR_EVENT`,Oe.shape.input),Y(`EMPTY`,ke.shape.input),Y(`CREATE_RECORD`,Ae.shape.input.omit({objectName:!0}).extend(Q).strict()),Y(`UPDATE_RECORD`,je.shape.input.omit({objectName:!0}).extend(Q).strict()),Y(`UPSERT_RECORD`,Me.shape.input.omit({objectName:!0}).extend(Q).strict()),Y(`DELETE_RECORD`,Ne.shape.input.omit({objectName:!0}).extend(Q).strict()),Y(`FIND_RECORDS`,Pe.shape.input.omit({objectName:!0,filter:!0,orderBy:!0}).extend({...Q,filter:n.Pt({recordFilterGroups:n.xt(n.Nt(n.Ft(),n.Lt())).optional(),recordFilters:n.xt(X).optional()}).optional(),orderBy:n.Pt({recordSorts:n.xt(X.extend({direction:n.vt([`ASC`,`DESC`]),subFieldName:n.Ft().nullable().optional()})).optional()}).optional()}).strict()),Y(`PICK_RECORD`,n.Pt({...Q,strategy:Be,recordIds:n.xt(n.Ft()),loadBalance:n.Pt({objectUniversalIdentifier:n.Rt(),fieldUniversalIdentifier:n.Rt()}).optional()}).superRefine((e,t)=>{e.strategy===`LOAD_BALANCED`&&!n.Vt(e.loadBalance)&&t.addIssue({code:`custom`,path:[`loadBalance`],message:`loadBalance is required when strategy is LOAD_BALANCED`})})),Y(`FILTER`,Le.shape.input.extend({stepFilters:n.xt(Z)})),Y(`IF_ELSE`,ze.shape.input.extend({stepFilters:n.xt(Z)})),Y(`FORM`,n.xt(Ie.shape.input.element.extend({settings:n.Nt(n.Ft(),n.Lt()).optional()}).superRefine((e,t)=>{e.type===`RECORD`&&!n.Rt().safeParse(e.settings?.objectUniversalIdentifier).success&&t.addIssue({code:`custom`,path:[`settings`,`objectUniversalIdentifier`],message:`Record picker fields require an object universal identifier`})}))),Y(`AI_AGENT`,n.Pt({agentUniversalIdentifier:n.Rt(),prompt:n.Ft(),responseFormat:ye.optional()}))]),$=[`updated`,`upserted`],Dt=n.Ct(`type`,[n.Pt({type:n.Dt(`GLOBAL`)}),n.Pt({type:n.Dt(`SINGLE_RECORD`),objectUniversalIdentifier:n.Rt()}),n.Pt({type:n.Dt(`BULK_RECORDS`),objectUniversalIdentifier:n.Rt()})]),[Ot,kt,At,jt]=Ve.shape.settings.options,Mt=n.Ct(`type`,[Ot.omit({outputSchema:!0}).extend({schedule:Ot.shape.schedule.strict()}).strict(),kt.omit({outputSchema:!0}).extend({schedule:kt.shape.schedule.strict()}).strict(),At.omit({outputSchema:!0}).extend({schedule:At.shape.schedule.strict()}).strict(),jt.omit({outputSchema:!0}).strict()]),[Nt,Pt]=He.shape.settings.options,Ft=n.Ct(`httpMethod`,[Nt.omit({outputSchema:!0,authentication:!0}).strict(),Pt.omit({outputSchema:!0,expectedOutputSchema:!0,authentication:!0}).strict()]),It=[n.Pt({universalIdentifier:n.Rt(),type:n.Dt(`MANUAL`),nextStepIds:n.xt(n.Rt()).min(1),settings:n.Pt({availability:Dt.optional(),icon:n.Ft().optional(),isPinned:n.St().optional()}).superRefine((e,t)=>{!n.Vt(e.availability)&&(n.Vt(e.icon)||n.Vt(e.isPinned))&&t.addIssue({code:`custom`,path:[`availability`],message:`Set an availability for the icon and pin to show in the command menu`})}).optional()}),n.Pt({universalIdentifier:n.Rt(),type:n.Dt(`CRON`),nextStepIds:n.xt(n.Rt()).min(1),settings:Mt}),n.Pt({universalIdentifier:n.Rt(),type:n.Dt(`DATABASE_EVENT`),nextStepIds:n.xt(n.Rt()).min(1),settings:n.Pt({objectUniversalIdentifier:n.Rt(),action:n.vt([`created`,`updated`,`deleted`,`upserted`]),fieldUniversalIdentifiers:n.xt(n.Rt()).optional(),filter:n.Pt({stepFilterGroups:n.xt(L),stepFilters:n.xt(Z.extend({operand:n.vt(n.W)}))}).optional()}).superRefine((e,r)=>{if(t.r(e.fieldUniversalIdentifiers)&&!$.includes(e.action)&&r.addIssue({code:`custom`,path:[`fieldUniversalIdentifiers`],message:`Watched fields only apply to ${$.join(` and `)} events`}),!n.Vt(e.filter))return;let i=new Map;e.filter.stepFilterGroups.forEach((e,t)=>{i.has(e.id)&&r.addIssue({code:`custom`,path:[`filter`,`stepFilterGroups`,t,`id`],message:`Filter group ${e.id} is declared more than once`}),i.set(e.id,e.parentStepFilterGroupId)}),e.filter.stepFilterGroups.forEach((e,t)=>{let a=e.parentStepFilterGroupId,o=[`filter`,`stepFilterGroups`,t,`parentStepFilterGroupId`];if(!n.Vt(a))return;if(!i.has(a)){r.addIssue({code:`custom`,path:o,message:`Filter group ${a} is not declared in stepFilterGroups`});return}let s=new Set([e.id]);for(let t=a;n.Vt(t);t=i.get(t)){if(s.has(t)){r.addIssue({code:`custom`,path:o,message:`Filter group ${e.id} is not reachable from a root group`});return}s.add(t)}}),e.filter.stepFilters.forEach((e,t)=>{i.has(e.stepFilterGroupId)||r.addIssue({code:`custom`,path:[`filter`,`stepFilters`,t,`stepFilterGroupId`],message:`Filter group ${e.stepFilterGroupId} is not declared in stepFilterGroups`})})})}),n.Pt({universalIdentifier:n.Rt(),type:n.Dt(`WEBHOOK`),nextStepIds:n.xt(n.Rt()).min(1),settings:Ft})],Lt=It.map(e=>e.shape.type.value),Rt=n.Ct(`type`,It,{error:e=>e.code===`invalid_union`?`Unsupported trigger type. Application workflows support: ${Lt.join(`, `)}`:void 0});n.Pt({universalIdentifier:n.Rt(),name:n.Ft().min(1),version:n.Pt({trigger:Rt,steps:n.xt(Et).min(1)})}).superRefine((e,t)=>{let{steps:n,trigger:r}=e.version,i=[e.universalIdentifier,r.universalIdentifier,...n.map(e=>e.universalIdentifier)];new Set(i).size!==i.length&&t.addIssue({code:`custom`,message:`Workflow, trigger and steps must have distinct universal identifiers`});let a={trigger:{type:r.type,nextStepIds:r.nextStepIds},steps:n.map(e=>({...e,id:e.universalIdentifier,settings:{input:e.input}}))},o=Ke(a);for(let e of[...Ye({workflow:a,graph:o}),...Je({workflow:a,graph:o}),...me({workflow:a,graph:o,stepsById:new Map(a.steps.map(e=>[e.id,e]))})])e.severity===`error`&&t.addIssue({code:`custom`,message:e.message})}),Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return Ze}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return Tt}}),Object.defineProperty(exports,"b",{enumerable:!0,get:function(){return et}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return ut}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return dt}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return tt}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return nt}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return Qe}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return st}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return ft}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return at}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return mt}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return ct}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return it}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return ht}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return wt}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return pt}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return lt}}),Object.defineProperty(exports,"v",{enumerable:!0,get:function(){return $e}}),Object.defineProperty(exports,"x",{enumerable:!0,get:function(){return rt}}),Object.defineProperty(exports,"y",{enumerable:!0,get:function(){return ot}});
@@ -1 +0,0 @@
1
- var e=`2.48.0`;Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return e}});