@perses-dev/victorialogs-plugin 0.4.0 → 0.5.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__mf/js/{VictoriaLogs.db5cc46b.js → VictoriaLogs.72a4d689.js} +3 -3
- package/__mf/js/async/1522.e41aa623.js +22 -0
- package/__mf/js/async/1616.f91f6c7b.js +1 -0
- package/__mf/js/async/198.4b388f96.js +2 -0
- package/__mf/js/async/2377.1627ef61.js +1 -0
- package/__mf/js/async/2786.4ba35a40.js +2 -0
- package/__mf/js/async/2901.21debf59.js +1 -0
- package/__mf/js/async/3865.3eba8e7a.js +1 -0
- package/__mf/js/async/392.8532b8b9.js +2 -0
- package/__mf/js/async/4121.43679b06.js +2 -0
- package/__mf/js/async/4248.f3720fee.js +1 -0
- package/__mf/js/async/4960.813e0b59.js +2 -0
- package/__mf/js/async/5019.a912bf58.js +1 -0
- package/__mf/js/async/5440.e2ea1262.js +2 -0
- package/__mf/js/async/5587.144f3899.js +1 -0
- package/__mf/js/async/560.ebacb2ba.js +37 -0
- package/__mf/js/async/5623.6fc3cf67.js +1 -0
- package/__mf/js/async/5706.38c46b8c.js +1 -0
- package/__mf/js/async/6274.efc9c64a.js +2 -0
- package/__mf/js/async/663.cccc183b.js +1 -0
- package/__mf/js/async/7155.68cbed18.js +7 -0
- package/__mf/js/async/7155.68cbed18.js.LICENSE.txt +102 -0
- package/__mf/js/async/7192.9670a853.js +1 -0
- package/__mf/js/async/7740.c8cb2613.js +101 -0
- package/__mf/js/async/7817.620f3116.js +2 -0
- package/__mf/js/async/7862.e6de7017.js +2 -0
- package/__mf/js/async/7873.4d25d71e.js +2 -0
- package/__mf/js/async/7968.69cffbaf.js +1 -0
- package/__mf/js/async/8356.d0bcc56a.js +1 -0
- package/__mf/js/async/8470.6cf8f7b1.js +2 -0
- package/__mf/js/async/9235.bfe14cc5.js +1 -0
- package/__mf/js/async/941.73cfe62f.js +2 -0
- package/__mf/js/async/9440.37da95ff.js +10 -0
- package/__mf/js/async/9700.72a5372d.js +3 -0
- package/__mf/js/async/__federation_expose_VictoriaLogsDatasource.db12b897.js +2 -0
- package/__mf/js/async/__federation_expose_VictoriaLogsFieldNamesVariable.59ed2274.js +2 -0
- package/__mf/js/async/__federation_expose_VictoriaLogsFieldValuesVariable.fcbe16ef.js +2 -0
- package/__mf/js/async/__federation_expose_VictoriaLogsLogQuery.803dba77.js +1 -0
- package/__mf/js/async/__federation_expose_VictoriaLogsTimeSeriesQuery.6d5fdbb1.js +1 -0
- package/__mf/js/{main.0d99a16b.js → main.00381beb.js} +2 -2
- package/lib/bootstrap.js +2 -2
- package/lib/components/index.js +1 -1
- package/lib/components/index.js.map +1 -1
- package/lib/components/logsql-editor.d.ts +2 -2
- package/lib/components/logsql-editor.d.ts.map +1 -1
- package/lib/components/logsql-editor.js +4 -4
- package/lib/components/logsql-editor.js.map +1 -1
- package/lib/components/logsql-extension.d.ts +1 -1
- package/lib/components/logsql-extension.d.ts.map +1 -1
- package/lib/components/logsql-extension.js +3 -3
- package/lib/components/logsql-extension.js.map +1 -1
- package/lib/components/logsql-highlight.js +1 -1
- package/lib/datasources/index.js +1 -1
- package/lib/datasources/index.js.map +1 -1
- package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasource.d.ts +3 -3
- package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasource.d.ts.map +1 -1
- package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasource.js +2 -2
- package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasource.js.map +1 -1
- package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.d.ts +2 -2
- package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.d.ts.map +1 -1
- package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.js +1 -1
- package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.js.map +1 -1
- package/lib/datasources/victorialogs-datasource/index.js +3 -3
- package/lib/datasources/victorialogs-datasource/index.js.map +1 -1
- package/lib/datasources/victorialogs-datasource/types.d.ts +1 -1
- package/lib/datasources/victorialogs-datasource/types.d.ts.map +1 -1
- package/lib/datasources/victorialogs-datasource/types.js.map +1 -1
- package/lib/getPluginModule.d.ts +1 -1
- package/lib/getPluginModule.d.ts.map +1 -1
- package/lib/getPluginModule.js +3 -1
- package/lib/getPluginModule.js.map +1 -1
- package/lib/index-federation.js +1 -1
- package/lib/index.js +4 -4
- package/lib/index.js.map +1 -1
- package/lib/model/client.d.ts +1 -1
- package/lib/model/client.d.ts.map +1 -1
- package/lib/model/client.js.map +1 -1
- package/lib/model/index.js +3 -3
- package/lib/model/index.js.map +1 -1
- package/lib/model/selectors.d.ts +2 -2
- package/lib/model/selectors.d.ts.map +1 -1
- package/lib/model/selectors.js +1 -1
- package/lib/model/selectors.js.map +1 -1
- package/lib/queries/index.js +2 -2
- package/lib/queries/index.js.map +1 -1
- package/lib/queries/victorialogs-log-query/VictoriaLogsLogQuery.d.ts +2 -2
- package/lib/queries/victorialogs-log-query/VictoriaLogsLogQuery.d.ts.map +1 -1
- package/lib/queries/victorialogs-log-query/VictoriaLogsLogQuery.js +4 -6
- package/lib/queries/victorialogs-log-query/VictoriaLogsLogQuery.js.map +1 -1
- package/lib/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.d.ts +3 -3
- package/lib/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.d.ts.map +1 -1
- package/lib/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.js +7 -7
- package/lib/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.js.map +1 -1
- package/lib/queries/victorialogs-log-query/index.js +4 -4
- package/lib/queries/victorialogs-log-query/index.js.map +1 -1
- package/lib/queries/victorialogs-log-query/query.d.ts +2 -2
- package/lib/queries/victorialogs-log-query/query.d.ts.map +1 -1
- package/lib/queries/victorialogs-log-query/query.js +2 -2
- package/lib/queries/victorialogs-log-query/query.js.map +1 -1
- package/lib/queries/victorialogs-log-query/types.d.ts +1 -1
- package/lib/queries/victorialogs-log-query/types.d.ts.map +1 -1
- package/lib/queries/victorialogs-log-query/types.js.map +1 -1
- package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQuery.d.ts +2 -2
- package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQuery.d.ts.map +1 -1
- package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQuery.js +4 -6
- package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQuery.js.map +1 -1
- package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.d.ts +3 -3
- package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.d.ts.map +1 -1
- package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.js +7 -7
- package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.js.map +1 -1
- package/lib/queries/victorialogs-time-series-query/index.js +4 -4
- package/lib/queries/victorialogs-time-series-query/index.js.map +1 -1
- package/lib/queries/victorialogs-time-series-query/query.d.ts +2 -2
- package/lib/queries/victorialogs-time-series-query/query.d.ts.map +1 -1
- package/lib/queries/victorialogs-time-series-query/query.js +4 -4
- package/lib/queries/victorialogs-time-series-query/query.js.map +1 -1
- package/lib/queries/victorialogs-time-series-query/types.d.ts +1 -1
- package/lib/queries/victorialogs-time-series-query/types.d.ts.map +1 -1
- package/lib/queries/victorialogs-time-series-query/types.js.map +1 -1
- package/lib/setup-tests.d.ts +1 -1
- package/lib/setup-tests.d.ts.map +1 -1
- package/lib/setup-tests.js +2 -2
- package/lib/setup-tests.js.map +1 -1
- package/lib/variables/index.js +2 -2
- package/lib/variables/index.js.map +1 -1
- package/lib/variables/types.d.ts +2 -2
- package/lib/variables/types.d.ts.map +1 -1
- package/lib/variables/types.js.map +1 -1
- package/lib/variables/utils.d.ts +5 -5
- package/lib/variables/utils.d.ts.map +1 -1
- package/lib/variables/utils.js +2 -2
- package/lib/variables/utils.js.map +1 -1
- package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariable.d.ts +2 -2
- package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariable.d.ts.map +1 -1
- package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariable.js +4 -4
- package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariable.js.map +1 -1
- package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariableEditor.d.ts +3 -3
- package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariableEditor.d.ts.map +1 -1
- package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariableEditor.js +5 -5
- package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariableEditor.js.map +1 -1
- package/lib/variables/victorialogs-field-names/index.js +1 -1
- package/lib/variables/victorialogs-field-names/index.js.map +1 -1
- package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariable.d.ts +2 -2
- package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariable.d.ts.map +1 -1
- package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariable.js +4 -4
- package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariable.js.map +1 -1
- package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariableEditor.d.ts +3 -3
- package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariableEditor.d.ts.map +1 -1
- package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariableEditor.js +6 -6
- package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariableEditor.js.map +1 -1
- package/lib/variables/victorialogs-field-values/index.js +1 -1
- package/lib/variables/victorialogs-field-values/index.js.map +1 -1
- package/mf-manifest.json +117 -230
- package/mf-stats.json +117 -242
- package/package.json +20 -12
- package/__mf/js/async/1170.532d9fb3.js +0 -101
- package/__mf/js/async/1616.5a6b8ab3.js +0 -1
- package/__mf/js/async/1728.b01c38aa.js +0 -1
- package/__mf/js/async/1969.fc35e1b4.js +0 -1
- package/__mf/js/async/198.fbb67f8a.js +0 -2
- package/__mf/js/async/2043.b149adfd.js +0 -2
- package/__mf/js/async/2043.b149adfd.js.LICENSE.txt +0 -24
- package/__mf/js/async/2377.9265b0a7.js +0 -1
- package/__mf/js/async/2728.fd6779e6.js +0 -1
- package/__mf/js/async/2749.71c38fe0.js +0 -2
- package/__mf/js/async/2842.3740ca9b.js +0 -1
- package/__mf/js/async/3059.fe1cdfc3.js +0 -1
- package/__mf/js/async/392.c6e57bd8.js +0 -2
- package/__mf/js/async/3981.02c66856.js +0 -3
- package/__mf/js/async/3998.e9a3cf1a.js +0 -2
- package/__mf/js/async/4121.5468ac01.js +0 -2
- package/__mf/js/async/4225.744952e9.js +0 -10
- package/__mf/js/async/4248.9b99209c.js +0 -1
- package/__mf/js/async/5019.51d94aab.js +0 -1
- package/__mf/js/async/5071.6ac86637.js +0 -1
- package/__mf/js/async/5405.004a286a.js +0 -2
- package/__mf/js/async/5405.004a286a.js.LICENSE.txt +0 -37
- package/__mf/js/async/5440.7765ad14.js +0 -2
- package/__mf/js/async/5481.b7b48b8f.js +0 -2
- package/__mf/js/async/5587.12959dbf.js +0 -1
- package/__mf/js/async/5706.55b9ef2f.js +0 -1
- package/__mf/js/async/6274.0634d636.js +0 -2
- package/__mf/js/async/6408.2bc7e8f4.js +0 -7
- package/__mf/js/async/6408.2bc7e8f4.js.LICENSE.txt +0 -39
- package/__mf/js/async/6410.63a88be6.js +0 -1
- package/__mf/js/async/6592.24e266ac.js +0 -1
- package/__mf/js/async/6854.21ddded3.js +0 -1
- package/__mf/js/async/6864.66bc6315.js +0 -2
- package/__mf/js/async/7177.dfbac40a.js +0 -1
- package/__mf/js/async/7192.339adba2.js +0 -1
- package/__mf/js/async/7793.43841fdc.js +0 -1
- package/__mf/js/async/7817.5e96b0dd.js +0 -2
- package/__mf/js/async/7968.d586d9f8.js +0 -1
- package/__mf/js/async/7978.895bbb5f.js +0 -1
- package/__mf/js/async/7984.194982d6.js +0 -22
- package/__mf/js/async/8356.053c21d0.js +0 -1
- package/__mf/js/async/8470.cb89de3b.js +0 -2
- package/__mf/js/async/873.4df0ea19.js +0 -1
- package/__mf/js/async/8787.c3298397.js +0 -2
- package/__mf/js/async/9235.3e1de7b9.js +0 -1
- package/__mf/js/async/941.a44f722e.js +0 -2
- package/__mf/js/async/9588.c379dd44.js +0 -1
- package/__mf/js/async/9836.fd9de3af.js +0 -1
- package/__mf/js/async/9877.8b83de3c.js +0 -38
- package/__mf/js/async/9944.4d41cb7b.js +0 -1
- package/__mf/js/async/__federation_expose_VictoriaLogsDatasource.807ae747.js +0 -2
- package/__mf/js/async/__federation_expose_VictoriaLogsFieldNamesVariable.ccafeb36.js +0 -1
- package/__mf/js/async/__federation_expose_VictoriaLogsFieldValuesVariable.5e29c327.js +0 -1
- package/__mf/js/async/__federation_expose_VictoriaLogsLogQuery.6e607640.js +0 -1
- package/__mf/js/async/__federation_expose_VictoriaLogsTimeSeriesQuery.91a8ad9d.js +0 -1
- package/lib/cjs/bootstrap.js +0 -26
- package/lib/cjs/components/index.js +0 -23
- package/lib/cjs/components/logsql-editor.js +0 -110
- package/lib/cjs/components/logsql-extension.js +0 -55
- package/lib/cjs/components/logsql-highlight.js +0 -40
- package/lib/cjs/datasources/index.js +0 -30
- package/lib/cjs/datasources/victorialogs-datasource/VictoriaLogsDatasource.js +0 -61
- package/lib/cjs/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.js +0 -95
- package/lib/cjs/datasources/victorialogs-datasource/index.js +0 -32
- package/lib/cjs/datasources/victorialogs-datasource/types.js +0 -16
- package/lib/cjs/env.d.js +0 -14
- package/lib/cjs/getPluginModule.js +0 -39
- package/lib/cjs/index-federation.js +0 -55
- package/lib/cjs/index.js +0 -39
- package/lib/cjs/model/client.js +0 -156
- package/lib/cjs/model/index.js +0 -32
- package/lib/cjs/model/selectors.js +0 -47
- package/lib/cjs/model/types.js +0 -16
- package/lib/cjs/queries/constants.js +0 -34
- package/lib/cjs/queries/index.js +0 -31
- package/lib/cjs/queries/victorialogs-log-query/VictoriaLogsLogQuery.js +0 -63
- package/lib/cjs/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.js +0 -114
- package/lib/cjs/queries/victorialogs-log-query/index.js +0 -33
- package/lib/cjs/queries/victorialogs-log-query/query.js +0 -73
- package/lib/cjs/queries/victorialogs-log-query/types.js +0 -16
- package/lib/cjs/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQuery.js +0 -43
- package/lib/cjs/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.js +0 -112
- package/lib/cjs/queries/victorialogs-time-series-query/index.js +0 -33
- package/lib/cjs/queries/victorialogs-time-series-query/query.js +0 -126
- package/lib/cjs/queries/victorialogs-time-series-query/types.js +0 -16
- package/lib/cjs/setup-tests.js +0 -19
- package/lib/cjs/variables/index.js +0 -31
- package/lib/cjs/variables/types.js +0 -16
- package/lib/cjs/variables/utils.js +0 -97
- package/lib/cjs/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariable.js +0 -57
- package/lib/cjs/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariableEditor.js +0 -80
- package/lib/cjs/variables/victorialogs-field-names/index.js +0 -30
- package/lib/cjs/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariable.js +0 -61
- package/lib/cjs/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariableEditor.js +0 -113
- package/lib/cjs/variables/victorialogs-field-values/index.js +0 -30
- /package/__mf/css/async/{6408.85c2cbf6.css → 7155.85c2cbf6.css} +0 -0
- /package/__mf/js/async/{7984.194982d6.js.LICENSE.txt → 1522.e41aa623.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{198.fbb67f8a.js.LICENSE.txt → 198.4b388f96.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{2749.71c38fe0.js.LICENSE.txt → 2786.4ba35a40.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{392.c6e57bd8.js.LICENSE.txt → 392.8532b8b9.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{4121.5468ac01.js.LICENSE.txt → 4121.43679b06.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{3998.e9a3cf1a.js.LICENSE.txt → 4960.813e0b59.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{5440.7765ad14.js.LICENSE.txt → 5440.e2ea1262.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{6274.0634d636.js.LICENSE.txt → 6274.efc9c64a.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{6864.66bc6315.js.LICENSE.txt → 7817.620f3116.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{5481.b7b48b8f.js.LICENSE.txt → 7862.e6de7017.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{8470.cb89de3b.js.LICENSE.txt → 8470.6cf8f7b1.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{7817.5e96b0dd.js.LICENSE.txt → 941.73cfe62f.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{4225.744952e9.js.LICENSE.txt → 9440.37da95ff.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{8787.c3298397.js.LICENSE.txt → __federation_expose_VictoriaLogsDatasource.db12b897.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{941.a44f722e.js.LICENSE.txt → __federation_expose_VictoriaLogsFieldNamesVariable.59ed2274.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_VictoriaLogsDatasource.807ae747.js.LICENSE.txt → __federation_expose_VictoriaLogsFieldValuesVariable.fcbe16ef.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.chunk_VictoriaLogs_0_5_0_beta_1=self.chunk_VictoriaLogs_0_5_0_beta_1||[]).push([["5623"],{85722(e,t,a){a.d(t,{pW:()=>i,b5:()=>l,lj:()=>R,fI:()=>j,a3:()=>d,BX:()=>h,sh:()=>k,bB:()=>o,YI:()=>m,Ad:()=>b,kf:()=>"$__all",UW:()=>Z,qU:()=>p,Nk:()=>M,FM:()=>u,g3:()=>n,p0:()=>$,S5:()=>v});var s=a(94461);let r=/^(?:(\d+)y)?(?:(\d+)w)?(?:(\d+)d)?(?:(\d+)h)?(?:(\d+)m)?(?:(\d+)s)?(?:(\d+)ms)?$/;function i(e){let t=r.exec(e);if(null===t)throw Error(`Invalid duration string '${e}'`);return{years:parseInt(t[1]??"0"),months:0,weeks:parseInt(t[2]??"0"),days:parseInt(t[3]??"0"),hours:parseInt(t[4]??"0"),minutes:parseInt(t[5]??"0"),seconds:parseInt(t[6]??"0")+parseInt(t[7]??"0")/1e3}}function n(e){return""!==e&&r.test(e)}function d(e){let t=[];if(e.years&&t.push(`${e.years}y`),e.weeks&&t.push(`${e.weeks}w`),e.days&&t.push(`${e.days}d`),e.hours&&t.push(`${e.hours}h`),e.minutes&&t.push(`${e.minutes}m`),e.seconds){let a=Math.trunc(e.seconds);a&&t.push(`${a}s`);let s=Math.round((e.seconds-a)*1e3);s&&t.push(`${s}ms`)}return t.join("")}function u(e){var t;let a,s,r,i,n;return(a=Math.trunc((t=e.end.valueOf()-e.start.valueOf())/31536e6))>0&&(t-=31536e6*a),(s=Math.trunc(t/6048e5))>0&&(t-=6048e5*s),(r=Math.trunc(t/864e5))>0&&(t-=864e5*r),(i=Math.trunc(t/36e5))>0&&(t-=36e5*i),(n=Math.trunc(t/6e4))>0&&(t-=6e4*n),{years:a,months:0,weeks:s,days:r,hours:i,minutes:n,seconds:t/1e3}}function o(e){return void 0!==e.pastDuration}function l(e){let t=e.end??new Date;return{start:(0,s.sub)(t,i(e.pastDuration)),end:t}}let c=[{maxMs:15,roundedStepMs:10,display:"0.01s"},{maxMs:35,roundedStepMs:20,display:"0.02s"},{maxMs:75,roundedStepMs:50,display:"0.05s"},{maxMs:150,roundedStepMs:100,display:"0.1s"},{maxMs:350,roundedStepMs:200,display:"0.2s"},{maxMs:750,roundedStepMs:500,display:"0.5s"},{maxMs:1500,roundedStepMs:1e3,display:"1s"},{maxMs:3500,roundedStepMs:2e3,display:"2s"},{maxMs:7500,roundedStepMs:5e3,display:"5s"},{maxMs:12500,roundedStepMs:1e4,display:"10s"},{maxMs:17500,roundedStepMs:15e3,display:"15s"},{maxMs:25e3,roundedStepMs:2e4,display:"20s"},{maxMs:45e3,roundedStepMs:3e4,display:"30s"},{maxMs:9e4,roundedStepMs:6e4,display:"1m"},{maxMs:21e4,roundedStepMs:12e4,display:"2m"},{maxMs:45e4,roundedStepMs:3e5,display:"5m"},{maxMs:75e4,roundedStepMs:6e5,display:"10m"},{maxMs:75e4,roundedStepMs:9e5,display:"15m"},{maxMs:15e5,roundedStepMs:12e5,display:"20m"},{maxMs:27e5,roundedStepMs:18e5,display:"30m"},{maxMs:54e5,roundedStepMs:36e5,display:"1h"},{maxMs:9e6,roundedStepMs:72e5,display:"2h"},{maxMs:162e5,roundedStepMs:108e5,display:"3h"},{maxMs:324e5,roundedStepMs:216e5,display:"6h"},{maxMs:864e5,roundedStepMs:432e5,display:"12h"},{maxMs:6048e5,roundedStepMs:864e5,display:"1d"},{maxMs:18144e5,roundedStepMs:6048e5,display:"1w"},{maxMs:36288e5,roundedStepMs:2592e6,display:"30d"},{maxMs:63072e6,roundedStepMs:31536e6,display:"1y"}];function p(e,t){var a=Math.floor((e.end.valueOf()-e.start.valueOf())/t);for(let{maxMs:e,roundedStepMs:t}of c)if(a<e)return t;return 15e3}function h(e){return e.$ref.substring(14)}function m(e){return{$ref:`#/spec/panels/${e}`}}var f=a(59140);let _=f.Ik({version:f.Yj().optional(),registry:f.Yj().optional()}),y=f.Ik({kind:f.Yj().min(1,"Required"),metadata:_.optional(),spec:f.g1(f.Yj(),f.bz())}),g=f.Ik({name:f.Yj(),description:f.Yj().optional(),hidden:f.zM().optional(),color:f.Yj().optional()});function v(e){return f.Ik({display:g,plugin:e})}let k=f.Ik({display:g,plugin:y}),x=f.Ik({name:f.Yj().optional(),description:f.Yj().optional()}),b=f.Ik({display:x.optional(),default:f.zM(),plugin:y});function Z(e){return f.Ik({display:x.optional(),default:f.zM(),plugin:e})}f.Yj().min(1,"Required").regex(r,"Must be a valid duration string");let w=f.Ik({name:f.Yj().optional(),description:f.Yj().optional()}),S=f.Ik({kind:f.Yj().min(1),spec:f.Ik({name:f.Yj().optional(),plugin:y})}),T=f.Ik({name:f.Yj().optional(),url:f.Yj().min(1),tooltip:f.Yj().optional(),renderVariables:f.zM().optional(),targetBlank:f.zM().optional()}),O=f.Ik({display:w.optional(),plugin:y,queries:f.YO(S).optional(),links:f.YO(T).optional(),annotations:f.YO(k).optional()}),j=f.Ik({kind:f.eu("Panel"),spec:O});function M(e){return f.Ik({kind:f.eu("Panel"),spec:f.Ik({display:w.optional(),plugin:e,queries:f.YO(S).optional(),links:f.YO(T).optional(),annotations:f.YO(k).optional()})})}let C=f.Ik({name:f.Yj().optional(),description:f.Yj().optional(),hidden:f.zM().optional()}),I=f.Ik({name:f.Yj().min(1),display:C.optional(),defaultValue:f.Yj().or(f.YO(f.Yj())).optional(),allowAllValue:f.zM(),allowMultiple:f.zM(),customAllValue:f.Yj().optional(),capturingRegexp:f.Yj().optional(),sort:f.k5(["none","alphabetical-asc","alphabetical-desc","numerical-asc","numerical-desc","alphabetical-ci-asc","alphabetical-ci-desc"]).optional(),plugin:y}),A=f.Ik({kind:f.eu("ListVariable"),spec:I}),q=f.Ik({name:f.Yj().min(1),display:C.optional(),value:f.Yj(),constant:f.zM().optional()}),N=f.Ik({kind:f.eu("TextVariable"),spec:q}),R=f.gM("kind",[N,A]);function $(e){return f.gM("kind",[f.Ik({kind:f.eu("ListVariable"),spec:f.Ik({name:f.Yj().min(1),display:C.optional(),defaultValue:f.Yj().or(f.YO(f.Yj())).optional(),allowAllValue:f.zM(),allowMultiple:f.zM(),customAllValue:f.Yj().optional(),capturingRegexp:f.Yj().optional(),sort:f.k5(["none","alphabetical-asc","alphabetical-desc","numerical-asc","numerical-desc","alphabetical-ci-asc","alphabetical-ci-desc"]).optional(),plugin:e})}),f.Ik({kind:f.eu("TextVariable"),spec:q})])}},37830(e,t,a){a.d(t,{G:()=>i,eq:()=>r});var s=a(86045);let r=s.ZS.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class i extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},a={_errors:[]},s=e=>{for(let r of e.issues)if("invalid_union"===r.code)r.unionErrors.map(s);else if("invalid_return_type"===r.code)s(r.returnTypeError);else if("invalid_arguments"===r.code)s(r.argumentsError);else if(0===r.path.length)a._errors.push(t(r));else{let e=a,s=0;for(;s<r.path.length;){let a=r.path[s];s===r.path.length-1?(e[a]=e[a]||{_errors:[]},e[a]._errors.push(t(r))):e[a]=e[a]||{_errors:[]},e=e[a],s++}}};return s(this),a}static assert(e){if(!(e instanceof i))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,s.ZS.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},a=[];for(let s of this.issues)if(s.path.length>0){let a=s.path[0];t[a]=t[a]||[],t[a].push(e(s))}else a.push(e(s));return{formErrors:a,fieldErrors:t}}get formErrors(){return this.flatten()}}i.create=e=>new i(e)},86045(e,t,a){var s,r,i;a.d(t,{CR:()=>d,ZS:()=>s,Zp:()=>n}),(i=s||(s={})).assertEqual=e=>{},i.assertIs=function(e){},i.assertNever=function(e){throw Error()},i.arrayToEnum=e=>{let t={};for(let a of e)t[a]=a;return t},i.getValidEnumValues=e=>{let t=i.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),a={};for(let s of t)a[s]=e[s];return i.objectValues(a)},i.objectValues=e=>i.objectKeys(e).map(function(t){return e[t]}),i.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.push(a);return t},i.find=(e,t)=>{for(let a of e)if(t(a))return a},i.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,i.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},i.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(r||(r={})).mergeShapes=(e,t)=>({...e,...t});let n=s.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),d=e=>{switch(typeof e){case"undefined":return n.undefined;case"string":return n.string;case"number":return Number.isNaN(e)?n.nan:n.number;case"boolean":return n.boolean;case"function":return n.function;case"bigint":return n.bigint;case"symbol":return n.symbol;case"object":if(Array.isArray(e))return n.array;if(null===e)return n.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return n.promise;if("u">typeof Map&&e instanceof Map)return n.map;if("u">typeof Set&&e instanceof Set)return n.set;if("u">typeof Date&&e instanceof Date)return n.date;return n.object;default:return n.unknown}}},59140(e,t,a){let s;a.d(t,{k5:()=>eq,gM:()=>eC,bz:()=>eT,g1:()=>eI,zM:()=>eS,ai:()=>ew,Ik:()=>ej,YO:()=>eO,Yj:()=>eZ,eu:()=>eA,KC:()=>eM});var r,i,n,d,u=a(37830),o=a(86045);let l=(e,t)=>{let a;switch(e.code){case u.eq.invalid_type:a=e.received===o.Zp.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case u.eq.invalid_literal:a=`Invalid literal value, expected ${JSON.stringify(e.expected,o.ZS.jsonStringifyReplacer)}`;break;case u.eq.unrecognized_keys:a=`Unrecognized key(s) in object: ${o.ZS.joinValues(e.keys,", ")}`;break;case u.eq.invalid_union:a="Invalid input";break;case u.eq.invalid_union_discriminator:a=`Invalid discriminator value. Expected ${o.ZS.joinValues(e.options)}`;break;case u.eq.invalid_enum_value:a=`Invalid enum value. Expected ${o.ZS.joinValues(e.options)}, received '${e.received}'`;break;case u.eq.invalid_arguments:a="Invalid function arguments";break;case u.eq.invalid_return_type:a="Invalid function return type";break;case u.eq.invalid_date:a="Invalid date";break;case u.eq.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(a=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(a=`${a} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?a=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?a=`Invalid input: must end with "${e.validation.endsWith}"`:o.ZS.assertNever(e.validation):a="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case u.eq.too_small:a="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case u.eq.too_big:a="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case u.eq.custom:a="Invalid input";break;case u.eq.invalid_intersection_types:a="Intersection results could not be merged";break;case u.eq.not_multiple_of:a=`Number must be a multiple of ${e.multipleOf}`;break;case u.eq.not_finite:a="Number must be finite";break;default:a=t.defaultError,o.ZS.assertNever(e)}return{message:a}};(r=n||(n={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},r.toString=e=>"string"==typeof e?e:e?.message;let c=e=>{let{data:t,path:a,errorMaps:s,issueData:r}=e,i=[...a,...r.path||[]],n={...r,path:i};if(void 0!==r.message)return{...r,path:i,message:r.message};let d="";for(let e of s.filter(e=>!!e).slice().reverse())d=e(n,{data:t,defaultError:d}).message;return{...r,path:i,message:d}};function p(e,t){let a=c({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,l,void 0].filter(e=>!!e)});e.common.issues.push(a)}class h{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let a=[];for(let s of t){if("aborted"===s.status)return m;"dirty"===s.status&&e.dirty(),a.push(s.value)}return{status:e.value,value:a}}static async mergeObjectAsync(e,t){let a=[];for(let e of t){let t=await e.key,s=await e.value;a.push({key:t,value:s})}return h.mergeObjectSync(e,a)}static mergeObjectSync(e,t){let a={};for(let s of t){let{key:t,value:r}=s;if("aborted"===t.status||"aborted"===r.status)return m;"dirty"===t.status&&e.dirty(),"dirty"===r.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==r.value||s.alwaysSet)&&(a[t.value]=r.value)}return{status:e.value,value:a}}}let m=Object.freeze({status:"aborted"}),f=e=>({status:"dirty",value:e}),_=e=>({status:"valid",value:e}),y=e=>"u">typeof Promise&&e instanceof Promise;class g{constructor(e,t,a,s){this._cachedPath=[],this.parent=e,this.data=t,this._path=a,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let v=(e,t)=>{if("valid"===t.status)return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new u.G(e.common.issues);return this._error=t,this._error}}};function k(e){if(!e)return{};let{errorMap:t,invalid_type_error:a,required_error:s,description:r}=e;if(t&&(a||s))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:r}:{errorMap:(t,r)=>{let{message:i}=e;return"invalid_enum_value"===t.code?{message:i??r.defaultError}:void 0===r.data?{message:i??s??r.defaultError}:"invalid_type"!==t.code?{message:r.defaultError}:{message:i??a??r.defaultError}},description:r}}class x{get description(){return this._def.description}_getType(e){return(0,o.CR)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,o.CR)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new h,ctx:{common:e.parent.common,data:e.data,parsedType:(0,o.CR)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(y(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let a=this.safeParse(e,t);if(a.success)return a.data;throw a.error}safeParse(e,t){let a={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,o.CR)(e)},s=this._parseSync({data:e,path:a.path,parent:a});return v(a,s)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,o.CR)(e)};if(!this["~standard"].async)try{let a=this._parseSync({data:e,path:[],parent:t});return"valid"===a.status?{value:a.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>"valid"===e.status?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let a=await this.safeParseAsync(e,t);if(a.success)return a.data;throw a.error}async safeParseAsync(e,t){let a={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,o.CR)(e)},s=this._parse({data:e,path:a.path,parent:a});return v(a,await (y(s)?s:Promise.resolve(s)))}refine(e,t){return this._refinement((a,s)=>{let r=e(a),i=()=>s.addIssue({code:u.eq.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(a):t});return"u">typeof Promise&&r instanceof Promise?r.then(e=>!!e||(i(),!1)):!!r||(i(),!1)})}refinement(e,t){return this._refinement((a,s)=>!!e(a)||(s.addIssue("function"==typeof t?t(a,s):t),!1))}_refinement(e){return new em({schema:this,typeName:d.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return ef.create(this,this._def)}nullable(){return e_.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return H.create(this)}promise(){return eh.create(this,this._def)}or(e){return Q.create([this,e],this._def)}and(e){return ea.create(this,e,this._def)}transform(e){return new em({...k(this._def),schema:this,typeName:d.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ey({...k(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:d.ZodDefault})}brand(){return new ek({typeName:d.ZodBranded,type:this,...k(this._def)})}catch(e){return new eg({...k(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:d.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return ex.create(this,e)}readonly(){return eb.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let b=/^c[^\s-]{8,}$/i,Z=/^[0-9a-z]+$/,w=/^[0-9A-HJKMNP-TV-Z]{26}$/i,S=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,T=/^[a-z0-9_-]{21}$/i,O=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,j=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,M=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,C=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,I=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,A=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,q=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,N=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,R=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,$="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",E=RegExp(`^${$}$`);function P(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let a=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${a}`}class z extends x{_parse(e){var t,a,r,i;let n;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==o.Zp.string){let t=this._getOrReturnCtx(e);return p(t,{code:u.eq.invalid_type,expected:o.Zp.string,received:t.parsedType}),m}let d=new h;for(let l of this._def.checks)if("min"===l.kind)e.data.length<l.value&&(p(n=this._getOrReturnCtx(e,n),{code:u.eq.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),d.dirty());else if("max"===l.kind)e.data.length>l.value&&(p(n=this._getOrReturnCtx(e,n),{code:u.eq.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),d.dirty());else if("length"===l.kind){let t=e.data.length>l.value,a=e.data.length<l.value;(t||a)&&(n=this._getOrReturnCtx(e,n),t?p(n,{code:u.eq.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}):a&&p(n,{code:u.eq.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}),d.dirty())}else if("email"===l.kind)M.test(e.data)||(p(n=this._getOrReturnCtx(e,n),{validation:"email",code:u.eq.invalid_string,message:l.message}),d.dirty());else if("emoji"===l.kind)s||(s=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),s.test(e.data)||(p(n=this._getOrReturnCtx(e,n),{validation:"emoji",code:u.eq.invalid_string,message:l.message}),d.dirty());else if("uuid"===l.kind)S.test(e.data)||(p(n=this._getOrReturnCtx(e,n),{validation:"uuid",code:u.eq.invalid_string,message:l.message}),d.dirty());else if("nanoid"===l.kind)T.test(e.data)||(p(n=this._getOrReturnCtx(e,n),{validation:"nanoid",code:u.eq.invalid_string,message:l.message}),d.dirty());else if("cuid"===l.kind)b.test(e.data)||(p(n=this._getOrReturnCtx(e,n),{validation:"cuid",code:u.eq.invalid_string,message:l.message}),d.dirty());else if("cuid2"===l.kind)Z.test(e.data)||(p(n=this._getOrReturnCtx(e,n),{validation:"cuid2",code:u.eq.invalid_string,message:l.message}),d.dirty());else if("ulid"===l.kind)w.test(e.data)||(p(n=this._getOrReturnCtx(e,n),{validation:"ulid",code:u.eq.invalid_string,message:l.message}),d.dirty());else if("url"===l.kind)try{new URL(e.data)}catch{p(n=this._getOrReturnCtx(e,n),{validation:"url",code:u.eq.invalid_string,message:l.message}),d.dirty()}else"regex"===l.kind?(l.regex.lastIndex=0,l.regex.test(e.data)||(p(n=this._getOrReturnCtx(e,n),{validation:"regex",code:u.eq.invalid_string,message:l.message}),d.dirty())):"trim"===l.kind?e.data=e.data.trim():"includes"===l.kind?e.data.includes(l.value,l.position)||(p(n=this._getOrReturnCtx(e,n),{code:u.eq.invalid_string,validation:{includes:l.value,position:l.position},message:l.message}),d.dirty()):"toLowerCase"===l.kind?e.data=e.data.toLowerCase():"toUpperCase"===l.kind?e.data=e.data.toUpperCase():"startsWith"===l.kind?e.data.startsWith(l.value)||(p(n=this._getOrReturnCtx(e,n),{code:u.eq.invalid_string,validation:{startsWith:l.value},message:l.message}),d.dirty()):"endsWith"===l.kind?e.data.endsWith(l.value)||(p(n=this._getOrReturnCtx(e,n),{code:u.eq.invalid_string,validation:{endsWith:l.value},message:l.message}),d.dirty()):"datetime"===l.kind?(function(e){let t=`${$}T${P(e)}`,a=[];return a.push(e.local?"Z?":"Z"),e.offset&&a.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${a.join("|")})`,RegExp(`^${t}$`)})(l).test(e.data)||(p(n=this._getOrReturnCtx(e,n),{code:u.eq.invalid_string,validation:"datetime",message:l.message}),d.dirty()):"date"===l.kind?E.test(e.data)||(p(n=this._getOrReturnCtx(e,n),{code:u.eq.invalid_string,validation:"date",message:l.message}),d.dirty()):"time"===l.kind?RegExp(`^${P(l)}$`).test(e.data)||(p(n=this._getOrReturnCtx(e,n),{code:u.eq.invalid_string,validation:"time",message:l.message}),d.dirty()):"duration"===l.kind?j.test(e.data)||(p(n=this._getOrReturnCtx(e,n),{validation:"duration",code:u.eq.invalid_string,message:l.message}),d.dirty()):"ip"===l.kind?(t=e.data,!(("v4"===(a=l.version)||!a)&&C.test(t)||("v6"===a||!a)&&A.test(t))&&1&&(p(n=this._getOrReturnCtx(e,n),{validation:"ip",code:u.eq.invalid_string,message:l.message}),d.dirty())):"jwt"===l.kind?!function(e,t){if(!O.test(e))return!1;try{let[a]=e.split(".");if(!a)return!1;let s=a.replace(/-/g,"+").replace(/_/g,"/").padEnd(a.length+(4-a.length%4)%4,"="),r=JSON.parse(atob(s));if("object"!=typeof r||null===r||"typ"in r&&r?.typ!=="JWT"||!r.alg||t&&r.alg!==t)return!1;return!0}catch{return!1}}(e.data,l.alg)&&(p(n=this._getOrReturnCtx(e,n),{validation:"jwt",code:u.eq.invalid_string,message:l.message}),d.dirty()):"cidr"===l.kind?(r=e.data,!(("v4"===(i=l.version)||!i)&&I.test(r)||("v6"===i||!i)&&q.test(r))&&1&&(p(n=this._getOrReturnCtx(e,n),{validation:"cidr",code:u.eq.invalid_string,message:l.message}),d.dirty())):"base64"===l.kind?N.test(e.data)||(p(n=this._getOrReturnCtx(e,n),{validation:"base64",code:u.eq.invalid_string,message:l.message}),d.dirty()):"base64url"===l.kind?R.test(e.data)||(p(n=this._getOrReturnCtx(e,n),{validation:"base64url",code:u.eq.invalid_string,message:l.message}),d.dirty()):o.ZS.assertNever(l);return{status:d.value,value:e.data}}_regex(e,t,a){return this.refinement(t=>e.test(t),{validation:t,code:u.eq.invalid_string,...n.errToObj(a)})}_addCheck(e){return new z({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...n.errToObj(e)})}url(e){return this._addCheck({kind:"url",...n.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...n.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...n.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...n.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...n.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...n.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...n.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...n.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...n.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...n.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...n.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...n.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...n.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...n.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...n.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...n.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...n.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...n.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...n.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...n.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...n.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...n.errToObj(t)})}nonempty(e){return this.min(1,n.errToObj(e))}trim(){return new z({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new z({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new z({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}z.create=e=>new z({checks:[],typeName:d.ZodString,coerce:e?.coerce??!1,...k(e)});class F extends x{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==o.Zp.number){let t=this._getOrReturnCtx(e);return p(t,{code:u.eq.invalid_type,expected:o.Zp.number,received:t.parsedType}),m}let a=new h;for(let s of this._def.checks)"int"===s.kind?o.ZS.isInteger(e.data)||(p(t=this._getOrReturnCtx(e,t),{code:u.eq.invalid_type,expected:"integer",received:"float",message:s.message}),a.dirty()):"min"===s.kind?(s.inclusive?e.data<s.value:e.data<=s.value)&&(p(t=this._getOrReturnCtx(e,t),{code:u.eq.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):"max"===s.kind?(s.inclusive?e.data>s.value:e.data>=s.value)&&(p(t=this._getOrReturnCtx(e,t),{code:u.eq.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):"multipleOf"===s.kind?0!==function(e,t){let a=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,r=a>s?a:s;return Number.parseInt(e.toFixed(r).replace(".",""))%Number.parseInt(t.toFixed(r).replace(".",""))/10**r}(e.data,s.value)&&(p(t=this._getOrReturnCtx(e,t),{code:u.eq.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):"finite"===s.kind?Number.isFinite(e.data)||(p(t=this._getOrReturnCtx(e,t),{code:u.eq.not_finite,message:s.message}),a.dirty()):o.ZS.assertNever(s);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,n.toString(t))}gt(e,t){return this.setLimit("min",e,!1,n.toString(t))}lte(e,t){return this.setLimit("max",e,!0,n.toString(t))}lt(e,t){return this.setLimit("max",e,!1,n.toString(t))}setLimit(e,t,a,s){return new F({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:a,message:n.toString(s)}]})}_addCheck(e){return new F({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:n.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:n.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:n.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:n.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:n.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:n.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:n.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:n.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:n.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&o.ZS.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let a of this._def.checks)if("finite"===a.kind||"int"===a.kind||"multipleOf"===a.kind)return!0;else"min"===a.kind?(null===t||a.value>t)&&(t=a.value):"max"===a.kind&&(null===e||a.value<e)&&(e=a.value);return Number.isFinite(t)&&Number.isFinite(e)}}F.create=e=>new F({checks:[],typeName:d.ZodNumber,coerce:e?.coerce||!1,...k(e)});class L extends x{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==o.Zp.bigint)return this._getInvalidInput(e);let a=new h;for(let s of this._def.checks)"min"===s.kind?(s.inclusive?e.data<s.value:e.data<=s.value)&&(p(t=this._getOrReturnCtx(e,t),{code:u.eq.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):"max"===s.kind?(s.inclusive?e.data>s.value:e.data>=s.value)&&(p(t=this._getOrReturnCtx(e,t),{code:u.eq.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):"multipleOf"===s.kind?e.data%s.value!==BigInt(0)&&(p(t=this._getOrReturnCtx(e,t),{code:u.eq.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):o.ZS.assertNever(s);return{status:a.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return p(t,{code:u.eq.invalid_type,expected:o.Zp.bigint,received:t.parsedType}),m}gte(e,t){return this.setLimit("min",e,!0,n.toString(t))}gt(e,t){return this.setLimit("min",e,!1,n.toString(t))}lte(e,t){return this.setLimit("max",e,!0,n.toString(t))}lt(e,t){return this.setLimit("max",e,!1,n.toString(t))}setLimit(e,t,a,s){return new L({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:a,message:n.toString(s)}]})}_addCheck(e){return new L({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:n.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:n.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:n.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:n.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:n.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}L.create=e=>new L({checks:[],typeName:d.ZodBigInt,coerce:e?.coerce??!1,...k(e)});class V extends x{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==o.Zp.boolean){let t=this._getOrReturnCtx(e);return p(t,{code:u.eq.invalid_type,expected:o.Zp.boolean,received:t.parsedType}),m}return _(e.data)}}V.create=e=>new V({typeName:d.ZodBoolean,coerce:e?.coerce||!1,...k(e)});class Y extends x{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==o.Zp.date){let t=this._getOrReturnCtx(e);return p(t,{code:u.eq.invalid_type,expected:o.Zp.date,received:t.parsedType}),m}if(Number.isNaN(e.data.getTime()))return p(this._getOrReturnCtx(e),{code:u.eq.invalid_date}),m;let a=new h;for(let s of this._def.checks)"min"===s.kind?e.data.getTime()<s.value&&(p(t=this._getOrReturnCtx(e,t),{code:u.eq.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),a.dirty()):"max"===s.kind?e.data.getTime()>s.value&&(p(t=this._getOrReturnCtx(e,t),{code:u.eq.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),a.dirty()):o.ZS.assertNever(s);return{status:a.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Y({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:n.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:n.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}Y.create=e=>new Y({checks:[],coerce:e?.coerce||!1,typeName:d.ZodDate,...k(e)});class D extends x{_parse(e){if(this._getType(e)!==o.Zp.symbol){let t=this._getOrReturnCtx(e);return p(t,{code:u.eq.invalid_type,expected:o.Zp.symbol,received:t.parsedType}),m}return _(e.data)}}D.create=e=>new D({typeName:d.ZodSymbol,...k(e)});class U extends x{_parse(e){if(this._getType(e)!==o.Zp.undefined){let t=this._getOrReturnCtx(e);return p(t,{code:u.eq.invalid_type,expected:o.Zp.undefined,received:t.parsedType}),m}return _(e.data)}}U.create=e=>new U({typeName:d.ZodUndefined,...k(e)});class K extends x{_parse(e){if(this._getType(e)!==o.Zp.null){let t=this._getOrReturnCtx(e);return p(t,{code:u.eq.invalid_type,expected:o.Zp.null,received:t.parsedType}),m}return _(e.data)}}K.create=e=>new K({typeName:d.ZodNull,...k(e)});class B extends x{constructor(){super(...arguments),this._any=!0}_parse(e){return _(e.data)}}B.create=e=>new B({typeName:d.ZodAny,...k(e)});class W extends x{constructor(){super(...arguments),this._unknown=!0}_parse(e){return _(e.data)}}W.create=e=>new W({typeName:d.ZodUnknown,...k(e)});class G extends x{_parse(e){let t=this._getOrReturnCtx(e);return p(t,{code:u.eq.invalid_type,expected:o.Zp.never,received:t.parsedType}),m}}G.create=e=>new G({typeName:d.ZodNever,...k(e)});class J extends x{_parse(e){if(this._getType(e)!==o.Zp.undefined){let t=this._getOrReturnCtx(e);return p(t,{code:u.eq.invalid_type,expected:o.Zp.void,received:t.parsedType}),m}return _(e.data)}}J.create=e=>new J({typeName:d.ZodVoid,...k(e)});class H extends x{_parse(e){let{ctx:t,status:a}=this._processInputParams(e),s=this._def;if(t.parsedType!==o.Zp.array)return p(t,{code:u.eq.invalid_type,expected:o.Zp.array,received:t.parsedType}),m;if(null!==s.exactLength){let e=t.data.length>s.exactLength.value,r=t.data.length<s.exactLength.value;(e||r)&&(p(t,{code:e?u.eq.too_big:u.eq.too_small,minimum:r?s.exactLength.value:void 0,maximum:e?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),a.dirty())}if(null!==s.minLength&&t.data.length<s.minLength.value&&(p(t,{code:u.eq.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),a.dirty()),null!==s.maxLength&&t.data.length>s.maxLength.value&&(p(t,{code:u.eq.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),a.dirty()),t.common.async)return Promise.all([...t.data].map((e,a)=>s.type._parseAsync(new g(t,e,t.path,a)))).then(e=>h.mergeArray(a,e));let r=[...t.data].map((e,a)=>s.type._parseSync(new g(t,e,t.path,a)));return h.mergeArray(a,r)}get element(){return this._def.type}min(e,t){return new H({...this._def,minLength:{value:e,message:n.toString(t)}})}max(e,t){return new H({...this._def,maxLength:{value:e,message:n.toString(t)}})}length(e,t){return new H({...this._def,exactLength:{value:e,message:n.toString(t)}})}nonempty(e){return this.min(1,e)}}H.create=(e,t)=>new H({type:e,minLength:null,maxLength:null,exactLength:null,typeName:d.ZodArray,...k(t)});class X extends x{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=o.ZS.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==o.Zp.object){let t=this._getOrReturnCtx(e);return p(t,{code:u.eq.invalid_type,expected:o.Zp.object,received:t.parsedType}),m}let{status:t,ctx:a}=this._processInputParams(e),{shape:s,keys:r}=this._getCached(),i=[];if(!(this._def.catchall instanceof G&&"strip"===this._def.unknownKeys))for(let e in a.data)r.includes(e)||i.push(e);let n=[];for(let e of r){let t=s[e],r=a.data[e];n.push({key:{status:"valid",value:e},value:t._parse(new g(a,r,a.path,e)),alwaysSet:e in a.data})}if(this._def.catchall instanceof G){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of i)n.push({key:{status:"valid",value:e},value:{status:"valid",value:a.data[e]}});else if("strict"===e)i.length>0&&(p(a,{code:u.eq.unrecognized_keys,keys:i}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of i){let s=a.data[t];n.push({key:{status:"valid",value:t},value:e._parse(new g(a,s,a.path,t)),alwaysSet:t in a.data})}}return a.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of n){let a=await t.key,s=await t.value;e.push({key:a,value:s,alwaysSet:t.alwaysSet})}return e}).then(e=>h.mergeObjectSync(t,e)):h.mergeObjectSync(t,n)}get shape(){return this._def.shape()}strict(e){return n.errToObj,new X({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,a)=>{let s=this._def.errorMap?.(t,a).message??a.defaultError;return"unrecognized_keys"===t.code?{message:n.errToObj(e).message??s}:{message:s}}}:{}})}strip(){return new X({...this._def,unknownKeys:"strip"})}passthrough(){return new X({...this._def,unknownKeys:"passthrough"})}extend(e){return new X({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new X({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:d.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new X({...this._def,catchall:e})}pick(e){let t={};for(let a of o.ZS.objectKeys(e))e[a]&&this.shape[a]&&(t[a]=this.shape[a]);return new X({...this._def,shape:()=>t})}omit(e){let t={};for(let a of o.ZS.objectKeys(this.shape))e[a]||(t[a]=this.shape[a]);return new X({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof X){let a={};for(let s in t.shape){let r=t.shape[s];a[s]=ef.create(e(r))}return new X({...t._def,shape:()=>a})}if(t instanceof H)return new H({...t._def,type:e(t.element)});if(t instanceof ef)return ef.create(e(t.unwrap()));if(t instanceof e_)return e_.create(e(t.unwrap()));if(t instanceof es)return es.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let a of o.ZS.objectKeys(this.shape)){let s=this.shape[a];e&&!e[a]?t[a]=s:t[a]=s.optional()}return new X({...this._def,shape:()=>t})}required(e){let t={};for(let a of o.ZS.objectKeys(this.shape))if(e&&!e[a])t[a]=this.shape[a];else{let e=this.shape[a];for(;e instanceof ef;)e=e._def.innerType;t[a]=e}return new X({...this._def,shape:()=>t})}keyof(){return el(o.ZS.objectKeys(this.shape))}}X.create=(e,t)=>new X({shape:()=>e,unknownKeys:"strip",catchall:G.create(),typeName:d.ZodObject,...k(t)}),X.strictCreate=(e,t)=>new X({shape:()=>e,unknownKeys:"strict",catchall:G.create(),typeName:d.ZodObject,...k(t)}),X.lazycreate=(e,t)=>new X({shape:e,unknownKeys:"strip",catchall:G.create(),typeName:d.ZodObject,...k(t)});class Q extends x{_parse(e){let{ctx:t}=this._processInputParams(e),a=this._def.options;if(t.common.async)return Promise.all(a.map(async e=>{let a={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:a}),ctx:a}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let a of e)if("dirty"===a.result.status)return t.common.issues.push(...a.ctx.common.issues),a.result;let a=e.map(e=>new u.G(e.ctx.common.issues));return p(t,{code:u.eq.invalid_union,unionErrors:a}),m});{let e,s=[];for(let r of a){let a={...t,common:{...t.common,issues:[]},parent:null},i=r._parseSync({data:t.data,path:t.path,parent:a});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:a}),a.common.issues.length&&s.push(a.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let r=s.map(e=>new u.G(e));return p(t,{code:u.eq.invalid_union,unionErrors:r}),m}}get options(){return this._def.options}}Q.create=(e,t)=>new Q({options:e,typeName:d.ZodUnion,...k(t)});let ee=e=>{if(e instanceof eu)return ee(e.schema);if(e instanceof em)return ee(e.innerType());if(e instanceof eo)return[e.value];if(e instanceof ec)return e.options;if(e instanceof ep)return o.ZS.objectValues(e.enum);else if(e instanceof ey)return ee(e._def.innerType);else if(e instanceof U)return[void 0];else if(e instanceof K)return[null];else if(e instanceof ef)return[void 0,...ee(e.unwrap())];else if(e instanceof e_)return[null,...ee(e.unwrap())];else if(e instanceof ek)return ee(e.unwrap());else if(e instanceof eb)return ee(e.unwrap());else if(e instanceof eg)return ee(e._def.innerType);else return[]};class et extends x{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.Zp.object)return p(t,{code:u.eq.invalid_type,expected:o.Zp.object,received:t.parsedType}),m;let a=this.discriminator,s=t.data[a],r=this.optionsMap.get(s);return r?t.common.async?r._parseAsync({data:t.data,path:t.path,parent:t}):r._parseSync({data:t.data,path:t.path,parent:t}):(p(t,{code:u.eq.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[a]}),m)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,a){let s=new Map;for(let a of t){let t=ee(a.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let r of t){if(s.has(r))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(r)}`);s.set(r,a)}}return new et({typeName:d.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:s,...k(a)})}}class ea extends x{_parse(e){let{status:t,ctx:a}=this._processInputParams(e),s=(e,s)=>{if("aborted"===e.status||"aborted"===s.status)return m;let r=function e(t,a){let s=(0,o.CR)(t),r=(0,o.CR)(a);if(t===a)return{valid:!0,data:t};if(s===o.Zp.object&&r===o.Zp.object){let s=o.ZS.objectKeys(a),r=o.ZS.objectKeys(t).filter(e=>-1!==s.indexOf(e)),i={...t,...a};for(let s of r){let r=e(t[s],a[s]);if(!r.valid)return{valid:!1};i[s]=r.data}return{valid:!0,data:i}}if(s===o.Zp.array&&r===o.Zp.array){if(t.length!==a.length)return{valid:!1};let s=[];for(let r=0;r<t.length;r++){let i=e(t[r],a[r]);if(!i.valid)return{valid:!1};s.push(i.data)}return{valid:!0,data:s}}if(s===o.Zp.date&&r===o.Zp.date&&+t==+a)return{valid:!0,data:t};return{valid:!1}}(e.value,s.value);return r.valid?(("dirty"===e.status||"dirty"===s.status)&&t.dirty(),{status:t.value,value:r.data}):(p(a,{code:u.eq.invalid_intersection_types}),m)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([e,t])=>s(e,t)):s(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}ea.create=(e,t,a)=>new ea({left:e,right:t,typeName:d.ZodIntersection,...k(a)});class es extends x{_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==o.Zp.array)return p(a,{code:u.eq.invalid_type,expected:o.Zp.array,received:a.parsedType}),m;if(a.data.length<this._def.items.length)return p(a,{code:u.eq.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),m;!this._def.rest&&a.data.length>this._def.items.length&&(p(a,{code:u.eq.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let s=[...a.data].map((e,t)=>{let s=this._def.items[t]||this._def.rest;return s?s._parse(new g(a,e,a.path,t)):null}).filter(e=>!!e);return a.common.async?Promise.all(s).then(e=>h.mergeArray(t,e)):h.mergeArray(t,s)}get items(){return this._def.items}rest(e){return new es({...this._def,rest:e})}}es.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new es({items:e,typeName:d.ZodTuple,rest:null,...k(t)})};class er extends x{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==o.Zp.object)return p(a,{code:u.eq.invalid_type,expected:o.Zp.object,received:a.parsedType}),m;let s=[],r=this._def.keyType,i=this._def.valueType;for(let e in a.data)s.push({key:r._parse(new g(a,e,a.path,e)),value:i._parse(new g(a,a.data[e],a.path,e)),alwaysSet:e in a.data});return a.common.async?h.mergeObjectAsync(t,s):h.mergeObjectSync(t,s)}get element(){return this._def.valueType}static create(e,t,a){return new er(t instanceof x?{keyType:e,valueType:t,typeName:d.ZodRecord,...k(a)}:{keyType:z.create(),valueType:e,typeName:d.ZodRecord,...k(t)})}}class ei extends x{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==o.Zp.map)return p(a,{code:u.eq.invalid_type,expected:o.Zp.map,received:a.parsedType}),m;let s=this._def.keyType,r=this._def.valueType,i=[...a.data.entries()].map(([e,t],i)=>({key:s._parse(new g(a,e,a.path,[i,"key"])),value:r._parse(new g(a,t,a.path,[i,"value"]))}));if(a.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let a of i){let s=await a.key,r=await a.value;if("aborted"===s.status||"aborted"===r.status)return m;("dirty"===s.status||"dirty"===r.status)&&t.dirty(),e.set(s.value,r.value)}return{status:t.value,value:e}})}{let e=new Map;for(let a of i){let s=a.key,r=a.value;if("aborted"===s.status||"aborted"===r.status)return m;("dirty"===s.status||"dirty"===r.status)&&t.dirty(),e.set(s.value,r.value)}return{status:t.value,value:e}}}}ei.create=(e,t,a)=>new ei({valueType:t,keyType:e,typeName:d.ZodMap,...k(a)});class en extends x{_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==o.Zp.set)return p(a,{code:u.eq.invalid_type,expected:o.Zp.set,received:a.parsedType}),m;let s=this._def;null!==s.minSize&&a.data.size<s.minSize.value&&(p(a,{code:u.eq.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),t.dirty()),null!==s.maxSize&&a.data.size>s.maxSize.value&&(p(a,{code:u.eq.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),t.dirty());let r=this._def.valueType;function i(e){let a=new Set;for(let s of e){if("aborted"===s.status)return m;"dirty"===s.status&&t.dirty(),a.add(s.value)}return{status:t.value,value:a}}let n=[...a.data.values()].map((e,t)=>r._parse(new g(a,e,a.path,t)));return a.common.async?Promise.all(n).then(e=>i(e)):i(n)}min(e,t){return new en({...this._def,minSize:{value:e,message:n.toString(t)}})}max(e,t){return new en({...this._def,maxSize:{value:e,message:n.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}en.create=(e,t)=>new en({valueType:e,minSize:null,maxSize:null,typeName:d.ZodSet,...k(t)});class ed extends x{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.Zp.function)return p(t,{code:u.eq.invalid_type,expected:o.Zp.function,received:t.parsedType}),m;function a(e,a){return c({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,l,l].filter(e=>!!e),issueData:{code:u.eq.invalid_arguments,argumentsError:a}})}function s(e,a){return c({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,l,l].filter(e=>!!e),issueData:{code:u.eq.invalid_return_type,returnTypeError:a}})}let r={errorMap:t.common.contextualErrorMap},i=t.data;if(this._def.returns instanceof eh){let e=this;return _(async function(...t){let n=new u.G([]),d=await e._def.args.parseAsync(t,r).catch(e=>{throw n.addIssue(a(t,e)),n}),o=await Reflect.apply(i,this,d);return await e._def.returns._def.type.parseAsync(o,r).catch(e=>{throw n.addIssue(s(o,e)),n})})}{let e=this;return _(function(...t){let n=e._def.args.safeParse(t,r);if(!n.success)throw new u.G([a(t,n.error)]);let d=Reflect.apply(i,this,n.data),o=e._def.returns.safeParse(d,r);if(!o.success)throw new u.G([s(d,o.error)]);return o.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ed({...this._def,args:es.create(e).rest(W.create())})}returns(e){return new ed({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,a){return new ed({args:e||es.create([]).rest(W.create()),returns:t||W.create(),typeName:d.ZodFunction,...k(a)})}}class eu extends x{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}eu.create=(e,t)=>new eu({getter:e,typeName:d.ZodLazy,...k(t)});class eo extends x{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return p(t,{received:t.data,code:u.eq.invalid_literal,expected:this._def.value}),m}return{status:"valid",value:e.data}}get value(){return this._def.value}}function el(e,t){return new ec({values:e,typeName:d.ZodEnum,...k(t)})}eo.create=(e,t)=>new eo({value:e,typeName:d.ZodLiteral,...k(t)});class ec extends x{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),a=this._def.values;return p(t,{expected:o.ZS.joinValues(a),received:t.parsedType,code:u.eq.invalid_type}),m}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),a=this._def.values;return p(t,{received:t.data,code:u.eq.invalid_enum_value,options:a}),m}return _(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return ec.create(e,{...this._def,...t})}exclude(e,t=this._def){return ec.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}ec.create=el;class ep extends x{_parse(e){let t=o.ZS.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(e);if(a.parsedType!==o.Zp.string&&a.parsedType!==o.Zp.number){let e=o.ZS.objectValues(t);return p(a,{expected:o.ZS.joinValues(e),received:a.parsedType,code:u.eq.invalid_type}),m}if(this._cache||(this._cache=new Set(o.ZS.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=o.ZS.objectValues(t);return p(a,{received:a.data,code:u.eq.invalid_enum_value,options:e}),m}return _(e.data)}get enum(){return this._def.values}}ep.create=(e,t)=>new ep({values:e,typeName:d.ZodNativeEnum,...k(t)});class eh extends x{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==o.Zp.promise&&!1===t.common.async?(p(t,{code:u.eq.invalid_type,expected:o.Zp.promise,received:t.parsedType}),m):_((t.parsedType===o.Zp.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eh.create=(e,t)=>new eh({type:e,typeName:d.ZodPromise,...k(t)});class em extends x{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===d.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:a}=this._processInputParams(e),s=this._def.effect||null,r={addIssue:e=>{p(a,e),e.fatal?t.abort():t.dirty()},get path(){return a.path}};if(r.addIssue=r.addIssue.bind(r),"preprocess"===s.type){let e=s.transform(a.data,r);if(a.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return m;let s=await this._def.schema._parseAsync({data:e,path:a.path,parent:a});return"aborted"===s.status?m:"dirty"===s.status||"dirty"===t.value?f(s.value):s});{if("aborted"===t.value)return m;let s=this._def.schema._parseSync({data:e,path:a.path,parent:a});return"aborted"===s.status?m:"dirty"===s.status||"dirty"===t.value?f(s.value):s}}if("refinement"===s.type){let e=e=>{let t=s.refinement(e,r);if(a.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==a.common.async)return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(a=>"aborted"===a.status?m:("dirty"===a.status&&t.dirty(),e(a.value).then(()=>({status:t.value,value:a.value}))));{let s=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return"aborted"===s.status?m:("dirty"===s.status&&t.dirty(),e(s.value),{status:t.value,value:s.value})}}if("transform"===s.type)if(!1!==a.common.async)return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(e=>"valid"!==e.status?m:Promise.resolve(s.transform(e.value,r)).then(e=>({status:t.value,value:e})));else{let e=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if("valid"!==e.status)return m;let i=s.transform(e.value,r);if(i instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}o.ZS.assertNever(s)}}em.create=(e,t,a)=>new em({schema:e,typeName:d.ZodEffects,effect:t,...k(a)}),em.createWithPreprocess=(e,t,a)=>new em({schema:t,effect:{type:"preprocess",transform:e},typeName:d.ZodEffects,...k(a)});class ef extends x{_parse(e){return this._getType(e)===o.Zp.undefined?_(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ef.create=(e,t)=>new ef({innerType:e,typeName:d.ZodOptional,...k(t)});class e_ extends x{_parse(e){return this._getType(e)===o.Zp.null?_(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}e_.create=(e,t)=>new e_({innerType:e,typeName:d.ZodNullable,...k(t)});class ey extends x{_parse(e){let{ctx:t}=this._processInputParams(e),a=t.data;return t.parsedType===o.Zp.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ey.create=(e,t)=>new ey({innerType:e,typeName:d.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...k(t)});class eg extends x{_parse(e){let{ctx:t}=this._processInputParams(e),a={...t,common:{...t.common,issues:[]}},s=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return y(s)?s.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new u.G(a.common.issues)},input:a.data})})):{status:"valid",value:"valid"===s.status?s.value:this._def.catchValue({get error(){return new u.G(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}eg.create=(e,t)=>new eg({innerType:e,typeName:d.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...k(t)});class ev extends x{_parse(e){if(this._getType(e)!==o.Zp.nan){let t=this._getOrReturnCtx(e);return p(t,{code:u.eq.invalid_type,expected:o.Zp.nan,received:t.parsedType}),m}return{status:"valid",value:e.data}}}ev.create=e=>new ev({typeName:d.ZodNaN,...k(e)}),Symbol("zod_brand");class ek extends x{_parse(e){let{ctx:t}=this._processInputParams(e),a=t.data;return this._def.type._parse({data:a,path:t.path,parent:t})}unwrap(){return this._def.type}}class ex extends x{_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return"aborted"===e.status?m:"dirty"===e.status?(t.dirty(),f(e.value)):this._def.out._parseAsync({data:e.value,path:a.path,parent:a})})();{let e=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return"aborted"===e.status?m:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:a.path,parent:a})}}static create(e,t){return new ex({in:e,out:t,typeName:d.ZodPipeline})}}class eb extends x{_parse(e){let t=this._def.innerType._parse(e),a=e=>("valid"===e.status&&(e.value=Object.freeze(e.value)),e);return y(t)?t.then(e=>a(e)):a(t)}unwrap(){return this._def.innerType}}eb.create=(e,t)=>new eb({innerType:e,typeName:d.ZodReadonly,...k(t)}),X.lazycreate,(i=d||(d={})).ZodString="ZodString",i.ZodNumber="ZodNumber",i.ZodNaN="ZodNaN",i.ZodBigInt="ZodBigInt",i.ZodBoolean="ZodBoolean",i.ZodDate="ZodDate",i.ZodSymbol="ZodSymbol",i.ZodUndefined="ZodUndefined",i.ZodNull="ZodNull",i.ZodAny="ZodAny",i.ZodUnknown="ZodUnknown",i.ZodNever="ZodNever",i.ZodVoid="ZodVoid",i.ZodArray="ZodArray",i.ZodObject="ZodObject",i.ZodUnion="ZodUnion",i.ZodDiscriminatedUnion="ZodDiscriminatedUnion",i.ZodIntersection="ZodIntersection",i.ZodTuple="ZodTuple",i.ZodRecord="ZodRecord",i.ZodMap="ZodMap",i.ZodSet="ZodSet",i.ZodFunction="ZodFunction",i.ZodLazy="ZodLazy",i.ZodLiteral="ZodLiteral",i.ZodEnum="ZodEnum",i.ZodEffects="ZodEffects",i.ZodNativeEnum="ZodNativeEnum",i.ZodOptional="ZodOptional",i.ZodNullable="ZodNullable",i.ZodDefault="ZodDefault",i.ZodCatch="ZodCatch",i.ZodPromise="ZodPromise",i.ZodBranded="ZodBranded",i.ZodPipeline="ZodPipeline",i.ZodReadonly="ZodReadonly";let eZ=z.create,ew=F.create;ev.create,L.create;let eS=V.create;Y.create,D.create,U.create,K.create;let eT=B.create;W.create,G.create,J.create;let eO=H.create,ej=X.create;X.strictCreate;let eM=Q.create,eC=et.create;ea.create,es.create;let eI=er.create;ei.create,en.create,ed.create,eu.create;let eA=eo.create,eq=ec.create;ep.create,eh.create,em.create,ef.create,e_.create,em.createWithPreprocess,ex.create}}]);
|