@frontlinesystems/rason-mcp-server 2026.5.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.
- package/LICENSE +35 -0
- package/README.md +282 -0
- package/examples/EXAMPLES_REFERENCE.md +128 -0
- package/examples/Optimization/Conic/AirlineHubConic.json +112 -0
- package/examples/Optimization/Conic/AirlineHubConic2.json +109 -0
- package/examples/Optimization/Conic/AirlineHubConic3.json +112 -0
- package/examples/Optimization/Conic/AirlineHubConic4.json +100 -0
- package/examples/Optimization/Conic/AirlineHubConic5.json +102 -0
- package/examples/Optimization/DataBinding/ProductMixCsv.json +82 -0
- package/examples/Optimization/DataBinding/ProductMixCsv4.json +96 -0
- package/examples/Optimization/DataBinding/ProductMixExcel.json +74 -0
- package/examples/Optimization/DataBinding/ProductMixExcel1.json +87 -0
- package/examples/Optimization/DataBinding/ProductMixExcel11.json +109 -0
- package/examples/Optimization/DataBinding/ProductMixExcel2.json +78 -0
- package/examples/Optimization/DataBinding/ProductMixTab.json +90 -0
- package/examples/Optimization/DataBinding/ProductMixTab1.json +74 -0
- package/examples/Optimization/DataBinding/ProductMixTab2.json +78 -0
- package/examples/Optimization/Linear/Inventory.json +200 -0
- package/examples/Optimization/Linear/Matop.json +120 -0
- package/examples/Optimization/Linear/ProductMix.json +98 -0
- package/examples/Optimization/Linear/ProductMix2.json +73 -0
- package/examples/Optimization/Linear/ProductMix3.json +50 -0
- package/examples/Optimization/Linear/ProductMix4.json +57 -0
- package/examples/Optimization/Linear/ProductMixCsv1.json +106 -0
- package/examples/Optimization/Linear/ProductMixCsv2.json +106 -0
- package/examples/Optimization/Linear/ProductMixSQL11.json +82 -0
- package/examples/Optimization/Linear/Rowop.json +127 -0
- package/examples/Optimization/NonLinear/AirlineHub.json +64 -0
- package/examples/Optimization/NonLinear/AirlineHub2.json +48 -0
- package/examples/Optimization/NonLinear/AirlineHub3.json +48 -0
- package/examples/Optimization/NonSmooth/Inventory2.json +160 -0
- package/examples/Optimization/Quadratic/PortfolioOpt.json +56 -0
- package/examples/Optimization/Quadratic/PortfolioOpt2.json +66 -0
- package/examples/Optimization/WithUncertainty/GasCompanyChance.json +79 -0
- package/examples/Optimization/WithUncertainty/GasCompanyRecourse.json +79 -0
- package/examples/Optimization/WithUncertainty/ProjectSelect.json +78 -0
- package/examples/Optimization/WithUncertainty/ProjectSelect2.json +82 -0
- package/examples/Optimization/WithUncertainty/ProjectSelect3.json +85 -0
- package/examples/Optimization/WithUncertainty/ProjectSelect4.json +75 -0
- package/examples/Simulation/CandyStoreSalesUsingSIP.json +148 -0
- package/examples/Simulation/CollegeFundGrowth1.json +424 -0
- package/examples/Simulation/CollegeFundGrowth1SIPModel.json +28 -0
- package/examples/Simulation/CollegeFundGrowth2.json +416 -0
- package/examples/Simulation/CollegeFundGrowthSIP.json +402 -0
- package/examples/Simulation/GBMSimulationModel.json +237 -0
- package/examples/Simulation/YieldManagement(Sim).json +70 -0
- package/examples/Simulation/YieldManagement2(Sim).json +73 -0
- package/examples/calculation/DMNExamples/DMN Box Fun with typeDef result.json +54 -0
- package/examples/calculation/DMNExamples/DMN Context example.json +69 -0
- package/examples/calculation/DMNExamples/DMN DT with typeDef result.json +43 -0
- package/examples/calculation/DMNExamples/FEEL Date Time example.json +28 -0
- package/examples/calculation/DMNExamples/FEEL For iteration example.json +66 -0
- package/examples/calculation/DMNExamples/FEEL For with two indices.json +16 -0
- package/examples/calculation/DMNExamples/FEEL For with typeDef result.json +88 -0
- package/examples/calculation/DMNExamples/FEEL If Then Else example.json +26 -0
- package/examples/calculation/DMNExamples/FEEL List example.json +38 -0
- package/examples/calculation/DMNExamples/FEEL List operator.json +17 -0
- package/examples/calculation/DMNExamples/FEEL List with typeDef collection.json +37 -0
- package/examples/calculation/DMNExamples/FEEL Some or Every example.json +66 -0
- package/examples/calculation/DecisionTables/DT Datasource example.json +53 -0
- package/examples/calculation/DecisionTables/DT Date and Time examples.json +92 -0
- package/examples/calculation/DecisionTables/DT Expression example.json +32 -0
- package/examples/calculation/DecisionTables/DT Hit Policy examples.json +137 -0
- package/examples/calculation/DecisionTables/DT Loan Recommend model.json +82 -0
- package/examples/calculation/DecisionTables/DT Loan Strategy Model and Predictive CSV-XML.json +219 -0
- package/examples/calculation/DecisionTables/DT Loan Strategy model and Datasource.json +286 -0
- package/examples/calculation/DecisionTables/DT Loan Strategy model and Predictive.json +204 -0
- package/examples/calculation/DecisionTables/DT Loan Strategy model by scratch.json +214 -0
- package/examples/calculation/DecisionTables/DT Output Order example.json +40 -0
- package/examples/calculation/DecisionTables/DT Unique example.json +39 -0
- package/examples/calculation/TypeDefinitions/TypeDefCF.json +65 -0
- package/examples/calculation/TypeDefinitions/TypeDefDT.json +58 -0
- package/examples/datamining/AffinityAnalysis/AssociationRules.json +52 -0
- package/examples/datamining/Classification/DecisionTree.json +91 -0
- package/examples/datamining/Classification/DiscriminantAnalysis.json +82 -0
- package/examples/datamining/Classification/Ensembles/Bagging.json +67 -0
- package/examples/datamining/Classification/Ensembles/Boosting.json +68 -0
- package/examples/datamining/Classification/Ensembles/RandomTrees.json +92 -0
- package/examples/datamining/Classification/FindBestModel.json +87 -0
- package/examples/datamining/Classification/LogisticRegression.json +83 -0
- package/examples/datamining/Classification/NaiveBayes.json +79 -0
- package/examples/datamining/Classification/NearestNeighbors.json +85 -0
- package/examples/datamining/Classification/NeuralNetwork.json +93 -0
- package/examples/datamining/Clustering/Hierarchical.json +55 -0
- package/examples/datamining/Clustering/KMeans.json +72 -0
- package/examples/datamining/DataSources/DelimitedFile.json +50 -0
- package/examples/datamining/DataSources/JSONFile.json +50 -0
- package/examples/datamining/DataSources/MSAccessDatabase.json +50 -0
- package/examples/datamining/DataSources/MSExcelTable.json +51 -0
- package/examples/datamining/DataSources/MSSQLDatabase.json +50 -0
- package/examples/datamining/DataSources/ODATATable.json +50 -0
- package/examples/datamining/DataSources/ODBCDatabase.json +50 -0
- package/examples/datamining/FeatureSelection/LinearWrapping.json +54 -0
- package/examples/datamining/FeatureSelection/LogisticWrapping.json +57 -0
- package/examples/datamining/FeatureSelection/Univariate.json +79 -0
- package/examples/datamining/Regression/DecisionTree.json +82 -0
- package/examples/datamining/Regression/Ensembles/Bagging.json +63 -0
- package/examples/datamining/Regression/Ensembles/Boosting.json +63 -0
- package/examples/datamining/Regression/Ensembles/RandomTrees.json +79 -0
- package/examples/datamining/Regression/FindBestModel.json +87 -0
- package/examples/datamining/Regression/LinearRegression.json +125 -0
- package/examples/datamining/Regression/NearestNeighbors.json +78 -0
- package/examples/datamining/Regression/NeuralNetwork.json +83 -0
- package/examples/datamining/Scoring/JSONClassifier.json +63 -0
- package/examples/datamining/Scoring/JSONClassifierNN.json +63 -0
- package/examples/datamining/Scoring/JSONClusterizer.json +38 -0
- package/examples/datamining/Scoring/JSONForecaster.json +50 -0
- package/examples/datamining/Scoring/JSONLinearRegression.json +57 -0
- package/examples/datamining/Scoring/JSONPCA.json +42 -0
- package/examples/datamining/Scoring/JSONRegressor.json +57 -0
- package/examples/datamining/Scoring/JSONTransformer.json +39 -0
- package/examples/datamining/Scoring/PMMLClassifier.json +43 -0
- package/examples/datamining/Scoring/PMMLForecaster.json +44 -0
- package/examples/datamining/Scoring/PMMLRegressor.json +39 -0
- package/examples/datamining/Scoring/PMMLTransformer.json +39 -0
- package/examples/datamining/Simulation/LinearRegressionSimulation.json +118 -0
- package/examples/datamining/Simulation/SyntheticDataGeneration.json +109 -0
- package/examples/datamining/Simulation/pmml-risk-scoring.json +63 -0
- package/examples/datamining/Summarizer/Summarization.json +55 -0
- package/examples/datamining/TextMining/LatentSemanticAnalysis.json +52 -0
- package/examples/datamining/TextMining/TfIdf-FileData.json +66 -0
- package/examples/datamining/TextMining/TfIdf-InlineData.json +56 -0
- package/examples/datamining/TimeSeries/AddHoltWinters.json +80 -0
- package/examples/datamining/TimeSeries/Arima.json +75 -0
- package/examples/datamining/TimeSeries/DoubleExponential.json +66 -0
- package/examples/datamining/TimeSeries/Exponential.json +65 -0
- package/examples/datamining/TimeSeries/LagAnalysis.json +49 -0
- package/examples/datamining/TimeSeries/MovingAverage.json +66 -0
- package/examples/datamining/TimeSeries/MulHoltWinters.json +66 -0
- package/examples/datamining/TimeSeries/NoTrendHoltWinters.json +66 -0
- package/examples/datamining/Transformation/Binning.json +70 -0
- package/examples/datamining/Transformation/CanonicalVariateAnalysis.json +48 -0
- package/examples/datamining/Transformation/CategoryReduction.json +52 -0
- package/examples/datamining/Transformation/Factorization.json +51 -0
- package/examples/datamining/Transformation/MissingDataHandling.json +84 -0
- package/examples/datamining/Transformation/OneHotEncoding-DataInline.json +55 -0
- package/examples/datamining/Transformation/OneHotEncoding-DatainFile.json +49 -0
- package/examples/datamining/Transformation/PartitionTimeSeries.json +49 -0
- package/examples/datamining/Transformation/Partitioning-DF.json +73 -0
- package/examples/datamining/Transformation/Partitioning.json +47 -0
- package/examples/datamining/Transformation/PartitioningWithOversampling-DF.json +66 -0
- package/examples/datamining/Transformation/PartitioningWithOversampling.json +45 -0
- package/examples/datamining/Transformation/PrincipalComponentsAnalysis.json +53 -0
- package/examples/datamining/Transformation/Rescaling.json +68 -0
- package/examples/datamining/Transformation/Sampling.json +44 -0
- package/examples/datamining/Transformation/StratifiedSampling.json +47 -0
- package/examples/flow/SQLServerTransform.json +261 -0
- package/examples/flow/dm-calc-pipeline.json +278 -0
- package/examples/flow/dm-pipeline-simulation.json +114 -0
- package/examples/flow/opt-sim-pipeline.json +160 -0
- package/examples/flow/sim-dm-pipeline.json +107 -0
- package/examples/flow/sim-sim-pipeline.json +137 -0
- package/examples/index.json +4679 -0
- package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/DataFiltering/ListwithFilter.json +53 -0
- package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/Loops/ProductMix5.json +58 -0
- package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/Loops/compoundWhileStatement.json +36 -0
- package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/Loops/ifThenElseStatement.json +34 -0
- package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/Loops/nestedLoop.json +26 -0
- package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/ParallelArray.json +48 -0
- package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/indexedArray.json +70 -0
- package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/nonParallelArray.json +50 -0
- package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/sumAggregateExample.json +338 -0
- package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/tsp.json +62 -0
- package/examples/rason-features/BoxIterators/Box_Fun_Loop_Iter_Sim_RASON.json +191 -0
- package/examples/rason-features/BoxIterators/Box_Fun_Loop_Sim_RASON.json +76 -0
- package/examples/rason-features/BoxIterators/Box_Fun_Sim_RASON.json +109 -0
- package/examples/rason-features/BoxIterators/Box_Iter_SIM_RASON.json +69 -0
- package/examples/rason-features/BoxIterators/Box_Iterator_Calc_Loop.json +183 -0
- package/examples/rason-features/BoxIterators/Box_Iterator_with_typeDef_partial.json +79 -0
- package/examples/rason-features/BoxLambdaExamples/BoxFunOptimize.json +155 -0
- package/examples/rason-features/BoxLambdaExamples/BoxFunSimulate.json +119 -0
- package/examples/rason-features/BoxLambdaExamples/LambdaFunOptimize.json +143 -0
- package/examples/rason-features/BoxLambdaExamples/LambdaFunSimulate.json +82 -0
- package/examples/rason-features/ReferenceGuide/RGFirehouseLocation.json +69 -0
- package/examples/rason-features/ReferenceGuide/RGFirehouseLocationConic.json +114 -0
- package/examples/rason-features/ReferenceGuide/RGProductMixCsv1.json +108 -0
- package/examples/rason-features/ReferenceGuide/RGProductMixExcel11.json +117 -0
- package/examples/rason-features/ReferenceGuide/RGProductMixSQL11.json +108 -0
- package/examples/rason-features/UserGuide/UGAirlineHubCSV.json +67 -0
- package/examples/rason-features/UserGuide/UGForecast.json +51 -0
- package/examples/rason-features/UserGuide/UGProductMix1.json +49 -0
- package/examples/rason-features/UserGuide/UGProductMix2.json +49 -0
- package/examples/rason-features/UserGuide/UGProductMixTab1.json +68 -0
- package/examples/rason-features/UserGuide/UGProductMixTab2.json +77 -0
- package/examples/rason-features/UserGuide/UGProductMixTab3.json +67 -0
- package/examples/rason-features/UserGuide/UGProductMixTab4.json +71 -0
- package/examples/rason-features/UserGuide/UGProductMixTab5.json +68 -0
- package/examples/rason-features/UserGuide/UGProjectSelect0.json +92 -0
- package/examples/rason-features/UserGuide/UGProjectSelect1.json +75 -0
- package/examples/rason-features/UserGuide/UGProjectSelect2.json +75 -0
- package/examples/rason-features/UserGuide/UGYieldManagement1.json +62 -0
- package/examples/rason-features/UserGuide/UGYieldManagement2.json +62 -0
- package/examples/rason-features/UserGuide/UGYieldManagement3.json +64 -0
- package/out/index.cjs +361 -0
- package/package.json +76 -0
package/out/index.cjs
ADDED
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";var _O=Object.create;var nh=Object.defineProperty;var $O=Object.getOwnPropertyDescriptor;var wO=Object.getOwnPropertyNames;var SO=Object.getPrototypeOf,kO=Object.prototype.hasOwnProperty;var Ca=(e,t)=>()=>(e&&(t=e(e=0)),t);var z=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Tr=(e,t)=>{for(var r in t)nh(e,r,{get:t[r],enumerable:!0})},zO=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of wO(t))!kO.call(e,n)&&n!==r&&nh(e,n,{get:()=>t[n],enumerable:!(i=$O(t,n))||i.enumerable});return e};var Ve=(e,t,r)=>(r=e!=null?_O(SO(e)):{},zO(t||!e||!e.__esModule?nh(r,"default",{value:e,enumerable:!0}):r,e));var cc=z(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.regexpCode=Se.getEsmExportName=Se.getProperty=Se.safeStringify=Se.stringify=Se.strConcat=Se.addCodeArg=Se.str=Se._=Se.nil=Se._Code=Se.Name=Se.IDENTIFIER=Se._CodeOrName=void 0;var ac=class{};Se._CodeOrName=ac;Se.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Ei=class extends ac{constructor(t){if(super(),!Se.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Se.Name=Ei;var tr=class extends ac{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,i)=>`${r}${i}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,i)=>(i instanceof Ei&&(r[i.str]=(r[i.str]||0)+1),r),{})}};Se._Code=tr;Se.nil=new tr("");function O0(e,...t){let r=[e[0]],i=0;for(;i<t.length;)Oy(r,t[i]),r.push(e[++i]);return new tr(r)}Se._=O0;var jy=new tr("+");function A0(e,...t){let r=[sc(e[0])],i=0;for(;i<t.length;)r.push(jy),Oy(r,t[i]),r.push(jy,sc(e[++i]));return f1(r),new tr(r)}Se.str=A0;function Oy(e,t){t instanceof tr?e.push(...t._items):t instanceof Ei?e.push(t):e.push(v1(t))}Se.addCodeArg=Oy;function f1(e){let t=1;for(;t<e.length-1;){if(e[t]===jy){let r=h1(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function h1(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Ei||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof Ei))return`"${e}${t.slice(1)}`}function g1(e,t){return t.emptyStr()?e:e.emptyStr()?t:A0`${e}${t}`}Se.strConcat=g1;function v1(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:sc(Array.isArray(e)?e.join(","):e)}function y1(e){return new tr(sc(e))}Se.stringify=y1;function sc(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Se.safeStringify=sc;function b1(e){return typeof e=="string"&&Se.IDENTIFIER.test(e)?new tr(`.${e}`):O0`[${e}]`}Se.getProperty=b1;function x1(e){if(typeof e=="string"&&Se.IDENTIFIER.test(e))return new tr(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}Se.getEsmExportName=x1;function _1(e){return new tr(e.toString())}Se.regexpCode=_1});var Cy=z(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.ValueScope=Et.ValueScopeName=Et.Scope=Et.varKinds=Et.UsedValueState=void 0;var It=cc(),Ay=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},nm;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(nm||(Et.UsedValueState=nm={}));Et.varKinds={const:new It.Name("const"),let:new It.Name("let"),var:new It.Name("var")};var im=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof It.Name?t:this.name(t)}name(t){return new It.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,i;if(!((i=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||i===void 0)&&i.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};Et.Scope=im;var om=class extends It.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:i}){this.value=t,this.scopePath=(0,It._)`.${new It.Name(r)}[${i}]`}};Et.ValueScopeName=om;var $1=(0,It._)`\n`,Ny=class extends im{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?$1:It.nil}}get(){return this._scope}name(t){return new om(t,this._newName(t))}value(t,r){var i;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let n=this.toName(t),{prefix:o}=n,a=(i=r.key)!==null&&i!==void 0?i:r.ref,s=this._values[o];if(s){let p=s.get(a);if(p)return p}else s=this._values[o]=new Map;s.set(a,n);let l=this._scope[o]||(this._scope[o]=[]),d=l.length;return l[d]=r.ref,n.setValue(r,{property:o,itemIndex:d}),n}getValue(t,r){let i=this._values[t];if(i)return i.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,i=>{if(i.scopePath===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return(0,It._)`${t}${i.scopePath}`})}scopeCode(t=this._values,r,i){return this._reduceValues(t,n=>{if(n.value===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return n.value.code},r,i)}_reduceValues(t,r,i={},n){let o=It.nil;for(let a in t){let s=t[a];if(!s)continue;let l=i[a]=i[a]||new Map;s.forEach(d=>{if(l.has(d))return;l.set(d,nm.Started);let p=r(d);if(p){let f=this.opts.es5?Et.varKinds.var:Et.varKinds.const;o=(0,It._)`${o}${f} ${d} = ${p};${this.opts._n}`}else if(p=n?.(d))o=(0,It._)`${o}${p}${this.opts._n}`;else throw new Ay(d);l.set(d,nm.Completed)})}return o}};Et.ValueScope=Ny});var ce=z(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.or=me.and=me.not=me.CodeGen=me.operators=me.varKinds=me.ValueScopeName=me.ValueScope=me.Scope=me.Name=me.regexpCode=me.stringify=me.getProperty=me.nil=me.strConcat=me.str=me._=void 0;var xe=cc(),yr=Cy(),Ln=cc();Object.defineProperty(me,"_",{enumerable:!0,get:function(){return Ln._}});Object.defineProperty(me,"str",{enumerable:!0,get:function(){return Ln.str}});Object.defineProperty(me,"strConcat",{enumerable:!0,get:function(){return Ln.strConcat}});Object.defineProperty(me,"nil",{enumerable:!0,get:function(){return Ln.nil}});Object.defineProperty(me,"getProperty",{enumerable:!0,get:function(){return Ln.getProperty}});Object.defineProperty(me,"stringify",{enumerable:!0,get:function(){return Ln.stringify}});Object.defineProperty(me,"regexpCode",{enumerable:!0,get:function(){return Ln.regexpCode}});Object.defineProperty(me,"Name",{enumerable:!0,get:function(){return Ln.Name}});var lm=Cy();Object.defineProperty(me,"Scope",{enumerable:!0,get:function(){return lm.Scope}});Object.defineProperty(me,"ValueScope",{enumerable:!0,get:function(){return lm.ValueScope}});Object.defineProperty(me,"ValueScopeName",{enumerable:!0,get:function(){return lm.ValueScopeName}});Object.defineProperty(me,"varKinds",{enumerable:!0,get:function(){return lm.varKinds}});me.operators={GT:new xe._Code(">"),GTE:new xe._Code(">="),LT:new xe._Code("<"),LTE:new xe._Code("<="),EQ:new xe._Code("==="),NEQ:new xe._Code("!=="),NOT:new xe._Code("!"),OR:new xe._Code("||"),AND:new xe._Code("&&"),ADD:new xe._Code("+")};var en=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},Dy=class extends en{constructor(t,r,i){super(),this.varKind=t,this.name=r,this.rhs=i}render({es5:t,_n:r}){let i=t?yr.varKinds.var:this.varKind,n=this.rhs===void 0?"":` = ${this.rhs}`;return`${i} ${this.name}${n};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=na(this.rhs,t,r)),this}get names(){return this.rhs instanceof xe._CodeOrName?this.rhs.names:{}}},am=class extends en{constructor(t,r,i){super(),this.lhs=t,this.rhs=r,this.sideEffects=i}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof xe.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=na(this.rhs,t,r),this}get names(){let t=this.lhs instanceof xe.Name?{}:{...this.lhs.names};return cm(t,this.rhs)}},Uy=class extends am{constructor(t,r,i,n){super(t,i,n),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},My=class extends en{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},Zy=class extends en{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},qy=class extends en{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},Ly=class extends en{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=na(this.code,t,r),this}get names(){return this.code instanceof xe._CodeOrName?this.code.names:{}}},lc=class extends en{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,i)=>r+i.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let i=t[r].optimizeNodes();Array.isArray(i)?t.splice(r,1,...i):i?t[r]=i:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:i}=this,n=i.length;for(;n--;){let o=i[n];o.optimizeNames(t,r)||(w1(t,o.names),i.splice(n,1))}return i.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Oi(t,r.names),{})}},tn=class extends lc{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},Fy=class extends lc{},ra=class extends tn{};ra.kind="else";var Ri=class e extends tn{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let i=r.optimizeNodes();r=this.else=Array.isArray(i)?new ra(i):i}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(N0(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var i;if(this.else=(i=this.else)===null||i===void 0?void 0:i.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=na(this.condition,t,r),this}get names(){let t=super.names;return cm(t,this.condition),this.else&&Oi(t,this.else.names),t}};Ri.kind="if";var ji=class extends tn{};ji.kind="for";var Vy=class extends ji{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=na(this.iteration,t,r),this}get names(){return Oi(super.names,this.iteration.names)}},By=class extends ji{constructor(t,r,i,n){super(),this.varKind=t,this.name=r,this.from=i,this.to=n}render(t){let r=t.es5?yr.varKinds.var:this.varKind,{name:i,from:n,to:o}=this;return`for(${r} ${i}=${n}; ${i}<${o}; ${i}++)`+super.render(t)}get names(){let t=cm(super.names,this.from);return cm(t,this.to)}},sm=class extends ji{constructor(t,r,i,n){super(),this.loop=t,this.varKind=r,this.name=i,this.iterable=n}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=na(this.iterable,t,r),this}get names(){return Oi(super.names,this.iterable.names)}},uc=class extends tn{constructor(t,r,i){super(),this.name=t,this.args=r,this.async=i}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};uc.kind="func";var dc=class extends lc{render(t){return"return "+super.render(t)}};dc.kind="return";var Wy=class extends tn{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var i,n;return super.optimizeNames(t,r),(i=this.catch)===null||i===void 0||i.optimizeNames(t,r),(n=this.finally)===null||n===void 0||n.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&Oi(t,this.catch.names),this.finally&&Oi(t,this.finally.names),t}},pc=class extends tn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};pc.kind="catch";var mc=class extends tn{render(t){return"finally"+super.render(t)}};mc.kind="finally";var Hy=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
3
|
+
`:""},this._extScope=t,this._scope=new yr.Scope({parent:t}),this._nodes=[new Fy]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let i=this._extScope.value(t,r);return(this._values[i.prefix]||(this._values[i.prefix]=new Set)).add(i),i}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,i,n){let o=this._scope.toName(r);return i!==void 0&&n&&(this._constants[o.str]=i),this._leafNode(new Dy(t,o,i)),o}const(t,r,i){return this._def(yr.varKinds.const,t,r,i)}let(t,r,i){return this._def(yr.varKinds.let,t,r,i)}var(t,r,i){return this._def(yr.varKinds.var,t,r,i)}assign(t,r,i){return this._leafNode(new am(t,r,i))}add(t,r){return this._leafNode(new Uy(t,me.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==xe.nil&&this._leafNode(new Ly(t)),this}object(...t){let r=["{"];for(let[i,n]of t)r.length>1&&r.push(","),r.push(i),(i!==n||this.opts.es5)&&(r.push(":"),(0,xe.addCodeArg)(r,n));return r.push("}"),new xe._Code(r)}if(t,r,i){if(this._blockNode(new Ri(t)),r&&i)this.code(r).else().code(i).endIf();else if(r)this.code(r).endIf();else if(i)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new Ri(t))}else(){return this._elseNode(new ra)}endIf(){return this._endBlockNode(Ri,ra)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Vy(t),r)}forRange(t,r,i,n,o=this.opts.es5?yr.varKinds.var:yr.varKinds.let){let a=this._scope.toName(t);return this._for(new By(o,a,r,i),()=>n(a))}forOf(t,r,i,n=yr.varKinds.const){let o=this._scope.toName(t);if(this.opts.es5){let a=r instanceof xe.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,xe._)`${a}.length`,s=>{this.var(o,(0,xe._)`${a}[${s}]`),i(o)})}return this._for(new sm("of",n,o,r),()=>i(o))}forIn(t,r,i,n=this.opts.es5?yr.varKinds.var:yr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,xe._)`Object.keys(${r})`,i);let o=this._scope.toName(t);return this._for(new sm("in",n,o,r),()=>i(o))}endFor(){return this._endBlockNode(ji)}label(t){return this._leafNode(new My(t))}break(t){return this._leafNode(new Zy(t))}return(t){let r=new dc;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(dc)}try(t,r,i){if(!r&&!i)throw new Error('CodeGen: "try" without "catch" and "finally"');let n=new Wy;if(this._blockNode(n),this.code(t),r){let o=this.name("e");this._currNode=n.catch=new pc(o),r(o)}return i&&(this._currNode=n.finally=new mc,this.code(i)),this._endBlockNode(pc,mc)}throw(t){return this._leafNode(new qy(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let i=this._nodes.length-r;if(i<0||t!==void 0&&i!==t)throw new Error(`CodeGen: wrong number of nodes: ${i} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=xe.nil,i,n){return this._blockNode(new uc(t,r,i)),n&&this.code(n).endFunc(),this}endFunc(){return this._endBlockNode(uc)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let i=this._currNode;if(i instanceof t||r&&i instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof Ri))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};me.CodeGen=Hy;function Oi(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function cm(e,t){return t instanceof xe._CodeOrName?Oi(e,t.names):e}function na(e,t,r){if(e instanceof xe.Name)return i(e);if(!n(e))return e;return new xe._Code(e._items.reduce((o,a)=>(a instanceof xe.Name&&(a=i(a)),a instanceof xe._Code?o.push(...a._items):o.push(a),o),[]));function i(o){let a=r[o.str];return a===void 0||t[o.str]!==1?o:(delete t[o.str],a)}function n(o){return o instanceof xe._Code&&o._items.some(a=>a instanceof xe.Name&&t[a.str]===1&&r[a.str]!==void 0)}}function w1(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function N0(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,xe._)`!${Jy(e)}`}me.not=N0;var S1=C0(me.operators.AND);function k1(...e){return e.reduce(S1)}me.and=k1;var z1=C0(me.operators.OR);function T1(...e){return e.reduce(z1)}me.or=T1;function C0(e){return(t,r)=>t===xe.nil?r:r===xe.nil?t:(0,xe._)`${Jy(t)} ${e} ${Jy(r)}`}function Jy(e){return e instanceof xe.Name?e:(0,xe._)`(${e})`}});var _e=z(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.checkStrictMode=fe.getErrorPath=fe.Type=fe.useFunc=fe.setEvaluated=fe.evaluatedPropsToName=fe.mergeEvaluated=fe.eachItem=fe.unescapeJsonPointer=fe.escapeJsonPointer=fe.escapeFragment=fe.unescapeFragment=fe.schemaRefOrVal=fe.schemaHasRulesButRef=fe.schemaHasRules=fe.checkUnknownRules=fe.alwaysValidSchema=fe.toHash=void 0;var Ne=ce(),P1=cc();function I1(e){let t={};for(let r of e)t[r]=!0;return t}fe.toHash=I1;function E1(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(M0(e,t),!Z0(t,e.self.RULES.all))}fe.alwaysValidSchema=E1;function M0(e,t=e.schema){let{opts:r,self:i}=e;if(!r.strictSchema||typeof t=="boolean")return;let n=i.RULES.keywords;for(let o in t)n[o]||F0(e,`unknown keyword: "${o}"`)}fe.checkUnknownRules=M0;function Z0(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}fe.schemaHasRules=Z0;function R1(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}fe.schemaHasRulesButRef=R1;function j1({topSchemaRef:e,schemaPath:t},r,i,n){if(!n){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Ne._)`${r}`}return(0,Ne._)`${e}${t}${(0,Ne.getProperty)(i)}`}fe.schemaRefOrVal=j1;function O1(e){return q0(decodeURIComponent(e))}fe.unescapeFragment=O1;function A1(e){return encodeURIComponent(Ky(e))}fe.escapeFragment=A1;function Ky(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}fe.escapeJsonPointer=Ky;function q0(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}fe.unescapeJsonPointer=q0;function N1(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}fe.eachItem=N1;function D0({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:i}){return(n,o,a,s)=>{let l=a===void 0?o:a instanceof Ne.Name?(o instanceof Ne.Name?e(n,o,a):t(n,o,a),a):o instanceof Ne.Name?(t(n,a,o),o):r(o,a);return s===Ne.Name&&!(l instanceof Ne.Name)?i(n,l):l}}fe.mergeEvaluated={props:D0({mergeNames:(e,t,r)=>e.if((0,Ne._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Ne._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Ne._)`${r} || {}`).code((0,Ne._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,Ne._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Ne._)`${r} || {}`),Yy(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:L0}),items:D0({mergeNames:(e,t,r)=>e.if((0,Ne._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Ne._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,Ne._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Ne._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function L0(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Ne._)`{}`);return t!==void 0&&Yy(e,r,t),r}fe.evaluatedPropsToName=L0;function Yy(e,t,r){Object.keys(r).forEach(i=>e.assign((0,Ne._)`${t}${(0,Ne.getProperty)(i)}`,!0))}fe.setEvaluated=Yy;var U0={};function C1(e,t){return e.scopeValue("func",{ref:t,code:U0[t.code]||(U0[t.code]=new P1._Code(t.code))})}fe.useFunc=C1;var Gy;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Gy||(fe.Type=Gy={}));function D1(e,t,r){if(e instanceof Ne.Name){let i=t===Gy.Num;return r?i?(0,Ne._)`"[" + ${e} + "]"`:(0,Ne._)`"['" + ${e} + "']"`:i?(0,Ne._)`"/" + ${e}`:(0,Ne._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Ne.getProperty)(e).toString():"/"+Ky(e)}fe.getErrorPath=D1;function F0(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}fe.checkStrictMode=F0});var rn=z(Xy=>{"use strict";Object.defineProperty(Xy,"__esModule",{value:!0});var mt=ce(),U1={data:new mt.Name("data"),valCxt:new mt.Name("valCxt"),instancePath:new mt.Name("instancePath"),parentData:new mt.Name("parentData"),parentDataProperty:new mt.Name("parentDataProperty"),rootData:new mt.Name("rootData"),dynamicAnchors:new mt.Name("dynamicAnchors"),vErrors:new mt.Name("vErrors"),errors:new mt.Name("errors"),this:new mt.Name("this"),self:new mt.Name("self"),scope:new mt.Name("scope"),json:new mt.Name("json"),jsonPos:new mt.Name("jsonPos"),jsonLen:new mt.Name("jsonLen"),jsonPart:new mt.Name("jsonPart")};Xy.default=U1});var fc=z(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.extendErrors=ft.resetErrorsCount=ft.reportExtraError=ft.reportError=ft.keyword$DataError=ft.keywordError=void 0;var $e=ce(),um=_e(),_t=rn();ft.keywordError={message:({keyword:e})=>(0,$e.str)`must pass "${e}" keyword validation`};ft.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,$e.str)`"${e}" keyword must be ${t} ($data)`:(0,$e.str)`"${e}" keyword is invalid ($data)`};function M1(e,t=ft.keywordError,r,i){let{it:n}=e,{gen:o,compositeRule:a,allErrors:s}=n,l=W0(e,t,r);i??(a||s)?V0(o,l):B0(n,(0,$e._)`[${l}]`)}ft.reportError=M1;function Z1(e,t=ft.keywordError,r){let{it:i}=e,{gen:n,compositeRule:o,allErrors:a}=i,s=W0(e,t,r);V0(n,s),o||a||B0(i,_t.default.vErrors)}ft.reportExtraError=Z1;function q1(e,t){e.assign(_t.default.errors,t),e.if((0,$e._)`${_t.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,$e._)`${_t.default.vErrors}.length`,t),()=>e.assign(_t.default.vErrors,null)))}ft.resetErrorsCount=q1;function L1({gen:e,keyword:t,schemaValue:r,data:i,errsCount:n,it:o}){if(n===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",n,_t.default.errors,s=>{e.const(a,(0,$e._)`${_t.default.vErrors}[${s}]`),e.if((0,$e._)`${a}.instancePath === undefined`,()=>e.assign((0,$e._)`${a}.instancePath`,(0,$e.strConcat)(_t.default.instancePath,o.errorPath))),e.assign((0,$e._)`${a}.schemaPath`,(0,$e.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,$e._)`${a}.schema`,r),e.assign((0,$e._)`${a}.data`,i))})}ft.extendErrors=L1;function V0(e,t){let r=e.const("err",t);e.if((0,$e._)`${_t.default.vErrors} === null`,()=>e.assign(_t.default.vErrors,(0,$e._)`[${r}]`),(0,$e._)`${_t.default.vErrors}.push(${r})`),e.code((0,$e._)`${_t.default.errors}++`)}function B0(e,t){let{gen:r,validateName:i,schemaEnv:n}=e;n.$async?r.throw((0,$e._)`new ${e.ValidationError}(${t})`):(r.assign((0,$e._)`${i}.errors`,t),r.return(!1))}var Ai={keyword:new $e.Name("keyword"),schemaPath:new $e.Name("schemaPath"),params:new $e.Name("params"),propertyName:new $e.Name("propertyName"),message:new $e.Name("message"),schema:new $e.Name("schema"),parentSchema:new $e.Name("parentSchema")};function W0(e,t,r){let{createErrors:i}=e.it;return i===!1?(0,$e._)`{}`:F1(e,t,r)}function F1(e,t,r={}){let{gen:i,it:n}=e,o=[V1(n,r),B1(e,r)];return W1(e,t,o),i.object(...o)}function V1({errorPath:e},{instancePath:t}){let r=t?(0,$e.str)`${e}${(0,um.getErrorPath)(t,um.Type.Str)}`:e;return[_t.default.instancePath,(0,$e.strConcat)(_t.default.instancePath,r)]}function B1({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:i}){let n=i?t:(0,$e.str)`${t}/${e}`;return r&&(n=(0,$e.str)`${n}${(0,um.getErrorPath)(r,um.Type.Str)}`),[Ai.schemaPath,n]}function W1(e,{params:t,message:r},i){let{keyword:n,data:o,schemaValue:a,it:s}=e,{opts:l,propertyName:d,topSchemaRef:p,schemaPath:f}=s;i.push([Ai.keyword,n],[Ai.params,typeof t=="function"?t(e):t||(0,$e._)`{}`]),l.messages&&i.push([Ai.message,typeof r=="function"?r(e):r]),l.verbose&&i.push([Ai.schema,a],[Ai.parentSchema,(0,$e._)`${p}${f}`],[_t.default.data,o]),d&&i.push([Ai.propertyName,d])}});var J0=z(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});ia.boolOrEmptySchema=ia.topBoolOrEmptySchema=void 0;var H1=fc(),J1=ce(),G1=rn(),K1={message:"boolean schema is false"};function Y1(e){let{gen:t,schema:r,validateName:i}=e;r===!1?H0(e,!1):typeof r=="object"&&r.$async===!0?t.return(G1.default.data):(t.assign((0,J1._)`${i}.errors`,null),t.return(!0))}ia.topBoolOrEmptySchema=Y1;function X1(e,t){let{gen:r,schema:i}=e;i===!1?(r.var(t,!1),H0(e)):r.var(t,!0)}ia.boolOrEmptySchema=X1;function H0(e,t){let{gen:r,data:i}=e,n={gen:r,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,H1.reportError)(n,K1,void 0,t)}});var Qy=z(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.getRules=oa.isJSONType=void 0;var Q1=["string","number","integer","boolean","null","object","array"],e4=new Set(Q1);function t4(e){return typeof e=="string"&&e4.has(e)}oa.isJSONType=t4;function r4(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}oa.getRules=r4});var eb=z(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.shouldUseRule=Fn.shouldUseGroup=Fn.schemaHasRulesForType=void 0;function n4({schema:e,self:t},r){let i=t.RULES.types[r];return i&&i!==!0&&G0(e,i)}Fn.schemaHasRulesForType=n4;function G0(e,t){return t.rules.some(r=>K0(e,r))}Fn.shouldUseGroup=G0;function K0(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(i=>e[i]!==void 0))}Fn.shouldUseRule=K0});var hc=z(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.reportTypeError=ht.checkDataTypes=ht.checkDataType=ht.coerceAndCheckDataType=ht.getJSONTypes=ht.getSchemaTypes=ht.DataType=void 0;var i4=Qy(),o4=eb(),a4=fc(),se=ce(),Y0=_e(),aa;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(aa||(ht.DataType=aa={}));function s4(e){let t=X0(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}ht.getSchemaTypes=s4;function X0(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(i4.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}ht.getJSONTypes=X0;function c4(e,t){let{gen:r,data:i,opts:n}=e,o=l4(t,n.coerceTypes),a=t.length>0&&!(o.length===0&&t.length===1&&(0,o4.schemaHasRulesForType)(e,t[0]));if(a){let s=rb(t,i,n.strictNumbers,aa.Wrong);r.if(s,()=>{o.length?u4(e,t,o):nb(e)})}return a}ht.coerceAndCheckDataType=c4;var Q0=new Set(["string","number","integer","boolean","null"]);function l4(e,t){return t?e.filter(r=>Q0.has(r)||t==="array"&&r==="array"):[]}function u4(e,t,r){let{gen:i,data:n,opts:o}=e,a=i.let("dataType",(0,se._)`typeof ${n}`),s=i.let("coerced",(0,se._)`undefined`);o.coerceTypes==="array"&&i.if((0,se._)`${a} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,()=>i.assign(n,(0,se._)`${n}[0]`).assign(a,(0,se._)`typeof ${n}`).if(rb(t,n,o.strictNumbers),()=>i.assign(s,n))),i.if((0,se._)`${s} !== undefined`);for(let d of r)(Q0.has(d)||d==="array"&&o.coerceTypes==="array")&&l(d);i.else(),nb(e),i.endIf(),i.if((0,se._)`${s} !== undefined`,()=>{i.assign(n,s),d4(e,s)});function l(d){switch(d){case"string":i.elseIf((0,se._)`${a} == "number" || ${a} == "boolean"`).assign(s,(0,se._)`"" + ${n}`).elseIf((0,se._)`${n} === null`).assign(s,(0,se._)`""`);return;case"number":i.elseIf((0,se._)`${a} == "boolean" || ${n} === null
|
|
4
|
+
|| (${a} == "string" && ${n} && ${n} == +${n})`).assign(s,(0,se._)`+${n}`);return;case"integer":i.elseIf((0,se._)`${a} === "boolean" || ${n} === null
|
|
5
|
+
|| (${a} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(s,(0,se._)`+${n}`);return;case"boolean":i.elseIf((0,se._)`${n} === "false" || ${n} === 0 || ${n} === null`).assign(s,!1).elseIf((0,se._)`${n} === "true" || ${n} === 1`).assign(s,!0);return;case"null":i.elseIf((0,se._)`${n} === "" || ${n} === 0 || ${n} === false`),i.assign(s,null);return;case"array":i.elseIf((0,se._)`${a} === "string" || ${a} === "number"
|
|
6
|
+
|| ${a} === "boolean" || ${n} === null`).assign(s,(0,se._)`[${n}]`)}}}function d4({gen:e,parentData:t,parentDataProperty:r},i){e.if((0,se._)`${t} !== undefined`,()=>e.assign((0,se._)`${t}[${r}]`,i))}function tb(e,t,r,i=aa.Correct){let n=i===aa.Correct?se.operators.EQ:se.operators.NEQ,o;switch(e){case"null":return(0,se._)`${t} ${n} null`;case"array":o=(0,se._)`Array.isArray(${t})`;break;case"object":o=(0,se._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a((0,se._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return(0,se._)`typeof ${t} ${n} ${e}`}return i===aa.Correct?o:(0,se.not)(o);function a(s=se.nil){return(0,se.and)((0,se._)`typeof ${t} == "number"`,s,r?(0,se._)`isFinite(${t})`:se.nil)}}ht.checkDataType=tb;function rb(e,t,r,i){if(e.length===1)return tb(e[0],t,r,i);let n,o=(0,Y0.toHash)(e);if(o.array&&o.object){let a=(0,se._)`typeof ${t} != "object"`;n=o.null?a:(0,se._)`!${t} || ${a}`,delete o.null,delete o.array,delete o.object}else n=se.nil;o.number&&delete o.integer;for(let a in o)n=(0,se.and)(n,tb(a,t,r,i));return n}ht.checkDataTypes=rb;var p4={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,se._)`{type: ${e}}`:(0,se._)`{type: ${t}}`};function nb(e){let t=m4(e);(0,a4.reportError)(t,p4)}ht.reportTypeError=nb;function m4(e){let{gen:t,data:r,schema:i}=e,n=(0,Y0.schemaRefOrVal)(e,i,"type");return{gen:t,keyword:"type",data:r,schema:i.type,schemaCode:n,schemaValue:n,parentSchema:i,params:{},it:e}}});var tz=z(dm=>{"use strict";Object.defineProperty(dm,"__esModule",{value:!0});dm.assignDefaults=void 0;var sa=ce(),f4=_e();function h4(e,t){let{properties:r,items:i}=e.schema;if(t==="object"&&r)for(let n in r)ez(e,n,r[n].default);else t==="array"&&Array.isArray(i)&&i.forEach((n,o)=>ez(e,o,n.default))}dm.assignDefaults=h4;function ez(e,t,r){let{gen:i,compositeRule:n,data:o,opts:a}=e;if(r===void 0)return;let s=(0,sa._)`${o}${(0,sa.getProperty)(t)}`;if(n){(0,f4.checkStrictMode)(e,`default is ignored for: ${s}`);return}let l=(0,sa._)`${s} === undefined`;a.useDefaults==="empty"&&(l=(0,sa._)`${l} || ${s} === null || ${s} === ""`),i.if(l,(0,sa._)`${s} = ${(0,sa.stringify)(r)}`)}});var rr=z(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.validateUnion=je.validateArray=je.usePattern=je.callValidateCode=je.schemaProperties=je.allSchemaProperties=je.noPropertyInData=je.propertyInData=je.isOwnProperty=je.hasPropFunc=je.reportMissingProp=je.checkMissingProp=je.checkReportMissingProp=void 0;var Me=ce(),ib=_e(),Vn=rn(),g4=_e();function v4(e,t){let{gen:r,data:i,it:n}=e;r.if(ab(r,i,t,n.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Me._)`${t}`},!0),e.error()})}je.checkReportMissingProp=v4;function y4({gen:e,data:t,it:{opts:r}},i,n){return(0,Me.or)(...i.map(o=>(0,Me.and)(ab(e,t,o,r.ownProperties),(0,Me._)`${n} = ${o}`)))}je.checkMissingProp=y4;function b4(e,t){e.setParams({missingProperty:t},!0),e.error()}je.reportMissingProp=b4;function rz(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Me._)`Object.prototype.hasOwnProperty`})}je.hasPropFunc=rz;function ob(e,t,r){return(0,Me._)`${rz(e)}.call(${t}, ${r})`}je.isOwnProperty=ob;function x4(e,t,r,i){let n=(0,Me._)`${t}${(0,Me.getProperty)(r)} !== undefined`;return i?(0,Me._)`${n} && ${ob(e,t,r)}`:n}je.propertyInData=x4;function ab(e,t,r,i){let n=(0,Me._)`${t}${(0,Me.getProperty)(r)} === undefined`;return i?(0,Me.or)(n,(0,Me.not)(ob(e,t,r))):n}je.noPropertyInData=ab;function nz(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}je.allSchemaProperties=nz;function _4(e,t){return nz(t).filter(r=>!(0,ib.alwaysValidSchema)(e,t[r]))}je.schemaProperties=_4;function $4({schemaCode:e,data:t,it:{gen:r,topSchemaRef:i,schemaPath:n,errorPath:o},it:a},s,l,d){let p=d?(0,Me._)`${e}, ${t}, ${i}${n}`:t,f=[[Vn.default.instancePath,(0,Me.strConcat)(Vn.default.instancePath,o)],[Vn.default.parentData,a.parentData],[Vn.default.parentDataProperty,a.parentDataProperty],[Vn.default.rootData,Vn.default.rootData]];a.opts.dynamicRef&&f.push([Vn.default.dynamicAnchors,Vn.default.dynamicAnchors]);let g=(0,Me._)`${p}, ${r.object(...f)}`;return l!==Me.nil?(0,Me._)`${s}.call(${l}, ${g})`:(0,Me._)`${s}(${g})`}je.callValidateCode=$4;var w4=(0,Me._)`new RegExp`;function S4({gen:e,it:{opts:t}},r){let i=t.unicodeRegExp?"u":"",{regExp:n}=t.code,o=n(r,i);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,Me._)`${n.code==="new RegExp"?w4:(0,g4.useFunc)(e,n)}(${r}, ${i})`})}je.usePattern=S4;function k4(e){let{gen:t,data:r,keyword:i,it:n}=e,o=t.name("valid");if(n.allErrors){let s=t.let("valid",!0);return a(()=>t.assign(s,!1)),s}return t.var(o,!0),a(()=>t.break()),o;function a(s){let l=t.const("len",(0,Me._)`${r}.length`);t.forRange("i",0,l,d=>{e.subschema({keyword:i,dataProp:d,dataPropType:ib.Type.Num},o),t.if((0,Me.not)(o),s)})}}je.validateArray=k4;function z4(e){let{gen:t,schema:r,keyword:i,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(l=>(0,ib.alwaysValidSchema)(n,l))&&!n.opts.unevaluated)return;let a=t.let("valid",!1),s=t.name("_valid");t.block(()=>r.forEach((l,d)=>{let p=e.subschema({keyword:i,schemaProp:d,compositeRule:!0},s);t.assign(a,(0,Me._)`${a} || ${s}`),e.mergeValidEvaluated(p,s)||t.if((0,Me.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}je.validateUnion=z4});var az=z(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.validateKeywordUsage=Rr.validSchemaType=Rr.funcKeywordCode=Rr.macroKeywordCode=void 0;var $t=ce(),Ni=rn(),T4=rr(),P4=fc();function I4(e,t){let{gen:r,keyword:i,schema:n,parentSchema:o,it:a}=e,s=t.macro.call(a.self,n,o,a),l=oz(r,i,s);a.opts.validateSchema!==!1&&a.self.validateSchema(s,!0);let d=r.name("valid");e.subschema({schema:s,schemaPath:$t.nil,errSchemaPath:`${a.errSchemaPath}/${i}`,topSchemaRef:l,compositeRule:!0},d),e.pass(d,()=>e.error(!0))}Rr.macroKeywordCode=I4;function E4(e,t){var r;let{gen:i,keyword:n,schema:o,parentSchema:a,$data:s,it:l}=e;j4(l,t);let d=!s&&t.compile?t.compile.call(l.self,o,a,l):t.validate,p=oz(i,n,d),f=i.let("valid");e.block$data(f,g),e.ok((r=t.valid)!==null&&r!==void 0?r:f);function g(){if(t.errors===!1)x(),t.modifying&&iz(e),S(()=>e.error());else{let P=t.async?y():v();t.modifying&&iz(e),S(()=>R4(e,P))}}function y(){let P=i.let("ruleErrs",null);return i.try(()=>x((0,$t._)`await `),U=>i.assign(f,!1).if((0,$t._)`${U} instanceof ${l.ValidationError}`,()=>i.assign(P,(0,$t._)`${U}.errors`),()=>i.throw(U))),P}function v(){let P=(0,$t._)`${p}.errors`;return i.assign(P,null),x($t.nil),P}function x(P=t.async?(0,$t._)`await `:$t.nil){let U=l.opts.passContext?Ni.default.this:Ni.default.self,C=!("compile"in t&&!s||t.schema===!1);i.assign(f,(0,$t._)`${P}${(0,T4.callValidateCode)(e,p,U,C)}`,t.modifying)}function S(P){var U;i.if((0,$t.not)((U=t.valid)!==null&&U!==void 0?U:f),P)}}Rr.funcKeywordCode=E4;function iz(e){let{gen:t,data:r,it:i}=e;t.if(i.parentData,()=>t.assign(r,(0,$t._)`${i.parentData}[${i.parentDataProperty}]`))}function R4(e,t){let{gen:r}=e;r.if((0,$t._)`Array.isArray(${t})`,()=>{r.assign(Ni.default.vErrors,(0,$t._)`${Ni.default.vErrors} === null ? ${t} : ${Ni.default.vErrors}.concat(${t})`).assign(Ni.default.errors,(0,$t._)`${Ni.default.vErrors}.length`),(0,P4.extendErrors)(e)},()=>e.error())}function j4({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function oz(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,$t.stringify)(r)})}function O4(e,t,r=!1){return!t.length||t.some(i=>i==="array"?Array.isArray(e):i==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==i||r&&typeof e>"u")}Rr.validSchemaType=O4;function A4({schema:e,opts:t,self:r,errSchemaPath:i},n,o){if(Array.isArray(n.keyword)?!n.keyword.includes(o):n.keyword!==o)throw new Error("ajv implementation error");let a=n.dependencies;if(a?.some(s=>!Object.prototype.hasOwnProperty.call(e,s)))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(n.validateSchema&&!n.validateSchema(e[o])){let l=`keyword "${o}" value is invalid at path "${i}": `+r.errorsText(n.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(l);else throw new Error(l)}}Rr.validateKeywordUsage=A4});var cz=z(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.extendSubschemaMode=Bn.extendSubschemaData=Bn.getSubschema=void 0;var jr=ce(),sz=_e();function N4(e,{keyword:t,schemaProp:r,schema:i,schemaPath:n,errSchemaPath:o,topSchemaRef:a}){if(t!==void 0&&i!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let s=e.schema[t];return r===void 0?{schema:s,schemaPath:(0,jr._)`${e.schemaPath}${(0,jr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[r],schemaPath:(0,jr._)`${e.schemaPath}${(0,jr.getProperty)(t)}${(0,jr.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,sz.escapeFragment)(r)}`}}if(i!==void 0){if(n===void 0||o===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:i,schemaPath:n,topSchemaRef:a,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}Bn.getSubschema=N4;function C4(e,t,{dataProp:r,dataPropType:i,data:n,dataTypes:o,propertyName:a}){if(n!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:s}=t;if(r!==void 0){let{errorPath:d,dataPathArr:p,opts:f}=t,g=s.let("data",(0,jr._)`${t.data}${(0,jr.getProperty)(r)}`,!0);l(g),e.errorPath=(0,jr.str)`${d}${(0,sz.getErrorPath)(r,i,f.jsPropertySyntax)}`,e.parentDataProperty=(0,jr._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(n!==void 0){let d=n instanceof jr.Name?n:s.let("data",n,!0);l(d),a!==void 0&&(e.propertyName=a)}o&&(e.dataTypes=o);function l(d){e.data=d,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,d]}}Bn.extendSubschemaData=C4;function D4(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:i,createErrors:n,allErrors:o}){i!==void 0&&(e.compositeRule=i),n!==void 0&&(e.createErrors=n),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}Bn.extendSubschemaMode=D4});var sb=z((RJ,lz)=>{"use strict";lz.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var i,n,o;if(Array.isArray(t)){if(i=t.length,i!=r.length)return!1;for(n=i;n--!==0;)if(!e(t[n],r[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),i=o.length,i!==Object.keys(r).length)return!1;for(n=i;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[n]))return!1;for(n=i;n--!==0;){var a=o[n];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r}});var dz=z((jJ,uz)=>{"use strict";var Wn=uz.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var i=typeof r=="function"?r:r.pre||function(){},n=r.post||function(){};pm(t,i,n,e,"",e)};Wn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Wn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Wn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Wn.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function pm(e,t,r,i,n,o,a,s,l,d){if(i&&typeof i=="object"&&!Array.isArray(i)){t(i,n,o,a,s,l,d);for(var p in i){var f=i[p];if(Array.isArray(f)){if(p in Wn.arrayKeywords)for(var g=0;g<f.length;g++)pm(e,t,r,f[g],n+"/"+p+"/"+g,o,n,p,i,g)}else if(p in Wn.propsKeywords){if(f&&typeof f=="object")for(var y in f)pm(e,t,r,f[y],n+"/"+p+"/"+U4(y),o,n,p,i,y)}else(p in Wn.keywords||e.allKeys&&!(p in Wn.skipKeywords))&&pm(e,t,r,f,n+"/"+p,o,n,p,i)}r(i,n,o,a,s,l,d)}}function U4(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var gc=z(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.getSchemaRefs=Rt.resolveUrl=Rt.normalizeId=Rt._getFullPath=Rt.getFullPath=Rt.inlineRef=void 0;var M4=_e(),Z4=sb(),q4=dz(),L4=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function F4(e,t=!0){return typeof e=="boolean"?!0:t===!0?!cb(e):t?pz(e)<=t:!1}Rt.inlineRef=F4;var V4=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function cb(e){for(let t in e){if(V4.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(cb)||typeof r=="object"&&cb(r))return!0}return!1}function pz(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!L4.has(r)&&(typeof e[r]=="object"&&(0,M4.eachItem)(e[r],i=>t+=pz(i)),t===1/0))return 1/0}return t}function mz(e,t="",r){r!==!1&&(t=ca(t));let i=e.parse(t);return fz(e,i)}Rt.getFullPath=mz;function fz(e,t){return e.serialize(t).split("#")[0]+"#"}Rt._getFullPath=fz;var B4=/#\/?$/;function ca(e){return e?e.replace(B4,""):""}Rt.normalizeId=ca;function W4(e,t,r){return r=ca(r),e.resolve(t,r)}Rt.resolveUrl=W4;var H4=/^[a-z_][-a-z0-9._]*$/i;function J4(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:i}=this.opts,n=ca(e[r]||t),o={"":n},a=mz(i,n,!1),s={},l=new Set;return q4(e,{allKeys:!0},(f,g,y,v)=>{if(v===void 0)return;let x=a+g,S=o[v];typeof f[r]=="string"&&(S=P.call(this,f[r])),U.call(this,f.$anchor),U.call(this,f.$dynamicAnchor),o[g]=S;function P(C){let M=this.opts.uriResolver.resolve;if(C=ca(S?M(S,C):C),l.has(C))throw p(C);l.add(C);let D=this.refs[C];return typeof D=="string"&&(D=this.refs[D]),typeof D=="object"?d(f,D.schema,C):C!==ca(x)&&(C[0]==="#"?(d(f,s[C],C),s[C]=f):this.refs[C]=x),C}function U(C){if(typeof C=="string"){if(!H4.test(C))throw new Error(`invalid anchor "${C}"`);P.call(this,`#${C}`)}}}),s;function d(f,g,y){if(g!==void 0&&!Z4(f,g))throw p(y)}function p(f){return new Error(`reference "${f}" resolves to more than one schema`)}}Rt.getSchemaRefs=J4});var bc=z(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.getData=Hn.KeywordCxt=Hn.validateFunctionCode=void 0;var bz=J0(),hz=hc(),ub=eb(),mm=hc(),G4=tz(),yc=az(),lb=cz(),J=ce(),re=rn(),K4=gc(),nn=_e(),vc=fc();function Y4(e){if($z(e)&&(wz(e),_z(e))){eU(e);return}xz(e,()=>(0,bz.topBoolOrEmptySchema)(e))}Hn.validateFunctionCode=Y4;function xz({gen:e,validateName:t,schema:r,schemaEnv:i,opts:n},o){n.code.es5?e.func(t,(0,J._)`${re.default.data}, ${re.default.valCxt}`,i.$async,()=>{e.code((0,J._)`"use strict"; ${gz(r,n)}`),Q4(e,n),e.code(o)}):e.func(t,(0,J._)`${re.default.data}, ${X4(n)}`,i.$async,()=>e.code(gz(r,n)).code(o))}function X4(e){return(0,J._)`{${re.default.instancePath}="", ${re.default.parentData}, ${re.default.parentDataProperty}, ${re.default.rootData}=${re.default.data}${e.dynamicRef?(0,J._)`, ${re.default.dynamicAnchors}={}`:J.nil}}={}`}function Q4(e,t){e.if(re.default.valCxt,()=>{e.var(re.default.instancePath,(0,J._)`${re.default.valCxt}.${re.default.instancePath}`),e.var(re.default.parentData,(0,J._)`${re.default.valCxt}.${re.default.parentData}`),e.var(re.default.parentDataProperty,(0,J._)`${re.default.valCxt}.${re.default.parentDataProperty}`),e.var(re.default.rootData,(0,J._)`${re.default.valCxt}.${re.default.rootData}`),t.dynamicRef&&e.var(re.default.dynamicAnchors,(0,J._)`${re.default.valCxt}.${re.default.dynamicAnchors}`)},()=>{e.var(re.default.instancePath,(0,J._)`""`),e.var(re.default.parentData,(0,J._)`undefined`),e.var(re.default.parentDataProperty,(0,J._)`undefined`),e.var(re.default.rootData,re.default.data),t.dynamicRef&&e.var(re.default.dynamicAnchors,(0,J._)`{}`)})}function eU(e){let{schema:t,opts:r,gen:i}=e;xz(e,()=>{r.$comment&&t.$comment&&kz(e),oU(e),i.let(re.default.vErrors,null),i.let(re.default.errors,0),r.unevaluated&&tU(e),Sz(e),cU(e)})}function tU(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,J._)`${r}.evaluated`),t.if((0,J._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,J._)`${e.evaluated}.props`,(0,J._)`undefined`)),t.if((0,J._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,J._)`${e.evaluated}.items`,(0,J._)`undefined`))}function gz(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,J._)`/*# sourceURL=${r} */`:J.nil}function rU(e,t){if($z(e)&&(wz(e),_z(e))){nU(e,t);return}(0,bz.boolOrEmptySchema)(e,t)}function _z({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function $z(e){return typeof e.schema!="boolean"}function nU(e,t){let{schema:r,gen:i,opts:n}=e;n.$comment&&r.$comment&&kz(e),aU(e),sU(e);let o=i.const("_errs",re.default.errors);Sz(e,o),i.var(t,(0,J._)`${o} === ${re.default.errors}`)}function wz(e){(0,nn.checkUnknownRules)(e),iU(e)}function Sz(e,t){if(e.opts.jtd)return vz(e,[],!1,t);let r=(0,hz.getSchemaTypes)(e.schema),i=(0,hz.coerceAndCheckDataType)(e,r);vz(e,r,!i,t)}function iU(e){let{schema:t,errSchemaPath:r,opts:i,self:n}=e;t.$ref&&i.ignoreKeywordsWithRef&&(0,nn.schemaHasRulesButRef)(t,n.RULES)&&n.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function oU(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,nn.checkStrictMode)(e,"default is ignored in the schema root")}function aU(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,K4.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function sU(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function kz({gen:e,schemaEnv:t,schema:r,errSchemaPath:i,opts:n}){let o=r.$comment;if(n.$comment===!0)e.code((0,J._)`${re.default.self}.logger.log(${o})`);else if(typeof n.$comment=="function"){let a=(0,J.str)`${i}/$comment`,s=e.scopeValue("root",{ref:t.root});e.code((0,J._)`${re.default.self}.opts.$comment(${o}, ${a}, ${s}.schema)`)}}function cU(e){let{gen:t,schemaEnv:r,validateName:i,ValidationError:n,opts:o}=e;r.$async?t.if((0,J._)`${re.default.errors} === 0`,()=>t.return(re.default.data),()=>t.throw((0,J._)`new ${n}(${re.default.vErrors})`)):(t.assign((0,J._)`${i}.errors`,re.default.vErrors),o.unevaluated&&lU(e),t.return((0,J._)`${re.default.errors} === 0`))}function lU({gen:e,evaluated:t,props:r,items:i}){r instanceof J.Name&&e.assign((0,J._)`${t}.props`,r),i instanceof J.Name&&e.assign((0,J._)`${t}.items`,i)}function vz(e,t,r,i){let{gen:n,schema:o,data:a,allErrors:s,opts:l,self:d}=e,{RULES:p}=d;if(o.$ref&&(l.ignoreKeywordsWithRef||!(0,nn.schemaHasRulesButRef)(o,p))){n.block(()=>Tz(e,"$ref",p.all.$ref.definition));return}l.jtd||uU(e,t),n.block(()=>{for(let g of p.rules)f(g);f(p.post)});function f(g){(0,ub.shouldUseGroup)(o,g)&&(g.type?(n.if((0,mm.checkDataType)(g.type,a,l.strictNumbers)),yz(e,g),t.length===1&&t[0]===g.type&&r&&(n.else(),(0,mm.reportTypeError)(e)),n.endIf()):yz(e,g),s||n.if((0,J._)`${re.default.errors} === ${i||0}`))}}function yz(e,t){let{gen:r,schema:i,opts:{useDefaults:n}}=e;n&&(0,G4.assignDefaults)(e,t.type),r.block(()=>{for(let o of t.rules)(0,ub.shouldUseRule)(i,o)&&Tz(e,o.keyword,o.definition,t.type)})}function uU(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(dU(e,t),e.opts.allowUnionTypes||pU(e,t),mU(e,e.dataTypes))}function dU(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{zz(e.dataTypes,r)||db(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),hU(e,t)}}function pU(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&db(e,"use allowUnionTypes to allow union type keyword")}function mU(e,t){let r=e.self.RULES.all;for(let i in r){let n=r[i];if(typeof n=="object"&&(0,ub.shouldUseRule)(e.schema,n)){let{type:o}=n.definition;o.length&&!o.some(a=>fU(t,a))&&db(e,`missing type "${o.join(",")}" for keyword "${i}"`)}}}function fU(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function zz(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function hU(e,t){let r=[];for(let i of e.dataTypes)zz(t,i)?r.push(i):t.includes("integer")&&i==="number"&&r.push("integer");e.dataTypes=r}function db(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,nn.checkStrictMode)(e,t,e.opts.strictTypes)}var fm=class{constructor(t,r,i){if((0,yc.validateKeywordUsage)(t,r,i),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=i,this.data=t.data,this.schema=t.schema[i],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,nn.schemaRefOrVal)(t,this.schema,i,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",Pz(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,yc.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${i} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",re.default.errors))}result(t,r,i){this.failResult((0,J.not)(t),r,i)}failResult(t,r,i){this.gen.if(t),i?i():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,J.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,J._)`${r} !== undefined && (${(0,J.or)(this.invalid$data(),t)})`)}error(t,r,i){if(r){this.setParams(r),this._error(t,i),this.setParams({});return}this._error(t,i)}_error(t,r){(t?vc.reportExtraError:vc.reportError)(this,this.def.error,r)}$dataError(){(0,vc.reportError)(this,this.def.$dataError||vc.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,vc.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,i=J.nil){this.gen.block(()=>{this.check$data(t,i),r()})}check$data(t=J.nil,r=J.nil){if(!this.$data)return;let{gen:i,schemaCode:n,schemaType:o,def:a}=this;i.if((0,J.or)((0,J._)`${n} === undefined`,r)),t!==J.nil&&i.assign(t,!0),(o.length||a.validateSchema)&&(i.elseIf(this.invalid$data()),this.$dataError(),t!==J.nil&&i.assign(t,!1)),i.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:i,def:n,it:o}=this;return(0,J.or)(a(),s());function a(){if(i.length){if(!(r instanceof J.Name))throw new Error("ajv implementation error");let l=Array.isArray(i)?i:[i];return(0,J._)`${(0,mm.checkDataTypes)(l,r,o.opts.strictNumbers,mm.DataType.Wrong)}`}return J.nil}function s(){if(n.validateSchema){let l=t.scopeValue("validate$data",{ref:n.validateSchema});return(0,J._)`!${l}(${r})`}return J.nil}}subschema(t,r){let i=(0,lb.getSubschema)(this.it,t);(0,lb.extendSubschemaData)(i,this.it,t),(0,lb.extendSubschemaMode)(i,t);let n={...this.it,...i,items:void 0,props:void 0};return rU(n,r),n}mergeEvaluated(t,r){let{it:i,gen:n}=this;i.opts.unevaluated&&(i.props!==!0&&t.props!==void 0&&(i.props=nn.mergeEvaluated.props(n,t.props,i.props,r)),i.items!==!0&&t.items!==void 0&&(i.items=nn.mergeEvaluated.items(n,t.items,i.items,r)))}mergeValidEvaluated(t,r){let{it:i,gen:n}=this;if(i.opts.unevaluated&&(i.props!==!0||i.items!==!0))return n.if(r,()=>this.mergeEvaluated(t,J.Name)),!0}};Hn.KeywordCxt=fm;function Tz(e,t,r,i){let n=new fm(e,r,t);"code"in r?r.code(n,i):n.$data&&r.validate?(0,yc.funcKeywordCode)(n,r):"macro"in r?(0,yc.macroKeywordCode)(n,r):(r.compile||r.validate)&&(0,yc.funcKeywordCode)(n,r)}var gU=/^\/(?:[^~]|~0|~1)*$/,vU=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Pz(e,{dataLevel:t,dataNames:r,dataPathArr:i}){let n,o;if(e==="")return re.default.rootData;if(e[0]==="/"){if(!gU.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);n=e,o=re.default.rootData}else{let d=vU.exec(e);if(!d)throw new Error(`Invalid JSON-pointer: ${e}`);let p=+d[1];if(n=d[2],n==="#"){if(p>=t)throw new Error(l("property/index",p));return i[t-p]}if(p>t)throw new Error(l("data",p));if(o=r[t-p],!n)return o}let a=o,s=n.split("/");for(let d of s)d&&(o=(0,J._)`${o}${(0,J.getProperty)((0,nn.unescapeJsonPointer)(d))}`,a=(0,J._)`${a} && ${o}`);return a;function l(d,p){return`Cannot access ${d} ${p} levels up, current level is ${t}`}}Hn.getData=Pz});var hm=z(mb=>{"use strict";Object.defineProperty(mb,"__esModule",{value:!0});var pb=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};mb.default=pb});var xc=z(gb=>{"use strict";Object.defineProperty(gb,"__esModule",{value:!0});var fb=gc(),hb=class extends Error{constructor(t,r,i,n){super(n||`can't resolve reference ${i} from id ${r}`),this.missingRef=(0,fb.resolveUrl)(t,r,i),this.missingSchema=(0,fb.normalizeId)((0,fb.getFullPath)(t,this.missingRef))}};gb.default=hb});var vm=z(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.resolveSchema=nr.getCompilingSchema=nr.resolveRef=nr.compileSchema=nr.SchemaEnv=void 0;var br=ce(),yU=hm(),Ci=rn(),xr=gc(),Iz=_e(),bU=bc(),la=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let i;typeof t.schema=="object"&&(i=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,xr.normalizeId)(i?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=i?.$async,this.refs={}}};nr.SchemaEnv=la;function yb(e){let t=Ez.call(this,e);if(t)return t;let r=(0,xr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:i,lines:n}=this.opts.code,{ownProperties:o}=this.opts,a=new br.CodeGen(this.scope,{es5:i,lines:n,ownProperties:o}),s;e.$async&&(s=a.scopeValue("Error",{ref:yU.default,code:(0,br._)`require("ajv/dist/runtime/validation_error").default`}));let l=a.scopeName("validate");e.validateName=l;let d={gen:a,allErrors:this.opts.allErrors,data:Ci.default.data,parentData:Ci.default.parentData,parentDataProperty:Ci.default.parentDataProperty,dataNames:[Ci.default.data],dataPathArr:[br.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,br.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:br.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,br._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,bU.validateFunctionCode)(d),a.optimize(this.opts.code.optimize);let f=a.toString();p=`${a.scopeRefs(Ci.default.scope)}return ${f}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let y=new Function(`${Ci.default.self}`,`${Ci.default.scope}`,p)(this,this.scope.get());if(this.scope.value(l,{ref:y}),y.errors=null,y.schema=e.schema,y.schemaEnv=e,e.$async&&(y.$async=!0),this.opts.code.source===!0&&(y.source={validateName:l,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:v,items:x}=d;y.evaluated={props:v instanceof br.Name?void 0:v,items:x instanceof br.Name?void 0:x,dynamicProps:v instanceof br.Name,dynamicItems:x instanceof br.Name},y.source&&(y.source.evaluated=(0,br.stringify)(y.evaluated))}return e.validate=y,e}catch(f){throw delete e.validate,delete e.validateName,p&&this.logger.error("Error compiling schema, function code:",p),f}finally{this._compilations.delete(e)}}nr.compileSchema=yb;function xU(e,t,r){var i;r=(0,xr.resolveUrl)(this.opts.uriResolver,t,r);let n=e.refs[r];if(n)return n;let o=wU.call(this,e,r);if(o===void 0){let a=(i=e.localRefs)===null||i===void 0?void 0:i[r],{schemaId:s}=this.opts;a&&(o=new la({schema:a,schemaId:s,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=_U.call(this,o)}nr.resolveRef=xU;function _U(e){return(0,xr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:yb.call(this,e)}function Ez(e){for(let t of this._compilations)if($U(t,e))return t}nr.getCompilingSchema=Ez;function $U(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function wU(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||gm.call(this,e,t)}function gm(e,t){let r=this.opts.uriResolver.parse(t),i=(0,xr._getFullPath)(this.opts.uriResolver,r),n=(0,xr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&i===n)return vb.call(this,r,e);let o=(0,xr.normalizeId)(i),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){let s=gm.call(this,e,a);return typeof s?.schema!="object"?void 0:vb.call(this,r,s)}if(typeof a?.schema=="object"){if(a.validate||yb.call(this,a),o===(0,xr.normalizeId)(t)){let{schema:s}=a,{schemaId:l}=this.opts,d=s[l];return d&&(n=(0,xr.resolveUrl)(this.opts.uriResolver,n,d)),new la({schema:s,schemaId:l,root:e,baseId:n})}return vb.call(this,r,a)}}nr.resolveSchema=gm;var SU=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function vb(e,{baseId:t,schema:r,root:i}){var n;if(((n=e.fragment)===null||n===void 0?void 0:n[0])!=="/")return;for(let s of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let l=r[(0,Iz.unescapeFragment)(s)];if(l===void 0)return;r=l;let d=typeof r=="object"&&r[this.opts.schemaId];!SU.has(s)&&d&&(t=(0,xr.resolveUrl)(this.opts.uriResolver,t,d))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,Iz.schemaHasRulesButRef)(r,this.RULES)){let s=(0,xr.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=gm.call(this,i,s)}let{schemaId:a}=this.opts;if(o=o||new la({schema:r,schemaId:a,root:i,baseId:t}),o.schema!==o.root.schema)return o}});var Rz=z((UJ,kU)=>{kU.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var xb=z((MJ,Nz)=>{"use strict";var zU=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),Oz=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function bb(e){let t="",r=0,i=0;for(i=0;i<e.length;i++)if(r=e[i].charCodeAt(0),r!==48){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[i];break}for(i+=1;i<e.length;i++){if(r=e[i].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[i]}return t}var TU=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function jz(e){return e.length=0,!0}function PU(e,t,r){if(e.length){let i=bb(e);if(i!=="")t.push(i);else return r.error=!0,!1;e.length=0}return!0}function IU(e){let t=0,r={error:!1,address:"",zone:""},i=[],n=[],o=!1,a=!1,s=PU;for(let l=0;l<e.length;l++){let d=e[l];if(!(d==="["||d==="]"))if(d===":"){if(o===!0&&(a=!0),!s(n,i,r))break;if(++t>7){r.error=!0;break}l>0&&e[l-1]===":"&&(o=!0),i.push(":");continue}else if(d==="%"){if(!s(n,i,r))break;s=jz}else{n.push(d);continue}}return n.length&&(s===jz?r.zone=n.join(""):a?i.push(n.join("")):i.push(bb(n))),r.address=i.join(""),r}function Az(e){if(EU(e,":")<2)return{host:e,isIPV6:!1};let t=IU(e);if(t.error)return{host:e,isIPV6:!1};{let r=t.address,i=t.address;return t.zone&&(r+="%"+t.zone,i+="%25"+t.zone),{host:r,isIPV6:!0,escapedHost:i}}}function EU(e,t){let r=0;for(let i=0;i<e.length;i++)e[i]===t&&r++;return r}function RU(e){let t=e,r=[],i=-1,n=0;for(;n=t.length;){if(n===1){if(t===".")break;if(t==="/"){r.push("/");break}else{r.push(t);break}}else if(n===2){if(t[0]==="."){if(t[1]===".")break;if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&(t[1]==="."||t[1]==="/")){r.push("/");break}}else if(n===3&&t==="/.."){r.length!==0&&r.pop(),r.push("/");break}if(t[0]==="."){if(t[1]==="."){if(t[2]==="/"){t=t.slice(3);continue}}else if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&t[1]==="."){if(t[2]==="/"){t=t.slice(2);continue}else if(t[2]==="."&&t[3]==="/"){t=t.slice(3),r.length!==0&&r.pop();continue}}if((i=t.indexOf("/",1))===-1){r.push(t);break}else r.push(t.slice(0,i)),t=t.slice(i)}return r.join("")}function jU(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}function OU(e){let t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push("@")),e.host!==void 0){let r=unescape(e.host);if(!Oz(r)){let i=Az(r);i.isIPV6===!0?r=`[${i.escapedHost}]`:r=e.host}t.push(r)}return(typeof e.port=="number"||typeof e.port=="string")&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0}Nz.exports={nonSimpleDomain:TU,recomposeAuthority:OU,normalizeComponentEncoding:jU,removeDotSegments:RU,isIPv4:Oz,isUUID:zU,normalizeIPv6:Az,stringArrayToHexStripped:bb}});var Zz=z((ZJ,Mz)=>{"use strict";var{isUUID:AU}=xb(),NU=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,CU=["http","https","ws","wss","urn","urn:uuid"];function DU(e){return CU.indexOf(e)!==-1}function _b(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]==="w"||e.scheme[0]==="W")&&(e.scheme[1]==="s"||e.scheme[1]==="S")&&(e.scheme[2]==="s"||e.scheme[2]==="S"):!1}function Cz(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function Dz(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function UU(e){return e.secure=_b(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function MU(e){if((e.port===(_b(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}function ZU(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(NU);if(r){let i=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let n=`${i}:${t.nid||e.nid}`,o=$b(n);e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function qU(e,t){if(e.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=t.scheme||e.scheme||"urn",i=e.nid.toLowerCase(),n=`${r}:${t.nid||i}`,o=$b(n);o&&(e=o.serialize(e,t));let a=e,s=e.nss;return a.path=`${i||t.nid}:${s}`,t.skipEscape=!0,a}function LU(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!AU(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function FU(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var Uz={scheme:"http",domainHost:!0,parse:Cz,serialize:Dz},VU={scheme:"https",domainHost:Uz.domainHost,parse:Cz,serialize:Dz},ym={scheme:"ws",domainHost:!0,parse:UU,serialize:MU},BU={scheme:"wss",domainHost:ym.domainHost,parse:ym.parse,serialize:ym.serialize},WU={scheme:"urn",parse:ZU,serialize:qU,skipNormalize:!0},HU={scheme:"urn:uuid",parse:LU,serialize:FU,skipNormalize:!0},bm={http:Uz,https:VU,ws:ym,wss:BU,urn:WU,"urn:uuid":HU};Object.setPrototypeOf(bm,null);function $b(e){return e&&(bm[e]||bm[e.toLowerCase()])||void 0}Mz.exports={wsIsSecure:_b,SCHEMES:bm,isValidSchemeName:DU,getSchemeHandler:$b}});var Fz=z((qJ,_m)=>{"use strict";var{normalizeIPv6:JU,removeDotSegments:_c,recomposeAuthority:GU,normalizeComponentEncoding:xm,isIPv4:KU,nonSimpleDomain:YU}=xb(),{SCHEMES:XU,getSchemeHandler:qz}=Zz();function QU(e,t){return typeof e=="string"?e=Or(on(e,t),t):typeof e=="object"&&(e=on(Or(e,t),t)),e}function eM(e,t,r){let i=r?Object.assign({scheme:"null"},r):{scheme:"null"},n=Lz(on(e,i),on(t,i),i,!0);return i.skipEscape=!0,Or(n,i)}function Lz(e,t,r,i){let n={};return i||(e=on(Or(e,r),r),t=on(Or(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=_c(t.path||""),n.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=_c(t.path||""),n.query=t.query):(t.path?(t.path[0]==="/"?n.path=_c(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?n.path="/"+t.path:e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path,n.path=_c(n.path)),n.query=t.query):(n.path=e.path,t.query!==void 0?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function tM(e,t,r){return typeof e=="string"?(e=unescape(e),e=Or(xm(on(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Or(xm(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=Or(xm(on(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Or(xm(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}function Or(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},i=Object.assign({},t),n=[],o=qz(i.scheme||r.scheme);o&&o.serialize&&o.serialize(r,i),r.path!==void 0&&(i.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),i.reference!=="suffix"&&r.scheme&&n.push(r.scheme,":");let a=GU(r);if(a!==void 0&&(i.reference!=="suffix"&&n.push("//"),n.push(a),r.path&&r.path[0]!=="/"&&n.push("/")),r.path!==void 0){let s=r.path;!i.absolutePath&&(!o||!o.absolutePath)&&(s=_c(s)),a===void 0&&s[0]==="/"&&s[1]==="/"&&(s="/%2F"+s.slice(2)),n.push(s)}return r.query!==void 0&&n.push("?",r.query),r.fragment!==void 0&&n.push("#",r.fragment),n.join("")}var rM=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function on(e,t){let r=Object.assign({},t),i={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},n=!1;r.reference==="suffix"&&(r.scheme?e=r.scheme+":"+e:e="//"+e);let o=e.match(rM);if(o){if(i.scheme=o[1],i.userinfo=o[3],i.host=o[4],i.port=parseInt(o[5],10),i.path=o[6]||"",i.query=o[7],i.fragment=o[8],isNaN(i.port)&&(i.port=o[5]),i.host)if(KU(i.host)===!1){let l=JU(i.host);i.host=l.host.toLowerCase(),n=l.isIPV6}else n=!0;i.scheme===void 0&&i.userinfo===void 0&&i.host===void 0&&i.port===void 0&&i.query===void 0&&!i.path?i.reference="same-document":i.scheme===void 0?i.reference="relative":i.fragment===void 0?i.reference="absolute":i.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==i.reference&&(i.error=i.error||"URI is not a "+r.reference+" reference.");let a=qz(r.scheme||i.scheme);if(!r.unicodeSupport&&(!a||!a.unicodeSupport)&&i.host&&(r.domainHost||a&&a.domainHost)&&n===!1&&YU(i.host))try{i.host=URL.domainToASCII(i.host.toLowerCase())}catch(s){i.error=i.error||"Host's domain name can not be converted to ASCII: "+s}(!a||a&&!a.skipNormalize)&&(e.indexOf("%")!==-1&&(i.scheme!==void 0&&(i.scheme=unescape(i.scheme)),i.host!==void 0&&(i.host=unescape(i.host))),i.path&&(i.path=escape(unescape(i.path))),i.fragment&&(i.fragment=encodeURI(decodeURIComponent(i.fragment)))),a&&a.parse&&a.parse(i,r)}else i.error=i.error||"URI can not be parsed.";return i}var wb={SCHEMES:XU,normalize:QU,resolve:eM,resolveComponent:Lz,equal:tM,serialize:Or,parse:on};_m.exports=wb;_m.exports.default=wb;_m.exports.fastUri=wb});var Bz=z(Sb=>{"use strict";Object.defineProperty(Sb,"__esModule",{value:!0});var Vz=Fz();Vz.code='require("ajv/dist/runtime/uri").default';Sb.default=Vz});var Qz=z(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.CodeGen=ct.Name=ct.nil=ct.stringify=ct.str=ct._=ct.KeywordCxt=void 0;var nM=bc();Object.defineProperty(ct,"KeywordCxt",{enumerable:!0,get:function(){return nM.KeywordCxt}});var ua=ce();Object.defineProperty(ct,"_",{enumerable:!0,get:function(){return ua._}});Object.defineProperty(ct,"str",{enumerable:!0,get:function(){return ua.str}});Object.defineProperty(ct,"stringify",{enumerable:!0,get:function(){return ua.stringify}});Object.defineProperty(ct,"nil",{enumerable:!0,get:function(){return ua.nil}});Object.defineProperty(ct,"Name",{enumerable:!0,get:function(){return ua.Name}});Object.defineProperty(ct,"CodeGen",{enumerable:!0,get:function(){return ua.CodeGen}});var iM=hm(),Kz=xc(),oM=Qy(),$c=vm(),aM=ce(),wc=gc(),$m=hc(),zb=_e(),Wz=Rz(),sM=Bz(),Yz=(e,t)=>new RegExp(e,t);Yz.code="new RegExp";var cM=["removeAdditional","useDefaults","coerceTypes"],lM=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),uM={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},dM={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Hz=200;function pM(e){var t,r,i,n,o,a,s,l,d,p,f,g,y,v,x,S,P,U,C,M,D,le,Le,wt,ei;let Mr=e.strict,Hi=(t=e.code)===null||t===void 0?void 0:t.optimize,Ji=Hi===!0||Hi===void 0?1:Hi||0,Bt=(i=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&i!==void 0?i:Yz,Gi=(n=e.uriResolver)!==null&&n!==void 0?n:sM.default;return{strictSchema:(a=(o=e.strictSchema)!==null&&o!==void 0?o:Mr)!==null&&a!==void 0?a:!0,strictNumbers:(l=(s=e.strictNumbers)!==null&&s!==void 0?s:Mr)!==null&&l!==void 0?l:!0,strictTypes:(p=(d=e.strictTypes)!==null&&d!==void 0?d:Mr)!==null&&p!==void 0?p:"log",strictTuples:(g=(f=e.strictTuples)!==null&&f!==void 0?f:Mr)!==null&&g!==void 0?g:"log",strictRequired:(v=(y=e.strictRequired)!==null&&y!==void 0?y:Mr)!==null&&v!==void 0?v:!1,code:e.code?{...e.code,optimize:Ji,regExp:Bt}:{optimize:Ji,regExp:Bt},loopRequired:(x=e.loopRequired)!==null&&x!==void 0?x:Hz,loopEnum:(S=e.loopEnum)!==null&&S!==void 0?S:Hz,meta:(P=e.meta)!==null&&P!==void 0?P:!0,messages:(U=e.messages)!==null&&U!==void 0?U:!0,inlineRefs:(C=e.inlineRefs)!==null&&C!==void 0?C:!0,schemaId:(M=e.schemaId)!==null&&M!==void 0?M:"$id",addUsedSchema:(D=e.addUsedSchema)!==null&&D!==void 0?D:!0,validateSchema:(le=e.validateSchema)!==null&&le!==void 0?le:!0,validateFormats:(Le=e.validateFormats)!==null&&Le!==void 0?Le:!0,unicodeRegExp:(wt=e.unicodeRegExp)!==null&&wt!==void 0?wt:!0,int32range:(ei=e.int32range)!==null&&ei!==void 0?ei:!0,uriResolver:Gi}}var Sc=class{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...pM(t)};let{es5:r,lines:i}=this.opts.code;this.scope=new aM.ValueScope({scope:{},prefixes:lM,es5:r,lines:i}),this.logger=yM(t.logger);let n=t.validateFormats;t.validateFormats=!1,this.RULES=(0,oM.getRules)(),Jz.call(this,uM,t,"NOT SUPPORTED"),Jz.call(this,dM,t,"DEPRECATED","warn"),this._metaOpts=gM.call(this),t.formats&&fM.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&hM.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),mM.call(this),t.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:i}=this.opts,n=Wz;i==="id"&&(n={...Wz},n.id=n.$id,delete n.$id),r&&t&&this.addMetaSchema(n,n[i],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let i;if(typeof t=="string"){if(i=this.getSchema(t),!i)throw new Error(`no schema with key or ref "${t}"`)}else i=this.compile(t);let n=i(r);return"$async"in i||(this.errors=i.errors),n}compile(t,r){let i=this._addSchema(t,r);return i.validate||this._compileSchemaEnv(i)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:i}=this.opts;return n.call(this,t,r);async function n(p,f){await o.call(this,p.$schema);let g=this._addSchema(p,f);return g.validate||a.call(this,g)}async function o(p){p&&!this.getSchema(p)&&await n.call(this,{$ref:p},!0)}async function a(p){try{return this._compileSchemaEnv(p)}catch(f){if(!(f instanceof Kz.default))throw f;return s.call(this,f),await l.call(this,f.missingSchema),a.call(this,p)}}function s({missingSchema:p,missingRef:f}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${f} cannot be resolved`)}async function l(p){let f=await d.call(this,p);this.refs[p]||await o.call(this,f.$schema),this.refs[p]||this.addSchema(f,p,r)}async function d(p){let f=this._loading[p];if(f)return f;try{return await(this._loading[p]=i(p))}finally{delete this._loading[p]}}}addSchema(t,r,i,n=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,i,n);return this}let o;if(typeof t=="object"){let{schemaId:a}=this.opts;if(o=t[a],o!==void 0&&typeof o!="string")throw new Error(`schema ${a} must be string`)}return r=(0,wc.normalizeId)(r||o),this._checkUnique(r),this.schemas[r]=this._addSchema(t,i,r,n,!0),this}addMetaSchema(t,r,i=this.opts.validateSchema){return this.addSchema(t,r,!0,i),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let i;if(i=t.$schema,i!==void 0&&typeof i!="string")throw new Error("$schema must be a string");if(i=i||this.opts.defaultMeta||this.defaultMeta(),!i)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let n=this.validate(i,t);if(!n&&r){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return n}getSchema(t){let r;for(;typeof(r=Gz.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:i}=this.opts,n=new $c.SchemaEnv({schema:{},schemaId:i});if(r=$c.resolveSchema.call(this,n,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=Gz.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let i=t[this.opts.schemaId];return i&&(i=(0,wc.normalizeId)(i),delete this.schemas[i],delete this.refs[i]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let i;if(typeof t=="string")i=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=i);else if(typeof t=="object"&&r===void 0){if(r=t,i=r.keyword,Array.isArray(i)&&!i.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(xM.call(this,i,r),!r)return(0,zb.eachItem)(i,o=>kb.call(this,o)),this;$M.call(this,r);let n={...r,type:(0,$m.getJSONTypes)(r.type),schemaType:(0,$m.getJSONTypes)(r.schemaType)};return(0,zb.eachItem)(i,n.type.length===0?o=>kb.call(this,o,n):o=>n.type.forEach(a=>kb.call(this,o,n,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let i of r.rules){let n=i.rules.findIndex(o=>o.keyword===t);n>=0&&i.rules.splice(n,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:i="data"}={}){return!t||t.length===0?"No errors":t.map(n=>`${i}${n.instancePath} ${n.message}`).reduce((n,o)=>n+r+o)}$dataMetaSchema(t,r){let i=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let n of r){let o=n.split("/").slice(1),a=t;for(let s of o)a=a[s];for(let s in i){let l=i[s];if(typeof l!="object")continue;let{$data:d}=l.definition,p=a[s];d&&p&&(a[s]=Xz(p))}}return t}_removeAllSchemas(t,r){for(let i in t){let n=t[i];(!r||r.test(i))&&(typeof n=="string"?delete t[i]:n&&!n.meta&&(this._cache.delete(n.schema),delete t[i]))}}_addSchema(t,r,i,n=this.opts.validateSchema,o=this.opts.addUsedSchema){let a,{schemaId:s}=this.opts;if(typeof t=="object")a=t[s];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let l=this._cache.get(t);if(l!==void 0)return l;i=(0,wc.normalizeId)(a||i);let d=wc.getSchemaRefs.call(this,t,i);return l=new $c.SchemaEnv({schema:t,schemaId:s,meta:r,baseId:i,localRefs:d}),this._cache.set(l.schema,l),o&&!i.startsWith("#")&&(i&&this._checkUnique(i),this.refs[i]=l),n&&this.validateSchema(t,!0),l}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):$c.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{$c.compileSchema.call(this,t)}finally{this.opts=r}}};Sc.ValidationError=iM.default;Sc.MissingRefError=Kz.default;ct.default=Sc;function Jz(e,t,r,i="error"){for(let n in e){let o=n;o in t&&this.logger[i](`${r}: option ${n}. ${e[o]}`)}}function Gz(e){return e=(0,wc.normalizeId)(e),this.schemas[e]||this.refs[e]}function mM(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function fM(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function hM(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function gM(){let e={...this.opts};for(let t of cM)delete e[t];return e}var vM={log(){},warn(){},error(){}};function yM(e){if(e===!1)return vM;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var bM=/^[a-z_$][a-z0-9_$:-]*$/i;function xM(e,t){let{RULES:r}=this;if((0,zb.eachItem)(e,i=>{if(r.keywords[i])throw new Error(`Keyword ${i} is already defined`);if(!bM.test(i))throw new Error(`Keyword ${i} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function kb(e,t,r){var i;let n=t?.post;if(r&&n)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,a=n?o.post:o.rules.find(({type:l})=>l===r);if(a||(a={type:r,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!t)return;let s={keyword:e,definition:{...t,type:(0,$m.getJSONTypes)(t.type),schemaType:(0,$m.getJSONTypes)(t.schemaType)}};t.before?_M.call(this,a,s,t.before):a.rules.push(s),o.all[e]=s,(i=t.implements)===null||i===void 0||i.forEach(l=>this.addKeyword(l))}function _M(e,t,r){let i=e.rules.findIndex(n=>n.keyword===r);i>=0?e.rules.splice(i,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function $M(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=Xz(t)),e.validateSchema=this.compile(t,!0))}var wM={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Xz(e){return{anyOf:[e,wM]}}});var eT=z(Tb=>{"use strict";Object.defineProperty(Tb,"__esModule",{value:!0});var SM={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Tb.default=SM});var iT=z(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.callRef=Di.getValidate=void 0;var kM=xc(),tT=rr(),jt=ce(),da=rn(),rT=vm(),wm=_e(),zM={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:i}=e,{baseId:n,schemaEnv:o,validateName:a,opts:s,self:l}=i,{root:d}=o;if((r==="#"||r==="#/")&&n===d.baseId)return f();let p=rT.resolveRef.call(l,d,n,r);if(p===void 0)throw new kM.default(i.opts.uriResolver,n,r);if(p instanceof rT.SchemaEnv)return g(p);return y(p);function f(){if(o===d)return Sm(e,a,o,o.$async);let v=t.scopeValue("root",{ref:d});return Sm(e,(0,jt._)`${v}.validate`,d,d.$async)}function g(v){let x=nT(e,v);Sm(e,x,v,v.$async)}function y(v){let x=t.scopeValue("schema",s.code.source===!0?{ref:v,code:(0,jt.stringify)(v)}:{ref:v}),S=t.name("valid"),P=e.subschema({schema:v,dataTypes:[],schemaPath:jt.nil,topSchemaRef:x,errSchemaPath:r},S);e.mergeEvaluated(P),e.ok(S)}}};function nT(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,jt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}Di.getValidate=nT;function Sm(e,t,r,i){let{gen:n,it:o}=e,{allErrors:a,schemaEnv:s,opts:l}=o,d=l.passContext?da.default.this:jt.nil;i?p():f();function p(){if(!s.$async)throw new Error("async schema referenced by sync schema");let v=n.let("valid");n.try(()=>{n.code((0,jt._)`await ${(0,tT.callValidateCode)(e,t,d)}`),y(t),a||n.assign(v,!0)},x=>{n.if((0,jt._)`!(${x} instanceof ${o.ValidationError})`,()=>n.throw(x)),g(x),a||n.assign(v,!1)}),e.ok(v)}function f(){e.result((0,tT.callValidateCode)(e,t,d),()=>y(t),()=>g(t))}function g(v){let x=(0,jt._)`${v}.errors`;n.assign(da.default.vErrors,(0,jt._)`${da.default.vErrors} === null ? ${x} : ${da.default.vErrors}.concat(${x})`),n.assign(da.default.errors,(0,jt._)`${da.default.vErrors}.length`)}function y(v){var x;if(!o.opts.unevaluated)return;let S=(x=r?.validate)===null||x===void 0?void 0:x.evaluated;if(o.props!==!0)if(S&&!S.dynamicProps)S.props!==void 0&&(o.props=wm.mergeEvaluated.props(n,S.props,o.props));else{let P=n.var("props",(0,jt._)`${v}.evaluated.props`);o.props=wm.mergeEvaluated.props(n,P,o.props,jt.Name)}if(o.items!==!0)if(S&&!S.dynamicItems)S.items!==void 0&&(o.items=wm.mergeEvaluated.items(n,S.items,o.items));else{let P=n.var("items",(0,jt._)`${v}.evaluated.items`);o.items=wm.mergeEvaluated.items(n,P,o.items,jt.Name)}}}Di.callRef=Sm;Di.default=zM});var oT=z(Pb=>{"use strict";Object.defineProperty(Pb,"__esModule",{value:!0});var TM=eT(),PM=iT(),IM=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",TM.default,PM.default];Pb.default=IM});var aT=z(Ib=>{"use strict";Object.defineProperty(Ib,"__esModule",{value:!0});var km=ce(),Jn=km.operators,zm={maximum:{okStr:"<=",ok:Jn.LTE,fail:Jn.GT},minimum:{okStr:">=",ok:Jn.GTE,fail:Jn.LT},exclusiveMaximum:{okStr:"<",ok:Jn.LT,fail:Jn.GTE},exclusiveMinimum:{okStr:">",ok:Jn.GT,fail:Jn.LTE}},EM={message:({keyword:e,schemaCode:t})=>(0,km.str)`must be ${zm[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,km._)`{comparison: ${zm[e].okStr}, limit: ${t}}`},RM={keyword:Object.keys(zm),type:"number",schemaType:"number",$data:!0,error:EM,code(e){let{keyword:t,data:r,schemaCode:i}=e;e.fail$data((0,km._)`${r} ${zm[t].fail} ${i} || isNaN(${r})`)}};Ib.default=RM});var sT=z(Eb=>{"use strict";Object.defineProperty(Eb,"__esModule",{value:!0});var kc=ce(),jM={message:({schemaCode:e})=>(0,kc.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,kc._)`{multipleOf: ${e}}`},OM={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:jM,code(e){let{gen:t,data:r,schemaCode:i,it:n}=e,o=n.opts.multipleOfPrecision,a=t.let("res"),s=o?(0,kc._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:(0,kc._)`${a} !== parseInt(${a})`;e.fail$data((0,kc._)`(${i} === 0 || (${a} = ${r}/${i}, ${s}))`)}};Eb.default=OM});var lT=z(Rb=>{"use strict";Object.defineProperty(Rb,"__esModule",{value:!0});function cT(e){let t=e.length,r=0,i=0,n;for(;i<t;)r++,n=e.charCodeAt(i++),n>=55296&&n<=56319&&i<t&&(n=e.charCodeAt(i),(n&64512)===56320&&i++);return r}Rb.default=cT;cT.code='require("ajv/dist/runtime/ucs2length").default'});var uT=z(jb=>{"use strict";Object.defineProperty(jb,"__esModule",{value:!0});var Ui=ce(),AM=_e(),NM=lT(),CM={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Ui.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,Ui._)`{limit: ${e}}`},DM={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:CM,code(e){let{keyword:t,data:r,schemaCode:i,it:n}=e,o=t==="maxLength"?Ui.operators.GT:Ui.operators.LT,a=n.opts.unicode===!1?(0,Ui._)`${r}.length`:(0,Ui._)`${(0,AM.useFunc)(e.gen,NM.default)}(${r})`;e.fail$data((0,Ui._)`${a} ${o} ${i}`)}};jb.default=DM});var dT=z(Ob=>{"use strict";Object.defineProperty(Ob,"__esModule",{value:!0});var UM=rr(),MM=_e(),pa=ce(),ZM={message:({schemaCode:e})=>(0,pa.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,pa._)`{pattern: ${e}}`},qM={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:ZM,code(e){let{gen:t,data:r,$data:i,schema:n,schemaCode:o,it:a}=e,s=a.opts.unicodeRegExp?"u":"";if(i){let{regExp:l}=a.opts.code,d=l.code==="new RegExp"?(0,pa._)`new RegExp`:(0,MM.useFunc)(t,l),p=t.let("valid");t.try(()=>t.assign(p,(0,pa._)`${d}(${o}, ${s}).test(${r})`),()=>t.assign(p,!1)),e.fail$data((0,pa._)`!${p}`)}else{let l=(0,UM.usePattern)(e,n);e.fail$data((0,pa._)`!${l}.test(${r})`)}}};Ob.default=qM});var pT=z(Ab=>{"use strict";Object.defineProperty(Ab,"__esModule",{value:!0});var zc=ce(),LM={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,zc.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,zc._)`{limit: ${e}}`},FM={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:LM,code(e){let{keyword:t,data:r,schemaCode:i}=e,n=t==="maxProperties"?zc.operators.GT:zc.operators.LT;e.fail$data((0,zc._)`Object.keys(${r}).length ${n} ${i}`)}};Ab.default=FM});var mT=z(Nb=>{"use strict";Object.defineProperty(Nb,"__esModule",{value:!0});var Tc=rr(),Pc=ce(),VM=_e(),BM={message:({params:{missingProperty:e}})=>(0,Pc.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Pc._)`{missingProperty: ${e}}`},WM={keyword:"required",type:"object",schemaType:"array",$data:!0,error:BM,code(e){let{gen:t,schema:r,schemaCode:i,data:n,$data:o,it:a}=e,{opts:s}=a;if(!o&&r.length===0)return;let l=r.length>=s.loopRequired;if(a.allErrors?d():p(),s.strictRequired){let y=e.parentSchema.properties,{definedProperties:v}=e.it;for(let x of r)if(y?.[x]===void 0&&!v.has(x)){let S=a.schemaEnv.baseId+a.errSchemaPath,P=`required property "${x}" is not defined at "${S}" (strictRequired)`;(0,VM.checkStrictMode)(a,P,a.opts.strictRequired)}}function d(){if(l||o)e.block$data(Pc.nil,f);else for(let y of r)(0,Tc.checkReportMissingProp)(e,y)}function p(){let y=t.let("missing");if(l||o){let v=t.let("valid",!0);e.block$data(v,()=>g(y,v)),e.ok(v)}else t.if((0,Tc.checkMissingProp)(e,r,y)),(0,Tc.reportMissingProp)(e,y),t.else()}function f(){t.forOf("prop",i,y=>{e.setParams({missingProperty:y}),t.if((0,Tc.noPropertyInData)(t,n,y,s.ownProperties),()=>e.error())})}function g(y,v){e.setParams({missingProperty:y}),t.forOf(y,i,()=>{t.assign(v,(0,Tc.propertyInData)(t,n,y,s.ownProperties)),t.if((0,Pc.not)(v),()=>{e.error(),t.break()})},Pc.nil)}}};Nb.default=WM});var fT=z(Cb=>{"use strict";Object.defineProperty(Cb,"__esModule",{value:!0});var Ic=ce(),HM={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Ic.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,Ic._)`{limit: ${e}}`},JM={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:HM,code(e){let{keyword:t,data:r,schemaCode:i}=e,n=t==="maxItems"?Ic.operators.GT:Ic.operators.LT;e.fail$data((0,Ic._)`${r}.length ${n} ${i}`)}};Cb.default=JM});var Tm=z(Db=>{"use strict";Object.defineProperty(Db,"__esModule",{value:!0});var hT=sb();hT.code='require("ajv/dist/runtime/equal").default';Db.default=hT});var gT=z(Mb=>{"use strict";Object.defineProperty(Mb,"__esModule",{value:!0});var Ub=hc(),lt=ce(),GM=_e(),KM=Tm(),YM={message:({params:{i:e,j:t}})=>(0,lt.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,lt._)`{i: ${e}, j: ${t}}`},XM={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:YM,code(e){let{gen:t,data:r,$data:i,schema:n,parentSchema:o,schemaCode:a,it:s}=e;if(!i&&!n)return;let l=t.let("valid"),d=o.items?(0,Ub.getSchemaTypes)(o.items):[];e.block$data(l,p,(0,lt._)`${a} === false`),e.ok(l);function p(){let v=t.let("i",(0,lt._)`${r}.length`),x=t.let("j");e.setParams({i:v,j:x}),t.assign(l,!0),t.if((0,lt._)`${v} > 1`,()=>(f()?g:y)(v,x))}function f(){return d.length>0&&!d.some(v=>v==="object"||v==="array")}function g(v,x){let S=t.name("item"),P=(0,Ub.checkDataTypes)(d,S,s.opts.strictNumbers,Ub.DataType.Wrong),U=t.const("indices",(0,lt._)`{}`);t.for((0,lt._)`;${v}--;`,()=>{t.let(S,(0,lt._)`${r}[${v}]`),t.if(P,(0,lt._)`continue`),d.length>1&&t.if((0,lt._)`typeof ${S} == "string"`,(0,lt._)`${S} += "_"`),t.if((0,lt._)`typeof ${U}[${S}] == "number"`,()=>{t.assign(x,(0,lt._)`${U}[${S}]`),e.error(),t.assign(l,!1).break()}).code((0,lt._)`${U}[${S}] = ${v}`)})}function y(v,x){let S=(0,GM.useFunc)(t,KM.default),P=t.name("outer");t.label(P).for((0,lt._)`;${v}--;`,()=>t.for((0,lt._)`${x} = ${v}; ${x}--;`,()=>t.if((0,lt._)`${S}(${r}[${v}], ${r}[${x}])`,()=>{e.error(),t.assign(l,!1).break(P)})))}}};Mb.default=XM});var vT=z(qb=>{"use strict";Object.defineProperty(qb,"__esModule",{value:!0});var Zb=ce(),QM=_e(),eZ=Tm(),tZ={message:"must be equal to constant",params:({schemaCode:e})=>(0,Zb._)`{allowedValue: ${e}}`},rZ={keyword:"const",$data:!0,error:tZ,code(e){let{gen:t,data:r,$data:i,schemaCode:n,schema:o}=e;i||o&&typeof o=="object"?e.fail$data((0,Zb._)`!${(0,QM.useFunc)(t,eZ.default)}(${r}, ${n})`):e.fail((0,Zb._)`${o} !== ${r}`)}};qb.default=rZ});var yT=z(Lb=>{"use strict";Object.defineProperty(Lb,"__esModule",{value:!0});var Ec=ce(),nZ=_e(),iZ=Tm(),oZ={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Ec._)`{allowedValues: ${e}}`},aZ={keyword:"enum",schemaType:"array",$data:!0,error:oZ,code(e){let{gen:t,data:r,$data:i,schema:n,schemaCode:o,it:a}=e;if(!i&&n.length===0)throw new Error("enum must have non-empty array");let s=n.length>=a.opts.loopEnum,l,d=()=>l??(l=(0,nZ.useFunc)(t,iZ.default)),p;if(s||i)p=t.let("valid"),e.block$data(p,f);else{if(!Array.isArray(n))throw new Error("ajv implementation error");let y=t.const("vSchema",o);p=(0,Ec.or)(...n.map((v,x)=>g(y,x)))}e.pass(p);function f(){t.assign(p,!1),t.forOf("v",o,y=>t.if((0,Ec._)`${d()}(${r}, ${y})`,()=>t.assign(p,!0).break()))}function g(y,v){let x=n[v];return typeof x=="object"&&x!==null?(0,Ec._)`${d()}(${r}, ${y}[${v}])`:(0,Ec._)`${r} === ${x}`}}};Lb.default=aZ});var bT=z(Fb=>{"use strict";Object.defineProperty(Fb,"__esModule",{value:!0});var sZ=aT(),cZ=sT(),lZ=uT(),uZ=dT(),dZ=pT(),pZ=mT(),mZ=fT(),fZ=gT(),hZ=vT(),gZ=yT(),vZ=[sZ.default,cZ.default,lZ.default,uZ.default,dZ.default,pZ.default,mZ.default,fZ.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},hZ.default,gZ.default];Fb.default=vZ});var Bb=z(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.validateAdditionalItems=void 0;var Mi=ce(),Vb=_e(),yZ={message:({params:{len:e}})=>(0,Mi.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Mi._)`{limit: ${e}}`},bZ={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:yZ,code(e){let{parentSchema:t,it:r}=e,{items:i}=t;if(!Array.isArray(i)){(0,Vb.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}xT(e,i)}};function xT(e,t){let{gen:r,schema:i,data:n,keyword:o,it:a}=e;a.items=!0;let s=r.const("len",(0,Mi._)`${n}.length`);if(i===!1)e.setParams({len:t.length}),e.pass((0,Mi._)`${s} <= ${t.length}`);else if(typeof i=="object"&&!(0,Vb.alwaysValidSchema)(a,i)){let d=r.var("valid",(0,Mi._)`${s} <= ${t.length}`);r.if((0,Mi.not)(d),()=>l(d)),e.ok(d)}function l(d){r.forRange("i",t.length,s,p=>{e.subschema({keyword:o,dataProp:p,dataPropType:Vb.Type.Num},d),a.allErrors||r.if((0,Mi.not)(d),()=>r.break())})}}Rc.validateAdditionalItems=xT;Rc.default=bZ});var Wb=z(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.validateTuple=void 0;var _T=ce(),Pm=_e(),xZ=rr(),_Z={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return $T(e,"additionalItems",t);r.items=!0,!(0,Pm.alwaysValidSchema)(r,t)&&e.ok((0,xZ.validateArray)(e))}};function $T(e,t,r=e.schema){let{gen:i,parentSchema:n,data:o,keyword:a,it:s}=e;p(n),s.opts.unevaluated&&r.length&&s.items!==!0&&(s.items=Pm.mergeEvaluated.items(i,r.length,s.items));let l=i.name("valid"),d=i.const("len",(0,_T._)`${o}.length`);r.forEach((f,g)=>{(0,Pm.alwaysValidSchema)(s,f)||(i.if((0,_T._)`${d} > ${g}`,()=>e.subschema({keyword:a,schemaProp:g,dataProp:g},l)),e.ok(l))});function p(f){let{opts:g,errSchemaPath:y}=s,v=r.length,x=v===f.minItems&&(v===f.maxItems||f[t]===!1);if(g.strictTuples&&!x){let S=`"${a}" is ${v}-tuple, but minItems or maxItems/${t} are not specified or different at path "${y}"`;(0,Pm.checkStrictMode)(s,S,g.strictTuples)}}}jc.validateTuple=$T;jc.default=_Z});var wT=z(Hb=>{"use strict";Object.defineProperty(Hb,"__esModule",{value:!0});var $Z=Wb(),wZ={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,$Z.validateTuple)(e,"items")};Hb.default=wZ});var kT=z(Jb=>{"use strict";Object.defineProperty(Jb,"__esModule",{value:!0});var ST=ce(),SZ=_e(),kZ=rr(),zZ=Bb(),TZ={message:({params:{len:e}})=>(0,ST.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,ST._)`{limit: ${e}}`},PZ={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:TZ,code(e){let{schema:t,parentSchema:r,it:i}=e,{prefixItems:n}=r;i.items=!0,!(0,SZ.alwaysValidSchema)(i,t)&&(n?(0,zZ.validateAdditionalItems)(e,n):e.ok((0,kZ.validateArray)(e)))}};Jb.default=PZ});var zT=z(Gb=>{"use strict";Object.defineProperty(Gb,"__esModule",{value:!0});var ir=ce(),Im=_e(),IZ={message:({params:{min:e,max:t}})=>t===void 0?(0,ir.str)`must contain at least ${e} valid item(s)`:(0,ir.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,ir._)`{minContains: ${e}}`:(0,ir._)`{minContains: ${e}, maxContains: ${t}}`},EZ={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:IZ,code(e){let{gen:t,schema:r,parentSchema:i,data:n,it:o}=e,a,s,{minContains:l,maxContains:d}=i;o.opts.next?(a=l===void 0?1:l,s=d):a=1;let p=t.const("len",(0,ir._)`${n}.length`);if(e.setParams({min:a,max:s}),s===void 0&&a===0){(0,Im.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&a>s){(0,Im.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Im.alwaysValidSchema)(o,r)){let x=(0,ir._)`${p} >= ${a}`;s!==void 0&&(x=(0,ir._)`${x} && ${p} <= ${s}`),e.pass(x);return}o.items=!0;let f=t.name("valid");s===void 0&&a===1?y(f,()=>t.if(f,()=>t.break())):a===0?(t.let(f,!0),s!==void 0&&t.if((0,ir._)`${n}.length > 0`,g)):(t.let(f,!1),g()),e.result(f,()=>e.reset());function g(){let x=t.name("_valid"),S=t.let("count",0);y(x,()=>t.if(x,()=>v(S)))}function y(x,S){t.forRange("i",0,p,P=>{e.subschema({keyword:"contains",dataProp:P,dataPropType:Im.Type.Num,compositeRule:!0},x),S()})}function v(x){t.code((0,ir._)`${x}++`),s===void 0?t.if((0,ir._)`${x} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,ir._)`${x} > ${s}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,ir._)`${x} >= ${a}`,()=>t.assign(f,!0)))}}};Gb.default=EZ});var IT=z(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.validateSchemaDeps=Ar.validatePropertyDeps=Ar.error=void 0;var Kb=ce(),RZ=_e(),Oc=rr();Ar.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let i=t===1?"property":"properties";return(0,Kb.str)`must have ${i} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:i}})=>(0,Kb._)`{property: ${e},
|
|
7
|
+
missingProperty: ${i},
|
|
8
|
+
depsCount: ${t},
|
|
9
|
+
deps: ${r}}`};var jZ={keyword:"dependencies",type:"object",schemaType:"object",error:Ar.error,code(e){let[t,r]=OZ(e);TT(e,t),PT(e,r)}};function OZ({schema:e}){let t={},r={};for(let i in e){if(i==="__proto__")continue;let n=Array.isArray(e[i])?t:r;n[i]=e[i]}return[t,r]}function TT(e,t=e.schema){let{gen:r,data:i,it:n}=e;if(Object.keys(t).length===0)return;let o=r.let("missing");for(let a in t){let s=t[a];if(s.length===0)continue;let l=(0,Oc.propertyInData)(r,i,a,n.opts.ownProperties);e.setParams({property:a,depsCount:s.length,deps:s.join(", ")}),n.allErrors?r.if(l,()=>{for(let d of s)(0,Oc.checkReportMissingProp)(e,d)}):(r.if((0,Kb._)`${l} && (${(0,Oc.checkMissingProp)(e,s,o)})`),(0,Oc.reportMissingProp)(e,o),r.else())}}Ar.validatePropertyDeps=TT;function PT(e,t=e.schema){let{gen:r,data:i,keyword:n,it:o}=e,a=r.name("valid");for(let s in t)(0,RZ.alwaysValidSchema)(o,t[s])||(r.if((0,Oc.propertyInData)(r,i,s,o.opts.ownProperties),()=>{let l=e.subschema({keyword:n,schemaProp:s},a);e.mergeValidEvaluated(l,a)},()=>r.var(a,!0)),e.ok(a))}Ar.validateSchemaDeps=PT;Ar.default=jZ});var RT=z(Yb=>{"use strict";Object.defineProperty(Yb,"__esModule",{value:!0});var ET=ce(),AZ=_e(),NZ={message:"property name must be valid",params:({params:e})=>(0,ET._)`{propertyName: ${e.propertyName}}`},CZ={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:NZ,code(e){let{gen:t,schema:r,data:i,it:n}=e;if((0,AZ.alwaysValidSchema)(n,r))return;let o=t.name("valid");t.forIn("key",i,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},o),t.if((0,ET.not)(o),()=>{e.error(!0),n.allErrors||t.break()})}),e.ok(o)}};Yb.default=CZ});var Qb=z(Xb=>{"use strict";Object.defineProperty(Xb,"__esModule",{value:!0});var Em=rr(),_r=ce(),DZ=rn(),Rm=_e(),UZ={message:"must NOT have additional properties",params:({params:e})=>(0,_r._)`{additionalProperty: ${e.additionalProperty}}`},MZ={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:UZ,code(e){let{gen:t,schema:r,parentSchema:i,data:n,errsCount:o,it:a}=e;if(!o)throw new Error("ajv implementation error");let{allErrors:s,opts:l}=a;if(a.props=!0,l.removeAdditional!=="all"&&(0,Rm.alwaysValidSchema)(a,r))return;let d=(0,Em.allSchemaProperties)(i.properties),p=(0,Em.allSchemaProperties)(i.patternProperties);f(),e.ok((0,_r._)`${o} === ${DZ.default.errors}`);function f(){t.forIn("key",n,S=>{!d.length&&!p.length?v(S):t.if(g(S),()=>v(S))})}function g(S){let P;if(d.length>8){let U=(0,Rm.schemaRefOrVal)(a,i.properties,"properties");P=(0,Em.isOwnProperty)(t,U,S)}else d.length?P=(0,_r.or)(...d.map(U=>(0,_r._)`${S} === ${U}`)):P=_r.nil;return p.length&&(P=(0,_r.or)(P,...p.map(U=>(0,_r._)`${(0,Em.usePattern)(e,U)}.test(${S})`))),(0,_r.not)(P)}function y(S){t.code((0,_r._)`delete ${n}[${S}]`)}function v(S){if(l.removeAdditional==="all"||l.removeAdditional&&r===!1){y(S);return}if(r===!1){e.setParams({additionalProperty:S}),e.error(),s||t.break();return}if(typeof r=="object"&&!(0,Rm.alwaysValidSchema)(a,r)){let P=t.name("valid");l.removeAdditional==="failing"?(x(S,P,!1),t.if((0,_r.not)(P),()=>{e.reset(),y(S)})):(x(S,P),s||t.if((0,_r.not)(P),()=>t.break()))}}function x(S,P,U){let C={keyword:"additionalProperties",dataProp:S,dataPropType:Rm.Type.Str};U===!1&&Object.assign(C,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(C,P)}}};Xb.default=MZ});var AT=z(tx=>{"use strict";Object.defineProperty(tx,"__esModule",{value:!0});var ZZ=bc(),jT=rr(),ex=_e(),OT=Qb(),qZ={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:i,data:n,it:o}=e;o.opts.removeAdditional==="all"&&i.additionalProperties===void 0&&OT.default.code(new ZZ.KeywordCxt(o,OT.default,"additionalProperties"));let a=(0,jT.allSchemaProperties)(r);for(let f of a)o.definedProperties.add(f);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=ex.mergeEvaluated.props(t,(0,ex.toHash)(a),o.props));let s=a.filter(f=>!(0,ex.alwaysValidSchema)(o,r[f]));if(s.length===0)return;let l=t.name("valid");for(let f of s)d(f)?p(f):(t.if((0,jT.propertyInData)(t,n,f,o.opts.ownProperties)),p(f),o.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(l);function d(f){return o.opts.useDefaults&&!o.compositeRule&&r[f].default!==void 0}function p(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},l)}}};tx.default=qZ});var UT=z(rx=>{"use strict";Object.defineProperty(rx,"__esModule",{value:!0});var NT=rr(),jm=ce(),CT=_e(),DT=_e(),LZ={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:i,parentSchema:n,it:o}=e,{opts:a}=o,s=(0,NT.allSchemaProperties)(r),l=s.filter(x=>(0,CT.alwaysValidSchema)(o,r[x]));if(s.length===0||l.length===s.length&&(!o.opts.unevaluated||o.props===!0))return;let d=a.strictSchema&&!a.allowMatchingProperties&&n.properties,p=t.name("valid");o.props!==!0&&!(o.props instanceof jm.Name)&&(o.props=(0,DT.evaluatedPropsToName)(t,o.props));let{props:f}=o;g();function g(){for(let x of s)d&&y(x),o.allErrors?v(x):(t.var(p,!0),v(x),t.if(p))}function y(x){for(let S in d)new RegExp(x).test(S)&&(0,CT.checkStrictMode)(o,`property ${S} matches pattern ${x} (use allowMatchingProperties)`)}function v(x){t.forIn("key",i,S=>{t.if((0,jm._)`${(0,NT.usePattern)(e,x)}.test(${S})`,()=>{let P=l.includes(x);P||e.subschema({keyword:"patternProperties",schemaProp:x,dataProp:S,dataPropType:DT.Type.Str},p),o.opts.unevaluated&&f!==!0?t.assign((0,jm._)`${f}[${S}]`,!0):!P&&!o.allErrors&&t.if((0,jm.not)(p),()=>t.break())})})}}};rx.default=LZ});var MT=z(nx=>{"use strict";Object.defineProperty(nx,"__esModule",{value:!0});var FZ=_e(),VZ={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:i}=e;if((0,FZ.alwaysValidSchema)(i,r)){e.fail();return}let n=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},n),e.failResult(n,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};nx.default=VZ});var ZT=z(ix=>{"use strict";Object.defineProperty(ix,"__esModule",{value:!0});var BZ=rr(),WZ={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:BZ.validateUnion,error:{message:"must match a schema in anyOf"}};ix.default=WZ});var qT=z(ox=>{"use strict";Object.defineProperty(ox,"__esModule",{value:!0});var Om=ce(),HZ=_e(),JZ={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Om._)`{passingSchemas: ${e.passing}}`},GZ={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:JZ,code(e){let{gen:t,schema:r,parentSchema:i,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(n.opts.discriminator&&i.discriminator)return;let o=r,a=t.let("valid",!1),s=t.let("passing",null),l=t.name("_valid");e.setParams({passing:s}),t.block(d),e.result(a,()=>e.reset(),()=>e.error(!0));function d(){o.forEach((p,f)=>{let g;(0,HZ.alwaysValidSchema)(n,p)?t.var(l,!0):g=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},l),f>0&&t.if((0,Om._)`${l} && ${a}`).assign(a,!1).assign(s,(0,Om._)`[${s}, ${f}]`).else(),t.if(l,()=>{t.assign(a,!0),t.assign(s,f),g&&e.mergeEvaluated(g,Om.Name)})})}}};ox.default=GZ});var LT=z(ax=>{"use strict";Object.defineProperty(ax,"__esModule",{value:!0});var KZ=_e(),YZ={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let n=t.name("valid");r.forEach((o,a)=>{if((0,KZ.alwaysValidSchema)(i,o))return;let s=e.subschema({keyword:"allOf",schemaProp:a},n);e.ok(n),e.mergeEvaluated(s)})}};ax.default=YZ});var BT=z(sx=>{"use strict";Object.defineProperty(sx,"__esModule",{value:!0});var Am=ce(),VT=_e(),XZ={message:({params:e})=>(0,Am.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Am._)`{failingKeyword: ${e.ifClause}}`},QZ={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:XZ,code(e){let{gen:t,parentSchema:r,it:i}=e;r.then===void 0&&r.else===void 0&&(0,VT.checkStrictMode)(i,'"if" without "then" and "else" is ignored');let n=FT(i,"then"),o=FT(i,"else");if(!n&&!o)return;let a=t.let("valid",!0),s=t.name("_valid");if(l(),e.reset(),n&&o){let p=t.let("ifClause");e.setParams({ifClause:p}),t.if(s,d("then",p),d("else",p))}else n?t.if(s,d("then")):t.if((0,Am.not)(s),d("else"));e.pass(a,()=>e.error(!0));function l(){let p=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(p)}function d(p,f){return()=>{let g=e.subschema({keyword:p},s);t.assign(a,s),e.mergeValidEvaluated(g,a),f?t.assign(f,(0,Am._)`${p}`):e.setParams({ifClause:p})}}}};function FT(e,t){let r=e.schema[t];return r!==void 0&&!(0,VT.alwaysValidSchema)(e,r)}sx.default=QZ});var WT=z(cx=>{"use strict";Object.defineProperty(cx,"__esModule",{value:!0});var eq=_e(),tq={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,eq.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};cx.default=tq});var HT=z(lx=>{"use strict";Object.defineProperty(lx,"__esModule",{value:!0});var rq=Bb(),nq=wT(),iq=Wb(),oq=kT(),aq=zT(),sq=IT(),cq=RT(),lq=Qb(),uq=AT(),dq=UT(),pq=MT(),mq=ZT(),fq=qT(),hq=LT(),gq=BT(),vq=WT();function yq(e=!1){let t=[pq.default,mq.default,fq.default,hq.default,gq.default,vq.default,cq.default,lq.default,sq.default,uq.default,dq.default];return e?t.push(nq.default,oq.default):t.push(rq.default,iq.default),t.push(aq.default),t}lx.default=yq});var JT=z(ux=>{"use strict";Object.defineProperty(ux,"__esModule",{value:!0});var Je=ce(),bq={message:({schemaCode:e})=>(0,Je.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Je._)`{format: ${e}}`},xq={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:bq,code(e,t){let{gen:r,data:i,$data:n,schema:o,schemaCode:a,it:s}=e,{opts:l,errSchemaPath:d,schemaEnv:p,self:f}=s;if(!l.validateFormats)return;n?g():y();function g(){let v=r.scopeValue("formats",{ref:f.formats,code:l.code.formats}),x=r.const("fDef",(0,Je._)`${v}[${a}]`),S=r.let("fType"),P=r.let("format");r.if((0,Je._)`typeof ${x} == "object" && !(${x} instanceof RegExp)`,()=>r.assign(S,(0,Je._)`${x}.type || "string"`).assign(P,(0,Je._)`${x}.validate`),()=>r.assign(S,(0,Je._)`"string"`).assign(P,x)),e.fail$data((0,Je.or)(U(),C()));function U(){return l.strictSchema===!1?Je.nil:(0,Je._)`${a} && !${P}`}function C(){let M=p.$async?(0,Je._)`(${x}.async ? await ${P}(${i}) : ${P}(${i}))`:(0,Je._)`${P}(${i})`,D=(0,Je._)`(typeof ${P} == "function" ? ${M} : ${P}.test(${i}))`;return(0,Je._)`${P} && ${P} !== true && ${S} === ${t} && !${D}`}}function y(){let v=f.formats[o];if(!v){U();return}if(v===!0)return;let[x,S,P]=C(v);x===t&&e.pass(M());function U(){if(l.strictSchema===!1){f.logger.warn(D());return}throw new Error(D());function D(){return`unknown format "${o}" ignored in schema at path "${d}"`}}function C(D){let le=D instanceof RegExp?(0,Je.regexpCode)(D):l.code.formats?(0,Je._)`${l.code.formats}${(0,Je.getProperty)(o)}`:void 0,Le=r.scopeValue("formats",{key:o,ref:D,code:le});return typeof D=="object"&&!(D instanceof RegExp)?[D.type||"string",D.validate,(0,Je._)`${Le}.validate`]:["string",D,Le]}function M(){if(typeof v=="object"&&!(v instanceof RegExp)&&v.async){if(!p.$async)throw new Error("async format in sync schema");return(0,Je._)`await ${P}(${i})`}return typeof S=="function"?(0,Je._)`${P}(${i})`:(0,Je._)`${P}.test(${i})`}}}};ux.default=xq});var GT=z(dx=>{"use strict";Object.defineProperty(dx,"__esModule",{value:!0});var _q=JT(),$q=[_q.default];dx.default=$q});var KT=z(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});ma.contentVocabulary=ma.metadataVocabulary=void 0;ma.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];ma.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var XT=z(px=>{"use strict";Object.defineProperty(px,"__esModule",{value:!0});var wq=oT(),Sq=bT(),kq=HT(),zq=GT(),YT=KT(),Tq=[wq.default,Sq.default,(0,kq.default)(),zq.default,YT.metadataVocabulary,YT.contentVocabulary];px.default=Tq});var eP=z(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});Nm.DiscrError=void 0;var QT;(function(e){e.Tag="tag",e.Mapping="mapping"})(QT||(Nm.DiscrError=QT={}))});var rP=z(fx=>{"use strict";Object.defineProperty(fx,"__esModule",{value:!0});var fa=ce(),mx=eP(),tP=vm(),Pq=xc(),Iq=_e(),Eq={message:({params:{discrError:e,tagName:t}})=>e===mx.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,fa._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},Rq={keyword:"discriminator",type:"object",schemaType:"object",error:Eq,code(e){let{gen:t,data:r,schema:i,parentSchema:n,it:o}=e,{oneOf:a}=n;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");let s=i.propertyName;if(typeof s!="string")throw new Error("discriminator: requires propertyName");if(i.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let l=t.let("valid",!1),d=t.const("tag",(0,fa._)`${r}${(0,fa.getProperty)(s)}`);t.if((0,fa._)`typeof ${d} == "string"`,()=>p(),()=>e.error(!1,{discrError:mx.DiscrError.Tag,tag:d,tagName:s})),e.ok(l);function p(){let y=g();t.if(!1);for(let v in y)t.elseIf((0,fa._)`${d} === ${v}`),t.assign(l,f(y[v]));t.else(),e.error(!1,{discrError:mx.DiscrError.Mapping,tag:d,tagName:s}),t.endIf()}function f(y){let v=t.name("valid"),x=e.subschema({keyword:"oneOf",schemaProp:y},v);return e.mergeEvaluated(x,fa.Name),v}function g(){var y;let v={},x=P(n),S=!0;for(let M=0;M<a.length;M++){let D=a[M];if(D?.$ref&&!(0,Iq.schemaHasRulesButRef)(D,o.self.RULES)){let Le=D.$ref;if(D=tP.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,Le),D instanceof tP.SchemaEnv&&(D=D.schema),D===void 0)throw new Pq.default(o.opts.uriResolver,o.baseId,Le)}let le=(y=D?.properties)===null||y===void 0?void 0:y[s];if(typeof le!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${s}"`);S=S&&(x||P(D)),U(le,M)}if(!S)throw new Error(`discriminator: "${s}" must be required`);return v;function P({required:M}){return Array.isArray(M)&&M.includes(s)}function U(M,D){if(M.const)C(M.const,D);else if(M.enum)for(let le of M.enum)C(le,D);else throw new Error(`discriminator: "properties/${s}" must have "const" or "enum"`)}function C(M,D){if(typeof M!="string"||M in v)throw new Error(`discriminator: "${s}" values must be unique strings`);v[M]=D}}}};fx.default=Rq});var nP=z((IG,jq)=>{jq.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var gx=z((Ze,hx)=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.MissingRefError=Ze.ValidationError=Ze.CodeGen=Ze.Name=Ze.nil=Ze.stringify=Ze.str=Ze._=Ze.KeywordCxt=Ze.Ajv=void 0;var Oq=Qz(),Aq=XT(),Nq=rP(),iP=nP(),Cq=["/properties"],Cm="http://json-schema.org/draft-07/schema",ha=class extends Oq.default{_addVocabularies(){super._addVocabularies(),Aq.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(Nq.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(iP,Cq):iP;this.addMetaSchema(t,Cm,!1),this.refs["http://json-schema.org/schema"]=Cm}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Cm)?Cm:void 0)}};Ze.Ajv=ha;hx.exports=Ze=ha;hx.exports.Ajv=ha;Object.defineProperty(Ze,"__esModule",{value:!0});Ze.default=ha;var Dq=bc();Object.defineProperty(Ze,"KeywordCxt",{enumerable:!0,get:function(){return Dq.KeywordCxt}});var ga=ce();Object.defineProperty(Ze,"_",{enumerable:!0,get:function(){return ga._}});Object.defineProperty(Ze,"str",{enumerable:!0,get:function(){return ga.str}});Object.defineProperty(Ze,"stringify",{enumerable:!0,get:function(){return ga.stringify}});Object.defineProperty(Ze,"nil",{enumerable:!0,get:function(){return ga.nil}});Object.defineProperty(Ze,"Name",{enumerable:!0,get:function(){return ga.Name}});Object.defineProperty(Ze,"CodeGen",{enumerable:!0,get:function(){return ga.CodeGen}});var Uq=hm();Object.defineProperty(Ze,"ValidationError",{enumerable:!0,get:function(){return Uq.default}});var Mq=xc();Object.defineProperty(Ze,"MissingRefError",{enumerable:!0,get:function(){return Mq.default}})});var pP=z(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.formatNames=Cr.fastFormats=Cr.fullFormats=void 0;function Nr(e,t){return{validate:e,compare:t}}Cr.fullFormats={date:Nr(cP,xx),time:Nr(yx(!0),_x),"date-time":Nr(oP(!0),uP),"iso-time":Nr(yx(),lP),"iso-date-time":Nr(oP(),dP),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:Bq,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:Xq,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:Wq,int32:{type:"number",validate:Gq},int64:{type:"number",validate:Kq},float:{type:"number",validate:sP},double:{type:"number",validate:sP},password:!0,binary:!0};Cr.fastFormats={...Cr.fullFormats,date:Nr(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,xx),time:Nr(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,_x),"date-time":Nr(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uP),"iso-time":Nr(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,lP),"iso-date-time":Nr(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,dP),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};Cr.formatNames=Object.keys(Cr.fullFormats);function Zq(e){return e%4===0&&(e%100!==0||e%400===0)}var qq=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Lq=[0,31,28,31,30,31,30,31,31,30,31,30,31];function cP(e){let t=qq.exec(e);if(!t)return!1;let r=+t[1],i=+t[2],n=+t[3];return i>=1&&i<=12&&n>=1&&n<=(i===2&&Zq(r)?29:Lq[i])}function xx(e,t){if(e&&t)return e>t?1:e<t?-1:0}var vx=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function yx(e){return function(r){let i=vx.exec(r);if(!i)return!1;let n=+i[1],o=+i[2],a=+i[3],s=i[4],l=i[5]==="-"?-1:1,d=+(i[6]||0),p=+(i[7]||0);if(d>23||p>59||e&&!s)return!1;if(n<=23&&o<=59&&a<60)return!0;let f=o-p*l,g=n-d*l-(f<0?1:0);return(g===23||g===-1)&&(f===59||f===-1)&&a<61}}function _x(e,t){if(!(e&&t))return;let r=new Date("2020-01-01T"+e).valueOf(),i=new Date("2020-01-01T"+t).valueOf();if(r&&i)return r-i}function lP(e,t){if(!(e&&t))return;let r=vx.exec(e),i=vx.exec(t);if(r&&i)return e=r[1]+r[2]+r[3],t=i[1]+i[2]+i[3],e>t?1:e<t?-1:0}var bx=/t|\s/i;function oP(e){let t=yx(e);return function(i){let n=i.split(bx);return n.length===2&&cP(n[0])&&t(n[1])}}function uP(e,t){if(!(e&&t))return;let r=new Date(e).valueOf(),i=new Date(t).valueOf();if(r&&i)return r-i}function dP(e,t){if(!(e&&t))return;let[r,i]=e.split(bx),[n,o]=t.split(bx),a=xx(r,n);if(a!==void 0)return a||_x(i,o)}var Fq=/\/|:/,Vq=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function Bq(e){return Fq.test(e)&&Vq.test(e)}var aP=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function Wq(e){return aP.lastIndex=0,aP.test(e)}var Hq=-(2**31),Jq=2**31-1;function Gq(e){return Number.isInteger(e)&&e<=Jq&&e>=Hq}function Kq(e){return Number.isInteger(e)}function sP(){return!0}var Yq=/[^\\]\\Z/;function Xq(e){if(Yq.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var mP=z(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});va.formatLimitDefinition=void 0;var Qq=gx(),$r=ce(),Gn=$r.operators,Dm={formatMaximum:{okStr:"<=",ok:Gn.LTE,fail:Gn.GT},formatMinimum:{okStr:">=",ok:Gn.GTE,fail:Gn.LT},formatExclusiveMaximum:{okStr:"<",ok:Gn.LT,fail:Gn.GTE},formatExclusiveMinimum:{okStr:">",ok:Gn.GT,fail:Gn.LTE}},e6={message:({keyword:e,schemaCode:t})=>(0,$r.str)`should be ${Dm[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,$r._)`{comparison: ${Dm[e].okStr}, limit: ${t}}`};va.formatLimitDefinition={keyword:Object.keys(Dm),type:"string",schemaType:"string",$data:!0,error:e6,code(e){let{gen:t,data:r,schemaCode:i,keyword:n,it:o}=e,{opts:a,self:s}=o;if(!a.validateFormats)return;let l=new Qq.KeywordCxt(o,s.RULES.all.format.definition,"format");l.$data?d():p();function d(){let g=t.scopeValue("formats",{ref:s.formats,code:a.code.formats}),y=t.const("fmt",(0,$r._)`${g}[${l.schemaCode}]`);e.fail$data((0,$r.or)((0,$r._)`typeof ${y} != "object"`,(0,$r._)`${y} instanceof RegExp`,(0,$r._)`typeof ${y}.compare != "function"`,f(y)))}function p(){let g=l.schema,y=s.formats[g];if(!y||y===!0)return;if(typeof y!="object"||y instanceof RegExp||typeof y.compare!="function")throw new Error(`"${n}": format "${g}" does not define "compare" function`);let v=t.scopeValue("formats",{key:g,ref:y,code:a.code.formats?(0,$r._)`${a.code.formats}${(0,$r.getProperty)(g)}`:void 0});e.fail$data(f(v))}function f(g){return(0,$r._)`${g}.compare(${r}, ${i}) ${Dm[n].fail} 0`}},dependencies:["format"]};var t6=e=>(e.addKeyword(va.formatLimitDefinition),e);va.default=t6});var vP=z((Ac,gP)=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});var ya=pP(),r6=mP(),$x=ce(),fP=new $x.Name("fullFormats"),n6=new $x.Name("fastFormats"),wx=(e,t={keywords:!0})=>{if(Array.isArray(t))return hP(e,t,ya.fullFormats,fP),e;let[r,i]=t.mode==="fast"?[ya.fastFormats,n6]:[ya.fullFormats,fP],n=t.formats||ya.formatNames;return hP(e,n,r,i),t.keywords&&(0,r6.default)(e),e};wx.get=(e,t="full")=>{let i=(t==="fast"?ya.fastFormats:ya.fullFormats)[e];if(!i)throw new Error(`Unknown format "${e}"`);return i};function hP(e,t,r,i){var n,o;(n=(o=e.opts.code).formats)!==null&&n!==void 0||(o.formats=(0,$x._)`require("ajv-formats/dist/formats").${i}`);for(let a of t)e.addFormat(a,r[a])}gP.exports=Ac=wx;Object.defineProperty(Ac,"__esModule",{value:!0});Ac.default=wx});var OP=z((u5,jP)=>{var RP=require("stream").Stream,p6=require("util");jP.exports=wr;function wr(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}p6.inherits(wr,RP);wr.create=function(e,t){var r=new this;t=t||{};for(var i in t)r[i]=t[i];r.source=e;var n=e.emit;return e.emit=function(){return r._handleEmit(arguments),n.apply(e,arguments)},e.on("error",function(){}),r.pauseStream&&e.pause(),r};Object.defineProperty(wr.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});wr.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};wr.prototype.resume=function(){this._released||this.release(),this.source.resume()};wr.prototype.pause=function(){this.source.pause()};wr.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};wr.prototype.pipe=function(){var e=RP.prototype.pipe.apply(this,arguments);return this.resume(),e};wr.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]==="data"&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)};wr.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}});var DP=z((d5,CP)=>{var m6=require("util"),NP=require("stream").Stream,AP=OP();CP.exports=Be;function Be(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}m6.inherits(Be,NP);Be.create=function(e){var t=new this;e=e||{};for(var r in e)t[r]=e[r];return t};Be.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};Be.prototype.append=function(e){var t=Be.isStreamLike(e);if(t){if(!(e instanceof AP)){var r=AP.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=r}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this};Be.prototype.pipe=function(e,t){return NP.prototype.pipe.call(this,e,t),this.resume(),e};Be.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};Be.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e>"u"){this.end();return}if(typeof e!="function"){this._pipeNext(e);return}var t=e;t(function(r){var i=Be.isStreamLike(r);i&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))};Be.prototype._pipeNext=function(e){this._currentStream=e;var t=Be.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var r=e;this.write(r),this._getNext()};Be.prototype._handleErrors=function(e){var t=this;e.on("error",function(r){t._emitError(r)})};Be.prototype.write=function(e){this.emit("data",e)};Be.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};Be.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};Be.prototype.end=function(){this._reset(),this.emit("end")};Be.prototype.destroy=function(){this._reset(),this.emit("close")};Be.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};Be.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};Be.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};Be.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var UP=z((p5,f6)=>{f6.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}});var ZP=z((m5,MP)=>{MP.exports=UP()});var Ex=z(Ot=>{"use strict";var Jm=ZP(),h6=require("path").extname,qP=/^\s*([^;\s]*)(?:;|\s|$)/,g6=/^text\//i;Ot.charset=LP;Ot.charsets={lookup:LP};Ot.contentType=v6;Ot.extension=y6;Ot.extensions=Object.create(null);Ot.lookup=b6;Ot.types=Object.create(null);x6(Ot.extensions,Ot.types);function LP(e){if(!e||typeof e!="string")return!1;var t=qP.exec(e),r=t&&Jm[t[1].toLowerCase()];return r&&r.charset?r.charset:t&&g6.test(t[1])?"UTF-8":!1}function v6(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?Ot.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var r=Ot.charset(t);r&&(t+="; charset="+r.toLowerCase())}return t}function y6(e){if(!e||typeof e!="string")return!1;var t=qP.exec(e),r=t&&Ot.extensions[t[1].toLowerCase()];return!r||!r.length?!1:r[0]}function b6(e){if(!e||typeof e!="string")return!1;var t=h6("x."+e).toLowerCase().substr(1);return t&&Ot.types[t]||!1}function x6(e,t){var r=["nginx","apache",void 0,"iana"];Object.keys(Jm).forEach(function(n){var o=Jm[n],a=o.extensions;if(!(!a||!a.length)){e[n]=a;for(var s=0;s<a.length;s++){var l=a[s];if(t[l]){var d=r.indexOf(Jm[t[l]].source),p=r.indexOf(o.source);if(t[l]!=="application/octet-stream"&&(d>p||d===p&&t[l].substr(0,12)==="application/"))continue}t[l]=n}}})}});var VP=z((h5,FP)=>{FP.exports=_6;function _6(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}});var Rx=z((g5,WP)=>{var BP=VP();WP.exports=$6;function $6(e){var t=!1;return BP(function(){t=!0}),function(i,n){t?e(i,n):BP(function(){e(i,n)})}}});var jx=z((v5,HP)=>{HP.exports=w6;function w6(e){Object.keys(e.jobs).forEach(S6.bind(e)),e.jobs={}}function S6(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}});var Ox=z((y5,GP)=>{var JP=Rx(),k6=jx();GP.exports=z6;function z6(e,t,r,i){var n=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[n]=T6(t,n,e[n],function(o,a){n in r.jobs&&(delete r.jobs[n],o?k6(r):r.results[n]=a,i(o,r.results))})}function T6(e,t,r,i){var n;return e.length==2?n=e(r,JP(i)):n=e(r,t,JP(i)),n}});var Ax=z((b5,KP)=>{KP.exports=P6;function P6(e,t){var r=!Array.isArray(e),i={index:0,keyedList:r||t?Object.keys(e):null,jobs:{},results:r?{}:[],size:r?Object.keys(e).length:e.length};return t&&i.keyedList.sort(r?t:function(n,o){return t(e[n],e[o])}),i}});var Nx=z((x5,YP)=>{var I6=jx(),E6=Rx();YP.exports=R6;function R6(e){Object.keys(this.jobs).length&&(this.index=this.size,I6(this),E6(e)(null,this.results))}});var QP=z((_5,XP)=>{var j6=Ox(),O6=Ax(),A6=Nx();XP.exports=N6;function N6(e,t,r){for(var i=O6(e);i.index<(i.keyedList||e).length;)j6(e,t,i,function(n,o){if(n){r(n,o);return}if(Object.keys(i.jobs).length===0){r(null,i.results);return}}),i.index++;return A6.bind(i,r)}});var Cx=z(($5,Gm)=>{var eI=Ox(),C6=Ax(),D6=Nx();Gm.exports=U6;Gm.exports.ascending=tI;Gm.exports.descending=M6;function U6(e,t,r,i){var n=C6(e,r);return eI(e,t,n,function o(a,s){if(a){i(a,s);return}if(n.index++,n.index<(n.keyedList||e).length){eI(e,t,n,o);return}i(null,n.results)}),D6.bind(n,i)}function tI(e,t){return e<t?-1:e>t?1:0}function M6(e,t){return-1*tI(e,t)}});var nI=z((w5,rI)=>{var Z6=Cx();rI.exports=q6;function q6(e,t,r){return Z6(e,t,null,r)}});var oI=z((S5,iI)=>{iI.exports={parallel:QP(),serial:nI(),serialOrdered:Cx()}});var Dx=z((k5,aI)=>{"use strict";aI.exports=Object});var cI=z((z5,sI)=>{"use strict";sI.exports=Error});var uI=z((T5,lI)=>{"use strict";lI.exports=EvalError});var pI=z((P5,dI)=>{"use strict";dI.exports=RangeError});var fI=z((I5,mI)=>{"use strict";mI.exports=ReferenceError});var gI=z((E5,hI)=>{"use strict";hI.exports=SyntaxError});var Km=z((R5,vI)=>{"use strict";vI.exports=TypeError});var bI=z((j5,yI)=>{"use strict";yI.exports=URIError});var _I=z((O5,xI)=>{"use strict";xI.exports=Math.abs});var wI=z((A5,$I)=>{"use strict";$I.exports=Math.floor});var kI=z((N5,SI)=>{"use strict";SI.exports=Math.max});var TI=z((C5,zI)=>{"use strict";zI.exports=Math.min});var II=z((D5,PI)=>{"use strict";PI.exports=Math.pow});var RI=z((U5,EI)=>{"use strict";EI.exports=Math.round});var OI=z((M5,jI)=>{"use strict";jI.exports=Number.isNaN||function(t){return t!==t}});var NI=z((Z5,AI)=>{"use strict";var L6=OI();AI.exports=function(t){return L6(t)||t===0?t:t<0?-1:1}});var DI=z((q5,CI)=>{"use strict";CI.exports=Object.getOwnPropertyDescriptor});var Ux=z((L5,UI)=>{"use strict";var Ym=DI();if(Ym)try{Ym([],"length")}catch{Ym=null}UI.exports=Ym});var ZI=z((F5,MI)=>{"use strict";var Xm=Object.defineProperty||!1;if(Xm)try{Xm({},"a",{value:1})}catch{Xm=!1}MI.exports=Xm});var Mx=z((V5,qI)=>{"use strict";qI.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var n=42;t[r]=n;for(var o in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==n||s.enumerable!==!0)return!1}return!0}});var VI=z((B5,FI)=>{"use strict";var LI=typeof Symbol<"u"&&Symbol,F6=Mx();FI.exports=function(){return typeof LI!="function"||typeof Symbol!="function"||typeof LI("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:F6()}});var Zx=z((W5,BI)=>{"use strict";BI.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var qx=z((H5,WI)=>{"use strict";var V6=Dx();WI.exports=V6.getPrototypeOf||null});var GI=z((J5,JI)=>{"use strict";var B6="Function.prototype.bind called on incompatible ",W6=Object.prototype.toString,H6=Math.max,J6="[object Function]",HI=function(t,r){for(var i=[],n=0;n<t.length;n+=1)i[n]=t[n];for(var o=0;o<r.length;o+=1)i[o+t.length]=r[o];return i},G6=function(t,r){for(var i=[],n=r||0,o=0;n<t.length;n+=1,o+=1)i[o]=t[n];return i},K6=function(e,t){for(var r="",i=0;i<e.length;i+=1)r+=e[i],i+1<e.length&&(r+=t);return r};JI.exports=function(t){var r=this;if(typeof r!="function"||W6.apply(r)!==J6)throw new TypeError(B6+r);for(var i=G6(arguments,1),n,o=function(){if(this instanceof n){var p=r.apply(this,HI(i,arguments));return Object(p)===p?p:this}return r.apply(t,HI(i,arguments))},a=H6(0,r.length-i.length),s=[],l=0;l<a;l++)s[l]="$"+l;if(n=Function("binder","return function ("+K6(s,",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var d=function(){};d.prototype=r.prototype,n.prototype=new d,d.prototype=null}return n}});var Cc=z((G5,KI)=>{"use strict";var Y6=GI();KI.exports=Function.prototype.bind||Y6});var Qm=z((K5,YI)=>{"use strict";YI.exports=Function.prototype.call});var Lx=z((Y5,XI)=>{"use strict";XI.exports=Function.prototype.apply});var eE=z((X5,QI)=>{"use strict";QI.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var rE=z((Q5,tE)=>{"use strict";var X6=Cc(),Q6=Lx(),eL=Qm(),tL=eE();tE.exports=tL||X6.call(eL,Q6)});var iE=z((eK,nE)=>{"use strict";var rL=Cc(),nL=Km(),iL=Qm(),oL=rE();nE.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new nL("a function is required");return oL(rL,iL,t)}});var uE=z((tK,lE)=>{"use strict";var aL=iE(),oE=Ux(),sE;try{sE=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Fx=!!sE&&oE&&oE(Object.prototype,"__proto__"),cE=Object,aE=cE.getPrototypeOf;lE.exports=Fx&&typeof Fx.get=="function"?aL([Fx.get]):typeof aE=="function"?function(t){return aE(t==null?t:cE(t))}:!1});var hE=z((rK,fE)=>{"use strict";var dE=Zx(),pE=qx(),mE=uE();fE.exports=dE?function(t){return dE(t)}:pE?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return pE(t)}:mE?function(t){return mE(t)}:null});var ef=z((nK,gE)=>{"use strict";var sL=Function.prototype.call,cL=Object.prototype.hasOwnProperty,lL=Cc();gE.exports=lL.call(sL,cL)});var wE=z((iK,$E)=>{"use strict";var he,uL=Dx(),dL=cI(),pL=uI(),mL=pI(),fL=fI(),$a=gI(),_a=Km(),hL=bI(),gL=_I(),vL=wI(),yL=kI(),bL=TI(),xL=II(),_L=RI(),$L=NI(),xE=Function,Vx=function(e){try{return xE('"use strict"; return ('+e+").constructor;")()}catch{}},Dc=Ux(),wL=ZI(),Bx=function(){throw new _a},SL=Dc?(function(){try{return arguments.callee,Bx}catch{try{return Dc(arguments,"callee").get}catch{return Bx}}})():Bx,ba=VI()(),Qe=hE(),kL=qx(),zL=Zx(),_E=Lx(),Uc=Qm(),xa={},TL=typeof Uint8Array>"u"||!Qe?he:Qe(Uint8Array),Zi={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?he:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?he:ArrayBuffer,"%ArrayIteratorPrototype%":ba&&Qe?Qe([][Symbol.iterator]()):he,"%AsyncFromSyncIteratorPrototype%":he,"%AsyncFunction%":xa,"%AsyncGenerator%":xa,"%AsyncGeneratorFunction%":xa,"%AsyncIteratorPrototype%":xa,"%Atomics%":typeof Atomics>"u"?he:Atomics,"%BigInt%":typeof BigInt>"u"?he:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?he:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?he:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?he:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":dL,"%eval%":eval,"%EvalError%":pL,"%Float16Array%":typeof Float16Array>"u"?he:Float16Array,"%Float32Array%":typeof Float32Array>"u"?he:Float32Array,"%Float64Array%":typeof Float64Array>"u"?he:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?he:FinalizationRegistry,"%Function%":xE,"%GeneratorFunction%":xa,"%Int8Array%":typeof Int8Array>"u"?he:Int8Array,"%Int16Array%":typeof Int16Array>"u"?he:Int16Array,"%Int32Array%":typeof Int32Array>"u"?he:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ba&&Qe?Qe(Qe([][Symbol.iterator]())):he,"%JSON%":typeof JSON=="object"?JSON:he,"%Map%":typeof Map>"u"?he:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ba||!Qe?he:Qe(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":uL,"%Object.getOwnPropertyDescriptor%":Dc,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?he:Promise,"%Proxy%":typeof Proxy>"u"?he:Proxy,"%RangeError%":mL,"%ReferenceError%":fL,"%Reflect%":typeof Reflect>"u"?he:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?he:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ba||!Qe?he:Qe(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?he:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ba&&Qe?Qe(""[Symbol.iterator]()):he,"%Symbol%":ba?Symbol:he,"%SyntaxError%":$a,"%ThrowTypeError%":SL,"%TypedArray%":TL,"%TypeError%":_a,"%Uint8Array%":typeof Uint8Array>"u"?he:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?he:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?he:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?he:Uint32Array,"%URIError%":hL,"%WeakMap%":typeof WeakMap>"u"?he:WeakMap,"%WeakRef%":typeof WeakRef>"u"?he:WeakRef,"%WeakSet%":typeof WeakSet>"u"?he:WeakSet,"%Function.prototype.call%":Uc,"%Function.prototype.apply%":_E,"%Object.defineProperty%":wL,"%Object.getPrototypeOf%":kL,"%Math.abs%":gL,"%Math.floor%":vL,"%Math.max%":yL,"%Math.min%":bL,"%Math.pow%":xL,"%Math.round%":_L,"%Math.sign%":$L,"%Reflect.getPrototypeOf%":zL};if(Qe)try{null.error}catch(e){vE=Qe(Qe(e)),Zi["%Error.prototype%"]=vE}var vE,PL=function e(t){var r;if(t==="%AsyncFunction%")r=Vx("async function () {}");else if(t==="%GeneratorFunction%")r=Vx("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Vx("async function* () {}");else if(t==="%AsyncGenerator%"){var i=e("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&Qe&&(r=Qe(n.prototype))}return Zi[t]=r,r},yE={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Mc=Cc(),tf=ef(),IL=Mc.call(Uc,Array.prototype.concat),EL=Mc.call(_E,Array.prototype.splice),bE=Mc.call(Uc,String.prototype.replace),rf=Mc.call(Uc,String.prototype.slice),RL=Mc.call(Uc,RegExp.prototype.exec),jL=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,OL=/\\(\\)?/g,AL=function(t){var r=rf(t,0,1),i=rf(t,-1);if(r==="%"&&i!=="%")throw new $a("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&r!=="%")throw new $a("invalid intrinsic syntax, expected opening `%`");var n=[];return bE(t,jL,function(o,a,s,l){n[n.length]=s?bE(l,OL,"$1"):a||o}),n},NL=function(t,r){var i=t,n;if(tf(yE,i)&&(n=yE[i],i="%"+n[0]+"%"),tf(Zi,i)){var o=Zi[i];if(o===xa&&(o=PL(i)),typeof o>"u"&&!r)throw new _a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:o}}throw new $a("intrinsic "+t+" does not exist!")};$E.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new _a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new _a('"allowMissing" argument must be a boolean');if(RL(/^%?[^%]*%?$/,t)===null)throw new $a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=AL(t),n=i.length>0?i[0]:"",o=NL("%"+n+"%",r),a=o.name,s=o.value,l=!1,d=o.alias;d&&(n=d[0],EL(i,IL([0,1],d)));for(var p=1,f=!0;p<i.length;p+=1){var g=i[p],y=rf(g,0,1),v=rf(g,-1);if((y==='"'||y==="'"||y==="`"||v==='"'||v==="'"||v==="`")&&y!==v)throw new $a("property names with quotes must have matching quotes");if((g==="constructor"||!f)&&(l=!0),n+="."+g,a="%"+n+"%",tf(Zi,a))s=Zi[a];else if(s!=null){if(!(g in s)){if(!r)throw new _a("base intrinsic for "+t+" exists, but the property is not available.");return}if(Dc&&p+1>=i.length){var x=Dc(s,g);f=!!x,f&&"get"in x&&!("originalValue"in x.get)?s=x.get:s=s[g]}else f=tf(s,g),s=s[g];f&&!l&&(Zi[a]=s)}}return s}});var kE=z((oK,SE)=>{"use strict";var CL=Mx();SE.exports=function(){return CL()&&!!Symbol.toStringTag}});var PE=z((aK,TE)=>{"use strict";var DL=wE(),zE=DL("%Object.defineProperty%",!0),UL=kE()(),ML=ef(),ZL=Km(),nf=UL?Symbol.toStringTag:null;TE.exports=function(t,r){var i=arguments.length>2&&!!arguments[2]&&arguments[2].force,n=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof i<"u"&&typeof i!="boolean"||typeof n<"u"&&typeof n!="boolean")throw new ZL("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");nf&&(i||!ML(t,nf))&&(zE?zE(t,nf,{configurable:!n,enumerable:!1,value:r,writable:!1}):t[nf]=r)}});var EE=z((sK,IE)=>{"use strict";IE.exports=function(e,t){return Object.keys(t).forEach(function(r){e[r]=e[r]||t[r]}),e}});var Kx=z((cK,RE)=>{"use strict";var Gx=DP(),qL=require("util"),Wx=require("path"),LL=require("http"),FL=require("https"),VL=require("url").parse,BL=require("fs"),WL=require("stream").Stream,HL=require("crypto"),Hx=Ex(),JL=oI(),GL=PE(),Yn=ef(),Jx=EE();function we(e){if(!(this instanceof we))return new we(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Gx.call(this),e=e||{};for(var t in e)this[t]=e[t]}qL.inherits(we,Gx);we.LINE_BREAK=`\r
|
|
10
|
+
`;we.DEFAULT_CONTENT_TYPE="application/octet-stream";we.prototype.append=function(e,t,r){r=r||{},typeof r=="string"&&(r={filename:r});var i=Gx.prototype.append.bind(this);if((typeof t=="number"||t==null)&&(t=String(t)),Array.isArray(t)){this._error(new Error("Arrays are not supported."));return}var n=this._multiPartHeader(e,t,r),o=this._multiPartFooter();i(n),i(t),i(o),this._trackLength(n,t,r)};we.prototype._trackLength=function(e,t,r){var i=0;r.knownLength!=null?i+=Number(r.knownLength):Buffer.isBuffer(t)?i=t.length:typeof t=="string"&&(i=Buffer.byteLength(t)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(e)+we.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&Yn(t,"httpVersion"))&&!(t instanceof WL))&&(r.knownLength||this._valuesToMeasure.push(t))};we.prototype._lengthRetriever=function(e,t){Yn(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):BL.stat(e.path,function(r,i){if(r){t(r);return}var n=i.size-(e.start?e.start:0);t(null,n)}):Yn(e,"httpVersion")?t(null,Number(e.headers["content-length"])):Yn(e,"httpModule")?(e.on("response",function(r){e.pause(),t(null,Number(r.headers["content-length"]))}),e.resume()):t("Unknown stream")};we.prototype._multiPartHeader=function(e,t,r){if(typeof r.header=="string")return r.header;var i=this._getContentDisposition(t,r),n=this._getContentType(t,r),o="",a={"Content-Disposition":["form-data",'name="'+e+'"'].concat(i||[]),"Content-Type":[].concat(n||[])};typeof r.header=="object"&&Jx(a,r.header);var s;for(var l in a)if(Yn(a,l)){if(s=a[l],s==null)continue;Array.isArray(s)||(s=[s]),s.length&&(o+=l+": "+s.join("; ")+we.LINE_BREAK)}return"--"+this.getBoundary()+we.LINE_BREAK+o+we.LINE_BREAK};we.prototype._getContentDisposition=function(e,t){var r;if(typeof t.filepath=="string"?r=Wx.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?r=Wx.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&Yn(e,"httpVersion")&&(r=Wx.basename(e.client._httpMessage.path||"")),r)return'filename="'+r+'"'};we.prototype._getContentType=function(e,t){var r=t.contentType;return!r&&e&&e.name&&(r=Hx.lookup(e.name)),!r&&e&&e.path&&(r=Hx.lookup(e.path)),!r&&e&&e.readable&&Yn(e,"httpVersion")&&(r=e.headers["content-type"]),!r&&(t.filepath||t.filename)&&(r=Hx.lookup(t.filepath||t.filename)),!r&&e&&typeof e=="object"&&(r=we.DEFAULT_CONTENT_TYPE),r};we.prototype._multiPartFooter=function(){return function(e){var t=we.LINE_BREAK,r=this._streams.length===0;r&&(t+=this._lastBoundary()),e(t)}.bind(this)};we.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+we.LINE_BREAK};we.prototype.getHeaders=function(e){var t,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)Yn(e,t)&&(r[t.toLowerCase()]=e[t]);return r};we.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};we.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};we.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),r=0,i=this._streams.length;r<i;r++)typeof this._streams[r]!="function"&&(Buffer.isBuffer(this._streams[r])?e=Buffer.concat([e,this._streams[r]]):e=Buffer.concat([e,Buffer.from(this._streams[r])]),(typeof this._streams[r]!="string"||this._streams[r].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(we.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};we.prototype._generateBoundary=function(){this._boundary="--------------------------"+HL.randomBytes(12).toString("hex")};we.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e};we.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};we.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}JL.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,i){if(r){e(r);return}i.forEach(function(n){t+=n}),e(null,t)})};we.prototype.submit=function(e,t){var r,i,n={method:"post"};return typeof e=="string"?(e=VL(e),i=Jx({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},n)):(i=Jx(e,n),i.port||(i.port=i.protocol==="https:"?443:80)),i.headers=this.getHeaders(e.headers),i.protocol==="https:"?r=FL.request(i):r=LL.request(i),this.getLength(function(o,a){if(o&&o!=="Unknown stream"){this._error(o);return}if(a&&r.setHeader("Content-Length",a),this.pipe(r),t){var s,l=function(d,p){return r.removeListener("error",l),r.removeListener("response",s),t.call(this,d,p)};s=l.bind(this,null),r.on("error",l),r.on("response",s)}}.bind(this)),r};we.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};we.prototype.toString=function(){return"[object FormData]"};GL(we.prototype,"FormData");RE.exports=we});var AE=z((of,OE)=>{(function(e,t){typeof of=="object"&&typeof OE<"u"?t(of):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.WebStreamsPolyfill={}))})(of,(function(e){"use strict";function t(){}function r(c){return typeof c=="object"&&c!==null||typeof c=="function"}let i=t;function n(c,u){try{Object.defineProperty(c,"name",{value:u,configurable:!0})}catch{}}let o=Promise,a=Promise.prototype.then,s=Promise.reject.bind(o);function l(c){return new o(c)}function d(c){return l(u=>u(c))}function p(c){return s(c)}function f(c,u,m){return a.call(c,u,m)}function g(c,u,m){f(f(c,u,m),void 0,i)}function y(c,u){g(c,u)}function v(c,u){g(c,void 0,u)}function x(c,u,m){return f(c,u,m)}function S(c){f(c,void 0,i)}let P=c=>{if(typeof queueMicrotask=="function")P=queueMicrotask;else{let u=d(void 0);P=m=>f(u,m)}return P(c)};function U(c,u,m){if(typeof c!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(c,u,m)}function C(c,u,m){try{return d(U(c,u,m))}catch(h){return p(h)}}let M=16384;class D{constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(u){let m=this._back,h=m;m._elements.length===M-1&&(h={_elements:[],_next:void 0}),m._elements.push(u),h!==m&&(this._back=h,m._next=h),++this._size}shift(){let u=this._front,m=u,h=this._cursor,b=h+1,$=u._elements,T=$[h];return b===M&&(m=u._next,b=0),--this._size,this._cursor=b,u!==m&&(this._front=m),$[h]=void 0,T}forEach(u){let m=this._cursor,h=this._front,b=h._elements;for(;(m!==b.length||h._next!==void 0)&&!(m===b.length&&(h=h._next,b=h._elements,m=0,b.length===0));)u(b[m]),++m}peek(){let u=this._front,m=this._cursor;return u._elements[m]}}let le=Symbol("[[AbortSteps]]"),Le=Symbol("[[ErrorSteps]]"),wt=Symbol("[[CancelSteps]]"),ei=Symbol("[[PullSteps]]"),Mr=Symbol("[[ReleaseSteps]]");function Hi(c,u){c._ownerReadableStream=u,u._reader=c,u._state==="readable"?xf(c):u._state==="closed"?RR(c):f_(c,u._storedError)}function Ji(c,u){let m=c._ownerReadableStream;return cr(m,u)}function Bt(c){let u=c._ownerReadableStream;u._state==="readable"?_f(c,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):jR(c,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),u._readableStreamController[Mr](),u._reader=void 0,c._ownerReadableStream=void 0}function Gi(c){return new TypeError("Cannot "+c+" a stream using a released reader")}function xf(c){c._closedPromise=l((u,m)=>{c._closedPromise_resolve=u,c._closedPromise_reject=m})}function f_(c,u){xf(c),_f(c,u)}function RR(c){xf(c),h_(c)}function _f(c,u){c._closedPromise_reject!==void 0&&(S(c._closedPromise),c._closedPromise_reject(u),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0)}function jR(c,u){f_(c,u)}function h_(c){c._closedPromise_resolve!==void 0&&(c._closedPromise_resolve(void 0),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0)}let g_=Number.isFinite||function(c){return typeof c=="number"&&isFinite(c)},OR=Math.trunc||function(c){return c<0?Math.ceil(c):Math.floor(c)};function AR(c){return typeof c=="object"||typeof c=="function"}function kr(c,u){if(c!==void 0&&!AR(c))throw new TypeError(`${u} is not an object.`)}function Wt(c,u){if(typeof c!="function")throw new TypeError(`${u} is not a function.`)}function NR(c){return typeof c=="object"&&c!==null||typeof c=="function"}function v_(c,u){if(!NR(c))throw new TypeError(`${u} is not an object.`)}function Zr(c,u,m){if(c===void 0)throw new TypeError(`Parameter ${u} is required in '${m}'.`)}function $f(c,u,m){if(c===void 0)throw new TypeError(`${u} is required in '${m}'.`)}function wf(c){return Number(c)}function y_(c){return c===0?0:c}function CR(c){return y_(OR(c))}function Sf(c,u){let h=Number.MAX_SAFE_INTEGER,b=Number(c);if(b=y_(b),!g_(b))throw new TypeError(`${u} is not a finite number`);if(b=CR(b),b<0||b>h)throw new TypeError(`${u} is outside the accepted range of 0 to ${h}, inclusive`);return!g_(b)||b===0?0:b}function kf(c,u){if(!gn(c))throw new TypeError(`${u} is not a ReadableStream.`)}function Ki(c){return new un(c)}function b_(c,u){c._reader._readRequests.push(u)}function zf(c,u,m){let b=c._reader._readRequests.shift();m?b._closeSteps():b._chunkSteps(u)}function Jc(c){return c._reader._readRequests.length}function x_(c){let u=c._reader;return!(u===void 0||!dn(u))}class un{constructor(u){if(Zr(u,1,"ReadableStreamDefaultReader"),kf(u,"First parameter"),vn(u))throw new TypeError("This stream has already been locked for exclusive reading by another reader");Hi(this,u),this._readRequests=new D}get closed(){return dn(this)?this._closedPromise:p(Gc("closed"))}cancel(u=void 0){return dn(this)?this._ownerReadableStream===void 0?p(Gi("cancel")):Ji(this,u):p(Gc("cancel"))}read(){if(!dn(this))return p(Gc("read"));if(this._ownerReadableStream===void 0)return p(Gi("read from"));let u,m,h=l(($,T)=>{u=$,m=T});return za(this,{_chunkSteps:$=>u({value:$,done:!1}),_closeSteps:()=>u({value:void 0,done:!0}),_errorSteps:$=>m($)}),h}releaseLock(){if(!dn(this))throw Gc("releaseLock");this._ownerReadableStream!==void 0&&DR(this)}}Object.defineProperties(un.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),n(un.prototype.cancel,"cancel"),n(un.prototype.read,"read"),n(un.prototype.releaseLock,"releaseLock"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(un.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});function dn(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_readRequests")?!1:c instanceof un}function za(c,u){let m=c._ownerReadableStream;m._disturbed=!0,m._state==="closed"?u._closeSteps():m._state==="errored"?u._errorSteps(m._storedError):m._readableStreamController[ei](u)}function DR(c){Bt(c);let u=new TypeError("Reader was released");__(c,u)}function __(c,u){let m=c._readRequests;c._readRequests=new D,m.forEach(h=>{h._errorSteps(u)})}function Gc(c){return new TypeError(`ReadableStreamDefaultReader.prototype.${c} can only be used on a ReadableStreamDefaultReader`)}let UR=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype);class $_{constructor(u,m){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=u,this._preventCancel=m}next(){let u=()=>this._nextSteps();return this._ongoingPromise=this._ongoingPromise?x(this._ongoingPromise,u,u):u(),this._ongoingPromise}return(u){let m=()=>this._returnSteps(u);return this._ongoingPromise?x(this._ongoingPromise,m,m):m()}_nextSteps(){if(this._isFinished)return Promise.resolve({value:void 0,done:!0});let u=this._reader,m,h,b=l((T,L)=>{m=T,h=L});return za(u,{_chunkSteps:T=>{this._ongoingPromise=void 0,P(()=>m({value:T,done:!1}))},_closeSteps:()=>{this._ongoingPromise=void 0,this._isFinished=!0,Bt(u),m({value:void 0,done:!0})},_errorSteps:T=>{this._ongoingPromise=void 0,this._isFinished=!0,Bt(u),h(T)}}),b}_returnSteps(u){if(this._isFinished)return Promise.resolve({value:u,done:!0});this._isFinished=!0;let m=this._reader;if(!this._preventCancel){let h=Ji(m,u);return Bt(m),x(h,()=>({value:u,done:!0}))}return Bt(m),d({value:u,done:!0})}}let w_={next(){return S_(this)?this._asyncIteratorImpl.next():p(k_("next"))},return(c){return S_(this)?this._asyncIteratorImpl.return(c):p(k_("return"))}};Object.setPrototypeOf(w_,UR);function MR(c,u){let m=Ki(c),h=new $_(m,u),b=Object.create(w_);return b._asyncIteratorImpl=h,b}function S_(c){if(!r(c)||!Object.prototype.hasOwnProperty.call(c,"_asyncIteratorImpl"))return!1;try{return c._asyncIteratorImpl instanceof $_}catch{return!1}}function k_(c){return new TypeError(`ReadableStreamAsyncIterator.${c} can only be used on a ReadableSteamAsyncIterator`)}let z_=Number.isNaN||function(c){return c!==c};var Tf,Pf,If;function Ta(c){return c.slice()}function T_(c,u,m,h,b){new Uint8Array(c).set(new Uint8Array(m,h,b),u)}let qr=c=>(typeof c.transfer=="function"?qr=u=>u.transfer():typeof structuredClone=="function"?qr=u=>structuredClone(u,{transfer:[u]}):qr=u=>u,qr(c)),pn=c=>(typeof c.detached=="boolean"?pn=u=>u.detached:pn=u=>u.byteLength===0,pn(c));function P_(c,u,m){if(c.slice)return c.slice(u,m);let h=m-u,b=new ArrayBuffer(h);return T_(b,0,c,u,h),b}function Kc(c,u){let m=c[u];if(m!=null){if(typeof m!="function")throw new TypeError(`${String(u)} is not a function`);return m}}function ZR(c){let u={[Symbol.iterator]:()=>c.iterator},m=(async function*(){return yield*u})(),h=m.next;return{iterator:m,nextMethod:h,done:!1}}let Ef=(If=(Tf=Symbol.asyncIterator)!==null&&Tf!==void 0?Tf:(Pf=Symbol.for)===null||Pf===void 0?void 0:Pf.call(Symbol,"Symbol.asyncIterator"))!==null&&If!==void 0?If:"@@asyncIterator";function I_(c,u="sync",m){if(m===void 0)if(u==="async"){if(m=Kc(c,Ef),m===void 0){let $=Kc(c,Symbol.iterator),T=I_(c,"sync",$);return ZR(T)}}else m=Kc(c,Symbol.iterator);if(m===void 0)throw new TypeError("The object is not iterable");let h=U(m,c,[]);if(!r(h))throw new TypeError("The iterator method must return an object");let b=h.next;return{iterator:h,nextMethod:b,done:!1}}function qR(c){let u=U(c.nextMethod,c.iterator,[]);if(!r(u))throw new TypeError("The iterator.next() method must return an object");return u}function LR(c){return!!c.done}function FR(c){return c.value}function VR(c){return!(typeof c!="number"||z_(c)||c<0)}function E_(c){let u=P_(c.buffer,c.byteOffset,c.byteOffset+c.byteLength);return new Uint8Array(u)}function Rf(c){let u=c._queue.shift();return c._queueTotalSize-=u.size,c._queueTotalSize<0&&(c._queueTotalSize=0),u.value}function jf(c,u,m){if(!VR(m)||m===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");c._queue.push({value:u,size:m}),c._queueTotalSize+=m}function BR(c){return c._queue.peek().value}function mn(c){c._queue=new D,c._queueTotalSize=0}function R_(c){return c===DataView}function WR(c){return R_(c.constructor)}function HR(c){return R_(c)?1:c.BYTES_PER_ELEMENT}class ti{constructor(){throw new TypeError("Illegal constructor")}get view(){if(!Of(this))throw Uf("view");return this._view}respond(u){if(!Of(this))throw Uf("respond");if(Zr(u,1,"respond"),u=Sf(u,"First parameter"),this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(pn(this._view.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");el(this._associatedReadableByteStreamController,u)}respondWithNewView(u){if(!Of(this))throw Uf("respondWithNewView");if(Zr(u,1,"respondWithNewView"),!ArrayBuffer.isView(u))throw new TypeError("You can only respond with array buffer views");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(pn(u.buffer))throw new TypeError("The given view's buffer has been detached and so cannot be used as a response");tl(this._associatedReadableByteStreamController,u)}}Object.defineProperties(ti.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),n(ti.prototype.respond,"respond"),n(ti.prototype.respondWithNewView,"respondWithNewView"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(ti.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});class Lr{constructor(){throw new TypeError("Illegal constructor")}get byobRequest(){if(!ri(this))throw Ia("byobRequest");return Df(this)}get desiredSize(){if(!ri(this))throw Ia("desiredSize");return q_(this)}close(){if(!ri(this))throw Ia("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");let u=this._controlledReadableByteStream._state;if(u!=="readable")throw new TypeError(`The stream (in ${u} state) is not in the readable state and cannot be closed`);Pa(this)}enqueue(u){if(!ri(this))throw Ia("enqueue");if(Zr(u,1,"enqueue"),!ArrayBuffer.isView(u))throw new TypeError("chunk must be an array buffer view");if(u.byteLength===0)throw new TypeError("chunk must have non-zero byteLength");if(u.buffer.byteLength===0)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");let m=this._controlledReadableByteStream._state;if(m!=="readable")throw new TypeError(`The stream (in ${m} state) is not in the readable state and cannot be enqueued to`);Qc(this,u)}error(u=void 0){if(!ri(this))throw Ia("error");Ht(this,u)}[wt](u){j_(this),mn(this);let m=this._cancelAlgorithm(u);return Xc(this),m}[ei](u){let m=this._controlledReadableByteStream;if(this._queueTotalSize>0){Z_(this,u);return}let h=this._autoAllocateChunkSize;if(h!==void 0){let b;try{b=new ArrayBuffer(h)}catch(T){u._errorSteps(T);return}let $={buffer:b,bufferByteLength:h,byteOffset:0,byteLength:h,bytesFilled:0,minimumFill:1,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push($)}b_(m,u),ni(this)}[Mr](){if(this._pendingPullIntos.length>0){let u=this._pendingPullIntos.peek();u.readerType="none",this._pendingPullIntos=new D,this._pendingPullIntos.push(u)}}}Object.defineProperties(Lr.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),n(Lr.prototype.close,"close"),n(Lr.prototype.enqueue,"enqueue"),n(Lr.prototype.error,"error"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Lr.prototype,Symbol.toStringTag,{value:"ReadableByteStreamController",configurable:!0});function ri(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledReadableByteStream")?!1:c instanceof Lr}function Of(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_associatedReadableByteStreamController")?!1:c instanceof ti}function ni(c){if(!XR(c))return;if(c._pulling){c._pullAgain=!0;return}c._pulling=!0;let m=c._pullAlgorithm();g(m,()=>(c._pulling=!1,c._pullAgain&&(c._pullAgain=!1,ni(c)),null),h=>(Ht(c,h),null))}function j_(c){Nf(c),c._pendingPullIntos=new D}function Af(c,u){let m=!1;c._state==="closed"&&(m=!0);let h=O_(u);u.readerType==="default"?zf(c,h,m):ij(c,h,m)}function O_(c){let u=c.bytesFilled,m=c.elementSize;return new c.viewConstructor(c.buffer,c.byteOffset,u/m)}function Yc(c,u,m,h){c._queue.push({buffer:u,byteOffset:m,byteLength:h}),c._queueTotalSize+=h}function A_(c,u,m,h){let b;try{b=P_(u,m,m+h)}catch($){throw Ht(c,$),$}Yc(c,b,0,h)}function N_(c,u){u.bytesFilled>0&&A_(c,u.buffer,u.byteOffset,u.bytesFilled),Yi(c)}function C_(c,u){let m=Math.min(c._queueTotalSize,u.byteLength-u.bytesFilled),h=u.bytesFilled+m,b=m,$=!1,T=h%u.elementSize,L=h-T;L>=u.minimumFill&&(b=L-u.bytesFilled,$=!0);let te=c._queue;for(;b>0;){let G=te.peek(),ne=Math.min(b,G.byteLength),ue=u.byteOffset+u.bytesFilled;T_(u.buffer,ue,G.buffer,G.byteOffset,ne),G.byteLength===ne?te.shift():(G.byteOffset+=ne,G.byteLength-=ne),c._queueTotalSize-=ne,D_(c,ne,u),b-=ne}return $}function D_(c,u,m){m.bytesFilled+=u}function U_(c){c._queueTotalSize===0&&c._closeRequested?(Xc(c),Na(c._controlledReadableByteStream)):ni(c)}function Nf(c){c._byobRequest!==null&&(c._byobRequest._associatedReadableByteStreamController=void 0,c._byobRequest._view=null,c._byobRequest=null)}function Cf(c){for(;c._pendingPullIntos.length>0;){if(c._queueTotalSize===0)return;let u=c._pendingPullIntos.peek();C_(c,u)&&(Yi(c),Af(c._controlledReadableByteStream,u))}}function JR(c){let u=c._controlledReadableByteStream._reader;for(;u._readRequests.length>0;){if(c._queueTotalSize===0)return;let m=u._readRequests.shift();Z_(c,m)}}function GR(c,u,m,h){let b=c._controlledReadableByteStream,$=u.constructor,T=HR($),{byteOffset:L,byteLength:te}=u,G=m*T,ne;try{ne=qr(u.buffer)}catch(Oe){h._errorSteps(Oe);return}let ue={buffer:ne,bufferByteLength:ne.byteLength,byteOffset:L,byteLength:te,bytesFilled:0,minimumFill:G,elementSize:T,viewConstructor:$,readerType:"byob"};if(c._pendingPullIntos.length>0){c._pendingPullIntos.push(ue),V_(b,h);return}if(b._state==="closed"){let Oe=new $(ue.buffer,ue.byteOffset,0);h._closeSteps(Oe);return}if(c._queueTotalSize>0){if(C_(c,ue)){let Oe=O_(ue);U_(c),h._chunkSteps(Oe);return}if(c._closeRequested){let Oe=new TypeError("Insufficient bytes to fill elements in the given buffer");Ht(c,Oe),h._errorSteps(Oe);return}}c._pendingPullIntos.push(ue),V_(b,h),ni(c)}function KR(c,u){u.readerType==="none"&&Yi(c);let m=c._controlledReadableByteStream;if(Mf(m))for(;B_(m)>0;){let h=Yi(c);Af(m,h)}}function YR(c,u,m){if(D_(c,u,m),m.readerType==="none"){N_(c,m),Cf(c);return}if(m.bytesFilled<m.minimumFill)return;Yi(c);let h=m.bytesFilled%m.elementSize;if(h>0){let b=m.byteOffset+m.bytesFilled;A_(c,m.buffer,b-h,h)}m.bytesFilled-=h,Af(c._controlledReadableByteStream,m),Cf(c)}function M_(c,u){let m=c._pendingPullIntos.peek();Nf(c),c._controlledReadableByteStream._state==="closed"?KR(c,m):YR(c,u,m),ni(c)}function Yi(c){return c._pendingPullIntos.shift()}function XR(c){let u=c._controlledReadableByteStream;return u._state!=="readable"||c._closeRequested||!c._started?!1:!!(x_(u)&&Jc(u)>0||Mf(u)&&B_(u)>0||q_(c)>0)}function Xc(c){c._pullAlgorithm=void 0,c._cancelAlgorithm=void 0}function Pa(c){let u=c._controlledReadableByteStream;if(!(c._closeRequested||u._state!=="readable")){if(c._queueTotalSize>0){c._closeRequested=!0;return}if(c._pendingPullIntos.length>0){let m=c._pendingPullIntos.peek();if(m.bytesFilled%m.elementSize!==0){let h=new TypeError("Insufficient bytes to fill elements in the given buffer");throw Ht(c,h),h}}Xc(c),Na(u)}}function Qc(c,u){let m=c._controlledReadableByteStream;if(c._closeRequested||m._state!=="readable")return;let{buffer:h,byteOffset:b,byteLength:$}=u;if(pn(h))throw new TypeError("chunk's buffer is detached and so cannot be enqueued");let T=qr(h);if(c._pendingPullIntos.length>0){let L=c._pendingPullIntos.peek();if(pn(L.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be filled with an enqueued chunk");Nf(c),L.buffer=qr(L.buffer),L.readerType==="none"&&N_(c,L)}if(x_(m))if(JR(c),Jc(m)===0)Yc(c,T,b,$);else{c._pendingPullIntos.length>0&&Yi(c);let L=new Uint8Array(T,b,$);zf(m,L,!1)}else Mf(m)?(Yc(c,T,b,$),Cf(c)):Yc(c,T,b,$);ni(c)}function Ht(c,u){let m=c._controlledReadableByteStream;m._state==="readable"&&(j_(c),mn(c),Xc(c),h$(m,u))}function Z_(c,u){let m=c._queue.shift();c._queueTotalSize-=m.byteLength,U_(c);let h=new Uint8Array(m.buffer,m.byteOffset,m.byteLength);u._chunkSteps(h)}function Df(c){if(c._byobRequest===null&&c._pendingPullIntos.length>0){let u=c._pendingPullIntos.peek(),m=new Uint8Array(u.buffer,u.byteOffset+u.bytesFilled,u.byteLength-u.bytesFilled),h=Object.create(ti.prototype);ej(h,c,m),c._byobRequest=h}return c._byobRequest}function q_(c){let u=c._controlledReadableByteStream._state;return u==="errored"?null:u==="closed"?0:c._strategyHWM-c._queueTotalSize}function el(c,u){let m=c._pendingPullIntos.peek();if(c._controlledReadableByteStream._state==="closed"){if(u!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(u===0)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(m.bytesFilled+u>m.byteLength)throw new RangeError("bytesWritten out of range")}m.buffer=qr(m.buffer),M_(c,u)}function tl(c,u){let m=c._pendingPullIntos.peek();if(c._controlledReadableByteStream._state==="closed"){if(u.byteLength!==0)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(u.byteLength===0)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(m.byteOffset+m.bytesFilled!==u.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(m.bufferByteLength!==u.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(m.bytesFilled+u.byteLength>m.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");let b=u.byteLength;m.buffer=qr(u.buffer),M_(c,b)}function L_(c,u,m,h,b,$,T){u._controlledReadableByteStream=c,u._pullAgain=!1,u._pulling=!1,u._byobRequest=null,u._queue=u._queueTotalSize=void 0,mn(u),u._closeRequested=!1,u._started=!1,u._strategyHWM=$,u._pullAlgorithm=h,u._cancelAlgorithm=b,u._autoAllocateChunkSize=T,u._pendingPullIntos=new D,c._readableStreamController=u;let L=m();g(d(L),()=>(u._started=!0,ni(u),null),te=>(Ht(u,te),null))}function QR(c,u,m){let h=Object.create(Lr.prototype),b,$,T;u.start!==void 0?b=()=>u.start(h):b=()=>{},u.pull!==void 0?$=()=>u.pull(h):$=()=>d(void 0),u.cancel!==void 0?T=te=>u.cancel(te):T=()=>d(void 0);let L=u.autoAllocateChunkSize;if(L===0)throw new TypeError("autoAllocateChunkSize must be greater than 0");L_(c,h,b,$,T,m,L)}function ej(c,u,m){c._associatedReadableByteStreamController=u,c._view=m}function Uf(c){return new TypeError(`ReadableStreamBYOBRequest.prototype.${c} can only be used on a ReadableStreamBYOBRequest`)}function Ia(c){return new TypeError(`ReadableByteStreamController.prototype.${c} can only be used on a ReadableByteStreamController`)}function tj(c,u){kr(c,u);let m=c?.mode;return{mode:m===void 0?void 0:rj(m,`${u} has member 'mode' that`)}}function rj(c,u){if(c=`${c}`,c!=="byob")throw new TypeError(`${u} '${c}' is not a valid enumeration value for ReadableStreamReaderMode`);return c}function nj(c,u){var m;kr(c,u);let h=(m=c?.min)!==null&&m!==void 0?m:1;return{min:Sf(h,`${u} has member 'min' that`)}}function F_(c){return new fn(c)}function V_(c,u){c._reader._readIntoRequests.push(u)}function ij(c,u,m){let b=c._reader._readIntoRequests.shift();m?b._closeSteps(u):b._chunkSteps(u)}function B_(c){return c._reader._readIntoRequests.length}function Mf(c){let u=c._reader;return!(u===void 0||!ii(u))}class fn{constructor(u){if(Zr(u,1,"ReadableStreamBYOBReader"),kf(u,"First parameter"),vn(u))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!ri(u._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");Hi(this,u),this._readIntoRequests=new D}get closed(){return ii(this)?this._closedPromise:p(rl("closed"))}cancel(u=void 0){return ii(this)?this._ownerReadableStream===void 0?p(Gi("cancel")):Ji(this,u):p(rl("cancel"))}read(u,m={}){if(!ii(this))return p(rl("read"));if(!ArrayBuffer.isView(u))return p(new TypeError("view must be an array buffer view"));if(u.byteLength===0)return p(new TypeError("view must have non-zero byteLength"));if(u.buffer.byteLength===0)return p(new TypeError("view's buffer must have non-zero byteLength"));if(pn(u.buffer))return p(new TypeError("view's buffer has been detached"));let h;try{h=nj(m,"options")}catch(G){return p(G)}let b=h.min;if(b===0)return p(new TypeError("options.min must be greater than 0"));if(WR(u)){if(b>u.byteLength)return p(new RangeError("options.min must be less than or equal to view's byteLength"))}else if(b>u.length)return p(new RangeError("options.min must be less than or equal to view's length"));if(this._ownerReadableStream===void 0)return p(Gi("read from"));let $,T,L=l((G,ne)=>{$=G,T=ne});return W_(this,u,b,{_chunkSteps:G=>$({value:G,done:!1}),_closeSteps:G=>$({value:G,done:!0}),_errorSteps:G=>T(G)}),L}releaseLock(){if(!ii(this))throw rl("releaseLock");this._ownerReadableStream!==void 0&&oj(this)}}Object.defineProperties(fn.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),n(fn.prototype.cancel,"cancel"),n(fn.prototype.read,"read"),n(fn.prototype.releaseLock,"releaseLock"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(fn.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});function ii(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_readIntoRequests")?!1:c instanceof fn}function W_(c,u,m,h){let b=c._ownerReadableStream;b._disturbed=!0,b._state==="errored"?h._errorSteps(b._storedError):GR(b._readableStreamController,u,m,h)}function oj(c){Bt(c);let u=new TypeError("Reader was released");H_(c,u)}function H_(c,u){let m=c._readIntoRequests;c._readIntoRequests=new D,m.forEach(h=>{h._errorSteps(u)})}function rl(c){return new TypeError(`ReadableStreamBYOBReader.prototype.${c} can only be used on a ReadableStreamBYOBReader`)}function Ea(c,u){let{highWaterMark:m}=c;if(m===void 0)return u;if(z_(m)||m<0)throw new RangeError("Invalid highWaterMark");return m}function nl(c){let{size:u}=c;return u||(()=>1)}function il(c,u){kr(c,u);let m=c?.highWaterMark,h=c?.size;return{highWaterMark:m===void 0?void 0:wf(m),size:h===void 0?void 0:aj(h,`${u} has member 'size' that`)}}function aj(c,u){return Wt(c,u),m=>wf(c(m))}function sj(c,u){kr(c,u);let m=c?.abort,h=c?.close,b=c?.start,$=c?.type,T=c?.write;return{abort:m===void 0?void 0:cj(m,c,`${u} has member 'abort' that`),close:h===void 0?void 0:lj(h,c,`${u} has member 'close' that`),start:b===void 0?void 0:uj(b,c,`${u} has member 'start' that`),write:T===void 0?void 0:dj(T,c,`${u} has member 'write' that`),type:$}}function cj(c,u,m){return Wt(c,m),h=>C(c,u,[h])}function lj(c,u,m){return Wt(c,m),()=>C(c,u,[])}function uj(c,u,m){return Wt(c,m),h=>U(c,u,[h])}function dj(c,u,m){return Wt(c,m),(h,b)=>C(c,u,[h,b])}function J_(c,u){if(!Xi(c))throw new TypeError(`${u} is not a WritableStream.`)}function pj(c){if(typeof c!="object"||c===null)return!1;try{return typeof c.aborted=="boolean"}catch{return!1}}let mj=typeof AbortController=="function";function fj(){if(mj)return new AbortController}class hn{constructor(u={},m={}){u===void 0?u=null:v_(u,"First parameter");let h=il(m,"Second parameter"),b=sj(u,"First parameter");if(K_(this),b.type!==void 0)throw new RangeError("Invalid type is specified");let T=nl(h),L=Ea(h,1);Pj(this,b,L,T)}get locked(){if(!Xi(this))throw ll("locked");return Qi(this)}abort(u=void 0){return Xi(this)?Qi(this)?p(new TypeError("Cannot abort a stream that already has a writer")):ol(this,u):p(ll("abort"))}close(){return Xi(this)?Qi(this)?p(new TypeError("Cannot close a stream that already has a writer")):zr(this)?p(new TypeError("Cannot close an already-closing stream")):Y_(this):p(ll("close"))}getWriter(){if(!Xi(this))throw ll("getWriter");return G_(this)}}Object.defineProperties(hn.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),n(hn.prototype.abort,"abort"),n(hn.prototype.close,"close"),n(hn.prototype.getWriter,"getWriter"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(hn.prototype,Symbol.toStringTag,{value:"WritableStream",configurable:!0});function G_(c){return new Fr(c)}function hj(c,u,m,h,b=1,$=()=>1){let T=Object.create(hn.prototype);K_(T);let L=Object.create(eo.prototype);return n$(T,L,c,u,m,h,b,$),T}function K_(c){c._state="writable",c._storedError=void 0,c._writer=void 0,c._writableStreamController=void 0,c._writeRequests=new D,c._inFlightWriteRequest=void 0,c._closeRequest=void 0,c._inFlightCloseRequest=void 0,c._pendingAbortRequest=void 0,c._backpressure=!1}function Xi(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_writableStreamController")?!1:c instanceof hn}function Qi(c){return c._writer!==void 0}function ol(c,u){var m;if(c._state==="closed"||c._state==="errored")return d(void 0);c._writableStreamController._abortReason=u,(m=c._writableStreamController._abortController)===null||m===void 0||m.abort(u);let h=c._state;if(h==="closed"||h==="errored")return d(void 0);if(c._pendingAbortRequest!==void 0)return c._pendingAbortRequest._promise;let b=!1;h==="erroring"&&(b=!0,u=void 0);let $=l((T,L)=>{c._pendingAbortRequest={_promise:void 0,_resolve:T,_reject:L,_reason:u,_wasAlreadyErroring:b}});return c._pendingAbortRequest._promise=$,b||qf(c,u),$}function Y_(c){let u=c._state;if(u==="closed"||u==="errored")return p(new TypeError(`The stream (in ${u} state) is not in the writable state and cannot be closed`));let m=l((b,$)=>{let T={_resolve:b,_reject:$};c._closeRequest=T}),h=c._writer;return h!==void 0&&c._backpressure&&u==="writable"&&Gf(h),Ij(c._writableStreamController),m}function gj(c){return l((m,h)=>{let b={_resolve:m,_reject:h};c._writeRequests.push(b)})}function Zf(c,u){if(c._state==="writable"){qf(c,u);return}Lf(c)}function qf(c,u){let m=c._writableStreamController;c._state="erroring",c._storedError=u;let h=c._writer;h!==void 0&&Q_(h,u),!_j(c)&&m._started&&Lf(c)}function Lf(c){c._state="errored",c._writableStreamController[Le]();let u=c._storedError;if(c._writeRequests.forEach(b=>{b._reject(u)}),c._writeRequests=new D,c._pendingAbortRequest===void 0){al(c);return}let m=c._pendingAbortRequest;if(c._pendingAbortRequest=void 0,m._wasAlreadyErroring){m._reject(u),al(c);return}let h=c._writableStreamController[le](m._reason);g(h,()=>(m._resolve(),al(c),null),b=>(m._reject(b),al(c),null))}function vj(c){c._inFlightWriteRequest._resolve(void 0),c._inFlightWriteRequest=void 0}function yj(c,u){c._inFlightWriteRequest._reject(u),c._inFlightWriteRequest=void 0,Zf(c,u)}function bj(c){c._inFlightCloseRequest._resolve(void 0),c._inFlightCloseRequest=void 0,c._state==="erroring"&&(c._storedError=void 0,c._pendingAbortRequest!==void 0&&(c._pendingAbortRequest._resolve(),c._pendingAbortRequest=void 0)),c._state="closed";let m=c._writer;m!==void 0&&s$(m)}function xj(c,u){c._inFlightCloseRequest._reject(u),c._inFlightCloseRequest=void 0,c._pendingAbortRequest!==void 0&&(c._pendingAbortRequest._reject(u),c._pendingAbortRequest=void 0),Zf(c,u)}function zr(c){return!(c._closeRequest===void 0&&c._inFlightCloseRequest===void 0)}function _j(c){return!(c._inFlightWriteRequest===void 0&&c._inFlightCloseRequest===void 0)}function $j(c){c._inFlightCloseRequest=c._closeRequest,c._closeRequest=void 0}function wj(c){c._inFlightWriteRequest=c._writeRequests.shift()}function al(c){c._closeRequest!==void 0&&(c._closeRequest._reject(c._storedError),c._closeRequest=void 0);let u=c._writer;u!==void 0&&Hf(u,c._storedError)}function Ff(c,u){let m=c._writer;m!==void 0&&u!==c._backpressure&&(u?Cj(m):Gf(m)),c._backpressure=u}class Fr{constructor(u){if(Zr(u,1,"WritableStreamDefaultWriter"),J_(u,"First parameter"),Qi(u))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=u,u._writer=this;let m=u._state;if(m==="writable")!zr(u)&&u._backpressure?dl(this):c$(this),ul(this);else if(m==="erroring")Jf(this,u._storedError),ul(this);else if(m==="closed")c$(this),Aj(this);else{let h=u._storedError;Jf(this,h),a$(this,h)}}get closed(){return oi(this)?this._closedPromise:p(ai("closed"))}get desiredSize(){if(!oi(this))throw ai("desiredSize");if(this._ownerWritableStream===void 0)throw ja("desiredSize");return Tj(this)}get ready(){return oi(this)?this._readyPromise:p(ai("ready"))}abort(u=void 0){return oi(this)?this._ownerWritableStream===void 0?p(ja("abort")):Sj(this,u):p(ai("abort"))}close(){if(!oi(this))return p(ai("close"));let u=this._ownerWritableStream;return u===void 0?p(ja("close")):zr(u)?p(new TypeError("Cannot close an already-closing stream")):X_(this)}releaseLock(){if(!oi(this))throw ai("releaseLock");this._ownerWritableStream!==void 0&&e$(this)}write(u=void 0){return oi(this)?this._ownerWritableStream===void 0?p(ja("write to")):t$(this,u):p(ai("write"))}}Object.defineProperties(Fr.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),n(Fr.prototype.abort,"abort"),n(Fr.prototype.close,"close"),n(Fr.prototype.releaseLock,"releaseLock"),n(Fr.prototype.write,"write"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Fr.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});function oi(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_ownerWritableStream")?!1:c instanceof Fr}function Sj(c,u){let m=c._ownerWritableStream;return ol(m,u)}function X_(c){let u=c._ownerWritableStream;return Y_(u)}function kj(c){let u=c._ownerWritableStream,m=u._state;return zr(u)||m==="closed"?d(void 0):m==="errored"?p(u._storedError):X_(c)}function zj(c,u){c._closedPromiseState==="pending"?Hf(c,u):Nj(c,u)}function Q_(c,u){c._readyPromiseState==="pending"?l$(c,u):Dj(c,u)}function Tj(c){let u=c._ownerWritableStream,m=u._state;return m==="errored"||m==="erroring"?null:m==="closed"?0:i$(u._writableStreamController)}function e$(c){let u=c._ownerWritableStream,m=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");Q_(c,m),zj(c,m),u._writer=void 0,c._ownerWritableStream=void 0}function t$(c,u){let m=c._ownerWritableStream,h=m._writableStreamController,b=Ej(h,u);if(m!==c._ownerWritableStream)return p(ja("write to"));let $=m._state;if($==="errored")return p(m._storedError);if(zr(m)||$==="closed")return p(new TypeError("The stream is closing or closed and cannot be written to"));if($==="erroring")return p(m._storedError);let T=gj(m);return Rj(h,u,b),T}let r$={};class eo{constructor(){throw new TypeError("Illegal constructor")}get abortReason(){if(!Vf(this))throw Wf("abortReason");return this._abortReason}get signal(){if(!Vf(this))throw Wf("signal");if(this._abortController===void 0)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal}error(u=void 0){if(!Vf(this))throw Wf("error");this._controlledWritableStream._state==="writable"&&o$(this,u)}[le](u){let m=this._abortAlgorithm(u);return sl(this),m}[Le](){mn(this)}}Object.defineProperties(eo.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(eo.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});function Vf(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledWritableStream")?!1:c instanceof eo}function n$(c,u,m,h,b,$,T,L){u._controlledWritableStream=c,c._writableStreamController=u,u._queue=void 0,u._queueTotalSize=void 0,mn(u),u._abortReason=void 0,u._abortController=fj(),u._started=!1,u._strategySizeAlgorithm=L,u._strategyHWM=T,u._writeAlgorithm=h,u._closeAlgorithm=b,u._abortAlgorithm=$;let te=Bf(u);Ff(c,te);let G=m(),ne=d(G);g(ne,()=>(u._started=!0,cl(u),null),ue=>(u._started=!0,Zf(c,ue),null))}function Pj(c,u,m,h){let b=Object.create(eo.prototype),$,T,L,te;u.start!==void 0?$=()=>u.start(b):$=()=>{},u.write!==void 0?T=G=>u.write(G,b):T=()=>d(void 0),u.close!==void 0?L=()=>u.close():L=()=>d(void 0),u.abort!==void 0?te=G=>u.abort(G):te=()=>d(void 0),n$(c,b,$,T,L,te,m,h)}function sl(c){c._writeAlgorithm=void 0,c._closeAlgorithm=void 0,c._abortAlgorithm=void 0,c._strategySizeAlgorithm=void 0}function Ij(c){jf(c,r$,0),cl(c)}function Ej(c,u){try{return c._strategySizeAlgorithm(u)}catch(m){return Ra(c,m),1}}function i$(c){return c._strategyHWM-c._queueTotalSize}function Rj(c,u,m){try{jf(c,u,m)}catch(b){Ra(c,b);return}let h=c._controlledWritableStream;if(!zr(h)&&h._state==="writable"){let b=Bf(c);Ff(h,b)}cl(c)}function cl(c){let u=c._controlledWritableStream;if(!c._started||u._inFlightWriteRequest!==void 0)return;if(u._state==="erroring"){Lf(u);return}if(c._queue.length===0)return;let h=BR(c);h===r$?jj(c):Oj(c,h)}function Ra(c,u){c._controlledWritableStream._state==="writable"&&o$(c,u)}function jj(c){let u=c._controlledWritableStream;$j(u),Rf(c);let m=c._closeAlgorithm();sl(c),g(m,()=>(bj(u),null),h=>(xj(u,h),null))}function Oj(c,u){let m=c._controlledWritableStream;wj(m);let h=c._writeAlgorithm(u);g(h,()=>{vj(m);let b=m._state;if(Rf(c),!zr(m)&&b==="writable"){let $=Bf(c);Ff(m,$)}return cl(c),null},b=>(m._state==="writable"&&sl(c),yj(m,b),null))}function Bf(c){return i$(c)<=0}function o$(c,u){let m=c._controlledWritableStream;sl(c),qf(m,u)}function ll(c){return new TypeError(`WritableStream.prototype.${c} can only be used on a WritableStream`)}function Wf(c){return new TypeError(`WritableStreamDefaultController.prototype.${c} can only be used on a WritableStreamDefaultController`)}function ai(c){return new TypeError(`WritableStreamDefaultWriter.prototype.${c} can only be used on a WritableStreamDefaultWriter`)}function ja(c){return new TypeError("Cannot "+c+" a stream using a released writer")}function ul(c){c._closedPromise=l((u,m)=>{c._closedPromise_resolve=u,c._closedPromise_reject=m,c._closedPromiseState="pending"})}function a$(c,u){ul(c),Hf(c,u)}function Aj(c){ul(c),s$(c)}function Hf(c,u){c._closedPromise_reject!==void 0&&(S(c._closedPromise),c._closedPromise_reject(u),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0,c._closedPromiseState="rejected")}function Nj(c,u){a$(c,u)}function s$(c){c._closedPromise_resolve!==void 0&&(c._closedPromise_resolve(void 0),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0,c._closedPromiseState="resolved")}function dl(c){c._readyPromise=l((u,m)=>{c._readyPromise_resolve=u,c._readyPromise_reject=m}),c._readyPromiseState="pending"}function Jf(c,u){dl(c),l$(c,u)}function c$(c){dl(c),Gf(c)}function l$(c,u){c._readyPromise_reject!==void 0&&(S(c._readyPromise),c._readyPromise_reject(u),c._readyPromise_resolve=void 0,c._readyPromise_reject=void 0,c._readyPromiseState="rejected")}function Cj(c){dl(c)}function Dj(c,u){Jf(c,u)}function Gf(c){c._readyPromise_resolve!==void 0&&(c._readyPromise_resolve(void 0),c._readyPromise_resolve=void 0,c._readyPromise_reject=void 0,c._readyPromiseState="fulfilled")}function Uj(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof global<"u")return global}let Kf=Uj();function Mj(c){if(!(typeof c=="function"||typeof c=="object")||c.name!=="DOMException")return!1;try{return new c,!0}catch{return!1}}function Zj(){let c=Kf?.DOMException;return Mj(c)?c:void 0}function qj(){let c=function(m,h){this.message=m||"",this.name=h||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return n(c,"DOMException"),c.prototype=Object.create(Error.prototype),Object.defineProperty(c.prototype,"constructor",{value:c,writable:!0,configurable:!0}),c}let Lj=Zj()||qj();function u$(c,u,m,h,b,$){let T=Ki(c),L=G_(u);c._disturbed=!0;let te=!1,G=d(void 0);return l((ne,ue)=>{let Oe;if($!==void 0){if(Oe=()=>{let Y=$.reason!==void 0?$.reason:new Lj("Aborted","AbortError"),ge=[];h||ge.push(()=>u._state==="writable"?ol(u,Y):d(void 0)),b||ge.push(()=>c._state==="readable"?cr(c,Y):d(void 0)),St(()=>Promise.all(ge.map(Ce=>Ce())),!0,Y)},$.aborted){Oe();return}$.addEventListener("abort",Oe)}function lr(){return l((Y,ge)=>{function Ce(Ct){Ct?Y():f(io(),Ce,ge)}Ce(!1)})}function io(){return te?d(!0):f(L._readyPromise,()=>l((Y,ge)=>{za(T,{_chunkSteps:Ce=>{G=f(t$(L,Ce),void 0,t),Y(!1)},_closeSteps:()=>Y(!0),_errorSteps:ge})}))}if(Br(c,T._closedPromise,Y=>(h?Jt(!0,Y):St(()=>ol(u,Y),!0,Y),null)),Br(u,L._closedPromise,Y=>(b?Jt(!0,Y):St(()=>cr(c,Y),!0,Y),null)),gt(c,T._closedPromise,()=>(m?Jt():St(()=>kj(L)),null)),zr(u)||u._state==="closed"){let Y=new TypeError("the destination writable stream closed before all data could be piped to it");b?Jt(!0,Y):St(()=>cr(c,Y),!0,Y)}S(lr());function bn(){let Y=G;return f(G,()=>Y!==G?bn():void 0)}function Br(Y,ge,Ce){Y._state==="errored"?Ce(Y._storedError):v(ge,Ce)}function gt(Y,ge,Ce){Y._state==="closed"?Ce():y(ge,Ce)}function St(Y,ge,Ce){if(te)return;te=!0,u._state==="writable"&&!zr(u)?y(bn(),Ct):Ct();function Ct(){return g(Y(),()=>Wr(ge,Ce),oo=>Wr(!0,oo)),null}}function Jt(Y,ge){te||(te=!0,u._state==="writable"&&!zr(u)?y(bn(),()=>Wr(Y,ge)):Wr(Y,ge))}function Wr(Y,ge){return e$(L),Bt(T),$!==void 0&&$.removeEventListener("abort",Oe),Y?ue(ge):ne(void 0),null}})}class Vr{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!pl(this))throw fl("desiredSize");return Yf(this)}close(){if(!pl(this))throw fl("close");if(!ro(this))throw new TypeError("The stream is not in a state that permits close");si(this)}enqueue(u=void 0){if(!pl(this))throw fl("enqueue");if(!ro(this))throw new TypeError("The stream is not in a state that permits enqueue");return to(this,u)}error(u=void 0){if(!pl(this))throw fl("error");sr(this,u)}[wt](u){mn(this);let m=this._cancelAlgorithm(u);return ml(this),m}[ei](u){let m=this._controlledReadableStream;if(this._queue.length>0){let h=Rf(this);this._closeRequested&&this._queue.length===0?(ml(this),Na(m)):Oa(this),u._chunkSteps(h)}else b_(m,u),Oa(this)}[Mr](){}}Object.defineProperties(Vr.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),n(Vr.prototype.close,"close"),n(Vr.prototype.enqueue,"enqueue"),n(Vr.prototype.error,"error"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Vr.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});function pl(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledReadableStream")?!1:c instanceof Vr}function Oa(c){if(!d$(c))return;if(c._pulling){c._pullAgain=!0;return}c._pulling=!0;let m=c._pullAlgorithm();g(m,()=>(c._pulling=!1,c._pullAgain&&(c._pullAgain=!1,Oa(c)),null),h=>(sr(c,h),null))}function d$(c){let u=c._controlledReadableStream;return!ro(c)||!c._started?!1:!!(vn(u)&&Jc(u)>0||Yf(c)>0)}function ml(c){c._pullAlgorithm=void 0,c._cancelAlgorithm=void 0,c._strategySizeAlgorithm=void 0}function si(c){if(!ro(c))return;let u=c._controlledReadableStream;c._closeRequested=!0,c._queue.length===0&&(ml(c),Na(u))}function to(c,u){if(!ro(c))return;let m=c._controlledReadableStream;if(vn(m)&&Jc(m)>0)zf(m,u,!1);else{let h;try{h=c._strategySizeAlgorithm(u)}catch(b){throw sr(c,b),b}try{jf(c,u,h)}catch(b){throw sr(c,b),b}}Oa(c)}function sr(c,u){let m=c._controlledReadableStream;m._state==="readable"&&(mn(c),ml(c),h$(m,u))}function Yf(c){let u=c._controlledReadableStream._state;return u==="errored"?null:u==="closed"?0:c._strategyHWM-c._queueTotalSize}function Fj(c){return!d$(c)}function ro(c){let u=c._controlledReadableStream._state;return!c._closeRequested&&u==="readable"}function p$(c,u,m,h,b,$,T){u._controlledReadableStream=c,u._queue=void 0,u._queueTotalSize=void 0,mn(u),u._started=!1,u._closeRequested=!1,u._pullAgain=!1,u._pulling=!1,u._strategySizeAlgorithm=T,u._strategyHWM=$,u._pullAlgorithm=h,u._cancelAlgorithm=b,c._readableStreamController=u;let L=m();g(d(L),()=>(u._started=!0,Oa(u),null),te=>(sr(u,te),null))}function Vj(c,u,m,h){let b=Object.create(Vr.prototype),$,T,L;u.start!==void 0?$=()=>u.start(b):$=()=>{},u.pull!==void 0?T=()=>u.pull(b):T=()=>d(void 0),u.cancel!==void 0?L=te=>u.cancel(te):L=()=>d(void 0),p$(c,b,$,T,L,m,h)}function fl(c){return new TypeError(`ReadableStreamDefaultController.prototype.${c} can only be used on a ReadableStreamDefaultController`)}function Bj(c,u){return ri(c._readableStreamController)?Hj(c):Wj(c)}function Wj(c,u){let m=Ki(c),h=!1,b=!1,$=!1,T=!1,L,te,G,ne,ue,Oe=l(gt=>{ue=gt});function lr(){return h?(b=!0,d(void 0)):(h=!0,za(m,{_chunkSteps:St=>{P(()=>{b=!1;let Jt=St,Wr=St;$||to(G._readableStreamController,Jt),T||to(ne._readableStreamController,Wr),h=!1,b&&lr()})},_closeSteps:()=>{h=!1,$||si(G._readableStreamController),T||si(ne._readableStreamController),(!$||!T)&&ue(void 0)},_errorSteps:()=>{h=!1}}),d(void 0))}function io(gt){if($=!0,L=gt,T){let St=Ta([L,te]),Jt=cr(c,St);ue(Jt)}return Oe}function bn(gt){if(T=!0,te=gt,$){let St=Ta([L,te]),Jt=cr(c,St);ue(Jt)}return Oe}function Br(){}return G=Aa(Br,lr,io),ne=Aa(Br,lr,bn),v(m._closedPromise,gt=>(sr(G._readableStreamController,gt),sr(ne._readableStreamController,gt),(!$||!T)&&ue(void 0),null)),[G,ne]}function Hj(c){let u=Ki(c),m=!1,h=!1,b=!1,$=!1,T=!1,L,te,G,ne,ue,Oe=l(Y=>{ue=Y});function lr(Y){v(Y._closedPromise,ge=>(Y!==u||(Ht(G._readableStreamController,ge),Ht(ne._readableStreamController,ge),(!$||!T)&&ue(void 0)),null))}function io(){ii(u)&&(Bt(u),u=Ki(c),lr(u)),za(u,{_chunkSteps:ge=>{P(()=>{h=!1,b=!1;let Ce=ge,Ct=ge;if(!$&&!T)try{Ct=E_(ge)}catch(oo){Ht(G._readableStreamController,oo),Ht(ne._readableStreamController,oo),ue(cr(c,oo));return}$||Qc(G._readableStreamController,Ce),T||Qc(ne._readableStreamController,Ct),m=!1,h?Br():b&>()})},_closeSteps:()=>{m=!1,$||Pa(G._readableStreamController),T||Pa(ne._readableStreamController),G._readableStreamController._pendingPullIntos.length>0&&el(G._readableStreamController,0),ne._readableStreamController._pendingPullIntos.length>0&&el(ne._readableStreamController,0),(!$||!T)&&ue(void 0)},_errorSteps:()=>{m=!1}})}function bn(Y,ge){dn(u)&&(Bt(u),u=F_(c),lr(u));let Ce=ge?ne:G,Ct=ge?G:ne;W_(u,Y,1,{_chunkSteps:ao=>{P(()=>{h=!1,b=!1;let so=ge?T:$;if(ge?$:T)so||tl(Ce._readableStreamController,ao);else{let P$;try{P$=E_(ao)}catch(rh){Ht(Ce._readableStreamController,rh),Ht(Ct._readableStreamController,rh),ue(cr(c,rh));return}so||tl(Ce._readableStreamController,ao),Qc(Ct._readableStreamController,P$)}m=!1,h?Br():b&>()})},_closeSteps:ao=>{m=!1;let so=ge?T:$,$l=ge?$:T;so||Pa(Ce._readableStreamController),$l||Pa(Ct._readableStreamController),ao!==void 0&&(so||tl(Ce._readableStreamController,ao),!$l&&Ct._readableStreamController._pendingPullIntos.length>0&&el(Ct._readableStreamController,0)),(!so||!$l)&&ue(void 0)},_errorSteps:()=>{m=!1}})}function Br(){if(m)return h=!0,d(void 0);m=!0;let Y=Df(G._readableStreamController);return Y===null?io():bn(Y._view,!1),d(void 0)}function gt(){if(m)return b=!0,d(void 0);m=!0;let Y=Df(ne._readableStreamController);return Y===null?io():bn(Y._view,!0),d(void 0)}function St(Y){if($=!0,L=Y,T){let ge=Ta([L,te]),Ce=cr(c,ge);ue(Ce)}return Oe}function Jt(Y){if(T=!0,te=Y,$){let ge=Ta([L,te]),Ce=cr(c,ge);ue(Ce)}return Oe}function Wr(){}return G=f$(Wr,Br,St),ne=f$(Wr,gt,Jt),lr(u),[G,ne]}function Jj(c){return r(c)&&typeof c.getReader<"u"}function Gj(c){return Jj(c)?Yj(c.getReader()):Kj(c)}function Kj(c){let u,m=I_(c,"async"),h=t;function b(){let T;try{T=qR(m)}catch(te){return p(te)}let L=d(T);return x(L,te=>{if(!r(te))throw new TypeError("The promise returned by the iterator.next() method must fulfill with an object");if(LR(te))si(u._readableStreamController);else{let ne=FR(te);to(u._readableStreamController,ne)}})}function $(T){let L=m.iterator,te;try{te=Kc(L,"return")}catch(ue){return p(ue)}if(te===void 0)return d(void 0);let G;try{G=U(te,L,[T])}catch(ue){return p(ue)}let ne=d(G);return x(ne,ue=>{if(!r(ue))throw new TypeError("The promise returned by the iterator.return() method must fulfill with an object")})}return u=Aa(h,b,$,0),u}function Yj(c){let u,m=t;function h(){let $;try{$=c.read()}catch(T){return p(T)}return x($,T=>{if(!r(T))throw new TypeError("The promise returned by the reader.read() method must fulfill with an object");if(T.done)si(u._readableStreamController);else{let L=T.value;to(u._readableStreamController,L)}})}function b($){try{return d(c.cancel($))}catch(T){return p(T)}}return u=Aa(m,h,b,0),u}function Xj(c,u){kr(c,u);let m=c,h=m?.autoAllocateChunkSize,b=m?.cancel,$=m?.pull,T=m?.start,L=m?.type;return{autoAllocateChunkSize:h===void 0?void 0:Sf(h,`${u} has member 'autoAllocateChunkSize' that`),cancel:b===void 0?void 0:Qj(b,m,`${u} has member 'cancel' that`),pull:$===void 0?void 0:eO($,m,`${u} has member 'pull' that`),start:T===void 0?void 0:tO(T,m,`${u} has member 'start' that`),type:L===void 0?void 0:rO(L,`${u} has member 'type' that`)}}function Qj(c,u,m){return Wt(c,m),h=>C(c,u,[h])}function eO(c,u,m){return Wt(c,m),h=>C(c,u,[h])}function tO(c,u,m){return Wt(c,m),h=>U(c,u,[h])}function rO(c,u){if(c=`${c}`,c!=="bytes")throw new TypeError(`${u} '${c}' is not a valid enumeration value for ReadableStreamType`);return c}function nO(c,u){return kr(c,u),{preventCancel:!!c?.preventCancel}}function m$(c,u){kr(c,u);let m=c?.preventAbort,h=c?.preventCancel,b=c?.preventClose,$=c?.signal;return $!==void 0&&iO($,`${u} has member 'signal' that`),{preventAbort:!!m,preventCancel:!!h,preventClose:!!b,signal:$}}function iO(c,u){if(!pj(c))throw new TypeError(`${u} is not an AbortSignal.`)}function oO(c,u){kr(c,u);let m=c?.readable;$f(m,"readable","ReadableWritablePair"),kf(m,`${u} has member 'readable' that`);let h=c?.writable;return $f(h,"writable","ReadableWritablePair"),J_(h,`${u} has member 'writable' that`),{readable:m,writable:h}}class ut{constructor(u={},m={}){u===void 0?u=null:v_(u,"First parameter");let h=il(m,"Second parameter"),b=Xj(u,"First parameter");if(Xf(this),b.type==="bytes"){if(h.size!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");let $=Ea(h,0);QR(this,b,$)}else{let $=nl(h),T=Ea(h,1);Vj(this,b,T,$)}}get locked(){if(!gn(this))throw ci("locked");return vn(this)}cancel(u=void 0){return gn(this)?vn(this)?p(new TypeError("Cannot cancel a stream that already has a reader")):cr(this,u):p(ci("cancel"))}getReader(u=void 0){if(!gn(this))throw ci("getReader");return tj(u,"First parameter").mode===void 0?Ki(this):F_(this)}pipeThrough(u,m={}){if(!gn(this))throw ci("pipeThrough");Zr(u,1,"pipeThrough");let h=oO(u,"First parameter"),b=m$(m,"Second parameter");if(vn(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(Qi(h.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");let $=u$(this,h.writable,b.preventClose,b.preventAbort,b.preventCancel,b.signal);return S($),h.readable}pipeTo(u,m={}){if(!gn(this))return p(ci("pipeTo"));if(u===void 0)return p("Parameter 1 is required in 'pipeTo'.");if(!Xi(u))return p(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));let h;try{h=m$(m,"Second parameter")}catch(b){return p(b)}return vn(this)?p(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):Qi(u)?p(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):u$(this,u,h.preventClose,h.preventAbort,h.preventCancel,h.signal)}tee(){if(!gn(this))throw ci("tee");let u=Bj(this);return Ta(u)}values(u=void 0){if(!gn(this))throw ci("values");let m=nO(u,"First parameter");return MR(this,m.preventCancel)}[Ef](u){return this.values(u)}static from(u){return Gj(u)}}Object.defineProperties(ut,{from:{enumerable:!0}}),Object.defineProperties(ut.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),n(ut.from,"from"),n(ut.prototype.cancel,"cancel"),n(ut.prototype.getReader,"getReader"),n(ut.prototype.pipeThrough,"pipeThrough"),n(ut.prototype.pipeTo,"pipeTo"),n(ut.prototype.tee,"tee"),n(ut.prototype.values,"values"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(ut.prototype,Symbol.toStringTag,{value:"ReadableStream",configurable:!0}),Object.defineProperty(ut.prototype,Ef,{value:ut.prototype.values,writable:!0,configurable:!0});function Aa(c,u,m,h=1,b=()=>1){let $=Object.create(ut.prototype);Xf($);let T=Object.create(Vr.prototype);return p$($,T,c,u,m,h,b),$}function f$(c,u,m){let h=Object.create(ut.prototype);Xf(h);let b=Object.create(Lr.prototype);return L_(h,b,c,u,m,0,void 0),h}function Xf(c){c._state="readable",c._reader=void 0,c._storedError=void 0,c._disturbed=!1}function gn(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_readableStreamController")?!1:c instanceof ut}function vn(c){return c._reader!==void 0}function cr(c,u){if(c._disturbed=!0,c._state==="closed")return d(void 0);if(c._state==="errored")return p(c._storedError);Na(c);let m=c._reader;if(m!==void 0&&ii(m)){let b=m._readIntoRequests;m._readIntoRequests=new D,b.forEach($=>{$._closeSteps(void 0)})}let h=c._readableStreamController[wt](u);return x(h,t)}function Na(c){c._state="closed";let u=c._reader;if(u!==void 0&&(h_(u),dn(u))){let m=u._readRequests;u._readRequests=new D,m.forEach(h=>{h._closeSteps()})}}function h$(c,u){c._state="errored",c._storedError=u;let m=c._reader;m!==void 0&&(_f(m,u),dn(m)?__(m,u):H_(m,u))}function ci(c){return new TypeError(`ReadableStream.prototype.${c} can only be used on a ReadableStream`)}function g$(c,u){kr(c,u);let m=c?.highWaterMark;return $f(m,"highWaterMark","QueuingStrategyInit"),{highWaterMark:wf(m)}}let v$=c=>c.byteLength;n(v$,"size");class hl{constructor(u){Zr(u,1,"ByteLengthQueuingStrategy"),u=g$(u,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=u.highWaterMark}get highWaterMark(){if(!b$(this))throw y$("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark}get size(){if(!b$(this))throw y$("size");return v$}}Object.defineProperties(hl.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(hl.prototype,Symbol.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});function y$(c){return new TypeError(`ByteLengthQueuingStrategy.prototype.${c} can only be used on a ByteLengthQueuingStrategy`)}function b$(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_byteLengthQueuingStrategyHighWaterMark")?!1:c instanceof hl}let x$=()=>1;n(x$,"size");class gl{constructor(u){Zr(u,1,"CountQueuingStrategy"),u=g$(u,"First parameter"),this._countQueuingStrategyHighWaterMark=u.highWaterMark}get highWaterMark(){if(!$$(this))throw _$("highWaterMark");return this._countQueuingStrategyHighWaterMark}get size(){if(!$$(this))throw _$("size");return x$}}Object.defineProperties(gl.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(gl.prototype,Symbol.toStringTag,{value:"CountQueuingStrategy",configurable:!0});function _$(c){return new TypeError(`CountQueuingStrategy.prototype.${c} can only be used on a CountQueuingStrategy`)}function $$(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_countQueuingStrategyHighWaterMark")?!1:c instanceof gl}function aO(c,u){kr(c,u);let m=c?.cancel,h=c?.flush,b=c?.readableType,$=c?.start,T=c?.transform,L=c?.writableType;return{cancel:m===void 0?void 0:uO(m,c,`${u} has member 'cancel' that`),flush:h===void 0?void 0:sO(h,c,`${u} has member 'flush' that`),readableType:b,start:$===void 0?void 0:cO($,c,`${u} has member 'start' that`),transform:T===void 0?void 0:lO(T,c,`${u} has member 'transform' that`),writableType:L}}function sO(c,u,m){return Wt(c,m),h=>C(c,u,[h])}function cO(c,u,m){return Wt(c,m),h=>U(c,u,[h])}function lO(c,u,m){return Wt(c,m),(h,b)=>C(c,u,[h,b])}function uO(c,u,m){return Wt(c,m),h=>C(c,u,[h])}class vl{constructor(u={},m={},h={}){u===void 0&&(u=null);let b=il(m,"Second parameter"),$=il(h,"Third parameter"),T=aO(u,"First parameter");if(T.readableType!==void 0)throw new RangeError("Invalid readableType specified");if(T.writableType!==void 0)throw new RangeError("Invalid writableType specified");let L=Ea($,0),te=nl($),G=Ea(b,1),ne=nl(b),ue,Oe=l(lr=>{ue=lr});dO(this,Oe,G,ne,L,te),mO(this,T),T.start!==void 0?ue(T.start(this._transformStreamController)):ue(void 0)}get readable(){if(!w$(this))throw T$("readable");return this._readable}get writable(){if(!w$(this))throw T$("writable");return this._writable}}Object.defineProperties(vl.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(vl.prototype,Symbol.toStringTag,{value:"TransformStream",configurable:!0});function dO(c,u,m,h,b,$){function T(){return u}function L(Oe){return gO(c,Oe)}function te(Oe){return vO(c,Oe)}function G(){return yO(c)}c._writable=hj(T,L,G,te,m,h);function ne(){return bO(c)}function ue(Oe){return xO(c,Oe)}c._readable=Aa(T,ne,ue,b,$),c._backpressure=void 0,c._backpressureChangePromise=void 0,c._backpressureChangePromise_resolve=void 0,yl(c,!0),c._transformStreamController=void 0}function w$(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_transformStreamController")?!1:c instanceof vl}function S$(c,u){sr(c._readable._readableStreamController,u),Qf(c,u)}function Qf(c,u){xl(c._transformStreamController),Ra(c._writable._writableStreamController,u),eh(c)}function eh(c){c._backpressure&&yl(c,!1)}function yl(c,u){c._backpressureChangePromise!==void 0&&c._backpressureChangePromise_resolve(),c._backpressureChangePromise=l(m=>{c._backpressureChangePromise_resolve=m}),c._backpressure=u}class yn{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!bl(this))throw _l("desiredSize");let u=this._controlledTransformStream._readable._readableStreamController;return Yf(u)}enqueue(u=void 0){if(!bl(this))throw _l("enqueue");k$(this,u)}error(u=void 0){if(!bl(this))throw _l("error");fO(this,u)}terminate(){if(!bl(this))throw _l("terminate");hO(this)}}Object.defineProperties(yn.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),n(yn.prototype.enqueue,"enqueue"),n(yn.prototype.error,"error"),n(yn.prototype.terminate,"terminate"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(yn.prototype,Symbol.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});function bl(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledTransformStream")?!1:c instanceof yn}function pO(c,u,m,h,b){u._controlledTransformStream=c,c._transformStreamController=u,u._transformAlgorithm=m,u._flushAlgorithm=h,u._cancelAlgorithm=b,u._finishPromise=void 0,u._finishPromise_resolve=void 0,u._finishPromise_reject=void 0}function mO(c,u){let m=Object.create(yn.prototype),h,b,$;u.transform!==void 0?h=T=>u.transform(T,m):h=T=>{try{return k$(m,T),d(void 0)}catch(L){return p(L)}},u.flush!==void 0?b=()=>u.flush(m):b=()=>d(void 0),u.cancel!==void 0?$=T=>u.cancel(T):$=()=>d(void 0),pO(c,m,h,b,$)}function xl(c){c._transformAlgorithm=void 0,c._flushAlgorithm=void 0,c._cancelAlgorithm=void 0}function k$(c,u){let m=c._controlledTransformStream,h=m._readable._readableStreamController;if(!ro(h))throw new TypeError("Readable side is not in a state that permits enqueue");try{to(h,u)}catch($){throw Qf(m,$),m._readable._storedError}Fj(h)!==m._backpressure&&yl(m,!0)}function fO(c,u){S$(c._controlledTransformStream,u)}function z$(c,u){let m=c._transformAlgorithm(u);return x(m,void 0,h=>{throw S$(c._controlledTransformStream,h),h})}function hO(c){let u=c._controlledTransformStream,m=u._readable._readableStreamController;si(m);let h=new TypeError("TransformStream terminated");Qf(u,h)}function gO(c,u){let m=c._transformStreamController;if(c._backpressure){let h=c._backpressureChangePromise;return x(h,()=>{let b=c._writable;if(b._state==="erroring")throw b._storedError;return z$(m,u)})}return z$(m,u)}function vO(c,u){let m=c._transformStreamController;if(m._finishPromise!==void 0)return m._finishPromise;let h=c._readable;m._finishPromise=l(($,T)=>{m._finishPromise_resolve=$,m._finishPromise_reject=T});let b=m._cancelAlgorithm(u);return xl(m),g(b,()=>(h._state==="errored"?no(m,h._storedError):(sr(h._readableStreamController,u),th(m)),null),$=>(sr(h._readableStreamController,$),no(m,$),null)),m._finishPromise}function yO(c){let u=c._transformStreamController;if(u._finishPromise!==void 0)return u._finishPromise;let m=c._readable;u._finishPromise=l((b,$)=>{u._finishPromise_resolve=b,u._finishPromise_reject=$});let h=u._flushAlgorithm();return xl(u),g(h,()=>(m._state==="errored"?no(u,m._storedError):(si(m._readableStreamController),th(u)),null),b=>(sr(m._readableStreamController,b),no(u,b),null)),u._finishPromise}function bO(c){return yl(c,!1),c._backpressureChangePromise}function xO(c,u){let m=c._transformStreamController;if(m._finishPromise!==void 0)return m._finishPromise;let h=c._writable;m._finishPromise=l(($,T)=>{m._finishPromise_resolve=$,m._finishPromise_reject=T});let b=m._cancelAlgorithm(u);return xl(m),g(b,()=>(h._state==="errored"?no(m,h._storedError):(Ra(h._writableStreamController,u),eh(c),th(m)),null),$=>(Ra(h._writableStreamController,$),eh(c),no(m,$),null)),m._finishPromise}function _l(c){return new TypeError(`TransformStreamDefaultController.prototype.${c} can only be used on a TransformStreamDefaultController`)}function th(c){c._finishPromise_resolve!==void 0&&(c._finishPromise_resolve(),c._finishPromise_resolve=void 0,c._finishPromise_reject=void 0)}function no(c,u){c._finishPromise_reject!==void 0&&(S(c._finishPromise),c._finishPromise_reject(u),c._finishPromise_resolve=void 0,c._finishPromise_reject=void 0)}function T$(c){return new TypeError(`TransformStream.prototype.${c} can only be used on a TransformStream`)}e.ByteLengthQueuingStrategy=hl,e.CountQueuingStrategy=gl,e.ReadableByteStreamController=Lr,e.ReadableStream=ut,e.ReadableStreamBYOBReader=fn,e.ReadableStreamBYOBRequest=ti,e.ReadableStreamDefaultController=Vr,e.ReadableStreamDefaultReader=un,e.TransformStream=vl,e.TransformStreamDefaultController=yn,e.WritableStream=hn,e.WritableStreamDefaultController=eo,e.WritableStreamDefaultWriter=Fr}))});var NE=z(()=>{if(!globalThis.ReadableStream)try{let e=require("node:process"),{emitWarning:t}=e;try{e.emitWarning=()=>{},Object.assign(globalThis,require("node:stream/web")),e.emitWarning=t}catch(r){throw e.emitWarning=t,r}}catch{Object.assign(globalThis,AE())}try{let{Blob:e}=require("buffer");e&&!e.prototype.stream&&(e.prototype.stream=function(r){let i=0,n=this;return new ReadableStream({type:"bytes",async pull(o){let s=await n.slice(i,Math.min(n.size,i+65536)).arrayBuffer();i+=s.byteLength,o.enqueue(new Uint8Array(s)),i===n.size&&o.close()}})})}catch{}});async function*Yx(e,t=!0){for(let r of e)if("stream"in r)yield*r.stream();else if(ArrayBuffer.isView(r))if(t){let i=r.byteOffset,n=r.byteOffset+r.byteLength;for(;i!==n;){let o=Math.min(n-i,CE),a=r.buffer.slice(i,i+o);i+=a.byteLength,yield new Uint8Array(a)}}else yield r;else{let i=0,n=r;for(;i!==n.size;){let a=await n.slice(i,Math.min(n.size,i+CE)).arrayBuffer();i+=a.byteLength,yield new Uint8Array(a)}}}var pK,CE,DE,YL,an,Zc=Ca(()=>{pK=Ve(NE(),1);CE=65536;DE=class Xx{#e=[];#t="";#r=0;#n="transparent";constructor(t=[],r={}){if(typeof t!="object"||t===null)throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence.");if(typeof t[Symbol.iterator]!="function")throw new TypeError("Failed to construct 'Blob': The object must have a callable @@iterator property.");if(typeof r!="object"&&typeof r!="function")throw new TypeError("Failed to construct 'Blob': parameter 2 cannot convert to dictionary.");r===null&&(r={});let i=new TextEncoder;for(let o of t){let a;ArrayBuffer.isView(o)?a=new Uint8Array(o.buffer.slice(o.byteOffset,o.byteOffset+o.byteLength)):o instanceof ArrayBuffer?a=new Uint8Array(o.slice(0)):o instanceof Xx?a=o:a=i.encode(`${o}`),this.#r+=ArrayBuffer.isView(a)?a.byteLength:a.size,this.#e.push(a)}this.#n=`${r.endings===void 0?"transparent":r.endings}`;let n=r.type===void 0?"":String(r.type);this.#t=/^[\x20-\x7E]*$/.test(n)?n:""}get size(){return this.#r}get type(){return this.#t}async text(){let t=new TextDecoder,r="";for await(let i of Yx(this.#e,!1))r+=t.decode(i,{stream:!0});return r+=t.decode(),r}async arrayBuffer(){let t=new Uint8Array(this.size),r=0;for await(let i of Yx(this.#e,!1))t.set(i,r),r+=i.length;return t.buffer}stream(){let t=Yx(this.#e,!0);return new globalThis.ReadableStream({type:"bytes",async pull(r){let i=await t.next();i.done?r.close():r.enqueue(i.value)},async cancel(){await t.return()}})}slice(t=0,r=this.size,i=""){let{size:n}=this,o=t<0?Math.max(n+t,0):Math.min(t,n),a=r<0?Math.max(n+r,0):Math.min(r,n),s=Math.max(a-o,0),l=this.#e,d=[],p=0;for(let g of l){if(p>=s)break;let y=ArrayBuffer.isView(g)?g.byteLength:g.size;if(o&&y<=o)o-=y,a-=y;else{let v;ArrayBuffer.isView(g)?(v=g.subarray(o,Math.min(y,a)),p+=v.byteLength):(v=g.slice(o,Math.min(y,a)),p+=v.size),a-=y,d.push(v),o=0}}let f=new Xx([],{type:String(i).toLowerCase()});return f.#r=s,f.#e=d,f}get[Symbol.toStringTag](){return"Blob"}static[Symbol.hasInstance](t){return t&&typeof t=="object"&&typeof t.constructor=="function"&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&/^(Blob|File)$/.test(t[Symbol.toStringTag])}};Object.defineProperties(DE.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}});YL=DE,an=YL});var XL,QL,wa,Qx=Ca(()=>{Zc();XL=class extends an{#e=0;#t="";constructor(t,r,i={}){if(arguments.length<2)throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`);super(t,i),i===null&&(i={});let n=i.lastModified===void 0?Date.now():Number(i.lastModified);Number.isNaN(n)||(this.#e=n),this.#t=String(r)}get name(){return this.#t}get lastModified(){return this.#e}get[Symbol.toStringTag](){return"File"}static[Symbol.hasInstance](t){return!!t&&t instanceof an&&/^(File)$/.test(t[Symbol.toStringTag])}},QL=XL,wa=QL});function ZE(e,t=an){var r=`${UE()}${UE()}`.replace(/\./g,"").slice(-28).padStart(32,"-"),i=[],n=`--${r}\r
|
|
11
|
+
Content-Disposition: form-data; name="`;return e.forEach((o,a)=>typeof o=="string"?i.push(n+e_(a)+`"\r
|
|
12
|
+
\r
|
|
13
|
+
${o.replace(/\r(?!\n)|(?<!\r)\n/g,`\r
|
|
14
|
+
`)}\r
|
|
15
|
+
`):i.push(n+e_(a)+`"; filename="${e_(o.name,1)}"\r
|
|
16
|
+
Content-Type: ${o.type||"application/octet-stream"}\r
|
|
17
|
+
\r
|
|
18
|
+
`,o,`\r
|
|
19
|
+
`)),i.push(`--${r}--`),new t(i,{type:"multipart/form-data; boundary="+r})}var qc,e2,t2,UE,r2,ME,e_,qi,Li,af=Ca(()=>{Zc();Qx();({toStringTag:qc,iterator:e2,hasInstance:t2}=Symbol),UE=Math.random,r2="append,set,get,getAll,delete,keys,values,entries,forEach,constructor".split(","),ME=(e,t,r)=>(e+="",/^(Blob|File)$/.test(t&&t[qc])?[(r=r!==void 0?r+"":t[qc]=="File"?t.name:"blob",e),t.name!==r||t[qc]=="blob"?new wa([t],r,t):t]:[e,t+""]),e_=(e,t)=>(t?e:e.replace(/\r?\n|\r/g,`\r
|
|
20
|
+
`)).replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),qi=(e,t,r)=>{if(t.length<r)throw new TypeError(`Failed to execute '${e}' on 'FormData': ${r} arguments required, but only ${t.length} present.`)},Li=class{#e=[];constructor(...t){if(t.length)throw new TypeError("Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.")}get[qc](){return"FormData"}[e2](){return this.entries()}static[t2](t){return t&&typeof t=="object"&&t[qc]==="FormData"&&!r2.some(r=>typeof t[r]!="function")}append(...t){qi("append",arguments,2),this.#e.push(ME(...t))}delete(t){qi("delete",arguments,1),t+="",this.#e=this.#e.filter(([r])=>r!==t)}get(t){qi("get",arguments,1),t+="";for(var r=this.#e,i=r.length,n=0;n<i;n++)if(r[n][0]===t)return r[n][1];return null}getAll(t,r){return qi("getAll",arguments,1),r=[],t+="",this.#e.forEach(i=>i[0]===t&&r.push(i[1])),r}has(t){return qi("has",arguments,1),t+="",this.#e.some(r=>r[0]===t)}forEach(t,r){qi("forEach",arguments,1);for(var[i,n]of this)t.call(r,n,i,this)}set(...t){qi("set",arguments,2);var r=[],i=!0;t=ME(...t),this.#e.forEach(n=>{n[0]===t[0]?i&&(i=!r.push(t)):r.push(n)}),i&&r.push(t),this.#e=r}*entries(){yield*this.#e}*keys(){for(var[t]of this)yield t}*values(){for(var[,t]of this)yield t}}});var BE=z((kK,VE)=>{if(!globalThis.DOMException)try{let{MessageChannel:e}=require("worker_threads"),t=new e().port1,r=new ArrayBuffer;t.postMessage(r,[r,r])}catch(e){e.constructor.name==="DOMException"&&(globalThis.DOMException=e.constructor)}VE.exports=globalThis.DOMException});var cf,n2,PK,r_=Ca(()=>{cf=require("node:fs"),n2=Ve(BE(),1);Qx();Zc();({stat:PK}=cf.promises)});var HE={};Tr(HE,{toFormData:()=>u2});function l2(e){let t=e.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);if(!t)return;let r=t[2]||t[3]||"",i=r.slice(r.lastIndexOf("\\")+1);return i=i.replace(/%22/g,'"'),i=i.replace(/&#(\d{4});/g,(n,o)=>String.fromCharCode(o)),i}async function u2(e,t){if(!/multipart/i.test(t))throw new TypeError("Failed to fetch");let r=t.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!r)throw new TypeError("no or bad content-type header, no multipart boundary");let i=new n_(r[1]||r[2]),n,o,a,s,l,d,p=[],f=new Li,g=P=>{a+=S.decode(P,{stream:!0})},y=P=>{p.push(P)},v=()=>{let P=new wa(p,d,{type:l});f.append(s,P)},x=()=>{f.append(s,a)},S=new TextDecoder("utf-8");S.decode(),i.onPartBegin=function(){i.onPartData=g,i.onPartEnd=x,n="",o="",a="",s="",l="",d=null,p.length=0},i.onHeaderField=function(P){n+=S.decode(P,{stream:!0})},i.onHeaderValue=function(P){o+=S.decode(P,{stream:!0})},i.onHeaderEnd=function(){if(o+=S.decode(),n=n.toLowerCase(),n==="content-disposition"){let P=o.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);P&&(s=P[2]||P[3]||""),d=l2(o),d&&(i.onPartData=y,i.onPartEnd=v)}else n==="content-type"&&(l=o);o="",n=""};for await(let P of e)i.write(P);return i.end(),f}var Dr,Ue,WE,Xn,lf,uf,i2,Fc,o2,a2,s2,c2,Fi,n_,JE=Ca(()=>{r_();af();Dr=0,Ue={START_BOUNDARY:Dr++,HEADER_FIELD_START:Dr++,HEADER_FIELD:Dr++,HEADER_VALUE_START:Dr++,HEADER_VALUE:Dr++,HEADER_VALUE_ALMOST_DONE:Dr++,HEADERS_ALMOST_DONE:Dr++,PART_DATA_START:Dr++,PART_DATA:Dr++,END:Dr++},WE=1,Xn={PART_BOUNDARY:WE,LAST_BOUNDARY:WE*=2},lf=10,uf=13,i2=32,Fc=45,o2=58,a2=97,s2=122,c2=e=>e|32,Fi=()=>{},n_=class{constructor(t){this.index=0,this.flags=0,this.onHeaderEnd=Fi,this.onHeaderField=Fi,this.onHeadersEnd=Fi,this.onHeaderValue=Fi,this.onPartBegin=Fi,this.onPartData=Fi,this.onPartEnd=Fi,this.boundaryChars={},t=`\r
|
|
21
|
+
--`+t;let r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i),this.boundaryChars[r[i]]=!0;this.boundary=r,this.lookbehind=new Uint8Array(this.boundary.length+8),this.state=Ue.START_BOUNDARY}write(t){let r=0,i=t.length,n=this.index,{lookbehind:o,boundary:a,boundaryChars:s,index:l,state:d,flags:p}=this,f=this.boundary.length,g=f-1,y=t.length,v,x,S=M=>{this[M+"Mark"]=r},P=M=>{delete this[M+"Mark"]},U=(M,D,le,Le)=>{(D===void 0||D!==le)&&this[M](Le&&Le.subarray(D,le))},C=(M,D)=>{let le=M+"Mark";le in this&&(D?(U(M,this[le],r,t),delete this[le]):(U(M,this[le],t.length,t),this[le]=0))};for(r=0;r<i;r++)switch(v=t[r],d){case Ue.START_BOUNDARY:if(l===a.length-2){if(v===Fc)p|=Xn.LAST_BOUNDARY;else if(v!==uf)return;l++;break}else if(l-1===a.length-2){if(p&Xn.LAST_BOUNDARY&&v===Fc)d=Ue.END,p=0;else if(!(p&Xn.LAST_BOUNDARY)&&v===lf)l=0,U("onPartBegin"),d=Ue.HEADER_FIELD_START;else return;break}v!==a[l+2]&&(l=-2),v===a[l+2]&&l++;break;case Ue.HEADER_FIELD_START:d=Ue.HEADER_FIELD,S("onHeaderField"),l=0;case Ue.HEADER_FIELD:if(v===uf){P("onHeaderField"),d=Ue.HEADERS_ALMOST_DONE;break}if(l++,v===Fc)break;if(v===o2){if(l===1)return;C("onHeaderField",!0),d=Ue.HEADER_VALUE_START;break}if(x=c2(v),x<a2||x>s2)return;break;case Ue.HEADER_VALUE_START:if(v===i2)break;S("onHeaderValue"),d=Ue.HEADER_VALUE;case Ue.HEADER_VALUE:v===uf&&(C("onHeaderValue",!0),U("onHeaderEnd"),d=Ue.HEADER_VALUE_ALMOST_DONE);break;case Ue.HEADER_VALUE_ALMOST_DONE:if(v!==lf)return;d=Ue.HEADER_FIELD_START;break;case Ue.HEADERS_ALMOST_DONE:if(v!==lf)return;U("onHeadersEnd"),d=Ue.PART_DATA_START;break;case Ue.PART_DATA_START:d=Ue.PART_DATA,S("onPartData");case Ue.PART_DATA:if(n=l,l===0){for(r+=g;r<y&&!(t[r]in s);)r+=f;r-=g,v=t[r]}if(l<a.length)a[l]===v?(l===0&&C("onPartData",!0),l++):l=0;else if(l===a.length)l++,v===uf?p|=Xn.PART_BOUNDARY:v===Fc?p|=Xn.LAST_BOUNDARY:l=0;else if(l-1===a.length)if(p&Xn.PART_BOUNDARY){if(l=0,v===lf){p&=~Xn.PART_BOUNDARY,U("onPartEnd"),U("onPartBegin"),d=Ue.HEADER_FIELD_START;break}}else p&Xn.LAST_BOUNDARY&&v===Fc?(U("onPartEnd"),d=Ue.END,p=0):l=0;if(l>0)o[l-1]=v;else if(n>0){let M=new Uint8Array(o.buffer,o.byteOffset,o.byteLength);U("onPartData",0,n,M),n=0,S("onPartData"),r--}break;case Ue.END:break;default:throw new Error(`Unexpected state entered: ${d}`)}C("onHeaderField"),C("onHeaderValue"),C("onPartData"),this.index=l,this.state=d,this.flags=p}end(){if(this.state===Ue.HEADER_FIELD_START&&this.index===0||this.state===Ue.PART_DATA&&this.index===this.boundary.length)this.onPartEnd();else if(this.state!==Ue.END)throw new Error("MultipartParser.end(): stream ended unexpectedly")}}});var ve;(function(e){e.assertEqual=n=>{};function t(n){}e.assertIs=t;function r(n){throw new Error}e.assertNever=r,e.arrayToEnum=n=>{let o={};for(let a of n)o[a]=a;return o},e.getValidEnumValues=n=>{let o=e.objectKeys(n).filter(s=>typeof n[n[s]]!="number"),a={};for(let s of o)a[s]=n[s];return e.objectValues(a)},e.objectValues=n=>e.objectKeys(n).map(function(o){return n[o]}),e.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{let o=[];for(let a in n)Object.prototype.hasOwnProperty.call(n,a)&&o.push(a);return o},e.find=(n,o)=>{for(let a of n)if(o(a))return a},e.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&Number.isFinite(n)&&Math.floor(n)===n;function i(n,o=" | "){return n.map(a=>typeof a=="string"?`'${a}'`:a).join(o)}e.joinValues=i,e.jsonStringifyReplacer=(n,o)=>typeof o=="bigint"?o.toString():o})(ve||(ve={}));var I$;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(I$||(I$={}));var V=ve.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Hr=e=>{switch(typeof e){case"undefined":return V.undefined;case"string":return V.string;case"number":return Number.isNaN(e)?V.nan:V.number;case"boolean":return V.boolean;case"function":return V.function;case"bigint":return V.bigint;case"symbol":return V.symbol;case"object":return Array.isArray(e)?V.array:e===null?V.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?V.promise:typeof Map<"u"&&e instanceof Map?V.map:typeof Set<"u"&&e instanceof Set?V.set:typeof Date<"u"&&e instanceof Date?V.date:V.object;default:return V.unknown}};var R=ve.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"]);var Dt=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){let r=t||function(o){return o.message},i={_errors:[]},n=o=>{for(let a of o.issues)if(a.code==="invalid_union")a.unionErrors.map(n);else if(a.code==="invalid_return_type")n(a.returnTypeError);else if(a.code==="invalid_arguments")n(a.argumentsError);else if(a.path.length===0)i._errors.push(r(a));else{let s=i,l=0;for(;l<a.path.length;){let d=a.path[l];l===a.path.length-1?(s[d]=s[d]||{_errors:[]},s[d]._errors.push(r(a))):s[d]=s[d]||{_errors:[]},s=s[d],l++}}};return n(this),i}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ve.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){let r=Object.create(null),i=[];for(let n of this.issues)if(n.path.length>0){let o=n.path[0];r[o]=r[o]||[],r[o].push(t(n))}else i.push(t(n));return{formErrors:i,fieldErrors:r}}get formErrors(){return this.flatten()}};Dt.create=e=>new Dt(e);var TO=(e,t)=>{let r;switch(e.code){case R.invalid_type:e.received===V.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case R.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,ve.jsonStringifyReplacer)}`;break;case R.unrecognized_keys:r=`Unrecognized key(s) in object: ${ve.joinValues(e.keys,", ")}`;break;case R.invalid_union:r="Invalid input";break;case R.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${ve.joinValues(e.options)}`;break;case R.invalid_enum_value:r=`Invalid enum value. Expected ${ve.joinValues(e.options)}, received '${e.received}'`;break;case R.invalid_arguments:r="Invalid function arguments";break;case R.invalid_return_type:r="Invalid function return type";break;case R.invalid_date:r="Invalid date";break;case R.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:ve.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case R.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case R.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case R.custom:r="Invalid input";break;case R.invalid_intersection_types:r="Intersection results could not be merged";break;case R.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case R.not_finite:r="Number must be finite";break;default:r=t.defaultError,ve.assertNever(e)}return{message:r}},xn=TO;var PO=xn;function Da(){return PO}var wl=e=>{let{data:t,path:r,errorMaps:i,issueData:n}=e,o=[...r,...n.path||[]],a={...n,path:o};if(n.message!==void 0)return{...n,path:o,message:n.message};let s="",l=i.filter(d=>!!d).slice().reverse();for(let d of l)s=d(a,{data:t,defaultError:s}).message;return{...n,path:o,message:s}};function Z(e,t){let r=Da(),i=wl({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===xn?void 0:xn].filter(n=>!!n)});e.common.issues.push(i)}var dt=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){let i=[];for(let n of r){if(n.status==="aborted")return X;n.status==="dirty"&&t.dirty(),i.push(n.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,r){let i=[];for(let n of r){let o=await n.key,a=await n.value;i.push({key:o,value:a})}return e.mergeObjectSync(t,i)}static mergeObjectSync(t,r){let i={};for(let n of r){let{key:o,value:a}=n;if(o.status==="aborted"||a.status==="aborted")return X;o.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof a.value<"u"||n.alwaysSet)&&(i[o.value]=a.value)}return{status:t.value,value:i}}},X=Object.freeze({status:"aborted"}),co=e=>({status:"dirty",value:e}),vt=e=>({status:"valid",value:e}),ih=e=>e.status==="aborted",oh=e=>e.status==="dirty",li=e=>e.status==="valid",Ua=e=>typeof Promise<"u"&&e instanceof Promise;var B;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(B||(B={}));var Gt=class{constructor(t,r,i,n){this._cachedPath=[],this.parent=t,this.data=r,this._path=i,this._key=n}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}},E$=(e,t)=>{if(li(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new Dt(e.common.issues);return this._error=r,this._error}}};function ie(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:i,description:n}=e;if(t&&(r||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:n}:{errorMap:(a,s)=>{let{message:l}=e;return a.code==="invalid_enum_value"?{message:l??s.defaultError}:typeof s.data>"u"?{message:l??i??s.defaultError}:a.code!=="invalid_type"?{message:s.defaultError}:{message:l??r??s.defaultError}},description:n}}var de=class{get description(){return this._def.description}_getType(t){return Hr(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:Hr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new dt,ctx:{common:t.parent.common,data:t.data,parsedType:Hr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(Ua(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){let r=this._parse(t);return Promise.resolve(r)}parse(t,r){let i=this.safeParse(t,r);if(i.success)return i.data;throw i.error}safeParse(t,r){let i={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Hr(t)},n=this._parseSync({data:t,path:i.path,parent:i});return E$(i,n)}"~validate"(t){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Hr(t)};if(!this["~standard"].async)try{let i=this._parseSync({data:t,path:[],parent:r});return li(i)?{value:i.value}:{issues:r.common.issues}}catch(i){i?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(i=>li(i)?{value:i.value}:{issues:r.common.issues})}async parseAsync(t,r){let i=await this.safeParseAsync(t,r);if(i.success)return i.data;throw i.error}async safeParseAsync(t,r){let i={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Hr(t)},n=this._parse({data:t,path:i.path,parent:i}),o=await(Ua(n)?n:Promise.resolve(n));return E$(i,o)}refine(t,r){let i=n=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(n):r;return this._refinement((n,o)=>{let a=t(n),s=()=>o.addIssue({code:R.custom,...i(n)});return typeof Promise<"u"&&a instanceof Promise?a.then(l=>l?!0:(s(),!1)):a?!0:(s(),!1)})}refinement(t,r){return this._refinement((i,n)=>t(i)?!0:(n.addIssue(typeof r=="function"?r(i,n):r),!1))}_refinement(t){return new dr({schema:this,typeName:A.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,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:r=>this["~validate"](r)}}optional(){return ur.create(this,this._def)}nullable(){return Kr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return $n.create(this)}promise(){return ui.create(this,this._def)}or(t){return fo.create([this,t],this._def)}and(t){return ho.create(this,t,this._def)}transform(t){return new dr({...ie(this._def),schema:this,typeName:A.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new xo({...ie(this._def),innerType:this,defaultValue:r,typeName:A.ZodDefault})}brand(){return new Sl({typeName:A.ZodBranded,type:this,...ie(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new _o({...ie(this._def),innerType:this,catchValue:r,typeName:A.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return kl.create(this,t)}readonly(){return $o.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},IO=/^c[^\s-]{8,}$/i,EO=/^[0-9a-z]+$/,RO=/^[0-9A-HJKMNP-TV-Z]{26}$/i,jO=/^[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,OO=/^[a-z0-9_-]{21}$/i,AO=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,NO=/^[-+]?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)?)??$/,CO=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,DO="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",ah,UO=/^(?:(?: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])$/,MO=/^(?:(?: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])$/,ZO=/^(([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]))$/,qO=/^(([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])$/,LO=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,FO=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,R$="((\\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])))",VO=new RegExp(`^${R$}$`);function j$(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function BO(e){return new RegExp(`^${j$(e)}$`)}function WO(e){let t=`${R$}T${j$(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function HO(e,t){return!!((t==="v4"||!t)&&UO.test(e)||(t==="v6"||!t)&&ZO.test(e))}function JO(e,t){if(!AO.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let i=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),n=JSON.parse(atob(i));return!(typeof n!="object"||n===null||"typ"in n&&n?.typ!=="JWT"||!n.alg||t&&n.alg!==t)}catch{return!1}}function GO(e,t){return!!((t==="v4"||!t)&&MO.test(e)||(t==="v6"||!t)&&qO.test(e))}var uo=class e extends de{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==V.string){let o=this._getOrReturnCtx(t);return Z(o,{code:R.invalid_type,expected:V.string,received:o.parsedType}),X}let i=new dt,n;for(let o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(n=this._getOrReturnCtx(t,n),Z(n,{code:R.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="max")t.data.length>o.value&&(n=this._getOrReturnCtx(t,n),Z(n,{code:R.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="length"){let a=t.data.length>o.value,s=t.data.length<o.value;(a||s)&&(n=this._getOrReturnCtx(t,n),a?Z(n,{code:R.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):s&&Z(n,{code:R.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),i.dirty())}else if(o.kind==="email")CO.test(t.data)||(n=this._getOrReturnCtx(t,n),Z(n,{validation:"email",code:R.invalid_string,message:o.message}),i.dirty());else if(o.kind==="emoji")ah||(ah=new RegExp(DO,"u")),ah.test(t.data)||(n=this._getOrReturnCtx(t,n),Z(n,{validation:"emoji",code:R.invalid_string,message:o.message}),i.dirty());else if(o.kind==="uuid")jO.test(t.data)||(n=this._getOrReturnCtx(t,n),Z(n,{validation:"uuid",code:R.invalid_string,message:o.message}),i.dirty());else if(o.kind==="nanoid")OO.test(t.data)||(n=this._getOrReturnCtx(t,n),Z(n,{validation:"nanoid",code:R.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid")IO.test(t.data)||(n=this._getOrReturnCtx(t,n),Z(n,{validation:"cuid",code:R.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid2")EO.test(t.data)||(n=this._getOrReturnCtx(t,n),Z(n,{validation:"cuid2",code:R.invalid_string,message:o.message}),i.dirty());else if(o.kind==="ulid")RO.test(t.data)||(n=this._getOrReturnCtx(t,n),Z(n,{validation:"ulid",code:R.invalid_string,message:o.message}),i.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{n=this._getOrReturnCtx(t,n),Z(n,{validation:"url",code:R.invalid_string,message:o.message}),i.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(n=this._getOrReturnCtx(t,n),Z(n,{validation:"regex",code:R.invalid_string,message:o.message}),i.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(n=this._getOrReturnCtx(t,n),Z(n,{code:R.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),i.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(n=this._getOrReturnCtx(t,n),Z(n,{code:R.invalid_string,validation:{startsWith:o.value},message:o.message}),i.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(n=this._getOrReturnCtx(t,n),Z(n,{code:R.invalid_string,validation:{endsWith:o.value},message:o.message}),i.dirty()):o.kind==="datetime"?WO(o).test(t.data)||(n=this._getOrReturnCtx(t,n),Z(n,{code:R.invalid_string,validation:"datetime",message:o.message}),i.dirty()):o.kind==="date"?VO.test(t.data)||(n=this._getOrReturnCtx(t,n),Z(n,{code:R.invalid_string,validation:"date",message:o.message}),i.dirty()):o.kind==="time"?BO(o).test(t.data)||(n=this._getOrReturnCtx(t,n),Z(n,{code:R.invalid_string,validation:"time",message:o.message}),i.dirty()):o.kind==="duration"?NO.test(t.data)||(n=this._getOrReturnCtx(t,n),Z(n,{validation:"duration",code:R.invalid_string,message:o.message}),i.dirty()):o.kind==="ip"?HO(t.data,o.version)||(n=this._getOrReturnCtx(t,n),Z(n,{validation:"ip",code:R.invalid_string,message:o.message}),i.dirty()):o.kind==="jwt"?JO(t.data,o.alg)||(n=this._getOrReturnCtx(t,n),Z(n,{validation:"jwt",code:R.invalid_string,message:o.message}),i.dirty()):o.kind==="cidr"?GO(t.data,o.version)||(n=this._getOrReturnCtx(t,n),Z(n,{validation:"cidr",code:R.invalid_string,message:o.message}),i.dirty()):o.kind==="base64"?LO.test(t.data)||(n=this._getOrReturnCtx(t,n),Z(n,{validation:"base64",code:R.invalid_string,message:o.message}),i.dirty()):o.kind==="base64url"?FO.test(t.data)||(n=this._getOrReturnCtx(t,n),Z(n,{validation:"base64url",code:R.invalid_string,message:o.message}),i.dirty()):ve.assertNever(o);return{status:i.value,value:t.data}}_regex(t,r,i){return this.refinement(n=>t.test(n),{validation:r,code:R.invalid_string,...B.errToObj(i)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...B.errToObj(t)})}url(t){return this._addCheck({kind:"url",...B.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...B.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...B.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...B.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...B.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...B.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...B.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...B.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...B.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...B.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...B.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...B.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...B.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...B.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...B.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...B.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...B.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...B.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...B.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...B.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...B.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...B.errToObj(r)})}nonempty(t){return this.min(1,B.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};uo.create=e=>new uo({checks:[],typeName:A.ZodString,coerce:e?.coerce??!1,...ie(e)});function KO(e,t){let r=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,n=r>i?r:i,o=Number.parseInt(e.toFixed(n).replace(".","")),a=Number.parseInt(t.toFixed(n).replace(".",""));return o%a/10**n}var Ma=class e extends de{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==V.number){let o=this._getOrReturnCtx(t);return Z(o,{code:R.invalid_type,expected:V.number,received:o.parsedType}),X}let i,n=new dt;for(let o of this._def.checks)o.kind==="int"?ve.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),Z(i,{code:R.invalid_type,expected:"integer",received:"float",message:o.message}),n.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(i=this._getOrReturnCtx(t,i),Z(i,{code:R.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(i=this._getOrReturnCtx(t,i),Z(i,{code:R.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()):o.kind==="multipleOf"?KO(t.data,o.value)!==0&&(i=this._getOrReturnCtx(t,i),Z(i,{code:R.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),Z(i,{code:R.not_finite,message:o.message}),n.dirty()):ve.assertNever(o);return{status:n.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,B.toString(r))}gt(t,r){return this.setLimit("min",t,!1,B.toString(r))}lte(t,r){return this.setLimit("max",t,!0,B.toString(r))}lt(t,r){return this.setLimit("max",t,!1,B.toString(r))}setLimit(t,r,i,n){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:i,message:B.toString(n)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:B.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:B.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:B.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:B.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:B.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:B.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:B.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:B.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:B.toString(t)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ve.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(r===null||i.value>r)&&(r=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(r)&&Number.isFinite(t)}};Ma.create=e=>new Ma({checks:[],typeName:A.ZodNumber,coerce:e?.coerce||!1,...ie(e)});var Za=class e extends de{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==V.bigint)return this._getInvalidInput(t);let i,n=new dt;for(let o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(i=this._getOrReturnCtx(t,i),Z(i,{code:R.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(i=this._getOrReturnCtx(t,i),Z(i,{code:R.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),Z(i,{code:R.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):ve.assertNever(o);return{status:n.value,value:t.data}}_getInvalidInput(t){let r=this._getOrReturnCtx(t);return Z(r,{code:R.invalid_type,expected:V.bigint,received:r.parsedType}),X}gte(t,r){return this.setLimit("min",t,!0,B.toString(r))}gt(t,r){return this.setLimit("min",t,!1,B.toString(r))}lte(t,r){return this.setLimit("max",t,!0,B.toString(r))}lt(t,r){return this.setLimit("max",t,!1,B.toString(r))}setLimit(t,r,i,n){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:i,message:B.toString(n)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:B.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:B.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:B.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:B.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:B.toString(r)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};Za.create=e=>new Za({checks:[],typeName:A.ZodBigInt,coerce:e?.coerce??!1,...ie(e)});var qa=class extends de{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==V.boolean){let i=this._getOrReturnCtx(t);return Z(i,{code:R.invalid_type,expected:V.boolean,received:i.parsedType}),X}return vt(t.data)}};qa.create=e=>new qa({typeName:A.ZodBoolean,coerce:e?.coerce||!1,...ie(e)});var La=class e extends de{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==V.date){let o=this._getOrReturnCtx(t);return Z(o,{code:R.invalid_type,expected:V.date,received:o.parsedType}),X}if(Number.isNaN(t.data.getTime())){let o=this._getOrReturnCtx(t);return Z(o,{code:R.invalid_date}),X}let i=new dt,n;for(let o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(n=this._getOrReturnCtx(t,n),Z(n,{code:R.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),i.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(n=this._getOrReturnCtx(t,n),Z(n,{code:R.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),i.dirty()):ve.assertNever(o);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:B.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:B.toString(r)})}get minDate(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}};La.create=e=>new La({checks:[],coerce:e?.coerce||!1,typeName:A.ZodDate,...ie(e)});var Fa=class extends de{_parse(t){if(this._getType(t)!==V.symbol){let i=this._getOrReturnCtx(t);return Z(i,{code:R.invalid_type,expected:V.symbol,received:i.parsedType}),X}return vt(t.data)}};Fa.create=e=>new Fa({typeName:A.ZodSymbol,...ie(e)});var po=class extends de{_parse(t){if(this._getType(t)!==V.undefined){let i=this._getOrReturnCtx(t);return Z(i,{code:R.invalid_type,expected:V.undefined,received:i.parsedType}),X}return vt(t.data)}};po.create=e=>new po({typeName:A.ZodUndefined,...ie(e)});var mo=class extends de{_parse(t){if(this._getType(t)!==V.null){let i=this._getOrReturnCtx(t);return Z(i,{code:R.invalid_type,expected:V.null,received:i.parsedType}),X}return vt(t.data)}};mo.create=e=>new mo({typeName:A.ZodNull,...ie(e)});var Va=class extends de{constructor(){super(...arguments),this._any=!0}_parse(t){return vt(t.data)}};Va.create=e=>new Va({typeName:A.ZodAny,...ie(e)});var _n=class extends de{constructor(){super(...arguments),this._unknown=!0}_parse(t){return vt(t.data)}};_n.create=e=>new _n({typeName:A.ZodUnknown,...ie(e)});var Pr=class extends de{_parse(t){let r=this._getOrReturnCtx(t);return Z(r,{code:R.invalid_type,expected:V.never,received:r.parsedType}),X}};Pr.create=e=>new Pr({typeName:A.ZodNever,...ie(e)});var Ba=class extends de{_parse(t){if(this._getType(t)!==V.undefined){let i=this._getOrReturnCtx(t);return Z(i,{code:R.invalid_type,expected:V.void,received:i.parsedType}),X}return vt(t.data)}};Ba.create=e=>new Ba({typeName:A.ZodVoid,...ie(e)});var $n=class e extends de{_parse(t){let{ctx:r,status:i}=this._processInputParams(t),n=this._def;if(r.parsedType!==V.array)return Z(r,{code:R.invalid_type,expected:V.array,received:r.parsedType}),X;if(n.exactLength!==null){let a=r.data.length>n.exactLength.value,s=r.data.length<n.exactLength.value;(a||s)&&(Z(r,{code:a?R.too_big:R.too_small,minimum:s?n.exactLength.value:void 0,maximum:a?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),i.dirty())}if(n.minLength!==null&&r.data.length<n.minLength.value&&(Z(r,{code:R.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),i.dirty()),n.maxLength!==null&&r.data.length>n.maxLength.value&&(Z(r,{code:R.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),i.dirty()),r.common.async)return Promise.all([...r.data].map((a,s)=>n.type._parseAsync(new Gt(r,a,r.path,s)))).then(a=>dt.mergeArray(i,a));let o=[...r.data].map((a,s)=>n.type._parseSync(new Gt(r,a,r.path,s)));return dt.mergeArray(i,o)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:B.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:B.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:B.toString(r)}})}nonempty(t){return this.min(1,t)}};$n.create=(e,t)=>new $n({type:e,minLength:null,maxLength:null,exactLength:null,typeName:A.ZodArray,...ie(t)});function lo(e){if(e instanceof Ut){let t={};for(let r in e.shape){let i=e.shape[r];t[r]=ur.create(lo(i))}return new Ut({...e._def,shape:()=>t})}else return e instanceof $n?new $n({...e._def,type:lo(e.element)}):e instanceof ur?ur.create(lo(e.unwrap())):e instanceof Kr?Kr.create(lo(e.unwrap())):e instanceof Gr?Gr.create(e.items.map(t=>lo(t))):e}var Ut=class e extends de{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),r=ve.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==V.object){let d=this._getOrReturnCtx(t);return Z(d,{code:R.invalid_type,expected:V.object,received:d.parsedType}),X}let{status:i,ctx:n}=this._processInputParams(t),{shape:o,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof Pr&&this._def.unknownKeys==="strip"))for(let d in n.data)a.includes(d)||s.push(d);let l=[];for(let d of a){let p=o[d],f=n.data[d];l.push({key:{status:"valid",value:d},value:p._parse(new Gt(n,f,n.path,d)),alwaysSet:d in n.data})}if(this._def.catchall instanceof Pr){let d=this._def.unknownKeys;if(d==="passthrough")for(let p of s)l.push({key:{status:"valid",value:p},value:{status:"valid",value:n.data[p]}});else if(d==="strict")s.length>0&&(Z(n,{code:R.unrecognized_keys,keys:s}),i.dirty());else if(d!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let d=this._def.catchall;for(let p of s){let f=n.data[p];l.push({key:{status:"valid",value:p},value:d._parse(new Gt(n,f,n.path,p)),alwaysSet:p in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let d=[];for(let p of l){let f=await p.key,g=await p.value;d.push({key:f,value:g,alwaysSet:p.alwaysSet})}return d}).then(d=>dt.mergeObjectSync(i,d)):dt.mergeObjectSync(i,l)}get shape(){return this._def.shape()}strict(t){return B.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,i)=>{let n=this._def.errorMap?.(r,i).message??i.defaultError;return r.code==="unrecognized_keys"?{message:B.errToObj(t).message??n}:{message:n}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:A.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};for(let i of ve.objectKeys(t))t[i]&&this.shape[i]&&(r[i]=this.shape[i]);return new e({...this._def,shape:()=>r})}omit(t){let r={};for(let i of ve.objectKeys(this.shape))t[i]||(r[i]=this.shape[i]);return new e({...this._def,shape:()=>r})}deepPartial(){return lo(this)}partial(t){let r={};for(let i of ve.objectKeys(this.shape)){let n=this.shape[i];t&&!t[i]?r[i]=n:r[i]=n.optional()}return new e({...this._def,shape:()=>r})}required(t){let r={};for(let i of ve.objectKeys(this.shape))if(t&&!t[i])r[i]=this.shape[i];else{let o=this.shape[i];for(;o instanceof ur;)o=o._def.innerType;r[i]=o}return new e({...this._def,shape:()=>r})}keyof(){return O$(ve.objectKeys(this.shape))}};Ut.create=(e,t)=>new Ut({shape:()=>e,unknownKeys:"strip",catchall:Pr.create(),typeName:A.ZodObject,...ie(t)});Ut.strictCreate=(e,t)=>new Ut({shape:()=>e,unknownKeys:"strict",catchall:Pr.create(),typeName:A.ZodObject,...ie(t)});Ut.lazycreate=(e,t)=>new Ut({shape:e,unknownKeys:"strip",catchall:Pr.create(),typeName:A.ZodObject,...ie(t)});var fo=class extends de{_parse(t){let{ctx:r}=this._processInputParams(t),i=this._def.options;function n(o){for(let s of o)if(s.result.status==="valid")return s.result;for(let s of o)if(s.result.status==="dirty")return r.common.issues.push(...s.ctx.common.issues),s.result;let a=o.map(s=>new Dt(s.ctx.common.issues));return Z(r,{code:R.invalid_union,unionErrors:a}),X}if(r.common.async)return Promise.all(i.map(async o=>{let a={...r,common:{...r.common,issues:[]},parent:null};return{result:await o._parseAsync({data:r.data,path:r.path,parent:a}),ctx:a}})).then(n);{let o,a=[];for(let l of i){let d={...r,common:{...r.common,issues:[]},parent:null},p=l._parseSync({data:r.data,path:r.path,parent:d});if(p.status==="valid")return p;p.status==="dirty"&&!o&&(o={result:p,ctx:d}),d.common.issues.length&&a.push(d.common.issues)}if(o)return r.common.issues.push(...o.ctx.common.issues),o.result;let s=a.map(l=>new Dt(l));return Z(r,{code:R.invalid_union,unionErrors:s}),X}}get options(){return this._def.options}};fo.create=(e,t)=>new fo({options:e,typeName:A.ZodUnion,...ie(t)});var Jr=e=>e instanceof go?Jr(e.schema):e instanceof dr?Jr(e.innerType()):e instanceof vo?[e.value]:e instanceof yo?e.options:e instanceof bo?ve.objectValues(e.enum):e instanceof xo?Jr(e._def.innerType):e instanceof po?[void 0]:e instanceof mo?[null]:e instanceof ur?[void 0,...Jr(e.unwrap())]:e instanceof Kr?[null,...Jr(e.unwrap())]:e instanceof Sl||e instanceof $o?Jr(e.unwrap()):e instanceof _o?Jr(e._def.innerType):[],sh=class e extends de{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==V.object)return Z(r,{code:R.invalid_type,expected:V.object,received:r.parsedType}),X;let i=this.discriminator,n=r.data[i],o=this.optionsMap.get(n);return o?r.common.async?o._parseAsync({data:r.data,path:r.path,parent:r}):o._parseSync({data:r.data,path:r.path,parent:r}):(Z(r,{code:R.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),X)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,i){let n=new Map;for(let o of r){let a=Jr(o.shape[t]);if(!a.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let s of a){if(n.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);n.set(s,o)}}return new e({typeName:A.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:n,...ie(i)})}};function ch(e,t){let r=Hr(e),i=Hr(t);if(e===t)return{valid:!0,data:e};if(r===V.object&&i===V.object){let n=ve.objectKeys(t),o=ve.objectKeys(e).filter(s=>n.indexOf(s)!==-1),a={...e,...t};for(let s of o){let l=ch(e[s],t[s]);if(!l.valid)return{valid:!1};a[s]=l.data}return{valid:!0,data:a}}else if(r===V.array&&i===V.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let o=0;o<e.length;o++){let a=e[o],s=t[o],l=ch(a,s);if(!l.valid)return{valid:!1};n.push(l.data)}return{valid:!0,data:n}}else return r===V.date&&i===V.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var ho=class extends de{_parse(t){let{status:r,ctx:i}=this._processInputParams(t),n=(o,a)=>{if(ih(o)||ih(a))return X;let s=ch(o.value,a.value);return s.valid?((oh(o)||oh(a))&&r.dirty(),{status:r.value,value:s.data}):(Z(i,{code:R.invalid_intersection_types}),X)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([o,a])=>n(o,a)):n(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}};ho.create=(e,t,r)=>new ho({left:e,right:t,typeName:A.ZodIntersection,...ie(r)});var Gr=class e extends de{_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==V.array)return Z(i,{code:R.invalid_type,expected:V.array,received:i.parsedType}),X;if(i.data.length<this._def.items.length)return Z(i,{code:R.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),X;!this._def.rest&&i.data.length>this._def.items.length&&(Z(i,{code:R.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let o=[...i.data].map((a,s)=>{let l=this._def.items[s]||this._def.rest;return l?l._parse(new Gt(i,a,i.path,s)):null}).filter(a=>!!a);return i.common.async?Promise.all(o).then(a=>dt.mergeArray(r,a)):dt.mergeArray(r,o)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Gr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Gr({items:e,typeName:A.ZodTuple,rest:null,...ie(t)})};var lh=class e extends de{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==V.object)return Z(i,{code:R.invalid_type,expected:V.object,received:i.parsedType}),X;let n=[],o=this._def.keyType,a=this._def.valueType;for(let s in i.data)n.push({key:o._parse(new Gt(i,s,i.path,s)),value:a._parse(new Gt(i,i.data[s],i.path,s)),alwaysSet:s in i.data});return i.common.async?dt.mergeObjectAsync(r,n):dt.mergeObjectSync(r,n)}get element(){return this._def.valueType}static create(t,r,i){return r instanceof de?new e({keyType:t,valueType:r,typeName:A.ZodRecord,...ie(i)}):new e({keyType:uo.create(),valueType:t,typeName:A.ZodRecord,...ie(r)})}},Wa=class extends de{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==V.map)return Z(i,{code:R.invalid_type,expected:V.map,received:i.parsedType}),X;let n=this._def.keyType,o=this._def.valueType,a=[...i.data.entries()].map(([s,l],d)=>({key:n._parse(new Gt(i,s,i.path,[d,"key"])),value:o._parse(new Gt(i,l,i.path,[d,"value"]))}));if(i.common.async){let s=new Map;return Promise.resolve().then(async()=>{for(let l of a){let d=await l.key,p=await l.value;if(d.status==="aborted"||p.status==="aborted")return X;(d.status==="dirty"||p.status==="dirty")&&r.dirty(),s.set(d.value,p.value)}return{status:r.value,value:s}})}else{let s=new Map;for(let l of a){let d=l.key,p=l.value;if(d.status==="aborted"||p.status==="aborted")return X;(d.status==="dirty"||p.status==="dirty")&&r.dirty(),s.set(d.value,p.value)}return{status:r.value,value:s}}}};Wa.create=(e,t,r)=>new Wa({valueType:t,keyType:e,typeName:A.ZodMap,...ie(r)});var Ha=class e extends de{_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==V.set)return Z(i,{code:R.invalid_type,expected:V.set,received:i.parsedType}),X;let n=this._def;n.minSize!==null&&i.data.size<n.minSize.value&&(Z(i,{code:R.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),r.dirty()),n.maxSize!==null&&i.data.size>n.maxSize.value&&(Z(i,{code:R.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),r.dirty());let o=this._def.valueType;function a(l){let d=new Set;for(let p of l){if(p.status==="aborted")return X;p.status==="dirty"&&r.dirty(),d.add(p.value)}return{status:r.value,value:d}}let s=[...i.data.values()].map((l,d)=>o._parse(new Gt(i,l,i.path,d)));return i.common.async?Promise.all(s).then(l=>a(l)):a(s)}min(t,r){return new e({...this._def,minSize:{value:t,message:B.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:B.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};Ha.create=(e,t)=>new Ha({valueType:e,minSize:null,maxSize:null,typeName:A.ZodSet,...ie(t)});var uh=class e extends de{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==V.function)return Z(r,{code:R.invalid_type,expected:V.function,received:r.parsedType}),X;function i(s,l){return wl({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Da(),xn].filter(d=>!!d),issueData:{code:R.invalid_arguments,argumentsError:l}})}function n(s,l){return wl({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Da(),xn].filter(d=>!!d),issueData:{code:R.invalid_return_type,returnTypeError:l}})}let o={errorMap:r.common.contextualErrorMap},a=r.data;if(this._def.returns instanceof ui){let s=this;return vt(async function(...l){let d=new Dt([]),p=await s._def.args.parseAsync(l,o).catch(y=>{throw d.addIssue(i(l,y)),d}),f=await Reflect.apply(a,this,p);return await s._def.returns._def.type.parseAsync(f,o).catch(y=>{throw d.addIssue(n(f,y)),d})})}else{let s=this;return vt(function(...l){let d=s._def.args.safeParse(l,o);if(!d.success)throw new Dt([i(l,d.error)]);let p=Reflect.apply(a,this,d.data),f=s._def.returns.safeParse(p,o);if(!f.success)throw new Dt([n(p,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Gr.create(t).rest(_n.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,i){return new e({args:t||Gr.create([]).rest(_n.create()),returns:r||_n.create(),typeName:A.ZodFunction,...ie(i)})}},go=class extends de{get schema(){return this._def.getter()}_parse(t){let{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};go.create=(e,t)=>new go({getter:e,typeName:A.ZodLazy,...ie(t)});var vo=class extends de{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return Z(r,{received:r.data,code:R.invalid_literal,expected:this._def.value}),X}return{status:"valid",value:t.data}}get value(){return this._def.value}};vo.create=(e,t)=>new vo({value:e,typeName:A.ZodLiteral,...ie(t)});function O$(e,t){return new yo({values:e,typeName:A.ZodEnum,...ie(t)})}var yo=class e extends de{_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),i=this._def.values;return Z(r,{expected:ve.joinValues(i),received:r.parsedType,code:R.invalid_type}),X}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let r=this._getOrReturnCtx(t),i=this._def.values;return Z(r,{received:r.data,code:R.invalid_enum_value,options:i}),X}return vt(t.data)}get options(){return this._def.values}get enum(){let t={};for(let r of this._def.values)t[r]=r;return t}get Values(){let t={};for(let r of this._def.values)t[r]=r;return t}get Enum(){let t={};for(let r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return e.create(t,{...this._def,...r})}exclude(t,r=this._def){return e.create(this.options.filter(i=>!t.includes(i)),{...this._def,...r})}};yo.create=O$;var bo=class extends de{_parse(t){let r=ve.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==V.string&&i.parsedType!==V.number){let n=ve.objectValues(r);return Z(i,{expected:ve.joinValues(n),received:i.parsedType,code:R.invalid_type}),X}if(this._cache||(this._cache=new Set(ve.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let n=ve.objectValues(r);return Z(i,{received:i.data,code:R.invalid_enum_value,options:n}),X}return vt(t.data)}get enum(){return this._def.values}};bo.create=(e,t)=>new bo({values:e,typeName:A.ZodNativeEnum,...ie(t)});var ui=class extends de{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==V.promise&&r.common.async===!1)return Z(r,{code:R.invalid_type,expected:V.promise,received:r.parsedType}),X;let i=r.parsedType===V.promise?r.data:Promise.resolve(r.data);return vt(i.then(n=>this._def.type.parseAsync(n,{path:r.path,errorMap:r.common.contextualErrorMap})))}};ui.create=(e,t)=>new ui({type:e,typeName:A.ZodPromise,...ie(t)});var dr=class extends de{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===A.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:i}=this._processInputParams(t),n=this._def.effect||null,o={addIssue:a=>{Z(i,a),a.fatal?r.abort():r.dirty()},get path(){return i.path}};if(o.addIssue=o.addIssue.bind(o),n.type==="preprocess"){let a=n.transform(i.data,o);if(i.common.async)return Promise.resolve(a).then(async s=>{if(r.value==="aborted")return X;let l=await this._def.schema._parseAsync({data:s,path:i.path,parent:i});return l.status==="aborted"?X:l.status==="dirty"?co(l.value):r.value==="dirty"?co(l.value):l});{if(r.value==="aborted")return X;let s=this._def.schema._parseSync({data:a,path:i.path,parent:i});return s.status==="aborted"?X:s.status==="dirty"?co(s.value):r.value==="dirty"?co(s.value):s}}if(n.type==="refinement"){let a=s=>{let l=n.refinement(s,o);if(i.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(i.common.async===!1){let s=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return s.status==="aborted"?X:(s.status==="dirty"&&r.dirty(),a(s.value),{status:r.value,value:s.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(s=>s.status==="aborted"?X:(s.status==="dirty"&&r.dirty(),a(s.value).then(()=>({status:r.value,value:s.value}))))}if(n.type==="transform")if(i.common.async===!1){let a=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!li(a))return X;let s=n.transform(a.value,o);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:s}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(a=>li(a)?Promise.resolve(n.transform(a.value,o)).then(s=>({status:r.value,value:s})):X);ve.assertNever(n)}};dr.create=(e,t,r)=>new dr({schema:e,typeName:A.ZodEffects,effect:t,...ie(r)});dr.createWithPreprocess=(e,t,r)=>new dr({schema:t,effect:{type:"preprocess",transform:e},typeName:A.ZodEffects,...ie(r)});var ur=class extends de{_parse(t){return this._getType(t)===V.undefined?vt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};ur.create=(e,t)=>new ur({innerType:e,typeName:A.ZodOptional,...ie(t)});var Kr=class extends de{_parse(t){return this._getType(t)===V.null?vt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Kr.create=(e,t)=>new Kr({innerType:e,typeName:A.ZodNullable,...ie(t)});var xo=class extends de{_parse(t){let{ctx:r}=this._processInputParams(t),i=r.data;return r.parsedType===V.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};xo.create=(e,t)=>new xo({innerType:e,typeName:A.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ie(t)});var _o=class extends de{_parse(t){let{ctx:r}=this._processInputParams(t),i={...r,common:{...r.common,issues:[]}},n=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return Ua(n)?n.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Dt(i.common.issues)},input:i.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new Dt(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}};_o.create=(e,t)=>new _o({innerType:e,typeName:A.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ie(t)});var Ja=class extends de{_parse(t){if(this._getType(t)!==V.nan){let i=this._getOrReturnCtx(t);return Z(i,{code:R.invalid_type,expected:V.nan,received:i.parsedType}),X}return{status:"valid",value:t.data}}};Ja.create=e=>new Ja({typeName:A.ZodNaN,...ie(e)});var Sl=class extends de{_parse(t){let{ctx:r}=this._processInputParams(t),i=r.data;return this._def.type._parse({data:i,path:r.path,parent:r})}unwrap(){return this._def.type}},kl=class e extends de{_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{let o=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return o.status==="aborted"?X:o.status==="dirty"?(r.dirty(),co(o.value)):this._def.out._parseAsync({data:o.value,path:i.path,parent:i})})();{let n=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return n.status==="aborted"?X:n.status==="dirty"?(r.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:i.path,parent:i})}}static create(t,r){return new e({in:t,out:r,typeName:A.ZodPipeline})}},$o=class extends de{_parse(t){let r=this._def.innerType._parse(t),i=n=>(li(n)&&(n.value=Object.freeze(n.value)),n);return Ua(r)?r.then(n=>i(n)):i(r)}unwrap(){return this._def.innerType}};$o.create=(e,t)=>new $o({innerType:e,typeName:A.ZodReadonly,...ie(t)});var iF={object:Ut.lazycreate},A;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(A||(A={}));var oF=uo.create,aF=Ma.create,sF=Ja.create,cF=Za.create,lF=qa.create,uF=La.create,dF=Fa.create,pF=po.create,mF=mo.create,fF=Va.create,hF=_n.create,gF=Pr.create,vF=Ba.create,yF=$n.create,A$=Ut.create,bF=Ut.strictCreate,xF=fo.create,_F=sh.create,$F=ho.create,wF=Gr.create,SF=lh.create,kF=Wa.create,zF=Ha.create,TF=uh.create,PF=go.create,IF=vo.create,EF=yo.create,RF=bo.create,jF=ui.create,OF=dr.create,AF=ur.create,NF=Kr.create,CF=dr.createWithPreprocess,DF=kl.create;var Zt={};Tr(Zt,{$ZodAny:()=>ku,$ZodArray:()=>Eu,$ZodAsyncError:()=>pr,$ZodBase64:()=>hu,$ZodBase64URL:()=>gu,$ZodBigInt:()=>cs,$ZodBigIntFormat:()=>_u,$ZodBoolean:()=>Oo,$ZodCIDRv4:()=>mu,$ZodCIDRv6:()=>fu,$ZodCUID:()=>tu,$ZodCUID2:()=>ru,$ZodCatch:()=>Ju,$ZodCheck:()=>Ie,$ZodCheckBigIntFormat:()=>Kh,$ZodCheckEndsWith:()=>cg,$ZodCheckGreaterThan:()=>Fl,$ZodCheckIncludes:()=>ag,$ZodCheckLengthEquals:()=>rg,$ZodCheckLessThan:()=>Ll,$ZodCheckLowerCase:()=>ig,$ZodCheckMaxLength:()=>eg,$ZodCheckMaxSize:()=>Yh,$ZodCheckMimeType:()=>ug,$ZodCheckMinLength:()=>tg,$ZodCheckMinSize:()=>Xh,$ZodCheckMultipleOf:()=>Jh,$ZodCheckNumberFormat:()=>Gh,$ZodCheckOverwrite:()=>dg,$ZodCheckProperty:()=>lg,$ZodCheckRegex:()=>ng,$ZodCheckSizeEquals:()=>Qh,$ZodCheckStartsWith:()=>sg,$ZodCheckStringFormat:()=>jo,$ZodCheckUpperCase:()=>og,$ZodCodec:()=>No,$ZodCustom:()=>rd,$ZodCustomStringFormat:()=>bu,$ZodDate:()=>Iu,$ZodDefault:()=>Vu,$ZodDiscriminatedUnion:()=>Ou,$ZodE164:()=>vu,$ZodEmail:()=>Yl,$ZodEmoji:()=>Ql,$ZodEncodeError:()=>wn,$ZodEnum:()=>Uu,$ZodError:()=>ns,$ZodExactOptional:()=>Lu,$ZodFile:()=>Zu,$ZodFunction:()=>Qu,$ZodGUID:()=>Gl,$ZodIPv4:()=>uu,$ZodIPv6:()=>du,$ZodISODate:()=>su,$ZodISODateTime:()=>au,$ZodISODuration:()=>lu,$ZodISOTime:()=>cu,$ZodIntersection:()=>Au,$ZodJWT:()=>yu,$ZodKSUID:()=>ou,$ZodLazy:()=>td,$ZodLiteral:()=>Mu,$ZodMAC:()=>pu,$ZodMap:()=>Cu,$ZodNaN:()=>Gu,$ZodNanoID:()=>eu,$ZodNever:()=>Tu,$ZodNonOptional:()=>Wu,$ZodNull:()=>Su,$ZodNullable:()=>Fu,$ZodNumber:()=>ss,$ZodNumberFormat:()=>xu,$ZodObject:()=>Ru,$ZodObjectJIT:()=>hg,$ZodOptional:()=>us,$ZodPipe:()=>Ku,$ZodPrefault:()=>Bu,$ZodPromise:()=>ed,$ZodReadonly:()=>Yu,$ZodRealError:()=>zt,$ZodRecord:()=>Nu,$ZodRegistry:()=>ad,$ZodSet:()=>Du,$ZodString:()=>En,$ZodStringFormat:()=>Te,$ZodSuccess:()=>Hu,$ZodSymbol:()=>$u,$ZodTemplateLiteral:()=>Xu,$ZodTransform:()=>qu,$ZodTuple:()=>ls,$ZodType:()=>ee,$ZodULID:()=>nu,$ZodURL:()=>Xl,$ZodUUID:()=>Kl,$ZodUndefined:()=>wu,$ZodUnion:()=>Ao,$ZodUnknown:()=>zu,$ZodVoid:()=>Pu,$ZodXID:()=>iu,$ZodXor:()=>ju,$brand:()=>Ka,$constructor:()=>_,$input:()=>cd,$output:()=>sd,Doc:()=>as,JSONSchema:()=>bS,JSONSchemaGenerator:()=>Kd,NEVER:()=>zl,TimePrecision:()=>pd,_any:()=>Od,_array:()=>gg,_base64:()=>Is,_base64url:()=>Es,_bigint:()=>zd,_boolean:()=>Sd,_catch:()=>iC,_check:()=>yS,_cidrv4:()=>Ts,_cidrv6:()=>Ps,_coercedBigint:()=>Td,_coercedBoolean:()=>kd,_coercedDate:()=>Ud,_coercedNumber:()=>yd,_coercedString:()=>ud,_cuid:()=>xs,_cuid2:()=>_s,_custom:()=>qd,_date:()=>Dd,_decode:()=>Ol,_decodeAsync:()=>Nl,_default:()=>tC,_discriminatedUnion:()=>FN,_e164:()=>Rs,_email:()=>ms,_emoji:()=>ys,_encode:()=>jl,_encodeAsync:()=>Al,_endsWith:()=>xi,_enum:()=>GN,_file:()=>Zd,_float32:()=>xd,_float64:()=>_d,_gt:()=>fr,_gte:()=>rt,_guid:()=>Uo,_includes:()=>yi,_int:()=>bd,_int32:()=>$d,_int64:()=>Pd,_intersection:()=>VN,_ipv4:()=>ks,_ipv6:()=>zs,_isoDate:()=>fd,_isoDateTime:()=>md,_isoDuration:()=>gd,_isoTime:()=>hd,_jwt:()=>js,_ksuid:()=>Ss,_lazy:()=>cC,_length:()=>On,_literal:()=>YN,_lowercase:()=>gi,_lt:()=>mr,_lte:()=>yt,_mac:()=>dd,_map:()=>HN,_max:()=>yt,_maxLength:()=>jn,_maxSize:()=>Qr,_mime:()=>_i,_min:()=>rt,_minLength:()=>Ir,_minSize:()=>hr,_multipleOf:()=>Xr,_nan:()=>Md,_nanoid:()=>bs,_nativeEnum:()=>KN,_negative:()=>As,_never:()=>Nd,_nonnegative:()=>Cs,_nonoptional:()=>rC,_nonpositive:()=>Ns,_normalize:()=>$i,_null:()=>jd,_nullable:()=>eC,_number:()=>vd,_optional:()=>QN,_overwrite:()=>Yt,_parse:()=>Po,_parseAsync:()=>Io,_pipe:()=>oC,_positive:()=>Os,_promise:()=>lC,_property:()=>Ds,_readonly:()=>aC,_record:()=>WN,_refine:()=>Ld,_regex:()=>hi,_safeDecode:()=>Dl,_safeDecodeAsync:()=>Ml,_safeEncode:()=>Cl,_safeEncodeAsync:()=>Ul,_safeParse:()=>Eo,_safeParseAsync:()=>Ro,_set:()=>JN,_size:()=>Rn,_slugify:()=>Zo,_startsWith:()=>bi,_string:()=>ld,_stringFormat:()=>zi,_stringbool:()=>Wd,_success:()=>nC,_superRefine:()=>Fd,_symbol:()=>Ed,_templateLiteral:()=>sC,_toLowerCase:()=>Si,_toUpperCase:()=>ki,_transform:()=>XN,_trim:()=>wi,_tuple:()=>BN,_uint32:()=>wd,_uint64:()=>Id,_ulid:()=>$s,_undefined:()=>Rd,_union:()=>qN,_unknown:()=>Ad,_uppercase:()=>vi,_url:()=>Mo,_uuid:()=>fs,_uuidv4:()=>hs,_uuidv6:()=>gs,_uuidv7:()=>vs,_void:()=>Cd,_xid:()=>ws,_xor:()=>LN,clone:()=>Ye,config:()=>Fe,createStandardJSONSchemaMethod:()=>qo,createToJSONSchemaMethod:()=>vg,decode:()=>H$,decodeAsync:()=>G$,describe:()=>Vd,encode:()=>W$,encodeAsync:()=>J$,extractDefs:()=>Nn,finalize:()=>Cn,flattenError:()=>zo,formatError:()=>To,globalConfig:()=>Ga,globalRegistry:()=>Xe,initializeContext:()=>An,isValidBase64:()=>fg,isValidBase64URL:()=>vw,isValidJWT:()=>yw,locales:()=>Do,meta:()=>Bd,parse:()=>pi,parseAsync:()=>mi,prettifyError:()=>Rl,process:()=>ze,regexes:()=>Tt,registry:()=>ps,safeDecode:()=>Y$,safeDecodeAsync:()=>Q$,safeEncode:()=>K$,safeEncodeAsync:()=>X$,safeParse:()=>Pn,safeParseAsync:()=>In,toDotPath:()=>B$,toJSONSchema:()=>Ti,treeifyError:()=>El,util:()=>j,version:()=>pg});var zl=Object.freeze({status:"aborted"});function _(e,t,r){function i(s,l){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:l,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,l);let d=a.prototype,p=Object.keys(d);for(let f=0;f<p.length;f++){let g=p[f];g in s||(s[g]=d[g].bind(s))}}let n=r?.Parent??Object;class o extends n{}Object.defineProperty(o,"name",{value:e});function a(s){var l;let d=r?.Parent?new o:this;i(d,s),(l=d._zod).deferred??(l.deferred=[]);for(let p of d._zod.deferred)p();return d}return Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var Ka=Symbol("zod_brand"),pr=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},wn=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Ga={};function Fe(e){return e&&Object.assign(Ga,e),Ga}var j={};Tr(j,{BIGINT_FORMAT_RANGES:()=>bh,Class:()=>ph,NUMBER_FORMAT_RANGES:()=>yh,aborted:()=>Tn,allowsEval:()=>hh,assert:()=>nA,assertEqual:()=>QO,assertIs:()=>tA,assertNever:()=>rA,assertNotEqual:()=>eA,assignProp:()=>kn,base64ToUint8Array:()=>L$,base64urlToUint8Array:()=>fA,cached:()=>So,captureStackTrace:()=>Pl,cleanEnum:()=>mA,cleanRegex:()=>Qa,clone:()=>Ye,cloneDef:()=>oA,createTransparentProxy:()=>dA,defineLazy:()=>oe,esc:()=>Tl,escapeRegex:()=>Kt,extend:()=>U$,finalizeIssue:()=>kt,floatSafeRemainder:()=>mh,getElementAtPath:()=>aA,getEnumValues:()=>Xa,getLengthableOrigin:()=>rs,getParsedType:()=>uA,getSizableOrigin:()=>ts,hexToUint8Array:()=>gA,isObject:()=>di,isPlainObject:()=>zn,issue:()=>ko,joinValues:()=>w,jsonStringifyReplacer:()=>wo,merge:()=>pA,mergeDefs:()=>Yr,normalizeParams:()=>N,nullish:()=>Sn,numKeys:()=>lA,objectClone:()=>iA,omit:()=>D$,optionalKeys:()=>vh,parsedType:()=>O,partial:()=>Z$,pick:()=>C$,prefixIssues:()=>Mt,primitiveTypes:()=>gh,promiseAllObject:()=>sA,propertyKeyTypes:()=>es,randomString:()=>cA,required:()=>q$,safeExtend:()=>M$,shallowClone:()=>Il,slugify:()=>fh,stringifyPrimitive:()=>E,uint8ArrayToBase64:()=>F$,uint8ArrayToBase64url:()=>hA,uint8ArrayToHex:()=>vA,unwrapMessage:()=>Ya});function QO(e){return e}function eA(e){return e}function tA(e){}function rA(e){throw new Error("Unexpected value in exhaustive check")}function nA(e){}function Xa(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,n])=>t.indexOf(+i)===-1).map(([i,n])=>n)}function w(e,t="|"){return e.map(r=>E(r)).join(t)}function wo(e,t){return typeof t=="bigint"?t.toString():t}function So(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Sn(e){return e==null}function Qa(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function mh(e,t){let r=(e.toString().split(".")[1]||"").length,i=t.toString(),n=(i.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(i)){let l=i.match(/\d?e-(\d?)/);l?.[1]&&(n=Number.parseInt(l[1]))}let o=r>n?r:n,a=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return a%s/10**o}var N$=Symbol("evaluating");function oe(e,t,r){let i;Object.defineProperty(e,t,{get(){if(i!==N$)return i===void 0&&(i=N$,i=r()),i},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function iA(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function kn(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Yr(...e){let t={};for(let r of e){let i=Object.getOwnPropertyDescriptors(r);Object.assign(t,i)}return Object.defineProperties({},t)}function oA(e){return Yr(e._zod.def)}function aA(e,t){return t?t.reduce((r,i)=>r?.[i],e):e}function sA(e){let t=Object.keys(e),r=t.map(i=>e[i]);return Promise.all(r).then(i=>{let n={};for(let o=0;o<t.length;o++)n[t[o]]=i[o];return n})}function cA(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let i=0;i<e;i++)r+=t[Math.floor(Math.random()*t.length)];return r}function Tl(e){return JSON.stringify(e)}function fh(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Pl="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function di(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var hh=So(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function zn(e){if(di(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(di(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Il(e){return zn(e)?{...e}:Array.isArray(e)?[...e]:e}function lA(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var uA=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},es=new Set(["string","number","symbol"]),gh=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Kt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ye(e,t,r){let i=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(i._zod.parent=e),i}function N(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function dA(e){let t;return new Proxy({},{get(r,i,n){return t??(t=e()),Reflect.get(t,i,n)},set(r,i,n,o){return t??(t=e()),Reflect.set(t,i,n,o)},has(r,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(r,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(r,i,n){return t??(t=e()),Reflect.defineProperty(t,i,n)}})}function E(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function vh(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var yh={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},bh={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function C$(e,t){let r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=Yr(e._zod.def,{get shape(){let a={};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(a[s]=r.shape[s])}return kn(this,"shape",a),a},checks:[]});return Ye(e,o)}function D$(e,t){let r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=Yr(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete a[s]}return kn(this,"shape",a),a},checks:[]});return Ye(e,o)}function U$(e,t){if(!zn(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let o=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(o,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=Yr(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return kn(this,"shape",o),o}});return Ye(e,n)}function M$(e,t){if(!zn(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=Yr(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return kn(this,"shape",i),i}});return Ye(e,r)}function pA(e,t){let r=Yr(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t._zod.def.shape};return kn(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return Ye(e,r)}function Z$(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=Yr(t._zod.def,{get shape(){let s=t._zod.def.shape,l={...s};if(r)for(let d in r){if(!(d in s))throw new Error(`Unrecognized key: "${d}"`);r[d]&&(l[d]=e?new e({type:"optional",innerType:s[d]}):s[d])}else for(let d in s)l[d]=e?new e({type:"optional",innerType:s[d]}):s[d];return kn(this,"shape",l),l},checks:[]});return Ye(t,a)}function q$(e,t,r){let i=Yr(t._zod.def,{get shape(){let n=t._zod.def.shape,o={...n};if(r)for(let a in r){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(o[a]=new e({type:"nonoptional",innerType:n[a]}))}else for(let a in n)o[a]=new e({type:"nonoptional",innerType:n[a]});return kn(this,"shape",o),o}});return Ye(t,i)}function Tn(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function Mt(e,t){return t.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function Ya(e){return typeof e=="string"?e:e?.message}function kt(e,t,r){let i={...e,path:e.path??[]};if(!e.message){let n=Ya(e.inst?._zod.def?.error?.(e))??Ya(t?.error?.(e))??Ya(r.customError?.(e))??Ya(r.localeError?.(e))??"Invalid input";i.message=n}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function ts(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function rs(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function O(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function ko(...e){let[t,r,i]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:i}:{...t}}function mA(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function L$(e){let t=atob(e),r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r}function F$(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function fA(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return L$(t+r)}function hA(e){return F$(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function gA(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)r[i/2]=Number.parseInt(t.slice(i,i+2),16);return r}function vA(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var ph=class{constructor(...t){}};var V$=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,wo,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ns=_("$ZodError",V$),zt=_("$ZodError",V$,{Parent:Error});function zo(e,t=r=>r.message){let r={},i=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):i.push(t(n));return{formErrors:i,fieldErrors:r}}function To(e,t=r=>r.message){let r={_errors:[]},i=n=>{for(let o of n.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(a=>i({issues:a}));else if(o.code==="invalid_key")i({issues:o.issues});else if(o.code==="invalid_element")i({issues:o.issues});else if(o.path.length===0)r._errors.push(t(o));else{let a=r,s=0;for(;s<o.path.length;){let l=o.path[s];s===o.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(t(o))):a[l]=a[l]||{_errors:[]},a=a[l],s++}}};return i(e),r}function El(e,t=r=>r.message){let r={errors:[]},i=(n,o=[])=>{var a,s;for(let l of n.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(d=>i({issues:d},l.path));else if(l.code==="invalid_key")i({issues:l.issues},l.path);else if(l.code==="invalid_element")i({issues:l.issues},l.path);else{let d=[...o,...l.path];if(d.length===0){r.errors.push(t(l));continue}let p=r,f=0;for(;f<d.length;){let g=d[f],y=f===d.length-1;typeof g=="string"?(p.properties??(p.properties={}),(a=p.properties)[g]??(a[g]={errors:[]}),p=p.properties[g]):(p.items??(p.items=[]),(s=p.items)[g]??(s[g]={errors:[]}),p=p.items[g]),y&&p.errors.push(t(l)),f++}}};return i(e),r}function B$(e){let t=[],r=e.map(i=>typeof i=="object"?i.key:i);for(let i of r)typeof i=="number"?t.push(`[${i}]`):typeof i=="symbol"?t.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push("."),t.push(i));return t.join("")}function Rl(e){let t=[],r=[...e.issues].sort((i,n)=>(i.path??[]).length-(n.path??[]).length);for(let i of r)t.push(`\u2716 ${i.message}`),i.path?.length&&t.push(` \u2192 at ${B$(i.path)}`);return t.join(`
|
|
22
|
+
`)}var Po=e=>(t,r,i,n)=>{let o=i?Object.assign(i,{async:!1}):{async:!1},a=t._zod.run({value:r,issues:[]},o);if(a instanceof Promise)throw new pr;if(a.issues.length){let s=new(n?.Err??e)(a.issues.map(l=>kt(l,o,Fe())));throw Pl(s,n?.callee),s}return a.value},pi=Po(zt),Io=e=>async(t,r,i,n)=>{let o=i?Object.assign(i,{async:!0}):{async:!0},a=t._zod.run({value:r,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(n?.Err??e)(a.issues.map(l=>kt(l,o,Fe())));throw Pl(s,n?.callee),s}return a.value},mi=Io(zt),Eo=e=>(t,r,i)=>{let n=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},n);if(o instanceof Promise)throw new pr;return o.issues.length?{success:!1,error:new(e??ns)(o.issues.map(a=>kt(a,n,Fe())))}:{success:!0,data:o.value}},Pn=Eo(zt),Ro=e=>async(t,r,i)=>{let n=i?Object.assign(i,{async:!0}):{async:!0},o=t._zod.run({value:r,issues:[]},n);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(a=>kt(a,n,Fe())))}:{success:!0,data:o.value}},In=Ro(zt),jl=e=>(t,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Po(e)(t,r,n)},W$=jl(zt),Ol=e=>(t,r,i)=>Po(e)(t,r,i),H$=Ol(zt),Al=e=>async(t,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Io(e)(t,r,n)},J$=Al(zt),Nl=e=>async(t,r,i)=>Io(e)(t,r,i),G$=Nl(zt),Cl=e=>(t,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Eo(e)(t,r,n)},K$=Cl(zt),Dl=e=>(t,r,i)=>Eo(e)(t,r,i),Y$=Dl(zt),Ul=e=>async(t,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Ro(e)(t,r,n)},X$=Ul(zt),Ml=e=>async(t,r,i)=>Ro(e)(t,r,i),Q$=Ml(zt);var Tt={};Tr(Tt,{base64:()=>Nh,base64url:()=>Zl,bigint:()=>qh,boolean:()=>Fh,browserEmail:()=>zA,cidrv4:()=>Oh,cidrv6:()=>Ah,cuid:()=>xh,cuid2:()=>_h,date:()=>Dh,datetime:()=>Mh,domain:()=>IA,duration:()=>zh,e164:()=>Ch,email:()=>Ph,emoji:()=>Ih,extendedDuration:()=>bA,guid:()=>Th,hex:()=>EA,hostname:()=>PA,html5Email:()=>wA,idnEmail:()=>kA,integer:()=>Lh,ipv4:()=>Eh,ipv6:()=>Rh,ksuid:()=>Sh,lowercase:()=>Wh,mac:()=>jh,md5_base64:()=>jA,md5_base64url:()=>OA,md5_hex:()=>RA,nanoid:()=>kh,null:()=>Vh,number:()=>ql,rfc5322Email:()=>SA,sha1_base64:()=>NA,sha1_base64url:()=>CA,sha1_hex:()=>AA,sha256_base64:()=>UA,sha256_base64url:()=>MA,sha256_hex:()=>DA,sha384_base64:()=>qA,sha384_base64url:()=>LA,sha384_hex:()=>ZA,sha512_base64:()=>VA,sha512_base64url:()=>BA,sha512_hex:()=>FA,string:()=>Zh,time:()=>Uh,ulid:()=>$h,undefined:()=>Bh,unicodeEmail:()=>ew,uppercase:()=>Hh,uuid:()=>fi,uuid4:()=>xA,uuid6:()=>_A,uuid7:()=>$A,xid:()=>wh});var xh=/^[cC][^\s-]{8,}$/,_h=/^[0-9a-z]+$/,$h=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,wh=/^[0-9a-vA-V]{20}$/,Sh=/^[A-Za-z0-9]{27}$/,kh=/^[a-zA-Z0-9_-]{21}$/,zh=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,bA=/^[-+]?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)?)??$/,Th=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,fi=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,xA=fi(4),_A=fi(6),$A=fi(7),Ph=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,wA=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,SA=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,ew=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,kA=ew,zA=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,TA="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Ih(){return new RegExp(TA,"u")}var Eh=/^(?:(?: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])$/,Rh=/^(([0-9a-fA-F]{1,4}:){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}|:))$/,jh=e=>{let t=Kt(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Oh=/^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/,Ah=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Nh=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Zl=/^[A-Za-z0-9_-]*$/,PA=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,IA=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Ch=/^\+[1-9]\d{6,14}$/,tw="(?:(?:\\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])))",Dh=new RegExp(`^${tw}$`);function rw(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Uh(e){return new RegExp(`^${rw(e)}$`)}function Mh(e){let t=rw({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i=`${t}(?:${r.join("|")})`;return new RegExp(`^${tw}T(?:${i})$`)}var Zh=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},qh=/^-?\d+n?$/,Lh=/^-?\d+$/,ql=/^-?\d+(?:\.\d+)?$/,Fh=/^(?:true|false)$/i,Vh=/^null$/i;var Bh=/^undefined$/i;var Wh=/^[^A-Z]*$/,Hh=/^[^a-z]*$/,EA=/^[0-9a-fA-F]*$/;function is(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function os(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var RA=/^[0-9a-fA-F]{32}$/,jA=is(22,"=="),OA=os(22),AA=/^[0-9a-fA-F]{40}$/,NA=is(27,"="),CA=os(27),DA=/^[0-9a-fA-F]{64}$/,UA=is(43,"="),MA=os(43),ZA=/^[0-9a-fA-F]{96}$/,qA=is(64,""),LA=os(64),FA=/^[0-9a-fA-F]{128}$/,VA=is(86,"=="),BA=os(86);var Ie=_("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),iw={number:"number",bigint:"bigint",object:"date"},Ll=_("$ZodCheckLessThan",(e,t)=>{Ie.init(e,t);let r=iw[typeof t.value];e._zod.onattach.push(i=>{let n=i._zod.bag,o=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Fl=_("$ZodCheckGreaterThan",(e,t)=>{Ie.init(e,t);let r=iw[typeof t.value];e._zod.onattach.push(i=>{let n=i._zod.bag,o=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Jh=_("$ZodCheckMultipleOf",(e,t)=>{Ie.init(e,t),e._zod.onattach.push(r=>{var i;(i=r._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):mh(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),Gh=_("$ZodCheckNumberFormat",(e,t)=>{Ie.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),i=r?"int":"number",[n,o]=yh[t.format];e._zod.onattach.push(a=>{let s=a._zod.bag;s.format=t.format,s.minimum=n,s.maximum=o,r&&(s.pattern=Lh)}),e._zod.check=a=>{let s=a.value;if(r){if(!Number.isInteger(s)){a.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort});return}}s<n&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),Kh=_("$ZodCheckBigIntFormat",(e,t)=>{Ie.init(e,t);let[r,i]=bh[t.format];e._zod.onattach.push(n=>{let o=n._zod.bag;o.format=t.format,o.minimum=r,o.maximum=i}),e._zod.check=n=>{let o=n.value;o<r&&n.issues.push({origin:"bigint",input:o,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),o>i&&n.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Yh=_("$ZodCheckMaxSize",(e,t)=>{var r;Ie.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Sn(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{let n=i.value;n.size<=t.maximum||i.issues.push({origin:ts(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Xh=_("$ZodCheckMinSize",(e,t)=>{var r;Ie.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Sn(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{let n=i.value;n.size>=t.minimum||i.issues.push({origin:ts(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Qh=_("$ZodCheckSizeEquals",(e,t)=>{var r;Ie.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Sn(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=i=>{let n=i.value,o=n.size;if(o===t.size)return;let a=o>t.size;i.issues.push({origin:ts(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),eg=_("$ZodCheckMaxLength",(e,t)=>{var r;Ie.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Sn(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{let n=i.value;if(n.length<=t.maximum)return;let a=rs(n);i.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),tg=_("$ZodCheckMinLength",(e,t)=>{var r;Ie.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Sn(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{let n=i.value;if(n.length>=t.minimum)return;let a=rs(n);i.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),rg=_("$ZodCheckLengthEquals",(e,t)=>{var r;Ie.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Sn(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=i=>{let n=i.value,o=n.length;if(o===t.length)return;let a=rs(n),s=o>t.length;i.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),jo=_("$ZodCheckStringFormat",(e,t)=>{var r,i;Ie.init(e,t),e._zod.onattach.push(n=>{let o=n._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),ng=_("$ZodCheckRegex",(e,t)=>{jo.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),ig=_("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Wh),jo.init(e,t)}),og=_("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Hh),jo.init(e,t)}),ag=_("$ZodCheckIncludes",(e,t)=>{Ie.init(e,t);let r=Kt(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=i,e._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),sg=_("$ZodCheckStartsWith",(e,t)=>{Ie.init(e,t);let r=new RegExp(`^${Kt(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{let n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),cg=_("$ZodCheckEndsWith",(e,t)=>{Ie.init(e,t);let r=new RegExp(`.*${Kt(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{let n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function nw(e,t,r){e.issues.length&&t.issues.push(...Mt(r,e.issues))}var lg=_("$ZodCheckProperty",(e,t)=>{Ie.init(e,t),e._zod.check=r=>{let i=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(n=>nw(n,r,t.property));nw(i,r,t.property)}}),ug=_("$ZodCheckMimeType",(e,t)=>{Ie.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{r.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),dg=_("$ZodCheckOverwrite",(e,t)=>{Ie.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var as=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let i=t.split(`
|
|
23
|
+
`).filter(a=>a),n=Math.min(...i.map(a=>a.length-a.trimStart().length)),o=i.map(a=>a.slice(n)).map(a=>" ".repeat(this.indent*2)+a);for(let a of o)this.content.push(a)}compile(){let t=Function,r=this?.args,n=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...r,n.join(`
|
|
24
|
+
`))}};var pg={major:4,minor:3,patch:6};var ee=_("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=pg;let i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let n of i)for(let o of n._zod.onattach)o(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(a,s,l)=>{let d=Tn(a),p;for(let f of s){if(f._zod.def.when){if(!f._zod.def.when(a))continue}else if(d)continue;let g=a.issues.length,y=f._zod.check(a);if(y instanceof Promise&&l?.async===!1)throw new pr;if(p||y instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await y,a.issues.length!==g&&(d||(d=Tn(a,g)))});else{if(a.issues.length===g)continue;d||(d=Tn(a,g))}}return p?p.then(()=>a):a},o=(a,s,l)=>{if(Tn(a))return a.aborted=!0,a;let d=n(s,i,l);if(d instanceof Promise){if(l.async===!1)throw new pr;return d.then(p=>e._zod.parse(p,l))}return e._zod.parse(d,l)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){let d=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return d instanceof Promise?d.then(p=>o(p,a,s)):o(d,a,s)}let l=e._zod.parse(a,s);if(l instanceof Promise){if(s.async===!1)throw new pr;return l.then(d=>n(d,i,s))}return n(l,i,s)}}oe(e,"~standard",()=>({validate:n=>{try{let o=Pn(e,n);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return In(e,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),En=_("$ZodString",(e,t)=>{ee.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Zh(e._zod.bag),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Te=_("$ZodStringFormat",(e,t)=>{jo.init(e,t),En.init(e,t)}),Gl=_("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Th),Te.init(e,t)}),Kl=_("$ZodUUID",(e,t)=>{if(t.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=fi(i))}else t.pattern??(t.pattern=fi());Te.init(e,t)}),Yl=_("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Ph),Te.init(e,t)}),Xl=_("$ZodURL",(e,t)=>{Te.init(e,t),e._zod.check=r=>{try{let i=r.value.trim(),n=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=i;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),Ql=_("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Ih()),Te.init(e,t)}),eu=_("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=kh),Te.init(e,t)}),tu=_("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=xh),Te.init(e,t)}),ru=_("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=_h),Te.init(e,t)}),nu=_("$ZodULID",(e,t)=>{t.pattern??(t.pattern=$h),Te.init(e,t)}),iu=_("$ZodXID",(e,t)=>{t.pattern??(t.pattern=wh),Te.init(e,t)}),ou=_("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Sh),Te.init(e,t)}),au=_("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Mh(t)),Te.init(e,t)}),su=_("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Dh),Te.init(e,t)}),cu=_("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Uh(t)),Te.init(e,t)}),lu=_("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=zh),Te.init(e,t)}),uu=_("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Eh),Te.init(e,t),e._zod.bag.format="ipv4"}),du=_("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Rh),Te.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),pu=_("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=jh(t.delimiter)),Te.init(e,t),e._zod.bag.format="mac"}),mu=_("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Oh),Te.init(e,t)}),fu=_("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Ah),Te.init(e,t),e._zod.check=r=>{let i=r.value.split("/");try{if(i.length!==2)throw new Error;let[n,o]=i;if(!o)throw new Error;let a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function fg(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var hu=_("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Nh),Te.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{fg(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function vw(e){if(!Zl.test(e))return!1;let t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return fg(r)}var gu=_("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Zl),Te.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{vw(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),vu=_("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Ch),Te.init(e,t)});function yw(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[i]=r;if(!i)return!1;let n=JSON.parse(atob(i));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var yu=_("$ZodJWT",(e,t)=>{Te.init(e,t),e._zod.check=r=>{yw(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),bu=_("$ZodCustomStringFormat",(e,t)=>{Te.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),ss=_("$ZodNumber",(e,t)=>{ee.init(e,t),e._zod.pattern=e._zod.bag.pattern??ql,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let o=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...o?{received:o}:{}}),r}}),xu=_("$ZodNumberFormat",(e,t)=>{Gh.init(e,t),ss.init(e,t)}),Oo=_("$ZodBoolean",(e,t)=>{ee.init(e,t),e._zod.pattern=Fh,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),cs=_("$ZodBigInt",(e,t)=>{ee.init(e,t),e._zod.pattern=qh,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),_u=_("$ZodBigIntFormat",(e,t)=>{Kh.init(e,t),cs.init(e,t)}),$u=_("$ZodSymbol",(e,t)=>{ee.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),wu=_("$ZodUndefined",(e,t)=>{ee.init(e,t),e._zod.pattern=Bh,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,i)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),Su=_("$ZodNull",(e,t)=>{ee.init(e,t),e._zod.pattern=Vh,e._zod.values=new Set([null]),e._zod.parse=(r,i)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),ku=_("$ZodAny",(e,t)=>{ee.init(e,t),e._zod.parse=r=>r}),zu=_("$ZodUnknown",(e,t)=>{ee.init(e,t),e._zod.parse=r=>r}),Tu=_("$ZodNever",(e,t)=>{ee.init(e,t),e._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),Pu=_("$ZodVoid",(e,t)=>{ee.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),Iu=_("$ZodDate",(e,t)=>{ee.init(e,t),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,o=n instanceof Date;return o&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...o?{received:"Invalid Date"}:{},inst:e}),r}});function aw(e,t,r){e.issues.length&&t.issues.push(...Mt(r,e.issues)),t.value[r]=e.value}var Eu=_("$ZodArray",(e,t)=>{ee.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let o=[];for(let a=0;a<n.length;a++){let s=n[a],l=t.element._zod.run({value:s,issues:[]},i);l instanceof Promise?o.push(l.then(d=>aw(d,r,a))):aw(l,r,a)}return o.length?Promise.all(o).then(()=>r):r}});function Jl(e,t,r,i,n){if(e.issues.length){if(n&&!(r in i))return;t.issues.push(...Mt(r,e.issues))}e.value===void 0?r in i&&(t.value[r]=void 0):t.value[r]=e.value}function bw(e){let t=Object.keys(e.shape);for(let i of t)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);let r=vh(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function xw(e,t,r,i,n,o){let a=[],s=n.keySet,l=n.catchall._zod,d=l.def.type,p=l.optout==="optional";for(let f in t){if(s.has(f))continue;if(d==="never"){a.push(f);continue}let g=l.run({value:t[f],issues:[]},i);g instanceof Promise?e.push(g.then(y=>Jl(y,r,f,t,p))):Jl(g,r,f,t,p)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o}),e.length?Promise.all(e).then(()=>r):r}var Ru=_("$ZodObject",(e,t)=>{if(ee.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let s=t.shape;Object.defineProperty(t,"shape",{get:()=>{let l={...s};return Object.defineProperty(t,"shape",{value:l}),l}})}let i=So(()=>bw(t));oe(e._zod,"propValues",()=>{let s=t.shape,l={};for(let d in s){let p=s[d]._zod;if(p.values){l[d]??(l[d]=new Set);for(let f of p.values)l[d].add(f)}}return l});let n=di,o=t.catchall,a;e._zod.parse=(s,l)=>{a??(a=i.value);let d=s.value;if(!n(d))return s.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),s;s.value={};let p=[],f=a.shape;for(let g of a.keys){let y=f[g],v=y._zod.optout==="optional",x=y._zod.run({value:d[g],issues:[]},l);x instanceof Promise?p.push(x.then(S=>Jl(S,s,g,d,v))):Jl(x,s,g,d,v)}return o?xw(p,d,s,l,i.value,e):p.length?Promise.all(p).then(()=>s):s}}),hg=_("$ZodObjectJIT",(e,t)=>{Ru.init(e,t);let r=e._zod.parse,i=So(()=>bw(t)),n=g=>{let y=new as(["shape","payload","ctx"]),v=i.value,x=C=>{let M=Tl(C);return`shape[${M}]._zod.run({ value: input[${M}], issues: [] }, ctx)`};y.write("const input = payload.value;");let S=Object.create(null),P=0;for(let C of v.keys)S[C]=`key_${P++}`;y.write("const newResult = {};");for(let C of v.keys){let M=S[C],D=Tl(C),Le=g[C]?._zod?.optout==="optional";y.write(`const ${M} = ${x(C)};`),Le?y.write(`
|
|
25
|
+
if (${M}.issues.length) {
|
|
26
|
+
if (${D} in input) {
|
|
27
|
+
payload.issues = payload.issues.concat(${M}.issues.map(iss => ({
|
|
28
|
+
...iss,
|
|
29
|
+
path: iss.path ? [${D}, ...iss.path] : [${D}]
|
|
30
|
+
})));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
if (${M}.value === undefined) {
|
|
35
|
+
if (${D} in input) {
|
|
36
|
+
newResult[${D}] = undefined;
|
|
37
|
+
}
|
|
38
|
+
} else {
|
|
39
|
+
newResult[${D}] = ${M}.value;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
`):y.write(`
|
|
43
|
+
if (${M}.issues.length) {
|
|
44
|
+
payload.issues = payload.issues.concat(${M}.issues.map(iss => ({
|
|
45
|
+
...iss,
|
|
46
|
+
path: iss.path ? [${D}, ...iss.path] : [${D}]
|
|
47
|
+
})));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
if (${M}.value === undefined) {
|
|
51
|
+
if (${D} in input) {
|
|
52
|
+
newResult[${D}] = undefined;
|
|
53
|
+
}
|
|
54
|
+
} else {
|
|
55
|
+
newResult[${D}] = ${M}.value;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
`)}y.write("payload.value = newResult;"),y.write("return payload;");let U=y.compile();return(C,M)=>U(g,C,M)},o,a=di,s=!Ga.jitless,d=s&&hh.value,p=t.catchall,f;e._zod.parse=(g,y)=>{f??(f=i.value);let v=g.value;return a(v)?s&&d&&y?.async===!1&&y.jitless!==!0?(o||(o=n(t.shape)),g=o(g,y),p?xw([],v,g,y,f,e):g):r(g,y):(g.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),g)}});function sw(e,t,r,i){for(let o of e)if(o.issues.length===0)return t.value=o.value,t;let n=e.filter(o=>!Tn(o));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(o=>o.issues.map(a=>kt(a,i,Fe())))}),t)}var Ao=_("$ZodUnion",(e,t)=>{ee.init(e,t),oe(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),oe(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),oe(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),oe(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){let n=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${n.map(o=>Qa(o.source)).join("|")})$`)}});let r=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(n,o)=>{if(r)return i(n,o);let a=!1,s=[];for(let l of t.options){let d=l._zod.run({value:n.value,issues:[]},o);if(d instanceof Promise)s.push(d),a=!0;else{if(d.issues.length===0)return d;s.push(d)}}return a?Promise.all(s).then(l=>sw(l,n,e,o)):sw(s,n,e,o)}});function cw(e,t,r,i){let n=e.filter(o=>o.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(o=>o.issues.map(a=>kt(a,i,Fe())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var ju=_("$ZodXor",(e,t)=>{Ao.init(e,t),t.inclusive=!1;let r=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(n,o)=>{if(r)return i(n,o);let a=!1,s=[];for(let l of t.options){let d=l._zod.run({value:n.value,issues:[]},o);d instanceof Promise?(s.push(d),a=!0):s.push(d)}return a?Promise.all(s).then(l=>cw(l,n,e,o)):cw(s,n,e,o)}}),Ou=_("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Ao.init(e,t);let r=e._zod.parse;oe(e._zod,"propValues",()=>{let n={};for(let o of t.options){let a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let[s,l]of Object.entries(a)){n[s]||(n[s]=new Set);for(let d of l)n[s].add(d)}}return n});let i=So(()=>{let n=t.options,o=new Map;for(let a of n){let s=a._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let l of s){if(o.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);o.set(l,a)}}return o});e._zod.parse=(n,o)=>{let a=n.value;if(!di(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),n;let s=i.value.get(a?.[t.discriminator]);return s?s._zod.run(n,o):t.unionFallback?r(n,o):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),n)}}),Au=_("$ZodIntersection",(e,t)=>{ee.init(e,t),e._zod.parse=(r,i)=>{let n=r.value,o=t.left._zod.run({value:n,issues:[]},i),a=t.right._zod.run({value:n,issues:[]},i);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([l,d])=>lw(r,l,d)):lw(r,o,a)}});function mg(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(zn(e)&&zn(t)){let r=Object.keys(t),i=Object.keys(e).filter(o=>r.indexOf(o)!==-1),n={...e,...t};for(let o of i){let a=mg(e[o],t[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};n[o]=a.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let i=0;i<e.length;i++){let n=e[i],o=t[i],a=mg(n,o);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function lw(e,t,r){let i=new Map,n;for(let s of t.issues)if(s.code==="unrecognized_keys"){n??(n=s);for(let l of s.keys)i.has(l)||i.set(l,{}),i.get(l).l=!0}else e.issues.push(s);for(let s of r.issues)if(s.code==="unrecognized_keys")for(let l of s.keys)i.has(l)||i.set(l,{}),i.get(l).r=!0;else e.issues.push(s);let o=[...i].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(o.length&&n&&e.issues.push({...n,keys:o}),Tn(e))return e;let a=mg(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var ls=_("$ZodTuple",(e,t)=>{ee.init(e,t);let r=t.items;e._zod.parse=(i,n)=>{let o=i.value;if(!Array.isArray(o))return i.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];let a=[],s=[...r].reverse().findIndex(p=>p._zod.optin!=="optional"),l=s===-1?0:r.length-s;if(!t.rest){let p=o.length>r.length,f=o.length<l-1;if(p||f)return i.issues.push({...p?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:o,inst:e,origin:"array"}),i}let d=-1;for(let p of r){if(d++,d>=o.length&&d>=l)continue;let f=p._zod.run({value:o[d],issues:[]},n);f instanceof Promise?a.push(f.then(g=>Vl(g,i,d))):Vl(f,i,d)}if(t.rest){let p=o.slice(r.length);for(let f of p){d++;let g=t.rest._zod.run({value:f,issues:[]},n);g instanceof Promise?a.push(g.then(y=>Vl(y,i,d))):Vl(g,i,d)}}return a.length?Promise.all(a).then(()=>i):i}});function Vl(e,t,r){e.issues.length&&t.issues.push(...Mt(r,e.issues)),t.value[r]=e.value}var Nu=_("$ZodRecord",(e,t)=>{ee.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!zn(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let o=[],a=t.keyType._zod.values;if(a){r.value={};let s=new Set;for(let d of a)if(typeof d=="string"||typeof d=="number"||typeof d=="symbol"){s.add(typeof d=="number"?d.toString():d);let p=t.valueType._zod.run({value:n[d],issues:[]},i);p instanceof Promise?o.push(p.then(f=>{f.issues.length&&r.issues.push(...Mt(d,f.issues)),r.value[d]=f.value})):(p.issues.length&&r.issues.push(...Mt(d,p.issues)),r.value[d]=p.value)}let l;for(let d in n)s.has(d)||(l=l??[],l.push(d));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:l})}else{r.value={};for(let s of Reflect.ownKeys(n)){if(s==="__proto__")continue;let l=t.keyType._zod.run({value:s,issues:[]},i);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&ql.test(s)&&l.issues.length){let f=t.keyType._zod.run({value:Number(s),issues:[]},i);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");f.issues.length===0&&(l=f)}if(l.issues.length){t.mode==="loose"?r.value[s]=n[s]:r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(f=>kt(f,i,Fe())),input:s,path:[s],inst:e});continue}let p=t.valueType._zod.run({value:n[s],issues:[]},i);p instanceof Promise?o.push(p.then(f=>{f.issues.length&&r.issues.push(...Mt(s,f.issues)),r.value[l.value]=f.value})):(p.issues.length&&r.issues.push(...Mt(s,p.issues)),r.value[l.value]=p.value)}}return o.length?Promise.all(o).then(()=>r):r}}),Cu=_("$ZodMap",(e,t)=>{ee.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let o=[];r.value=new Map;for(let[a,s]of n){let l=t.keyType._zod.run({value:a,issues:[]},i),d=t.valueType._zod.run({value:s,issues:[]},i);l instanceof Promise||d instanceof Promise?o.push(Promise.all([l,d]).then(([p,f])=>{uw(p,f,r,a,n,e,i)})):uw(l,d,r,a,n,e,i)}return o.length?Promise.all(o).then(()=>r):r}});function uw(e,t,r,i,n,o,a){e.issues.length&&(es.has(typeof i)?r.issues.push(...Mt(i,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:o,issues:e.issues.map(s=>kt(s,a,Fe()))})),t.issues.length&&(es.has(typeof i)?r.issues.push(...Mt(i,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:o,key:i,issues:t.issues.map(s=>kt(s,a,Fe()))})),r.value.set(e.value,t.value)}var Du=_("$ZodSet",(e,t)=>{ee.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let o=[];r.value=new Set;for(let a of n){let s=t.valueType._zod.run({value:a,issues:[]},i);s instanceof Promise?o.push(s.then(l=>dw(l,r))):dw(s,r)}return o.length?Promise.all(o).then(()=>r):r}});function dw(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Uu=_("$ZodEnum",(e,t)=>{ee.init(e,t);let r=Xa(t.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.filter(n=>es.has(typeof n)).map(n=>typeof n=="string"?Kt(n):n.toString()).join("|")})$`),e._zod.parse=(n,o)=>{let a=n.value;return i.has(a)||n.issues.push({code:"invalid_value",values:r,input:a,inst:e}),n}}),Mu=_("$ZodLiteral",(e,t)=>{if(ee.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?Kt(i):i?Kt(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,n)=>{let o=i.value;return r.has(o)||i.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),i}}),Zu=_("$ZodFile",(e,t)=>{ee.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),qu=_("$ZodTransform",(e,t)=>{ee.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new wn(e.constructor.name);let n=t.transform(r.value,r);if(i.async)return(n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r));if(n instanceof Promise)throw new pr;return r.value=n,r}});function pw(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var us=_("$ZodOptional",(e,t)=>{ee.init(e,t),e._zod.optin="optional",e._zod.optout="optional",oe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),oe(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Qa(r.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(t.innerType._zod.optin==="optional"){let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>pw(o,r.value)):pw(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,i)}}),Lu=_("$ZodExactOptional",(e,t)=>{us.init(e,t),oe(e._zod,"values",()=>t.innerType._zod.values),oe(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,i)=>t.innerType._zod.run(r,i)}),Fu=_("$ZodNullable",(e,t)=>{ee.init(e,t),oe(e._zod,"optin",()=>t.innerType._zod.optin),oe(e._zod,"optout",()=>t.innerType._zod.optout),oe(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Qa(r.source)}|null)$`):void 0}),oe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:t.innerType._zod.run(r,i)}),Vu=_("$ZodDefault",(e,t)=>{ee.init(e,t),e._zod.optin="optional",oe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>mw(o,t)):mw(n,t)}});function mw(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Bu=_("$ZodPrefault",(e,t)=>{ee.init(e,t),e._zod.optin="optional",oe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,i))}),Wu=_("$ZodNonOptional",(e,t)=>{ee.init(e,t),oe(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(r,i)=>{let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>fw(o,e)):fw(n,e)}});function fw(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var Hu=_("$ZodSuccess",(e,t)=>{ee.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new wn("ZodSuccess");let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>(r.value=o.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),Ju=_("$ZodCatch",(e,t)=>{ee.init(e,t),oe(e._zod,"optin",()=>t.innerType._zod.optin),oe(e._zod,"optout",()=>t.innerType._zod.optout),oe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(a=>kt(a,i,Fe()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(o=>kt(o,i,Fe()))},input:r.value}),r.issues=[]),r)}}),Gu=_("$ZodNaN",(e,t)=>{ee.init(e,t),e._zod.parse=(r,i)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),Ku=_("$ZodPipe",(e,t)=>{ee.init(e,t),oe(e._zod,"values",()=>t.in._zod.values),oe(e._zod,"optin",()=>t.in._zod.optin),oe(e._zod,"optout",()=>t.out._zod.optout),oe(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if(i.direction==="backward"){let o=t.out._zod.run(r,i);return o instanceof Promise?o.then(a=>Bl(a,t.in,i)):Bl(o,t.in,i)}let n=t.in._zod.run(r,i);return n instanceof Promise?n.then(o=>Bl(o,t.out,i)):Bl(n,t.out,i)}});function Bl(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var No=_("$ZodCodec",(e,t)=>{ee.init(e,t),oe(e._zod,"values",()=>t.in._zod.values),oe(e._zod,"optin",()=>t.in._zod.optin),oe(e._zod,"optout",()=>t.out._zod.optout),oe(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if((i.direction||"forward")==="forward"){let o=t.in._zod.run(r,i);return o instanceof Promise?o.then(a=>Wl(a,t,i)):Wl(o,t,i)}else{let o=t.out._zod.run(r,i);return o instanceof Promise?o.then(a=>Wl(a,t,i)):Wl(o,t,i)}}});function Wl(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let n=t.transform(e.value,e);return n instanceof Promise?n.then(o=>Hl(e,o,t.out,r)):Hl(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(o=>Hl(e,o,t.in,r)):Hl(e,n,t.in,r)}}function Hl(e,t,r,i){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},i)}var Yu=_("$ZodReadonly",(e,t)=>{ee.init(e,t),oe(e._zod,"propValues",()=>t.innerType._zod.propValues),oe(e._zod,"values",()=>t.innerType._zod.values),oe(e._zod,"optin",()=>t.innerType?._zod?.optin),oe(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(hw):hw(n)}});function hw(e){return e.value=Object.freeze(e.value),e}var Xu=_("$ZodTemplateLiteral",(e,t)=>{ee.init(e,t);let r=[];for(let i of t.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);let n=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${i._zod.traits}`);let o=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(o,a))}else if(i===null||gh.has(typeof i))r.push(Kt(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(i,n)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"string",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),i)}),Qu=_("$ZodFunction",(e,t)=>(ee.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...i){let n=e._def.input?pi(e._def.input,i):i,o=Reflect.apply(r,this,n);return e._def.output?pi(e._def.output,o):o}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){let n=e._def.input?await mi(e._def.input,i):i,o=await Reflect.apply(r,this,n);return e._def.output?await mi(e._def.output,o):o}},e._zod.parse=(r,i)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let i=e.constructor;return Array.isArray(r[0])?new i({type:"function",input:new ls({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new i({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let i=e.constructor;return new i({type:"function",input:e._def.input,output:r})},e)),ed=_("$ZodPromise",(e,t)=>{ee.init(e,t),e._zod.parse=(r,i)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},i))}),td=_("$ZodLazy",(e,t)=>{ee.init(e,t),oe(e._zod,"innerType",()=>t.getter()),oe(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),oe(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),oe(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),oe(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,i)=>e._zod.innerType._zod.run(r,i)}),rd=_("$ZodCustom",(e,t)=>{Ie.init(e,t),ee.init(e,t),e._zod.parse=(r,i)=>r,e._zod.check=r=>{let i=r.value,n=t.fn(i);if(n instanceof Promise)return n.then(o=>gw(o,r,i,e));gw(n,r,i,e)}});function gw(e,t,r,i){if(!e){let n={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(n.params=i._zod.def.params),t.issues.push(ko(n))}}var Do={};Tr(Do,{ar:()=>_w,az:()=>$w,be:()=>Sw,bg:()=>kw,ca:()=>zw,cs:()=>Tw,da:()=>Pw,de:()=>Iw,en:()=>nd,eo:()=>Ew,es:()=>Rw,fa:()=>jw,fi:()=>Ow,fr:()=>Aw,frCA:()=>Nw,he:()=>Cw,hu:()=>Dw,hy:()=>Mw,id:()=>Zw,is:()=>qw,it:()=>Lw,ja:()=>Fw,ka:()=>Vw,kh:()=>Bw,km:()=>id,ko:()=>Ww,lt:()=>Jw,mk:()=>Gw,ms:()=>Kw,nl:()=>Yw,no:()=>Xw,ota:()=>Qw,pl:()=>tS,ps:()=>eS,pt:()=>rS,ru:()=>iS,sl:()=>oS,sv:()=>aS,ta:()=>sS,th:()=>cS,tr:()=>lS,ua:()=>uS,uk:()=>od,ur:()=>dS,uz:()=>pS,vi:()=>mS,yo:()=>gS,zhCN:()=>fS,zhTW:()=>hS});var HA=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(n){return e[n]??null}let r={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${n.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${o}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`}case"invalid_value":return n.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${E(n.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${n.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${n.prefix}"`:o.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${o.suffix}"`:o.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${o.includes}"`:o.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${o.pattern}`:`${r[o.format]??n.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${w(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function _w(){return{localeError:HA()}}var JA=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(n){return e[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${s}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${E(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${o}${n.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${o}${n.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[o.format]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${w(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function $w(){return{localeError:JA()}}function ww(e,t,r,i){let n=Math.abs(e),o=n%10,a=n%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?r:i}var GA=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(n){return e[n]??null}let r={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},i={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${o}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${E(n.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);if(a){let s=Number(n.maximum),l=ww(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${n.maximum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);if(a){let s=Number(n.minimum),l=ww(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${n.minimum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${w(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function Sw(){return{localeError:GA()}}var KA=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${E(n.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${n.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;if(o.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${o.prefix}"`;if(o.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${o.suffix}"`;if(o.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${o.includes}"`;if(o.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${o.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${w(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function kw(){return{localeError:KA()}}var YA=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(n){return e[n]??null}let r={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${s}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${E(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${w(n.values," o ")}`;case"too_big":{let o=n.inclusive?"com a m\xE0xim":"menys de",a=t(n.origin);return a?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${o} ${n.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(n.origin);return a?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${o} ${n.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${r[o.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${w(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}};function zw(){return{localeError:YA()}}var XA=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(n){return e[n]??null}let r={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${s}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${E(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${r[o.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${w(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}};function Tw(){return{localeError:XA()}}var QA=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(n){return e[n]??null}let r={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${s}`:`Ugyldigt input: forventede ${o}, fik ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${E(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin),s=i[n.origin]??n.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${o} ${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin),s=i[n.origin]??n.origin;return a?`For lille: forventede ${s} ${a.verb} ${o} ${n.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} havde ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${r[o.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${w(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}};function Pw(){return{localeError:QA()}}var eN=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(n){return e[n]??null}let r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},i={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${s}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${E(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ist`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ist`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${r[o.format]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${w(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}};function Iw(){return{localeError:eN()}}var tN=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(n){return e[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return`Invalid input: expected ${o}, received ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${E(n.values[0])}`:`Invalid option: expected one of ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Too big: expected ${n.origin??"value"} to have ${o}${n.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Too small: expected ${n.origin} to have ${o}${n.minimum.toString()} ${a.unit}`:`Too small: expected ${n.origin} to be ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${r[o.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${w(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function nd(){return{localeError:tN()}}var rN=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(n){return e[n]??null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${s}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${E(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${o}${n.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${r[o.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${w(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}};function Ew(){return{localeError:rN()}}var nN=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(n){return e[n]??null}let r={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${E(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin),s=i[n.origin]??n.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${o}${n.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin),s=i[n.origin]??n.origin;return a?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${o}${n.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${r[o.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${w(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${i[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${i[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}};function Rw(){return{localeError:nN()}}var iN=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(n){return e[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${o} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${E(n.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${w(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[o.format]??n.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${w(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function jw(){return{localeError:iN()}}var oN=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(n){return e[n]??null}let r={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${s}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${E(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${o}${n.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${o}${n.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${r[o.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${w(n.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function Ow(){return{localeError:oN()}}var aN=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={nan:"NaN",number:"nombre",array:"tableau"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${s} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${E(n.values[0])} attendu`:`Option invalide : une valeur parmi ${w(n.values,"|")} attendue`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Trop grand : ${n.origin??"valeur"} doit ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${n.origin??"valeur"} doit \xEAtre ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Trop petit : ${n.origin} doit ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Trop petit : ${n.origin} doit \xEAtre ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${o.pattern}`:`${r[o.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${w(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function Aw(){return{localeError:aN()}}var sN=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${s}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${E(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"\u2264":"<",a=t(n.origin);return a?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${o}${n.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"\u2265":">",a=t(n.origin);return a?`Trop petit : attendu que ${n.origin} ait ${o}${n.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${n.origin} soit ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${r[o.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${w(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function Nw(){return{localeError:sN()}}var cN=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},r=d=>d?e[d]:void 0,i=d=>{let p=r(d);return p?p.label:d??e.unknown.label},n=d=>`\u05D4${i(d)}`,o=d=>(r(d)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=d=>d?t[d]??null:null,s={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},l={nan:"NaN"};return d=>{switch(d.code){case"invalid_type":{let p=d.expected,f=l[p??""]??i(p),g=O(d.input),y=l[g]??e[g]?.label??g;return/^[A-Z]/.test(d.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${d.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${y}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${f}, \u05D4\u05EA\u05E7\u05D1\u05DC ${y}`}case"invalid_value":{if(d.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${E(d.values[0])}`;let p=d.values.map(y=>E(y));if(d.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${p[0]} \u05D0\u05D5 ${p[1]}`;let f=p[p.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${p.slice(0,-1).join(", ")} \u05D0\u05D5 ${f}`}case"too_big":{let p=a(d.origin),f=n(d.origin??"value");if(d.origin==="string")return`${p?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${d.maximum.toString()} ${p?.unit??""} ${d.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(d.origin==="number"){let v=d.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${d.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${d.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${v}`}if(d.origin==="array"||d.origin==="set"){let v=d.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",x=d.inclusive?`${d.maximum} ${p?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${d.maximum} ${p?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${f} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${x}`.trim()}let g=d.inclusive?"<=":"<",y=o(d.origin??"value");return p?.unit?`${p.longLabel} \u05DE\u05D3\u05D9: ${f} ${y} ${g}${d.maximum.toString()} ${p.unit}`:`${p?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${f} ${y} ${g}${d.maximum.toString()}`}case"too_small":{let p=a(d.origin),f=n(d.origin??"value");if(d.origin==="string")return`${p?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${d.minimum.toString()} ${p?.unit??""} ${d.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(d.origin==="number"){let v=d.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${d.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${d.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${v}`}if(d.origin==="array"||d.origin==="set"){let v=d.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(d.minimum===1&&d.inclusive){let S=(d.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${S}`}let x=d.inclusive?`${d.minimum} ${p?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${d.minimum} ${p?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${x}`.trim()}let g=d.inclusive?">=":">",y=o(d.origin??"value");return p?.unit?`${p.shortLabel} \u05DE\u05D3\u05D9: ${f} ${y} ${g}${d.minimum.toString()} ${p.unit}`:`${p?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${f} ${y} ${g}${d.minimum.toString()}`}case"invalid_format":{let p=d;if(p.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${p.prefix}"`;if(p.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${p.suffix}"`;if(p.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${p.includes}"`;if(p.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${p.pattern}`;let f=s[p.format],g=f?.label??p.format,v=(f?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${g} \u05DC\u05D0 ${v}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${d.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${d.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${d.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${w(d.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${n(d.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function Cw(){return{localeError:cN()}}var lN=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}let r={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},i={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${E(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${n.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${o}${n.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[o.format]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${w(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function Dw(){return{localeError:lN()}}function Uw(e,t,r){return Math.abs(e)===1?t:r}function Co(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=e[e.length-1];return e+(t.includes(r)?"\u0576":"\u0568")}var uN=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(n){return e[n]??null}let r={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},i={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${n.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${o}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`}case"invalid_value":return n.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${E(n.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);if(a){let s=Number(n.maximum),l=Uw(s,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Co(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${n.maximum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Co(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);if(a){let s=Number(n.minimum),l=Uw(s,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Co(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${n.minimum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Co(n.origin)} \u056C\u056B\u0576\u056B ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${o.prefix}"-\u0578\u057E`:o.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${o.suffix}"-\u0578\u057E`:o.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${o.includes}"`:o.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${o.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[o.format]??n.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${w(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Co(n.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${Co(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function Mw(){return{localeError:uN()}}var dN=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}let r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${o}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${E(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${o}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: diharapkan ${n.origin} memiliki ${o}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${r[o.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${w(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function Zw(){return{localeError:dN()}}var pN=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function t(n){return e[n]??null}let r={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},i={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${o}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${E(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${o}${n.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${o}${n.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${o.prefix}"`:o.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${o.suffix}"`:o.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${o.includes}"`:o.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${o.pattern}`:`Rangt ${r[o.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${w(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}};function qw(){return{localeError:pN()}}var mN=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}let r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${s}`:`Input non valido: atteso ${o}, ricevuto ${s}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${E(n.values[0])}`:`Opzione non valida: atteso uno tra ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Troppo grande: ${n.origin??"valore"} deve avere ${o}${n.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Troppo piccolo: ${n.origin} deve avere ${o}${n.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${n.origin} deve essere ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Invalid ${r[o.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${w(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function Lw(){return{localeError:mN()}}var fN=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(n){return e[n]??null}let r={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},i={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${o}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${E(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${w(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(n.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${a.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(n.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${a.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[o.format]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${n.keys.length>1?"\u7FA4":""}: ${w(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function Fw(){return{localeError:fN()}}var hN=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(n){return e[n]??null}let r={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},i={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${n.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${o}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`}case"invalid_value":return n.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${E(n.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${w(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.prefix}"-\u10D8\u10D7`:o.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.suffix}"-\u10D8\u10D7`:o.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${o.includes}"-\u10E1`:o.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${o.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${n.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${w(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function Vw(){return{localeError:hN()}}var gN=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(n){return e[n]??null}let r={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},i={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${n.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${o} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`}case"invalid_value":return n.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${E(n.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${n.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${o} ${n.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${o.prefix}"`:o.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${o.suffix}"`:o.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${o.includes}"`:o.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${w(n.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function id(){return{localeError:gN()}}function Bw(){return id()}var vN=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(n){return e[n]??null}let r={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${E(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${w(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(n.origin),l=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${l} ${o}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${o}${a}`}case"too_small":{let o=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(n.origin),l=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${l} ${o}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${o}${a}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[o.format]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${w(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function Ww(){return{localeError:vN()}}var ds=e=>e.charAt(0).toUpperCase()+e.slice(1);function Hw(e){let t=Math.abs(e),r=t%10,i=t%100;return i>=11&&i<=19||r===0?"many":r===1?"one":"few"}var yN=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(n,o,a,s){let l=e[n]??null;return l===null?l:{unit:l.unit[o],verb:l.verb[s][a?"inclusive":"notInclusive"]}}let r={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},i={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${o}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${E(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${w(n.values,"|")} pasirinkim\u0173`;case"too_big":{let o=i[n.origin]??n.origin,a=t(n.origin,Hw(Number(n.maximum)),n.inclusive??!1,"smaller");if(a?.verb)return`${ds(o??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.maximum.toString()} ${a.unit??"element\u0173"}`;let s=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${ds(o??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.maximum.toString()} ${a?.unit}`}case"too_small":{let o=i[n.origin]??n.origin,a=t(n.origin,Hw(Number(n.minimum)),n.inclusive??!1,"bigger");if(a?.verb)return`${ds(o??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.minimum.toString()} ${a.unit??"element\u0173"}`;let s=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${ds(o??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.minimum.toString()} ${a?.unit}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${o.prefix}"`:o.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${o.includes}"`:o.format==="regex"?`Eilut\u0117 privalo atitikti ${o.pattern}`:`Neteisingas ${r[o.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${w(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let o=i[n.origin]??n.origin;return`${ds(o??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function Jw(){return{localeError:yN()}}var bN=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(n){return e[n]??null}let r={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},i={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${E(n.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${n.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${o.pattern}`:`Invalid ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${w(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function Gw(){return{localeError:bN()}}var xN=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}let r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${s}`:`Input tidak sah: dijangka ${o}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${E(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: dijangka ${n.origin??"nilai"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: dijangka ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${r[o.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${w(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function Kw(){return{localeError:xN()}}var _N=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(n){return e[n]??null}let r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${o}, ontving ${s}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${E(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin),s=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} is`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin),s=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} is`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${r[o.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${w(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function Yw(){return{localeError:_N()}}var $N=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(n){return e[n]??null}let r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${s}`:`Ugyldig input: forventet ${o}, fikk ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${E(n.values[0])}`:`Ugyldig valg: forventet en av ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`For lite(n): forventet ${n.origin} til \xE5 ha ${o}${n.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${r[o.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${w(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function Xw(){return{localeError:$N()}}var wN=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(n){return e[n]??null}let r={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${E(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${o}${n.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${o}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${o}${n.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${o}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=n;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[o.format]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${w(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function Qw(){return{localeError:wN()}}var SN=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(n){return e[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${o} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${E(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${w(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:o.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:o.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${o.includes}" \u0648\u0644\u0631\u064A`:o.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${o.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[o.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${w(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function eS(){return{localeError:SN()}}var kN=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(n){return e[n]??null}let r={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},i={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${s}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${E(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[o.format]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${w(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function tS(){return{localeError:kN()}}var zN=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}let r={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${o}, recebido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${E(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${o}${n.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Muito pequeno: esperado que ${n.origin} tivesse ${o}${n.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${o.prefix}"`:o.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inv\xE1lido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${o.pattern}`:`${r[o.format]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${w(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}};function rS(){return{localeError:zN()}}function nS(e,t,r,i){let n=Math.abs(e),o=n%10,a=n%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?r:i}var TN=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${E(n.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);if(a){let s=Number(n.maximum),l=nS(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${n.maximum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);if(a){let s=Number(n.minimum),l=nS(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${n.minimum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${w(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function iS(){return{localeError:TN()}}var PN=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}let r={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},i={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${s}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${E(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${o}${n.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${o}${n.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${r[o.format]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${w(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function oS(){return{localeError:PN()}}var IN=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(n){return e[n]??null}let r={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},i={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${s}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${E(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${r[o.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${w(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function aS(){return{localeError:IN()}}var EN=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(n){return e[n]??null}let r={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${n.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`}case"invalid_value":return n.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${E(n.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${w(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${n.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${o}${n.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${o}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${w(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function sS(){return{localeError:EN()}}var RN=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(n){return e[n]??null}let r={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},i={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${n.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${o} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`}case"invalid_value":return n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${E(n.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${o.prefix}"`:o.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${o.suffix}"`:o.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${n.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${w(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function cS(){return{localeError:RN()}}var jN=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(n){return e[n]??null}let r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${E(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${o}${n.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${o}${n.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ge\xE7ersiz metin: "${o.prefix}" ile ba\u015Flamal\u0131`:o.format==="ends_with"?`Ge\xE7ersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Ge\xE7ersiz metin: "${o.includes}" i\xE7ermeli`:o.format==="regex"?`Ge\xE7ersiz metin: ${o.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[o.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${w(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function lS(){return{localeError:jN()}}var ON=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${n.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${o}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${E(n.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} \u0431\u0443\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${w(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${n.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function od(){return{localeError:ON()}}function uS(){return od()}var AN=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(n){return e[n]??null}let r={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},i={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${o} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${E(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${w(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${o}${n.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${o}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${n.keys.length>1?"\u0632":""}: ${w(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function dS(){return{localeError:AN()}}var NN=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"}};function t(n){return e[n]??null}let r={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${s}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${E(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto\u2018g\u2018ri satr: "${o.includes}" ni o\u2018z ichiga olishi kerak`:o.format==="regex"?`Noto\u2018g\u2018ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[o.format]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${w(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function pS(){return{localeError:NN()}}var CN=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(n){return e[n]??null}let r={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},i={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${o}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${E(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${r[o.format]??n.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${w(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function mS(){return{localeError:CN()}}var DN=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(n){return e[n]??null}let r={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},i={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${E(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${o}${n.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${o}${n.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${r[o.format]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${w(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function fS(){return{localeError:DN()}}var UN=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(n){return e[n]??null}let r={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${s}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${o}\uFF0C\u4F46\u6536\u5230 ${s}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${E(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${o}${n.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${o}${n.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${w(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function hS(){return{localeError:UN()}}var MN=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function t(n){return e[n]??null}let r={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},i={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=O(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${s}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${o}, \xE0m\u1ECD\u0300 a r\xED ${s}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${E(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${a.verb} ${o}${n.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${n.maximum}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${a.verb} ${o}${n.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${n.minimum}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${o.prefix}"`:o.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${o.suffix}"`:o.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${o.includes}"`:o.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${o.pattern}`:`A\u1E63\xEC\u1E63e: ${r[o.format]??n.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${w(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function gS(){return{localeError:MN()}}var vS,sd=Symbol("ZodOutput"),cd=Symbol("ZodInput"),ad=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let i=r[0];return this._map.set(t,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let i={...this.get(r)??{}};delete i.id;let n={...i,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function ps(){return new ad}(vS=globalThis).__zod_globalRegistry??(vS.__zod_globalRegistry=ps());var Xe=globalThis.__zod_globalRegistry;function ld(e,t){return new e({type:"string",...N(t)})}function ud(e,t){return new e({type:"string",coerce:!0,...N(t)})}function ms(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...N(t)})}function Uo(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...N(t)})}function fs(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...N(t)})}function hs(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...N(t)})}function gs(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...N(t)})}function vs(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...N(t)})}function Mo(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...N(t)})}function ys(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...N(t)})}function bs(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...N(t)})}function xs(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...N(t)})}function _s(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...N(t)})}function $s(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...N(t)})}function ws(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...N(t)})}function Ss(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...N(t)})}function ks(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...N(t)})}function zs(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...N(t)})}function dd(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...N(t)})}function Ts(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...N(t)})}function Ps(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...N(t)})}function Is(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...N(t)})}function Es(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...N(t)})}function Rs(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...N(t)})}function js(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...N(t)})}var pd={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function md(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...N(t)})}function fd(e,t){return new e({type:"string",format:"date",check:"string_format",...N(t)})}function hd(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...N(t)})}function gd(e,t){return new e({type:"string",format:"duration",check:"string_format",...N(t)})}function vd(e,t){return new e({type:"number",checks:[],...N(t)})}function yd(e,t){return new e({type:"number",coerce:!0,checks:[],...N(t)})}function bd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...N(t)})}function xd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...N(t)})}function _d(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...N(t)})}function $d(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...N(t)})}function wd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...N(t)})}function Sd(e,t){return new e({type:"boolean",...N(t)})}function kd(e,t){return new e({type:"boolean",coerce:!0,...N(t)})}function zd(e,t){return new e({type:"bigint",...N(t)})}function Td(e,t){return new e({type:"bigint",coerce:!0,...N(t)})}function Pd(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...N(t)})}function Id(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...N(t)})}function Ed(e,t){return new e({type:"symbol",...N(t)})}function Rd(e,t){return new e({type:"undefined",...N(t)})}function jd(e,t){return new e({type:"null",...N(t)})}function Od(e){return new e({type:"any"})}function Ad(e){return new e({type:"unknown"})}function Nd(e,t){return new e({type:"never",...N(t)})}function Cd(e,t){return new e({type:"void",...N(t)})}function Dd(e,t){return new e({type:"date",...N(t)})}function Ud(e,t){return new e({type:"date",coerce:!0,...N(t)})}function Md(e,t){return new e({type:"nan",...N(t)})}function mr(e,t){return new Ll({check:"less_than",...N(t),value:e,inclusive:!1})}function yt(e,t){return new Ll({check:"less_than",...N(t),value:e,inclusive:!0})}function fr(e,t){return new Fl({check:"greater_than",...N(t),value:e,inclusive:!1})}function rt(e,t){return new Fl({check:"greater_than",...N(t),value:e,inclusive:!0})}function Os(e){return fr(0,e)}function As(e){return mr(0,e)}function Ns(e){return yt(0,e)}function Cs(e){return rt(0,e)}function Xr(e,t){return new Jh({check:"multiple_of",...N(t),value:e})}function Qr(e,t){return new Yh({check:"max_size",...N(t),maximum:e})}function hr(e,t){return new Xh({check:"min_size",...N(t),minimum:e})}function Rn(e,t){return new Qh({check:"size_equals",...N(t),size:e})}function jn(e,t){return new eg({check:"max_length",...N(t),maximum:e})}function Ir(e,t){return new tg({check:"min_length",...N(t),minimum:e})}function On(e,t){return new rg({check:"length_equals",...N(t),length:e})}function hi(e,t){return new ng({check:"string_format",format:"regex",...N(t),pattern:e})}function gi(e){return new ig({check:"string_format",format:"lowercase",...N(e)})}function vi(e){return new og({check:"string_format",format:"uppercase",...N(e)})}function yi(e,t){return new ag({check:"string_format",format:"includes",...N(t),includes:e})}function bi(e,t){return new sg({check:"string_format",format:"starts_with",...N(t),prefix:e})}function xi(e,t){return new cg({check:"string_format",format:"ends_with",...N(t),suffix:e})}function Ds(e,t,r){return new lg({check:"property",property:e,schema:t,...N(r)})}function _i(e,t){return new ug({check:"mime_type",mime:e,...N(t)})}function Yt(e){return new dg({check:"overwrite",tx:e})}function $i(e){return Yt(t=>t.normalize(e))}function wi(){return Yt(e=>e.trim())}function Si(){return Yt(e=>e.toLowerCase())}function ki(){return Yt(e=>e.toUpperCase())}function Zo(){return Yt(e=>fh(e))}function gg(e,t,r){return new e({type:"array",element:t,...N(r)})}function qN(e,t,r){return new e({type:"union",options:t,...N(r)})}function LN(e,t,r){return new e({type:"union",options:t,inclusive:!1,...N(r)})}function FN(e,t,r,i){return new e({type:"union",options:r,discriminator:t,...N(i)})}function VN(e,t,r){return new e({type:"intersection",left:t,right:r})}function BN(e,t,r,i){let n=r instanceof ee,o=n?i:r,a=n?r:null;return new e({type:"tuple",items:t,rest:a,...N(o)})}function WN(e,t,r,i){return new e({type:"record",keyType:t,valueType:r,...N(i)})}function HN(e,t,r,i){return new e({type:"map",keyType:t,valueType:r,...N(i)})}function JN(e,t,r){return new e({type:"set",valueType:t,...N(r)})}function GN(e,t,r){let i=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:i,...N(r)})}function KN(e,t,r){return new e({type:"enum",entries:t,...N(r)})}function YN(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...N(r)})}function Zd(e,t){return new e({type:"file",...N(t)})}function XN(e,t){return new e({type:"transform",transform:t})}function QN(e,t){return new e({type:"optional",innerType:t})}function eC(e,t){return new e({type:"nullable",innerType:t})}function tC(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():Il(r)}})}function rC(e,t,r){return new e({type:"nonoptional",innerType:t,...N(r)})}function nC(e,t){return new e({type:"success",innerType:t})}function iC(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function oC(e,t,r){return new e({type:"pipe",in:t,out:r})}function aC(e,t){return new e({type:"readonly",innerType:t})}function sC(e,t,r){return new e({type:"template_literal",parts:t,...N(r)})}function cC(e,t){return new e({type:"lazy",getter:t})}function lC(e,t){return new e({type:"promise",innerType:t})}function qd(e,t,r){let i=N(r);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function Ld(e,t,r){return new e({type:"custom",check:"custom",fn:t,...N(r)})}function Fd(e){let t=yS(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(ko(i,r.value,t._zod.def));else{let n=i;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=t),n.continue??(n.continue=!t._zod.def.abort),r.issues.push(ko(n))}},e(r.value,r)));return t}function yS(e,t){let r=new Ie({check:"custom",...N(t)});return r._zod.check=e,r}function Vd(e){let t=new Ie({check:"describe"});return t._zod.onattach=[r=>{let i=Xe.get(r)??{};Xe.add(r,{...i,description:e})}],t._zod.check=()=>{},t}function Bd(e){let t=new Ie({check:"meta"});return t._zod.onattach=[r=>{let i=Xe.get(r)??{};Xe.add(r,{...i,...e})}],t._zod.check=()=>{},t}function Wd(e,t){let r=N(t),i=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(i=i.map(y=>typeof y=="string"?y.toLowerCase():y),n=n.map(y=>typeof y=="string"?y.toLowerCase():y));let o=new Set(i),a=new Set(n),s=e.Codec??No,l=e.Boolean??Oo,d=e.String??En,p=new d({type:"string",error:r.error}),f=new l({type:"boolean",error:r.error}),g=new s({type:"pipe",in:p,out:f,transform:((y,v)=>{let x=y;return r.case!=="sensitive"&&(x=x.toLowerCase()),o.has(x)?!0:a.has(x)?!1:(v.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:v.value,inst:g,continue:!1}),{})}),reverseTransform:((y,v)=>y===!0?i[0]||"true":n[0]||"false"),error:r.error});return g}function zi(e,t,r,i={}){let n=N(i),o={...N(i),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...n};return r instanceof RegExp&&(o.pattern=r),new e(o)}function An(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Xe,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function ze(e,t,r={path:[],schemaPath:[]}){var i;let n=e._zod.def,o=t.seen.get(e);if(o)return o.count++,r.schemaPath.includes(e)&&(o.cycle=r.path),o.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let p={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,p);else{let g=a.schema,y=t.processors[n.type];if(!y)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);y(e,t,g,p)}let f=e._zod.parent;f&&(a.ref||(a.ref=f),ze(f,t,p),t.seen.get(f).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&Object.assign(a.schema,l),t.io==="input"&&bt(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function Nn(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=new Map;for(let a of e.seen.entries()){let s=e.metadataRegistry.get(a[0])?.id;if(s){let l=i.get(s);if(l&&l!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(s,a[0])}}let n=a=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let f=e.external.registry.get(a[0])?.id,g=e.external.uri??(v=>v);if(f)return{ref:g(f)};let y=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=y,{defId:y,ref:`${g("__shared")}#/${s}/${y}`}}if(a[1]===r)return{ref:"#"};let d=`#/${s}/`,p=a[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:d+p}},o=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:l,defId:d}=n(a);s.def={...s.schema},d&&(s.defId=d);let p=s.schema;for(let f in p)delete p[f];p.$ref=l};if(e.cycles==="throw")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
|
|
59
|
+
|
|
60
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let s=a[1];if(t===a[0]){o(a);continue}if(e.external){let d=e.external.registry.get(a[0])?.id;if(t!==a[0]&&d){o(a);continue}}if(e.metadataRegistry.get(a[0])?.id){o(a);continue}if(s.cycle){o(a);continue}if(s.count>1&&e.reused==="ref"){o(a);continue}}}function Cn(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=a=>{let s=e.seen.get(a);if(s.ref===null)return;let l=s.def??s.schema,d={...l},p=s.ref;if(s.ref=null,p){i(p);let g=e.seen.get(p),y=g.schema;if(y.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(y)):Object.assign(l,y),Object.assign(l,d),a._zod.parent===p)for(let x in l)x==="$ref"||x==="allOf"||x in d||delete l[x];if(y.$ref&&g.def)for(let x in l)x==="$ref"||x==="allOf"||x in g.def&&JSON.stringify(l[x])===JSON.stringify(g.def[x])&&delete l[x]}let f=a._zod.parent;if(f&&f!==p){i(f);let g=e.seen.get(f);if(g?.schema.$ref&&(l.$ref=g.schema.$ref,g.def))for(let y in l)y==="$ref"||y==="allOf"||y in g.def&&JSON.stringify(l[y])===JSON.stringify(g.def[y])&&delete l[y]}e.override({zodSchema:a,jsonSchema:l,path:s.path??[]})};for(let a of[...e.seen.entries()].reverse())i(a[0]);let n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(a)}Object.assign(n,r.def??r.schema);let o=e.external?.defs??{};for(let a of e.seen.entries()){let s=a[1];s.def&&s.defId&&(o[s.defId]=s.def)}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?n.$defs=o:n.definitions=o);try{let a=JSON.parse(JSON.stringify(n));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:qo(t,"input",e.processors),output:qo(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function bt(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return bt(i.element,r);if(i.type==="set")return bt(i.valueType,r);if(i.type==="lazy")return bt(i.getter(),r);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return bt(i.innerType,r);if(i.type==="intersection")return bt(i.left,r)||bt(i.right,r);if(i.type==="record"||i.type==="map")return bt(i.keyType,r)||bt(i.valueType,r);if(i.type==="pipe")return bt(i.in,r)||bt(i.out,r);if(i.type==="object"){for(let n in i.shape)if(bt(i.shape[n],r))return!0;return!1}if(i.type==="union"){for(let n of i.options)if(bt(n,r))return!0;return!1}if(i.type==="tuple"){for(let n of i.items)if(bt(n,r))return!0;return!!(i.rest&&bt(i.rest,r))}return!1}var vg=(e,t={})=>r=>{let i=An({...r,processors:t});return ze(e,i),Nn(i,e),Cn(i,e)},qo=(e,t,r={})=>i=>{let{libraryOptions:n,target:o}=i??{},a=An({...n??{},target:o,io:t,processors:r});return ze(e,a),Nn(a,e),Cn(a,e)};var uC={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},yg=(e,t,r,i)=>{let n=r;n.type="string";let{minimum:o,maximum:a,format:s,patterns:l,contentEncoding:d}=e._zod.bag;if(typeof o=="number"&&(n.minLength=o),typeof a=="number"&&(n.maxLength=a),s&&(n.format=uC[s]??s,n.format===""&&delete n.format,s==="time"&&delete n.format),d&&(n.contentEncoding=d),l&&l.size>0){let p=[...l];p.length===1?n.pattern=p[0].source:p.length>1&&(n.allOf=[...p.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},bg=(e,t,r,i)=>{let n=r,{minimum:o,maximum:a,format:s,multipleOf:l,exclusiveMaximum:d,exclusiveMinimum:p}=e._zod.bag;typeof s=="string"&&s.includes("int")?n.type="integer":n.type="number",typeof p=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.minimum=p,n.exclusiveMinimum=!0):n.exclusiveMinimum=p),typeof o=="number"&&(n.minimum=o,typeof p=="number"&&t.target!=="draft-04"&&(p>=o?delete n.minimum:delete n.exclusiveMinimum)),typeof d=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.maximum=d,n.exclusiveMaximum=!0):n.exclusiveMaximum=d),typeof a=="number"&&(n.maximum=a,typeof d=="number"&&t.target!=="draft-04"&&(d<=a?delete n.maximum:delete n.exclusiveMaximum)),typeof l=="number"&&(n.multipleOf=l)},xg=(e,t,r,i)=>{r.type="boolean"},_g=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},$g=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},wg=(e,t,r,i)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},Sg=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},kg=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},zg=(e,t,r,i)=>{r.not={}},Tg=(e,t,r,i)=>{},Pg=(e,t,r,i)=>{},Ig=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Eg=(e,t,r,i)=>{let n=e._zod.def,o=Xa(n.entries);o.every(a=>typeof a=="number")&&(r.type="number"),o.every(a=>typeof a=="string")&&(r.type="string"),r.enum=o},Rg=(e,t,r,i)=>{let n=e._zod.def,o=[];for(let a of n.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(a))}else o.push(a);if(o.length!==0)if(o.length===1){let a=o[0];r.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[a]:r.const=a}else o.every(a=>typeof a=="number")&&(r.type="number"),o.every(a=>typeof a=="string")&&(r.type="string"),o.every(a=>typeof a=="boolean")&&(r.type="boolean"),o.every(a=>a===null)&&(r.type="null"),r.enum=o},jg=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Og=(e,t,r,i)=>{let n=r,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=o.source},Ag=(e,t,r,i)=>{let n=r,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:l}=e._zod.bag;a!==void 0&&(o.minLength=a),s!==void 0&&(o.maxLength=s),l?l.length===1?(o.contentMediaType=l[0],Object.assign(n,o)):(Object.assign(n,o),n.anyOf=l.map(d=>({contentMediaType:d}))):Object.assign(n,o)},Ng=(e,t,r,i)=>{r.type="boolean"},Cg=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Dg=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Ug=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Mg=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Zg=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},qg=(e,t,r,i)=>{let n=r,o=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;typeof a=="number"&&(n.minItems=a),typeof s=="number"&&(n.maxItems=s),n.type="array",n.items=ze(o.element,t,{...i,path:[...i.path,"items"]})},Lg=(e,t,r,i)=>{let n=r,o=e._zod.def;n.type="object",n.properties={};let a=o.shape;for(let d in a)n.properties[d]=ze(a[d],t,{...i,path:[...i.path,"properties",d]});let s=new Set(Object.keys(a)),l=new Set([...s].filter(d=>{let p=o.shape[d]._zod;return t.io==="input"?p.optin===void 0:p.optout===void 0}));l.size>0&&(n.required=Array.from(l)),o.catchall?._zod.def.type==="never"?n.additionalProperties=!1:o.catchall?o.catchall&&(n.additionalProperties=ze(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},Jd=(e,t,r,i)=>{let n=e._zod.def,o=n.inclusive===!1,a=n.options.map((s,l)=>ze(s,t,{...i,path:[...i.path,o?"oneOf":"anyOf",l]}));o?r.oneOf=a:r.anyOf=a},Fg=(e,t,r,i)=>{let n=e._zod.def,o=ze(n.left,t,{...i,path:[...i.path,"allOf",0]}),a=ze(n.right,t,{...i,path:[...i.path,"allOf",1]}),s=d=>"allOf"in d&&Object.keys(d).length===1,l=[...s(o)?o.allOf:[o],...s(a)?a.allOf:[a]];r.allOf=l},Vg=(e,t,r,i)=>{let n=r,o=e._zod.def;n.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",l=o.items.map((g,y)=>ze(g,t,{...i,path:[...i.path,a,y]})),d=o.rest?ze(o.rest,t,{...i,path:[...i.path,s,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=l,d&&(n.items=d)):t.target==="openapi-3.0"?(n.items={anyOf:l},d&&n.items.anyOf.push(d),n.minItems=l.length,d||(n.maxItems=l.length)):(n.items=l,d&&(n.additionalItems=d));let{minimum:p,maximum:f}=e._zod.bag;typeof p=="number"&&(n.minItems=p),typeof f=="number"&&(n.maxItems=f)},Bg=(e,t,r,i)=>{let n=r,o=e._zod.def;n.type="object";let a=o.keyType,l=a._zod.bag?.patterns;if(o.mode==="loose"&&l&&l.size>0){let p=ze(o.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});n.patternProperties={};for(let f of l)n.patternProperties[f.source]=p}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=ze(o.keyType,t,{...i,path:[...i.path,"propertyNames"]})),n.additionalProperties=ze(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]});let d=a._zod.values;if(d){let p=[...d].filter(f=>typeof f=="string"||typeof f=="number");p.length>0&&(n.required=p)}},Wg=(e,t,r,i)=>{let n=e._zod.def,o=ze(n.innerType,t,i),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},Hg=(e,t,r,i)=>{let n=e._zod.def;ze(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType},Jg=(e,t,r,i)=>{let n=e._zod.def;ze(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},Gg=(e,t,r,i)=>{let n=e._zod.def;ze(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},Kg=(e,t,r,i)=>{let n=e._zod.def;ze(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType;let a;try{a=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},Yg=(e,t,r,i)=>{let n=e._zod.def,o=t.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;ze(o,t,i);let a=t.seen.get(e);a.ref=o},Xg=(e,t,r,i)=>{let n=e._zod.def;ze(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType,r.readOnly=!0},Qg=(e,t,r,i)=>{let n=e._zod.def;ze(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType},Gd=(e,t,r,i)=>{let n=e._zod.def;ze(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType},ev=(e,t,r,i)=>{let n=e._zod.innerType;ze(n,t,i);let o=t.seen.get(e);o.ref=n},Hd={string:yg,number:bg,boolean:xg,bigint:_g,symbol:$g,null:wg,undefined:Sg,void:kg,never:zg,any:Tg,unknown:Pg,date:Ig,enum:Eg,literal:Rg,nan:jg,template_literal:Og,file:Ag,success:Ng,custom:Cg,function:Dg,transform:Ug,map:Mg,set:Zg,array:qg,object:Lg,union:Jd,intersection:Fg,tuple:Vg,record:Bg,nullable:Wg,nonoptional:Hg,default:Jg,prefault:Gg,catch:Kg,pipe:Yg,readonly:Xg,promise:Qg,optional:Gd,lazy:ev};function Ti(e,t){if("_idmap"in e){let i=e,n=An({...t,processors:Hd}),o={};for(let l of i._idmap.entries()){let[d,p]=l;ze(p,n)}let a={},s={registry:i,uri:t?.uri,defs:o};n.external=s;for(let l of i._idmap.entries()){let[d,p]=l;Nn(n,p),a[d]=Cn(n,p)}if(Object.keys(o).length>0){let l=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[l]:o}}return{schemas:a}}let r=An({...t,processors:Hd});return ze(e,r),Nn(r,e),Cn(r,e)}var Kd=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let r=t?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=An({processors:Hd,target:r,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return ze(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),Nn(this.ctx,t);let i=Cn(this.ctx,t),{"~standard":n,...o}=i;return o}};var bS={};var mC=_("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");ee.init(e,t),e.def=t,e.type=t.type,e.parse=(r,i)=>pi(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>Pn(e,r,i),e.parseAsync=async(r,i)=>mi(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>In(e,r,i),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]},{parent:!0}),e.with=e.check,e.clone=(r,i)=>Ye(e,r,i),e.brand=()=>e,e.register=((r,i)=>(r.add(e,i),e)),e.apply=r=>r(e)});var fC=_("ZodMiniObject",(e,t)=>{Ru.init(e,t),mC.init(e,t),oe(e,"shape",()=>t.shape)});function tv(e,t){let r={type:"object",shape:e??{},...N(t)};return new fC(r)}function Xt(e){return!!e._zod}function Pi(e){let t=Object.values(e);if(t.length===0)return tv({});let r=t.every(Xt),i=t.every(n=>!Xt(n));if(r)return tv(e);if(i)return A$(e);throw new Error("Mixed Zod versions detected in object shape.")}function Dn(e,t){return Xt(e)?Pn(e,t):e.safeParse(t)}async function Yd(e,t){return Xt(e)?await In(e,t):await e.safeParseAsync(t)}function Un(e){if(!e)return;let t;if(Xt(e)?t=e._zod?.def?.shape:t=e.shape,!!t){if(typeof t=="function")try{return t()}catch{return}return t}}function Lo(e){if(e){if(typeof e=="object"){let t=e,r=e;if(!t._def&&!r._zod){let i=Object.values(e);if(i.length>0&&i.every(n=>typeof n=="object"&&n!==null&&(n._def!==void 0||n._zod!==void 0||typeof n.parse=="function")))return Pi(e)}}if(Xt(e)){let r=e._zod?.def;if(r&&(r.type==="object"||r.shape!==void 0))return e}else if(e.shape!==void 0)return e}}function Xd(e){if(e&&typeof e=="object"){if("message"in e&&typeof e.message=="string")return e.message;if("issues"in e&&Array.isArray(e.issues)&&e.issues.length>0){let t=e.issues[0];if(t&&typeof t=="object"&&"message"in t)return String(t.message)}try{return JSON.stringify(e)}catch{return String(e)}}return String(e)}function $S(e){return e.description}function wS(e){if(Xt(e))return e._zod?.def?.type==="optional";let t=e;return typeof e.isOptional=="function"?e.isOptional():t._def?.typeName==="ZodOptional"}function Qd(e){if(Xt(e)){let o=e._zod?.def;if(o){if(o.value!==void 0)return o.value;if(Array.isArray(o.values)&&o.values.length>0)return o.values[0]}}let r=e._def;if(r){if(r.value!==void 0)return r.value;if(Array.isArray(r.values)&&r.values.length>0)return r.values[0]}let i=e.value;if(i!==void 0)return i}var I={};Tr(I,{$brand:()=>Ka,$input:()=>cd,$output:()=>sd,NEVER:()=>zl,TimePrecision:()=>pd,ZodAny:()=>$v,ZodArray:()=>zv,ZodBase64:()=>bp,ZodBase64URL:()=>xp,ZodBigInt:()=>Jo,ZodBigIntFormat:()=>wp,ZodBoolean:()=>Ho,ZodCIDRv4:()=>vp,ZodCIDRv6:()=>yp,ZodCUID:()=>up,ZodCUID2:()=>dp,ZodCatch:()=>Wv,ZodCodec:()=>Pp,ZodCustom:()=>Js,ZodCustomStringFormat:()=>Bo,ZodDate:()=>Fs,ZodDefault:()=>Zv,ZodDiscriminatedUnion:()=>Pv,ZodE164:()=>_p,ZodEmail:()=>sp,ZodEmoji:()=>cp,ZodEnum:()=>Fo,ZodError:()=>yC,ZodExactOptional:()=>Dv,ZodFile:()=>Nv,ZodFirstPartyTypeKind:()=>iy,ZodFunction:()=>ty,ZodGUID:()=>Ms,ZodIPv4:()=>hp,ZodIPv6:()=>gp,ZodISODate:()=>rp,ZodISODateTime:()=>tp,ZodISODuration:()=>ip,ZodISOTime:()=>np,ZodIntersection:()=>Iv,ZodIssueCode:()=>xC,ZodJWT:()=>$p,ZodKSUID:()=>fp,ZodLazy:()=>Xv,ZodLiteral:()=>Av,ZodMAC:()=>yv,ZodMap:()=>jv,ZodNaN:()=>Jv,ZodNanoID:()=>lp,ZodNever:()=>Sv,ZodNonOptional:()=>zp,ZodNull:()=>_v,ZodNullable:()=>Mv,ZodNumber:()=>Wo,ZodNumberFormat:()=>Ii,ZodObject:()=>Vs,ZodOptional:()=>Yo,ZodPipe:()=>Tp,ZodPrefault:()=>Lv,ZodPromise:()=>ey,ZodReadonly:()=>Gv,ZodRealError:()=>Pt,ZodRecord:()=>Hs,ZodSet:()=>Ov,ZodString:()=>Vo,ZodStringFormat:()=>Ee,ZodSuccess:()=>Bv,ZodSymbol:()=>bv,ZodTemplateLiteral:()=>Yv,ZodTransform:()=>Cv,ZodTuple:()=>Ev,ZodType:()=>ae,ZodULID:()=>pp,ZodURL:()=>Ls,ZodUUID:()=>Er,ZodUndefined:()=>xv,ZodUnion:()=>Bs,ZodUnknown:()=>wv,ZodVoid:()=>kv,ZodXID:()=>mp,ZodXor:()=>Tv,_ZodString:()=>ap,_default:()=>qv,_function:()=>zk,any:()=>ck,array:()=>pe,base64:()=>BS,base64url:()=>WS,bigint:()=>nk,boolean:()=>He,catch:()=>Hv,check:()=>Tk,cidrv4:()=>FS,cidrv6:()=>VS,clone:()=>Ye,codec:()=>wk,coerce:()=>oy,config:()=>Fe,core:()=>Zt,cuid:()=>NS,cuid2:()=>CS,custom:()=>Ip,date:()=>uk,decode:()=>dv,decodeAsync:()=>mv,describe:()=>Pk,discriminatedUnion:()=>Ws,e164:()=>HS,email:()=>kS,emoji:()=>OS,encode:()=>uv,encodeAsync:()=>pv,endsWith:()=>xi,enum:()=>it,exactOptional:()=>Uv,file:()=>bk,flattenError:()=>zo,float32:()=>QS,float64:()=>ek,formatError:()=>To,fromJSONSchema:()=>Ak,function:()=>zk,getErrorMap:()=>$C,globalRegistry:()=>Xe,gt:()=>fr,gte:()=>rt,guid:()=>zS,hash:()=>XS,hex:()=>YS,hostname:()=>KS,httpUrl:()=>jS,includes:()=>yi,instanceof:()=>Ek,int:()=>op,int32:()=>tk,int64:()=>ik,intersection:()=>Ko,ipv4:()=>ZS,ipv6:()=>LS,iso:()=>Mn,json:()=>jk,jwt:()=>JS,keyof:()=>dk,ksuid:()=>MS,lazy:()=>Qv,length:()=>On,literal:()=>W,locales:()=>Do,looseObject:()=>nt,looseRecord:()=>hk,lowercase:()=>gi,lt:()=>mr,lte:()=>yt,mac:()=>qS,map:()=>gk,maxLength:()=>jn,maxSize:()=>Qr,meta:()=>Ik,mime:()=>_i,minLength:()=>Ir,minSize:()=>hr,multipleOf:()=>Xr,nan:()=>$k,nanoid:()=>AS,nativeEnum:()=>yk,negative:()=>As,never:()=>Sp,nonnegative:()=>Cs,nonoptional:()=>Vv,nonpositive:()=>Ns,normalize:()=>$i,null:()=>Go,nullable:()=>Zs,nullish:()=>xk,number:()=>ke,object:()=>F,optional:()=>De,overwrite:()=>Yt,parse:()=>av,parseAsync:()=>sv,partialRecord:()=>fk,pipe:()=>qs,positive:()=>Os,prefault:()=>Fv,preprocess:()=>Gs,prettifyError:()=>Rl,promise:()=>kk,property:()=>Ds,readonly:()=>Kv,record:()=>Ae,refine:()=>ry,regex:()=>hi,regexes:()=>Tt,registry:()=>ps,safeDecode:()=>hv,safeDecodeAsync:()=>vv,safeEncode:()=>fv,safeEncodeAsync:()=>gv,safeParse:()=>cv,safeParseAsync:()=>lv,set:()=>vk,setErrorMap:()=>_C,size:()=>Rn,slugify:()=>Zo,startsWith:()=>bi,strictObject:()=>pk,string:()=>k,stringFormat:()=>GS,stringbool:()=>Rk,success:()=>_k,superRefine:()=>ny,symbol:()=>ak,templateLiteral:()=>Sk,toJSONSchema:()=>Ti,toLowerCase:()=>Si,toUpperCase:()=>ki,transform:()=>kp,treeifyError:()=>El,trim:()=>wi,tuple:()=>Rv,uint32:()=>rk,uint64:()=>ok,ulid:()=>DS,undefined:()=>sk,union:()=>Pe,unknown:()=>Re,uppercase:()=>vi,url:()=>RS,util:()=>j,uuid:()=>TS,uuidv4:()=>PS,uuidv6:()=>IS,uuidv7:()=>ES,void:()=>lk,xid:()=>US,xor:()=>mk});var Us={};Tr(Us,{ZodAny:()=>$v,ZodArray:()=>zv,ZodBase64:()=>bp,ZodBase64URL:()=>xp,ZodBigInt:()=>Jo,ZodBigIntFormat:()=>wp,ZodBoolean:()=>Ho,ZodCIDRv4:()=>vp,ZodCIDRv6:()=>yp,ZodCUID:()=>up,ZodCUID2:()=>dp,ZodCatch:()=>Wv,ZodCodec:()=>Pp,ZodCustom:()=>Js,ZodCustomStringFormat:()=>Bo,ZodDate:()=>Fs,ZodDefault:()=>Zv,ZodDiscriminatedUnion:()=>Pv,ZodE164:()=>_p,ZodEmail:()=>sp,ZodEmoji:()=>cp,ZodEnum:()=>Fo,ZodExactOptional:()=>Dv,ZodFile:()=>Nv,ZodFunction:()=>ty,ZodGUID:()=>Ms,ZodIPv4:()=>hp,ZodIPv6:()=>gp,ZodIntersection:()=>Iv,ZodJWT:()=>$p,ZodKSUID:()=>fp,ZodLazy:()=>Xv,ZodLiteral:()=>Av,ZodMAC:()=>yv,ZodMap:()=>jv,ZodNaN:()=>Jv,ZodNanoID:()=>lp,ZodNever:()=>Sv,ZodNonOptional:()=>zp,ZodNull:()=>_v,ZodNullable:()=>Mv,ZodNumber:()=>Wo,ZodNumberFormat:()=>Ii,ZodObject:()=>Vs,ZodOptional:()=>Yo,ZodPipe:()=>Tp,ZodPrefault:()=>Lv,ZodPromise:()=>ey,ZodReadonly:()=>Gv,ZodRecord:()=>Hs,ZodSet:()=>Ov,ZodString:()=>Vo,ZodStringFormat:()=>Ee,ZodSuccess:()=>Bv,ZodSymbol:()=>bv,ZodTemplateLiteral:()=>Yv,ZodTransform:()=>Cv,ZodTuple:()=>Ev,ZodType:()=>ae,ZodULID:()=>pp,ZodURL:()=>Ls,ZodUUID:()=>Er,ZodUndefined:()=>xv,ZodUnion:()=>Bs,ZodUnknown:()=>wv,ZodVoid:()=>kv,ZodXID:()=>mp,ZodXor:()=>Tv,_ZodString:()=>ap,_default:()=>qv,_function:()=>zk,any:()=>ck,array:()=>pe,base64:()=>BS,base64url:()=>WS,bigint:()=>nk,boolean:()=>He,catch:()=>Hv,check:()=>Tk,cidrv4:()=>FS,cidrv6:()=>VS,codec:()=>wk,cuid:()=>NS,cuid2:()=>CS,custom:()=>Ip,date:()=>uk,describe:()=>Pk,discriminatedUnion:()=>Ws,e164:()=>HS,email:()=>kS,emoji:()=>OS,enum:()=>it,exactOptional:()=>Uv,file:()=>bk,float32:()=>QS,float64:()=>ek,function:()=>zk,guid:()=>zS,hash:()=>XS,hex:()=>YS,hostname:()=>KS,httpUrl:()=>jS,instanceof:()=>Ek,int:()=>op,int32:()=>tk,int64:()=>ik,intersection:()=>Ko,ipv4:()=>ZS,ipv6:()=>LS,json:()=>jk,jwt:()=>JS,keyof:()=>dk,ksuid:()=>MS,lazy:()=>Qv,literal:()=>W,looseObject:()=>nt,looseRecord:()=>hk,mac:()=>qS,map:()=>gk,meta:()=>Ik,nan:()=>$k,nanoid:()=>AS,nativeEnum:()=>yk,never:()=>Sp,nonoptional:()=>Vv,null:()=>Go,nullable:()=>Zs,nullish:()=>xk,number:()=>ke,object:()=>F,optional:()=>De,partialRecord:()=>fk,pipe:()=>qs,prefault:()=>Fv,preprocess:()=>Gs,promise:()=>kk,readonly:()=>Kv,record:()=>Ae,refine:()=>ry,set:()=>vk,strictObject:()=>pk,string:()=>k,stringFormat:()=>GS,stringbool:()=>Rk,success:()=>_k,superRefine:()=>ny,symbol:()=>ak,templateLiteral:()=>Sk,transform:()=>kp,tuple:()=>Rv,uint32:()=>rk,uint64:()=>ok,ulid:()=>DS,undefined:()=>sk,union:()=>Pe,unknown:()=>Re,url:()=>RS,uuid:()=>TS,uuidv4:()=>PS,uuidv6:()=>IS,uuidv7:()=>ES,void:()=>lk,xid:()=>US,xor:()=>mk});var ep={};Tr(ep,{endsWith:()=>xi,gt:()=>fr,gte:()=>rt,includes:()=>yi,length:()=>On,lowercase:()=>gi,lt:()=>mr,lte:()=>yt,maxLength:()=>jn,maxSize:()=>Qr,mime:()=>_i,minLength:()=>Ir,minSize:()=>hr,multipleOf:()=>Xr,negative:()=>As,nonnegative:()=>Cs,nonpositive:()=>Ns,normalize:()=>$i,overwrite:()=>Yt,positive:()=>Os,property:()=>Ds,regex:()=>hi,size:()=>Rn,slugify:()=>Zo,startsWith:()=>bi,toLowerCase:()=>Si,toUpperCase:()=>ki,trim:()=>wi,uppercase:()=>vi});var Mn={};Tr(Mn,{ZodISODate:()=>rp,ZodISODateTime:()=>tp,ZodISODuration:()=>ip,ZodISOTime:()=>np,date:()=>nv,datetime:()=>rv,duration:()=>ov,time:()=>iv});var tp=_("ZodISODateTime",(e,t)=>{au.init(e,t),Ee.init(e,t)});function rv(e){return md(tp,e)}var rp=_("ZodISODate",(e,t)=>{su.init(e,t),Ee.init(e,t)});function nv(e){return fd(rp,e)}var np=_("ZodISOTime",(e,t)=>{cu.init(e,t),Ee.init(e,t)});function iv(e){return hd(np,e)}var ip=_("ZodISODuration",(e,t)=>{lu.init(e,t),Ee.init(e,t)});function ov(e){return gd(ip,e)}var SS=(e,t)=>{ns.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>To(e,r)},flatten:{value:r=>zo(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,wo,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,wo,2)}},isEmpty:{get(){return e.issues.length===0}}})},yC=_("ZodError",SS),Pt=_("ZodError",SS,{Parent:Error});var av=Po(Pt),sv=Io(Pt),cv=Eo(Pt),lv=Ro(Pt),uv=jl(Pt),dv=Ol(Pt),pv=Al(Pt),mv=Nl(Pt),fv=Cl(Pt),hv=Dl(Pt),gv=Ul(Pt),vv=Ml(Pt);var ae=_("ZodType",(e,t)=>(ee.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:qo(e,"input"),output:qo(e,"output")}}),e.toJSONSchema=vg(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(j.mergeDefs(t,{checks:[...t.checks??[],...r.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0}),e.with=e.check,e.clone=(r,i)=>Ye(e,r,i),e.brand=()=>e,e.register=((r,i)=>(r.add(e,i),e)),e.parse=(r,i)=>av(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>cv(e,r,i),e.parseAsync=async(r,i)=>sv(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>lv(e,r,i),e.spa=e.safeParseAsync,e.encode=(r,i)=>uv(e,r,i),e.decode=(r,i)=>dv(e,r,i),e.encodeAsync=async(r,i)=>pv(e,r,i),e.decodeAsync=async(r,i)=>mv(e,r,i),e.safeEncode=(r,i)=>fv(e,r,i),e.safeDecode=(r,i)=>hv(e,r,i),e.safeEncodeAsync=async(r,i)=>gv(e,r,i),e.safeDecodeAsync=async(r,i)=>vv(e,r,i),e.refine=(r,i)=>e.check(ry(r,i)),e.superRefine=r=>e.check(ny(r)),e.overwrite=r=>e.check(Yt(r)),e.optional=()=>De(e),e.exactOptional=()=>Uv(e),e.nullable=()=>Zs(e),e.nullish=()=>De(Zs(e)),e.nonoptional=r=>Vv(e,r),e.array=()=>pe(e),e.or=r=>Pe([e,r]),e.and=r=>Ko(e,r),e.transform=r=>qs(e,kp(r)),e.default=r=>qv(e,r),e.prefault=r=>Fv(e,r),e.catch=r=>Hv(e,r),e.pipe=r=>qs(e,r),e.readonly=()=>Kv(e),e.describe=r=>{let i=e.clone();return Xe.add(i,{description:r}),i},Object.defineProperty(e,"description",{get(){return Xe.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Xe.get(e);let i=e.clone();return Xe.add(i,r[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),ap=_("_ZodString",(e,t)=>{En.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(i,n,o)=>yg(e,i,n,o);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...i)=>e.check(hi(...i)),e.includes=(...i)=>e.check(yi(...i)),e.startsWith=(...i)=>e.check(bi(...i)),e.endsWith=(...i)=>e.check(xi(...i)),e.min=(...i)=>e.check(Ir(...i)),e.max=(...i)=>e.check(jn(...i)),e.length=(...i)=>e.check(On(...i)),e.nonempty=(...i)=>e.check(Ir(1,...i)),e.lowercase=i=>e.check(gi(i)),e.uppercase=i=>e.check(vi(i)),e.trim=()=>e.check(wi()),e.normalize=(...i)=>e.check($i(...i)),e.toLowerCase=()=>e.check(Si()),e.toUpperCase=()=>e.check(ki()),e.slugify=()=>e.check(Zo())}),Vo=_("ZodString",(e,t)=>{En.init(e,t),ap.init(e,t),e.email=r=>e.check(ms(sp,r)),e.url=r=>e.check(Mo(Ls,r)),e.jwt=r=>e.check(js($p,r)),e.emoji=r=>e.check(ys(cp,r)),e.guid=r=>e.check(Uo(Ms,r)),e.uuid=r=>e.check(fs(Er,r)),e.uuidv4=r=>e.check(hs(Er,r)),e.uuidv6=r=>e.check(gs(Er,r)),e.uuidv7=r=>e.check(vs(Er,r)),e.nanoid=r=>e.check(bs(lp,r)),e.guid=r=>e.check(Uo(Ms,r)),e.cuid=r=>e.check(xs(up,r)),e.cuid2=r=>e.check(_s(dp,r)),e.ulid=r=>e.check($s(pp,r)),e.base64=r=>e.check(Is(bp,r)),e.base64url=r=>e.check(Es(xp,r)),e.xid=r=>e.check(ws(mp,r)),e.ksuid=r=>e.check(Ss(fp,r)),e.ipv4=r=>e.check(ks(hp,r)),e.ipv6=r=>e.check(zs(gp,r)),e.cidrv4=r=>e.check(Ts(vp,r)),e.cidrv6=r=>e.check(Ps(yp,r)),e.e164=r=>e.check(Rs(_p,r)),e.datetime=r=>e.check(rv(r)),e.date=r=>e.check(nv(r)),e.time=r=>e.check(iv(r)),e.duration=r=>e.check(ov(r))});function k(e){return ld(Vo,e)}var Ee=_("ZodStringFormat",(e,t)=>{Te.init(e,t),ap.init(e,t)}),sp=_("ZodEmail",(e,t)=>{Yl.init(e,t),Ee.init(e,t)});function kS(e){return ms(sp,e)}var Ms=_("ZodGUID",(e,t)=>{Gl.init(e,t),Ee.init(e,t)});function zS(e){return Uo(Ms,e)}var Er=_("ZodUUID",(e,t)=>{Kl.init(e,t),Ee.init(e,t)});function TS(e){return fs(Er,e)}function PS(e){return hs(Er,e)}function IS(e){return gs(Er,e)}function ES(e){return vs(Er,e)}var Ls=_("ZodURL",(e,t)=>{Xl.init(e,t),Ee.init(e,t)});function RS(e){return Mo(Ls,e)}function jS(e){return Mo(Ls,{protocol:/^https?$/,hostname:Tt.domain,...j.normalizeParams(e)})}var cp=_("ZodEmoji",(e,t)=>{Ql.init(e,t),Ee.init(e,t)});function OS(e){return ys(cp,e)}var lp=_("ZodNanoID",(e,t)=>{eu.init(e,t),Ee.init(e,t)});function AS(e){return bs(lp,e)}var up=_("ZodCUID",(e,t)=>{tu.init(e,t),Ee.init(e,t)});function NS(e){return xs(up,e)}var dp=_("ZodCUID2",(e,t)=>{ru.init(e,t),Ee.init(e,t)});function CS(e){return _s(dp,e)}var pp=_("ZodULID",(e,t)=>{nu.init(e,t),Ee.init(e,t)});function DS(e){return $s(pp,e)}var mp=_("ZodXID",(e,t)=>{iu.init(e,t),Ee.init(e,t)});function US(e){return ws(mp,e)}var fp=_("ZodKSUID",(e,t)=>{ou.init(e,t),Ee.init(e,t)});function MS(e){return Ss(fp,e)}var hp=_("ZodIPv4",(e,t)=>{uu.init(e,t),Ee.init(e,t)});function ZS(e){return ks(hp,e)}var yv=_("ZodMAC",(e,t)=>{pu.init(e,t),Ee.init(e,t)});function qS(e){return dd(yv,e)}var gp=_("ZodIPv6",(e,t)=>{du.init(e,t),Ee.init(e,t)});function LS(e){return zs(gp,e)}var vp=_("ZodCIDRv4",(e,t)=>{mu.init(e,t),Ee.init(e,t)});function FS(e){return Ts(vp,e)}var yp=_("ZodCIDRv6",(e,t)=>{fu.init(e,t),Ee.init(e,t)});function VS(e){return Ps(yp,e)}var bp=_("ZodBase64",(e,t)=>{hu.init(e,t),Ee.init(e,t)});function BS(e){return Is(bp,e)}var xp=_("ZodBase64URL",(e,t)=>{gu.init(e,t),Ee.init(e,t)});function WS(e){return Es(xp,e)}var _p=_("ZodE164",(e,t)=>{vu.init(e,t),Ee.init(e,t)});function HS(e){return Rs(_p,e)}var $p=_("ZodJWT",(e,t)=>{yu.init(e,t),Ee.init(e,t)});function JS(e){return js($p,e)}var Bo=_("ZodCustomStringFormat",(e,t)=>{bu.init(e,t),Ee.init(e,t)});function GS(e,t,r={}){return zi(Bo,e,t,r)}function KS(e){return zi(Bo,"hostname",Tt.hostname,e)}function YS(e){return zi(Bo,"hex",Tt.hex,e)}function XS(e,t){let r=t?.enc??"hex",i=`${e}_${r}`,n=Tt[i];if(!n)throw new Error(`Unrecognized hash format: ${i}`);return zi(Bo,i,n,t)}var Wo=_("ZodNumber",(e,t)=>{ss.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(i,n,o)=>bg(e,i,n,o),e.gt=(i,n)=>e.check(fr(i,n)),e.gte=(i,n)=>e.check(rt(i,n)),e.min=(i,n)=>e.check(rt(i,n)),e.lt=(i,n)=>e.check(mr(i,n)),e.lte=(i,n)=>e.check(yt(i,n)),e.max=(i,n)=>e.check(yt(i,n)),e.int=i=>e.check(op(i)),e.safe=i=>e.check(op(i)),e.positive=i=>e.check(fr(0,i)),e.nonnegative=i=>e.check(rt(0,i)),e.negative=i=>e.check(mr(0,i)),e.nonpositive=i=>e.check(yt(0,i)),e.multipleOf=(i,n)=>e.check(Xr(i,n)),e.step=(i,n)=>e.check(Xr(i,n)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function ke(e){return vd(Wo,e)}var Ii=_("ZodNumberFormat",(e,t)=>{xu.init(e,t),Wo.init(e,t)});function op(e){return bd(Ii,e)}function QS(e){return xd(Ii,e)}function ek(e){return _d(Ii,e)}function tk(e){return $d(Ii,e)}function rk(e){return wd(Ii,e)}var Ho=_("ZodBoolean",(e,t)=>{Oo.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>xg(e,r,i,n)});function He(e){return Sd(Ho,e)}var Jo=_("ZodBigInt",(e,t)=>{cs.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(i,n,o)=>_g(e,i,n,o),e.gte=(i,n)=>e.check(rt(i,n)),e.min=(i,n)=>e.check(rt(i,n)),e.gt=(i,n)=>e.check(fr(i,n)),e.gte=(i,n)=>e.check(rt(i,n)),e.min=(i,n)=>e.check(rt(i,n)),e.lt=(i,n)=>e.check(mr(i,n)),e.lte=(i,n)=>e.check(yt(i,n)),e.max=(i,n)=>e.check(yt(i,n)),e.positive=i=>e.check(fr(BigInt(0),i)),e.negative=i=>e.check(mr(BigInt(0),i)),e.nonpositive=i=>e.check(yt(BigInt(0),i)),e.nonnegative=i=>e.check(rt(BigInt(0),i)),e.multipleOf=(i,n)=>e.check(Xr(i,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function nk(e){return zd(Jo,e)}var wp=_("ZodBigIntFormat",(e,t)=>{_u.init(e,t),Jo.init(e,t)});function ik(e){return Pd(wp,e)}function ok(e){return Id(wp,e)}var bv=_("ZodSymbol",(e,t)=>{$u.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>$g(e,r,i,n)});function ak(e){return Ed(bv,e)}var xv=_("ZodUndefined",(e,t)=>{wu.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Sg(e,r,i,n)});function sk(e){return Rd(xv,e)}var _v=_("ZodNull",(e,t)=>{Su.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>wg(e,r,i,n)});function Go(e){return jd(_v,e)}var $v=_("ZodAny",(e,t)=>{ku.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Tg(e,r,i,n)});function ck(){return Od($v)}var wv=_("ZodUnknown",(e,t)=>{zu.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Pg(e,r,i,n)});function Re(){return Ad(wv)}var Sv=_("ZodNever",(e,t)=>{Tu.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>zg(e,r,i,n)});function Sp(e){return Nd(Sv,e)}var kv=_("ZodVoid",(e,t)=>{Pu.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>kg(e,r,i,n)});function lk(e){return Cd(kv,e)}var Fs=_("ZodDate",(e,t)=>{Iu.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(i,n,o)=>Ig(e,i,n,o),e.min=(i,n)=>e.check(rt(i,n)),e.max=(i,n)=>e.check(yt(i,n));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function uk(e){return Dd(Fs,e)}var zv=_("ZodArray",(e,t)=>{Eu.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>qg(e,r,i,n),e.element=t.element,e.min=(r,i)=>e.check(Ir(r,i)),e.nonempty=r=>e.check(Ir(1,r)),e.max=(r,i)=>e.check(jn(r,i)),e.length=(r,i)=>e.check(On(r,i)),e.unwrap=()=>e.element});function pe(e,t){return gg(zv,e,t)}function dk(e){let t=e._zod.def.shape;return it(Object.keys(t))}var Vs=_("ZodObject",(e,t)=>{hg.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Lg(e,r,i,n),j.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>it(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Re()}),e.loose=()=>e.clone({...e._zod.def,catchall:Re()}),e.strict=()=>e.clone({...e._zod.def,catchall:Sp()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>j.extend(e,r),e.safeExtend=r=>j.safeExtend(e,r),e.merge=r=>j.merge(e,r),e.pick=r=>j.pick(e,r),e.omit=r=>j.omit(e,r),e.partial=(...r)=>j.partial(Yo,e,r[0]),e.required=(...r)=>j.required(zp,e,r[0])});function F(e,t){let r={type:"object",shape:e??{},...j.normalizeParams(t)};return new Vs(r)}function pk(e,t){return new Vs({type:"object",shape:e,catchall:Sp(),...j.normalizeParams(t)})}function nt(e,t){return new Vs({type:"object",shape:e,catchall:Re(),...j.normalizeParams(t)})}var Bs=_("ZodUnion",(e,t)=>{Ao.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Jd(e,r,i,n),e.options=t.options});function Pe(e,t){return new Bs({type:"union",options:e,...j.normalizeParams(t)})}var Tv=_("ZodXor",(e,t)=>{Bs.init(e,t),ju.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Jd(e,r,i,n),e.options=t.options});function mk(e,t){return new Tv({type:"union",options:e,inclusive:!1,...j.normalizeParams(t)})}var Pv=_("ZodDiscriminatedUnion",(e,t)=>{Bs.init(e,t),Ou.init(e,t)});function Ws(e,t,r){return new Pv({type:"union",options:t,discriminator:e,...j.normalizeParams(r)})}var Iv=_("ZodIntersection",(e,t)=>{Au.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Fg(e,r,i,n)});function Ko(e,t){return new Iv({type:"intersection",left:e,right:t})}var Ev=_("ZodTuple",(e,t)=>{ls.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Vg(e,r,i,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function Rv(e,t,r){let i=t instanceof ee,n=i?r:t,o=i?t:null;return new Ev({type:"tuple",items:e,rest:o,...j.normalizeParams(n)})}var Hs=_("ZodRecord",(e,t)=>{Nu.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Bg(e,r,i,n),e.keyType=t.keyType,e.valueType=t.valueType});function Ae(e,t,r){return new Hs({type:"record",keyType:e,valueType:t,...j.normalizeParams(r)})}function fk(e,t,r){let i=Ye(e);return i._zod.values=void 0,new Hs({type:"record",keyType:i,valueType:t,...j.normalizeParams(r)})}function hk(e,t,r){return new Hs({type:"record",keyType:e,valueType:t,mode:"loose",...j.normalizeParams(r)})}var jv=_("ZodMap",(e,t)=>{Cu.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Mg(e,r,i,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(hr(...r)),e.nonempty=r=>e.check(hr(1,r)),e.max=(...r)=>e.check(Qr(...r)),e.size=(...r)=>e.check(Rn(...r))});function gk(e,t,r){return new jv({type:"map",keyType:e,valueType:t,...j.normalizeParams(r)})}var Ov=_("ZodSet",(e,t)=>{Du.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Zg(e,r,i,n),e.min=(...r)=>e.check(hr(...r)),e.nonempty=r=>e.check(hr(1,r)),e.max=(...r)=>e.check(Qr(...r)),e.size=(...r)=>e.check(Rn(...r))});function vk(e,t){return new Ov({type:"set",valueType:e,...j.normalizeParams(t)})}var Fo=_("ZodEnum",(e,t)=>{Uu.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(i,n,o)=>Eg(e,i,n,o),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(i,n)=>{let o={};for(let a of i)if(r.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Fo({...t,checks:[],...j.normalizeParams(n),entries:o})},e.exclude=(i,n)=>{let o={...t.entries};for(let a of i)if(r.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new Fo({...t,checks:[],...j.normalizeParams(n),entries:o})}});function it(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Fo({type:"enum",entries:r,...j.normalizeParams(t)})}function yk(e,t){return new Fo({type:"enum",entries:e,...j.normalizeParams(t)})}var Av=_("ZodLiteral",(e,t)=>{Mu.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Rg(e,r,i,n),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function W(e,t){return new Av({type:"literal",values:Array.isArray(e)?e:[e],...j.normalizeParams(t)})}var Nv=_("ZodFile",(e,t)=>{Zu.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ag(e,r,i,n),e.min=(r,i)=>e.check(hr(r,i)),e.max=(r,i)=>e.check(Qr(r,i)),e.mime=(r,i)=>e.check(_i(Array.isArray(r)?r:[r],i))});function bk(e){return Zd(Nv,e)}var Cv=_("ZodTransform",(e,t)=>{qu.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ug(e,r,i,n),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new wn(e.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(j.issue(o,r.value,t));else{let a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(j.issue(a))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(o=>(r.value=o,r)):(r.value=n,r)}});function kp(e){return new Cv({type:"transform",transform:e})}var Yo=_("ZodOptional",(e,t)=>{us.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Gd(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function De(e){return new Yo({type:"optional",innerType:e})}var Dv=_("ZodExactOptional",(e,t)=>{Lu.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Gd(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Uv(e){return new Dv({type:"optional",innerType:e})}var Mv=_("ZodNullable",(e,t)=>{Fu.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Wg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Zs(e){return new Mv({type:"nullable",innerType:e})}function xk(e){return De(Zs(e))}var Zv=_("ZodDefault",(e,t)=>{Vu.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Jg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function qv(e,t){return new Zv({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():j.shallowClone(t)}})}var Lv=_("ZodPrefault",(e,t)=>{Bu.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Gg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Fv(e,t){return new Lv({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():j.shallowClone(t)}})}var zp=_("ZodNonOptional",(e,t)=>{Wu.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Hg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Vv(e,t){return new zp({type:"nonoptional",innerType:e,...j.normalizeParams(t)})}var Bv=_("ZodSuccess",(e,t)=>{Hu.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ng(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function _k(e){return new Bv({type:"success",innerType:e})}var Wv=_("ZodCatch",(e,t)=>{Ju.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Kg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Hv(e,t){return new Wv({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var Jv=_("ZodNaN",(e,t)=>{Gu.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>jg(e,r,i,n)});function $k(e){return Md(Jv,e)}var Tp=_("ZodPipe",(e,t)=>{Ku.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Yg(e,r,i,n),e.in=t.in,e.out=t.out});function qs(e,t){return new Tp({type:"pipe",in:e,out:t})}var Pp=_("ZodCodec",(e,t)=>{Tp.init(e,t),No.init(e,t)});function wk(e,t,r){return new Pp({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}var Gv=_("ZodReadonly",(e,t)=>{Yu.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Xg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Kv(e){return new Gv({type:"readonly",innerType:e})}var Yv=_("ZodTemplateLiteral",(e,t)=>{Xu.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Og(e,r,i,n)});function Sk(e,t){return new Yv({type:"template_literal",parts:e,...j.normalizeParams(t)})}var Xv=_("ZodLazy",(e,t)=>{td.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>ev(e,r,i,n),e.unwrap=()=>e._zod.def.getter()});function Qv(e){return new Xv({type:"lazy",getter:e})}var ey=_("ZodPromise",(e,t)=>{ed.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Qg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function kk(e){return new ey({type:"promise",innerType:e})}var ty=_("ZodFunction",(e,t)=>{Qu.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Dg(e,r,i,n)});function zk(e){return new ty({type:"function",input:Array.isArray(e?.input)?Rv(e?.input):e?.input??pe(Re()),output:e?.output??Re()})}var Js=_("ZodCustom",(e,t)=>{rd.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Cg(e,r,i,n)});function Tk(e){let t=new Ie({check:"custom"});return t._zod.check=e,t}function Ip(e,t){return qd(Js,e??(()=>!0),t)}function ry(e,t={}){return Ld(Js,e,t)}function ny(e){return Fd(e)}var Pk=Vd,Ik=Bd;function Ek(e,t={}){let r=new Js({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...j.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=i=>{i.value instanceof e||i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:r,path:[...r._zod.def.path??[]]})},r}var Rk=(...e)=>Wd({Codec:Pp,Boolean:Ho,String:Vo},...e);function jk(e){let t=Qv(()=>Pe([k(e),ke(),He(),Go(),pe(t),Ae(k(),t)]));return t}function Gs(e,t){return qs(kp(e),t)}var xC={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function _C(e){Fe({customError:e})}function $C(){return Fe().customError}var iy;iy||(iy={});var q={...Us,...ep,iso:Mn},wC=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function SC(e,t){let r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function kC(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;let i=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===i){let n=r[1];if(!n||!t.defs[n])throw new Error(`Reference not found: ${e}`);return t.defs[n]}throw new Error(`Reference not found: ${e}`)}function Ok(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return q.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return q.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let o=kC(n,t),a=pt(o,t);return t.refs.set(n,a),t.processing.delete(n),a}if(e.enum!==void 0){let n=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&n.length===1&&n[0]===null)return q.null();if(n.length===0)return q.never();if(n.length===1)return q.literal(n[0]);if(n.every(a=>typeof a=="string"))return q.enum(n);let o=n.map(a=>q.literal(a));return o.length<2?o[0]:q.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return q.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(o=>{let a={...e,type:o};return Ok(a,t)});return n.length===0?q.never():n.length===1?n[0]:q.union(n)}if(!r)return q.any();let i;switch(r){case"string":{let n=q.string();if(e.format){let o=e.format;o==="email"?n=n.check(q.email()):o==="uri"||o==="uri-reference"?n=n.check(q.url()):o==="uuid"||o==="guid"?n=n.check(q.uuid()):o==="date-time"?n=n.check(q.iso.datetime()):o==="date"?n=n.check(q.iso.date()):o==="time"?n=n.check(q.iso.time()):o==="duration"?n=n.check(q.iso.duration()):o==="ipv4"?n=n.check(q.ipv4()):o==="ipv6"?n=n.check(q.ipv6()):o==="mac"?n=n.check(q.mac()):o==="cidr"?n=n.check(q.cidrv4()):o==="cidr-v6"?n=n.check(q.cidrv6()):o==="base64"?n=n.check(q.base64()):o==="base64url"?n=n.check(q.base64url()):o==="e164"?n=n.check(q.e164()):o==="jwt"?n=n.check(q.jwt()):o==="emoji"?n=n.check(q.emoji()):o==="nanoid"?n=n.check(q.nanoid()):o==="cuid"?n=n.check(q.cuid()):o==="cuid2"?n=n.check(q.cuid2()):o==="ulid"?n=n.check(q.ulid()):o==="xid"?n=n.check(q.xid()):o==="ksuid"&&(n=n.check(q.ksuid()))}typeof e.minLength=="number"&&(n=n.min(e.minLength)),typeof e.maxLength=="number"&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),i=n;break}case"number":case"integer":{let n=r==="integer"?q.number().int():q.number();typeof e.minimum=="number"&&(n=n.min(e.minimum)),typeof e.maximum=="number"&&(n=n.max(e.maximum)),typeof e.exclusiveMinimum=="number"?n=n.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(n=n.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?n=n.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(n=n.lt(e.maximum)),typeof e.multipleOf=="number"&&(n=n.multipleOf(e.multipleOf)),i=n;break}case"boolean":{i=q.boolean();break}case"null":{i=q.null();break}case"object":{let n={},o=e.properties||{},a=new Set(e.required||[]);for(let[l,d]of Object.entries(o)){let p=pt(d,t);n[l]=a.has(l)?p:p.optional()}if(e.propertyNames){let l=pt(e.propertyNames,t),d=e.additionalProperties&&typeof e.additionalProperties=="object"?pt(e.additionalProperties,t):q.any();if(Object.keys(n).length===0){i=q.record(l,d);break}let p=q.object(n).passthrough(),f=q.looseRecord(l,d);i=q.intersection(p,f);break}if(e.patternProperties){let l=e.patternProperties,d=Object.keys(l),p=[];for(let g of d){let y=pt(l[g],t),v=q.string().regex(new RegExp(g));p.push(q.looseRecord(v,y))}let f=[];if(Object.keys(n).length>0&&f.push(q.object(n).passthrough()),f.push(...p),f.length===0)i=q.object({}).passthrough();else if(f.length===1)i=f[0];else{let g=q.intersection(f[0],f[1]);for(let y=2;y<f.length;y++)g=q.intersection(g,f[y]);i=g}break}let s=q.object(n);e.additionalProperties===!1?i=s.strict():typeof e.additionalProperties=="object"?i=s.catchall(pt(e.additionalProperties,t)):i=s.passthrough();break}case"array":{let n=e.prefixItems,o=e.items;if(n&&Array.isArray(n)){let a=n.map(l=>pt(l,t)),s=o&&typeof o=="object"&&!Array.isArray(o)?pt(o,t):void 0;s?i=q.tuple(a).rest(s):i=q.tuple(a),typeof e.minItems=="number"&&(i=i.check(q.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(q.maxLength(e.maxItems)))}else if(Array.isArray(o)){let a=o.map(l=>pt(l,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?pt(e.additionalItems,t):void 0;s?i=q.tuple(a).rest(s):i=q.tuple(a),typeof e.minItems=="number"&&(i=i.check(q.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(q.maxLength(e.maxItems)))}else if(o!==void 0){let a=pt(o,t),s=q.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),i=s}else i=q.array(q.any());break}default:throw new Error(`Unsupported type: ${r}`)}return e.description&&(i=i.describe(e.description)),e.default!==void 0&&(i=i.default(e.default)),i}function pt(e,t){if(typeof e=="boolean")return e?q.any():q.never();let r=Ok(e,t),i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(d=>pt(d,t)),l=q.union(s);r=i?q.intersection(r,l):l}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(d=>pt(d,t)),l=q.xor(s);r=i?q.intersection(r,l):l}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=i?r:q.any();else{let s=i?r:pt(e.allOf[0],t),l=i?0:1;for(let d=l;d<e.allOf.length;d++)s=q.intersection(s,pt(e.allOf[d],t));r=s}e.nullable===!0&&t.version==="openapi-3.0"&&(r=q.nullable(r)),e.readOnly===!0&&(r=q.readonly(r));let n={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of o)s in e&&(n[s]=e[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in e&&(n[s]=e[s]);for(let s of Object.keys(e))wC.has(s)||(n[s]=e[s]);return Object.keys(n).length>0&&t.registry.add(r,n),r}function Ak(e,t){if(typeof e=="boolean")return e?q.any():q.never();let r=SC(e,t?.defaultTarget),i=e.$defs||e.definitions||{},n={version:r,defs:i,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??Xe};return pt(e,n)}var oy={};Tr(oy,{bigint:()=>IC,boolean:()=>PC,date:()=>EC,number:()=>TC,string:()=>zC});function zC(e){return ud(Vo,e)}function TC(e){return yd(Wo,e)}function PC(e){return kd(Ho,e)}function IC(e){return Td(Jo,e)}function EC(e){return Ud(Fs,e)}Fe(nd());var sy="2025-11-25";var Nk=[sy,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],Zn="io.modelcontextprotocol/related-task",Rp="2.0",ot=Ip(e=>e!==null&&(typeof e=="object"||typeof e=="function")),Ck=Pe([k(),ke().int()]),Dk=k(),o3=nt({ttl:Pe([ke(),Go()]).optional(),pollInterval:ke().optional()}),jC=F({ttl:ke().optional()}),OC=F({taskId:k()}),cy=nt({progressToken:Ck.optional(),[Zn]:OC.optional()}),qt=F({_meta:cy.optional()}),Ks=qt.extend({task:jC.optional()}),Uk=e=>Ks.safeParse(e).success,at=F({method:k(),params:qt.loose().optional()}),Qt=F({_meta:cy.optional()}),er=F({method:k(),params:Qt.loose().optional()}),st=nt({_meta:cy.optional()}),jp=Pe([k(),ke().int()]),Mk=F({jsonrpc:W(Rp),id:jp,...at.shape}).strict(),ly=e=>Mk.safeParse(e).success,Zk=F({jsonrpc:W(Rp),...er.shape}).strict(),qk=e=>Zk.safeParse(e).success,uy=F({jsonrpc:W(Rp),id:jp,result:st}).strict(),Ys=e=>uy.safeParse(e).success;var K;(function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(K||(K={}));var dy=F({jsonrpc:W(Rp),id:jp.optional(),error:F({code:ke().int(),message:k(),data:Re().optional()})}).strict();var Lk=e=>dy.safeParse(e).success;var Fk=Pe([Mk,Zk,uy,dy]),a3=Pe([uy,dy]),Op=st.strict(),AC=Qt.extend({requestId:jp.optional(),reason:k().optional()}),Ap=er.extend({method:W("notifications/cancelled"),params:AC}),NC=F({src:k(),mimeType:k().optional(),sizes:pe(k()).optional(),theme:it(["light","dark"]).optional()}),Xs=F({icons:pe(NC).optional()}),Xo=F({name:k(),title:k().optional()}),Vk=Xo.extend({...Xo.shape,...Xs.shape,version:k(),websiteUrl:k().optional(),description:k().optional()}),CC=Ko(F({applyDefaults:He().optional()}),Ae(k(),Re())),DC=Gs(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,Ko(F({form:CC.optional(),url:ot.optional()}),Ae(k(),Re()).optional())),UC=nt({list:ot.optional(),cancel:ot.optional(),requests:nt({sampling:nt({createMessage:ot.optional()}).optional(),elicitation:nt({create:ot.optional()}).optional()}).optional()}),MC=nt({list:ot.optional(),cancel:ot.optional(),requests:nt({tools:nt({call:ot.optional()}).optional()}).optional()}),ZC=F({experimental:Ae(k(),ot).optional(),sampling:F({context:ot.optional(),tools:ot.optional()}).optional(),elicitation:DC.optional(),roots:F({listChanged:He().optional()}).optional(),tasks:UC.optional()}),qC=qt.extend({protocolVersion:k(),capabilities:ZC,clientInfo:Vk}),py=at.extend({method:W("initialize"),params:qC});var LC=F({experimental:Ae(k(),ot).optional(),logging:ot.optional(),completions:ot.optional(),prompts:F({listChanged:He().optional()}).optional(),resources:F({subscribe:He().optional(),listChanged:He().optional()}).optional(),tools:F({listChanged:He().optional()}).optional(),tasks:MC.optional()}),FC=st.extend({protocolVersion:k(),capabilities:LC,serverInfo:Vk,instructions:k().optional()}),my=er.extend({method:W("notifications/initialized"),params:Qt.optional()});var Np=at.extend({method:W("ping"),params:qt.optional()}),VC=F({progress:ke(),total:De(ke()),message:De(k())}),BC=F({...Qt.shape,...VC.shape,progressToken:Ck}),Cp=er.extend({method:W("notifications/progress"),params:BC}),WC=qt.extend({cursor:Dk.optional()}),Qs=at.extend({params:WC.optional()}),ec=st.extend({nextCursor:Dk.optional()}),HC=it(["working","input_required","completed","failed","cancelled"]),tc=F({taskId:k(),status:HC,ttl:Pe([ke(),Go()]),createdAt:k(),lastUpdatedAt:k(),pollInterval:De(ke()),statusMessage:De(k())}),Qo=st.extend({task:tc}),JC=Qt.merge(tc),rc=er.extend({method:W("notifications/tasks/status"),params:JC}),Dp=at.extend({method:W("tasks/get"),params:qt.extend({taskId:k()})}),Up=st.merge(tc),Mp=at.extend({method:W("tasks/result"),params:qt.extend({taskId:k()})}),s3=st.loose(),Zp=Qs.extend({method:W("tasks/list")}),qp=ec.extend({tasks:pe(tc)}),Lp=at.extend({method:W("tasks/cancel"),params:qt.extend({taskId:k()})}),Bk=st.merge(tc),Wk=F({uri:k(),mimeType:De(k()),_meta:Ae(k(),Re()).optional()}),Hk=Wk.extend({text:k()}),fy=k().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),Jk=Wk.extend({blob:fy}),nc=it(["user","assistant"]),ea=F({audience:pe(nc).optional(),priority:ke().min(0).max(1).optional(),lastModified:Mn.datetime({offset:!0}).optional()}),Gk=F({...Xo.shape,...Xs.shape,uri:k(),description:De(k()),mimeType:De(k()),annotations:ea.optional(),_meta:De(nt({}))}),GC=F({...Xo.shape,...Xs.shape,uriTemplate:k(),description:De(k()),mimeType:De(k()),annotations:ea.optional(),_meta:De(nt({}))}),Fp=Qs.extend({method:W("resources/list")}),KC=ec.extend({resources:pe(Gk)}),Vp=Qs.extend({method:W("resources/templates/list")}),YC=ec.extend({resourceTemplates:pe(GC)}),hy=qt.extend({uri:k()}),XC=hy,Bp=at.extend({method:W("resources/read"),params:XC}),QC=st.extend({contents:pe(Pe([Hk,Jk]))}),eD=er.extend({method:W("notifications/resources/list_changed"),params:Qt.optional()}),tD=hy,rD=at.extend({method:W("resources/subscribe"),params:tD}),nD=hy,iD=at.extend({method:W("resources/unsubscribe"),params:nD}),oD=Qt.extend({uri:k()}),aD=er.extend({method:W("notifications/resources/updated"),params:oD}),sD=F({name:k(),description:De(k()),required:De(He())}),cD=F({...Xo.shape,...Xs.shape,description:De(k()),arguments:De(pe(sD)),_meta:De(nt({}))}),Wp=Qs.extend({method:W("prompts/list")}),lD=ec.extend({prompts:pe(cD)}),uD=qt.extend({name:k(),arguments:Ae(k(),k()).optional()}),Hp=at.extend({method:W("prompts/get"),params:uD}),gy=F({type:W("text"),text:k(),annotations:ea.optional(),_meta:Ae(k(),Re()).optional()}),vy=F({type:W("image"),data:fy,mimeType:k(),annotations:ea.optional(),_meta:Ae(k(),Re()).optional()}),yy=F({type:W("audio"),data:fy,mimeType:k(),annotations:ea.optional(),_meta:Ae(k(),Re()).optional()}),dD=F({type:W("tool_use"),name:k(),id:k(),input:Ae(k(),Re()),_meta:Ae(k(),Re()).optional()}),pD=F({type:W("resource"),resource:Pe([Hk,Jk]),annotations:ea.optional(),_meta:Ae(k(),Re()).optional()}),mD=Gk.extend({type:W("resource_link")}),by=Pe([gy,vy,yy,mD,pD]),fD=F({role:nc,content:by}),hD=st.extend({description:k().optional(),messages:pe(fD)}),gD=er.extend({method:W("notifications/prompts/list_changed"),params:Qt.optional()}),vD=F({title:k().optional(),readOnlyHint:He().optional(),destructiveHint:He().optional(),idempotentHint:He().optional(),openWorldHint:He().optional()}),yD=F({taskSupport:it(["required","optional","forbidden"]).optional()}),Kk=F({...Xo.shape,...Xs.shape,description:k().optional(),inputSchema:F({type:W("object"),properties:Ae(k(),ot).optional(),required:pe(k()).optional()}).catchall(Re()),outputSchema:F({type:W("object"),properties:Ae(k(),ot).optional(),required:pe(k()).optional()}).catchall(Re()).optional(),annotations:vD.optional(),execution:yD.optional(),_meta:Ae(k(),Re()).optional()}),Jp=Qs.extend({method:W("tools/list")}),bD=ec.extend({tools:pe(Kk)}),Gp=st.extend({content:pe(by).default([]),structuredContent:Ae(k(),Re()).optional(),isError:He().optional()}),c3=Gp.or(st.extend({toolResult:Re()})),xD=Ks.extend({name:k(),arguments:Ae(k(),Re()).optional()}),ta=at.extend({method:W("tools/call"),params:xD}),_D=er.extend({method:W("notifications/tools/list_changed"),params:Qt.optional()}),l3=F({autoRefresh:He().default(!0),debounceMs:ke().int().nonnegative().default(300)}),ic=it(["debug","info","notice","warning","error","critical","alert","emergency"]),$D=qt.extend({level:ic}),xy=at.extend({method:W("logging/setLevel"),params:$D}),wD=Qt.extend({level:ic,logger:k().optional(),data:Re()}),SD=er.extend({method:W("notifications/message"),params:wD}),kD=F({name:k().optional()}),zD=F({hints:pe(kD).optional(),costPriority:ke().min(0).max(1).optional(),speedPriority:ke().min(0).max(1).optional(),intelligencePriority:ke().min(0).max(1).optional()}),TD=F({mode:it(["auto","required","none"]).optional()}),PD=F({type:W("tool_result"),toolUseId:k().describe("The unique identifier for the corresponding tool call."),content:pe(by).default([]),structuredContent:F({}).loose().optional(),isError:He().optional(),_meta:Ae(k(),Re()).optional()}),ID=Ws("type",[gy,vy,yy]),Ep=Ws("type",[gy,vy,yy,dD,PD]),ED=F({role:nc,content:Pe([Ep,pe(Ep)]),_meta:Ae(k(),Re()).optional()}),RD=Ks.extend({messages:pe(ED),modelPreferences:zD.optional(),systemPrompt:k().optional(),includeContext:it(["none","thisServer","allServers"]).optional(),temperature:ke().optional(),maxTokens:ke().int(),stopSequences:pe(k()).optional(),metadata:ot.optional(),tools:pe(Kk).optional(),toolChoice:TD.optional()}),jD=at.extend({method:W("sampling/createMessage"),params:RD}),_y=st.extend({model:k(),stopReason:De(it(["endTurn","stopSequence","maxTokens"]).or(k())),role:nc,content:ID}),$y=st.extend({model:k(),stopReason:De(it(["endTurn","stopSequence","maxTokens","toolUse"]).or(k())),role:nc,content:Pe([Ep,pe(Ep)])}),OD=F({type:W("boolean"),title:k().optional(),description:k().optional(),default:He().optional()}),AD=F({type:W("string"),title:k().optional(),description:k().optional(),minLength:ke().optional(),maxLength:ke().optional(),format:it(["email","uri","date","date-time"]).optional(),default:k().optional()}),ND=F({type:it(["number","integer"]),title:k().optional(),description:k().optional(),minimum:ke().optional(),maximum:ke().optional(),default:ke().optional()}),CD=F({type:W("string"),title:k().optional(),description:k().optional(),enum:pe(k()),default:k().optional()}),DD=F({type:W("string"),title:k().optional(),description:k().optional(),oneOf:pe(F({const:k(),title:k()})),default:k().optional()}),UD=F({type:W("string"),title:k().optional(),description:k().optional(),enum:pe(k()),enumNames:pe(k()).optional(),default:k().optional()}),MD=Pe([CD,DD]),ZD=F({type:W("array"),title:k().optional(),description:k().optional(),minItems:ke().optional(),maxItems:ke().optional(),items:F({type:W("string"),enum:pe(k())}),default:pe(k()).optional()}),qD=F({type:W("array"),title:k().optional(),description:k().optional(),minItems:ke().optional(),maxItems:ke().optional(),items:F({anyOf:pe(F({const:k(),title:k()}))}),default:pe(k()).optional()}),LD=Pe([ZD,qD]),FD=Pe([UD,MD,LD]),VD=Pe([FD,OD,AD,ND]),BD=Ks.extend({mode:W("form").optional(),message:k(),requestedSchema:F({type:W("object"),properties:Ae(k(),VD),required:pe(k()).optional()})}),WD=Ks.extend({mode:W("url"),message:k(),elicitationId:k(),url:k().url()}),HD=Pe([BD,WD]),JD=at.extend({method:W("elicitation/create"),params:HD}),GD=Qt.extend({elicitationId:k()}),KD=er.extend({method:W("notifications/elicitation/complete"),params:GD}),Kp=st.extend({action:it(["accept","decline","cancel"]),content:Gs(e=>e===null?void 0:e,Ae(k(),Pe([k(),ke(),He(),pe(k())])).optional())}),YD=F({type:W("ref/resource"),uri:k()});var XD=F({type:W("ref/prompt"),name:k()}),QD=qt.extend({ref:Pe([XD,YD]),argument:F({name:k(),value:k()}),context:F({arguments:Ae(k(),k()).optional()}).optional()}),Yp=at.extend({method:W("completion/complete"),params:QD});function Yk(e){if(e.params.ref.type!=="ref/prompt")throw new TypeError(`Expected CompleteRequestPrompt, but got ${e.params.ref.type}`)}function Xk(e){if(e.params.ref.type!=="ref/resource")throw new TypeError(`Expected CompleteRequestResourceTemplate, but got ${e.params.ref.type}`)}var e1=st.extend({completion:nt({values:pe(k()).max(100),total:De(ke().int()),hasMore:De(He())})}),t1=F({uri:k().startsWith("file://"),name:k().optional(),_meta:Ae(k(),Re()).optional()}),r1=at.extend({method:W("roots/list"),params:qt.optional()}),wy=st.extend({roots:pe(t1)}),n1=er.extend({method:W("notifications/roots/list_changed"),params:Qt.optional()}),u3=Pe([Np,py,Yp,xy,Hp,Wp,Fp,Vp,Bp,rD,iD,ta,Jp,Dp,Mp,Zp,Lp]),d3=Pe([Ap,Cp,my,n1,rc]),p3=Pe([Op,_y,$y,Kp,wy,Up,qp,Qo]),m3=Pe([Np,jD,JD,r1,Dp,Mp,Zp,Lp]),f3=Pe([Ap,Cp,SD,aD,eD,_D,gD,rc,KD]),h3=Pe([Op,FC,e1,hD,lD,KC,YC,QC,Gp,bD,Up,qp,Qo]),H=class e extends Error{constructor(t,r,i){super(`MCP error ${t}: ${r}`),this.code=t,this.data=i,this.name="McpError"}static fromError(t,r,i){if(t===K.UrlElicitationRequired&&i){let n=i;if(n.elicitations)return new ay(n.elicitations,r)}return new e(t,r,i)}},ay=class extends H{constructor(t,r=`URL elicitation${t.length>1?"s":""} required`){super(K.UrlElicitationRequired,r,{elicitations:t})}get elicitations(){return this.data?.elicitations??[]}};function qn(e){return e==="completed"||e==="failed"||e==="cancelled"}var e0=Symbol("Let zodToJsonSchema decide on which parser to use");var Qk={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref",openAiAnyTypeName:"OpenAiAnyType"},t0=e=>typeof e=="string"?{...Qk,name:e}:{...Qk,...e};var r0=e=>{let t=t0(e),r=t.name!==void 0?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,flags:{hasReferencedOpenAiAnyType:!1},currentPath:r,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([i,n])=>[n._def,{def:n._def,path:[...t.basePath,t.definitionPath,i],jsonSchema:void 0}]))}};function Sy(e,t,r,i){i?.errorMessages&&r&&(e.errorMessage={...e.errorMessage,[t]:r})}function be(e,t,r,i,n){e[t]=r,Sy(e,t,i,n)}var Xp=(e,t)=>{let r=0;for(;r<e.length&&r<t.length&&e[r]===t[r];r++);return[(e.length-r).toString(),...t.slice(r)].join("/")};function qe(e){if(e.target!=="openAi")return{};let t=[...e.basePath,e.definitionPath,e.openAiAnyTypeName];return e.flags.hasReferencedOpenAiAnyType=!0,{$ref:e.$refStrategy==="relative"?Xp(t,e.currentPath):t.join("/")}}function n0(e,t){let r={type:"array"};return e.type?._def&&e.type?._def?.typeName!==A.ZodAny&&(r.items=Q(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&be(r,"minItems",e.minLength.value,e.minLength.message,t),e.maxLength&&be(r,"maxItems",e.maxLength.value,e.maxLength.message,t),e.exactLength&&(be(r,"minItems",e.exactLength.value,e.exactLength.message,t),be(r,"maxItems",e.exactLength.value,e.exactLength.message,t)),r}function i0(e,t){let r={type:"integer",format:"int64"};if(!e.checks)return r;for(let i of e.checks)switch(i.kind){case"min":t.target==="jsonSchema7"?i.inclusive?be(r,"minimum",i.value,i.message,t):be(r,"exclusiveMinimum",i.value,i.message,t):(i.inclusive||(r.exclusiveMinimum=!0),be(r,"minimum",i.value,i.message,t));break;case"max":t.target==="jsonSchema7"?i.inclusive?be(r,"maximum",i.value,i.message,t):be(r,"exclusiveMaximum",i.value,i.message,t):(i.inclusive||(r.exclusiveMaximum=!0),be(r,"maximum",i.value,i.message,t));break;case"multipleOf":be(r,"multipleOf",i.value,i.message,t);break}return r}function o0(){return{type:"boolean"}}function Qp(e,t){return Q(e.type._def,t)}var a0=(e,t)=>Q(e.innerType._def,t);function ky(e,t,r){let i=r??t.dateStrategy;if(Array.isArray(i))return{anyOf:i.map((n,o)=>ky(e,t,n))};switch(i){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return i1(e,t)}}var i1=(e,t)=>{let r={type:"integer",format:"unix-time"};if(t.target==="openApi3")return r;for(let i of e.checks)switch(i.kind){case"min":be(r,"minimum",i.value,i.message,t);break;case"max":be(r,"maximum",i.value,i.message,t);break}return r};function s0(e,t){return{...Q(e.innerType._def,t),default:e.defaultValue()}}function c0(e,t){return t.effectStrategy==="input"?Q(e.schema._def,t):qe(t)}function l0(e){return{type:"string",enum:Array.from(e.values)}}var o1=e=>"type"in e&&e.type==="string"?!1:"allOf"in e;function u0(e,t){let r=[Q(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),Q(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(o=>!!o),i=t.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0,n=[];return r.forEach(o=>{if(o1(o))n.push(...o.allOf),o.unevaluatedProperties===void 0&&(i=void 0);else{let a=o;if("additionalProperties"in o&&o.additionalProperties===!1){let{additionalProperties:s,...l}=o;a=l}else i=void 0;n.push(a)}}),n.length?{allOf:n,...i}:void 0}function d0(e,t){let r=typeof e.value;return r!=="bigint"&&r!=="number"&&r!=="boolean"&&r!=="string"?{type:Array.isArray(e.value)?"array":"object"}:t.target==="openApi3"?{type:r==="bigint"?"integer":r,enum:[e.value]}:{type:r==="bigint"?"integer":r,const:e.value}}var zy,gr={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(zy===void 0&&(zy=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),zy),uuid:/^[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}$/,ipv4:/^(?:(?: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])$/,ipv4Cidr:/^(?:(?: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])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([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])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function em(e,t){let r={type:"string"};if(e.checks)for(let i of e.checks)switch(i.kind){case"min":be(r,"minLength",typeof r.minLength=="number"?Math.max(r.minLength,i.value):i.value,i.message,t);break;case"max":be(r,"maxLength",typeof r.maxLength=="number"?Math.min(r.maxLength,i.value):i.value,i.message,t);break;case"email":switch(t.emailStrategy){case"format:email":vr(r,"email",i.message,t);break;case"format:idn-email":vr(r,"idn-email",i.message,t);break;case"pattern:zod":xt(r,gr.email,i.message,t);break}break;case"url":vr(r,"uri",i.message,t);break;case"uuid":vr(r,"uuid",i.message,t);break;case"regex":xt(r,i.regex,i.message,t);break;case"cuid":xt(r,gr.cuid,i.message,t);break;case"cuid2":xt(r,gr.cuid2,i.message,t);break;case"startsWith":xt(r,RegExp(`^${Ty(i.value,t)}`),i.message,t);break;case"endsWith":xt(r,RegExp(`${Ty(i.value,t)}$`),i.message,t);break;case"datetime":vr(r,"date-time",i.message,t);break;case"date":vr(r,"date",i.message,t);break;case"time":vr(r,"time",i.message,t);break;case"duration":vr(r,"duration",i.message,t);break;case"length":be(r,"minLength",typeof r.minLength=="number"?Math.max(r.minLength,i.value):i.value,i.message,t),be(r,"maxLength",typeof r.maxLength=="number"?Math.min(r.maxLength,i.value):i.value,i.message,t);break;case"includes":{xt(r,RegExp(Ty(i.value,t)),i.message,t);break}case"ip":{i.version!=="v6"&&vr(r,"ipv4",i.message,t),i.version!=="v4"&&vr(r,"ipv6",i.message,t);break}case"base64url":xt(r,gr.base64url,i.message,t);break;case"jwt":xt(r,gr.jwt,i.message,t);break;case"cidr":{i.version!=="v6"&&xt(r,gr.ipv4Cidr,i.message,t),i.version!=="v4"&&xt(r,gr.ipv6Cidr,i.message,t);break}case"emoji":xt(r,gr.emoji(),i.message,t);break;case"ulid":{xt(r,gr.ulid,i.message,t);break}case"base64":{switch(t.base64Strategy){case"format:binary":{vr(r,"binary",i.message,t);break}case"contentEncoding:base64":{be(r,"contentEncoding","base64",i.message,t);break}case"pattern:zod":{xt(r,gr.base64,i.message,t);break}}break}case"nanoid":xt(r,gr.nanoid,i.message,t);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return r}function Ty(e,t){return t.patternStrategy==="escape"?s1(e):e}var a1=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function s1(e){let t="";for(let r=0;r<e.length;r++)a1.has(e[r])||(t+="\\"),t+=e[r];return t}function vr(e,t,r,i){e.format||e.anyOf?.some(n=>n.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format,...e.errorMessage&&i.errorMessages&&{errorMessage:{format:e.errorMessage.format}}}),delete e.format,e.errorMessage&&(delete e.errorMessage.format,Object.keys(e.errorMessage).length===0&&delete e.errorMessage)),e.anyOf.push({format:t,...r&&i.errorMessages&&{errorMessage:{format:r}}})):be(e,"format",t,r,i)}function xt(e,t,r,i){e.pattern||e.allOf?.some(n=>n.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern,...e.errorMessage&&i.errorMessages&&{errorMessage:{pattern:e.errorMessage.pattern}}}),delete e.pattern,e.errorMessage&&(delete e.errorMessage.pattern,Object.keys(e.errorMessage).length===0&&delete e.errorMessage)),e.allOf.push({pattern:p0(t,i),...r&&i.errorMessages&&{errorMessage:{pattern:r}}})):be(e,"pattern",p0(t,i),r,i)}function p0(e,t){if(!t.applyRegexFlags||!e.flags)return e.source;let r={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},i=r.i?e.source.toLowerCase():e.source,n="",o=!1,a=!1,s=!1;for(let l=0;l<i.length;l++){if(o){n+=i[l],o=!1;continue}if(r.i){if(a){if(i[l].match(/[a-z]/)){s?(n+=i[l],n+=`${i[l-2]}-${i[l]}`.toUpperCase(),s=!1):i[l+1]==="-"&&i[l+2]?.match(/[a-z]/)?(n+=i[l],s=!0):n+=`${i[l]}${i[l].toUpperCase()}`;continue}}else if(i[l].match(/[a-z]/)){n+=`[${i[l]}${i[l].toUpperCase()}]`;continue}}if(r.m){if(i[l]==="^"){n+=`(^|(?<=[\r
|
|
61
|
+
]))`;continue}else if(i[l]==="$"){n+=`($|(?=[\r
|
|
62
|
+
]))`;continue}}if(r.s&&i[l]==="."){n+=a?`${i[l]}\r
|
|
63
|
+
`:`[${i[l]}\r
|
|
64
|
+
]`;continue}n+=i[l],i[l]==="\\"?o=!0:a&&i[l]==="]"?a=!1:!a&&i[l]==="["&&(a=!0)}try{new RegExp(n)}catch{return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return n}function tm(e,t){if(t.target==="openAi"&&console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead."),t.target==="openApi3"&&e.keyType?._def.typeName===A.ZodEnum)return{type:"object",required:e.keyType._def.values,properties:e.keyType._def.values.reduce((i,n)=>({...i,[n]:Q(e.valueType._def,{...t,currentPath:[...t.currentPath,"properties",n]})??qe(t)}),{}),additionalProperties:t.rejectedAdditionalProperties};let r={type:"object",additionalProperties:Q(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]})??t.allowedAdditionalProperties};if(t.target==="openApi3")return r;if(e.keyType?._def.typeName===A.ZodString&&e.keyType._def.checks?.length){let{type:i,...n}=em(e.keyType._def,t);return{...r,propertyNames:n}}else{if(e.keyType?._def.typeName===A.ZodEnum)return{...r,propertyNames:{enum:e.keyType._def.values}};if(e.keyType?._def.typeName===A.ZodBranded&&e.keyType._def.type._def.typeName===A.ZodString&&e.keyType._def.type._def.checks?.length){let{type:i,...n}=Qp(e.keyType._def,t);return{...r,propertyNames:n}}}return r}function m0(e,t){if(t.mapStrategy==="record")return tm(e,t);let r=Q(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||qe(t),i=Q(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||qe(t);return{type:"array",maxItems:125,items:{type:"array",items:[r,i],minItems:2,maxItems:2}}}function f0(e){let t=e.values,i=Object.keys(e.values).filter(o=>typeof t[t[o]]!="number").map(o=>t[o]),n=Array.from(new Set(i.map(o=>typeof o)));return{type:n.length===1?n[0]==="string"?"string":"number":["string","number"],enum:i}}function h0(e){return e.target==="openAi"?void 0:{not:qe({...e,currentPath:[...e.currentPath,"not"]})}}function g0(e){return e.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}var oc={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function y0(e,t){if(t.target==="openApi3")return v0(e,t);let r=e.options instanceof Map?Array.from(e.options.values()):e.options;if(r.every(i=>i._def.typeName in oc&&(!i._def.checks||!i._def.checks.length))){let i=r.reduce((n,o)=>{let a=oc[o._def.typeName];return a&&!n.includes(a)?[...n,a]:n},[]);return{type:i.length>1?i:i[0]}}else if(r.every(i=>i._def.typeName==="ZodLiteral"&&!i.description)){let i=r.reduce((n,o)=>{let a=typeof o._def.value;switch(a){case"string":case"number":case"boolean":return[...n,a];case"bigint":return[...n,"integer"];case"object":if(o._def.value===null)return[...n,"null"];default:return n}},[]);if(i.length===r.length){let n=i.filter((o,a,s)=>s.indexOf(o)===a);return{type:n.length>1?n:n[0],enum:r.reduce((o,a)=>o.includes(a._def.value)?o:[...o,a._def.value],[])}}}else if(r.every(i=>i._def.typeName==="ZodEnum"))return{type:"string",enum:r.reduce((i,n)=>[...i,...n._def.values.filter(o=>!i.includes(o))],[])};return v0(e,t)}var v0=(e,t)=>{let r=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((i,n)=>Q(i._def,{...t,currentPath:[...t.currentPath,"anyOf",`${n}`]})).filter(i=>!!i&&(!t.strictUnions||typeof i=="object"&&Object.keys(i).length>0));return r.length?{anyOf:r}:void 0};function b0(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return t.target==="openApi3"?{type:oc[e.innerType._def.typeName],nullable:!0}:{type:[oc[e.innerType._def.typeName],"null"]};if(t.target==="openApi3"){let i=Q(e.innerType._def,{...t,currentPath:[...t.currentPath]});return i&&"$ref"in i?{allOf:[i],nullable:!0}:i&&{...i,nullable:!0}}let r=Q(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return r&&{anyOf:[r,{type:"null"}]}}function x0(e,t){let r={type:"number"};if(!e.checks)return r;for(let i of e.checks)switch(i.kind){case"int":r.type="integer",Sy(r,"type",i.message,t);break;case"min":t.target==="jsonSchema7"?i.inclusive?be(r,"minimum",i.value,i.message,t):be(r,"exclusiveMinimum",i.value,i.message,t):(i.inclusive||(r.exclusiveMinimum=!0),be(r,"minimum",i.value,i.message,t));break;case"max":t.target==="jsonSchema7"?i.inclusive?be(r,"maximum",i.value,i.message,t):be(r,"exclusiveMaximum",i.value,i.message,t):(i.inclusive||(r.exclusiveMaximum=!0),be(r,"maximum",i.value,i.message,t));break;case"multipleOf":be(r,"multipleOf",i.value,i.message,t);break}return r}function _0(e,t){let r=t.target==="openAi",i={type:"object",properties:{}},n=[],o=e.shape();for(let s in o){let l=o[s];if(l===void 0||l._def===void 0)continue;let d=l1(l);d&&r&&(l._def.typeName==="ZodOptional"&&(l=l._def.innerType),l.isNullable()||(l=l.nullable()),d=!1);let p=Q(l._def,{...t,currentPath:[...t.currentPath,"properties",s],propertyPath:[...t.currentPath,"properties",s]});p!==void 0&&(i.properties[s]=p,d||n.push(s))}n.length&&(i.required=n);let a=c1(e,t);return a!==void 0&&(i.additionalProperties=a),i}function c1(e,t){if(e.catchall._def.typeName!=="ZodNever")return Q(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return t.removeAdditionalStrategy==="strict"?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}function l1(e){try{return e.isOptional()}catch{return!0}}var $0=(e,t)=>{if(t.currentPath.toString()===t.propertyPath?.toString())return Q(e.innerType._def,t);let r=Q(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return r?{anyOf:[{not:qe(t)},r]}:qe(t)};var w0=(e,t)=>{if(t.pipeStrategy==="input")return Q(e.in._def,t);if(t.pipeStrategy==="output")return Q(e.out._def,t);let r=Q(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),i=Q(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",r?"1":"0"]});return{allOf:[r,i].filter(n=>n!==void 0)}};function S0(e,t){return Q(e.type._def,t)}function k0(e,t){let i={type:"array",uniqueItems:!0,items:Q(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&be(i,"minItems",e.minSize.value,e.minSize.message,t),e.maxSize&&be(i,"maxItems",e.maxSize.value,e.maxSize.message,t),i}function z0(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((r,i)=>Q(r._def,{...t,currentPath:[...t.currentPath,"items",`${i}`]})).reduce((r,i)=>i===void 0?r:[...r,i],[]),additionalItems:Q(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((r,i)=>Q(r._def,{...t,currentPath:[...t.currentPath,"items",`${i}`]})).reduce((r,i)=>i===void 0?r:[...r,i],[])}}function T0(e){return{not:qe(e)}}function P0(e){return qe(e)}var I0=(e,t)=>Q(e.innerType._def,t);var E0=(e,t,r)=>{switch(t){case A.ZodString:return em(e,r);case A.ZodNumber:return x0(e,r);case A.ZodObject:return _0(e,r);case A.ZodBigInt:return i0(e,r);case A.ZodBoolean:return o0();case A.ZodDate:return ky(e,r);case A.ZodUndefined:return T0(r);case A.ZodNull:return g0(r);case A.ZodArray:return n0(e,r);case A.ZodUnion:case A.ZodDiscriminatedUnion:return y0(e,r);case A.ZodIntersection:return u0(e,r);case A.ZodTuple:return z0(e,r);case A.ZodRecord:return tm(e,r);case A.ZodLiteral:return d0(e,r);case A.ZodEnum:return l0(e);case A.ZodNativeEnum:return f0(e);case A.ZodNullable:return b0(e,r);case A.ZodOptional:return $0(e,r);case A.ZodMap:return m0(e,r);case A.ZodSet:return k0(e,r);case A.ZodLazy:return()=>e.getter()._def;case A.ZodPromise:return S0(e,r);case A.ZodNaN:case A.ZodNever:return h0(r);case A.ZodEffects:return c0(e,r);case A.ZodAny:return qe(r);case A.ZodUnknown:return P0(r);case A.ZodDefault:return s0(e,r);case A.ZodBranded:return Qp(e,r);case A.ZodReadonly:return I0(e,r);case A.ZodCatch:return a0(e,r);case A.ZodPipeline:return w0(e,r);case A.ZodFunction:case A.ZodVoid:case A.ZodSymbol:return;default:return(i=>{})(t)}};function Q(e,t,r=!1){let i=t.seen.get(e);if(t.override){let s=t.override?.(e,t,i,r);if(s!==e0)return s}if(i&&!r){let s=u1(i,t);if(s!==void 0)return s}let n={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,n);let o=E0(e,e.typeName,t),a=typeof o=="function"?Q(o(),t):o;if(a&&d1(e,t,a),t.postProcess){let s=t.postProcess(a,e,t);return n.jsonSchema=a,s}return n.jsonSchema=a,a}var u1=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:Xp(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every((r,i)=>t.currentPath[i]===r)?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),qe(t)):t.$refStrategy==="seen"?qe(t):void 0}},d1=(e,t,r)=>(e.description&&(r.description=e.description,t.markdownDescription&&(r.markdownDescription=e.description)),r);var Py=(e,t)=>{let r=r0(t),i=typeof t=="object"&&t.definitions?Object.entries(t.definitions).reduce((l,[d,p])=>({...l,[d]:Q(p._def,{...r,currentPath:[...r.basePath,r.definitionPath,d]},!0)??qe(r)}),{}):void 0,n=typeof t=="string"?t:t?.nameStrategy==="title"?void 0:t?.name,o=Q(e._def,n===void 0?r:{...r,currentPath:[...r.basePath,r.definitionPath,n]},!1)??qe(r),a=typeof t=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;a!==void 0&&(o.title=a),r.flags.hasReferencedOpenAiAnyType&&(i||(i={}),i[r.openAiAnyTypeName]||(i[r.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:r.$refStrategy==="relative"?"1":[...r.basePath,r.definitionPath,r.openAiAnyTypeName].join("/")}}));let s=n===void 0?i?{...o,[r.definitionPath]:i}:o:{$ref:[...r.$refStrategy==="relative"?[]:r.basePath,r.definitionPath,n].join("/"),[r.definitionPath]:{...i,[n]:o}};return r.target==="jsonSchema7"?s.$schema="http://json-schema.org/draft-07/schema#":(r.target==="jsonSchema2019-09"||r.target==="openAi")&&(s.$schema="https://json-schema.org/draft/2019-09/schema#"),r.target==="openAi"&&("anyOf"in s||"oneOf"in s||"allOf"in s||"type"in s&&Array.isArray(s.type))&&console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property."),s};function p1(e){return!e||e==="jsonSchema7"||e==="draft-7"?"draft-7":e==="jsonSchema2019-09"||e==="draft-2020-12"?"draft-2020-12":"draft-7"}function Iy(e,t){return Xt(e)?Ti(e,{target:p1(t?.target),io:t?.pipeStrategy??"input"}):Py(e,{strictUnions:t?.strictUnions??!0,pipeStrategy:t?.pipeStrategy??"input"})}function Ey(e){let r=Un(e)?.method;if(!r)throw new Error("Schema is missing a method literal");let i=Qd(r);if(typeof i!="string")throw new Error("Schema method literal must be a string");return i}function Ry(e,t){let r=Dn(e,t);if(!r.success)throw r.error;return r.data}var m1=6e4,rm=class{constructor(t){this._options=t,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(Ap,r=>{this._oncancel(r)}),this.setNotificationHandler(Cp,r=>{this._onprogress(r)}),this.setRequestHandler(Np,r=>({})),this._taskStore=t?.taskStore,this._taskMessageQueue=t?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(Dp,async(r,i)=>{let n=await this._taskStore.getTask(r.params.taskId,i.sessionId);if(!n)throw new H(K.InvalidParams,"Failed to retrieve task: Task not found");return{...n}}),this.setRequestHandler(Mp,async(r,i)=>{let n=async()=>{let o=r.params.taskId;if(this._taskMessageQueue){let s;for(;s=await this._taskMessageQueue.dequeue(o,i.sessionId);){if(s.type==="response"||s.type==="error"){let l=s.message,d=l.id,p=this._requestResolvers.get(d);if(p)if(this._requestResolvers.delete(d),s.type==="response")p(l);else{let f=l,g=new H(f.error.code,f.error.message,f.error.data);p(g)}else{let f=s.type==="response"?"Response":"Error";this._onerror(new Error(`${f} handler missing for request ${d}`))}continue}await this._transport?.send(s.message,{relatedRequestId:i.requestId})}}let a=await this._taskStore.getTask(o,i.sessionId);if(!a)throw new H(K.InvalidParams,`Task not found: ${o}`);if(!qn(a.status))return await this._waitForTaskUpdate(o,i.signal),await n();if(qn(a.status)){let s=await this._taskStore.getTaskResult(o,i.sessionId);return this._clearTaskQueue(o),{...s,_meta:{...s._meta,[Zn]:{taskId:o}}}}return await n()};return await n()}),this.setRequestHandler(Zp,async(r,i)=>{try{let{tasks:n,nextCursor:o}=await this._taskStore.listTasks(r.params?.cursor,i.sessionId);return{tasks:n,nextCursor:o,_meta:{}}}catch(n){throw new H(K.InvalidParams,`Failed to list tasks: ${n instanceof Error?n.message:String(n)}`)}}),this.setRequestHandler(Lp,async(r,i)=>{try{let n=await this._taskStore.getTask(r.params.taskId,i.sessionId);if(!n)throw new H(K.InvalidParams,`Task not found: ${r.params.taskId}`);if(qn(n.status))throw new H(K.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(r.params.taskId,"cancelled","Client cancelled task execution.",i.sessionId),this._clearTaskQueue(r.params.taskId);let o=await this._taskStore.getTask(r.params.taskId,i.sessionId);if(!o)throw new H(K.InvalidParams,`Task not found after cancellation: ${r.params.taskId}`);return{_meta:{},...o}}catch(n){throw n instanceof H?n:new H(K.InvalidRequest,`Failed to cancel task: ${n instanceof Error?n.message:String(n)}`)}}))}async _oncancel(t){if(!t.params.requestId)return;this._requestHandlerAbortControllers.get(t.params.requestId)?.abort(t.params.reason)}_setupTimeout(t,r,i,n,o=!1){this._timeoutInfo.set(t,{timeoutId:setTimeout(n,r),startTime:Date.now(),timeout:r,maxTotalTimeout:i,resetTimeoutOnProgress:o,onTimeout:n})}_resetTimeout(t){let r=this._timeoutInfo.get(t);if(!r)return!1;let i=Date.now()-r.startTime;if(r.maxTotalTimeout&&i>=r.maxTotalTimeout)throw this._timeoutInfo.delete(t),H.fromError(K.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:r.maxTotalTimeout,totalElapsed:i});return clearTimeout(r.timeoutId),r.timeoutId=setTimeout(r.onTimeout,r.timeout),!0}_cleanupTimeout(t){let r=this._timeoutInfo.get(t);r&&(clearTimeout(r.timeoutId),this._timeoutInfo.delete(t))}async connect(t){if(this._transport)throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=t;let r=this.transport?.onclose;this._transport.onclose=()=>{r?.(),this._onclose()};let i=this.transport?.onerror;this._transport.onerror=o=>{i?.(o),this._onerror(o)};let n=this._transport?.onmessage;this._transport.onmessage=(o,a)=>{n?.(o,a),Ys(o)||Lk(o)?this._onresponse(o):ly(o)?this._onrequest(o,a):qk(o)?this._onnotification(o):this._onerror(new Error(`Unknown message type: ${JSON.stringify(o)}`))},await this._transport.start()}_onclose(){let t=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let i of this._requestHandlerAbortControllers.values())i.abort();this._requestHandlerAbortControllers.clear();let r=H.fromError(K.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(let i of t.values())i(r)}_onerror(t){this.onerror?.(t)}_onnotification(t){let r=this._notificationHandlers.get(t.method)??this.fallbackNotificationHandler;r!==void 0&&Promise.resolve().then(()=>r(t)).catch(i=>this._onerror(new Error(`Uncaught error in notification handler: ${i}`)))}_onrequest(t,r){let i=this._requestHandlers.get(t.method)??this.fallbackRequestHandler,n=this._transport,o=t.params?._meta?.[Zn]?.taskId;if(i===void 0){let p={jsonrpc:"2.0",id:t.id,error:{code:K.MethodNotFound,message:"Method not found"}};o&&this._taskMessageQueue?this._enqueueTaskMessage(o,{type:"error",message:p,timestamp:Date.now()},n?.sessionId).catch(f=>this._onerror(new Error(`Failed to enqueue error response: ${f}`))):n?.send(p).catch(f=>this._onerror(new Error(`Failed to send an error response: ${f}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(t.id,a);let s=Uk(t.params)?t.params.task:void 0,l=this._taskStore?this.requestTaskStore(t,n?.sessionId):void 0,d={signal:a.signal,sessionId:n?.sessionId,_meta:t.params?._meta,sendNotification:async p=>{if(a.signal.aborted)return;let f={relatedRequestId:t.id};o&&(f.relatedTask={taskId:o}),await this.notification(p,f)},sendRequest:async(p,f,g)=>{if(a.signal.aborted)throw new H(K.ConnectionClosed,"Request was cancelled");let y={...g,relatedRequestId:t.id};o&&!y.relatedTask&&(y.relatedTask={taskId:o});let v=y.relatedTask?.taskId??o;return v&&l&&await l.updateTaskStatus(v,"input_required"),await this.request(p,f,y)},authInfo:r?.authInfo,requestId:t.id,requestInfo:r?.requestInfo,taskId:o,taskStore:l,taskRequestedTtl:s?.ttl,closeSSEStream:r?.closeSSEStream,closeStandaloneSSEStream:r?.closeStandaloneSSEStream};Promise.resolve().then(()=>{s&&this.assertTaskHandlerCapability(t.method)}).then(()=>i(t,d)).then(async p=>{if(a.signal.aborted)return;let f={result:p,jsonrpc:"2.0",id:t.id};o&&this._taskMessageQueue?await this._enqueueTaskMessage(o,{type:"response",message:f,timestamp:Date.now()},n?.sessionId):await n?.send(f)},async p=>{if(a.signal.aborted)return;let f={jsonrpc:"2.0",id:t.id,error:{code:Number.isSafeInteger(p.code)?p.code:K.InternalError,message:p.message??"Internal error",...p.data!==void 0&&{data:p.data}}};o&&this._taskMessageQueue?await this._enqueueTaskMessage(o,{type:"error",message:f,timestamp:Date.now()},n?.sessionId):await n?.send(f)}).catch(p=>this._onerror(new Error(`Failed to send response: ${p}`))).finally(()=>{this._requestHandlerAbortControllers.delete(t.id)})}_onprogress(t){let{progressToken:r,...i}=t.params,n=Number(r),o=this._progressHandlers.get(n);if(!o){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(t)}`));return}let a=this._responseHandlers.get(n),s=this._timeoutInfo.get(n);if(s&&a&&s.resetTimeoutOnProgress)try{this._resetTimeout(n)}catch(l){this._responseHandlers.delete(n),this._progressHandlers.delete(n),this._cleanupTimeout(n),a(l);return}o(i)}_onresponse(t){let r=Number(t.id),i=this._requestResolvers.get(r);if(i){if(this._requestResolvers.delete(r),Ys(t))i(t);else{let a=new H(t.error.code,t.error.message,t.error.data);i(a)}return}let n=this._responseHandlers.get(r);if(n===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(t)}`));return}this._responseHandlers.delete(r),this._cleanupTimeout(r);let o=!1;if(Ys(t)&&t.result&&typeof t.result=="object"){let a=t.result;if(a.task&&typeof a.task=="object"){let s=a.task;typeof s.taskId=="string"&&(o=!0,this._taskProgressTokens.set(s.taskId,r))}}if(o||this._progressHandlers.delete(r),Ys(t))n(t);else{let a=H.fromError(t.error.code,t.error.message,t.error.data);n(a)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(t,r,i){let{task:n}=i??{};if(!n){try{yield{type:"result",result:await this.request(t,r,i)}}catch(a){yield{type:"error",error:a instanceof H?a:new H(K.InternalError,String(a))}}return}let o;try{let a=await this.request(t,Qo,i);if(a.task)o=a.task.taskId,yield{type:"taskCreated",task:a.task};else throw new H(K.InternalError,"Task creation did not return a task");for(;;){let s=await this.getTask({taskId:o},i);if(yield{type:"taskStatus",task:s},qn(s.status)){s.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:o},r,i)}:s.status==="failed"?yield{type:"error",error:new H(K.InternalError,`Task ${o} failed`)}:s.status==="cancelled"&&(yield{type:"error",error:new H(K.InternalError,`Task ${o} was cancelled`)});return}if(s.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:o},r,i)};return}let l=s.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(d=>setTimeout(d,l)),i?.signal?.throwIfAborted()}}catch(a){yield{type:"error",error:a instanceof H?a:new H(K.InternalError,String(a))}}}request(t,r,i){let{relatedRequestId:n,resumptionToken:o,onresumptiontoken:a,task:s,relatedTask:l}=i??{};return new Promise((d,p)=>{let f=U=>{p(U)};if(!this._transport){f(new Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(t.method),s&&this.assertTaskCapability(t.method)}catch(U){f(U);return}i?.signal?.throwIfAborted();let g=this._requestMessageId++,y={...t,jsonrpc:"2.0",id:g};i?.onprogress&&(this._progressHandlers.set(g,i.onprogress),y.params={...t.params,_meta:{...t.params?._meta||{},progressToken:g}}),s&&(y.params={...y.params,task:s}),l&&(y.params={...y.params,_meta:{...y.params?._meta||{},[Zn]:l}});let v=U=>{this._responseHandlers.delete(g),this._progressHandlers.delete(g),this._cleanupTimeout(g),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:g,reason:String(U)}},{relatedRequestId:n,resumptionToken:o,onresumptiontoken:a}).catch(M=>this._onerror(new Error(`Failed to send cancellation: ${M}`)));let C=U instanceof H?U:new H(K.RequestTimeout,String(U));p(C)};this._responseHandlers.set(g,U=>{if(!i?.signal?.aborted){if(U instanceof Error)return p(U);try{let C=Dn(r,U.result);C.success?d(C.data):p(C.error)}catch(C){p(C)}}}),i?.signal?.addEventListener("abort",()=>{v(i?.signal?.reason)});let x=i?.timeout??m1,S=()=>v(H.fromError(K.RequestTimeout,"Request timed out",{timeout:x}));this._setupTimeout(g,x,i?.maxTotalTimeout,S,i?.resetTimeoutOnProgress??!1);let P=l?.taskId;if(P){let U=C=>{let M=this._responseHandlers.get(g);M?M(C):this._onerror(new Error(`Response handler missing for side-channeled request ${g}`))};this._requestResolvers.set(g,U),this._enqueueTaskMessage(P,{type:"request",message:y,timestamp:Date.now()}).catch(C=>{this._cleanupTimeout(g),p(C)})}else this._transport.send(y,{relatedRequestId:n,resumptionToken:o,onresumptiontoken:a}).catch(U=>{this._cleanupTimeout(g),p(U)})})}async getTask(t,r){return this.request({method:"tasks/get",params:t},Up,r)}async getTaskResult(t,r,i){return this.request({method:"tasks/result",params:t},r,i)}async listTasks(t,r){return this.request({method:"tasks/list",params:t},qp,r)}async cancelTask(t,r){return this.request({method:"tasks/cancel",params:t},Bk,r)}async notification(t,r){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(t.method);let i=r?.relatedTask?.taskId;if(i){let s={...t,jsonrpc:"2.0",params:{...t.params,_meta:{...t.params?._meta||{},[Zn]:r.relatedTask}}};await this._enqueueTaskMessage(i,{type:"notification",message:s,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(t.method)&&!t.params&&!r?.relatedRequestId&&!r?.relatedTask){if(this._pendingDebouncedNotifications.has(t.method))return;this._pendingDebouncedNotifications.add(t.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(t.method),!this._transport)return;let s={...t,jsonrpc:"2.0"};r?.relatedTask&&(s={...s,params:{...s.params,_meta:{...s.params?._meta||{},[Zn]:r.relatedTask}}}),this._transport?.send(s,r).catch(l=>this._onerror(l))});return}let a={...t,jsonrpc:"2.0"};r?.relatedTask&&(a={...a,params:{...a.params,_meta:{...a.params?._meta||{},[Zn]:r.relatedTask}}}),await this._transport.send(a,r)}setRequestHandler(t,r){let i=Ey(t);this.assertRequestHandlerCapability(i),this._requestHandlers.set(i,(n,o)=>{let a=Ry(t,n);return Promise.resolve(r(a,o))})}removeRequestHandler(t){this._requestHandlers.delete(t)}assertCanSetRequestHandler(t){if(this._requestHandlers.has(t))throw new Error(`A request handler for ${t} already exists, which would be overridden`)}setNotificationHandler(t,r){let i=Ey(t);this._notificationHandlers.set(i,n=>{let o=Ry(t,n);return Promise.resolve(r(o))})}removeNotificationHandler(t){this._notificationHandlers.delete(t)}_cleanupTaskProgressHandler(t){let r=this._taskProgressTokens.get(t);r!==void 0&&(this._progressHandlers.delete(r),this._taskProgressTokens.delete(t))}async _enqueueTaskMessage(t,r,i){if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");let n=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(t,r,i,n)}async _clearTaskQueue(t,r){if(this._taskMessageQueue){let i=await this._taskMessageQueue.dequeueAll(t,r);for(let n of i)if(n.type==="request"&&ly(n.message)){let o=n.message.id,a=this._requestResolvers.get(o);a?(a(new H(K.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(o)):this._onerror(new Error(`Resolver missing for request ${o} during task ${t} cleanup`))}}}async _waitForTaskUpdate(t,r){let i=this._options?.defaultTaskPollInterval??1e3;try{let n=await this._taskStore?.getTask(t);n?.pollInterval&&(i=n.pollInterval)}catch{}return new Promise((n,o)=>{if(r.aborted){o(new H(K.InvalidRequest,"Request cancelled"));return}let a=setTimeout(n,i);r.addEventListener("abort",()=>{clearTimeout(a),o(new H(K.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(t,r){let i=this._taskStore;if(!i)throw new Error("No task store configured");return{createTask:async n=>{if(!t)throw new Error("No request provided");return await i.createTask(n,t.id,{method:t.method,params:t.params},r)},getTask:async n=>{let o=await i.getTask(n,r);if(!o)throw new H(K.InvalidParams,"Failed to retrieve task: Task not found");return o},storeTaskResult:async(n,o,a)=>{await i.storeTaskResult(n,o,a,r);let s=await i.getTask(n,r);if(s){let l=rc.parse({method:"notifications/tasks/status",params:s});await this.notification(l),qn(s.status)&&this._cleanupTaskProgressHandler(n)}},getTaskResult:n=>i.getTaskResult(n,r),updateTaskStatus:async(n,o,a)=>{let s=await i.getTask(n,r);if(!s)throw new H(K.InvalidParams,`Task "${n}" not found - it may have been cleaned up`);if(qn(s.status))throw new H(K.InvalidParams,`Cannot update task "${n}" from terminal status "${s.status}" to "${o}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await i.updateTaskStatus(n,o,a,r);let l=await i.getTask(n,r);if(l){let d=rc.parse({method:"notifications/tasks/status",params:l});await this.notification(d),qn(l.status)&&this._cleanupTaskProgressHandler(n)}},listTasks:n=>i.listTasks(n,r)}}};function R0(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function j0(e,t){let r={...e};for(let i in t){let n=i,o=t[n];if(o===void 0)continue;let a=r[n];R0(a)&&R0(o)?r[n]={...a,...o}:r[n]=o}return r}var yP=Ve(gx(),1),bP=Ve(vP(),1);function i6(){let e=new yP.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return(0,bP.default)(e),e}var Um=class{constructor(t){this._ajv=t??i6()}getValidator(t){let r="$id"in t&&typeof t.$id=="string"?this._ajv.getSchema(t.$id)??this._ajv.compile(t):this._ajv.compile(t);return i=>r(i)?{valid:!0,data:i,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(r.errors)}}};var Mm=class{constructor(t){this._server=t}requestStream(t,r,i){return this._server.requestStream(t,r,i)}async getTask(t,r){return this._server.getTask({taskId:t},r)}async getTaskResult(t,r,i){return this._server.getTaskResult({taskId:t},r,i)}async listTasks(t,r){return this._server.listTasks(t?{cursor:t}:void 0,r)}async cancelTask(t,r){return this._server.cancelTask({taskId:t},r)}};function xP(e,t,r){if(!e)throw new Error(`${r} does not support task creation (required for ${t})`);switch(t){case"tools/call":if(!e.tools?.call)throw new Error(`${r} does not support task creation for tools/call (required for ${t})`);break;default:break}}function _P(e,t,r){if(!e)throw new Error(`${r} does not support task creation (required for ${t})`);switch(t){case"sampling/createMessage":if(!e.sampling?.createMessage)throw new Error(`${r} does not support task creation for sampling/createMessage (required for ${t})`);break;case"elicitation/create":if(!e.elicitation?.create)throw new Error(`${r} does not support task creation for elicitation/create (required for ${t})`);break;default:break}}var Zm=class extends rm{constructor(t,r){super(r),this._serverInfo=t,this._loggingLevels=new Map,this.LOG_LEVEL_SEVERITY=new Map(ic.options.map((i,n)=>[i,n])),this.isMessageIgnored=(i,n)=>{let o=this._loggingLevels.get(n);return o?this.LOG_LEVEL_SEVERITY.get(i)<this.LOG_LEVEL_SEVERITY.get(o):!1},this._capabilities=r?.capabilities??{},this._instructions=r?.instructions,this._jsonSchemaValidator=r?.jsonSchemaValidator??new Um,this.setRequestHandler(py,i=>this._oninitialize(i)),this.setNotificationHandler(my,()=>this.oninitialized?.()),this._capabilities.logging&&this.setRequestHandler(xy,async(i,n)=>{let o=n.sessionId||n.requestInfo?.headers["mcp-session-id"]||void 0,{level:a}=i.params,s=ic.safeParse(a);return s.success&&this._loggingLevels.set(o,s.data),{}})}get experimental(){return this._experimental||(this._experimental={tasks:new Mm(this)}),this._experimental}registerCapabilities(t){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=j0(this._capabilities,t)}setRequestHandler(t,r){let n=Un(t)?.method;if(!n)throw new Error("Schema is missing a method literal");let o;if(Xt(n)){let s=n;o=s._zod?.def?.value??s.value}else{let s=n;o=s._def?.value??s.value}if(typeof o!="string")throw new Error("Schema method literal must be a string");if(o==="tools/call"){let s=async(l,d)=>{let p=Dn(ta,l);if(!p.success){let v=p.error instanceof Error?p.error.message:String(p.error);throw new H(K.InvalidParams,`Invalid tools/call request: ${v}`)}let{params:f}=p.data,g=await Promise.resolve(r(l,d));if(f.task){let v=Dn(Qo,g);if(!v.success){let x=v.error instanceof Error?v.error.message:String(v.error);throw new H(K.InvalidParams,`Invalid task creation result: ${x}`)}return v.data}let y=Dn(Gp,g);if(!y.success){let v=y.error instanceof Error?y.error.message:String(y.error);throw new H(K.InvalidParams,`Invalid tools/call result: ${v}`)}return y.data};return super.setRequestHandler(t,s)}return super.setRequestHandler(t,r)}assertCapabilityForMethod(t){switch(t){case"sampling/createMessage":if(!this._clientCapabilities?.sampling)throw new Error(`Client does not support sampling (required for ${t})`);break;case"elicitation/create":if(!this._clientCapabilities?.elicitation)throw new Error(`Client does not support elicitation (required for ${t})`);break;case"roots/list":if(!this._clientCapabilities?.roots)throw new Error(`Client does not support listing roots (required for ${t})`);break;case"ping":break}}assertNotificationCapability(t){switch(t){case"notifications/message":if(!this._capabilities.logging)throw new Error(`Server does not support logging (required for ${t})`);break;case"notifications/resources/updated":case"notifications/resources/list_changed":if(!this._capabilities.resources)throw new Error(`Server does not support notifying about resources (required for ${t})`);break;case"notifications/tools/list_changed":if(!this._capabilities.tools)throw new Error(`Server does not support notifying of tool list changes (required for ${t})`);break;case"notifications/prompts/list_changed":if(!this._capabilities.prompts)throw new Error(`Server does not support notifying of prompt list changes (required for ${t})`);break;case"notifications/elicitation/complete":if(!this._clientCapabilities?.elicitation?.url)throw new Error(`Client does not support URL elicitation (required for ${t})`);break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(t){if(this._capabilities)switch(t){case"completion/complete":if(!this._capabilities.completions)throw new Error(`Server does not support completions (required for ${t})`);break;case"logging/setLevel":if(!this._capabilities.logging)throw new Error(`Server does not support logging (required for ${t})`);break;case"prompts/get":case"prompts/list":if(!this._capabilities.prompts)throw new Error(`Server does not support prompts (required for ${t})`);break;case"resources/list":case"resources/templates/list":case"resources/read":if(!this._capabilities.resources)throw new Error(`Server does not support resources (required for ${t})`);break;case"tools/call":case"tools/list":if(!this._capabilities.tools)throw new Error(`Server does not support tools (required for ${t})`);break;case"tasks/get":case"tasks/list":case"tasks/result":case"tasks/cancel":if(!this._capabilities.tasks)throw new Error(`Server does not support tasks capability (required for ${t})`);break;case"ping":case"initialize":break}}assertTaskCapability(t){_P(this._clientCapabilities?.tasks?.requests,t,"Client")}assertTaskHandlerCapability(t){this._capabilities&&xP(this._capabilities.tasks?.requests,t,"Server")}async _oninitialize(t){let r=t.params.protocolVersion;return this._clientCapabilities=t.params.capabilities,this._clientVersion=t.params.clientInfo,{protocolVersion:Nk.includes(r)?r:sy,capabilities:this.getCapabilities(),serverInfo:this._serverInfo,...this._instructions&&{instructions:this._instructions}}}getClientCapabilities(){return this._clientCapabilities}getClientVersion(){return this._clientVersion}getCapabilities(){return this._capabilities}async ping(){return this.request({method:"ping"},Op)}async createMessage(t,r){if((t.tools||t.toolChoice)&&!this._clientCapabilities?.sampling?.tools)throw new Error("Client does not support sampling tools capability.");if(t.messages.length>0){let i=t.messages[t.messages.length-1],n=Array.isArray(i.content)?i.content:[i.content],o=n.some(d=>d.type==="tool_result"),a=t.messages.length>1?t.messages[t.messages.length-2]:void 0,s=a?Array.isArray(a.content)?a.content:[a.content]:[],l=s.some(d=>d.type==="tool_use");if(o){if(n.some(d=>d.type!=="tool_result"))throw new Error("The last message must contain only tool_result content if any is present");if(!l)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(l){let d=new Set(s.filter(f=>f.type==="tool_use").map(f=>f.id)),p=new Set(n.filter(f=>f.type==="tool_result").map(f=>f.toolUseId));if(d.size!==p.size||![...d].every(f=>p.has(f)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return t.tools?this.request({method:"sampling/createMessage",params:t},$y,r):this.request({method:"sampling/createMessage",params:t},_y,r)}async elicitInput(t,r){switch(t.mode??"form"){case"url":{if(!this._clientCapabilities?.elicitation?.url)throw new Error("Client does not support url elicitation.");let n=t;return this.request({method:"elicitation/create",params:n},Kp,r)}case"form":{if(!this._clientCapabilities?.elicitation?.form)throw new Error("Client does not support form elicitation.");let n=t.mode==="form"?t:{...t,mode:"form"},o=await this.request({method:"elicitation/create",params:n},Kp,r);if(o.action==="accept"&&o.content&&n.requestedSchema)try{let s=this._jsonSchemaValidator.getValidator(n.requestedSchema)(o.content);if(!s.valid)throw new H(K.InvalidParams,`Elicitation response content does not match requested schema: ${s.errorMessage}`)}catch(a){throw a instanceof H?a:new H(K.InternalError,`Error validating elicitation response: ${a instanceof Error?a.message:String(a)}`)}return o}}}createElicitationCompletionNotifier(t,r){if(!this._clientCapabilities?.elicitation?.url)throw new Error("Client does not support URL elicitation (required for notifications/elicitation/complete)");return()=>this.notification({method:"notifications/elicitation/complete",params:{elicitationId:t}},r)}async listRoots(t,r){return this.request({method:"roots/list",params:t},wy,r)}async sendLoggingMessage(t,r){if(this._capabilities.logging&&!this.isMessageIgnored(t.level,r))return this.notification({method:"notifications/message",params:t})}async sendResourceUpdated(t){return this.notification({method:"notifications/resources/updated",params:t})}async sendResourceListChanged(){return this.notification({method:"notifications/resources/list_changed"})}async sendToolListChanged(){return this.notification({method:"notifications/tools/list_changed"})}async sendPromptListChanged(){return this.notification({method:"notifications/prompts/list_changed"})}};var wP=Symbol.for("mcp.completable");function Sx(e){return!!e&&typeof e=="object"&&wP in e}function SP(e){return e[wP]?.complete}var $P;(function(e){e.Completable="McpCompletable"})($P||($P={}));var o6=/^[A-Za-z0-9._-]{1,128}$/;function a6(e){let t=[];if(e.length===0)return{isValid:!1,warnings:["Tool name cannot be empty"]};if(e.length>128)return{isValid:!1,warnings:[`Tool name exceeds maximum length of 128 characters (current: ${e.length})`]};if(e.includes(" ")&&t.push("Tool name contains spaces, which may cause parsing issues"),e.includes(",")&&t.push("Tool name contains commas, which may cause parsing issues"),(e.startsWith("-")||e.endsWith("-"))&&t.push("Tool name starts or ends with a dash, which may cause parsing issues in some contexts"),(e.startsWith(".")||e.endsWith("."))&&t.push("Tool name starts or ends with a dot, which may cause parsing issues in some contexts"),!o6.test(e)){let r=e.split("").filter(i=>!/[A-Za-z0-9._-]/.test(i)).filter((i,n,o)=>o.indexOf(i)===n);return t.push(`Tool name contains invalid characters: ${r.map(i=>`"${i}"`).join(", ")}`,"Allowed characters are: A-Z, a-z, 0-9, underscore (_), dash (-), and dot (.)"),{isValid:!1,warnings:t}}return{isValid:!0,warnings:t}}function s6(e,t){if(t.length>0){console.warn(`Tool name validation warning for "${e}":`);for(let r of t)console.warn(` - ${r}`);console.warn("Tool registration will proceed, but this may cause compatibility issues."),console.warn("Consider updating the tool name to conform to the MCP tool naming standard."),console.warn("See SEP: Specify Format for Tool Names (https://github.com/modelcontextprotocol/modelcontextprotocol/issues/986) for more details.")}}function kx(e){let t=a6(e);return s6(e,t.warnings),t.isValid}var qm=class{constructor(t){this._mcpServer=t}registerToolTask(t,r,i){let n={taskSupport:"required",...r.execution};if(n.taskSupport==="forbidden")throw new Error(`Cannot register task-based tool '${t}' with taskSupport 'forbidden'. Use registerTool() instead.`);return this._mcpServer._createRegisteredTool(t,r.title,r.description,r.inputSchema,r.outputSchema,r.annotations,n,r._meta,i)}};var Lm=class{constructor(t,r){this._registeredResources={},this._registeredResourceTemplates={},this._registeredTools={},this._registeredPrompts={},this._toolHandlersInitialized=!1,this._completionHandlerInitialized=!1,this._resourceHandlersInitialized=!1,this._promptHandlersInitialized=!1,this.server=new Zm(t,r)}get experimental(){return this._experimental||(this._experimental={tasks:new qm(this)}),this._experimental}async connect(t){return await this.server.connect(t)}async close(){await this.server.close()}setToolRequestHandlers(){this._toolHandlersInitialized||(this.server.assertCanSetRequestHandler(Kn(Jp)),this.server.assertCanSetRequestHandler(Kn(ta)),this.server.registerCapabilities({tools:{listChanged:!0}}),this.server.setRequestHandler(Jp,()=>({tools:Object.entries(this._registeredTools).filter(([,t])=>t.enabled).map(([t,r])=>{let i={name:t,title:r.title,description:r.description,inputSchema:(()=>{let n=Lo(r.inputSchema);return n?Iy(n,{strictUnions:!0,pipeStrategy:"input"}):c6})(),annotations:r.annotations,execution:r.execution,_meta:r._meta};if(r.outputSchema){let n=Lo(r.outputSchema);n&&(i.outputSchema=Iy(n,{strictUnions:!0,pipeStrategy:"output"}))}return i})})),this.server.setRequestHandler(ta,async(t,r)=>{try{let i=this._registeredTools[t.params.name];if(!i)throw new H(K.InvalidParams,`Tool ${t.params.name} not found`);if(!i.enabled)throw new H(K.InvalidParams,`Tool ${t.params.name} disabled`);let n=!!t.params.task,o=i.execution?.taskSupport,a="createTask"in i.handler;if((o==="required"||o==="optional")&&!a)throw new H(K.InternalError,`Tool ${t.params.name} has taskSupport '${o}' but was not registered with registerToolTask`);if(o==="required"&&!n)throw new H(K.MethodNotFound,`Tool ${t.params.name} requires task augmentation (taskSupport: 'required')`);if(o==="optional"&&!n&&a)return await this.handleAutomaticTaskPolling(i,t,r);let s=await this.validateToolInput(i,t.params.arguments,t.params.name),l=await this.executeToolHandler(i,s,r);return n||await this.validateToolOutput(i,l,t.params.name),l}catch(i){if(i instanceof H&&i.code===K.UrlElicitationRequired)throw i;return this.createToolError(i instanceof Error?i.message:String(i))}}),this._toolHandlersInitialized=!0)}createToolError(t){return{content:[{type:"text",text:t}],isError:!0}}async validateToolInput(t,r,i){if(!t.inputSchema)return;let o=Lo(t.inputSchema)??t.inputSchema,a=await Yd(o,r);if(!a.success){let s="error"in a?a.error:"Unknown error",l=Xd(s);throw new H(K.InvalidParams,`Input validation error: Invalid arguments for tool ${i}: ${l}`)}return a.data}async validateToolOutput(t,r,i){if(!t.outputSchema||!("content"in r)||r.isError)return;if(!r.structuredContent)throw new H(K.InvalidParams,`Output validation error: Tool ${i} has an output schema but no structured content was provided`);let n=Lo(t.outputSchema),o=await Yd(n,r.structuredContent);if(!o.success){let a="error"in o?o.error:"Unknown error",s=Xd(a);throw new H(K.InvalidParams,`Output validation error: Invalid structured content for tool ${i}: ${s}`)}}async executeToolHandler(t,r,i){let n=t.handler;if("createTask"in n){if(!i.taskStore)throw new Error("No task store provided.");let a={...i,taskStore:i.taskStore};if(t.inputSchema){let s=n;return await Promise.resolve(s.createTask(r,a))}else{let s=n;return await Promise.resolve(s.createTask(a))}}if(t.inputSchema){let a=n;return await Promise.resolve(a(r,i))}else{let a=n;return await Promise.resolve(a(i))}}async handleAutomaticTaskPolling(t,r,i){if(!i.taskStore)throw new Error("No task store provided for task-capable tool.");let n=await this.validateToolInput(t,r.params.arguments,r.params.name),o=t.handler,a={...i,taskStore:i.taskStore},s=n?await Promise.resolve(o.createTask(n,a)):await Promise.resolve(o.createTask(a)),l=s.task.taskId,d=s.task,p=d.pollInterval??5e3;for(;d.status!=="completed"&&d.status!=="failed"&&d.status!=="cancelled";){await new Promise(g=>setTimeout(g,p));let f=await i.taskStore.getTask(l);if(!f)throw new H(K.InternalError,`Task ${l} not found during polling`);d=f}return await i.taskStore.getTaskResult(l)}setCompletionRequestHandler(){this._completionHandlerInitialized||(this.server.assertCanSetRequestHandler(Kn(Yp)),this.server.registerCapabilities({completions:{}}),this.server.setRequestHandler(Yp,async t=>{switch(t.params.ref.type){case"ref/prompt":return Yk(t),this.handlePromptCompletion(t,t.params.ref);case"ref/resource":return Xk(t),this.handleResourceCompletion(t,t.params.ref);default:throw new H(K.InvalidParams,`Invalid completion reference: ${t.params.ref}`)}}),this._completionHandlerInitialized=!0)}async handlePromptCompletion(t,r){let i=this._registeredPrompts[r.name];if(!i)throw new H(K.InvalidParams,`Prompt ${r.name} not found`);if(!i.enabled)throw new H(K.InvalidParams,`Prompt ${r.name} disabled`);if(!i.argsSchema)return Nc;let o=Un(i.argsSchema)?.[t.params.argument.name];if(!Sx(o))return Nc;let a=SP(o);if(!a)return Nc;let s=await a(t.params.argument.value,t.params.context);return zP(s)}async handleResourceCompletion(t,r){let i=Object.values(this._registeredResourceTemplates).find(a=>a.resourceTemplate.uriTemplate.toString()===r.uri);if(!i){if(this._registeredResources[r.uri])return Nc;throw new H(K.InvalidParams,`Resource template ${t.params.ref.uri} not found`)}let n=i.resourceTemplate.completeCallback(t.params.argument.name);if(!n)return Nc;let o=await n(t.params.argument.value,t.params.context);return zP(o)}setResourceRequestHandlers(){this._resourceHandlersInitialized||(this.server.assertCanSetRequestHandler(Kn(Fp)),this.server.assertCanSetRequestHandler(Kn(Vp)),this.server.assertCanSetRequestHandler(Kn(Bp)),this.server.registerCapabilities({resources:{listChanged:!0}}),this.server.setRequestHandler(Fp,async(t,r)=>{let i=Object.entries(this._registeredResources).filter(([o,a])=>a.enabled).map(([o,a])=>({uri:o,name:a.name,...a.metadata})),n=[];for(let o of Object.values(this._registeredResourceTemplates)){if(!o.resourceTemplate.listCallback)continue;let a=await o.resourceTemplate.listCallback(r);for(let s of a.resources)n.push({...o.metadata,...s})}return{resources:[...i,...n]}}),this.server.setRequestHandler(Vp,async()=>({resourceTemplates:Object.entries(this._registeredResourceTemplates).map(([r,i])=>({name:r,uriTemplate:i.resourceTemplate.uriTemplate.toString(),...i.metadata}))})),this.server.setRequestHandler(Bp,async(t,r)=>{let i=new URL(t.params.uri),n=this._registeredResources[i.toString()];if(n){if(!n.enabled)throw new H(K.InvalidParams,`Resource ${i} disabled`);return n.readCallback(i,r)}for(let o of Object.values(this._registeredResourceTemplates)){let a=o.resourceTemplate.uriTemplate.match(i.toString());if(a)return o.readCallback(i,a,r)}throw new H(K.InvalidParams,`Resource ${i} not found`)}),this._resourceHandlersInitialized=!0)}setPromptRequestHandlers(){this._promptHandlersInitialized||(this.server.assertCanSetRequestHandler(Kn(Wp)),this.server.assertCanSetRequestHandler(Kn(Hp)),this.server.registerCapabilities({prompts:{listChanged:!0}}),this.server.setRequestHandler(Wp,()=>({prompts:Object.entries(this._registeredPrompts).filter(([,t])=>t.enabled).map(([t,r])=>({name:t,title:r.title,description:r.description,arguments:r.argsSchema?u6(r.argsSchema):void 0}))})),this.server.setRequestHandler(Hp,async(t,r)=>{let i=this._registeredPrompts[t.params.name];if(!i)throw new H(K.InvalidParams,`Prompt ${t.params.name} not found`);if(!i.enabled)throw new H(K.InvalidParams,`Prompt ${t.params.name} disabled`);if(i.argsSchema){let n=Lo(i.argsSchema),o=await Yd(n,t.params.arguments);if(!o.success){let l="error"in o?o.error:"Unknown error",d=Xd(l);throw new H(K.InvalidParams,`Invalid arguments for prompt ${t.params.name}: ${d}`)}let a=o.data,s=i.callback;return await Promise.resolve(s(a,r))}else{let n=i.callback;return await Promise.resolve(n(r))}}),this._promptHandlersInitialized=!0)}resource(t,r,...i){let n;typeof i[0]=="object"&&(n=i.shift());let o=i[0];if(typeof r=="string"){if(this._registeredResources[r])throw new Error(`Resource ${r} is already registered`);let a=this._createRegisteredResource(t,void 0,r,n,o);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),a}else{if(this._registeredResourceTemplates[t])throw new Error(`Resource template ${t} is already registered`);let a=this._createRegisteredResourceTemplate(t,void 0,r,n,o);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),a}}registerResource(t,r,i,n){if(typeof r=="string"){if(this._registeredResources[r])throw new Error(`Resource ${r} is already registered`);let o=this._createRegisteredResource(t,i.title,r,i,n);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),o}else{if(this._registeredResourceTemplates[t])throw new Error(`Resource template ${t} is already registered`);let o=this._createRegisteredResourceTemplate(t,i.title,r,i,n);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),o}}_createRegisteredResource(t,r,i,n,o){let a={name:t,title:r,metadata:n,readCallback:o,enabled:!0,disable:()=>a.update({enabled:!1}),enable:()=>a.update({enabled:!0}),remove:()=>a.update({uri:null}),update:s=>{typeof s.uri<"u"&&s.uri!==i&&(delete this._registeredResources[i],s.uri&&(this._registeredResources[s.uri]=a)),typeof s.name<"u"&&(a.name=s.name),typeof s.title<"u"&&(a.title=s.title),typeof s.metadata<"u"&&(a.metadata=s.metadata),typeof s.callback<"u"&&(a.readCallback=s.callback),typeof s.enabled<"u"&&(a.enabled=s.enabled),this.sendResourceListChanged()}};return this._registeredResources[i]=a,a}_createRegisteredResourceTemplate(t,r,i,n,o){let a={resourceTemplate:i,title:r,metadata:n,readCallback:o,enabled:!0,disable:()=>a.update({enabled:!1}),enable:()=>a.update({enabled:!0}),remove:()=>a.update({name:null}),update:d=>{typeof d.name<"u"&&d.name!==t&&(delete this._registeredResourceTemplates[t],d.name&&(this._registeredResourceTemplates[d.name]=a)),typeof d.title<"u"&&(a.title=d.title),typeof d.template<"u"&&(a.resourceTemplate=d.template),typeof d.metadata<"u"&&(a.metadata=d.metadata),typeof d.callback<"u"&&(a.readCallback=d.callback),typeof d.enabled<"u"&&(a.enabled=d.enabled),this.sendResourceListChanged()}};this._registeredResourceTemplates[t]=a;let s=i.uriTemplate.variableNames;return Array.isArray(s)&&s.some(d=>!!i.completeCallback(d))&&this.setCompletionRequestHandler(),a}_createRegisteredPrompt(t,r,i,n,o){let a={title:r,description:i,argsSchema:n===void 0?void 0:Pi(n),callback:o,enabled:!0,disable:()=>a.update({enabled:!1}),enable:()=>a.update({enabled:!0}),remove:()=>a.update({name:null}),update:s=>{typeof s.name<"u"&&s.name!==t&&(delete this._registeredPrompts[t],s.name&&(this._registeredPrompts[s.name]=a)),typeof s.title<"u"&&(a.title=s.title),typeof s.description<"u"&&(a.description=s.description),typeof s.argsSchema<"u"&&(a.argsSchema=Pi(s.argsSchema)),typeof s.callback<"u"&&(a.callback=s.callback),typeof s.enabled<"u"&&(a.enabled=s.enabled),this.sendPromptListChanged()}};return this._registeredPrompts[t]=a,n&&Object.values(n).some(l=>{let d=l instanceof Yo?l._def?.innerType:l;return Sx(d)})&&this.setCompletionRequestHandler(),a}_createRegisteredTool(t,r,i,n,o,a,s,l,d){kx(t);let p={title:r,description:i,inputSchema:kP(n),outputSchema:kP(o),annotations:a,execution:s,_meta:l,handler:d,enabled:!0,disable:()=>p.update({enabled:!1}),enable:()=>p.update({enabled:!0}),remove:()=>p.update({name:null}),update:f=>{typeof f.name<"u"&&f.name!==t&&(typeof f.name=="string"&&kx(f.name),delete this._registeredTools[t],f.name&&(this._registeredTools[f.name]=p)),typeof f.title<"u"&&(p.title=f.title),typeof f.description<"u"&&(p.description=f.description),typeof f.paramsSchema<"u"&&(p.inputSchema=Pi(f.paramsSchema)),typeof f.outputSchema<"u"&&(p.outputSchema=Pi(f.outputSchema)),typeof f.callback<"u"&&(p.handler=f.callback),typeof f.annotations<"u"&&(p.annotations=f.annotations),typeof f._meta<"u"&&(p._meta=f._meta),typeof f.enabled<"u"&&(p.enabled=f.enabled),this.sendToolListChanged()}};return this._registeredTools[t]=p,this.setToolRequestHandlers(),this.sendToolListChanged(),p}tool(t,...r){if(this._registeredTools[t])throw new Error(`Tool ${t} is already registered`);let i,n,o,a;if(typeof r[0]=="string"&&(i=r.shift()),r.length>1){let l=r[0];zx(l)?(n=r.shift(),r.length>1&&typeof r[0]=="object"&&r[0]!==null&&!zx(r[0])&&(a=r.shift())):typeof l=="object"&&l!==null&&(a=r.shift())}let s=r[0];return this._createRegisteredTool(t,void 0,i,n,o,a,{taskSupport:"forbidden"},void 0,s)}registerTool(t,r,i){if(this._registeredTools[t])throw new Error(`Tool ${t} is already registered`);let{title:n,description:o,inputSchema:a,outputSchema:s,annotations:l,_meta:d}=r;return this._createRegisteredTool(t,n,o,a,s,l,{taskSupport:"forbidden"},d,i)}prompt(t,...r){if(this._registeredPrompts[t])throw new Error(`Prompt ${t} is already registered`);let i;typeof r[0]=="string"&&(i=r.shift());let n;r.length>1&&(n=r.shift());let o=r[0],a=this._createRegisteredPrompt(t,void 0,i,n,o);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),a}registerPrompt(t,r,i){if(this._registeredPrompts[t])throw new Error(`Prompt ${t} is already registered`);let{title:n,description:o,argsSchema:a}=r,s=this._createRegisteredPrompt(t,n,o,a,i);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),s}isConnected(){return this.server.transport!==void 0}async sendLoggingMessage(t,r){return this.server.sendLoggingMessage(t,r)}sendResourceListChanged(){this.isConnected()&&this.server.sendResourceListChanged()}sendToolListChanged(){this.isConnected()&&this.server.sendToolListChanged()}sendPromptListChanged(){this.isConnected()&&this.server.sendPromptListChanged()}};var c6={type:"object",properties:{}};function TP(e){return e!==null&&typeof e=="object"&&"parse"in e&&typeof e.parse=="function"&&"safeParse"in e&&typeof e.safeParse=="function"}function l6(e){return"_def"in e||"_zod"in e||TP(e)}function zx(e){return typeof e!="object"||e===null||l6(e)?!1:Object.keys(e).length===0?!0:Object.values(e).some(TP)}function kP(e){if(e)return zx(e)?Pi(e):e}function u6(e){let t=Un(e);return t?Object.entries(t).map(([r,i])=>{let n=$S(i),o=wS(i);return{name:r,description:n,required:!o}}):[]}function Kn(e){let r=Un(e)?.method;if(!r)throw new Error("Schema is missing a method literal");let i=Qd(r);if(typeof i=="string")return i;throw new Error("Schema method literal must be a string")}function zP(e){return{completion:{values:e.slice(0,100),total:e.length,hasMore:e.length>100}}}var Nc={completion:{values:[],hasMore:!1}};var Tx=Ve(require("node:process"),1);var Fm=class{append(t){this._buffer=this._buffer?Buffer.concat([this._buffer,t]):t}readMessage(){if(!this._buffer)return null;let t=this._buffer.indexOf(`
|
|
65
|
+
`);if(t===-1)return null;let r=this._buffer.toString("utf8",0,t).replace(/\r$/,"");return this._buffer=this._buffer.subarray(t+1),d6(r)}clear(){this._buffer=void 0}};function d6(e){return Fk.parse(JSON.parse(e))}function PP(e){return JSON.stringify(e)+`
|
|
66
|
+
`}var Vm=class{constructor(t=Tx.default.stdin,r=Tx.default.stdout){this._stdin=t,this._stdout=r,this._readBuffer=new Fm,this._started=!1,this._ondata=i=>{this._readBuffer.append(i),this.processReadBuffer()},this._onerror=i=>{this.onerror?.(i)}}async start(){if(this._started)throw new Error("StdioServerTransport already started! If using Server class, note that connect() calls start() automatically.");this._started=!0,this._stdin.on("data",this._ondata),this._stdin.on("error",this._onerror)}processReadBuffer(){for(;;)try{let t=this._readBuffer.readMessage();if(t===null)break;this.onmessage?.(t)}catch(t){this.onerror?.(t)}}async close(){this._stdin.off("data",this._ondata),this._stdin.off("error",this._onerror),this._stdin.listenerCount("data")===0&&this._stdin.pause(),this._readBuffer.clear(),this.onclose?.()}send(t){return new Promise(r=>{let i=PP(t);this._stdout.write(i)?r():this._stdout.once("drain",r)})}};var IR=Ve(require("path"),1);var IP="https://rason.net",EP=(process.env.RASON_SERVER_URL||IP).replace(/\/+$/,""),Bm=process.env.RASON_BEARER_TOKEN,Px=process.env.DISABLE_TLS_VERIFY==="true",Wm=Math.max(parseInt(process.env.RASON_RESULT_ARRAY_LIMIT??"25",10)||25,1),Hm=Math.max(parseInt(process.env.RASON_RESULT_SIZE_LIMIT??"50000",10)||5e4,1),Ix=Math.max(parseInt(process.env.RASON_REQUEST_TIMEOUT??"300000",10)||3e5,1e3);process.env.RASON_SERVER_URL||console.error(`INFO: RASON_SERVER_URL is not set. Using default: ${IP}`);Bm||console.error("WARNING: RASON_BEARER_TOKEN is not set. Model management, solving, and diagnostic tools will be unavailable.");Px&&console.error("WARNING: TLS certificate verification is DISABLED. Only use this for local development!");var c_=Ve(require("fs"),1),Hc=Ve(require("path"),1),l_=Ve(Kx(),1),u_=Ve(Ex(),1);var dR=Ve(require("https"),1);var lR=Ve(require("node:http"),1),uR=Ve(require("node:https"),1),Bi=Ve(require("node:zlib"),1),Vt=Ve(require("node:stream"),1),Wc=require("node:buffer");function KL(e){if(!/^data:/i.test(e))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');e=e.replace(/\r?\n/g,"");let t=e.indexOf(",");if(t===-1||t<=4)throw new TypeError("malformed data: URI");let r=e.substring(5,t).split(";"),i="",n=!1,o=r[0]||"text/plain",a=o;for(let p=1;p<r.length;p++)r[p]==="base64"?n=!0:r[p]&&(a+=`;${r[p]}`,r[p].indexOf("charset=")===0&&(i=r[p].substring(8)));!r[0]&&!i.length&&(a+=";charset=US-ASCII",i="US-ASCII");let s=n?"base64":"ascii",l=unescape(e.substring(t+1)),d=Buffer.from(l,s);return d.type=o,d.typeFull=a,d.charset=i,d}var jE=KL;var or=Ve(require("node:stream"),1),cn=require("node:util"),Lt=require("node:buffer");Zc();af();var sn=class extends Error{constructor(t,r){super(t),Error.captureStackTrace(this,this.constructor),this.type=r}get name(){return this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}};var At=class extends sn{constructor(t,r,i){super(t,r),i&&(this.code=this.errno=i.code,this.erroredSysCall=i.syscall)}};var sf=Symbol.toStringTag,t_=e=>typeof e=="object"&&typeof e.append=="function"&&typeof e.delete=="function"&&typeof e.get=="function"&&typeof e.getAll=="function"&&typeof e.has=="function"&&typeof e.set=="function"&&typeof e.sort=="function"&&e[sf]==="URLSearchParams",Lc=e=>e&&typeof e=="object"&&typeof e.arrayBuffer=="function"&&typeof e.type=="string"&&typeof e.stream=="function"&&typeof e.constructor=="function"&&/^(Blob|File)$/.test(e[sf]),qE=e=>typeof e=="object"&&(e[sf]==="AbortSignal"||e[sf]==="EventTarget"),LE=(e,t)=>{let r=new URL(t).hostname,i=new URL(e).hostname;return r===i||r.endsWith(`.${i}`)},FE=(e,t)=>{let r=new URL(t).protocol,i=new URL(e).protocol;return r===i};var d2=(0,cn.promisify)(or.default.pipeline),Nt=Symbol("Body internals"),Ur=class{constructor(t,{size:r=0}={}){let i=null;t===null?t=null:t_(t)?t=Lt.Buffer.from(t.toString()):Lc(t)||Lt.Buffer.isBuffer(t)||(cn.types.isAnyArrayBuffer(t)?t=Lt.Buffer.from(t):ArrayBuffer.isView(t)?t=Lt.Buffer.from(t.buffer,t.byteOffset,t.byteLength):t instanceof or.default||(t instanceof Li?(t=ZE(t),i=t.type.split("=")[1]):t=Lt.Buffer.from(String(t))));let n=t;Lt.Buffer.isBuffer(t)?n=or.default.Readable.from(t):Lc(t)&&(n=or.default.Readable.from(t.stream())),this[Nt]={body:t,stream:n,boundary:i,disturbed:!1,error:null},this.size=r,t instanceof or.default&&t.on("error",o=>{let a=o instanceof sn?o:new At(`Invalid response body while trying to fetch ${this.url}: ${o.message}`,"system",o);this[Nt].error=a})}get body(){return this[Nt].stream}get bodyUsed(){return this[Nt].disturbed}async arrayBuffer(){let{buffer:t,byteOffset:r,byteLength:i}=await i_(this);return t.slice(r,r+i)}async formData(){let t=this.headers.get("content-type");if(t.startsWith("application/x-www-form-urlencoded")){let i=new Li,n=new URLSearchParams(await this.text());for(let[o,a]of n)i.append(o,a);return i}let{toFormData:r}=await Promise.resolve().then(()=>(JE(),HE));return r(this.body,t)}async blob(){let t=this.headers&&this.headers.get("content-type")||this[Nt].body&&this[Nt].body.type||"",r=await this.arrayBuffer();return new an([r],{type:t})}async json(){let t=await this.text();return JSON.parse(t)}async text(){let t=await i_(this);return new TextDecoder().decode(t)}buffer(){return i_(this)}};Ur.prototype.buffer=(0,cn.deprecate)(Ur.prototype.buffer,"Please use 'response.arrayBuffer()' instead of 'response.buffer()'","node-fetch#buffer");Object.defineProperties(Ur.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0},data:{get:(0,cn.deprecate)(()=>{},"data doesn't exist, use json(), text(), arrayBuffer(), or body instead","https://github.com/node-fetch/node-fetch/issues/1000 (response)")}});async function i_(e){if(e[Nt].disturbed)throw new TypeError(`body used already for: ${e.url}`);if(e[Nt].disturbed=!0,e[Nt].error)throw e[Nt].error;let{body:t}=e;if(t===null)return Lt.Buffer.alloc(0);if(!(t instanceof or.default))return Lt.Buffer.alloc(0);let r=[],i=0;try{for await(let n of t){if(e.size>0&&i+n.length>e.size){let o=new At(`content size at ${e.url} over limit: ${e.size}`,"max-size");throw t.destroy(o),o}i+=n.length,r.push(n)}}catch(n){throw n instanceof sn?n:new At(`Invalid response body while trying to fetch ${e.url}: ${n.message}`,"system",n)}if(t.readableEnded===!0||t._readableState.ended===!0)try{return r.every(n=>typeof n=="string")?Lt.Buffer.from(r.join("")):Lt.Buffer.concat(r,i)}catch(n){throw new At(`Could not create Buffer from response body for ${e.url}: ${n.message}`,"system",n)}else throw new At(`Premature close of server response while trying to fetch ${e.url}`)}var Sa=(e,t)=>{let r,i,{body:n}=e[Nt];if(e.bodyUsed)throw new Error("cannot clone body after it is used");return n instanceof or.default&&typeof n.getBoundary!="function"&&(r=new or.PassThrough({highWaterMark:t}),i=new or.PassThrough({highWaterMark:t}),n.pipe(r),n.pipe(i),e[Nt].stream=r,n=i),n},p2=(0,cn.deprecate)(e=>e.getBoundary(),"form-data doesn't follow the spec and requires special treatment. Use alternative package","https://github.com/node-fetch/node-fetch/issues/1167"),df=(e,t)=>e===null?null:typeof e=="string"?"text/plain;charset=UTF-8":t_(e)?"application/x-www-form-urlencoded;charset=UTF-8":Lc(e)?e.type||null:Lt.Buffer.isBuffer(e)||cn.types.isAnyArrayBuffer(e)||ArrayBuffer.isView(e)?null:e instanceof Li?`multipart/form-data; boundary=${t[Nt].boundary}`:e&&typeof e.getBoundary=="function"?`multipart/form-data;boundary=${p2(e)}`:e instanceof or.default?null:"text/plain;charset=UTF-8",GE=e=>{let{body:t}=e[Nt];return t===null?0:Lc(t)?t.size:Lt.Buffer.isBuffer(t)?t.length:t&&typeof t.getLengthSync=="function"&&t.hasKnownLength&&t.hasKnownLength()?t.getLengthSync():null},KE=async(e,{body:t})=>{t===null?e.end():await d2(t,e)};var o_=require("node:util"),Vc=Ve(require("node:http"),1),pf=typeof Vc.default.validateHeaderName=="function"?Vc.default.validateHeaderName:e=>{if(!/^[\^`\-\w!#$%&'*+.|~]+$/.test(e)){let t=new TypeError(`Header name must be a valid HTTP token [${e}]`);throw Object.defineProperty(t,"code",{value:"ERR_INVALID_HTTP_TOKEN"}),t}},a_=typeof Vc.default.validateHeaderValue=="function"?Vc.default.validateHeaderValue:(e,t)=>{if(/[^\t\u0020-\u007E\u0080-\u00FF]/.test(t)){let r=new TypeError(`Invalid character in header content ["${e}"]`);throw Object.defineProperty(r,"code",{value:"ERR_INVALID_CHAR"}),r}},Ft=class e extends URLSearchParams{constructor(t){let r=[];if(t instanceof e){let i=t.raw();for(let[n,o]of Object.entries(i))r.push(...o.map(a=>[n,a]))}else if(t!=null)if(typeof t=="object"&&!o_.types.isBoxedPrimitive(t)){let i=t[Symbol.iterator];if(i==null)r.push(...Object.entries(t));else{if(typeof i!="function")throw new TypeError("Header pairs must be iterable");r=[...t].map(n=>{if(typeof n!="object"||o_.types.isBoxedPrimitive(n))throw new TypeError("Each header pair must be an iterable object");return[...n]}).map(n=>{if(n.length!==2)throw new TypeError("Each header pair must be a name/value tuple");return[...n]})}}else throw new TypeError("Failed to construct 'Headers': The provided value is not of type '(sequence<sequence<ByteString>> or record<ByteString, ByteString>)");return r=r.length>0?r.map(([i,n])=>(pf(i),a_(i,String(n)),[String(i).toLowerCase(),String(n)])):void 0,super(r),new Proxy(this,{get(i,n,o){switch(n){case"append":case"set":return(a,s)=>(pf(a),a_(a,String(s)),URLSearchParams.prototype[n].call(i,String(a).toLowerCase(),String(s)));case"delete":case"has":case"getAll":return a=>(pf(a),URLSearchParams.prototype[n].call(i,String(a).toLowerCase()));case"keys":return()=>(i.sort(),new Set(URLSearchParams.prototype.keys.call(i)).keys());default:return Reflect.get(i,n,o)}}})}get[Symbol.toStringTag](){return this.constructor.name}toString(){return Object.prototype.toString.call(this)}get(t){let r=this.getAll(t);if(r.length===0)return null;let i=r.join(", ");return/^content-encoding$/i.test(t)&&(i=i.toLowerCase()),i}forEach(t,r=void 0){for(let i of this.keys())Reflect.apply(t,r,[this.get(i),i,this])}*values(){for(let t of this.keys())yield this.get(t)}*entries(){for(let t of this.keys())yield[t,this.get(t)]}[Symbol.iterator](){return this.entries()}raw(){return[...this.keys()].reduce((t,r)=>(t[r]=this.getAll(r),t),{})}[Symbol.for("nodejs.util.inspect.custom")](){return[...this.keys()].reduce((t,r)=>{let i=this.getAll(r);return r==="host"?t[r]=i[0]:t[r]=i.length>1?i:i[0],t},{})}};Object.defineProperties(Ft.prototype,["get","entries","forEach","values"].reduce((e,t)=>(e[t]={enumerable:!0},e),{}));function YE(e=[]){return new Ft(e.reduce((t,r,i,n)=>(i%2===0&&t.push(n.slice(i,i+2)),t),[]).filter(([t,r])=>{try{return pf(t),a_(t,String(r)),!0}catch{return!1}}))}var m2=new Set([301,302,303,307,308]),mf=e=>m2.has(e);var Sr=Symbol("Response internals"),ar=class e extends Ur{constructor(t=null,r={}){super(t,r);let i=r.status!=null?r.status:200,n=new Ft(r.headers);if(t!==null&&!n.has("Content-Type")){let o=df(t,this);o&&n.append("Content-Type",o)}this[Sr]={type:"default",url:r.url,status:i,statusText:r.statusText||"",headers:n,counter:r.counter,highWaterMark:r.highWaterMark}}get type(){return this[Sr].type}get url(){return this[Sr].url||""}get status(){return this[Sr].status}get ok(){return this[Sr].status>=200&&this[Sr].status<300}get redirected(){return this[Sr].counter>0}get statusText(){return this[Sr].statusText}get headers(){return this[Sr].headers}get highWaterMark(){return this[Sr].highWaterMark}clone(){return new e(Sa(this,this.highWaterMark),{type:this.type,url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected,size:this.size,highWaterMark:this.highWaterMark})}static redirect(t,r=302){if(!mf(r))throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');return new e(null,{headers:{location:new URL(t).toString()},status:r})}static error(){let t=new e(null,{status:0,statusText:""});return t[Sr].type="error",t}static json(t=void 0,r={}){let i=JSON.stringify(t);if(i===void 0)throw new TypeError("data is not JSON serializable");let n=new Ft(r&&r.headers);return n.has("content-type")||n.set("content-type","application/json"),new e(i,{...r,headers:n})}get[Symbol.toStringTag](){return"Response"}};Object.defineProperties(ar.prototype,{type:{enumerable:!0},url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}});var aR=require("node:url"),sR=require("node:util");var XE=e=>{if(e.search)return e.search;let t=e.href.length-1,r=e.hash||(e.href[t]==="#"?"#":"");return e.href[t-r.length]==="?"?"?":""};var eR=require("node:net");function QE(e,t=!1){return e==null||(e=new URL(e),/^(about|blob|data):$/.test(e.protocol))?"no-referrer":(e.username="",e.password="",e.hash="",t&&(e.pathname="",e.search=""),e)}var tR=new Set(["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"]),rR="strict-origin-when-cross-origin";function nR(e){if(!tR.has(e))throw new TypeError(`Invalid referrerPolicy: ${e}`);return e}function f2(e){if(/^(http|ws)s:$/.test(e.protocol))return!0;let t=e.host.replace(/(^\[)|(]$)/g,""),r=(0,eR.isIP)(t);return r===4&&/^127\./.test(t)||r===6&&/^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(t)?!0:e.host==="localhost"||e.host.endsWith(".localhost")?!1:e.protocol==="file:"}function ka(e){return/^about:(blank|srcdoc)$/.test(e)||e.protocol==="data:"||/^(blob|filesystem):$/.test(e.protocol)?!0:f2(e)}function iR(e,{referrerURLCallback:t,referrerOriginCallback:r}={}){if(e.referrer==="no-referrer"||e.referrerPolicy==="")return null;let i=e.referrerPolicy;if(e.referrer==="about:client")return"no-referrer";let n=e.referrer,o=QE(n),a=QE(n,!0);o.toString().length>4096&&(o=a),t&&(o=t(o)),r&&(a=r(a));let s=new URL(e.url);switch(i){case"no-referrer":return"no-referrer";case"origin":return a;case"unsafe-url":return o;case"strict-origin":return ka(o)&&!ka(s)?"no-referrer":a.toString();case"strict-origin-when-cross-origin":return o.origin===s.origin?o:ka(o)&&!ka(s)?"no-referrer":a;case"same-origin":return o.origin===s.origin?o:"no-referrer";case"origin-when-cross-origin":return o.origin===s.origin?o:a;case"no-referrer-when-downgrade":return ka(o)&&!ka(s)?"no-referrer":o;default:throw new TypeError(`Invalid referrerPolicy: ${i}`)}}function oR(e){let t=(e.get("referrer-policy")||"").split(/[,\s]+/),r="";for(let i of t)i&&tR.has(i)&&(r=i);return r}var et=Symbol("Request internals"),Bc=e=>typeof e=="object"&&typeof e[et]=="object",h2=(0,sR.deprecate)(()=>{},".data is not a valid RequestInit property, use .body instead","https://github.com/node-fetch/node-fetch/issues/1000 (request)"),Vi=class e extends Ur{constructor(t,r={}){let i;if(Bc(t)?i=new URL(t.url):(i=new URL(t),t={}),i.username!==""||i.password!=="")throw new TypeError(`${i} is an url with embedded credentials.`);let n=r.method||t.method||"GET";if(/^(delete|get|head|options|post|put)$/i.test(n)&&(n=n.toUpperCase()),!Bc(r)&&"data"in r&&h2(),(r.body!=null||Bc(t)&&t.body!==null)&&(n==="GET"||n==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body");let o=r.body?r.body:Bc(t)&&t.body!==null?Sa(t):null;super(o,{size:r.size||t.size||0});let a=new Ft(r.headers||t.headers||{});if(o!==null&&!a.has("Content-Type")){let d=df(o,this);d&&a.set("Content-Type",d)}let s=Bc(t)?t.signal:null;if("signal"in r&&(s=r.signal),s!=null&&!qE(s))throw new TypeError("Expected signal to be an instanceof AbortSignal or EventTarget");let l=r.referrer==null?t.referrer:r.referrer;if(l==="")l="no-referrer";else if(l){let d=new URL(l);l=/^about:(\/\/)?client$/.test(d)?"client":d}else l=void 0;this[et]={method:n,redirect:r.redirect||t.redirect||"follow",headers:a,parsedURL:i,signal:s,referrer:l},this.follow=r.follow===void 0?t.follow===void 0?20:t.follow:r.follow,this.compress=r.compress===void 0?t.compress===void 0?!0:t.compress:r.compress,this.counter=r.counter||t.counter||0,this.agent=r.agent||t.agent,this.highWaterMark=r.highWaterMark||t.highWaterMark||16384,this.insecureHTTPParser=r.insecureHTTPParser||t.insecureHTTPParser||!1,this.referrerPolicy=r.referrerPolicy||t.referrerPolicy||""}get method(){return this[et].method}get url(){return(0,aR.format)(this[et].parsedURL)}get headers(){return this[et].headers}get redirect(){return this[et].redirect}get signal(){return this[et].signal}get referrer(){if(this[et].referrer==="no-referrer")return"";if(this[et].referrer==="client")return"about:client";if(this[et].referrer)return this[et].referrer.toString()}get referrerPolicy(){return this[et].referrerPolicy}set referrerPolicy(t){this[et].referrerPolicy=nR(t)}clone(){return new e(this)}get[Symbol.toStringTag](){return"Request"}};Object.defineProperties(Vi.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0},referrer:{enumerable:!0},referrerPolicy:{enumerable:!0}});var cR=e=>{let{parsedURL:t}=e[et],r=new Ft(e[et].headers);r.has("Accept")||r.set("Accept","*/*");let i=null;if(e.body===null&&/^(post|put)$/i.test(e.method)&&(i="0"),e.body!==null){let s=GE(e);typeof s=="number"&&!Number.isNaN(s)&&(i=String(s))}i&&r.set("Content-Length",i),e.referrerPolicy===""&&(e.referrerPolicy=rR),e.referrer&&e.referrer!=="no-referrer"?e[et].referrer=iR(e):e[et].referrer="no-referrer",e[et].referrer instanceof URL&&r.set("Referer",e.referrer),r.has("User-Agent")||r.set("User-Agent","node-fetch"),e.compress&&!r.has("Accept-Encoding")&&r.set("Accept-Encoding","gzip, deflate, br");let{agent:n}=e;typeof n=="function"&&(n=n(t));let o=XE(t),a={path:t.pathname+o,method:e.method,headers:r[Symbol.for("nodejs.util.inspect.custom")](),insecureHTTPParser:e.insecureHTTPParser,agent:n};return{parsedURL:t,options:a}};var ff=class extends sn{constructor(t,r="aborted"){super(t,r)}};af();r_();var g2=new Set(["data:","http:","https:"]);async function hf(e,t){return new Promise((r,i)=>{let n=new Vi(e,t),{parsedURL:o,options:a}=cR(n);if(!g2.has(o.protocol))throw new TypeError(`node-fetch cannot load ${e}. URL scheme "${o.protocol.replace(/:$/,"")}" is not supported.`);if(o.protocol==="data:"){let v=jE(n.url),x=new ar(v,{headers:{"Content-Type":v.typeFull}});r(x);return}let s=(o.protocol==="https:"?uR.default:lR.default).request,{signal:l}=n,d=null,p=()=>{let v=new ff("The operation was aborted.");i(v),n.body&&n.body instanceof Vt.default.Readable&&n.body.destroy(v),!(!d||!d.body)&&d.body.emit("error",v)};if(l&&l.aborted){p();return}let f=()=>{p(),y()},g=s(o.toString(),a);l&&l.addEventListener("abort",f);let y=()=>{g.abort(),l&&l.removeEventListener("abort",f)};g.on("error",v=>{i(new At(`request to ${n.url} failed, reason: ${v.message}`,"system",v)),y()}),v2(g,v=>{d&&d.body&&d.body.destroy(v)}),process.version<"v14"&&g.on("socket",v=>{let x;v.prependListener("end",()=>{x=v._eventsCount}),v.prependListener("close",S=>{if(d&&x<v._eventsCount&&!S){let P=new Error("Premature close");P.code="ERR_STREAM_PREMATURE_CLOSE",d.body.emit("error",P)}})}),g.on("response",v=>{g.setTimeout(0);let x=YE(v.rawHeaders);if(mf(v.statusCode)){let M=x.get("Location"),D=null;try{D=M===null?null:new URL(M,n.url)}catch{if(n.redirect!=="manual"){i(new At(`uri requested responds with an invalid redirect URL: ${M}`,"invalid-redirect")),y();return}}switch(n.redirect){case"error":i(new At(`uri requested responds with a redirect, redirect mode is set to error: ${n.url}`,"no-redirect")),y();return;case"manual":break;case"follow":{if(D===null)break;if(n.counter>=n.follow){i(new At(`maximum redirect reached at: ${n.url}`,"max-redirect")),y();return}let le={headers:new Ft(n.headers),follow:n.follow,counter:n.counter+1,agent:n.agent,compress:n.compress,method:n.method,body:Sa(n),signal:n.signal,size:n.size,referrer:n.referrer,referrerPolicy:n.referrerPolicy};if(!LE(n.url,D)||!FE(n.url,D))for(let wt of["authorization","www-authenticate","cookie","cookie2"])le.headers.delete(wt);if(v.statusCode!==303&&n.body&&t.body instanceof Vt.default.Readable){i(new At("Cannot follow redirect with body being a readable stream","unsupported-redirect")),y();return}(v.statusCode===303||(v.statusCode===301||v.statusCode===302)&&n.method==="POST")&&(le.method="GET",le.body=void 0,le.headers.delete("content-length"));let Le=oR(x);Le&&(le.referrerPolicy=Le),r(hf(new Vi(D,le))),y();return}default:return i(new TypeError(`Redirect option '${n.redirect}' is not a valid value of RequestRedirect`))}}l&&v.once("end",()=>{l.removeEventListener("abort",f)});let S=(0,Vt.pipeline)(v,new Vt.PassThrough,M=>{M&&i(M)});process.version<"v12.10"&&v.on("aborted",f);let P={url:n.url,status:v.statusCode,statusText:v.statusMessage,headers:x,size:n.size,counter:n.counter,highWaterMark:n.highWaterMark},U=x.get("Content-Encoding");if(!n.compress||n.method==="HEAD"||U===null||v.statusCode===204||v.statusCode===304){d=new ar(S,P),r(d);return}let C={flush:Bi.default.Z_SYNC_FLUSH,finishFlush:Bi.default.Z_SYNC_FLUSH};if(U==="gzip"||U==="x-gzip"){S=(0,Vt.pipeline)(S,Bi.default.createGunzip(C),M=>{M&&i(M)}),d=new ar(S,P),r(d);return}if(U==="deflate"||U==="x-deflate"){let M=(0,Vt.pipeline)(v,new Vt.PassThrough,D=>{D&&i(D)});M.once("data",D=>{(D[0]&15)===8?S=(0,Vt.pipeline)(S,Bi.default.createInflate(),le=>{le&&i(le)}):S=(0,Vt.pipeline)(S,Bi.default.createInflateRaw(),le=>{le&&i(le)}),d=new ar(S,P),r(d)}),M.once("end",()=>{d||(d=new ar(S,P),r(d))});return}if(U==="br"){S=(0,Vt.pipeline)(S,Bi.default.createBrotliDecompress(),M=>{M&&i(M)}),d=new ar(S,P),r(d);return}d=new ar(S,P),r(d)}),KE(g,n).catch(i)})}function v2(e,t){let r=Wc.Buffer.from(`0\r
|
|
67
|
+
\r
|
|
68
|
+
`),i=!1,n=!1,o;e.on("response",a=>{let{headers:s}=a;i=s["transfer-encoding"]==="chunked"&&!s["content-length"]}),e.on("socket",a=>{let s=()=>{if(i&&!n){let d=new Error("Premature close");d.code="ERR_STREAM_PREMATURE_CLOSE",t(d)}},l=d=>{n=Wc.Buffer.compare(d.slice(-5),r)===0,!n&&o&&(n=Wc.Buffer.compare(o.slice(-3),r.slice(0,3))===0&&Wc.Buffer.compare(d.slice(-2),r.slice(3))===0),o=d};a.prependListener("close",s),a.on("data",l),e.on("close",()=>{a.removeListener("close",s),a.removeListener("data",l)})})}var pR=Ve(Kx(),1);var y2=Px?new dR.default.Agent({rejectUnauthorized:!1}):void 0;async function tt(e,t,r){if(!Bm)throw new Error(`ACTION REQUIRED: This tool requires a RASON API bearer token, but RASON_BEARER_TOKEN is not configured.
|
|
69
|
+
|
|
70
|
+
Please ask the user to set their token:
|
|
71
|
+
\u2022 VS Code: Run "RASON: Set Auth Token" from the Command Palette, or set rason.authToken in Settings
|
|
72
|
+
\u2022 Standalone: Set RASON_BEARER_TOKEN environment variable
|
|
73
|
+
|
|
74
|
+
Tools available without a token: about_rason, search_examples, get_example, get_model_template.
|
|
75
|
+
A token is required for: model management, solving, and diagnostics.`);let i=`${EP}/api${t}`;console.error(`[MCP] ${e} ${i}`);let n={Authorization:`Bearer ${Bm}`};r instanceof pR.default?Object.assign(n,r.getHeaders()):n["Content-Type"]="application/json";let o;try{o=await hf(i,{method:e,headers:n,body:r,agent:y2,signal:AbortSignal.timeout(Ix)})}catch(s){let l;if(s instanceof Error&&s.name==="TimeoutError"){let d=t==="/solve"||t==="/diagnose";l=`The RASON server did not respond within ${Math.round(Ix/1e3)}s.`+(d?" For long-running models, consider using submit_solve or submit_diagnose (async) instead.":"")+" The timeout can be adjusted with the RASON_REQUEST_TIMEOUT environment variable (milliseconds)."}else switch(s instanceof Error?s.code:void 0){case"ECONNREFUSED":l="Unable to reach the RASON server. Please try again later or contact support if the issue persists.";break;case"ENOTFOUND":l="The RASON server address could not be resolved. Please check your configuration and try again.";break;case"CERT_HAS_EXPIRED":case"DEPTH_ZERO_SELF_SIGNED_CERT":l="Unable to establish a secure connection to the RASON server. Please contact support.";break;default:l="Unable to connect to the RASON server. Please try again later."}throw console.error(`[MCP] ${l}`),new Error(l)}if(!o.ok){let s=await o.text();throw console.error(`[MCP] HTTP ${o.status}: ${s}`),new Error(`HTTP ${o.status}: ${s}`)}let a=await o.json();return{content:[{type:"text",text:JSON.stringify(a)}]}}var fR=Ve(require("fs/promises"),1);async function ln(e){try{return await fR.default.readFile(e,"utf-8")}catch(t){throw t.code==="ENOENT"?new Error(`File not found: ${e}`):new Error(`Failed to read ${e}: ${t.message}`)}}function gf(e){let t=1/0,r=-1/0,i=0;for(let n of e)n<t&&(t=n),n>r&&(r=n),i+=n;return{min:t,max:r,mean:i/e.length}}function b2(e,t,r){let{data:i,rowNames:n,colNames:o,indexCols:a}=e,s=new Set(Array.isArray(a)?a:[]),l=Array.isArray(n),d=l?n.length:Array.isArray(i)&&Array.isArray(i[0])?i[0].length:0;return r.hasDataFrames=!0,d<=t?e:(r.didSummarize=!0,{objectType:e.objectType,name:e.name,_summarized:!0,rowCount:d,colNames:o,colTypes:e.colTypes,indexCols:a,rowNames:l&&n.length<=t?n:null,...Array.isArray(i)&&{data:i.map((p,f)=>{if(!Array.isArray(p))return{_summarized:!0};let g=o?.[f]!==void 0&&s.has(o[f]),y=p.filter(v=>typeof v=="number");if(y.length===p.length&&y.length>0){if(g){let{min:v,max:x}=gf(y);return{count:y.length,min:v,max:x}}return gf(y)}return g?{count:p.length,uniqueValues:[...new Set(p.map(String))].slice(0,20)}:{count:p.length}})}})}function s_(e,t,r){if(e===null||typeof e!="object")return e;if(Array.isArray(e)){if(e.length<=t)return e.map(a=>s_(a,t,r));r.didSummarize=!0;let n=e.filter(a=>typeof a=="number");if(n.length===e.length)return{_summarized:!0,count:e.length,...gf(n)};if(Array.isArray(e[0])){let a=e.length,s=e[0].length,l=[],d=!0;e:for(let p of e)for(let f of p){if(typeof f!="number"){d=!1;break e}l.push(f)}return{_summarized:!0,type:"matrix",rows:a,cols:s,...d&&l.length>0?gf(l):{}}}let o=e[0];return{_summarized:!0,count:e.length,...typeof o=="object"&&o!==null&&!Array.isArray(o)&&{sample_keys:Object.keys(o)}}}let i=e;return i.objectType==="dataFrame"?b2(i,t,r):Object.fromEntries(Object.entries(i).map(([n,o])=>[n,s_(o,t,r)]))}function x2(e){let t=e?.status?.modelType;return typeof t=="string"?t:void 0}var mR={optimization:"[Optimization result \u2014 key fields: solveStatus/modelStatus (feasibility/optimality), objective value (optimized cost, profit, etc.), variable finalValues (the solution decisions). Constraint slacks show unused capacity; dual prices show the marginal value of relaxing each constraint by one unit. Reduced costs indicate how much a non-basic variable's objective coefficient must improve before it enters the solution. If infeasible, focus on which constraints conflict. If unbounded, check for missing variable bounds.]",simulation:"[Simulation result \u2014 summarize outcomes as distributions: report mean, std dev, percentiles. dataFrames typically hold trial-by-trial data; prefer distributional summary over listing individual trials. Target statistics (e.g., Target(0)) show the probability of falling below a threshold. Compare means across uncertain functions to identify which outputs carry the most risk or variability.]",datamining:"[Data mining result \u2014 report model performance metrics and key fitted parameters. For classification: focus on accuracy, confusion matrix, and per-class precision/recall. For regression: focus on error metrics (RMSE, MAE) and R-squared. For clustering: report cluster sizes and centroids. For time series: forecast values and error metrics. Feature importance rankings reveal which predictors drive the model most.]",calculation:"[Calculation result \u2014 contains computed output values from the model's decision tables, functions, or expressions. Trace how inputs flowed through decision table rules to produce outputs. If multiple decision tables are chained, describe the evaluation sequence.]",flow:"[Multi-stage flow result \u2014 results are organized by stage; each stage's output feeds the next. Review stage outputs in sequence and check the final stage for the overall pipeline result. For each stage, apply the interpretation appropriate to its type (optimization, simulation, etc.). Note how inter-stage data dependencies influenced downstream results.]"},_2="[dataFrame format \u2014 layout is column-oriented: data[i] holds all values for column i (not row i), aligned with colNames[i]. rowNames = row labels. colTypes = data type per column. indexCols = dimensional columns (e.g. factory, product, scenario, trial) rather than value columns.]",$2="[Large dataFrames/arrays were condensed to summary stats. Fields marked _summarized:true were replaced with min/max/mean (numeric value columns), count/min/max (numeric index columns), or count/uniqueValues (string index columns). Use include_full_results=true or the RASON account dashboard for full data.]",w2="[For deeper interpretation, call get_model to retrieve model \u2014 note that model definitions can be large.]";function vf(e,t,r,i,n=!1){if(t)return e;let o;try{o=JSON.parse(e.content[0].text)}catch{return e}let a=x2(o),s={didSummarize:!1,hasDataFrames:!1},l=s_(o,r,s),d=JSON.stringify(l),p=[];a&&mR[a]&&p.push(mR[a]),s.hasDataFrames&&p.push(_2),s.didSummarize&&p.push($2),n&&p.push(w2);let f=p.length>0?p.join(`
|
|
76
|
+
`)+`
|
|
77
|
+
|
|
78
|
+
`+d:d;return{content:[{type:"text",text:f.length>i?f.substring(0,i)+`
|
|
79
|
+
|
|
80
|
+
[Response truncated: ${f.length.toLocaleString()} chars total, limit ${i.toLocaleString()}. Full results are available via your RASON account dashboard or direct API call.]`:f}]}}async function yf(e,t){let r=t.name_or_id?`/model/${encodeURIComponent(t.name_or_id)}`:"/model";if(t.model)return tt(e,r,JSON.stringify(t.model));let i=new l_.default;if(t.rason_model&&t.rason_model_path)throw new Error("Provide either rason_model or rason_model_path, not both.");if(t.rason_model)i.append("RasonModel",t.rason_model);else if(t.rason_model_path){let n=await ln(t.rason_model_path);i.append("RasonModel",n)}if(t.file_paths)for(let n of t.file_paths){let o=Hc.default.basename(n),a=Hc.default.extname(n).toLowerCase(),s=u_.default.lookup(a)||"application/octet-stream";i.append(o,c_.default.createReadStream(n),{filename:o,contentType:s})}return tt(e,r,i)}function hR(e,t,r){let i=[e,t,r].filter(n=>n!==void 0).length;if(i===0)throw new Error("Must provide either model, rason_model_path, or excel_model_path.");if(i>1)throw new Error("Provide only one of: model, rason_model_path, or excel_model_path.")}async function gR(e,t){let r=new l_.default;if(e){let i=await ln(e);r.append("RasonModel",i)}else if(t){let i=Hc.default.basename(t),n=Hc.default.extname(t).toLowerCase(),o=u_.default.lookup(n)||"application/octet-stream";r.append(i,c_.default.createReadStream(t),{filename:i,contentType:o})}return r}var vR=`
|
|
81
|
+
|
|
82
|
+
Diagnostics are most useful for optimization models (structural analysis) and multi-stage flow models (stage graph, pipelines, data sources). For simulation, data mining, and calculation models, results are limited.`;function yR(e){e.registerTool("about_rason",{title:"About RASON",description:`IMPORTANT: Use this tool to answer ANY questions about what RASON is, what it can do, who makes it (Frontline Systems), its capabilities, or where to find RASON / Frontline Systems websites and URLs. Also use this tool when the user asks for RASON or Solver website URLs.
|
|
83
|
+
|
|
84
|
+
RASON (RESTful Analytic Solver Object Notation, https://rason.com) is a JSON-based modeling language by Frontline Systems (https://www.solver.com). RASON supports optimization (linear, nonlinear, mixed-integer, stochastic), Monte Carlo simulation, data science / machine learning, calculation (DMN decision tables, FEEL expressions, box functions), and multi-stage decision flows. Models use Excel-compatible formula syntax and are solved via REST API or locally through the RASON Desktop VS Code extension with first-class Power BI Desktop integration.
|
|
85
|
+
|
|
86
|
+
Do NOT answer questions about RASON from memory \u2014 always call this tool first.`,annotations:{readOnlyHint:!0,destructiveHint:!1,idempotentHint:!0,openWorldHint:!1}},async()=>({content:[{type:"text",text:`# RASON \u2014 RESTful Analytic Solver Object Notation
|
|
87
|
+
|
|
88
|
+
RASON is a modeling language embedded in JSON and a REST API, created by **Frontline Systems, Inc.** for building and deploying decision services powered by analytical models. RASON's JSON-based format is both human-readable and LLM-friendly, making it ideal for AI-assisted model building.
|
|
89
|
+
|
|
90
|
+
## Model Types
|
|
91
|
+
- **Optimization** \u2014 Linear, mixed-integer, nonlinear, conic, quadratic, second-order cone, stochastic programming, robust optimization, genetic algorithms, tabu search \u2014 handling models from small to very large (LP/MIP with millions of variables). Powered by world-class solver engines including Gurobi, XPRESS, MOSEK, and KNITRO
|
|
92
|
+
- **Simulation** \u2014 Monte Carlo simulation with stratified sampling, rank-order correlation, copulas, 100+ probability distributions and statistics, simulation-optimization, stochastic programming
|
|
93
|
+
- **Data Science / Machine Learning** \u2014 Classification, regression, clustering, time series forecasting (ARIMA, exponential smoothing), text mining, neural networks, decision trees, k-nearest neighbors, ensemble methods, feature selection, affinity analysis, scoring
|
|
94
|
+
- **Calculation** \u2014 Decision tables (DMN 1.6 standard with S-FEEL syntax), box functions, iterators, FEEL expressions
|
|
95
|
+
- **Decision Flows** \u2014 Multi-stage pipelines combining any of the above model types
|
|
96
|
+
|
|
97
|
+
## Key Capabilities
|
|
98
|
+
- REST API for integration into web, mobile, and desktop applications
|
|
99
|
+
- Data binding from CSV, Excel, JSON, SQL, Power BI, ODATA, ODBC sources
|
|
100
|
+
- Live Power BI Desktop integration \u2014 read data from running Power BI instances as model inputs and write solver results back with automatic visual refresh
|
|
101
|
+
- Synchronous and asynchronous solving with status monitoring
|
|
102
|
+
- Model versioning and diagnostics
|
|
103
|
+
- PMML import/export for data mining model interchange
|
|
104
|
+
- ~200 example models and starter templates for every model type
|
|
105
|
+
- Available as cloud service, VS Code extension with bundled local solver, standalone MCP server, or downloadable SDK
|
|
106
|
+
|
|
107
|
+
## Key URLs
|
|
108
|
+
- **RASON Web App** (model management, web editor, account): https://rason.com
|
|
109
|
+
- **RASON REST API endpoint**: https://rason.net
|
|
110
|
+
- **Frontline Systems website**: https://www.solver.com
|
|
111
|
+
|
|
112
|
+
## Frontline Systems Product Ecosystem
|
|
113
|
+
Frontline Systems (https://www.solver.com) offers a comprehensive analytics platform. All products below support all RASON model types (optimization, simulation, data science, calculation, decision flows):
|
|
114
|
+
- **Excel Solver** \u2014 Frontline created the original Solver included in Microsoft Excel since 1991; over 1.2 billion copies distributed with every copy of Microsoft Office
|
|
115
|
+
- **Analytic Solver** \u2014 Full-featured Excel add-in (both COM add-in and modern Office.js web add-in) for analytics directly in spreadsheets
|
|
116
|
+
- **RASON Desktop** \u2014 VS Code extension with syntax highlighting, IntelliSense, real-time diagnostics, bundled local solver, and live Power BI Desktop integration \u2014 build, solve, and visualize models without leaving VS Code
|
|
117
|
+
- **RASON MCP Server** \u2014 This server, available standalone or bundled in the VS Code extension, connects any MCP-compatible AI client to the RASON REST API
|
|
118
|
+
- **Solver SDK Platform** \u2014 Native SDKs for C++, C#, Java, Python, R (plus Web Service API for PHP and JavaScript) for embedding solvers in custom applications
|
|
119
|
+
- **Google Sheets Add-ons** \u2014 Ranked among the best Google Sheets add-ons
|
|
120
|
+
|
|
121
|
+
## About Frontline Systems
|
|
122
|
+
Frontline Systems, Inc. (https://www.solver.com), based in Incline Village, Nevada, is the developer of the Excel Solver, Analytic Solver, RASON, and Solver SDKs. With over 30 years of analytics leadership:
|
|
123
|
+
- Over 2 million cloud-based users across 10,000+ organizations worldwide
|
|
124
|
+
- 1,100+ enterprise customers with $1 billion+ in revenue
|
|
125
|
+
- Used by 500,000+ MBA students in 500+ MBA programs; featured in 45+ textbooks
|
|
126
|
+
- Winner of the 2010 INFORMS Impact Prize for the Excel Solver
|
|
127
|
+
- Pioneers in genetic algorithms, GPU-accelerated solvers, convexity testing, robust optimization, and stochastic programming in commercial software
|
|
128
|
+
|
|
129
|
+
## This MCP Server
|
|
130
|
+
This server exposes the RASON REST API as MCP tools for model management (list, get, create, update, delete), solving (sync and async), diagnostics, and access to ~200 example models across optimization, simulation, data science, calculation, and decision flow categories.
|
|
131
|
+
|
|
132
|
+
**Helpful tools:** Use \`search_examples\` to find relevant examples for any problem type. Use \`get_model_template\` to get a starter JSON scaffold for any model type (optimization, simulation, data-science, decision-table, workflow, power-bi, and more).`}]})),e.registerTool("list_models",{title:"GET /model",description:`Retrieve metadata for models in the user's RASON account. Returns a JSON array of model objects, each containing:
|
|
133
|
+
- ModelId: unique identifier (format: userId+modelName+creationDate)
|
|
134
|
+
- ModelName: short name
|
|
135
|
+
- ModelDescr: human-readable description of what the model does
|
|
136
|
+
- ModelType, ModelKind, and other metadata fields
|
|
137
|
+
|
|
138
|
+
Use this to discover available models. Optionally filter by model type and/or kind.
|
|
139
|
+
|
|
140
|
+
Tip: Check here first when the user references a model by name to see if it already exists on the account.`,annotations:{readOnlyHint:!0,destructiveHint:!1,idempotentHint:!0,openWorldHint:!0},inputSchema:I.object({type:I.enum(["all","origin","version","instance"]).optional().describe("Filter models by type. 'origin' = originally POSTed models, 'version' = created by PUTing models of the same name (different versions), 'instance' = created when a model is solved, 'all' = return all types. Omit to list all models without filtering."),kind:I.enum(["all","fitted","rason","excel","lpmps"]).optional().describe("Filter models by kind. 'fitted' = fitted Data Mining model in PMML/JSON format, 'rason' = models defined in RASON language, 'excel' = models defined in Excel language, 'lpmps' = models defined in LP/MPS language, 'all' = return all kinds. Omit to list all models without filtering.")})},async t=>{let r=new URLSearchParams;t.type&&r.set("type",t.type),t.kind&&r.set("kind",t.kind);let i=r.toString()?`?${r.toString()}`:"";return tt("GET",`/model${i}`)}),e.registerTool("get_model",{title:"GET /model/{name_or_id}",description:`Retrieve the actual model definition for a specific model. Returns RASON JSON definition for RASON models.
|
|
141
|
+
|
|
142
|
+
Use this to inspect or modify a model's structure. To solve an existing model, submit_solve can work directly with the model name.
|
|
143
|
+
|
|
144
|
+
Note: Excel models are returned as binary files which cannot be processed by LLMs. Use list_models to inspect metadata for Excel models instead.
|
|
145
|
+
|
|
146
|
+
- If a model name is provided, returns the champion (most recent) model with that name
|
|
147
|
+
- If a model ID is provided (format: userId+modelName+creationDate), returns that specific resource`,annotations:{readOnlyHint:!0,destructiveHint:!1,idempotentHint:!0,openWorldHint:!0},inputSchema:I.object({name_or_id:I.string().describe("The model name or model ID. A model name returns the champion (most recent) version. A model ID (format: userId+modelName+creationDate) returns that specific resource.")})},async t=>tt("GET",`/model/${encodeURIComponent(t.name_or_id)}`)),e.registerTool("post_model",{title:"POST /model",description:`Create a new model by posting a RASON JSON definition. Use this for RASON models (optimization, simulation, data science, calculation (DMN decision tables, FEEL, box functions), or decision flow). The model is saved to the user's account and can later be retrieved, solved, or managed.
|
|
148
|
+
|
|
149
|
+
For Excel models or RASON models with data files, use post_model_with_files instead.`,annotations:{readOnlyHint:!1,destructiveHint:!1,idempotentHint:!1,openWorldHint:!0},inputSchema:I.object({model:I.record(I.string(),I.unknown()).describe("The RASON model object")})},async t=>yf("POST",t)),e.registerTool("post_model_with_files",{title:"POST /model (form-data)",description:`Upload a model with file attachments using multipart form-data. Supports two scenarios:
|
|
150
|
+
|
|
151
|
+
1. RASON model with data files: Provide rason_model (JSON string) or rason_model_path (file path) plus one or more file paths (e.g. CSV or Excel data sources referenced by the model)
|
|
152
|
+
2. Excel model: Provide a single Excel file path (.xlsx) without rason_model. The server will recognize it as an Excel model based on the file extension
|
|
153
|
+
|
|
154
|
+
Returns the created model metadata on success.`,annotations:{readOnlyHint:!1,destructiveHint:!1,idempotentHint:!1,openWorldHint:!0},inputSchema:I.object({rason_model:I.string().optional().describe("The RASON model definition as a JSON string. Required when uploading a RASON model with attached data files. Omit when uploading a standalone Excel model. Mutually exclusive with rason_model_path."),rason_model_path:I.string().optional().describe("Absolute path to a RASON model file (.json). The file will be read and sent as the model definition. Use this instead of rason_model to avoid passing large JSON strings. Mutually exclusive with rason_model."),file_paths:I.array(I.string()).describe("One or more absolute file paths to upload (e.g. 'C:/models/model.xlsx', '/home/user/data.csv')")})},async t=>yf("POST",t)),e.registerTool("put_model",{title:"PUT /model/{name_or_id}",description:`Update an existing model or create a new version with the specified name. If a model with the given name exists, creates a new version (becomes the champion). If no model exists, creates a new model (acts like POST).
|
|
155
|
+
|
|
156
|
+
For Excel models or RASON models with data files, use put_model_with_files instead.`,annotations:{readOnlyHint:!1,destructiveHint:!1,idempotentHint:!1,openWorldHint:!0},inputSchema:I.object({name_or_id:I.string().describe("The model name or model ID. A model name creates/updates the champion version. A model ID (format: userId+modelName+creationDate) updates that specific resource."),model:I.record(I.string(),I.unknown()).describe("The RASON model object")})},async t=>yf("PUT",t)),e.registerTool("put_model_with_files",{title:"PUT /model/{name_or_id} (form-data)",description:`Update an existing model or create a new version with file attachments using multipart form-data. If a model with the given name exists, creates a new version (becomes the champion). If no model exists, creates a new model (acts like POST). Supports two scenarios:
|
|
157
|
+
|
|
158
|
+
1. RASON model with data files: Provide rason_model (JSON string) or rason_model_path (file path) plus one or more file paths (e.g. CSV or Excel data sources referenced by the model)
|
|
159
|
+
2. Excel model: Provide a single Excel file path (.xlsx) without rason_model. The server will recognize it as an Excel model based on the file extension
|
|
160
|
+
|
|
161
|
+
Returns the created/updated model metadata on success.`,annotations:{readOnlyHint:!1,destructiveHint:!1,idempotentHint:!1,openWorldHint:!0},inputSchema:I.object({name_or_id:I.string().describe("The model name or model ID. A model name creates/updates the champion version. A model ID (format: userId+modelName+creationDate) updates that specific resource."),rason_model:I.string().optional().describe("The RASON model definition as a JSON string. Required when uploading a RASON model with attached data files. Omit when uploading a standalone Excel model. Mutually exclusive with rason_model_path."),rason_model_path:I.string().optional().describe("Absolute path to a RASON model file (.json). The file will be read and sent as the model definition. Use this instead of rason_model to avoid passing large JSON strings. Mutually exclusive with rason_model."),file_paths:I.array(I.string()).describe("One or more absolute file paths to upload (e.g. 'C:/models/model.xlsx', '/home/user/data.csv')")})},async t=>yf("PUT",t)),e.registerTool("solve_model",{title:"POST /solve",description:`Submit a model for synchronous (quick) solving. Supports three input methods:
|
|
162
|
+
|
|
163
|
+
1. Inline RASON model: Provide the model as a JSON object
|
|
164
|
+
2. RASON model file: Provide rason_model_path pointing to a .json file
|
|
165
|
+
3. Excel model file: Provide excel_model_path pointing to a .xlsx file
|
|
166
|
+
|
|
167
|
+
The server will solve the model (optimization, simulation, data science, calculation (DMN decision tables, FEEL, box functions), or decision flow) and return the results immediately in the response. Best suited for small to medium models that solve quickly.
|
|
168
|
+
|
|
169
|
+
Typically used for one-off solving of new models or local model files. For models already on the account, submit_solve is usually preferred for async solving.
|
|
170
|
+
|
|
171
|
+
Note: Synchronous solving does not support RASON models with external data files.`,annotations:{readOnlyHint:!1,destructiveHint:!1,idempotentHint:!0,openWorldHint:!0},inputSchema:I.object({model:I.record(I.string(),I.unknown()).optional().describe("The RASON model object (inline JSON). Mutually exclusive with rason_model_path and excel_model_path."),rason_model_path:I.string().optional().describe("Absolute path to a RASON model file (.json). The file will be read and sent for solving. Mutually exclusive with model and excel_model_path."),excel_model_path:I.string().optional().describe("Absolute path to an Excel model file (.xlsx). The file will be uploaded and solved. Mutually exclusive with model and rason_model_path."),include_full_results:I.boolean().optional().describe("When true, returns the complete unsummarized result. By default (false), large arrays and dataFrames are summarized to reduce token usage. Use this only when the user explicitly needs raw data values.")})},async t=>{hR(t.model,t.rason_model_path,t.excel_model_path);let r=t.model?JSON.stringify(t.model):await gR(t.rason_model_path,t.excel_model_path),i=await tt("POST","/solve",r);return vf(i,t.include_full_results??!1,Wm,Hm)}),e.registerTool("submit_solve",{title:"POST /model/{name_or_id}/solve",description:`Submit a previously uploaded model for asynchronous (long) solving. The model must already exist in the user's account (uploaded via post_model or put_model).
|
|
172
|
+
|
|
173
|
+
This places the model on the solving queue and returns immediately with the created model instance metadata (without waiting for the solve to complete).
|
|
174
|
+
|
|
175
|
+
After submitting, use get_solve_status to monitor progress, get_solve_result to retrieve results when complete, and stop_solve to cancel if needed.
|
|
176
|
+
|
|
177
|
+
This is the typical path for solving models already on the account. Can be called with just the model name if it exists on the account.
|
|
178
|
+
|
|
179
|
+
Best suited for large models or models that take a long time to solve.`,annotations:{readOnlyHint:!1,destructiveHint:!1,idempotentHint:!1,openWorldHint:!0},inputSchema:I.object({name_or_id:I.string().describe("The model name or model ID of an existing Origin or Version model. If a model name is provided, solves the champion (most recent) version.")})},async t=>tt("POST",`/model/${encodeURIComponent(t.name_or_id)}/solve`)),e.registerTool("get_solve_status",{title:"GET /model/{name_or_id}/status",description:`Check the solving status of a model. Returns a response with:
|
|
180
|
+
- status: "Complete", "Incomplete", or "Canceled"
|
|
181
|
+
- progress (optional): solving progress details including elapsed time, iterations, objective value, etc.
|
|
182
|
+
|
|
183
|
+
If a model name is provided, returns status for all instances under that name.
|
|
184
|
+
If a model ID is provided, returns status for that specific instance.
|
|
185
|
+
|
|
186
|
+
Use this after submit_solve to monitor when the solve finishes.`,annotations:{readOnlyHint:!0,destructiveHint:!1,idempotentHint:!0,openWorldHint:!0},inputSchema:I.object({name_or_id:I.string().describe("The model name or model ID. A model name returns status for all instances with that name. A model ID returns status for that specific instance.")})},async t=>tt("GET",`/model/${encodeURIComponent(t.name_or_id)}/status`)),e.registerTool("get_solve_result",{title:"GET /model/{name_or_id}/result",description:`Retrieve the solving result for a model. If the model solve is complete, returns the full result (same format as synchronous solve_model). If the model solve is still incomplete, returns the incomplete status instead.
|
|
187
|
+
|
|
188
|
+
If a model name is provided, returns results for all instances under that name.
|
|
189
|
+
If a model ID is provided, returns the result for that specific instance.
|
|
190
|
+
|
|
191
|
+
Use get_solve_status first to confirm the solve is complete before retrieving results.`,annotations:{readOnlyHint:!0,destructiveHint:!1,idempotentHint:!0,openWorldHint:!0},inputSchema:I.object({name_or_id:I.string().describe("The model name or model ID. A model name returns results for all instances with that name. A model ID returns the result for that specific instance."),include_full_results:I.boolean().optional().describe("When true, returns the complete unsummarized result. By default (false), large arrays and dataFrames are summarized to reduce token usage. Use this only when the user explicitly needs raw data values.")})},async t=>{let r=await tt("GET",`/model/${encodeURIComponent(t.name_or_id)}/result`);return vf(r,t.include_full_results??!1,Wm,Hm,!0)}),e.registerTool("stop_solve",{title:"POST /model/{name_or_id}/stop",description:`Request to stop a running model solve. After stopping, the model status becomes 'Canceled'.
|
|
192
|
+
|
|
193
|
+
Depending on the model type, intermediate results may still be available (e.g. the best-so-far solution for an optimization problem). Use get_solve_result after stopping to check if partial results are available.
|
|
194
|
+
|
|
195
|
+
If a model name is provided, stops all running instances under that name.
|
|
196
|
+
If a model ID is provided, stops only that specific instance.`,annotations:{readOnlyHint:!1,destructiveHint:!1,idempotentHint:!0,openWorldHint:!0},inputSchema:I.object({name_or_id:I.string().describe("The model name or model ID. A model name stops all running instances with that name. A model ID stops only that specific instance.")})},async t=>tt("POST",`/model/${encodeURIComponent(t.name_or_id)}/stop`)),e.registerTool("diagnose_model",{title:"POST /diagnose",description:`Submit a model for synchronous (quick) diagnostics. Supports three input methods:
|
|
197
|
+
|
|
198
|
+
1. Inline RASON model: Provide the model as a JSON object
|
|
199
|
+
2. RASON model file: Provide rason_model_path pointing to a .json file
|
|
200
|
+
3. Excel model file: Provide excel_model_path pointing to a .xlsx file
|
|
201
|
+
|
|
202
|
+
The server will analyze the model and return diagnostic information immediately in the response.
|
|
203
|
+
|
|
204
|
+
Note: Synchronous diagnostics do not support RASON models with external data files.`+vR,annotations:{readOnlyHint:!1,destructiveHint:!1,idempotentHint:!0,openWorldHint:!0},inputSchema:I.object({model:I.record(I.string(),I.unknown()).optional().describe("The RASON model object (inline JSON). Mutually exclusive with rason_model_path and excel_model_path."),rason_model_path:I.string().optional().describe("Absolute path to a RASON model file (.json). The file will be read and sent for diagnostics. Mutually exclusive with model and excel_model_path."),excel_model_path:I.string().optional().describe("Absolute path to an Excel model file (.xlsx). The file will be uploaded and diagnosed. Mutually exclusive with model and rason_model_path."),include_full_results:I.boolean().optional().describe("When true, returns the complete unsummarized diagnostic result. By default (false), large arrays and dataFrames are summarized to reduce token usage. Use this only when the user explicitly needs raw data values.")})},async t=>{hR(t.model,t.rason_model_path,t.excel_model_path);let r=t.model?JSON.stringify(t.model):await gR(t.rason_model_path,t.excel_model_path),i=await tt("POST","/diagnose",r);return vf(i,t.include_full_results??!1,Wm,Hm)}),e.registerTool("submit_diagnose",{title:"POST /model/{name_or_id}/diagnose",description:`Submit a previously uploaded model for asynchronous (long) diagnostics. The model must already exist in the user's account (uploaded via post_model or put_model).
|
|
205
|
+
|
|
206
|
+
This places the model on the diagnostics queue and returns immediately with the created model instance metadata (without waiting for diagnostics to complete).
|
|
207
|
+
|
|
208
|
+
After submitting, use get_solve_status to monitor progress, get_solve_result to retrieve diagnostic results when complete, and stop_solve to cancel if needed.`+vR,annotations:{readOnlyHint:!1,destructiveHint:!1,idempotentHint:!1,openWorldHint:!0},inputSchema:I.object({name_or_id:I.string().describe("The model name or model ID of an existing Origin or Version model. If a model name is provided, diagnoses the champion (most recent) version.")})},async t=>tt("POST",`/model/${encodeURIComponent(t.name_or_id)}/diagnose`)),e.registerTool("set_champion",{title:"PATCH /model/{name_or_id}",description:`Set or unset the champion flag on a model version. The champion version is the one returned by default when a model is referenced by name.
|
|
209
|
+
|
|
210
|
+
When setting a new champion, the previous champion for that model name is automatically unmarked. Only origin or version models can be marked as champion (not run instances).
|
|
211
|
+
|
|
212
|
+
- If a model name is provided, targets the current champion (most recent) version
|
|
213
|
+
- If a model ID is provided (format: userId+modelName+creationDate), targets that specific version`,annotations:{readOnlyHint:!1,destructiveHint:!1,idempotentHint:!0,openWorldHint:!0},inputSchema:I.object({name_or_id:I.string().describe("The model name or model ID. A model name targets the current champion (most recent) version. A model ID (format: userId+modelName+creationDate) targets that specific version."),champion:I.boolean().describe("Set to true to mark this model as the champion, or false to remove the champion designation.")})},async t=>tt("PATCH",`/model/${encodeURIComponent(t.name_or_id)}`,t.champion?"champion":void 0)),e.registerTool("delete_model",{title:"DELETE /model/{name_or_id}",description:`Delete models from the user's RASON account. Supports flexible filtering:
|
|
214
|
+
|
|
215
|
+
Behavior based on name_or_id:
|
|
216
|
+
- Model name: Deletes all versions/instances/fitted models/attached files/results for that name
|
|
217
|
+
- Model ID (userId+modelName+creationDate): Deletes that specific model and its attached files/results
|
|
218
|
+
|
|
219
|
+
Optional filters:
|
|
220
|
+
- kind: Delete only specific model kinds (fitted, excel, rason). Can specify multiple kinds.
|
|
221
|
+
- type: Delete only specific model types (origin, version, instance). Can specify multiple types.
|
|
222
|
+
- force: Set to true to delete models that are currently executing (default: false)
|
|
223
|
+
|
|
224
|
+
Returns:
|
|
225
|
+
- status: Descriptive status message
|
|
226
|
+
- deletedModels: Array of successfully deleted model info objects
|
|
227
|
+
- nonDeletedModels: Array of models not deleted because they are executing
|
|
228
|
+
- invalidModels: Array of invalid resource identifiers`,annotations:{readOnlyHint:!1,destructiveHint:!0,idempotentHint:!0,openWorldHint:!0},inputSchema:I.object({name_or_id:I.string().describe("The model name or model ID. A model name affects all models with that name. A model ID (format: userId+modelName+creationDate) affects only that specific resource."),kind:I.array(I.enum(["fitted","excel","rason"])).optional().describe("Filter deletion by model kind. 'fitted' = fitted Data Mining model in PMML/JSON format, 'excel' = models defined in Excel language, 'rason' = models defined in RASON language. Can specify multiple kinds to delete. Omit to delete all kinds."),type:I.array(I.enum(["origin","version","instance"])).optional().describe("Filter deletion by model type. 'origin' = originally POSTed models, 'version' = created by PUTing models of the same name, 'instance' = created when a model is solved. Can specify multiple types to delete. Omit to delete all types."),force:I.boolean().optional().describe("Force deletion of models that are currently executing. Default: false (models in execution will not be deleted).")})},async t=>{let r=new URLSearchParams;t.kind&&t.kind.length>0&&r.set("kind",t.kind.join(",")),t.type&&t.type.length>0&&r.set("type",t.type.join(",")),t.force!==void 0&&r.set("force",t.force.toString());let i=r.toString()?`?${r.toString()}`:"";return tt("DELETE",`/model/${encodeURIComponent(t.name_or_id)}${i}`)})}function bR(e){e.registerPrompt("inspect_models",{title:"Inspect Models",description:`Browse and inspect models in your RASON account.
|
|
229
|
+
|
|
230
|
+
Two modes:
|
|
231
|
+
1. List models (with optional filters by type/kind)
|
|
232
|
+
2. Get a specific model definition by name or ID
|
|
233
|
+
|
|
234
|
+
Examples:
|
|
235
|
+
- 'Show me all Excel models' \u2192 list with kind filter
|
|
236
|
+
- 'What optimization instances do I have?' \u2192 list with type filter
|
|
237
|
+
- 'Get the ProductionPlanning model' \u2192 retrieve specific model`,argsSchema:{name_or_id:I.string().optional().describe("Optional: Model name or ID to retrieve. If provided, gets that specific model instead of listing."),type:I.string().optional().describe("Optional (list mode only): Filter by type (all, origin, version, instance)."),kind:I.string().optional().describe("Optional (list mode only): Filter by kind (all, fitted, excel, rason, lpmps).")}},t=>{if(t.name_or_id)return{messages:[{role:"user",content:{type:"text",text:`Get the model definition using the get_model tool.
|
|
238
|
+
name_or_id: "${t.name_or_id}"`}}]};let r="List models using the list_models tool.";return t.type&&(r+=`
|
|
239
|
+
type: "${t.type}"`),t.kind&&(r+=`
|
|
240
|
+
kind: "${t.kind}"`),{messages:[{role:"user",content:{type:"text",text:r}}]}}),e.registerPrompt("upload_excel_model",{title:"Upload Excel Model",description:`Upload an Excel workbook (.xlsx) as a model to the RASON REST Server.
|
|
241
|
+
|
|
242
|
+
The Excel file can contain optimization, simulation, or other model types that the server will recognize and solve.`,argsSchema:{file_path:I.string().describe("Path to .xlsx file")}},t=>({messages:[{role:"user",content:{type:"text",text:`Upload the Excel model to RASON server using the post_model_with_files tool. file_paths: ["${t.file_path}"]`}}]})),e.registerPrompt("upload_rason_model_with_files",{title:"Upload RASON Model with Data Files",description:`Upload a RASON model definition along with its data files (CSV, Excel, etc.) to the RASON REST Server.
|
|
243
|
+
|
|
244
|
+
The RASON model JSON references external data files, which are uploaded together in a single request.`,argsSchema:{rason_model_path:I.string().describe("Path to RASON model .json file"),file_paths:I.string().describe("Comma-separated data file paths")}},t=>{let r=t.file_paths.split(",").map(i=>i.trim()).filter(i=>i.length>0);return{messages:[{role:"user",content:{type:"text",text:`Upload a RASON model with data files using the post_model_with_files tool.
|
|
245
|
+
rason_model_path: "${t.rason_model_path}"
|
|
246
|
+
file_paths: ${JSON.stringify(r)}`}}]}}),e.registerPrompt("solve_excel_model",{title:"Solve Excel Model (Sync)",description:"Solve an Excel workbook (.xlsx) synchronously on the RASON REST Server. The Excel file can contain optimization, simulation, or other model types. The model will be solved immediately and results returned in the response.",argsSchema:{file_path:I.string().describe("Path to .xlsx file")}},t=>({messages:[{role:"user",content:{type:"text",text:`Solve the Excel model using the solve_model tool. excel_model_path: "${t.file_path}"`}}]})),e.registerPrompt("solve_rason_model",{title:"Solve RASON Model (Sync)",description:`Solve a RASON model file (.json) synchronously on the RASON REST Server. The model will be solved immediately and results returned in the response. Best for small to medium models.
|
|
247
|
+
|
|
248
|
+
Note: Does not support models with external data files.`,argsSchema:{file_path:I.string().describe("Path to RASON model .json file")}},t=>({messages:[{role:"user",content:{type:"text",text:`Solve the RASON model using the solve_model tool. rason_model_path: "${t.file_path}"`}}]})),e.registerPrompt("solve_model_async",{title:"Solve Posted Model (Async)",description:`Submit a previously uploaded model for asynchronous (long) solving on the RASON REST Server.
|
|
249
|
+
|
|
250
|
+
The model must already exist in the user's account. After submission, the solve runs in the background. Use 'Check Solve Status' or 'Get Solve Result' prompts to monitor progress and retrieve results.`,argsSchema:{name_or_id:I.string().describe("Model name or ID to solve")}},t=>({messages:[{role:"user",content:{type:"text",text:`Submit the model for asynchronous solving using the submit_solve tool.
|
|
251
|
+
name_or_id: "${t.name_or_id}"`}}]})),e.registerPrompt("check_solve_status",{title:"Check Solve Status",description:`Check the solving status and progress of a model on the RASON REST Server.
|
|
252
|
+
|
|
253
|
+
Returns whether the solve is Complete, Incomplete, or Canceled, along with optional progress information (elapsed time, iterations, objective value, etc.).`,argsSchema:{name_or_id:I.string().describe("Model name or ID to check status for")}},t=>({messages:[{role:"user",content:{type:"text",text:`Check the solving status using the get_solve_status tool.
|
|
254
|
+
name_or_id: "${t.name_or_id}"`}}]})),e.registerPrompt("get_solve_result",{title:"Get Solve Result",description:`Retrieve the solving result for a completed model on the RASON REST Server.
|
|
255
|
+
|
|
256
|
+
If the solve is complete, returns the full result. If still incomplete, returns the incomplete status. Check status first with 'Check Solve Status' to confirm completion.`,argsSchema:{name_or_id:I.string().describe("Model name or ID to get results for")}},t=>({messages:[{role:"user",content:{type:"text",text:`Get the solving result using the get_solve_result tool.
|
|
257
|
+
name_or_id: "${t.name_or_id}"`}}]})),e.registerPrompt("diagnose_model",{title:"Diagnose Model (Sync)",description:`Run diagnostics on a model file (.json or .xlsx) synchronously on the RASON REST Server.
|
|
258
|
+
|
|
259
|
+
Returns structural diagnostic information immediately. Most useful for optimization and multi-stage flow models. For simulation, data mining, and calculation models, results are limited.`,argsSchema:{file_path:I.string().describe("Path to RASON model .json or Excel .xlsx file")}},t=>{let r=t.file_path.toLowerCase().trim();return{messages:[{role:"user",content:{type:"text",text:`Diagnose the model using the diagnose_model tool. ${r.endsWith(".xlsx")||r.endsWith(".xls")?`excel_model_path: "${t.file_path}"`:`rason_model_path: "${t.file_path}"`}`}}]}}),e.registerPrompt("diagnose_model_async",{title:"Diagnose Posted Model (Async)",description:`Submit a previously uploaded model for asynchronous diagnostics on the RASON REST Server.
|
|
260
|
+
|
|
261
|
+
The model must already exist in the user's account. After submission, diagnostics run in the background. Use 'Check Solve Status' or 'Get Solve Result' prompts to monitor progress and retrieve results.`,argsSchema:{name_or_id:I.string().describe("Model name or ID to diagnose")}},t=>({messages:[{role:"user",content:{type:"text",text:`Submit the model for asynchronous diagnostics using the submit_diagnose tool.
|
|
262
|
+
name_or_id: "${t.name_or_id}"`}}]})),e.registerPrompt("stop_solve",{title:"Stop Solve",description:`Stop a running model solve on the RASON REST Server.
|
|
263
|
+
|
|
264
|
+
Cancels the solve in progress. Depending on the model type, intermediate results may still be available (e.g. best-so-far solution for optimization). Use 'Get Solve Result' after stopping to check for partial results.`,argsSchema:{name_or_id:I.string().describe("Model name or ID to stop solving")}},t=>({messages:[{role:"user",content:{type:"text",text:`Stop the model solve using the stop_solve tool.
|
|
265
|
+
name_or_id: "${t.name_or_id}"`}}]})),e.registerPrompt("delete_models",{title:"Delete Models",description:`Delete models from your RASON account with flexible filtering options.
|
|
266
|
+
|
|
267
|
+
You can delete:
|
|
268
|
+
- All versions and instances of a model by name
|
|
269
|
+
- Specific model kinds (Excel, RASON, fitted)
|
|
270
|
+
- Specific model types (origin, version, instance)
|
|
271
|
+
- Individual models by ID
|
|
272
|
+
|
|
273
|
+
The operation returns detailed information about what was deleted.`,argsSchema:{name_or_id:I.string().describe("Model name or model ID to delete"),kind:I.string().optional().describe("Optional: Filter by kind (fitted, excel, rason). Comma-separated for multiple."),type:I.string().optional().describe("Optional: Filter by type (origin, version, instance). Comma-separated for multiple."),force:I.boolean().optional().describe("Optional: Force deletion of executing models (default: false)")}},t=>{let r=`Delete models using the delete_model tool.
|
|
274
|
+
name_or_id: "${t.name_or_id}"`;if(t.kind){let i=t.kind.split(",").map(n=>n.trim());r+=`
|
|
275
|
+
kind: ${JSON.stringify(i)}`}if(t.type){let i=t.type.split(",").map(n=>n.trim());r+=`
|
|
276
|
+
type: ${JSON.stringify(i)}`}return t.force!==void 0&&(r+=`
|
|
277
|
+
force: ${t.force}`),{messages:[{role:"user",content:{type:"text",text:r}}]}})}var xR=Ve(require("path"),1);function _R(e,t){e.registerResource("model_catalog","rason://models",{description:"Live catalog of all models in the user's RASON account. Each entry includes the model's name, ID, description, type, and kind.",mimeType:"application/json"},async r=>{let i=await tt("GET","/model");return{contents:[{uri:r.href,mimeType:"application/json",text:i.content[0].text}]}}),e.registerResource("examples_reference","rason://examples/reference",{description:"Quick reference guide to the RASON example library. Browse ~200 example models organized by type: optimization, simulation, calculation, data science, decision flows. Includes 40+ feature demos showcasing RASON language capabilities. Use this to understand what kinds of problems RASON can solve and find relevant examples.",mimeType:"text/markdown"},async r=>{let i=xR.default.join(t,"EXAMPLES_REFERENCE.md"),n=await ln(i);return{contents:[{uri:r.href,mimeType:"text/markdown",text:n}]}})}var SR=Ve(require("fs"),1),bf=Ve(require("path"),1);var $R=200;function d_(e,t){let r=e[t];return typeof r=="string"?r:void 0}function wR(e,t){let r=e[t];return Array.isArray(r)?r:void 0}function S2(e,t,r,i){if(r&&e.modelType!==r||i!==void 0&&!!e.isFeatureDemo!==i)return-1;if(!t)return 1;let n=t.toLowerCase().split(/\s+/).filter(a=>a.length>1),o=0;for(let a of n)e.modelName.toLowerCase().includes(a)&&(o+=10),e.description.toLowerCase().includes(a)&&(o+=5),d_(e,"algorithm")?.toLowerCase().includes(a)&&(o+=8),e.tags.some(l=>l.includes(a))&&(o+=4),e.subcategory?.includes(a)&&(o+=3),e.features.some(l=>l.includes(a))&&(o+=2),e.modelType.includes(a)&&(o+=2);return e.modelType==="datamining"&&(o=Math.floor(o*.7)),o}function kR(e,t){let r=bf.default.join(t,"index.json"),i=[];try{i=JSON.parse(SR.default.readFileSync(r,"utf-8")),console.error(`[MCP] Loaded ${i.length} example models from index`)}catch(n){console.error(`[MCP] Warning: Could not load example index: ${n}`)}e.registerTool("search_examples",{title:"Search Example Models",description:`Search ~200 RASON example models by keyword or model type. Returns up to 8 best matches with descriptions and metadata.
|
|
278
|
+
|
|
279
|
+
Model types: optimization, simulation, datamining (data science/ML), calculation (DMN decision tables, FEEL, box functions), flow (multi-stage decision pipelines)
|
|
280
|
+
|
|
281
|
+
Problem domains covered: portfolio optimization, production planning, supply chain, vehicle routing, scheduling, workforce allocation, blending, cutting stock, Monte Carlo risk analysis, demand forecasting, customer churn prediction, classification, regression, clustering, time series forecasting, text mining, business rules, decision tables, decision automation, multi-stage decision flows.
|
|
282
|
+
|
|
283
|
+
Focus on RASON's core strengths: optimization, simulation, and decision models. IMPORTANT: Do not pre-filter by model_type unless the user explicitly requests a specific type. Present results and let scoring surface the best matches.`,annotations:{readOnlyHint:!0,destructiveHint:!1,idempotentHint:!0,openWorldHint:!1},inputSchema:I.object({query:I.string().optional().describe("Search query \u2014 keywords describing what you're looking for. Examples: 'portfolio optimization', 'decision tree classification', 'monte carlo simulation', 'scheduling constraints', 'neural network', 'time series forecasting'"),model_type:I.enum(["optimization","simulation","datamining","calculation","flow"]).optional().describe("Filter by RASON model type"),feature_demo:I.boolean().optional().describe("If true, only return feature demo examples. If false, exclude them.")})},async n=>{if(i.length===0)throw new Error("Example index not loaded. Run 'node scripts/generate-index.js' first.");let o=i.map(s=>({entry:s,score:S2(s,n.query||"",n.model_type,n.feature_demo)})).filter(s=>s.score>0).sort((s,l)=>l.score-s.score).slice(0,8);if(o.length===0)return{content:[{type:"text",text:"No matching examples found. Try broader search terms or different category/type filters."}]};let a=o.map(s=>{let l=s.entry,d=[];d.push(`Type: ${l.modelType}${l.subcategory?" / "+l.subcategory:""}`),l.isFeatureDemo&&d.push("Feature demo"),l.features.length&&d.push(`Features: ${l.features.join(", ")}`),l.tags.length&&d.push(`Tags: ${l.tags.join(", ")}`);let p=d_(l,"objectiveType");p&&d.push(`Objective: ${p}`);let f=d_(l,"algorithm");f&&d.push(`Algorithm: ${f}`);let g=wR(l,"distributions");g?.length&&d.push(`Distributions: ${g.join(", ")}`);let y=wR(l,"hitPolicies");return y?.length&&d.push(`Hit policies: ${y.join(", ")}`),[`**${l.modelName}** (${l.filePath})`,l.description?l.description.substring(0,$R)+(l.description.length>$R?"...":""):"(no description)",d.join(" | ")].join(`
|
|
284
|
+
`)});return{content:[{type:"text",text:`Found ${o.length} matching examples:
|
|
285
|
+
|
|
286
|
+
${a.join(`
|
|
287
|
+
|
|
288
|
+
---
|
|
289
|
+
|
|
290
|
+
`)}`}]}}),e.registerTool("get_example",{title:"Get Example Model",description:"Retrieve the full RASON JSON definition of a specific example model. Use this after search_examples to get the complete model source code as a reference for building new models. Do NOT solve, POST, or run the model unless the user explicitly asks to.",annotations:{readOnlyHint:!0,destructiveHint:!1,idempotentHint:!0,openWorldHint:!1},inputSchema:I.object({file_path:I.string().describe("The file path of the example model (as returned by search_examples). Example: 'Optimization/Linear/ProductMix.json'")})},async n=>{let o=bf.default.resolve(t,n.file_path);if(!o.startsWith(t+bf.default.sep)&&o!==t)throw new Error("Invalid path: must be within the examples directory.");return{content:[{type:"text",text:await ln(o)}]}})}var k2=["blank","optimization","simulation","sim-optimization","data-science","workflow","decision-table","power-bi"],z2={blank:{name:"Blank Model",description:"Minimal RASON model with name and description.",template:{modelName:"my model",modelDescription:""}},optimization:{name:"Optimization Model",description:"Variables, constraints, and objective for optimization (linear, nonlinear, etc.).",template:{comment:"Optimization model template. Use search_examples with model_type 'optimization' to find working examples.",modelName:"my optimization model",modelDescription:"",engineSettings:{engine:""},variables:{comment:"define decision variables using value, lower, upper etc. properties",v1:{value:0,lower:0,finalValue:[]}},data:{comment:"define the data to be used in this model.",d1:{value:1}},formulas:{comment:"optionally create formulas referenced by constraints and objective"},constraints:{comment:"define constraints using formula, lower, upper, equal etc. properties",c1:{formula:"v1",lower:0}},objective:{comment:"define the objective formula with the desired type",obj:{formula:"(v1-d1)^2",type:"min",finalValue:[]}}}},simulation:{name:"Simulation Model",description:"Uncertain variables and output functions for Monte Carlo simulation.",template:{comment:"Simulation model template. Use search_examples with model_type 'simulation' to find working examples.",modelName:"my simulation model",modelDescription:"",modelSettings:{numSimulations:1,numTrials:1e3},engineSettings:{randomSeed:0},uncertainVariables:{comment:"define uncertain variables using formula etc. properties",v1:{formula:"PsiNormal(0, 1)"}},data:{comment:"define the data to be used in this model.",d1:{value:1}},formulas:{comment:"optionally use formulas referenced by the uncertainFunctions section"},uncertainFunctions:{comment:"define the output formulas with the desired result",out:{formula:"v1 + d1",mean:[]}}}},"sim-optimization":{name:"Simulation-Optimization Model",description:"Combines optimization with uncertain variables for stochastic programming.",template:{comment:"Simulation/Optimization model template. Use search_examples with query 'stochastic' or 'uncertainty' to find working examples.",modelName:"my simulation-optimization model",modelDescription:"",engineSettings:{randomSeed:0,engine:""},modelSettings:{numSimulations:1,numTrials:100,simulationOptimization:!0},uncertainVariables:{comment:"define uncertain variables using formula etc. properties",u1:{formula:"PsiNormal(0, 1)"}},variables:{comment:"define decision variables using value, lower, upper, recourse etc. properties",v1:{value:0,lower:0,upper:1e6,finalValue:[]}},data:{comment:"define data to be used in the model.",d1:{value:1}},formulas:{comment:"optionally create formulas referenced by constraints and objective"},constraints:{comment:"define constraints using formula, lower, upper, equal, chanceType etc. properties",c1:{formula:"v1",lower:0}},objective:{comment:"define the objective formula using the desired type, chanceType etc.",obj:{formula:"v1*u1-d1",type:"min",chanceType:"ExpVal",finalValue:[]}}}},"data-science":{name:"Data Science Model",description:"Datasources, datasets, estimator, and actions for classification, regression, clustering, etc.",template:{comment:"Data science model template. Use search_examples with model_type 'datamining' to find working examples.",modelName:"my data science model",modelDescription:"",datasources:{comment:"define datasources to use with this model. Typically these bind to external data sources due to data volume.",my_src:{type:"",connection:""}},datasets:{comment:"datasets are bound to an entry in the 'datasources' section",my_data:{binding:"my_src",targetCol:""}},estimator:{comment:"define an estimator, including the type, algorithm and parameters.",my_est:{type:"",algorithm:"",parameters:{}}},actions:{comment:"define the actions, evaluations, and data to be used by the estimator defined above.",my_act:{data:"my_data",estimator:"my_est",action:"",evaluations:[""]}}}},workflow:{name:"Workflow Model",description:"Multi-stage decision flow connecting multiple RASON models.",template:{comment:"Workflow template. Use search_examples with model_type 'flow' to find working examples.",flowName:"my workflow",flowDescription:"",stage1:{modelName:"",modelDescription:"",comment:"add a model interface or create a model"},stage2:{modelName:"",modelDescription:"",comment:"add a model interface or create a model"}}},"decision-table":{name:"Decision Table Model",description:"Decision tables, box functions, and formulas with Excel or FEEL expressions.",template:{comment:"Decision table template. Use search_examples with model_type 'calculation' to find working examples.",modelName:"my decision model",modelDescription:"",typeDefs:{comment:"optionally define custom types applied to data"},decisionTables:{comment:"optionally define decision tables"},boxFunctions:{comment:"optionally define box functions"},data:{comment:"define data with value, binding etc. properties",d1:{value:1,binding:"get"}},formulas:{comment:"define the decision output formulas in Excel or FEEL",o1:{formula:"d1^2",finalValue:[]},o2:{feelFormula:"d1**2",finalValue:[]}}}},"power-bi":{name:"Power BI Connected Model",description:"RASON model with datasource bindings to Power BI tables.",template:{comment:"Template for a Power BI-connected RASON model.",modelName:"my power bi model",modelDescription:"",datasources:{pbi_src:{type:"powerbi",connection:"Products",comment:"This datasource binds to a Power BI table."}},data:{products:{binding:"pbi_src",comment:"This dataset is automatically populated from Power BI."}}}}};function zR(e){e.registerTool("get_model_template",{title:"Get RASON Model Template",description:`Get a RASON model template \u2014 a bare JSON scaffold for a specific model type. Use as a structural reference or starting point.
|
|
291
|
+
|
|
292
|
+
Available templates:
|
|
293
|
+
- blank: Minimal model with name and description
|
|
294
|
+
- optimization: Variables, constraints, objective (linear, nonlinear, etc.)
|
|
295
|
+
- simulation: Uncertain variables, output functions (Monte Carlo)
|
|
296
|
+
- sim-optimization: Stochastic programming (optimization + uncertainty)
|
|
297
|
+
- data-science: Datasources, datasets, estimator, actions
|
|
298
|
+
- workflow: Multi-stage decision flow connecting models
|
|
299
|
+
- decision-table: DMN 1.6 decision tables, box functions, Excel/FEEL formulas
|
|
300
|
+
- power-bi: Model with Power BI Desktop datasource bindings (first-class integration)`,annotations:{readOnlyHint:!0,destructiveHint:!1,idempotentHint:!0,openWorldHint:!1},inputSchema:I.object({template_id:I.enum(k2).describe("The model type to get a template for.")})},async({template_id:t})=>{let r=z2[t];return{content:[{type:"text",text:`# ${r.name}
|
|
301
|
+
|
|
302
|
+
${r.description}
|
|
303
|
+
|
|
304
|
+
\`\`\`json
|
|
305
|
+
`+JSON.stringify(r.template,null,2)+"\n```"}]}})}function Ge(e){return!e||typeof e!="object"||Array.isArray(e)?[]:Object.entries(e).filter(([t])=>t.toLowerCase()!=="comment").map(([t,r])=>[t,r&&typeof r=="object"&&!Array.isArray(r)?r:{_raw:r}])}function Ke(e){return!e||typeof e!="object"||Array.isArray(e)?0:Object.keys(e).filter(t=>t.toLowerCase()!=="comment").length}function ye(e,t){let r=e?.[t];return typeof r=="string"?r:void 0}function We(e,t){let r=e?.[t];return r&&typeof r=="object"&&!Array.isArray(r)?r:void 0}function T2(e){let t=[];if(typeof e=="string")t.push(e);else if(Array.isArray(e))for(let i of e)typeof i=="string"&&t.push(i);if(t.length===0)return[];let r=t.join(" ").match(/Psi\w+/g);return[...new Set(r||[])]}function P2(e){let t=[];for(let r of["objective","constraints","formulas"]){let i=We(e,r);if(i)for(let[,n]of Ge(i)){let o=ye(n,"formula");o&&t.push(o)}}return t}var I2={U:"Unique \u2014 exactly one rule matches",A:"Any \u2014 multiple may match but must agree",F:"First \u2014 first matching rule wins",P:"Priority \u2014 highest priority match wins",C:"Collect \u2014 all matching rules fire",R:"Rule order \u2014 all rules in definition order",O:"Output order \u2014 all rules sorted by output"},TR={ExpVal:"optimize expected value across scenarios",VaR:"Value at Risk \u2014 satisfy with given probability",CVaR:"Conditional VaR \u2014 optimize tail expectation"};function p_(e){let t=[],r=ye(e,"modelType")?.toLowerCase();if(r&&["optimization","simulation","calculation","datamining","flow"].includes(r))return Qn(e,r,t),{type:r,subtypeHints:t};if("flowName"in e||"workflowName"in e||"flow"in e||"workflow"in e)return Qn(e,"flow",t),{type:"flow",subtypeHints:t};if(Object.keys(e).filter(d=>{let p=e[d];return p&&typeof p=="object"&&!Array.isArray(p)&&"modelName"in p}).length>=2)return Qn(e,"flow",t),{type:"flow",subtypeHints:t};let n=We(e,"actions"),o=n&&Ge(n).some(([,d])=>{let p=ye(d,"action");return p==="fit"||p==="predict"});if(("estimator"in e||"transformer"in e||"fittedModel"in e||o)&&!("objective"in e))return Qn(e,"datamining",t),{type:"datamining",subtypeHints:t};let a="objective"in e,s="uncertainVariables"in e,l=e?.modelSettings?.simulationOptimization;return a&&(s||l)?(t.push("sim-optimization"),Qn(e,"optimization",t),{type:"optimization",subtypeHints:t}):a?(Qn(e,"optimization",t),{type:"optimization",subtypeHints:t}):s||"uncertainFunctions"in e?(Qn(e,"simulation",t),{type:"simulation",subtypeHints:t}):"decisionTables"in e||"boxFunctions"in e||"boxIterators"in e?(Qn(e,"calculation",t),{type:"calculation",subtypeHints:t}):{type:"unknown",subtypeHints:[]}}function Qn(e,t,r){if(t==="optimization"){let i=We(e,"variables"),n=!0;if(i)for(let[,a]of Ge(i)){let s=ye(a,"type");(s==="binary"||s==="integer")&&(n=!1,r.includes("mixed-integer")||r.push("mixed-integer"))}"uncertainVariables"in e&&!r.includes("sim-optimization")&&r.push("stochastic");for(let a of["objective","constraints"]){let s=We(e,a);if(s)for(let[,l]of Ge(s))ye(l,"chanceType")&&!r.includes("chance-constrained")&&r.push("chance-constrained")}P2(e).some(a=>a.toLowerCase().includes("quadproduct"))?r.push("quadratic"):n&&!r.includes("stochastic")&&!r.includes("chance-constrained")&&r.push("linear")}if(t==="datamining"){"fittedModel"in e&&!("estimator"in e)&&r.push("scoring");let i=We(e,"estimator");if(i)for(let[,n]of Ge(i)){let o=ye(n,"type"),a=ye(n,"algorithm");o&&r.push(o),a&&r.push(a)}}if(t==="flow"){let i=[];for(let n of Object.keys(e)){let o=e[n];o&&typeof o=="object"&&!Array.isArray(o)&&"modelName"in o&&i.push(p_(o).type)}i.length>0&&r.push(`stages: ${i.join(" \u2192 ")}`)}}function E2(e){let t=[],r=[],i=We(e,"variables");if(i){let s=Ge(i),l=0,d=0,p=0,f=!1,g=!1;for(let[,v]of s){let x=ye(v,"type")||"continuous";x==="binary"?d++:x==="integer"?p++:l++,"finalValue"in v&&(f=!0),v.upper===void 0&&x!=="binary"&&(g=!0)}let y=[];l&&y.push(`${l} continuous`),d&&y.push(`${d} binary`),p&&y.push(`${p} integer`),t.push(`Variables: ${s.length} (${y.join(", ")})`),f||r.push("No finalValue on variables \u2014 solution values won't appear in results"),g&&r.push("Some variables have no upper bound")}else r.push("No variables section");let n=We(e,"constraints");if(n){let s=Ge(n),l=0,d=0,p=0,f=0,g=0;for(let[,v]of s)ye(v,"chanceType")?f++:v.equal!==void 0?l++:v.lower!==void 0&&v.upper!==void 0?d++:v.lower!==void 0||v.upper!==void 0?p++:g++;let y=[];l&&y.push(`${l} equality`),d&&y.push(`${d} range`),p&&y.push(`${p} inequality`),f&&y.push(`${f} chance`),g&&y.push(`${g} unbounded`),t.push(`Constraints: ${s.length} (${y.join(", ")})`);for(let[v,x]of s){let S=ye(x,"chanceType");if(S){let P=x.chanceProbability;r.push(`Constraint "${v}": ${TR[S]||S}${P!==void 0?` (p=${P})`:""}`)}}}let o=We(e,"objective");if(o)for(let[,s]of Ge(o)){let l=ye(s,"type")||"?",d=ye(s,"chanceType");t.push(d?`Objective: ${l} (${TR[d]||d})`:`Objective: ${l}`),"finalValue"in s||r.push("No finalValue on objective \u2014 optimal value won't appear in results")}else r.push("No objective \u2014 feasibility problem or incomplete model");let a=Ke(e.uncertainVariables);return a&&t.push(`Uncertain Variables: ${a}`),m_(e,t),{lines:t,observations:r}}function R2(e){let t=[],r=[],i=We(e,"uncertainVariables");if(i){let o=Ge(i),a={};for(let[l,d]of o){let p=T2(d.formula),f=p.length>0?p.join("+"):"other";a[f]||(a[f]=[]),a[f].push(l)}let s=Object.keys(a);if(s.length===1&&o.length>3)t.push(`Uncertain Variables: ${o.length}, all ${s[0]}`);else{let l=Object.entries(a).map(([d,p])=>`${p.length} \xD7 ${d}`);t.push(`Uncertain Variables: ${o.length} (${l.join(", ")})`)}}else r.push("No uncertainVariables \u2014 simulation has no random inputs");let n=We(e,"uncertainFunctions");if(n){let o=Ge(n),a=new Set(["formula","comment","_raw","dimensions","feelformula"]),s=new Set;for(let[,d]of o)for(let p of Object.keys(d))a.has(p.toLowerCase())||s.add(p);let l=s.size>0?`, statistics: [${[...s].join(", ")}]`:"";t.push(`Uncertain Functions: ${o.length}${l}`)}else r.push("No uncertainFunctions \u2014 simulation captures no output distributions");return m_(e,t),{lines:t,observations:r}}function j2(e){let t=[],r=[],i=We(e,"decisionTables");if(i){let s=Ge(i);t.push(`Decision Tables: ${s.length}`);for(let[l,d]of s){let p=[];Array.isArray(d.inputs)&&p.push(`${d.inputs.length} inputs`),Array.isArray(d.outputs)&&p.push(`${d.outputs.length} outputs`),Array.isArray(d.rules)&&p.push(`${d.rules.length} rules`);let f=ye(d,"hitPolicy");if(f){let g=f.toUpperCase().replace(/[+<>#]$/,""),y=I2[g];p.push(y?`hitPolicy=${f} (${y})`:`hitPolicy=${f}`)}t.push(` - ${l}: ${p.join(", ")}`)}}let n=Ke(e.boxFunctions);n&&t.push(`Box Functions: ${n}`);let o=We(e,"boxIterators");if(o){let s=Ge(o),l=0,d=0,p=0,f=new Set;for(let[,v]of s){"for"in v?l++:"some"in v?d++:"every"in v&&p++;let x=ye(v,"language");x&&f.add(x)}let g=[];l&&g.push(`${l} for`),d&&g.push(`${d} some`),p&&g.push(`${p} every`);let y=f.size>0?`, languages: ${[...f].join(", ")}`:"";t.push(`Box Iterators: ${s.length} (${g.join(", ")}${y})`)}let a=Ke(e.typeDefs);return a&&t.push(`Type Definitions: ${a}`),m_(e,t),O2(e)&&r.push("Uses FEEL expressions (in addition to or instead of Excel syntax)"),{lines:t,observations:r}}function O2(e){let t=We(e,"formulas");return t?Ge(t).some(([,r])=>"feelFormula"in r):!1}function A2(e){let t=[],r=[],i=Ke(e.datasources),n=We(e,"datasets"),o=Ke(n),a=!1,s=new Set;if(n)for(let[v,x]of Ge(n)){let S=ye(x,"targetCol");S&&s.add(S),(v.toLowerCase().includes("valid")||v.toLowerCase().includes("test"))&&(a=!0)}t.push(`Data: ${i} source${i!==1?"s":""} \u2192 ${o} dataset${o!==1?"s":""}${a?" (includes validation)":""}`),s.size>0&&t.push(`Target: ${[...s].join(", ")}`),!a&&o===1&&r.push("Single dataset \u2014 no validation/test split for model evaluation");let l=We(e,"estimator");if(l)for(let[v,x]of Ge(l)){let S=ye(x,"type")||"?",P=ye(x,"algorithm")||"?",U=We(x,"parameters"),C=U?Object.keys(U).filter(M=>M!=="comment").length:0;t.push(`Estimator: ${v} \u2014 ${S}/${P}${C?` (${C} params)`:""}`)}let d=We(e,"weakLearner");if(d)for(let[v,x]of Ge(d))t.push(`Weak Learner: ${v} \u2014 ${ye(x,"type")||"?"}/${ye(x,"algorithm")||"?"}`);let p=We(e,"fittedModel");if(p){let v=Ge(p);for(let[x,S]of v){let P=ye(S,"modelName")||"?";t.push(`Fitted Model: ${x} \u2192 ${P}`)}l||r.push("Scoring model \u2014 uses pre-fitted model, no training step")}let f=We(e,"transformer");if(f)for(let[v,x]of Ge(f))t.push(`Transformer: ${v} \u2014 ${ye(x,"type")||"?"}/${ye(x,"algorithm")||"?"}`);let g=Ke(e.preProcessor);g&&t.push(`PreProcessor: ${g} step${g!==1?"s":""}`);let y=We(e,"actions");if(y){let v=Ge(y),x=0,S=!1,P=!1;t.push(`
|
|
306
|
+
Pipeline (${v.length} action${v.length!==1?"s":""}):`);for(let[U,C]of v){let M=ye(C,"action")||"?",D=ye(C,"trainData")||ye(C,"data")||"",le=ye(C,"estimator")||ye(C,"fittedModel")||"",Le=C.evaluations,wt=Array.isArray(Le)?Le.length:0;wt>0&&(x+=wt,P=!0),ye(C,"export")&&(S=!0),t.push(` ${U}: ${M}(${D}${le?` \u2192 ${le}`:""})${wt?` [${wt} evals]`:""}`)}x&&t.push(`Total evaluations requested: ${x}`),S&&t.push("Model export: yes"),P||r.push("No evaluations in any action \u2014 model trains but reports no metrics")}return{lines:t,observations:r}}function N2(e){let t=[],r=[],i=new Set(["flowName","workflowName","flowDescription","workflowDescription","modelType","modelName","modelDescription","modelSettings","comment"]),n=[];for(let[a,s]of Object.entries(e))i.has(a)||s&&typeof s=="object"&&!Array.isArray(s)&&"modelName"in s&&n.push({key:a,typeResult:p_(s),stageObj:s});t.push(`Stages: ${n.length}`);for(let{key:a,typeResult:s,stageObj:l}of n){let d=s.subtypeHints.length>0?` [${s.subtypeHints.join(", ")}]`:"",p=C2(l,s.type),f=p.length>0?` \u2014 ${p.join(", ")}`:"";t.push(` ${a}: ${s.type}${d}${f}`)}let o=[];for(let{key:a,stageObj:s}of n){let l=We(s,"inputParameters");if(l)for(let[d,p]of Ge(l)){let f=ye(p,"value")||String(p._raw??"");f&&o.push(`${a}.${d} \u2190 ${f}`)}}if(o.length>0){t.push(`
|
|
307
|
+
Data flow:`);for(let a of o)t.push(` ${a}`)}return{lines:t,observations:r}}function C2(e,t){let r=[],i=Ke(e.variables),n=Ke(e.constraints),o=Ke(e.uncertainVariables),a=Ke(e.uncertainFunctions),s=Ke(e.decisionTables);i&&r.push(`${i} vars`),n&&r.push(`${n} constraints`),o&&r.push(`${o} uncertain vars`),a&&r.push(`${a} uncertain funcs`),s&&r.push(`${s} decision tables`);let l=We(e,"objective");if(l)for(let[,d]of Ge(l)){let p=ye(d,"type");p&&r.push(`objective: ${p}`)}return r}function D2(e){return{lines:[`Top-level keys: ${Object.keys(e).filter(r=>r.toLowerCase()!=="comment").join(", ")}`],observations:["Could not determine model type \u2014 may not be a valid RASON model"]}}function m_(e,t){let r=[],i=Ke(e.data),n=Ke(e.formulas),o=Ke(e.datasources),a=Ke(e.datasets);i&&r.push(`Data: ${i}`),o&&r.push(`Datasources: ${o}`),a&&r.push(`Datasets: ${a}`),n&&r.push(`Formulas: ${n}`),r.length&&t.push(r.join(" | "))}function U2(e){let t=[],r=ye(e,"modelName")||ye(e,"flowName")||ye(e,"workflowName")||"Unnamed Model",i=ye(e,"modelDescription")||ye(e,"flowDescription")||ye(e,"workflowDescription"),{type:n,subtypeHints:o}=p_(e);if(t.push(`This is a structural analysis of the RASON model, not the full model JSON. If you need the complete model and don't already have it in context, you can retrieve it using available tools (e.g. read the file, get_model) or ask the user to provide it.
|
|
308
|
+
`),t.push(`## Model: ${r}`),t.push(`Type: ${n}${o.length>0?` (${o.join(", ")})`:""}`),i){let x=i.length>300?i.substring(0,297)+"...":i;t.push(`Description: ${x}`)}let a;switch(n){case"optimization":a=E2(e);break;case"simulation":a=R2(e);break;case"calculation":a=j2(e);break;case"datamining":a=A2(e);break;case"flow":a=N2(e);break;default:a=D2(e);break}if(t.push(`
|
|
309
|
+
### Structure`),t.push(...a.lines),a.observations.length>0){t.push(`
|
|
310
|
+
### Observations`);for(let x of a.observations)t.push(`- ${x}`)}let s=new Set(["modelName","modelDescription","modelType","modelSettings","comment","variables","constraints","objective","uncertainVariables","uncertainFunctions","formulas","data","datasources","datasets","estimator","transformer","fittedModel","weakLearner","preProcessor","actions","decisionTables","boxFunctions","boxIterators","typeDefs","flowName","workflowName","flowDescription","workflowDescription","engineSettings","indexSets","parameters","evaluations","contexts"]),l=Object.keys(e).filter(x=>{if(s.has(x))return!1;let S=e[x];return!(S&&typeof S=="object"&&!Array.isArray(S)&&"modelName"in S)}),d=[],p=Ke(e.engineSettings);p&&d.push(`engineSettings (${p})`);let f=Ke(e.indexSets);f&&d.push(`indexSets (${f})`);let g=Ke(e.parameters);g&&d.push(`parameters (${g})`);let y=Ke(e.evaluations);y&&d.push(`evaluations (${y})`);let v=Ke(e.contexts);return v&&d.push(`contexts (${v})`),(d.length>0||l.length>0)&&(t.push(`
|
|
311
|
+
### Other sections`),d.length>0&&t.push(d.join(" | ")),l.length>0&&t.push(`Unrecognized: ${l.join(", ")}`)),t.join(`
|
|
312
|
+
`)}function PR(e){e.registerTool("describe_model",{title:"Analyze RASON Model",description:"Analyze and classify a RASON model: reliably detect model type and subtype (optimization \u2014 LP, QP, MIP, stochastic, chance-constrained; simulation; datamining \u2014 classification, regression, clustering; calculation \u2014 decision tables, box functions; multi-stage flow), inventory and classify components (variable types, constraint types, distribution families, ML pipelines, inter-stage data flow), and identify issues (missing result requests, absent validation data, empty output sections). Provides deterministic RASON-specific analysis beyond what raw JSON inspection reveals. Call whenever the user asks about, discusses, or works with a RASON model \u2014 whether open in the editor, referenced as a file, provided inline, or stored on the RASON server.",annotations:{readOnlyHint:!0,destructiveHint:!1,idempotentHint:!0,openWorldHint:!0},inputSchema:I.object({model:I.record(I.string(),I.unknown()).optional().describe("The RASON model as a JSON object. Mutually exclusive with rason_model_path and name_or_id."),rason_model_path:I.string().optional().describe("Path to a file containing a RASON model. Mutually exclusive with model and name_or_id."),name_or_id:I.string().optional().describe("Name or ID of an existing model on the RASON account. The model will be fetched and analyzed. Mutually exclusive with model and rason_model_path.")})},async t=>{let{model:r,rason_model_path:i,name_or_id:n}=t,o=[r,i,n].filter(l=>l!==void 0).length;if(o===0)throw new Error("Must provide one of: model, rason_model_path, or name_or_id.");if(o>1)throw new Error("Provide only one of: model, rason_model_path, or name_or_id.");let a;if(r)a=r;else if(i){let l=await ln(i);try{a=JSON.parse(l)}catch(d){throw new Error(`Failed to parse JSON from ${i}: ${d instanceof SyntaxError?d.message:"unknown error"}. The file may contain syntax errors or incomplete JSON. Read the file directly to inspect and fix the content.`)}}else{let d=(await tt("GET",`/model/${encodeURIComponent(n)}`)).content[0].text;try{a=JSON.parse(d)}catch(p){throw new Error(`Failed to parse model response for "${n}": ${p instanceof SyntaxError?p.message:"unknown error"}. Use get_model to retrieve the raw content and inspect it directly.`)}}return{content:[{type:"text",text:U2(a)}]}})}var ER=process.env.RASON_EXAMPLES_DIR||IR.default.resolve(__dirname,"../examples"),Wi=new Lm({name:"rason-mcp-server",version:"2026.5.0"},{instructions:`This MCP server connects to Frontline Systems' RASON REST API (endpoint: https://rason.net, web app: https://rason.com). RASON (RESTful Analytic Solver Object Notation) is a JSON-based modeling language created by Frontline Systems, Inc. (https://www.solver.com), the creator of the Excel Solver, for defining and solving analytical models via a REST API.
|
|
313
|
+
|
|
314
|
+
RASON model types:
|
|
315
|
+
- Optimization \u2014 linear, mixed-integer, nonlinear, conic, quadratic, stochastic; powered by Gurobi, XPRESS, MOSEK, KNITRO engines
|
|
316
|
+
- Simulation \u2014 Monte Carlo simulation with 100+ probability distributions (Psi* functions), simulation-optimization, stochastic programming
|
|
317
|
+
- Data Science / Machine Learning \u2014 classification, regression, clustering, time series forecasting, text mining, neural networks, ensemble methods
|
|
318
|
+
- Calculation \u2014 DMN 1.6 decision tables with S-FEEL expressions, box functions, iterators
|
|
319
|
+
- Decision Flows \u2014 multi-stage pipelines combining any of the above model types
|
|
320
|
+
|
|
321
|
+
RASON models are JSON objects with domain-specific top-level blocks (e.g. variables/constraints/objective for optimization, uncertainVariables/uncertainFunctions for simulation). Formulas use Excel-compatible syntax (SUM, IF, INDEX, etc.) plus Psi* functions for probability distributions.
|
|
322
|
+
|
|
323
|
+
Key integrations: first-class Power BI Desktop support (read/write live data), data binding from CSV, Excel, JSON, SQL, ODATA, ODBC sources.
|
|
324
|
+
|
|
325
|
+
Do NOT answer questions about RASON from memory \u2014 use the about_rason tool for accurate information. Use search_examples and get_example to find and retrieve relevant example models. Use get_model_template to retrieve starter templates for building new models.`,capabilities:{tools:{},prompts:{},resources:{}}});yR(Wi);bR(Wi);_R(Wi,ER);kR(Wi,ER);zR(Wi);PR(Wi);async function M2(){let e=new Vm;await Wi.connect(e),console.error("RASON MCP server running on stdio")}M2().catch(e=>{console.error("Fatal error:",e),process.exit(1)});
|
|
326
|
+
/*! Bundled license information:
|
|
327
|
+
|
|
328
|
+
mime-db/index.js:
|
|
329
|
+
(*!
|
|
330
|
+
* mime-db
|
|
331
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
332
|
+
* Copyright(c) 2015-2022 Douglas Christopher Wilson
|
|
333
|
+
* MIT Licensed
|
|
334
|
+
*)
|
|
335
|
+
|
|
336
|
+
mime-types/index.js:
|
|
337
|
+
(*!
|
|
338
|
+
* mime-types
|
|
339
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
340
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
341
|
+
* MIT Licensed
|
|
342
|
+
*)
|
|
343
|
+
|
|
344
|
+
web-streams-polyfill/dist/ponyfill.es2018.js:
|
|
345
|
+
(**
|
|
346
|
+
* @license
|
|
347
|
+
* web-streams-polyfill v3.3.3
|
|
348
|
+
* Copyright 2024 Mattias Buelens, Diwank Singh Tomer and other contributors.
|
|
349
|
+
* This code is released under the MIT license.
|
|
350
|
+
* SPDX-License-Identifier: MIT
|
|
351
|
+
*)
|
|
352
|
+
|
|
353
|
+
fetch-blob/index.js:
|
|
354
|
+
(*! fetch-blob. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
|
|
355
|
+
|
|
356
|
+
formdata-polyfill/esm.min.js:
|
|
357
|
+
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
|
|
358
|
+
|
|
359
|
+
node-domexception/index.js:
|
|
360
|
+
(*! node-domexception. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
|
|
361
|
+
*/
|