@goodhood-web/nebenan-core 3.4.0-development.27 → 3.4.0-development.28
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/index.js +7 -7
- package/index.mjs +2161 -2145
- package/package.json +1 -1
- package/style.css +1 -1
package/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react/jsx-runtime"),I=require("react"),D=require("@goodhood-web/ui"),Qt=require("@goodhood-web/nebenan-base"),Gr=require("@goodhood-web/api/strapi"),Po=require("@goodhood-web/services/event-bus"),Fn=require("@goodhood-web/api/core"),Cu=require("@goodhood-web/services/chargebee"),Nu=require("@goodhood-web/services/analytics"),Iu=require("@goodhood-web/services/consent");var nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Au(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ya=Au,Ru=typeof nt=="object"&&nt&&nt.Object===Object&&nt,Mu=Ru,Du=Mu,Fu=typeof self=="object"&&self&&self.Object===Object&&self,Vu=Du||Fu||Function("return this")(),jo=Vu,Lu=jo,zu=function(){return Lu.Date.now()},Uu=zu,qu=/\s/;function Bu(e){for(var t=e.length;t--&&qu.test(e.charAt(t)););return t}var Zu=Bu,Wu=Zu,Hu=/^\s+/;function Gu(e){return e&&e.slice(0,Wu(e)+1).replace(Hu,"")}var Ku=Gu,Yu=jo,Ju=Yu.Symbol,Oo=Ju,ei=Oo,xo=Object.prototype,Xu=xo.hasOwnProperty,Qu=xo.toString,Cr=ei?ei.toStringTag:void 0;function ed(e){var t=Xu.call(e,Cr),r=e[Cr];try{e[Cr]=void 0;var n=!0}catch{}var a=Qu.call(e);return n&&(t?e[Cr]=r:delete e[Cr]),a}var td=ed,rd=Object.prototype,nd=rd.toString;function ad(e){return nd.call(e)}var sd=ad,ti=Oo,id=td,od=sd,cd="[object Null]",ud="[object Undefined]",ri=ti?ti.toStringTag:void 0;function dd(e){return e==null?e===void 0?ud:cd:ri&&ri in Object(e)?id(e):od(e)}var ld=dd;function fd(e){return e!=null&&typeof e=="object"}var hd=fd,md=ld,pd=hd,yd="[object Symbol]";function _d(e){return typeof e=="symbol"||pd(e)&&md(e)==yd}var gd=_d,vd=Ku,ni=Ya,$d=gd,ai=NaN,bd=/^[-+]0x[0-9a-f]+$/i,wd=/^0b[01]+$/i,Sd=/^0o[0-7]+$/i,Ed=parseInt;function Td(e){if(typeof e=="number")return e;if($d(e))return ai;if(ni(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ni(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=vd(e);var r=wd.test(e);return r||Sd.test(e)?Ed(e.slice(2),r?2:8):bd.test(e)?ai:+e}var Pd=Td,jd=Ya,ma=Uu,si=Pd,Od="Expected a function",xd=Math.max,kd=Math.min;function Cd(e,t,r){var n,a,s,i,o,u,c=0,l=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError(Od);t=si(t)||0,jd(r)&&(l=!!r.leading,f="maxWait"in r,s=f?xd(si(r.maxWait)||0,t):s,g="trailing"in r?!!r.trailing:g);function S(x){var A=n,G=a;return n=a=void 0,c=x,i=e.apply(G,A),i}function $(x){return c=x,o=setTimeout(h,t),l?S(x):i}function b(x){var A=x-u,G=x-c,K=t-A;return f?kd(K,s-G):K}function y(x){var A=x-u,G=x-c;return u===void 0||A>=t||A<0||f&&G>=s}function h(){var x=ma();if(y(x))return w(x);o=setTimeout(h,b(x))}function w(x){return o=void 0,g&&n?S(x):(n=a=void 0,i)}function k(){o!==void 0&&clearTimeout(o),c=0,n=u=a=o=void 0}function T(){return o===void 0?i:w(ma())}function p(){var x=ma(),A=y(x);if(n=arguments,a=this,u=x,A){if(o===void 0)return $(u);if(f)return clearTimeout(o),o=setTimeout(h,t),S(u)}return o===void 0&&(o=setTimeout(h,t)),i}return p.cancel=k,p.flush=T,p}var Nd=Cd,Id=Nd,Ad=Ya,Rd="Expected a function";function Md(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(Rd);return Ad(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),Id(e,t,{leading:n,maxWait:t,trailing:a})}var Dd=Md;const Fd=Qn(Dd),Vd=690,Ld=(e=Vd)=>{const[t,r]=I.useState(!1),n=I.useCallback(Fd(()=>{r(window.matchMedia(`(min-width: ${e}px)`).matches)},300),[e]);return I.useEffect(()=>(n(),window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}),[e]),t},zd="_title_1v9ke_141",Ud={title:zd},qd=({items:e,title:t})=>_.jsxs("div",{children:[_.jsx(D.Typography,{type:"h3",className:Ud.title,children:t}),_.jsx(D.Accordion,{children:e.map(r=>_.jsx(D.AccordionItem,{id:r==null?void 0:r.id,title:r.title,children:_.jsx(Qt.MarkdownRichText,{text:r.text})},r.id))})]}),Bd=({block:e})=>{const t=()=>{var r;return e.items?(r=e==null?void 0:e.items)==null?void 0:r.map(n=>({id:String((n==null?void 0:n.id)??""),text:n.text||"",title:n.title||""})):[]};return _.jsx(qd,{items:t(),title:(e==null?void 0:e.title)||""})};function ko(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=ko(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ye(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=ko(e))&&(n&&(n+=" "),n+=t);return n}const Zd="_persuasionContent_1id4y_141",Wd="_persuasionContentInner_1id4y_156",$n={"react-datepicker__day-names":"_react-datepicker__day-names_1id4y_120","react-datepicker__week":"_react-datepicker__week_1id4y_124","react-datepicker__day--outside-month":"_react-datepicker__day--outside-month_1id4y_131","react-datepicker":"_react-datepicker_1id4y_120",persuasionContent:Zd,"persuasionContent--center":"_persuasionContent--center_1id4y_153",persuasionContentInner:Wd,"persuasionContent--left":"_persuasionContent--left_1id4y_163","persuasionContent--surfaceContainer":"_persuasionContent--surfaceContainer_1id4y_166","persuasionContent--vanilla":"_persuasionContent--vanilla_1id4y_169"},Hd=({alignment:e,background:t,children:r})=>{const n=Ye($n.persuasionContent,$n[`persuasionContent--${e}`],$n[`persuasionContent--${t}`]);return _.jsx("div",{className:n,children:_.jsx("div",{className:$n.persuasionContentInner,children:r})})},Gd="_persuationImage_1haus_142",Kd={persuationImage:Gd},Yd=({data:e})=>_.jsx("div",{className:Kd.persuationImage,children:e.map(t=>_.jsx("img",{src:t.src,alt:t.alt},t.id))}),Jd=({block:e})=>{const t=()=>{var n;const r=[];return(n=e==null?void 0:e.images)==null||n.map((a,s)=>{r.push({alt:(a==null?void 0:a.alternativeText)??"",id:`${a==null?void 0:a.id}_${s}`,src:a!=null&&a.url?`${Gr.API.getBaseUrl()}${a.url}`:""})}),r};return _.jsx(Yd,{data:t()})},Xd="_persuasionList_951mc_141",Qd={persuasionList:Xd},el="_persuasionListItem_168v3_141",tl="_persuasionListItem__text_168v3_149",rl="_persuasionListItem__ellipse_168v3_155",bn={persuasionListItem:el,persuasionListItem__text:tl,persuasionListItem__ellipse:rl,"persuasionListItem--hasIcon":"_persuasionListItem--hasIcon_168v3_161"},nl=({body:e,headline:t,icon:r})=>{const n=Ye(bn.persuasionListItem,{[bn["persuasionListItem--hasIcon"]]:r});return _.jsxs("li",{className:n,children:[r?_.jsx(D.Sticker,{color:"green",icon:r,size:"small"}):_.jsx("div",{className:bn.persuasionListItem__ellipse}),_.jsxs("div",{className:bn.persuasionListItem__text,children:[t&&_.jsx(D.Typography,{type:"h5",children:t}),e&&_.jsx(D.Typography,{type:"body-regular",children:e})]})]})},al=({list:e})=>_.jsx("ul",{className:Qd.persuasionList,children:e.map(t=>I.createElement(nl,{...t,key:t.id}))}),sl=({block:e})=>{const t=()=>{var n,a;const r=[];return(a=(n=e.list)==null?void 0:n.items)==null||a.map((s,i)=>r.push({body:s==null?void 0:s.body,headline:s==null?void 0:s.headline,icon:s==null?void 0:s.icon,id:`${s==null?void 0:s.id}_${i}`})),r};return _.jsx(al,{list:t()})},il="_persuasionText_1fora_141",ol={persuasionText:il},cl=({children:e})=>_.jsx("div",{className:ol.persuasionText,children:typeof e=="string"?_.jsx(Qt.MarkdownRichText,{text:e}):e}),ul=({block:e})=>_.jsx(cl,{children:e.text}),dl=({block:e})=>{const t=()=>{var r;return(r=e==null?void 0:e.content)==null?void 0:r.map(n=>{switch(n.type){case"list":return _.jsx(sl,{block:n},n.id);case"text":return _.jsx(ul,{block:n},n.id);case"image":return _.jsx(Jd,{block:n},n.id);default:return null}})};return _.jsx(Hd,{alignment:e==null?void 0:e.alignment,background:e==null?void 0:e.background,children:t()})},ll="_root_13her_141",fl="_root__button_13her_147",hl="_root__security_13her_150",wn={root:ll,root__button:fl,root__security:hl,"root--stickyButton":"_root--stickyButton_13her_161"},Co=({data:{label:e,securityText:t},onSubmit:r,stickyButton:n})=>_.jsxs(D.Fieldset,{className:Ye(wn.root,{[wn["root--stickyButton"]]:n}),children:[_.jsx(D.ButtonPrimary,{className:wn.root__button,fullWidth:!0,size:"medium",text:e,onClick:r}),_.jsxs(D.Typography,{type:"detail-medium",as:"p",className:Ye(wn.root__security),children:[_.jsx(D.Icon,{name:"privacy_lock_closed",size:"24"}),t]})]}),ml="_root_14b7h_141",pl="_root__body_14b7h_152",yl="_content_14b7h_159",_l="_content__text_14b7h_167",gl="_content__link_14b7h_173",ar={root:ml,"root--withBody":"_root--withBody_14b7h_149",root__body:pl,content:yl,content__text:_l,content__link:gl},vl=({body:e="",legalButtonLabel:t="",legalLabel:r="",submitLabel:n="",submitSecurityText:a=""})=>{const{emit:s}=Po.useEventBus(),i=()=>{s("open_sponsor_legal",!0)},o=()=>{window.scrollTo({behavior:"smooth",top:0}),s("submit_sponsor_form")};return _.jsxs("div",{className:Ye(ar.root,{[ar["root--withBody"]]:e}),children:[_.jsx(D.Typography,{type:"body-regular",markdown:!0,className:ar.root__body,children:e}),_.jsxs("div",{className:ar.content,children:[_.jsxs(D.Typography,{className:ar.content__text,as:"p",type:"detail-medium",children:[r," ",_.jsx(D.TextButton,{className:ar.content__link,onClick:i,size:"small",text:t,color:"deepPurple"})]}),_.jsx(Co,{data:{label:n,securityText:a},onSubmit:o})]})]})},$l=({block:e})=>_.jsx(vl,{...e}),bl="_persuasionImageSet_v56lg_141",wl="_persuasionImageSet__images_v56lg_146",Sl="_persuasionImageSet__image_v56lg_146",El="_persuasionImageSet__text_v56lg_165",Tl="_persuasionImageSet__body_v56lg_194",bt={"react-datepicker__day-names":"_react-datepicker__day-names_v56lg_120","react-datepicker__week":"_react-datepicker__week_v56lg_124","react-datepicker__day--outside-month":"_react-datepicker__day--outside-month_v56lg_131","react-datepicker":"_react-datepicker_v56lg_120",persuasionImageSet:bl,persuasionImageSet__images:wl,persuasionImageSet__image:Sl,persuasionImageSet__text:El,"persuasionImageSet--surface":"_persuasionImageSet--surface_v56lg_173","persuasionImageSet--surfaceContainer":"_persuasionImageSet--surfaceContainer_v56lg_177","persuasionImageSet--surfaceDim":"_persuasionImageSet--surfaceDim_v56lg_181","persuasionImageSet--vanilla":"_persuasionImageSet--vanilla_v56lg_185","persuasionImageSet--primary":"_persuasionImageSet--primary_v56lg_189",persuasionImageSet__body:Tl},Pl=({backdrop:e,body:t,headline:r,imageLeft:n,imageRight:a})=>_.jsxs("div",{className:bt.persuasionImageSet,children:[_.jsxs("div",{className:Ye(bt.persuasionImageSet__images,bt[`persuasionImageSet--${e}`]),children:[_.jsx("img",{className:bt.persuasionImageSet__image,src:n.src,alt:n.alt}),_.jsx("img",{className:bt.persuasionImageSet__image,src:a.src,alt:a.alt})]}),!!(r||t)&&_.jsxs("div",{className:Ye(bt.persuasionImageSet__text,bt[`persuasionImageSet--${e}`]),children:[r&&_.jsx(D.Typography,{fontSet:"landing",type:"h1",as:"h2",children:r}),t&&_.jsx(D.Typography,{type:"body-regular",className:bt.persuasionImageSet__body,children:t})]})]}),jl=({block:e})=>{const t=({image:r})=>({alt:(r==null?void 0:r.alternativeText)??"",src:r!=null&&r.url?`${Gr.API.getBaseUrl()}${r==null?void 0:r.url}`:""});return _.jsx(Pl,{backdrop:e.backdrop,imageLeft:t({image:e.imageLeft}),imageRight:t({image:e.imageRight}),body:e.body,headline:e.headline})},Ol=(e="")=>`${Gr.API.getBaseUrl()}${e}`,xl="_root_1frfa_141",kl={root:xl},Cl=({author:e,image:t,quote:r})=>_.jsx("div",{className:kl.root,children:_.jsx(Qt.Quote,{author:e,image:t,quote:r})}),Nl=({block:e})=>{const t=()=>{var r,n;return{alt:((r=e.image)==null?void 0:r.alternativeText)||"",src:Ol((n=e.image)==null?void 0:n.url)}};return _.jsx(Cl,{quote:e.quote||"",author:e.author||"",image:t()})};var Il=function(t){return Al(t)&&!Rl(t)};function Al(e){return!!e&&typeof e=="object"}function Rl(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Fl(e)}var Ml=typeof Symbol=="function"&&Symbol.for,Dl=Ml?Symbol.for("react.element"):60103;function Fl(e){return e.$$typeof===Dl}function Vl(e){return Array.isArray(e)?[]:{}}function Vn(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Kr(Vl(e),e,t):e}function Ll(e,t,r){return e.concat(t).map(function(n){return Vn(n,r)})}function zl(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(a){n[a]=Vn(e[a],r)}),Object.keys(t).forEach(function(a){!r.isMergeableObject(t[a])||!e[a]?n[a]=Vn(t[a],r):n[a]=Kr(e[a],t[a],r)}),n}function Kr(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Ll,r.isMergeableObject=r.isMergeableObject||Il;var n=Array.isArray(t),a=Array.isArray(e),s=n===a;return s?n?r.arrayMerge(e,t,r):zl(e,t,r):Vn(t,r)}Kr.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,a){return Kr(n,a,r)},{})};var ka=Kr,No=typeof global=="object"&&global&&global.Object===Object&&global,Ul=typeof self=="object"&&self&&self.Object===Object&&self,ut=No||Ul||Function("return this")(),xt=ut.Symbol,Io=Object.prototype,ql=Io.hasOwnProperty,Bl=Io.toString,Nr=xt?xt.toStringTag:void 0;function Zl(e){var t=ql.call(e,Nr),r=e[Nr];try{e[Nr]=void 0;var n=!0}catch{}var a=Bl.call(e);return n&&(t?e[Nr]=r:delete e[Nr]),a}var Wl=Object.prototype,Hl=Wl.toString;function Gl(e){return Hl.call(e)}var Kl="[object Null]",Yl="[object Undefined]",ii=xt?xt.toStringTag:void 0;function er(e){return e==null?e===void 0?Yl:Kl:ii&&ii in Object(e)?Zl(e):Gl(e)}function Ao(e,t){return function(r){return e(t(r))}}var Ja=Ao(Object.getPrototypeOf,Object);function tr(e){return e!=null&&typeof e=="object"}var Jl="[object Object]",Xl=Function.prototype,Ql=Object.prototype,Ro=Xl.toString,ef=Ql.hasOwnProperty,tf=Ro.call(Object);function oi(e){if(!tr(e)||er(e)!=Jl)return!1;var t=Ja(e);if(t===null)return!0;var r=ef.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Ro.call(r)==tf}function rf(){this.__data__=[],this.size=0}function Mo(e,t){return e===t||e!==e&&t!==t}function ea(e,t){for(var r=e.length;r--;)if(Mo(e[r][0],t))return r;return-1}var nf=Array.prototype,af=nf.splice;function sf(e){var t=this.__data__,r=ea(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():af.call(t,r,1),--this.size,!0}function of(e){var t=this.__data__,r=ea(t,e);return r<0?void 0:t[r][1]}function cf(e){return ea(this.__data__,e)>-1}function uf(e,t){var r=this.__data__,n=ea(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function vt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}vt.prototype.clear=rf;vt.prototype.delete=sf;vt.prototype.get=of;vt.prototype.has=cf;vt.prototype.set=uf;function df(){this.__data__=new vt,this.size=0}function lf(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function ff(e){return this.__data__.get(e)}function hf(e){return this.__data__.has(e)}function mn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var mf="[object AsyncFunction]",pf="[object Function]",yf="[object GeneratorFunction]",_f="[object Proxy]";function Do(e){if(!mn(e))return!1;var t=er(e);return t==pf||t==yf||t==mf||t==_f}var pa=ut["__core-js_shared__"],ci=function(){var e=/[^.]+$/.exec(pa&&pa.keys&&pa.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function gf(e){return!!ci&&ci in e}var vf=Function.prototype,$f=vf.toString;function rr(e){if(e!=null){try{return $f.call(e)}catch{}try{return e+""}catch{}}return""}var bf=/[\\^$.*+?()[\]{}|]/g,wf=/^\[object .+?Constructor\]$/,Sf=Function.prototype,Ef=Object.prototype,Tf=Sf.toString,Pf=Ef.hasOwnProperty,jf=RegExp("^"+Tf.call(Pf).replace(bf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Of(e){if(!mn(e)||gf(e))return!1;var t=Do(e)?jf:wf;return t.test(rr(e))}function xf(e,t){return e==null?void 0:e[t]}function nr(e,t){var r=xf(e,t);return Of(r)?r:void 0}var Yr=nr(ut,"Map"),Jr=nr(Object,"create");function kf(){this.__data__=Jr?Jr(null):{},this.size=0}function Cf(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Nf="__lodash_hash_undefined__",If=Object.prototype,Af=If.hasOwnProperty;function Rf(e){var t=this.__data__;if(Jr){var r=t[e];return r===Nf?void 0:r}return Af.call(t,e)?t[e]:void 0}var Mf=Object.prototype,Df=Mf.hasOwnProperty;function Ff(e){var t=this.__data__;return Jr?t[e]!==void 0:Df.call(t,e)}var Vf="__lodash_hash_undefined__";function Lf(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Jr&&t===void 0?Vf:t,this}function Ht(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ht.prototype.clear=kf;Ht.prototype.delete=Cf;Ht.prototype.get=Rf;Ht.prototype.has=Ff;Ht.prototype.set=Lf;function zf(){this.size=0,this.__data__={hash:new Ht,map:new(Yr||vt),string:new Ht}}function Uf(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ta(e,t){var r=e.__data__;return Uf(t)?r[typeof t=="string"?"string":"hash"]:r.map}function qf(e){var t=ta(this,e).delete(e);return this.size-=t?1:0,t}function Bf(e){return ta(this,e).get(e)}function Zf(e){return ta(this,e).has(e)}function Wf(e,t){var r=ta(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Rt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Rt.prototype.clear=zf;Rt.prototype.delete=qf;Rt.prototype.get=Bf;Rt.prototype.has=Zf;Rt.prototype.set=Wf;var Hf=200;function Gf(e,t){var r=this.__data__;if(r instanceof vt){var n=r.__data__;if(!Yr||n.length<Hf-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Rt(n)}return r.set(e,t),this.size=r.size,this}function br(e){var t=this.__data__=new vt(e);this.size=t.size}br.prototype.clear=df;br.prototype.delete=lf;br.prototype.get=ff;br.prototype.has=hf;br.prototype.set=Gf;function Kf(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var ui=function(){try{var e=nr(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Fo(e,t,r){t=="__proto__"&&ui?ui(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Yf=Object.prototype,Jf=Yf.hasOwnProperty;function Vo(e,t,r){var n=e[t];(!(Jf.call(e,t)&&Mo(n,r))||r===void 0&&!(t in e))&&Fo(e,t,r)}function ra(e,t,r,n){var a=!r;r||(r={});for(var s=-1,i=t.length;++s<i;){var o=t[s],u=void 0;u===void 0&&(u=e[o]),a?Fo(r,o,u):Vo(r,o,u)}return r}function Xf(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Qf="[object Arguments]";function di(e){return tr(e)&&er(e)==Qf}var Lo=Object.prototype,eh=Lo.hasOwnProperty,th=Lo.propertyIsEnumerable,rh=di(function(){return arguments}())?di:function(e){return tr(e)&&eh.call(e,"callee")&&!th.call(e,"callee")},pn=Array.isArray;function nh(){return!1}var zo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,li=zo&&typeof module=="object"&&module&&!module.nodeType&&module,ah=li&&li.exports===zo,fi=ah?ut.Buffer:void 0,sh=fi?fi.isBuffer:void 0,Uo=sh||nh,ih=9007199254740991,oh=/^(?:0|[1-9]\d*)$/;function ch(e,t){var r=typeof e;return t=t??ih,!!t&&(r=="number"||r!="symbol"&&oh.test(e))&&e>-1&&e%1==0&&e<t}var uh=9007199254740991;function qo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=uh}var dh="[object Arguments]",lh="[object Array]",fh="[object Boolean]",hh="[object Date]",mh="[object Error]",ph="[object Function]",yh="[object Map]",_h="[object Number]",gh="[object Object]",vh="[object RegExp]",$h="[object Set]",bh="[object String]",wh="[object WeakMap]",Sh="[object ArrayBuffer]",Eh="[object DataView]",Th="[object Float32Array]",Ph="[object Float64Array]",jh="[object Int8Array]",Oh="[object Int16Array]",xh="[object Int32Array]",kh="[object Uint8Array]",Ch="[object Uint8ClampedArray]",Nh="[object Uint16Array]",Ih="[object Uint32Array]",me={};me[Th]=me[Ph]=me[jh]=me[Oh]=me[xh]=me[kh]=me[Ch]=me[Nh]=me[Ih]=!0;me[dh]=me[lh]=me[Sh]=me[fh]=me[Eh]=me[hh]=me[mh]=me[ph]=me[yh]=me[_h]=me[gh]=me[vh]=me[$h]=me[bh]=me[wh]=!1;function Ah(e){return tr(e)&&qo(e.length)&&!!me[er(e)]}function Xa(e){return function(t){return e(t)}}var Bo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zr=Bo&&typeof module=="object"&&module&&!module.nodeType&&module,Rh=zr&&zr.exports===Bo,ya=Rh&&No.process,pr=function(){try{var e=zr&&zr.require&&zr.require("util").types;return e||ya&&ya.binding&&ya.binding("util")}catch{}}(),hi=pr&&pr.isTypedArray,Mh=hi?Xa(hi):Ah,Dh=Object.prototype,Fh=Dh.hasOwnProperty;function Zo(e,t){var r=pn(e),n=!r&&rh(e),a=!r&&!n&&Uo(e),s=!r&&!n&&!a&&Mh(e),i=r||n||a||s,o=i?Xf(e.length,String):[],u=o.length;for(var c in e)(t||Fh.call(e,c))&&!(i&&(c=="length"||a&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||ch(c,u)))&&o.push(c);return o}var Vh=Object.prototype;function Qa(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Vh;return e===r}var Lh=Ao(Object.keys,Object),zh=Object.prototype,Uh=zh.hasOwnProperty;function qh(e){if(!Qa(e))return Lh(e);var t=[];for(var r in Object(e))Uh.call(e,r)&&r!="constructor"&&t.push(r);return t}function Wo(e){return e!=null&&qo(e.length)&&!Do(e)}function es(e){return Wo(e)?Zo(e):qh(e)}function Bh(e,t){return e&&ra(t,es(t),e)}function Zh(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Wh=Object.prototype,Hh=Wh.hasOwnProperty;function Gh(e){if(!mn(e))return Zh(e);var t=Qa(e),r=[];for(var n in e)n=="constructor"&&(t||!Hh.call(e,n))||r.push(n);return r}function ts(e){return Wo(e)?Zo(e,!0):Gh(e)}function Kh(e,t){return e&&ra(t,ts(t),e)}var Ho=typeof exports=="object"&&exports&&!exports.nodeType&&exports,mi=Ho&&typeof module=="object"&&module&&!module.nodeType&&module,Yh=mi&&mi.exports===Ho,pi=Yh?ut.Buffer:void 0,yi=pi?pi.allocUnsafe:void 0;function Jh(e,t){if(t)return e.slice();var r=e.length,n=yi?yi(r):new e.constructor(r);return e.copy(n),n}function Go(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function Xh(e,t){for(var r=-1,n=e==null?0:e.length,a=0,s=[];++r<n;){var i=e[r];t(i,r,e)&&(s[a++]=i)}return s}function Ko(){return[]}var Qh=Object.prototype,em=Qh.propertyIsEnumerable,_i=Object.getOwnPropertySymbols,rs=_i?function(e){return e==null?[]:(e=Object(e),Xh(_i(e),function(t){return em.call(e,t)}))}:Ko;function tm(e,t){return ra(e,rs(e),t)}function Yo(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var rm=Object.getOwnPropertySymbols,Jo=rm?function(e){for(var t=[];e;)Yo(t,rs(e)),e=Ja(e);return t}:Ko;function nm(e,t){return ra(e,Jo(e),t)}function Xo(e,t,r){var n=t(e);return pn(e)?n:Yo(n,r(e))}function am(e){return Xo(e,es,rs)}function sm(e){return Xo(e,ts,Jo)}var Ca=nr(ut,"DataView"),Na=nr(ut,"Promise"),Ia=nr(ut,"Set"),Aa=nr(ut,"WeakMap"),gi="[object Map]",im="[object Object]",vi="[object Promise]",$i="[object Set]",bi="[object WeakMap]",wi="[object DataView]",om=rr(Ca),cm=rr(Yr),um=rr(Na),dm=rr(Ia),lm=rr(Aa),ht=er;(Ca&&ht(new Ca(new ArrayBuffer(1)))!=wi||Yr&&ht(new Yr)!=gi||Na&&ht(Na.resolve())!=vi||Ia&&ht(new Ia)!=$i||Aa&&ht(new Aa)!=bi)&&(ht=function(e){var t=er(e),r=t==im?e.constructor:void 0,n=r?rr(r):"";if(n)switch(n){case om:return wi;case cm:return gi;case um:return vi;case dm:return $i;case lm:return bi}return t});var fm=Object.prototype,hm=fm.hasOwnProperty;function mm(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&hm.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Si=ut.Uint8Array;function ns(e){var t=new e.constructor(e.byteLength);return new Si(t).set(new Si(e)),t}function pm(e,t){var r=t?ns(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var ym=/\w*$/;function _m(e){var t=new e.constructor(e.source,ym.exec(e));return t.lastIndex=e.lastIndex,t}var Ei=xt?xt.prototype:void 0,Ti=Ei?Ei.valueOf:void 0;function gm(e){return Ti?Object(Ti.call(e)):{}}function vm(e,t){var r=t?ns(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var $m="[object Boolean]",bm="[object Date]",wm="[object Map]",Sm="[object Number]",Em="[object RegExp]",Tm="[object Set]",Pm="[object String]",jm="[object Symbol]",Om="[object ArrayBuffer]",xm="[object DataView]",km="[object Float32Array]",Cm="[object Float64Array]",Nm="[object Int8Array]",Im="[object Int16Array]",Am="[object Int32Array]",Rm="[object Uint8Array]",Mm="[object Uint8ClampedArray]",Dm="[object Uint16Array]",Fm="[object Uint32Array]";function Vm(e,t,r){var n=e.constructor;switch(t){case Om:return ns(e);case $m:case bm:return new n(+e);case xm:return pm(e,r);case km:case Cm:case Nm:case Im:case Am:case Rm:case Mm:case Dm:case Fm:return vm(e,r);case wm:return new n;case Sm:case Pm:return new n(e);case Em:return _m(e);case Tm:return new n;case jm:return gm(e)}}var Pi=Object.create,Lm=function(){function e(){}return function(t){if(!mn(t))return{};if(Pi)return Pi(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function zm(e){return typeof e.constructor=="function"&&!Qa(e)?Lm(Ja(e)):{}}var Um="[object Map]";function qm(e){return tr(e)&&ht(e)==Um}var ji=pr&&pr.isMap,Bm=ji?Xa(ji):qm,Zm="[object Set]";function Wm(e){return tr(e)&&ht(e)==Zm}var Oi=pr&&pr.isSet,Hm=Oi?Xa(Oi):Wm,Gm=1,Km=2,Ym=4,Qo="[object Arguments]",Jm="[object Array]",Xm="[object Boolean]",Qm="[object Date]",ep="[object Error]",ec="[object Function]",tp="[object GeneratorFunction]",rp="[object Map]",np="[object Number]",tc="[object Object]",ap="[object RegExp]",sp="[object Set]",ip="[object String]",op="[object Symbol]",cp="[object WeakMap]",up="[object ArrayBuffer]",dp="[object DataView]",lp="[object Float32Array]",fp="[object Float64Array]",hp="[object Int8Array]",mp="[object Int16Array]",pp="[object Int32Array]",yp="[object Uint8Array]",_p="[object Uint8ClampedArray]",gp="[object Uint16Array]",vp="[object Uint32Array]",he={};he[Qo]=he[Jm]=he[up]=he[dp]=he[Xm]=he[Qm]=he[lp]=he[fp]=he[hp]=he[mp]=he[pp]=he[rp]=he[np]=he[tc]=he[ap]=he[sp]=he[ip]=he[op]=he[yp]=he[_p]=he[gp]=he[vp]=!0;he[ep]=he[ec]=he[cp]=!1;function Ur(e,t,r,n,a,s){var i,o=t&Gm,u=t&Km,c=t&Ym;if(i!==void 0)return i;if(!mn(e))return e;var l=pn(e);if(l){if(i=mm(e),!o)return Go(e,i)}else{var f=ht(e),g=f==ec||f==tp;if(Uo(e))return Jh(e,o);if(f==tc||f==Qo||g&&!a){if(i=u||g?{}:zm(e),!o)return u?nm(e,Kh(i,e)):tm(e,Bh(i,e))}else{if(!he[f])return a?e:{};i=Vm(e,f,o)}}s||(s=new br);var S=s.get(e);if(S)return S;s.set(e,i),Hm(e)?e.forEach(function(y){i.add(Ur(y,t,r,y,e,s))}):Bm(e)&&e.forEach(function(y,h){i.set(h,Ur(y,t,r,h,e,s))});var $=c?u?sm:am:u?ts:es,b=l?void 0:$(e);return Kf(b||e,function(y,h){b&&(h=y,y=e[h]),Vo(i,h,Ur(y,t,r,h,e,s))}),i}var $p=1,bp=4;function Sn(e){return Ur(e,$p|bp)}var xi=Array.isArray,ki=Object.keys,wp=Object.prototype.hasOwnProperty,Sp=typeof Element<"u";function Ra(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var r=xi(e),n=xi(t),a,s,i;if(r&&n){if(s=e.length,s!=t.length)return!1;for(a=s;a--!==0;)if(!Ra(e[a],t[a]))return!1;return!0}if(r!=n)return!1;var o=e instanceof Date,u=t instanceof Date;if(o!=u)return!1;if(o&&u)return e.getTime()==t.getTime();var c=e instanceof RegExp,l=t instanceof RegExp;if(c!=l)return!1;if(c&&l)return e.toString()==t.toString();var f=ki(e);if(s=f.length,s!==ki(t).length)return!1;for(a=s;a--!==0;)if(!wp.call(t,f[a]))return!1;if(Sp&&e instanceof Element&&t instanceof Element)return e===t;for(a=s;a--!==0;)if(i=f[a],!(i==="_owner"&&e.$$typeof)&&!Ra(e[i],t[i]))return!1;return!0}return e!==e&&t!==t}var Ep=function(t,r){try{return Ra(t,r)}catch(n){if(n.message&&n.message.match(/stack|recursion/i)||n.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}};const Vt=Qn(Ep);var Tp=process.env.NODE_ENV==="production";function dr(e,t){if(!Tp){var r="Warning: "+t;typeof console<"u"&&console.warn(r);try{throw Error(r)}catch{}}}var Pp=4;function Ci(e){return Ur(e,Pp)}function rc(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var jp="[object Symbol]";function as(e){return typeof e=="symbol"||tr(e)&&er(e)==jp}var Op="Expected a function";function ss(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Op);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],s=r.cache;if(s.has(a))return s.get(a);var i=e.apply(this,n);return r.cache=s.set(a,i)||s,i};return r.cache=new(ss.Cache||Rt),r}ss.Cache=Rt;var xp=500;function kp(e){var t=ss(e,function(n){return r.size===xp&&r.clear(),n}),r=t.cache;return t}var Cp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Np=/\\(\\)?/g,Ip=kp(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Cp,function(r,n,a,s){t.push(a?s.replace(Np,"$1"):n||r)}),t});function Ap(e){if(typeof e=="string"||as(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Ni=xt?xt.prototype:void 0,Ii=Ni?Ni.toString:void 0;function nc(e){if(typeof e=="string")return e;if(pn(e))return rc(e,nc)+"";if(as(e))return Ii?Ii.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Rp(e){return e==null?"":nc(e)}function ac(e){return pn(e)?rc(e,Ap):as(e)?[e]:Go(Ip(Rp(e)))}var Ma={exports:{}},ue={};/** @license React v16.13.1
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react/jsx-runtime"),I=require("react"),D=require("@goodhood-web/ui"),Qt=require("@goodhood-web/nebenan-base"),Gr=require("@goodhood-web/api/strapi"),jo=require("@goodhood-web/services/event-bus"),Fn=require("@goodhood-web/api/core"),Nu=require("@goodhood-web/services/chargebee"),Iu=require("@goodhood-web/services/analytics"),Au=require("@goodhood-web/services/consent");var nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ru(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ya=Ru,Mu=typeof nt=="object"&&nt&&nt.Object===Object&&nt,Du=Mu,Fu=Du,Vu=typeof self=="object"&&self&&self.Object===Object&&self,Lu=Fu||Vu||Function("return this")(),Oo=Lu,zu=Oo,Uu=function(){return zu.Date.now()},qu=Uu,Bu=/\s/;function Zu(e){for(var t=e.length;t--&&Bu.test(e.charAt(t)););return t}var Wu=Zu,Hu=Wu,Gu=/^\s+/;function Ku(e){return e&&e.slice(0,Hu(e)+1).replace(Gu,"")}var Yu=Ku,Ju=Oo,Xu=Ju.Symbol,xo=Xu,ei=xo,ko=Object.prototype,Qu=ko.hasOwnProperty,ed=ko.toString,Cr=ei?ei.toStringTag:void 0;function td(e){var t=Qu.call(e,Cr),r=e[Cr];try{e[Cr]=void 0;var n=!0}catch{}var a=ed.call(e);return n&&(t?e[Cr]=r:delete e[Cr]),a}var rd=td,nd=Object.prototype,ad=nd.toString;function sd(e){return ad.call(e)}var id=sd,ti=xo,od=rd,cd=id,ud="[object Null]",dd="[object Undefined]",ri=ti?ti.toStringTag:void 0;function ld(e){return e==null?e===void 0?dd:ud:ri&&ri in Object(e)?od(e):cd(e)}var fd=ld;function hd(e){return e!=null&&typeof e=="object"}var md=hd,pd=fd,yd=md,_d="[object Symbol]";function gd(e){return typeof e=="symbol"||yd(e)&&pd(e)==_d}var vd=gd,$d=Yu,ni=Ya,bd=vd,ai=NaN,wd=/^[-+]0x[0-9a-f]+$/i,Sd=/^0b[01]+$/i,Ed=/^0o[0-7]+$/i,Td=parseInt;function Pd(e){if(typeof e=="number")return e;if(bd(e))return ai;if(ni(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ni(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=$d(e);var r=Sd.test(e);return r||Ed.test(e)?Td(e.slice(2),r?2:8):wd.test(e)?ai:+e}var jd=Pd,Od=Ya,ma=qu,si=jd,xd="Expected a function",kd=Math.max,Cd=Math.min;function Nd(e,t,r){var n,a,s,i,o,u,c=0,l=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError(xd);t=si(t)||0,Od(r)&&(l=!!r.leading,f="maxWait"in r,s=f?kd(si(r.maxWait)||0,t):s,g="trailing"in r?!!r.trailing:g);function S(x){var A=n,G=a;return n=a=void 0,c=x,i=e.apply(G,A),i}function $(x){return c=x,o=setTimeout(h,t),l?S(x):i}function b(x){var A=x-u,G=x-c,K=t-A;return f?Cd(K,s-G):K}function y(x){var A=x-u,G=x-c;return u===void 0||A>=t||A<0||f&&G>=s}function h(){var x=ma();if(y(x))return w(x);o=setTimeout(h,b(x))}function w(x){return o=void 0,g&&n?S(x):(n=a=void 0,i)}function k(){o!==void 0&&clearTimeout(o),c=0,n=u=a=o=void 0}function T(){return o===void 0?i:w(ma())}function p(){var x=ma(),A=y(x);if(n=arguments,a=this,u=x,A){if(o===void 0)return $(u);if(f)return clearTimeout(o),o=setTimeout(h,t),S(u)}return o===void 0&&(o=setTimeout(h,t)),i}return p.cancel=k,p.flush=T,p}var Id=Nd,Ad=Id,Rd=Ya,Md="Expected a function";function Dd(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(Md);return Rd(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),Ad(e,t,{leading:n,maxWait:t,trailing:a})}var Fd=Dd;const Vd=Qn(Fd),Ld=690,zd=(e=Ld)=>{const[t,r]=I.useState(!1),n=I.useCallback(Vd(()=>{r(window.matchMedia(`(min-width: ${e}px)`).matches)},300),[e]);return I.useEffect(()=>(n(),window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}),[e]),t},Ud="_root_hc137_141",qd="_title_hc137_145",ii={root:Ud,title:qd},Bd=({items:e,title:t})=>{const[r,n]=I.useState(null),a=s=>n(i=>i===s?null:s);return _.jsxs("div",{className:ii.root,children:[_.jsx(D.Typography,{type:"h3",className:ii.title,children:t}),_.jsx(D.Accordion,{children:e.map(s=>_.jsx(D.AccordionItem,{id:s==null?void 0:s.id,title:s.title,hideBorder:s.id===e[e.length-1].id,size:"large",handleClick:()=>a(s==null?void 0:s.id),opened:r===(s==null?void 0:s.id),children:_.jsx(Qt.MarkdownRichText,{text:s.text})},s==null?void 0:s.id))})]})},Zd=({block:e})=>{const t=()=>{var r;return e.items?(r=e==null?void 0:e.items)==null?void 0:r.map(n=>({id:String((n==null?void 0:n.id)??""),text:n.text||"",title:n.title||""})):[]};return _.jsx(Bd,{items:t(),title:(e==null?void 0:e.title)||""})};function Co(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=Co(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ye(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=Co(e))&&(n&&(n+=" "),n+=t);return n}const Wd="_persuasionContent_1id4y_141",Hd="_persuasionContentInner_1id4y_156",$n={"react-datepicker__day-names":"_react-datepicker__day-names_1id4y_120","react-datepicker__week":"_react-datepicker__week_1id4y_124","react-datepicker__day--outside-month":"_react-datepicker__day--outside-month_1id4y_131","react-datepicker":"_react-datepicker_1id4y_120",persuasionContent:Wd,"persuasionContent--center":"_persuasionContent--center_1id4y_153",persuasionContentInner:Hd,"persuasionContent--left":"_persuasionContent--left_1id4y_163","persuasionContent--surfaceContainer":"_persuasionContent--surfaceContainer_1id4y_166","persuasionContent--vanilla":"_persuasionContent--vanilla_1id4y_169"},Gd=({alignment:e,background:t,children:r})=>{const n=Ye($n.persuasionContent,$n[`persuasionContent--${e}`],$n[`persuasionContent--${t}`]);return _.jsx("div",{className:n,children:_.jsx("div",{className:$n.persuasionContentInner,children:r})})},Kd="_persuationImage_1haus_142",Yd={persuationImage:Kd},Jd=({data:e})=>_.jsx("div",{className:Yd.persuationImage,children:e.map(t=>_.jsx("img",{src:t.src,alt:t.alt},t.id))}),Xd=({block:e})=>{const t=()=>{var n;const r=[];return(n=e==null?void 0:e.images)==null||n.map((a,s)=>{r.push({alt:(a==null?void 0:a.alternativeText)??"",id:`${a==null?void 0:a.id}_${s}`,src:a!=null&&a.url?`${Gr.API.getBaseUrl()}${a.url}`:""})}),r};return _.jsx(Jd,{data:t()})},Qd="_persuasionList_951mc_141",el={persuasionList:Qd},tl="_persuasionListItem_168v3_141",rl="_persuasionListItem__text_168v3_149",nl="_persuasionListItem__ellipse_168v3_155",bn={persuasionListItem:tl,persuasionListItem__text:rl,persuasionListItem__ellipse:nl,"persuasionListItem--hasIcon":"_persuasionListItem--hasIcon_168v3_161"},al=({body:e,headline:t,icon:r})=>{const n=Ye(bn.persuasionListItem,{[bn["persuasionListItem--hasIcon"]]:r});return _.jsxs("li",{className:n,children:[r?_.jsx(D.Sticker,{color:"green",icon:r,size:"small"}):_.jsx("div",{className:bn.persuasionListItem__ellipse}),_.jsxs("div",{className:bn.persuasionListItem__text,children:[t&&_.jsx(D.Typography,{type:"h5",children:t}),e&&_.jsx(D.Typography,{type:"body-regular",children:e})]})]})},sl=({list:e})=>_.jsx("ul",{className:el.persuasionList,children:e.map(t=>I.createElement(al,{...t,key:t.id}))}),il=({block:e})=>{const t=()=>{var n,a;const r=[];return(a=(n=e.list)==null?void 0:n.items)==null||a.map((s,i)=>r.push({body:s==null?void 0:s.body,headline:s==null?void 0:s.headline,icon:s==null?void 0:s.icon,id:`${s==null?void 0:s.id}_${i}`})),r};return _.jsx(sl,{list:t()})},ol="_persuasionText_1fora_141",cl={persuasionText:ol},ul=({children:e})=>_.jsx("div",{className:cl.persuasionText,children:typeof e=="string"?_.jsx(Qt.MarkdownRichText,{text:e}):e}),dl=({block:e})=>_.jsx(ul,{children:e.text}),ll=({block:e})=>{const t=()=>{var r;return(r=e==null?void 0:e.content)==null?void 0:r.map(n=>{switch(n.type){case"list":return _.jsx(il,{block:n},n.id);case"text":return _.jsx(dl,{block:n},n.id);case"image":return _.jsx(Xd,{block:n},n.id);default:return null}})};return _.jsx(Gd,{alignment:e==null?void 0:e.alignment,background:e==null?void 0:e.background,children:t()})},fl="_root_13her_141",hl="_root__button_13her_147",ml="_root__security_13her_150",wn={root:fl,root__button:hl,root__security:ml,"root--stickyButton":"_root--stickyButton_13her_161"},No=({data:{label:e,securityText:t},onSubmit:r,stickyButton:n})=>_.jsxs(D.Fieldset,{className:Ye(wn.root,{[wn["root--stickyButton"]]:n}),children:[_.jsx(D.ButtonPrimary,{className:wn.root__button,fullWidth:!0,size:"medium",text:e,onClick:r}),_.jsxs(D.Typography,{type:"detail-medium",as:"p",className:Ye(wn.root__security),children:[_.jsx(D.Icon,{name:"privacy_lock_closed",size:"24"}),t]})]}),pl="_root_14b7h_141",yl="_root__body_14b7h_152",_l="_content_14b7h_159",gl="_content__text_14b7h_167",vl="_content__link_14b7h_173",ar={root:pl,"root--withBody":"_root--withBody_14b7h_149",root__body:yl,content:_l,content__text:gl,content__link:vl},$l=({body:e="",legalButtonLabel:t="",legalLabel:r="",submitLabel:n="",submitSecurityText:a=""})=>{const{emit:s}=jo.useEventBus(),i=()=>{s("open_sponsor_legal",!0)},o=()=>{window.scrollTo({behavior:"smooth",top:0}),s("submit_sponsor_form")};return _.jsxs("div",{className:Ye(ar.root,{[ar["root--withBody"]]:e}),children:[_.jsx(D.Typography,{type:"body-regular",markdown:!0,className:ar.root__body,children:e}),_.jsxs("div",{className:ar.content,children:[_.jsxs(D.Typography,{className:ar.content__text,as:"p",type:"detail-medium",children:[r," ",_.jsx(D.TextButton,{className:ar.content__link,onClick:i,size:"small",text:t,color:"deepPurple"})]}),_.jsx(No,{data:{label:n,securityText:a},onSubmit:o})]})]})},bl=({block:e})=>_.jsx($l,{...e}),wl="_persuasionImageSet_v56lg_141",Sl="_persuasionImageSet__images_v56lg_146",El="_persuasionImageSet__image_v56lg_146",Tl="_persuasionImageSet__text_v56lg_165",Pl="_persuasionImageSet__body_v56lg_194",bt={"react-datepicker__day-names":"_react-datepicker__day-names_v56lg_120","react-datepicker__week":"_react-datepicker__week_v56lg_124","react-datepicker__day--outside-month":"_react-datepicker__day--outside-month_v56lg_131","react-datepicker":"_react-datepicker_v56lg_120",persuasionImageSet:wl,persuasionImageSet__images:Sl,persuasionImageSet__image:El,persuasionImageSet__text:Tl,"persuasionImageSet--surface":"_persuasionImageSet--surface_v56lg_173","persuasionImageSet--surfaceContainer":"_persuasionImageSet--surfaceContainer_v56lg_177","persuasionImageSet--surfaceDim":"_persuasionImageSet--surfaceDim_v56lg_181","persuasionImageSet--vanilla":"_persuasionImageSet--vanilla_v56lg_185","persuasionImageSet--primary":"_persuasionImageSet--primary_v56lg_189",persuasionImageSet__body:Pl},jl=({backdrop:e,body:t,headline:r,imageLeft:n,imageRight:a})=>_.jsxs("div",{className:bt.persuasionImageSet,children:[_.jsxs("div",{className:Ye(bt.persuasionImageSet__images,bt[`persuasionImageSet--${e}`]),children:[_.jsx("img",{className:bt.persuasionImageSet__image,src:n.src,alt:n.alt}),_.jsx("img",{className:bt.persuasionImageSet__image,src:a.src,alt:a.alt})]}),!!(r||t)&&_.jsxs("div",{className:Ye(bt.persuasionImageSet__text,bt[`persuasionImageSet--${e}`]),children:[r&&_.jsx(D.Typography,{fontSet:"landing",type:"h1",as:"h2",children:r}),t&&_.jsx(D.Typography,{type:"body-regular",className:bt.persuasionImageSet__body,children:t})]})]}),Ol=({block:e})=>{const t=({image:r})=>({alt:(r==null?void 0:r.alternativeText)??"",src:r!=null&&r.url?`${Gr.API.getBaseUrl()}${r==null?void 0:r.url}`:""});return _.jsx(jl,{backdrop:e.backdrop,imageLeft:t({image:e.imageLeft}),imageRight:t({image:e.imageRight}),body:e.body,headline:e.headline})},xl=(e="")=>`${Gr.API.getBaseUrl()}${e}`,kl="_root_1frfa_141",Cl={root:kl},Nl=({author:e,image:t,quote:r})=>_.jsx("div",{className:Cl.root,children:_.jsx(Qt.Quote,{author:e,image:t,quote:r})}),Il=({block:e})=>{const t=()=>{var r,n;return{alt:((r=e.image)==null?void 0:r.alternativeText)||"",src:xl((n=e.image)==null?void 0:n.url)}};return _.jsx(Nl,{quote:e.quote||"",author:e.author||"",image:t()})};var Al=function(t){return Rl(t)&&!Ml(t)};function Rl(e){return!!e&&typeof e=="object"}function Ml(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Vl(e)}var Dl=typeof Symbol=="function"&&Symbol.for,Fl=Dl?Symbol.for("react.element"):60103;function Vl(e){return e.$$typeof===Fl}function Ll(e){return Array.isArray(e)?[]:{}}function Vn(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Kr(Ll(e),e,t):e}function zl(e,t,r){return e.concat(t).map(function(n){return Vn(n,r)})}function Ul(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(a){n[a]=Vn(e[a],r)}),Object.keys(t).forEach(function(a){!r.isMergeableObject(t[a])||!e[a]?n[a]=Vn(t[a],r):n[a]=Kr(e[a],t[a],r)}),n}function Kr(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||zl,r.isMergeableObject=r.isMergeableObject||Al;var n=Array.isArray(t),a=Array.isArray(e),s=n===a;return s?n?r.arrayMerge(e,t,r):Ul(e,t,r):Vn(t,r)}Kr.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,a){return Kr(n,a,r)},{})};var ka=Kr,Io=typeof global=="object"&&global&&global.Object===Object&&global,ql=typeof self=="object"&&self&&self.Object===Object&&self,ut=Io||ql||Function("return this")(),xt=ut.Symbol,Ao=Object.prototype,Bl=Ao.hasOwnProperty,Zl=Ao.toString,Nr=xt?xt.toStringTag:void 0;function Wl(e){var t=Bl.call(e,Nr),r=e[Nr];try{e[Nr]=void 0;var n=!0}catch{}var a=Zl.call(e);return n&&(t?e[Nr]=r:delete e[Nr]),a}var Hl=Object.prototype,Gl=Hl.toString;function Kl(e){return Gl.call(e)}var Yl="[object Null]",Jl="[object Undefined]",oi=xt?xt.toStringTag:void 0;function er(e){return e==null?e===void 0?Jl:Yl:oi&&oi in Object(e)?Wl(e):Kl(e)}function Ro(e,t){return function(r){return e(t(r))}}var Ja=Ro(Object.getPrototypeOf,Object);function tr(e){return e!=null&&typeof e=="object"}var Xl="[object Object]",Ql=Function.prototype,ef=Object.prototype,Mo=Ql.toString,tf=ef.hasOwnProperty,rf=Mo.call(Object);function ci(e){if(!tr(e)||er(e)!=Xl)return!1;var t=Ja(e);if(t===null)return!0;var r=tf.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Mo.call(r)==rf}function nf(){this.__data__=[],this.size=0}function Do(e,t){return e===t||e!==e&&t!==t}function ea(e,t){for(var r=e.length;r--;)if(Do(e[r][0],t))return r;return-1}var af=Array.prototype,sf=af.splice;function of(e){var t=this.__data__,r=ea(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():sf.call(t,r,1),--this.size,!0}function cf(e){var t=this.__data__,r=ea(t,e);return r<0?void 0:t[r][1]}function uf(e){return ea(this.__data__,e)>-1}function df(e,t){var r=this.__data__,n=ea(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function vt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}vt.prototype.clear=nf;vt.prototype.delete=of;vt.prototype.get=cf;vt.prototype.has=uf;vt.prototype.set=df;function lf(){this.__data__=new vt,this.size=0}function ff(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function hf(e){return this.__data__.get(e)}function mf(e){return this.__data__.has(e)}function mn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var pf="[object AsyncFunction]",yf="[object Function]",_f="[object GeneratorFunction]",gf="[object Proxy]";function Fo(e){if(!mn(e))return!1;var t=er(e);return t==yf||t==_f||t==pf||t==gf}var pa=ut["__core-js_shared__"],ui=function(){var e=/[^.]+$/.exec(pa&&pa.keys&&pa.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function vf(e){return!!ui&&ui in e}var $f=Function.prototype,bf=$f.toString;function rr(e){if(e!=null){try{return bf.call(e)}catch{}try{return e+""}catch{}}return""}var wf=/[\\^$.*+?()[\]{}|]/g,Sf=/^\[object .+?Constructor\]$/,Ef=Function.prototype,Tf=Object.prototype,Pf=Ef.toString,jf=Tf.hasOwnProperty,Of=RegExp("^"+Pf.call(jf).replace(wf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function xf(e){if(!mn(e)||vf(e))return!1;var t=Fo(e)?Of:Sf;return t.test(rr(e))}function kf(e,t){return e==null?void 0:e[t]}function nr(e,t){var r=kf(e,t);return xf(r)?r:void 0}var Yr=nr(ut,"Map"),Jr=nr(Object,"create");function Cf(){this.__data__=Jr?Jr(null):{},this.size=0}function Nf(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var If="__lodash_hash_undefined__",Af=Object.prototype,Rf=Af.hasOwnProperty;function Mf(e){var t=this.__data__;if(Jr){var r=t[e];return r===If?void 0:r}return Rf.call(t,e)?t[e]:void 0}var Df=Object.prototype,Ff=Df.hasOwnProperty;function Vf(e){var t=this.__data__;return Jr?t[e]!==void 0:Ff.call(t,e)}var Lf="__lodash_hash_undefined__";function zf(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Jr&&t===void 0?Lf:t,this}function Ht(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ht.prototype.clear=Cf;Ht.prototype.delete=Nf;Ht.prototype.get=Mf;Ht.prototype.has=Vf;Ht.prototype.set=zf;function Uf(){this.size=0,this.__data__={hash:new Ht,map:new(Yr||vt),string:new Ht}}function qf(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ta(e,t){var r=e.__data__;return qf(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Bf(e){var t=ta(this,e).delete(e);return this.size-=t?1:0,t}function Zf(e){return ta(this,e).get(e)}function Wf(e){return ta(this,e).has(e)}function Hf(e,t){var r=ta(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Rt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Rt.prototype.clear=Uf;Rt.prototype.delete=Bf;Rt.prototype.get=Zf;Rt.prototype.has=Wf;Rt.prototype.set=Hf;var Gf=200;function Kf(e,t){var r=this.__data__;if(r instanceof vt){var n=r.__data__;if(!Yr||n.length<Gf-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Rt(n)}return r.set(e,t),this.size=r.size,this}function br(e){var t=this.__data__=new vt(e);this.size=t.size}br.prototype.clear=lf;br.prototype.delete=ff;br.prototype.get=hf;br.prototype.has=mf;br.prototype.set=Kf;function Yf(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var di=function(){try{var e=nr(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Vo(e,t,r){t=="__proto__"&&di?di(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Jf=Object.prototype,Xf=Jf.hasOwnProperty;function Lo(e,t,r){var n=e[t];(!(Xf.call(e,t)&&Do(n,r))||r===void 0&&!(t in e))&&Vo(e,t,r)}function ra(e,t,r,n){var a=!r;r||(r={});for(var s=-1,i=t.length;++s<i;){var o=t[s],u=void 0;u===void 0&&(u=e[o]),a?Vo(r,o,u):Lo(r,o,u)}return r}function Qf(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var eh="[object Arguments]";function li(e){return tr(e)&&er(e)==eh}var zo=Object.prototype,th=zo.hasOwnProperty,rh=zo.propertyIsEnumerable,nh=li(function(){return arguments}())?li:function(e){return tr(e)&&th.call(e,"callee")&&!rh.call(e,"callee")},pn=Array.isArray;function ah(){return!1}var Uo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,fi=Uo&&typeof module=="object"&&module&&!module.nodeType&&module,sh=fi&&fi.exports===Uo,hi=sh?ut.Buffer:void 0,ih=hi?hi.isBuffer:void 0,qo=ih||ah,oh=9007199254740991,ch=/^(?:0|[1-9]\d*)$/;function uh(e,t){var r=typeof e;return t=t??oh,!!t&&(r=="number"||r!="symbol"&&ch.test(e))&&e>-1&&e%1==0&&e<t}var dh=9007199254740991;function Bo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=dh}var lh="[object Arguments]",fh="[object Array]",hh="[object Boolean]",mh="[object Date]",ph="[object Error]",yh="[object Function]",_h="[object Map]",gh="[object Number]",vh="[object Object]",$h="[object RegExp]",bh="[object Set]",wh="[object String]",Sh="[object WeakMap]",Eh="[object ArrayBuffer]",Th="[object DataView]",Ph="[object Float32Array]",jh="[object Float64Array]",Oh="[object Int8Array]",xh="[object Int16Array]",kh="[object Int32Array]",Ch="[object Uint8Array]",Nh="[object Uint8ClampedArray]",Ih="[object Uint16Array]",Ah="[object Uint32Array]",me={};me[Ph]=me[jh]=me[Oh]=me[xh]=me[kh]=me[Ch]=me[Nh]=me[Ih]=me[Ah]=!0;me[lh]=me[fh]=me[Eh]=me[hh]=me[Th]=me[mh]=me[ph]=me[yh]=me[_h]=me[gh]=me[vh]=me[$h]=me[bh]=me[wh]=me[Sh]=!1;function Rh(e){return tr(e)&&Bo(e.length)&&!!me[er(e)]}function Xa(e){return function(t){return e(t)}}var Zo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zr=Zo&&typeof module=="object"&&module&&!module.nodeType&&module,Mh=zr&&zr.exports===Zo,ya=Mh&&Io.process,pr=function(){try{var e=zr&&zr.require&&zr.require("util").types;return e||ya&&ya.binding&&ya.binding("util")}catch{}}(),mi=pr&&pr.isTypedArray,Dh=mi?Xa(mi):Rh,Fh=Object.prototype,Vh=Fh.hasOwnProperty;function Wo(e,t){var r=pn(e),n=!r&&nh(e),a=!r&&!n&&qo(e),s=!r&&!n&&!a&&Dh(e),i=r||n||a||s,o=i?Qf(e.length,String):[],u=o.length;for(var c in e)(t||Vh.call(e,c))&&!(i&&(c=="length"||a&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||uh(c,u)))&&o.push(c);return o}var Lh=Object.prototype;function Qa(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Lh;return e===r}var zh=Ro(Object.keys,Object),Uh=Object.prototype,qh=Uh.hasOwnProperty;function Bh(e){if(!Qa(e))return zh(e);var t=[];for(var r in Object(e))qh.call(e,r)&&r!="constructor"&&t.push(r);return t}function Ho(e){return e!=null&&Bo(e.length)&&!Fo(e)}function es(e){return Ho(e)?Wo(e):Bh(e)}function Zh(e,t){return e&&ra(t,es(t),e)}function Wh(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Hh=Object.prototype,Gh=Hh.hasOwnProperty;function Kh(e){if(!mn(e))return Wh(e);var t=Qa(e),r=[];for(var n in e)n=="constructor"&&(t||!Gh.call(e,n))||r.push(n);return r}function ts(e){return Ho(e)?Wo(e,!0):Kh(e)}function Yh(e,t){return e&&ra(t,ts(t),e)}var Go=typeof exports=="object"&&exports&&!exports.nodeType&&exports,pi=Go&&typeof module=="object"&&module&&!module.nodeType&&module,Jh=pi&&pi.exports===Go,yi=Jh?ut.Buffer:void 0,_i=yi?yi.allocUnsafe:void 0;function Xh(e,t){if(t)return e.slice();var r=e.length,n=_i?_i(r):new e.constructor(r);return e.copy(n),n}function Ko(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function Qh(e,t){for(var r=-1,n=e==null?0:e.length,a=0,s=[];++r<n;){var i=e[r];t(i,r,e)&&(s[a++]=i)}return s}function Yo(){return[]}var em=Object.prototype,tm=em.propertyIsEnumerable,gi=Object.getOwnPropertySymbols,rs=gi?function(e){return e==null?[]:(e=Object(e),Qh(gi(e),function(t){return tm.call(e,t)}))}:Yo;function rm(e,t){return ra(e,rs(e),t)}function Jo(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var nm=Object.getOwnPropertySymbols,Xo=nm?function(e){for(var t=[];e;)Jo(t,rs(e)),e=Ja(e);return t}:Yo;function am(e,t){return ra(e,Xo(e),t)}function Qo(e,t,r){var n=t(e);return pn(e)?n:Jo(n,r(e))}function sm(e){return Qo(e,es,rs)}function im(e){return Qo(e,ts,Xo)}var Ca=nr(ut,"DataView"),Na=nr(ut,"Promise"),Ia=nr(ut,"Set"),Aa=nr(ut,"WeakMap"),vi="[object Map]",om="[object Object]",$i="[object Promise]",bi="[object Set]",wi="[object WeakMap]",Si="[object DataView]",cm=rr(Ca),um=rr(Yr),dm=rr(Na),lm=rr(Ia),fm=rr(Aa),ht=er;(Ca&&ht(new Ca(new ArrayBuffer(1)))!=Si||Yr&&ht(new Yr)!=vi||Na&&ht(Na.resolve())!=$i||Ia&&ht(new Ia)!=bi||Aa&&ht(new Aa)!=wi)&&(ht=function(e){var t=er(e),r=t==om?e.constructor:void 0,n=r?rr(r):"";if(n)switch(n){case cm:return Si;case um:return vi;case dm:return $i;case lm:return bi;case fm:return wi}return t});var hm=Object.prototype,mm=hm.hasOwnProperty;function pm(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&mm.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Ei=ut.Uint8Array;function ns(e){var t=new e.constructor(e.byteLength);return new Ei(t).set(new Ei(e)),t}function ym(e,t){var r=t?ns(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var _m=/\w*$/;function gm(e){var t=new e.constructor(e.source,_m.exec(e));return t.lastIndex=e.lastIndex,t}var Ti=xt?xt.prototype:void 0,Pi=Ti?Ti.valueOf:void 0;function vm(e){return Pi?Object(Pi.call(e)):{}}function $m(e,t){var r=t?ns(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var bm="[object Boolean]",wm="[object Date]",Sm="[object Map]",Em="[object Number]",Tm="[object RegExp]",Pm="[object Set]",jm="[object String]",Om="[object Symbol]",xm="[object ArrayBuffer]",km="[object DataView]",Cm="[object Float32Array]",Nm="[object Float64Array]",Im="[object Int8Array]",Am="[object Int16Array]",Rm="[object Int32Array]",Mm="[object Uint8Array]",Dm="[object Uint8ClampedArray]",Fm="[object Uint16Array]",Vm="[object Uint32Array]";function Lm(e,t,r){var n=e.constructor;switch(t){case xm:return ns(e);case bm:case wm:return new n(+e);case km:return ym(e,r);case Cm:case Nm:case Im:case Am:case Rm:case Mm:case Dm:case Fm:case Vm:return $m(e,r);case Sm:return new n;case Em:case jm:return new n(e);case Tm:return gm(e);case Pm:return new n;case Om:return vm(e)}}var ji=Object.create,zm=function(){function e(){}return function(t){if(!mn(t))return{};if(ji)return ji(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Um(e){return typeof e.constructor=="function"&&!Qa(e)?zm(Ja(e)):{}}var qm="[object Map]";function Bm(e){return tr(e)&&ht(e)==qm}var Oi=pr&&pr.isMap,Zm=Oi?Xa(Oi):Bm,Wm="[object Set]";function Hm(e){return tr(e)&&ht(e)==Wm}var xi=pr&&pr.isSet,Gm=xi?Xa(xi):Hm,Km=1,Ym=2,Jm=4,ec="[object Arguments]",Xm="[object Array]",Qm="[object Boolean]",ep="[object Date]",tp="[object Error]",tc="[object Function]",rp="[object GeneratorFunction]",np="[object Map]",ap="[object Number]",rc="[object Object]",sp="[object RegExp]",ip="[object Set]",op="[object String]",cp="[object Symbol]",up="[object WeakMap]",dp="[object ArrayBuffer]",lp="[object DataView]",fp="[object Float32Array]",hp="[object Float64Array]",mp="[object Int8Array]",pp="[object Int16Array]",yp="[object Int32Array]",_p="[object Uint8Array]",gp="[object Uint8ClampedArray]",vp="[object Uint16Array]",$p="[object Uint32Array]",he={};he[ec]=he[Xm]=he[dp]=he[lp]=he[Qm]=he[ep]=he[fp]=he[hp]=he[mp]=he[pp]=he[yp]=he[np]=he[ap]=he[rc]=he[sp]=he[ip]=he[op]=he[cp]=he[_p]=he[gp]=he[vp]=he[$p]=!0;he[tp]=he[tc]=he[up]=!1;function Ur(e,t,r,n,a,s){var i,o=t&Km,u=t&Ym,c=t&Jm;if(i!==void 0)return i;if(!mn(e))return e;var l=pn(e);if(l){if(i=pm(e),!o)return Ko(e,i)}else{var f=ht(e),g=f==tc||f==rp;if(qo(e))return Xh(e,o);if(f==rc||f==ec||g&&!a){if(i=u||g?{}:Um(e),!o)return u?am(e,Yh(i,e)):rm(e,Zh(i,e))}else{if(!he[f])return a?e:{};i=Lm(e,f,o)}}s||(s=new br);var S=s.get(e);if(S)return S;s.set(e,i),Gm(e)?e.forEach(function(y){i.add(Ur(y,t,r,y,e,s))}):Zm(e)&&e.forEach(function(y,h){i.set(h,Ur(y,t,r,h,e,s))});var $=c?u?im:sm:u?ts:es,b=l?void 0:$(e);return Yf(b||e,function(y,h){b&&(h=y,y=e[h]),Lo(i,h,Ur(y,t,r,h,e,s))}),i}var bp=1,wp=4;function Sn(e){return Ur(e,bp|wp)}var ki=Array.isArray,Ci=Object.keys,Sp=Object.prototype.hasOwnProperty,Ep=typeof Element<"u";function Ra(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var r=ki(e),n=ki(t),a,s,i;if(r&&n){if(s=e.length,s!=t.length)return!1;for(a=s;a--!==0;)if(!Ra(e[a],t[a]))return!1;return!0}if(r!=n)return!1;var o=e instanceof Date,u=t instanceof Date;if(o!=u)return!1;if(o&&u)return e.getTime()==t.getTime();var c=e instanceof RegExp,l=t instanceof RegExp;if(c!=l)return!1;if(c&&l)return e.toString()==t.toString();var f=Ci(e);if(s=f.length,s!==Ci(t).length)return!1;for(a=s;a--!==0;)if(!Sp.call(t,f[a]))return!1;if(Ep&&e instanceof Element&&t instanceof Element)return e===t;for(a=s;a--!==0;)if(i=f[a],!(i==="_owner"&&e.$$typeof)&&!Ra(e[i],t[i]))return!1;return!0}return e!==e&&t!==t}var Tp=function(t,r){try{return Ra(t,r)}catch(n){if(n.message&&n.message.match(/stack|recursion/i)||n.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}};const Vt=Qn(Tp);var Pp=process.env.NODE_ENV==="production";function dr(e,t){if(!Pp){var r="Warning: "+t;typeof console<"u"&&console.warn(r);try{throw Error(r)}catch{}}}var jp=4;function Ni(e){return Ur(e,jp)}function nc(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var Op="[object Symbol]";function as(e){return typeof e=="symbol"||tr(e)&&er(e)==Op}var xp="Expected a function";function ss(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(xp);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],s=r.cache;if(s.has(a))return s.get(a);var i=e.apply(this,n);return r.cache=s.set(a,i)||s,i};return r.cache=new(ss.Cache||Rt),r}ss.Cache=Rt;var kp=500;function Cp(e){var t=ss(e,function(n){return r.size===kp&&r.clear(),n}),r=t.cache;return t}var Np=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ip=/\\(\\)?/g,Ap=Cp(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Np,function(r,n,a,s){t.push(a?s.replace(Ip,"$1"):n||r)}),t});function Rp(e){if(typeof e=="string"||as(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Ii=xt?xt.prototype:void 0,Ai=Ii?Ii.toString:void 0;function ac(e){if(typeof e=="string")return e;if(pn(e))return nc(e,ac)+"";if(as(e))return Ai?Ai.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Mp(e){return e==null?"":ac(e)}function sc(e){return pn(e)?nc(e,Rp):as(e)?[e]:Ko(Ap(Mp(e)))}var Ma={exports:{}},ue={};/** @license React v16.13.1
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/var
|
|
8
|
+
*/var Ri;function Dp(){if(Ri)return ue;Ri=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,$=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function k(p){if(typeof p=="object"&&p!==null){var x=p.$$typeof;switch(x){case t:switch(p=p.type,p){case u:case c:case n:case s:case a:case f:return p;default:switch(p=p&&p.$$typeof,p){case o:case l:case $:case S:case i:return p;default:return x}}case r:return x}}}function T(p){return k(p)===c}return ue.AsyncMode=u,ue.ConcurrentMode=c,ue.ContextConsumer=o,ue.ContextProvider=i,ue.Element=t,ue.ForwardRef=l,ue.Fragment=n,ue.Lazy=$,ue.Memo=S,ue.Portal=r,ue.Profiler=s,ue.StrictMode=a,ue.Suspense=f,ue.isAsyncMode=function(p){return T(p)||k(p)===u},ue.isConcurrentMode=T,ue.isContextConsumer=function(p){return k(p)===o},ue.isContextProvider=function(p){return k(p)===i},ue.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},ue.isForwardRef=function(p){return k(p)===l},ue.isFragment=function(p){return k(p)===n},ue.isLazy=function(p){return k(p)===$},ue.isMemo=function(p){return k(p)===S},ue.isPortal=function(p){return k(p)===r},ue.isProfiler=function(p){return k(p)===s},ue.isStrictMode=function(p){return k(p)===a},ue.isSuspense=function(p){return k(p)===f},ue.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===c||p===s||p===a||p===f||p===g||typeof p=="object"&&p!==null&&(p.$$typeof===$||p.$$typeof===S||p.$$typeof===i||p.$$typeof===o||p.$$typeof===l||p.$$typeof===y||p.$$typeof===h||p.$$typeof===w||p.$$typeof===b)},ue.typeOf=k,ue}var de={};/** @license React v16.13.1
|
|
9
9
|
* react-is.development.js
|
|
10
10
|
*
|
|
11
11
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
12
|
*
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/var Ri;function Dp(){return Ri||(Ri=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,$=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function k(q){return typeof q=="string"||typeof q=="function"||q===n||q===c||q===s||q===a||q===f||q===g||typeof q=="object"&&q!==null&&(q.$$typeof===$||q.$$typeof===S||q.$$typeof===i||q.$$typeof===o||q.$$typeof===l||q.$$typeof===y||q.$$typeof===h||q.$$typeof===w||q.$$typeof===b)}function T(q){if(typeof q=="object"&&q!==null){var Qe=q.$$typeof;switch(Qe){case t:var et=q.type;switch(et){case u:case c:case n:case s:case a:case f:return et;default:var $t=et&&et.$$typeof;switch($t){case o:case l:case $:case S:case i:return $t;default:return Qe}}case r:return Qe}}}var p=u,x=c,A=o,G=i,K=t,we=l,xe=n,ke=$,ge=S,Se=r,Fe=s,Ve=a,lt=f,Le=!1;function L(q){return Le||(Le=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),C(q)||T(q)===u}function C(q){return T(q)===c}function v(q){return T(q)===o}function O(q){return T(q)===i}function E(q){return typeof q=="object"&&q!==null&&q.$$typeof===t}function d(q){return T(q)===l}function m(q){return T(q)===n}function j(q){return T(q)===$}function z(q){return T(q)===S}function Z(q){return T(q)===r}function oe(q){return T(q)===s}function se(q){return T(q)===a}function ye(q){return T(q)===f}de.AsyncMode=p,de.ConcurrentMode=x,de.ContextConsumer=A,de.ContextProvider=G,de.Element=K,de.ForwardRef=we,de.Fragment=xe,de.Lazy=ke,de.Memo=ge,de.Portal=Se,de.Profiler=Fe,de.StrictMode=Ve,de.Suspense=lt,de.isAsyncMode=L,de.isConcurrentMode=C,de.isContextConsumer=v,de.isContextProvider=O,de.isElement=E,de.isForwardRef=d,de.isFragment=m,de.isLazy=j,de.isMemo=z,de.isPortal=Z,de.isProfiler=oe,de.isStrictMode=se,de.isSuspense=ye,de.isValidElementType=k,de.typeOf=T}()),de}process.env.NODE_ENV==="production"?Ma.exports=Mp():Ma.exports=Dp();var Fp=Ma.exports,sc=Fp,Vp={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Lp={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ic={};ic[sc.ForwardRef]=Vp;ic[sc.Memo]=Lp;function Ee(){return Ee=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ee.apply(this,arguments)}function oc(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,s;for(s=0;s<n.length;s++)a=n[s],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var na=I.createContext(void 0);na.displayName="FormikContext";na.Provider;na.Consumer;function zp(){var e=I.useContext(na);return e||(process.env.NODE_ENV!=="production"?dr(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):dr()),e}var Be=function(t){return typeof t=="function"},aa=function(t){return t!==null&&typeof t=="object"},Up=function(t){return String(Math.floor(Number(t)))===t},_a=function(t){return Object.prototype.toString.call(t)==="[object String]"},ga=function(t){return aa(t)&&Be(t.then)};function qp(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Me(e,t,r,n){n===void 0&&(n=0);for(var a=ac(t);e&&n<a.length;)e=e[a[n++]];return n!==a.length&&!e||e===void 0?r:e}function Bt(e,t,r){for(var n=Ci(e),a=n,s=0,i=ac(t);s<i.length-1;s++){var o=i[s],u=Me(e,i.slice(0,s+1));if(u&&(aa(u)||Array.isArray(u)))a=a[o]=Ci(u);else{var c=i[s+1];a=a[o]=Up(c)&&Number(c)>=0?[]:{}}}return(s===0?e:a)[i[s]]===r?e:(r===void 0?delete a[i[s]]:a[i[s]]=r,s===0&&r===void 0&&delete n[i[s]],n)}function cc(e,t,r,n){r===void 0&&(r=new WeakMap),n===void 0&&(n={});for(var a=0,s=Object.keys(e);a<s.length;a++){var i=s[a],o=e[i];aa(o)?r.get(o)||(r.set(o,!0),n[i]=Array.isArray(o)?[]:{},cc(o,t,r,n[i])):n[i]=t}return n}function Bp(e,t){switch(t.type){case"SET_VALUES":return Ee({},e,{values:t.payload});case"SET_TOUCHED":return Ee({},e,{touched:t.payload});case"SET_ERRORS":return Vt(e.errors,t.payload)?e:Ee({},e,{errors:t.payload});case"SET_STATUS":return Ee({},e,{status:t.payload});case"SET_ISSUBMITTING":return Ee({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Ee({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Ee({},e,{values:Bt(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Ee({},e,{touched:Bt(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Ee({},e,{errors:Bt(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Ee({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Ee({},e,{touched:cc(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return Ee({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return Ee({},e,{isSubmitting:!1});default:return e}}var Dt={},En={};function Zp(e){var t=e.validateOnChange,r=t===void 0?!0:t,n=e.validateOnBlur,a=n===void 0?!0:n,s=e.validateOnMount,i=s===void 0?!1:s,o=e.isInitialValid,u=e.enableReinitialize,c=u===void 0?!1:u,l=e.onSubmit,f=oc(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),g=Ee({validateOnChange:r,validateOnBlur:a,validateOnMount:i,onSubmit:l},f),S=I.useRef(g.initialValues),$=I.useRef(g.initialErrors||Dt),b=I.useRef(g.initialTouched||En),y=I.useRef(g.initialStatus),h=I.useRef(!1),w=I.useRef({});process.env.NODE_ENV!=="production"&&I.useEffect(function(){typeof o>"u"||(process.env.NODE_ENV!=="production"?dr(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):dr())},[]),I.useEffect(function(){return h.current=!0,function(){h.current=!1}},[]);var k=I.useState(0),T=k[1],p=I.useRef({values:Sn(g.initialValues),errors:Sn(g.initialErrors)||Dt,touched:Sn(g.initialTouched)||En,status:Sn(g.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),x=p.current,A=I.useCallback(function(P){var M=p.current;p.current=Bp(M,P),M!==p.current&&T(function(U){return U+1})},[]),G=I.useCallback(function(P,M){return new Promise(function(U,H){var Q=g.validate(P,M);Q==null?U(Dt):ga(Q)?Q.then(function(ie){U(ie||Dt)},function(ie){process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",ie),H(ie)}):U(Q)})},[g.validate]),K=I.useCallback(function(P,M){var U=g.validationSchema,H=Be(U)?U(M):U,Q=M&&H.validateAt?H.validateAt(M,P):Hp(P,H);return new Promise(function(ie,ve){Q.then(function(){ie(Dt)},function(Re){Re.name==="ValidationError"?ie(Wp(Re)):(process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",Re),ve(Re))})})},[g.validationSchema]),we=I.useCallback(function(P,M){return new Promise(function(U){return U(w.current[P].validate(M))})},[]),xe=I.useCallback(function(P){var M=Object.keys(w.current).filter(function(H){return Be(w.current[H].validate)}),U=M.length>0?M.map(function(H){return we(H,Me(P,H))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(U).then(function(H){return H.reduce(function(Q,ie,ve){return ie==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||ie&&(Q=Bt(Q,M[ve],ie)),Q},{})})},[we]),ke=I.useCallback(function(P){return Promise.all([xe(P),g.validationSchema?K(P):{},g.validate?G(P):{}]).then(function(M){var U=M[0],H=M[1],Q=M[2],ie=ka.all([U,H,Q],{arrayMerge:Gp});return ie})},[g.validate,g.validationSchema,xe,G,K]),ge=ze(function(P){return P===void 0&&(P=x.values),A({type:"SET_ISVALIDATING",payload:!0}),ke(P).then(function(M){return h.current&&(A({type:"SET_ISVALIDATING",payload:!1}),A({type:"SET_ERRORS",payload:M})),M})});I.useEffect(function(){i&&h.current===!0&&Vt(S.current,g.initialValues)&&ge(S.current)},[i,ge]);var Se=I.useCallback(function(P){var M=P&&P.values?P.values:S.current,U=P&&P.errors?P.errors:$.current?$.current:g.initialErrors||{},H=P&&P.touched?P.touched:b.current?b.current:g.initialTouched||{},Q=P&&P.status?P.status:y.current?y.current:g.initialStatus;S.current=M,$.current=U,b.current=H,y.current=Q;var ie=function(){A({type:"RESET_FORM",payload:{isSubmitting:!!P&&!!P.isSubmitting,errors:U,touched:H,status:Q,values:M,isValidating:!!P&&!!P.isValidating,submitCount:P&&P.submitCount&&typeof P.submitCount=="number"?P.submitCount:0}})};if(g.onReset){var ve=g.onReset(x.values,Qe);ga(ve)?ve.then(ie):ie()}else ie()},[g.initialErrors,g.initialStatus,g.initialTouched,g.onReset]);I.useEffect(function(){h.current===!0&&!Vt(S.current,g.initialValues)&&c&&(S.current=g.initialValues,Se(),i&&ge(S.current))},[c,g.initialValues,Se,i,ge]),I.useEffect(function(){c&&h.current===!0&&!Vt($.current,g.initialErrors)&&($.current=g.initialErrors||Dt,A({type:"SET_ERRORS",payload:g.initialErrors||Dt}))},[c,g.initialErrors]),I.useEffect(function(){c&&h.current===!0&&!Vt(b.current,g.initialTouched)&&(b.current=g.initialTouched||En,A({type:"SET_TOUCHED",payload:g.initialTouched||En}))},[c,g.initialTouched]),I.useEffect(function(){c&&h.current===!0&&!Vt(y.current,g.initialStatus)&&(y.current=g.initialStatus,A({type:"SET_STATUS",payload:g.initialStatus}))},[c,g.initialStatus,g.initialTouched]);var Fe=ze(function(P){if(w.current[P]&&Be(w.current[P].validate)){var M=Me(x.values,P),U=w.current[P].validate(M);return ga(U)?(A({type:"SET_ISVALIDATING",payload:!0}),U.then(function(H){return H}).then(function(H){A({type:"SET_FIELD_ERROR",payload:{field:P,value:H}}),A({type:"SET_ISVALIDATING",payload:!1})})):(A({type:"SET_FIELD_ERROR",payload:{field:P,value:U}}),Promise.resolve(U))}else if(g.validationSchema)return A({type:"SET_ISVALIDATING",payload:!0}),K(x.values,P).then(function(H){return H}).then(function(H){A({type:"SET_FIELD_ERROR",payload:{field:P,value:Me(H,P)}}),A({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),Ve=I.useCallback(function(P,M){var U=M.validate;w.current[P]={validate:U}},[]),lt=I.useCallback(function(P){delete w.current[P]},[]),Le=ze(function(P,M){A({type:"SET_TOUCHED",payload:P});var U=M===void 0?a:M;return U?ge(x.values):Promise.resolve()}),L=I.useCallback(function(P){A({type:"SET_ERRORS",payload:P})},[]),C=ze(function(P,M){var U=Be(P)?P(x.values):P;A({type:"SET_VALUES",payload:U});var H=M===void 0?r:M;return H?ge(U):Promise.resolve()}),v=I.useCallback(function(P,M){A({type:"SET_FIELD_ERROR",payload:{field:P,value:M}})},[]),O=ze(function(P,M,U){A({type:"SET_FIELD_VALUE",payload:{field:P,value:M}});var H=U===void 0?r:U;return H?ge(Bt(x.values,P,M)):Promise.resolve()}),E=I.useCallback(function(P,M){var U=M,H=P,Q;if(!_a(P)){P.persist&&P.persist();var ie=P.target?P.target:P.currentTarget,ve=ie.type,Re=ie.name,kr=ie.id,ha=ie.value,Ou=ie.checked,xu=ie.outerHTML,Qs=ie.options,ku=ie.multiple;U=M||Re||kr,!U&&process.env.NODE_ENV!=="production"&&Mi({htmlContent:xu,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),H=/number|range/.test(ve)?(Q=parseFloat(ha),isNaN(Q)?"":Q):/checkbox/.test(ve)?Yp(Me(x.values,U),Ou,ha):Qs&&ku?Kp(Qs):ha}U&&O(U,H)},[O,x.values]),d=ze(function(P){if(_a(P))return function(M){return E(M,P)};E(P)}),m=ze(function(P,M,U){M===void 0&&(M=!0),A({type:"SET_FIELD_TOUCHED",payload:{field:P,value:M}});var H=U===void 0?a:U;return H?ge(x.values):Promise.resolve()}),j=I.useCallback(function(P,M){P.persist&&P.persist();var U=P.target,H=U.name,Q=U.id,ie=U.outerHTML,ve=M||H||Q;!ve&&process.env.NODE_ENV!=="production"&&Mi({htmlContent:ie,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),m(ve,!0)},[m]),z=ze(function(P){if(_a(P))return function(M){return j(M,P)};j(P)}),Z=I.useCallback(function(P){Be(P)?A({type:"SET_FORMIK_STATE",payload:P}):A({type:"SET_FORMIK_STATE",payload:function(){return P}})},[]),oe=I.useCallback(function(P){A({type:"SET_STATUS",payload:P})},[]),se=I.useCallback(function(P){A({type:"SET_ISSUBMITTING",payload:P})},[]),ye=ze(function(){return A({type:"SUBMIT_ATTEMPT"}),ge().then(function(P){var M=P instanceof Error,U=!M&&Object.keys(P).length===0;if(U){var H;try{if(H=et(),H===void 0)return}catch(Q){throw Q}return Promise.resolve(H).then(function(Q){return h.current&&A({type:"SUBMIT_SUCCESS"}),Q}).catch(function(Q){if(h.current)throw A({type:"SUBMIT_FAILURE"}),Q})}else if(h.current&&(A({type:"SUBMIT_FAILURE"}),M))throw P})}),q=ze(function(P){if(P&&P.preventDefault&&Be(P.preventDefault)&&P.preventDefault(),P&&P.stopPropagation&&Be(P.stopPropagation)&&P.stopPropagation(),process.env.NODE_ENV!=="production"&&typeof document<"u"){var M=qp();M!==null&&M instanceof HTMLButtonElement&&(M.attributes&&M.attributes.getNamedItem("type")||(process.env.NODE_ENV!=="production"?dr(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):dr()))}ye().catch(function(U){console.warn("Warning: An unhandled error was caught from submitForm()",U)})}),Qe={resetForm:Se,validateForm:ge,validateField:Fe,setErrors:L,setFieldError:v,setFieldTouched:m,setFieldValue:O,setStatus:oe,setSubmitting:se,setTouched:Le,setValues:C,setFormikState:Z,submitForm:ye},et=ze(function(){return l(x.values,Qe)}),$t=ze(function(P){P&&P.preventDefault&&Be(P.preventDefault)&&P.preventDefault(),P&&P.stopPropagation&&Be(P.stopPropagation)&&P.stopPropagation(),Se()}),Tr=I.useCallback(function(P){return{value:Me(x.values,P),error:Me(x.errors,P),touched:!!Me(x.touched,P),initialValue:Me(S.current,P),initialTouched:!!Me(b.current,P),initialError:Me($.current,P)}},[x.errors,x.touched,x.values]),Pr=I.useCallback(function(P){return{setValue:function(U,H){return O(P,U,H)},setTouched:function(U,H){return m(P,U,H)},setError:function(U){return v(P,U)}}},[O,m,v]),jr=I.useCallback(function(P){var M=aa(P),U=M?P.name:P,H=Me(x.values,U),Q={name:U,value:H,onChange:d,onBlur:z};if(M){var ie=P.type,ve=P.value,Re=P.as,kr=P.multiple;ie==="checkbox"?ve===void 0?Q.checked=!!H:(Q.checked=!!(Array.isArray(H)&&~H.indexOf(ve)),Q.value=ve):ie==="radio"?(Q.checked=H===ve,Q.value=ve):Re==="select"&&kr&&(Q.value=Q.value||[],Q.multiple=!0)}return Q},[z,d,x.values]),Mt=I.useMemo(function(){return!Vt(S.current,x.values)},[S.current,x.values]),Or=I.useMemo(function(){return typeof o<"u"?Mt?x.errors&&Object.keys(x.errors).length===0:o!==!1&&Be(o)?o(g):o:x.errors&&Object.keys(x.errors).length===0},[o,Mt,x.errors,g]),xr=Ee({},x,{initialValues:S.current,initialErrors:$.current,initialTouched:b.current,initialStatus:y.current,handleBlur:z,handleChange:d,handleReset:$t,handleSubmit:q,resetForm:Se,setErrors:L,setFormikState:Z,setFieldTouched:m,setFieldValue:O,setFieldError:v,setStatus:oe,setSubmitting:se,setTouched:Le,setValues:C,submitForm:ye,validateForm:ge,validateField:Fe,isValid:Or,dirty:Mt,unregisterField:lt,registerField:Ve,getFieldProps:jr,getFieldMeta:Tr,getFieldHelpers:Pr,validateOnBlur:a,validateOnChange:r,validateOnMount:i});return xr}function Mi(e){var t=e.htmlContent,r=e.documentationAnchorLink,n=e.handlerName;console.warn("Warning: Formik called `"+n+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+t+`
|
|
15
|
+
*/var Mi;function Fp(){return Mi||(Mi=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,$=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function k(q){return typeof q=="string"||typeof q=="function"||q===n||q===c||q===s||q===a||q===f||q===g||typeof q=="object"&&q!==null&&(q.$$typeof===$||q.$$typeof===S||q.$$typeof===i||q.$$typeof===o||q.$$typeof===l||q.$$typeof===y||q.$$typeof===h||q.$$typeof===w||q.$$typeof===b)}function T(q){if(typeof q=="object"&&q!==null){var Qe=q.$$typeof;switch(Qe){case t:var et=q.type;switch(et){case u:case c:case n:case s:case a:case f:return et;default:var $t=et&&et.$$typeof;switch($t){case o:case l:case $:case S:case i:return $t;default:return Qe}}case r:return Qe}}}var p=u,x=c,A=o,G=i,K=t,we=l,xe=n,ke=$,ge=S,Se=r,Fe=s,Ve=a,lt=f,Le=!1;function L(q){return Le||(Le=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),C(q)||T(q)===u}function C(q){return T(q)===c}function v(q){return T(q)===o}function O(q){return T(q)===i}function E(q){return typeof q=="object"&&q!==null&&q.$$typeof===t}function d(q){return T(q)===l}function m(q){return T(q)===n}function j(q){return T(q)===$}function z(q){return T(q)===S}function Z(q){return T(q)===r}function oe(q){return T(q)===s}function se(q){return T(q)===a}function ye(q){return T(q)===f}de.AsyncMode=p,de.ConcurrentMode=x,de.ContextConsumer=A,de.ContextProvider=G,de.Element=K,de.ForwardRef=we,de.Fragment=xe,de.Lazy=ke,de.Memo=ge,de.Portal=Se,de.Profiler=Fe,de.StrictMode=Ve,de.Suspense=lt,de.isAsyncMode=L,de.isConcurrentMode=C,de.isContextConsumer=v,de.isContextProvider=O,de.isElement=E,de.isForwardRef=d,de.isFragment=m,de.isLazy=j,de.isMemo=z,de.isPortal=Z,de.isProfiler=oe,de.isStrictMode=se,de.isSuspense=ye,de.isValidElementType=k,de.typeOf=T}()),de}process.env.NODE_ENV==="production"?Ma.exports=Dp():Ma.exports=Fp();var Vp=Ma.exports,ic=Vp,Lp={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},zp={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},oc={};oc[ic.ForwardRef]=Lp;oc[ic.Memo]=zp;function Ee(){return Ee=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ee.apply(this,arguments)}function cc(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,s;for(s=0;s<n.length;s++)a=n[s],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var na=I.createContext(void 0);na.displayName="FormikContext";na.Provider;na.Consumer;function Up(){var e=I.useContext(na);return e||(process.env.NODE_ENV!=="production"?dr(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):dr()),e}var Be=function(t){return typeof t=="function"},aa=function(t){return t!==null&&typeof t=="object"},qp=function(t){return String(Math.floor(Number(t)))===t},_a=function(t){return Object.prototype.toString.call(t)==="[object String]"},ga=function(t){return aa(t)&&Be(t.then)};function Bp(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Me(e,t,r,n){n===void 0&&(n=0);for(var a=sc(t);e&&n<a.length;)e=e[a[n++]];return n!==a.length&&!e||e===void 0?r:e}function Bt(e,t,r){for(var n=Ni(e),a=n,s=0,i=sc(t);s<i.length-1;s++){var o=i[s],u=Me(e,i.slice(0,s+1));if(u&&(aa(u)||Array.isArray(u)))a=a[o]=Ni(u);else{var c=i[s+1];a=a[o]=qp(c)&&Number(c)>=0?[]:{}}}return(s===0?e:a)[i[s]]===r?e:(r===void 0?delete a[i[s]]:a[i[s]]=r,s===0&&r===void 0&&delete n[i[s]],n)}function uc(e,t,r,n){r===void 0&&(r=new WeakMap),n===void 0&&(n={});for(var a=0,s=Object.keys(e);a<s.length;a++){var i=s[a],o=e[i];aa(o)?r.get(o)||(r.set(o,!0),n[i]=Array.isArray(o)?[]:{},uc(o,t,r,n[i])):n[i]=t}return n}function Zp(e,t){switch(t.type){case"SET_VALUES":return Ee({},e,{values:t.payload});case"SET_TOUCHED":return Ee({},e,{touched:t.payload});case"SET_ERRORS":return Vt(e.errors,t.payload)?e:Ee({},e,{errors:t.payload});case"SET_STATUS":return Ee({},e,{status:t.payload});case"SET_ISSUBMITTING":return Ee({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Ee({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Ee({},e,{values:Bt(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Ee({},e,{touched:Bt(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Ee({},e,{errors:Bt(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Ee({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Ee({},e,{touched:uc(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return Ee({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return Ee({},e,{isSubmitting:!1});default:return e}}var Dt={},En={};function Wp(e){var t=e.validateOnChange,r=t===void 0?!0:t,n=e.validateOnBlur,a=n===void 0?!0:n,s=e.validateOnMount,i=s===void 0?!1:s,o=e.isInitialValid,u=e.enableReinitialize,c=u===void 0?!1:u,l=e.onSubmit,f=cc(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),g=Ee({validateOnChange:r,validateOnBlur:a,validateOnMount:i,onSubmit:l},f),S=I.useRef(g.initialValues),$=I.useRef(g.initialErrors||Dt),b=I.useRef(g.initialTouched||En),y=I.useRef(g.initialStatus),h=I.useRef(!1),w=I.useRef({});process.env.NODE_ENV!=="production"&&I.useEffect(function(){typeof o>"u"||(process.env.NODE_ENV!=="production"?dr(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):dr())},[]),I.useEffect(function(){return h.current=!0,function(){h.current=!1}},[]);var k=I.useState(0),T=k[1],p=I.useRef({values:Sn(g.initialValues),errors:Sn(g.initialErrors)||Dt,touched:Sn(g.initialTouched)||En,status:Sn(g.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),x=p.current,A=I.useCallback(function(P){var M=p.current;p.current=Zp(M,P),M!==p.current&&T(function(U){return U+1})},[]),G=I.useCallback(function(P,M){return new Promise(function(U,H){var Q=g.validate(P,M);Q==null?U(Dt):ga(Q)?Q.then(function(ie){U(ie||Dt)},function(ie){process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",ie),H(ie)}):U(Q)})},[g.validate]),K=I.useCallback(function(P,M){var U=g.validationSchema,H=Be(U)?U(M):U,Q=M&&H.validateAt?H.validateAt(M,P):Gp(P,H);return new Promise(function(ie,ve){Q.then(function(){ie(Dt)},function(Re){Re.name==="ValidationError"?ie(Hp(Re)):(process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",Re),ve(Re))})})},[g.validationSchema]),we=I.useCallback(function(P,M){return new Promise(function(U){return U(w.current[P].validate(M))})},[]),xe=I.useCallback(function(P){var M=Object.keys(w.current).filter(function(H){return Be(w.current[H].validate)}),U=M.length>0?M.map(function(H){return we(H,Me(P,H))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(U).then(function(H){return H.reduce(function(Q,ie,ve){return ie==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||ie&&(Q=Bt(Q,M[ve],ie)),Q},{})})},[we]),ke=I.useCallback(function(P){return Promise.all([xe(P),g.validationSchema?K(P):{},g.validate?G(P):{}]).then(function(M){var U=M[0],H=M[1],Q=M[2],ie=ka.all([U,H,Q],{arrayMerge:Kp});return ie})},[g.validate,g.validationSchema,xe,G,K]),ge=ze(function(P){return P===void 0&&(P=x.values),A({type:"SET_ISVALIDATING",payload:!0}),ke(P).then(function(M){return h.current&&(A({type:"SET_ISVALIDATING",payload:!1}),A({type:"SET_ERRORS",payload:M})),M})});I.useEffect(function(){i&&h.current===!0&&Vt(S.current,g.initialValues)&&ge(S.current)},[i,ge]);var Se=I.useCallback(function(P){var M=P&&P.values?P.values:S.current,U=P&&P.errors?P.errors:$.current?$.current:g.initialErrors||{},H=P&&P.touched?P.touched:b.current?b.current:g.initialTouched||{},Q=P&&P.status?P.status:y.current?y.current:g.initialStatus;S.current=M,$.current=U,b.current=H,y.current=Q;var ie=function(){A({type:"RESET_FORM",payload:{isSubmitting:!!P&&!!P.isSubmitting,errors:U,touched:H,status:Q,values:M,isValidating:!!P&&!!P.isValidating,submitCount:P&&P.submitCount&&typeof P.submitCount=="number"?P.submitCount:0}})};if(g.onReset){var ve=g.onReset(x.values,Qe);ga(ve)?ve.then(ie):ie()}else ie()},[g.initialErrors,g.initialStatus,g.initialTouched,g.onReset]);I.useEffect(function(){h.current===!0&&!Vt(S.current,g.initialValues)&&c&&(S.current=g.initialValues,Se(),i&&ge(S.current))},[c,g.initialValues,Se,i,ge]),I.useEffect(function(){c&&h.current===!0&&!Vt($.current,g.initialErrors)&&($.current=g.initialErrors||Dt,A({type:"SET_ERRORS",payload:g.initialErrors||Dt}))},[c,g.initialErrors]),I.useEffect(function(){c&&h.current===!0&&!Vt(b.current,g.initialTouched)&&(b.current=g.initialTouched||En,A({type:"SET_TOUCHED",payload:g.initialTouched||En}))},[c,g.initialTouched]),I.useEffect(function(){c&&h.current===!0&&!Vt(y.current,g.initialStatus)&&(y.current=g.initialStatus,A({type:"SET_STATUS",payload:g.initialStatus}))},[c,g.initialStatus,g.initialTouched]);var Fe=ze(function(P){if(w.current[P]&&Be(w.current[P].validate)){var M=Me(x.values,P),U=w.current[P].validate(M);return ga(U)?(A({type:"SET_ISVALIDATING",payload:!0}),U.then(function(H){return H}).then(function(H){A({type:"SET_FIELD_ERROR",payload:{field:P,value:H}}),A({type:"SET_ISVALIDATING",payload:!1})})):(A({type:"SET_FIELD_ERROR",payload:{field:P,value:U}}),Promise.resolve(U))}else if(g.validationSchema)return A({type:"SET_ISVALIDATING",payload:!0}),K(x.values,P).then(function(H){return H}).then(function(H){A({type:"SET_FIELD_ERROR",payload:{field:P,value:Me(H,P)}}),A({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),Ve=I.useCallback(function(P,M){var U=M.validate;w.current[P]={validate:U}},[]),lt=I.useCallback(function(P){delete w.current[P]},[]),Le=ze(function(P,M){A({type:"SET_TOUCHED",payload:P});var U=M===void 0?a:M;return U?ge(x.values):Promise.resolve()}),L=I.useCallback(function(P){A({type:"SET_ERRORS",payload:P})},[]),C=ze(function(P,M){var U=Be(P)?P(x.values):P;A({type:"SET_VALUES",payload:U});var H=M===void 0?r:M;return H?ge(U):Promise.resolve()}),v=I.useCallback(function(P,M){A({type:"SET_FIELD_ERROR",payload:{field:P,value:M}})},[]),O=ze(function(P,M,U){A({type:"SET_FIELD_VALUE",payload:{field:P,value:M}});var H=U===void 0?r:U;return H?ge(Bt(x.values,P,M)):Promise.resolve()}),E=I.useCallback(function(P,M){var U=M,H=P,Q;if(!_a(P)){P.persist&&P.persist();var ie=P.target?P.target:P.currentTarget,ve=ie.type,Re=ie.name,kr=ie.id,ha=ie.value,xu=ie.checked,ku=ie.outerHTML,Qs=ie.options,Cu=ie.multiple;U=M||Re||kr,!U&&process.env.NODE_ENV!=="production"&&Di({htmlContent:ku,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),H=/number|range/.test(ve)?(Q=parseFloat(ha),isNaN(Q)?"":Q):/checkbox/.test(ve)?Jp(Me(x.values,U),xu,ha):Qs&&Cu?Yp(Qs):ha}U&&O(U,H)},[O,x.values]),d=ze(function(P){if(_a(P))return function(M){return E(M,P)};E(P)}),m=ze(function(P,M,U){M===void 0&&(M=!0),A({type:"SET_FIELD_TOUCHED",payload:{field:P,value:M}});var H=U===void 0?a:U;return H?ge(x.values):Promise.resolve()}),j=I.useCallback(function(P,M){P.persist&&P.persist();var U=P.target,H=U.name,Q=U.id,ie=U.outerHTML,ve=M||H||Q;!ve&&process.env.NODE_ENV!=="production"&&Di({htmlContent:ie,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),m(ve,!0)},[m]),z=ze(function(P){if(_a(P))return function(M){return j(M,P)};j(P)}),Z=I.useCallback(function(P){Be(P)?A({type:"SET_FORMIK_STATE",payload:P}):A({type:"SET_FORMIK_STATE",payload:function(){return P}})},[]),oe=I.useCallback(function(P){A({type:"SET_STATUS",payload:P})},[]),se=I.useCallback(function(P){A({type:"SET_ISSUBMITTING",payload:P})},[]),ye=ze(function(){return A({type:"SUBMIT_ATTEMPT"}),ge().then(function(P){var M=P instanceof Error,U=!M&&Object.keys(P).length===0;if(U){var H;try{if(H=et(),H===void 0)return}catch(Q){throw Q}return Promise.resolve(H).then(function(Q){return h.current&&A({type:"SUBMIT_SUCCESS"}),Q}).catch(function(Q){if(h.current)throw A({type:"SUBMIT_FAILURE"}),Q})}else if(h.current&&(A({type:"SUBMIT_FAILURE"}),M))throw P})}),q=ze(function(P){if(P&&P.preventDefault&&Be(P.preventDefault)&&P.preventDefault(),P&&P.stopPropagation&&Be(P.stopPropagation)&&P.stopPropagation(),process.env.NODE_ENV!=="production"&&typeof document<"u"){var M=Bp();M!==null&&M instanceof HTMLButtonElement&&(M.attributes&&M.attributes.getNamedItem("type")||(process.env.NODE_ENV!=="production"?dr(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):dr()))}ye().catch(function(U){console.warn("Warning: An unhandled error was caught from submitForm()",U)})}),Qe={resetForm:Se,validateForm:ge,validateField:Fe,setErrors:L,setFieldError:v,setFieldTouched:m,setFieldValue:O,setStatus:oe,setSubmitting:se,setTouched:Le,setValues:C,setFormikState:Z,submitForm:ye},et=ze(function(){return l(x.values,Qe)}),$t=ze(function(P){P&&P.preventDefault&&Be(P.preventDefault)&&P.preventDefault(),P&&P.stopPropagation&&Be(P.stopPropagation)&&P.stopPropagation(),Se()}),Tr=I.useCallback(function(P){return{value:Me(x.values,P),error:Me(x.errors,P),touched:!!Me(x.touched,P),initialValue:Me(S.current,P),initialTouched:!!Me(b.current,P),initialError:Me($.current,P)}},[x.errors,x.touched,x.values]),Pr=I.useCallback(function(P){return{setValue:function(U,H){return O(P,U,H)},setTouched:function(U,H){return m(P,U,H)},setError:function(U){return v(P,U)}}},[O,m,v]),jr=I.useCallback(function(P){var M=aa(P),U=M?P.name:P,H=Me(x.values,U),Q={name:U,value:H,onChange:d,onBlur:z};if(M){var ie=P.type,ve=P.value,Re=P.as,kr=P.multiple;ie==="checkbox"?ve===void 0?Q.checked=!!H:(Q.checked=!!(Array.isArray(H)&&~H.indexOf(ve)),Q.value=ve):ie==="radio"?(Q.checked=H===ve,Q.value=ve):Re==="select"&&kr&&(Q.value=Q.value||[],Q.multiple=!0)}return Q},[z,d,x.values]),Mt=I.useMemo(function(){return!Vt(S.current,x.values)},[S.current,x.values]),Or=I.useMemo(function(){return typeof o<"u"?Mt?x.errors&&Object.keys(x.errors).length===0:o!==!1&&Be(o)?o(g):o:x.errors&&Object.keys(x.errors).length===0},[o,Mt,x.errors,g]),xr=Ee({},x,{initialValues:S.current,initialErrors:$.current,initialTouched:b.current,initialStatus:y.current,handleBlur:z,handleChange:d,handleReset:$t,handleSubmit:q,resetForm:Se,setErrors:L,setFormikState:Z,setFieldTouched:m,setFieldValue:O,setFieldError:v,setStatus:oe,setSubmitting:se,setTouched:Le,setValues:C,submitForm:ye,validateForm:ge,validateField:Fe,isValid:Or,dirty:Mt,unregisterField:lt,registerField:Ve,getFieldProps:jr,getFieldMeta:Tr,getFieldHelpers:Pr,validateOnBlur:a,validateOnChange:r,validateOnMount:i});return xr}function Di(e){var t=e.htmlContent,r=e.documentationAnchorLink,n=e.handlerName;console.warn("Warning: Formik called `"+n+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+t+`
|
|
16
16
|
Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#`+r+`
|
|
17
|
-
`)}function Wp(e){var t={};if(e.inner){if(e.inner.length===0)return Bt(t,e.path,e.message);for(var a=e.inner,r=Array.isArray(a),n=0,a=r?a:a[Symbol.iterator]();;){var s;if(r){if(n>=a.length)break;s=a[n++]}else{if(n=a.next(),n.done)break;s=n.value}var i=s;Me(t,i.path)||(t=Bt(t,i.path,i.message))}}return t}function Hp(e,t,r,n){r===void 0&&(r=!1);var a=Da(e);return t[r?"validateSync":"validate"](a,{abortEarly:!1,context:a})}function Da(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);Array.isArray(e[n])===!0?t[n]=e[n].map(function(a){return Array.isArray(a)===!0||oi(a)?Da(a):a!==""?a:void 0}):oi(e[n])?t[n]=Da(e[n]):t[n]=e[n]!==""?e[n]:void 0}return t}function Gp(e,t,r){var n=e.slice();return t.forEach(function(s,i){if(typeof n[i]>"u"){var o=r.clone!==!1,u=o&&r.isMergeableObject(s);n[i]=u?ka(Array.isArray(s)?[]:{},s,r):s}else r.isMergeableObject(s)?n[i]=ka(e[i],s,r):e.indexOf(s)===-1&&n.push(s)}),n}function Kp(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function Yp(e,t,r){if(typeof e=="boolean")return!!t;var n=[],a=!1,s=-1;if(Array.isArray(e))n=e,s=e.indexOf(r),a=s>=0;else if(!r||r=="true"||r=="false")return!!t;return t&&r&&!a?n.concat(r):a?n.slice(0,s).concat(n.slice(s+1)):n}var Jp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?I.useLayoutEffect:I.useEffect;function ze(e){var t=I.useRef(e);return Jp(function(){t.current=e}),I.useCallback(function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t.current.apply(void 0,n)},[])}var Xp=I.forwardRef(function(e,t){var r=e.action,n=oc(e,["action"]),a=r??"#",s=zp(),i=s.handleReset,o=s.handleSubmit;return I.createElement("form",Ee({onSubmit:o,ref:t,onReset:i,action:a},n))});Xp.displayName="Form";var ce;(function(e){e.assertEqual=a=>a;function t(a){}e.assertIs=t;function r(a){throw new Error}e.assertNever=r,e.arrayToEnum=a=>{const s={};for(const i of a)s[i]=i;return s},e.getValidEnumValues=a=>{const s=e.objectKeys(a).filter(o=>typeof a[a[o]]!="number"),i={};for(const o of s)i[o]=a[o];return e.objectValues(i)},e.objectValues=a=>e.objectKeys(a).map(function(s){return a[s]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const s=[];for(const i in a)Object.prototype.hasOwnProperty.call(a,i)&&s.push(i);return s},e.find=(a,s)=>{for(const i of a)if(s(i))return i},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function n(a,s=" | "){return a.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}e.joinValues=n,e.jsonStringifyReplacer=(a,s)=>typeof s=="bigint"?s.toString():s})(ce||(ce={}));var Fa;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(Fa||(Fa={}));const V=ce.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),mt=e=>{switch(typeof e){case"undefined":return V.undefined;case"string":return V.string;case"number":return 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}},N=ce.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"]),Qp=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class De extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){const r=t||function(s){return s.message},n={_errors:[]},a=s=>{for(const i of s.issues)if(i.code==="invalid_union")i.unionErrors.map(a);else if(i.code==="invalid_return_type")a(i.returnTypeError);else if(i.code==="invalid_arguments")a(i.argumentsError);else if(i.path.length===0)n._errors.push(r(i));else{let o=n,u=0;for(;u<i.path.length;){const c=i.path[u];u===i.path.length-1?(o[c]=o[c]||{_errors:[]},o[c]._errors.push(r(i))):o[c]=o[c]||{_errors:[]},o=o[c],u++}}};return a(this),n}static assert(t){if(!(t instanceof De))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ce.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},n=[];for(const a of this.issues)a.path.length>0?(r[a.path[0]]=r[a.path[0]]||[],r[a.path[0]].push(t(a))):n.push(t(a));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}De.create=e=>new De(e);const yr=(e,t)=>{let r;switch(e.code){case N.invalid_type:e.received===V.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case N.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,ce.jsonStringifyReplacer)}`;break;case N.unrecognized_keys:r=`Unrecognized key(s) in object: ${ce.joinValues(e.keys,", ")}`;break;case N.invalid_union:r="Invalid input";break;case N.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${ce.joinValues(e.options)}`;break;case N.invalid_enum_value:r=`Invalid enum value. Expected ${ce.joinValues(e.options)}, received '${e.received}'`;break;case N.invalid_arguments:r="Invalid function arguments";break;case N.invalid_return_type:r="Invalid function return type";break;case N.invalid_date:r="Invalid date";break;case N.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}"`:ce.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case N.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==="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 N.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 N.custom:r="Invalid input";break;case N.invalid_intersection_types:r="Intersection results could not be merged";break;case N.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case N.not_finite:r="Number must be finite";break;default:r=t.defaultError,ce.assertNever(e)}return{message:r}};let uc=yr;function ey(e){uc=e}function Ln(){return uc}const zn=e=>{const{data:t,path:r,errorMaps:n,issueData:a}=e,s=[...r,...a.path||[]],i={...a,path:s};if(a.message!==void 0)return{...a,path:s,message:a.message};let o="";const u=n.filter(c=>!!c).slice().reverse();for(const c of u)o=c(i,{data:t,defaultError:o}).message;return{...a,path:s,message:o}},ty=[];function R(e,t){const r=Ln(),n=zn({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===yr?void 0:yr].filter(a=>!!a)});e.common.issues.push(n)}class Oe{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const n=[];for(const a of r){if(a.status==="aborted")return J;a.status==="dirty"&&t.dirty(),n.push(a.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){const n=[];for(const a of r){const s=await a.key,i=await a.value;n.push({key:s,value:i})}return Oe.mergeObjectSync(t,n)}static mergeObjectSync(t,r){const n={};for(const a of r){const{key:s,value:i}=a;if(s.status==="aborted"||i.status==="aborted")return J;s.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof i.value<"u"||a.alwaysSet)&&(n[s.value]=i.value)}return{status:t.value,value:n}}}const J=Object.freeze({status:"aborted"}),lr=e=>({status:"dirty",value:e}),Ne=e=>({status:"valid",value:e}),Va=e=>e.status==="aborted",La=e=>e.status==="dirty",Gt=e=>e.status==="valid",Xr=e=>typeof Promise<"u"&&e instanceof Promise;function Un(e,t,r,n){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function dc(e,t,r,n,a){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,r),r}var B;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(B||(B={}));var Dr,Fr;class ot{constructor(t,r,n,a){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Di=(e,t)=>{if(Gt(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;const r=new De(e.common.issues);return this._error=r,this._error}}};function ee(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:a}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(i,o)=>{var u,c;const{message:l}=e;return i.code==="invalid_enum_value"?{message:l??o.defaultError}:typeof o.data>"u"?{message:(u=l??n)!==null&&u!==void 0?u:o.defaultError}:i.code!=="invalid_type"?{message:o.defaultError}:{message:(c=l??r)!==null&&c!==void 0?c:o.defaultError}},description:a}}class re{get description(){return this._def.description}_getType(t){return mt(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:mt(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Oe,ctx:{common:t.parent.common,data:t.data,parsedType:mt(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(Xr(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){var n;const a={common:{issues:[],async:(n=r==null?void 0:r.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:mt(t)},s=this._parseSync({data:t,path:a.path,parent:a});return Di(a,s)}"~validate"(t){var r,n;const a={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:mt(t)};if(!this["~standard"].async)try{const s=this._parseSync({data:t,path:[],parent:a});return Gt(s)?{value:s.value}:{issues:a.common.issues}}catch(s){!((n=(r=s==null?void 0:s.message)===null||r===void 0?void 0:r.toLowerCase())===null||n===void 0)&&n.includes("encountered")&&(this["~standard"].async=!0),a.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:a}).then(s=>Gt(s)?{value:s.value}:{issues:a.common.issues})}async parseAsync(t,r){const n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){const n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:mt(t)},a=this._parse({data:t,path:n.path,parent:n}),s=await(Xr(a)?a:Promise.resolve(a));return Di(n,s)}refine(t,r){const n=a=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(a):r;return this._refinement((a,s)=>{const i=t(a),o=()=>s.addIssue({code:N.custom,...n(a)});return typeof Promise<"u"&&i instanceof Promise?i.then(u=>u?!0:(o(),!1)):i?!0:(o(),!1)})}refinement(t,r){return this._refinement((n,a)=>t(n)?!0:(a.addIssue(typeof r=="function"?r(n,a):r),!1))}_refinement(t){return new Je({schema:this,typeName:Y.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 it.create(this,this._def)}nullable(){return It.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ge.create(this)}promise(){return gr.create(this,this._def)}or(t){return rn.create([this,t],this._def)}and(t){return nn.create(this,t,this._def)}transform(t){return new Je({...ee(this._def),schema:this,typeName:Y.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new un({...ee(this._def),innerType:this,defaultValue:r,typeName:Y.ZodDefault})}brand(){return new is({typeName:Y.ZodBranded,type:this,...ee(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new dn({...ee(this._def),innerType:this,catchValue:r,typeName:Y.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return yn.create(this,t)}readonly(){return ln.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const ry=/^c[^\s-]{8,}$/i,ny=/^[0-9a-z]+$/,ay=/^[0-9A-HJKMNP-TV-Z]{26}$/i,sy=/^[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,iy=/^[a-z0-9_-]{21}$/i,oy=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,cy=/^[-+]?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)?)??$/,uy=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,dy="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let va;const ly=/^(?:(?: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])$/,fy=/^(?:(?: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])$/,hy=/^(([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]))$/,my=/^(([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])$/,py=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,yy=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,lc="((\\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])))",_y=new RegExp(`^${lc}$`);function fc(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function gy(e){return new RegExp(`^${fc(e)}$`)}function hc(e){let t=`${lc}T${fc(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function vy(e,t){return!!((t==="v4"||!t)&&ly.test(e)||(t==="v6"||!t)&&hy.test(e))}function $y(e,t){if(!oy.test(e))return!1;try{const[r]=e.split("."),n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),a=JSON.parse(atob(n));return!(typeof a!="object"||a===null||!a.typ||!a.alg||t&&a.alg!==t)}catch{return!1}}function by(e,t){return!!((t==="v4"||!t)&&fy.test(e)||(t==="v6"||!t)&&my.test(e))}class He extends re{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==V.string){const s=this._getOrReturnCtx(t);return R(s,{code:N.invalid_type,expected:V.string,received:s.parsedType}),J}const n=new Oe;let a;for(const s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(a=this._getOrReturnCtx(t,a),R(a,{code:N.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="max")t.data.length>s.value&&(a=this._getOrReturnCtx(t,a),R(a,{code:N.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){const i=t.data.length>s.value,o=t.data.length<s.value;(i||o)&&(a=this._getOrReturnCtx(t,a),i?R(a,{code:N.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):o&&R(a,{code:N.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),n.dirty())}else if(s.kind==="email")uy.test(t.data)||(a=this._getOrReturnCtx(t,a),R(a,{validation:"email",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="emoji")va||(va=new RegExp(dy,"u")),va.test(t.data)||(a=this._getOrReturnCtx(t,a),R(a,{validation:"emoji",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="uuid")sy.test(t.data)||(a=this._getOrReturnCtx(t,a),R(a,{validation:"uuid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="nanoid")iy.test(t.data)||(a=this._getOrReturnCtx(t,a),R(a,{validation:"nanoid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid")ry.test(t.data)||(a=this._getOrReturnCtx(t,a),R(a,{validation:"cuid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid2")ny.test(t.data)||(a=this._getOrReturnCtx(t,a),R(a,{validation:"cuid2",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="ulid")ay.test(t.data)||(a=this._getOrReturnCtx(t,a),R(a,{validation:"ulid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),R(a,{validation:"url",code:N.invalid_string,message:s.message}),n.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),R(a,{validation:"regex",code:N.invalid_string,message:s.message}),n.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(a=this._getOrReturnCtx(t,a),R(a,{code:N.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),n.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(a=this._getOrReturnCtx(t,a),R(a,{code:N.invalid_string,validation:{startsWith:s.value},message:s.message}),n.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(a=this._getOrReturnCtx(t,a),R(a,{code:N.invalid_string,validation:{endsWith:s.value},message:s.message}),n.dirty()):s.kind==="datetime"?hc(s).test(t.data)||(a=this._getOrReturnCtx(t,a),R(a,{code:N.invalid_string,validation:"datetime",message:s.message}),n.dirty()):s.kind==="date"?_y.test(t.data)||(a=this._getOrReturnCtx(t,a),R(a,{code:N.invalid_string,validation:"date",message:s.message}),n.dirty()):s.kind==="time"?gy(s).test(t.data)||(a=this._getOrReturnCtx(t,a),R(a,{code:N.invalid_string,validation:"time",message:s.message}),n.dirty()):s.kind==="duration"?cy.test(t.data)||(a=this._getOrReturnCtx(t,a),R(a,{validation:"duration",code:N.invalid_string,message:s.message}),n.dirty()):s.kind==="ip"?vy(t.data,s.version)||(a=this._getOrReturnCtx(t,a),R(a,{validation:"ip",code:N.invalid_string,message:s.message}),n.dirty()):s.kind==="jwt"?$y(t.data,s.alg)||(a=this._getOrReturnCtx(t,a),R(a,{validation:"jwt",code:N.invalid_string,message:s.message}),n.dirty()):s.kind==="cidr"?by(t.data,s.version)||(a=this._getOrReturnCtx(t,a),R(a,{validation:"cidr",code:N.invalid_string,message:s.message}),n.dirty()):s.kind==="base64"?py.test(t.data)||(a=this._getOrReturnCtx(t,a),R(a,{validation:"base64",code:N.invalid_string,message:s.message}),n.dirty()):s.kind==="base64url"?yy.test(t.data)||(a=this._getOrReturnCtx(t,a),R(a,{validation:"base64url",code:N.invalid_string,message:s.message}),n.dirty()):ce.assertNever(s);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(a=>t.test(a),{validation:r,code:N.invalid_string,...B.errToObj(n)})}_addCheck(t){return new He({...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){var r,n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(r=t==null?void 0:t.offset)!==null&&r!==void 0?r:!1,local:(n=t==null?void 0:t.local)!==null&&n!==void 0?n:!1,...B.errToObj(t==null?void 0: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==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...B.errToObj(t==null?void 0: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==null?void 0:r.position,...B.errToObj(r==null?void 0: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 He({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new He({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new He({...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(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}He.create=e=>{var t;return new He({checks:[],typeName:Y.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...ee(e)})};function wy(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,a=r>n?r:n,s=parseInt(e.toFixed(a).replace(".","")),i=parseInt(t.toFixed(a).replace(".",""));return s%i/Math.pow(10,a)}class kt extends re{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){const s=this._getOrReturnCtx(t);return R(s,{code:N.invalid_type,expected:V.number,received:s.parsedType}),J}let n;const a=new Oe;for(const s of this._def.checks)s.kind==="int"?ce.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),R(n,{code:N.invalid_type,expected:"integer",received:"float",message:s.message}),a.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(n=this._getOrReturnCtx(t,n),R(n,{code:N.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),R(n,{code:N.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="multipleOf"?wy(t.data,s.value)!==0&&(n=this._getOrReturnCtx(t,n),R(n,{code:N.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),R(n,{code:N.not_finite,message:s.message}),a.dirty()):ce.assertNever(s);return{status:a.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,n,a){return new kt({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:B.toString(a)}]})}_addCheck(t){return new kt({...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(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const 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"&&ce.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(r)&&Number.isFinite(t)}}kt.create=e=>new kt({checks:[],typeName:Y.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...ee(e)});class Ct extends re{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 n;const a=new Oe;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(n=this._getOrReturnCtx(t,n),R(n,{code:N.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),R(n,{code:N.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),R(n,{code:N.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):ce.assertNever(s);return{status:a.value,value:t.data}}_getInvalidInput(t){const r=this._getOrReturnCtx(t);return R(r,{code:N.invalid_type,expected:V.bigint,received:r.parsedType}),J}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,n,a){return new Ct({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:B.toString(a)}]})}_addCheck(t){return new Ct({...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(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}Ct.create=e=>{var t;return new Ct({checks:[],typeName:Y.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...ee(e)})};class Qr extends re{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==V.boolean){const n=this._getOrReturnCtx(t);return R(n,{code:N.invalid_type,expected:V.boolean,received:n.parsedType}),J}return Ne(t.data)}}Qr.create=e=>new Qr({typeName:Y.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...ee(e)});class Kt extends re{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==V.date){const s=this._getOrReturnCtx(t);return R(s,{code:N.invalid_type,expected:V.date,received:s.parsedType}),J}if(isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return R(s,{code:N.invalid_date}),J}const n=new Oe;let a;for(const s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(a=this._getOrReturnCtx(t,a),R(a,{code:N.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),n.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(a=this._getOrReturnCtx(t,a),R(a,{code:N.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):ce.assertNever(s);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Kt({...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(const 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(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}}Kt.create=e=>new Kt({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Y.ZodDate,...ee(e)});class qn extends re{_parse(t){if(this._getType(t)!==V.symbol){const n=this._getOrReturnCtx(t);return R(n,{code:N.invalid_type,expected:V.symbol,received:n.parsedType}),J}return Ne(t.data)}}qn.create=e=>new qn({typeName:Y.ZodSymbol,...ee(e)});class en extends re{_parse(t){if(this._getType(t)!==V.undefined){const n=this._getOrReturnCtx(t);return R(n,{code:N.invalid_type,expected:V.undefined,received:n.parsedType}),J}return Ne(t.data)}}en.create=e=>new en({typeName:Y.ZodUndefined,...ee(e)});class tn extends re{_parse(t){if(this._getType(t)!==V.null){const n=this._getOrReturnCtx(t);return R(n,{code:N.invalid_type,expected:V.null,received:n.parsedType}),J}return Ne(t.data)}}tn.create=e=>new tn({typeName:Y.ZodNull,...ee(e)});class _r extends re{constructor(){super(...arguments),this._any=!0}_parse(t){return Ne(t.data)}}_r.create=e=>new _r({typeName:Y.ZodAny,...ee(e)});class Zt extends re{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Ne(t.data)}}Zt.create=e=>new Zt({typeName:Y.ZodUnknown,...ee(e)});class _t extends re{_parse(t){const r=this._getOrReturnCtx(t);return R(r,{code:N.invalid_type,expected:V.never,received:r.parsedType}),J}}_t.create=e=>new _t({typeName:Y.ZodNever,...ee(e)});class Bn extends re{_parse(t){if(this._getType(t)!==V.undefined){const n=this._getOrReturnCtx(t);return R(n,{code:N.invalid_type,expected:V.void,received:n.parsedType}),J}return Ne(t.data)}}Bn.create=e=>new Bn({typeName:Y.ZodVoid,...ee(e)});class Ge extends re{_parse(t){const{ctx:r,status:n}=this._processInputParams(t),a=this._def;if(r.parsedType!==V.array)return R(r,{code:N.invalid_type,expected:V.array,received:r.parsedType}),J;if(a.exactLength!==null){const i=r.data.length>a.exactLength.value,o=r.data.length<a.exactLength.value;(i||o)&&(R(r,{code:i?N.too_big:N.too_small,minimum:o?a.exactLength.value:void 0,maximum:i?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),n.dirty())}if(a.minLength!==null&&r.data.length<a.minLength.value&&(R(r,{code:N.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),n.dirty()),a.maxLength!==null&&r.data.length>a.maxLength.value&&(R(r,{code:N.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((i,o)=>a.type._parseAsync(new ot(r,i,r.path,o)))).then(i=>Oe.mergeArray(n,i));const s=[...r.data].map((i,o)=>a.type._parseSync(new ot(r,i,r.path,o)));return Oe.mergeArray(n,s)}get element(){return this._def.type}min(t,r){return new Ge({...this._def,minLength:{value:t,message:B.toString(r)}})}max(t,r){return new Ge({...this._def,maxLength:{value:t,message:B.toString(r)}})}length(t,r){return new Ge({...this._def,exactLength:{value:t,message:B.toString(r)}})}nonempty(t){return this.min(1,t)}}Ge.create=(e,t)=>new Ge({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Y.ZodArray,...ee(t)});function cr(e){if(e instanceof _e){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=it.create(cr(n))}return new _e({...e._def,shape:()=>t})}else return e instanceof Ge?new Ge({...e._def,type:cr(e.element)}):e instanceof it?it.create(cr(e.unwrap())):e instanceof It?It.create(cr(e.unwrap())):e instanceof ct?ct.create(e.items.map(t=>cr(t))):e}class _e extends re{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=ce.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==V.object){const c=this._getOrReturnCtx(t);return R(c,{code:N.invalid_type,expected:V.object,received:c.parsedType}),J}const{status:n,ctx:a}=this._processInputParams(t),{shape:s,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof _t&&this._def.unknownKeys==="strip"))for(const c in a.data)i.includes(c)||o.push(c);const u=[];for(const c of i){const l=s[c],f=a.data[c];u.push({key:{status:"valid",value:c},value:l._parse(new ot(a,f,a.path,c)),alwaysSet:c in a.data})}if(this._def.catchall instanceof _t){const c=this._def.unknownKeys;if(c==="passthrough")for(const l of o)u.push({key:{status:"valid",value:l},value:{status:"valid",value:a.data[l]}});else if(c==="strict")o.length>0&&(R(a,{code:N.unrecognized_keys,keys:o}),n.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const l of o){const f=a.data[l];u.push({key:{status:"valid",value:l},value:c._parse(new ot(a,f,a.path,l)),alwaysSet:l in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const c=[];for(const l of u){const f=await l.key,g=await l.value;c.push({key:f,value:g,alwaysSet:l.alwaysSet})}return c}).then(c=>Oe.mergeObjectSync(n,c)):Oe.mergeObjectSync(n,u)}get shape(){return this._def.shape()}strict(t){return B.errToObj,new _e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{var a,s,i,o;const u=(i=(s=(a=this._def).errorMap)===null||s===void 0?void 0:s.call(a,r,n).message)!==null&&i!==void 0?i:n.defaultError;return r.code==="unrecognized_keys"?{message:(o=B.errToObj(t).message)!==null&&o!==void 0?o:u}:{message:u}}}:{}})}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:Y.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new _e({...this._def,catchall:t})}pick(t){const r={};return ce.objectKeys(t).forEach(n=>{t[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new _e({...this._def,shape:()=>r})}omit(t){const r={};return ce.objectKeys(this.shape).forEach(n=>{t[n]||(r[n]=this.shape[n])}),new _e({...this._def,shape:()=>r})}deepPartial(){return cr(this)}partial(t){const r={};return ce.objectKeys(this.shape).forEach(n=>{const a=this.shape[n];t&&!t[n]?r[n]=a:r[n]=a.optional()}),new _e({...this._def,shape:()=>r})}required(t){const r={};return ce.objectKeys(this.shape).forEach(n=>{if(t&&!t[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof it;)s=s._def.innerType;r[n]=s}}),new _e({...this._def,shape:()=>r})}keyof(){return mc(ce.objectKeys(this.shape))}}_e.create=(e,t)=>new _e({shape:()=>e,unknownKeys:"strip",catchall:_t.create(),typeName:Y.ZodObject,...ee(t)});_e.strictCreate=(e,t)=>new _e({shape:()=>e,unknownKeys:"strict",catchall:_t.create(),typeName:Y.ZodObject,...ee(t)});_e.lazycreate=(e,t)=>new _e({shape:e,unknownKeys:"strip",catchall:_t.create(),typeName:Y.ZodObject,...ee(t)});class rn extends re{_parse(t){const{ctx:r}=this._processInputParams(t),n=this._def.options;function a(s){for(const o of s)if(o.result.status==="valid")return o.result;for(const o of s)if(o.result.status==="dirty")return r.common.issues.push(...o.ctx.common.issues),o.result;const i=s.map(o=>new De(o.ctx.common.issues));return R(r,{code:N.invalid_union,unionErrors:i}),J}if(r.common.async)return Promise.all(n.map(async s=>{const i={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:i}),ctx:i}})).then(a);{let s;const i=[];for(const u of n){const c={...r,common:{...r.common,issues:[]},parent:null},l=u._parseSync({data:r.data,path:r.path,parent:c});if(l.status==="valid")return l;l.status==="dirty"&&!s&&(s={result:l,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;const o=i.map(u=>new De(u));return R(r,{code:N.invalid_union,unionErrors:o}),J}}get options(){return this._def.options}}rn.create=(e,t)=>new rn({options:e,typeName:Y.ZodUnion,...ee(t)});const ft=e=>e instanceof sn?ft(e.schema):e instanceof Je?ft(e.innerType()):e instanceof on?[e.value]:e instanceof Nt?e.options:e instanceof cn?ce.objectValues(e.enum):e instanceof un?ft(e._def.innerType):e instanceof en?[void 0]:e instanceof tn?[null]:e instanceof it?[void 0,...ft(e.unwrap())]:e instanceof It?[null,...ft(e.unwrap())]:e instanceof is||e instanceof ln?ft(e.unwrap()):e instanceof dn?ft(e._def.innerType):[];class sa extends re{_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==V.object)return R(r,{code:N.invalid_type,expected:V.object,received:r.parsedType}),J;const n=this.discriminator,a=r.data[n],s=this.optionsMap.get(a);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(R(r,{code:N.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),J)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){const a=new Map;for(const s of r){const i=ft(s.shape[t]);if(!i.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const o of i){if(a.has(o))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(o)}`);a.set(o,s)}}return new sa({typeName:Y.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:a,...ee(n)})}}function za(e,t){const r=mt(e),n=mt(t);if(e===t)return{valid:!0,data:e};if(r===V.object&&n===V.object){const a=ce.objectKeys(t),s=ce.objectKeys(e).filter(o=>a.indexOf(o)!==-1),i={...e,...t};for(const o of s){const u=za(e[o],t[o]);if(!u.valid)return{valid:!1};i[o]=u.data}return{valid:!0,data:i}}else if(r===V.array&&n===V.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let s=0;s<e.length;s++){const i=e[s],o=t[s],u=za(i,o);if(!u.valid)return{valid:!1};a.push(u.data)}return{valid:!0,data:a}}else return r===V.date&&n===V.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class nn extends re{_parse(t){const{status:r,ctx:n}=this._processInputParams(t),a=(s,i)=>{if(Va(s)||Va(i))return J;const o=za(s.value,i.value);return o.valid?((La(s)||La(i))&&r.dirty(),{status:r.value,value:o.data}):(R(n,{code:N.invalid_intersection_types}),J)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,i])=>a(s,i)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}nn.create=(e,t,r)=>new nn({left:e,right:t,typeName:Y.ZodIntersection,...ee(r)});class ct extends re{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==V.array)return R(n,{code:N.invalid_type,expected:V.array,received:n.parsedType}),J;if(n.data.length<this._def.items.length)return R(n,{code:N.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),J;!this._def.rest&&n.data.length>this._def.items.length&&(R(n,{code:N.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const s=[...n.data].map((i,o)=>{const u=this._def.items[o]||this._def.rest;return u?u._parse(new ot(n,i,n.path,o)):null}).filter(i=>!!i);return n.common.async?Promise.all(s).then(i=>Oe.mergeArray(r,i)):Oe.mergeArray(r,s)}get items(){return this._def.items}rest(t){return new ct({...this._def,rest:t})}}ct.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ct({items:e,typeName:Y.ZodTuple,rest:null,...ee(t)})};class an extends re{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==V.object)return R(n,{code:N.invalid_type,expected:V.object,received:n.parsedType}),J;const a=[],s=this._def.keyType,i=this._def.valueType;for(const o in n.data)a.push({key:s._parse(new ot(n,o,n.path,o)),value:i._parse(new ot(n,n.data[o],n.path,o)),alwaysSet:o in n.data});return n.common.async?Oe.mergeObjectAsync(r,a):Oe.mergeObjectSync(r,a)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof re?new an({keyType:t,valueType:r,typeName:Y.ZodRecord,...ee(n)}):new an({keyType:He.create(),valueType:t,typeName:Y.ZodRecord,...ee(r)})}}class Zn extends re{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==V.map)return R(n,{code:N.invalid_type,expected:V.map,received:n.parsedType}),J;const a=this._def.keyType,s=this._def.valueType,i=[...n.data.entries()].map(([o,u],c)=>({key:a._parse(new ot(n,o,n.path,[c,"key"])),value:s._parse(new ot(n,u,n.path,[c,"value"]))}));if(n.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const u of i){const c=await u.key,l=await u.value;if(c.status==="aborted"||l.status==="aborted")return J;(c.status==="dirty"||l.status==="dirty")&&r.dirty(),o.set(c.value,l.value)}return{status:r.value,value:o}})}else{const o=new Map;for(const u of i){const c=u.key,l=u.value;if(c.status==="aborted"||l.status==="aborted")return J;(c.status==="dirty"||l.status==="dirty")&&r.dirty(),o.set(c.value,l.value)}return{status:r.value,value:o}}}}Zn.create=(e,t,r)=>new Zn({valueType:t,keyType:e,typeName:Y.ZodMap,...ee(r)});class Yt extends re{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==V.set)return R(n,{code:N.invalid_type,expected:V.set,received:n.parsedType}),J;const a=this._def;a.minSize!==null&&n.data.size<a.minSize.value&&(R(n,{code:N.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),r.dirty()),a.maxSize!==null&&n.data.size>a.maxSize.value&&(R(n,{code:N.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),r.dirty());const s=this._def.valueType;function i(u){const c=new Set;for(const l of u){if(l.status==="aborted")return J;l.status==="dirty"&&r.dirty(),c.add(l.value)}return{status:r.value,value:c}}const o=[...n.data.values()].map((u,c)=>s._parse(new ot(n,u,n.path,c)));return n.common.async?Promise.all(o).then(u=>i(u)):i(o)}min(t,r){return new Yt({...this._def,minSize:{value:t,message:B.toString(r)}})}max(t,r){return new Yt({...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)}}Yt.create=(e,t)=>new Yt({valueType:e,minSize:null,maxSize:null,typeName:Y.ZodSet,...ee(t)});class fr extends re{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==V.function)return R(r,{code:N.invalid_type,expected:V.function,received:r.parsedType}),J;function n(o,u){return zn({data:o,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Ln(),yr].filter(c=>!!c),issueData:{code:N.invalid_arguments,argumentsError:u}})}function a(o,u){return zn({data:o,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Ln(),yr].filter(c=>!!c),issueData:{code:N.invalid_return_type,returnTypeError:u}})}const s={errorMap:r.common.contextualErrorMap},i=r.data;if(this._def.returns instanceof gr){const o=this;return Ne(async function(...u){const c=new De([]),l=await o._def.args.parseAsync(u,s).catch(S=>{throw c.addIssue(n(u,S)),c}),f=await Reflect.apply(i,this,l);return await o._def.returns._def.type.parseAsync(f,s).catch(S=>{throw c.addIssue(a(f,S)),c})})}else{const o=this;return Ne(function(...u){const c=o._def.args.safeParse(u,s);if(!c.success)throw new De([n(u,c.error)]);const l=Reflect.apply(i,this,c.data),f=o._def.returns.safeParse(l,s);if(!f.success)throw new De([a(l,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new fr({...this._def,args:ct.create(t).rest(Zt.create())})}returns(t){return new fr({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new fr({args:t||ct.create([]).rest(Zt.create()),returns:r||Zt.create(),typeName:Y.ZodFunction,...ee(n)})}}class sn extends re{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}sn.create=(e,t)=>new sn({getter:e,typeName:Y.ZodLazy,...ee(t)});class on extends re{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return R(r,{received:r.data,code:N.invalid_literal,expected:this._def.value}),J}return{status:"valid",value:t.data}}get value(){return this._def.value}}on.create=(e,t)=>new on({value:e,typeName:Y.ZodLiteral,...ee(t)});function mc(e,t){return new Nt({values:e,typeName:Y.ZodEnum,...ee(t)})}class Nt extends re{constructor(){super(...arguments),Dr.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),n=this._def.values;return R(r,{expected:ce.joinValues(n),received:r.parsedType,code:N.invalid_type}),J}if(Un(this,Dr)||dc(this,Dr,new Set(this._def.values)),!Un(this,Dr).has(t.data)){const r=this._getOrReturnCtx(t),n=this._def.values;return R(r,{received:r.data,code:N.invalid_enum_value,options:n}),J}return Ne(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return Nt.create(t,{...this._def,...r})}exclude(t,r=this._def){return Nt.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}}Dr=new WeakMap;Nt.create=mc;class cn extends re{constructor(){super(...arguments),Fr.set(this,void 0)}_parse(t){const r=ce.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==V.string&&n.parsedType!==V.number){const a=ce.objectValues(r);return R(n,{expected:ce.joinValues(a),received:n.parsedType,code:N.invalid_type}),J}if(Un(this,Fr)||dc(this,Fr,new Set(ce.getValidEnumValues(this._def.values))),!Un(this,Fr).has(t.data)){const a=ce.objectValues(r);return R(n,{received:n.data,code:N.invalid_enum_value,options:a}),J}return Ne(t.data)}get enum(){return this._def.values}}Fr=new WeakMap;cn.create=(e,t)=>new cn({values:e,typeName:Y.ZodNativeEnum,...ee(t)});class gr extends re{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==V.promise&&r.common.async===!1)return R(r,{code:N.invalid_type,expected:V.promise,received:r.parsedType}),J;const n=r.parsedType===V.promise?r.data:Promise.resolve(r.data);return Ne(n.then(a=>this._def.type.parseAsync(a,{path:r.path,errorMap:r.common.contextualErrorMap})))}}gr.create=(e,t)=>new gr({type:e,typeName:Y.ZodPromise,...ee(t)});class Je extends re{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Y.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:n}=this._processInputParams(t),a=this._def.effect||null,s={addIssue:i=>{R(n,i),i.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),a.type==="preprocess"){const i=a.transform(n.data,s);if(n.common.async)return Promise.resolve(i).then(async o=>{if(r.value==="aborted")return J;const u=await this._def.schema._parseAsync({data:o,path:n.path,parent:n});return u.status==="aborted"?J:u.status==="dirty"||r.value==="dirty"?lr(u.value):u});{if(r.value==="aborted")return J;const o=this._def.schema._parseSync({data:i,path:n.path,parent:n});return o.status==="aborted"?J:o.status==="dirty"||r.value==="dirty"?lr(o.value):o}}if(a.type==="refinement"){const i=o=>{const u=a.refinement(o,s);if(n.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(n.common.async===!1){const o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?J:(o.status==="dirty"&&r.dirty(),i(o.value),{status:r.value,value:o.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>o.status==="aborted"?J:(o.status==="dirty"&&r.dirty(),i(o.value).then(()=>({status:r.value,value:o.value}))))}if(a.type==="transform")if(n.common.async===!1){const i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Gt(i))return i;const o=a.transform(i.value,s);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:o}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(i=>Gt(i)?Promise.resolve(a.transform(i.value,s)).then(o=>({status:r.value,value:o})):i);ce.assertNever(a)}}Je.create=(e,t,r)=>new Je({schema:e,typeName:Y.ZodEffects,effect:t,...ee(r)});Je.createWithPreprocess=(e,t,r)=>new Je({schema:t,effect:{type:"preprocess",transform:e},typeName:Y.ZodEffects,...ee(r)});class it extends re{_parse(t){return this._getType(t)===V.undefined?Ne(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}it.create=(e,t)=>new it({innerType:e,typeName:Y.ZodOptional,...ee(t)});class It extends re{_parse(t){return this._getType(t)===V.null?Ne(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}It.create=(e,t)=>new It({innerType:e,typeName:Y.ZodNullable,...ee(t)});class un extends re{_parse(t){const{ctx:r}=this._processInputParams(t);let n=r.data;return r.parsedType===V.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}un.create=(e,t)=>new un({innerType:e,typeName:Y.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ee(t)});class dn extends re{_parse(t){const{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},a=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Xr(a)?a.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new De(n.common.issues)},input:n.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new De(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}dn.create=(e,t)=>new dn({innerType:e,typeName:Y.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ee(t)});class Wn extends re{_parse(t){if(this._getType(t)!==V.nan){const n=this._getOrReturnCtx(t);return R(n,{code:N.invalid_type,expected:V.nan,received:n.parsedType}),J}return{status:"valid",value:t.data}}}Wn.create=e=>new Wn({typeName:Y.ZodNaN,...ee(e)});const Sy=Symbol("zod_brand");class is extends re{_parse(t){const{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class yn extends re{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?J:s.status==="dirty"?(r.dirty(),lr(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{const a=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?J:a.status==="dirty"?(r.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:n.path,parent:n})}}static create(t,r){return new yn({in:t,out:r,typeName:Y.ZodPipeline})}}class ln extends re{_parse(t){const r=this._def.innerType._parse(t),n=a=>(Gt(a)&&(a.value=Object.freeze(a.value)),a);return Xr(r)?r.then(a=>n(a)):n(r)}unwrap(){return this._def.innerType}}ln.create=(e,t)=>new ln({innerType:e,typeName:Y.ZodReadonly,...ee(t)});function Fi(e,t){const r=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof r=="string"?{message:r}:r}function pc(e,t={},r){return e?_r.create().superRefine((n,a)=>{var s,i;const o=e(n);if(o instanceof Promise)return o.then(u=>{var c,l;if(!u){const f=Fi(t,n),g=(l=(c=f.fatal)!==null&&c!==void 0?c:r)!==null&&l!==void 0?l:!0;a.addIssue({code:"custom",...f,fatal:g})}});if(!o){const u=Fi(t,n),c=(i=(s=u.fatal)!==null&&s!==void 0?s:r)!==null&&i!==void 0?i:!0;a.addIssue({code:"custom",...u,fatal:c})}}):_r.create()}const Ey={object:_e.lazycreate};var Y;(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"})(Y||(Y={}));const Ty=(e,t={message:`Input not instance of ${e.name}`})=>pc(r=>r instanceof e,t),yc=He.create,_c=kt.create,Py=Wn.create,jy=Ct.create,gc=Qr.create,Oy=Kt.create,xy=qn.create,ky=en.create,Cy=tn.create,Ny=_r.create,Iy=Zt.create,Ay=_t.create,Ry=Bn.create,My=Ge.create,Dy=_e.create,Fy=_e.strictCreate,Vy=rn.create,Ly=sa.create,zy=nn.create,Uy=ct.create,qy=an.create,By=Zn.create,Zy=Yt.create,Wy=fr.create,Hy=sn.create,Gy=on.create,Ky=Nt.create,Yy=cn.create,Jy=gr.create,Vi=Je.create,Xy=it.create,Qy=It.create,e_=Je.createWithPreprocess,t_=yn.create,r_=()=>yc().optional(),n_=()=>_c().optional(),a_=()=>gc().optional(),s_={string:e=>He.create({...e,coerce:!0}),number:e=>kt.create({...e,coerce:!0}),boolean:e=>Qr.create({...e,coerce:!0}),bigint:e=>Ct.create({...e,coerce:!0}),date:e=>Kt.create({...e,coerce:!0})},i_=J;var $a=Object.freeze({__proto__:null,defaultErrorMap:yr,setErrorMap:ey,getErrorMap:Ln,makeIssue:zn,EMPTY_PATH:ty,addIssueToContext:R,ParseStatus:Oe,INVALID:J,DIRTY:lr,OK:Ne,isAborted:Va,isDirty:La,isValid:Gt,isAsync:Xr,get util(){return ce},get objectUtil(){return Fa},ZodParsedType:V,getParsedType:mt,ZodType:re,datetimeRegex:hc,ZodString:He,ZodNumber:kt,ZodBigInt:Ct,ZodBoolean:Qr,ZodDate:Kt,ZodSymbol:qn,ZodUndefined:en,ZodNull:tn,ZodAny:_r,ZodUnknown:Zt,ZodNever:_t,ZodVoid:Bn,ZodArray:Ge,ZodObject:_e,ZodUnion:rn,ZodDiscriminatedUnion:sa,ZodIntersection:nn,ZodTuple:ct,ZodRecord:an,ZodMap:Zn,ZodSet:Yt,ZodFunction:fr,ZodLazy:sn,ZodLiteral:on,ZodEnum:Nt,ZodNativeEnum:cn,ZodPromise:gr,ZodEffects:Je,ZodTransformer:Je,ZodOptional:it,ZodNullable:It,ZodDefault:un,ZodCatch:dn,ZodNaN:Wn,BRAND:Sy,ZodBranded:is,ZodPipeline:yn,ZodReadonly:ln,custom:pc,Schema:re,ZodSchema:re,late:Ey,get ZodFirstPartyTypeKind(){return Y},coerce:s_,any:Ny,array:My,bigint:jy,boolean:gc,date:Oy,discriminatedUnion:Ly,effect:Vi,enum:Ky,function:Wy,instanceof:Ty,intersection:zy,lazy:Hy,literal:Gy,map:By,nan:Py,nativeEnum:Yy,never:Ay,null:Cy,nullable:Qy,number:_c,object:Dy,oboolean:a_,onumber:n_,optional:Xy,ostring:r_,pipeline:t_,preprocess:e_,promise:Jy,record:qy,set:Zy,strictObject:Fy,string:yc,symbol:xy,transformer:Vi,tuple:Uy,undefined:ky,union:Vy,unknown:Iy,void:Ry,NEVER:i_,ZodIssueCode:N,quotelessJson:Qp,ZodError:De}),Wt={},o_=nt&&nt.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(n[s]=a[s])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),vc=nt&&nt.__awaiter||function(e,t,r,n){function a(s){return s instanceof r?s:new r(function(i){i(s)})}return new(r||(r=Promise))(function(s,i){function o(l){try{c(n.next(l))}catch(f){i(f)}}function u(l){try{c(n.throw(l))}catch(f){i(f)}}function c(l){l.done?s(l.value):a(l.value).then(o,u)}c((n=n.apply(e,t||[])).next())})},$c=nt&&nt.__generator||function(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,a,s,i;return i={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function o(c){return function(l){return u([c,l])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(s=c[0]&2?a.return:c[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,c[1])).done)return s;switch(a=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,a=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){r.label=c[1];break}if(c[0]===6&&r.label<s[1]){r.label=s[1],s=c;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(c);break}s[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(l){c=[6,l],a=0}finally{n=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.toFormikValidate=wc=Wt.toFormikValidationSchema=Wt.ValidationError=void 0;var bc=function(e){o_(t,e);function t(r){var n=e.call(this,r)||this;return n.name="ValidationError",n.inner=[],n}return t}(Error);Wt.ValidationError=bc;function c_(e){var t=new bc(e.message);return t.inner=e.errors.map(function(r){return{message:r.message,path:r.path.join(".")}}),t}function u_(e,t){return{validate:function(r){return vc(this,void 0,void 0,function(){var n;return $c(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,e.parseAsync(r,t)];case 1:return a.sent(),[3,3];case 2:throw n=a.sent(),c_(n);case 3:return[2]}})})}}}var wc=Wt.toFormikValidationSchema=u_;function d_(e){for(var t={},r=0,n=e.errors;r<n.length;r++){var a=n[r];t[a.path.filter(Boolean).join(".")]=a.message}return t}function l_(e,t){var r=this;return function(n){return vc(r,void 0,void 0,function(){var a;return $c(this,function(s){switch(s.label){case 0:return[4,e.safeParseAsync(n,t)];case 1:return a=s.sent(),a.success?[2]:[2,d_(a.error)]}})})}}Wt.toFormikValidate=l_;const f_="_root__body_bfa58_141",h_="_root__form_bfa58_144",m_="_root__stickyButton_bfa58_159",ba={root__body:f_,root__form:h_,root__stickyButton:m_},tt={amountPicker:"amountPicker",cta:"cta",headline:"headline",legalCheckbox:"legalCheckbox",paymentMethods:"paymentMethods",priceDescription:"priceDescription",selectablePills:"selectablePills",submitButton:"submitButton",switcherToggle:"switcherToggle"};var os=(e=>(e.FULL_PAGE="full_page",e.IN_APP="in_app",e))(os||{});const p_="_root_1fb89_141",y_={root:p_},__=({errorMessage:e,id:t,onChange:r,value:n})=>_.jsx(D.Fieldset,{className:y_.root,name:t,children:_.jsx(D.InputFieldSpecial,{id:t,onChange:r,value:n,errorMessage:e})}),g_="_root_stypt_141",v_="_root__button_stypt_147",Li={root:g_,root__button:v_},$_=({data:{label:e,url:t}})=>_.jsx(D.Fieldset,{className:Li.root,children:_.jsx(D.TextButton,{className:Li.root__button,href:t,size:"link",text:e,color:"deepPurple",target:"_blank"})}),b_="_root_1vxm5_141",w_="_root__blockHeader_1vxm5_146",S_="_root__block_1vxm5_146",E_="_root__markdown_1vxm5_159",Tn={root:b_,root__blockHeader:w_,root__block:S_,root__markdown:E_},T_=({data:{buttonText:e,content:t,date:r,headline:n,version:a},onClose:s,open:i})=>{const o=()=>{s&&s(!i)};return _.jsx(D.Modal,{headerTitle:n,onClose:o,open:i,modalFooter:_.jsx(_.Fragment,{children:_.jsx(D.TextButton,{onClick:o,color:"blue",size:"large",text:e})}),modalBody:_.jsx(D.Card,{children:_.jsx(D.CardBody,{className:Tn.root,children:_.jsxs(_.Fragment,{children:[_.jsxs("div",{className:Tn.root__blockHeader,children:[_.jsx(D.Typography,{type:"body-regular",children:a}),_.jsx(D.Typography,{type:"body-regular",children:r})]}),_.jsx(D.Divider,{}),typeof t=="string"?_.jsx(Qt.MarkdownRichText,{text:t,className:Tn.root__markdown}):t.map((u,c)=>_.jsxs(I.Fragment,{children:[_.jsx("div",{className:Tn.root__block,children:u}),c!==t.length-1&&_.jsx(D.Divider,{})]},`rich_text_el_${c}`))]})})})})},P_="_headline_byfxz_141",j_={headline:P_},O_=({data:{headline:e,subheadline:t}})=>_.jsxs(D.Fieldset,{className:j_.headline,children:[_.jsx(D.Typography,{type:"h1",children:e}),_.jsx(D.Typography,{type:"body-regular",children:t})]}),x_="_root_14zd2_141",k_="_root__img_14zd2_148",zi={root:x_,root__img:k_},C_=({data:{alt:e,src:t}})=>_.jsx("div",{className:zi.root,"data-testid":"hero-block",children:_.jsx("img",{className:zi.root__img,alt:e,src:t})}),N_="_root_i7dny_141",I_="_root__checkbox_i7dny_149",A_="_root__text_i7dny_155",R_="_root__error_i7dny_161",M_="_root__link_i7dny_171",wt={"react-datepicker__day-names":"_react-datepicker__day-names_i7dny_120","react-datepicker__week":"_react-datepicker__week_i7dny_124","react-datepicker__day--outside-month":"_react-datepicker__day--outside-month_i7dny_131","react-datepicker":"_react-datepicker_i7dny_120",root:N_,root__checkbox:I_,root__text:A_,root__error:R_,"root--error":"_root--error_i7dny_168",root__link:M_,"root--stickyButton":"_root--stickyButton_i7dny_180"},D_=({data:{buttonLabel:e,label:t,layout:r},error:n,onChange:a,onClick:s,stickyButton:i})=>{const o=()=>{s&&s(!0)};return _.jsxs(D.Fieldset,{className:Ye(wt.root,{[wt["root--stickyButton"]]:i}),children:[r?_.jsx(D.CheckboxInput,{onChange:a,id:"legal_checkbox",className:Ye(wt.root__checkbox,{[wt["root--error"]]:n}),children:_.jsxs(D.Typography,{type:n?"detail-regular":"detail-medium",as:"p",children:[t," ",_.jsx(D.TextButton,{className:wt.root__link,onClick:o,size:"small",text:e,color:"deepPurple"})]})}):_.jsxs(D.Typography,{className:wt.root__text,type:n?"detail-regular":"detail-medium",as:"p",children:[t," ",_.jsx(D.TextButton,{className:wt.root__link,onClick:o,size:"small",text:e,color:"deepPurple"})]}),n&&_.jsx(D.Typography,{className:wt.root__error,type:"detail-bold",as:"p",children:n})]})},F_="_root_1t7vh_141",V_="_root__item_1t7vh_147",L_="_root__img_1t7vh_152",wa={root:F_,root__item:V_,root__img:L_},z_=({methods:e})=>_.jsx(D.Fieldset,{children:_.jsx("ul",{className:wa.root,children:e.map(({alt:t,id:r,src:n},a)=>_.jsx("li",{className:wa.root__item,children:_.jsx("img",{className:wa.root__img,src:n,alt:t})},`payments_${r}_${a}`))})}),U_="_root_1fc71_141",q_={root:U_},B_=({label:e})=>_.jsx(D.Fieldset,{className:q_.root,children:_.jsx(D.Typography,{type:"body-regular",children:e})}),Z_="_root_nsxb2_141",W_={root:Z_},H_=({onChange:e,selectablePills:t,selectedPills:r})=>_.jsx(D.Fieldset,{children:_.jsx(D.SelectablePillGroup,{className:W_.root,selectedItems:r,items:t,multiselect:!1,onChange:e})}),G_="_root_mxnra_141",K_={root:G_},Y_=({onChange:e,switcherToggle:t,value:r})=>_.jsx(D.SwitcherToggle,{className:K_.root,items:t,onChange:e,value:r}),St=()=>Math.floor(Math.random()*65536).toString(16).padStart(4,"0"),J_=()=>`${St()}${St()}-${St()}-${St()}-${St()}-${St()}${St()}${St()}`,X_={monthly:"supporter_monthly",yearly:"supporter_yearly"},Q_={monthly:2,yearly:3},eg=({amount:e,frequency:t,items:r})=>{const n=Nu.useTrack(),a=o=>o.map(u=>({item_name:u.id,price:Number(u.value)})),s=I.useMemo(()=>({currency:"EUR",item_list_name:X_[t],items:a(r)}),[t]);I.useEffect(()=>{n("view_item_list",{ecommerce:{...s,value:e}})},[n,s]);const i=I.useCallback((o,u)=>{const c={...s,value:u};return o==="purchase"&&(c.transaction_id=J_()),{ecommerce:c}},[s]);return I.useCallback((o,u)=>{n(o,i(o,u))},[i,n])},tg=(e,t,r)=>{const{subscribe:n,unsubscribe:a}=Po.useEventBus();I.useEffect(()=>{if(e)return n("submit_sponsor_form",t),n("open_sponsor_legal",r),()=>{a("submit_sponsor_form",t),a("open_sponsor_legal",r)}},[n,t,r])},rg=(e,t)=>{const r=Q_[t]||"2",n=parseInt(e,10)*100;return`volunteer-${r}-${n}`},ng=({error:e,errorLegal:t,minValue:r})=>$a.object({amount:$a.number().min(r,{message:e}).int(),legalCheckbox:$a.boolean().refine(n=>n===!0,{message:t})}),Sc=({blocks:e,defaultSelectedToggle:t,fieldDescription:r,fieldErrors:n,guidelinesModalData:a,hero:s,isCtaBlockPresent:i,layout:o,onError:u,onSubmit:c,scrollYTop:l=!1,stickyButton:f=!1})=>{const[g,S]=I.useState(t),[$,b]=I.useState(0),y=ng(n[g]),h=Cu.useOpenCheckout(),w=(L=t)=>{const C=e.selectablePills[L].find(v=>v.isSelected);return C?[{id:C.id,value:C.value}]:[]},k=()=>{const L=w()[0];return L?r[L.id]:e.priceDescription.label},T=()=>{const L=w()[0];return L?Number(L.value):0},p=eg({amount:$||T(),frequency:g,items:e.selectablePills[g]}),x=I.useCallback((L,C)=>{L==="thankyou_screen"&&p("purchase",C)},[p]),A=L=>{p("add_to_cart",L)},G=L=>{c(L)},K=Zp({initialValues:{amount:T(),fieldDescription:k(),legalCheckbox:!e.legalCheckbox.layout,legalModalOpen:!1,selectedPills:w(),selectedPillsTouched:!1,toggle:t},onSubmit:L=>{var v;p("begin_checkout",L.amount);const C=((v=L==null?void 0:L.selectedPills[0])==null?void 0:v.id)||rg(`${L.amount}`,L.toggle);h({getHostedPage:async()=>await Fn.postChargebeeCreate(C),layout:os.IN_APP,onError:u,onLoaded:()=>A(L.amount),onStep:O=>x(O,L.amount),onSuccess:()=>G(L)})},validateOnBlur:!0,validateOnChange:!0,validationSchema:wc(y)}),we=()=>{l&&f&&window.scrollTo({behavior:"smooth",top:0})},xe=async(L,C,v)=>{const O=L||e.selectablePills[C].filter(m=>m.value===v)[0],E=O?r[O.id]:e.priceDescription.label,d=O?[{id:O.id,value:O.value}]:[];await K.setValues({...K.values,amount:Number(v),fieldDescription:E,selectedPills:d},!0)},ke=L=>L[K.values.toggle],ge=L=>{(async()=>(await xe(L[0],K.values.toggle,L[0].value),await K.setTouched({selectedPillsTouched:!0},!0),p("view_item_list",Number(L[0].value))))()},Se=L=>{(async()=>(await xe(null,K.values.toggle,`${L}`),await K.setTouched({amount:!0},!0),b(L)))()},Fe=L=>{(async()=>{S(L);const C=w(L);if(!K.touched.amount&&!K.touched.selectedPillsTouched&&C.length){await xe(C[0],L,C[0].value),await K.setFieldValue("toggle",L,!0);return}await xe(null,L,`${K.values.amount}`),await K.setFieldValue("toggle",L,!0)})()},Ve=L=>{(async()=>await K.setFieldValue("legalModalOpen",L))()},lt=L=>{(async()=>(!K.touched.legalCheckbox&&await K.setFieldTouched("legalCheckbox"),await K.setFieldValue("legalCheckbox",L.target.checked,!0)))()},Le=()=>{(async()=>(K.values.amount===0&&we(),await K.submitForm(),window.scrollY!==0&&we()))()};return tg(i,Le,Ve),_.jsxs("div",{className:Ye({[ba.root__stickyButton]:f}),children:[_.jsx(C_,{data:s}),_.jsxs("div",{className:ba.root__body,children:[_.jsx(D.Form,{className:Ye(ba.root__form),children:o.map(L=>{const C=e[L];switch(L){case tt.headline:return _.jsx(I.Fragment,{children:_.jsx(O_,{data:C})},L);case tt.switcherToggle:return _.jsx(I.Fragment,{children:_.jsx(Y_,{switcherToggle:C,onChange:Fe,value:K.values.toggle})},L);case tt.selectablePills:return _.jsx(I.Fragment,{children:_.jsx(H_,{onChange:ge,selectablePills:ke(C),selectedPills:K.values.selectedPills})},L);case tt.priceDescription:return _.jsx(I.Fragment,{children:_.jsx(B_,{label:K.values.fieldDescription})},L);case tt.amountPicker:return _.jsx(I.Fragment,{children:_.jsx(__,{id:"amount",onChange:Se,value:K.values.amount,errorMessage:K.touched.amount&&K.errors.amount||""})},L);case tt.legalCheckbox:return _.jsx(I.Fragment,{children:_.jsx(D_,{stickyButton:f,data:C,error:K.touched.legalCheckbox?K.errors.legalCheckbox:"",onClick:Ve,onChange:lt})},L);case tt.submitButton:return _.jsx(I.Fragment,{children:_.jsx(Co,{stickyButton:f,data:C,onSubmit:Le})},L);case tt.paymentMethods:return _.jsx(I.Fragment,{children:_.jsx(z_,{methods:C})},L);case tt.cta:return _.jsx(I.Fragment,{children:_.jsx($_,{data:C})},L);default:return null}})}),K.values.legalModalOpen&&_.jsx(T_,{data:a,onClose:Ve,open:K.values.legalModalOpen})]})]})},ag=({block:e,isCtaBlockPresent:t,isDesktop:r,onError:n,onSubmit:a})=>{const s=()=>{var T;return((T=e==null?void 0:e.layout)==null?void 0:T.map(p=>p==null?void 0:p.name))||[]},i=()=>{var T,p,x;return{alt:((T=e==null?void 0:e.heroImage)==null?void 0:T.alternativeText)||"",src:(p=e==null?void 0:e.heroImage)!=null&&p.url?`${Gr.API.getBaseUrl()}${(x=e==null?void 0:e.heroImage)==null?void 0:x.url}`:""}},o=()=>{var T,p;return{headline:((T=e.headline)==null?void 0:T.headline)||"",subheadline:((p=e.headline)==null?void 0:p.subheadline)||""}},u=()=>{var T,p;return{label:((T=e.cta)==null?void 0:T.label)||"",url:((p=e.cta)==null?void 0:p.url)||""}},c=()=>e!=null&&e.paymentMethodLogos?e==null?void 0:e.paymentMethodLogos.map(T=>{var p;return{alt:(T==null?void 0:T.alternativeText)||"",id:((p=T==null?void 0:T.id)==null?void 0:p.toString())||"",src:`${Gr.API.getBaseUrl()}${T==null?void 0:T.url}`}}):[],l=()=>({label:e.submitLabel||"",securityText:e.submitSecurityText||""}),f=()=>{var T,p,x;return{buttonLabel:((T=e.legalCheckbox)==null?void 0:T.legalButtonLabel)||"",label:((p=e.legalCheckbox)==null?void 0:p.label)||"",layout:(x=e.legalCheckbox)==null?void 0:x.layout}},g=()=>({label:e.priceDescription||""}),S=()=>{var p;const T={};return(p=e==null?void 0:e.switcherToggle)==null||p.map(x=>{var G;const A=`${x==null?void 0:x.identifier}`;A in T||(T[A]={error:(x==null?void 0:x.errorText)||"",errorLegal:((G=e.legalCheckbox)==null?void 0:G.errorText)||"",minValue:Number(x==null?void 0:x.minValue)||0})}),T},$=()=>{var T;return e!=null&&e.switcherToggle?(T=e==null?void 0:e.switcherToggle)==null?void 0:T.map(p=>({id:(p==null?void 0:p.identifier)||"",label:(p==null?void 0:p.label)||""})):[]},b=()=>{var p,x,A;const T=(p=e==null?void 0:e.switcherToggle)==null?void 0:p.find(G=>G==null?void 0:G.defaultSelected);return!T&&(e!=null&&e.switcherToggle)&&((x=e.switcherToggle[0])!=null&&x.identifier)?((A=e.switcherToggle[0])==null?void 0:A.identifier)||"":(T==null?void 0:T.identifier)||""},y=()=>{var p;const T={};return(p=e==null?void 0:e.switcherToggle)==null||p.map(x=>{var A;(A=x==null?void 0:x.selectablePills)==null||A.map(G=>{const K=`${G==null?void 0:G.chargebeeId}`;K in T||(T[K]=(G==null?void 0:G.description)||"")})}),T},h=()=>{var p;const T={};return(p=e==null?void 0:e.switcherToggle)==null||p.map(x=>{const A=`${x==null?void 0:x.identifier}`;A in T||(T[A]=((x==null?void 0:x.selectablePills)||[]).map(G=>({id:G==null?void 0:G.chargebeeId,isSelected:G==null?void 0:G.defaultSelected,label:(G==null?void 0:G.label)||"",popular:(G==null?void 0:G.popular)||"",style:"filled",value:(G==null?void 0:G.value)||"",variant:"large"})))}),T},w=()=>{var we;const T=(we=e==null?void 0:e.legalCheckbox)==null?void 0:we.guidelinesModal,p=T==null?void 0:T.text;if(!p)return{buttonText:"",content:[[]],date:"",headline:"",version:""};const x=(T==null?void 0:T.closeModalButtonText)||"",A=(T==null?void 0:T.headline)||"",G=(T==null?void 0:T.data)||"",K=(T==null?void 0:T.version)||"";return{buttonText:x,content:p,date:G,headline:A,version:K}},k=()=>({cta:u(),headline:o(),legalCheckbox:f(),paymentMethods:c(),priceDescription:g(),selectablePills:h(),submitButton:l(),switcherToggle:$()});return _.jsx(Sc,{isCtaBlockPresent:t,scrollYTop:e==null?void 0:e.scrollToTop,stickyButton:(e==null?void 0:e.stickyButton)&&!r,onError:n,onSubmit:a,layout:s(),hero:i(),defaultSelectedToggle:b(),blocks:k(),fieldDescription:y(),fieldErrors:S(),guidelinesModalData:w()})},Ec=e=>({body:(e==null?void 0:e.body)??"",cta:(e==null?void 0:e.cta)??""}),Tc=6048e5,sg=864e5,Ui=Symbol.for("constructDateFrom");function At(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Ui in e?e[Ui](t):e instanceof Date?new e.constructor(t):new Date(t)}function Xe(e,t){return At(t||e,e)}let ig={};function ia(){return ig}function fn(e,t){var o,u,c,l;const r=ia(),n=(t==null?void 0:t.weekStartsOn)??((u=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:u.weekStartsOn)??r.weekStartsOn??((l=(c=r.locale)==null?void 0:c.options)==null?void 0:l.weekStartsOn)??0,a=Xe(e,t==null?void 0:t.in),s=a.getDay(),i=(s<n?7:0)+s-n;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function Hn(e,t){return fn(e,{...t,weekStartsOn:1})}function Pc(e,t){const r=Xe(e,t==null?void 0:t.in),n=r.getFullYear(),a=At(r,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);const s=Hn(a),i=At(r,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const o=Hn(i);return r.getTime()>=s.getTime()?n+1:r.getTime()>=o.getTime()?n:n-1}function qi(e){const t=Xe(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function og(e,...t){const r=At.bind(null,t.find(n=>typeof n=="object"));return t.map(r)}function Bi(e,t){const r=Xe(e,t==null?void 0:t.in);return r.setHours(0,0,0,0),r}function cg(e,t,r){const[n,a]=og(r==null?void 0:r.in,e,t),s=Bi(n),i=Bi(a),o=+s-qi(s),u=+i-qi(i);return Math.round((o-u)/sg)}function ug(e,t){const r=Pc(e,t),n=At(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),Hn(n)}function dg(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function lg(e){return!(!dg(e)&&typeof e!="number"||isNaN(+Xe(e)))}function fg(e,t){const r=Xe(e,t==null?void 0:t.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}const hg={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},mg=(e,t,r)=>{let n;const a=hg[e];return typeof a=="string"?n=a:t===1?n=a.one:n=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function Sa(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const pg={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},yg={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},_g={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},gg={date:Sa({formats:pg,defaultWidth:"full"}),time:Sa({formats:yg,defaultWidth:"full"}),dateTime:Sa({formats:_g,defaultWidth:"full"})},vg={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},$g=(e,t,r,n)=>vg[e];function Ir(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let a;if(n==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,o=r!=null&&r.width?String(r.width):i;a=e.formattingValues[o]||e.formattingValues[i]}else{const i=e.defaultWidth,o=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[o]||e.values[i]}const s=e.argumentCallback?e.argumentCallback(t):t;return a[s]}}const bg={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},wg={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Sg={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Eg={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Tg={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Pg={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},jg=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Og={ordinalNumber:jg,era:Ir({values:bg,defaultWidth:"wide"}),quarter:Ir({values:wg,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ir({values:Sg,defaultWidth:"wide"}),day:Ir({values:Eg,defaultWidth:"wide"}),dayPeriod:Ir({values:Tg,defaultWidth:"wide",formattingValues:Pg,defaultFormattingWidth:"wide"})};function Ar(e){return(t,r={})=>{const n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],s=t.match(a);if(!s)return null;const i=s[0],o=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(o)?kg(o,f=>f.test(i)):xg(o,f=>f.test(i));let c;c=e.valueCallback?e.valueCallback(u):u,c=r.valueCallback?r.valueCallback(c):c;const l=t.slice(i.length);return{value:c,rest:l}}}function xg(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function kg(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function Cg(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const a=n[0],s=t.match(e.parsePattern);if(!s)return null;let i=e.valueCallback?e.valueCallback(s[0]):s[0];i=r.valueCallback?r.valueCallback(i):i;const o=t.slice(a.length);return{value:i,rest:o}}}const Ng=/^(\d+)(th|st|nd|rd)?/i,Ig=/\d+/i,Ag={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Rg={any:[/^b/i,/^(a|c)/i]},Mg={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Dg={any:[/1/i,/2/i,/3/i,/4/i]},Fg={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Vg={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Lg={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},zg={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Ug={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},qg={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Bg={ordinalNumber:Cg({matchPattern:Ng,parsePattern:Ig,valueCallback:e=>parseInt(e,10)}),era:Ar({matchPatterns:Ag,defaultMatchWidth:"wide",parsePatterns:Rg,defaultParseWidth:"any"}),quarter:Ar({matchPatterns:Mg,defaultMatchWidth:"wide",parsePatterns:Dg,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ar({matchPatterns:Fg,defaultMatchWidth:"wide",parsePatterns:Vg,defaultParseWidth:"any"}),day:Ar({matchPatterns:Lg,defaultMatchWidth:"wide",parsePatterns:zg,defaultParseWidth:"any"}),dayPeriod:Ar({matchPatterns:Ug,defaultMatchWidth:"any",parsePatterns:qg,defaultParseWidth:"any"})},Zg={code:"en-US",formatDistance:mg,formatLong:gg,formatRelative:$g,localize:Og,match:Bg,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Wg(e,t){const r=Xe(e,t==null?void 0:t.in);return cg(r,fg(r))+1}function Hg(e,t){const r=Xe(e,t==null?void 0:t.in),n=+Hn(r)-+ug(r);return Math.round(n/Tc)+1}function jc(e,t){var l,f,g,S;const r=Xe(e,t==null?void 0:t.in),n=r.getFullYear(),a=ia(),s=(t==null?void 0:t.firstWeekContainsDate)??((f=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:f.firstWeekContainsDate)??a.firstWeekContainsDate??((S=(g=a.locale)==null?void 0:g.options)==null?void 0:S.firstWeekContainsDate)??1,i=At((t==null?void 0:t.in)||e,0);i.setFullYear(n+1,0,s),i.setHours(0,0,0,0);const o=fn(i,t),u=At((t==null?void 0:t.in)||e,0);u.setFullYear(n,0,s),u.setHours(0,0,0,0);const c=fn(u,t);return+r>=+o?n+1:+r>=+c?n:n-1}function Gg(e,t){var o,u,c,l;const r=ia(),n=(t==null?void 0:t.firstWeekContainsDate)??((u=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:u.firstWeekContainsDate)??r.firstWeekContainsDate??((l=(c=r.locale)==null?void 0:c.options)==null?void 0:l.firstWeekContainsDate)??1,a=jc(e,t),s=At((t==null?void 0:t.in)||e,0);return s.setFullYear(a,0,n),s.setHours(0,0,0,0),fn(s,t)}function Kg(e,t){const r=Xe(e,t==null?void 0:t.in),n=+fn(r,t)-+Gg(r,t);return Math.round(n/Tc)+1}function le(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const Et={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return le(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):le(r+1,2)},d(e,t){return le(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return le(e.getHours()%12||12,t.length)},H(e,t){return le(e.getHours(),t.length)},m(e,t){return le(e.getMinutes(),t.length)},s(e,t){return le(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),a=Math.trunc(n*Math.pow(10,r-3));return le(a,t.length)}},sr={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Zi={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),a=n>0?n:1-n;return r.ordinalNumber(a,{unit:"year"})}return Et.y(e,t)},Y:function(e,t,r,n){const a=jc(e,n),s=a>0?a:1-a;if(t==="YY"){const i=s%100;return le(i,2)}return t==="Yo"?r.ordinalNumber(s,{unit:"year"}):le(s,t.length)},R:function(e,t){const r=Pc(e);return le(r,t.length)},u:function(e,t){const r=e.getFullYear();return le(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return le(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return le(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return Et.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return le(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const a=Kg(e,n);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):le(a,t.length)},I:function(e,t,r){const n=Hg(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):le(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Et.d(e,t)},D:function(e,t,r){const n=Wg(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):le(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const a=e.getDay(),s=(a-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return le(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const a=e.getDay(),s=(a-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return le(s,t.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),a=n===0?7:n;switch(t){case"i":return String(a);case"ii":return le(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let a;switch(n===12?a=sr.noon:n===0?a=sr.midnight:a=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let a;switch(n>=17?a=sr.evening:n>=12?a=sr.afternoon:n>=4?a=sr.morning:a=sr.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Et.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Et.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):le(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):le(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Et.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Et.s(e,t)},S:function(e,t){return Et.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return Hi(n);case"XXXX":case"XX":return Lt(n);case"XXXXX":case"XXX":default:return Lt(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return Hi(n);case"xxxx":case"xx":return Lt(n);case"xxxxx":case"xxx":default:return Lt(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Wi(n,":");case"OOOO":default:return"GMT"+Lt(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Wi(n,":");case"zzzz":default:return"GMT"+Lt(n,":")}},t:function(e,t,r){const n=Math.trunc(+e/1e3);return le(n,t.length)},T:function(e,t,r){return le(+e,t.length)}};function Wi(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),a=Math.trunc(n/60),s=n%60;return s===0?r+String(a):r+String(a)+t+le(s,2)}function Hi(e,t){return e%60===0?(e>0?"-":"+")+le(Math.abs(e)/60,2):Lt(e,t)}function Lt(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),a=le(Math.trunc(n/60),2),s=le(n%60,2);return r+a+t+s}const Gi=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Oc=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Yg=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],a=r[2];if(!a)return Gi(e,t);let s;switch(n){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",Gi(n,t)).replace("{{time}}",Oc(a,t))},Jg={p:Oc,P:Yg},Xg=/^D+$/,Qg=/^Y+$/,ev=["D","DD","YY","YYYY"];function tv(e){return Xg.test(e)}function rv(e){return Qg.test(e)}function nv(e,t,r){const n=av(e,t,r);if(console.warn(n),ev.includes(e))throw new RangeError(n)}function av(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const sv=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,iv=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ov=/^'([^]*?)'?$/,cv=/''/g,uv=/[a-zA-Z]/;function dv(e,t,r){var l,f,g,S;const n=ia(),a=n.locale??Zg,s=n.firstWeekContainsDate??((f=(l=n.locale)==null?void 0:l.options)==null?void 0:f.firstWeekContainsDate)??1,i=n.weekStartsOn??((S=(g=n.locale)==null?void 0:g.options)==null?void 0:S.weekStartsOn)??0,o=Xe(e,r==null?void 0:r.in);if(!lg(o))throw new RangeError("Invalid time value");let u=t.match(iv).map($=>{const b=$[0];if(b==="p"||b==="P"){const y=Jg[b];return y($,a.formatLong)}return $}).join("").match(sv).map($=>{if($==="''")return{isToken:!1,value:"'"};const b=$[0];if(b==="'")return{isToken:!1,value:lv($)};if(Zi[b])return{isToken:!0,value:$};if(b.match(uv))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return{isToken:!1,value:$}});a.localize.preprocessor&&(u=a.localize.preprocessor(o,u));const c={firstWeekContainsDate:s,weekStartsOn:i,locale:a};return u.map($=>{if(!$.isToken)return $.value;const b=$.value;(rv(b)||tv(b))&&nv(b,t,String(e));const y=Zi[b[0]];return y(o,b,a.localize,c)}).join("")}function lv(e){const t=e.match(ov);return t?t[1].replace(cv,"'"):e}const fv="_root_1nrgb_141",Ki={root:fv},hv="https://hilfe.nebenan.de/hc/de",xc=({body:e,cta:t})=>_.jsxs("div",{className:Ki.root,children:[_.jsx(D.Typography,{type:"body-regular",className:Ki.body,children:e}),_.jsx(D.TextButton,{href:hv,text:t,color:"blue",size:"medium"})]}),mv="_root_tlq8h_141",pv="_metadata_tlq8h_148",yv="_markdown_tlq8h_153",Ea={root:mv,metadata:pv,markdown:yv},kc=({body:e,contactFooter:t,updateDate:r,version:n})=>{const a=n||r;return _.jsx("div",{children:_.jsxs("div",{className:Ea.root,children:[a&&_.jsxs("div",{className:Ea.metadata,children:[_.jsxs(D.Typography,{type:"body-regular",as:"span",children:["Version: ",n]}),_.jsx(D.Typography,{type:"body-regular",as:"span",children:r&&`${dv(r,"dd-MM-yyyy")}`})]}),a&&_.jsx(D.Divider,{}),_.jsx(Qt.MarkdownRichText,{text:e,className:Ea.markdown}),t&&t.body&&_.jsxs("div",{children:[_.jsx(D.Divider,{}),_.jsx(xc,{body:t.body,cta:t.cta})]})]})})},_v=({block:e})=>{const t=(e==null?void 0:e.body)??"",r=(e==null?void 0:e.version)??"",n=(e==null?void 0:e.updateDate)??"",a=Ec(e==null?void 0:e.contactFooter);return _.jsx(kc,{body:t,contactFooter:a,version:r,updateDate:n})},gv="_root_fkfp3_141",vv="_staticHtml_fkfp3_145",Yi={root:gv,staticHtml:vv},$v="_root_17bt2_141",bv="_button_17bt2_148",wv="_textButton_17bt2_149",Sv="_success_17bt2_154",Pn={root:$v,button:bv,textButton:wv,success:Sv};function Ev(){}var Tv=Ev;const Pv=Qn(Tv),jv=I.createContext({onValidationError:Pv,pageMapping:[],pathName:"/",snowplowConfig:{collectorUrl:"",trackerConfiguration:{},version:""}});jv.Provider;var Ua={exports:{}},Cc={},Ke={},vr={},_n={},ae={},hn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(w){if(super(),!e.IDENTIFIER.test(w))throw new Error("CodeGen: name must be a valid identifier");this.str=w}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(w){super(),this._items=typeof w=="string"?[w]:w}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const w=this._items[0];return w===""||w==='""'}get str(){var w;return(w=this._str)!==null&&w!==void 0?w:this._str=this._items.reduce((k,T)=>`${k}${T}`,"")}get names(){var w;return(w=this._names)!==null&&w!==void 0?w:this._names=this._items.reduce((k,T)=>(T instanceof r&&(k[T.str]=(k[T.str]||0)+1),k),{})}}e._Code=n,e.nil=new n("");function a(h,...w){const k=[h[0]];let T=0;for(;T<w.length;)o(k,w[T]),k.push(h[++T]);return new n(k)}e._=a;const s=new n("+");function i(h,...w){const k=[S(h[0])];let T=0;for(;T<w.length;)k.push(s),o(k,w[T]),k.push(s,S(h[++T]));return u(k),new n(k)}e.str=i;function o(h,w){w instanceof n?h.push(...w._items):w instanceof r?h.push(w):h.push(f(w))}e.addCodeArg=o;function u(h){let w=1;for(;w<h.length-1;){if(h[w]===s){const k=c(h[w-1],h[w+1]);if(k!==void 0){h.splice(w-1,3,k);continue}h[w++]="+"}w++}}function c(h,w){if(w==='""')return h;if(h==='""')return w;if(typeof h=="string")return w instanceof r||h[h.length-1]!=='"'?void 0:typeof w!="string"?`${h.slice(0,-1)}${w}"`:w[0]==='"'?h.slice(0,-1)+w.slice(1):void 0;if(typeof w=="string"&&w[0]==='"'&&!(h instanceof r))return`"${h}${w.slice(1)}`}function l(h,w){return w.emptyStr()?h:h.emptyStr()?w:i`${h}${w}`}e.strConcat=l;function f(h){return typeof h=="number"||typeof h=="boolean"||h===null?h:S(Array.isArray(h)?h.join(","):h)}function g(h){return new n(S(h))}e.stringify=g;function S(h){return JSON.stringify(h).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=S;function $(h){return typeof h=="string"&&e.IDENTIFIER.test(h)?new n(`.${h}`):a`[${h}]`}e.getProperty=$;function b(h){if(typeof h=="string"&&e.IDENTIFIER.test(h))return new n(`${h}`);throw new Error(`CodeGen: invalid export name: ${h}, use explicit $id name mapping`)}e.getEsmExportName=b;function y(h){return new n(h.toString())}e.regexpCode=y})(hn);var qa={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=hn;class r extends Error{constructor(c){super(`CodeGen: "code" for ${c} not defined`),this.value=c.value}}var n;(function(u){u[u.Started=0]="Started",u[u.Completed=1]="Completed"})(n||(e.UsedValueState=n={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class a{constructor({prefixes:c,parent:l}={}){this._names={},this._prefixes=c,this._parent=l}toName(c){return c instanceof t.Name?c:this.name(c)}name(c){return new t.Name(this._newName(c))}_newName(c){const l=this._names[c]||this._nameGroup(c);return`${c}${l.index++}`}_nameGroup(c){var l,f;if(!((f=(l=this._parent)===null||l===void 0?void 0:l._prefixes)===null||f===void 0)&&f.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error(`CodeGen: prefix "${c}" is not allowed in this scope`);return this._names[c]={prefix:c,index:0}}}e.Scope=a;class s extends t.Name{constructor(c,l){super(l),this.prefix=c}setValue(c,{property:l,itemIndex:f}){this.value=c,this.scopePath=(0,t._)`.${new t.Name(l)}[${f}]`}}e.ValueScopeName=s;const i=(0,t._)`\n`;class o extends a{constructor(c){super(c),this._values={},this._scope=c.scope,this.opts={...c,_n:c.lines?i:t.nil}}get(){return this._scope}name(c){return new s(c,this._newName(c))}value(c,l){var f;if(l.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const g=this.toName(c),{prefix:S}=g,$=(f=l.key)!==null&&f!==void 0?f:l.ref;let b=this._values[S];if(b){const w=b.get($);if(w)return w}else b=this._values[S]=new Map;b.set($,g);const y=this._scope[S]||(this._scope[S]=[]),h=y.length;return y[h]=l.ref,g.setValue(l,{property:S,itemIndex:h}),g}getValue(c,l){const f=this._values[c];if(f)return f.get(l)}scopeRefs(c,l=this._values){return this._reduceValues(l,f=>{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,t._)`${c}${f.scopePath}`})}scopeCode(c=this._values,l,f){return this._reduceValues(c,g=>{if(g.value===void 0)throw new Error(`CodeGen: name "${g}" has no value`);return g.value.code},l,f)}_reduceValues(c,l,f={},g){let S=t.nil;for(const $ in c){const b=c[$];if(!b)continue;const y=f[$]=f[$]||new Map;b.forEach(h=>{if(y.has(h))return;y.set(h,n.Started);let w=l(h);if(w){const k=this.opts.es5?e.varKinds.var:e.varKinds.const;S=(0,t._)`${S}${k} ${h} = ${w};${this.opts._n}`}else if(w=g==null?void 0:g(h))S=(0,t._)`${S}${w}${this.opts._n}`;else throw new r(h);y.set(h,n.Completed)})}return S}}e.ValueScope=o})(qa);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=hn,r=qa;var n=hn;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var a=qa;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return a.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return a.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return a.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return a.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class s{optimizeNodes(){return this}optimizeNames(d,m){return this}}class i extends s{constructor(d,m,j){super(),this.varKind=d,this.name=m,this.rhs=j}render({es5:d,_n:m}){const j=d?r.varKinds.var:this.varKind,z=this.rhs===void 0?"":` = ${this.rhs}`;return`${j} ${this.name}${z};`+m}optimizeNames(d,m){if(d[this.name.str])return this.rhs&&(this.rhs=Se(this.rhs,d,m)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class o extends s{constructor(d,m,j){super(),this.lhs=d,this.rhs=m,this.sideEffects=j}render({_n:d}){return`${this.lhs} = ${this.rhs};`+d}optimizeNames(d,m){if(!(this.lhs instanceof t.Name&&!d[this.lhs.str]&&!this.sideEffects))return this.rhs=Se(this.rhs,d,m),this}get names(){const d=this.lhs instanceof t.Name?{}:{...this.lhs.names};return ge(d,this.rhs)}}class u extends o{constructor(d,m,j,z){super(d,j,z),this.op=m}render({_n:d}){return`${this.lhs} ${this.op}= ${this.rhs};`+d}}class c extends s{constructor(d){super(),this.label=d,this.names={}}render({_n:d}){return`${this.label}:`+d}}class l extends s{constructor(d){super(),this.label=d,this.names={}}render({_n:d}){return`break${this.label?` ${this.label}`:""};`+d}}class f extends s{constructor(d){super(),this.error=d}render({_n:d}){return`throw ${this.error};`+d}get names(){return this.error.names}}class g extends s{constructor(d){super(),this.code=d}render({_n:d}){return`${this.code};`+d}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(d,m){return this.code=Se(this.code,d,m),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class S extends s{constructor(d=[]){super(),this.nodes=d}render(d){return this.nodes.reduce((m,j)=>m+j.render(d),"")}optimizeNodes(){const{nodes:d}=this;let m=d.length;for(;m--;){const j=d[m].optimizeNodes();Array.isArray(j)?d.splice(m,1,...j):j?d[m]=j:d.splice(m,1)}return d.length>0?this:void 0}optimizeNames(d,m){const{nodes:j}=this;let z=j.length;for(;z--;){const Z=j[z];Z.optimizeNames(d,m)||(Fe(d,Z.names),j.splice(z,1))}return j.length>0?this:void 0}get names(){return this.nodes.reduce((d,m)=>ke(d,m.names),{})}}class $ extends S{render(d){return"{"+d._n+super.render(d)+"}"+d._n}}class b extends S{}class y extends ${}y.kind="else";class h extends ${constructor(d,m){super(m),this.condition=d}render(d){let m=`if(${this.condition})`+super.render(d);return this.else&&(m+="else "+this.else.render(d)),m}optimizeNodes(){super.optimizeNodes();const d=this.condition;if(d===!0)return this.nodes;let m=this.else;if(m){const j=m.optimizeNodes();m=this.else=Array.isArray(j)?new y(j):j}if(m)return d===!1?m instanceof h?m:m.nodes:this.nodes.length?this:new h(Ve(d),m instanceof h?[m]:m.nodes);if(!(d===!1||!this.nodes.length))return this}optimizeNames(d,m){var j;if(this.else=(j=this.else)===null||j===void 0?void 0:j.optimizeNames(d,m),!!(super.optimizeNames(d,m)||this.else))return this.condition=Se(this.condition,d,m),this}get names(){const d=super.names;return ge(d,this.condition),this.else&&ke(d,this.else.names),d}}h.kind="if";class w extends ${}w.kind="for";class k extends w{constructor(d){super(),this.iteration=d}render(d){return`for(${this.iteration})`+super.render(d)}optimizeNames(d,m){if(super.optimizeNames(d,m))return this.iteration=Se(this.iteration,d,m),this}get names(){return ke(super.names,this.iteration.names)}}class T extends w{constructor(d,m,j,z){super(),this.varKind=d,this.name=m,this.from=j,this.to=z}render(d){const m=d.es5?r.varKinds.var:this.varKind,{name:j,from:z,to:Z}=this;return`for(${m} ${j}=${z}; ${j}<${Z}; ${j}++)`+super.render(d)}get names(){const d=ge(super.names,this.from);return ge(d,this.to)}}class p extends w{constructor(d,m,j,z){super(),this.loop=d,this.varKind=m,this.name=j,this.iterable=z}render(d){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(d)}optimizeNames(d,m){if(super.optimizeNames(d,m))return this.iterable=Se(this.iterable,d,m),this}get names(){return ke(super.names,this.iterable.names)}}class x extends ${constructor(d,m,j){super(),this.name=d,this.args=m,this.async=j}render(d){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(d)}}x.kind="func";class A extends S{render(d){return"return "+super.render(d)}}A.kind="return";class G extends ${render(d){let m="try"+super.render(d);return this.catch&&(m+=this.catch.render(d)),this.finally&&(m+=this.finally.render(d)),m}optimizeNodes(){var d,m;return super.optimizeNodes(),(d=this.catch)===null||d===void 0||d.optimizeNodes(),(m=this.finally)===null||m===void 0||m.optimizeNodes(),this}optimizeNames(d,m){var j,z;return super.optimizeNames(d,m),(j=this.catch)===null||j===void 0||j.optimizeNames(d,m),(z=this.finally)===null||z===void 0||z.optimizeNames(d,m),this}get names(){const d=super.names;return this.catch&&ke(d,this.catch.names),this.finally&&ke(d,this.finally.names),d}}class K extends ${constructor(d){super(),this.error=d}render(d){return`catch(${this.error})`+super.render(d)}}K.kind="catch";class we extends ${render(d){return"finally"+super.render(d)}}we.kind="finally";class xe{constructor(d,m={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...m,_n:m.lines?`
|
|
18
|
-
`:""},this._extScope=d,this._scope=new r.Scope({parent:d}),this._nodes=[new b]}toString(){return this._root.render(this.opts)}name(d){return this._scope.name(d)}scopeName(d){return this._extScope.name(d)}scopeValue(d,m){const j=this._extScope.value(d,m);return(this._values[j.prefix]||(this._values[j.prefix]=new Set)).add(j),j}getScopeValue(d,m){return this._extScope.getValue(d,m)}scopeRefs(d){return this._extScope.scopeRefs(d,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(d,m,j,z){const Z=this._scope.toName(m);return j!==void 0&&z&&(this._constants[Z.str]=j),this._leafNode(new i(d,Z,j)),Z}const(d,m,j){return this._def(r.varKinds.const,d,m,j)}let(d,m,j){return this._def(r.varKinds.let,d,m,j)}var(d,m,j){return this._def(r.varKinds.var,d,m,j)}assign(d,m,j){return this._leafNode(new o(d,m,j))}add(d,m){return this._leafNode(new u(d,e.operators.ADD,m))}code(d){return typeof d=="function"?d():d!==t.nil&&this._leafNode(new g(d)),this}object(...d){const m=["{"];for(const[j,z]of d)m.length>1&&m.push(","),m.push(j),(j!==z||this.opts.es5)&&(m.push(":"),(0,t.addCodeArg)(m,z));return m.push("}"),new t._Code(m)}if(d,m,j){if(this._blockNode(new h(d)),m&&j)this.code(m).else().code(j).endIf();else if(m)this.code(m).endIf();else if(j)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(d){return this._elseNode(new h(d))}else(){return this._elseNode(new y)}endIf(){return this._endBlockNode(h,y)}_for(d,m){return this._blockNode(d),m&&this.code(m).endFor(),this}for(d,m){return this._for(new k(d),m)}forRange(d,m,j,z,Z=this.opts.es5?r.varKinds.var:r.varKinds.let){const oe=this._scope.toName(d);return this._for(new T(Z,oe,m,j),()=>z(oe))}forOf(d,m,j,z=r.varKinds.const){const Z=this._scope.toName(d);if(this.opts.es5){const oe=m instanceof t.Name?m:this.var("_arr",m);return this.forRange("_i",0,(0,t._)`${oe}.length`,se=>{this.var(Z,(0,t._)`${oe}[${se}]`),j(Z)})}return this._for(new p("of",z,Z,m),()=>j(Z))}forIn(d,m,j,z=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(d,(0,t._)`Object.keys(${m})`,j);const Z=this._scope.toName(d);return this._for(new p("in",z,Z,m),()=>j(Z))}endFor(){return this._endBlockNode(w)}label(d){return this._leafNode(new c(d))}break(d){return this._leafNode(new l(d))}return(d){const m=new A;if(this._blockNode(m),this.code(d),m.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(A)}try(d,m,j){if(!m&&!j)throw new Error('CodeGen: "try" without "catch" and "finally"');const z=new G;if(this._blockNode(z),this.code(d),m){const Z=this.name("e");this._currNode=z.catch=new K(Z),m(Z)}return j&&(this._currNode=z.finally=new we,this.code(j)),this._endBlockNode(K,we)}throw(d){return this._leafNode(new f(d))}block(d,m){return this._blockStarts.push(this._nodes.length),d&&this.code(d).endBlock(m),this}endBlock(d){const m=this._blockStarts.pop();if(m===void 0)throw new Error("CodeGen: not in self-balancing block");const j=this._nodes.length-m;if(j<0||d!==void 0&&j!==d)throw new Error(`CodeGen: wrong number of nodes: ${j} vs ${d} expected`);return this._nodes.length=m,this}func(d,m=t.nil,j,z){return this._blockNode(new x(d,m,j)),z&&this.code(z).endFunc(),this}endFunc(){return this._endBlockNode(x)}optimize(d=1){for(;d-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(d){return this._currNode.nodes.push(d),this}_blockNode(d){this._currNode.nodes.push(d),this._nodes.push(d)}_endBlockNode(d,m){const j=this._currNode;if(j instanceof d||m&&j instanceof m)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${m?`${d.kind}/${m.kind}`:d.kind}"`)}_elseNode(d){const m=this._currNode;if(!(m instanceof h))throw new Error('CodeGen: "else" without "if"');return this._currNode=m.else=d,this}get _root(){return this._nodes[0]}get _currNode(){const d=this._nodes;return d[d.length-1]}set _currNode(d){const m=this._nodes;m[m.length-1]=d}}e.CodeGen=xe;function ke(E,d){for(const m in d)E[m]=(E[m]||0)+(d[m]||0);return E}function ge(E,d){return d instanceof t._CodeOrName?ke(E,d.names):E}function Se(E,d,m){if(E instanceof t.Name)return j(E);if(!z(E))return E;return new t._Code(E._items.reduce((Z,oe)=>(oe instanceof t.Name&&(oe=j(oe)),oe instanceof t._Code?Z.push(...oe._items):Z.push(oe),Z),[]));function j(Z){const oe=m[Z.str];return oe===void 0||d[Z.str]!==1?Z:(delete d[Z.str],oe)}function z(Z){return Z instanceof t._Code&&Z._items.some(oe=>oe instanceof t.Name&&d[oe.str]===1&&m[oe.str]!==void 0)}}function Fe(E,d){for(const m in d)E[m]=(E[m]||0)-(d[m]||0)}function Ve(E){return typeof E=="boolean"||typeof E=="number"||E===null?!E:(0,t._)`!${O(E)}`}e.not=Ve;const lt=v(e.operators.AND);function Le(...E){return E.reduce(lt)}e.and=Le;const L=v(e.operators.OR);function C(...E){return E.reduce(L)}e.or=C;function v(E){return(d,m)=>d===t.nil?m:m===t.nil?d:(0,t._)`${O(d)} ${E} ${O(m)}`}function O(E){return E instanceof t.Name?E:(0,t._)`(${E})`}})(ae);var F={};Object.defineProperty(F,"__esModule",{value:!0});F.checkStrictMode=F.getErrorPath=F.Type=F.useFunc=F.setEvaluated=F.evaluatedPropsToName=F.mergeEvaluated=F.eachItem=F.unescapeJsonPointer=F.escapeJsonPointer=F.escapeFragment=F.unescapeFragment=F.schemaRefOrVal=F.schemaHasRulesButRef=F.schemaHasRules=F.checkUnknownRules=F.alwaysValidSchema=F.toHash=void 0;const fe=ae,Ov=hn;function xv(e){const t={};for(const r of e)t[r]=!0;return t}F.toHash=xv;function kv(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(Nc(e,t),!Ic(t,e.self.RULES.all))}F.alwaysValidSchema=kv;function Nc(e,t=e.schema){const{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;const a=n.RULES.keywords;for(const s in t)a[s]||Mc(e,`unknown keyword: "${s}"`)}F.checkUnknownRules=Nc;function Ic(e,t){if(typeof e=="boolean")return!e;for(const r in e)if(t[r])return!0;return!1}F.schemaHasRules=Ic;function Cv(e,t){if(typeof e=="boolean")return!e;for(const r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}F.schemaHasRulesButRef=Cv;function Nv({topSchemaRef:e,schemaPath:t},r,n,a){if(!a){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,fe._)`${r}`}return(0,fe._)`${e}${t}${(0,fe.getProperty)(n)}`}F.schemaRefOrVal=Nv;function Iv(e){return Ac(decodeURIComponent(e))}F.unescapeFragment=Iv;function Av(e){return encodeURIComponent(cs(e))}F.escapeFragment=Av;function cs(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}F.escapeJsonPointer=cs;function Ac(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}F.unescapeJsonPointer=Ac;function Rv(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)}F.eachItem=Rv;function Ji({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(a,s,i,o)=>{const u=i===void 0?s:i instanceof fe.Name?(s instanceof fe.Name?e(a,s,i):t(a,s,i),i):s instanceof fe.Name?(t(a,i,s),s):r(s,i);return o===fe.Name&&!(u instanceof fe.Name)?n(a,u):u}}F.mergeEvaluated={props:Ji({mergeNames:(e,t,r)=>e.if((0,fe._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,fe._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,fe._)`${r} || {}`).code((0,fe._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,fe._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,fe._)`${r} || {}`),us(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:Rc}),items:Ji({mergeNames:(e,t,r)=>e.if((0,fe._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,fe._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,fe._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,fe._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function Rc(e,t){if(t===!0)return e.var("props",!0);const r=e.var("props",(0,fe._)`{}`);return t!==void 0&&us(e,r,t),r}F.evaluatedPropsToName=Rc;function us(e,t,r){Object.keys(r).forEach(n=>e.assign((0,fe._)`${t}${(0,fe.getProperty)(n)}`,!0))}F.setEvaluated=us;const Xi={};function Mv(e,t){return e.scopeValue("func",{ref:t,code:Xi[t.code]||(Xi[t.code]=new Ov._Code(t.code))})}F.useFunc=Mv;var Ba;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Ba||(F.Type=Ba={}));function Dv(e,t,r){if(e instanceof fe.Name){const n=t===Ba.Num;return r?n?(0,fe._)`"[" + ${e} + "]"`:(0,fe._)`"['" + ${e} + "']"`:n?(0,fe._)`"/" + ${e}`:(0,fe._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,fe.getProperty)(e).toString():"/"+cs(e)}F.getErrorPath=Dv;function Mc(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}F.checkStrictMode=Mc;var dt={};Object.defineProperty(dt,"__esModule",{value:!0});const je=ae,Fv={data:new je.Name("data"),valCxt:new je.Name("valCxt"),instancePath:new je.Name("instancePath"),parentData:new je.Name("parentData"),parentDataProperty:new je.Name("parentDataProperty"),rootData:new je.Name("rootData"),dynamicAnchors:new je.Name("dynamicAnchors"),vErrors:new je.Name("vErrors"),errors:new je.Name("errors"),this:new je.Name("this"),self:new je.Name("self"),scope:new je.Name("scope"),json:new je.Name("json"),jsonPos:new je.Name("jsonPos"),jsonLen:new je.Name("jsonLen"),jsonPart:new je.Name("jsonPart")};dt.default=Fv;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=ae,r=F,n=dt;e.keywordError={message:({keyword:y})=>(0,t.str)`must pass "${y}" keyword validation`},e.keyword$DataError={message:({keyword:y,schemaType:h})=>h?(0,t.str)`"${y}" keyword must be ${h} ($data)`:(0,t.str)`"${y}" keyword is invalid ($data)`};function a(y,h=e.keywordError,w,k){const{it:T}=y,{gen:p,compositeRule:x,allErrors:A}=T,G=f(y,h,w);k??(x||A)?u(p,G):c(T,(0,t._)`[${G}]`)}e.reportError=a;function s(y,h=e.keywordError,w){const{it:k}=y,{gen:T,compositeRule:p,allErrors:x}=k,A=f(y,h,w);u(T,A),p||x||c(k,n.default.vErrors)}e.reportExtraError=s;function i(y,h){y.assign(n.default.errors,h),y.if((0,t._)`${n.default.vErrors} !== null`,()=>y.if(h,()=>y.assign((0,t._)`${n.default.vErrors}.length`,h),()=>y.assign(n.default.vErrors,null)))}e.resetErrorsCount=i;function o({gen:y,keyword:h,schemaValue:w,data:k,errsCount:T,it:p}){if(T===void 0)throw new Error("ajv implementation error");const x=y.name("err");y.forRange("i",T,n.default.errors,A=>{y.const(x,(0,t._)`${n.default.vErrors}[${A}]`),y.if((0,t._)`${x}.instancePath === undefined`,()=>y.assign((0,t._)`${x}.instancePath`,(0,t.strConcat)(n.default.instancePath,p.errorPath))),y.assign((0,t._)`${x}.schemaPath`,(0,t.str)`${p.errSchemaPath}/${h}`),p.opts.verbose&&(y.assign((0,t._)`${x}.schema`,w),y.assign((0,t._)`${x}.data`,k))})}e.extendErrors=o;function u(y,h){const w=y.const("err",h);y.if((0,t._)`${n.default.vErrors} === null`,()=>y.assign(n.default.vErrors,(0,t._)`[${w}]`),(0,t._)`${n.default.vErrors}.push(${w})`),y.code((0,t._)`${n.default.errors}++`)}function c(y,h){const{gen:w,validateName:k,schemaEnv:T}=y;T.$async?w.throw((0,t._)`new ${y.ValidationError}(${h})`):(w.assign((0,t._)`${k}.errors`,h),w.return(!1))}const l={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function f(y,h,w){const{createErrors:k}=y.it;return k===!1?(0,t._)`{}`:g(y,h,w)}function g(y,h,w={}){const{gen:k,it:T}=y,p=[S(T,w),$(y,w)];return b(y,h,p),k.object(...p)}function S({errorPath:y},{instancePath:h}){const w=h?(0,t.str)`${y}${(0,r.getErrorPath)(h,r.Type.Str)}`:y;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,w)]}function $({keyword:y,it:{errSchemaPath:h}},{schemaPath:w,parentSchema:k}){let T=k?h:(0,t.str)`${h}/${y}`;return w&&(T=(0,t.str)`${T}${(0,r.getErrorPath)(w,r.Type.Str)}`),[l.schemaPath,T]}function b(y,{params:h,message:w},k){const{keyword:T,data:p,schemaValue:x,it:A}=y,{opts:G,propertyName:K,topSchemaRef:we,schemaPath:xe}=A;k.push([l.keyword,T],[l.params,typeof h=="function"?h(y):h||(0,t._)`{}`]),G.messages&&k.push([l.message,typeof w=="function"?w(y):w]),G.verbose&&k.push([l.schema,x],[l.parentSchema,(0,t._)`${we}${xe}`],[n.default.data,p]),K&&k.push([l.propertyName,K])}})(_n);Object.defineProperty(vr,"__esModule",{value:!0});vr.boolOrEmptySchema=vr.topBoolOrEmptySchema=void 0;const Vv=_n,Lv=ae,zv=dt,Uv={message:"boolean schema is false"};function qv(e){const{gen:t,schema:r,validateName:n}=e;r===!1?Dc(e,!1):typeof r=="object"&&r.$async===!0?t.return(zv.default.data):(t.assign((0,Lv._)`${n}.errors`,null),t.return(!0))}vr.topBoolOrEmptySchema=qv;function Bv(e,t){const{gen:r,schema:n}=e;n===!1?(r.var(t,!1),Dc(e)):r.var(t,!0)}vr.boolOrEmptySchema=Bv;function Dc(e,t){const{gen:r,data:n}=e,a={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,Vv.reportError)(a,Uv,void 0,t)}var be={},Jt={};Object.defineProperty(Jt,"__esModule",{value:!0});Jt.getRules=Jt.isJSONType=void 0;const Zv=["string","number","integer","boolean","null","object","array"],Wv=new Set(Zv);function Hv(e){return typeof e=="string"&&Wv.has(e)}Jt.isJSONType=Hv;function Gv(){const 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:{}}}Jt.getRules=Gv;var pt={};Object.defineProperty(pt,"__esModule",{value:!0});pt.shouldUseRule=pt.shouldUseGroup=pt.schemaHasRulesForType=void 0;function Kv({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==!0&&Fc(e,n)}pt.schemaHasRulesForType=Kv;function Fc(e,t){return t.rules.some(r=>Vc(e,r))}pt.shouldUseGroup=Fc;function Vc(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}pt.shouldUseRule=Vc;Object.defineProperty(be,"__esModule",{value:!0});be.reportTypeError=be.checkDataTypes=be.checkDataType=be.coerceAndCheckDataType=be.getJSONTypes=be.getSchemaTypes=be.DataType=void 0;const Yv=Jt,Jv=pt,Xv=_n,te=ae,Lc=F;var hr;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(hr||(be.DataType=hr={}));function Qv(e){const t=zc(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}be.getSchemaTypes=Qv;function zc(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(Yv.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}be.getJSONTypes=zc;function e$(e,t){const{gen:r,data:n,opts:a}=e,s=t$(t,a.coerceTypes),i=t.length>0&&!(s.length===0&&t.length===1&&(0,Jv.schemaHasRulesForType)(e,t[0]));if(i){const o=ds(t,n,a.strictNumbers,hr.Wrong);r.if(o,()=>{s.length?r$(e,t,s):ls(e)})}return i}be.coerceAndCheckDataType=e$;const Uc=new Set(["string","number","integer","boolean","null"]);function t$(e,t){return t?e.filter(r=>Uc.has(r)||t==="array"&&r==="array"):[]}function r$(e,t,r){const{gen:n,data:a,opts:s}=e,i=n.let("dataType",(0,te._)`typeof ${a}`),o=n.let("coerced",(0,te._)`undefined`);s.coerceTypes==="array"&&n.if((0,te._)`${i} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,()=>n.assign(a,(0,te._)`${a}[0]`).assign(i,(0,te._)`typeof ${a}`).if(ds(t,a,s.strictNumbers),()=>n.assign(o,a))),n.if((0,te._)`${o} !== undefined`);for(const c of r)(Uc.has(c)||c==="array"&&s.coerceTypes==="array")&&u(c);n.else(),ls(e),n.endIf(),n.if((0,te._)`${o} !== undefined`,()=>{n.assign(a,o),n$(e,o)});function u(c){switch(c){case"string":n.elseIf((0,te._)`${i} == "number" || ${i} == "boolean"`).assign(o,(0,te._)`"" + ${a}`).elseIf((0,te._)`${a} === null`).assign(o,(0,te._)`""`);return;case"number":n.elseIf((0,te._)`${i} == "boolean" || ${a} === null
|
|
17
|
+
`)}function Hp(e){var t={};if(e.inner){if(e.inner.length===0)return Bt(t,e.path,e.message);for(var a=e.inner,r=Array.isArray(a),n=0,a=r?a:a[Symbol.iterator]();;){var s;if(r){if(n>=a.length)break;s=a[n++]}else{if(n=a.next(),n.done)break;s=n.value}var i=s;Me(t,i.path)||(t=Bt(t,i.path,i.message))}}return t}function Gp(e,t,r,n){r===void 0&&(r=!1);var a=Da(e);return t[r?"validateSync":"validate"](a,{abortEarly:!1,context:a})}function Da(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);Array.isArray(e[n])===!0?t[n]=e[n].map(function(a){return Array.isArray(a)===!0||ci(a)?Da(a):a!==""?a:void 0}):ci(e[n])?t[n]=Da(e[n]):t[n]=e[n]!==""?e[n]:void 0}return t}function Kp(e,t,r){var n=e.slice();return t.forEach(function(s,i){if(typeof n[i]>"u"){var o=r.clone!==!1,u=o&&r.isMergeableObject(s);n[i]=u?ka(Array.isArray(s)?[]:{},s,r):s}else r.isMergeableObject(s)?n[i]=ka(e[i],s,r):e.indexOf(s)===-1&&n.push(s)}),n}function Yp(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function Jp(e,t,r){if(typeof e=="boolean")return!!t;var n=[],a=!1,s=-1;if(Array.isArray(e))n=e,s=e.indexOf(r),a=s>=0;else if(!r||r=="true"||r=="false")return!!t;return t&&r&&!a?n.concat(r):a?n.slice(0,s).concat(n.slice(s+1)):n}var Xp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?I.useLayoutEffect:I.useEffect;function ze(e){var t=I.useRef(e);return Xp(function(){t.current=e}),I.useCallback(function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t.current.apply(void 0,n)},[])}var Qp=I.forwardRef(function(e,t){var r=e.action,n=cc(e,["action"]),a=r??"#",s=Up(),i=s.handleReset,o=s.handleSubmit;return I.createElement("form",Ee({onSubmit:o,ref:t,onReset:i,action:a},n))});Qp.displayName="Form";var ce;(function(e){e.assertEqual=a=>a;function t(a){}e.assertIs=t;function r(a){throw new Error}e.assertNever=r,e.arrayToEnum=a=>{const s={};for(const i of a)s[i]=i;return s},e.getValidEnumValues=a=>{const s=e.objectKeys(a).filter(o=>typeof a[a[o]]!="number"),i={};for(const o of s)i[o]=a[o];return e.objectValues(i)},e.objectValues=a=>e.objectKeys(a).map(function(s){return a[s]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const s=[];for(const i in a)Object.prototype.hasOwnProperty.call(a,i)&&s.push(i);return s},e.find=(a,s)=>{for(const i of a)if(s(i))return i},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function n(a,s=" | "){return a.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}e.joinValues=n,e.jsonStringifyReplacer=(a,s)=>typeof s=="bigint"?s.toString():s})(ce||(ce={}));var Fa;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(Fa||(Fa={}));const V=ce.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),mt=e=>{switch(typeof e){case"undefined":return V.undefined;case"string":return V.string;case"number":return 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}},N=ce.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"]),ey=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class De extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){const r=t||function(s){return s.message},n={_errors:[]},a=s=>{for(const i of s.issues)if(i.code==="invalid_union")i.unionErrors.map(a);else if(i.code==="invalid_return_type")a(i.returnTypeError);else if(i.code==="invalid_arguments")a(i.argumentsError);else if(i.path.length===0)n._errors.push(r(i));else{let o=n,u=0;for(;u<i.path.length;){const c=i.path[u];u===i.path.length-1?(o[c]=o[c]||{_errors:[]},o[c]._errors.push(r(i))):o[c]=o[c]||{_errors:[]},o=o[c],u++}}};return a(this),n}static assert(t){if(!(t instanceof De))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ce.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},n=[];for(const a of this.issues)a.path.length>0?(r[a.path[0]]=r[a.path[0]]||[],r[a.path[0]].push(t(a))):n.push(t(a));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}De.create=e=>new De(e);const yr=(e,t)=>{let r;switch(e.code){case N.invalid_type:e.received===V.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case N.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,ce.jsonStringifyReplacer)}`;break;case N.unrecognized_keys:r=`Unrecognized key(s) in object: ${ce.joinValues(e.keys,", ")}`;break;case N.invalid_union:r="Invalid input";break;case N.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${ce.joinValues(e.options)}`;break;case N.invalid_enum_value:r=`Invalid enum value. Expected ${ce.joinValues(e.options)}, received '${e.received}'`;break;case N.invalid_arguments:r="Invalid function arguments";break;case N.invalid_return_type:r="Invalid function return type";break;case N.invalid_date:r="Invalid date";break;case N.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}"`:ce.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case N.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==="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 N.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 N.custom:r="Invalid input";break;case N.invalid_intersection_types:r="Intersection results could not be merged";break;case N.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case N.not_finite:r="Number must be finite";break;default:r=t.defaultError,ce.assertNever(e)}return{message:r}};let dc=yr;function ty(e){dc=e}function Ln(){return dc}const zn=e=>{const{data:t,path:r,errorMaps:n,issueData:a}=e,s=[...r,...a.path||[]],i={...a,path:s};if(a.message!==void 0)return{...a,path:s,message:a.message};let o="";const u=n.filter(c=>!!c).slice().reverse();for(const c of u)o=c(i,{data:t,defaultError:o}).message;return{...a,path:s,message:o}},ry=[];function R(e,t){const r=Ln(),n=zn({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===yr?void 0:yr].filter(a=>!!a)});e.common.issues.push(n)}class Oe{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const n=[];for(const a of r){if(a.status==="aborted")return J;a.status==="dirty"&&t.dirty(),n.push(a.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){const n=[];for(const a of r){const s=await a.key,i=await a.value;n.push({key:s,value:i})}return Oe.mergeObjectSync(t,n)}static mergeObjectSync(t,r){const n={};for(const a of r){const{key:s,value:i}=a;if(s.status==="aborted"||i.status==="aborted")return J;s.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof i.value<"u"||a.alwaysSet)&&(n[s.value]=i.value)}return{status:t.value,value:n}}}const J=Object.freeze({status:"aborted"}),lr=e=>({status:"dirty",value:e}),Ne=e=>({status:"valid",value:e}),Va=e=>e.status==="aborted",La=e=>e.status==="dirty",Gt=e=>e.status==="valid",Xr=e=>typeof Promise<"u"&&e instanceof Promise;function Un(e,t,r,n){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function lc(e,t,r,n,a){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,r),r}var B;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(B||(B={}));var Dr,Fr;class ot{constructor(t,r,n,a){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Fi=(e,t)=>{if(Gt(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;const r=new De(e.common.issues);return this._error=r,this._error}}};function ee(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:a}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(i,o)=>{var u,c;const{message:l}=e;return i.code==="invalid_enum_value"?{message:l??o.defaultError}:typeof o.data>"u"?{message:(u=l??n)!==null&&u!==void 0?u:o.defaultError}:i.code!=="invalid_type"?{message:o.defaultError}:{message:(c=l??r)!==null&&c!==void 0?c:o.defaultError}},description:a}}class re{get description(){return this._def.description}_getType(t){return mt(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:mt(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Oe,ctx:{common:t.parent.common,data:t.data,parsedType:mt(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(Xr(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){var n;const a={common:{issues:[],async:(n=r==null?void 0:r.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:mt(t)},s=this._parseSync({data:t,path:a.path,parent:a});return Fi(a,s)}"~validate"(t){var r,n;const a={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:mt(t)};if(!this["~standard"].async)try{const s=this._parseSync({data:t,path:[],parent:a});return Gt(s)?{value:s.value}:{issues:a.common.issues}}catch(s){!((n=(r=s==null?void 0:s.message)===null||r===void 0?void 0:r.toLowerCase())===null||n===void 0)&&n.includes("encountered")&&(this["~standard"].async=!0),a.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:a}).then(s=>Gt(s)?{value:s.value}:{issues:a.common.issues})}async parseAsync(t,r){const n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){const n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:mt(t)},a=this._parse({data:t,path:n.path,parent:n}),s=await(Xr(a)?a:Promise.resolve(a));return Fi(n,s)}refine(t,r){const n=a=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(a):r;return this._refinement((a,s)=>{const i=t(a),o=()=>s.addIssue({code:N.custom,...n(a)});return typeof Promise<"u"&&i instanceof Promise?i.then(u=>u?!0:(o(),!1)):i?!0:(o(),!1)})}refinement(t,r){return this._refinement((n,a)=>t(n)?!0:(a.addIssue(typeof r=="function"?r(n,a):r),!1))}_refinement(t){return new Je({schema:this,typeName:Y.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 it.create(this,this._def)}nullable(){return It.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ge.create(this)}promise(){return gr.create(this,this._def)}or(t){return rn.create([this,t],this._def)}and(t){return nn.create(this,t,this._def)}transform(t){return new Je({...ee(this._def),schema:this,typeName:Y.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new un({...ee(this._def),innerType:this,defaultValue:r,typeName:Y.ZodDefault})}brand(){return new is({typeName:Y.ZodBranded,type:this,...ee(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new dn({...ee(this._def),innerType:this,catchValue:r,typeName:Y.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return yn.create(this,t)}readonly(){return ln.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const ny=/^c[^\s-]{8,}$/i,ay=/^[0-9a-z]+$/,sy=/^[0-9A-HJKMNP-TV-Z]{26}$/i,iy=/^[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,oy=/^[a-z0-9_-]{21}$/i,cy=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,uy=/^[-+]?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)?)??$/,dy=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,ly="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let va;const fy=/^(?:(?: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])$/,hy=/^(?:(?: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])$/,my=/^(([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]))$/,py=/^(([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])$/,yy=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,_y=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,fc="((\\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])))",gy=new RegExp(`^${fc}$`);function hc(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function vy(e){return new RegExp(`^${hc(e)}$`)}function mc(e){let t=`${fc}T${hc(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function $y(e,t){return!!((t==="v4"||!t)&&fy.test(e)||(t==="v6"||!t)&&my.test(e))}function by(e,t){if(!cy.test(e))return!1;try{const[r]=e.split("."),n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),a=JSON.parse(atob(n));return!(typeof a!="object"||a===null||!a.typ||!a.alg||t&&a.alg!==t)}catch{return!1}}function wy(e,t){return!!((t==="v4"||!t)&&hy.test(e)||(t==="v6"||!t)&&py.test(e))}class He extends re{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==V.string){const s=this._getOrReturnCtx(t);return R(s,{code:N.invalid_type,expected:V.string,received:s.parsedType}),J}const n=new Oe;let a;for(const s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(a=this._getOrReturnCtx(t,a),R(a,{code:N.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="max")t.data.length>s.value&&(a=this._getOrReturnCtx(t,a),R(a,{code:N.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){const i=t.data.length>s.value,o=t.data.length<s.value;(i||o)&&(a=this._getOrReturnCtx(t,a),i?R(a,{code:N.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):o&&R(a,{code:N.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),n.dirty())}else if(s.kind==="email")dy.test(t.data)||(a=this._getOrReturnCtx(t,a),R(a,{validation:"email",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="emoji")va||(va=new RegExp(ly,"u")),va.test(t.data)||(a=this._getOrReturnCtx(t,a),R(a,{validation:"emoji",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="uuid")iy.test(t.data)||(a=this._getOrReturnCtx(t,a),R(a,{validation:"uuid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="nanoid")oy.test(t.data)||(a=this._getOrReturnCtx(t,a),R(a,{validation:"nanoid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid")ny.test(t.data)||(a=this._getOrReturnCtx(t,a),R(a,{validation:"cuid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid2")ay.test(t.data)||(a=this._getOrReturnCtx(t,a),R(a,{validation:"cuid2",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="ulid")sy.test(t.data)||(a=this._getOrReturnCtx(t,a),R(a,{validation:"ulid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),R(a,{validation:"url",code:N.invalid_string,message:s.message}),n.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),R(a,{validation:"regex",code:N.invalid_string,message:s.message}),n.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(a=this._getOrReturnCtx(t,a),R(a,{code:N.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),n.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(a=this._getOrReturnCtx(t,a),R(a,{code:N.invalid_string,validation:{startsWith:s.value},message:s.message}),n.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(a=this._getOrReturnCtx(t,a),R(a,{code:N.invalid_string,validation:{endsWith:s.value},message:s.message}),n.dirty()):s.kind==="datetime"?mc(s).test(t.data)||(a=this._getOrReturnCtx(t,a),R(a,{code:N.invalid_string,validation:"datetime",message:s.message}),n.dirty()):s.kind==="date"?gy.test(t.data)||(a=this._getOrReturnCtx(t,a),R(a,{code:N.invalid_string,validation:"date",message:s.message}),n.dirty()):s.kind==="time"?vy(s).test(t.data)||(a=this._getOrReturnCtx(t,a),R(a,{code:N.invalid_string,validation:"time",message:s.message}),n.dirty()):s.kind==="duration"?uy.test(t.data)||(a=this._getOrReturnCtx(t,a),R(a,{validation:"duration",code:N.invalid_string,message:s.message}),n.dirty()):s.kind==="ip"?$y(t.data,s.version)||(a=this._getOrReturnCtx(t,a),R(a,{validation:"ip",code:N.invalid_string,message:s.message}),n.dirty()):s.kind==="jwt"?by(t.data,s.alg)||(a=this._getOrReturnCtx(t,a),R(a,{validation:"jwt",code:N.invalid_string,message:s.message}),n.dirty()):s.kind==="cidr"?wy(t.data,s.version)||(a=this._getOrReturnCtx(t,a),R(a,{validation:"cidr",code:N.invalid_string,message:s.message}),n.dirty()):s.kind==="base64"?yy.test(t.data)||(a=this._getOrReturnCtx(t,a),R(a,{validation:"base64",code:N.invalid_string,message:s.message}),n.dirty()):s.kind==="base64url"?_y.test(t.data)||(a=this._getOrReturnCtx(t,a),R(a,{validation:"base64url",code:N.invalid_string,message:s.message}),n.dirty()):ce.assertNever(s);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(a=>t.test(a),{validation:r,code:N.invalid_string,...B.errToObj(n)})}_addCheck(t){return new He({...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){var r,n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(r=t==null?void 0:t.offset)!==null&&r!==void 0?r:!1,local:(n=t==null?void 0:t.local)!==null&&n!==void 0?n:!1,...B.errToObj(t==null?void 0: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==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...B.errToObj(t==null?void 0: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==null?void 0:r.position,...B.errToObj(r==null?void 0: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 He({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new He({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new He({...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(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}He.create=e=>{var t;return new He({checks:[],typeName:Y.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...ee(e)})};function Sy(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,a=r>n?r:n,s=parseInt(e.toFixed(a).replace(".","")),i=parseInt(t.toFixed(a).replace(".",""));return s%i/Math.pow(10,a)}class kt extends re{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){const s=this._getOrReturnCtx(t);return R(s,{code:N.invalid_type,expected:V.number,received:s.parsedType}),J}let n;const a=new Oe;for(const s of this._def.checks)s.kind==="int"?ce.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),R(n,{code:N.invalid_type,expected:"integer",received:"float",message:s.message}),a.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(n=this._getOrReturnCtx(t,n),R(n,{code:N.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),R(n,{code:N.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="multipleOf"?Sy(t.data,s.value)!==0&&(n=this._getOrReturnCtx(t,n),R(n,{code:N.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),R(n,{code:N.not_finite,message:s.message}),a.dirty()):ce.assertNever(s);return{status:a.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,n,a){return new kt({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:B.toString(a)}]})}_addCheck(t){return new kt({...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(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const 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"&&ce.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(r)&&Number.isFinite(t)}}kt.create=e=>new kt({checks:[],typeName:Y.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...ee(e)});class Ct extends re{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 n;const a=new Oe;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(n=this._getOrReturnCtx(t,n),R(n,{code:N.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),R(n,{code:N.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),R(n,{code:N.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):ce.assertNever(s);return{status:a.value,value:t.data}}_getInvalidInput(t){const r=this._getOrReturnCtx(t);return R(r,{code:N.invalid_type,expected:V.bigint,received:r.parsedType}),J}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,n,a){return new Ct({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:B.toString(a)}]})}_addCheck(t){return new Ct({...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(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}Ct.create=e=>{var t;return new Ct({checks:[],typeName:Y.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...ee(e)})};class Qr extends re{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==V.boolean){const n=this._getOrReturnCtx(t);return R(n,{code:N.invalid_type,expected:V.boolean,received:n.parsedType}),J}return Ne(t.data)}}Qr.create=e=>new Qr({typeName:Y.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...ee(e)});class Kt extends re{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==V.date){const s=this._getOrReturnCtx(t);return R(s,{code:N.invalid_type,expected:V.date,received:s.parsedType}),J}if(isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return R(s,{code:N.invalid_date}),J}const n=new Oe;let a;for(const s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(a=this._getOrReturnCtx(t,a),R(a,{code:N.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),n.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(a=this._getOrReturnCtx(t,a),R(a,{code:N.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):ce.assertNever(s);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Kt({...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(const 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(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}}Kt.create=e=>new Kt({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Y.ZodDate,...ee(e)});class qn extends re{_parse(t){if(this._getType(t)!==V.symbol){const n=this._getOrReturnCtx(t);return R(n,{code:N.invalid_type,expected:V.symbol,received:n.parsedType}),J}return Ne(t.data)}}qn.create=e=>new qn({typeName:Y.ZodSymbol,...ee(e)});class en extends re{_parse(t){if(this._getType(t)!==V.undefined){const n=this._getOrReturnCtx(t);return R(n,{code:N.invalid_type,expected:V.undefined,received:n.parsedType}),J}return Ne(t.data)}}en.create=e=>new en({typeName:Y.ZodUndefined,...ee(e)});class tn extends re{_parse(t){if(this._getType(t)!==V.null){const n=this._getOrReturnCtx(t);return R(n,{code:N.invalid_type,expected:V.null,received:n.parsedType}),J}return Ne(t.data)}}tn.create=e=>new tn({typeName:Y.ZodNull,...ee(e)});class _r extends re{constructor(){super(...arguments),this._any=!0}_parse(t){return Ne(t.data)}}_r.create=e=>new _r({typeName:Y.ZodAny,...ee(e)});class Zt extends re{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Ne(t.data)}}Zt.create=e=>new Zt({typeName:Y.ZodUnknown,...ee(e)});class _t extends re{_parse(t){const r=this._getOrReturnCtx(t);return R(r,{code:N.invalid_type,expected:V.never,received:r.parsedType}),J}}_t.create=e=>new _t({typeName:Y.ZodNever,...ee(e)});class Bn extends re{_parse(t){if(this._getType(t)!==V.undefined){const n=this._getOrReturnCtx(t);return R(n,{code:N.invalid_type,expected:V.void,received:n.parsedType}),J}return Ne(t.data)}}Bn.create=e=>new Bn({typeName:Y.ZodVoid,...ee(e)});class Ge extends re{_parse(t){const{ctx:r,status:n}=this._processInputParams(t),a=this._def;if(r.parsedType!==V.array)return R(r,{code:N.invalid_type,expected:V.array,received:r.parsedType}),J;if(a.exactLength!==null){const i=r.data.length>a.exactLength.value,o=r.data.length<a.exactLength.value;(i||o)&&(R(r,{code:i?N.too_big:N.too_small,minimum:o?a.exactLength.value:void 0,maximum:i?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),n.dirty())}if(a.minLength!==null&&r.data.length<a.minLength.value&&(R(r,{code:N.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),n.dirty()),a.maxLength!==null&&r.data.length>a.maxLength.value&&(R(r,{code:N.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((i,o)=>a.type._parseAsync(new ot(r,i,r.path,o)))).then(i=>Oe.mergeArray(n,i));const s=[...r.data].map((i,o)=>a.type._parseSync(new ot(r,i,r.path,o)));return Oe.mergeArray(n,s)}get element(){return this._def.type}min(t,r){return new Ge({...this._def,minLength:{value:t,message:B.toString(r)}})}max(t,r){return new Ge({...this._def,maxLength:{value:t,message:B.toString(r)}})}length(t,r){return new Ge({...this._def,exactLength:{value:t,message:B.toString(r)}})}nonempty(t){return this.min(1,t)}}Ge.create=(e,t)=>new Ge({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Y.ZodArray,...ee(t)});function cr(e){if(e instanceof _e){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=it.create(cr(n))}return new _e({...e._def,shape:()=>t})}else return e instanceof Ge?new Ge({...e._def,type:cr(e.element)}):e instanceof it?it.create(cr(e.unwrap())):e instanceof It?It.create(cr(e.unwrap())):e instanceof ct?ct.create(e.items.map(t=>cr(t))):e}class _e extends re{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=ce.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==V.object){const c=this._getOrReturnCtx(t);return R(c,{code:N.invalid_type,expected:V.object,received:c.parsedType}),J}const{status:n,ctx:a}=this._processInputParams(t),{shape:s,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof _t&&this._def.unknownKeys==="strip"))for(const c in a.data)i.includes(c)||o.push(c);const u=[];for(const c of i){const l=s[c],f=a.data[c];u.push({key:{status:"valid",value:c},value:l._parse(new ot(a,f,a.path,c)),alwaysSet:c in a.data})}if(this._def.catchall instanceof _t){const c=this._def.unknownKeys;if(c==="passthrough")for(const l of o)u.push({key:{status:"valid",value:l},value:{status:"valid",value:a.data[l]}});else if(c==="strict")o.length>0&&(R(a,{code:N.unrecognized_keys,keys:o}),n.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const l of o){const f=a.data[l];u.push({key:{status:"valid",value:l},value:c._parse(new ot(a,f,a.path,l)),alwaysSet:l in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const c=[];for(const l of u){const f=await l.key,g=await l.value;c.push({key:f,value:g,alwaysSet:l.alwaysSet})}return c}).then(c=>Oe.mergeObjectSync(n,c)):Oe.mergeObjectSync(n,u)}get shape(){return this._def.shape()}strict(t){return B.errToObj,new _e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{var a,s,i,o;const u=(i=(s=(a=this._def).errorMap)===null||s===void 0?void 0:s.call(a,r,n).message)!==null&&i!==void 0?i:n.defaultError;return r.code==="unrecognized_keys"?{message:(o=B.errToObj(t).message)!==null&&o!==void 0?o:u}:{message:u}}}:{}})}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:Y.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new _e({...this._def,catchall:t})}pick(t){const r={};return ce.objectKeys(t).forEach(n=>{t[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new _e({...this._def,shape:()=>r})}omit(t){const r={};return ce.objectKeys(this.shape).forEach(n=>{t[n]||(r[n]=this.shape[n])}),new _e({...this._def,shape:()=>r})}deepPartial(){return cr(this)}partial(t){const r={};return ce.objectKeys(this.shape).forEach(n=>{const a=this.shape[n];t&&!t[n]?r[n]=a:r[n]=a.optional()}),new _e({...this._def,shape:()=>r})}required(t){const r={};return ce.objectKeys(this.shape).forEach(n=>{if(t&&!t[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof it;)s=s._def.innerType;r[n]=s}}),new _e({...this._def,shape:()=>r})}keyof(){return pc(ce.objectKeys(this.shape))}}_e.create=(e,t)=>new _e({shape:()=>e,unknownKeys:"strip",catchall:_t.create(),typeName:Y.ZodObject,...ee(t)});_e.strictCreate=(e,t)=>new _e({shape:()=>e,unknownKeys:"strict",catchall:_t.create(),typeName:Y.ZodObject,...ee(t)});_e.lazycreate=(e,t)=>new _e({shape:e,unknownKeys:"strip",catchall:_t.create(),typeName:Y.ZodObject,...ee(t)});class rn extends re{_parse(t){const{ctx:r}=this._processInputParams(t),n=this._def.options;function a(s){for(const o of s)if(o.result.status==="valid")return o.result;for(const o of s)if(o.result.status==="dirty")return r.common.issues.push(...o.ctx.common.issues),o.result;const i=s.map(o=>new De(o.ctx.common.issues));return R(r,{code:N.invalid_union,unionErrors:i}),J}if(r.common.async)return Promise.all(n.map(async s=>{const i={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:i}),ctx:i}})).then(a);{let s;const i=[];for(const u of n){const c={...r,common:{...r.common,issues:[]},parent:null},l=u._parseSync({data:r.data,path:r.path,parent:c});if(l.status==="valid")return l;l.status==="dirty"&&!s&&(s={result:l,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;const o=i.map(u=>new De(u));return R(r,{code:N.invalid_union,unionErrors:o}),J}}get options(){return this._def.options}}rn.create=(e,t)=>new rn({options:e,typeName:Y.ZodUnion,...ee(t)});const ft=e=>e instanceof sn?ft(e.schema):e instanceof Je?ft(e.innerType()):e instanceof on?[e.value]:e instanceof Nt?e.options:e instanceof cn?ce.objectValues(e.enum):e instanceof un?ft(e._def.innerType):e instanceof en?[void 0]:e instanceof tn?[null]:e instanceof it?[void 0,...ft(e.unwrap())]:e instanceof It?[null,...ft(e.unwrap())]:e instanceof is||e instanceof ln?ft(e.unwrap()):e instanceof dn?ft(e._def.innerType):[];class sa extends re{_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==V.object)return R(r,{code:N.invalid_type,expected:V.object,received:r.parsedType}),J;const n=this.discriminator,a=r.data[n],s=this.optionsMap.get(a);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(R(r,{code:N.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),J)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){const a=new Map;for(const s of r){const i=ft(s.shape[t]);if(!i.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const o of i){if(a.has(o))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(o)}`);a.set(o,s)}}return new sa({typeName:Y.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:a,...ee(n)})}}function za(e,t){const r=mt(e),n=mt(t);if(e===t)return{valid:!0,data:e};if(r===V.object&&n===V.object){const a=ce.objectKeys(t),s=ce.objectKeys(e).filter(o=>a.indexOf(o)!==-1),i={...e,...t};for(const o of s){const u=za(e[o],t[o]);if(!u.valid)return{valid:!1};i[o]=u.data}return{valid:!0,data:i}}else if(r===V.array&&n===V.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let s=0;s<e.length;s++){const i=e[s],o=t[s],u=za(i,o);if(!u.valid)return{valid:!1};a.push(u.data)}return{valid:!0,data:a}}else return r===V.date&&n===V.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class nn extends re{_parse(t){const{status:r,ctx:n}=this._processInputParams(t),a=(s,i)=>{if(Va(s)||Va(i))return J;const o=za(s.value,i.value);return o.valid?((La(s)||La(i))&&r.dirty(),{status:r.value,value:o.data}):(R(n,{code:N.invalid_intersection_types}),J)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,i])=>a(s,i)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}nn.create=(e,t,r)=>new nn({left:e,right:t,typeName:Y.ZodIntersection,...ee(r)});class ct extends re{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==V.array)return R(n,{code:N.invalid_type,expected:V.array,received:n.parsedType}),J;if(n.data.length<this._def.items.length)return R(n,{code:N.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),J;!this._def.rest&&n.data.length>this._def.items.length&&(R(n,{code:N.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const s=[...n.data].map((i,o)=>{const u=this._def.items[o]||this._def.rest;return u?u._parse(new ot(n,i,n.path,o)):null}).filter(i=>!!i);return n.common.async?Promise.all(s).then(i=>Oe.mergeArray(r,i)):Oe.mergeArray(r,s)}get items(){return this._def.items}rest(t){return new ct({...this._def,rest:t})}}ct.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ct({items:e,typeName:Y.ZodTuple,rest:null,...ee(t)})};class an extends re{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==V.object)return R(n,{code:N.invalid_type,expected:V.object,received:n.parsedType}),J;const a=[],s=this._def.keyType,i=this._def.valueType;for(const o in n.data)a.push({key:s._parse(new ot(n,o,n.path,o)),value:i._parse(new ot(n,n.data[o],n.path,o)),alwaysSet:o in n.data});return n.common.async?Oe.mergeObjectAsync(r,a):Oe.mergeObjectSync(r,a)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof re?new an({keyType:t,valueType:r,typeName:Y.ZodRecord,...ee(n)}):new an({keyType:He.create(),valueType:t,typeName:Y.ZodRecord,...ee(r)})}}class Zn extends re{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==V.map)return R(n,{code:N.invalid_type,expected:V.map,received:n.parsedType}),J;const a=this._def.keyType,s=this._def.valueType,i=[...n.data.entries()].map(([o,u],c)=>({key:a._parse(new ot(n,o,n.path,[c,"key"])),value:s._parse(new ot(n,u,n.path,[c,"value"]))}));if(n.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const u of i){const c=await u.key,l=await u.value;if(c.status==="aborted"||l.status==="aborted")return J;(c.status==="dirty"||l.status==="dirty")&&r.dirty(),o.set(c.value,l.value)}return{status:r.value,value:o}})}else{const o=new Map;for(const u of i){const c=u.key,l=u.value;if(c.status==="aborted"||l.status==="aborted")return J;(c.status==="dirty"||l.status==="dirty")&&r.dirty(),o.set(c.value,l.value)}return{status:r.value,value:o}}}}Zn.create=(e,t,r)=>new Zn({valueType:t,keyType:e,typeName:Y.ZodMap,...ee(r)});class Yt extends re{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==V.set)return R(n,{code:N.invalid_type,expected:V.set,received:n.parsedType}),J;const a=this._def;a.minSize!==null&&n.data.size<a.minSize.value&&(R(n,{code:N.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),r.dirty()),a.maxSize!==null&&n.data.size>a.maxSize.value&&(R(n,{code:N.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),r.dirty());const s=this._def.valueType;function i(u){const c=new Set;for(const l of u){if(l.status==="aborted")return J;l.status==="dirty"&&r.dirty(),c.add(l.value)}return{status:r.value,value:c}}const o=[...n.data.values()].map((u,c)=>s._parse(new ot(n,u,n.path,c)));return n.common.async?Promise.all(o).then(u=>i(u)):i(o)}min(t,r){return new Yt({...this._def,minSize:{value:t,message:B.toString(r)}})}max(t,r){return new Yt({...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)}}Yt.create=(e,t)=>new Yt({valueType:e,minSize:null,maxSize:null,typeName:Y.ZodSet,...ee(t)});class fr extends re{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==V.function)return R(r,{code:N.invalid_type,expected:V.function,received:r.parsedType}),J;function n(o,u){return zn({data:o,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Ln(),yr].filter(c=>!!c),issueData:{code:N.invalid_arguments,argumentsError:u}})}function a(o,u){return zn({data:o,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Ln(),yr].filter(c=>!!c),issueData:{code:N.invalid_return_type,returnTypeError:u}})}const s={errorMap:r.common.contextualErrorMap},i=r.data;if(this._def.returns instanceof gr){const o=this;return Ne(async function(...u){const c=new De([]),l=await o._def.args.parseAsync(u,s).catch(S=>{throw c.addIssue(n(u,S)),c}),f=await Reflect.apply(i,this,l);return await o._def.returns._def.type.parseAsync(f,s).catch(S=>{throw c.addIssue(a(f,S)),c})})}else{const o=this;return Ne(function(...u){const c=o._def.args.safeParse(u,s);if(!c.success)throw new De([n(u,c.error)]);const l=Reflect.apply(i,this,c.data),f=o._def.returns.safeParse(l,s);if(!f.success)throw new De([a(l,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new fr({...this._def,args:ct.create(t).rest(Zt.create())})}returns(t){return new fr({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new fr({args:t||ct.create([]).rest(Zt.create()),returns:r||Zt.create(),typeName:Y.ZodFunction,...ee(n)})}}class sn extends re{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}sn.create=(e,t)=>new sn({getter:e,typeName:Y.ZodLazy,...ee(t)});class on extends re{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return R(r,{received:r.data,code:N.invalid_literal,expected:this._def.value}),J}return{status:"valid",value:t.data}}get value(){return this._def.value}}on.create=(e,t)=>new on({value:e,typeName:Y.ZodLiteral,...ee(t)});function pc(e,t){return new Nt({values:e,typeName:Y.ZodEnum,...ee(t)})}class Nt extends re{constructor(){super(...arguments),Dr.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),n=this._def.values;return R(r,{expected:ce.joinValues(n),received:r.parsedType,code:N.invalid_type}),J}if(Un(this,Dr)||lc(this,Dr,new Set(this._def.values)),!Un(this,Dr).has(t.data)){const r=this._getOrReturnCtx(t),n=this._def.values;return R(r,{received:r.data,code:N.invalid_enum_value,options:n}),J}return Ne(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return Nt.create(t,{...this._def,...r})}exclude(t,r=this._def){return Nt.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}}Dr=new WeakMap;Nt.create=pc;class cn extends re{constructor(){super(...arguments),Fr.set(this,void 0)}_parse(t){const r=ce.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==V.string&&n.parsedType!==V.number){const a=ce.objectValues(r);return R(n,{expected:ce.joinValues(a),received:n.parsedType,code:N.invalid_type}),J}if(Un(this,Fr)||lc(this,Fr,new Set(ce.getValidEnumValues(this._def.values))),!Un(this,Fr).has(t.data)){const a=ce.objectValues(r);return R(n,{received:n.data,code:N.invalid_enum_value,options:a}),J}return Ne(t.data)}get enum(){return this._def.values}}Fr=new WeakMap;cn.create=(e,t)=>new cn({values:e,typeName:Y.ZodNativeEnum,...ee(t)});class gr extends re{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==V.promise&&r.common.async===!1)return R(r,{code:N.invalid_type,expected:V.promise,received:r.parsedType}),J;const n=r.parsedType===V.promise?r.data:Promise.resolve(r.data);return Ne(n.then(a=>this._def.type.parseAsync(a,{path:r.path,errorMap:r.common.contextualErrorMap})))}}gr.create=(e,t)=>new gr({type:e,typeName:Y.ZodPromise,...ee(t)});class Je extends re{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Y.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:n}=this._processInputParams(t),a=this._def.effect||null,s={addIssue:i=>{R(n,i),i.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),a.type==="preprocess"){const i=a.transform(n.data,s);if(n.common.async)return Promise.resolve(i).then(async o=>{if(r.value==="aborted")return J;const u=await this._def.schema._parseAsync({data:o,path:n.path,parent:n});return u.status==="aborted"?J:u.status==="dirty"||r.value==="dirty"?lr(u.value):u});{if(r.value==="aborted")return J;const o=this._def.schema._parseSync({data:i,path:n.path,parent:n});return o.status==="aborted"?J:o.status==="dirty"||r.value==="dirty"?lr(o.value):o}}if(a.type==="refinement"){const i=o=>{const u=a.refinement(o,s);if(n.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(n.common.async===!1){const o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?J:(o.status==="dirty"&&r.dirty(),i(o.value),{status:r.value,value:o.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>o.status==="aborted"?J:(o.status==="dirty"&&r.dirty(),i(o.value).then(()=>({status:r.value,value:o.value}))))}if(a.type==="transform")if(n.common.async===!1){const i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Gt(i))return i;const o=a.transform(i.value,s);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:o}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(i=>Gt(i)?Promise.resolve(a.transform(i.value,s)).then(o=>({status:r.value,value:o})):i);ce.assertNever(a)}}Je.create=(e,t,r)=>new Je({schema:e,typeName:Y.ZodEffects,effect:t,...ee(r)});Je.createWithPreprocess=(e,t,r)=>new Je({schema:t,effect:{type:"preprocess",transform:e},typeName:Y.ZodEffects,...ee(r)});class it extends re{_parse(t){return this._getType(t)===V.undefined?Ne(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}it.create=(e,t)=>new it({innerType:e,typeName:Y.ZodOptional,...ee(t)});class It extends re{_parse(t){return this._getType(t)===V.null?Ne(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}It.create=(e,t)=>new It({innerType:e,typeName:Y.ZodNullable,...ee(t)});class un extends re{_parse(t){const{ctx:r}=this._processInputParams(t);let n=r.data;return r.parsedType===V.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}un.create=(e,t)=>new un({innerType:e,typeName:Y.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ee(t)});class dn extends re{_parse(t){const{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},a=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Xr(a)?a.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new De(n.common.issues)},input:n.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new De(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}dn.create=(e,t)=>new dn({innerType:e,typeName:Y.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ee(t)});class Wn extends re{_parse(t){if(this._getType(t)!==V.nan){const n=this._getOrReturnCtx(t);return R(n,{code:N.invalid_type,expected:V.nan,received:n.parsedType}),J}return{status:"valid",value:t.data}}}Wn.create=e=>new Wn({typeName:Y.ZodNaN,...ee(e)});const Ey=Symbol("zod_brand");class is extends re{_parse(t){const{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class yn extends re{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?J:s.status==="dirty"?(r.dirty(),lr(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{const a=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?J:a.status==="dirty"?(r.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:n.path,parent:n})}}static create(t,r){return new yn({in:t,out:r,typeName:Y.ZodPipeline})}}class ln extends re{_parse(t){const r=this._def.innerType._parse(t),n=a=>(Gt(a)&&(a.value=Object.freeze(a.value)),a);return Xr(r)?r.then(a=>n(a)):n(r)}unwrap(){return this._def.innerType}}ln.create=(e,t)=>new ln({innerType:e,typeName:Y.ZodReadonly,...ee(t)});function Vi(e,t){const r=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof r=="string"?{message:r}:r}function yc(e,t={},r){return e?_r.create().superRefine((n,a)=>{var s,i;const o=e(n);if(o instanceof Promise)return o.then(u=>{var c,l;if(!u){const f=Vi(t,n),g=(l=(c=f.fatal)!==null&&c!==void 0?c:r)!==null&&l!==void 0?l:!0;a.addIssue({code:"custom",...f,fatal:g})}});if(!o){const u=Vi(t,n),c=(i=(s=u.fatal)!==null&&s!==void 0?s:r)!==null&&i!==void 0?i:!0;a.addIssue({code:"custom",...u,fatal:c})}}):_r.create()}const Ty={object:_e.lazycreate};var Y;(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"})(Y||(Y={}));const Py=(e,t={message:`Input not instance of ${e.name}`})=>yc(r=>r instanceof e,t),_c=He.create,gc=kt.create,jy=Wn.create,Oy=Ct.create,vc=Qr.create,xy=Kt.create,ky=qn.create,Cy=en.create,Ny=tn.create,Iy=_r.create,Ay=Zt.create,Ry=_t.create,My=Bn.create,Dy=Ge.create,Fy=_e.create,Vy=_e.strictCreate,Ly=rn.create,zy=sa.create,Uy=nn.create,qy=ct.create,By=an.create,Zy=Zn.create,Wy=Yt.create,Hy=fr.create,Gy=sn.create,Ky=on.create,Yy=Nt.create,Jy=cn.create,Xy=gr.create,Li=Je.create,Qy=it.create,e_=It.create,t_=Je.createWithPreprocess,r_=yn.create,n_=()=>_c().optional(),a_=()=>gc().optional(),s_=()=>vc().optional(),i_={string:e=>He.create({...e,coerce:!0}),number:e=>kt.create({...e,coerce:!0}),boolean:e=>Qr.create({...e,coerce:!0}),bigint:e=>Ct.create({...e,coerce:!0}),date:e=>Kt.create({...e,coerce:!0})},o_=J;var $a=Object.freeze({__proto__:null,defaultErrorMap:yr,setErrorMap:ty,getErrorMap:Ln,makeIssue:zn,EMPTY_PATH:ry,addIssueToContext:R,ParseStatus:Oe,INVALID:J,DIRTY:lr,OK:Ne,isAborted:Va,isDirty:La,isValid:Gt,isAsync:Xr,get util(){return ce},get objectUtil(){return Fa},ZodParsedType:V,getParsedType:mt,ZodType:re,datetimeRegex:mc,ZodString:He,ZodNumber:kt,ZodBigInt:Ct,ZodBoolean:Qr,ZodDate:Kt,ZodSymbol:qn,ZodUndefined:en,ZodNull:tn,ZodAny:_r,ZodUnknown:Zt,ZodNever:_t,ZodVoid:Bn,ZodArray:Ge,ZodObject:_e,ZodUnion:rn,ZodDiscriminatedUnion:sa,ZodIntersection:nn,ZodTuple:ct,ZodRecord:an,ZodMap:Zn,ZodSet:Yt,ZodFunction:fr,ZodLazy:sn,ZodLiteral:on,ZodEnum:Nt,ZodNativeEnum:cn,ZodPromise:gr,ZodEffects:Je,ZodTransformer:Je,ZodOptional:it,ZodNullable:It,ZodDefault:un,ZodCatch:dn,ZodNaN:Wn,BRAND:Ey,ZodBranded:is,ZodPipeline:yn,ZodReadonly:ln,custom:yc,Schema:re,ZodSchema:re,late:Ty,get ZodFirstPartyTypeKind(){return Y},coerce:i_,any:Iy,array:Dy,bigint:Oy,boolean:vc,date:xy,discriminatedUnion:zy,effect:Li,enum:Yy,function:Hy,instanceof:Py,intersection:Uy,lazy:Gy,literal:Ky,map:Zy,nan:jy,nativeEnum:Jy,never:Ry,null:Ny,nullable:e_,number:gc,object:Fy,oboolean:s_,onumber:a_,optional:Qy,ostring:n_,pipeline:r_,preprocess:t_,promise:Xy,record:By,set:Wy,strictObject:Vy,string:_c,symbol:ky,transformer:Li,tuple:qy,undefined:Cy,union:Ly,unknown:Ay,void:My,NEVER:o_,ZodIssueCode:N,quotelessJson:ey,ZodError:De}),Wt={},c_=nt&&nt.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(n[s]=a[s])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),$c=nt&&nt.__awaiter||function(e,t,r,n){function a(s){return s instanceof r?s:new r(function(i){i(s)})}return new(r||(r=Promise))(function(s,i){function o(l){try{c(n.next(l))}catch(f){i(f)}}function u(l){try{c(n.throw(l))}catch(f){i(f)}}function c(l){l.done?s(l.value):a(l.value).then(o,u)}c((n=n.apply(e,t||[])).next())})},bc=nt&&nt.__generator||function(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,a,s,i;return i={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function o(c){return function(l){return u([c,l])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(s=c[0]&2?a.return:c[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,c[1])).done)return s;switch(a=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,a=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){r.label=c[1];break}if(c[0]===6&&r.label<s[1]){r.label=s[1],s=c;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(c);break}s[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(l){c=[6,l],a=0}finally{n=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.toFormikValidate=Sc=Wt.toFormikValidationSchema=Wt.ValidationError=void 0;var wc=function(e){c_(t,e);function t(r){var n=e.call(this,r)||this;return n.name="ValidationError",n.inner=[],n}return t}(Error);Wt.ValidationError=wc;function u_(e){var t=new wc(e.message);return t.inner=e.errors.map(function(r){return{message:r.message,path:r.path.join(".")}}),t}function d_(e,t){return{validate:function(r){return $c(this,void 0,void 0,function(){var n;return bc(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,e.parseAsync(r,t)];case 1:return a.sent(),[3,3];case 2:throw n=a.sent(),u_(n);case 3:return[2]}})})}}}var Sc=Wt.toFormikValidationSchema=d_;function l_(e){for(var t={},r=0,n=e.errors;r<n.length;r++){var a=n[r];t[a.path.filter(Boolean).join(".")]=a.message}return t}function f_(e,t){var r=this;return function(n){return $c(r,void 0,void 0,function(){var a;return bc(this,function(s){switch(s.label){case 0:return[4,e.safeParseAsync(n,t)];case 1:return a=s.sent(),a.success?[2]:[2,l_(a.error)]}})})}}Wt.toFormikValidate=f_;const h_="_root__body_bfa58_141",m_="_root__form_bfa58_144",p_="_root__stickyButton_bfa58_159",ba={root__body:h_,root__form:m_,root__stickyButton:p_},tt={amountPicker:"amountPicker",cta:"cta",headline:"headline",legalCheckbox:"legalCheckbox",paymentMethods:"paymentMethods",priceDescription:"priceDescription",selectablePills:"selectablePills",submitButton:"submitButton",switcherToggle:"switcherToggle"};var os=(e=>(e.FULL_PAGE="full_page",e.IN_APP="in_app",e))(os||{});const y_="_root_1fb89_141",__={root:y_},g_=({errorMessage:e,id:t,onChange:r,value:n})=>_.jsx(D.Fieldset,{className:__.root,name:t,children:_.jsx(D.InputFieldSpecial,{id:t,onChange:r,value:n,errorMessage:e})}),v_="_root_stypt_141",$_="_root__button_stypt_147",zi={root:v_,root__button:$_},b_=({data:{label:e,url:t}})=>_.jsx(D.Fieldset,{className:zi.root,children:_.jsx(D.TextButton,{className:zi.root__button,href:t,size:"link",text:e,color:"deepPurple",target:"_blank"})}),w_="_root_1vxm5_141",S_="_root__blockHeader_1vxm5_146",E_="_root__block_1vxm5_146",T_="_root__markdown_1vxm5_159",Tn={root:w_,root__blockHeader:S_,root__block:E_,root__markdown:T_},P_=({data:{buttonText:e,content:t,date:r,headline:n,version:a},onClose:s,open:i})=>{const o=()=>{s&&s(!i)};return _.jsx(D.Modal,{headerTitle:n,onClose:o,open:i,modalFooter:_.jsx(_.Fragment,{children:_.jsx(D.TextButton,{onClick:o,color:"blue",size:"large",text:e})}),modalBody:_.jsx(D.Card,{children:_.jsx(D.CardBody,{className:Tn.root,children:_.jsxs(_.Fragment,{children:[_.jsxs("div",{className:Tn.root__blockHeader,children:[_.jsx(D.Typography,{type:"body-regular",children:a}),_.jsx(D.Typography,{type:"body-regular",children:r})]}),_.jsx(D.Divider,{}),typeof t=="string"?_.jsx(Qt.MarkdownRichText,{text:t,className:Tn.root__markdown}):t.map((u,c)=>_.jsxs(I.Fragment,{children:[_.jsx("div",{className:Tn.root__block,children:u}),c!==t.length-1&&_.jsx(D.Divider,{})]},`rich_text_el_${c}`))]})})})})},j_="_headline_byfxz_141",O_={headline:j_},x_=({data:{headline:e,subheadline:t}})=>_.jsxs(D.Fieldset,{className:O_.headline,children:[_.jsx(D.Typography,{type:"h1",children:e}),_.jsx(D.Typography,{type:"body-regular",children:t})]}),k_="_root_14zd2_141",C_="_root__img_14zd2_148",Ui={root:k_,root__img:C_},N_=({data:{alt:e,src:t}})=>_.jsx("div",{className:Ui.root,"data-testid":"hero-block",children:_.jsx("img",{className:Ui.root__img,alt:e,src:t})}),I_="_root_i7dny_141",A_="_root__checkbox_i7dny_149",R_="_root__text_i7dny_155",M_="_root__error_i7dny_161",D_="_root__link_i7dny_171",wt={"react-datepicker__day-names":"_react-datepicker__day-names_i7dny_120","react-datepicker__week":"_react-datepicker__week_i7dny_124","react-datepicker__day--outside-month":"_react-datepicker__day--outside-month_i7dny_131","react-datepicker":"_react-datepicker_i7dny_120",root:I_,root__checkbox:A_,root__text:R_,root__error:M_,"root--error":"_root--error_i7dny_168",root__link:D_,"root--stickyButton":"_root--stickyButton_i7dny_180"},F_=({data:{buttonLabel:e,label:t,layout:r},error:n,onChange:a,onClick:s,stickyButton:i})=>{const o=()=>{s&&s(!0)};return _.jsxs(D.Fieldset,{className:Ye(wt.root,{[wt["root--stickyButton"]]:i}),children:[r?_.jsx(D.CheckboxInput,{onChange:a,id:"legal_checkbox",className:Ye(wt.root__checkbox,{[wt["root--error"]]:n}),children:_.jsxs(D.Typography,{type:n?"detail-regular":"detail-medium",as:"p",children:[t," ",_.jsx(D.TextButton,{className:wt.root__link,onClick:o,size:"small",text:e,color:"deepPurple"})]})}):_.jsxs(D.Typography,{className:wt.root__text,type:n?"detail-regular":"detail-medium",as:"p",children:[t," ",_.jsx(D.TextButton,{className:wt.root__link,onClick:o,size:"small",text:e,color:"deepPurple"})]}),n&&_.jsx(D.Typography,{className:wt.root__error,type:"detail-bold",as:"p",children:n})]})},V_="_root_1t7vh_141",L_="_root__item_1t7vh_147",z_="_root__img_1t7vh_152",wa={root:V_,root__item:L_,root__img:z_},U_=({methods:e})=>_.jsx(D.Fieldset,{children:_.jsx("ul",{className:wa.root,children:e.map(({alt:t,id:r,src:n},a)=>_.jsx("li",{className:wa.root__item,children:_.jsx("img",{className:wa.root__img,src:n,alt:t})},`payments_${r}_${a}`))})}),q_="_root_1fc71_141",B_={root:q_},Z_=({label:e})=>_.jsx(D.Fieldset,{className:B_.root,children:_.jsx(D.Typography,{type:"body-regular",children:e})}),W_="_root_nsxb2_141",H_={root:W_},G_=({onChange:e,selectablePills:t,selectedPills:r})=>_.jsx(D.Fieldset,{children:_.jsx(D.SelectablePillGroup,{className:H_.root,selectedItems:r,items:t,multiselect:!1,onChange:e})}),K_="_root_mxnra_141",Y_={root:K_},J_=({onChange:e,switcherToggle:t,value:r})=>_.jsx(D.SwitcherToggle,{className:Y_.root,items:t,onChange:e,value:r}),St=()=>Math.floor(Math.random()*65536).toString(16).padStart(4,"0"),X_=()=>`${St()}${St()}-${St()}-${St()}-${St()}-${St()}${St()}${St()}`,Q_={monthly:"supporter_monthly",yearly:"supporter_yearly"},eg={monthly:2,yearly:3},tg=({amount:e,frequency:t,items:r})=>{const n=Iu.useTrack(),a=o=>o.map(u=>({item_name:u.id,price:Number(u.value)})),s=I.useMemo(()=>({currency:"EUR",item_list_name:Q_[t],items:a(r)}),[t]);I.useEffect(()=>{n("view_item_list",{ecommerce:{...s,value:e}})},[n,s]);const i=I.useCallback((o,u)=>{const c={...s,value:u};return o==="purchase"&&(c.transaction_id=X_()),{ecommerce:c}},[s]);return I.useCallback((o,u)=>{n(o,i(o,u))},[i,n])},rg=(e,t,r)=>{const{subscribe:n,unsubscribe:a}=jo.useEventBus();I.useEffect(()=>{if(e)return n("submit_sponsor_form",t),n("open_sponsor_legal",r),()=>{a("submit_sponsor_form",t),a("open_sponsor_legal",r)}},[n,t,r])},ng=(e,t)=>{const r=eg[t]||"2",n=parseInt(e,10)*100;return`volunteer-${r}-${n}`},ag=({error:e,errorLegal:t,minValue:r})=>$a.object({amount:$a.number().min(r,{message:e}).int(),legalCheckbox:$a.boolean().refine(n=>n===!0,{message:t})}),Ec=({blocks:e,defaultSelectedToggle:t,fieldDescription:r,fieldErrors:n,guidelinesModalData:a,hero:s,isCtaBlockPresent:i,layout:o,onError:u,onSubmit:c,scrollYTop:l=!1,stickyButton:f=!1})=>{const[g,S]=I.useState(t),[$,b]=I.useState(0),y=ag(n[g]),h=Nu.useOpenCheckout(),w=(L=t)=>{const C=e.selectablePills[L].find(v=>v.isSelected);return C?[{id:C.id,value:C.value}]:[]},k=()=>{const L=w()[0];return L?r[L.id]:e.priceDescription.label},T=()=>{const L=w()[0];return L?Number(L.value):0},p=tg({amount:$||T(),frequency:g,items:e.selectablePills[g]}),x=I.useCallback((L,C)=>{L==="thankyou_screen"&&p("purchase",C)},[p]),A=L=>{p("add_to_cart",L)},G=L=>{c(L)},K=Wp({initialValues:{amount:T(),fieldDescription:k(),legalCheckbox:!e.legalCheckbox.layout,legalModalOpen:!1,selectedPills:w(),selectedPillsTouched:!1,toggle:t},onSubmit:L=>{var v;p("begin_checkout",L.amount);const C=((v=L==null?void 0:L.selectedPills[0])==null?void 0:v.id)||ng(`${L.amount}`,L.toggle);h({getHostedPage:async()=>await Fn.postChargebeeCreate(C),layout:os.IN_APP,onError:u,onLoaded:()=>A(L.amount),onStep:O=>x(O,L.amount),onSuccess:()=>G(L)})},validateOnBlur:!0,validateOnChange:!0,validationSchema:Sc(y)}),we=()=>{l&&f&&window.scrollTo({behavior:"smooth",top:0})},xe=async(L,C,v)=>{const O=L||e.selectablePills[C].filter(m=>m.value===v)[0],E=O?r[O.id]:e.priceDescription.label,d=O?[{id:O.id,value:O.value}]:[];await K.setValues({...K.values,amount:Number(v),fieldDescription:E,selectedPills:d},!0)},ke=L=>L[K.values.toggle],ge=L=>{(async()=>(await xe(L[0],K.values.toggle,L[0].value),await K.setTouched({selectedPillsTouched:!0},!0),p("view_item_list",Number(L[0].value))))()},Se=L=>{(async()=>(await xe(null,K.values.toggle,`${L}`),await K.setTouched({amount:!0},!0),b(L)))()},Fe=L=>{(async()=>{S(L);const C=w(L);if(!K.touched.amount&&!K.touched.selectedPillsTouched&&C.length){await xe(C[0],L,C[0].value),await K.setFieldValue("toggle",L,!0);return}await xe(null,L,`${K.values.amount}`),await K.setFieldValue("toggle",L,!0)})()},Ve=L=>{(async()=>await K.setFieldValue("legalModalOpen",L))()},lt=L=>{(async()=>(!K.touched.legalCheckbox&&await K.setFieldTouched("legalCheckbox"),await K.setFieldValue("legalCheckbox",L.target.checked,!0)))()},Le=()=>{(async()=>(K.values.amount===0&&we(),await K.submitForm(),window.scrollY!==0&&we()))()};return rg(i,Le,Ve),_.jsxs("div",{className:Ye({[ba.root__stickyButton]:f}),children:[_.jsx(N_,{data:s}),_.jsxs("div",{className:ba.root__body,children:[_.jsx(D.Form,{className:Ye(ba.root__form),children:o.map(L=>{const C=e[L];switch(L){case tt.headline:return _.jsx(I.Fragment,{children:_.jsx(x_,{data:C})},L);case tt.switcherToggle:return _.jsx(I.Fragment,{children:_.jsx(J_,{switcherToggle:C,onChange:Fe,value:K.values.toggle})},L);case tt.selectablePills:return _.jsx(I.Fragment,{children:_.jsx(G_,{onChange:ge,selectablePills:ke(C),selectedPills:K.values.selectedPills})},L);case tt.priceDescription:return _.jsx(I.Fragment,{children:_.jsx(Z_,{label:K.values.fieldDescription})},L);case tt.amountPicker:return _.jsx(I.Fragment,{children:_.jsx(g_,{id:"amount",onChange:Se,value:K.values.amount,errorMessage:K.touched.amount&&K.errors.amount||""})},L);case tt.legalCheckbox:return _.jsx(I.Fragment,{children:_.jsx(F_,{stickyButton:f,data:C,error:K.touched.legalCheckbox?K.errors.legalCheckbox:"",onClick:Ve,onChange:lt})},L);case tt.submitButton:return _.jsx(I.Fragment,{children:_.jsx(No,{stickyButton:f,data:C,onSubmit:Le})},L);case tt.paymentMethods:return _.jsx(I.Fragment,{children:_.jsx(U_,{methods:C})},L);case tt.cta:return _.jsx(I.Fragment,{children:_.jsx(b_,{data:C})},L);default:return null}})}),K.values.legalModalOpen&&_.jsx(P_,{data:a,onClose:Ve,open:K.values.legalModalOpen})]})]})},sg=({block:e,isCtaBlockPresent:t,isDesktop:r,onError:n,onSubmit:a})=>{const s=()=>{var T;return((T=e==null?void 0:e.layout)==null?void 0:T.map(p=>p==null?void 0:p.name))||[]},i=()=>{var T,p,x;return{alt:((T=e==null?void 0:e.heroImage)==null?void 0:T.alternativeText)||"",src:(p=e==null?void 0:e.heroImage)!=null&&p.url?`${Gr.API.getBaseUrl()}${(x=e==null?void 0:e.heroImage)==null?void 0:x.url}`:""}},o=()=>{var T,p;return{headline:((T=e.headline)==null?void 0:T.headline)||"",subheadline:((p=e.headline)==null?void 0:p.subheadline)||""}},u=()=>{var T,p;return{label:((T=e.cta)==null?void 0:T.label)||"",url:((p=e.cta)==null?void 0:p.url)||""}},c=()=>e!=null&&e.paymentMethodLogos?e==null?void 0:e.paymentMethodLogos.map(T=>{var p;return{alt:(T==null?void 0:T.alternativeText)||"",id:((p=T==null?void 0:T.id)==null?void 0:p.toString())||"",src:`${Gr.API.getBaseUrl()}${T==null?void 0:T.url}`}}):[],l=()=>({label:e.submitLabel||"",securityText:e.submitSecurityText||""}),f=()=>{var T,p,x;return{buttonLabel:((T=e.legalCheckbox)==null?void 0:T.legalButtonLabel)||"",label:((p=e.legalCheckbox)==null?void 0:p.label)||"",layout:(x=e.legalCheckbox)==null?void 0:x.layout}},g=()=>({label:e.priceDescription||""}),S=()=>{var p;const T={};return(p=e==null?void 0:e.switcherToggle)==null||p.map(x=>{var G;const A=`${x==null?void 0:x.identifier}`;A in T||(T[A]={error:(x==null?void 0:x.errorText)||"",errorLegal:((G=e.legalCheckbox)==null?void 0:G.errorText)||"",minValue:Number(x==null?void 0:x.minValue)||0})}),T},$=()=>{var T;return e!=null&&e.switcherToggle?(T=e==null?void 0:e.switcherToggle)==null?void 0:T.map(p=>({id:(p==null?void 0:p.identifier)||"",label:(p==null?void 0:p.label)||""})):[]},b=()=>{var p,x,A;const T=(p=e==null?void 0:e.switcherToggle)==null?void 0:p.find(G=>G==null?void 0:G.defaultSelected);return!T&&(e!=null&&e.switcherToggle)&&((x=e.switcherToggle[0])!=null&&x.identifier)?((A=e.switcherToggle[0])==null?void 0:A.identifier)||"":(T==null?void 0:T.identifier)||""},y=()=>{var p;const T={};return(p=e==null?void 0:e.switcherToggle)==null||p.map(x=>{var A;(A=x==null?void 0:x.selectablePills)==null||A.map(G=>{const K=`${G==null?void 0:G.chargebeeId}`;K in T||(T[K]=(G==null?void 0:G.description)||"")})}),T},h=()=>{var p;const T={};return(p=e==null?void 0:e.switcherToggle)==null||p.map(x=>{const A=`${x==null?void 0:x.identifier}`;A in T||(T[A]=((x==null?void 0:x.selectablePills)||[]).map(G=>({id:G==null?void 0:G.chargebeeId,isSelected:G==null?void 0:G.defaultSelected,label:(G==null?void 0:G.label)||"",popular:(G==null?void 0:G.popular)||"",style:"filled",value:(G==null?void 0:G.value)||"",variant:"large"})))}),T},w=()=>{var we;const T=(we=e==null?void 0:e.legalCheckbox)==null?void 0:we.guidelinesModal,p=T==null?void 0:T.text;if(!p)return{buttonText:"",content:[[]],date:"",headline:"",version:""};const x=(T==null?void 0:T.closeModalButtonText)||"",A=(T==null?void 0:T.headline)||"",G=(T==null?void 0:T.data)||"",K=(T==null?void 0:T.version)||"";return{buttonText:x,content:p,date:G,headline:A,version:K}},k=()=>({cta:u(),headline:o(),legalCheckbox:f(),paymentMethods:c(),priceDescription:g(),selectablePills:h(),submitButton:l(),switcherToggle:$()});return _.jsx(Ec,{isCtaBlockPresent:t,scrollYTop:e==null?void 0:e.scrollToTop,stickyButton:(e==null?void 0:e.stickyButton)&&!r,onError:n,onSubmit:a,layout:s(),hero:i(),defaultSelectedToggle:b(),blocks:k(),fieldDescription:y(),fieldErrors:S(),guidelinesModalData:w()})},Tc=e=>({body:(e==null?void 0:e.body)??"",cta:(e==null?void 0:e.cta)??""}),Pc=6048e5,ig=864e5,qi=Symbol.for("constructDateFrom");function At(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&qi in e?e[qi](t):e instanceof Date?new e.constructor(t):new Date(t)}function Xe(e,t){return At(t||e,e)}let og={};function ia(){return og}function fn(e,t){var o,u,c,l;const r=ia(),n=(t==null?void 0:t.weekStartsOn)??((u=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:u.weekStartsOn)??r.weekStartsOn??((l=(c=r.locale)==null?void 0:c.options)==null?void 0:l.weekStartsOn)??0,a=Xe(e,t==null?void 0:t.in),s=a.getDay(),i=(s<n?7:0)+s-n;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function Hn(e,t){return fn(e,{...t,weekStartsOn:1})}function jc(e,t){const r=Xe(e,t==null?void 0:t.in),n=r.getFullYear(),a=At(r,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);const s=Hn(a),i=At(r,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const o=Hn(i);return r.getTime()>=s.getTime()?n+1:r.getTime()>=o.getTime()?n:n-1}function Bi(e){const t=Xe(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function cg(e,...t){const r=At.bind(null,t.find(n=>typeof n=="object"));return t.map(r)}function Zi(e,t){const r=Xe(e,t==null?void 0:t.in);return r.setHours(0,0,0,0),r}function ug(e,t,r){const[n,a]=cg(r==null?void 0:r.in,e,t),s=Zi(n),i=Zi(a),o=+s-Bi(s),u=+i-Bi(i);return Math.round((o-u)/ig)}function dg(e,t){const r=jc(e,t),n=At(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),Hn(n)}function lg(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function fg(e){return!(!lg(e)&&typeof e!="number"||isNaN(+Xe(e)))}function hg(e,t){const r=Xe(e,t==null?void 0:t.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}const mg={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},pg=(e,t,r)=>{let n;const a=mg[e];return typeof a=="string"?n=a:t===1?n=a.one:n=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function Sa(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const yg={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},_g={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},gg={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},vg={date:Sa({formats:yg,defaultWidth:"full"}),time:Sa({formats:_g,defaultWidth:"full"}),dateTime:Sa({formats:gg,defaultWidth:"full"})},$g={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},bg=(e,t,r,n)=>$g[e];function Ir(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let a;if(n==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,o=r!=null&&r.width?String(r.width):i;a=e.formattingValues[o]||e.formattingValues[i]}else{const i=e.defaultWidth,o=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[o]||e.values[i]}const s=e.argumentCallback?e.argumentCallback(t):t;return a[s]}}const wg={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Sg={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Eg={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Tg={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Pg={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},jg={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Og=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},xg={ordinalNumber:Og,era:Ir({values:wg,defaultWidth:"wide"}),quarter:Ir({values:Sg,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ir({values:Eg,defaultWidth:"wide"}),day:Ir({values:Tg,defaultWidth:"wide"}),dayPeriod:Ir({values:Pg,defaultWidth:"wide",formattingValues:jg,defaultFormattingWidth:"wide"})};function Ar(e){return(t,r={})=>{const n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],s=t.match(a);if(!s)return null;const i=s[0],o=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(o)?Cg(o,f=>f.test(i)):kg(o,f=>f.test(i));let c;c=e.valueCallback?e.valueCallback(u):u,c=r.valueCallback?r.valueCallback(c):c;const l=t.slice(i.length);return{value:c,rest:l}}}function kg(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function Cg(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function Ng(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const a=n[0],s=t.match(e.parsePattern);if(!s)return null;let i=e.valueCallback?e.valueCallback(s[0]):s[0];i=r.valueCallback?r.valueCallback(i):i;const o=t.slice(a.length);return{value:i,rest:o}}}const Ig=/^(\d+)(th|st|nd|rd)?/i,Ag=/\d+/i,Rg={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Mg={any:[/^b/i,/^(a|c)/i]},Dg={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Fg={any:[/1/i,/2/i,/3/i,/4/i]},Vg={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Lg={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},zg={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ug={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},qg={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Bg={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Zg={ordinalNumber:Ng({matchPattern:Ig,parsePattern:Ag,valueCallback:e=>parseInt(e,10)}),era:Ar({matchPatterns:Rg,defaultMatchWidth:"wide",parsePatterns:Mg,defaultParseWidth:"any"}),quarter:Ar({matchPatterns:Dg,defaultMatchWidth:"wide",parsePatterns:Fg,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ar({matchPatterns:Vg,defaultMatchWidth:"wide",parsePatterns:Lg,defaultParseWidth:"any"}),day:Ar({matchPatterns:zg,defaultMatchWidth:"wide",parsePatterns:Ug,defaultParseWidth:"any"}),dayPeriod:Ar({matchPatterns:qg,defaultMatchWidth:"any",parsePatterns:Bg,defaultParseWidth:"any"})},Wg={code:"en-US",formatDistance:pg,formatLong:vg,formatRelative:bg,localize:xg,match:Zg,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Hg(e,t){const r=Xe(e,t==null?void 0:t.in);return ug(r,hg(r))+1}function Gg(e,t){const r=Xe(e,t==null?void 0:t.in),n=+Hn(r)-+dg(r);return Math.round(n/Pc)+1}function Oc(e,t){var l,f,g,S;const r=Xe(e,t==null?void 0:t.in),n=r.getFullYear(),a=ia(),s=(t==null?void 0:t.firstWeekContainsDate)??((f=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:f.firstWeekContainsDate)??a.firstWeekContainsDate??((S=(g=a.locale)==null?void 0:g.options)==null?void 0:S.firstWeekContainsDate)??1,i=At((t==null?void 0:t.in)||e,0);i.setFullYear(n+1,0,s),i.setHours(0,0,0,0);const o=fn(i,t),u=At((t==null?void 0:t.in)||e,0);u.setFullYear(n,0,s),u.setHours(0,0,0,0);const c=fn(u,t);return+r>=+o?n+1:+r>=+c?n:n-1}function Kg(e,t){var o,u,c,l;const r=ia(),n=(t==null?void 0:t.firstWeekContainsDate)??((u=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:u.firstWeekContainsDate)??r.firstWeekContainsDate??((l=(c=r.locale)==null?void 0:c.options)==null?void 0:l.firstWeekContainsDate)??1,a=Oc(e,t),s=At((t==null?void 0:t.in)||e,0);return s.setFullYear(a,0,n),s.setHours(0,0,0,0),fn(s,t)}function Yg(e,t){const r=Xe(e,t==null?void 0:t.in),n=+fn(r,t)-+Kg(r,t);return Math.round(n/Pc)+1}function le(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const Et={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return le(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):le(r+1,2)},d(e,t){return le(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return le(e.getHours()%12||12,t.length)},H(e,t){return le(e.getHours(),t.length)},m(e,t){return le(e.getMinutes(),t.length)},s(e,t){return le(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),a=Math.trunc(n*Math.pow(10,r-3));return le(a,t.length)}},sr={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Wi={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),a=n>0?n:1-n;return r.ordinalNumber(a,{unit:"year"})}return Et.y(e,t)},Y:function(e,t,r,n){const a=Oc(e,n),s=a>0?a:1-a;if(t==="YY"){const i=s%100;return le(i,2)}return t==="Yo"?r.ordinalNumber(s,{unit:"year"}):le(s,t.length)},R:function(e,t){const r=jc(e);return le(r,t.length)},u:function(e,t){const r=e.getFullYear();return le(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return le(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return le(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return Et.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return le(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const a=Yg(e,n);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):le(a,t.length)},I:function(e,t,r){const n=Gg(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):le(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Et.d(e,t)},D:function(e,t,r){const n=Hg(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):le(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const a=e.getDay(),s=(a-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return le(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const a=e.getDay(),s=(a-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return le(s,t.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),a=n===0?7:n;switch(t){case"i":return String(a);case"ii":return le(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let a;switch(n===12?a=sr.noon:n===0?a=sr.midnight:a=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let a;switch(n>=17?a=sr.evening:n>=12?a=sr.afternoon:n>=4?a=sr.morning:a=sr.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Et.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Et.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):le(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):le(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Et.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Et.s(e,t)},S:function(e,t){return Et.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return Gi(n);case"XXXX":case"XX":return Lt(n);case"XXXXX":case"XXX":default:return Lt(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return Gi(n);case"xxxx":case"xx":return Lt(n);case"xxxxx":case"xxx":default:return Lt(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Hi(n,":");case"OOOO":default:return"GMT"+Lt(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Hi(n,":");case"zzzz":default:return"GMT"+Lt(n,":")}},t:function(e,t,r){const n=Math.trunc(+e/1e3);return le(n,t.length)},T:function(e,t,r){return le(+e,t.length)}};function Hi(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),a=Math.trunc(n/60),s=n%60;return s===0?r+String(a):r+String(a)+t+le(s,2)}function Gi(e,t){return e%60===0?(e>0?"-":"+")+le(Math.abs(e)/60,2):Lt(e,t)}function Lt(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),a=le(Math.trunc(n/60),2),s=le(n%60,2);return r+a+t+s}const Ki=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},xc=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Jg=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],a=r[2];if(!a)return Ki(e,t);let s;switch(n){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",Ki(n,t)).replace("{{time}}",xc(a,t))},Xg={p:xc,P:Jg},Qg=/^D+$/,ev=/^Y+$/,tv=["D","DD","YY","YYYY"];function rv(e){return Qg.test(e)}function nv(e){return ev.test(e)}function av(e,t,r){const n=sv(e,t,r);if(console.warn(n),tv.includes(e))throw new RangeError(n)}function sv(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const iv=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ov=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,cv=/^'([^]*?)'?$/,uv=/''/g,dv=/[a-zA-Z]/;function lv(e,t,r){var l,f,g,S;const n=ia(),a=n.locale??Wg,s=n.firstWeekContainsDate??((f=(l=n.locale)==null?void 0:l.options)==null?void 0:f.firstWeekContainsDate)??1,i=n.weekStartsOn??((S=(g=n.locale)==null?void 0:g.options)==null?void 0:S.weekStartsOn)??0,o=Xe(e,r==null?void 0:r.in);if(!fg(o))throw new RangeError("Invalid time value");let u=t.match(ov).map($=>{const b=$[0];if(b==="p"||b==="P"){const y=Xg[b];return y($,a.formatLong)}return $}).join("").match(iv).map($=>{if($==="''")return{isToken:!1,value:"'"};const b=$[0];if(b==="'")return{isToken:!1,value:fv($)};if(Wi[b])return{isToken:!0,value:$};if(b.match(dv))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return{isToken:!1,value:$}});a.localize.preprocessor&&(u=a.localize.preprocessor(o,u));const c={firstWeekContainsDate:s,weekStartsOn:i,locale:a};return u.map($=>{if(!$.isToken)return $.value;const b=$.value;(nv(b)||rv(b))&&av(b,t,String(e));const y=Wi[b[0]];return y(o,b,a.localize,c)}).join("")}function fv(e){const t=e.match(cv);return t?t[1].replace(uv,"'"):e}const hv="_root_1nrgb_141",Yi={root:hv},mv="https://hilfe.nebenan.de/hc/de",kc=({body:e,cta:t})=>_.jsxs("div",{className:Yi.root,children:[_.jsx(D.Typography,{type:"body-regular",className:Yi.body,children:e}),_.jsx(D.TextButton,{href:mv,text:t,color:"blue",size:"medium"})]}),pv="_root_tlq8h_141",yv="_metadata_tlq8h_148",_v="_markdown_tlq8h_153",Ea={root:pv,metadata:yv,markdown:_v},Cc=({body:e,contactFooter:t,updateDate:r,version:n})=>{const a=n||r;return _.jsx("div",{children:_.jsxs("div",{className:Ea.root,children:[a&&_.jsxs("div",{className:Ea.metadata,children:[_.jsxs(D.Typography,{type:"body-regular",as:"span",children:["Version: ",n]}),_.jsx(D.Typography,{type:"body-regular",as:"span",children:r&&`${lv(r,"dd-MM-yyyy")}`})]}),a&&_.jsx(D.Divider,{}),_.jsx(Qt.MarkdownRichText,{text:e,className:Ea.markdown}),t&&t.body&&_.jsxs("div",{children:[_.jsx(D.Divider,{}),_.jsx(kc,{body:t.body,cta:t.cta})]})]})})},gv=({block:e})=>{const t=(e==null?void 0:e.body)??"",r=(e==null?void 0:e.version)??"",n=(e==null?void 0:e.updateDate)??"",a=Tc(e==null?void 0:e.contactFooter);return _.jsx(Cc,{body:t,contactFooter:a,version:r,updateDate:n})},vv="_root_fkfp3_141",$v="_staticHtml_fkfp3_145",Ji={root:vv,staticHtml:$v},bv="_root_17bt2_141",wv="_button_17bt2_148",Sv="_textButton_17bt2_149",Ev="_success_17bt2_154",Pn={root:bv,button:wv,textButton:Sv,success:Ev};function Tv(){}var Pv=Tv;const jv=Qn(Pv),Ov=I.createContext({onValidationError:jv,pageMapping:[],pathName:"/",snowplowConfig:{collectorUrl:"",trackerConfiguration:{},version:""}});Ov.Provider;var Ua={exports:{}},Nc={},Ke={},vr={},_n={},ae={},hn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(w){if(super(),!e.IDENTIFIER.test(w))throw new Error("CodeGen: name must be a valid identifier");this.str=w}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(w){super(),this._items=typeof w=="string"?[w]:w}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const w=this._items[0];return w===""||w==='""'}get str(){var w;return(w=this._str)!==null&&w!==void 0?w:this._str=this._items.reduce((k,T)=>`${k}${T}`,"")}get names(){var w;return(w=this._names)!==null&&w!==void 0?w:this._names=this._items.reduce((k,T)=>(T instanceof r&&(k[T.str]=(k[T.str]||0)+1),k),{})}}e._Code=n,e.nil=new n("");function a(h,...w){const k=[h[0]];let T=0;for(;T<w.length;)o(k,w[T]),k.push(h[++T]);return new n(k)}e._=a;const s=new n("+");function i(h,...w){const k=[S(h[0])];let T=0;for(;T<w.length;)k.push(s),o(k,w[T]),k.push(s,S(h[++T]));return u(k),new n(k)}e.str=i;function o(h,w){w instanceof n?h.push(...w._items):w instanceof r?h.push(w):h.push(f(w))}e.addCodeArg=o;function u(h){let w=1;for(;w<h.length-1;){if(h[w]===s){const k=c(h[w-1],h[w+1]);if(k!==void 0){h.splice(w-1,3,k);continue}h[w++]="+"}w++}}function c(h,w){if(w==='""')return h;if(h==='""')return w;if(typeof h=="string")return w instanceof r||h[h.length-1]!=='"'?void 0:typeof w!="string"?`${h.slice(0,-1)}${w}"`:w[0]==='"'?h.slice(0,-1)+w.slice(1):void 0;if(typeof w=="string"&&w[0]==='"'&&!(h instanceof r))return`"${h}${w.slice(1)}`}function l(h,w){return w.emptyStr()?h:h.emptyStr()?w:i`${h}${w}`}e.strConcat=l;function f(h){return typeof h=="number"||typeof h=="boolean"||h===null?h:S(Array.isArray(h)?h.join(","):h)}function g(h){return new n(S(h))}e.stringify=g;function S(h){return JSON.stringify(h).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=S;function $(h){return typeof h=="string"&&e.IDENTIFIER.test(h)?new n(`.${h}`):a`[${h}]`}e.getProperty=$;function b(h){if(typeof h=="string"&&e.IDENTIFIER.test(h))return new n(`${h}`);throw new Error(`CodeGen: invalid export name: ${h}, use explicit $id name mapping`)}e.getEsmExportName=b;function y(h){return new n(h.toString())}e.regexpCode=y})(hn);var qa={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=hn;class r extends Error{constructor(c){super(`CodeGen: "code" for ${c} not defined`),this.value=c.value}}var n;(function(u){u[u.Started=0]="Started",u[u.Completed=1]="Completed"})(n||(e.UsedValueState=n={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class a{constructor({prefixes:c,parent:l}={}){this._names={},this._prefixes=c,this._parent=l}toName(c){return c instanceof t.Name?c:this.name(c)}name(c){return new t.Name(this._newName(c))}_newName(c){const l=this._names[c]||this._nameGroup(c);return`${c}${l.index++}`}_nameGroup(c){var l,f;if(!((f=(l=this._parent)===null||l===void 0?void 0:l._prefixes)===null||f===void 0)&&f.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error(`CodeGen: prefix "${c}" is not allowed in this scope`);return this._names[c]={prefix:c,index:0}}}e.Scope=a;class s extends t.Name{constructor(c,l){super(l),this.prefix=c}setValue(c,{property:l,itemIndex:f}){this.value=c,this.scopePath=(0,t._)`.${new t.Name(l)}[${f}]`}}e.ValueScopeName=s;const i=(0,t._)`\n`;class o extends a{constructor(c){super(c),this._values={},this._scope=c.scope,this.opts={...c,_n:c.lines?i:t.nil}}get(){return this._scope}name(c){return new s(c,this._newName(c))}value(c,l){var f;if(l.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const g=this.toName(c),{prefix:S}=g,$=(f=l.key)!==null&&f!==void 0?f:l.ref;let b=this._values[S];if(b){const w=b.get($);if(w)return w}else b=this._values[S]=new Map;b.set($,g);const y=this._scope[S]||(this._scope[S]=[]),h=y.length;return y[h]=l.ref,g.setValue(l,{property:S,itemIndex:h}),g}getValue(c,l){const f=this._values[c];if(f)return f.get(l)}scopeRefs(c,l=this._values){return this._reduceValues(l,f=>{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,t._)`${c}${f.scopePath}`})}scopeCode(c=this._values,l,f){return this._reduceValues(c,g=>{if(g.value===void 0)throw new Error(`CodeGen: name "${g}" has no value`);return g.value.code},l,f)}_reduceValues(c,l,f={},g){let S=t.nil;for(const $ in c){const b=c[$];if(!b)continue;const y=f[$]=f[$]||new Map;b.forEach(h=>{if(y.has(h))return;y.set(h,n.Started);let w=l(h);if(w){const k=this.opts.es5?e.varKinds.var:e.varKinds.const;S=(0,t._)`${S}${k} ${h} = ${w};${this.opts._n}`}else if(w=g==null?void 0:g(h))S=(0,t._)`${S}${w}${this.opts._n}`;else throw new r(h);y.set(h,n.Completed)})}return S}}e.ValueScope=o})(qa);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=hn,r=qa;var n=hn;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var a=qa;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return a.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return a.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return a.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return a.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class s{optimizeNodes(){return this}optimizeNames(d,m){return this}}class i extends s{constructor(d,m,j){super(),this.varKind=d,this.name=m,this.rhs=j}render({es5:d,_n:m}){const j=d?r.varKinds.var:this.varKind,z=this.rhs===void 0?"":` = ${this.rhs}`;return`${j} ${this.name}${z};`+m}optimizeNames(d,m){if(d[this.name.str])return this.rhs&&(this.rhs=Se(this.rhs,d,m)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class o extends s{constructor(d,m,j){super(),this.lhs=d,this.rhs=m,this.sideEffects=j}render({_n:d}){return`${this.lhs} = ${this.rhs};`+d}optimizeNames(d,m){if(!(this.lhs instanceof t.Name&&!d[this.lhs.str]&&!this.sideEffects))return this.rhs=Se(this.rhs,d,m),this}get names(){const d=this.lhs instanceof t.Name?{}:{...this.lhs.names};return ge(d,this.rhs)}}class u extends o{constructor(d,m,j,z){super(d,j,z),this.op=m}render({_n:d}){return`${this.lhs} ${this.op}= ${this.rhs};`+d}}class c extends s{constructor(d){super(),this.label=d,this.names={}}render({_n:d}){return`${this.label}:`+d}}class l extends s{constructor(d){super(),this.label=d,this.names={}}render({_n:d}){return`break${this.label?` ${this.label}`:""};`+d}}class f extends s{constructor(d){super(),this.error=d}render({_n:d}){return`throw ${this.error};`+d}get names(){return this.error.names}}class g extends s{constructor(d){super(),this.code=d}render({_n:d}){return`${this.code};`+d}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(d,m){return this.code=Se(this.code,d,m),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class S extends s{constructor(d=[]){super(),this.nodes=d}render(d){return this.nodes.reduce((m,j)=>m+j.render(d),"")}optimizeNodes(){const{nodes:d}=this;let m=d.length;for(;m--;){const j=d[m].optimizeNodes();Array.isArray(j)?d.splice(m,1,...j):j?d[m]=j:d.splice(m,1)}return d.length>0?this:void 0}optimizeNames(d,m){const{nodes:j}=this;let z=j.length;for(;z--;){const Z=j[z];Z.optimizeNames(d,m)||(Fe(d,Z.names),j.splice(z,1))}return j.length>0?this:void 0}get names(){return this.nodes.reduce((d,m)=>ke(d,m.names),{})}}class $ extends S{render(d){return"{"+d._n+super.render(d)+"}"+d._n}}class b extends S{}class y extends ${}y.kind="else";class h extends ${constructor(d,m){super(m),this.condition=d}render(d){let m=`if(${this.condition})`+super.render(d);return this.else&&(m+="else "+this.else.render(d)),m}optimizeNodes(){super.optimizeNodes();const d=this.condition;if(d===!0)return this.nodes;let m=this.else;if(m){const j=m.optimizeNodes();m=this.else=Array.isArray(j)?new y(j):j}if(m)return d===!1?m instanceof h?m:m.nodes:this.nodes.length?this:new h(Ve(d),m instanceof h?[m]:m.nodes);if(!(d===!1||!this.nodes.length))return this}optimizeNames(d,m){var j;if(this.else=(j=this.else)===null||j===void 0?void 0:j.optimizeNames(d,m),!!(super.optimizeNames(d,m)||this.else))return this.condition=Se(this.condition,d,m),this}get names(){const d=super.names;return ge(d,this.condition),this.else&&ke(d,this.else.names),d}}h.kind="if";class w extends ${}w.kind="for";class k extends w{constructor(d){super(),this.iteration=d}render(d){return`for(${this.iteration})`+super.render(d)}optimizeNames(d,m){if(super.optimizeNames(d,m))return this.iteration=Se(this.iteration,d,m),this}get names(){return ke(super.names,this.iteration.names)}}class T extends w{constructor(d,m,j,z){super(),this.varKind=d,this.name=m,this.from=j,this.to=z}render(d){const m=d.es5?r.varKinds.var:this.varKind,{name:j,from:z,to:Z}=this;return`for(${m} ${j}=${z}; ${j}<${Z}; ${j}++)`+super.render(d)}get names(){const d=ge(super.names,this.from);return ge(d,this.to)}}class p extends w{constructor(d,m,j,z){super(),this.loop=d,this.varKind=m,this.name=j,this.iterable=z}render(d){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(d)}optimizeNames(d,m){if(super.optimizeNames(d,m))return this.iterable=Se(this.iterable,d,m),this}get names(){return ke(super.names,this.iterable.names)}}class x extends ${constructor(d,m,j){super(),this.name=d,this.args=m,this.async=j}render(d){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(d)}}x.kind="func";class A extends S{render(d){return"return "+super.render(d)}}A.kind="return";class G extends ${render(d){let m="try"+super.render(d);return this.catch&&(m+=this.catch.render(d)),this.finally&&(m+=this.finally.render(d)),m}optimizeNodes(){var d,m;return super.optimizeNodes(),(d=this.catch)===null||d===void 0||d.optimizeNodes(),(m=this.finally)===null||m===void 0||m.optimizeNodes(),this}optimizeNames(d,m){var j,z;return super.optimizeNames(d,m),(j=this.catch)===null||j===void 0||j.optimizeNames(d,m),(z=this.finally)===null||z===void 0||z.optimizeNames(d,m),this}get names(){const d=super.names;return this.catch&&ke(d,this.catch.names),this.finally&&ke(d,this.finally.names),d}}class K extends ${constructor(d){super(),this.error=d}render(d){return`catch(${this.error})`+super.render(d)}}K.kind="catch";class we extends ${render(d){return"finally"+super.render(d)}}we.kind="finally";class xe{constructor(d,m={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...m,_n:m.lines?`
|
|
18
|
+
`:""},this._extScope=d,this._scope=new r.Scope({parent:d}),this._nodes=[new b]}toString(){return this._root.render(this.opts)}name(d){return this._scope.name(d)}scopeName(d){return this._extScope.name(d)}scopeValue(d,m){const j=this._extScope.value(d,m);return(this._values[j.prefix]||(this._values[j.prefix]=new Set)).add(j),j}getScopeValue(d,m){return this._extScope.getValue(d,m)}scopeRefs(d){return this._extScope.scopeRefs(d,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(d,m,j,z){const Z=this._scope.toName(m);return j!==void 0&&z&&(this._constants[Z.str]=j),this._leafNode(new i(d,Z,j)),Z}const(d,m,j){return this._def(r.varKinds.const,d,m,j)}let(d,m,j){return this._def(r.varKinds.let,d,m,j)}var(d,m,j){return this._def(r.varKinds.var,d,m,j)}assign(d,m,j){return this._leafNode(new o(d,m,j))}add(d,m){return this._leafNode(new u(d,e.operators.ADD,m))}code(d){return typeof d=="function"?d():d!==t.nil&&this._leafNode(new g(d)),this}object(...d){const m=["{"];for(const[j,z]of d)m.length>1&&m.push(","),m.push(j),(j!==z||this.opts.es5)&&(m.push(":"),(0,t.addCodeArg)(m,z));return m.push("}"),new t._Code(m)}if(d,m,j){if(this._blockNode(new h(d)),m&&j)this.code(m).else().code(j).endIf();else if(m)this.code(m).endIf();else if(j)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(d){return this._elseNode(new h(d))}else(){return this._elseNode(new y)}endIf(){return this._endBlockNode(h,y)}_for(d,m){return this._blockNode(d),m&&this.code(m).endFor(),this}for(d,m){return this._for(new k(d),m)}forRange(d,m,j,z,Z=this.opts.es5?r.varKinds.var:r.varKinds.let){const oe=this._scope.toName(d);return this._for(new T(Z,oe,m,j),()=>z(oe))}forOf(d,m,j,z=r.varKinds.const){const Z=this._scope.toName(d);if(this.opts.es5){const oe=m instanceof t.Name?m:this.var("_arr",m);return this.forRange("_i",0,(0,t._)`${oe}.length`,se=>{this.var(Z,(0,t._)`${oe}[${se}]`),j(Z)})}return this._for(new p("of",z,Z,m),()=>j(Z))}forIn(d,m,j,z=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(d,(0,t._)`Object.keys(${m})`,j);const Z=this._scope.toName(d);return this._for(new p("in",z,Z,m),()=>j(Z))}endFor(){return this._endBlockNode(w)}label(d){return this._leafNode(new c(d))}break(d){return this._leafNode(new l(d))}return(d){const m=new A;if(this._blockNode(m),this.code(d),m.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(A)}try(d,m,j){if(!m&&!j)throw new Error('CodeGen: "try" without "catch" and "finally"');const z=new G;if(this._blockNode(z),this.code(d),m){const Z=this.name("e");this._currNode=z.catch=new K(Z),m(Z)}return j&&(this._currNode=z.finally=new we,this.code(j)),this._endBlockNode(K,we)}throw(d){return this._leafNode(new f(d))}block(d,m){return this._blockStarts.push(this._nodes.length),d&&this.code(d).endBlock(m),this}endBlock(d){const m=this._blockStarts.pop();if(m===void 0)throw new Error("CodeGen: not in self-balancing block");const j=this._nodes.length-m;if(j<0||d!==void 0&&j!==d)throw new Error(`CodeGen: wrong number of nodes: ${j} vs ${d} expected`);return this._nodes.length=m,this}func(d,m=t.nil,j,z){return this._blockNode(new x(d,m,j)),z&&this.code(z).endFunc(),this}endFunc(){return this._endBlockNode(x)}optimize(d=1){for(;d-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(d){return this._currNode.nodes.push(d),this}_blockNode(d){this._currNode.nodes.push(d),this._nodes.push(d)}_endBlockNode(d,m){const j=this._currNode;if(j instanceof d||m&&j instanceof m)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${m?`${d.kind}/${m.kind}`:d.kind}"`)}_elseNode(d){const m=this._currNode;if(!(m instanceof h))throw new Error('CodeGen: "else" without "if"');return this._currNode=m.else=d,this}get _root(){return this._nodes[0]}get _currNode(){const d=this._nodes;return d[d.length-1]}set _currNode(d){const m=this._nodes;m[m.length-1]=d}}e.CodeGen=xe;function ke(E,d){for(const m in d)E[m]=(E[m]||0)+(d[m]||0);return E}function ge(E,d){return d instanceof t._CodeOrName?ke(E,d.names):E}function Se(E,d,m){if(E instanceof t.Name)return j(E);if(!z(E))return E;return new t._Code(E._items.reduce((Z,oe)=>(oe instanceof t.Name&&(oe=j(oe)),oe instanceof t._Code?Z.push(...oe._items):Z.push(oe),Z),[]));function j(Z){const oe=m[Z.str];return oe===void 0||d[Z.str]!==1?Z:(delete d[Z.str],oe)}function z(Z){return Z instanceof t._Code&&Z._items.some(oe=>oe instanceof t.Name&&d[oe.str]===1&&m[oe.str]!==void 0)}}function Fe(E,d){for(const m in d)E[m]=(E[m]||0)-(d[m]||0)}function Ve(E){return typeof E=="boolean"||typeof E=="number"||E===null?!E:(0,t._)`!${O(E)}`}e.not=Ve;const lt=v(e.operators.AND);function Le(...E){return E.reduce(lt)}e.and=Le;const L=v(e.operators.OR);function C(...E){return E.reduce(L)}e.or=C;function v(E){return(d,m)=>d===t.nil?m:m===t.nil?d:(0,t._)`${O(d)} ${E} ${O(m)}`}function O(E){return E instanceof t.Name?E:(0,t._)`(${E})`}})(ae);var F={};Object.defineProperty(F,"__esModule",{value:!0});F.checkStrictMode=F.getErrorPath=F.Type=F.useFunc=F.setEvaluated=F.evaluatedPropsToName=F.mergeEvaluated=F.eachItem=F.unescapeJsonPointer=F.escapeJsonPointer=F.escapeFragment=F.unescapeFragment=F.schemaRefOrVal=F.schemaHasRulesButRef=F.schemaHasRules=F.checkUnknownRules=F.alwaysValidSchema=F.toHash=void 0;const fe=ae,xv=hn;function kv(e){const t={};for(const r of e)t[r]=!0;return t}F.toHash=kv;function Cv(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(Ic(e,t),!Ac(t,e.self.RULES.all))}F.alwaysValidSchema=Cv;function Ic(e,t=e.schema){const{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;const a=n.RULES.keywords;for(const s in t)a[s]||Dc(e,`unknown keyword: "${s}"`)}F.checkUnknownRules=Ic;function Ac(e,t){if(typeof e=="boolean")return!e;for(const r in e)if(t[r])return!0;return!1}F.schemaHasRules=Ac;function Nv(e,t){if(typeof e=="boolean")return!e;for(const r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}F.schemaHasRulesButRef=Nv;function Iv({topSchemaRef:e,schemaPath:t},r,n,a){if(!a){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,fe._)`${r}`}return(0,fe._)`${e}${t}${(0,fe.getProperty)(n)}`}F.schemaRefOrVal=Iv;function Av(e){return Rc(decodeURIComponent(e))}F.unescapeFragment=Av;function Rv(e){return encodeURIComponent(cs(e))}F.escapeFragment=Rv;function cs(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}F.escapeJsonPointer=cs;function Rc(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}F.unescapeJsonPointer=Rc;function Mv(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)}F.eachItem=Mv;function Xi({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(a,s,i,o)=>{const u=i===void 0?s:i instanceof fe.Name?(s instanceof fe.Name?e(a,s,i):t(a,s,i),i):s instanceof fe.Name?(t(a,i,s),s):r(s,i);return o===fe.Name&&!(u instanceof fe.Name)?n(a,u):u}}F.mergeEvaluated={props:Xi({mergeNames:(e,t,r)=>e.if((0,fe._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,fe._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,fe._)`${r} || {}`).code((0,fe._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,fe._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,fe._)`${r} || {}`),us(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:Mc}),items:Xi({mergeNames:(e,t,r)=>e.if((0,fe._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,fe._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,fe._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,fe._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function Mc(e,t){if(t===!0)return e.var("props",!0);const r=e.var("props",(0,fe._)`{}`);return t!==void 0&&us(e,r,t),r}F.evaluatedPropsToName=Mc;function us(e,t,r){Object.keys(r).forEach(n=>e.assign((0,fe._)`${t}${(0,fe.getProperty)(n)}`,!0))}F.setEvaluated=us;const Qi={};function Dv(e,t){return e.scopeValue("func",{ref:t,code:Qi[t.code]||(Qi[t.code]=new xv._Code(t.code))})}F.useFunc=Dv;var Ba;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Ba||(F.Type=Ba={}));function Fv(e,t,r){if(e instanceof fe.Name){const n=t===Ba.Num;return r?n?(0,fe._)`"[" + ${e} + "]"`:(0,fe._)`"['" + ${e} + "']"`:n?(0,fe._)`"/" + ${e}`:(0,fe._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,fe.getProperty)(e).toString():"/"+cs(e)}F.getErrorPath=Fv;function Dc(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}F.checkStrictMode=Dc;var dt={};Object.defineProperty(dt,"__esModule",{value:!0});const je=ae,Vv={data:new je.Name("data"),valCxt:new je.Name("valCxt"),instancePath:new je.Name("instancePath"),parentData:new je.Name("parentData"),parentDataProperty:new je.Name("parentDataProperty"),rootData:new je.Name("rootData"),dynamicAnchors:new je.Name("dynamicAnchors"),vErrors:new je.Name("vErrors"),errors:new je.Name("errors"),this:new je.Name("this"),self:new je.Name("self"),scope:new je.Name("scope"),json:new je.Name("json"),jsonPos:new je.Name("jsonPos"),jsonLen:new je.Name("jsonLen"),jsonPart:new je.Name("jsonPart")};dt.default=Vv;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=ae,r=F,n=dt;e.keywordError={message:({keyword:y})=>(0,t.str)`must pass "${y}" keyword validation`},e.keyword$DataError={message:({keyword:y,schemaType:h})=>h?(0,t.str)`"${y}" keyword must be ${h} ($data)`:(0,t.str)`"${y}" keyword is invalid ($data)`};function a(y,h=e.keywordError,w,k){const{it:T}=y,{gen:p,compositeRule:x,allErrors:A}=T,G=f(y,h,w);k??(x||A)?u(p,G):c(T,(0,t._)`[${G}]`)}e.reportError=a;function s(y,h=e.keywordError,w){const{it:k}=y,{gen:T,compositeRule:p,allErrors:x}=k,A=f(y,h,w);u(T,A),p||x||c(k,n.default.vErrors)}e.reportExtraError=s;function i(y,h){y.assign(n.default.errors,h),y.if((0,t._)`${n.default.vErrors} !== null`,()=>y.if(h,()=>y.assign((0,t._)`${n.default.vErrors}.length`,h),()=>y.assign(n.default.vErrors,null)))}e.resetErrorsCount=i;function o({gen:y,keyword:h,schemaValue:w,data:k,errsCount:T,it:p}){if(T===void 0)throw new Error("ajv implementation error");const x=y.name("err");y.forRange("i",T,n.default.errors,A=>{y.const(x,(0,t._)`${n.default.vErrors}[${A}]`),y.if((0,t._)`${x}.instancePath === undefined`,()=>y.assign((0,t._)`${x}.instancePath`,(0,t.strConcat)(n.default.instancePath,p.errorPath))),y.assign((0,t._)`${x}.schemaPath`,(0,t.str)`${p.errSchemaPath}/${h}`),p.opts.verbose&&(y.assign((0,t._)`${x}.schema`,w),y.assign((0,t._)`${x}.data`,k))})}e.extendErrors=o;function u(y,h){const w=y.const("err",h);y.if((0,t._)`${n.default.vErrors} === null`,()=>y.assign(n.default.vErrors,(0,t._)`[${w}]`),(0,t._)`${n.default.vErrors}.push(${w})`),y.code((0,t._)`${n.default.errors}++`)}function c(y,h){const{gen:w,validateName:k,schemaEnv:T}=y;T.$async?w.throw((0,t._)`new ${y.ValidationError}(${h})`):(w.assign((0,t._)`${k}.errors`,h),w.return(!1))}const l={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function f(y,h,w){const{createErrors:k}=y.it;return k===!1?(0,t._)`{}`:g(y,h,w)}function g(y,h,w={}){const{gen:k,it:T}=y,p=[S(T,w),$(y,w)];return b(y,h,p),k.object(...p)}function S({errorPath:y},{instancePath:h}){const w=h?(0,t.str)`${y}${(0,r.getErrorPath)(h,r.Type.Str)}`:y;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,w)]}function $({keyword:y,it:{errSchemaPath:h}},{schemaPath:w,parentSchema:k}){let T=k?h:(0,t.str)`${h}/${y}`;return w&&(T=(0,t.str)`${T}${(0,r.getErrorPath)(w,r.Type.Str)}`),[l.schemaPath,T]}function b(y,{params:h,message:w},k){const{keyword:T,data:p,schemaValue:x,it:A}=y,{opts:G,propertyName:K,topSchemaRef:we,schemaPath:xe}=A;k.push([l.keyword,T],[l.params,typeof h=="function"?h(y):h||(0,t._)`{}`]),G.messages&&k.push([l.message,typeof w=="function"?w(y):w]),G.verbose&&k.push([l.schema,x],[l.parentSchema,(0,t._)`${we}${xe}`],[n.default.data,p]),K&&k.push([l.propertyName,K])}})(_n);Object.defineProperty(vr,"__esModule",{value:!0});vr.boolOrEmptySchema=vr.topBoolOrEmptySchema=void 0;const Lv=_n,zv=ae,Uv=dt,qv={message:"boolean schema is false"};function Bv(e){const{gen:t,schema:r,validateName:n}=e;r===!1?Fc(e,!1):typeof r=="object"&&r.$async===!0?t.return(Uv.default.data):(t.assign((0,zv._)`${n}.errors`,null),t.return(!0))}vr.topBoolOrEmptySchema=Bv;function Zv(e,t){const{gen:r,schema:n}=e;n===!1?(r.var(t,!1),Fc(e)):r.var(t,!0)}vr.boolOrEmptySchema=Zv;function Fc(e,t){const{gen:r,data:n}=e,a={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,Lv.reportError)(a,qv,void 0,t)}var be={},Jt={};Object.defineProperty(Jt,"__esModule",{value:!0});Jt.getRules=Jt.isJSONType=void 0;const Wv=["string","number","integer","boolean","null","object","array"],Hv=new Set(Wv);function Gv(e){return typeof e=="string"&&Hv.has(e)}Jt.isJSONType=Gv;function Kv(){const 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:{}}}Jt.getRules=Kv;var pt={};Object.defineProperty(pt,"__esModule",{value:!0});pt.shouldUseRule=pt.shouldUseGroup=pt.schemaHasRulesForType=void 0;function Yv({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==!0&&Vc(e,n)}pt.schemaHasRulesForType=Yv;function Vc(e,t){return t.rules.some(r=>Lc(e,r))}pt.shouldUseGroup=Vc;function Lc(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}pt.shouldUseRule=Lc;Object.defineProperty(be,"__esModule",{value:!0});be.reportTypeError=be.checkDataTypes=be.checkDataType=be.coerceAndCheckDataType=be.getJSONTypes=be.getSchemaTypes=be.DataType=void 0;const Jv=Jt,Xv=pt,Qv=_n,te=ae,zc=F;var hr;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(hr||(be.DataType=hr={}));function e$(e){const t=Uc(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}be.getSchemaTypes=e$;function Uc(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(Jv.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}be.getJSONTypes=Uc;function t$(e,t){const{gen:r,data:n,opts:a}=e,s=r$(t,a.coerceTypes),i=t.length>0&&!(s.length===0&&t.length===1&&(0,Xv.schemaHasRulesForType)(e,t[0]));if(i){const o=ds(t,n,a.strictNumbers,hr.Wrong);r.if(o,()=>{s.length?n$(e,t,s):ls(e)})}return i}be.coerceAndCheckDataType=t$;const qc=new Set(["string","number","integer","boolean","null"]);function r$(e,t){return t?e.filter(r=>qc.has(r)||t==="array"&&r==="array"):[]}function n$(e,t,r){const{gen:n,data:a,opts:s}=e,i=n.let("dataType",(0,te._)`typeof ${a}`),o=n.let("coerced",(0,te._)`undefined`);s.coerceTypes==="array"&&n.if((0,te._)`${i} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,()=>n.assign(a,(0,te._)`${a}[0]`).assign(i,(0,te._)`typeof ${a}`).if(ds(t,a,s.strictNumbers),()=>n.assign(o,a))),n.if((0,te._)`${o} !== undefined`);for(const c of r)(qc.has(c)||c==="array"&&s.coerceTypes==="array")&&u(c);n.else(),ls(e),n.endIf(),n.if((0,te._)`${o} !== undefined`,()=>{n.assign(a,o),a$(e,o)});function u(c){switch(c){case"string":n.elseIf((0,te._)`${i} == "number" || ${i} == "boolean"`).assign(o,(0,te._)`"" + ${a}`).elseIf((0,te._)`${a} === null`).assign(o,(0,te._)`""`);return;case"number":n.elseIf((0,te._)`${i} == "boolean" || ${a} === null
|
|
19
19
|
|| (${i} == "string" && ${a} && ${a} == +${a})`).assign(o,(0,te._)`+${a}`);return;case"integer":n.elseIf((0,te._)`${i} === "boolean" || ${a} === null
|
|
20
20
|
|| (${i} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(o,(0,te._)`+${a}`);return;case"boolean":n.elseIf((0,te._)`${a} === "false" || ${a} === 0 || ${a} === null`).assign(o,!1).elseIf((0,te._)`${a} === "true" || ${a} === 1`).assign(o,!0);return;case"null":n.elseIf((0,te._)`${a} === "" || ${a} === 0 || ${a} === false`),n.assign(o,null);return;case"array":n.elseIf((0,te._)`${i} === "string" || ${i} === "number"
|
|
21
|
-
|| ${i} === "boolean" || ${a} === null`).assign(o,(0,te._)`[${a}]`)}}}function n$({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,te._)`${t} !== undefined`,()=>e.assign((0,te._)`${t}[${r}]`,n))}function Za(e,t,r,n=hr.Correct){const a=n===hr.Correct?te.operators.EQ:te.operators.NEQ;let s;switch(e){case"null":return(0,te._)`${t} ${a} null`;case"array":s=(0,te._)`Array.isArray(${t})`;break;case"object":s=(0,te._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=i((0,te._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=i();break;default:return(0,te._)`typeof ${t} ${a} ${e}`}return n===hr.Correct?s:(0,te.not)(s);function i(o=te.nil){return(0,te.and)((0,te._)`typeof ${t} == "number"`,o,r?(0,te._)`isFinite(${t})`:te.nil)}}be.checkDataType=Za;function ds(e,t,r,n){if(e.length===1)return Za(e[0],t,r,n);let a;const s=(0,Lc.toHash)(e);if(s.array&&s.object){const i=(0,te._)`typeof ${t} != "object"`;a=s.null?i:(0,te._)`!${t} || ${i}`,delete s.null,delete s.array,delete s.object}else a=te.nil;s.number&&delete s.integer;for(const i in s)a=(0,te.and)(a,Za(i,t,r,n));return a}be.checkDataTypes=ds;const a$={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,te._)`{type: ${e}}`:(0,te._)`{type: ${t}}`};function ls(e){const t=s$(e);(0,Xv.reportError)(t,a$)}be.reportTypeError=ls;function s$(e){const{gen:t,data:r,schema:n}=e,a=(0,Lc.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:a,schemaValue:a,parentSchema:n,params:{},it:e}}var oa={};Object.defineProperty(oa,"__esModule",{value:!0});oa.assignDefaults=void 0;const ir=ae,i$=F;function o$(e,t){const{properties:r,items:n}=e.schema;if(t==="object"&&r)for(const a in r)Qi(e,a,r[a].default);else t==="array"&&Array.isArray(n)&&n.forEach((a,s)=>Qi(e,s,a.default))}oa.assignDefaults=o$;function Qi(e,t,r){const{gen:n,compositeRule:a,data:s,opts:i}=e;if(r===void 0)return;const o=(0,ir._)`${s}${(0,ir.getProperty)(t)}`;if(a){(0,i$.checkStrictMode)(e,`default is ignored for: ${o}`);return}let u=(0,ir._)`${o} === undefined`;i.useDefaults==="empty"&&(u=(0,ir._)`${u} || ${o} === null || ${o} === ""`),n.if(u,(0,ir._)`${o} = ${(0,ir.stringify)(r)}`)}var at={},ne={};Object.defineProperty(ne,"__esModule",{value:!0});ne.validateUnion=ne.validateArray=ne.usePattern=ne.callValidateCode=ne.schemaProperties=ne.allSchemaProperties=ne.noPropertyInData=ne.propertyInData=ne.isOwnProperty=ne.hasPropFunc=ne.reportMissingProp=ne.checkMissingProp=ne.checkReportMissingProp=void 0;const pe=ae,fs=F,Tt=dt,c$=F;function u$(e,t){const{gen:r,data:n,it:a}=e;r.if(ms(r,n,t,a.opts.ownProperties),()=>{e.setParams({missingProperty:(0,pe._)`${t}`},!0),e.error()})}ne.checkReportMissingProp=u$;function d$({gen:e,data:t,it:{opts:r}},n,a){return(0,pe.or)(...n.map(s=>(0,pe.and)(ms(e,t,s,r.ownProperties),(0,pe._)`${a} = ${s}`)))}ne.checkMissingProp=d$;function l$(e,t){e.setParams({missingProperty:t},!0),e.error()}ne.reportMissingProp=l$;function qc(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,pe._)`Object.prototype.hasOwnProperty`})}ne.hasPropFunc=qc;function hs(e,t,r){return(0,pe._)`${qc(e)}.call(${t}, ${r})`}ne.isOwnProperty=hs;function f$(e,t,r,n){const a=(0,pe._)`${t}${(0,pe.getProperty)(r)} !== undefined`;return n?(0,pe._)`${a} && ${hs(e,t,r)}`:a}ne.propertyInData=f$;function ms(e,t,r,n){const a=(0,pe._)`${t}${(0,pe.getProperty)(r)} === undefined`;return n?(0,pe.or)(a,(0,pe.not)(hs(e,t,r))):a}ne.noPropertyInData=ms;function Bc(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}ne.allSchemaProperties=Bc;function h$(e,t){return Bc(t).filter(r=>!(0,fs.alwaysValidSchema)(e,t[r]))}ne.schemaProperties=h$;function m$({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:a,errorPath:s},it:i},o,u,c){const l=c?(0,pe._)`${e}, ${t}, ${n}${a}`:t,f=[[Tt.default.instancePath,(0,pe.strConcat)(Tt.default.instancePath,s)],[Tt.default.parentData,i.parentData],[Tt.default.parentDataProperty,i.parentDataProperty],[Tt.default.rootData,Tt.default.rootData]];i.opts.dynamicRef&&f.push([Tt.default.dynamicAnchors,Tt.default.dynamicAnchors]);const g=(0,pe._)`${l}, ${r.object(...f)}`;return u!==pe.nil?(0,pe._)`${o}.call(${u}, ${g})`:(0,pe._)`${o}(${g})`}ne.callValidateCode=m$;const p$=(0,pe._)`new RegExp`;function y$({gen:e,it:{opts:t}},r){const n=t.unicodeRegExp?"u":"",{regExp:a}=t.code,s=a(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,pe._)`${a.code==="new RegExp"?p$:(0,c$.useFunc)(e,a)}(${r}, ${n})`})}ne.usePattern=y$;function _$(e){const{gen:t,data:r,keyword:n,it:a}=e,s=t.name("valid");if(a.allErrors){const o=t.let("valid",!0);return i(()=>t.assign(o,!1)),o}return t.var(s,!0),i(()=>t.break()),s;function i(o){const u=t.const("len",(0,pe._)`${r}.length`);t.forRange("i",0,u,c=>{e.subschema({keyword:n,dataProp:c,dataPropType:fs.Type.Num},s),t.if((0,pe.not)(s),o)})}}ne.validateArray=_$;function g$(e){const{gen:t,schema:r,keyword:n,it:a}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(u=>(0,fs.alwaysValidSchema)(a,u))&&!a.opts.unevaluated)return;const i=t.let("valid",!1),o=t.name("_valid");t.block(()=>r.forEach((u,c)=>{const l=e.subschema({keyword:n,schemaProp:c,compositeRule:!0},o);t.assign(i,(0,pe._)`${i} || ${o}`),e.mergeValidEvaluated(l,o)||t.if((0,pe.not)(i))})),e.result(i,()=>e.reset(),()=>e.error(!0))}ne.validateUnion=g$;Object.defineProperty(at,"__esModule",{value:!0});at.validateKeywordUsage=at.validSchemaType=at.funcKeywordCode=at.macroKeywordCode=void 0;const Ce=ae,zt=dt,v$=ne,$$=_n;function b$(e,t){const{gen:r,keyword:n,schema:a,parentSchema:s,it:i}=e,o=t.macro.call(i.self,a,s,i),u=Zc(r,n,o);i.opts.validateSchema!==!1&&i.self.validateSchema(o,!0);const c=r.name("valid");e.subschema({schema:o,schemaPath:Ce.nil,errSchemaPath:`${i.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},c),e.pass(c,()=>e.error(!0))}at.macroKeywordCode=b$;function w$(e,t){var r;const{gen:n,keyword:a,schema:s,parentSchema:i,$data:o,it:u}=e;E$(u,t);const c=!o&&t.compile?t.compile.call(u.self,s,i,u):t.validate,l=Zc(n,a,c),f=n.let("valid");e.block$data(f,g),e.ok((r=t.valid)!==null&&r!==void 0?r:f);function g(){if(t.errors===!1)b(),t.modifying&&eo(e),y(()=>e.error());else{const h=t.async?S():$();t.modifying&&eo(e),y(()=>S$(e,h))}}function S(){const h=n.let("ruleErrs",null);return n.try(()=>b((0,Ce._)`await `),w=>n.assign(f,!1).if((0,Ce._)`${w} instanceof ${u.ValidationError}`,()=>n.assign(h,(0,Ce._)`${w}.errors`),()=>n.throw(w))),h}function $(){const h=(0,Ce._)`${l}.errors`;return n.assign(h,null),b(Ce.nil),h}function b(h=t.async?(0,Ce._)`await `:Ce.nil){const w=u.opts.passContext?zt.default.this:zt.default.self,k=!("compile"in t&&!o||t.schema===!1);n.assign(f,(0,Ce._)`${h}${(0,v$.callValidateCode)(e,l,w,k)}`,t.modifying)}function y(h){var w;n.if((0,Ce.not)((w=t.valid)!==null&&w!==void 0?w:f),h)}}at.funcKeywordCode=w$;function eo(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Ce._)`${n.parentData}[${n.parentDataProperty}]`))}function S$(e,t){const{gen:r}=e;r.if((0,Ce._)`Array.isArray(${t})`,()=>{r.assign(zt.default.vErrors,(0,Ce._)`${zt.default.vErrors} === null ? ${t} : ${zt.default.vErrors}.concat(${t})`).assign(zt.default.errors,(0,Ce._)`${zt.default.vErrors}.length`),(0,$$.extendErrors)(e)},()=>e.error())}function E$({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function Zc(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,Ce.stringify)(r)})}function T$(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}at.validSchemaType=T$;function P$({schema:e,opts:t,self:r,errSchemaPath:n},a,s){if(Array.isArray(a.keyword)?!a.keyword.includes(s):a.keyword!==s)throw new Error("ajv implementation error");const i=a.dependencies;if(i!=null&&i.some(o=>!Object.prototype.hasOwnProperty.call(e,o)))throw new Error(`parent schema must have dependencies of ${s}: ${i.join(",")}`);if(a.validateSchema&&!a.validateSchema(e[s])){const u=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(a.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}at.validateKeywordUsage=P$;var Ot={};Object.defineProperty(Ot,"__esModule",{value:!0});Ot.extendSubschemaMode=Ot.extendSubschemaData=Ot.getSubschema=void 0;const rt=ae,Wc=F;function j$(e,{keyword:t,schemaProp:r,schema:n,schemaPath:a,errSchemaPath:s,topSchemaRef:i}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const o=e.schema[t];return r===void 0?{schema:o,schemaPath:(0,rt._)`${e.schemaPath}${(0,rt.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[r],schemaPath:(0,rt._)`${e.schemaPath}${(0,rt.getProperty)(t)}${(0,rt.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Wc.escapeFragment)(r)}`}}if(n!==void 0){if(a===void 0||s===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:a,topSchemaRef:i,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}Ot.getSubschema=j$;function O$(e,t,{dataProp:r,dataPropType:n,data:a,dataTypes:s,propertyName:i}){if(a!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:o}=t;if(r!==void 0){const{errorPath:c,dataPathArr:l,opts:f}=t,g=o.let("data",(0,rt._)`${t.data}${(0,rt.getProperty)(r)}`,!0);u(g),e.errorPath=(0,rt.str)`${c}${(0,Wc.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,rt._)`${r}`,e.dataPathArr=[...l,e.parentDataProperty]}if(a!==void 0){const c=a instanceof rt.Name?a:o.let("data",a,!0);u(c),i!==void 0&&(e.propertyName=i)}s&&(e.dataTypes=s);function u(c){e.data=c,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,c]}}Ot.extendSubschemaData=O$;function x$(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:a,allErrors:s}){n!==void 0&&(e.compositeRule=n),a!==void 0&&(e.createErrors=a),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}Ot.extendSubschemaMode=x$;var Pe={},Hc=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 n,a,s;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(a=n;a--!==0;)if(!e(t[a],r[a]))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(s=Object.keys(t),n=s.length,n!==Object.keys(r).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[a]))return!1;for(a=n;a--!==0;){var i=s[a];if(!e(t[i],r[i]))return!1}return!0}return t!==t&&r!==r},Gc={exports:{}},jt=Gc.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},a=r.post||function(){};In(t,n,a,e,"",e)};jt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};jt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};jt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};jt.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 In(e,t,r,n,a,s,i,o,u,c){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,a,s,i,o,u,c);for(var l in n){var f=n[l];if(Array.isArray(f)){if(l in jt.arrayKeywords)for(var g=0;g<f.length;g++)In(e,t,r,f[g],a+"/"+l+"/"+g,s,a,l,n,g)}else if(l in jt.propsKeywords){if(f&&typeof f=="object")for(var S in f)In(e,t,r,f[S],a+"/"+l+"/"+k$(S),s,a,l,n,S)}else(l in jt.keywords||e.allKeys&&!(l in jt.skipKeywords))&&In(e,t,r,f,a+"/"+l,s,a,l,n)}r(n,a,s,i,o,u,c)}}function k$(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}var C$=Gc.exports;Object.defineProperty(Pe,"__esModule",{value:!0});Pe.getSchemaRefs=Pe.resolveUrl=Pe.normalizeId=Pe._getFullPath=Pe.getFullPath=Pe.inlineRef=void 0;const N$=F,I$=Hc,A$=C$,R$=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function M$(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Wa(e):t?Kc(e)<=t:!1}Pe.inlineRef=M$;const D$=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Wa(e){for(const t in e){if(D$.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(Wa)||typeof r=="object"&&Wa(r))return!0}return!1}function Kc(e){let t=0;for(const r in e){if(r==="$ref")return 1/0;if(t++,!R$.has(r)&&(typeof e[r]=="object"&&(0,N$.eachItem)(e[r],n=>t+=Kc(n)),t===1/0))return 1/0}return t}function Yc(e,t="",r){r!==!1&&(t=mr(t));const n=e.parse(t);return Jc(e,n)}Pe.getFullPath=Yc;function Jc(e,t){return e.serialize(t).split("#")[0]+"#"}Pe._getFullPath=Jc;const F$=/#\/?$/;function mr(e){return e?e.replace(F$,""):""}Pe.normalizeId=mr;function V$(e,t,r){return r=mr(r),e.resolve(t,r)}Pe.resolveUrl=V$;const L$=/^[a-z_][-a-z0-9._]*$/i;function z$(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts,a=mr(e[r]||t),s={"":a},i=Yc(n,a,!1),o={},u=new Set;return A$(e,{allKeys:!0},(f,g,S,$)=>{if($===void 0)return;const b=i+g;let y=s[$];typeof f[r]=="string"&&(y=h.call(this,f[r])),w.call(this,f.$anchor),w.call(this,f.$dynamicAnchor),s[g]=y;function h(k){const T=this.opts.uriResolver.resolve;if(k=mr(y?T(y,k):k),u.has(k))throw l(k);u.add(k);let p=this.refs[k];return typeof p=="string"&&(p=this.refs[p]),typeof p=="object"?c(f,p.schema,k):k!==mr(b)&&(k[0]==="#"?(c(f,o[k],k),o[k]=f):this.refs[k]=b),k}function w(k){if(typeof k=="string"){if(!L$.test(k))throw new Error(`invalid anchor "${k}"`);h.call(this,`#${k}`)}}}),o;function c(f,g,S){if(g!==void 0&&!I$(f,g))throw l(S)}function l(f){return new Error(`reference "${f}" resolves to more than one schema`)}}Pe.getSchemaRefs=z$;Object.defineProperty(Ke,"__esModule",{value:!0});Ke.getData=Ke.KeywordCxt=Ke.validateFunctionCode=void 0;const Xc=vr,to=be,ps=pt,Gn=be,U$=oa,qr=at,Ta=Ot,W=ae,X=dt,q$=Pe,yt=F,Rr=_n;function B$(e){if(tu(e)&&(ru(e),eu(e))){H$(e);return}Qc(e,()=>(0,Xc.topBoolOrEmptySchema)(e))}Ke.validateFunctionCode=B$;function Qc({gen:e,validateName:t,schema:r,schemaEnv:n,opts:a},s){a.code.es5?e.func(t,(0,W._)`${X.default.data}, ${X.default.valCxt}`,n.$async,()=>{e.code((0,W._)`"use strict"; ${ro(r,a)}`),W$(e,a),e.code(s)}):e.func(t,(0,W._)`${X.default.data}, ${Z$(a)}`,n.$async,()=>e.code(ro(r,a)).code(s))}function Z$(e){return(0,W._)`{${X.default.instancePath}="", ${X.default.parentData}, ${X.default.parentDataProperty}, ${X.default.rootData}=${X.default.data}${e.dynamicRef?(0,W._)`, ${X.default.dynamicAnchors}={}`:W.nil}}={}`}function W$(e,t){e.if(X.default.valCxt,()=>{e.var(X.default.instancePath,(0,W._)`${X.default.valCxt}.${X.default.instancePath}`),e.var(X.default.parentData,(0,W._)`${X.default.valCxt}.${X.default.parentData}`),e.var(X.default.parentDataProperty,(0,W._)`${X.default.valCxt}.${X.default.parentDataProperty}`),e.var(X.default.rootData,(0,W._)`${X.default.valCxt}.${X.default.rootData}`),t.dynamicRef&&e.var(X.default.dynamicAnchors,(0,W._)`${X.default.valCxt}.${X.default.dynamicAnchors}`)},()=>{e.var(X.default.instancePath,(0,W._)`""`),e.var(X.default.parentData,(0,W._)`undefined`),e.var(X.default.parentDataProperty,(0,W._)`undefined`),e.var(X.default.rootData,X.default.data),t.dynamicRef&&e.var(X.default.dynamicAnchors,(0,W._)`{}`)})}function H$(e){const{schema:t,opts:r,gen:n}=e;Qc(e,()=>{r.$comment&&t.$comment&&au(e),X$(e),n.let(X.default.vErrors,null),n.let(X.default.errors,0),r.unevaluated&&G$(e),nu(e),tb(e)})}function G$(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,W._)`${r}.evaluated`),t.if((0,W._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,W._)`${e.evaluated}.props`,(0,W._)`undefined`)),t.if((0,W._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,W._)`${e.evaluated}.items`,(0,W._)`undefined`))}function ro(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,W._)`/*# sourceURL=${r} */`:W.nil}function K$(e,t){if(tu(e)&&(ru(e),eu(e))){Y$(e,t);return}(0,Xc.boolOrEmptySchema)(e,t)}function eu({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function tu(e){return typeof e.schema!="boolean"}function Y$(e,t){const{schema:r,gen:n,opts:a}=e;a.$comment&&r.$comment&&au(e),Q$(e),eb(e);const s=n.const("_errs",X.default.errors);nu(e,s),n.var(t,(0,W._)`${s} === ${X.default.errors}`)}function ru(e){(0,yt.checkUnknownRules)(e),J$(e)}function nu(e,t){if(e.opts.jtd)return no(e,[],!1,t);const r=(0,to.getSchemaTypes)(e.schema),n=(0,to.coerceAndCheckDataType)(e,r);no(e,r,!n,t)}function J$(e){const{schema:t,errSchemaPath:r,opts:n,self:a}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,yt.schemaHasRulesButRef)(t,a.RULES)&&a.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function X$(e){const{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,yt.checkStrictMode)(e,"default is ignored in the schema root")}function Q$(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,q$.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function eb(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function au({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:a}){const s=r.$comment;if(a.$comment===!0)e.code((0,W._)`${X.default.self}.logger.log(${s})`);else if(typeof a.$comment=="function"){const i=(0,W.str)`${n}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code((0,W._)`${X.default.self}.opts.$comment(${s}, ${i}, ${o}.schema)`)}}function tb(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:a,opts:s}=e;r.$async?t.if((0,W._)`${X.default.errors} === 0`,()=>t.return(X.default.data),()=>t.throw((0,W._)`new ${a}(${X.default.vErrors})`)):(t.assign((0,W._)`${n}.errors`,X.default.vErrors),s.unevaluated&&rb(e),t.return((0,W._)`${X.default.errors} === 0`))}function rb({gen:e,evaluated:t,props:r,items:n}){r instanceof W.Name&&e.assign((0,W._)`${t}.props`,r),n instanceof W.Name&&e.assign((0,W._)`${t}.items`,n)}function no(e,t,r,n){const{gen:a,schema:s,data:i,allErrors:o,opts:u,self:c}=e,{RULES:l}=c;if(s.$ref&&(u.ignoreKeywordsWithRef||!(0,yt.schemaHasRulesButRef)(s,l))){a.block(()=>ou(e,"$ref",l.all.$ref.definition));return}u.jtd||nb(e,t),a.block(()=>{for(const g of l.rules)f(g);f(l.post)});function f(g){(0,ps.shouldUseGroup)(s,g)&&(g.type?(a.if((0,Gn.checkDataType)(g.type,i,u.strictNumbers)),ao(e,g),t.length===1&&t[0]===g.type&&r&&(a.else(),(0,Gn.reportTypeError)(e)),a.endIf()):ao(e,g),o||a.if((0,W._)`${X.default.errors} === ${n||0}`))}}function ao(e,t){const{gen:r,schema:n,opts:{useDefaults:a}}=e;a&&(0,U$.assignDefaults)(e,t.type),r.block(()=>{for(const s of t.rules)(0,ps.shouldUseRule)(n,s)&&ou(e,s.keyword,s.definition,t.type)})}function nb(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(ab(e,t),e.opts.allowUnionTypes||sb(e,t),ib(e,e.dataTypes))}function ab(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{su(e.dataTypes,r)||ys(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),cb(e,t)}}function sb(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&ys(e,"use allowUnionTypes to allow union type keyword")}function ib(e,t){const r=e.self.RULES.all;for(const n in r){const a=r[n];if(typeof a=="object"&&(0,ps.shouldUseRule)(e.schema,a)){const{type:s}=a.definition;s.length&&!s.some(i=>ob(t,i))&&ys(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}function ob(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function su(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function cb(e,t){const r=[];for(const n of e.dataTypes)su(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function ys(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,yt.checkStrictMode)(e,t,e.opts.strictTypes)}class iu{constructor(t,r,n){if((0,qr.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,yt.schemaRefOrVal)(t,this.schema,n,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",cu(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,qr.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",X.default.errors))}result(t,r,n){this.failResult((0,W.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():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,W.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);const{schemaCode:r}=this;this.fail((0,W._)`${r} !== undefined && (${(0,W.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?Rr.reportExtraError:Rr.reportError)(this,this.def.error,r)}$dataError(){(0,Rr.reportError)(this,this.def.$dataError||Rr.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Rr.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,n=W.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=W.nil,r=W.nil){if(!this.$data)return;const{gen:n,schemaCode:a,schemaType:s,def:i}=this;n.if((0,W.or)((0,W._)`${a} === undefined`,r)),t!==W.nil&&n.assign(t,!0),(s.length||i.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==W.nil&&n.assign(t,!1)),n.else()}invalid$data(){const{gen:t,schemaCode:r,schemaType:n,def:a,it:s}=this;return(0,W.or)(i(),o());function i(){if(n.length){if(!(r instanceof W.Name))throw new Error("ajv implementation error");const u=Array.isArray(n)?n:[n];return(0,W._)`${(0,Gn.checkDataTypes)(u,r,s.opts.strictNumbers,Gn.DataType.Wrong)}`}return W.nil}function o(){if(a.validateSchema){const u=t.scopeValue("validate$data",{ref:a.validateSchema});return(0,W._)`!${u}(${r})`}return W.nil}}subschema(t,r){const n=(0,Ta.getSubschema)(this.it,t);(0,Ta.extendSubschemaData)(n,this.it,t),(0,Ta.extendSubschemaMode)(n,t);const a={...this.it,...n,items:void 0,props:void 0};return K$(a,r),a}mergeEvaluated(t,r){const{it:n,gen:a}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=yt.mergeEvaluated.props(a,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=yt.mergeEvaluated.items(a,t.items,n.items,r)))}mergeValidEvaluated(t,r){const{it:n,gen:a}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return a.if(r,()=>this.mergeEvaluated(t,W.Name)),!0}}Ke.KeywordCxt=iu;function ou(e,t,r,n){const a=new iu(e,r,t);"code"in r?r.code(a,n):a.$data&&r.validate?(0,qr.funcKeywordCode)(a,r):"macro"in r?(0,qr.macroKeywordCode)(a,r):(r.compile||r.validate)&&(0,qr.funcKeywordCode)(a,r)}const ub=/^\/(?:[^~]|~0|~1)*$/,db=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function cu(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let a,s;if(e==="")return X.default.rootData;if(e[0]==="/"){if(!ub.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);a=e,s=X.default.rootData}else{const c=db.exec(e);if(!c)throw new Error(`Invalid JSON-pointer: ${e}`);const l=+c[1];if(a=c[2],a==="#"){if(l>=t)throw new Error(u("property/index",l));return n[t-l]}if(l>t)throw new Error(u("data",l));if(s=r[t-l],!a)return s}let i=s;const o=a.split("/");for(const c of o)c&&(s=(0,W._)`${s}${(0,W.getProperty)((0,yt.unescapeJsonPointer)(c))}`,i=(0,W._)`${i} && ${s}`);return i;function u(c,l){return`Cannot access ${c} ${l} levels up, current level is ${t}`}}Ke.getData=cu;var gn={};Object.defineProperty(gn,"__esModule",{value:!0});class lb extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}gn.default=lb;var wr={};Object.defineProperty(wr,"__esModule",{value:!0});const Pa=Pe;class fb extends Error{constructor(t,r,n,a){super(a||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Pa.resolveUrl)(t,r,n),this.missingSchema=(0,Pa.normalizeId)((0,Pa.getFullPath)(t,this.missingRef))}}wr.default=fb;var Ae={};Object.defineProperty(Ae,"__esModule",{value:!0});Ae.resolveSchema=Ae.getCompilingSchema=Ae.resolveRef=Ae.compileSchema=Ae.SchemaEnv=void 0;const qe=ae,hb=gn,Ft=dt,We=Pe,so=F,mb=Ke;class ca{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=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,We.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}}Ae.SchemaEnv=ca;function _s(e){const t=uu.call(this,e);if(t)return t;const r=(0,We.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:a}=this.opts.code,{ownProperties:s}=this.opts,i=new qe.CodeGen(this.scope,{es5:n,lines:a,ownProperties:s});let o;e.$async&&(o=i.scopeValue("Error",{ref:hb.default,code:(0,qe._)`require("ajv/dist/runtime/validation_error").default`}));const u=i.scopeName("validate");e.validateName=u;const c={gen:i,allErrors:this.opts.allErrors,data:Ft.default.data,parentData:Ft.default.parentData,parentDataProperty:Ft.default.parentDataProperty,dataNames:[Ft.default.data],dataPathArr:[qe.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,qe.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:o,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:qe.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,qe._)`""`,opts:this.opts,self:this};let l;try{this._compilations.add(e),(0,mb.validateFunctionCode)(c),i.optimize(this.opts.code.optimize);const f=i.toString();l=`${i.scopeRefs(Ft.default.scope)}return ${f}`,this.opts.code.process&&(l=this.opts.code.process(l,e));const S=new Function(`${Ft.default.self}`,`${Ft.default.scope}`,l)(this,this.scope.get());if(this.scope.value(u,{ref:S}),S.errors=null,S.schema=e.schema,S.schemaEnv=e,e.$async&&(S.$async=!0),this.opts.code.source===!0&&(S.source={validateName:u,validateCode:f,scopeValues:i._values}),this.opts.unevaluated){const{props:$,items:b}=c;S.evaluated={props:$ instanceof qe.Name?void 0:$,items:b instanceof qe.Name?void 0:b,dynamicProps:$ instanceof qe.Name,dynamicItems:b instanceof qe.Name},S.source&&(S.source.evaluated=(0,qe.stringify)(S.evaluated))}return e.validate=S,e}catch(f){throw delete e.validate,delete e.validateName,l&&this.logger.error("Error compiling schema, function code:",l),f}finally{this._compilations.delete(e)}}Ae.compileSchema=_s;function pb(e,t,r){var n;r=(0,We.resolveUrl)(this.opts.uriResolver,t,r);const a=e.refs[r];if(a)return a;let s=gb.call(this,e,r);if(s===void 0){const i=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:o}=this.opts;i&&(s=new ca({schema:i,schemaId:o,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=yb.call(this,s)}Ae.resolveRef=pb;function yb(e){return(0,We.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:_s.call(this,e)}function uu(e){for(const t of this._compilations)if(_b(t,e))return t}Ae.getCompilingSchema=uu;function _b(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function gb(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||ua.call(this,e,t)}function ua(e,t){const r=this.opts.uriResolver.parse(t),n=(0,We._getFullPath)(this.opts.uriResolver,r);let a=(0,We.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===a)return ja.call(this,r,e);const s=(0,We.normalizeId)(n),i=this.refs[s]||this.schemas[s];if(typeof i=="string"){const o=ua.call(this,e,i);return typeof(o==null?void 0:o.schema)!="object"?void 0:ja.call(this,r,o)}if(typeof(i==null?void 0:i.schema)=="object"){if(i.validate||_s.call(this,i),s===(0,We.normalizeId)(t)){const{schema:o}=i,{schemaId:u}=this.opts,c=o[u];return c&&(a=(0,We.resolveUrl)(this.opts.uriResolver,a,c)),new ca({schema:o,schemaId:u,root:e,baseId:a})}return ja.call(this,r,i)}}Ae.resolveSchema=ua;const vb=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function ja(e,{baseId:t,schema:r,root:n}){var a;if(((a=e.fragment)===null||a===void 0?void 0:a[0])!=="/")return;for(const o of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const u=r[(0,so.unescapeFragment)(o)];if(u===void 0)return;r=u;const c=typeof r=="object"&&r[this.opts.schemaId];!vb.has(o)&&c&&(t=(0,We.resolveUrl)(this.opts.uriResolver,t,c))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,so.schemaHasRulesButRef)(r,this.RULES)){const o=(0,We.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=ua.call(this,n,o)}const{schemaId:i}=this.opts;if(s=s||new ca({schema:r,schemaId:i,root:n,baseId:t}),s.schema!==s.root.schema)return s}const $b="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",bb="Meta-schema for $data reference (JSON AnySchema extension proposal)",wb="object",Sb=["$data"],Eb={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},Tb=!1,Pb={$id:$b,description:bb,type:wb,required:Sb,properties:Eb,additionalProperties:Tb};var gs={},da={exports:{}};const jb={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};var Ob={HEX:jb};const{HEX:xb}=Ob,kb=/^(?:(?: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 du(e){if(fu(e,".")<3)return{host:e,isIPV4:!1};const t=e.match(kb)||[],[r]=t;return r?{host:Nb(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}function io(e,t=!1){let r="",n=!0;for(const a of e){if(xb[a]===void 0)return;a!=="0"&&n===!0&&(n=!1),n||(r+=a)}return t&&r.length===0&&(r="0"),r}function Cb(e){let t=0;const r={error:!1,address:"",zone:""},n=[],a=[];let s=!1,i=!1,o=!1;function u(){if(a.length){if(s===!1){const c=io(a);if(c!==void 0)n.push(c);else return r.error=!0,!1}a.length=0}return!0}for(let c=0;c<e.length;c++){const l=e[c];if(!(l==="["||l==="]"))if(l===":"){if(i===!0&&(o=!0),!u())break;if(t++,n.push(":"),t>7){r.error=!0;break}c-1>=0&&e[c-1]===":"&&(i=!0);continue}else if(l==="%"){if(!u())break;s=!0}else{a.push(l);continue}}return a.length&&(s?r.zone=a.join(""):o?n.push(a.join("")):n.push(io(a))),r.address=n.join(""),r}function lu(e){if(fu(e,":")<2)return{host:e,isIPV6:!1};const t=Cb(e);if(t.error)return{host:e,isIPV6:!1};{let r=t.address,n=t.address;return t.zone&&(r+="%"+t.zone,n+="%25"+t.zone),{host:r,escapedHost:n,isIPV6:!0}}}function Nb(e,t){let r="",n=!0;const a=e.length;for(let s=0;s<a;s++){const i=e[s];i==="0"&&n?(s+1<=a&&e[s+1]===t||s+1===a)&&(r+=i,n=!1):(i===t?n=!0:n=!1,r+=i)}return r}function fu(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}const oo=/^\.\.?\//u,co=/^\/\.(?:\/|$)/u,uo=/^\/\.\.(?:\/|$)/u,Ib=/^\/?(?:.|\n)*?(?=\/|$)/u;function Ab(e){const t=[];for(;e.length;)if(e.match(oo))e=e.replace(oo,"");else if(e.match(co))e=e.replace(co,"/");else if(e.match(uo))e=e.replace(uo,"/"),t.pop();else if(e==="."||e==="..")e="";else{const r=e.match(Ib);if(r){const n=r[0];e=e.slice(n.length),t.push(n)}else throw new Error("Unexpected dot segment condition")}return t.join("")}function Rb(e,t){const 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 Mb(e){const t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push("@")),e.host!==void 0){let r=unescape(e.host);const n=du(r);if(n.isIPV4)r=n.host;else{const a=lu(n.host);a.isIPV6===!0?r=`[${a.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}var Db={recomposeAuthority:Mb,normalizeComponentEncoding:Rb,removeDotSegments:Ab,normalizeIPv4:du,normalizeIPv6:lu};const Fb=/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu,Vb=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function hu(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}function mu(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function pu(e){const t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function Lb(e){return e.secure=hu(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function zb(e){if((e.port===(hu(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){const[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 Ub(e,t){if(!e.path)return e.error="URN can not be parsed",e;const r=e.path.match(Vb);if(r){const n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];const a=`${n}:${t.nid||e.nid}`,s=vs[a];e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function qb(e,t){const r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),a=`${r}:${t.nid||n}`,s=vs[a];s&&(e=s.serialize(e,t));const i=e,o=e.nss;return i.path=`${n||t.nid}:${o}`,t.skipEscape=!0,i}function Bb(e,t){const r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!Fb.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function Zb(e){const t=e;return t.nss=(e.uuid||"").toLowerCase(),t}const yu={scheme:"http",domainHost:!0,parse:mu,serialize:pu},Wb={scheme:"https",domainHost:yu.domainHost,parse:mu,serialize:pu},An={scheme:"ws",domainHost:!0,parse:Lb,serialize:zb},Hb={scheme:"wss",domainHost:An.domainHost,parse:An.parse,serialize:An.serialize},Gb={scheme:"urn",parse:Ub,serialize:qb,skipNormalize:!0},Kb={scheme:"urn:uuid",parse:Bb,serialize:Zb,skipNormalize:!0},vs={http:yu,https:Wb,ws:An,wss:Hb,urn:Gb,"urn:uuid":Kb};var Yb=vs;const{normalizeIPv6:Jb,normalizeIPv4:Xb,removeDotSegments:Vr,recomposeAuthority:Qb,normalizeComponentEncoding:jn}=Db,$s=Yb;function e0(e,t){return typeof e=="string"?e=st(gt(e,t),t):typeof e=="object"&&(e=gt(st(e,t),t)),e}function t0(e,t,r){const n=Object.assign({scheme:"null"},r),a=_u(gt(e,n),gt(t,n),n,!0);return st(a,{...n,skipEscape:!0})}function _u(e,t,r,n){const a={};return n||(e=gt(st(e,r),r),t=gt(st(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(a.scheme=t.scheme,a.userinfo=t.userinfo,a.host=t.host,a.port=t.port,a.path=Vr(t.path||""),a.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(a.userinfo=t.userinfo,a.host=t.host,a.port=t.port,a.path=Vr(t.path||""),a.query=t.query):(t.path?(t.path.charAt(0)==="/"?a.path=Vr(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?a.path="/"+t.path:e.path?a.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:a.path=t.path,a.path=Vr(a.path)),a.query=t.query):(a.path=e.path,t.query!==void 0?a.query=t.query:a.query=e.query),a.userinfo=e.userinfo,a.host=e.host,a.port=e.port),a.scheme=e.scheme),a.fragment=t.fragment,a}function r0(e,t,r){return typeof e=="string"?(e=unescape(e),e=st(jn(gt(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=st(jn(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=st(jn(gt(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=st(jn(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}function st(e,t){const 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:""},n=Object.assign({},t),a=[],s=$s[(n.scheme||r.scheme||"").toLowerCase()];s&&s.serialize&&s.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&a.push(r.scheme,":");const i=Qb(r);if(i!==void 0&&(n.reference!=="suffix"&&a.push("//"),a.push(i),r.path&&r.path.charAt(0)!=="/"&&a.push("/")),r.path!==void 0){let o=r.path;!n.absolutePath&&(!s||!s.absolutePath)&&(o=Vr(o)),i===void 0&&(o=o.replace(/^\/\//u,"/%2F")),a.push(o)}return r.query!==void 0&&a.push("?",r.query),r.fragment!==void 0&&a.push("#",r.fragment),a.join("")}const n0=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function a0(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||n0[t])return!0;return!1}const s0=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function gt(e,t){const r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},a=e.indexOf("%")!==-1;let s=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);const i=e.match(s0);if(i){if(n.scheme=i[1],n.userinfo=i[3],n.host=i[4],n.port=parseInt(i[5],10),n.path=i[6]||"",n.query=i[7],n.fragment=i[8],isNaN(n.port)&&(n.port=i[5]),n.host){const u=Xb(n.host);if(u.isIPV4===!1){const c=Jb(u.host);n.host=c.host.toLowerCase(),s=c.isIPV6}else n.host=u.host,s=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");const o=$s[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!o||!o.unicodeSupport)&&n.host&&(r.domainHost||o&&o.domainHost)&&s===!1&&a0(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}(!o||o&&!o.skipNormalize)&&(a&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),a&&n.host!==void 0&&(n.host=unescape(n.host)),n.path&&(n.path=escape(unescape(n.path))),n.fragment&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),o&&o.parse&&o.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}const bs={SCHEMES:$s,normalize:e0,resolve:t0,resolveComponents:_u,equal:r0,serialize:st,parse:gt};da.exports=bs;da.exports.default=bs;da.exports.fastUri=bs;var i0=da.exports;Object.defineProperty(gs,"__esModule",{value:!0});const gu=i0;gu.code='require("ajv/dist/runtime/uri").default';gs.default=gu;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=Ke;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=ae;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=gn,a=wr,s=Jt,i=Ae,o=ae,u=Pe,c=be,l=F,f=Pb,g=gs,S=(C,v)=>new RegExp(C,v);S.code="new RegExp";const $=["removeAdditional","useDefaults","coerceTypes"],b=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),y={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."},h={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},w=200;function k(C){var v,O,E,d,m,j,z,Z,oe,se,ye,q,Qe,et,$t,Tr,Pr,jr,Mt,Or,xr,P,M,U,H;const Q=C.strict,ie=(v=C.code)===null||v===void 0?void 0:v.optimize,ve=ie===!0||ie===void 0?1:ie||0,Re=(E=(O=C.code)===null||O===void 0?void 0:O.regExp)!==null&&E!==void 0?E:S,kr=(d=C.uriResolver)!==null&&d!==void 0?d:g.default;return{strictSchema:(j=(m=C.strictSchema)!==null&&m!==void 0?m:Q)!==null&&j!==void 0?j:!0,strictNumbers:(Z=(z=C.strictNumbers)!==null&&z!==void 0?z:Q)!==null&&Z!==void 0?Z:!0,strictTypes:(se=(oe=C.strictTypes)!==null&&oe!==void 0?oe:Q)!==null&&se!==void 0?se:"log",strictTuples:(q=(ye=C.strictTuples)!==null&&ye!==void 0?ye:Q)!==null&&q!==void 0?q:"log",strictRequired:(et=(Qe=C.strictRequired)!==null&&Qe!==void 0?Qe:Q)!==null&&et!==void 0?et:!1,code:C.code?{...C.code,optimize:ve,regExp:Re}:{optimize:ve,regExp:Re},loopRequired:($t=C.loopRequired)!==null&&$t!==void 0?$t:w,loopEnum:(Tr=C.loopEnum)!==null&&Tr!==void 0?Tr:w,meta:(Pr=C.meta)!==null&&Pr!==void 0?Pr:!0,messages:(jr=C.messages)!==null&&jr!==void 0?jr:!0,inlineRefs:(Mt=C.inlineRefs)!==null&&Mt!==void 0?Mt:!0,schemaId:(Or=C.schemaId)!==null&&Or!==void 0?Or:"$id",addUsedSchema:(xr=C.addUsedSchema)!==null&&xr!==void 0?xr:!0,validateSchema:(P=C.validateSchema)!==null&&P!==void 0?P:!0,validateFormats:(M=C.validateFormats)!==null&&M!==void 0?M:!0,unicodeRegExp:(U=C.unicodeRegExp)!==null&&U!==void 0?U:!0,int32range:(H=C.int32range)!==null&&H!==void 0?H:!0,uriResolver:kr}}class T{constructor(v={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,v=this.opts={...v,...k(v)};const{es5:O,lines:E}=this.opts.code;this.scope=new o.ValueScope({scope:{},prefixes:b,es5:O,lines:E}),this.logger=ke(v.logger);const d=v.validateFormats;v.validateFormats=!1,this.RULES=(0,s.getRules)(),p.call(this,y,v,"NOT SUPPORTED"),p.call(this,h,v,"DEPRECATED","warn"),this._metaOpts=we.call(this),v.formats&&G.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),v.keywords&&K.call(this,v.keywords),typeof v.meta=="object"&&this.addMetaSchema(v.meta),A.call(this),v.validateFormats=d}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:v,meta:O,schemaId:E}=this.opts;let d=f;E==="id"&&(d={...f},d.id=d.$id,delete d.$id),O&&v&&this.addMetaSchema(d,d[E],!1)}defaultMeta(){const{meta:v,schemaId:O}=this.opts;return this.opts.defaultMeta=typeof v=="object"?v[O]||v:void 0}validate(v,O){let E;if(typeof v=="string"){if(E=this.getSchema(v),!E)throw new Error(`no schema with key or ref "${v}"`)}else E=this.compile(v);const d=E(O);return"$async"in E||(this.errors=E.errors),d}compile(v,O){const E=this._addSchema(v,O);return E.validate||this._compileSchemaEnv(E)}compileAsync(v,O){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:E}=this.opts;return d.call(this,v,O);async function d(se,ye){await m.call(this,se.$schema);const q=this._addSchema(se,ye);return q.validate||j.call(this,q)}async function m(se){se&&!this.getSchema(se)&&await d.call(this,{$ref:se},!0)}async function j(se){try{return this._compileSchemaEnv(se)}catch(ye){if(!(ye instanceof a.default))throw ye;return z.call(this,ye),await Z.call(this,ye.missingSchema),j.call(this,se)}}function z({missingSchema:se,missingRef:ye}){if(this.refs[se])throw new Error(`AnySchema ${se} is loaded but ${ye} cannot be resolved`)}async function Z(se){const ye=await oe.call(this,se);this.refs[se]||await m.call(this,ye.$schema),this.refs[se]||this.addSchema(ye,se,O)}async function oe(se){const ye=this._loading[se];if(ye)return ye;try{return await(this._loading[se]=E(se))}finally{delete this._loading[se]}}}addSchema(v,O,E,d=this.opts.validateSchema){if(Array.isArray(v)){for(const j of v)this.addSchema(j,void 0,E,d);return this}let m;if(typeof v=="object"){const{schemaId:j}=this.opts;if(m=v[j],m!==void 0&&typeof m!="string")throw new Error(`schema ${j} must be string`)}return O=(0,u.normalizeId)(O||m),this._checkUnique(O),this.schemas[O]=this._addSchema(v,E,O,d,!0),this}addMetaSchema(v,O,E=this.opts.validateSchema){return this.addSchema(v,O,!0,E),this}validateSchema(v,O){if(typeof v=="boolean")return!0;let E;if(E=v.$schema,E!==void 0&&typeof E!="string")throw new Error("$schema must be a string");if(E=E||this.opts.defaultMeta||this.defaultMeta(),!E)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const d=this.validate(E,v);if(!d&&O){const m="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(m);else throw new Error(m)}return d}getSchema(v){let O;for(;typeof(O=x.call(this,v))=="string";)v=O;if(O===void 0){const{schemaId:E}=this.opts,d=new i.SchemaEnv({schema:{},schemaId:E});if(O=i.resolveSchema.call(this,d,v),!O)return;this.refs[v]=O}return O.validate||this._compileSchemaEnv(O)}removeSchema(v){if(v instanceof RegExp)return this._removeAllSchemas(this.schemas,v),this._removeAllSchemas(this.refs,v),this;switch(typeof v){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const O=x.call(this,v);return typeof O=="object"&&this._cache.delete(O.schema),delete this.schemas[v],delete this.refs[v],this}case"object":{const O=v;this._cache.delete(O);let E=v[this.opts.schemaId];return E&&(E=(0,u.normalizeId)(E),delete this.schemas[E],delete this.refs[E]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(v){for(const O of v)this.addKeyword(O);return this}addKeyword(v,O){let E;if(typeof v=="string")E=v,typeof O=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),O.keyword=E);else if(typeof v=="object"&&O===void 0){if(O=v,E=O.keyword,Array.isArray(E)&&!E.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Se.call(this,E,O),!O)return(0,l.eachItem)(E,m=>Fe.call(this,m)),this;lt.call(this,O);const d={...O,type:(0,c.getJSONTypes)(O.type),schemaType:(0,c.getJSONTypes)(O.schemaType)};return(0,l.eachItem)(E,d.type.length===0?m=>Fe.call(this,m,d):m=>d.type.forEach(j=>Fe.call(this,m,d,j))),this}getKeyword(v){const O=this.RULES.all[v];return typeof O=="object"?O.definition:!!O}removeKeyword(v){const{RULES:O}=this;delete O.keywords[v],delete O.all[v];for(const E of O.rules){const d=E.rules.findIndex(m=>m.keyword===v);d>=0&&E.rules.splice(d,1)}return this}addFormat(v,O){return typeof O=="string"&&(O=new RegExp(O)),this.formats[v]=O,this}errorsText(v=this.errors,{separator:O=", ",dataVar:E="data"}={}){return!v||v.length===0?"No errors":v.map(d=>`${E}${d.instancePath} ${d.message}`).reduce((d,m)=>d+O+m)}$dataMetaSchema(v,O){const E=this.RULES.all;v=JSON.parse(JSON.stringify(v));for(const d of O){const m=d.split("/").slice(1);let j=v;for(const z of m)j=j[z];for(const z in E){const Z=E[z];if(typeof Z!="object")continue;const{$data:oe}=Z.definition,se=j[z];oe&&se&&(j[z]=L(se))}}return v}_removeAllSchemas(v,O){for(const E in v){const d=v[E];(!O||O.test(E))&&(typeof d=="string"?delete v[E]:d&&!d.meta&&(this._cache.delete(d.schema),delete v[E]))}}_addSchema(v,O,E,d=this.opts.validateSchema,m=this.opts.addUsedSchema){let j;const{schemaId:z}=this.opts;if(typeof v=="object")j=v[z];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof v!="boolean")throw new Error("schema must be object or boolean")}let Z=this._cache.get(v);if(Z!==void 0)return Z;E=(0,u.normalizeId)(j||E);const oe=u.getSchemaRefs.call(this,v,E);return Z=new i.SchemaEnv({schema:v,schemaId:z,meta:O,baseId:E,localRefs:oe}),this._cache.set(Z.schema,Z),m&&!E.startsWith("#")&&(E&&this._checkUnique(E),this.refs[E]=Z),d&&this.validateSchema(v,!0),Z}_checkUnique(v){if(this.schemas[v]||this.refs[v])throw new Error(`schema with key or id "${v}" already exists`)}_compileSchemaEnv(v){if(v.meta?this._compileMetaSchema(v):i.compileSchema.call(this,v),!v.validate)throw new Error("ajv implementation error");return v.validate}_compileMetaSchema(v){const O=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,v)}finally{this.opts=O}}}T.ValidationError=n.default,T.MissingRefError=a.default,e.default=T;function p(C,v,O,E="error"){for(const d in C){const m=d;m in v&&this.logger[E](`${O}: option ${d}. ${C[m]}`)}}function x(C){return C=(0,u.normalizeId)(C),this.schemas[C]||this.refs[C]}function A(){const C=this.opts.schemas;if(C)if(Array.isArray(C))this.addSchema(C);else for(const v in C)this.addSchema(C[v],v)}function G(){for(const C in this.opts.formats){const v=this.opts.formats[C];v&&this.addFormat(C,v)}}function K(C){if(Array.isArray(C)){this.addVocabulary(C);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const v in C){const O=C[v];O.keyword||(O.keyword=v),this.addKeyword(O)}}function we(){const C={...this.opts};for(const v of $)delete C[v];return C}const xe={log(){},warn(){},error(){}};function ke(C){if(C===!1)return xe;if(C===void 0)return console;if(C.log&&C.warn&&C.error)return C;throw new Error("logger must implement log, warn and error methods")}const ge=/^[a-z_$][a-z0-9_$:-]*$/i;function Se(C,v){const{RULES:O}=this;if((0,l.eachItem)(C,E=>{if(O.keywords[E])throw new Error(`Keyword ${E} is already defined`);if(!ge.test(E))throw new Error(`Keyword ${E} has invalid name`)}),!!v&&v.$data&&!("code"in v||"validate"in v))throw new Error('$data keyword must have "code" or "validate" function')}function Fe(C,v,O){var E;const d=v==null?void 0:v.post;if(O&&d)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:m}=this;let j=d?m.post:m.rules.find(({type:Z})=>Z===O);if(j||(j={type:O,rules:[]},m.rules.push(j)),m.keywords[C]=!0,!v)return;const z={keyword:C,definition:{...v,type:(0,c.getJSONTypes)(v.type),schemaType:(0,c.getJSONTypes)(v.schemaType)}};v.before?Ve.call(this,j,z,v.before):j.rules.push(z),m.all[C]=z,(E=v.implements)===null||E===void 0||E.forEach(Z=>this.addKeyword(Z))}function Ve(C,v,O){const E=C.rules.findIndex(d=>d.keyword===O);E>=0?C.rules.splice(E,0,v):(C.rules.push(v),this.logger.warn(`rule ${O} is not defined`))}function lt(C){let{metaSchema:v}=C;v!==void 0&&(C.$data&&this.opts.$data&&(v=L(v)),C.validateSchema=this.compile(v,!0))}const Le={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function L(C){return{anyOf:[C,Le]}}})(Cc);var ws={},Ss={},Es={};Object.defineProperty(Es,"__esModule",{value:!0});const o0={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Es.default=o0;var Xt={};Object.defineProperty(Xt,"__esModule",{value:!0});Xt.callRef=Xt.getValidate=void 0;const c0=wr,lo=ne,Ie=ae,or=dt,fo=Ae,On=F,u0={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:a,schemaEnv:s,validateName:i,opts:o,self:u}=n,{root:c}=s;if((r==="#"||r==="#/")&&a===c.baseId)return f();const l=fo.resolveRef.call(u,c,a,r);if(l===void 0)throw new c0.default(n.opts.uriResolver,a,r);if(l instanceof fo.SchemaEnv)return g(l);return S(l);function f(){if(s===c)return Rn(e,i,s,s.$async);const $=t.scopeValue("root",{ref:c});return Rn(e,(0,Ie._)`${$}.validate`,c,c.$async)}function g($){const b=vu(e,$);Rn(e,b,$,$.$async)}function S($){const b=t.scopeValue("schema",o.code.source===!0?{ref:$,code:(0,Ie.stringify)($)}:{ref:$}),y=t.name("valid"),h=e.subschema({schema:$,dataTypes:[],schemaPath:Ie.nil,topSchemaRef:b,errSchemaPath:r},y);e.mergeEvaluated(h),e.ok(y)}}};function vu(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Ie._)`${r.scopeValue("wrapper",{ref:t})}.validate`}Xt.getValidate=vu;function Rn(e,t,r,n){const{gen:a,it:s}=e,{allErrors:i,schemaEnv:o,opts:u}=s,c=u.passContext?or.default.this:Ie.nil;n?l():f();function l(){if(!o.$async)throw new Error("async schema referenced by sync schema");const $=a.let("valid");a.try(()=>{a.code((0,Ie._)`await ${(0,lo.callValidateCode)(e,t,c)}`),S(t),i||a.assign($,!0)},b=>{a.if((0,Ie._)`!(${b} instanceof ${s.ValidationError})`,()=>a.throw(b)),g(b),i||a.assign($,!1)}),e.ok($)}function f(){e.result((0,lo.callValidateCode)(e,t,c),()=>S(t),()=>g(t))}function g($){const b=(0,Ie._)`${$}.errors`;a.assign(or.default.vErrors,(0,Ie._)`${or.default.vErrors} === null ? ${b} : ${or.default.vErrors}.concat(${b})`),a.assign(or.default.errors,(0,Ie._)`${or.default.vErrors}.length`)}function S($){var b;if(!s.opts.unevaluated)return;const y=(b=r==null?void 0:r.validate)===null||b===void 0?void 0:b.evaluated;if(s.props!==!0)if(y&&!y.dynamicProps)y.props!==void 0&&(s.props=On.mergeEvaluated.props(a,y.props,s.props));else{const h=a.var("props",(0,Ie._)`${$}.evaluated.props`);s.props=On.mergeEvaluated.props(a,h,s.props,Ie.Name)}if(s.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(s.items=On.mergeEvaluated.items(a,y.items,s.items));else{const h=a.var("items",(0,Ie._)`${$}.evaluated.items`);s.items=On.mergeEvaluated.items(a,h,s.items,Ie.Name)}}}Xt.callRef=Rn;Xt.default=u0;Object.defineProperty(Ss,"__esModule",{value:!0});const d0=Es,l0=Xt,f0=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",d0.default,l0.default];Ss.default=f0;var Ts={},Ps={};Object.defineProperty(Ps,"__esModule",{value:!0});const Kn=ae,Pt=Kn.operators,Yn={maximum:{okStr:"<=",ok:Pt.LTE,fail:Pt.GT},minimum:{okStr:">=",ok:Pt.GTE,fail:Pt.LT},exclusiveMaximum:{okStr:"<",ok:Pt.LT,fail:Pt.GTE},exclusiveMinimum:{okStr:">",ok:Pt.GT,fail:Pt.LTE}},h0={message:({keyword:e,schemaCode:t})=>(0,Kn.str)`must be ${Yn[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Kn._)`{comparison: ${Yn[e].okStr}, limit: ${t}}`},m0={keyword:Object.keys(Yn),type:"number",schemaType:"number",$data:!0,error:h0,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Kn._)`${r} ${Yn[t].fail} ${n} || isNaN(${r})`)}};Ps.default=m0;var js={};Object.defineProperty(js,"__esModule",{value:!0});const Br=ae,p0={message:({schemaCode:e})=>(0,Br.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Br._)`{multipleOf: ${e}}`},y0={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:p0,code(e){const{gen:t,data:r,schemaCode:n,it:a}=e,s=a.opts.multipleOfPrecision,i=t.let("res"),o=s?(0,Br._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${s}`:(0,Br._)`${i} !== parseInt(${i})`;e.fail$data((0,Br._)`(${n} === 0 || (${i} = ${r}/${n}, ${o}))`)}};js.default=y0;var Os={},xs={};Object.defineProperty(xs,"__esModule",{value:!0});function $u(e){const t=e.length;let r=0,n=0,a;for(;n<t;)r++,a=e.charCodeAt(n++),a>=55296&&a<=56319&&n<t&&(a=e.charCodeAt(n),(a&64512)===56320&&n++);return r}xs.default=$u;$u.code='require("ajv/dist/runtime/ucs2length").default';Object.defineProperty(Os,"__esModule",{value:!0});const Ut=ae,_0=F,g0=xs,v0={message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,Ut.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,Ut._)`{limit: ${e}}`},$0={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:v0,code(e){const{keyword:t,data:r,schemaCode:n,it:a}=e,s=t==="maxLength"?Ut.operators.GT:Ut.operators.LT,i=a.opts.unicode===!1?(0,Ut._)`${r}.length`:(0,Ut._)`${(0,_0.useFunc)(e.gen,g0.default)}(${r})`;e.fail$data((0,Ut._)`${i} ${s} ${n}`)}};Os.default=$0;var ks={};Object.defineProperty(ks,"__esModule",{value:!0});const b0=ne,Jn=ae,w0={message:({schemaCode:e})=>(0,Jn.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Jn._)`{pattern: ${e}}`},S0={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:w0,code(e){const{data:t,$data:r,schema:n,schemaCode:a,it:s}=e,i=s.opts.unicodeRegExp?"u":"",o=r?(0,Jn._)`(new RegExp(${a}, ${i}))`:(0,b0.usePattern)(e,n);e.fail$data((0,Jn._)`!${o}.test(${t})`)}};ks.default=S0;var Cs={};Object.defineProperty(Cs,"__esModule",{value:!0});const Zr=ae,E0={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,Zr.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Zr._)`{limit: ${e}}`},T0={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:E0,code(e){const{keyword:t,data:r,schemaCode:n}=e,a=t==="maxProperties"?Zr.operators.GT:Zr.operators.LT;e.fail$data((0,Zr._)`Object.keys(${r}).length ${a} ${n}`)}};Cs.default=T0;var Ns={};Object.defineProperty(Ns,"__esModule",{value:!0});const Mr=ne,Wr=ae,P0=F,j0={message:({params:{missingProperty:e}})=>(0,Wr.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Wr._)`{missingProperty: ${e}}`},O0={keyword:"required",type:"object",schemaType:"array",$data:!0,error:j0,code(e){const{gen:t,schema:r,schemaCode:n,data:a,$data:s,it:i}=e,{opts:o}=i;if(!s&&r.length===0)return;const u=r.length>=o.loopRequired;if(i.allErrors?c():l(),o.strictRequired){const S=e.parentSchema.properties,{definedProperties:$}=e.it;for(const b of r)if((S==null?void 0:S[b])===void 0&&!$.has(b)){const y=i.schemaEnv.baseId+i.errSchemaPath,h=`required property "${b}" is not defined at "${y}" (strictRequired)`;(0,P0.checkStrictMode)(i,h,i.opts.strictRequired)}}function c(){if(u||s)e.block$data(Wr.nil,f);else for(const S of r)(0,Mr.checkReportMissingProp)(e,S)}function l(){const S=t.let("missing");if(u||s){const $=t.let("valid",!0);e.block$data($,()=>g(S,$)),e.ok($)}else t.if((0,Mr.checkMissingProp)(e,r,S)),(0,Mr.reportMissingProp)(e,S),t.else()}function f(){t.forOf("prop",n,S=>{e.setParams({missingProperty:S}),t.if((0,Mr.noPropertyInData)(t,a,S,o.ownProperties),()=>e.error())})}function g(S,$){e.setParams({missingProperty:S}),t.forOf(S,n,()=>{t.assign($,(0,Mr.propertyInData)(t,a,S,o.ownProperties)),t.if((0,Wr.not)($),()=>{e.error(),t.break()})},Wr.nil)}}};Ns.default=O0;var Is={};Object.defineProperty(Is,"__esModule",{value:!0});const Hr=ae,x0={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,Hr.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,Hr._)`{limit: ${e}}`},k0={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:x0,code(e){const{keyword:t,data:r,schemaCode:n}=e,a=t==="maxItems"?Hr.operators.GT:Hr.operators.LT;e.fail$data((0,Hr._)`${r}.length ${a} ${n}`)}};Is.default=k0;var As={},vn={};Object.defineProperty(vn,"__esModule",{value:!0});const bu=Hc;bu.code='require("ajv/dist/runtime/equal").default';vn.default=bu;Object.defineProperty(As,"__esModule",{value:!0});const Oa=be,Te=ae,C0=F,N0=vn,I0={message:({params:{i:e,j:t}})=>(0,Te.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Te._)`{i: ${e}, j: ${t}}`},A0={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:I0,code(e){const{gen:t,data:r,$data:n,schema:a,parentSchema:s,schemaCode:i,it:o}=e;if(!n&&!a)return;const u=t.let("valid"),c=s.items?(0,Oa.getSchemaTypes)(s.items):[];e.block$data(u,l,(0,Te._)`${i} === false`),e.ok(u);function l(){const $=t.let("i",(0,Te._)`${r}.length`),b=t.let("j");e.setParams({i:$,j:b}),t.assign(u,!0),t.if((0,Te._)`${$} > 1`,()=>(f()?g:S)($,b))}function f(){return c.length>0&&!c.some($=>$==="object"||$==="array")}function g($,b){const y=t.name("item"),h=(0,Oa.checkDataTypes)(c,y,o.opts.strictNumbers,Oa.DataType.Wrong),w=t.const("indices",(0,Te._)`{}`);t.for((0,Te._)`;${$}--;`,()=>{t.let(y,(0,Te._)`${r}[${$}]`),t.if(h,(0,Te._)`continue`),c.length>1&&t.if((0,Te._)`typeof ${y} == "string"`,(0,Te._)`${y} += "_"`),t.if((0,Te._)`typeof ${w}[${y}] == "number"`,()=>{t.assign(b,(0,Te._)`${w}[${y}]`),e.error(),t.assign(u,!1).break()}).code((0,Te._)`${w}[${y}] = ${$}`)})}function S($,b){const y=(0,C0.useFunc)(t,N0.default),h=t.name("outer");t.label(h).for((0,Te._)`;${$}--;`,()=>t.for((0,Te._)`${b} = ${$}; ${b}--;`,()=>t.if((0,Te._)`${y}(${r}[${$}], ${r}[${b}])`,()=>{e.error(),t.assign(u,!1).break(h)})))}}};As.default=A0;var Rs={};Object.defineProperty(Rs,"__esModule",{value:!0});const Ha=ae,R0=F,M0=vn,D0={message:"must be equal to constant",params:({schemaCode:e})=>(0,Ha._)`{allowedValue: ${e}}`},F0={keyword:"const",$data:!0,error:D0,code(e){const{gen:t,data:r,$data:n,schemaCode:a,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,Ha._)`!${(0,R0.useFunc)(t,M0.default)}(${r}, ${a})`):e.fail((0,Ha._)`${s} !== ${r}`)}};Rs.default=F0;var Ms={};Object.defineProperty(Ms,"__esModule",{value:!0});const Lr=ae,V0=F,L0=vn,z0={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Lr._)`{allowedValues: ${e}}`},U0={keyword:"enum",schemaType:"array",$data:!0,error:z0,code(e){const{gen:t,data:r,$data:n,schema:a,schemaCode:s,it:i}=e;if(!n&&a.length===0)throw new Error("enum must have non-empty array");const o=a.length>=i.opts.loopEnum;let u;const c=()=>u??(u=(0,V0.useFunc)(t,L0.default));let l;if(o||n)l=t.let("valid"),e.block$data(l,f);else{if(!Array.isArray(a))throw new Error("ajv implementation error");const S=t.const("vSchema",s);l=(0,Lr.or)(...a.map(($,b)=>g(S,b)))}e.pass(l);function f(){t.assign(l,!1),t.forOf("v",s,S=>t.if((0,Lr._)`${c()}(${r}, ${S})`,()=>t.assign(l,!0).break()))}function g(S,$){const b=a[$];return typeof b=="object"&&b!==null?(0,Lr._)`${c()}(${r}, ${S}[${$}])`:(0,Lr._)`${r} === ${b}`}}};Ms.default=U0;Object.defineProperty(Ts,"__esModule",{value:!0});const q0=Ps,B0=js,Z0=Os,W0=ks,H0=Cs,G0=Ns,K0=Is,Y0=As,J0=Rs,X0=Ms,Q0=[q0.default,B0.default,Z0.default,W0.default,H0.default,G0.default,K0.default,Y0.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},J0.default,X0.default];Ts.default=Q0;var Ds={},Sr={};Object.defineProperty(Sr,"__esModule",{value:!0});Sr.validateAdditionalItems=void 0;const qt=ae,Ga=F,ew={message:({params:{len:e}})=>(0,qt.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,qt._)`{limit: ${e}}`},tw={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:ew,code(e){const{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Ga.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}wu(e,n)}};function wu(e,t){const{gen:r,schema:n,data:a,keyword:s,it:i}=e;i.items=!0;const o=r.const("len",(0,qt._)`${a}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,qt._)`${o} <= ${t.length}`);else if(typeof n=="object"&&!(0,Ga.alwaysValidSchema)(i,n)){const c=r.var("valid",(0,qt._)`${o} <= ${t.length}`);r.if((0,qt.not)(c),()=>u(c)),e.ok(c)}function u(c){r.forRange("i",t.length,o,l=>{e.subschema({keyword:s,dataProp:l,dataPropType:Ga.Type.Num},c),i.allErrors||r.if((0,qt.not)(c),()=>r.break())})}}Sr.validateAdditionalItems=wu;Sr.default=tw;var Fs={},Er={};Object.defineProperty(Er,"__esModule",{value:!0});Er.validateTuple=void 0;const ho=ae,Mn=F,rw=ne,nw={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return Su(e,"additionalItems",t);r.items=!0,!(0,Mn.alwaysValidSchema)(r,t)&&e.ok((0,rw.validateArray)(e))}};function Su(e,t,r=e.schema){const{gen:n,parentSchema:a,data:s,keyword:i,it:o}=e;l(a),o.opts.unevaluated&&r.length&&o.items!==!0&&(o.items=Mn.mergeEvaluated.items(n,r.length,o.items));const u=n.name("valid"),c=n.const("len",(0,ho._)`${s}.length`);r.forEach((f,g)=>{(0,Mn.alwaysValidSchema)(o,f)||(n.if((0,ho._)`${c} > ${g}`,()=>e.subschema({keyword:i,schemaProp:g,dataProp:g},u)),e.ok(u))});function l(f){const{opts:g,errSchemaPath:S}=o,$=r.length,b=$===f.minItems&&($===f.maxItems||f[t]===!1);if(g.strictTuples&&!b){const y=`"${i}" is ${$}-tuple, but minItems or maxItems/${t} are not specified or different at path "${S}"`;(0,Mn.checkStrictMode)(o,y,g.strictTuples)}}}Er.validateTuple=Su;Er.default=nw;Object.defineProperty(Fs,"__esModule",{value:!0});const aw=Er,sw={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,aw.validateTuple)(e,"items")};Fs.default=sw;var Vs={};Object.defineProperty(Vs,"__esModule",{value:!0});const mo=ae,iw=F,ow=ne,cw=Sr,uw={message:({params:{len:e}})=>(0,mo.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,mo._)`{limit: ${e}}`},dw={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:uw,code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:a}=r;n.items=!0,!(0,iw.alwaysValidSchema)(n,t)&&(a?(0,cw.validateAdditionalItems)(e,a):e.ok((0,ow.validateArray)(e)))}};Vs.default=dw;var Ls={};Object.defineProperty(Ls,"__esModule",{value:!0});const Ue=ae,xn=F,lw={message:({params:{min:e,max:t}})=>t===void 0?(0,Ue.str)`must contain at least ${e} valid item(s)`:(0,Ue.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Ue._)`{minContains: ${e}}`:(0,Ue._)`{minContains: ${e}, maxContains: ${t}}`},fw={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:lw,code(e){const{gen:t,schema:r,parentSchema:n,data:a,it:s}=e;let i,o;const{minContains:u,maxContains:c}=n;s.opts.next?(i=u===void 0?1:u,o=c):i=1;const l=t.const("len",(0,Ue._)`${a}.length`);if(e.setParams({min:i,max:o}),o===void 0&&i===0){(0,xn.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(o!==void 0&&i>o){(0,xn.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,xn.alwaysValidSchema)(s,r)){let b=(0,Ue._)`${l} >= ${i}`;o!==void 0&&(b=(0,Ue._)`${b} && ${l} <= ${o}`),e.pass(b);return}s.items=!0;const f=t.name("valid");o===void 0&&i===1?S(f,()=>t.if(f,()=>t.break())):i===0?(t.let(f,!0),o!==void 0&&t.if((0,Ue._)`${a}.length > 0`,g)):(t.let(f,!1),g()),e.result(f,()=>e.reset());function g(){const b=t.name("_valid"),y=t.let("count",0);S(b,()=>t.if(b,()=>$(y)))}function S(b,y){t.forRange("i",0,l,h=>{e.subschema({keyword:"contains",dataProp:h,dataPropType:xn.Type.Num,compositeRule:!0},b),y()})}function $(b){t.code((0,Ue._)`${b}++`),o===void 0?t.if((0,Ue._)`${b} >= ${i}`,()=>t.assign(f,!0).break()):(t.if((0,Ue._)`${b} > ${o}`,()=>t.assign(f,!1).break()),i===1?t.assign(f,!0):t.if((0,Ue._)`${b} >= ${i}`,()=>t.assign(f,!0)))}}};Ls.default=fw;var Eu={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=ae,r=F,n=ne;e.error={message:({params:{property:u,depsCount:c,deps:l}})=>{const f=c===1?"property":"properties";return(0,t.str)`must have ${f} ${l} when property ${u} is present`},params:({params:{property:u,depsCount:c,deps:l,missingProperty:f}})=>(0,t._)`{property: ${u},
|
|
21
|
+
|| ${i} === "boolean" || ${a} === null`).assign(o,(0,te._)`[${a}]`)}}}function a$({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,te._)`${t} !== undefined`,()=>e.assign((0,te._)`${t}[${r}]`,n))}function Za(e,t,r,n=hr.Correct){const a=n===hr.Correct?te.operators.EQ:te.operators.NEQ;let s;switch(e){case"null":return(0,te._)`${t} ${a} null`;case"array":s=(0,te._)`Array.isArray(${t})`;break;case"object":s=(0,te._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=i((0,te._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=i();break;default:return(0,te._)`typeof ${t} ${a} ${e}`}return n===hr.Correct?s:(0,te.not)(s);function i(o=te.nil){return(0,te.and)((0,te._)`typeof ${t} == "number"`,o,r?(0,te._)`isFinite(${t})`:te.nil)}}be.checkDataType=Za;function ds(e,t,r,n){if(e.length===1)return Za(e[0],t,r,n);let a;const s=(0,zc.toHash)(e);if(s.array&&s.object){const i=(0,te._)`typeof ${t} != "object"`;a=s.null?i:(0,te._)`!${t} || ${i}`,delete s.null,delete s.array,delete s.object}else a=te.nil;s.number&&delete s.integer;for(const i in s)a=(0,te.and)(a,Za(i,t,r,n));return a}be.checkDataTypes=ds;const s$={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,te._)`{type: ${e}}`:(0,te._)`{type: ${t}}`};function ls(e){const t=i$(e);(0,Qv.reportError)(t,s$)}be.reportTypeError=ls;function i$(e){const{gen:t,data:r,schema:n}=e,a=(0,zc.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:a,schemaValue:a,parentSchema:n,params:{},it:e}}var oa={};Object.defineProperty(oa,"__esModule",{value:!0});oa.assignDefaults=void 0;const ir=ae,o$=F;function c$(e,t){const{properties:r,items:n}=e.schema;if(t==="object"&&r)for(const a in r)eo(e,a,r[a].default);else t==="array"&&Array.isArray(n)&&n.forEach((a,s)=>eo(e,s,a.default))}oa.assignDefaults=c$;function eo(e,t,r){const{gen:n,compositeRule:a,data:s,opts:i}=e;if(r===void 0)return;const o=(0,ir._)`${s}${(0,ir.getProperty)(t)}`;if(a){(0,o$.checkStrictMode)(e,`default is ignored for: ${o}`);return}let u=(0,ir._)`${o} === undefined`;i.useDefaults==="empty"&&(u=(0,ir._)`${u} || ${o} === null || ${o} === ""`),n.if(u,(0,ir._)`${o} = ${(0,ir.stringify)(r)}`)}var at={},ne={};Object.defineProperty(ne,"__esModule",{value:!0});ne.validateUnion=ne.validateArray=ne.usePattern=ne.callValidateCode=ne.schemaProperties=ne.allSchemaProperties=ne.noPropertyInData=ne.propertyInData=ne.isOwnProperty=ne.hasPropFunc=ne.reportMissingProp=ne.checkMissingProp=ne.checkReportMissingProp=void 0;const pe=ae,fs=F,Tt=dt,u$=F;function d$(e,t){const{gen:r,data:n,it:a}=e;r.if(ms(r,n,t,a.opts.ownProperties),()=>{e.setParams({missingProperty:(0,pe._)`${t}`},!0),e.error()})}ne.checkReportMissingProp=d$;function l$({gen:e,data:t,it:{opts:r}},n,a){return(0,pe.or)(...n.map(s=>(0,pe.and)(ms(e,t,s,r.ownProperties),(0,pe._)`${a} = ${s}`)))}ne.checkMissingProp=l$;function f$(e,t){e.setParams({missingProperty:t},!0),e.error()}ne.reportMissingProp=f$;function Bc(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,pe._)`Object.prototype.hasOwnProperty`})}ne.hasPropFunc=Bc;function hs(e,t,r){return(0,pe._)`${Bc(e)}.call(${t}, ${r})`}ne.isOwnProperty=hs;function h$(e,t,r,n){const a=(0,pe._)`${t}${(0,pe.getProperty)(r)} !== undefined`;return n?(0,pe._)`${a} && ${hs(e,t,r)}`:a}ne.propertyInData=h$;function ms(e,t,r,n){const a=(0,pe._)`${t}${(0,pe.getProperty)(r)} === undefined`;return n?(0,pe.or)(a,(0,pe.not)(hs(e,t,r))):a}ne.noPropertyInData=ms;function Zc(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}ne.allSchemaProperties=Zc;function m$(e,t){return Zc(t).filter(r=>!(0,fs.alwaysValidSchema)(e,t[r]))}ne.schemaProperties=m$;function p$({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:a,errorPath:s},it:i},o,u,c){const l=c?(0,pe._)`${e}, ${t}, ${n}${a}`:t,f=[[Tt.default.instancePath,(0,pe.strConcat)(Tt.default.instancePath,s)],[Tt.default.parentData,i.parentData],[Tt.default.parentDataProperty,i.parentDataProperty],[Tt.default.rootData,Tt.default.rootData]];i.opts.dynamicRef&&f.push([Tt.default.dynamicAnchors,Tt.default.dynamicAnchors]);const g=(0,pe._)`${l}, ${r.object(...f)}`;return u!==pe.nil?(0,pe._)`${o}.call(${u}, ${g})`:(0,pe._)`${o}(${g})`}ne.callValidateCode=p$;const y$=(0,pe._)`new RegExp`;function _$({gen:e,it:{opts:t}},r){const n=t.unicodeRegExp?"u":"",{regExp:a}=t.code,s=a(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,pe._)`${a.code==="new RegExp"?y$:(0,u$.useFunc)(e,a)}(${r}, ${n})`})}ne.usePattern=_$;function g$(e){const{gen:t,data:r,keyword:n,it:a}=e,s=t.name("valid");if(a.allErrors){const o=t.let("valid",!0);return i(()=>t.assign(o,!1)),o}return t.var(s,!0),i(()=>t.break()),s;function i(o){const u=t.const("len",(0,pe._)`${r}.length`);t.forRange("i",0,u,c=>{e.subschema({keyword:n,dataProp:c,dataPropType:fs.Type.Num},s),t.if((0,pe.not)(s),o)})}}ne.validateArray=g$;function v$(e){const{gen:t,schema:r,keyword:n,it:a}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(u=>(0,fs.alwaysValidSchema)(a,u))&&!a.opts.unevaluated)return;const i=t.let("valid",!1),o=t.name("_valid");t.block(()=>r.forEach((u,c)=>{const l=e.subschema({keyword:n,schemaProp:c,compositeRule:!0},o);t.assign(i,(0,pe._)`${i} || ${o}`),e.mergeValidEvaluated(l,o)||t.if((0,pe.not)(i))})),e.result(i,()=>e.reset(),()=>e.error(!0))}ne.validateUnion=v$;Object.defineProperty(at,"__esModule",{value:!0});at.validateKeywordUsage=at.validSchemaType=at.funcKeywordCode=at.macroKeywordCode=void 0;const Ce=ae,zt=dt,$$=ne,b$=_n;function w$(e,t){const{gen:r,keyword:n,schema:a,parentSchema:s,it:i}=e,o=t.macro.call(i.self,a,s,i),u=Wc(r,n,o);i.opts.validateSchema!==!1&&i.self.validateSchema(o,!0);const c=r.name("valid");e.subschema({schema:o,schemaPath:Ce.nil,errSchemaPath:`${i.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},c),e.pass(c,()=>e.error(!0))}at.macroKeywordCode=w$;function S$(e,t){var r;const{gen:n,keyword:a,schema:s,parentSchema:i,$data:o,it:u}=e;T$(u,t);const c=!o&&t.compile?t.compile.call(u.self,s,i,u):t.validate,l=Wc(n,a,c),f=n.let("valid");e.block$data(f,g),e.ok((r=t.valid)!==null&&r!==void 0?r:f);function g(){if(t.errors===!1)b(),t.modifying&&to(e),y(()=>e.error());else{const h=t.async?S():$();t.modifying&&to(e),y(()=>E$(e,h))}}function S(){const h=n.let("ruleErrs",null);return n.try(()=>b((0,Ce._)`await `),w=>n.assign(f,!1).if((0,Ce._)`${w} instanceof ${u.ValidationError}`,()=>n.assign(h,(0,Ce._)`${w}.errors`),()=>n.throw(w))),h}function $(){const h=(0,Ce._)`${l}.errors`;return n.assign(h,null),b(Ce.nil),h}function b(h=t.async?(0,Ce._)`await `:Ce.nil){const w=u.opts.passContext?zt.default.this:zt.default.self,k=!("compile"in t&&!o||t.schema===!1);n.assign(f,(0,Ce._)`${h}${(0,$$.callValidateCode)(e,l,w,k)}`,t.modifying)}function y(h){var w;n.if((0,Ce.not)((w=t.valid)!==null&&w!==void 0?w:f),h)}}at.funcKeywordCode=S$;function to(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Ce._)`${n.parentData}[${n.parentDataProperty}]`))}function E$(e,t){const{gen:r}=e;r.if((0,Ce._)`Array.isArray(${t})`,()=>{r.assign(zt.default.vErrors,(0,Ce._)`${zt.default.vErrors} === null ? ${t} : ${zt.default.vErrors}.concat(${t})`).assign(zt.default.errors,(0,Ce._)`${zt.default.vErrors}.length`),(0,b$.extendErrors)(e)},()=>e.error())}function T$({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function Wc(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,Ce.stringify)(r)})}function P$(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}at.validSchemaType=P$;function j$({schema:e,opts:t,self:r,errSchemaPath:n},a,s){if(Array.isArray(a.keyword)?!a.keyword.includes(s):a.keyword!==s)throw new Error("ajv implementation error");const i=a.dependencies;if(i!=null&&i.some(o=>!Object.prototype.hasOwnProperty.call(e,o)))throw new Error(`parent schema must have dependencies of ${s}: ${i.join(",")}`);if(a.validateSchema&&!a.validateSchema(e[s])){const u=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(a.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}at.validateKeywordUsage=j$;var Ot={};Object.defineProperty(Ot,"__esModule",{value:!0});Ot.extendSubschemaMode=Ot.extendSubschemaData=Ot.getSubschema=void 0;const rt=ae,Hc=F;function O$(e,{keyword:t,schemaProp:r,schema:n,schemaPath:a,errSchemaPath:s,topSchemaRef:i}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const o=e.schema[t];return r===void 0?{schema:o,schemaPath:(0,rt._)`${e.schemaPath}${(0,rt.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[r],schemaPath:(0,rt._)`${e.schemaPath}${(0,rt.getProperty)(t)}${(0,rt.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Hc.escapeFragment)(r)}`}}if(n!==void 0){if(a===void 0||s===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:a,topSchemaRef:i,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}Ot.getSubschema=O$;function x$(e,t,{dataProp:r,dataPropType:n,data:a,dataTypes:s,propertyName:i}){if(a!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:o}=t;if(r!==void 0){const{errorPath:c,dataPathArr:l,opts:f}=t,g=o.let("data",(0,rt._)`${t.data}${(0,rt.getProperty)(r)}`,!0);u(g),e.errorPath=(0,rt.str)`${c}${(0,Hc.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,rt._)`${r}`,e.dataPathArr=[...l,e.parentDataProperty]}if(a!==void 0){const c=a instanceof rt.Name?a:o.let("data",a,!0);u(c),i!==void 0&&(e.propertyName=i)}s&&(e.dataTypes=s);function u(c){e.data=c,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,c]}}Ot.extendSubschemaData=x$;function k$(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:a,allErrors:s}){n!==void 0&&(e.compositeRule=n),a!==void 0&&(e.createErrors=a),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}Ot.extendSubschemaMode=k$;var Pe={},Gc=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 n,a,s;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(a=n;a--!==0;)if(!e(t[a],r[a]))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(s=Object.keys(t),n=s.length,n!==Object.keys(r).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[a]))return!1;for(a=n;a--!==0;){var i=s[a];if(!e(t[i],r[i]))return!1}return!0}return t!==t&&r!==r},Kc={exports:{}},jt=Kc.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},a=r.post||function(){};In(t,n,a,e,"",e)};jt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};jt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};jt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};jt.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 In(e,t,r,n,a,s,i,o,u,c){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,a,s,i,o,u,c);for(var l in n){var f=n[l];if(Array.isArray(f)){if(l in jt.arrayKeywords)for(var g=0;g<f.length;g++)In(e,t,r,f[g],a+"/"+l+"/"+g,s,a,l,n,g)}else if(l in jt.propsKeywords){if(f&&typeof f=="object")for(var S in f)In(e,t,r,f[S],a+"/"+l+"/"+C$(S),s,a,l,n,S)}else(l in jt.keywords||e.allKeys&&!(l in jt.skipKeywords))&&In(e,t,r,f,a+"/"+l,s,a,l,n)}r(n,a,s,i,o,u,c)}}function C$(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}var N$=Kc.exports;Object.defineProperty(Pe,"__esModule",{value:!0});Pe.getSchemaRefs=Pe.resolveUrl=Pe.normalizeId=Pe._getFullPath=Pe.getFullPath=Pe.inlineRef=void 0;const I$=F,A$=Gc,R$=N$,M$=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function D$(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Wa(e):t?Yc(e)<=t:!1}Pe.inlineRef=D$;const F$=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Wa(e){for(const t in e){if(F$.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(Wa)||typeof r=="object"&&Wa(r))return!0}return!1}function Yc(e){let t=0;for(const r in e){if(r==="$ref")return 1/0;if(t++,!M$.has(r)&&(typeof e[r]=="object"&&(0,I$.eachItem)(e[r],n=>t+=Yc(n)),t===1/0))return 1/0}return t}function Jc(e,t="",r){r!==!1&&(t=mr(t));const n=e.parse(t);return Xc(e,n)}Pe.getFullPath=Jc;function Xc(e,t){return e.serialize(t).split("#")[0]+"#"}Pe._getFullPath=Xc;const V$=/#\/?$/;function mr(e){return e?e.replace(V$,""):""}Pe.normalizeId=mr;function L$(e,t,r){return r=mr(r),e.resolve(t,r)}Pe.resolveUrl=L$;const z$=/^[a-z_][-a-z0-9._]*$/i;function U$(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts,a=mr(e[r]||t),s={"":a},i=Jc(n,a,!1),o={},u=new Set;return R$(e,{allKeys:!0},(f,g,S,$)=>{if($===void 0)return;const b=i+g;let y=s[$];typeof f[r]=="string"&&(y=h.call(this,f[r])),w.call(this,f.$anchor),w.call(this,f.$dynamicAnchor),s[g]=y;function h(k){const T=this.opts.uriResolver.resolve;if(k=mr(y?T(y,k):k),u.has(k))throw l(k);u.add(k);let p=this.refs[k];return typeof p=="string"&&(p=this.refs[p]),typeof p=="object"?c(f,p.schema,k):k!==mr(b)&&(k[0]==="#"?(c(f,o[k],k),o[k]=f):this.refs[k]=b),k}function w(k){if(typeof k=="string"){if(!z$.test(k))throw new Error(`invalid anchor "${k}"`);h.call(this,`#${k}`)}}}),o;function c(f,g,S){if(g!==void 0&&!A$(f,g))throw l(S)}function l(f){return new Error(`reference "${f}" resolves to more than one schema`)}}Pe.getSchemaRefs=U$;Object.defineProperty(Ke,"__esModule",{value:!0});Ke.getData=Ke.KeywordCxt=Ke.validateFunctionCode=void 0;const Qc=vr,ro=be,ps=pt,Gn=be,q$=oa,qr=at,Ta=Ot,W=ae,X=dt,B$=Pe,yt=F,Rr=_n;function Z$(e){if(ru(e)&&(nu(e),tu(e))){G$(e);return}eu(e,()=>(0,Qc.topBoolOrEmptySchema)(e))}Ke.validateFunctionCode=Z$;function eu({gen:e,validateName:t,schema:r,schemaEnv:n,opts:a},s){a.code.es5?e.func(t,(0,W._)`${X.default.data}, ${X.default.valCxt}`,n.$async,()=>{e.code((0,W._)`"use strict"; ${no(r,a)}`),H$(e,a),e.code(s)}):e.func(t,(0,W._)`${X.default.data}, ${W$(a)}`,n.$async,()=>e.code(no(r,a)).code(s))}function W$(e){return(0,W._)`{${X.default.instancePath}="", ${X.default.parentData}, ${X.default.parentDataProperty}, ${X.default.rootData}=${X.default.data}${e.dynamicRef?(0,W._)`, ${X.default.dynamicAnchors}={}`:W.nil}}={}`}function H$(e,t){e.if(X.default.valCxt,()=>{e.var(X.default.instancePath,(0,W._)`${X.default.valCxt}.${X.default.instancePath}`),e.var(X.default.parentData,(0,W._)`${X.default.valCxt}.${X.default.parentData}`),e.var(X.default.parentDataProperty,(0,W._)`${X.default.valCxt}.${X.default.parentDataProperty}`),e.var(X.default.rootData,(0,W._)`${X.default.valCxt}.${X.default.rootData}`),t.dynamicRef&&e.var(X.default.dynamicAnchors,(0,W._)`${X.default.valCxt}.${X.default.dynamicAnchors}`)},()=>{e.var(X.default.instancePath,(0,W._)`""`),e.var(X.default.parentData,(0,W._)`undefined`),e.var(X.default.parentDataProperty,(0,W._)`undefined`),e.var(X.default.rootData,X.default.data),t.dynamicRef&&e.var(X.default.dynamicAnchors,(0,W._)`{}`)})}function G$(e){const{schema:t,opts:r,gen:n}=e;eu(e,()=>{r.$comment&&t.$comment&&su(e),Q$(e),n.let(X.default.vErrors,null),n.let(X.default.errors,0),r.unevaluated&&K$(e),au(e),rb(e)})}function K$(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,W._)`${r}.evaluated`),t.if((0,W._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,W._)`${e.evaluated}.props`,(0,W._)`undefined`)),t.if((0,W._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,W._)`${e.evaluated}.items`,(0,W._)`undefined`))}function no(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,W._)`/*# sourceURL=${r} */`:W.nil}function Y$(e,t){if(ru(e)&&(nu(e),tu(e))){J$(e,t);return}(0,Qc.boolOrEmptySchema)(e,t)}function tu({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function ru(e){return typeof e.schema!="boolean"}function J$(e,t){const{schema:r,gen:n,opts:a}=e;a.$comment&&r.$comment&&su(e),eb(e),tb(e);const s=n.const("_errs",X.default.errors);au(e,s),n.var(t,(0,W._)`${s} === ${X.default.errors}`)}function nu(e){(0,yt.checkUnknownRules)(e),X$(e)}function au(e,t){if(e.opts.jtd)return ao(e,[],!1,t);const r=(0,ro.getSchemaTypes)(e.schema),n=(0,ro.coerceAndCheckDataType)(e,r);ao(e,r,!n,t)}function X$(e){const{schema:t,errSchemaPath:r,opts:n,self:a}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,yt.schemaHasRulesButRef)(t,a.RULES)&&a.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function Q$(e){const{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,yt.checkStrictMode)(e,"default is ignored in the schema root")}function eb(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,B$.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function tb(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function su({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:a}){const s=r.$comment;if(a.$comment===!0)e.code((0,W._)`${X.default.self}.logger.log(${s})`);else if(typeof a.$comment=="function"){const i=(0,W.str)`${n}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code((0,W._)`${X.default.self}.opts.$comment(${s}, ${i}, ${o}.schema)`)}}function rb(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:a,opts:s}=e;r.$async?t.if((0,W._)`${X.default.errors} === 0`,()=>t.return(X.default.data),()=>t.throw((0,W._)`new ${a}(${X.default.vErrors})`)):(t.assign((0,W._)`${n}.errors`,X.default.vErrors),s.unevaluated&&nb(e),t.return((0,W._)`${X.default.errors} === 0`))}function nb({gen:e,evaluated:t,props:r,items:n}){r instanceof W.Name&&e.assign((0,W._)`${t}.props`,r),n instanceof W.Name&&e.assign((0,W._)`${t}.items`,n)}function ao(e,t,r,n){const{gen:a,schema:s,data:i,allErrors:o,opts:u,self:c}=e,{RULES:l}=c;if(s.$ref&&(u.ignoreKeywordsWithRef||!(0,yt.schemaHasRulesButRef)(s,l))){a.block(()=>cu(e,"$ref",l.all.$ref.definition));return}u.jtd||ab(e,t),a.block(()=>{for(const g of l.rules)f(g);f(l.post)});function f(g){(0,ps.shouldUseGroup)(s,g)&&(g.type?(a.if((0,Gn.checkDataType)(g.type,i,u.strictNumbers)),so(e,g),t.length===1&&t[0]===g.type&&r&&(a.else(),(0,Gn.reportTypeError)(e)),a.endIf()):so(e,g),o||a.if((0,W._)`${X.default.errors} === ${n||0}`))}}function so(e,t){const{gen:r,schema:n,opts:{useDefaults:a}}=e;a&&(0,q$.assignDefaults)(e,t.type),r.block(()=>{for(const s of t.rules)(0,ps.shouldUseRule)(n,s)&&cu(e,s.keyword,s.definition,t.type)})}function ab(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(sb(e,t),e.opts.allowUnionTypes||ib(e,t),ob(e,e.dataTypes))}function sb(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{iu(e.dataTypes,r)||ys(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),ub(e,t)}}function ib(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&ys(e,"use allowUnionTypes to allow union type keyword")}function ob(e,t){const r=e.self.RULES.all;for(const n in r){const a=r[n];if(typeof a=="object"&&(0,ps.shouldUseRule)(e.schema,a)){const{type:s}=a.definition;s.length&&!s.some(i=>cb(t,i))&&ys(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}function cb(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function iu(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function ub(e,t){const r=[];for(const n of e.dataTypes)iu(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function ys(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,yt.checkStrictMode)(e,t,e.opts.strictTypes)}class ou{constructor(t,r,n){if((0,qr.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,yt.schemaRefOrVal)(t,this.schema,n,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",uu(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,qr.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",X.default.errors))}result(t,r,n){this.failResult((0,W.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():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,W.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);const{schemaCode:r}=this;this.fail((0,W._)`${r} !== undefined && (${(0,W.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?Rr.reportExtraError:Rr.reportError)(this,this.def.error,r)}$dataError(){(0,Rr.reportError)(this,this.def.$dataError||Rr.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Rr.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,n=W.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=W.nil,r=W.nil){if(!this.$data)return;const{gen:n,schemaCode:a,schemaType:s,def:i}=this;n.if((0,W.or)((0,W._)`${a} === undefined`,r)),t!==W.nil&&n.assign(t,!0),(s.length||i.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==W.nil&&n.assign(t,!1)),n.else()}invalid$data(){const{gen:t,schemaCode:r,schemaType:n,def:a,it:s}=this;return(0,W.or)(i(),o());function i(){if(n.length){if(!(r instanceof W.Name))throw new Error("ajv implementation error");const u=Array.isArray(n)?n:[n];return(0,W._)`${(0,Gn.checkDataTypes)(u,r,s.opts.strictNumbers,Gn.DataType.Wrong)}`}return W.nil}function o(){if(a.validateSchema){const u=t.scopeValue("validate$data",{ref:a.validateSchema});return(0,W._)`!${u}(${r})`}return W.nil}}subschema(t,r){const n=(0,Ta.getSubschema)(this.it,t);(0,Ta.extendSubschemaData)(n,this.it,t),(0,Ta.extendSubschemaMode)(n,t);const a={...this.it,...n,items:void 0,props:void 0};return Y$(a,r),a}mergeEvaluated(t,r){const{it:n,gen:a}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=yt.mergeEvaluated.props(a,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=yt.mergeEvaluated.items(a,t.items,n.items,r)))}mergeValidEvaluated(t,r){const{it:n,gen:a}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return a.if(r,()=>this.mergeEvaluated(t,W.Name)),!0}}Ke.KeywordCxt=ou;function cu(e,t,r,n){const a=new ou(e,r,t);"code"in r?r.code(a,n):a.$data&&r.validate?(0,qr.funcKeywordCode)(a,r):"macro"in r?(0,qr.macroKeywordCode)(a,r):(r.compile||r.validate)&&(0,qr.funcKeywordCode)(a,r)}const db=/^\/(?:[^~]|~0|~1)*$/,lb=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function uu(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let a,s;if(e==="")return X.default.rootData;if(e[0]==="/"){if(!db.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);a=e,s=X.default.rootData}else{const c=lb.exec(e);if(!c)throw new Error(`Invalid JSON-pointer: ${e}`);const l=+c[1];if(a=c[2],a==="#"){if(l>=t)throw new Error(u("property/index",l));return n[t-l]}if(l>t)throw new Error(u("data",l));if(s=r[t-l],!a)return s}let i=s;const o=a.split("/");for(const c of o)c&&(s=(0,W._)`${s}${(0,W.getProperty)((0,yt.unescapeJsonPointer)(c))}`,i=(0,W._)`${i} && ${s}`);return i;function u(c,l){return`Cannot access ${c} ${l} levels up, current level is ${t}`}}Ke.getData=uu;var gn={};Object.defineProperty(gn,"__esModule",{value:!0});class fb extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}gn.default=fb;var wr={};Object.defineProperty(wr,"__esModule",{value:!0});const Pa=Pe;class hb extends Error{constructor(t,r,n,a){super(a||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Pa.resolveUrl)(t,r,n),this.missingSchema=(0,Pa.normalizeId)((0,Pa.getFullPath)(t,this.missingRef))}}wr.default=hb;var Ae={};Object.defineProperty(Ae,"__esModule",{value:!0});Ae.resolveSchema=Ae.getCompilingSchema=Ae.resolveRef=Ae.compileSchema=Ae.SchemaEnv=void 0;const qe=ae,mb=gn,Ft=dt,We=Pe,io=F,pb=Ke;class ca{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=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,We.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}}Ae.SchemaEnv=ca;function _s(e){const t=du.call(this,e);if(t)return t;const r=(0,We.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:a}=this.opts.code,{ownProperties:s}=this.opts,i=new qe.CodeGen(this.scope,{es5:n,lines:a,ownProperties:s});let o;e.$async&&(o=i.scopeValue("Error",{ref:mb.default,code:(0,qe._)`require("ajv/dist/runtime/validation_error").default`}));const u=i.scopeName("validate");e.validateName=u;const c={gen:i,allErrors:this.opts.allErrors,data:Ft.default.data,parentData:Ft.default.parentData,parentDataProperty:Ft.default.parentDataProperty,dataNames:[Ft.default.data],dataPathArr:[qe.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,qe.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:o,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:qe.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,qe._)`""`,opts:this.opts,self:this};let l;try{this._compilations.add(e),(0,pb.validateFunctionCode)(c),i.optimize(this.opts.code.optimize);const f=i.toString();l=`${i.scopeRefs(Ft.default.scope)}return ${f}`,this.opts.code.process&&(l=this.opts.code.process(l,e));const S=new Function(`${Ft.default.self}`,`${Ft.default.scope}`,l)(this,this.scope.get());if(this.scope.value(u,{ref:S}),S.errors=null,S.schema=e.schema,S.schemaEnv=e,e.$async&&(S.$async=!0),this.opts.code.source===!0&&(S.source={validateName:u,validateCode:f,scopeValues:i._values}),this.opts.unevaluated){const{props:$,items:b}=c;S.evaluated={props:$ instanceof qe.Name?void 0:$,items:b instanceof qe.Name?void 0:b,dynamicProps:$ instanceof qe.Name,dynamicItems:b instanceof qe.Name},S.source&&(S.source.evaluated=(0,qe.stringify)(S.evaluated))}return e.validate=S,e}catch(f){throw delete e.validate,delete e.validateName,l&&this.logger.error("Error compiling schema, function code:",l),f}finally{this._compilations.delete(e)}}Ae.compileSchema=_s;function yb(e,t,r){var n;r=(0,We.resolveUrl)(this.opts.uriResolver,t,r);const a=e.refs[r];if(a)return a;let s=vb.call(this,e,r);if(s===void 0){const i=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:o}=this.opts;i&&(s=new ca({schema:i,schemaId:o,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=_b.call(this,s)}Ae.resolveRef=yb;function _b(e){return(0,We.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:_s.call(this,e)}function du(e){for(const t of this._compilations)if(gb(t,e))return t}Ae.getCompilingSchema=du;function gb(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function vb(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||ua.call(this,e,t)}function ua(e,t){const r=this.opts.uriResolver.parse(t),n=(0,We._getFullPath)(this.opts.uriResolver,r);let a=(0,We.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===a)return ja.call(this,r,e);const s=(0,We.normalizeId)(n),i=this.refs[s]||this.schemas[s];if(typeof i=="string"){const o=ua.call(this,e,i);return typeof(o==null?void 0:o.schema)!="object"?void 0:ja.call(this,r,o)}if(typeof(i==null?void 0:i.schema)=="object"){if(i.validate||_s.call(this,i),s===(0,We.normalizeId)(t)){const{schema:o}=i,{schemaId:u}=this.opts,c=o[u];return c&&(a=(0,We.resolveUrl)(this.opts.uriResolver,a,c)),new ca({schema:o,schemaId:u,root:e,baseId:a})}return ja.call(this,r,i)}}Ae.resolveSchema=ua;const $b=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function ja(e,{baseId:t,schema:r,root:n}){var a;if(((a=e.fragment)===null||a===void 0?void 0:a[0])!=="/")return;for(const o of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const u=r[(0,io.unescapeFragment)(o)];if(u===void 0)return;r=u;const c=typeof r=="object"&&r[this.opts.schemaId];!$b.has(o)&&c&&(t=(0,We.resolveUrl)(this.opts.uriResolver,t,c))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,io.schemaHasRulesButRef)(r,this.RULES)){const o=(0,We.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=ua.call(this,n,o)}const{schemaId:i}=this.opts;if(s=s||new ca({schema:r,schemaId:i,root:n,baseId:t}),s.schema!==s.root.schema)return s}const bb="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",wb="Meta-schema for $data reference (JSON AnySchema extension proposal)",Sb="object",Eb=["$data"],Tb={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},Pb=!1,jb={$id:bb,description:wb,type:Sb,required:Eb,properties:Tb,additionalProperties:Pb};var gs={},da={exports:{}};const Ob={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};var xb={HEX:Ob};const{HEX:kb}=xb,Cb=/^(?:(?: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 lu(e){if(hu(e,".")<3)return{host:e,isIPV4:!1};const t=e.match(Cb)||[],[r]=t;return r?{host:Ib(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}function oo(e,t=!1){let r="",n=!0;for(const a of e){if(kb[a]===void 0)return;a!=="0"&&n===!0&&(n=!1),n||(r+=a)}return t&&r.length===0&&(r="0"),r}function Nb(e){let t=0;const r={error:!1,address:"",zone:""},n=[],a=[];let s=!1,i=!1,o=!1;function u(){if(a.length){if(s===!1){const c=oo(a);if(c!==void 0)n.push(c);else return r.error=!0,!1}a.length=0}return!0}for(let c=0;c<e.length;c++){const l=e[c];if(!(l==="["||l==="]"))if(l===":"){if(i===!0&&(o=!0),!u())break;if(t++,n.push(":"),t>7){r.error=!0;break}c-1>=0&&e[c-1]===":"&&(i=!0);continue}else if(l==="%"){if(!u())break;s=!0}else{a.push(l);continue}}return a.length&&(s?r.zone=a.join(""):o?n.push(a.join("")):n.push(oo(a))),r.address=n.join(""),r}function fu(e){if(hu(e,":")<2)return{host:e,isIPV6:!1};const t=Nb(e);if(t.error)return{host:e,isIPV6:!1};{let r=t.address,n=t.address;return t.zone&&(r+="%"+t.zone,n+="%25"+t.zone),{host:r,escapedHost:n,isIPV6:!0}}}function Ib(e,t){let r="",n=!0;const a=e.length;for(let s=0;s<a;s++){const i=e[s];i==="0"&&n?(s+1<=a&&e[s+1]===t||s+1===a)&&(r+=i,n=!1):(i===t?n=!0:n=!1,r+=i)}return r}function hu(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}const co=/^\.\.?\//u,uo=/^\/\.(?:\/|$)/u,lo=/^\/\.\.(?:\/|$)/u,Ab=/^\/?(?:.|\n)*?(?=\/|$)/u;function Rb(e){const t=[];for(;e.length;)if(e.match(co))e=e.replace(co,"");else if(e.match(uo))e=e.replace(uo,"/");else if(e.match(lo))e=e.replace(lo,"/"),t.pop();else if(e==="."||e==="..")e="";else{const r=e.match(Ab);if(r){const n=r[0];e=e.slice(n.length),t.push(n)}else throw new Error("Unexpected dot segment condition")}return t.join("")}function Mb(e,t){const 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 Db(e){const t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push("@")),e.host!==void 0){let r=unescape(e.host);const n=lu(r);if(n.isIPV4)r=n.host;else{const a=fu(n.host);a.isIPV6===!0?r=`[${a.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}var Fb={recomposeAuthority:Db,normalizeComponentEncoding:Mb,removeDotSegments:Rb,normalizeIPv4:lu,normalizeIPv6:fu};const Vb=/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu,Lb=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function mu(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}function pu(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function yu(e){const t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function zb(e){return e.secure=mu(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function Ub(e){if((e.port===(mu(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){const[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 qb(e,t){if(!e.path)return e.error="URN can not be parsed",e;const r=e.path.match(Lb);if(r){const n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];const a=`${n}:${t.nid||e.nid}`,s=vs[a];e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function Bb(e,t){const r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),a=`${r}:${t.nid||n}`,s=vs[a];s&&(e=s.serialize(e,t));const i=e,o=e.nss;return i.path=`${n||t.nid}:${o}`,t.skipEscape=!0,i}function Zb(e,t){const r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!Vb.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function Wb(e){const t=e;return t.nss=(e.uuid||"").toLowerCase(),t}const _u={scheme:"http",domainHost:!0,parse:pu,serialize:yu},Hb={scheme:"https",domainHost:_u.domainHost,parse:pu,serialize:yu},An={scheme:"ws",domainHost:!0,parse:zb,serialize:Ub},Gb={scheme:"wss",domainHost:An.domainHost,parse:An.parse,serialize:An.serialize},Kb={scheme:"urn",parse:qb,serialize:Bb,skipNormalize:!0},Yb={scheme:"urn:uuid",parse:Zb,serialize:Wb,skipNormalize:!0},vs={http:_u,https:Hb,ws:An,wss:Gb,urn:Kb,"urn:uuid":Yb};var Jb=vs;const{normalizeIPv6:Xb,normalizeIPv4:Qb,removeDotSegments:Vr,recomposeAuthority:e0,normalizeComponentEncoding:jn}=Fb,$s=Jb;function t0(e,t){return typeof e=="string"?e=st(gt(e,t),t):typeof e=="object"&&(e=gt(st(e,t),t)),e}function r0(e,t,r){const n=Object.assign({scheme:"null"},r),a=gu(gt(e,n),gt(t,n),n,!0);return st(a,{...n,skipEscape:!0})}function gu(e,t,r,n){const a={};return n||(e=gt(st(e,r),r),t=gt(st(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(a.scheme=t.scheme,a.userinfo=t.userinfo,a.host=t.host,a.port=t.port,a.path=Vr(t.path||""),a.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(a.userinfo=t.userinfo,a.host=t.host,a.port=t.port,a.path=Vr(t.path||""),a.query=t.query):(t.path?(t.path.charAt(0)==="/"?a.path=Vr(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?a.path="/"+t.path:e.path?a.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:a.path=t.path,a.path=Vr(a.path)),a.query=t.query):(a.path=e.path,t.query!==void 0?a.query=t.query:a.query=e.query),a.userinfo=e.userinfo,a.host=e.host,a.port=e.port),a.scheme=e.scheme),a.fragment=t.fragment,a}function n0(e,t,r){return typeof e=="string"?(e=unescape(e),e=st(jn(gt(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=st(jn(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=st(jn(gt(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=st(jn(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}function st(e,t){const 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:""},n=Object.assign({},t),a=[],s=$s[(n.scheme||r.scheme||"").toLowerCase()];s&&s.serialize&&s.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&a.push(r.scheme,":");const i=e0(r);if(i!==void 0&&(n.reference!=="suffix"&&a.push("//"),a.push(i),r.path&&r.path.charAt(0)!=="/"&&a.push("/")),r.path!==void 0){let o=r.path;!n.absolutePath&&(!s||!s.absolutePath)&&(o=Vr(o)),i===void 0&&(o=o.replace(/^\/\//u,"/%2F")),a.push(o)}return r.query!==void 0&&a.push("?",r.query),r.fragment!==void 0&&a.push("#",r.fragment),a.join("")}const a0=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function s0(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||a0[t])return!0;return!1}const i0=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function gt(e,t){const r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},a=e.indexOf("%")!==-1;let s=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);const i=e.match(i0);if(i){if(n.scheme=i[1],n.userinfo=i[3],n.host=i[4],n.port=parseInt(i[5],10),n.path=i[6]||"",n.query=i[7],n.fragment=i[8],isNaN(n.port)&&(n.port=i[5]),n.host){const u=Qb(n.host);if(u.isIPV4===!1){const c=Xb(u.host);n.host=c.host.toLowerCase(),s=c.isIPV6}else n.host=u.host,s=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");const o=$s[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!o||!o.unicodeSupport)&&n.host&&(r.domainHost||o&&o.domainHost)&&s===!1&&s0(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}(!o||o&&!o.skipNormalize)&&(a&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),a&&n.host!==void 0&&(n.host=unescape(n.host)),n.path&&(n.path=escape(unescape(n.path))),n.fragment&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),o&&o.parse&&o.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}const bs={SCHEMES:$s,normalize:t0,resolve:r0,resolveComponents:gu,equal:n0,serialize:st,parse:gt};da.exports=bs;da.exports.default=bs;da.exports.fastUri=bs;var o0=da.exports;Object.defineProperty(gs,"__esModule",{value:!0});const vu=o0;vu.code='require("ajv/dist/runtime/uri").default';gs.default=vu;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=Ke;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=ae;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=gn,a=wr,s=Jt,i=Ae,o=ae,u=Pe,c=be,l=F,f=jb,g=gs,S=(C,v)=>new RegExp(C,v);S.code="new RegExp";const $=["removeAdditional","useDefaults","coerceTypes"],b=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),y={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."},h={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},w=200;function k(C){var v,O,E,d,m,j,z,Z,oe,se,ye,q,Qe,et,$t,Tr,Pr,jr,Mt,Or,xr,P,M,U,H;const Q=C.strict,ie=(v=C.code)===null||v===void 0?void 0:v.optimize,ve=ie===!0||ie===void 0?1:ie||0,Re=(E=(O=C.code)===null||O===void 0?void 0:O.regExp)!==null&&E!==void 0?E:S,kr=(d=C.uriResolver)!==null&&d!==void 0?d:g.default;return{strictSchema:(j=(m=C.strictSchema)!==null&&m!==void 0?m:Q)!==null&&j!==void 0?j:!0,strictNumbers:(Z=(z=C.strictNumbers)!==null&&z!==void 0?z:Q)!==null&&Z!==void 0?Z:!0,strictTypes:(se=(oe=C.strictTypes)!==null&&oe!==void 0?oe:Q)!==null&&se!==void 0?se:"log",strictTuples:(q=(ye=C.strictTuples)!==null&&ye!==void 0?ye:Q)!==null&&q!==void 0?q:"log",strictRequired:(et=(Qe=C.strictRequired)!==null&&Qe!==void 0?Qe:Q)!==null&&et!==void 0?et:!1,code:C.code?{...C.code,optimize:ve,regExp:Re}:{optimize:ve,regExp:Re},loopRequired:($t=C.loopRequired)!==null&&$t!==void 0?$t:w,loopEnum:(Tr=C.loopEnum)!==null&&Tr!==void 0?Tr:w,meta:(Pr=C.meta)!==null&&Pr!==void 0?Pr:!0,messages:(jr=C.messages)!==null&&jr!==void 0?jr:!0,inlineRefs:(Mt=C.inlineRefs)!==null&&Mt!==void 0?Mt:!0,schemaId:(Or=C.schemaId)!==null&&Or!==void 0?Or:"$id",addUsedSchema:(xr=C.addUsedSchema)!==null&&xr!==void 0?xr:!0,validateSchema:(P=C.validateSchema)!==null&&P!==void 0?P:!0,validateFormats:(M=C.validateFormats)!==null&&M!==void 0?M:!0,unicodeRegExp:(U=C.unicodeRegExp)!==null&&U!==void 0?U:!0,int32range:(H=C.int32range)!==null&&H!==void 0?H:!0,uriResolver:kr}}class T{constructor(v={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,v=this.opts={...v,...k(v)};const{es5:O,lines:E}=this.opts.code;this.scope=new o.ValueScope({scope:{},prefixes:b,es5:O,lines:E}),this.logger=ke(v.logger);const d=v.validateFormats;v.validateFormats=!1,this.RULES=(0,s.getRules)(),p.call(this,y,v,"NOT SUPPORTED"),p.call(this,h,v,"DEPRECATED","warn"),this._metaOpts=we.call(this),v.formats&&G.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),v.keywords&&K.call(this,v.keywords),typeof v.meta=="object"&&this.addMetaSchema(v.meta),A.call(this),v.validateFormats=d}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:v,meta:O,schemaId:E}=this.opts;let d=f;E==="id"&&(d={...f},d.id=d.$id,delete d.$id),O&&v&&this.addMetaSchema(d,d[E],!1)}defaultMeta(){const{meta:v,schemaId:O}=this.opts;return this.opts.defaultMeta=typeof v=="object"?v[O]||v:void 0}validate(v,O){let E;if(typeof v=="string"){if(E=this.getSchema(v),!E)throw new Error(`no schema with key or ref "${v}"`)}else E=this.compile(v);const d=E(O);return"$async"in E||(this.errors=E.errors),d}compile(v,O){const E=this._addSchema(v,O);return E.validate||this._compileSchemaEnv(E)}compileAsync(v,O){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:E}=this.opts;return d.call(this,v,O);async function d(se,ye){await m.call(this,se.$schema);const q=this._addSchema(se,ye);return q.validate||j.call(this,q)}async function m(se){se&&!this.getSchema(se)&&await d.call(this,{$ref:se},!0)}async function j(se){try{return this._compileSchemaEnv(se)}catch(ye){if(!(ye instanceof a.default))throw ye;return z.call(this,ye),await Z.call(this,ye.missingSchema),j.call(this,se)}}function z({missingSchema:se,missingRef:ye}){if(this.refs[se])throw new Error(`AnySchema ${se} is loaded but ${ye} cannot be resolved`)}async function Z(se){const ye=await oe.call(this,se);this.refs[se]||await m.call(this,ye.$schema),this.refs[se]||this.addSchema(ye,se,O)}async function oe(se){const ye=this._loading[se];if(ye)return ye;try{return await(this._loading[se]=E(se))}finally{delete this._loading[se]}}}addSchema(v,O,E,d=this.opts.validateSchema){if(Array.isArray(v)){for(const j of v)this.addSchema(j,void 0,E,d);return this}let m;if(typeof v=="object"){const{schemaId:j}=this.opts;if(m=v[j],m!==void 0&&typeof m!="string")throw new Error(`schema ${j} must be string`)}return O=(0,u.normalizeId)(O||m),this._checkUnique(O),this.schemas[O]=this._addSchema(v,E,O,d,!0),this}addMetaSchema(v,O,E=this.opts.validateSchema){return this.addSchema(v,O,!0,E),this}validateSchema(v,O){if(typeof v=="boolean")return!0;let E;if(E=v.$schema,E!==void 0&&typeof E!="string")throw new Error("$schema must be a string");if(E=E||this.opts.defaultMeta||this.defaultMeta(),!E)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const d=this.validate(E,v);if(!d&&O){const m="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(m);else throw new Error(m)}return d}getSchema(v){let O;for(;typeof(O=x.call(this,v))=="string";)v=O;if(O===void 0){const{schemaId:E}=this.opts,d=new i.SchemaEnv({schema:{},schemaId:E});if(O=i.resolveSchema.call(this,d,v),!O)return;this.refs[v]=O}return O.validate||this._compileSchemaEnv(O)}removeSchema(v){if(v instanceof RegExp)return this._removeAllSchemas(this.schemas,v),this._removeAllSchemas(this.refs,v),this;switch(typeof v){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const O=x.call(this,v);return typeof O=="object"&&this._cache.delete(O.schema),delete this.schemas[v],delete this.refs[v],this}case"object":{const O=v;this._cache.delete(O);let E=v[this.opts.schemaId];return E&&(E=(0,u.normalizeId)(E),delete this.schemas[E],delete this.refs[E]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(v){for(const O of v)this.addKeyword(O);return this}addKeyword(v,O){let E;if(typeof v=="string")E=v,typeof O=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),O.keyword=E);else if(typeof v=="object"&&O===void 0){if(O=v,E=O.keyword,Array.isArray(E)&&!E.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Se.call(this,E,O),!O)return(0,l.eachItem)(E,m=>Fe.call(this,m)),this;lt.call(this,O);const d={...O,type:(0,c.getJSONTypes)(O.type),schemaType:(0,c.getJSONTypes)(O.schemaType)};return(0,l.eachItem)(E,d.type.length===0?m=>Fe.call(this,m,d):m=>d.type.forEach(j=>Fe.call(this,m,d,j))),this}getKeyword(v){const O=this.RULES.all[v];return typeof O=="object"?O.definition:!!O}removeKeyword(v){const{RULES:O}=this;delete O.keywords[v],delete O.all[v];for(const E of O.rules){const d=E.rules.findIndex(m=>m.keyword===v);d>=0&&E.rules.splice(d,1)}return this}addFormat(v,O){return typeof O=="string"&&(O=new RegExp(O)),this.formats[v]=O,this}errorsText(v=this.errors,{separator:O=", ",dataVar:E="data"}={}){return!v||v.length===0?"No errors":v.map(d=>`${E}${d.instancePath} ${d.message}`).reduce((d,m)=>d+O+m)}$dataMetaSchema(v,O){const E=this.RULES.all;v=JSON.parse(JSON.stringify(v));for(const d of O){const m=d.split("/").slice(1);let j=v;for(const z of m)j=j[z];for(const z in E){const Z=E[z];if(typeof Z!="object")continue;const{$data:oe}=Z.definition,se=j[z];oe&&se&&(j[z]=L(se))}}return v}_removeAllSchemas(v,O){for(const E in v){const d=v[E];(!O||O.test(E))&&(typeof d=="string"?delete v[E]:d&&!d.meta&&(this._cache.delete(d.schema),delete v[E]))}}_addSchema(v,O,E,d=this.opts.validateSchema,m=this.opts.addUsedSchema){let j;const{schemaId:z}=this.opts;if(typeof v=="object")j=v[z];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof v!="boolean")throw new Error("schema must be object or boolean")}let Z=this._cache.get(v);if(Z!==void 0)return Z;E=(0,u.normalizeId)(j||E);const oe=u.getSchemaRefs.call(this,v,E);return Z=new i.SchemaEnv({schema:v,schemaId:z,meta:O,baseId:E,localRefs:oe}),this._cache.set(Z.schema,Z),m&&!E.startsWith("#")&&(E&&this._checkUnique(E),this.refs[E]=Z),d&&this.validateSchema(v,!0),Z}_checkUnique(v){if(this.schemas[v]||this.refs[v])throw new Error(`schema with key or id "${v}" already exists`)}_compileSchemaEnv(v){if(v.meta?this._compileMetaSchema(v):i.compileSchema.call(this,v),!v.validate)throw new Error("ajv implementation error");return v.validate}_compileMetaSchema(v){const O=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,v)}finally{this.opts=O}}}T.ValidationError=n.default,T.MissingRefError=a.default,e.default=T;function p(C,v,O,E="error"){for(const d in C){const m=d;m in v&&this.logger[E](`${O}: option ${d}. ${C[m]}`)}}function x(C){return C=(0,u.normalizeId)(C),this.schemas[C]||this.refs[C]}function A(){const C=this.opts.schemas;if(C)if(Array.isArray(C))this.addSchema(C);else for(const v in C)this.addSchema(C[v],v)}function G(){for(const C in this.opts.formats){const v=this.opts.formats[C];v&&this.addFormat(C,v)}}function K(C){if(Array.isArray(C)){this.addVocabulary(C);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const v in C){const O=C[v];O.keyword||(O.keyword=v),this.addKeyword(O)}}function we(){const C={...this.opts};for(const v of $)delete C[v];return C}const xe={log(){},warn(){},error(){}};function ke(C){if(C===!1)return xe;if(C===void 0)return console;if(C.log&&C.warn&&C.error)return C;throw new Error("logger must implement log, warn and error methods")}const ge=/^[a-z_$][a-z0-9_$:-]*$/i;function Se(C,v){const{RULES:O}=this;if((0,l.eachItem)(C,E=>{if(O.keywords[E])throw new Error(`Keyword ${E} is already defined`);if(!ge.test(E))throw new Error(`Keyword ${E} has invalid name`)}),!!v&&v.$data&&!("code"in v||"validate"in v))throw new Error('$data keyword must have "code" or "validate" function')}function Fe(C,v,O){var E;const d=v==null?void 0:v.post;if(O&&d)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:m}=this;let j=d?m.post:m.rules.find(({type:Z})=>Z===O);if(j||(j={type:O,rules:[]},m.rules.push(j)),m.keywords[C]=!0,!v)return;const z={keyword:C,definition:{...v,type:(0,c.getJSONTypes)(v.type),schemaType:(0,c.getJSONTypes)(v.schemaType)}};v.before?Ve.call(this,j,z,v.before):j.rules.push(z),m.all[C]=z,(E=v.implements)===null||E===void 0||E.forEach(Z=>this.addKeyword(Z))}function Ve(C,v,O){const E=C.rules.findIndex(d=>d.keyword===O);E>=0?C.rules.splice(E,0,v):(C.rules.push(v),this.logger.warn(`rule ${O} is not defined`))}function lt(C){let{metaSchema:v}=C;v!==void 0&&(C.$data&&this.opts.$data&&(v=L(v)),C.validateSchema=this.compile(v,!0))}const Le={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function L(C){return{anyOf:[C,Le]}}})(Nc);var ws={},Ss={},Es={};Object.defineProperty(Es,"__esModule",{value:!0});const c0={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Es.default=c0;var Xt={};Object.defineProperty(Xt,"__esModule",{value:!0});Xt.callRef=Xt.getValidate=void 0;const u0=wr,fo=ne,Ie=ae,or=dt,ho=Ae,On=F,d0={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:a,schemaEnv:s,validateName:i,opts:o,self:u}=n,{root:c}=s;if((r==="#"||r==="#/")&&a===c.baseId)return f();const l=ho.resolveRef.call(u,c,a,r);if(l===void 0)throw new u0.default(n.opts.uriResolver,a,r);if(l instanceof ho.SchemaEnv)return g(l);return S(l);function f(){if(s===c)return Rn(e,i,s,s.$async);const $=t.scopeValue("root",{ref:c});return Rn(e,(0,Ie._)`${$}.validate`,c,c.$async)}function g($){const b=$u(e,$);Rn(e,b,$,$.$async)}function S($){const b=t.scopeValue("schema",o.code.source===!0?{ref:$,code:(0,Ie.stringify)($)}:{ref:$}),y=t.name("valid"),h=e.subschema({schema:$,dataTypes:[],schemaPath:Ie.nil,topSchemaRef:b,errSchemaPath:r},y);e.mergeEvaluated(h),e.ok(y)}}};function $u(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Ie._)`${r.scopeValue("wrapper",{ref:t})}.validate`}Xt.getValidate=$u;function Rn(e,t,r,n){const{gen:a,it:s}=e,{allErrors:i,schemaEnv:o,opts:u}=s,c=u.passContext?or.default.this:Ie.nil;n?l():f();function l(){if(!o.$async)throw new Error("async schema referenced by sync schema");const $=a.let("valid");a.try(()=>{a.code((0,Ie._)`await ${(0,fo.callValidateCode)(e,t,c)}`),S(t),i||a.assign($,!0)},b=>{a.if((0,Ie._)`!(${b} instanceof ${s.ValidationError})`,()=>a.throw(b)),g(b),i||a.assign($,!1)}),e.ok($)}function f(){e.result((0,fo.callValidateCode)(e,t,c),()=>S(t),()=>g(t))}function g($){const b=(0,Ie._)`${$}.errors`;a.assign(or.default.vErrors,(0,Ie._)`${or.default.vErrors} === null ? ${b} : ${or.default.vErrors}.concat(${b})`),a.assign(or.default.errors,(0,Ie._)`${or.default.vErrors}.length`)}function S($){var b;if(!s.opts.unevaluated)return;const y=(b=r==null?void 0:r.validate)===null||b===void 0?void 0:b.evaluated;if(s.props!==!0)if(y&&!y.dynamicProps)y.props!==void 0&&(s.props=On.mergeEvaluated.props(a,y.props,s.props));else{const h=a.var("props",(0,Ie._)`${$}.evaluated.props`);s.props=On.mergeEvaluated.props(a,h,s.props,Ie.Name)}if(s.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(s.items=On.mergeEvaluated.items(a,y.items,s.items));else{const h=a.var("items",(0,Ie._)`${$}.evaluated.items`);s.items=On.mergeEvaluated.items(a,h,s.items,Ie.Name)}}}Xt.callRef=Rn;Xt.default=d0;Object.defineProperty(Ss,"__esModule",{value:!0});const l0=Es,f0=Xt,h0=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",l0.default,f0.default];Ss.default=h0;var Ts={},Ps={};Object.defineProperty(Ps,"__esModule",{value:!0});const Kn=ae,Pt=Kn.operators,Yn={maximum:{okStr:"<=",ok:Pt.LTE,fail:Pt.GT},minimum:{okStr:">=",ok:Pt.GTE,fail:Pt.LT},exclusiveMaximum:{okStr:"<",ok:Pt.LT,fail:Pt.GTE},exclusiveMinimum:{okStr:">",ok:Pt.GT,fail:Pt.LTE}},m0={message:({keyword:e,schemaCode:t})=>(0,Kn.str)`must be ${Yn[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Kn._)`{comparison: ${Yn[e].okStr}, limit: ${t}}`},p0={keyword:Object.keys(Yn),type:"number",schemaType:"number",$data:!0,error:m0,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Kn._)`${r} ${Yn[t].fail} ${n} || isNaN(${r})`)}};Ps.default=p0;var js={};Object.defineProperty(js,"__esModule",{value:!0});const Br=ae,y0={message:({schemaCode:e})=>(0,Br.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Br._)`{multipleOf: ${e}}`},_0={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:y0,code(e){const{gen:t,data:r,schemaCode:n,it:a}=e,s=a.opts.multipleOfPrecision,i=t.let("res"),o=s?(0,Br._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${s}`:(0,Br._)`${i} !== parseInt(${i})`;e.fail$data((0,Br._)`(${n} === 0 || (${i} = ${r}/${n}, ${o}))`)}};js.default=_0;var Os={},xs={};Object.defineProperty(xs,"__esModule",{value:!0});function bu(e){const t=e.length;let r=0,n=0,a;for(;n<t;)r++,a=e.charCodeAt(n++),a>=55296&&a<=56319&&n<t&&(a=e.charCodeAt(n),(a&64512)===56320&&n++);return r}xs.default=bu;bu.code='require("ajv/dist/runtime/ucs2length").default';Object.defineProperty(Os,"__esModule",{value:!0});const Ut=ae,g0=F,v0=xs,$0={message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,Ut.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,Ut._)`{limit: ${e}}`},b0={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:$0,code(e){const{keyword:t,data:r,schemaCode:n,it:a}=e,s=t==="maxLength"?Ut.operators.GT:Ut.operators.LT,i=a.opts.unicode===!1?(0,Ut._)`${r}.length`:(0,Ut._)`${(0,g0.useFunc)(e.gen,v0.default)}(${r})`;e.fail$data((0,Ut._)`${i} ${s} ${n}`)}};Os.default=b0;var ks={};Object.defineProperty(ks,"__esModule",{value:!0});const w0=ne,Jn=ae,S0={message:({schemaCode:e})=>(0,Jn.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Jn._)`{pattern: ${e}}`},E0={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:S0,code(e){const{data:t,$data:r,schema:n,schemaCode:a,it:s}=e,i=s.opts.unicodeRegExp?"u":"",o=r?(0,Jn._)`(new RegExp(${a}, ${i}))`:(0,w0.usePattern)(e,n);e.fail$data((0,Jn._)`!${o}.test(${t})`)}};ks.default=E0;var Cs={};Object.defineProperty(Cs,"__esModule",{value:!0});const Zr=ae,T0={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,Zr.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Zr._)`{limit: ${e}}`},P0={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:T0,code(e){const{keyword:t,data:r,schemaCode:n}=e,a=t==="maxProperties"?Zr.operators.GT:Zr.operators.LT;e.fail$data((0,Zr._)`Object.keys(${r}).length ${a} ${n}`)}};Cs.default=P0;var Ns={};Object.defineProperty(Ns,"__esModule",{value:!0});const Mr=ne,Wr=ae,j0=F,O0={message:({params:{missingProperty:e}})=>(0,Wr.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Wr._)`{missingProperty: ${e}}`},x0={keyword:"required",type:"object",schemaType:"array",$data:!0,error:O0,code(e){const{gen:t,schema:r,schemaCode:n,data:a,$data:s,it:i}=e,{opts:o}=i;if(!s&&r.length===0)return;const u=r.length>=o.loopRequired;if(i.allErrors?c():l(),o.strictRequired){const S=e.parentSchema.properties,{definedProperties:$}=e.it;for(const b of r)if((S==null?void 0:S[b])===void 0&&!$.has(b)){const y=i.schemaEnv.baseId+i.errSchemaPath,h=`required property "${b}" is not defined at "${y}" (strictRequired)`;(0,j0.checkStrictMode)(i,h,i.opts.strictRequired)}}function c(){if(u||s)e.block$data(Wr.nil,f);else for(const S of r)(0,Mr.checkReportMissingProp)(e,S)}function l(){const S=t.let("missing");if(u||s){const $=t.let("valid",!0);e.block$data($,()=>g(S,$)),e.ok($)}else t.if((0,Mr.checkMissingProp)(e,r,S)),(0,Mr.reportMissingProp)(e,S),t.else()}function f(){t.forOf("prop",n,S=>{e.setParams({missingProperty:S}),t.if((0,Mr.noPropertyInData)(t,a,S,o.ownProperties),()=>e.error())})}function g(S,$){e.setParams({missingProperty:S}),t.forOf(S,n,()=>{t.assign($,(0,Mr.propertyInData)(t,a,S,o.ownProperties)),t.if((0,Wr.not)($),()=>{e.error(),t.break()})},Wr.nil)}}};Ns.default=x0;var Is={};Object.defineProperty(Is,"__esModule",{value:!0});const Hr=ae,k0={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,Hr.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,Hr._)`{limit: ${e}}`},C0={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:k0,code(e){const{keyword:t,data:r,schemaCode:n}=e,a=t==="maxItems"?Hr.operators.GT:Hr.operators.LT;e.fail$data((0,Hr._)`${r}.length ${a} ${n}`)}};Is.default=C0;var As={},vn={};Object.defineProperty(vn,"__esModule",{value:!0});const wu=Gc;wu.code='require("ajv/dist/runtime/equal").default';vn.default=wu;Object.defineProperty(As,"__esModule",{value:!0});const Oa=be,Te=ae,N0=F,I0=vn,A0={message:({params:{i:e,j:t}})=>(0,Te.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Te._)`{i: ${e}, j: ${t}}`},R0={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:A0,code(e){const{gen:t,data:r,$data:n,schema:a,parentSchema:s,schemaCode:i,it:o}=e;if(!n&&!a)return;const u=t.let("valid"),c=s.items?(0,Oa.getSchemaTypes)(s.items):[];e.block$data(u,l,(0,Te._)`${i} === false`),e.ok(u);function l(){const $=t.let("i",(0,Te._)`${r}.length`),b=t.let("j");e.setParams({i:$,j:b}),t.assign(u,!0),t.if((0,Te._)`${$} > 1`,()=>(f()?g:S)($,b))}function f(){return c.length>0&&!c.some($=>$==="object"||$==="array")}function g($,b){const y=t.name("item"),h=(0,Oa.checkDataTypes)(c,y,o.opts.strictNumbers,Oa.DataType.Wrong),w=t.const("indices",(0,Te._)`{}`);t.for((0,Te._)`;${$}--;`,()=>{t.let(y,(0,Te._)`${r}[${$}]`),t.if(h,(0,Te._)`continue`),c.length>1&&t.if((0,Te._)`typeof ${y} == "string"`,(0,Te._)`${y} += "_"`),t.if((0,Te._)`typeof ${w}[${y}] == "number"`,()=>{t.assign(b,(0,Te._)`${w}[${y}]`),e.error(),t.assign(u,!1).break()}).code((0,Te._)`${w}[${y}] = ${$}`)})}function S($,b){const y=(0,N0.useFunc)(t,I0.default),h=t.name("outer");t.label(h).for((0,Te._)`;${$}--;`,()=>t.for((0,Te._)`${b} = ${$}; ${b}--;`,()=>t.if((0,Te._)`${y}(${r}[${$}], ${r}[${b}])`,()=>{e.error(),t.assign(u,!1).break(h)})))}}};As.default=R0;var Rs={};Object.defineProperty(Rs,"__esModule",{value:!0});const Ha=ae,M0=F,D0=vn,F0={message:"must be equal to constant",params:({schemaCode:e})=>(0,Ha._)`{allowedValue: ${e}}`},V0={keyword:"const",$data:!0,error:F0,code(e){const{gen:t,data:r,$data:n,schemaCode:a,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,Ha._)`!${(0,M0.useFunc)(t,D0.default)}(${r}, ${a})`):e.fail((0,Ha._)`${s} !== ${r}`)}};Rs.default=V0;var Ms={};Object.defineProperty(Ms,"__esModule",{value:!0});const Lr=ae,L0=F,z0=vn,U0={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Lr._)`{allowedValues: ${e}}`},q0={keyword:"enum",schemaType:"array",$data:!0,error:U0,code(e){const{gen:t,data:r,$data:n,schema:a,schemaCode:s,it:i}=e;if(!n&&a.length===0)throw new Error("enum must have non-empty array");const o=a.length>=i.opts.loopEnum;let u;const c=()=>u??(u=(0,L0.useFunc)(t,z0.default));let l;if(o||n)l=t.let("valid"),e.block$data(l,f);else{if(!Array.isArray(a))throw new Error("ajv implementation error");const S=t.const("vSchema",s);l=(0,Lr.or)(...a.map(($,b)=>g(S,b)))}e.pass(l);function f(){t.assign(l,!1),t.forOf("v",s,S=>t.if((0,Lr._)`${c()}(${r}, ${S})`,()=>t.assign(l,!0).break()))}function g(S,$){const b=a[$];return typeof b=="object"&&b!==null?(0,Lr._)`${c()}(${r}, ${S}[${$}])`:(0,Lr._)`${r} === ${b}`}}};Ms.default=q0;Object.defineProperty(Ts,"__esModule",{value:!0});const B0=Ps,Z0=js,W0=Os,H0=ks,G0=Cs,K0=Ns,Y0=Is,J0=As,X0=Rs,Q0=Ms,ew=[B0.default,Z0.default,W0.default,H0.default,G0.default,K0.default,Y0.default,J0.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},X0.default,Q0.default];Ts.default=ew;var Ds={},Sr={};Object.defineProperty(Sr,"__esModule",{value:!0});Sr.validateAdditionalItems=void 0;const qt=ae,Ga=F,tw={message:({params:{len:e}})=>(0,qt.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,qt._)`{limit: ${e}}`},rw={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:tw,code(e){const{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Ga.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Su(e,n)}};function Su(e,t){const{gen:r,schema:n,data:a,keyword:s,it:i}=e;i.items=!0;const o=r.const("len",(0,qt._)`${a}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,qt._)`${o} <= ${t.length}`);else if(typeof n=="object"&&!(0,Ga.alwaysValidSchema)(i,n)){const c=r.var("valid",(0,qt._)`${o} <= ${t.length}`);r.if((0,qt.not)(c),()=>u(c)),e.ok(c)}function u(c){r.forRange("i",t.length,o,l=>{e.subschema({keyword:s,dataProp:l,dataPropType:Ga.Type.Num},c),i.allErrors||r.if((0,qt.not)(c),()=>r.break())})}}Sr.validateAdditionalItems=Su;Sr.default=rw;var Fs={},Er={};Object.defineProperty(Er,"__esModule",{value:!0});Er.validateTuple=void 0;const mo=ae,Mn=F,nw=ne,aw={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return Eu(e,"additionalItems",t);r.items=!0,!(0,Mn.alwaysValidSchema)(r,t)&&e.ok((0,nw.validateArray)(e))}};function Eu(e,t,r=e.schema){const{gen:n,parentSchema:a,data:s,keyword:i,it:o}=e;l(a),o.opts.unevaluated&&r.length&&o.items!==!0&&(o.items=Mn.mergeEvaluated.items(n,r.length,o.items));const u=n.name("valid"),c=n.const("len",(0,mo._)`${s}.length`);r.forEach((f,g)=>{(0,Mn.alwaysValidSchema)(o,f)||(n.if((0,mo._)`${c} > ${g}`,()=>e.subschema({keyword:i,schemaProp:g,dataProp:g},u)),e.ok(u))});function l(f){const{opts:g,errSchemaPath:S}=o,$=r.length,b=$===f.minItems&&($===f.maxItems||f[t]===!1);if(g.strictTuples&&!b){const y=`"${i}" is ${$}-tuple, but minItems or maxItems/${t} are not specified or different at path "${S}"`;(0,Mn.checkStrictMode)(o,y,g.strictTuples)}}}Er.validateTuple=Eu;Er.default=aw;Object.defineProperty(Fs,"__esModule",{value:!0});const sw=Er,iw={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,sw.validateTuple)(e,"items")};Fs.default=iw;var Vs={};Object.defineProperty(Vs,"__esModule",{value:!0});const po=ae,ow=F,cw=ne,uw=Sr,dw={message:({params:{len:e}})=>(0,po.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,po._)`{limit: ${e}}`},lw={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:dw,code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:a}=r;n.items=!0,!(0,ow.alwaysValidSchema)(n,t)&&(a?(0,uw.validateAdditionalItems)(e,a):e.ok((0,cw.validateArray)(e)))}};Vs.default=lw;var Ls={};Object.defineProperty(Ls,"__esModule",{value:!0});const Ue=ae,xn=F,fw={message:({params:{min:e,max:t}})=>t===void 0?(0,Ue.str)`must contain at least ${e} valid item(s)`:(0,Ue.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Ue._)`{minContains: ${e}}`:(0,Ue._)`{minContains: ${e}, maxContains: ${t}}`},hw={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:fw,code(e){const{gen:t,schema:r,parentSchema:n,data:a,it:s}=e;let i,o;const{minContains:u,maxContains:c}=n;s.opts.next?(i=u===void 0?1:u,o=c):i=1;const l=t.const("len",(0,Ue._)`${a}.length`);if(e.setParams({min:i,max:o}),o===void 0&&i===0){(0,xn.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(o!==void 0&&i>o){(0,xn.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,xn.alwaysValidSchema)(s,r)){let b=(0,Ue._)`${l} >= ${i}`;o!==void 0&&(b=(0,Ue._)`${b} && ${l} <= ${o}`),e.pass(b);return}s.items=!0;const f=t.name("valid");o===void 0&&i===1?S(f,()=>t.if(f,()=>t.break())):i===0?(t.let(f,!0),o!==void 0&&t.if((0,Ue._)`${a}.length > 0`,g)):(t.let(f,!1),g()),e.result(f,()=>e.reset());function g(){const b=t.name("_valid"),y=t.let("count",0);S(b,()=>t.if(b,()=>$(y)))}function S(b,y){t.forRange("i",0,l,h=>{e.subschema({keyword:"contains",dataProp:h,dataPropType:xn.Type.Num,compositeRule:!0},b),y()})}function $(b){t.code((0,Ue._)`${b}++`),o===void 0?t.if((0,Ue._)`${b} >= ${i}`,()=>t.assign(f,!0).break()):(t.if((0,Ue._)`${b} > ${o}`,()=>t.assign(f,!1).break()),i===1?t.assign(f,!0):t.if((0,Ue._)`${b} >= ${i}`,()=>t.assign(f,!0)))}}};Ls.default=hw;var Tu={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=ae,r=F,n=ne;e.error={message:({params:{property:u,depsCount:c,deps:l}})=>{const f=c===1?"property":"properties";return(0,t.str)`must have ${f} ${l} when property ${u} is present`},params:({params:{property:u,depsCount:c,deps:l,missingProperty:f}})=>(0,t._)`{property: ${u},
|
|
22
22
|
missingProperty: ${f},
|
|
23
23
|
depsCount: ${c},
|
|
24
|
-
deps: ${l}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(u){const[c,l]=s(u);i(u,c),o(u,l)}};function s({schema:u}){const c={},l={};for(const f in u){if(f==="__proto__")continue;const g=Array.isArray(u[f])?c:l;g[f]=u[f]}return[c,l]}function i(u,c=u.schema){const{gen:l,data:f,it:g}=u;if(Object.keys(c).length===0)return;const S=l.let("missing");for(const $ in c){const b=c[$];if(b.length===0)continue;const y=(0,n.propertyInData)(l,f,$,g.opts.ownProperties);u.setParams({property:$,depsCount:b.length,deps:b.join(", ")}),g.allErrors?l.if(y,()=>{for(const h of b)(0,n.checkReportMissingProp)(u,h)}):(l.if((0,t._)`${y} && (${(0,n.checkMissingProp)(u,b,S)})`),(0,n.reportMissingProp)(u,S),l.else())}}e.validatePropertyDeps=i;function o(u,c=u.schema){const{gen:l,data:f,keyword:g,it:S}=u,$=l.name("valid");for(const b in c)(0,r.alwaysValidSchema)(S,c[b])||(l.if((0,n.propertyInData)(l,f,b,S.opts.ownProperties),()=>{const y=u.subschema({keyword:g,schemaProp:b},$);u.mergeValidEvaluated(y,$)},()=>l.var($,!0)),u.ok($))}e.validateSchemaDeps=o,e.default=a})(Eu);var zs={};Object.defineProperty(zs,"__esModule",{value:!0});const Tu=ae,hw=F,mw={message:"property name must be valid",params:({params:e})=>(0,Tu._)`{propertyName: ${e.propertyName}}`},pw={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:mw,code(e){const{gen:t,schema:r,data:n,it:a}=e;if((0,hw.alwaysValidSchema)(a,r))return;const s=t.name("valid");t.forIn("key",n,i=>{e.setParams({propertyName:i}),e.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},s),t.if((0,Tu.not)(s),()=>{e.error(!0),a.allErrors||t.break()})}),e.ok(s)}};zs.default=pw;var la={};Object.defineProperty(la,"__esModule",{value:!0});const kn=ne,Ze=ae,yw=dt,Cn=F,_w={message:"must NOT have additional properties",params:({params:e})=>(0,Ze._)`{additionalProperty: ${e.additionalProperty}}`},gw={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:_w,code(e){const{gen:t,schema:r,parentSchema:n,data:a,errsCount:s,it:i}=e;if(!s)throw new Error("ajv implementation error");const{allErrors:o,opts:u}=i;if(i.props=!0,u.removeAdditional!=="all"&&(0,Cn.alwaysValidSchema)(i,r))return;const c=(0,kn.allSchemaProperties)(n.properties),l=(0,kn.allSchemaProperties)(n.patternProperties);f(),e.ok((0,Ze._)`${s} === ${yw.default.errors}`);function f(){t.forIn("key",a,y=>{!c.length&&!l.length?$(y):t.if(g(y),()=>$(y))})}function g(y){let h;if(c.length>8){const w=(0,Cn.schemaRefOrVal)(i,n.properties,"properties");h=(0,kn.isOwnProperty)(t,w,y)}else c.length?h=(0,Ze.or)(...c.map(w=>(0,Ze._)`${y} === ${w}`)):h=Ze.nil;return l.length&&(h=(0,Ze.or)(h,...l.map(w=>(0,Ze._)`${(0,kn.usePattern)(e,w)}.test(${y})`))),(0,Ze.not)(h)}function S(y){t.code((0,Ze._)`delete ${a}[${y}]`)}function $(y){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){S(y);return}if(r===!1){e.setParams({additionalProperty:y}),e.error(),o||t.break();return}if(typeof r=="object"&&!(0,Cn.alwaysValidSchema)(i,r)){const h=t.name("valid");u.removeAdditional==="failing"?(b(y,h,!1),t.if((0,Ze.not)(h),()=>{e.reset(),S(y)})):(b(y,h),o||t.if((0,Ze.not)(h),()=>t.break()))}}function b(y,h,w){const k={keyword:"additionalProperties",dataProp:y,dataPropType:Cn.Type.Str};w===!1&&Object.assign(k,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(k,h)}}};la.default=gw;var Us={};Object.defineProperty(Us,"__esModule",{value:!0});const vw=Ke,po=ne,xa=F,yo=la,$w={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:a,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&yo.default.code(new vw.KeywordCxt(s,yo.default,"additionalProperties"));const i=(0,po.allSchemaProperties)(r);for(const f of i)s.definedProperties.add(f);s.opts.unevaluated&&i.length&&s.props!==!0&&(s.props=xa.mergeEvaluated.props(t,(0,xa.toHash)(i),s.props));const o=i.filter(f=>!(0,xa.alwaysValidSchema)(s,r[f]));if(o.length===0)return;const u=t.name("valid");for(const f of o)c(f)?l(f):(t.if((0,po.propertyInData)(t,a,f,s.opts.ownProperties)),l(f),s.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(u);function c(f){return s.opts.useDefaults&&!s.compositeRule&&r[f].default!==void 0}function l(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},u)}}};Us.default=$w;var qs={};Object.defineProperty(qs,"__esModule",{value:!0});const _o=ne,Nn=ae,go=F,vo=F,bw={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:a,it:s}=e,{opts:i}=s,o=(0,_o.allSchemaProperties)(r),u=o.filter(b=>(0,go.alwaysValidSchema)(s,r[b]));if(o.length===0||u.length===o.length&&(!s.opts.unevaluated||s.props===!0))return;const c=i.strictSchema&&!i.allowMatchingProperties&&a.properties,l=t.name("valid");s.props!==!0&&!(s.props instanceof Nn.Name)&&(s.props=(0,vo.evaluatedPropsToName)(t,s.props));const{props:f}=s;g();function g(){for(const b of o)c&&S(b),s.allErrors?$(b):(t.var(l,!0),$(b),t.if(l))}function S(b){for(const y in c)new RegExp(b).test(y)&&(0,go.checkStrictMode)(s,`property ${y} matches pattern ${b} (use allowMatchingProperties)`)}function $(b){t.forIn("key",n,y=>{t.if((0,Nn._)`${(0,_o.usePattern)(e,b)}.test(${y})`,()=>{const h=u.includes(b);h||e.subschema({keyword:"patternProperties",schemaProp:b,dataProp:y,dataPropType:vo.Type.Str},l),s.opts.unevaluated&&f!==!0?t.assign((0,Nn._)`${f}[${y}]`,!0):!h&&!s.allErrors&&t.if((0,Nn.not)(l),()=>t.break())})})}}};qs.default=bw;var Bs={};Object.defineProperty(Bs,"__esModule",{value:!0});const ww=F,Sw={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,ww.alwaysValidSchema)(n,r)){e.fail();return}const a=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},a),e.failResult(a,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};Bs.default=Sw;var Zs={};Object.defineProperty(Zs,"__esModule",{value:!0});const Ew=ne,Tw={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Ew.validateUnion,error:{message:"must match a schema in anyOf"}};Zs.default=Tw;var Ws={};Object.defineProperty(Ws,"__esModule",{value:!0});const Dn=ae,Pw=F,jw={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Dn._)`{passingSchemas: ${e.passing}}`},Ow={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:jw,code(e){const{gen:t,schema:r,parentSchema:n,it:a}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(a.opts.discriminator&&n.discriminator)return;const s=r,i=t.let("valid",!1),o=t.let("passing",null),u=t.name("_valid");e.setParams({passing:o}),t.block(c),e.result(i,()=>e.reset(),()=>e.error(!0));function c(){s.forEach((l,f)=>{let g;(0,Pw.alwaysValidSchema)(a,l)?t.var(u,!0):g=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},u),f>0&&t.if((0,Dn._)`${u} && ${i}`).assign(i,!1).assign(o,(0,Dn._)`[${o}, ${f}]`).else(),t.if(u,()=>{t.assign(i,!0),t.assign(o,f),g&&e.mergeEvaluated(g,Dn.Name)})})}}};Ws.default=Ow;var Hs={};Object.defineProperty(Hs,"__esModule",{value:!0});const xw=F,kw={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const a=t.name("valid");r.forEach((s,i)=>{if((0,xw.alwaysValidSchema)(n,s))return;const o=e.subschema({keyword:"allOf",schemaProp:i},a);e.ok(a),e.mergeEvaluated(o)})}};Hs.default=kw;var Gs={};Object.defineProperty(Gs,"__esModule",{value:!0});const Xn=ae,Pu=F,Cw={message:({params:e})=>(0,Xn.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Xn._)`{failingKeyword: ${e.ifClause}}`},Nw={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Cw,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,Pu.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const a=$o(n,"then"),s=$o(n,"else");if(!a&&!s)return;const i=t.let("valid",!0),o=t.name("_valid");if(u(),e.reset(),a&&s){const l=t.let("ifClause");e.setParams({ifClause:l}),t.if(o,c("then",l),c("else",l))}else a?t.if(o,c("then")):t.if((0,Xn.not)(o),c("else"));e.pass(i,()=>e.error(!0));function u(){const l=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},o);e.mergeEvaluated(l)}function c(l,f){return()=>{const g=e.subschema({keyword:l},o);t.assign(i,o),e.mergeValidEvaluated(g,i),f?t.assign(f,(0,Xn._)`${l}`):e.setParams({ifClause:l})}}}};function $o(e,t){const r=e.schema[t];return r!==void 0&&!(0,Pu.alwaysValidSchema)(e,r)}Gs.default=Nw;var Ks={};Object.defineProperty(Ks,"__esModule",{value:!0});const Iw=F,Aw={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,Iw.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Ks.default=Aw;Object.defineProperty(Ds,"__esModule",{value:!0});const Rw=Sr,Mw=Fs,Dw=Er,Fw=Vs,Vw=Ls,Lw=Eu,zw=zs,Uw=la,qw=Us,Bw=qs,Zw=Bs,Ww=Zs,Hw=Ws,Gw=Hs,Kw=Gs,Yw=Ks;function Jw(e=!1){const t=[Zw.default,Ww.default,Hw.default,Gw.default,Kw.default,Yw.default,zw.default,Uw.default,Lw.default,qw.default,Bw.default];return e?t.push(Mw.default,Fw.default):t.push(Rw.default,Dw.default),t.push(Vw.default),t}Ds.default=Jw;var Ys={},Js={};Object.defineProperty(Js,"__esModule",{value:!0});const $e=ae,Xw={message:({schemaCode:e})=>(0,$e.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,$e._)`{format: ${e}}`},Qw={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Xw,code(e,t){const{gen:r,data:n,$data:a,schema:s,schemaCode:i,it:o}=e,{opts:u,errSchemaPath:c,schemaEnv:l,self:f}=o;if(!u.validateFormats)return;a?g():S();function g(){const $=r.scopeValue("formats",{ref:f.formats,code:u.code.formats}),b=r.const("fDef",(0,$e._)`${$}[${i}]`),y=r.let("fType"),h=r.let("format");r.if((0,$e._)`typeof ${b} == "object" && !(${b} instanceof RegExp)`,()=>r.assign(y,(0,$e._)`${b}.type || "string"`).assign(h,(0,$e._)`${b}.validate`),()=>r.assign(y,(0,$e._)`"string"`).assign(h,b)),e.fail$data((0,$e.or)(w(),k()));function w(){return u.strictSchema===!1?$e.nil:(0,$e._)`${i} && !${h}`}function k(){const T=l.$async?(0,$e._)`(${b}.async ? await ${h}(${n}) : ${h}(${n}))`:(0,$e._)`${h}(${n})`,p=(0,$e._)`(typeof ${h} == "function" ? ${T} : ${h}.test(${n}))`;return(0,$e._)`${h} && ${h} !== true && ${y} === ${t} && !${p}`}}function S(){const $=f.formats[s];if(!$){w();return}if($===!0)return;const[b,y,h]=k($);b===t&&e.pass(T());function w(){if(u.strictSchema===!1){f.logger.warn(p());return}throw new Error(p());function p(){return`unknown format "${s}" ignored in schema at path "${c}"`}}function k(p){const x=p instanceof RegExp?(0,$e.regexpCode)(p):u.code.formats?(0,$e._)`${u.code.formats}${(0,$e.getProperty)(s)}`:void 0,A=r.scopeValue("formats",{key:s,ref:p,code:x});return typeof p=="object"&&!(p instanceof RegExp)?[p.type||"string",p.validate,(0,$e._)`${A}.validate`]:["string",p,A]}function T(){if(typeof $=="object"&&!($ instanceof RegExp)&&$.async){if(!l.$async)throw new Error("async format in sync schema");return(0,$e._)`await ${h}(${n})`}return typeof y=="function"?(0,$e._)`${h}(${n})`:(0,$e._)`${h}.test(${n})`}}}};Js.default=Qw;Object.defineProperty(Ys,"__esModule",{value:!0});const eS=Js,tS=[eS.default];Ys.default=tS;var $r={};Object.defineProperty($r,"__esModule",{value:!0});$r.contentVocabulary=$r.metadataVocabulary=void 0;$r.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];$r.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(ws,"__esModule",{value:!0});const rS=Ss,nS=Ts,aS=Ds,sS=Ys,bo=$r,iS=[rS.default,nS.default,(0,aS.default)(),sS.default,bo.metadataVocabulary,bo.contentVocabulary];ws.default=iS;var Xs={},fa={};Object.defineProperty(fa,"__esModule",{value:!0});fa.DiscrError=void 0;var wo;(function(e){e.Tag="tag",e.Mapping="mapping"})(wo||(fa.DiscrError=wo={}));Object.defineProperty(Xs,"__esModule",{value:!0});const ur=ae,Ka=fa,So=Ae,oS=wr,cS=F,uS={message:({params:{discrError:e,tagName:t}})=>e===Ka.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,ur._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},dS={keyword:"discriminator",type:"object",schemaType:"object",error:uS,code(e){const{gen:t,data:r,schema:n,parentSchema:a,it:s}=e,{oneOf:i}=a;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");const o=n.propertyName;if(typeof o!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const u=t.let("valid",!1),c=t.const("tag",(0,ur._)`${r}${(0,ur.getProperty)(o)}`);t.if((0,ur._)`typeof ${c} == "string"`,()=>l(),()=>e.error(!1,{discrError:Ka.DiscrError.Tag,tag:c,tagName:o})),e.ok(u);function l(){const S=g();t.if(!1);for(const $ in S)t.elseIf((0,ur._)`${c} === ${$}`),t.assign(u,f(S[$]));t.else(),e.error(!1,{discrError:Ka.DiscrError.Mapping,tag:c,tagName:o}),t.endIf()}function f(S){const $=t.name("valid"),b=e.subschema({keyword:"oneOf",schemaProp:S},$);return e.mergeEvaluated(b,ur.Name),$}function g(){var S;const $={},b=h(a);let y=!0;for(let T=0;T<i.length;T++){let p=i[T];if(p!=null&&p.$ref&&!(0,cS.schemaHasRulesButRef)(p,s.self.RULES)){const A=p.$ref;if(p=So.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,A),p instanceof So.SchemaEnv&&(p=p.schema),p===void 0)throw new oS.default(s.opts.uriResolver,s.baseId,A)}const x=(S=p==null?void 0:p.properties)===null||S===void 0?void 0:S[o];if(typeof x!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${o}"`);y=y&&(b||h(p)),w(x,T)}if(!y)throw new Error(`discriminator: "${o}" must be required`);return $;function h({required:T}){return Array.isArray(T)&&T.includes(o)}function w(T,p){if(T.const)k(T.const,p);else if(T.enum)for(const x of T.enum)k(x,p);else throw new Error(`discriminator: "properties/${o}" must have "const" or "enum"`)}function k(T,p){if(typeof T!="string"||T in $)throw new Error(`discriminator: "${o}" values must be unique strings`);$[T]=p}}}};Xs.default=dS;const lS="http://json-schema.org/draft-07/schema#",fS="http://json-schema.org/draft-07/schema#",hS="Core schema meta-schema",mS={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:[]}},pS=["object","boolean"],yS={$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:"#"}},_S={$schema:lS,$id:fS,title:hS,definitions:mS,type:pS,properties:yS,default:!0};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=Cc,n=ws,a=Xs,s=_S,i=["/properties"],o="http://json-schema.org/draft-07/schema";class u extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach($=>this.addVocabulary($)),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const $=this.opts.$data?this.$dataMetaSchema(s,i):s;this.addMetaSchema($,o,!1),this.refs["http://json-schema.org/schema"]=o}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(o)?o:void 0)}}t.Ajv=u,e.exports=t=u,e.exports.Ajv=u,Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var c=Ke;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var l=ae;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var f=gn;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var g=wr;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return g.default}})})(Ua,Ua.exports);var gS=Ua.exports;const vS=Qn(gS);new vS({strict:!1});const $S=(e,t,r)=>{const n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3),document.cookie=`${e}=${encodeURIComponent(t)};expires=${n.toUTCString()};path=/;SameSite=Lax;Secure`},bS=e=>{try{const t=document.cookie.match(new RegExp(`(^|;\\s*)(${e})=([^;]*)`));return t?decodeURIComponent(t[3]):void 0}catch(t){console.warn("Error reading cookie:",t);return}},wS=e=>{document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;SameSite=Lax;Secure`},SS=()=>{const e=I.useCallback(()=>!!bS("_sp_optout"),[]),t=I.useCallback(()=>{wS("_sp_optout")},[]),r=I.useCallback(()=>{$S("_sp_optout","1",724)},[]);return{isOptedOut:e,optIn:t,optOut:r}},ES="_root_1ufzl_141",TS={root:ES},PS=()=>{const[e,t]=I.useState(null),[r,n]=I.useState(!1),{isOptedOut:a,optIn:s,optOut:i}=SS();I.useEffect(()=>{Fn.getProfile().then(c=>{t(c),n(c.allow_analytics)}).catch(c=>{console.error(c)})},[]);const o=()=>{Fn.updateProfile({allow_analytics:!(e!=null&&e.allow_analytics)}).then(()=>{n(!r)}).catch(c=>{console.error(c)})},u=c=>{c.target.checked?s():i()};return _.jsxs("div",{className:TS.root,children:[_.jsx(D.Typography,{type:"h4",children:"Profil-Tracking deaktivieren"}),_.jsxs("div",{children:[_.jsx(D.Typography,{type:"body-regular",children:"Möchtest du das Profil-Tracking deaktivieren?"}),_.jsx(D.ToggleInput,{onChange:o,label:"Profil-Tracking",checked:r})]}),_.jsxs("div",{children:[_.jsx(D.Typography,{type:"body-regular",children:"Sie können der Verarbeitung Ihrer personenbezogenen Daten durch Snowplow Analytics jederzeit mittels des nachfolgenden Toggles widersprechen:"}),_.jsx(D.ToggleInput,{onChange:u,label:"Profil-Tracking",defaultChecked:!a()})]})]})},jS=({cta:e,portabilityBody:t,portabilityCta:r,portabilityTitle:n,title:a})=>{const{showConsentManager:s}=Iu.useConsent(),[i,o]=I.useState(!1),u=()=>{Fn.exportArchivedData().then(()=>{o(!0)}).catch(c=>{console.error(c)})};return _.jsxs("div",{className:Pn.root,children:[_.jsx(D.Typography,{type:"h2",children:a}),_.jsx(D.Divider,{}),_.jsx(D.ButtonPrimary,{text:e,className:Pn.button,onClick:s}),_.jsx(D.Divider,{}),_.jsx(PS,{}),_.jsx(D.Divider,{}),_.jsx(D.Typography,{type:"h4",children:n}),_.jsx(D.Typography,{type:"body-regular",children:t}),i?_.jsx(D.Typography,{type:"body-semibold",className:Pn.success,children:"Du erhältst in Kürze eine E-Mail mit dem Link zu deinem Archiv."}):_.jsx(D.TextButton,{onClick:u,className:Pn.textButton,color:"blue",size:"medium",text:r})]})},OS="_root_19zmr_141",xS="_markdown_19zmr_145",Eo={root:OS,markdown:xS},kS=({body:e,title:t})=>_.jsxs("div",{className:Eo.root,children:[_.jsx(D.Typography,{type:"h2",children:t}),_.jsx(Qt.MarkdownRichText,{className:Eo.markdown,text:e})]}),ju=({body:e,contactFooter:t,privacyOptions:r,protection:n})=>{const[a,s]=I.useState("");return I.useEffect(()=>{s(e)},[e]),_.jsxs("div",{className:Yi.root,children:[_.jsx(Qt.HtmlContent,{className:Yi.staticHtml,html:a}),_.jsx(D.Divider,{}),_.jsx(kS,{body:n.body,title:n.title}),_.jsx(D.Divider,{}),_.jsx(jS,{cta:r.cta,portabilityBody:r.portabilityBody,portabilityCta:r.portabilityCta,portabilityTitle:r.portabilityTitle,title:r.title}),_.jsx(D.Divider,{}),_.jsx(xc,{body:t.body,cta:t.cta})]})},CS=({block:e})=>{const t=()=>{var o,u,c,l,f;return{cta:((o=e.privacyOptions)==null?void 0:o.cta)??"",portabilityBody:((u=e.privacyOptions)==null?void 0:u.portabilityBody)??"",portabilityCta:((c=e.privacyOptions)==null?void 0:c.portabilityCta)??"",portabilityTitle:((l=e.privacyOptions)==null?void 0:l.portabilityTitle)??"",title:((f=e.privacyOptions)==null?void 0:f.title)??""}},r=()=>{var o,u;return{body:((o=e.protection)==null?void 0:o.body)??"",title:((u=e.protection)==null?void 0:u.title)??""}},n=(e==null?void 0:e.body)??"",a=Ec(e==null?void 0:e.contactFooter),s=t(),i=r();return _.jsx(ju,{body:n,contactFooter:a,privacyOptions:s,protection:i})},NS="_root_issck_141",IS={root:NS},To=({title:e})=>e?_.jsxs(_.Fragment,{children:[_.jsx(D.CardHeader,{className:IS.root,as:"h2",headline:e}),_.jsx(D.Divider,{})]}):null,AS="_root_1k7gy_141",RS={root:AS},MS=({dynamicContent:e,onError:t,onSubmit:r})=>{var s;const n=Ld(800),a=e.blocks.some(i=>i.__component==="core-components.persuasion-cta");return _.jsxs(D.Card,{borderRadius:n,withoutPadding:!0,allowedElement:To,className:RS.root,children:[_.jsx(To,{title:(s=e==null?void 0:e.cardHeader)==null?void 0:s.title}),_.jsx(D.CardBody,{withoutPadding:!0,children:e&&e.blocks.map((i,o)=>{switch(i.__component){case"core-components.sponsor-card":return _.jsx(ag,{block:i,isDesktop:n,isCtaBlockPresent:a,onError:t??(()=>console.log("Error in SponsorCardForm")),onSubmit:r??(()=>console.log("Submit in SponsorCardForm"))},`${i.__component}_${o}`);case"core-components.persuasion-image-set":return _.jsx(jl,{block:i},`${i.__component}_${o}`);case"core-components.persuasion-content":return _.jsx(dl,{block:i},`${i.__component}_${o}`);case"core-components.legal":return _.jsx(_v,{block:i},`${i.__component}_${o}`);case"core-components.privacy":return _.jsx(CS,{block:i},`${i.__component}_${o}`);case"core-components.accordion":return _.jsx(Bd,{block:i},`${i.__component}_${o}`);case"landing-components.quote":return _.jsx(Nl,{block:i},`${i.__component}_${o}`);case"core-components.persuasion-cta":return _.jsx($l,{block:i},`${i.__component}_${o}`)}})})]})};exports.DynamicRenderer=MS;exports.LAYOUT_BLOCK=tt;exports.Layout=os;exports.Legal=kc;exports.Privacy=ju;exports.SponsorCardForm=Sc;
|
|
24
|
+
deps: ${l}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(u){const[c,l]=s(u);i(u,c),o(u,l)}};function s({schema:u}){const c={},l={};for(const f in u){if(f==="__proto__")continue;const g=Array.isArray(u[f])?c:l;g[f]=u[f]}return[c,l]}function i(u,c=u.schema){const{gen:l,data:f,it:g}=u;if(Object.keys(c).length===0)return;const S=l.let("missing");for(const $ in c){const b=c[$];if(b.length===0)continue;const y=(0,n.propertyInData)(l,f,$,g.opts.ownProperties);u.setParams({property:$,depsCount:b.length,deps:b.join(", ")}),g.allErrors?l.if(y,()=>{for(const h of b)(0,n.checkReportMissingProp)(u,h)}):(l.if((0,t._)`${y} && (${(0,n.checkMissingProp)(u,b,S)})`),(0,n.reportMissingProp)(u,S),l.else())}}e.validatePropertyDeps=i;function o(u,c=u.schema){const{gen:l,data:f,keyword:g,it:S}=u,$=l.name("valid");for(const b in c)(0,r.alwaysValidSchema)(S,c[b])||(l.if((0,n.propertyInData)(l,f,b,S.opts.ownProperties),()=>{const y=u.subschema({keyword:g,schemaProp:b},$);u.mergeValidEvaluated(y,$)},()=>l.var($,!0)),u.ok($))}e.validateSchemaDeps=o,e.default=a})(Tu);var zs={};Object.defineProperty(zs,"__esModule",{value:!0});const Pu=ae,mw=F,pw={message:"property name must be valid",params:({params:e})=>(0,Pu._)`{propertyName: ${e.propertyName}}`},yw={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:pw,code(e){const{gen:t,schema:r,data:n,it:a}=e;if((0,mw.alwaysValidSchema)(a,r))return;const s=t.name("valid");t.forIn("key",n,i=>{e.setParams({propertyName:i}),e.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},s),t.if((0,Pu.not)(s),()=>{e.error(!0),a.allErrors||t.break()})}),e.ok(s)}};zs.default=yw;var la={};Object.defineProperty(la,"__esModule",{value:!0});const kn=ne,Ze=ae,_w=dt,Cn=F,gw={message:"must NOT have additional properties",params:({params:e})=>(0,Ze._)`{additionalProperty: ${e.additionalProperty}}`},vw={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:gw,code(e){const{gen:t,schema:r,parentSchema:n,data:a,errsCount:s,it:i}=e;if(!s)throw new Error("ajv implementation error");const{allErrors:o,opts:u}=i;if(i.props=!0,u.removeAdditional!=="all"&&(0,Cn.alwaysValidSchema)(i,r))return;const c=(0,kn.allSchemaProperties)(n.properties),l=(0,kn.allSchemaProperties)(n.patternProperties);f(),e.ok((0,Ze._)`${s} === ${_w.default.errors}`);function f(){t.forIn("key",a,y=>{!c.length&&!l.length?$(y):t.if(g(y),()=>$(y))})}function g(y){let h;if(c.length>8){const w=(0,Cn.schemaRefOrVal)(i,n.properties,"properties");h=(0,kn.isOwnProperty)(t,w,y)}else c.length?h=(0,Ze.or)(...c.map(w=>(0,Ze._)`${y} === ${w}`)):h=Ze.nil;return l.length&&(h=(0,Ze.or)(h,...l.map(w=>(0,Ze._)`${(0,kn.usePattern)(e,w)}.test(${y})`))),(0,Ze.not)(h)}function S(y){t.code((0,Ze._)`delete ${a}[${y}]`)}function $(y){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){S(y);return}if(r===!1){e.setParams({additionalProperty:y}),e.error(),o||t.break();return}if(typeof r=="object"&&!(0,Cn.alwaysValidSchema)(i,r)){const h=t.name("valid");u.removeAdditional==="failing"?(b(y,h,!1),t.if((0,Ze.not)(h),()=>{e.reset(),S(y)})):(b(y,h),o||t.if((0,Ze.not)(h),()=>t.break()))}}function b(y,h,w){const k={keyword:"additionalProperties",dataProp:y,dataPropType:Cn.Type.Str};w===!1&&Object.assign(k,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(k,h)}}};la.default=vw;var Us={};Object.defineProperty(Us,"__esModule",{value:!0});const $w=Ke,yo=ne,xa=F,_o=la,bw={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:a,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&_o.default.code(new $w.KeywordCxt(s,_o.default,"additionalProperties"));const i=(0,yo.allSchemaProperties)(r);for(const f of i)s.definedProperties.add(f);s.opts.unevaluated&&i.length&&s.props!==!0&&(s.props=xa.mergeEvaluated.props(t,(0,xa.toHash)(i),s.props));const o=i.filter(f=>!(0,xa.alwaysValidSchema)(s,r[f]));if(o.length===0)return;const u=t.name("valid");for(const f of o)c(f)?l(f):(t.if((0,yo.propertyInData)(t,a,f,s.opts.ownProperties)),l(f),s.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(u);function c(f){return s.opts.useDefaults&&!s.compositeRule&&r[f].default!==void 0}function l(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},u)}}};Us.default=bw;var qs={};Object.defineProperty(qs,"__esModule",{value:!0});const go=ne,Nn=ae,vo=F,$o=F,ww={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:a,it:s}=e,{opts:i}=s,o=(0,go.allSchemaProperties)(r),u=o.filter(b=>(0,vo.alwaysValidSchema)(s,r[b]));if(o.length===0||u.length===o.length&&(!s.opts.unevaluated||s.props===!0))return;const c=i.strictSchema&&!i.allowMatchingProperties&&a.properties,l=t.name("valid");s.props!==!0&&!(s.props instanceof Nn.Name)&&(s.props=(0,$o.evaluatedPropsToName)(t,s.props));const{props:f}=s;g();function g(){for(const b of o)c&&S(b),s.allErrors?$(b):(t.var(l,!0),$(b),t.if(l))}function S(b){for(const y in c)new RegExp(b).test(y)&&(0,vo.checkStrictMode)(s,`property ${y} matches pattern ${b} (use allowMatchingProperties)`)}function $(b){t.forIn("key",n,y=>{t.if((0,Nn._)`${(0,go.usePattern)(e,b)}.test(${y})`,()=>{const h=u.includes(b);h||e.subschema({keyword:"patternProperties",schemaProp:b,dataProp:y,dataPropType:$o.Type.Str},l),s.opts.unevaluated&&f!==!0?t.assign((0,Nn._)`${f}[${y}]`,!0):!h&&!s.allErrors&&t.if((0,Nn.not)(l),()=>t.break())})})}}};qs.default=ww;var Bs={};Object.defineProperty(Bs,"__esModule",{value:!0});const Sw=F,Ew={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,Sw.alwaysValidSchema)(n,r)){e.fail();return}const a=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},a),e.failResult(a,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};Bs.default=Ew;var Zs={};Object.defineProperty(Zs,"__esModule",{value:!0});const Tw=ne,Pw={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Tw.validateUnion,error:{message:"must match a schema in anyOf"}};Zs.default=Pw;var Ws={};Object.defineProperty(Ws,"__esModule",{value:!0});const Dn=ae,jw=F,Ow={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Dn._)`{passingSchemas: ${e.passing}}`},xw={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Ow,code(e){const{gen:t,schema:r,parentSchema:n,it:a}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(a.opts.discriminator&&n.discriminator)return;const s=r,i=t.let("valid",!1),o=t.let("passing",null),u=t.name("_valid");e.setParams({passing:o}),t.block(c),e.result(i,()=>e.reset(),()=>e.error(!0));function c(){s.forEach((l,f)=>{let g;(0,jw.alwaysValidSchema)(a,l)?t.var(u,!0):g=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},u),f>0&&t.if((0,Dn._)`${u} && ${i}`).assign(i,!1).assign(o,(0,Dn._)`[${o}, ${f}]`).else(),t.if(u,()=>{t.assign(i,!0),t.assign(o,f),g&&e.mergeEvaluated(g,Dn.Name)})})}}};Ws.default=xw;var Hs={};Object.defineProperty(Hs,"__esModule",{value:!0});const kw=F,Cw={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const a=t.name("valid");r.forEach((s,i)=>{if((0,kw.alwaysValidSchema)(n,s))return;const o=e.subschema({keyword:"allOf",schemaProp:i},a);e.ok(a),e.mergeEvaluated(o)})}};Hs.default=Cw;var Gs={};Object.defineProperty(Gs,"__esModule",{value:!0});const Xn=ae,ju=F,Nw={message:({params:e})=>(0,Xn.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Xn._)`{failingKeyword: ${e.ifClause}}`},Iw={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Nw,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,ju.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const a=bo(n,"then"),s=bo(n,"else");if(!a&&!s)return;const i=t.let("valid",!0),o=t.name("_valid");if(u(),e.reset(),a&&s){const l=t.let("ifClause");e.setParams({ifClause:l}),t.if(o,c("then",l),c("else",l))}else a?t.if(o,c("then")):t.if((0,Xn.not)(o),c("else"));e.pass(i,()=>e.error(!0));function u(){const l=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},o);e.mergeEvaluated(l)}function c(l,f){return()=>{const g=e.subschema({keyword:l},o);t.assign(i,o),e.mergeValidEvaluated(g,i),f?t.assign(f,(0,Xn._)`${l}`):e.setParams({ifClause:l})}}}};function bo(e,t){const r=e.schema[t];return r!==void 0&&!(0,ju.alwaysValidSchema)(e,r)}Gs.default=Iw;var Ks={};Object.defineProperty(Ks,"__esModule",{value:!0});const Aw=F,Rw={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,Aw.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Ks.default=Rw;Object.defineProperty(Ds,"__esModule",{value:!0});const Mw=Sr,Dw=Fs,Fw=Er,Vw=Vs,Lw=Ls,zw=Tu,Uw=zs,qw=la,Bw=Us,Zw=qs,Ww=Bs,Hw=Zs,Gw=Ws,Kw=Hs,Yw=Gs,Jw=Ks;function Xw(e=!1){const t=[Ww.default,Hw.default,Gw.default,Kw.default,Yw.default,Jw.default,Uw.default,qw.default,zw.default,Bw.default,Zw.default];return e?t.push(Dw.default,Vw.default):t.push(Mw.default,Fw.default),t.push(Lw.default),t}Ds.default=Xw;var Ys={},Js={};Object.defineProperty(Js,"__esModule",{value:!0});const $e=ae,Qw={message:({schemaCode:e})=>(0,$e.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,$e._)`{format: ${e}}`},eS={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Qw,code(e,t){const{gen:r,data:n,$data:a,schema:s,schemaCode:i,it:o}=e,{opts:u,errSchemaPath:c,schemaEnv:l,self:f}=o;if(!u.validateFormats)return;a?g():S();function g(){const $=r.scopeValue("formats",{ref:f.formats,code:u.code.formats}),b=r.const("fDef",(0,$e._)`${$}[${i}]`),y=r.let("fType"),h=r.let("format");r.if((0,$e._)`typeof ${b} == "object" && !(${b} instanceof RegExp)`,()=>r.assign(y,(0,$e._)`${b}.type || "string"`).assign(h,(0,$e._)`${b}.validate`),()=>r.assign(y,(0,$e._)`"string"`).assign(h,b)),e.fail$data((0,$e.or)(w(),k()));function w(){return u.strictSchema===!1?$e.nil:(0,$e._)`${i} && !${h}`}function k(){const T=l.$async?(0,$e._)`(${b}.async ? await ${h}(${n}) : ${h}(${n}))`:(0,$e._)`${h}(${n})`,p=(0,$e._)`(typeof ${h} == "function" ? ${T} : ${h}.test(${n}))`;return(0,$e._)`${h} && ${h} !== true && ${y} === ${t} && !${p}`}}function S(){const $=f.formats[s];if(!$){w();return}if($===!0)return;const[b,y,h]=k($);b===t&&e.pass(T());function w(){if(u.strictSchema===!1){f.logger.warn(p());return}throw new Error(p());function p(){return`unknown format "${s}" ignored in schema at path "${c}"`}}function k(p){const x=p instanceof RegExp?(0,$e.regexpCode)(p):u.code.formats?(0,$e._)`${u.code.formats}${(0,$e.getProperty)(s)}`:void 0,A=r.scopeValue("formats",{key:s,ref:p,code:x});return typeof p=="object"&&!(p instanceof RegExp)?[p.type||"string",p.validate,(0,$e._)`${A}.validate`]:["string",p,A]}function T(){if(typeof $=="object"&&!($ instanceof RegExp)&&$.async){if(!l.$async)throw new Error("async format in sync schema");return(0,$e._)`await ${h}(${n})`}return typeof y=="function"?(0,$e._)`${h}(${n})`:(0,$e._)`${h}.test(${n})`}}}};Js.default=eS;Object.defineProperty(Ys,"__esModule",{value:!0});const tS=Js,rS=[tS.default];Ys.default=rS;var $r={};Object.defineProperty($r,"__esModule",{value:!0});$r.contentVocabulary=$r.metadataVocabulary=void 0;$r.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];$r.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(ws,"__esModule",{value:!0});const nS=Ss,aS=Ts,sS=Ds,iS=Ys,wo=$r,oS=[nS.default,aS.default,(0,sS.default)(),iS.default,wo.metadataVocabulary,wo.contentVocabulary];ws.default=oS;var Xs={},fa={};Object.defineProperty(fa,"__esModule",{value:!0});fa.DiscrError=void 0;var So;(function(e){e.Tag="tag",e.Mapping="mapping"})(So||(fa.DiscrError=So={}));Object.defineProperty(Xs,"__esModule",{value:!0});const ur=ae,Ka=fa,Eo=Ae,cS=wr,uS=F,dS={message:({params:{discrError:e,tagName:t}})=>e===Ka.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,ur._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},lS={keyword:"discriminator",type:"object",schemaType:"object",error:dS,code(e){const{gen:t,data:r,schema:n,parentSchema:a,it:s}=e,{oneOf:i}=a;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");const o=n.propertyName;if(typeof o!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const u=t.let("valid",!1),c=t.const("tag",(0,ur._)`${r}${(0,ur.getProperty)(o)}`);t.if((0,ur._)`typeof ${c} == "string"`,()=>l(),()=>e.error(!1,{discrError:Ka.DiscrError.Tag,tag:c,tagName:o})),e.ok(u);function l(){const S=g();t.if(!1);for(const $ in S)t.elseIf((0,ur._)`${c} === ${$}`),t.assign(u,f(S[$]));t.else(),e.error(!1,{discrError:Ka.DiscrError.Mapping,tag:c,tagName:o}),t.endIf()}function f(S){const $=t.name("valid"),b=e.subschema({keyword:"oneOf",schemaProp:S},$);return e.mergeEvaluated(b,ur.Name),$}function g(){var S;const $={},b=h(a);let y=!0;for(let T=0;T<i.length;T++){let p=i[T];if(p!=null&&p.$ref&&!(0,uS.schemaHasRulesButRef)(p,s.self.RULES)){const A=p.$ref;if(p=Eo.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,A),p instanceof Eo.SchemaEnv&&(p=p.schema),p===void 0)throw new cS.default(s.opts.uriResolver,s.baseId,A)}const x=(S=p==null?void 0:p.properties)===null||S===void 0?void 0:S[o];if(typeof x!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${o}"`);y=y&&(b||h(p)),w(x,T)}if(!y)throw new Error(`discriminator: "${o}" must be required`);return $;function h({required:T}){return Array.isArray(T)&&T.includes(o)}function w(T,p){if(T.const)k(T.const,p);else if(T.enum)for(const x of T.enum)k(x,p);else throw new Error(`discriminator: "properties/${o}" must have "const" or "enum"`)}function k(T,p){if(typeof T!="string"||T in $)throw new Error(`discriminator: "${o}" values must be unique strings`);$[T]=p}}}};Xs.default=lS;const fS="http://json-schema.org/draft-07/schema#",hS="http://json-schema.org/draft-07/schema#",mS="Core schema meta-schema",pS={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:[]}},yS=["object","boolean"],_S={$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:"#"}},gS={$schema:fS,$id:hS,title:mS,definitions:pS,type:yS,properties:_S,default:!0};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=Nc,n=ws,a=Xs,s=gS,i=["/properties"],o="http://json-schema.org/draft-07/schema";class u extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach($=>this.addVocabulary($)),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const $=this.opts.$data?this.$dataMetaSchema(s,i):s;this.addMetaSchema($,o,!1),this.refs["http://json-schema.org/schema"]=o}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(o)?o:void 0)}}t.Ajv=u,e.exports=t=u,e.exports.Ajv=u,Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var c=Ke;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var l=ae;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var f=gn;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var g=wr;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return g.default}})})(Ua,Ua.exports);var vS=Ua.exports;const $S=Qn(vS);new $S({strict:!1});const bS=(e,t,r)=>{const n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3),document.cookie=`${e}=${encodeURIComponent(t)};expires=${n.toUTCString()};path=/;SameSite=Lax;Secure`},wS=e=>{try{const t=document.cookie.match(new RegExp(`(^|;\\s*)(${e})=([^;]*)`));return t?decodeURIComponent(t[3]):void 0}catch(t){console.warn("Error reading cookie:",t);return}},SS=e=>{document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;SameSite=Lax;Secure`},ES=()=>{const e=I.useCallback(()=>!!wS("_sp_optout"),[]),t=I.useCallback(()=>{SS("_sp_optout")},[]),r=I.useCallback(()=>{bS("_sp_optout","1",724)},[]);return{isOptedOut:e,optIn:t,optOut:r}},TS="_root_1ufzl_141",PS={root:TS},jS=()=>{const[e,t]=I.useState(null),[r,n]=I.useState(!1),{isOptedOut:a,optIn:s,optOut:i}=ES();I.useEffect(()=>{Fn.getProfile().then(c=>{t(c),n(c.allow_analytics)}).catch(c=>{console.error(c)})},[]);const o=()=>{Fn.updateProfile({allow_analytics:!(e!=null&&e.allow_analytics)}).then(()=>{n(!r)}).catch(c=>{console.error(c)})},u=c=>{c.target.checked?s():i()};return _.jsxs("div",{className:PS.root,children:[_.jsx(D.Typography,{type:"h4",children:"Profil-Tracking deaktivieren"}),_.jsxs("div",{children:[_.jsx(D.Typography,{type:"body-regular",children:"Möchtest du das Profil-Tracking deaktivieren?"}),_.jsx(D.ToggleInput,{onChange:o,label:"Profil-Tracking",checked:r})]}),_.jsxs("div",{children:[_.jsx(D.Typography,{type:"body-regular",children:"Sie können der Verarbeitung Ihrer personenbezogenen Daten durch Snowplow Analytics jederzeit mittels des nachfolgenden Toggles widersprechen:"}),_.jsx(D.ToggleInput,{onChange:u,label:"Profil-Tracking",defaultChecked:!a()})]})]})},OS=({cta:e,portabilityBody:t,portabilityCta:r,portabilityTitle:n,title:a})=>{const{showConsentManager:s}=Au.useConsent(),[i,o]=I.useState(!1),u=()=>{Fn.exportArchivedData().then(()=>{o(!0)}).catch(c=>{console.error(c)})};return _.jsxs("div",{className:Pn.root,children:[_.jsx(D.Typography,{type:"h2",children:a}),_.jsx(D.Divider,{}),_.jsx(D.ButtonPrimary,{text:e,className:Pn.button,onClick:s}),_.jsx(D.Divider,{}),_.jsx(jS,{}),_.jsx(D.Divider,{}),_.jsx(D.Typography,{type:"h4",children:n}),_.jsx(D.Typography,{type:"body-regular",children:t}),i?_.jsx(D.Typography,{type:"body-semibold",className:Pn.success,children:"Du erhältst in Kürze eine E-Mail mit dem Link zu deinem Archiv."}):_.jsx(D.TextButton,{onClick:u,className:Pn.textButton,color:"blue",size:"medium",text:r})]})},xS="_root_19zmr_141",kS="_markdown_19zmr_145",To={root:xS,markdown:kS},CS=({body:e,title:t})=>_.jsxs("div",{className:To.root,children:[_.jsx(D.Typography,{type:"h2",children:t}),_.jsx(Qt.MarkdownRichText,{className:To.markdown,text:e})]}),Ou=({body:e,contactFooter:t,privacyOptions:r,protection:n})=>{const[a,s]=I.useState("");return I.useEffect(()=>{s(e)},[e]),_.jsxs("div",{className:Ji.root,children:[_.jsx(Qt.HtmlContent,{className:Ji.staticHtml,html:a}),_.jsx(D.Divider,{}),_.jsx(CS,{body:n.body,title:n.title}),_.jsx(D.Divider,{}),_.jsx(OS,{cta:r.cta,portabilityBody:r.portabilityBody,portabilityCta:r.portabilityCta,portabilityTitle:r.portabilityTitle,title:r.title}),_.jsx(D.Divider,{}),_.jsx(kc,{body:t.body,cta:t.cta})]})},NS=({block:e})=>{const t=()=>{var o,u,c,l,f;return{cta:((o=e.privacyOptions)==null?void 0:o.cta)??"",portabilityBody:((u=e.privacyOptions)==null?void 0:u.portabilityBody)??"",portabilityCta:((c=e.privacyOptions)==null?void 0:c.portabilityCta)??"",portabilityTitle:((l=e.privacyOptions)==null?void 0:l.portabilityTitle)??"",title:((f=e.privacyOptions)==null?void 0:f.title)??""}},r=()=>{var o,u;return{body:((o=e.protection)==null?void 0:o.body)??"",title:((u=e.protection)==null?void 0:u.title)??""}},n=(e==null?void 0:e.body)??"",a=Tc(e==null?void 0:e.contactFooter),s=t(),i=r();return _.jsx(Ou,{body:n,contactFooter:a,privacyOptions:s,protection:i})},IS="_root_issck_141",AS={root:IS},Po=({title:e})=>e?_.jsxs(_.Fragment,{children:[_.jsx(D.CardHeader,{className:AS.root,as:"h2",headline:e}),_.jsx(D.Divider,{})]}):null,RS="_root_1k7gy_141",MS={root:RS},DS=({dynamicContent:e,onError:t,onSubmit:r})=>{var s;const n=zd(800),a=e.blocks.some(i=>i.__component==="core-components.persuasion-cta");return _.jsxs(D.Card,{borderRadius:n,withoutPadding:!0,allowedElement:Po,className:MS.root,children:[_.jsx(Po,{title:(s=e==null?void 0:e.cardHeader)==null?void 0:s.title}),_.jsx(D.CardBody,{withoutPadding:!0,children:e&&e.blocks.map((i,o)=>{switch(i.__component){case"core-components.sponsor-card":return _.jsx(sg,{block:i,isDesktop:n,isCtaBlockPresent:a,onError:t??(()=>console.log("Error in SponsorCardForm")),onSubmit:r??(()=>console.log("Submit in SponsorCardForm"))},`${i.__component}_${o}`);case"core-components.persuasion-image-set":return _.jsx(Ol,{block:i},`${i.__component}_${o}`);case"core-components.persuasion-content":return _.jsx(ll,{block:i},`${i.__component}_${o}`);case"core-components.legal":return _.jsx(gv,{block:i},`${i.__component}_${o}`);case"core-components.privacy":return _.jsx(NS,{block:i},`${i.__component}_${o}`);case"core-components.accordion":return _.jsx(Zd,{block:i},`${i.__component}_${o}`);case"landing-components.quote":return _.jsx(Il,{block:i},`${i.__component}_${o}`);case"core-components.persuasion-cta":return _.jsx(bl,{block:i},`${i.__component}_${o}`)}})})]})};exports.DynamicRenderer=DS;exports.LAYOUT_BLOCK=tt;exports.Layout=os;exports.Legal=Cc;exports.Privacy=Ou;exports.SponsorCardForm=Ec;
|