@factorialco/fcode-react-forms 2.0.1 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/fcode-form/fcode-form.d.ts +24 -2
- package/dist/components/fcode-form/fcode-form.test.d.ts +1 -1
- package/dist/components/fcode-form/fcode-form.utils.d.ts +11 -3
- package/dist/components/json-schema-form/default-theme/templates/field-template.d.ts +2 -5
- package/dist/components/json-schema-form/markdown-content.d.ts +6 -0
- package/dist/fcode-form.cjs.js +95 -82
- package/dist/fcode-form.cjs.js.map +1 -1
- package/dist/fcode-form.es.js +28521 -27403
- package/dist/fcode-form.es.js.map +1 -1
- package/dist/fcode-form.umd.js +95 -82
- package/dist/fcode-form.umd.js.map +1 -1
- package/dist/styles.css +121 -0
- package/dist/utils/index.d.ts +0 -1
- package/package.json +3 -3
- package/dist/utils/sanitize-html.d.ts +0 -8
- /package/dist/{utils/sanitize-html.test.d.ts → components/json-schema-form/markdown-content.twin.test.d.ts} +0 -0
package/dist/fcode-form.umd.js
CHANGED
|
@@ -1,36 +1,62 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i1(e,t){return r1(e)||n1(e,t)||o1(e,t)||a1()}function o1(e,t){if(e){if(typeof e=="string")return Tp(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Tp(e,t):void 0}}const Pp=Object.entries,Ip=Object.setPrototypeOf,s1=Object.isFrozen,l1=Object.getPrototypeOf,c1=Object.getOwnPropertyDescriptor;let Zt=Object.freeze,Qt=Object.seal,li=Object.create,Np=typeof Reflect<"u"&&Reflect,Tc=Np.apply,Pc=Np.construct;Zt||(Zt=function(t){return t}),Qt||(Qt=function(t){return t}),Tc||(Tc=function(t,r){for(var a=arguments.length,i=new Array(a>2?a-2:0),n=2;n<a;n++)i[n-2]=arguments[n];return t.apply(r,i)}),Pc||(Pc=function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return new t(...a)});const ci=Rt(Array.prototype.forEach),u1=Rt(Array.prototype.lastIndexOf),Dp=Rt(Array.prototype.pop),ui=Rt(Array.prototype.push),f1=Rt(Array.prototype.splice),Jn=Array.isArray,to=Rt(String.prototype.toLowerCase),Ic=Rt(String.prototype.toString),Fp=Rt(String.prototype.match),ro=Rt(String.prototype.replace),Mp=Rt(String.prototype.indexOf),d1=Rt(String.prototype.trim),p1=Rt(Number.prototype.toString),m1=Rt(Boolean.prototype.toString),jp=typeof BigInt>"u"?null:Rt(BigInt.prototype.toString),Lp=typeof Symbol>"u"?null:Rt(Symbol.prototype.toString),Wt=Rt(Object.prototype.hasOwnProperty),no=Rt(Object.prototype.toString),Kt=Rt(RegExp.prototype.test),Ta=h1(TypeError);function Rt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return Tc(e,t,a)}}function h1(e){return function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return Pc(e,r)}}function Ze(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:to;if(Ip&&Ip(e,null),!Jn(t))return e;let a=t.length;for(;a--;){let i=t[a];if(typeof i=="string"){const n=r(i);n!==i&&(s1(t)||(t[a]=n),i=n)}e[i]=!0}return e}function g1(e){for(let t=0;t<e.length;t++)Wt(e,t)||(e[t]=null);return e}function sr(e){const t=li(null);for(const a of Pp(e)){var r=i1(a,2);const i=r[0],n=r[1];Wt(e,i)&&(Jn(n)?t[i]=g1(n):n&&typeof n=="object"&&n.constructor===Object?t[i]=sr(n):t[i]=n)}return t}function y1(e){switch(typeof e){case"string":return e;case"number":return p1(e);case"boolean":return m1(e);case"bigint":return jp?jp(e):"0";case"symbol":return Lp?Lp(e):"Symbol()";case"undefined":return no(e);case"function":case"object":{if(e===null)return no(e);const t=e,r=hn(t,"toString");if(typeof r=="function"){const a=r(t);return typeof a=="string"?a:no(a)}return no(e)}default:return no(e)}}function hn(e,t){for(;e!==null;){const a=c1(e,t);if(a){if(a.get)return Rt(a.get);if(typeof a.value=="function")return Rt(a.value)}e=l1(e)}function r(){return null}return r}function v1(e){try{return Kt(e,""),!0}catch{return!1}}const Rp=Zt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Nc=Zt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Dc=Zt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),b1=Zt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Fc=Zt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),k1=Zt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),qp=Zt(["#text"]),zp=Zt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Mc=Zt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),$p=Zt(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ms=Zt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),w1=Qt(/{{[\w\W]*|^[\w\W]*}}/g),S1=Qt(/<%[\w\W]*|^[\w\W]*%>/g),E1=Qt(/\${[\w\W]*/g),C1=Qt(/^data-[\-\w.\u00B7-\uFFFF]+$/),A1=Qt(/^aria-[\-\w]+$/),Up=Qt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_1=Qt(/^(?:\w+script|data):/i),O1=Qt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),x1=Qt(/^html$/i),T1=Qt(/^[a-z][.\w]*(-[.\w]+)+$/i),Bp=Qt(/<[/\w!]/g),Vp=Qt(/<[/\w]/g),P1=Qt(/<\/no(script|embed|frames)/i),I1=Qt(/\/>/i),_r={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},N1=function(){return typeof window>"u"?null:window},D1=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let a=null;const i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(a=r.getAttribute(i));const n="dompurify"+(a?"#"+a:"");try{return t.createPolicy(n,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+n+" could not be created."),null}},Hp=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Yn=function(t,r,a,i){return Wt(t,r)&&Jn(t[r])?Ze(i.base?sr(i.base):{},t[r],i.transform):a};function Wp(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:N1();const t=fe=>Wp(fe);if(t.version="3.4.12",t.removed=[],!e||!e.document||e.document.nodeType!==_r.document||!e.Element)return t.isSupported=!1,t;let r=e.document;const a=r,i=a.currentScript;e.DocumentFragment;const n=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter,l=e.NamedNodeMap;l===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const u=e.DOMParser,f=e.trustedTypes,p=s.prototype,d=hn(p,"cloneNode"),h=hn(p,"remove"),k=hn(p,"nextSibling"),v=hn(p,"childNodes"),y=hn(p,"parentNode"),b=hn(p,"shadowRoot"),w=hn(p,"attributes"),E=o&&o.prototype?hn(o.prototype,"nodeType"):null,m=o&&o.prototype?hn(o.prototype,"nodeName"):null;if(typeof n=="function"){const fe=r.createElement("template");fe.content&&fe.content.ownerDocument&&(r=fe.content.ownerDocument)}let g,S="",A,x=!1,O=0;const C=function(){if(O>0)throw Ta('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},_=function(R){C(),O++;try{return g.createHTML(R)}finally{O--}},F=function(R){C(),O++;try{return g.createScriptURL(R)}finally{O--}},I=function(){return x||(A=D1(f,i),x=!0),A},j=r,$=j.implementation,Y=j.createNodeIterator,Z=j.createDocumentFragment,ie=j.getElementsByTagName,P=a.importNode;let M=Hp();t.isSupported=typeof Pp=="function"&&typeof y=="function"&&$&&$.createHTMLDocument!==void 0;const U=w1,T=S1,N=E1,L=C1,B=A1,V=_1,K=O1,J=T1;let Q=Up,q=null;const z=Ze({},[...Rp,...Nc,...Dc,...Fc,...qp]);let W=null;const G=Ze({},[...zp,...Mc,...$p,...ms]);let te=Object.seal(li(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ae=null,pe=null;const ve=Object.seal(li(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ae=!0,Se=!0,De=!1,he=!0,Le=!1,We=!0,ke=!1,ee=!1,re=null,ne=null,we=!1,me=!1,at=!1,Re=!1,Ge=!0,Ct=!1;const It="user-content-";let it=!0,wt=!1,ot={},Gt=null;const Jr=Ze({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Ot=null;const Pn=Ze({},["audio","video","img","source","image","track"]);let Aa=null;const Yr=Ze({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xr="http://www.w3.org/1998/Math/MathML",Dr="http://www.w3.org/2000/svg",jt="http://www.w3.org/1999/xhtml";let Lt=jt,wr=!1,In=null;const Hn=Ze({},[Xr,Dr,jt],Ic),Sr=Zt(["mi","mo","mn","ms","mtext"]);let ss=Ze({},Sr);const kc=Zt(["annotation-xml"]);let Nn=Ze({},kc);const mr=Ze({},["title","style","font","a","script"]);let Zr=null;const wp=["application/xhtml+xml","text/html"],Sp="text/html";let xt=null,_a=null;const wc=r.createElement("form"),ls=function(R){return R instanceof RegExp||R instanceof Function},ai=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(_a&&_a===R)return;(!R||typeof R!="object")&&(R={}),R=sr(R),Zr=wp.indexOf(R.PARSER_MEDIA_TYPE)===-1?Sp:R.PARSER_MEDIA_TYPE,xt=Zr==="application/xhtml+xml"?Ic:to,q=Yn(R,"ALLOWED_TAGS",z,{transform:xt}),W=Yn(R,"ALLOWED_ATTR",G,{transform:xt}),In=Yn(R,"ALLOWED_NAMESPACES",Hn,{transform:Ic}),Aa=Yn(R,"ADD_URI_SAFE_ATTR",Yr,{transform:xt,base:Yr}),Ot=Yn(R,"ADD_DATA_URI_TAGS",Pn,{transform:xt,base:Pn}),Gt=Yn(R,"FORBID_CONTENTS",Jr,{transform:xt}),ae=Yn(R,"FORBID_TAGS",sr({}),{transform:xt}),pe=Yn(R,"FORBID_ATTR",sr({}),{transform:xt}),ot=Wt(R,"USE_PROFILES")?R.USE_PROFILES&&typeof R.USE_PROFILES=="object"?sr(R.USE_PROFILES):R.USE_PROFILES:!1,Ae=R.ALLOW_ARIA_ATTR!==!1,Se=R.ALLOW_DATA_ATTR!==!1,De=R.ALLOW_UNKNOWN_PROTOCOLS||!1,he=R.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Le=R.SAFE_FOR_TEMPLATES||!1,We=R.SAFE_FOR_XML!==!1,ke=R.WHOLE_DOCUMENT||!1,me=R.RETURN_DOM||!1,at=R.RETURN_DOM_FRAGMENT||!1,Re=R.RETURN_TRUSTED_TYPE||!1,we=R.FORCE_BODY||!1,Ge=R.SANITIZE_DOM!==!1,Ct=R.SANITIZE_NAMED_PROPS||!1,it=R.KEEP_CONTENT!==!1,wt=R.IN_PLACE||!1,Q=v1(R.ALLOWED_URI_REGEXP)?R.ALLOWED_URI_REGEXP:Up,Lt=typeof R.NAMESPACE=="string"?R.NAMESPACE:jt,ss=Wt(R,"MATHML_TEXT_INTEGRATION_POINTS")&&R.MATHML_TEXT_INTEGRATION_POINTS&&typeof R.MATHML_TEXT_INTEGRATION_POINTS=="object"?sr(R.MATHML_TEXT_INTEGRATION_POINTS):Ze({},Sr),Nn=Wt(R,"HTML_INTEGRATION_POINTS")&&R.HTML_INTEGRATION_POINTS&&typeof R.HTML_INTEGRATION_POINTS=="object"?sr(R.HTML_INTEGRATION_POINTS):Ze({},kc);const X=Wt(R,"CUSTOM_ELEMENT_HANDLING")&&R.CUSTOM_ELEMENT_HANDLING&&typeof R.CUSTOM_ELEMENT_HANDLING=="object"?sr(R.CUSTOM_ELEMENT_HANDLING):li(null);if(te=li(null),Wt(X,"tagNameCheck")&&ls(X.tagNameCheck)&&(te.tagNameCheck=X.tagNameCheck),Wt(X,"attributeNameCheck")&&ls(X.attributeNameCheck)&&(te.attributeNameCheck=X.attributeNameCheck),Wt(X,"allowCustomizedBuiltInElements")&&typeof X.allowCustomizedBuiltInElements=="boolean"&&(te.allowCustomizedBuiltInElements=X.allowCustomizedBuiltInElements),Qt(te),Le&&(Se=!1),at&&(me=!0),ot&&(q=Ze({},qp),W=li(null),ot.html===!0&&(Ze(q,Rp),Ze(W,zp)),ot.svg===!0&&(Ze(q,Nc),Ze(W,Mc),Ze(W,ms)),ot.svgFilters===!0&&(Ze(q,Dc),Ze(W,Mc),Ze(W,ms)),ot.mathMl===!0&&(Ze(q,Fc),Ze(W,$p),Ze(W,ms))),ve.tagCheck=null,ve.attributeCheck=null,Wt(R,"ADD_TAGS")&&(typeof R.ADD_TAGS=="function"?ve.tagCheck=R.ADD_TAGS:Jn(R.ADD_TAGS)&&(q===z&&(q=sr(q)),Ze(q,R.ADD_TAGS,xt))),Wt(R,"ADD_ATTR")&&(typeof R.ADD_ATTR=="function"?ve.attributeCheck=R.ADD_ATTR:Jn(R.ADD_ATTR)&&(W===G&&(W=sr(W)),Ze(W,R.ADD_ATTR,xt))),Wt(R,"ADD_URI_SAFE_ATTR")&&Jn(R.ADD_URI_SAFE_ATTR)&&Ze(Aa,R.ADD_URI_SAFE_ATTR,xt),Wt(R,"FORBID_CONTENTS")&&Jn(R.FORBID_CONTENTS)&&(Gt===Jr&&(Gt=sr(Gt)),Ze(Gt,R.FORBID_CONTENTS,xt)),Wt(R,"ADD_FORBID_CONTENTS")&&Jn(R.ADD_FORBID_CONTENTS)&&(Gt===Jr&&(Gt=sr(Gt)),Ze(Gt,R.ADD_FORBID_CONTENTS,xt)),it&&(q["#text"]=!0),ke&&Ze(q,["html","head","body"]),q.table&&(Ze(q,["tbody"]),delete ae.tbody),R.TRUSTED_TYPES_POLICY){if(typeof R.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ta('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof R.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ta('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const le=g;g=R.TRUSTED_TYPES_POLICY;try{S=_("")}catch(ge){throw g=le,ge}}else R.TRUSTED_TYPES_POLICY===null?(g=void 0,S=""):(g===void 0&&(g=I()),g&&typeof S=="string"&&(S=_("")));Zt&&Zt(R),_a=R},Sc=Ze({},[...Nc,...Dc,...b1]),Ec=Ze({},[...Fc,...k1]),Cc=function(R,X,le){return X.namespaceURI===jt?R==="svg":X.namespaceURI===Xr?R==="svg"&&(le==="annotation-xml"||ss[le]):!!Sc[R]},Ep=function(R,X,le){return X.namespaceURI===jt?R==="math":X.namespaceURI===Dr?R==="math"&&Nn[le]:!!Ec[R]},Cp=function(R,X,le){return X.namespaceURI===Dr&&!Nn[le]||X.namespaceURI===Xr&&!ss[le]?!1:!Ec[R]&&(mr[R]||!Sc[R])},Ap=function(R){let X=y(R);(!X||!X.tagName)&&(X={namespaceURI:Lt,tagName:"template"});const le=to(R.tagName),ge=to(X.tagName);return In[R.namespaceURI]?R.namespaceURI===Dr?Cc(le,X,ge):R.namespaceURI===Xr?Ep(le,X,ge):R.namespaceURI===jt?Cp(le,X,ge):!!(Zr==="application/xhtml+xml"&&In[R.namespaceURI]):!1},Er=function(R){ui(t.removed,{element:R});try{y(R).removeChild(R)}catch{if(h(R),!y(R))throw Ta("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},hr=function(R){Oa(R);const X=v(R);if(X){const ge=[];ci(X,Ee=>{ui(ge,Ee)}),ci(ge,Ee=>{try{h(Ee)}catch{}})}const le=w(R);if(le)for(let ge=le.length-1;ge>=0;--ge){const Ee=le[ge],xe=Ee&&Ee.name;if(typeof xe=="string")try{R.removeAttribute(xe)}catch{}}},Dn=function(R,X){try{ui(t.removed,{attribute:X.getAttributeNode(R),from:X})}catch{ui(t.removed,{attribute:null,from:X})}if(X.removeAttribute(R),R==="is")if(me||at)try{Er(X)}catch{}else try{X.setAttribute(R,"")}catch{}},Ac=function(R){const X=w(R);if(X)for(let le=X.length-1;le>=0;--le){const ge=X[le],Ee=ge&&ge.name;if(!(typeof Ee!="string"||W[xt(Ee)]))try{R.removeAttribute(Ee)}catch{}}},Oa=function(R){const X=[R];for(;X.length>0;){const le=X.pop();(E?E(le):le.nodeType)===_r.element&&Ac(le);const Ee=v(le);if(Ee)for(let xe=Ee.length-1;xe>=0;--xe)X.push(Ee[xe])}},cs=function(R){if(!We)return;const X=[R];for(;X.length>0;){const le=X.pop(),ge=E?E(le):le.nodeType;if(ge===_r.processingInstruction||ge===_r.comment&&Kt(Vp,le.data)){try{h(le)}catch{}continue}if(ge===_r.element){const xe=le,Nt=xt(m?m(le):le.nodeName);try{xe.hasAttribute&&xe.hasAttribute("patchsrc")&&xe.removeAttribute("patchsrc"),xe.hasAttribute&&xe.hasAttribute("for")&&Nt!=="label"&&Nt!=="output"&&xe.removeAttribute("for")}catch{}}const Ee=v(le);if(Ee)for(let xe=Ee.length-1;xe>=0;--xe)X.push(Ee[xe])}},us=function(R){let X=null,le=null;if(we)R="<remove></remove>"+R;else{const xe=Fp(R,/^[\r\n\t ]+/);le=xe&&xe[0]}Zr==="application/xhtml+xml"&&Lt===jt&&(R='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+R+"</body></html>");const ge=g?_(R):R;if(Lt===jt)try{X=new u().parseFromString(ge,Zr)}catch{}if(!X||!X.documentElement){X=$.createDocument(Lt,"template",null);try{X.documentElement.innerHTML=wr?S:ge}catch{}}const Ee=X.body||X.documentElement;return R&&le&&Ee.insertBefore(r.createTextNode(le),Ee.childNodes[0]||null),Lt===jt?ie.call(X,ke?"html":"body")[0]:ke?X.documentElement:Ee},Xi=function(R){return Y.call(R.ownerDocument||R,R,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},ii=function(R){return R=ro(R,U," "),R=ro(R,T," "),R=ro(R,N," "),R},Zi=function(R){var X;R.normalize();const le=Y.call(R.ownerDocument||R,R,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let ge=le.nextNode();for(;ge;)ge.data=ii(ge.data),ge=le.nextNode();const Ee=(X=R.querySelectorAll)===null||X===void 0?void 0:X.call(R,"template");Ee&&ci(Ee,xe=>{xa(xe.content)&&Zi(xe.content)})},Wn=function(R){const X=m?m(R):null;return typeof X!="string"||xt(X)!=="form"?!1:typeof R.nodeName!="string"||typeof R.textContent!="string"||typeof R.removeChild!="function"||R.attributes!==w(R)||typeof R.removeAttribute!="function"||typeof R.setAttribute!="function"||typeof R.namespaceURI!="string"||typeof R.insertBefore!="function"||typeof R.hasChildNodes!="function"||R.nodeType!==E(R)||R.childNodes!==v(R)},xa=function(R){if(!E||typeof R!="object"||R===null)return!1;try{return E(R)===_r.documentFragment}catch{return!1}},Kn=function(R){if(!E||typeof R!="object"||R===null)return!1;try{return typeof E(R)=="number"}catch{return!1}};function Cr(fe,R,X){fe.length!==0&&ci(fe,le=>{le.call(t,R,X,_a)})}const _c=function(R,X){return!!(We&&R.hasChildNodes()&&!Kn(R.firstElementChild)&&Kt(Bp,R.textContent)&&Kt(Bp,R.innerHTML)||We&&R.namespaceURI===jt&&X==="style"&&Kn(R.firstElementChild)||R.nodeType===_r.processingInstruction||We&&R.nodeType===_r.comment&&Kt(Vp,R.data))},Oc=function(R,X){if(!ae[X]&&pn(X)&&(te.tagNameCheck instanceof RegExp&&Kt(te.tagNameCheck,X)||te.tagNameCheck instanceof Function&&te.tagNameCheck(X)))return!1;if(it&&!Gt[X]){const le=y(R),ge=v(R);if(ge&&le){const Ee=ge.length;for(let xe=Ee-1;xe>=0;--xe){const Nt=wt?ge[xe]:d(ge[xe],!0);le.insertBefore(Nt,k(R))}}}return Er(R),!0},oi=function(R,X){if(Cr(M.beforeSanitizeElements,R,null),R!==X&&y(R)===null)return!0;if(Wn(R))return Er(R),!0;const le=xt(m?m(R):R.nodeName);if(Cr(M.uponSanitizeElement,R,{tagName:le,allowedTags:q}),R!==X&&y(R)===null)return!0;if(_c(R,le))return Er(R),!0;if(ae[le]||!(ve.tagCheck instanceof Function&&ve.tagCheck(le))&&!q[le]){const Ee=Oc(R,le);return Ee===!1&&Cr(M.afterSanitizeElements,R,null),Ee}if((E?E(R):R.nodeType)===_r.element&&!Ap(R)||(le==="noscript"||le==="noembed"||le==="noframes")&&Kt(P1,R.innerHTML))return Er(R),!0;if(Le&&R.nodeType===_r.text){const Ee=ii(R.textContent);R.textContent!==Ee&&(ui(t.removed,{element:R.cloneNode()}),R.textContent=Ee)}return Cr(M.afterSanitizeElements,R,null),!1},Qi=function(R,X,le){if(pe[X]||We&&X==="patchsrc"||We&&X==="for"&&R!=="label"&&R!=="output"||Ge&&(X==="id"||X==="name")&&(le in r||le in wc))return!1;const ge=W[X]||ve.attributeCheck instanceof Function&&ve.attributeCheck(X,R);if(!(Se&&Kt(L,X))){if(!(Ae&&Kt(B,X))){if(ge){if(!Aa[X]){if(!Kt(Q,ro(le,K,""))){if(!((X==="src"||X==="xlink:href"||X==="href")&&R!=="script"&&Mp(le,"data:")===0&&Ot[R])){if(!(De&&!Kt(V,ro(le,K,"")))){if(le)return!1}}}}}else if(!(pn(R)&&(te.tagNameCheck instanceof RegExp&&Kt(te.tagNameCheck,R)||te.tagNameCheck instanceof Function&&te.tagNameCheck(R))&&(te.attributeNameCheck instanceof RegExp&&Kt(te.attributeNameCheck,X)||te.attributeNameCheck instanceof Function&&te.attributeNameCheck(X,R))||X==="is"&&te.allowCustomizedBuiltInElements&&(te.tagNameCheck instanceof RegExp&&Kt(te.tagNameCheck,le)||te.tagNameCheck instanceof Function&&te.tagNameCheck(le))))return!1}}return!0},Jt=Ze({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),pn=function(R){return!Jt[to(R)]&&Kt(J,R)},fs=function(R,X,le,ge){if(g&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!le)switch(f.getAttributeType(R,X)){case"TrustedHTML":return _(ge);case"TrustedScriptURL":return F(ge)}return ge},xc=function(R,X,le,ge){try{le?R.setAttributeNS(le,X,ge):R.setAttribute(X,ge),Wn(R)?Er(R):Dp(t.removed)}catch{Dn(X,R)}},eo=function(R){Cr(M.beforeSanitizeAttributes,R,null);const X=R.attributes;if(!X||Wn(R))return;const le={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0};let ge=X.length;const Ee=xt(R.nodeName);for(;ge--;){const xe=X[ge],Nt=xe.name,Yt=xe.namespaceURI,Fr=xe.value,or=xt(Nt),Ar=Fr;let Xt=Nt==="value"?Ar:d1(Ar);if(le.attrName=or,le.attrValue=Xt,le.keepAttr=!0,le.forceKeepAttr=void 0,Cr(M.uponSanitizeAttribute,R,le),Xt=le.attrValue,Ct&&(or==="id"||or==="name")&&Mp(Xt,It)!==0&&(Dn(Nt,R),Xt=It+Xt),We&&Kt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Xt)){Dn(Nt,R);continue}if(or==="attributename"&&Fp(Xt,"href")){Dn(Nt,R);continue}if(!le.forceKeepAttr){if(!le.keepAttr){Dn(Nt,R);continue}if(!he&&Kt(I1,Xt)){Dn(Nt,R);continue}if(Le&&(Xt=ii(Xt)),!Qi(Ee,or,Xt)){Dn(Nt,R);continue}Xt=fs(Ee,or,Yt,Xt),Xt!==Ar&&xc(R,Nt,Yt,Xt)}}Cr(M.afterSanitizeAttributes,R,null)},mn=function(R){let X=null;const le=Xi(R);for(Cr(M.beforeSanitizeShadowDOM,R,null);X=le.nextNode();)if(Cr(M.uponSanitizeShadowNode,X,null),oi(X,R),eo(X),xa(X.content)&&mn(X.content),(E?E(X):X.nodeType)===_r.element){const Ee=b(X);xa(Ee)&&(Gn(Ee),mn(Ee))}Cr(M.afterSanitizeShadowDOM,R,null)},Gn=function(R){const X=[{node:R,shadow:null}];for(;X.length>0;){const le=X.pop();if(le.shadow){mn(le.shadow);continue}const ge=le.node,xe=(E?E(ge):ge.nodeType)===_r.element,Nt=v(ge);if(Nt)for(let Yt=Nt.length-1;Yt>=0;--Yt)X.push({node:Nt[Yt],shadow:null});if(xe){const Yt=m?m(ge):null;if(typeof Yt=="string"&&xt(Yt)==="template"){const Fr=ge.content;xa(Fr)&&X.push({node:Fr,shadow:null})}}if(xe){const Yt=b(ge);xa(Yt)&&X.push({node:null,shadow:Yt},{node:Yt,shadow:null})}}};return t.sanitize=function(fe){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=null,le=null,ge=null,Ee=null;if(wr=!fe,wr&&(fe="<!-->"),typeof fe!="string"&&!Kn(fe)&&(fe=y1(fe),typeof fe!="string"))throw Ta("dirty is not a string, aborting");if(!t.isSupported)return fe;ee?(q=re,W=ne):ai(R),(M.uponSanitizeElement.length>0||M.uponSanitizeAttribute.length>0)&&(q=sr(q)),M.uponSanitizeAttribute.length>0&&(W=sr(W)),t.removed=[];const xe=wt&&typeof fe!="string"&&Kn(fe);if(xe){cs(fe);const or=m?m(fe):fe.nodeName;if(typeof or=="string"){const Ar=xt(or);if(!q[Ar]||ae[Ar])throw hr(fe),Ta("root node is forbidden and cannot be sanitized in-place")}if(Wn(fe))throw hr(fe),Ta("root node is clobbered and cannot be sanitized in-place");try{Gn(fe)}catch(Ar){throw hr(fe),Ar}}else if(Kn(fe))X=us("<!---->"),le=X.ownerDocument.importNode(fe,!0),le.nodeType===_r.element&&le.nodeName==="BODY"||le.nodeName==="HTML"?X=le:X.appendChild(le),Gn(le);else{if(!me&&!Le&&!ke&&fe.indexOf("<")===-1)return g&&Re?_(fe):fe;if(X=us(fe),!X)return me?null:Re?S:""}X&&we&&Er(X.firstChild);const Nt=xe?fe:X,Yt=Xi(Nt);try{for(;ge=Yt.nextNode();)oi(ge,Nt),eo(ge),xa(ge.content)&&mn(ge.content)}catch(or){throw xe&&(hr(fe),ci(t.removed,Ar=>{Ar.element&&Oa(Ar.element)})),or}if(xe)return ci(t.removed,or=>{or.element&&Oa(or.element)}),Le&&Zi(fe),fe;if(me){if(Le&&Zi(X),at)for(Ee=Z.call(X.ownerDocument);X.firstChild;)Ee.appendChild(X.firstChild);else Ee=X;return(W.shadowroot||W.shadowrootmode)&&(Ee=P.call(a,Ee,!0)),Ee}let Fr=ke?X.outerHTML:X.innerHTML;return ke&&q["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&Kt(x1,X.ownerDocument.doctype.name)&&(Fr="<!DOCTYPE "+X.ownerDocument.doctype.name+`>
|
|
3
|
-
`+Fr),Le&&(Fr=ii(Fr)),g&&Re?_(Fr):Fr},t.setConfig=function(){let fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ai(fe),ee=!0,re=q,ne=W},t.clearConfig=function(){_a=null,ee=!1,re=null,ne=null,g=A,S=""},t.isValidAttribute=function(fe,R,X){_a||ai({});const le=xt(fe),ge=xt(R);return Qi(le,ge,X)},t.addHook=function(fe,R){typeof R=="function"&&Wt(M,fe)&&ui(M[fe],R)},t.removeHook=function(fe,R){if(Wt(M,fe)){if(R!==void 0){const X=u1(M[fe],R);return X===-1?void 0:f1(M[fe],X,1)[0]}return Dp(M[fe])}},t.removeHooks=function(fe){Wt(M,fe)&&(M[fe]=[])},t.removeAllHooks=function(){M=Hp()},t}var hs=Wp();const F1=["script","iframe","object","embed","base","form"],M1=["srcdoc","formaction"];hs.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noreferrer")});const j1=(e,t)=>hs.removed.length>0||t===""&&e.trim()!=="";function jc(e){const t=hs.sanitize(e,{USE_PROFILES:{html:!0},FORBID_TAGS:F1,FORBID_ATTR:M1,ADD_ATTR:["target"]});return j1(e,t)&&console.warn("Factorial Code forms: removed unsafe HTML while rendering authored content. Scripts, event handlers and javascript: URLs are not executed — use the onSuccess/onNextStep/onError callbacks for behaviour.",hs.removed),t}const L1="Fcode-Version-Tag",R1="Fcode-Locale",Kp="Fcode-Resolved-Files",Gp=e=>e?{[L1]:e}:{},Jp=e=>e?{[R1]:e}:{},q1=async({hostUrl:e,headers:t,team:r,processId:a,processVersion:i,locale:n})=>{const o={...t,...Gp(i),...Jp(n)},s=await fetch(Op(e,r,a),{cache:"force-cache",...Object.keys(o).length>0&&{headers:o}}),c=await s.json();if(s.status===404)throw new Error("Process form specs couldn't be loaded. Have you enabled the form? Review documentation at https://code.factorialhr.com/docs/forms/");if(s.ok)return c;throw c},z1=/^data:([^;,]+)?(?:;name=([^;,]+))?(?:;base64)?,(.*)$/,$1=e=>{const t=z1.exec(e);if(!t)return null;const[,r="application/octet-stream",a="file",i]=t,o=e.includes(";base64,")?Uint8Array.from(atob(i),s=>s.charCodeAt(0)):new TextEncoder().encode(decodeURIComponent(i));return{mime:r,name:a,blob:new Blob([o],{type:r})}},U1=e=>{const t={...e},r=[];for(const[a,i]of Object.entries(e))if(i instanceof File)r.push({key:a,file:i}),delete t[a];else if(typeof i=="string"&&i.startsWith("data:")){const n=$1(i);n&&(r.push({key:a,file:new File([n.blob],n.name,{type:n.mime})}),delete t[a])}return{sanitized:t,files:r}},B1=e=>{var r,a;const t=(a=(r=e.headers)==null?void 0:r.get)==null?void 0:a.call(r,Kp);if(t)try{const i=JSON.parse(t);if(i&&typeof i=="object"&&!Array.isArray(i))return i}catch(i){console.error(`Unexpected ${Kp} header`,i)}},V1=async({hostUrl:e,headers:t,team:r,processId:a,processVersion:i,async:n,locale:o,formData:s})=>{const{sanitized:c,files:l}=U1(s),u=Op(e,r,a),f={"Fcode-Async":n?"true":"false"},p=Gp(i),d=Jp(o);let h;if(l.length>0){const v=new globalThis.FormData;v.append("parameters",JSON.stringify(c));for(const{key:b,file:w}of l)v.append(b,w,w.name);const y={...t,...f,...p,...d};delete y["Content-Type"],delete y["content-type"],h=await fetch(u,{headers:y,method:"POST",body:v})}else h=await fetch(u,{headers:{...t,"Content-Type":"application/json",...f,...p,...d},method:"POST",body:JSON.stringify(s)});let k={};try{const v=await h.text();v.length&&(k=JSON.parse(v))}catch(v){throw console.error("Unexpected error parsing response",v),v}if(h.ok)return{results:k,resolvedFiles:B1(h)};throw k},H1=({hostUrl:e,headers:t,team:r,processId:a,processVersion:i,locale:n,async:o=!1})=>{const[s,c]=H.useState(!1),[l,u]=H.useState(void 0),[f,p]=H.useState(void 0),[d,h]=H.useState(void 0),k=H.useCallback(()=>{c(!1),u(void 0),h(void 0),p(void 0)},[]);return[H.useCallback(async y=>{try{p(y),c(!0);const b=await V1({hostUrl:e,headers:t,team:r,processId:a,processVersion:i,locale:n,async:o,formData:y});return c(!1),u(b.results),b}catch(b){throw h(b),c(!1),b}},[e,t,r,a,i,n,o]),{loading:s,results:l,error:d,formData:f,reset:k}]},W1=({hostUrl:e,headers:t,team:r,processId:a,processVersion:i,locale:n})=>{const[o,s]=H.useState(!0),[c,l]=H.useState(),[u,f]=H.useState(),p=JSON.stringify(t??null),d=H.useMemo(()=>t,[p]);return H.useEffect(()=>{let h=!1;return s(!0),f(void 0),q1({hostUrl:e,headers:d,team:r,processId:a,processVersion:i,locale:n}).then(k=>{h||l(k)}).catch(k=>{h||f(k)}).finally(()=>{h||s(!1)}),()=>{h=!0}},[e,d,r,a,i,n]),{loading:o,formSpecs:c,error:u}},K1=e=>t1(e)||/^\.{0,2}\//.test(e)&&!/[\s{]/.test(e),G1=e=>{const t=new URL(e,window.location.href).href;return Array.from(document.querySelectorAll('link[rel="stylesheet"]')).some(r=>r.href===t)},J1=e=>{if(G1(e))return;const t=document.createElement("link");return t.href=e,t.type="text/css",t.rel="stylesheet",t.media="screen,print",document.head.appendChild(t),t},Y1=e=>{const t=document.createElement("style");return t.type="text/css",t.appendChild(document.createTextNode(e)),document.getElementsByTagName("head")[0].appendChild(t),t};function X1({stylesheets:e}){H.useEffect(()=>{const t=e.map(r=>K1(r)?J1(r):Y1(r)).filter(r=>r!==void 0);return()=>{t.forEach(r=>{r.remove()})}},[])}function Yp(e){const{stylesheet:t,stylesheetBaseUrl:r="https://code.factorialhr.com/sdk",theme:a,themeStylesheet:i}=e,n=H.useMemo(()=>{if(t)return[t];if(a==="none")return[];const o=[`${r}/styles.css`];return i?o.push(i):a&&o.push(`${r}/styles-theme-${a}.css`),o},[t,r,a,i]);X1({stylesheets:n})}function gs(){return gs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},gs.apply(null,arguments)}function Xp(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}function Lc(e,t){return Lc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Lc(e,t)}function Zp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Lc(e,t)}function gn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ys={exports:{}},vs={exports:{}},ut={};/** @license React v16.13.1
|
|
1
|
+
(function(Xe,N){typeof exports=="object"&&typeof module<"u"?N(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],N):(Xe=typeof globalThis<"u"?globalThis:Xe||self,N(Xe.FcodeForm={},Xe.jsxRuntime,Xe.React,Xe.ReactDOM))})(this,(function(Xe,N,V,Co){"use strict";var C$=Object.defineProperty;var E$=(Xe,N,V)=>N in Xe?C$(Xe,N,{enumerable:!0,configurable:!0,writable:!0,value:V}):Xe[N]=V;var Jt=(Xe,N,V)=>E$(Xe,typeof N!="symbol"?N+"":N,V);function z1(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Zr=z1(V),Ud=(e,t,r)=>`${e}/api/${t}/forms/${r}`,Bd=()=>Math.random().toString(36).substring(2,10),$1=e=>!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e),U1="Fcode-Version-Tag",B1="Fcode-Locale",Vd="Fcode-Resolved-Files",Hd=e=>e?{[U1]:e}:{},Kd=e=>e?{[B1]:e}:{},V1=async({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n})=>{const o={...t,...Hd(a),...Kd(n)},s=await fetch(Ud(e,r,i),{cache:"force-cache",...Object.keys(o).length>0&&{headers:o}}),l=await s.json();if(s.status===404)throw new Error("Process form specs couldn't be loaded. Have you enabled the form? Review documentation at https://code.factorialhr.com/docs/forms/");if(s.ok)return l;throw l},H1=/^data:([^;,]+)?(?:;name=([^;,]+))?(?:;base64)?,(.*)$/,K1=e=>{const t=H1.exec(e);if(!t)return null;const[,r="application/octet-stream",i="file",a]=t,o=e.includes(";base64,")?Uint8Array.from(atob(a),s=>s.charCodeAt(0)):new TextEncoder().encode(decodeURIComponent(a));return{mime:r,name:i,blob:new Blob([o],{type:r})}},W1=e=>{const t={...e},r=[];for(const[i,a]of Object.entries(e))if(a instanceof File)r.push({key:i,file:a}),delete t[i];else if(typeof a=="string"&&a.startsWith("data:")){const n=K1(a);n&&(r.push({key:i,file:new File([n.blob],n.name,{type:n.mime})}),delete t[i])}return{sanitized:t,files:r}},G1=e=>{var r,i;const t=(i=(r=e.headers)==null?void 0:r.get)==null?void 0:i.call(r,Vd);if(t)try{const a=JSON.parse(t);if(a&&typeof a=="object"&&!Array.isArray(a))return a}catch(a){console.error(`Unexpected ${Vd} header`,a)}},J1=async({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,async:n,locale:o,formData:s})=>{const{sanitized:l,files:u}=W1(s),c=Ud(e,r,i),f={"Fcode-Async":n?"true":"false"},m=Hd(a),d=Kd(o);let p;if(u.length>0){const v=new globalThis.FormData;v.append("parameters",JSON.stringify(l));for(const{key:b,file:w}of u)v.append(b,w,w.name);const g={...t,...f,...m,...d};delete g["Content-Type"],delete g["content-type"],p=await fetch(c,{headers:g,method:"POST",body:v})}else p=await fetch(c,{headers:{...t,"Content-Type":"application/json",...f,...m,...d},method:"POST",body:JSON.stringify(s)});let k={};try{const v=await p.text();v.length&&(k=JSON.parse(v))}catch(v){throw console.error("Unexpected error parsing response",v),v}if(p.ok)return{results:k,resolvedFiles:G1(p)};throw k},Y1=({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n,async:o=!1})=>{const[s,l]=V.useState(!1),[u,c]=V.useState(void 0),[f,m]=V.useState(void 0),[d,p]=V.useState(void 0),k=V.useCallback(()=>{l(!1),c(void 0),p(void 0),m(void 0)},[]);return[V.useCallback(async g=>{try{m(g),l(!0);const b=await J1({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n,async:o,formData:g});return l(!1),c(b.results),b}catch(b){throw p(b),l(!1),b}},[e,t,r,i,a,n,o]),{loading:s,results:u,error:d,formData:f,reset:k}]},X1=({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n})=>{const[o,s]=V.useState(!0),[l,u]=V.useState(),[c,f]=V.useState(),m=JSON.stringify(t??null),d=V.useMemo(()=>t,[m]);return V.useEffect(()=>{let p=!1;return s(!0),f(void 0),V1({hostUrl:e,headers:d,team:r,processId:i,processVersion:a,locale:n}).then(k=>{p||u(k)}).catch(k=>{p||f(k)}).finally(()=>{p||s(!1)}),()=>{p=!0}},[e,d,r,i,a,n]),{loading:o,formSpecs:l,error:c}},Z1=e=>$1(e)||/^\.{0,2}\//.test(e)&&!/[\s{]/.test(e),Q1=e=>{const t=new URL(e,window.location.href).href;return Array.from(document.querySelectorAll('link[rel="stylesheet"]')).some(r=>r.href===t)},e0=e=>{if(Q1(e))return;const t=document.createElement("link");return t.href=e,t.type="text/css",t.rel="stylesheet",t.media="screen,print",document.head.appendChild(t),t},t0=e=>{const t=document.createElement("style");return t.type="text/css",t.appendChild(document.createTextNode(e)),document.getElementsByTagName("head")[0].appendChild(t),t};function r0({stylesheets:e}){V.useEffect(()=>{const t=e.map(r=>Z1(r)?e0(r):t0(r)).filter(r=>r!==void 0);return()=>{t.forEach(r=>{r.remove()})}},[])}function Wd(e){const{stylesheet:t,stylesheetBaseUrl:r="https://code.factorialhr.com/sdk",theme:i,themeStylesheet:a}=e,n=V.useMemo(()=>{if(t)return[t];if(i==="none")return[];const o=[`${r}/styles.css`];return a?o.push(a):i&&o.push(`${r}/styles-theme-${i}.css`),o},[t,r,i,a]);r0({stylesheets:n})}function Eo(){return Eo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Eo.apply(null,arguments)}function Gd(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function zl(e,t){return zl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},zl(e,t)}function Jd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zl(e,t)}function jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ao={exports:{}},xo={exports:{}},Qe={};/** @license React v16.13.1
|
|
4
2
|
* react-is.production.min.js
|
|
5
3
|
*
|
|
6
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
5
|
*
|
|
8
6
|
* This source code is licensed under the MIT license found in the
|
|
9
7
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var
|
|
8
|
+
*/var Yd;function n0(){if(Yd)return Qe;Yd=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,n=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,k=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(h){if(typeof h=="object"&&h!==null){var y=h.$$typeof;switch(y){case t:switch(h=h.type,h){case l:case u:case i:case n:case a:case f:return h;default:switch(h=h&&h.$$typeof,h){case s:case c:case p:case d:case o:return h;default:return y}}case r:return y}}}function E(h){return w(h)===u}return Qe.AsyncMode=l,Qe.ConcurrentMode=u,Qe.ContextConsumer=s,Qe.ContextProvider=o,Qe.Element=t,Qe.ForwardRef=c,Qe.Fragment=i,Qe.Lazy=p,Qe.Memo=d,Qe.Portal=r,Qe.Profiler=n,Qe.StrictMode=a,Qe.Suspense=f,Qe.isAsyncMode=function(h){return E(h)||w(h)===l},Qe.isConcurrentMode=E,Qe.isContextConsumer=function(h){return w(h)===s},Qe.isContextProvider=function(h){return w(h)===o},Qe.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===t},Qe.isForwardRef=function(h){return w(h)===c},Qe.isFragment=function(h){return w(h)===i},Qe.isLazy=function(h){return w(h)===p},Qe.isMemo=function(h){return w(h)===d},Qe.isPortal=function(h){return w(h)===r},Qe.isProfiler=function(h){return w(h)===n},Qe.isStrictMode=function(h){return w(h)===a},Qe.isSuspense=function(h){return w(h)===f},Qe.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===i||h===u||h===n||h===a||h===f||h===m||typeof h=="object"&&h!==null&&(h.$$typeof===p||h.$$typeof===d||h.$$typeof===o||h.$$typeof===s||h.$$typeof===c||h.$$typeof===v||h.$$typeof===g||h.$$typeof===b||h.$$typeof===k)},Qe.typeOf=w,Qe}var et={};/** @license React v16.13.1
|
|
11
9
|
* react-is.development.js
|
|
12
10
|
*
|
|
13
11
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
12
|
*
|
|
15
13
|
* This source code is licensed under the MIT license found in the
|
|
16
14
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
15
|
+
*/var Xd;function i0(){return Xd||(Xd=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,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,n=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,k=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(R){return typeof R=="string"||typeof R=="function"||R===i||R===u||R===n||R===a||R===f||R===m||typeof R=="object"&&R!==null&&(R.$$typeof===p||R.$$typeof===d||R.$$typeof===o||R.$$typeof===s||R.$$typeof===c||R.$$typeof===v||R.$$typeof===g||R.$$typeof===b||R.$$typeof===k)}function E(R){if(typeof R=="object"&&R!==null){var W=R.$$typeof;switch(W){case t:var K=R.type;switch(K){case l:case u:case i:case n:case a:case f:return K;default:var ie=K&&K.$$typeof;switch(ie){case s:case c:case p:case d:case o:return ie;default:return W}}case r:return W}}}var h=l,y=u,C=s,x=o,_=t,S=c,A=i,O=p,F=d,T=r,M=n,q=a,J=f,Y=!1;function Q(R){return Y||(Y=!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.")),P(R)||E(R)===l}function P(R){return E(R)===u}function j(R){return E(R)===s}function B(R){return E(R)===o}function I(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function D(R){return E(R)===c}function L(R){return E(R)===i}function U(R){return E(R)===p}function $(R){return E(R)===d}function H(R){return E(R)===r}function G(R){return E(R)===n}function X(R){return E(R)===a}function z(R){return E(R)===f}et.AsyncMode=h,et.ConcurrentMode=y,et.ContextConsumer=C,et.ContextProvider=x,et.Element=_,et.ForwardRef=S,et.Fragment=A,et.Lazy=O,et.Memo=F,et.Portal=T,et.Profiler=M,et.StrictMode=q,et.Suspense=J,et.isAsyncMode=Q,et.isConcurrentMode=P,et.isContextConsumer=j,et.isContextProvider=B,et.isElement=I,et.isForwardRef=D,et.isFragment=L,et.isLazy=U,et.isMemo=$,et.isPortal=H,et.isProfiler=G,et.isStrictMode=X,et.isSuspense=z,et.isValidElementType=w,et.typeOf=E})()),et}var Zd;function Qd(){return Zd||(Zd=1,process.env.NODE_ENV==="production"?xo.exports=n0():xo.exports=i0()),xo.exports}/*
|
|
18
16
|
object-assign
|
|
19
17
|
(c) Sindre Sorhus
|
|
20
18
|
@license MIT
|
|
21
|
-
*/var
|
|
22
|
-
Valid keys: `+JSON.stringify(Object.keys(P),null," "));var z=q(V,Q,N,L,B+"."+Q,r);if(z)return z}return null}return v(M)}function I(P){switch(typeof P){case"number":case"string":case"undefined":return!0;case"boolean":return!P;case"object":if(Array.isArray(P))return P.every(I);if(P===null||s(P))return!0;var M=f(P);if(M){var U=M.call(P),T;if(M!==P.entries){for(;!(T=U.next()).done;)if(!I(T.value))return!1}else for(;!(T=U.next()).done;){var N=T.value;if(N&&!I(N[1]))return!1}}else return!1;return!0;default:return!1}}function j(P,M){return P==="symbol"?!0:M?M["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&M instanceof Symbol:!1}function $(P){var M=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":j(M,P)?"symbol":M}function Y(P){if(typeof P>"u"||P===null)return""+P;var M=$(P);if(M==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return M}function Z(P){var M=Y(P);switch(M){case"array":case"object":return"an "+M;case"boolean":case"date":case"regexp":return"a "+M;default:return M}}function ie(P){return!P.constructor||!P.constructor.name?p:P.constructor.name}return d.checkPropTypes=i,d.resetWarningCache=i.resetWarningCache,d.PropTypes=d,d},Bc}var Vc,cm;function nw(){if(cm)return Vc;cm=1;var e=zc();function t(){}function r(){}return r.resetWarningCache=t,Vc=function(){function a(o,s,c,l,u,f){if(f!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}a.isRequired=a;function i(){return a}var n={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:i,element:a,elementType:a,instanceOf:i,node:a,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return n.PropTypes=n,n},Vc}var um;function aw(){if(um)return ys.exports;if(um=1,process.env.NODE_ENV!=="production"){var e=rm(),t=!0;ys.exports=rw()(e.isElement,t)}else ys.exports=nw()();return ys.exports}var iw=aw();const Ie=gn(iw);function ow(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function sw(e,t){e.classList?e.classList.add(t):ow(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function fm(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function lw(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=fm(e.className,t):e.setAttribute("class",fm(e.className&&e.className.baseVal||"",t))}const dm={disabled:!1};var cw=process.env.NODE_ENV!=="production"?Ie.oneOfType([Ie.number,Ie.shape({enter:Ie.number,exit:Ie.number,appear:Ie.number}).isRequired]):null,uw=process.env.NODE_ENV!=="production"?Ie.oneOfType([Ie.string,Ie.shape({enter:Ie.string,exit:Ie.string,active:Ie.string}),Ie.shape({enter:Ie.string,enterDone:Ie.string,enterActive:Ie.string,exit:Ie.string,exitDone:Ie.string,exitActive:Ie.string})]):null;const pm=H.createContext(null);var mm=function(t){return t.scrollTop},ao="unmounted",Pa="exited",Ia="entering",fi="entered",Hc="exiting",yn=(function(e){Zp(t,e);function t(a,i){var n;n=e.call(this,a,i)||this;var o=i,s=o&&!o.isMounting?a.enter:a.appear,c;return n.appearStatus=null,a.in?s?(c=Pa,n.appearStatus=Ia):c=fi:a.unmountOnExit||a.mountOnEnter?c=ao:c=Pa,n.state={status:c},n.nextCallback=null,n}t.getDerivedStateFromProps=function(i,n){var o=i.in;return o&&n.status===ao?{status:Pa}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var n=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==Ia&&o!==fi&&(n=Ia):(o===Ia||o===fi)&&(n=Hc)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,n,o,s;return n=o=s=i,i!=null&&typeof i!="number"&&(n=i.exit,o=i.enter,s=i.appear!==void 0?i.appear:o),{exit:n,enter:o,appear:s}},r.updateStatus=function(i,n){if(i===void 0&&(i=!1),n!==null)if(this.cancelNextCallback(),n===Ia){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:ps.findDOMNode(this);o&&mm(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Pa&&this.setState({status:ao})},r.performEnter=function(i){var n=this,o=this.props.enter,s=this.context?this.context.isMounting:i,c=this.props.nodeRef?[s]:[ps.findDOMNode(this),s],l=c[0],u=c[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!i&&!o||dm.disabled){this.safeSetState({status:fi},function(){n.props.onEntered(l)});return}this.props.onEnter(l,u),this.safeSetState({status:Ia},function(){n.props.onEntering(l,u),n.onTransitionEnd(p,function(){n.safeSetState({status:fi},function(){n.props.onEntered(l,u)})})})},r.performExit=function(){var i=this,n=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:ps.findDOMNode(this);if(!n||dm.disabled){this.safeSetState({status:Pa},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Hc},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:Pa},function(){i.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,n){n=this.setNextCallback(n),this.setState(i,n)},r.setNextCallback=function(i){var n=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,n.nextCallback=null,i(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(i,n){this.setNextCallback(n);var o=this.props.nodeRef?this.props.nodeRef.current:ps.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],l=c[0],u=c[1];this.props.addEndListener(l,u)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===ao)return null;var n=this.props,o=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var s=Xp(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return H.createElement(pm.Provider,{value:null},typeof o=="function"?o(i,s):H.cloneElement(H.Children.only(o),s))},t})(H.Component);yn.contextType=pm,yn.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:Ie.shape({current:typeof Element>"u"?Ie.any:function(e,t,r,a,i,n){var o=e[t];return Ie.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,r,a,i,n)}}),children:Ie.oneOfType([Ie.func.isRequired,Ie.element.isRequired]).isRequired,in:Ie.bool,mountOnEnter:Ie.bool,unmountOnExit:Ie.bool,appear:Ie.bool,enter:Ie.bool,exit:Ie.bool,timeout:function(t){var r=cw;t.addEndListener||(r=r.isRequired);for(var a=arguments.length,i=new Array(a>1?a-1:0),n=1;n<a;n++)i[n-1]=arguments[n];return r.apply(void 0,[t].concat(i))},addEndListener:Ie.func,onEnter:Ie.func,onEntering:Ie.func,onEntered:Ie.func,onExit:Ie.func,onExiting:Ie.func,onExited:Ie.func}:{};function di(){}yn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:di,onEntering:di,onEntered:di,onExit:di,onExiting:di,onExited:di},yn.UNMOUNTED=ao,yn.EXITED=Pa,yn.ENTERING=Ia,yn.ENTERED=fi,yn.EXITING=Hc;var fw=function(t,r){return t&&r&&r.split(" ").forEach(function(a){return sw(t,a)})},Wc=function(t,r){return t&&r&&r.split(" ").forEach(function(a){return lw(t,a)})},Kc=(function(e){Zp(t,e);function t(){for(var a,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];return a=e.call.apply(e,[this].concat(n))||this,a.appliedClasses={appear:{},enter:{},exit:{}},a.onEnter=function(s,c){var l=a.resolveArguments(s,c),u=l[0],f=l[1];a.removeClasses(u,"exit"),a.addClass(u,f?"appear":"enter","base"),a.props.onEnter&&a.props.onEnter(s,c)},a.onEntering=function(s,c){var l=a.resolveArguments(s,c),u=l[0],f=l[1],p=f?"appear":"enter";a.addClass(u,p,"active"),a.props.onEntering&&a.props.onEntering(s,c)},a.onEntered=function(s,c){var l=a.resolveArguments(s,c),u=l[0],f=l[1],p=f?"appear":"enter";a.removeClasses(u,p),a.addClass(u,p,"done"),a.props.onEntered&&a.props.onEntered(s,c)},a.onExit=function(s){var c=a.resolveArguments(s),l=c[0];a.removeClasses(l,"appear"),a.removeClasses(l,"enter"),a.addClass(l,"exit","base"),a.props.onExit&&a.props.onExit(s)},a.onExiting=function(s){var c=a.resolveArguments(s),l=c[0];a.addClass(l,"exit","active"),a.props.onExiting&&a.props.onExiting(s)},a.onExited=function(s){var c=a.resolveArguments(s),l=c[0];a.removeClasses(l,"exit"),a.addClass(l,"exit","done"),a.props.onExited&&a.props.onExited(s)},a.resolveArguments=function(s,c){return a.props.nodeRef?[a.props.nodeRef.current,s]:[s,c]},a.getClassNames=function(s){var c=a.props.classNames,l=typeof c=="string",u=l&&c?c+"-":"",f=l?""+u+s:c[s],p=l?f+"-active":c[s+"Active"],d=l?f+"-done":c[s+"Done"];return{baseClassName:f,activeClassName:p,doneClassName:d}},a}var r=t.prototype;return r.addClass=function(i,n,o){var s=this.getClassNames(n)[o+"ClassName"],c=this.getClassNames("enter"),l=c.doneClassName;n==="appear"&&o==="done"&&l&&(s+=" "+l),o==="active"&&i&&mm(i),s&&(this.appliedClasses[n][o]=s,fw(i,s))},r.removeClasses=function(i,n){var o=this.appliedClasses[n],s=o.base,c=o.active,l=o.done;this.appliedClasses[n]={},s&&Wc(i,s),c&&Wc(i,c),l&&Wc(i,l)},r.render=function(){var i=this.props;i.classNames;var n=Xp(i,["classNames"]);return H.createElement(yn,gs({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(H.Component);Kc.defaultProps={classNames:""},Kc.propTypes=process.env.NODE_ENV!=="production"?gs({},yn.propTypes,{classNames:uw,onEnter:Ie.func,onEntering:Ie.func,onEntered:Ie.func,onExit:Ie.func,onExiting:Ie.func,onExited:Ie.func}):{};const dw=Kc,hm=({active:e,children:t,content:r,disabled:a})=>{const i=H.useRef(null);return a?D.jsx(D.Fragment,{children:t}):D.jsxs("div",{className:"fcode-loading-overlay-root",children:[t,D.jsx(dw,{nodeRef:i,in:e,timeout:200,unmountOnExit:!0,classNames:"fcode-loading-overlay",children:D.jsx("div",{ref:i,"data-testid":"overlay",className:"fcode-loading-overlay",children:D.jsxs("div",{className:"fcode-loading-overlay-content-wrapper",children:[D.jsx("div",{"data-testid":"spinner",className:"fcode-loading-overlay-spinner",children:D.jsx("svg",{viewBox:"25 25 50 50",children:D.jsx("circle",{cx:"50",cy:"50",r:"20",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"})})}),r&&D.jsx("p",{"data-testid":"content",className:"fcode-loading-overlay-content",children:r})]})})})]})},pw=["first","second"],gm=()=>D.jsxs("div",{className:"fcode-form-skeleton","data-testid":"fcode-form-skeleton","aria-hidden":"true",children:[D.jsx("div",{className:"fcode-form-skeleton-title"}),D.jsx("div",{className:"fcode-form-skeleton-description"}),pw.map(e=>D.jsxs("div",{className:"fcode-form-skeleton-group",children:[D.jsx("div",{className:"fcode-form-skeleton-label"}),D.jsx("div",{className:"fcode-form-skeleton-field"})]},e)),D.jsx("div",{className:"fcode-form-skeleton-button"})]});gm.displayName="FormSkeleton";const Gc=(e,t)=>{const r=new CustomEvent(e,{detail:t});document.dispatchEvent(r)},mw=(e,t)=>{const r=t.message||'<p class="fcode-form-success-message">The form has been successfully submitted</p>';document.getElementById(e).parentElement.innerHTML=jc(r)},hw=e=>{setTimeout(()=>{window.location.assign(e.url)},e.timeout||0)},gw=(e,t,r)=>{console.log(`Form ${e} has been successfully submitted.`),Gc("fcode-forms-on-submit-success",{formId:e,formSubmittedData:r,processExecutionResult:t}),mw(e,t),t.redirect&&hw(t.redirect)},yw=(e,t)=>{Gc("fcode-forms-on-next-step",{formId:e,previousProcessExecutionResult:t})},vw=(e,t)=>{console.log(`There has been an error submitting the form ${e}`,t),Gc("fcode-forms-on-submit-error",{formId:e,error:t});let r="There has been an error submitting the form";try{const i=JSON.parse(t.message);i.errorMessage&&(r=i.errorMessage)}catch{}const a=document.getElementById(e);!a||!a.parentElement||(a.parentElement.innerHTML=`<p class="fcode-form-error-message">${jc(r)}</p>`)},bw="The form couldn't be loaded",kw=e=>{if(typeof e=="string"&&e)return e;const t=e==null?void 0:e.message;return typeof t=="string"&&t?t:bw},ym=e=>{if(e!==null)switch(typeof e){case"string":e={__errors:[e]};break;case"object":if(e instanceof Array){e={__errors:[...e]};break}else for(const t in e)e[t]=ym(e[t]);break}return e},ww=e=>{let t={};return e.fields&&(t={...ym(e.fields)}),e.global&&(t.__errors=[...e.global]),t};/*!
|
|
19
|
+
*/var $l,em;function a0(){if(em)return $l;em=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(n){if(n==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}function a(){try{if(!Object.assign)return!1;var n=new String("abc");if(n[5]="de",Object.getOwnPropertyNames(n)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(c){return o[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return $l=a()?Object.assign:function(n,o){for(var s,l=i(n),u,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var f in s)t.call(s,f)&&(l[f]=s[f]);if(e){u=e(s);for(var m=0;m<u.length;m++)r.call(s,u[m])&&(l[u[m]]=s[u[m]])}}return l},$l}var Ul,tm;function Bl(){if(tm)return Ul;tm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ul=e,Ul}var Vl,rm;function nm(){return rm||(rm=1,Vl=Function.call.bind(Object.prototype.hasOwnProperty)),Vl}var Hl,im;function o0(){if(im)return Hl;im=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Bl(),r={},i=nm();e=function(n){var o="Warning: "+n;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function a(n,o,s,l,u){if(process.env.NODE_ENV!=="production"){for(var c in n)if(i(n,c)){var f;try{if(typeof n[c]!="function"){var m=Error((l||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}f=n[c](o,c,l,s,null,t)}catch(p){f=p}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var d=u?u():"";e("Failed "+s+" type: "+f.message+(d??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Hl=a,Hl}var Kl,am;function s0(){if(am)return Kl;am=1;var e=Qd(),t=a0(),r=Bl(),i=nm(),a=o0(),n=function(){};process.env.NODE_ENV!=="production"&&(n=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return Kl=function(s,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(P){var j=P&&(u&&P[u]||P[c]);if(typeof j=="function")return j}var m="<<anonymous>>",d={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:b(),arrayOf:w,element:E(),elementType:h(),instanceOf:y,node:S(),objectOf:x,oneOf:C,oneOfType:_,shape:O,exact:F};function p(P,j){return P===j?P!==0||1/P===1/j:P!==P&&j!==j}function k(P,j){this.message=P,this.data=j&&typeof j=="object"?j:{},this.stack=""}k.prototype=Error.prototype;function v(P){if(process.env.NODE_ENV!=="production")var j={},B=0;function I(L,U,$,H,G,X,z){if(H=H||m,X=X||$,z!==r){if(l){var R=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw R.name="Invariant Violation",R}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var W=H+":"+$;!j[W]&&B<3&&(n("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+H+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),j[W]=!0,B++)}}return U[$]==null?L?U[$]===null?new k("The "+G+" `"+X+"` is marked as required "+("in `"+H+"`, but its value is `null`.")):new k("The "+G+" `"+X+"` is marked as required in "+("`"+H+"`, but its value is `undefined`.")):null:P(U,$,H,G,X)}var D=I.bind(null,!1);return D.isRequired=I.bind(null,!0),D}function g(P){function j(B,I,D,L,U,$){var H=B[I],G=q(H);if(G!==P){var X=J(H);return new k("Invalid "+L+" `"+U+"` of type "+("`"+X+"` supplied to `"+D+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return v(j)}function b(){return v(o)}function w(P){function j(B,I,D,L,U){if(typeof P!="function")return new k("Property `"+U+"` of component `"+D+"` has invalid PropType notation inside arrayOf.");var $=B[I];if(!Array.isArray($)){var H=q($);return new k("Invalid "+L+" `"+U+"` of type "+("`"+H+"` supplied to `"+D+"`, expected an array."))}for(var G=0;G<$.length;G++){var X=P($,G,D,L,U+"["+G+"]",r);if(X instanceof Error)return X}return null}return v(j)}function E(){function P(j,B,I,D,L){var U=j[B];if(!s(U)){var $=q(U);return new k("Invalid "+D+" `"+L+"` of type "+("`"+$+"` supplied to `"+I+"`, expected a single ReactElement."))}return null}return v(P)}function h(){function P(j,B,I,D,L){var U=j[B];if(!e.isValidElementType(U)){var $=q(U);return new k("Invalid "+D+" `"+L+"` of type "+("`"+$+"` supplied to `"+I+"`, expected a single ReactElement type."))}return null}return v(P)}function y(P){function j(B,I,D,L,U){if(!(B[I]instanceof P)){var $=P.name||m,H=Q(B[I]);return new k("Invalid "+L+" `"+U+"` of type "+("`"+H+"` supplied to `"+D+"`, expected ")+("instance of `"+$+"`."))}return null}return v(j)}function C(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&(arguments.length>1?n("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):n("Invalid argument supplied to oneOf, expected an array.")),o;function j(B,I,D,L,U){for(var $=B[I],H=0;H<P.length;H++)if(p($,P[H]))return null;var G=JSON.stringify(P,function(z,R){var W=J(R);return W==="symbol"?String(R):R});return new k("Invalid "+L+" `"+U+"` of value `"+String($)+"` "+("supplied to `"+D+"`, expected one of "+G+"."))}return v(j)}function x(P){function j(B,I,D,L,U){if(typeof P!="function")return new k("Property `"+U+"` of component `"+D+"` has invalid PropType notation inside objectOf.");var $=B[I],H=q($);if(H!=="object")return new k("Invalid "+L+" `"+U+"` of type "+("`"+H+"` supplied to `"+D+"`, expected an object."));for(var G in $)if(i($,G)){var X=P($,G,D,L,U+"."+G,r);if(X instanceof Error)return X}return null}return v(j)}function _(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&n("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var j=0;j<P.length;j++){var B=P[j];if(typeof B!="function")return n("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(B)+" at index "+j+"."),o}function I(D,L,U,$,H){for(var G=[],X=0;X<P.length;X++){var z=P[X],R=z(D,L,U,$,H,r);if(R==null)return null;R.data&&i(R.data,"expectedType")&&G.push(R.data.expectedType)}var W=G.length>0?", expected one of type ["+G.join(", ")+"]":"";return new k("Invalid "+$+" `"+H+"` supplied to "+("`"+U+"`"+W+"."))}return v(I)}function S(){function P(j,B,I,D,L){return T(j[B])?null:new k("Invalid "+D+" `"+L+"` supplied to "+("`"+I+"`, expected a ReactNode."))}return v(P)}function A(P,j,B,I,D){return new k((P||"React class")+": "+j+" type `"+B+"."+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+D+"`.")}function O(P){function j(B,I,D,L,U){var $=B[I],H=q($);if(H!=="object")return new k("Invalid "+L+" `"+U+"` of type `"+H+"` "+("supplied to `"+D+"`, expected `object`."));for(var G in P){var X=P[G];if(typeof X!="function")return A(D,L,U,G,J(X));var z=X($,G,D,L,U+"."+G,r);if(z)return z}return null}return v(j)}function F(P){function j(B,I,D,L,U){var $=B[I],H=q($);if(H!=="object")return new k("Invalid "+L+" `"+U+"` of type `"+H+"` "+("supplied to `"+D+"`, expected `object`."));var G=t({},B[I],P);for(var X in G){var z=P[X];if(i(P,X)&&typeof z!="function")return A(D,L,U,X,J(z));if(!z)return new k("Invalid "+L+" `"+U+"` key `"+X+"` supplied to `"+D+"`.\nBad object: "+JSON.stringify(B[I],null," ")+`
|
|
20
|
+
Valid keys: `+JSON.stringify(Object.keys(P),null," "));var R=z($,X,D,L,U+"."+X,r);if(R)return R}return null}return v(j)}function T(P){switch(typeof P){case"number":case"string":case"undefined":return!0;case"boolean":return!P;case"object":if(Array.isArray(P))return P.every(T);if(P===null||s(P))return!0;var j=f(P);if(j){var B=j.call(P),I;if(j!==P.entries){for(;!(I=B.next()).done;)if(!T(I.value))return!1}else for(;!(I=B.next()).done;){var D=I.value;if(D&&!T(D[1]))return!1}}else return!1;return!0;default:return!1}}function M(P,j){return P==="symbol"?!0:j?j["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&j instanceof Symbol:!1}function q(P){var j=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":M(j,P)?"symbol":j}function J(P){if(typeof P>"u"||P===null)return""+P;var j=q(P);if(j==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return j}function Y(P){var j=J(P);switch(j){case"array":case"object":return"an "+j;case"boolean":case"date":case"regexp":return"a "+j;default:return j}}function Q(P){return!P.constructor||!P.constructor.name?m:P.constructor.name}return d.checkPropTypes=a,d.resetWarningCache=a.resetWarningCache,d.PropTypes=d,d},Kl}var Wl,om;function l0(){if(om)return Wl;om=1;var e=Bl();function t(){}function r(){}return r.resetWarningCache=t,Wl=function(){function i(o,s,l,u,c,f){if(f!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}i.isRequired=i;function a(){return i}var n={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return n.PropTypes=n,n},Wl}var sm;function u0(){if(sm)return Ao.exports;if(sm=1,process.env.NODE_ENV!=="production"){var e=Qd(),t=!0;Ao.exports=s0()(e.isElement,t)}else Ao.exports=l0()();return Ao.exports}var c0=u0();const Ee=jr(c0);function f0(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function d0(e,t){e.classList?e.classList.add(t):f0(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function lm(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function m0(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=lm(e.className,t):e.setAttribute("class",lm(e.className&&e.className.baseVal||"",t))}const um={disabled:!1};var p0=process.env.NODE_ENV!=="production"?Ee.oneOfType([Ee.number,Ee.shape({enter:Ee.number,exit:Ee.number,appear:Ee.number}).isRequired]):null,h0=process.env.NODE_ENV!=="production"?Ee.oneOfType([Ee.string,Ee.shape({enter:Ee.string,exit:Ee.string,active:Ee.string}),Ee.shape({enter:Ee.string,enterDone:Ee.string,enterActive:Ee.string,exit:Ee.string,exitDone:Ee.string,exitActive:Ee.string})]):null;const cm=V.createContext(null);var fm=function(t){return t.scrollTop},ha="unmounted",Vn="exited",Hn="entering",Ai="entered",Gl="exiting",Lr=(function(e){Jd(t,e);function t(i,a){var n;n=e.call(this,i,a)||this;var o=a,s=o&&!o.isMounting?i.enter:i.appear,l;return n.appearStatus=null,i.in?s?(l=Vn,n.appearStatus=Hn):l=Ai:i.unmountOnExit||i.mountOnEnter?l=ha:l=Vn,n.state={status:l},n.nextCallback=null,n}t.getDerivedStateFromProps=function(a,n){var o=a.in;return o&&n.status===ha?{status:Vn}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var n=null;if(a!==this.props){var o=this.state.status;this.props.in?o!==Hn&&o!==Ai&&(n=Hn):(o===Hn||o===Ai)&&(n=Gl)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,n,o,s;return n=o=s=a,a!=null&&typeof a!="number"&&(n=a.exit,o=a.enter,s=a.appear!==void 0?a.appear:o),{exit:n,enter:o,appear:s}},r.updateStatus=function(a,n){if(a===void 0&&(a=!1),n!==null)if(this.cancelNextCallback(),n===Hn){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Co.findDOMNode(this);o&&fm(o)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Vn&&this.setState({status:ha})},r.performEnter=function(a){var n=this,o=this.props.enter,s=this.context?this.context.isMounting:a,l=this.props.nodeRef?[s]:[Co.findDOMNode(this),s],u=l[0],c=l[1],f=this.getTimeouts(),m=s?f.appear:f.enter;if(!a&&!o||um.disabled){this.safeSetState({status:Ai},function(){n.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Hn},function(){n.props.onEntering(u,c),n.onTransitionEnd(m,function(){n.safeSetState({status:Ai},function(){n.props.onEntered(u,c)})})})},r.performExit=function(){var a=this,n=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:Co.findDOMNode(this);if(!n||um.disabled){this.safeSetState({status:Vn},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Gl},function(){a.props.onExiting(s),a.onTransitionEnd(o.exit,function(){a.safeSetState({status:Vn},function(){a.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,n){n=this.setNextCallback(n),this.setState(a,n)},r.setNextCallback=function(a){var n=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,n.nextCallback=null,a(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(a,n){this.setNextCallback(n);var o=this.props.nodeRef?this.props.nodeRef.current:Co.findDOMNode(this),s=a==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===ha)return null;var n=this.props,o=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var s=Gd(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return V.createElement(cm.Provider,{value:null},typeof o=="function"?o(a,s):V.cloneElement(V.Children.only(o),s))},t})(V.Component);Lr.contextType=cm,Lr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:Ee.shape({current:typeof Element>"u"?Ee.any:function(e,t,r,i,a,n){var o=e[t];return Ee.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,r,i,a,n)}}),children:Ee.oneOfType([Ee.func.isRequired,Ee.element.isRequired]).isRequired,in:Ee.bool,mountOnEnter:Ee.bool,unmountOnExit:Ee.bool,appear:Ee.bool,enter:Ee.bool,exit:Ee.bool,timeout:function(t){var r=p0;t.addEndListener||(r=r.isRequired);for(var i=arguments.length,a=new Array(i>1?i-1:0),n=1;n<i;n++)a[n-1]=arguments[n];return r.apply(void 0,[t].concat(a))},addEndListener:Ee.func,onEnter:Ee.func,onEntering:Ee.func,onEntered:Ee.func,onExit:Ee.func,onExiting:Ee.func,onExited:Ee.func}:{};function xi(){}Lr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:xi,onEntering:xi,onEntered:xi,onExit:xi,onExiting:xi,onExited:xi},Lr.UNMOUNTED=ha,Lr.EXITED=Vn,Lr.ENTERING=Hn,Lr.ENTERED=Ai,Lr.EXITING=Gl;var g0=function(t,r){return t&&r&&r.split(" ").forEach(function(i){return d0(t,i)})},Jl=function(t,r){return t&&r&&r.split(" ").forEach(function(i){return m0(t,i)})},Yl=(function(e){Jd(t,e);function t(){for(var i,a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return i=e.call.apply(e,[this].concat(n))||this,i.appliedClasses={appear:{},enter:{},exit:{}},i.onEnter=function(s,l){var u=i.resolveArguments(s,l),c=u[0],f=u[1];i.removeClasses(c,"exit"),i.addClass(c,f?"appear":"enter","base"),i.props.onEnter&&i.props.onEnter(s,l)},i.onEntering=function(s,l){var u=i.resolveArguments(s,l),c=u[0],f=u[1],m=f?"appear":"enter";i.addClass(c,m,"active"),i.props.onEntering&&i.props.onEntering(s,l)},i.onEntered=function(s,l){var u=i.resolveArguments(s,l),c=u[0],f=u[1],m=f?"appear":"enter";i.removeClasses(c,m),i.addClass(c,m,"done"),i.props.onEntered&&i.props.onEntered(s,l)},i.onExit=function(s){var l=i.resolveArguments(s),u=l[0];i.removeClasses(u,"appear"),i.removeClasses(u,"enter"),i.addClass(u,"exit","base"),i.props.onExit&&i.props.onExit(s)},i.onExiting=function(s){var l=i.resolveArguments(s),u=l[0];i.addClass(u,"exit","active"),i.props.onExiting&&i.props.onExiting(s)},i.onExited=function(s){var l=i.resolveArguments(s),u=l[0];i.removeClasses(u,"exit"),i.addClass(u,"exit","done"),i.props.onExited&&i.props.onExited(s)},i.resolveArguments=function(s,l){return i.props.nodeRef?[i.props.nodeRef.current,s]:[s,l]},i.getClassNames=function(s){var l=i.props.classNames,u=typeof l=="string",c=u&&l?l+"-":"",f=u?""+c+s:l[s],m=u?f+"-active":l[s+"Active"],d=u?f+"-done":l[s+"Done"];return{baseClassName:f,activeClassName:m,doneClassName:d}},i}var r=t.prototype;return r.addClass=function(a,n,o){var s=this.getClassNames(n)[o+"ClassName"],l=this.getClassNames("enter"),u=l.doneClassName;n==="appear"&&o==="done"&&u&&(s+=" "+u),o==="active"&&a&&fm(a),s&&(this.appliedClasses[n][o]=s,g0(a,s))},r.removeClasses=function(a,n){var o=this.appliedClasses[n],s=o.base,l=o.active,u=o.done;this.appliedClasses[n]={},s&&Jl(a,s),l&&Jl(a,l),u&&Jl(a,u)},r.render=function(){var a=this.props;a.classNames;var n=Gd(a,["classNames"]);return V.createElement(Lr,Eo({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(V.Component);Yl.defaultProps={classNames:""},Yl.propTypes=process.env.NODE_ENV!=="production"?Eo({},Lr.propTypes,{classNames:h0,onEnter:Ee.func,onEntering:Ee.func,onEntered:Ee.func,onExit:Ee.func,onExiting:Ee.func,onExited:Ee.func}):{};const y0=Yl,dm=({active:e,children:t,content:r,disabled:i})=>{const a=V.useRef(null);return i?N.jsx(N.Fragment,{children:t}):N.jsxs("div",{className:"fcode-loading-overlay-root",children:[t,N.jsx(y0,{nodeRef:a,in:e,timeout:200,unmountOnExit:!0,classNames:"fcode-loading-overlay",children:N.jsx("div",{ref:a,"data-testid":"overlay",className:"fcode-loading-overlay",children:N.jsxs("div",{className:"fcode-loading-overlay-content-wrapper",children:[N.jsx("div",{"data-testid":"spinner",className:"fcode-loading-overlay-spinner",children:N.jsx("svg",{viewBox:"25 25 50 50",children:N.jsx("circle",{cx:"50",cy:"50",r:"20",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"})})}),r&&N.jsx("p",{"data-testid":"content",className:"fcode-loading-overlay-content",children:r})]})})})]})},v0=["first","second"],mm=()=>N.jsxs("div",{className:"fcode-form-skeleton","data-testid":"fcode-form-skeleton","aria-hidden":"true",children:[N.jsx("div",{className:"fcode-form-skeleton-title"}),N.jsx("div",{className:"fcode-form-skeleton-description"}),v0.map(e=>N.jsxs("div",{className:"fcode-form-skeleton-group",children:[N.jsx("div",{className:"fcode-form-skeleton-label"}),N.jsx("div",{className:"fcode-form-skeleton-field"})]},e)),N.jsx("div",{className:"fcode-form-skeleton-button"})]});mm.displayName="FormSkeleton";const Oo=(e,t)=>{const r=new CustomEvent(e,{detail:t});document.dispatchEvent(r)},b0=e=>{setTimeout(()=>{window.location.assign(e.url)},e.timeout||0)},k0=(e,t)=>{Oo("fcode-forms-on-next-step",{formId:e,previousProcessExecutionResult:t})},w0="The form has been successfully submitted",pm="There has been an error submitting the form",S0=e=>{if(e instanceof Error){try{const r=JSON.parse(e.message);if(typeof(r==null?void 0:r.errorMessage)=="string"&&r.errorMessage)return r.errorMessage}catch{}return pm}const t=e;return typeof(t==null?void 0:t.errorMessage)=="string"&&t.errorMessage?t.errorMessage:typeof(t==null?void 0:t.message)=="string"&&t.message?t.message:pm},C0="The form couldn't be loaded",E0=e=>{if(typeof e=="string"&&e)return e;const t=e==null?void 0:e.message;return typeof t=="string"&&t?t:C0},hm=e=>{if(e!==null)switch(typeof e){case"string":e={__errors:[e]};break;case"object":if(e instanceof Array){e={__errors:[...e]};break}else for(const t in e)e[t]=hm(e[t]);break}return e},A0=e=>{let t={};return e.fields&&(t={...hm(e.fields)}),e.global&&(t.__errors=[...e.global]),t};function A$(){}function x$(){}function x0(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const O0=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,_0=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,P0={};function gm(e,t){return(P0.jsx?_0:O0).test(e)}const I0=/[ \t\n\f\r]/g;function T0(e){return typeof e=="object"?e.type==="text"?ym(e.value):!1:ym(e)}function ym(e){return e.replace(I0,"")===""}class ga{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}}ga.prototype.normal={},ga.prototype.property={},ga.prototype.space=void 0;function vm(e,t){const r={},i={};for(const a of e)Object.assign(r,a.property),Object.assign(i,a.normal);return new ga(r,i,t)}function Xl(e){return e.toLowerCase()}class Yt{constructor(t,r){this.attribute=r,this.property=t}}Yt.prototype.attribute="",Yt.prototype.booleanish=!1,Yt.prototype.boolean=!1,Yt.prototype.commaOrSpaceSeparated=!1,Yt.prototype.commaSeparated=!1,Yt.prototype.defined=!1,Yt.prototype.mustUseProperty=!1,Yt.prototype.number=!1,Yt.prototype.overloadedBoolean=!1,Yt.prototype.property="",Yt.prototype.spaceSeparated=!1,Yt.prototype.space=void 0;let N0=0;const Ce=Wn(),Ot=Wn(),Zl=Wn(),se=Wn(),ft=Wn(),Kn=Wn(),er=Wn();function Wn(){return 2**++N0}const Ql=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ce,booleanish:Ot,commaOrSpaceSeparated:er,commaSeparated:Kn,number:se,overloadedBoolean:Zl,spaceSeparated:ft},Symbol.toStringTag,{value:"Module"})),eu=Object.keys(Ql);class tu extends Yt{constructor(t,r,i,a){let n=-1;if(super(t,r),bm(this,"space",a),typeof i=="number")for(;++n<eu.length;){const o=eu[n];bm(this,eu[n],(i&Ql[o])===Ql[o])}}}tu.prototype.defined=!0;function bm(e,t,r){r&&(e[t]=r)}function Oi(e){const t={},r={};for(const[i,a]of Object.entries(e.properties)){const n=new tu(i,e.transform(e.attributes||{},i),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(n.mustUseProperty=!0),t[i]=n,r[Xl(i)]=i,r[Xl(n.attribute)]=i}return new ga(t,r,e.space)}const km=Oi({properties:{ariaActiveDescendant:null,ariaAtomic:Ot,ariaAutoComplete:null,ariaBusy:Ot,ariaChecked:Ot,ariaColCount:se,ariaColIndex:se,ariaColSpan:se,ariaControls:ft,ariaCurrent:null,ariaDescribedBy:ft,ariaDetails:null,ariaDisabled:Ot,ariaDropEffect:ft,ariaErrorMessage:null,ariaExpanded:Ot,ariaFlowTo:ft,ariaGrabbed:Ot,ariaHasPopup:null,ariaHidden:Ot,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ft,ariaLevel:se,ariaLive:null,ariaModal:Ot,ariaMultiLine:Ot,ariaMultiSelectable:Ot,ariaOrientation:null,ariaOwns:ft,ariaPlaceholder:null,ariaPosInSet:se,ariaPressed:Ot,ariaReadOnly:Ot,ariaRelevant:null,ariaRequired:Ot,ariaRoleDescription:ft,ariaRowCount:se,ariaRowIndex:se,ariaRowSpan:se,ariaSelected:Ot,ariaSetSize:se,ariaSort:null,ariaValueMax:se,ariaValueMin:se,ariaValueNow:se,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function wm(e,t){return t in e?e[t]:t}function Sm(e,t){return wm(e,t.toLowerCase())}const F0=Oi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Kn,acceptCharset:ft,accessKey:ft,action:null,allow:null,allowFullScreen:Ce,allowPaymentRequest:Ce,allowUserMedia:Ce,alpha:Ce,alt:null,as:null,async:Ce,autoCapitalize:null,autoComplete:ft,autoFocus:Ce,autoPlay:Ce,blocking:ft,capture:null,charSet:null,checked:Ce,cite:null,className:ft,closedBy:null,colorSpace:null,cols:se,colSpan:se,command:null,commandFor:null,content:null,contentEditable:Ot,controls:Ce,controlsList:ft,coords:se|Kn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ce,defer:Ce,dir:null,dirName:null,disabled:Ce,download:Zl,draggable:Ot,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ce,formTarget:null,headers:ft,height:se,hidden:Zl,high:se,href:null,hrefLang:null,htmlFor:ft,httpEquiv:ft,id:null,imageSizes:null,imageSrcSet:null,inert:Ce,inputMode:null,integrity:null,is:null,isMap:Ce,itemId:null,itemProp:ft,itemRef:ft,itemScope:Ce,itemType:ft,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ce,low:se,manifest:null,max:null,maxLength:se,media:null,method:null,min:null,minLength:se,multiple:Ce,muted:Ce,name:null,nonce:null,noModule:Ce,noValidate:Ce,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ce,optimum:se,pattern:null,ping:ft,placeholder:null,playsInline:Ce,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ce,referrerPolicy:null,rel:ft,required:Ce,reversed:Ce,rows:se,rowSpan:se,sandbox:ft,scope:null,scoped:Ce,seamless:Ce,selected:Ce,shadowRootClonable:Ce,shadowRootCustomElementRegistry:Ce,shadowRootDelegatesFocus:Ce,shadowRootMode:null,shadowRootSerializable:Ce,shape:null,size:se,sizes:null,slot:null,span:se,spellCheck:Ot,src:null,srcDoc:null,srcLang:null,srcSet:null,start:se,step:null,style:null,tabIndex:se,target:null,title:null,translate:null,type:null,typeMustMatch:Ce,useMap:null,value:Ot,width:se,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ft,axis:null,background:null,bgColor:null,border:se,borderColor:null,bottomMargin:se,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ce,declare:Ce,event:null,face:null,frame:null,frameBorder:null,hSpace:se,leftMargin:se,link:null,longDesc:null,lowSrc:null,marginHeight:se,marginWidth:se,noResize:Ce,noHref:Ce,noShade:Ce,noWrap:Ce,object:null,profile:null,prompt:null,rev:null,rightMargin:se,rules:null,scheme:null,scrolling:Ot,standby:null,summary:null,text:null,topMargin:se,valueType:null,version:null,vAlign:null,vLink:null,vSpace:se,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Ce,disablePictureInPicture:Ce,disableRemotePlayback:Ce,exportParts:Kn,part:ft,prefix:null,property:null,results:se,security:null,unselectable:null},space:"html",transform:Sm}),D0=Oi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:er,accentHeight:se,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:se,amplitude:se,arabicForm:null,ascent:se,attributeName:null,attributeType:null,azimuth:se,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:se,by:null,calcMode:null,capHeight:se,className:ft,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:se,diffuseConstant:se,direction:null,display:null,dur:null,divisor:se,dominantBaseline:null,download:Ce,dx:null,dy:null,edgeMode:null,editable:null,elevation:se,enableBackground:null,end:null,event:null,exponent:se,externalResourcesRequired:null,fill:null,fillOpacity:se,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Kn,g2:Kn,glyphName:Kn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:se,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:se,horizOriginX:se,horizOriginY:se,id:null,ideographic:se,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:se,k:se,k1:se,k2:se,k3:se,k4:se,kernelMatrix:er,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:se,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:se,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:se,overlineThickness:se,paintOrder:null,panose1:null,path:null,pathLength:se,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ft,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:se,pointsAtY:se,pointsAtZ:se,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:er,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:er,rev:er,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:er,requiredFeatures:er,requiredFonts:er,requiredFormats:er,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:se,specularExponent:se,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:se,strikethroughThickness:se,string:null,stroke:null,strokeDashArray:er,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:se,strokeOpacity:se,strokeWidth:null,style:null,surfaceScale:se,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:er,tabIndex:se,tableValues:null,target:null,targetX:se,targetY:se,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:er,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:se,underlineThickness:se,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:se,values:null,vAlphabetic:se,vMathematical:se,vectorEffect:null,vHanging:se,vIdeographic:se,version:null,vertAdvY:se,vertOriginX:se,vertOriginY:se,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:se,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:wm}),Cm=Oi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Em=Oi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Sm}),Am=Oi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),M0={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},j0=/[A-Z]/g,xm=/-[a-z]/g,L0=/^data[-\w.:]+$/i;function q0(e,t){const r=Xl(t);let i=t,a=Yt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&L0.test(t)){if(t.charAt(4)==="-"){const n=t.slice(5).replace(xm,z0);i="data"+n.charAt(0).toUpperCase()+n.slice(1)}else{const n=t.slice(4);if(!xm.test(n)){let o=n.replace(j0,R0);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=tu}return new a(i,t)}function R0(e){return"-"+e.toLowerCase()}function z0(e){return e.charAt(1).toUpperCase()}const $0=vm([km,F0,Cm,Em,Am],"html"),ru=vm([km,D0,Cm,Em,Am],"svg");function U0(e){return e.join(" ").trim()}var _i={},nu,Om;function B0(){if(Om)return nu;Om=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,n=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
|
|
21
|
+
`,u="/",c="*",f="",m="comment",d="declaration";function p(v,g){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];g=g||{};var b=1,w=1;function E(T){var M=T.match(t);M&&(b+=M.length);var q=T.lastIndexOf(l);w=~q?T.length-q:w+T.length}function h(){var T={line:b,column:w};return function(M){return M.position=new y(T),_(),M}}function y(T){this.start=T,this.end={line:b,column:w},this.source=g.source}y.prototype.content=v;function C(T){var M=new Error(g.source+":"+b+":"+w+": "+T);if(M.reason=T,M.filename=g.source,M.line=b,M.column=w,M.source=v,!g.silent)throw M}function x(T){var M=T.exec(v);if(M){var q=M[0];return E(q),v=v.slice(q.length),M}}function _(){x(r)}function S(T){var M;for(T=T||[];M=A();)M!==!1&&T.push(M);return T}function A(){var T=h();if(!(u!=v.charAt(0)||c!=v.charAt(1))){for(var M=2;f!=v.charAt(M)&&(c!=v.charAt(M)||u!=v.charAt(M+1));)++M;if(M+=2,f===v.charAt(M-1))return C("End of comment missing");var q=v.slice(2,M-2);return w+=2,E(q),v=v.slice(M),w+=2,T({type:m,comment:q})}}function O(){var T=h(),M=x(i);if(M){if(A(),!x(a))return C("property missing ':'");var q=x(n),J=T({type:d,property:k(M[0].replace(e,f)),value:q?k(q[0].replace(e,f)):f});return x(o),J}}function F(){var T=[];S(T);for(var M;M=O();)M!==!1&&(T.push(M),S(T));return T}return _(),F()}function k(v){return v?v.replace(s,f):f}return nu=p,nu}var _m;function V0(){if(_m)return _i;_m=1;var e=_i&&_i.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(_i,"__esModule",{value:!0}),_i.default=r;const t=e(B0());function r(i,a){let n=null;if(!i||typeof i!="string")return n;const o=(0,t.default)(i),s=typeof a=="function";return o.forEach(l=>{if(l.type!=="declaration")return;const{property:u,value:c}=l;s?a(u,c,l):c&&(n=n||{},n[u]=c)}),n}return _i}var ya={},Pm;function H0(){if(Pm)return ya;Pm=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,n=function(u){return!u||r.test(u)||e.test(u)},o=function(u,c){return c.toUpperCase()},s=function(u,c){return"".concat(c,"-")},l=function(u,c){return c===void 0&&(c={}),n(u)?u:(u=u.toLowerCase(),c.reactCompat?u=u.replace(a,s):u=u.replace(i,s),u.replace(t,o))};return ya.camelCase=l,ya}var va,Im;function K0(){if(Im)return va;Im=1;var e=va&&va.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(V0()),r=H0();function i(a,n){var o={};return!a||typeof a!="string"||(0,t.default)(a,function(s,l){s&&l&&(o[(0,r.camelCase)(s,n)]=l)}),o}return i.default=i,va=i,va}var W0=K0();const G0=jr(W0),Tm=Nm("end"),iu=Nm("start");function Nm(e){return t;function t(r){const i=r&&r.position&&r.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function J0(e){const t=iu(e),r=Tm(e);if(t&&r)return{start:t,end:r}}function ba(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Fm(e.position):"start"in e||"end"in e?Fm(e):"line"in e||"column"in e?au(e):""}function au(e){return Dm(e&&e.line)+":"+Dm(e&&e.column)}function Fm(e){return au(e&&e.start)+"-"+au(e&&e.end)}function Dm(e){return e&&typeof e=="number"?e:1}class Lt extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let a="",n={},o=!1;if(r&&("line"in r&&"column"in r?n={place:r}:"start"in r&&"end"in r?n={place:r}:"type"in r?n={ancestors:[r],place:r.position}:n={...r}),typeof t=="string"?a=t:!n.cause&&t&&(o=!0,a=t.message,n.cause=t),!n.ruleId&&!n.source&&typeof i=="string"){const l=i.indexOf(":");l===-1?n.ruleId=i:(n.source=i.slice(0,l),n.ruleId=i.slice(l+1))}if(!n.place&&n.ancestors&&n.ancestors){const l=n.ancestors[n.ancestors.length-1];l&&(n.place=l.position)}const s=n.place&&"start"in n.place?n.place.start:n.place;this.ancestors=n.ancestors||void 0,this.cause=n.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=s?s.line:void 0,this.name=ba(n.place)||"1:1",this.place=n.place||void 0,this.reason=this.message,this.ruleId=n.ruleId||void 0,this.source=n.source||void 0,this.stack=o&&n.cause&&typeof n.cause.stack=="string"?n.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Lt.prototype.file="",Lt.prototype.name="",Lt.prototype.reason="",Lt.prototype.message="",Lt.prototype.stack="",Lt.prototype.column=void 0,Lt.prototype.line=void 0,Lt.prototype.ancestors=void 0,Lt.prototype.cause=void 0,Lt.prototype.fatal=void 0,Lt.prototype.place=void 0,Lt.prototype.ruleId=void 0,Lt.prototype.source=void 0;const ou={}.hasOwnProperty,Y0=new Map,X0=/[A-Z]/g,Z0=new Set(["table","tbody","thead","tfoot","tr"]),Q0=new Set(["td","th"]),Mm="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ew(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=lw(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=sw(r,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?ru:$0,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},n=jm(a,e,void 0);return n&&typeof n!="string"?n:a.create(e,a.Fragment,{children:n||void 0},void 0)}function jm(e,t,r){if(t.type==="element")return tw(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return rw(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return iw(e,t,r);if(t.type==="mdxjsEsm")return nw(e,t);if(t.type==="root")return aw(e,t,r);if(t.type==="text")return ow(e,t)}function tw(e,t,r){const i=e.schema;let a=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(a=ru,e.schema=a),e.ancestors.push(t);const n=qm(e,t.tagName,!1),o=uw(e,t);let s=lu(e,t);return Z0.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!T0(l):!0})),Lm(e,o,n,t),su(o,s),e.ancestors.pop(),e.schema=i,e.create(t,n,o,r)}function rw(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}ka(e,t.position)}function nw(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ka(e,t.position)}function iw(e,t,r){const i=e.schema;let a=i;t.name==="svg"&&i.space==="html"&&(a=ru,e.schema=a),e.ancestors.push(t);const n=t.name===null?e.Fragment:qm(e,t.name,!0),o=cw(e,t),s=lu(e,t);return Lm(e,o,n,t),su(o,s),e.ancestors.pop(),e.schema=i,e.create(t,n,o,r)}function aw(e,t,r){const i={};return su(i,lu(e,t)),e.create(t,e.Fragment,i,r)}function ow(e,t){return t.value}function Lm(e,t,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=i)}function su(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function sw(e,t,r){return i;function i(a,n,o,s){const u=Array.isArray(o.children)?r:t;return s?u(n,o,s):u(n,o)}}function lw(e,t){return r;function r(i,a,n,o){const s=Array.isArray(n.children),l=iu(i);return t(a,n,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function uw(e,t){const r={};let i,a;for(a in t.properties)if(a!=="children"&&ou.call(t.properties,a)){const n=fw(e,a,t.properties[a]);if(n){const[o,s]=n;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&Q0.has(t.tagName)?i=s:r[o]=s}}if(i){const n=r.style||(r.style={});n[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function cw(e,t){const r={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const n=i.data.estree.body[0];n.type;const o=n.expression;o.type;const s=o.properties[0];s.type,Object.assign(r,e.evaluater.evaluateExpression(s.argument))}else ka(e,t.position);else{const a=i.name;let n;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const s=i.value.data.estree.body[0];s.type,n=e.evaluater.evaluateExpression(s.expression)}else ka(e,t.position);else n=i.value===null?!0:i.value;r[a]=n}return r}function lu(e,t){const r=[];let i=-1;const a=e.passKeys?new Map:Y0;for(;++i<t.children.length;){const n=t.children[i];let o;if(e.passKeys){const l=n.type==="element"?n.tagName:n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement"?n.name:void 0;if(l){const u=a.get(l)||0;o=l+"-"+u,a.set(l,u+1)}}const s=jm(e,n,o);s!==void 0&&r.push(s)}return r}function fw(e,t,r){const i=q0(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?x0(r):U0(r)),i.property==="style"){let a=typeof r=="object"?r:dw(e,String(r));return e.stylePropertyNameCase==="css"&&(a=mw(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&i.space?M0[i.property]||i.property:i.attribute,r]}}function dw(e,t){try{return G0(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,a=new Lt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=Mm+"#cannot-parse-style-attribute",a}}function qm(e,t,r){let i;if(!r)i={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let n=-1,o;for(;++n<a.length;){const s=gm(a[n])?{type:"Identifier",name:a[n]}:{type:"Literal",value:a[n]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(n&&s.type==="Literal"),optional:!1}:s}i=o}else i=gm(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const a=i.value;return ou.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(i);ka(e)}function ka(e,t){const r=new Lt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Mm+"#cannot-handle-mdx-estrees-without-createevaluater",r}function mw(e){const t={};let r;for(r in e)ou.call(e,r)&&(t[pw(r)]=e[r]);return t}function pw(e){let t=e.replace(X0,hw);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function hw(e){return"-"+e.toLowerCase()}const uu={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},gw={};function cu(e,t){const r=gw,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,a=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Rm(e,i,a)}function Rm(e,t,r){if(yw(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return zm(e.children,t,r)}return Array.isArray(e)?zm(e,t,r):""}function zm(e,t,r){const i=[];let a=-1;for(;++a<e.length;)i[a]=Rm(e[a],t,r);return i.join("")}function yw(e){return!!(e&&typeof e=="object")}const $m=document.createElement("i");function fu(e){const t="&"+e+";";$m.innerHTML=t;const r=$m.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function tr(e,t,r,i){const a=e.length;let n=0,o;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,r=r>0?r:0,i.length<1e4)o=Array.from(i),o.unshift(t,r),e.splice(...o);else for(r&&e.splice(t,r);n<i.length;)o=i.slice(n,n+1e4),o.unshift(t,0),e.splice(...o),n+=1e4,t+=1e4}function sr(e,t){return e.length>0?(tr(e,e.length,0,t),e):t}const Um={}.hasOwnProperty;function Bm(e){const t={};let r=-1;for(;++r<e.length;)vw(t,e[r]);return t}function vw(e,t){let r;for(r in t){const a=(Um.call(e,r)?e[r]:void 0)||(e[r]={}),n=t[r];let o;if(n)for(o in n){Um.call(a,o)||(a[o]=[]);const s=n[o];bw(a[o],Array.isArray(s)?s:s?[s]:[])}}}function bw(e,t){let r=-1;const i=[];for(;++r<t.length;)(t[r].add==="after"?e:i).push(t[r]);tr(e,0,0,i)}function Vm(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function wr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ut=dn(/[A-Za-z]/),qt=dn(/[\dA-Za-z]/),kw=dn(/[#-'*+\--9=?A-Z^-~]/);function _o(e){return e!==null&&(e<32||e===127)}const du=dn(/\d/),ww=dn(/[\dA-Fa-f]/),Sw=dn(/[!-/:-@[-`{-~]/);function pe(e){return e!==null&&e<-2}function dt(e){return e!==null&&(e<0||e===32)}function Me(e){return e===-2||e===-1||e===32}const Po=dn(new RegExp("\\p{P}|\\p{S}","u")),Gn=dn(/\s/);function dn(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Pi(e){const t=[];let r=-1,i=0,a=0;for(;++r<e.length;){const n=e.charCodeAt(r);let o="";if(n===37&&qt(e.charCodeAt(r+1))&&qt(e.charCodeAt(r+2)))a=2;else if(n<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(n))||(o=String.fromCharCode(n));else if(n>55295&&n<57344){const s=e.charCodeAt(r+1);n<56320&&s>56319&&s<57344?(o=String.fromCharCode(n,s),a=1):o="�"}else o=String.fromCharCode(n);o&&(t.push(e.slice(i,r),encodeURIComponent(o)),i=r+a+1,o=""),a&&(r+=a,a=0)}return t.join("")+e.slice(i)}function Be(e,t,r,i){const a=i?i-1:Number.POSITIVE_INFINITY;let n=0;return o;function o(l){return Me(l)?(e.enter(r),s(l)):t(l)}function s(l){return Me(l)&&n++<a?(e.consume(l),s):(e.exit(r),t(l))}}const Cw={tokenize:Ew};function Ew(e){const t=e.attempt(this.parser.constructs.contentInitial,i,a);let r;return t;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Be(e,t,"linePrefix")}function a(s){return e.enter("paragraph"),n(s)}function n(s){const l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return pe(s)?(e.consume(s),e.exit("chunkText"),n):(e.consume(s),o)}}const Aw={tokenize:xw},Hm={tokenize:Ow};function xw(e){const t=this,r=[];let i=0,a,n,o;return s;function s(w){if(i<r.length){const E=r[i];return t.containerState=E[1],e.attempt(E[0].continuation,l,u)(w)}return u(w)}function l(w){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&b();const E=t.events.length;let h=E,y;for(;h--;)if(t.events[h][0]==="exit"&&t.events[h][1].type==="chunkFlow"){y=t.events[h][1].end;break}g(i);let C=E;for(;C<t.events.length;)t.events[C][1].end={...y},C++;return tr(t.events,h+1,0,t.events.slice(E)),t.events.length=C,u(w)}return s(w)}function u(w){if(i===r.length){if(!a)return m(w);if(a.currentConstruct&&a.currentConstruct.concrete)return p(w);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Hm,c,f)(w)}function c(w){return a&&b(),g(i),m(w)}function f(w){return t.parser.lazy[t.now().line]=i!==r.length,o=t.now().offset,p(w)}function m(w){return t.containerState={},e.attempt(Hm,d,p)(w)}function d(w){return i++,r.push([t.currentConstruct,t.containerState]),m(w)}function p(w){if(w===null){a&&b(),g(0),e.consume(w);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:n}),k(w)}function k(w){if(w===null){v(e.exit("chunkFlow"),!0),g(0),e.consume(w);return}return pe(w)?(e.consume(w),v(e.exit("chunkFlow")),i=0,t.interrupt=void 0,s):(e.consume(w),k)}function v(w,E){const h=t.sliceStream(w);if(E&&h.push(null),w.previous=n,n&&(n.next=w),n=w,a.defineSkip(w.start),a.write(h),t.parser.lazy[w.start.line]){let y=a.events.length;for(;y--;)if(a.events[y][1].start.offset<o&&(!a.events[y][1].end||a.events[y][1].end.offset>o))return;const C=t.events.length;let x=C,_,S;for(;x--;)if(t.events[x][0]==="exit"&&t.events[x][1].type==="chunkFlow"){if(_){S=t.events[x][1].end;break}_=!0}for(g(i),y=C;y<t.events.length;)t.events[y][1].end={...S},y++;tr(t.events,x+1,0,t.events.slice(C)),t.events.length=y}}function g(w){let E=r.length;for(;E-- >w;){const h=r[E];t.containerState=h[1],h[0].exit.call(t,e)}r.length=w}function b(){a.write([null]),n=void 0,a=void 0,t.containerState._closeFlow=void 0}}function Ow(e,t,r){return Be(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ii(e){if(e===null||dt(e)||Gn(e))return 1;if(Po(e))return 2}function Io(e,t,r){const i=[];let a=-1;for(;++a<e.length;){const n=e[a].resolveAll;n&&!i.includes(n)&&(t=n(t,r),i.push(n))}return t}const mu={name:"attention",resolveAll:_w,tokenize:Pw};function _w(e,t){let r=-1,i,a,n,o,s,l,u,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(i=r;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[i][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[i][1].end.offset-e[i][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const f={...e[i][1].end},m={...e[r][1].start};Km(f,-l),Km(m,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[i][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:m},n={type:l>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[r][1].start}},a={type:l>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[i][1].end={...o.start},e[r][1].start={...s.end},u=[],e[i][1].end.offset-e[i][1].start.offset&&(u=sr(u,[["enter",e[i][1],t],["exit",e[i][1],t]])),u=sr(u,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",n,t]]),u=sr(u,Io(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),u=sr(u,[["exit",n,t],["enter",s,t],["exit",s,t],["exit",a,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=sr(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,tr(e,i-1,r-i+3,u),r=i+u.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function Pw(e,t){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,a=Ii(i);let n;return o;function o(l){return n=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===n)return e.consume(l),s;const u=e.exit("attentionSequence"),c=Ii(l),f=!c||c===2&&a||r.includes(l),m=!a||a===2&&c||r.includes(i);return u._open=!!(n===42?f:f&&(a||!m)),u._close=!!(n===42?m:m&&(c||!f)),t(l)}}function Km(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Iw={name:"autolink",tokenize:Tw};function Tw(e,t,r){let i=0;return a;function a(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),n}function n(d){return Ut(d)?(e.consume(d),o):d===64?r(d):u(d)}function o(d){return d===43||d===45||d===46||qt(d)?(i=1,s(d)):u(d)}function s(d){return d===58?(e.consume(d),i=0,l):(d===43||d===45||d===46||qt(d))&&i++<32?(e.consume(d),s):(i=0,u(d))}function l(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||_o(d)?r(d):(e.consume(d),l)}function u(d){return d===64?(e.consume(d),c):kw(d)?(e.consume(d),u):r(d)}function c(d){return qt(d)?f(d):r(d)}function f(d){return d===46?(e.consume(d),i=0,c):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):m(d)}function m(d){if((d===45||qt(d))&&i++<63){const p=d===45?m:f;return e.consume(d),p}return r(d)}}const wa={partial:!0,tokenize:Nw};function Nw(e,t,r){return i;function i(n){return Me(n)?Be(e,a,"linePrefix")(n):a(n)}function a(n){return n===null||pe(n)?t(n):r(n)}}const Wm={continuation:{tokenize:Dw},exit:Mw,name:"blockQuote",tokenize:Fw};function Fw(e,t,r){const i=this;return a;function a(o){if(o===62){const s=i.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),n}return r(o)}function n(o){return Me(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function Dw(e,t,r){const i=this;return a;function a(o){return Me(o)?Be(e,n,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):n(o)}function n(o){return e.attempt(Wm,t,r)(o)}}function Mw(e){e.exit("blockQuote")}const Gm={name:"characterEscape",tokenize:jw};function jw(e,t,r){return i;function i(n){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(n),e.exit("escapeMarker"),a}function a(n){return Sw(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}const Jm={name:"characterReference",tokenize:Lw};function Lw(e,t,r){const i=this;let a=0,n,o;return s;function s(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),n=31,o=qt,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),n=6,o=ww,c):(e.enter("characterReferenceValue"),n=7,o=du,c(f))}function c(f){if(f===59&&a){const m=e.exit("characterReferenceValue");return o===qt&&!fu(i.sliceSerialize(m))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(f)&&a++<n?(e.consume(f),c):r(f)}}const Ym={partial:!0,tokenize:Rw},Xm={concrete:!0,name:"codeFenced",tokenize:qw};function qw(e,t,r){const i=this,a={partial:!0,tokenize:h};let n=0,o=0,s;return l;function l(y){return u(y)}function u(y){const C=i.events[i.events.length-1];return n=C&&C[1].type==="linePrefix"?C[2].sliceSerialize(C[1],!0).length:0,s=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(y)}function c(y){return y===s?(o++,e.consume(y),c):o<3?r(y):(e.exit("codeFencedFenceSequence"),Me(y)?Be(e,f,"whitespace")(y):f(y))}function f(y){return y===null||pe(y)?(e.exit("codeFencedFence"),i.interrupt?t(y):e.check(Ym,k,E)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===null||pe(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(y)):Me(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Be(e,d,"whitespace")(y)):y===96&&y===s?r(y):(e.consume(y),m)}function d(y){return y===null||pe(y)?f(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===null||pe(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(y)):y===96&&y===s?r(y):(e.consume(y),p)}function k(y){return e.attempt(a,E,v)(y)}function v(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),g}function g(y){return n>0&&Me(y)?Be(e,b,"linePrefix",n+1)(y):b(y)}function b(y){return y===null||pe(y)?e.check(Ym,k,E)(y):(e.enter("codeFlowValue"),w(y))}function w(y){return y===null||pe(y)?(e.exit("codeFlowValue"),b(y)):(e.consume(y),w)}function E(y){return e.exit("codeFenced"),t(y)}function h(y,C,x){let _=0;return S;function S(M){return y.enter("lineEnding"),y.consume(M),y.exit("lineEnding"),A}function A(M){return y.enter("codeFencedFence"),Me(M)?Be(y,O,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):O(M)}function O(M){return M===s?(y.enter("codeFencedFenceSequence"),F(M)):x(M)}function F(M){return M===s?(_++,y.consume(M),F):_>=o?(y.exit("codeFencedFenceSequence"),Me(M)?Be(y,T,"whitespace")(M):T(M)):x(M)}function T(M){return M===null||pe(M)?(y.exit("codeFencedFence"),C(M)):x(M)}}}function Rw(e,t,r){const i=this;return a;function a(o){return o===null?r(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n)}function n(o){return i.parser.lazy[i.now().line]?r(o):t(o)}}const pu={name:"codeIndented",tokenize:$w},zw={partial:!0,tokenize:Uw};function $w(e,t,r){const i=this;return a;function a(u){return e.enter("codeIndented"),Be(e,n,"linePrefix",5)(u)}function n(u){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):r(u)}function o(u){return u===null?l(u):pe(u)?e.attempt(zw,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||pe(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function Uw(e,t,r){const i=this;return a;function a(o){return i.parser.lazy[i.now().line]?r(o):pe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):Be(e,n,"linePrefix",5)(o)}function n(o){const s=i.events[i.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):pe(o)?a(o):r(o)}}const Bw={name:"codeText",previous:Hw,resolve:Vw,tokenize:Kw};function Vw(e){let t=e.length-4,r=3,i,a;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=r;++i<t;)if(e[i][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(i=r-1,t++;++i<=t;)a===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(a=i):(i===t||e[i][1].type==="lineEnding")&&(e[a][1].type="codeTextData",i!==a+2&&(e[a][1].end=e[i-1][1].end,e.splice(a+2,i-a-2),t-=i-a-2,i=a+2),a=void 0);return e}function Hw(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Kw(e,t,r){let i=0,a,n;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),s(f)}function s(f){return f===96?(e.consume(f),i++,s):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?r(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):f===96?(n=e.enter("codeTextSequence"),a=0,c(f)):pe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||pe(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),u)}function c(f){return f===96?(e.consume(f),a++,c):a===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(n.type="codeTextData",u(f))}}class Ww{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const i=r??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,r,i){const a=r||0;this.setCursor(Math.trunc(t));const n=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return i&&Sa(this.left,i),n.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Sa(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Sa(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);Sa(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Sa(this.left,r.reverse())}}}function Sa(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function Zm(e){const t={};let r=-1,i,a,n,o,s,l,u;const c=new Ww(e);for(;++r<c.length;){for(;r in t;)r=t[r];if(i=c.get(r),r&&i[1].type==="chunkFlow"&&c.get(r-1)[1].type==="listItemPrefix"&&(l=i[1]._tokenizer.events,n=0,n<l.length&&l[n][1].type==="lineEndingBlank"&&(n+=2),n<l.length&&l[n][1].type==="content"))for(;++n<l.length&&l[n][1].type!=="content";)l[n][1].type==="chunkText"&&(l[n][1]._isInFirstContentOfListItem=!0,n++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,Gw(c,r)),r=t[r],u=!0);else if(i[1]._container){for(n=r,a=void 0;n--;)if(o=c.get(n),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(a&&(c.get(a)[1].type="lineEndingBlank"),o[1].type="lineEnding",a=n);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;a&&(i[1].end={...c.get(a)[1].start},s=c.slice(a,r),s.unshift(i),c.splice(a,r-a+1,s))}}return tr(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function Gw(e,t){const r=e.get(t)[1],i=e.get(t)[2];let a=t-1;const n=[];let o=r._tokenizer;o||(o=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,l=[],u={};let c,f,m=-1,d=r,p=0,k=0;const v=[k];for(;d;){for(;e.get(++a)[1]!==d;);n.push(a),d._tokenizer||(c=i.sliceStream(d),d.next||c.push(null),f&&o.defineSkip(d.start),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=r;++m<s.length;)s[m][0]==="exit"&&s[m-1][0]==="enter"&&s[m][1].type===s[m-1][1].type&&s[m][1].start.line!==s[m][1].end.line&&(k=m+1,v.push(k),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(o.events=[],d?(d._tokenizer=void 0,d.previous=void 0):v.pop(),m=v.length;m--;){const g=s.slice(v[m],v[m+1]),b=n.pop();l.push([b,b+g.length-1]),e.splice(b,2,g)}for(l.reverse(),m=-1;++m<l.length;)u[p+l[m][0]]=p+l[m][1],p+=l[m][1]-l[m][0]-1;return u}const Jw={resolve:Xw,tokenize:Zw},Yw={partial:!0,tokenize:Qw};function Xw(e){return Zm(e),e}function Zw(e,t){let r;return i;function i(s){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),a(s)}function a(s){return s===null?n(s):pe(s)?e.check(Yw,o,n)(s):(e.consume(s),a)}function n(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,a}}function Qw(e,t,r){const i=this;return a;function a(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Be(e,n,"linePrefix")}function n(o){if(o===null||pe(o))return r(o);const s=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(i.parser.constructs.flow,r,t)(o)}}function Qm(e,t,r,i,a,n,o,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(g){return g===60?(e.enter(i),e.enter(a),e.enter(n),e.consume(g),e.exit(n),m):g===null||g===32||g===41||_o(g)?r(g):(e.enter(i),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),k(g))}function m(g){return g===62?(e.enter(n),e.consume(g),e.exit(n),e.exit(a),e.exit(i),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===62?(e.exit("chunkString"),e.exit(s),m(g)):g===null||g===60||pe(g)?r(g):(e.consume(g),g===92?p:d)}function p(g){return g===60||g===62||g===92?(e.consume(g),d):d(g)}function k(g){return!c&&(g===null||g===41||dt(g))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(i),t(g)):c<u&&g===40?(e.consume(g),c++,k):g===41?(e.consume(g),c--,k):g===null||g===32||g===40||_o(g)?r(g):(e.consume(g),g===92?v:k)}function v(g){return g===40||g===41||g===92?(e.consume(g),k):k(g)}}function ep(e,t,r,i,a,n){const o=this;let s=0,l;return u;function u(d){return e.enter(i),e.enter(a),e.consume(d),e.exit(a),e.enter(n),c}function c(d){return s>999||d===null||d===91||d===93&&!l||d===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?r(d):d===93?(e.exit(n),e.enter(a),e.consume(d),e.exit(a),e.exit(i),t):pe(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===null||d===91||d===93||pe(d)||s++>999?(e.exit("chunkString"),c(d)):(e.consume(d),l||(l=!Me(d)),d===92?m:f)}function m(d){return d===91||d===92||d===93?(e.consume(d),s++,f):f(d)}}function tp(e,t,r,i,a,n){let o;return s;function s(m){return m===34||m===39||m===40?(e.enter(i),e.enter(a),e.consume(m),e.exit(a),o=m===40?41:m,l):r(m)}function l(m){return m===o?(e.enter(a),e.consume(m),e.exit(a),e.exit(i),t):(e.enter(n),u(m))}function u(m){return m===o?(e.exit(n),l(o)):m===null?r(m):pe(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Be(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(m))}function c(m){return m===o||m===null||pe(m)?(e.exit("chunkString"),u(m)):(e.consume(m),m===92?f:c)}function f(m){return m===o||m===92?(e.consume(m),c):c(m)}}function Ca(e,t){let r;return i;function i(a){return pe(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),r=!0,i):Me(a)?Be(e,i,r?"linePrefix":"lineSuffix")(a):t(a)}}const eS={name:"definition",tokenize:rS},tS={partial:!0,tokenize:nS};function rS(e,t,r){const i=this;let a;return n;function n(d){return e.enter("definition"),o(d)}function o(d){return ep.call(i,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function s(d){return a=wr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),l):r(d)}function l(d){return dt(d)?Ca(e,u)(d):u(d)}function u(d){return Qm(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function c(d){return e.attempt(tS,f,f)(d)}function f(d){return Me(d)?Be(e,m,"whitespace")(d):m(d)}function m(d){return d===null||pe(d)?(e.exit("definition"),i.parser.defined.push(a),t(d)):r(d)}}function nS(e,t,r){return i;function i(s){return dt(s)?Ca(e,a)(s):r(s)}function a(s){return tp(e,n,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function n(s){return Me(s)?Be(e,o,"whitespace")(s):o(s)}function o(s){return s===null||pe(s)?t(s):r(s)}}const iS={name:"hardBreakEscape",tokenize:aS};function aS(e,t,r){return i;function i(n){return e.enter("hardBreakEscape"),e.consume(n),a}function a(n){return pe(n)?(e.exit("hardBreakEscape"),t(n)):r(n)}}const oS={name:"headingAtx",resolve:sS,tokenize:lS};function sS(e,t){let r=e.length-2,i=3,a,n;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(a={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},n={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},tr(e,i,r-i+1,[["enter",a,t],["enter",n,t],["exit",n,t],["exit",a,t]])),e}function lS(e,t,r){let i=0;return a;function a(c){return e.enter("atxHeading"),n(c)}function n(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&i++<6?(e.consume(c),o):c===null||dt(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||pe(c)?(e.exit("atxHeading"),t(c)):Me(c)?Be(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||dt(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const uS=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],rp=["pre","script","style","textarea"],cS={concrete:!0,name:"htmlFlow",resolveTo:mS,tokenize:pS},fS={partial:!0,tokenize:gS},dS={partial:!0,tokenize:hS};function mS(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function pS(e,t,r){const i=this;let a,n,o,s,l;return u;function u(I){return c(I)}function c(I){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(I),f}function f(I){return I===33?(e.consume(I),m):I===47?(e.consume(I),n=!0,k):I===63?(e.consume(I),a=3,i.interrupt?t:P):Ut(I)?(e.consume(I),o=String.fromCharCode(I),v):r(I)}function m(I){return I===45?(e.consume(I),a=2,d):I===91?(e.consume(I),a=5,s=0,p):Ut(I)?(e.consume(I),a=4,i.interrupt?t:P):r(I)}function d(I){return I===45?(e.consume(I),i.interrupt?t:P):r(I)}function p(I){const D="CDATA[";return I===D.charCodeAt(s++)?(e.consume(I),s===D.length?i.interrupt?t:O:p):r(I)}function k(I){return Ut(I)?(e.consume(I),o=String.fromCharCode(I),v):r(I)}function v(I){if(I===null||I===47||I===62||dt(I)){const D=I===47,L=o.toLowerCase();return!D&&!n&&rp.includes(L)?(a=1,i.interrupt?t(I):O(I)):uS.includes(o.toLowerCase())?(a=6,D?(e.consume(I),g):i.interrupt?t(I):O(I)):(a=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(I):n?b(I):w(I))}return I===45||qt(I)?(e.consume(I),o+=String.fromCharCode(I),v):r(I)}function g(I){return I===62?(e.consume(I),i.interrupt?t:O):r(I)}function b(I){return Me(I)?(e.consume(I),b):S(I)}function w(I){return I===47?(e.consume(I),S):I===58||I===95||Ut(I)?(e.consume(I),E):Me(I)?(e.consume(I),w):S(I)}function E(I){return I===45||I===46||I===58||I===95||qt(I)?(e.consume(I),E):h(I)}function h(I){return I===61?(e.consume(I),y):Me(I)?(e.consume(I),h):w(I)}function y(I){return I===null||I===60||I===61||I===62||I===96?r(I):I===34||I===39?(e.consume(I),l=I,C):Me(I)?(e.consume(I),y):x(I)}function C(I){return I===l?(e.consume(I),l=null,_):I===null||pe(I)?r(I):(e.consume(I),C)}function x(I){return I===null||I===34||I===39||I===47||I===60||I===61||I===62||I===96||dt(I)?h(I):(e.consume(I),x)}function _(I){return I===47||I===62||Me(I)?w(I):r(I)}function S(I){return I===62?(e.consume(I),A):r(I)}function A(I){return I===null||pe(I)?O(I):Me(I)?(e.consume(I),A):r(I)}function O(I){return I===45&&a===2?(e.consume(I),q):I===60&&a===1?(e.consume(I),J):I===62&&a===4?(e.consume(I),j):I===63&&a===3?(e.consume(I),P):I===93&&a===5?(e.consume(I),Q):pe(I)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(fS,B,F)(I)):I===null||pe(I)?(e.exit("htmlFlowData"),F(I)):(e.consume(I),O)}function F(I){return e.check(dS,T,B)(I)}function T(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),M}function M(I){return I===null||pe(I)?F(I):(e.enter("htmlFlowData"),O(I))}function q(I){return I===45?(e.consume(I),P):O(I)}function J(I){return I===47?(e.consume(I),o="",Y):O(I)}function Y(I){if(I===62){const D=o.toLowerCase();return rp.includes(D)?(e.consume(I),j):O(I)}return Ut(I)&&o.length<8?(e.consume(I),o+=String.fromCharCode(I),Y):O(I)}function Q(I){return I===93?(e.consume(I),P):O(I)}function P(I){return I===62?(e.consume(I),j):I===45&&a===2?(e.consume(I),P):O(I)}function j(I){return I===null||pe(I)?(e.exit("htmlFlowData"),B(I)):(e.consume(I),j)}function B(I){return e.exit("htmlFlow"),t(I)}}function hS(e,t,r){const i=this;return a;function a(o){return pe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n):r(o)}function n(o){return i.parser.lazy[i.now().line]?r(o):t(o)}}function gS(e,t,r){return i;function i(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(wa,t,r)}}const yS={name:"htmlText",tokenize:vS};function vS(e,t,r){const i=this;let a,n,o;return s;function s(P){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(P),l}function l(P){return P===33?(e.consume(P),u):P===47?(e.consume(P),h):P===63?(e.consume(P),w):Ut(P)?(e.consume(P),x):r(P)}function u(P){return P===45?(e.consume(P),c):P===91?(e.consume(P),n=0,p):Ut(P)?(e.consume(P),b):r(P)}function c(P){return P===45?(e.consume(P),d):r(P)}function f(P){return P===null?r(P):P===45?(e.consume(P),m):pe(P)?(o=f,J(P)):(e.consume(P),f)}function m(P){return P===45?(e.consume(P),d):f(P)}function d(P){return P===62?q(P):P===45?m(P):f(P)}function p(P){const j="CDATA[";return P===j.charCodeAt(n++)?(e.consume(P),n===j.length?k:p):r(P)}function k(P){return P===null?r(P):P===93?(e.consume(P),v):pe(P)?(o=k,J(P)):(e.consume(P),k)}function v(P){return P===93?(e.consume(P),g):k(P)}function g(P){return P===62?q(P):P===93?(e.consume(P),g):k(P)}function b(P){return P===null||P===62?q(P):pe(P)?(o=b,J(P)):(e.consume(P),b)}function w(P){return P===null?r(P):P===63?(e.consume(P),E):pe(P)?(o=w,J(P)):(e.consume(P),w)}function E(P){return P===62?q(P):w(P)}function h(P){return Ut(P)?(e.consume(P),y):r(P)}function y(P){return P===45||qt(P)?(e.consume(P),y):C(P)}function C(P){return pe(P)?(o=C,J(P)):Me(P)?(e.consume(P),C):q(P)}function x(P){return P===45||qt(P)?(e.consume(P),x):P===47||P===62||dt(P)?_(P):r(P)}function _(P){return P===47?(e.consume(P),q):P===58||P===95||Ut(P)?(e.consume(P),S):pe(P)?(o=_,J(P)):Me(P)?(e.consume(P),_):q(P)}function S(P){return P===45||P===46||P===58||P===95||qt(P)?(e.consume(P),S):A(P)}function A(P){return P===61?(e.consume(P),O):pe(P)?(o=A,J(P)):Me(P)?(e.consume(P),A):_(P)}function O(P){return P===null||P===60||P===61||P===62||P===96?r(P):P===34||P===39?(e.consume(P),a=P,F):pe(P)?(o=O,J(P)):Me(P)?(e.consume(P),O):(e.consume(P),T)}function F(P){return P===a?(e.consume(P),a=void 0,M):P===null?r(P):pe(P)?(o=F,J(P)):(e.consume(P),F)}function T(P){return P===null||P===34||P===39||P===60||P===61||P===96?r(P):P===47||P===62||dt(P)?_(P):(e.consume(P),T)}function M(P){return P===47||P===62||dt(P)?_(P):r(P)}function q(P){return P===62?(e.consume(P),e.exit("htmlTextData"),e.exit("htmlText"),t):r(P)}function J(P){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),Y}function Y(P){return Me(P)?Be(e,Q,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):Q(P)}function Q(P){return e.enter("htmlTextData"),o(P)}}const hu={name:"labelEnd",resolveAll:SS,resolveTo:CS,tokenize:ES},bS={tokenize:AS},kS={tokenize:xS},wS={tokenize:OS};function SS(e){let t=-1;const r=[];for(;++t<e.length;){const i=e[t][1];if(r.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const a=i.type==="labelImage"?4:2;i.type="data",t+=a}}return e.length!==r.length&&tr(e,0,e.length,r),e}function CS(e,t){let r=e.length,i=0,a,n,o,s;for(;r--;)if(a=e[r][1],n){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[r][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(o){if(e[r][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(n=r,a.type!=="labelLink")){i=2;break}}else a.type==="labelEnd"&&(o=r);const l={type:e[n][1].type==="labelLink"?"link":"image",start:{...e[n][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[n][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[n+i+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",l,t],["enter",u,t]],s=sr(s,e.slice(n+1,n+i+3)),s=sr(s,[["enter",c,t]]),s=sr(s,Io(t.parser.constructs.insideSpan.null,e.slice(n+i+4,o-3),t)),s=sr(s,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),s=sr(s,e.slice(o+1)),s=sr(s,[["exit",l,t]]),tr(e,n,e.length,s),e}function ES(e,t,r){const i=this;let a=i.events.length,n,o;for(;a--;)if((i.events[a][1].type==="labelImage"||i.events[a][1].type==="labelLink")&&!i.events[a][1]._balanced){n=i.events[a][1];break}return s;function s(m){return n?n._inactive?f(m):(o=i.parser.defined.includes(wr(i.sliceSerialize({start:n.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),l):r(m)}function l(m){return m===40?e.attempt(bS,c,o?c:f)(m):m===91?e.attempt(kS,c,o?u:f)(m):o?c(m):f(m)}function u(m){return e.attempt(wS,c,f)(m)}function c(m){return t(m)}function f(m){return n._balanced=!0,r(m)}}function AS(e,t,r){return i;function i(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),a}function a(f){return dt(f)?Ca(e,n)(f):n(f)}function n(f){return f===41?c(f):Qm(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return dt(f)?Ca(e,l)(f):c(f)}function s(f){return r(f)}function l(f){return f===34||f===39||f===40?tp(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return dt(f)?Ca(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):r(f)}}function xS(e,t,r){const i=this;return a;function a(s){return ep.call(i,e,n,o,"reference","referenceMarker","referenceString")(s)}function n(s){return i.parser.defined.includes(wr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(s):r(s)}function o(s){return r(s)}}function OS(e,t,r){return i;function i(n){return e.enter("reference"),e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),a}function a(n){return n===93?(e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),e.exit("reference"),t):r(n)}}const _S={name:"labelStartImage",resolveAll:hu.resolveAll,tokenize:PS};function PS(e,t,r){const i=this;return a;function a(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),n}function n(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):r(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(s):t(s)}}const IS={name:"labelStartLink",resolveAll:hu.resolveAll,tokenize:TS};function TS(e,t,r){const i=this;return a;function a(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),n}function n(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(o):t(o)}}const gu={name:"lineEnding",tokenize:NS};function NS(e,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Be(e,t,"linePrefix")}}const To={name:"thematicBreak",tokenize:FS};function FS(e,t,r){let i=0,a;return n;function n(u){return e.enter("thematicBreak"),o(u)}function o(u){return a=u,s(u)}function s(u){return u===a?(e.enter("thematicBreakSequence"),l(u)):i>=3&&(u===null||pe(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===a?(e.consume(u),i++,l):(e.exit("thematicBreakSequence"),Me(u)?Be(e,s,"whitespace")(u):s(u))}}const Xt={continuation:{tokenize:LS},exit:RS,name:"list",tokenize:jS},DS={partial:!0,tokenize:zS},MS={partial:!0,tokenize:qS};function jS(e,t,r){const i=this,a=i.events[i.events.length-1];let n=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return s;function s(d){const p=i.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!i.containerState.marker||d===i.containerState.marker:du(d)){if(i.containerState.type||(i.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(To,r,u)(d):u(d);if(!i.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(d)}return r(d)}function l(d){return du(d)&&++o<10?(e.consume(d),l):(!i.interrupt||o<2)&&(i.containerState.marker?d===i.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),u(d)):r(d)}function u(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||d,e.check(wa,i.interrupt?r:c,e.attempt(DS,m,f))}function c(d){return i.containerState.initialBlankLine=!0,n++,m(d)}function f(d){return Me(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),m):r(d)}function m(d){return i.containerState.size=n+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function LS(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(wa,a,n);function a(s){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Be(e,t,"listItemIndent",i.containerState.size+1)(s)}function n(s){return i.containerState.furtherBlankLines||!Me(s)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,o(s)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(MS,t,o)(s))}function o(s){return i.containerState._closeFlow=!0,i.interrupt=void 0,Be(e,e.attempt(Xt,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function qS(e,t,r){const i=this;return Be(e,a,"listItemIndent",i.containerState.size+1);function a(n){const o=i.events[i.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===i.containerState.size?t(n):r(n)}}function RS(e){e.exit(this.containerState.type)}function zS(e,t,r){const i=this;return Be(e,a,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(n){const o=i.events[i.events.length-1];return!Me(n)&&o&&o[1].type==="listItemPrefixWhitespace"?t(n):r(n)}}const np={name:"setextUnderline",resolveTo:$S,tokenize:US};function $S(e,t){let r=e.length,i,a,n;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(a=r)}else e[r][1].type==="content"&&e.splice(r,1),!n&&e[r][1].type==="definition"&&(n=r);const o={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",n?(e.splice(a,0,["enter",o,t]),e.splice(n+1,0,["exit",e[i][1],t]),e[i][1].end={...e[n][1].end}):e[i][1]=o,e.push(["exit",o,t]),e}function US(e,t,r){const i=this;let a;return n;function n(u){let c=i.events.length,f;for(;c--;)if(i.events[c][1].type!=="lineEnding"&&i.events[c][1].type!=="linePrefix"&&i.events[c][1].type!=="content"){f=i.events[c][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||f)?(e.enter("setextHeadingLine"),a=u,o(u)):r(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===a?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),Me(u)?Be(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||pe(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const BS={tokenize:VS};function VS(e){const t=this,r=e.attempt(wa,i,e.attempt(this.parser.constructs.flowInitial,a,Be(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Jw,a)),"linePrefix")));return r;function i(n){if(n===null){e.consume(n);return}return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function a(n){if(n===null){e.consume(n);return}return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const HS={resolveAll:ap()},KS=ip("string"),WS=ip("text");function ip(e){return{resolveAll:ap(e==="text"?GS:void 0),tokenize:t};function t(r){const i=this,a=this.parser.constructs[e],n=r.attempt(a,o,s);return o;function o(c){return u(c)?n(c):s(c)}function s(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return u(c)?(r.exit("data"),n(c)):(r.consume(c),l)}function u(c){if(c===null)return!0;const f=a[c];let m=-1;if(f)for(;++m<f.length;){const d=f[m];if(!d.previous||d.previous.call(i,i.previous))return!0}return!1}}}function ap(e){return t;function t(r,i){let a=-1,n;for(;++a<=r.length;)n===void 0?r[a]&&r[a][1].type==="data"&&(n=a,a++):(!r[a]||r[a][1].type!=="data")&&(a!==n+2&&(r[n][1].end=r[a-1][1].end,r.splice(n+2,a-n-2),a=n+2),n=void 0);return e?e(r,i):r}}function GS(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const i=e[r-1][1],a=t.sliceStream(i);let n=a.length,o=-1,s=0,l;for(;n--;){const u=a[n];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(u===-2)l=!0,s++;else if(u!==-1){n++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(s=0),s){const u={type:r===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:n?o:i.start._bufferIndex+o,_index:i.start._index+n,line:i.end.line,column:i.end.column-s,offset:i.end.offset-s},end:{...i.end}};i.end={...u.start},i.start.offset===i.end.offset?Object.assign(i,u):(e.splice(r,0,["enter",u,t],["exit",u,t]),r+=2)}r++}return e}const JS=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:eS},disable:{null:[]},document:{42:Xt,43:Xt,45:Xt,48:Xt,49:Xt,50:Xt,51:Xt,52:Xt,53:Xt,54:Xt,55:Xt,56:Xt,57:Xt,62:Wm},flow:{35:oS,42:To,45:[np,To],60:cS,61:np,95:To,96:Xm,126:Xm},flowInitial:{[-2]:pu,[-1]:pu,32:pu},insideSpan:{null:[mu,HS]},string:{38:Jm,92:Gm},text:{[-5]:gu,[-4]:gu,[-3]:gu,33:_S,38:Jm,42:mu,60:[Iw,yS],91:IS,92:[iS,Gm],93:hu,95:mu,96:Bw}},Symbol.toStringTag,{value:"Module"}));function YS(e,t,r){let i={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const a={},n=[];let o=[],s=[];const l={attempt:C(h),check:C(y),consume:b,enter:w,exit:E,interrupt:C(y,{interrupt:!0})},u={code:null,containerState:{},defineSkip:k,events:[],now:p,parser:e,previous:null,sliceSerialize:m,sliceStream:d,write:f};let c=t.tokenize.call(u,l);return t.resolveAll&&n.push(t),u;function f(A){return o=sr(o,A),v(),o[o.length-1]!==null?[]:(x(t,0),u.events=Io(n,u.events,u),u.events)}function m(A,O){return ZS(d(A),O)}function d(A){return XS(o,A)}function p(){const{_bufferIndex:A,_index:O,line:F,column:T,offset:M}=i;return{_bufferIndex:A,_index:O,line:F,column:T,offset:M}}function k(A){a[A.line]=A.column,S()}function v(){let A;for(;i._index<o.length;){const O=o[i._index];if(typeof O=="string")for(A=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===A&&i._bufferIndex<O.length;)g(O.charCodeAt(i._bufferIndex));else g(O)}}function g(A){c=c(A)}function b(A){pe(A)?(i.line++,i.column=1,i.offset+=A===-3?2:1,S()):A!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===o[i._index].length&&(i._bufferIndex=-1,i._index++)),u.previous=A}function w(A,O){const F=O||{};return F.type=A,F.start=p(),u.events.push(["enter",F,u]),s.push(F),F}function E(A){const O=s.pop();return O.end=p(),u.events.push(["exit",O,u]),O}function h(A,O){x(A,O.from)}function y(A,O){O.restore()}function C(A,O){return F;function F(T,M,q){let J,Y,Q,P;return Array.isArray(T)?B(T):"tokenize"in T?B([T]):j(T);function j(U){return $;function $(H){const G=H!==null&&U[H],X=H!==null&&U.null,z=[...Array.isArray(G)?G:G?[G]:[],...Array.isArray(X)?X:X?[X]:[]];return B(z)(H)}}function B(U){return J=U,Y=0,U.length===0?q:I(U[Y])}function I(U){return $;function $(H){return P=_(),Q=U,U.partial||(u.currentConstruct=U),U.name&&u.parser.constructs.disable.null.includes(U.name)?L():U.tokenize.call(O?Object.assign(Object.create(u),O):u,l,D,L)(H)}}function D(U){return A(Q,P),M}function L(U){return P.restore(),++Y<J.length?I(J[Y]):q}}}function x(A,O){A.resolveAll&&!n.includes(A)&&n.push(A),A.resolve&&tr(u.events,O,u.events.length-O,A.resolve(u.events.slice(O),u)),A.resolveTo&&(u.events=A.resolveTo(u.events,u))}function _(){const A=p(),O=u.previous,F=u.currentConstruct,T=u.events.length,M=Array.from(s);return{from:T,restore:q};function q(){i=A,u.previous=O,u.currentConstruct=F,u.events.length=T,s=M,S()}}function S(){i.line in a&&i.column<2&&(i.column=a[i.line],i.offset+=a[i.line]-1)}}function XS(e,t){const r=t.start._index,i=t.start._bufferIndex,a=t.end._index,n=t.end._bufferIndex;let o;if(r===a)o=[e[r].slice(i,n)];else{if(o=e.slice(r,a),i>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(i):o.shift()}n>0&&o.push(e[a].slice(0,n))}return o}function ZS(e,t){let r=-1;const i=[];let a;for(;++r<e.length;){const n=e[r];let o;if(typeof n=="string")o=n;else switch(n){case-5:{o="\r";break}case-4:{o=`
|
|
22
|
+
`;break}case-3:{o=`\r
|
|
23
|
+
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&a)continue;o=" ";break}default:o=String.fromCharCode(n)}a=n===-2,i.push(o)}return i.join("")}function QS(e){const i={constructs:Bm([JS,...(e||{}).extensions||[]]),content:a(Cw),defined:[],document:a(Aw),flow:a(BS),lazy:{},string:a(KS),text:a(WS)};return i;function a(n){return o;function o(s){return YS(i,n,s)}}}function eC(e){for(;!Zm(e););return e}const op=/[\0\t\n\r]/g;function tC(){let e=1,t="",r=!0,i;return a;function a(n,o,s){const l=[];let u,c,f,m,d;for(n=t+(typeof n=="string"?n.toString():new TextDecoder(o||void 0).decode(n)),f=0,t="",r&&(n.charCodeAt(0)===65279&&f++,r=void 0);f<n.length;){if(op.lastIndex=f,u=op.exec(n),m=u&&u.index!==void 0?u.index:n.length,d=n.charCodeAt(m),!u){t=n.slice(f);break}if(d===10&&f===m&&i)l.push(-3),i=void 0;else switch(i&&(l.push(-5),i=void 0),f<m&&(l.push(n.slice(f,m)),e+=m-f),d){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:i=!0,e=1}f=m+1}return s&&(i&&l.push(-5),t&&l.push(t),l.push(null)),l}}const rC=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function nC(e){return e.replace(rC,iC)}function iC(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const a=r.charCodeAt(1),n=a===120||a===88;return Vm(r.slice(n?2:1),n?16:10)}return fu(r)||e}const sp={}.hasOwnProperty;function aC(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),oC(r)(eC(QS(r).document().write(tC()(e,t,!0))))}function oC(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:n(Se),autolinkProtocol:_,autolinkEmail:_,atxHeading:n(ie),blockQuote:n(X),characterEscape:_,characterReference:_,codeFenced:n(z),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:n(z,o),codeText:n(R,o),codeTextData:_,data:_,codeFlowValue:_,definition:n(W),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:n(K),hardBreakEscape:n(re),hardBreakTrailing:n(re),htmlFlow:n(ue,o),htmlFlowData:_,htmlText:n(ue,o),htmlTextData:_,image:n(ye),label:o,link:n(Se),listItem:n(Pe),listItemValue:m,listOrdered:n(ke,f),listUnordered:n(ke),paragraph:n(de),reference:I,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:n(ie),strong:n(Ke),thematicBreak:n(ve)},exit:{atxHeading:l(),atxHeadingSequence:h,autolink:l(),autolinkEmail:G,autolinkProtocol:H,blockQuote:l(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:L,characterReferenceMarkerNumeric:L,characterReferenceValue:U,characterReference:$,codeFenced:l(v),codeFencedFence:k,codeFencedFenceInfo:d,codeFencedFenceMeta:p,codeFlowValue:S,codeIndented:l(g),codeText:l(M),codeTextData:S,data:S,definition:l(),definitionDestinationString:E,definitionLabelString:b,definitionTitleString:w,emphasis:l(),hardBreakEscape:l(O),hardBreakTrailing:l(O),htmlFlow:l(F),htmlFlowData:S,htmlText:l(T),htmlTextData:S,image:l(J),label:Q,labelText:Y,lineEnding:A,link:l(q),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:D,resourceDestinationString:P,resourceTitleString:j,resource:B,setextHeading:l(x),setextHeadingLineSequence:C,setextHeadingText:y,strong:l(),thematicBreak:l()}};lp(t,(e||{}).mdastExtensions||[]);const r={};return i;function i(Z){let ee={type:"root",children:[]};const te={stack:[ee],tokenStack:[],config:t,enter:s,exit:u,buffer:o,resume:c,data:r},he=[];let ce=-1;for(;++ce<Z.length;)if(Z[ce][1].type==="listOrdered"||Z[ce][1].type==="listUnordered")if(Z[ce][0]==="enter")he.push(ce);else{const mt=he.pop();ce=a(Z,mt,ce)}for(ce=-1;++ce<Z.length;){const mt=t[Z[ce][0]];sp.call(mt,Z[ce][1].type)&&mt[Z[ce][1].type].call(Object.assign({sliceSerialize:Z[ce][2].sliceSerialize},te),Z[ce][1])}if(te.tokenStack.length>0){const mt=te.tokenStack[te.tokenStack.length-1];(mt[1]||up).call(te,void 0,mt[0])}for(ee.position={start:mn(Z.length>0?Z[0][1].start:{line:1,column:1,offset:0}),end:mn(Z.length>0?Z[Z.length-2][1].end:{line:1,column:1,offset:0})},ce=-1;++ce<t.transforms.length;)ee=t.transforms[ce](ee)||ee;return ee}function a(Z,ee,te){let he=ee-1,ce=-1,mt=!1,qe,We,St,xt;for(;++he<=te;){const ct=Z[he];switch(ct[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ct[0]==="enter"?ce++:ce--,xt=void 0;break}case"lineEndingBlank":{ct[0]==="enter"&&(qe&&!xt&&!ce&&!St&&(St=he),xt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:xt=void 0}if(!ce&&ct[0]==="enter"&&ct[1].type==="listItemPrefix"||ce===-1&&ct[0]==="exit"&&(ct[1].type==="listUnordered"||ct[1].type==="listOrdered")){if(qe){let Ct=he;for(We=void 0;Ct--;){const yt=Z[Ct];if(yt[1].type==="lineEnding"||yt[1].type==="lineEndingBlank"){if(yt[0]==="exit")continue;We&&(Z[We][1].type="lineEndingBlank",mt=!0),yt[1].type="lineEnding",We=Ct}else if(!(yt[1].type==="linePrefix"||yt[1].type==="blockQuotePrefix"||yt[1].type==="blockQuotePrefixWhitespace"||yt[1].type==="blockQuoteMarker"||yt[1].type==="listItemIndent"))break}St&&(!We||St<We)&&(qe._spread=!0),qe.end=Object.assign({},We?Z[We][1].start:ct[1].end),Z.splice(We||he,0,["exit",qe,ct[2]]),he++,te++}if(ct[1].type==="listItemPrefix"){const Ct={type:"listItem",_spread:!1,start:Object.assign({},ct[1].start),end:void 0};qe=Ct,Z.splice(he,0,["enter",Ct,ct[2]]),he++,te++,St=void 0,xt=!0}}}return Z[ee][1]._spread=mt,te}function n(Z,ee){return te;function te(he){s.call(this,Z(he),he),ee&&ee.call(this,he)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(Z,ee,te){this.stack[this.stack.length-1].children.push(Z),this.stack.push(Z),this.tokenStack.push([ee,te||void 0]),Z.position={start:mn(ee.start),end:void 0}}function l(Z){return ee;function ee(te){Z&&Z.call(this,te),u.call(this,te)}}function u(Z,ee){const te=this.stack.pop(),he=this.tokenStack.pop();if(he)he[0].type!==Z.type&&(ee?ee.call(this,Z,he[0]):(he[1]||up).call(this,Z,he[0]));else throw new Error("Cannot close `"+Z.type+"` ("+ba({start:Z.start,end:Z.end})+"): it’s not open");te.position.end=mn(Z.end)}function c(){return cu(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function m(Z){if(this.data.expectingFirstListItemValue){const ee=this.stack[this.stack.length-2];ee.start=Number.parseInt(this.sliceSerialize(Z),10),this.data.expectingFirstListItemValue=void 0}}function d(){const Z=this.resume(),ee=this.stack[this.stack.length-1];ee.lang=Z}function p(){const Z=this.resume(),ee=this.stack[this.stack.length-1];ee.meta=Z}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const Z=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const Z=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Z.replace(/(\r?\n|\r)$/g,"")}function b(Z){const ee=this.resume(),te=this.stack[this.stack.length-1];te.label=ee,te.identifier=wr(this.sliceSerialize(Z)).toLowerCase()}function w(){const Z=this.resume(),ee=this.stack[this.stack.length-1];ee.title=Z}function E(){const Z=this.resume(),ee=this.stack[this.stack.length-1];ee.url=Z}function h(Z){const ee=this.stack[this.stack.length-1];if(!ee.depth){const te=this.sliceSerialize(Z).length;ee.depth=te}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function C(Z){const ee=this.stack[this.stack.length-1];ee.depth=this.sliceSerialize(Z).codePointAt(0)===61?1:2}function x(){this.data.setextHeadingSlurpLineEnding=void 0}function _(Z){const te=this.stack[this.stack.length-1].children;let he=te[te.length-1];(!he||he.type!=="text")&&(he=ut(),he.position={start:mn(Z.start),end:void 0},te.push(he)),this.stack.push(he)}function S(Z){const ee=this.stack.pop();ee.value+=this.sliceSerialize(Z),ee.position.end=mn(Z.end)}function A(Z){const ee=this.stack[this.stack.length-1];if(this.data.atHardBreak){const te=ee.children[ee.children.length-1];te.position.end=mn(Z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ee.type)&&(_.call(this,Z),S.call(this,Z))}function O(){this.data.atHardBreak=!0}function F(){const Z=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Z}function T(){const Z=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Z}function M(){const Z=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Z}function q(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const ee=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=ee,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function J(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const ee=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=ee,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function Y(Z){const ee=this.sliceSerialize(Z),te=this.stack[this.stack.length-2];te.label=nC(ee),te.identifier=wr(ee).toLowerCase()}function Q(){const Z=this.stack[this.stack.length-1],ee=this.resume(),te=this.stack[this.stack.length-1];if(this.data.inReference=!0,te.type==="link"){const he=Z.children;te.children=he}else te.alt=ee}function P(){const Z=this.resume(),ee=this.stack[this.stack.length-1];ee.url=Z}function j(){const Z=this.resume(),ee=this.stack[this.stack.length-1];ee.title=Z}function B(){this.data.inReference=void 0}function I(){this.data.referenceType="collapsed"}function D(Z){const ee=this.resume(),te=this.stack[this.stack.length-1];te.label=ee,te.identifier=wr(this.sliceSerialize(Z)).toLowerCase(),this.data.referenceType="full"}function L(Z){this.data.characterReferenceType=Z.type}function U(Z){const ee=this.sliceSerialize(Z),te=this.data.characterReferenceType;let he;te?(he=Vm(ee,te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):he=fu(ee);const ce=this.stack[this.stack.length-1];ce.value+=he}function $(Z){const ee=this.stack.pop();ee.position.end=mn(Z.end)}function H(Z){S.call(this,Z);const ee=this.stack[this.stack.length-1];ee.url=this.sliceSerialize(Z)}function G(Z){S.call(this,Z);const ee=this.stack[this.stack.length-1];ee.url="mailto:"+this.sliceSerialize(Z)}function X(){return{type:"blockquote",children:[]}}function z(){return{type:"code",lang:null,meta:null,value:""}}function R(){return{type:"inlineCode",value:""}}function W(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function K(){return{type:"emphasis",children:[]}}function ie(){return{type:"heading",depth:0,children:[]}}function re(){return{type:"break"}}function ue(){return{type:"html",value:""}}function ye(){return{type:"image",title:null,url:"",alt:null}}function Se(){return{type:"link",title:null,url:"",children:[]}}function ke(Z){return{type:"list",ordered:Z.type==="listOrdered",start:null,spread:Z._spread,children:[]}}function Pe(Z){return{type:"listItem",spread:Z._spread,checked:null,children:[]}}function de(){return{type:"paragraph",children:[]}}function Ke(){return{type:"strong",children:[]}}function ut(){return{type:"text",value:""}}function ve(){return{type:"thematicBreak"}}}function mn(e){return{line:e.line,column:e.column,offset:e.offset}}function lp(e,t){let r=-1;for(;++r<t.length;){const i=t[r];Array.isArray(i)?lp(e,i):sC(e,i)}}function sC(e,t){let r;for(r in t)if(sp.call(t,r))switch(r){case"canContainEols":{const i=t[r];i&&e[r].push(...i);break}case"transforms":{const i=t[r];i&&e[r].push(...i);break}case"enter":case"exit":{const i=t[r];i&&Object.assign(e[r],i);break}}}function up(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ba({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ba({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ba({start:t.start,end:t.end})+") is still open")}function lC(e){const t=this;t.parser=r;function r(i){return aC(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function uC(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function cC(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
24
|
+
`}]}function fC(e,t){const r=t.value?t.value+`
|
|
25
|
+
`:"",i={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(i.className=["language-"+a[0]]);let n={type:"element",tagName:"code",properties:i,children:[{type:"text",value:r}]};return t.meta&&(n.data={meta:t.meta}),e.patch(t,n),n=e.applyData(t,n),n={type:"element",tagName:"pre",properties:{},children:[n]},e.patch(t,n),n}function dC(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function mC(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function pC(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=Pi(i.toLowerCase()),n=e.footnoteOrder.indexOf(i);let o,s=e.footnoteCounts.get(i);s===void 0?(s=0,e.footnoteOrder.push(i),o=e.footnoteOrder.length):o=n+1,s+=1,e.footnoteCounts.set(i,s);const l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function hC(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function gC(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function cp(e,t){const r=t.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const a=e.all(t),n=a[0];n&&n.type==="text"?n.value="["+n.value:a.unshift({type:"text",value:"["});const o=a[a.length-1];return o&&o.type==="text"?o.value+=i:a.push({type:"text",value:i}),a}function yC(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return cp(e,t);const a={src:Pi(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(a.title=i.title);const n={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,n),e.applyData(t,n)}function vC(e,t){const r={src:Pi(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function bC(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,i),e.applyData(t,i)}function kC(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return cp(e,t);const a={href:Pi(i.url||"")};i.title!==null&&i.title!==void 0&&(a.title=i.title);const n={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function wC(e,t){const r={href:Pi(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function SC(e,t,r){const i=e.all(t),a=r?CC(r):fp(t),n={},o=[];if(typeof t.checked=="boolean"){const c=i[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},i.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),n.className=["task-list-item"]}let s=-1;for(;++s<i.length;){const c=i[s];(a||s!==0||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
|
|
26
|
+
`}),c.type==="element"&&c.tagName==="p"&&!a?o.push(...c.children):o.push(c)}const l=i[i.length-1];l&&(a||l.type!=="element"||l.tagName!=="p")&&o.push({type:"text",value:`
|
|
27
|
+
`});const u={type:"element",tagName:"li",properties:n,children:o};return e.patch(t,u),e.applyData(t,u)}function CC(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let i=-1;for(;!t&&++i<r.length;)t=fp(r[i])}return t}function fp(e){const t=e.spread;return t??e.children.length>1}function EC(e,t){const r={},i=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++a<i.length;){const o=i[a];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const n={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(i,!0)};return e.patch(t,n),e.applyData(t,n)}function AC(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function xC(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function OC(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function _C(e,t){const r=e.all(t),i=r.shift(),a=[];if(i){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],o),a.push(o)}if(r.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},s=iu(t.children[1]),l=Tm(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),a.push(o)}const n={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,n),e.applyData(t,n)}function PC(e,t,r){const i=r?r.children:void 0,n=(i?i.indexOf(t):1)===0?"th":"td",o=r&&r.type==="table"?r.align:void 0,s=o?o.length:t.children.length;let l=-1;const u=[];for(;++l<s;){const f=t.children[l],m={},d=o?o[l]:void 0;d&&(m.align=d);let p={type:"element",tagName:n,properties:m,children:[]};f&&(p.children=e.all(f),e.patch(f,p),p=e.applyData(f,p)),u.push(p)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function IC(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const dp=9,mp=32;function TC(e){const t=String(e),r=/\r?\n|\r/g;let i=r.exec(t),a=0;const n=[];for(;i;)n.push(pp(t.slice(a,i.index),a>0,!0),i[0]),a=i.index+i[0].length,i=r.exec(t);return n.push(pp(t.slice(a),a>0,!1)),n.join("")}function pp(e,t,r){let i=0,a=e.length;if(t){let n=e.codePointAt(i);for(;n===dp||n===mp;)i++,n=e.codePointAt(i)}if(r){let n=e.codePointAt(a-1);for(;n===dp||n===mp;)a--,n=e.codePointAt(a-1)}return a>i?e.slice(i,a):""}function NC(e,t){const r={type:"text",value:TC(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function FC(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const DC={blockquote:uC,break:cC,code:fC,delete:dC,emphasis:mC,footnoteReference:pC,heading:hC,html:gC,imageReference:yC,image:vC,inlineCode:bC,linkReference:kC,link:wC,listItem:SC,list:EC,paragraph:AC,root:xC,strong:OC,table:_C,tableCell:IC,tableRow:PC,text:NC,thematicBreak:FC,toml:No,yaml:No,definition:No,footnoteDefinition:No};function No(){}const hp=-1,Fo=0,Ea=1,Do=2,yu=3,vu=4,bu=5,ku=6,gp=7,yp=8,MC=typeof self=="object"?self:globalThis,vp=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new MC[e](t)},jC=(e,t)=>{const r=(a,n)=>(e.set(n,a),a),i=a=>{if(e.has(a))return e.get(a);const[n,o]=t[a];switch(n){case Fo:case hp:return r(o,a);case Ea:{const s=r([],a);for(const l of o)s.push(i(l));return s}case Do:{const s=r({},a);for(const[l,u]of o)s[i(l)]=i(u);return s}case yu:return r(new Date(o),a);case vu:{const{source:s,flags:l}=o;return r(new RegExp(s,l),a)}case bu:{const s=r(new Map,a);for(const[l,u]of o)s.set(i(l),i(u));return s}case ku:{const s=r(new Set,a);for(const l of o)s.add(i(l));return s}case gp:{const{name:s,message:l}=o;return r(vp(s,l),a)}case yp:return r(BigInt(o),a);case"BigInt":return r(Object(BigInt(o)),a);case"ArrayBuffer":return r(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:s}=new Uint8Array(o);return r(new DataView(s),o)}}return r(vp(n,o),a)};return i},bp=e=>jC(new Map,e)(0),Ti="",{toString:LC}={},{keys:qC}=Object,Aa=e=>{const t=typeof e;if(t!=="object"||!e)return[Fo,t];const r=LC.call(e).slice(8,-1);switch(r){case"Array":return[Ea,Ti];case"Object":return[Do,Ti];case"Date":return[yu,Ti];case"RegExp":return[vu,Ti];case"Map":return[bu,Ti];case"Set":return[ku,Ti];case"DataView":return[Ea,r]}return r.includes("Array")?[Ea,r]:r.includes("Error")?[gp,r]:[Do,r]},Mo=([e,t])=>e===Fo&&(t==="function"||t==="symbol"),RC=(e,t,r,i)=>{const a=(o,s)=>{const l=i.push(o)-1;return r.set(s,l),l},n=o=>{if(r.has(o))return r.get(o);let[s,l]=Aa(o);switch(s){case Fo:{let c=o;switch(l){case"bigint":s=yp,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return a([hp],o)}return a([s,c],o)}case Ea:{if(l){let m=o;return l==="DataView"?m=new Uint8Array(o.buffer):l==="ArrayBuffer"&&(m=new Uint8Array(o)),a([l,[...m]],o)}const c=[],f=a([s,c],o);for(const m of o)c.push(n(m));return f}case Do:{if(l)switch(l){case"BigInt":return a([l,o.toString()],o);case"Boolean":case"Number":case"String":return a([l,o.valueOf()],o)}if(t&&"toJSON"in o)return n(o.toJSON());const c=[],f=a([s,c],o);for(const m of qC(o))(e||!Mo(Aa(o[m])))&&c.push([n(m),n(o[m])]);return f}case yu:return a([s,o.toISOString()],o);case vu:{const{source:c,flags:f}=o;return a([s,{source:c,flags:f}],o)}case bu:{const c=[],f=a([s,c],o);for(const[m,d]of o)(e||!(Mo(Aa(m))||Mo(Aa(d))))&&c.push([n(m),n(d)]);return f}case ku:{const c=[],f=a([s,c],o);for(const m of o)(e||!Mo(Aa(m)))&&c.push(n(m));return f}}const{message:u}=o;return a([s,{name:l,message:u}],o)};return n},kp=(e,{json:t,lossy:r}={})=>{const i=[];return RC(!(t||r),!!t,new Map,i)(e),i},jo=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?bp(kp(e,t)):structuredClone(e):(e,t)=>bp(kp(e,t));function zC(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function $C(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function UC(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||zC,i=e.options.footnoteBackLabel||$C,a=e.options.footnoteLabel||"Footnotes",n=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),f=String(u.identifier).toUpperCase(),m=Pi(f.toLowerCase());let d=0;const p=[],k=e.footnoteCounts.get(f);for(;k!==void 0&&++d<=k;){p.length>0&&p.push({type:"text",value:" "});let b=typeof r=="string"?r:r(l,d);typeof b=="string"&&(b={type:"text",value:b}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(l,d),className:["data-footnote-backref"]},children:Array.isArray(b)?b:[b]})}const v=c[c.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const b=v.children[v.children.length-1];b&&b.type==="text"?b.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...p)}else c.push(...p);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(c,!0)};e.patch(u,g),s.push(g)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:n,properties:{...jo(o),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
|
|
28
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
|
|
29
|
+
`}]}}const Lo=(function(e){if(e==null)return KC;if(typeof e=="function")return qo(e);if(typeof e=="object")return Array.isArray(e)?BC(e):VC(e);if(typeof e=="string")return HC(e);throw new Error("Expected function, string, or object as test")});function BC(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Lo(e[r]);return qo(i);function i(...a){let n=-1;for(;++n<t.length;)if(t[n].apply(this,a))return!0;return!1}}function VC(e){const t=e;return qo(r);function r(i){const a=i;let n;for(n in e)if(a[n]!==t[n])return!1;return!0}}function HC(e){return qo(t);function t(r){return r&&r.type===e}}function qo(e){return t;function t(r,i,a){return!!(WC(r)&&e.call(this,r,typeof i=="number"?i:void 0,a||void 0))}}function KC(){return!0}function WC(e){return e!==null&&typeof e=="object"&&"type"in e}function j$(e){return e}const wp=[],GC=!0,wu=!1,JC="skip";function Sp(e,t,r,i){let a;typeof t=="function"&&typeof r!="function"?(i=r,r=t):a=t;const n=Lo(a),o=i?-1:1;s(e,void 0,[])();function s(l,u,c){const f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){const d=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(l.type+(d?"<"+d+">":""))+")"})}return m;function m(){let d=wp,p,k,v;if((!t||n(l,u,c[c.length-1]||void 0))&&(d=YC(r(l,c)),d[0]===wu))return d;if("children"in l&&l.children){const g=l;if(g.children&&d[0]!==JC)for(k=(i?g.children.length:-1)+o,v=c.concat(g);k>-1&&k<g.children.length;){const b=g.children[k];if(p=s(b,k,v)(),p[0]===wu)return p;k=typeof p[1]=="number"?p[1]:k+o}}return d}}}function YC(e){return Array.isArray(e)?e:typeof e=="number"?[GC,e]:e==null?wp:[e]}function Su(e,t,r,i){let a,n,o;typeof t=="function"&&typeof r!="function"?(n=void 0,o=t,a=r):(n=t,o=r,a=i),Sp(e,n,s,a);function s(l,u){const c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return o(l,f,c)}}const Cu={}.hasOwnProperty,XC={};function ZC(e,t){const r=t||XC,i=new Map,a=new Map,n=new Map,o={...DC,...r.handlers},s={all:u,applyData:eE,definitionById:i,footnoteById:a,footnoteCounts:n,footnoteOrder:[],handlers:o,one:l,options:r,patch:QC,wrap:rE};return Su(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?i:a,m=String(c.identifier).toUpperCase();f.has(m)||f.set(m,c)}}),s;function l(c,f){const m=c.type,d=s.handlers[m];if(Cu.call(s.handlers,m)&&d)return d(s,c,f);if(s.options.passThrough&&s.options.passThrough.includes(m)){if("children"in c){const{children:k,...v}=c,g=jo(v);return g.children=s.all(c),g}return jo(c)}return(s.options.unknownHandler||tE)(s,c,f)}function u(c){const f=[];if("children"in c){const m=c.children;let d=-1;for(;++d<m.length;){const p=s.one(m[d],c);if(p){if(d&&m[d-1].type==="break"&&(!Array.isArray(p)&&p.type==="text"&&(p.value=Cp(p.value)),!Array.isArray(p)&&p.type==="element")){const k=p.children[0];k&&k.type==="text"&&(k.value=Cp(k.value))}Array.isArray(p)?f.push(...p):f.push(p)}}}return f}}function QC(e,t){e.position&&(t.position=J0(e))}function eE(e,t){let r=t;if(e&&e.data){const i=e.data.hName,a=e.data.hChildren,n=e.data.hProperties;if(typeof i=="string")if(r.type==="element")r.tagName=i;else{const o="children"in r?r.children:[r];r={type:"element",tagName:i,properties:{},children:o}}r.type==="element"&&n&&Object.assign(r.properties,jo(n)),"children"in r&&r.children&&a!==null&&a!==void 0&&(r.children=a)}return r}function tE(e,t){const r=t.data||{},i="value"in t&&!(Cu.call(r,"hProperties")||Cu.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function rE(e,t){const r=[];let i=-1;for(t&&r.push({type:"text",value:`
|
|
30
|
+
`});++i<e.length;)i&&r.push({type:"text",value:`
|
|
31
|
+
`}),r.push(e[i]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
32
|
+
`}),r}function Cp(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function Ep(e,t){const r=ZC(e,t),i=r.one(e,void 0),a=UC(r),n=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return a&&n.children.push({type:"text",value:`
|
|
33
|
+
`},a),n}function nE(e,t){return e&&"run"in e?async function(r,i){const a=Ep(r,{file:i,...t});await e.run(a,i)}:function(r,i){return Ep(r,{file:i,...e||t})}}function Ap(e){if(e)throw e}var Eu,xp;function iE(){if(xp)return Eu;xp=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},n=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var c=e.call(u,"constructor"),f=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!c&&!f)return!1;var m;for(m in u);return typeof m>"u"||e.call(u,m)},o=function(u,c){r&&c.name==="__proto__"?r(u,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):u[c.name]=c.newValue},s=function(u,c){if(c==="__proto__")if(e.call(u,c)){if(i)return i(u,c).value}else return;return u[c]};return Eu=function l(){var u,c,f,m,d,p,k=arguments[0],v=1,g=arguments.length,b=!1;for(typeof k=="boolean"&&(b=k,k=arguments[1]||{},v=2),(k==null||typeof k!="object"&&typeof k!="function")&&(k={});v<g;++v)if(u=arguments[v],u!=null)for(c in u)f=s(k,c),m=s(u,c),k!==m&&(b&&m&&(n(m)||(d=a(m)))?(d?(d=!1,p=f&&a(f)?f:[]):p=f&&n(f)?f:{},o(k,{name:c,newValue:l(b,p,m)})):typeof m<"u"&&o(k,{name:c,newValue:m}));return k},Eu}var aE=iE();const Au=jr(aE);function xu(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function oE(){const e=[],t={run:r,use:i};return t;function r(...a){let n=-1;const o=a.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...a);function s(l,...u){const c=e[++n];let f=-1;if(l){o(l);return}for(;++f<a.length;)(u[f]===null||u[f]===void 0)&&(u[f]=a[f]);a=u,c?sE(c,s)(...u):o(null,...u)}}function i(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function sE(e,t){let r;return i;function i(...o){const s=e.length>o.length;let l;s&&o.push(a);try{l=e.apply(this,o)}catch(u){const c=u;if(s&&r)throw c;return a(c)}s||(l&&l.then&&typeof l.then=="function"?l.then(n,a):l instanceof Error?a(l):n(l))}function a(o,...s){r||(r=!0,t(o,...s))}function n(o){a(null,o)}}const qr={basename:lE,dirname:uE,extname:cE,join:fE,sep:"/"};function lE(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');xa(e);let r=0,i=-1,a=e.length,n;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(n){r=a+1;break}}else o<0&&(n=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(i=a):(s=-1,i=o));return r===i?i=o:i<0&&(i=e.length),e.slice(r,i)}function uE(e){if(xa(e),e.length===0)return".";let t=-1,r=e.length,i;for(;--r;)if(e.codePointAt(r)===47){if(i){t=r;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function cE(e){xa(e);let t=e.length,r=-1,i=0,a=-1,n=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){i=t+1;break}continue}r<0&&(o=!0,r=t+1),s===46?a<0?a=t:n!==1&&(n=1):a>-1&&(n=-1)}return a<0||r<0||n===0||n===1&&a===r-1&&a===i+1?"":e.slice(a,r)}function fE(...e){let t=-1,r;for(;++t<e.length;)xa(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":dE(r)}function dE(e){xa(e);const t=e.codePointAt(0)===47;let r=mE(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function mE(e,t){let r="",i=0,a=-1,n=0,o=-1,s,l;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(a===o-1||n===1))if(a!==o-1&&n===2){if(r.length<2||i!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",i=0):(r=r.slice(0,l),i=r.length-1-r.lastIndexOf("/")),a=o,n=0;continue}}else if(r.length>0){r="",i=0,a=o,n=0;continue}}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(a+1,o):r=e.slice(a+1,o),i=o-a-1;a=o,n=0}else s===46&&n>-1?n++:n=-1}return r}function xa(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const pE={cwd:hE};function hE(){return"/"}function Ou(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function gE(e){if(typeof e=="string")e=new URL(e);else if(!Ou(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return yE(e)}function yE(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const i=t.codePointAt(r+2);if(i===70||i===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const _u=["history","path","basename","stem","extname","dirname"];class Op{constructor(t){let r;t?Ou(t)?r={path:t}:typeof t=="string"||vE(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":pE.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<_u.length;){const n=_u[i];n in r&&r[n]!==void 0&&r[n]!==null&&(this[n]=n==="history"?[...r[n]]:r[n])}let a;for(a in r)_u.includes(a)||(this[a]=r[a])}get basename(){return typeof this.path=="string"?qr.basename(this.path):void 0}set basename(t){Iu(t,"basename"),Pu(t,"basename"),this.path=qr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?qr.dirname(this.path):void 0}set dirname(t){_p(this.basename,"dirname"),this.path=qr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?qr.extname(this.path):void 0}set extname(t){if(Pu(t,"extname"),_p(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=qr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ou(t)&&(t=gE(t)),Iu(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?qr.basename(this.path,this.extname):void 0}set stem(t){Iu(t,"stem"),Pu(t,"stem"),this.path=qr.join(this.dirname||"",t+(this.extname||""))}fail(t,r,i){const a=this.message(t,r,i);throw a.fatal=!0,a}info(t,r,i){const a=this.message(t,r,i);return a.fatal=void 0,a}message(t,r,i){const a=new Lt(t,r,i);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Pu(e,t){if(e&&e.includes(qr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+qr.sep+"`")}function Iu(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function _p(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function vE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const bE=(function(e){const i=this.constructor.prototype,a=i[e],n=function(){return a.apply(n,arguments)};return Object.setPrototypeOf(n,i),n}),kE={}.hasOwnProperty;class Tu extends bE{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=oE()}copy(){const t=new Tu;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];t.use(...i)}return t.data(Au(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(Du("data",this.frozen),this.namespace[t]=r,this):kE.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Du("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const a=r.call(t,...i);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Ro(t),i=this.parser||this.Parser;return Nu("parse",i),i(String(r),r)}process(t,r){const i=this;return this.freeze(),Nu("process",this.parser||this.Parser),Fu("process",this.compiler||this.Compiler),r?a(void 0,r):new Promise(a);function a(n,o){const s=Ro(t),l=i.parse(s);i.run(l,s,function(c,f,m){if(c||!f||!m)return u(c);const d=f,p=i.stringify(d,m);CE(p)?m.value=p:m.result=p,u(c,m)});function u(c,f){c||!f?o(c):n?n(f):r(void 0,f)}}}processSync(t){let r=!1,i;return this.freeze(),Nu("processSync",this.parser||this.Parser),Fu("processSync",this.compiler||this.Compiler),this.process(t,a),Ip("processSync","process",r),i;function a(n,o){r=!0,Ap(n),i=o}}run(t,r,i){Pp(t),this.freeze();const a=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?n(void 0,i):new Promise(n);function n(o,s){const l=Ro(r);a.run(t,l,u);function u(c,f,m){const d=f||t;c?s(c):o?o(d):i(void 0,d,m)}}}runSync(t,r){let i=!1,a;return this.run(t,r,n),Ip("runSync","run",i),a;function n(o,s){Ap(o),a=s,i=!0}}stringify(t,r){this.freeze();const i=Ro(r),a=this.compiler||this.Compiler;return Fu("stringify",a),Pp(t),a(t,i)}use(t,...r){const i=this.attachers,a=this.namespace;if(Du("use",this.frozen),t!=null)if(typeof t=="function")l(t,r);else if(typeof t=="object")Array.isArray(t)?s(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function n(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...f]=u;l(c,f)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(u.plugins),u.settings&&(a.settings=Au(!0,a.settings,u.settings))}function s(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const f=u[c];n(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let f=-1,m=-1;for(;++f<i.length;)if(i[f][0]===u){m=f;break}if(m===-1)i.push([u,...c]);else if(c.length>0){let[d,...p]=c;const k=i[m][1];xu(k)&&xu(d)&&(d=Au(!0,k,d)),i[m]=[u,d,...p]}}}}const wE=new Tu().freeze();function Nu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Fu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Du(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Pp(e){if(!xu(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ip(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ro(e){return SE(e)?e:new Op(e)}function SE(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function CE(e){return typeof e=="string"||EE(e)}function EE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const AE="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Tp=[],Np={allowDangerousHtml:!0},xE=/^(https?|ircs?|mailto|xmpp)$/i,OE=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function _E(e){const t=PE(e),r=IE(e);return TE(t.runSync(t.parse(r),r),e)}function PE(e){const t=e.rehypePlugins||Tp,r=e.remarkPlugins||Tp,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Np}:Np;return wE().use(lC).use(r).use(nE,i).use(t)}function IE(e){const t=e.children||"",r=new Op;return typeof t=="string"&&(r.value=t),r}function TE(e,t){const r=t.allowedElements,i=t.allowElement,a=t.components,n=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||NE;for(const c of OE)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+AE+c.id,void 0);return Su(e,u),ew(e,{Fragment:N.Fragment,components:a,ignoreInvalidStyle:!0,jsx:N.jsx,jsxs:N.jsxs,passKeys:!0,passNode:!0});function u(c,f,m){if(c.type==="raw"&&m&&typeof f=="number")return o?m.children.splice(f,1):m.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let d;for(d in uu)if(Object.hasOwn(uu,d)&&Object.hasOwn(c.properties,d)){const p=c.properties[d],k=uu[d];(k===null||k.includes(c.tagName))&&(c.properties[d]=l(String(p||""),d,c))}}if(c.type==="element"){let d=r?!r.includes(c.tagName):n?n.includes(c.tagName):!1;if(!d&&i&&typeof f=="number"&&(d=!i(c,f,m)),d&&m&&typeof f=="number")return s&&c.children?m.children.splice(f,1,...c.children):m.children.splice(f,1),f}}}function NE(e){const t=e.indexOf(":"),r=e.indexOf("?"),i=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||r!==-1&&t>r||i!==-1&&t>i||xE.test(e.slice(0,t))?e:""}function Fp(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,a=r.indexOf(t);for(;a!==-1;)i++,a=r.indexOf(t,a+t.length);return i}function FE(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function DE(e,t,r){const a=Lo((r||{}).ignore||[]),n=ME(t);let o=-1;for(;++o<n.length;)Sp(e,"text",s);function s(u,c){let f=-1,m;for(;++f<c.length;){const d=c[f],p=m?m.children:void 0;if(a(d,p?p.indexOf(d):void 0,m))return;m=d}if(m)return l(u,c)}function l(u,c){const f=c[c.length-1],m=n[o][0],d=n[o][1];let p=0;const v=f.children.indexOf(u);let g=!1,b=[];m.lastIndex=0;let w=m.exec(u.value);for(;w;){const E=w.index,h={index:w.index,input:w.input,stack:[...c,u]};let y=d(...w,h);if(typeof y=="string"&&(y=y.length>0?{type:"text",value:y}:void 0),y===!1?m.lastIndex=E+1:(p!==E&&b.push({type:"text",value:u.value.slice(p,E)}),Array.isArray(y)?b.push(...y):y&&b.push(y),p=E+w[0].length,g=!0),!m.global)break;w=m.exec(u.value)}return g?(p<u.value.length&&b.push({type:"text",value:u.value.slice(p)}),f.children.splice(v,1,...b)):b=[u],v+b.length}}function ME(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<r.length;){const a=r[i];t.push([jE(a[0]),LE(a[1])])}return t}function jE(e){return typeof e=="string"?new RegExp(FE(e),"g"):e}function LE(e){return typeof e=="function"?e:function(){return e}}const Mu="phrasing",ju=["autolink","link","image","label"];function qE(){return{transforms:[HE],enter:{literalAutolink:zE,literalAutolinkEmail:Lu,literalAutolinkHttp:Lu,literalAutolinkWww:Lu},exit:{literalAutolink:VE,literalAutolinkEmail:BE,literalAutolinkHttp:$E,literalAutolinkWww:UE}}}function RE(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Mu,notInConstruct:ju},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Mu,notInConstruct:ju},{character:":",before:"[ps]",after:"\\/",inConstruct:Mu,notInConstruct:ju}]}}function zE(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Lu(e){this.config.enter.autolinkProtocol.call(this,e)}function $E(e){this.config.exit.autolinkProtocol.call(this,e)}function UE(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function BE(e){this.config.exit.autolinkEmail.call(this,e)}function VE(e){this.exit(e)}function HE(e){DE(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,KE],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),WE]],{ignore:["link","linkReference"]})}function KE(e,t,r,i,a){let n="";if(!Dp(a)||(/^w/i.test(t)&&(r=t+r,t="",n="http://"),!GE(r)))return!1;const o=JE(r+i);if(!o[0])return!1;const s={type:"link",title:null,url:n+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function WE(e,t,r,i){return!Dp(i,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function GE(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function JE(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],i=r.indexOf(")");const a=Fp(e,"(");let n=Fp(e,")");for(;i!==-1&&a>n;)e+=r.slice(0,i+1),r=r.slice(i+1),i=r.indexOf(")"),n++;return[e,r]}function Dp(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Gn(r)||Po(r))&&(!t||r!==47)}Mp.peek=iA;function YE(){this.buffer()}function XE(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ZE(){this.buffer()}function QE(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function eA(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=wr(this.sliceSerialize(e)).toLowerCase(),r.label=t}function tA(e){this.exit(e)}function rA(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=wr(this.sliceSerialize(e)).toLowerCase(),r.label=t}function nA(e){this.exit(e)}function iA(){return"["}function Mp(e,t,r,i){const a=r.createTracker(i);let n=a.move("[^");const o=r.enter("footnoteReference"),s=r.enter("reference");return n+=a.move(r.safe(r.associationId(e),{after:"]",before:n})),s(),o(),n+=a.move("]"),n}function aA(){return{enter:{gfmFootnoteCallString:YE,gfmFootnoteCall:XE,gfmFootnoteDefinitionLabelString:ZE,gfmFootnoteDefinition:QE},exit:{gfmFootnoteCallString:eA,gfmFootnoteCall:tA,gfmFootnoteDefinitionLabelString:rA,gfmFootnoteDefinition:nA}}}function oA(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:Mp},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(i,a,n,o){const s=n.createTracker(o);let l=s.move("[^");const u=n.enter("footnoteDefinition"),c=n.enter("label");return l+=s.move(n.safe(n.associationId(i),{before:l,after:"]"})),c(),l+=s.move("]:"),i.children&&i.children.length>0&&(s.shift(4),l+=s.move((t?`
|
|
34
|
+
`:" ")+n.indentLines(n.containerFlow(i,s.current()),t?jp:sA))),u(),l}}function sA(e,t,r){return t===0?e:jp(e,t,r)}function jp(e,t,r){return(r?"":" ")+e}const lA=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Lp.peek=mA;function uA(){return{canContainEols:["delete"],enter:{strikethrough:fA},exit:{strikethrough:dA}}}function cA(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:lA}],handlers:{delete:Lp}}}function fA(e){this.enter({type:"delete",children:[]},e)}function dA(e){this.exit(e)}function Lp(e,t,r,i){const a=r.createTracker(i),n=r.enter("strikethrough");let o=a.move("~~");return o+=r.containerPhrasing(e,{...a.current(),before:o,after:"~"}),o+=a.move("~~"),n(),o}function mA(){return"~"}function pA(e){return e.length}function hA(e,t){const r=t||{},i=(r.align||[]).concat(),a=r.stringLength||pA,n=[],o=[],s=[],l=[];let u=0,c=-1;for(;++c<e.length;){const k=[],v=[];let g=-1;for(e[c].length>u&&(u=e[c].length);++g<e[c].length;){const b=gA(e[c][g]);if(r.alignDelimiters!==!1){const w=a(b);v[g]=w,(l[g]===void 0||w>l[g])&&(l[g]=w)}k.push(b)}o[c]=k,s[c]=v}let f=-1;if(typeof i=="object"&&"length"in i)for(;++f<u;)n[f]=qp(i[f]);else{const k=qp(i);for(;++f<u;)n[f]=k}f=-1;const m=[],d=[];for(;++f<u;){const k=n[f];let v="",g="";k===99?(v=":",g=":"):k===108?v=":":k===114&&(g=":");let b=r.alignDelimiters===!1?1:Math.max(1,l[f]-v.length-g.length);const w=v+"-".repeat(b)+g;r.alignDelimiters!==!1&&(b=v.length+b+g.length,b>l[f]&&(l[f]=b),d[f]=b),m[f]=w}o.splice(1,0,m),s.splice(1,0,d),c=-1;const p=[];for(;++c<o.length;){const k=o[c],v=s[c];f=-1;const g=[];for(;++f<u;){const b=k[f]||"";let w="",E="";if(r.alignDelimiters!==!1){const h=l[f]-(v[f]||0),y=n[f];y===114?w=" ".repeat(h):y===99?h%2?(w=" ".repeat(h/2+.5),E=" ".repeat(h/2-.5)):(w=" ".repeat(h/2),E=w):E=" ".repeat(h)}r.delimiterStart!==!1&&!f&&g.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&b==="")&&(r.delimiterStart!==!1||f)&&g.push(" "),r.alignDelimiters!==!1&&g.push(w),g.push(b),r.alignDelimiters!==!1&&g.push(E),r.padding!==!1&&g.push(" "),(r.delimiterEnd!==!1||f!==u-1)&&g.push("|")}p.push(r.delimiterEnd===!1?g.join("").replace(/ +$/,""):g.join(""))}return p.join(`
|
|
35
|
+
`)}function gA(e){return e==null?"":String(e)}function qp(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function yA(e,t,r,i){const a=r.enter("blockquote"),n=r.createTracker(i);n.move("> "),n.shift(2);const o=r.indentLines(r.containerFlow(e,n.current()),vA);return a(),o}function vA(e,t,r){return">"+(r?"":" ")+e}function bA(e,t){return Rp(e,t.inConstruct,!0)&&!Rp(e,t.notInConstruct,!1)}function Rp(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function zp(e,t,r,i){let a=-1;for(;++a<r.unsafe.length;)if(r.unsafe[a].character===`
|
|
36
|
+
`&&bA(r.stack,r.unsafe[a]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
37
|
+
`}function kA(e,t){const r=String(e);let i=r.indexOf(t),a=i,n=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===a?++n>o&&(o=n):n=1,a=i+t.length,i=r.indexOf(t,a);return o}function wA(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function SA(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function CA(e,t,r,i){const a=SA(r),n=e.value||"",o=a==="`"?"GraveAccent":"Tilde";if(wA(e,r)){const f=r.enter("codeIndented"),m=r.indentLines(n,EA);return f(),m}const s=r.createTracker(i),l=a.repeat(Math.max(kA(n,a)+1,3)),u=r.enter("codeFenced");let c=s.move(l);if(e.lang){const f=r.enter(`codeFencedLang${o}`);c+=s.move(r.safe(e.lang,{before:c,after:" ",encode:["`"],...s.current()})),f()}if(e.lang&&e.meta){const f=r.enter(`codeFencedMeta${o}`);c+=s.move(" "),c+=s.move(r.safe(e.meta,{before:c,after:`
|
|
38
|
+
`,encode:["`"],...s.current()})),f()}return c+=s.move(`
|
|
39
|
+
`),n&&(c+=s.move(n+`
|
|
40
|
+
`)),c+=s.move(l),u(),c}function EA(e,t,r){return(r?"":" ")+e}function qu(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function AA(e,t,r,i){const a=qu(r),n=a==='"'?"Quote":"Apostrophe",o=r.enter("definition");let s=r.enter("label");const l=r.createTracker(i);let u=l.move("[");return u+=l.move(r.safe(r.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":`
|
|
41
|
+
`,...l.current()}))),s(),e.title&&(s=r.enter(`title${n}`),u+=l.move(" "+a),u+=l.move(r.safe(e.title,{before:u,after:a,...l.current()})),u+=l.move(a),s()),o(),u}function xA(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Oa(e){return"&#x"+e.toString(16).toUpperCase()+";"}function zo(e,t,r){const i=Ii(e),a=Ii(t);return i===void 0?a===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}$p.peek=OA;function $p(e,t,r,i){const a=xA(r),n=r.enter("emphasis"),o=r.createTracker(i),s=o.move(a);let l=o.move(r.containerPhrasing(e,{after:a,before:s,...o.current()}));const u=l.charCodeAt(0),c=zo(i.before.charCodeAt(i.before.length-1),u,a);c.inside&&(l=Oa(u)+l.slice(1));const f=l.charCodeAt(l.length-1),m=zo(i.after.charCodeAt(0),f,a);m.inside&&(l=l.slice(0,-1)+Oa(f));const d=o.move(a);return n(),r.attentionEncodeSurroundingInfo={after:m.outside,before:c.outside},s+l+d}function OA(e,t,r){return r.options.emphasis||"*"}function _A(e,t){let r=!1;return Su(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return r=!0,wu}),!!((!e.depth||e.depth<3)&&cu(e)&&(t.options.setext||r))}function PA(e,t,r,i){const a=Math.max(Math.min(6,e.depth||1),1),n=r.createTracker(i);if(_A(e,r)){const c=r.enter("headingSetext"),f=r.enter("phrasing"),m=r.containerPhrasing(e,{...n.current(),before:`
|
|
42
|
+
`,after:`
|
|
43
|
+
`});return f(),c(),m+`
|
|
44
|
+
`+(a===1?"=":"-").repeat(m.length-(Math.max(m.lastIndexOf("\r"),m.lastIndexOf(`
|
|
45
|
+
`))+1))}const o="#".repeat(a),s=r.enter("headingAtx"),l=r.enter("phrasing");n.move(o+" ");let u=r.containerPhrasing(e,{before:"# ",after:`
|
|
46
|
+
`,...n.current()});return/^[\t ]/.test(u)&&(u=Oa(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,r.options.closeAtx&&(u+=" "+o),l(),s(),u}Up.peek=IA;function Up(e){return e.value||""}function IA(){return"<"}Bp.peek=TA;function Bp(e,t,r,i){const a=qu(r),n=a==='"'?"Quote":"Apostrophe",o=r.enter("image");let s=r.enter("label");const l=r.createTracker(i);let u=l.move("![");return u+=l.move(r.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=r.enter(`title${n}`),u+=l.move(" "+a),u+=l.move(r.safe(e.title,{before:u,after:a,...l.current()})),u+=l.move(a),s()),u+=l.move(")"),o(),u}function TA(){return"!"}Vp.peek=NA;function Vp(e,t,r,i){const a=e.referenceType,n=r.enter("imageReference");let o=r.enter("label");const s=r.createTracker(i);let l=s.move("![");const u=r.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),o();const c=r.stack;r.stack=[],o=r.enter("reference");const f=r.safe(r.associationId(e),{before:l,after:"]",...s.current()});return o(),r.stack=c,n(),a==="full"||!u||u!==f?l+=s.move(f+"]"):a==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function NA(){return"!"}Hp.peek=FA;function Hp(e,t,r){let i=e.value||"",a="`",n=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(i);)a+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++n<r.unsafe.length;){const o=r.unsafe[n],s=r.compilePattern(o);let l;if(o.atBreak)for(;l=s.exec(i);){let u=l.index;i.charCodeAt(u)===10&&i.charCodeAt(u-1)===13&&u--,i=i.slice(0,u)+" "+i.slice(l.index+1)}}return a+i+a}function FA(){return"`"}function Kp(e,t){const r=cu(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Wp.peek=DA;function Wp(e,t,r,i){const a=qu(r),n=a==='"'?"Quote":"Apostrophe",o=r.createTracker(i);let s,l;if(Kp(e,r)){const c=r.stack;r.stack=[],s=r.enter("autolink");let f=o.move("<");return f+=o.move(r.containerPhrasing(e,{before:f,after:">",...o.current()})),f+=o.move(">"),s(),r.stack=c,f}s=r.enter("link"),l=r.enter("label");let u=o.move("[");return u+=o.move(r.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(r.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(l=r.enter("destinationRaw"),u+=o.move(r.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=r.enter(`title${n}`),u+=o.move(" "+a),u+=o.move(r.safe(e.title,{before:u,after:a,...o.current()})),u+=o.move(a),l()),u+=o.move(")"),s(),u}function DA(e,t,r){return Kp(e,r)?"<":"["}Gp.peek=MA;function Gp(e,t,r,i){const a=e.referenceType,n=r.enter("linkReference");let o=r.enter("label");const s=r.createTracker(i);let l=s.move("[");const u=r.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),o();const c=r.stack;r.stack=[],o=r.enter("reference");const f=r.safe(r.associationId(e),{before:l,after:"]",...s.current()});return o(),r.stack=c,n(),a==="full"||!u||u!==f?l+=s.move(f+"]"):a==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function MA(){return"["}function Ru(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function jA(e){const t=Ru(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function LA(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Jp(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function qA(e,t,r,i){const a=r.enter("list"),n=r.bulletCurrent;let o=e.ordered?LA(r):Ru(r);const s=e.ordered?o==="."?")":".":jA(r);let l=t&&r.bulletLastUsed?o===r.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&c&&(!c.children||!c.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(l=!0),Jp(r)===o&&c){let f=-1;for(;++f<e.children.length;){const m=e.children[f];if(m&&m.type==="listItem"&&m.children&&m.children[0]&&m.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(o=s),r.bulletCurrent=o;const u=r.containerFlow(e,i);return r.bulletLastUsed=o,r.bulletCurrent=n,a(),u}function RA(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function zA(e,t,r,i){const a=RA(r);let n=r.bulletCurrent||Ru(r);t&&t.type==="list"&&t.ordered&&(n=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+n);let o=n.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=r.createTracker(i);s.move(n+" ".repeat(o-n.length)),s.shift(o);const l=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,s.current()),c);return l(),u;function c(f,m,d){return m?(d?"":" ".repeat(o))+f:(d?n:n+" ".repeat(o-n.length))+f}}function $A(e,t,r,i){const a=r.enter("paragraph"),n=r.enter("phrasing"),o=r.containerPhrasing(e,i);return n(),a(),o}const UA=Lo(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function BA(e,t,r,i){return(e.children.some(function(o){return UA(o)})?r.containerPhrasing:r.containerFlow).call(r,e,i)}function VA(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Yp.peek=HA;function Yp(e,t,r,i){const a=VA(r),n=r.enter("strong"),o=r.createTracker(i),s=o.move(a+a);let l=o.move(r.containerPhrasing(e,{after:a,before:s,...o.current()}));const u=l.charCodeAt(0),c=zo(i.before.charCodeAt(i.before.length-1),u,a);c.inside&&(l=Oa(u)+l.slice(1));const f=l.charCodeAt(l.length-1),m=zo(i.after.charCodeAt(0),f,a);m.inside&&(l=l.slice(0,-1)+Oa(f));const d=o.move(a+a);return n(),r.attentionEncodeSurroundingInfo={after:m.outside,before:c.outside},s+l+d}function HA(e,t,r){return r.options.strong||"*"}function KA(e,t,r,i){return r.safe(e.value,i)}function WA(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function GA(e,t,r){const i=(Jp(r)+(r.options.ruleSpaces?" ":"")).repeat(WA(r));return r.options.ruleSpaces?i.slice(0,-1):i}const Xp={blockquote:yA,break:zp,code:CA,definition:AA,emphasis:$p,hardBreak:zp,heading:PA,html:Up,image:Bp,imageReference:Vp,inlineCode:Hp,link:Wp,linkReference:Gp,list:qA,listItem:zA,paragraph:$A,root:BA,strong:Yp,text:KA,thematicBreak:GA};function JA(){return{enter:{table:YA,tableData:Zp,tableHeader:Zp,tableRow:ZA},exit:{codeText:QA,table:XA,tableData:zu,tableHeader:zu,tableRow:zu}}}function YA(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function XA(e){this.exit(e),this.data.inTable=void 0}function ZA(e){this.enter({type:"tableRow",children:[]},e)}function zu(e){this.exit(e)}function Zp(e){this.enter({type:"tableCell",children:[]},e)}function QA(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,ex));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function ex(e,t){return t==="|"?t:e}function tx(e){const t=e||{},r=t.tableCellPadding,i=t.tablePipeAlign,a=t.stringLength,n=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
47
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:m,table:o,tableCell:l,tableRow:s}};function o(d,p,k,v){return u(c(d,k,v),d.align)}function s(d,p,k,v){const g=f(d,k,v),b=u([g]);return b.slice(0,b.indexOf(`
|
|
48
|
+
`))}function l(d,p,k,v){const g=k.enter("tableCell"),b=k.enter("phrasing"),w=k.containerPhrasing(d,{...v,before:n,after:n});return b(),g(),w}function u(d,p){return hA(d,{align:p,alignDelimiters:i,padding:r,stringLength:a})}function c(d,p,k){const v=d.children;let g=-1;const b=[],w=p.enter("table");for(;++g<v.length;)b[g]=f(v[g],p,k);return w(),b}function f(d,p,k){const v=d.children;let g=-1;const b=[],w=p.enter("tableRow");for(;++g<v.length;)b[g]=l(v[g],d,p,k);return w(),b}function m(d,p,k){let v=Xp.inlineCode(d,p,k);return k.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function rx(){return{exit:{taskListCheckValueChecked:Qp,taskListCheckValueUnchecked:Qp,paragraph:ix}}}function nx(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ax}}}function Qp(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function ix(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const i=r.children[0];if(i&&i.type==="text"){const a=t.children;let n=-1,o;for(;++n<a.length;){const s=a[n];if(s.type==="paragraph"){o=s;break}}o===r&&(i.value=i.value.slice(1),i.value.length===0?r.children.shift():r.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,r.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function ax(e,t,r,i){const a=e.children[0],n=typeof e.checked=="boolean"&&a&&a.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",s=r.createTracker(i);n&&s.move(o);let l=Xp.listItem(e,t,r,{...i,...s.current()});return n&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+o}}function ox(){return[qE(),aA(),uA(),JA(),rx()]}function sx(e){return{extensions:[RE(),oA(e),cA(),tx(e),nx()]}}const lx={tokenize:px,partial:!0},eh={tokenize:hx,partial:!0},th={tokenize:gx,partial:!0},rh={tokenize:yx,partial:!0},ux={tokenize:vx,partial:!0},nh={name:"wwwAutolink",tokenize:dx,previous:ah},ih={name:"protocolAutolink",tokenize:mx,previous:oh},Qr={name:"emailAutolink",tokenize:fx,previous:sh},Rr={};function cx(){return{text:Rr}}let Jn=48;for(;Jn<123;)Rr[Jn]=Qr,Jn++,Jn===58?Jn=65:Jn===91&&(Jn=97);Rr[43]=Qr,Rr[45]=Qr,Rr[46]=Qr,Rr[95]=Qr,Rr[72]=[Qr,ih],Rr[104]=[Qr,ih],Rr[87]=[Qr,nh],Rr[119]=[Qr,nh];function fx(e,t,r){const i=this;let a,n;return o;function o(f){return!$u(f)||!sh.call(i,i.previous)||Uu(i.events)?r(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(f))}function s(f){return $u(f)?(e.consume(f),s):f===64?(e.consume(f),l):r(f)}function l(f){return f===46?e.check(ux,c,u)(f):f===45||f===95||qt(f)?(n=!0,e.consume(f),l):c(f)}function u(f){return e.consume(f),a=!0,l}function c(f){return n&&a&&Ut(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):r(f)}}function dx(e,t,r){const i=this;return a;function a(o){return o!==87&&o!==119||!ah.call(i,i.previous)||Uu(i.events)?r(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(lx,e.attempt(eh,e.attempt(th,n),r),r)(o))}function n(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function mx(e,t,r){const i=this;let a="",n=!1;return o;function o(f){return(f===72||f===104)&&oh.call(i,i.previous)&&!Uu(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(f),e.consume(f),s):r(f)}function s(f){if(Ut(f)&&a.length<5)return a+=String.fromCodePoint(f),e.consume(f),s;if(f===58){const m=a.toLowerCase();if(m==="http"||m==="https")return e.consume(f),l}return r(f)}function l(f){return f===47?(e.consume(f),n?u:(n=!0,l)):r(f)}function u(f){return f===null||_o(f)||dt(f)||Gn(f)||Po(f)?r(f):e.attempt(eh,e.attempt(th,c),r)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function px(e,t,r){let i=0;return a;function a(o){return(o===87||o===119)&&i<3?(i++,e.consume(o),a):o===46&&i===3?(e.consume(o),n):r(o)}function n(o){return o===null?r(o):t(o)}}function hx(e,t,r){let i,a,n;return o;function o(u){return u===46||u===95?e.check(rh,l,s)(u):u===null||dt(u)||Gn(u)||u!==45&&Po(u)?l(u):(n=!0,e.consume(u),o)}function s(u){return u===95?i=!0:(a=i,i=void 0),e.consume(u),o}function l(u){return a||i||!n?r(u):t(u)}}function gx(e,t){let r=0,i=0;return a;function a(o){return o===40?(r++,e.consume(o),a):o===41&&i<r?n(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(rh,t,n)(o):o===null||dt(o)||Gn(o)?t(o):(e.consume(o),a)}function n(o){return o===41&&i++,e.consume(o),a}}function yx(e,t,r){return i;function i(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),i):s===38?(e.consume(s),n):s===93?(e.consume(s),a):s===60||s===null||dt(s)||Gn(s)?t(s):r(s)}function a(s){return s===null||s===40||s===91||dt(s)||Gn(s)?t(s):i(s)}function n(s){return Ut(s)?o(s):r(s)}function o(s){return s===59?(e.consume(s),i):Ut(s)?(e.consume(s),o):r(s)}}function vx(e,t,r){return i;function i(n){return e.consume(n),a}function a(n){return qt(n)?r(n):t(n)}}function ah(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||dt(e)}function oh(e){return!Ut(e)}function sh(e){return!(e===47||$u(e))}function $u(e){return e===43||e===45||e===46||e===95||qt(e)}function Uu(e){let t=e.length,r=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){r=!0;break}if(i._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const bx={tokenize:Ox,partial:!0};function kx(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Ex,continuation:{tokenize:Ax},exit:xx}},text:{91:{name:"gfmFootnoteCall",tokenize:Cx},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:wx,resolveTo:Sx}}}}function wx(e,t,r){const i=this;let a=i.events.length;const n=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o;for(;a--;){const l=i.events[a][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!o||!o._balanced)return r(l);const u=wr(i.sliceSerialize({start:o.end,end:i.now()}));return u.codePointAt(0)!==94||!n.includes(u.slice(1))?r(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function Sx(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const n={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},n.start),end:Object.assign({},n.end)},s=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",a,t],["exit",a,t],["enter",n,t],["enter",o,t],["exit",o,t],["exit",n,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...s),e}function Cx(e,t,r){const i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let n=0,o;return s;function s(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?r(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(n>999||f===93&&!o||f===null||f===91||dt(f))return r(f);if(f===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return a.includes(wr(i.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(f)}return dt(f)||(o=!0),n++,e.consume(f),f===92?c:u}function c(f){return f===91||f===92||f===93?(e.consume(f),n++,u):u(f)}}function Ex(e,t,r){const i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let n,o=0,s;return l;function l(p){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(p){return p===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):r(p)}function c(p){if(o>999||p===93&&!s||p===null||p===91||dt(p))return r(p);if(p===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return n=wr(i.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return dt(p)||(s=!0),o++,e.consume(p),p===92?f:c}function f(p){return p===91||p===92||p===93?(e.consume(p),o++,c):c(p)}function m(p){return p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),a.includes(n)||a.push(n),Be(e,d,"gfmFootnoteDefinitionWhitespace")):r(p)}function d(p){return t(p)}}function Ax(e,t,r){return e.check(wa,t,e.attempt(bx,t,r))}function xx(e){e.exit("gfmFootnoteDefinition")}function Ox(e,t,r){const i=this;return Be(e,a,"gfmFootnoteDefinitionIndent",5);function a(n){const o=i.events[i.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(n):r(n)}}function _x(e){let r=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:n,resolveAll:a};return r==null&&(r=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function a(o,s){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let u=l;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[l][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[l][1].end)},f={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[l][1].start)},m=[["enter",c,s],["enter",o[u][1],s],["exit",o[u][1],s],["enter",f,s]],d=s.parser.constructs.insideSpan.null;d&&tr(m,m.length,0,Io(d,o.slice(u+1,l),s)),tr(m,m.length,0,[["exit",f,s],["enter",o[l][1],s],["exit",o[l][1],s],["exit",c,s]]),tr(o,u-1,l-u+3,m),l=u+m.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function n(o,s,l){const u=this.previous,c=this.events;let f=0;return m;function m(p){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(p):(o.enter("strikethroughSequenceTemporary"),d(p))}function d(p){const k=Ii(u);if(p===126)return f>1?l(p):(o.consume(p),f++,d);if(f<2&&!r)return l(p);const v=o.exit("strikethroughSequenceTemporary"),g=Ii(p);return v._open=!g||g===2&&!!k,v._close=!k||k===2&&!!g,s(p)}}}class Px{constructor(){this.map=[]}add(t,r,i){Ix(this,t,r,i)}consume(t){if(this.map.sort(function(n,o){return n[0]-o[0]}),this.map.length===0)return;let r=this.map.length;const i=[];for(;r>0;)r-=1,i.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];i.push(t.slice()),t.length=0;let a=i.pop();for(;a;){for(const n of a)t.push(n);a=i.pop()}this.map.length=0}}function Ix(e,t,r,i){let a=0;if(!(r===0&&i.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=r,e.map[a][2].push(...i);return}a+=1}e.map.push([t,r,i])}}function Tx(e,t){let r=!1;const i=[];for(;t<e.length;){const a=e[t];if(r){if(a[0]==="enter")a[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const n=i.length-1;i[n]=i[n]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return i}function Nx(){return{flow:{null:{name:"table",tokenize:Fx,resolveAll:Dx}}}}function Fx(e,t,r){const i=this;let a=0,n=0,o;return s;function s(S){let A=i.events.length-1;for(;A>-1;){const T=i.events[A][1].type;if(T==="lineEnding"||T==="linePrefix")A--;else break}const O=A>-1?i.events[A][1].type:null,F=O==="tableHead"||O==="tableRow"?y:l;return F===y&&i.parser.lazy[i.now().line]?r(S):F(S)}function l(S){return e.enter("tableHead"),e.enter("tableRow"),u(S)}function u(S){return S===124||(o=!0,n+=1),c(S)}function c(S){return S===null?r(S):pe(S)?n>1?(n=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),d):r(S):Me(S)?Be(e,c,"whitespace")(S):(n+=1,o&&(o=!1,a+=1),S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),o=!0,c):(e.enter("data"),f(S)))}function f(S){return S===null||S===124||dt(S)?(e.exit("data"),c(S)):(e.consume(S),S===92?m:f)}function m(S){return S===92||S===124?(e.consume(S),f):f(S)}function d(S){return i.interrupt=!1,i.parser.lazy[i.now().line]?r(S):(e.enter("tableDelimiterRow"),o=!1,Me(S)?Be(e,p,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):p(S))}function p(S){return S===45||S===58?v(S):S===124?(o=!0,e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),k):h(S)}function k(S){return Me(S)?Be(e,v,"whitespace")(S):v(S)}function v(S){return S===58?(n+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),g):S===45?(n+=1,g(S)):S===null||pe(S)?E(S):h(S)}function g(S){return S===45?(e.enter("tableDelimiterFiller"),b(S)):h(S)}function b(S){return S===45?(e.consume(S),b):S===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(S))}function w(S){return Me(S)?Be(e,E,"whitespace")(S):E(S)}function E(S){return S===124?p(S):S===null||pe(S)?!o||a!==n?h(S):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(S)):h(S)}function h(S){return r(S)}function y(S){return e.enter("tableRow"),C(S)}function C(S){return S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),C):S===null||pe(S)?(e.exit("tableRow"),t(S)):Me(S)?Be(e,C,"whitespace")(S):(e.enter("data"),x(S))}function x(S){return S===null||S===124||dt(S)?(e.exit("data"),C(S)):(e.consume(S),S===92?_:x)}function _(S){return S===92||S===124?(e.consume(S),x):x(S)}}function Dx(e,t){let r=-1,i=!0,a=0,n=[0,0,0,0],o=[0,0,0,0],s=!1,l=0,u,c,f;const m=new Px;for(;++r<e.length;){const d=e[r],p=d[1];d[0]==="enter"?p.type==="tableHead"?(s=!1,l!==0&&(lh(m,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},m.add(r,0,[["enter",u,t]])):p.type==="tableRow"||p.type==="tableDelimiterRow"?(i=!0,f=void 0,n=[0,0,0,0],o=[0,r+1,0,0],s&&(s=!1,c={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},m.add(r,0,[["enter",c,t]])),a=p.type==="tableDelimiterRow"?2:c?3:1):a&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")?(i=!1,o[2]===0&&(n[1]!==0&&(o[0]=o[1],f=$o(m,t,n,a,void 0,f),n=[0,0,0,0]),o[2]=r)):p.type==="tableCellDivider"&&(i?i=!1:(n[1]!==0&&(o[0]=o[1],f=$o(m,t,n,a,void 0,f)),n=o,o=[n[1],r,0,0])):p.type==="tableHead"?(s=!0,l=r):p.type==="tableRow"||p.type==="tableDelimiterRow"?(l=r,n[1]!==0?(o[0]=o[1],f=$o(m,t,n,a,r,f)):o[1]!==0&&(f=$o(m,t,o,a,r,f)),a=0):a&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")&&(o[3]=r)}for(l!==0&&lh(m,t,l,u,c),m.consume(t.events),r=-1;++r<t.events.length;){const d=t.events[r];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=Tx(t.events,r))}return e}function $o(e,t,r,i,a,n){const o=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",s="tableContent";r[0]!==0&&(n.end=Object.assign({},Ni(t.events,r[0])),e.add(r[0],0,[["exit",n,t]]));const l=Ni(t.events,r[1]);if(n={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(r[1],0,[["enter",n,t]]),r[2]!==0){const u=Ni(t.events,r[2]),c=Ni(t.events,r[3]),f={type:s,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(r[2],0,[["enter",f,t]]),i!==2){const m=t.events[r[2]],d=t.events[r[3]];if(m[1].end=Object.assign({},d[1].end),m[1].type="chunkText",m[1].contentType="text",r[3]>r[2]+1){const p=r[2]+1,k=r[3]-r[2]-1;e.add(p,k,[])}}e.add(r[3]+1,0,[["exit",f,t]])}return a!==void 0&&(n.end=Object.assign({},Ni(t.events,a)),e.add(a,0,[["exit",n,t]]),n=void 0),n}function lh(e,t,r,i,a){const n=[],o=Ni(t.events,r);a&&(a.end=Object.assign({},o),n.push(["exit",a,t])),i.end=Object.assign({},o),n.push(["exit",i,t]),e.add(r+1,0,n)}function Ni(e,t){const r=e[t],i=r[0]==="enter"?"start":"end";return r[1][i]}const Mx={name:"tasklistCheck",tokenize:Lx};function jx(){return{text:{91:Mx}}}function Lx(e,t,r){const i=this;return a;function a(l){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?r(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),n)}function n(l){return dt(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):r(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):r(l)}function s(l){return pe(l)?t(l):Me(l)?e.check({tokenize:qx},t,r)(l):r(l)}}function qx(e,t,r){return Be(e,i,"whitespace");function i(a){return a===null?r(a):t(a)}}function Rx(e){return Bm([cx(),kx(),_x(e),Nx(),jx()])}const zx={};function $x(e){const t=this,r=e||zx,i=t.data(),a=i.micromarkExtensions||(i.micromarkExtensions=[]),n=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),o=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);a.push(Rx(r)),n.push(ox()),o.push(sx(r))}const uh=_E,ch=e=>N.jsx("a",{href:e.href,target:"_blank",rel:"noreferrer",children:e.children});function Sr(e){const t=e.components||{};return t.a||(t.a=ch),N.jsx(uh,{...e,components:t,allowedElements:["a","p","em","img","strong","ul","ol","li"]})}const Ux=["a","p","em","strong","img","ul","ol","li","h1","h2","h3","h4","h5","h6","table","thead","tbody","tr","th","td","code","pre","blockquote","hr","del","br","input"];function Bu(e){const t=e.components||{};return t.a||(t.a=ch),N.jsx(uh,{...e,remarkPlugins:[$x],components:t,allowedElements:Ux})}/*!
|
|
23
49
|
* mustache.js - Logic-less {{mustache}} templates with JavaScript
|
|
24
50
|
* http://github.com/janl/mustache.js
|
|
25
|
-
*/var
|
|
26
|
-
`&&(
|
|
27
|
-
`),o=0;o<n.length;o++)n[o].length&&(o>0||!
|
|
28
|
-
`)},
|
|
51
|
+
*/var Bx=Object.prototype.toString,Fi=Array.isArray||function(t){return Bx.call(t)==="[object Array]"};function Vu(e){return typeof e=="function"}function Vx(e){return Fi(e)?"array":typeof e}function Hu(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function fh(e,t){return e!=null&&typeof e=="object"&&t in e}function Hx(e,t){return e!=null&&typeof e!="object"&&e.hasOwnProperty&&e.hasOwnProperty(t)}var Kx=RegExp.prototype.test;function Wx(e,t){return Kx.call(e,t)}var Gx=/\S/;function Jx(e){return!Wx(Gx,e)}var Yx={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function Xx(e){return String(e).replace(/[&<>"'`=\/]/g,function(r){return Yx[r]})}var Zx=/\s*/,Qx=/\s+/,dh=/\s*=/,eO=/\s*\}/,tO=/#|\^|\/|>|\{|&|=|!/;function rO(e,t){if(!e)return[];var r=!1,i=[],a=[],n=[],o=!1,s=!1,l="",u=0;function c(){if(o&&!s)for(;n.length;)delete a[n.pop()];else n=[];o=!1,s=!1}var f,m,d;function p(x){if(typeof x=="string"&&(x=x.split(Qx,2)),!Fi(x)||x.length!==2)throw new Error("Invalid tags: "+x);f=new RegExp(Hu(x[0])+"\\s*"),m=new RegExp("\\s*"+Hu(x[1])),d=new RegExp("\\s*"+Hu("}"+x[1]))}p(t||lr.tags);for(var k=new _a(e),v,g,b,w,E,h;!k.eos();){if(v=k.pos,b=k.scanUntil(f),b)for(var y=0,C=b.length;y<C;++y)w=b.charAt(y),Jx(w)?(n.push(a.length),l+=w):(s=!0,r=!0,l+=" "),a.push(["text",w,v,v+1]),v+=1,w===`
|
|
52
|
+
`&&(c(),l="",u=0,r=!1);if(!k.scan(f))break;if(o=!0,g=k.scan(tO)||"name",k.scan(Zx),g==="="?(b=k.scanUntil(dh),k.scan(dh),k.scanUntil(m)):g==="{"?(b=k.scanUntil(d),k.scan(eO),k.scanUntil(m),g="&"):b=k.scanUntil(m),!k.scan(m))throw new Error("Unclosed tag at "+k.pos);if(g==">"?E=[g,b,v,k.pos,l,u,r]:E=[g,b,v,k.pos],u++,a.push(E),g==="#"||g==="^")i.push(E);else if(g==="/"){if(h=i.pop(),!h)throw new Error('Unopened section "'+b+'" at '+v);if(h[1]!==b)throw new Error('Unclosed section "'+h[1]+'" at '+v)}else g==="name"||g==="{"||g==="&"?s=!0:g==="="&&p(b)}if(c(),h=i.pop(),h)throw new Error('Unclosed section "'+h[1]+'" at '+k.pos);return iO(nO(a))}function nO(e){for(var t=[],r,i,a=0,n=e.length;a<n;++a)r=e[a],r&&(r[0]==="text"&&i&&i[0]==="text"?(i[1]+=r[1],i[3]=r[3]):(t.push(r),i=r));return t}function iO(e){for(var t=[],r=t,i=[],a,n,o=0,s=e.length;o<s;++o)switch(a=e[o],a[0]){case"#":case"^":r.push(a),i.push(a),r=a[4]=[];break;case"/":n=i.pop(),n[5]=a[2],r=i.length>0?i[i.length-1][4]:t;break;default:r.push(a)}return t}function _a(e){this.string=e,this.tail=e,this.pos=0}_a.prototype.eos=function(){return this.tail===""},_a.prototype.scan=function(t){var r=this.tail.match(t);if(!r||r.index!==0)return"";var i=r[0];return this.tail=this.tail.substring(i.length),this.pos+=i.length,i},_a.prototype.scanUntil=function(t){var r=this.tail.search(t),i;switch(r){case-1:i=this.tail,this.tail="";break;case 0:i="";break;default:i=this.tail.substring(0,r),this.tail=this.tail.substring(r)}return this.pos+=i.length,i};function Di(e,t){this.view=e,this.cache={".":this.view},this.parent=t}Di.prototype.push=function(t){return new Di(t,this)},Di.prototype.lookup=function(t){var r=this.cache,i;if(r.hasOwnProperty(t))i=r[t];else{for(var a=this,n,o,s,l=!1;a;){if(t.indexOf(".")>0)for(n=a.view,o=t.split("."),s=0;n!=null&&s<o.length;)s===o.length-1&&(l=fh(n,o[s])||Hx(n,o[s])),n=n[o[s++]];else n=a.view[t],l=fh(a.view,t);if(l){i=n;break}a=a.parent}r[t]=i}return Vu(i)&&(i=i.call(this.view)),i};function Bt(){this.templateCache={_cache:{},set:function(t,r){this._cache[t]=r},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}Bt.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()},Bt.prototype.parse=function(t,r){var i=this.templateCache,a=t+":"+(r||lr.tags).join(":"),n=typeof i<"u",o=n?i.get(a):void 0;return o==null&&(o=rO(t,r),n&&i.set(a,o)),o},Bt.prototype.render=function(t,r,i,a){var n=this.getConfigTags(a),o=this.parse(t,n),s=r instanceof Di?r:new Di(r,void 0);return this.renderTokens(o,s,i,t,a)},Bt.prototype.renderTokens=function(t,r,i,a,n){for(var o="",s,l,u,c=0,f=t.length;c<f;++c)u=void 0,s=t[c],l=s[0],l==="#"?u=this.renderSection(s,r,i,a,n):l==="^"?u=this.renderInverted(s,r,i,a,n):l===">"?u=this.renderPartial(s,r,i,n):l==="&"?u=this.unescapedValue(s,r):l==="name"?u=this.escapedValue(s,r,n):l==="text"&&(u=this.rawValue(s)),u!==void 0&&(o+=u);return o},Bt.prototype.renderSection=function(t,r,i,a,n){var o=this,s="",l=r.lookup(t[1]);function u(m){return o.render(m,r,i,n)}if(l){if(Fi(l))for(var c=0,f=l.length;c<f;++c)s+=this.renderTokens(t[4],r.push(l[c]),i,a,n);else if(typeof l=="object"||typeof l=="string"||typeof l=="number")s+=this.renderTokens(t[4],r.push(l),i,a,n);else if(Vu(l)){if(typeof a!="string")throw new Error("Cannot use higher-order sections without the original template");l=l.call(r.view,a.slice(t[3],t[5]),u),l!=null&&(s+=l)}else s+=this.renderTokens(t[4],r,i,a,n);return s}},Bt.prototype.renderInverted=function(t,r,i,a,n){var o=r.lookup(t[1]);if(!o||Fi(o)&&o.length===0)return this.renderTokens(t[4],r,i,a,n)},Bt.prototype.indentPartial=function(t,r,i){for(var a=r.replace(/[^ \t]/g,""),n=t.split(`
|
|
53
|
+
`),o=0;o<n.length;o++)n[o].length&&(o>0||!i)&&(n[o]=a+n[o]);return n.join(`
|
|
54
|
+
`)},Bt.prototype.renderPartial=function(t,r,i,a){if(i){var n=this.getConfigTags(a),o=Vu(i)?i(t[1]):i[t[1]];if(o!=null){var s=t[6],l=t[5],u=t[4],c=o;l==0&&u&&(c=this.indentPartial(o,u,s));var f=this.parse(c,n);return this.renderTokens(f,r,i,c,a)}}},Bt.prototype.unescapedValue=function(t,r){var i=r.lookup(t[1]);if(i!=null)return i},Bt.prototype.escapedValue=function(t,r,i){var a=this.getConfigEscape(i)||lr.escape,n=r.lookup(t[1]);if(n!=null)return typeof n=="number"&&a===lr.escape?String(n):a(n)},Bt.prototype.rawValue=function(t){return t[1]},Bt.prototype.getConfigTags=function(t){return Fi(t)?t:t&&typeof t=="object"?t.tags:void 0},Bt.prototype.getConfigEscape=function(t){if(t&&typeof t=="object"&&!Fi(t))return t.escape};var lr={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){Pa.templateCache=e},get templateCache(){return Pa.templateCache}},Pa=new Bt;lr.clearCache=function(){return Pa.clearCache()},lr.parse=function(t,r){return Pa.parse(t,r)},lr.render=function(t,r,i,a){if(typeof t!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+Vx(t)+'" was given as the first argument for mustache#render(template, view, partials)');return Pa.render(t,r,i,a)},lr.escape=Xx,lr.Scanner=_a,lr.Context=Di,lr.Writer=Bt;const Ku=e=>e&&typeof e=="object"&&!Array.isArray(e),Wu=(e,...t)=>{if(!t.length)return e;const r=t.shift();if(Ku(e)&&Ku(r))for(const i in r)Ku(r[i])?(e[i]||Object.assign(e,{[i]:{}}),Wu(e[i],r[i])):Object.assign(e,{[i]:r[i]});return Wu(e,...t)},aO=(e,t)=>{const r=t.type||"string",i=e["ui:classNames"]||"",a=e["ui:widget"]||"default",n=e["ui:field"]||"default";return`${i} fcode-type-${r} fcode-widget-${a} fcode-field-${n}`.trim()},oO=([e,t],r,i)=>{const{ui:a,uiSchema:n,["ui:schema"]:o}=t;return{...r===0&&i.focusOnFirst&&{"ui:autofocus":!0},...i.isSensitive&&{"ui:widget":"password"},...o,...n,...a,...t.properties&&{...Uo(t.properties,i.globalUiSchema)},...t.oneOf&&Wu({},...t.oneOf.map(s=>Uo(s.properties,i.globalUiSchema))),...i.globalUiSchema[e]}},Uo=(e,t,r=!1)=>Object.entries(e??{}).reduce((i,[a,n],o)=>{const s=oO([a,n],o,{focusOnFirst:r,isSensitive:n.isSensitive,globalUiSchema:t});return{...i,[a]:{...s,"ui:classNames":aO(s,n)}}},{}),Gu=(e,t)=>{if(typeof e!="object")return e;const r={};for(const i in e)if(e.hasOwnProperty(i)&&!t.includes(i)){const a=e[i];typeof a=="object"?Array.isArray(a)?r[i]=a.map(n=>Gu(n,t)):r[i]=Gu(a,t):r[i]=a}return r},sO=e=>{const{embedFormOptions:t,ui:r,uiSchema:i,...a}=e;return Gu(a,["ui","isSensitive","isTransient"])},lO=e=>{const t={...e.schema.ui,...e.schema.uiSchema};let r={};if(e.schema.dependencies){const i=Uo(e.schema.dependencies,t);for(const a in i){const n=i[a];delete n["ui:classNames"],r={...r,...n}}}return{...t,...r,...Uo(e.schema.properties,t)}},mh=e=>(Object.entries(e).forEach(([t,r])=>{r&&typeof r=="object"&&mh(r),r&&typeof r=="object"&&!Object.keys(r).length&&delete e[t]}),e),uO=(e,t)=>{let r=!1;const i=JSON.stringify(e).replace(/{\s*"\$ref"\s*:\s*"#\/variables\/(.+?)"\s*}/gm,(a,n)=>t[n]?JSON.stringify(t[n]):(r=!0,"{}"));return r?JSON.stringify(mh(JSON.parse(i))):i},cO=(e,t)=>{const r=(t==null?void 0:t.variables)??{};return JSON.parse(lr.render(uO(e,r),r))};function ph(e){const t=cO(e,e.schema.embedFormOptions);return{schema:sO(t.schema),uiSchema:lO(t),embedFormOptions:{...t.schema.embedFormOptions}}}var Ju={exports:{}};/*!
|
|
29
55
|
Copyright (c) 2018 Jed Watson.
|
|
30
56
|
Licensed under the MIT License (MIT), see
|
|
31
57
|
http://jedwatson.github.io/classnames
|
|
32
|
-
*/var Sm;function Vw(){return Sm||(Sm=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(n=i(n,a(s)))}return n}function a(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return"";if(Array.isArray(n))return r.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var s in n)t.call(n,s)&&n[s]&&(o=i(o,s));return o}function i(n,o){return o?n?n+" "+o:n+o:n}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(eu)),eu.exports}var Hw=Vw();const hi=gn(Hw);function _e(e){return typeof e!="object"||e===null||typeof e.lastModified=="number"&&typeof File<"u"&&e instanceof File||typeof e.getMonth=="function"&&typeof Date<"u"&&e instanceof Date?!1:!Array.isArray(e)}function Ww(e){return e.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),_e(e.additionalItems)}function Em(e){var t;const r=typeof navigator<"u"?navigator.languages:void 0;if(r)try{return((t=new Intl.NumberFormat(r).formatToParts(1.1).find(n=>n.type==="decimal"))===null||t===void 0?void 0:t.value)||"."}catch{}return"."}function Cm(e){if(e==="")return;if(e===null)return null;const t=Em(),r=typeof e=="string"&&t!=="."?e.replace(t,"."):e;if(/\.$/.test(r)||/\.0$/.test(r)||/\.\d*0$/.test(r))return e;const a=Number(r);return typeof a=="number"&&!Number.isNaN(a)?a:e}const Xn=Symbol("__additional_property"),gi="additionalProperties",vn="allOf",Ve="anyOf",cr="const",Na="default",tu="dependencies",Kw="enum",er="__errors",dt="$id",ru="if",yi="items",Gw="_$junk_option_schema_id$_",ks="$name",Fe="oneOf",nu="patternProperties",Je="properties",au="readonly",Am="required",ws="submitButtonOptions",gt="$ref",Ss=Symbol("__rjsf_ref"),iu=Symbol("__rjsf_ref_cycle"),so="$schema",_m="root",Om="_",Jw=["discriminator","propertyName"],xm="formContext",Yw="layoutGridLookupMap",Tm="__rjsf",ou=`${Tm}_additionalProperties`,Pm=`${Tm}_rootSchema`,Xw="ui:field",su="ui:widget",Zn="ui:options",lu="ui:globalOptions",Zw="ui:definitions",Qw="https://json-schema.org/draft/2019-09/schema",Es="https://json-schema.org/draft/2020-12/schema";function be(e={},t={}){return e?Object.keys(e).filter(r=>r.startsWith("ui:")).reduce((r,a)=>{const i=e[a];return a===su&&_e(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):a===Zn&&_e(i)?{...r,...i}:{...r,[a.substring(3)]:i}},{...t}):{...t}}function Im(e,t={},r){if(!(e.additionalProperties||e.patternProperties))return!1;const{expandable:a=!0}=be(t);return a===!1?a:e.maxProperties!==void 0&&r?Object.keys(r).length<e.maxProperties:!0}var Nm=typeof global=="object"&&global&&global.Object===Object&&global,eS=typeof self=="object"&&self&&self.Object===Object&&self,bn=Nm||eS||Function("return this")(),jr=bn.Symbol,Dm=Object.prototype,tS=Dm.hasOwnProperty,rS=Dm.toString,lo=jr?jr.toStringTag:void 0;function nS(e){var t=tS.call(e,lo),r=e[lo];try{e[lo]=void 0;var a=!0}catch{}var i=rS.call(e);return a&&(t?e[lo]=r:delete e[lo]),i}var aS=Object.prototype,iS=aS.toString;function oS(e){return iS.call(e)}var sS="[object Null]",lS="[object Undefined]",Fm=jr?jr.toStringTag:void 0;function Mn(e){return e==null?e===void 0?lS:sS:Fm&&Fm in Object(e)?nS(e):oS(e)}function Mm(e,t){return function(r){return e(t(r))}}var Cs=Mm(Object.getPrototypeOf,Object);function Lr(e){return e!=null&&typeof e=="object"}var cS="[object Object]",uS=Function.prototype,fS=Object.prototype,jm=uS.toString,dS=fS.hasOwnProperty,pS=jm.call(Object);function Qn(e){if(!Lr(e)||Mn(e)!=cS)return!1;var t=Cs(e);if(t===null)return!0;var r=dS.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&jm.call(r)==pS}function cu(e){const t={[er]:[],addError(r){this[er].push(r)}};if(Array.isArray(e))return e.reduce((r,a,i)=>({...r,[i]:cu(a)}),t);if(Qn(e)){const r=e;return Object.keys(r).reduce((a,i)=>({...a,[i]:cu(r[i])}),t)}return t}var Bt=Array.isArray,mS="[object Symbol]";function co(e){return typeof e=="symbol"||Lr(e)&&Mn(e)==mS}var hS=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gS=/^\w*$/;function uu(e,t){if(Bt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||co(e)?!0:gS.test(e)||!hS.test(e)||t!=null&&e in Object(t)}function Ye(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var yS="[object AsyncFunction]",vS="[object Function]",bS="[object GeneratorFunction]",kS="[object Proxy]";function uo(e){if(!Ye(e))return!1;var t=Mn(e);return t==vS||t==bS||t==yS||t==kS}var fu=bn["__core-js_shared__"],Lm=(function(){var e=/[^.]+$/.exec(fu&&fu.keys&&fu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function wS(e){return!!Lm&&Lm in e}var SS=Function.prototype,ES=SS.toString;function Da(e){if(e!=null){try{return ES.call(e)}catch{}try{return e+""}catch{}}return""}var CS=/[\\^$.*+?()[\]{}|]/g,AS=/^\[object .+?Constructor\]$/,_S=Function.prototype,OS=Object.prototype,xS=_S.toString,TS=OS.hasOwnProperty,PS=RegExp("^"+xS.call(TS).replace(CS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function IS(e){if(!Ye(e)||wS(e))return!1;var t=uo(e)?PS:AS;return t.test(Da(e))}function NS(e,t){return e==null?void 0:e[t]}function Fa(e,t){var r=NS(e,t);return IS(r)?r:void 0}var fo=Fa(Object,"create");function DS(){this.__data__=fo?fo(null):{},this.size=0}function FS(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var MS="__lodash_hash_undefined__",jS=Object.prototype,LS=jS.hasOwnProperty;function RS(e){var t=this.__data__;if(fo){var r=t[e];return r===MS?void 0:r}return LS.call(t,e)?t[e]:void 0}var qS=Object.prototype,zS=qS.hasOwnProperty;function $S(e){var t=this.__data__;return fo?t[e]!==void 0:zS.call(t,e)}var US="__lodash_hash_undefined__";function BS(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=fo&&t===void 0?US:t,this}function Ma(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Ma.prototype.clear=DS,Ma.prototype.delete=FS,Ma.prototype.get=RS,Ma.prototype.has=$S,Ma.prototype.set=BS;function VS(){this.__data__=[],this.size=0}function po(e,t){return e===t||e!==e&&t!==t}function As(e,t){for(var r=e.length;r--;)if(po(e[r][0],t))return r;return-1}var HS=Array.prototype,WS=HS.splice;function KS(e){var t=this.__data__,r=As(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():WS.call(t,r,1),--this.size,!0}function GS(e){var t=this.__data__,r=As(t,e);return r<0?void 0:t[r][1]}function JS(e){return As(this.__data__,e)>-1}function YS(e,t){var r=this.__data__,a=As(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}function jn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}jn.prototype.clear=VS,jn.prototype.delete=KS,jn.prototype.get=GS,jn.prototype.has=JS,jn.prototype.set=YS;var mo=Fa(bn,"Map");function XS(){this.size=0,this.__data__={hash:new Ma,map:new(mo||jn),string:new Ma}}function ZS(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function _s(e,t){var r=e.__data__;return ZS(t)?r[typeof t=="string"?"string":"hash"]:r.map}function QS(e){var t=_s(this,e).delete(e);return this.size-=t?1:0,t}function eE(e){return _s(this,e).get(e)}function tE(e){return _s(this,e).has(e)}function rE(e,t){var r=_s(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}function Ln(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Ln.prototype.clear=XS,Ln.prototype.delete=QS,Ln.prototype.get=eE,Ln.prototype.has=tE,Ln.prototype.set=rE;var nE="Expected a function";function du(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(nE);var r=function(){var a=arguments,i=t?t.apply(this,a):a[0],n=r.cache;if(n.has(i))return n.get(i);var o=e.apply(this,a);return r.cache=n.set(i,o)||n,o};return r.cache=new(du.Cache||Ln),r}du.Cache=Ln;var aE=500;function iE(e){var t=du(e,function(a){return r.size===aE&&r.clear(),a}),r=t.cache;return t}var oE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sE=/\\(\\)?/g,Rm=iE(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(oE,function(r,a,i,n){t.push(i?n.replace(sE,"$1"):a||r)}),t});function vi(e,t){for(var r=-1,a=e==null?0:e.length,i=Array(a);++r<a;)i[r]=t(e[r],r,e);return i}var qm=jr?jr.prototype:void 0,zm=qm?qm.toString:void 0;function $m(e){if(typeof e=="string")return e;if(Bt(e))return vi(e,$m)+"";if(co(e))return zm?zm.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function pu(e){return e==null?"":$m(e)}function bi(e,t){return Bt(e)?e:uu(e,t)?[e]:Rm(pu(e))}function ea(e){if(typeof e=="string"||co(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Os(e,t){t=bi(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[ea(t[r++])];return r&&r==a?e:void 0}function se(e,t,r){var a=e==null?void 0:Os(e,t);return a===void 0?r:a}const{getOwnPropertyNames:Um,getOwnPropertySymbols:lE}=Object,{hasOwnProperty:cE}=Object.prototype;function mu(e,t){return function(a,i,n){return e(a,i,n)&&t(a,i,n)}}function xs(e){return function(r,a,i){if(!r||!a||typeof r!="object"||typeof a!="object")return e(r,a,i);const{cache:n}=i,o=n.get(r),s=n.get(a);if(o&&s)return o===a&&s===r;n.set(r,a),n.set(a,r);const c=e(r,a,i);return n.delete(r),n.delete(a),c}}function Bm(e){const t=lE(e);return t.length?Um(e).concat(t):Um(e)}const uE=Object.hasOwn||((e,t)=>cE.call(e,t)),fE="__v",dE="__o",pE="_owner",{getOwnPropertyDescriptor:Vm,keys:Hm}=Object,ja=Object.is||function(t,r){return t===r?t!==0||1/t===1/r:t!==t&&r!==r};function mE(e,t){return e===t}function hE(e,t){return e.byteLength===t.byteLength&&Ts(new Uint8Array(e),new Uint8Array(t))}function gE(e,t,r){let a=e.length;if(t.length!==a)return!1;for(;a-- >0;)if(!r.equals(e[a],t[a],a,a,e,t,r))return!1;return!0}function yE(e,t){return e.byteLength===t.byteLength&&Ts(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function vE(e,t){return ja(e.getTime(),t.getTime())}function bE(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Wm(e,t,r){const a=e.size;if(a!==t.size)return!1;if(!a)return!0;const i=new Uint8Array(a),n=e.entries();let o,s,c=0;for(;(o=n.next())&&!o.done;){const l=t.entries();let u=0,f=0;for(;(s=l.next())&&!s.done;){if(i[f]){f++;continue}const p=o.value,d=s.value;if(r.equals(p[0],d[0],c,f,e,t,r)&&r.equals(p[1],d[1],p[0],d[0],e,t,r)){u=i[f]=1;break}f++}if(!u)return!1;c++}return!0}function kE(e,t,r){const a=Hm(e);let i=a.length;if(Hm(t).length!==i)return!1;for(;i-- >0;)if(!Gm(e,t,r,a[i]))return!1;return!0}function ho(e,t,r){const a=Bm(e);let i=a.length;if(Bm(t).length!==i)return!1;let n,o,s;for(;i-- >0;)if(n=a[i],!Gm(e,t,r,n)||(o=Vm(e,n),s=Vm(t,n),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function wE(e,t){return ja(e.valueOf(),t.valueOf())}function SE(e,t){return e.source===t.source&&e.flags===t.flags}function Km(e,t,r){const a=e.size;if(a!==t.size)return!1;if(!a)return!0;const i=new Uint8Array(a),n=e.values();let o,s;for(;(o=n.next())&&!o.done;){const c=t.values();let l=0,u=0;for(;(s=c.next())&&!s.done;){if(!i[u]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){l=i[u]=1;break}u++}if(!l)return!1}return!0}function Ts(e,t){let r=e.length;if(t.length!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function EE(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function Gm(e,t,r,a){return(a===pE||a===dE||a===fE)&&(e.$$typeof||t.$$typeof)?!0:uE(t,a)&&r.equals(e[a],t[a],a,a,e,t,r)}const CE=Object.prototype.toString;function AE(e){const t=TE(e),{areArraysEqual:r,areDatesEqual:a,areFunctionsEqual:i,areMapsEqual:n,areNumbersEqual:o,areObjectsEqual:s,areRegExpsEqual:c,areSetsEqual:l,getUnsupportedCustomComparator:u}=e;return function(p,d,h){if(p===d)return!0;if(p==null||d==null)return!1;const k=typeof p;if(k!==typeof d)return!1;if(k!=="object")return k==="number"||k==="bigint"?o(p,d,h):k==="function"?i(p,d,h):!1;const v=p.constructor;if(v!==d.constructor)return!1;if(v===Object)return s(p,d,h);if(v===Array)return r(p,d,h);if(v===Date)return a(p,d,h);if(v===RegExp)return c(p,d,h);if(v===Map)return n(p,d,h);if(v===Set)return l(p,d,h);if(v===Promise)return!1;if(Array.isArray(p))return r(p,d,h);const y=CE.call(p),b=t[y];if(b)return b(p,d,h);const w=u&&u(p,d,h,y);return w?w(p,d,h):!1}}function _E({circular:e,createCustomConfig:t,strict:r}){let a={areArrayBuffersEqual:hE,areArraysEqual:r?ho:gE,areDataViewsEqual:yE,areDatesEqual:vE,areErrorsEqual:bE,areFunctionsEqual:mE,areMapsEqual:r?mu(Wm,ho):Wm,areNumbersEqual:ja,areObjectsEqual:r?ho:kE,arePrimitiveWrappersEqual:wE,areRegExpsEqual:SE,areSetsEqual:r?mu(Km,ho):Km,areTypedArraysEqual:r?mu(Ts,ho):Ts,areUrlsEqual:EE,getUnsupportedCustomComparator:void 0};if(t&&(a=Object.assign({},a,t(a))),e){const i=xs(a.areArraysEqual),n=xs(a.areMapsEqual),o=xs(a.areObjectsEqual),s=xs(a.areSetsEqual);a=Object.assign({},a,{areArraysEqual:i,areMapsEqual:n,areObjectsEqual:o,areSetsEqual:s})}return a}function OE(e){return function(t,r,a,i,n,o,s){return e(t,r,s)}}function xE({circular:e,comparator:t,createState:r,equals:a,strict:i}){if(r)return function(s,c){const{cache:l=e?new WeakMap:void 0,meta:u}=r();return t(s,c,{cache:l,equals:a,meta:u,strict:i})};if(e)return function(s,c){return t(s,c,{cache:new WeakMap,equals:a,meta:void 0,strict:i})};const n={cache:void 0,equals:a,meta:void 0,strict:i};return function(s,c){return t(s,c,n)}}function TE({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:a,areErrorsEqual:i,areFunctionsEqual:n,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:c,arePrimitiveWrappersEqual:l,areRegExpsEqual:u,areSetsEqual:f,areTypedArraysEqual:p,areUrlsEqual:d}){return{"[object Arguments]":c,"[object Array]":t,"[object ArrayBuffer]":e,"[object AsyncGeneratorFunction]":n,"[object BigInt]":s,"[object BigInt64Array]":p,"[object BigUint64Array]":p,"[object Boolean]":l,"[object DataView]":r,"[object Date]":a,"[object Error]":i,"[object Float16Array]":p,"[object Float32Array]":p,"[object Float64Array]":p,"[object Function]":n,"[object GeneratorFunction]":n,"[object Int8Array]":p,"[object Int16Array]":p,"[object Int32Array]":p,"[object Map]":o,"[object Number]":l,"[object Object]":(h,k,v)=>typeof h.then!="function"&&typeof k.then!="function"&&c(h,k,v),"[object RegExp]":u,"[object Set]":f,"[object String]":l,"[object URL]":d,"[object Uint8Array]":p,"[object Uint8ClampedArray]":p,"[object Uint16Array]":p,"[object Uint32Array]":p}}Rn(),Rn({strict:!0}),Rn({circular:!0}),Rn({circular:!0,strict:!0}),Rn({createInternalComparator:()=>ja}),Rn({strict:!0,createInternalComparator:()=>ja}),Rn({circular:!0,createInternalComparator:()=>ja}),Rn({circular:!0,createInternalComparator:()=>ja,strict:!0});function Rn(e={}){const{circular:t=!1,createInternalComparator:r,createState:a,strict:i=!1}=e,n=_E(e),o=AE(n),s=r?r(o):OE(o);return xE({circular:t,comparator:o,createState:a,equals:s,strict:i})}const Xe=Rn({circular:!0,createCustomConfig:()=>({areFunctionsEqual(e,t){return typeof t=="function"}})});var go={exports:{}},hu,Jm;function Ym(){if(Jm)return hu;Jm=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),r=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),a=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu),n=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/?]$/iu);function o(O){let C="",_=0,F=0;for(F=0;F<O.length;F++)if(_=O[F].charCodeAt(0),_!==48){if(!(_>=48&&_<=57||_>=65&&_<=70||_>=97&&_<=102))return"";C+=O[F];break}for(F+=1;F<O.length;F++){if(_=O[F].charCodeAt(0),!(_>=48&&_<=57||_>=65&&_<=70||_>=97&&_<=102))return"";C+=O[F]}return C}const s=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function c(O){return O.length=0,!0}function l(O,C,_){if(O.length){const F=o(O);if(F!=="")C.push(F);else return _.error=!0,!1;O.length=0}return!0}function u(O){let C=0;const _={error:!1,address:"",zone:""},F=[],I=[];let j=!1,$=!1,Y=l;for(let Z=0;Z<O.length;Z++){const ie=O[Z];if(!(ie==="["||ie==="]"))if(ie===":"){if(j===!0&&($=!0),!Y(I,F,_))break;if(++C>7){_.error=!0;break}Z>0&&O[Z-1]===":"&&(j=!0),F.push(":");continue}else if(ie==="%"){if(!Y(I,F,_))break;Y=c}else{I.push(ie);continue}}return I.length&&(Y===c?_.zone=I.join(""):$?F.push(I.join("")):F.push(o(I))),_.address=F.join(""),_}function f(O){if(p(O,":")<2)return{host:O,isIPV6:!1};const C=u(O);if(C.error)return{host:O,isIPV6:!1};{let _=C.address,F=C.address;return C.zone&&(_+="%"+C.zone,F+="%25"+C.zone),{host:_,isIPV6:!0,escapedHost:F}}}function p(O,C){let _=0;for(let F=0;F<O.length;F++)O[F]===C&&_++;return _}function d(O){let C=O;const _=[];let F=-1,I=0;for(;I=C.length;){if(I===1){if(C===".")break;if(C==="/"){_.push("/");break}else{_.push(C);break}}else if(I===2){if(C[0]==="."){if(C[1]===".")break;if(C[1]==="/"){C=C.slice(2);continue}}else if(C[0]==="/"&&C[1]==="."){_.push("/");break}}else if(I===3&&C==="/.."){_.length!==0&&_.pop(),_.push("/");break}if(C[0]==="."){if(C[1]==="."){if(C[2]==="/"){C=C.slice(3);continue}}else if(C[1]==="/"){C=C.slice(2);continue}}else if(C[0]==="/"&&C[1]==="."){if(C[2]==="/"){C=C.slice(2);continue}else if(C[2]==="."&&C[3]==="/"){C=C.slice(3),_.length!==0&&_.pop();continue}}if((F=C.indexOf("/",1))===-1){_.push(C);break}else _.push(C.slice(0,F)),C=C.slice(F)}return _.join("")}const h={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},k=/[@/?#:]/g,v=/[@/?#]/g;function y(O,C){const _=C?v:k;return _.lastIndex=0,O.replace(_,F=>h[F])}function b(O,C=!1){if(O.indexOf("%")===-1)return O;let _="";for(let F=0;F<O.length;F++){if(O[F]==="%"&&F+2<O.length){const I=O.slice(F+1,F+3);if(r(I)){const j=I.toUpperCase(),$=String.fromCharCode(parseInt(j,16));C&&a($)?_+=$:_+="%"+j,F+=2;continue}}_+=O[F]}return _}const w=new Array(256);{const O="0123456789ABCDEF";for(let C=0;C<256;C++)w[C]="%"+O[C>>4]+O[C&15]}function E(O){return O>=48&&O<=57||O>=65&&O<=90||O>=97&&O<=122||O===42||O===43||O===45||O===46||O===47||O===64||O===95}function m(O){return O<2048?w[192|O>>6]+w[128|O&63]:O<65536?w[224|O>>12]+w[128|O>>6&63]+w[128|O&63]:w[240|O>>18]+w[128|O>>12&63]+w[128|O>>6&63]+w[128|O&63]}function g(O){let C="";for(let _=0;_<O.length;_++){const F=O[_];if(F==="%"&&_+2<O.length){const I=O.slice(_+1,_+3);if(r(I)){const j=I.toUpperCase(),$=String.fromCharCode(parseInt(j,16));$!=="."&&a($)?C+=$:C+="%"+j,_+=2;continue}}if(i(F))C+=F;else{const I=O.charCodeAt(_);if(I<128)C+=E(I)?F:w[I];else if(I<55296||I>57343)C+=m(I);else if(I<=56319&&_+1<O.length){const j=O.charCodeAt(_+1);j>=56320&&j<=57343?(C+=m(65536+(I-55296<<10)+(j-56320)),_++):C+=m(65533)}else C+=m(65533)}}return C}function S(O){let C="";for(let _=0;_<O.length;_++){const F=O[_];if(F==="%"&&_+2<O.length){const I=O.slice(_+1,_+3);if(r(I)){const j=I.toUpperCase(),$=String.fromCharCode(parseInt(j,16));a($)?C+=$:C+="%"+j,_+=2;continue}}if(n(F))C+=F;else{const I=O.charCodeAt(_);if(I<128)C+=E(I)?F:w[I];else if(I<55296||I>57343)C+=m(I);else if(I<=56319&&_+1<O.length){const j=O.charCodeAt(_+1);j>=56320&&j<=57343?(C+=m(65536+(I-55296<<10)+(j-56320)),_++):C+=m(65533)}else C+=m(65533)}}return C}function A(O){let C="";for(let _=0;_<O.length;_++){const F=O[_];if(F==="%"&&_+2<O.length){const j=O.slice(_+1,_+3);if(r(j)){C+="%"+j.toUpperCase(),_+=2;continue}}const I=O.charCodeAt(_);if(I<128)C+=E(I)?F:w[I];else if(I<55296||I>57343)C+=m(I);else if(I<=56319&&_+1<O.length){const j=O.charCodeAt(_+1);j>=56320&&j<=57343?(C+=m(65536+(I-55296<<10)+(j-56320)),_++):C+=m(65533)}else C+=m(65533)}return C}function x(O){const C=[];if(O.userinfo!==void 0&&(C.push(O.userinfo),C.push("@")),O.host!==void 0){let _=unescape(O.host);if(!t(_)){const F=f(_);F.isIPV6===!0?_=`[${F.escapedHost}]`:_=y(_,!1)}C.push(_)}return(typeof O.port=="number"||typeof O.port=="string")&&(C.push(":"),C.push(String(O.port))),C.length?C.join(""):void 0}return hu={nonSimpleDomain:s,recomposeAuthority:x,reescapeHostDelimiters:y,normalizePercentEncoding:b,normalizePathEncoding:g,normalizeQueryFragmentEncoding:S,escapePreservingEscapes:A,removeDotSegments:d,isIPv4:t,isUUID:e,normalizeIPv6:f,stringArrayToHexStripped:o},hu}var gu,Xm;function PE(){if(Xm)return gu;Xm=1;const{isUUID:e}=Ym(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function a(m){return r.indexOf(m)!==-1}function i(m){return m.secure===!0?!0:m.secure===!1?!1:m.scheme?m.scheme.length===3&&(m.scheme[0]==="w"||m.scheme[0]==="W")&&(m.scheme[1]==="s"||m.scheme[1]==="S")&&(m.scheme[2]==="s"||m.scheme[2]==="S"):!1}function n(m){return m.host||(m.error=m.error||"HTTP URIs must have a host."),m}function o(m){const g=String(m.scheme).toLowerCase()==="https";return(m.port===(g?443:80)||m.port==="")&&(m.port=void 0),m.path||(m.path="/"),m}function s(m){return m.secure=i(m),m.resourceName=(m.path||"/")+(m.query?"?"+m.query:""),m.path=void 0,m.query=void 0,m}function c(m){if((m.port===(i(m)?443:80)||m.port==="")&&(m.port=void 0),typeof m.secure=="boolean"&&(m.scheme=m.secure?"wss":"ws",m.secure=void 0),m.resourceName){const[g,S]=m.resourceName.split("?");m.path=g&&g!=="/"?g:void 0,m.query=S,m.resourceName=void 0}return m.fragment=void 0,m}function l(m,g){if(!m.path)return m.error="URN can not be parsed",m;const S=m.path.match(t);if(S){const A=g.scheme||m.scheme||"urn";m.nid=S[1].toLowerCase(),m.nss=S[2];const x=`${A}:${g.nid||m.nid}`,O=E(x);m.path=void 0,O&&(m=O.parse(m,g))}else m.error=m.error||"URN can not be parsed.";return m}function u(m,g){if(m.nid===void 0)throw new Error("URN without nid cannot be serialized");const S=g.scheme||m.scheme||"urn",A=m.nid.toLowerCase(),x=`${S}:${g.nid||A}`,O=E(x);O&&(m=O.serialize(m,g));const C=m,_=m.nss;return C.path=`${A||g.nid}:${_}`,g.skipEscape=!0,C}function f(m,g){const S=m;return S.uuid=S.nss,S.nss=void 0,!g.tolerant&&(!S.uuid||!e(S.uuid))&&(S.error=S.error||"UUID is not valid."),S}function p(m){const g=m;return g.nss=(m.uuid||"").toLowerCase(),g}const d={scheme:"http",domainHost:!0,parse:n,serialize:o},h={scheme:"https",domainHost:d.domainHost,parse:n,serialize:o},k={scheme:"ws",domainHost:!0,parse:s,serialize:c},v={scheme:"wss",domainHost:k.domainHost,parse:k.parse,serialize:k.serialize},w={http:d,https:h,ws:k,wss:v,urn:{scheme:"urn",parse:l,serialize:u,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:p,skipNormalize:!0}};Object.setPrototypeOf(w,null);function E(m){return m&&(w[m]||w[m.toLowerCase()])||void 0}return gu={wsIsSecure:i,SCHEMES:w,isValidSchemeName:a,getSchemeHandler:E},gu}var Zm;function IE(){if(Zm)return go.exports;Zm=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:a,normalizePathEncoding:i,normalizeQueryFragmentEncoding:n,escapePreservingEscapes:o,reescapeHostDelimiters:s,isIPv4:c,nonSimpleDomain:l}=Ym(),{SCHEMES:u,getSchemeHandler:f}=PE();function p(C,_){return typeof C=="string"?C=S(C,_):typeof C=="object"&&(C=g(v(C,_),_)),C}function d(C,_,F){const I=F?Object.assign({scheme:"null"},F):{scheme:"null"},{parsed:j,malformedAuthorityOrPort:$}=m(C,I),{parsed:Y,malformedAuthorityOrPort:Z}=m(_,I);if($||Z)throw new Error(j.error||Y.error||"URI is malformed.");const ie=h(j,Y,I,!0);return I.skipEscape=!0,v(ie,I)}function h(C,_,F,I){const j={};return I||(C=g(v(C,F),F),_=g(v(_,F),F)),F=F||{},!F.tolerant&&_.scheme?(j.scheme=_.scheme,j.userinfo=_.userinfo,j.host=_.host,j.port=_.port,j.path=t(_.path||""),j.query=_.query):(_.userinfo!==void 0||_.host!==void 0||_.port!==void 0?(j.userinfo=_.userinfo,j.host=_.host,j.port=_.port,j.path=t(_.path||""),j.query=_.query):(_.path?(_.path[0]==="/"?j.path=t(_.path):((C.userinfo!==void 0||C.host!==void 0||C.port!==void 0)&&!C.path?j.path="/"+_.path:C.path?j.path=C.path.slice(0,C.path.lastIndexOf("/")+1)+_.path:j.path=_.path,j.path=t(j.path)),j.query=_.query):(j.path=C.path,_.query!==void 0?j.query=_.query:j.query=C.query),j.userinfo=C.userinfo,j.host=C.host,j.port=C.port),j.scheme=C.scheme),j.fragment=_.fragment,j}function k(C,_,F){const I=x(C,F),j=x(_,F);return I!==void 0&&j!==void 0&&I.toLowerCase()===j.toLowerCase()}function v(C,_){const F={host:C.host,scheme:C.scheme,userinfo:C.userinfo,port:C.port,path:C.path,query:C.query,nid:C.nid,nss:C.nss,uuid:C.uuid,fragment:C.fragment,reference:C.reference,resourceName:C.resourceName,secure:C.secure,error:""},I=Object.assign({},_),j=[],$=f(I.scheme||F.scheme);$&&$.serialize&&$.serialize(F,I),F.path!==void 0&&(I.skipEscape?F.path=a(F.path):(F.path=o(F.path),F.scheme!==void 0&&(F.path=F.path.split("%3A").join(":")))),I.reference!=="suffix"&&F.scheme&&j.push(F.scheme,":");const Y=r(F);if(Y!==void 0&&(I.reference!=="suffix"&&j.push("//"),j.push(Y),F.path&&F.path[0]!=="/"&&j.push("/")),F.path!==void 0){let Z=F.path;!I.absolutePath&&(!$||!$.absolutePath)&&(Z=t(Z)),Y===void 0&&Z[0]==="/"&&Z[1]==="/"&&(Z="/%2F"+Z.slice(2)),j.push(Z)}return F.query!==void 0&&j.push("?",F.query),F.fragment!==void 0&&j.push("#",F.fragment),j.join("")}const y=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,b=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,w=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function E(C,_){if(_[2]!==void 0&&C.path&&C.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof C.port=="number"&&(C.port<0||C.port>65535))return"URI port is malformed."}function m(C,_){const F=Object.assign({},_),I={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let j=!1,$=!1;F.reference==="suffix"&&(F.scheme?C=F.scheme+":"+C:C="//"+C);const Y=C.match(b);Y!==null&&Y[1].indexOf("\\")!==-1&&(I.error="URI authority must not contain a literal backslash.",j=!0);const Z=C.match(w);if(Z!==null){const P=Z[1],M=P.replace(/[\t\n\r]/g,"");M.length>=2&&(M.slice(0,2)!=="//"?(I.error=I.error||"URI authority must not contain a literal backslash.",j=!0):P.length!==M.length&&(I.error=I.error||"URI authority introducer must not contain whitespace.",j=!0))}const ie=C.match(y);if(ie){I.scheme=ie[1]===void 0?void 0:ie[1].toLowerCase(),I.userinfo=ie[3],I.host=ie[4],I.port=parseInt(ie[5],10),I.path=ie[6]||"",I.query=ie[7],I.fragment=ie[8],isNaN(I.port)&&(I.port=ie[5]);const P=E(I,ie);if(P!==void 0&&(I.error=I.error||P,j=!0),I.host)if(c(I.host)===!1){const T=e(I.host);I.host=T.host.toLowerCase(),$=T.isIPV6}else $=!0;I.scheme===void 0&&I.userinfo===void 0&&I.host===void 0&&I.port===void 0&&I.query===void 0&&!I.path?I.reference="same-document":I.scheme===void 0?I.reference="relative":I.fragment===void 0?I.reference="absolute":I.reference="uri",F.reference&&F.reference!=="suffix"&&F.reference!==I.reference&&(I.error=I.error||"URI is not a "+F.reference+" reference.");const M=f(F.scheme||I.scheme);if(!F.unicodeSupport&&(!M||!M.unicodeSupport)&&I.host&&(F.domainHost||M&&M.domainHost)&&$===!1&&l(I.host))try{I.host=new URL("http://"+I.host).hostname}catch(U){I.error=I.error||"Host's domain name can not be converted to ASCII: "+U}(!M||M&&!M.skipNormalize)&&(C.indexOf("%")!==-1&&(I.scheme!==void 0&&(I.scheme=unescape(I.scheme)),I.host!==void 0&&(I.host=s(unescape(I.host),$))),I.path&&(I.path=i(I.path)),I.query&&(I.query=n(I.query)),I.fragment&&(I.fragment=n(I.fragment))),M&&M.parse&&M.parse(I,F)}else I.error=I.error||"URI can not be parsed.";return{parsed:I,malformedAuthorityOrPort:j}}function g(C,_){return m(C,_).parsed}function S(C,_){return A(C,_).normalized}function A(C,_){const{parsed:F,malformedAuthorityOrPort:I}=m(C,_);return{normalized:I?C:v(F,_),malformedAuthorityOrPort:I}}function x(C,_){if(typeof C=="string"){const{normalized:F,malformedAuthorityOrPort:I}=A(C,_);return I?void 0:F}if(typeof C=="object")return v(C,_)}const O={SCHEMES:u,normalize:p,resolve:d,resolveComponent:h,equal:k,serialize:v,parse:g};return go.exports=O,go.exports.default=O,go.exports.fastUri=O,go.exports}var NE=IE();const yu=gn(NE);var yo={},Qm;function DE(){if(Qm)return yo;Qm=1;var e=/~/,t=/~[01]/g;function r(l){switch(l){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+l)}function a(l){return e.test(l)?l.replace(t,r):l}function i(l,u,f){for(var p,d,h=1,k=u.length;h<k;){if(u[h]==="constructor"||u[h]==="prototype"||u[h]==="__proto__")return l;if(p=a(u[h++]),d=k>h,typeof l[p]>"u"&&(Array.isArray(l)&&p==="-"&&(p=l.length),d&&(u[h]!==""&&u[h]<1/0||u[h]==="-"?l[p]=[]:l[p]={})),!d)break;l=l[p]}var v=l[p];return f===void 0?delete l[p]:l[p]=f,v}function n(l){if(typeof l=="string"){if(l=l.split("/"),l[0]==="")return l;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(l)){for(const u of l)if(typeof u!="string"&&typeof u!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return l}throw new Error("Invalid JSON pointer.")}function o(l,u){if(typeof l!="object")throw new Error("Invalid input object.");u=n(u);var f=u.length;if(f===1)return l;for(var p=1;p<f;){if(l=l[a(u[p++])],f===p)return l;if(typeof l!="object"||l===null)return}}function s(l,u,f){if(typeof l!="object")throw new Error("Invalid input object.");if(u=n(u),u.length===0)throw new Error("Invalid JSON pointer for set.");return i(l,u,f)}function c(l){var u=n(l);return{get:function(f){return o(f,u)},set:function(f,p){return s(f,u,p)}}}return yo.get=o,yo.set=s,yo.compile=c,yo}var FE=DE();const vu=gn(FE);var ME=Object.prototype;function Ps(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ME;return e===r}var jE=Mm(Object.keys,Object),LE=Object.prototype,RE=LE.hasOwnProperty;function eh(e){if(!Ps(e))return jE(e);var t=[];for(var r in Object(e))RE.call(e,r)&&r!="constructor"&&t.push(r);return t}var bu=Fa(bn,"DataView"),ku=Fa(bn,"Promise"),ki=Fa(bn,"Set"),wu=Fa(bn,"WeakMap"),th="[object Map]",qE="[object Object]",rh="[object Promise]",nh="[object Set]",ah="[object WeakMap]",ih="[object DataView]",zE=Da(bu),$E=Da(mo),UE=Da(ku),BE=Da(ki),VE=Da(wu),Rr=Mn;(bu&&Rr(new bu(new ArrayBuffer(1)))!=ih||mo&&Rr(new mo)!=th||ku&&Rr(ku.resolve())!=rh||ki&&Rr(new ki)!=nh||wu&&Rr(new wu)!=ah)&&(Rr=function(e){var t=Mn(e),r=t==qE?e.constructor:void 0,a=r?Da(r):"";if(a)switch(a){case zE:return ih;case $E:return th;case UE:return rh;case BE:return nh;case VE:return ah}return t});var HE="[object Arguments]";function oh(e){return Lr(e)&&Mn(e)==HE}var sh=Object.prototype,WE=sh.hasOwnProperty,KE=sh.propertyIsEnumerable,wi=oh((function(){return arguments})())?oh:function(e){return Lr(e)&&WE.call(e,"callee")&&!KE.call(e,"callee")},GE=9007199254740991;function Su(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=GE}function La(e){return e!=null&&Su(e.length)&&!uo(e)}function JE(){return!1}var lh=typeof st=="object"&&st&&!st.nodeType&&st,ch=lh&&typeof module=="object"&&module&&!module.nodeType&&module,YE=ch&&ch.exports===lh,uh=YE?bn.Buffer:void 0,XE=uh?uh.isBuffer:void 0,Ra=XE||JE,ZE="[object Arguments]",QE="[object Array]",eC="[object Boolean]",tC="[object Date]",rC="[object Error]",nC="[object Function]",aC="[object Map]",iC="[object Number]",oC="[object Object]",sC="[object RegExp]",lC="[object Set]",cC="[object String]",uC="[object WeakMap]",fC="[object ArrayBuffer]",dC="[object DataView]",pC="[object Float32Array]",mC="[object Float64Array]",hC="[object Int8Array]",gC="[object Int16Array]",yC="[object Int32Array]",vC="[object Uint8Array]",bC="[object Uint8ClampedArray]",kC="[object Uint16Array]",wC="[object Uint32Array]",At={};At[pC]=At[mC]=At[hC]=At[gC]=At[yC]=At[vC]=At[bC]=At[kC]=At[wC]=!0,At[ZE]=At[QE]=At[fC]=At[eC]=At[dC]=At[tC]=At[rC]=At[nC]=At[aC]=At[iC]=At[oC]=At[sC]=At[lC]=At[cC]=At[uC]=!1;function SC(e){return Lr(e)&&Su(e.length)&&!!At[Mn(e)]}function Eu(e){return function(t){return e(t)}}var fh=typeof st=="object"&&st&&!st.nodeType&&st,vo=fh&&typeof module=="object"&&module&&!module.nodeType&&module,EC=vo&&vo.exports===fh,Cu=EC&&Nm.process,Si=(function(){try{var e=vo&&vo.require&&vo.require("util").types;return e||Cu&&Cu.binding&&Cu.binding("util")}catch{}})(),dh=Si&&Si.isTypedArray,bo=dh?Eu(dh):SC,CC="[object Map]",AC="[object Set]",_C=Object.prototype,OC=_C.hasOwnProperty;function Dt(e){if(e==null)return!0;if(La(e)&&(Bt(e)||typeof e=="string"||typeof e.splice=="function"||Ra(e)||bo(e)||wi(e)))return!e.length;var t=Rr(e);if(t==CC||t==AC)return!e.size;if(Ps(e))return!eh(e).length;for(var r in e)if(OC.call(e,r))return!1;return!0}function xC(){this.__data__=new jn,this.size=0}function TC(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function PC(e){return this.__data__.get(e)}function IC(e){return this.__data__.has(e)}var NC=200;function DC(e,t){var r=this.__data__;if(r instanceof jn){var a=r.__data__;if(!mo||a.length<NC-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ln(a)}return r.set(e,t),this.size=r.size,this}function Qr(e){var t=this.__data__=new jn(e);this.size=t.size}Qr.prototype.clear=xC,Qr.prototype.delete=TC,Qr.prototype.get=PC,Qr.prototype.has=IC,Qr.prototype.set=DC;function Au(e,t){for(var r=-1,a=e==null?0:e.length;++r<a&&t(e[r],r,e)!==!1;);return e}var Is=(function(){try{var e=Fa(Object,"defineProperty");return e({},"",{}),e}catch{}})();function _u(e,t,r){t=="__proto__"&&Is?Is(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var FC=Object.prototype,MC=FC.hasOwnProperty;function Ou(e,t,r){var a=e[t];(!(MC.call(e,t)&&po(a,r))||r===void 0&&!(t in e))&&_u(e,t,r)}function Ei(e,t,r,a){var i=!r;r||(r={});for(var n=-1,o=t.length;++n<o;){var s=t[n],c=void 0;c===void 0&&(c=e[s]),i?_u(r,s,c):Ou(r,s,c)}return r}function ph(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var jC=9007199254740991,LC=/^(?:0|[1-9]\d*)$/;function Ns(e,t){var r=typeof e;return t=t??jC,!!t&&(r=="number"||r!="symbol"&&LC.test(e))&&e>-1&&e%1==0&&e<t}var RC=Object.prototype,qC=RC.hasOwnProperty;function mh(e,t){var r=Bt(e),a=!r&&wi(e),i=!r&&!a&&Ra(e),n=!r&&!a&&!i&&bo(e),o=r||a||i||n,s=o?ph(e.length,String):[],c=s.length;for(var l in e)(t||qC.call(e,l))&&!(o&&(l=="length"||i&&(l=="offset"||l=="parent")||n&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Ns(l,c)))&&s.push(l);return s}function en(e){return La(e)?mh(e):eh(e)}function zC(e,t){return e&&Ei(t,en(t),e)}function $C(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var UC=Object.prototype,BC=UC.hasOwnProperty;function VC(e){if(!Ye(e))return $C(e);var t=Ps(e),r=[];for(var a in e)a=="constructor"&&(t||!BC.call(e,a))||r.push(a);return r}function ko(e){return La(e)?mh(e,!0):VC(e)}function HC(e,t){return e&&Ei(t,ko(t),e)}var hh=typeof st=="object"&&st&&!st.nodeType&&st,gh=hh&&typeof module=="object"&&module&&!module.nodeType&&module,WC=gh&&gh.exports===hh,yh=WC?bn.Buffer:void 0,vh=yh?yh.allocUnsafe:void 0;function bh(e,t){if(t)return e.slice();var r=e.length,a=vh?vh(r):new e.constructor(r);return e.copy(a),a}function xu(e,t){var r=-1,a=e.length;for(t||(t=Array(a));++r<a;)t[r]=e[r];return t}function KC(e,t){for(var r=-1,a=e==null?0:e.length,i=0,n=[];++r<a;){var o=e[r];t(o,r,e)&&(n[i++]=o)}return n}function kh(){return[]}var GC=Object.prototype,JC=GC.propertyIsEnumerable,wh=Object.getOwnPropertySymbols,Tu=wh?function(e){return e==null?[]:(e=Object(e),KC(wh(e),function(t){return JC.call(e,t)}))}:kh;function YC(e,t){return Ei(e,Tu(e),t)}function Pu(e,t){for(var r=-1,a=t.length,i=e.length;++r<a;)e[i+r]=t[r];return e}var XC=Object.getOwnPropertySymbols,Sh=XC?function(e){for(var t=[];e;)Pu(t,Tu(e)),e=Cs(e);return t}:kh;function ZC(e,t){return Ei(e,Sh(e),t)}function Eh(e,t,r){var a=t(e);return Bt(e)?a:Pu(a,r(e))}function Iu(e){return Eh(e,en,Tu)}function Nu(e){return Eh(e,ko,Sh)}var QC=Object.prototype,eA=QC.hasOwnProperty;function tA(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&eA.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Ds=bn.Uint8Array;function Du(e){var t=new e.constructor(e.byteLength);return new Ds(t).set(new Ds(e)),t}function rA(e,t){var r=t?Du(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var nA=/\w*$/;function aA(e){var t=new e.constructor(e.source,nA.exec(e));return t.lastIndex=e.lastIndex,t}var Ch=jr?jr.prototype:void 0,Ah=Ch?Ch.valueOf:void 0;function iA(e){return Ah?Object(Ah.call(e)):{}}function _h(e,t){var r=t?Du(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var oA="[object Boolean]",sA="[object Date]",lA="[object Map]",cA="[object Number]",uA="[object RegExp]",fA="[object Set]",dA="[object String]",pA="[object Symbol]",mA="[object ArrayBuffer]",hA="[object DataView]",gA="[object Float32Array]",yA="[object Float64Array]",vA="[object Int8Array]",bA="[object Int16Array]",kA="[object Int32Array]",wA="[object Uint8Array]",SA="[object Uint8ClampedArray]",EA="[object Uint16Array]",CA="[object Uint32Array]";function AA(e,t,r){var a=e.constructor;switch(t){case mA:return Du(e);case oA:case sA:return new a(+e);case hA:return rA(e,r);case gA:case yA:case vA:case bA:case kA:case wA:case SA:case EA:case CA:return _h(e,r);case lA:return new a;case cA:case dA:return new a(e);case uA:return aA(e);case fA:return new a;case pA:return iA(e)}}var Oh=Object.create,xh=(function(){function e(){}return function(t){if(!Ye(t))return{};if(Oh)return Oh(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function Th(e){return typeof e.constructor=="function"&&!Ps(e)?xh(Cs(e)):{}}var _A="[object Map]";function OA(e){return Lr(e)&&Rr(e)==_A}var Ph=Si&&Si.isMap,xA=Ph?Eu(Ph):OA,TA="[object Set]";function PA(e){return Lr(e)&&Rr(e)==TA}var Ih=Si&&Si.isSet,IA=Ih?Eu(Ih):PA,NA=1,DA=2,FA=4,Nh="[object Arguments]",MA="[object Array]",jA="[object Boolean]",LA="[object Date]",RA="[object Error]",Dh="[object Function]",qA="[object GeneratorFunction]",zA="[object Map]",$A="[object Number]",Fh="[object Object]",UA="[object RegExp]",BA="[object Set]",VA="[object String]",HA="[object Symbol]",WA="[object WeakMap]",KA="[object ArrayBuffer]",GA="[object DataView]",JA="[object Float32Array]",YA="[object Float64Array]",XA="[object Int8Array]",ZA="[object Int16Array]",QA="[object Int32Array]",e_="[object Uint8Array]",t_="[object Uint8ClampedArray]",r_="[object Uint16Array]",n_="[object Uint32Array]",St={};St[Nh]=St[MA]=St[KA]=St[GA]=St[jA]=St[LA]=St[JA]=St[YA]=St[XA]=St[ZA]=St[QA]=St[zA]=St[$A]=St[Fh]=St[UA]=St[BA]=St[VA]=St[HA]=St[e_]=St[t_]=St[r_]=St[n_]=!0,St[RA]=St[Dh]=St[WA]=!1;function wo(e,t,r,a,i,n){var o,s=t&NA,c=t&DA,l=t&FA;if(r&&(o=i?r(e,a,i,n):r(e)),o!==void 0)return o;if(!Ye(e))return e;var u=Bt(e);if(u){if(o=tA(e),!s)return xu(e,o)}else{var f=Rr(e),p=f==Dh||f==qA;if(Ra(e))return bh(e,s);if(f==Fh||f==Nh||p&&!i){if(o=c||p?{}:Th(e),!s)return c?ZC(e,HC(o,e)):YC(e,zC(o,e))}else{if(!St[f])return i?e:{};o=AA(e,f,s)}}n||(n=new Qr);var d=n.get(e);if(d)return d;n.set(e,o),IA(e)?e.forEach(function(v){o.add(wo(v,t,r,v,e,n))}):xA(e)&&e.forEach(function(v,y){o.set(y,wo(v,t,r,y,e,n))});var h=l?c?Nu:Iu:c?ko:en,k=u?void 0:h(e);return Au(k||e,function(v,y){k&&(y=v,v=e[y]),Ou(o,y,wo(v,t,r,y,e,n))}),o}function Mh(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function a_(e,t,r){var a=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var n=Array(i);++a<i;)n[a]=e[a+t];return n}function i_(e,t){return t.length<2?e:Os(e,a_(t,0,-1))}var o_=Object.prototype,s_=o_.hasOwnProperty;function jh(e,t){t=bi(t,e);var r=-1,a=t.length;if(!a)return!0;for(;++r<a;){var i=ea(t[r]);if(i==="__proto__"&&!s_.call(e,"__proto__")||(i==="constructor"||i==="prototype")&&r<a-1)return!1}var n=i_(e,t);return n==null||delete n[ea(Mh(t))]}function l_(e){return Qn(e)?void 0:e}var Lh=jr?jr.isConcatSpreadable:void 0;function c_(e){return Bt(e)||wi(e)||!!(Lh&&e&&e[Lh])}function So(e,t,r,a,i){var n=-1,o=e.length;for(r||(r=c_),i||(i=[]);++n<o;){var s=e[n];t>0&&r(s)?t>1?So(s,t-1,r,a,i):Pu(i,s):a||(i[i.length]=s)}return i}function Fu(e){var t=e==null?0:e.length;return t?So(e,1):[]}function u_(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var Rh=Math.max;function qh(e,t,r){return t=Rh(t===void 0?e.length-1:t,0),function(){for(var a=arguments,i=-1,n=Rh(a.length-t,0),o=Array(n);++i<n;)o[i]=a[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=a[i];return s[t]=r(o),u_(e,this,s)}}function f_(e){return function(){return e}}function Fs(e){return e}var d_=Is?function(e,t){return Is(e,"toString",{configurable:!0,enumerable:!1,value:f_(t),writable:!0})}:Fs,p_=800,m_=16,h_=Date.now;function g_(e){var t=0,r=0;return function(){var a=h_(),i=m_-(a-r);if(r=a,i>0){if(++t>=p_)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var zh=g_(d_);function $h(e){return zh(qh(e,void 0,Fu),e+"")}var y_=1,v_=2,b_=4,Eo=$h(function(e,t){var r={};if(e==null)return r;var a=!1;t=vi(t,function(n){return n=bi(n,e),a||(a=n.length>1),n}),Ei(e,Nu(e),r),a&&(r=wo(r,y_|v_|b_,l_));for(var i=t.length;i--;)jh(r,t[i]);return r});function Ms(e,t){if(dt in e&&yu.equal(e[dt],t))return e;for(const r of Object.values(e))if(Array.isArray(r)){for(const a of r)if(Ye(a)){const i=Ms(a,t);if(i!==void 0)return i}}else if(Ye(r)){const a=Ms(r,t);if(a!==void 0)return a}}function Mu(e,t){const r=se(e,dt,t);let a=e;gt in a&&(a={...a,[gt]:yu.resolve(r,a[gt])});for(const[i,n]of Object.entries(a))Array.isArray(n)?a={...a,[i]:n.map(o=>Ye(o)?Mu(o,r):o)}:Ye(n)&&(a={...a,[i]:Mu(n,r)});return a}function ju(e,t){const r=t[e];return[Eo(t,[e]),r]}function Uh(e,t={},r=[],a=se(t,[dt])){const i=e||"";let n,o=a;if(i.startsWith("#")){const c=decodeURIComponent(i.substring(1));o===void 0||dt in t&&t[dt]===o?n=vu.get(t,c):t[so]===Es&&(n=Ms(t,o.replace(/\/$/,"")),n!==void 0&&(n=vu.get(n,c)))}else if(t[so]===Es){const c=o?yu.resolve(o,i):i,[l,...u]=c.replace(/#\/?$/,"").split("#");n=Ms(t,l.replace(/\/$/,"")),n!==void 0&&(o=n[dt],Dt(u)||(n=vu.get(n,decodeURIComponent(u.join("#")))))}if(n===void 0)throw new Error(`Could not find a definition for ${e}.`);const s=n[gt];if(s){if(r.includes(s)){if(r.length===1)throw new Error(`Definition for ${e} is a circular reference`);const[f,...p]=r,d=[...p,i,f].join(" -> ");throw new Error(`Definition for ${f} contains a circular reference through ${d}`)}const[c,l]=ju(gt,n),u=Uh(l,t,[...r,i],o);return Object.keys(c).length>0?t[so]===Qw||t[so]===Es?{[vn]:[c,u]}:{...c,...u}:u}return n}function Co(e,t={},r=se(t,[dt])){return Uh(e,t,[],r)}var k_=Object.prototype,w_=k_.hasOwnProperty;function S_(e,t){return e!=null&&w_.call(e,t)}function Bh(e,t,r){t=bi(t,e);for(var a=-1,i=t.length,n=!1;++a<i;){var o=ea(t[a]);if(!(n=e!=null&&r(e,o)))break;e=e[o]}return n||++a!=i?n:(i=e==null?0:e.length,!!i&&Su(i)&&Ns(o,i)&&(Bt(e)||wi(e)))}function Ke(e,t){return e!=null&&Bh(e,t,S_)}var E_="[object String]";function ta(e){return typeof e=="string"||!Bt(e)&&Lr(e)&&Mn(e)==E_}function qr(e){let t;const r=se(e,Jw);return ta(r)?t=r:r!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}var C_=1/0;function A_(e){var t=e==null?0:e.length;return t?So(e,C_):[]}function Lu(e,t,r){(r!==void 0&&!po(e[t],r)||r===void 0&&!(t in e))&&_u(e,t,r)}function __(e){return function(t,r,a){for(var i=-1,n=Object(t),o=a(t),s=o.length;s--;){var c=o[++i];if(r(n[c],c,n)===!1)break}return t}}var Vh=__();function Ao(e){return Lr(e)&&La(e)}function Ru(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function O_(e){return Ei(e,ko(e))}function x_(e,t,r,a,i,n,o){var s=Ru(e,r),c=Ru(t,r),l=o.get(c);if(l){Lu(e,r,l);return}var u=n?n(s,c,r+"",e,t,o):void 0,f=u===void 0;if(f){var p=Bt(c),d=!p&&Ra(c),h=!p&&!d&&bo(c);u=c,p||d||h?Bt(s)?u=s:Ao(s)?u=xu(s):d?(f=!1,u=bh(c,!0)):h?(f=!1,u=_h(c,!0)):u=[]:Qn(c)||wi(c)?(u=s,wi(s)?u=O_(s):(!Ye(s)||uo(s))&&(u=Th(c))):f=!1}f&&(o.set(c,u),i(u,c,a,n,o),o.delete(c)),Lu(e,r,u)}function Hh(e,t,r,a,i){e!==t&&Vh(t,function(n,o){if(i||(i=new Qr),Ye(n))x_(e,t,o,r,Hh,a,i);else{var s=a?a(Ru(e,o),n,o+"",e,t,i):void 0;s===void 0&&(s=n),Lu(e,o,s)}},ko)}function js(e,t){return zh(qh(e,t,Fs),e+"")}function T_(e,t,r){if(!Ye(r))return!1;var a=typeof t;return(a=="number"?La(r)&&Ns(t,r.length):a=="string"&&t in r)?po(r[t],e):!1}function P_(e){return js(function(t,r){var a=-1,i=r.length,n=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(n=e.length>3&&typeof n=="function"?(i--,n):void 0,o&&T_(r[0],r[1],o)&&(n=i<3?void 0:n,i=1),t=Object(t);++a<i;){var s=r[a];s&&e(t,s,a,n)}return t})}var I_=P_(function(e,t,r){Hh(e,t,r)});function qu(e,t,r,a){if(!Ye(e))return e;t=bi(t,e);for(var i=-1,n=t.length,o=n-1,s=e;s!=null&&++i<n;){var c=ea(t[i]),l=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(i!=o){var u=s[c];l=a?a(u,c,s):void 0,l===void 0&&(l=Ye(u)?u:Ns(t[i+1])?[]:{})}Ou(s,c,l),s=s[c]}return e}function vt(e,t,r){return e==null?e:qu(e,t,r)}function Wh(e){return typeof e=="function"?e:Fs}var N_=/\s/;function D_(e){for(var t=e.length;t--&&N_.test(e.charAt(t)););return t}var F_=/^\s+/;function M_(e){return e&&e.slice(0,D_(e)+1).replace(F_,"")}var Kh=NaN,j_=/^[-+]0x[0-9a-f]+$/i,L_=/^0b[01]+$/i,R_=/^0o[0-7]+$/i,q_=parseInt;function z_(e){if(typeof e=="number")return e;if(co(e))return Kh;if(Ye(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ye(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=M_(e);var r=L_.test(e);return r||R_.test(e)?q_(e.slice(2),r?2:8):j_.test(e)?Kh:+e}var Gh=1/0,$_=17976931348623157e292;function U_(e){if(!e)return e===0?e:0;if(e=z_(e),e===Gh||e===-Gh){var t=e<0?-1:1;return t*$_}return e===e?e:0}function Jh(e){var t=U_(e),r=t%1;return t===t?r?t-r:t:0}var B_=9007199254740991,zu=4294967295,V_=Math.min;function Yh(e,t){if(e=Jh(e),e<1||e>B_)return[];var r=zu,a=V_(e,zu);t=Wh(t),e-=zu;for(var i=ph(a,t);++r<e;)t(r);return i}function Xh(e,t){return e&&Vh(e,t,en)}var H_="__lodash_hash_undefined__";function W_(e){return this.__data__.set(e,H_),this}function K_(e){return this.__data__.has(e)}function qa(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ln;++t<r;)this.add(e[t])}qa.prototype.add=qa.prototype.push=W_,qa.prototype.has=K_;function G_(e,t){for(var r=-1,a=e==null?0:e.length;++r<a;)if(t(e[r],r,e))return!0;return!1}function _o(e,t){return e.has(t)}var J_=1,Y_=2;function Zh(e,t,r,a,i,n){var o=r&J_,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=n.get(e),u=n.get(t);if(l&&u)return l==t&&u==e;var f=-1,p=!0,d=r&Y_?new qa:void 0;for(n.set(e,t),n.set(t,e);++f<s;){var h=e[f],k=t[f];if(a)var v=o?a(k,h,f,t,e,n):a(h,k,f,e,t,n);if(v!==void 0){if(v)continue;p=!1;break}if(d){if(!G_(t,function(y,b){if(!_o(d,b)&&(h===y||i(h,y,r,a,n)))return d.push(b)})){p=!1;break}}else if(!(h===k||i(h,k,r,a,n))){p=!1;break}}return n.delete(e),n.delete(t),p}function X_(e){var t=-1,r=Array(e.size);return e.forEach(function(a,i){r[++t]=[i,a]}),r}function $u(e){var t=-1,r=Array(e.size);return e.forEach(function(a){r[++t]=a}),r}var Z_=1,Q_=2,eO="[object Boolean]",tO="[object Date]",rO="[object Error]",nO="[object Map]",aO="[object Number]",iO="[object RegExp]",oO="[object Set]",sO="[object String]",lO="[object Symbol]",cO="[object ArrayBuffer]",uO="[object DataView]",Qh=jr?jr.prototype:void 0,Uu=Qh?Qh.valueOf:void 0;function fO(e,t,r,a,i,n,o){switch(r){case uO:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case cO:return!(e.byteLength!=t.byteLength||!n(new Ds(e),new Ds(t)));case eO:case tO:case aO:return po(+e,+t);case rO:return e.name==t.name&&e.message==t.message;case iO:case sO:return e==t+"";case nO:var s=X_;case oO:var c=a&Z_;if(s||(s=$u),e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;a|=Q_,o.set(e,t);var u=Zh(s(e),s(t),a,i,n,o);return o.delete(e),u;case lO:if(Uu)return Uu.call(e)==Uu.call(t)}return!1}var dO=1,pO=Object.prototype,mO=pO.hasOwnProperty;function hO(e,t,r,a,i,n){var o=r&dO,s=Iu(e),c=s.length,l=Iu(t),u=l.length;if(c!=u&&!o)return!1;for(var f=c;f--;){var p=s[f];if(!(o?p in t:mO.call(t,p)))return!1}var d=n.get(e),h=n.get(t);if(d&&h)return d==t&&h==e;var k=!0;n.set(e,t),n.set(t,e);for(var v=o;++f<c;){p=s[f];var y=e[p],b=t[p];if(a)var w=o?a(b,y,p,t,e,n):a(y,b,p,e,t,n);if(!(w===void 0?y===b||i(y,b,r,a,n):w)){k=!1;break}v||(v=p=="constructor")}if(k&&!v){var E=e.constructor,m=t.constructor;E!=m&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof m=="function"&&m instanceof m)&&(k=!1)}return n.delete(e),n.delete(t),k}var gO=1,eg="[object Arguments]",tg="[object Array]",Ls="[object Object]",yO=Object.prototype,rg=yO.hasOwnProperty;function vO(e,t,r,a,i,n){var o=Bt(e),s=Bt(t),c=o?tg:Rr(e),l=s?tg:Rr(t);c=c==eg?Ls:c,l=l==eg?Ls:l;var u=c==Ls,f=l==Ls,p=c==l;if(p&&Ra(e)){if(!Ra(t))return!1;o=!0,u=!1}if(p&&!u)return n||(n=new Qr),o||bo(e)?Zh(e,t,r,a,i,n):fO(e,t,c,r,a,i,n);if(!(r&gO)){var d=u&&rg.call(e,"__wrapped__"),h=f&&rg.call(t,"__wrapped__");if(d||h){var k=d?e.value():e,v=h?t.value():t;return n||(n=new Qr),i(k,v,r,a,n)}}return p?(n||(n=new Qr),hO(e,t,r,a,i,n)):!1}function Rs(e,t,r,a,i){return e===t?!0:e==null||t==null||!Lr(e)&&!Lr(t)?e!==e&&t!==t:vO(e,t,r,a,Rs,i)}var bO=1,kO=2;function wO(e,t,r,a){var i=r.length,n=i;if(e==null)return!n;for(e=Object(e);i--;){var o=r[i];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<n;){o=r[i];var s=o[0],c=e[s],l=o[1];if(o[2]){if(c===void 0&&!(s in e))return!1}else{var u=new Qr,f;if(!(f===void 0?Rs(l,c,bO|kO,a,u):f))return!1}}return!0}function ng(e){return e===e&&!Ye(e)}function SO(e){for(var t=en(e),r=t.length;r--;){var a=t[r],i=e[a];t[r]=[a,i,ng(i)]}return t}function ag(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function EO(e){var t=SO(e);return t.length==1&&t[0][2]?ag(t[0][0],t[0][1]):function(r){return r===e||wO(r,e,t)}}function CO(e,t){return e!=null&&t in Object(e)}function ig(e,t){return e!=null&&Bh(e,t,CO)}var AO=1,_O=2;function OO(e,t){return uu(e)&&ng(t)?ag(ea(e),t):function(r){var a=se(r,e);return a===void 0&&a===t?ig(r,e):Rs(t,a,AO|_O)}}function xO(e){return function(t){return t==null?void 0:t[e]}}function TO(e){return function(t){return Os(t,e)}}function PO(e){return uu(e)?xO(ea(e)):TO(e)}function Bu(e){return typeof e=="function"?e:e==null?Fs:typeof e=="object"?Bt(e)?OO(e[0],e[1]):EO(e):PO(e)}function IO(e,t,r){var a=Bt(e),i=a||Ra(e)||bo(e);if(t=Bu(t),r==null){var n=e&&e.constructor;i?r=a?new n:[]:Ye(e)?r=uo(n)?xh(Cs(e)):{}:r={}}return(i?Au:Xh)(e,function(o,s,c){return t(r,o,s,c)}),r}function NO(e,t,r,a){for(var i=e.length,n=r+-1;++n<i;)if(t(e[n],n,e))return n;return-1}function DO(e){return e!==e}function FO(e,t,r){for(var a=r-1,i=e.length;++a<i;)if(e[a]===t)return a;return-1}function og(e,t,r){return t===t?FO(e,t,r):NO(e,DO,r)}function Vu(e,t){var r=e==null?0:e.length;return!!r&&og(e,t,0)>-1}function qs(){}var MO=1/0,jO=ki&&1/$u(new ki([,-0]))[1]==MO?function(e){return new ki(e)}:qs,LO=200;function sg(e,t,r){var a=-1,i=Vu,n=e.length,o=!0,s=[],c=s;if(n>=LO){var l=jO(e);if(l)return $u(l);o=!1,i=_o,c=new qa}else c=s;e:for(;++a<n;){var u=e[a],f=u;if(u=u!==0?u:0,o&&f===f){for(var p=c.length;p--;)if(c[p]===f)continue e;s.push(u)}else i(c,f,r)||(c!==s&&c.push(f),s.push(u))}return s}function lg(e){return e&&e.length?sg(e):[]}function Oo(e){return Array.isArray(e)?"array":typeof e=="string"?"string":e==null?"null":typeof e=="boolean"?"boolean":typeof e=="number"&&!Number.isNaN(e)?"number":typeof e=="object"?"object":"string"}var RO=js(function(e){return sg(So(e,1,Ao,!0))});function zr(e){let{type:t}=e;return!t&&e.const?Oo(e.const):!t&&e.enum?"string":!t&&(e.properties||e.additionalProperties||e.patternProperties)?"object":(Array.isArray(t)&&(t.length===2&&t.includes("null")?t=t.find(r=>r!=="null"):t=t[0]),t)}function qn(e,t){const r={...e},a=Object.keys(t).reduce((i,n)=>{const o=e?e[n]:{},s=t[n];return e&&n in e&&_e(s)?i[n]=qn(o,s):e&&t&&(zr(e)==="object"||zr(t)==="object")&&n===Am&&Array.isArray(o)&&Array.isArray(s)?i[n]=RO(o,s):i[n]=s,i},r);for(const i of Object.getOwnPropertySymbols(t))a[i]=t[i];return a}var qO="[object Number]";function cg(e){return typeof e=="number"||Lr(e)&&Mn(e)==qO}function ug(e,t,r){var a;if(e&&r){const i=se(e,r);if(i===void 0)return;for(let n=0;n<t.length;n+=1){const o=t[n],s=se(o,[Je,r],{});if(s.type!=="object"&&s.type!=="array"&&(s.const===i||!((a=s.enum)===null||a===void 0)&&a.includes(i)))return n}}}function zs(e,t,r,a,i){if(t===void 0)return 0;const n=ug(t,r,i);if(cg(n))return n;for(let o=0;o<r.length;o+=1){const s=r[o];if(i&&Ke(s,[Je,i])){const c=se(t,i),l=se(s,[Je,i],{});if(e.isValid(l,c,a))return o}else if(s[Je]){const c={anyOf:Object.keys(s[Je]).map(u=>({required:[u]}))};let l;if(s.anyOf){const{...u}=s;u.allOf?u.allOf=u.allOf.slice():u.allOf=[],u.allOf.push(c),l=u}else l={...s,...c};if(delete l.required,e.isValid(l,t,a))return o}else if(e.isValid(s,t,a))return o}return 0}const zO=Object.prototype;function xo(e){for(const t in e)if(zO.hasOwnProperty.call(e,t))return!1;return!0}const $O=["array","boolean","integer","null","number","object","string"];new Set($O);const UO=["$defs","definitions","properties","patternProperties","dependencies"];new Set(UO);const BO=["items","allOf","oneOf","anyOf"];new Set(BO);const VO=["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"];new Set(VO);function $s(e){return typeof e=="object"}function kn(e){return $s(e)?xo(e):e===!0}function Ci(e,t){return e<t?-1:e>t?1:0}function Hu(e,t){const r=e.length;if(r===0)return t;let a=t.length;if(a===0)return e;if(r<a){const n=e;e=t,t=n,a=r}const i=new Set(e);for(let n=0;n<a;n++)i.add(t[n]);return Array.from(i)}function HO(e,t){const r=[];if(e.length===0||t.length===0)return r;if(e.length>t.length){const i=e;e=t,t=i}const a=new Set(t);for(let i=0;i<e.length&&a.size>0;i++){const n=e[i];a.delete(n)&&r.push(n)}return r}function fg(e){return e.length===0}function Wu(e){return(t,r)=>{const a=t.length-r.length;if(a!==0)return a;for(let i=0;i<t.length;i++)if(t[i]!==r[i]){const n=e(t[i],r[i]);if(n!==0)return n}return 0}}function dg(e,{threshold:t=12}={}){return r=>{const a=r.length;if(a===0)return r;if(a<=t){const o=[];let s=0;e:for(let c=0;c<a;c++){const l=r[c];for(let u=0;u<s;u++)if(e(l,o[u])===0)continue e;s=o.push(l)}return o}const i=r.slice().sort(e);let n=0;for(let o=1;o<a;o++)e(i[n],i[o])!==0&&++n!==o&&(i[n]=i[o]);return i.length=n+1,i}}function WO(e){return(t,r)=>{const a=[];let i=t.length,n=r.length;if(i===0||n===0)return a;if(i>n){const u=t;t=r,r=u;const f=i;i=n,n=f}const o=[...t].sort(e),s=[...r].sort(e);let c=0,l=0;for(;c<i&&l<n;){const u=e(o[c],s[l]);u===0?((a.length===0||e(a[a.length-1],o[c])!==0)&&a.push(o[c]),c++,l++):u<0?c++:l++}return a}}function KO(e,t){return r=>{if(e.has(r))return e.get(r);const a=t(r);return e.set(r,a),a}}const pg=KO,mg=()=>0,GO=e=>e===void 0,JO=e=>typeof e!="object",hg={boolean:0,number:1,string:2};function YO(e,t){const r=typeof e,a=typeof t;return r===a?Ci(e,t):hg[r]-hg[a]}function XO(e,t){const r=e.length;if(r===0)return t;const a=t.length;if(a===0)return e;if(a>r){const o=e;e=t,t=o}const i=new Set(e),n=t.length;for(let o=0;o<n;o++){const s=t[o];i.has(s)||e.push(s)}return e}function Us(e,t,r=mg){return(a,i)=>e(a)?e(i)?r(a,i):-1:e(i)?1:t(a,i)}function Ai(e){return Us(GO,e)}function ra(e,t){return Us(r=>r===void 0||e(r),t)}function Ku(e,t){return Us(Array.isArray,e,t)}const qt=Ai(Ci),Gu=ra(e=>e===0,(e,t)=>e-t);function ZO({deduplicationCache:e=new WeakMap,sortedKeysCache:t=new WeakMap}={}){const r=pg(t,k=>Object.keys(k).sort());function a(k){return(v,y)=>{const b=r(v),w=r(y),E=Math.min(b.length,w.length);for(let m=0;m<E;m++){const g=Ci(b[m],w[m]);if(g!==0)return g}if(b.length!==w.length)return b.length-w.length;for(let m=0;m<E;m++){const g=b[m],S=k(v[g],y[g]);if(S!==0)return S}return 0}}function i(k){const v=Wu(k),y=pg(e,dg(k,{threshold:0}));return(b,w)=>v(y(b),y(w))}const n=i(Ci);function o(k,v){if($s(k)){if($s(v)){const y=Object.keys(k),b=Object.keys(v),w=XO(y,b),E=w.length;for(let m=0;m<E;m++){const g=w[m];if(k[g]===v[g])continue;const A=(h[g]??s)(k[g],v[g]);if(A!==0)return A}return 0}return v===!0&&xo(k)?0:1}return $s(v)?k===!0&&xo(v)?0:-1:Ci(k,v)}const s=Ai(l),c=Us(JO,Ku(a(s),Wu(l)),YO);function l(k,v){return k===null?-1:v===null?1:c(k,v)}const u=Ai(o),f=ra(xo,a(u)),p=Ai(i(o)),d=ra(kn,o),h={$id:qt,$comment:qt,$defs:f,$ref:qt,$schema:qt,const:s,contains:u,contentEncoding:qt,contentMediaType:qt,default:s,definitions:f,description:qt,else:u,examples:s,exclusiveMaximum:qt,exclusiveMinimum:qt,format:qt,if:u,maximum:qt,maxItems:qt,maxLength:qt,maxProperties:qt,minimum:qt,multipleOf:qt,not:u,pattern:qt,propertyNames:u,readOnly:qt,then:u,title:qt,writeOnly:qt,uniqueItems:ra(k=>k===!1,mg),minLength:Gu,minItems:Gu,minProperties:Gu,required:ra(fg,n),enum:ra(fg,i(l)),type:Ai((k,v)=>{const y=Array.isArray(k),b=Array.isArray(v);return!y&&!b?Ci(k,v):n(y?k:[k],b?v:[v])}),items:ra(k=>!Array.isArray(k)&&kn(k),Ku(o,Wu(o))),anyOf:p,allOf:p,oneOf:p,properties:f,patternProperties:f,additionalProperties:d,additionalItems:d,dependencies:ra(xo,a(Ai(Ku(o,n))))};return{compareSchemaValues:l,compareSchemaDefinitions:o}}function gg(e){return e}const yg=(e,t)=>e?yg(t%e,e):t,QO=(e,t)=>Math.abs(e*t)/yg(e,t);function ex(e,t){return e===t?e:`(?=.*(?:${e}))(?=.*(?:${t}))`}function Ju(e,t,r){const a=e.length,i=t.length;if(a>0&&i>0)for(let n=0;n<a;n++){const o=e[n];for(let s=0;s<i;s++)r(o,t[s])}}function Yu(e,t){return e||t}function vg(e){return(t,r)=>{const a={...t},i=Object.keys(r),n=i.length;for(let o=0;o<n;o++){const s=i[o];a[s]=t[s]===void 0?r[s]:e(t[s],r[s])}return a}}function tx(e){const t=new Map;for(const r of e)for(const a of r[0])t.set(a,r[1]);return t}function za(e,t,r){r===void 0||kn(r)?delete e[t]:e[t]=r}const rx=["properties","patternProperties","additionalProperties"];function bg(e){const t=Object.keys(e),r=t.length,a=[];for(let i=0;i<r;i++){const n=t[i];a.push({regExp:new RegExp(n),schema:e[n]})}return[a,t]}const kg=[[],[]];function wg(e,t,r){const a=r.length;for(let i=0;i<a;i++){const n=r[i];if(!n.regExp.test(t))continue;const o=n.schema;if(o===!1)return!0;e.push(o)}return!1}const nx=["items","additionalItems"],ax=["if","then","else"];function Sg(e,t){return t.if!==void 0&&(e.if=t.if),t.then!==void 0&&(e.then=t.then),t.else!==void 0&&(e.else=t.else),e}function Xu(e,t){if(e===t)return e;switch(e){case"number":if(t==="integer")return"integer";case"integer":if(t==="number")return"integer";default:return}}function $a(e,t,r){return[e,t,r]}function ix(e){const t=new Map;for(const[r,a,i]of e){const n=o=>{if(!i(o))throw new Error(`Schema keys '${r}' and '${a}' are conflicting (${r}: ${JSON.stringify(o[r])}, ${a}: ${JSON.stringify(o[a])})`)};for(const o of[[r,a],[a,r]]){let s=t.get(o[0]);s===void 0&&(s=[],t.set(o[0],s)),s.push({oppositeKey:o[1],check:n})}}return t}const ox=[$a("minimum","maximum",e=>e.maximum>=e.minimum),$a("exclusiveMinimum","maximum",e=>e.maximum>e.exclusiveMinimum),$a("minimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.minimum),$a("exclusiveMinimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.exclusiveMinimum),$a("minLength","maxLength",e=>e.maxLength>=e.minLength),$a("minItems","maxItems",e=>e.maxItems>=e.minItems),$a("minProperties","maxProperties",e=>e.maxProperties>=e.minProperties)];function sx({mergePatterns:e=ex,isSubRegExp:t=Object.is,intersectJson:r=HO,deduplicateJsonSchemaDef:a=gg,defaultMerger:i=gg,assigners:n=[],checks:o=ox,mergers:s}={}){function c(E){const m=E.length;let g=E[0];for(let S=1;S<m;S++){const A=y(g,E[S]);if(A===!1)return!1;kn(A)||(g=A)}return g}function l(E,m,g,S,A,x,O){if(E.length=0,g===!1)return!1;if(E.push(g),A!==void 0){if(A===!1)return!1;E.push(A)}if(wg(E,m,x))return!1;const _=E.length<2;if(O===!1){if(_)return;if(wg(E,m,S))return!1}else _&&O!==void 0&&E.push(O);return E.length===1?E[0]:c(E)}function u(E,m,g,S,A,x){const O=g.length;if(O>0&&A!==!1)if(x)Object.assign(E,m);else for(let C=0;C<O;C++){const _=g[C];S.has(_)||(E[_]=y(m[_],A))}return E}const f=(E,{properties:m={},patternProperties:g,additionalProperties:S=!0},{properties:A={},patternProperties:x,additionalProperties:O=!0})=>{const C=kn(S),_=kn(O);if(C&&_)return za(E,"properties",b(m,A)),za(E,"patternProperties",g&&x?b(g,x):g??x),delete E.additionalProperties,E;const F=y(S,O);za(E,"additionalProperties",F);const I={},j=Object.keys(m),$=j.length,[Y,Z]=g?bg(g):kg,[ie,P]=x?bg(x):kg,M=[],U=new Set,T=_?void 0:O;for(let J=0;J<$;J++){const Q=j[J];U.add(Q);const q=l(M,Q,m[Q],Y,A[Q],ie,T);q!==void 0&&(I[Q]=q)}const N=Object.keys(A),L=N.length,B=C?void 0:S;for(let J=0;J<L;J++){const Q=N[J];if(U.has(Q))continue;const q=l(M,Q,A[Q],ie,void 0,Y,B);q!==void 0&&(I[Q]=q)}za(E,"properties",I);let V={};const K=new Set;return Z.length>0&&P.length>0&&Ju(Z,P,(J,Q)=>{t(J,Q)&&K.add(J),t(Q,J)&&K.add(Q),V[e(J,Q)]=y(g[J],x[Q])}),V=u(V,g,Z,K,O,_),V=u(V,x,P,K,S,C),za(E,"patternProperties",V),E},p=(E,{items:m=[],additionalItems:g},{items:S=[],additionalItems:A})=>{const x=Array.isArray(m),O=Array.isArray(S),C=[];if(E.items=C,x&&O){const[_,F,I]=m.length<S.length?[m.length,g,S]:[S.length,A,m];let j=0;for(;j<_;j++)C.push(y(m[j],S[j]));if(F===!1)E.additionalItems=!1;else{const $=F===void 0||kn(F);for(;j<I.length;j++)C.push($?I[j]:y(I[j],F));za(E,"additionalItems",g!==void 0&&A!==void 0?y(g,A):g??A)}}else if(x||O){const[_,F,I]=x?[m,S,g]:[S,m,A];za(E,"additionalItems",I&&y(I,F));for(let j=0;j<_.length;j++)C.push(y(_[j],F))}else delete E.additionalItems,E.items=y(m,S);return E},d=(E,m,g)=>{Sg(E,m);const S=Sg({},g);return E.allOf===void 0?E.allOf=[S]:E.allOf=E.allOf.concat(S),E};function h(E,m){const g=[];if(Ju(E,m,(S,A)=>{try{g.push(y(S,A))}catch{}}),g.length===0)throw new Error(`No valid schema combinations could be produced for "${JSON.stringify(E)}" and "${JSON.stringify(m)}"; the merged result is empty`);return a(g)}const k=tx([[rx,f],[nx,p],[ax,d],...n]),v=ix(o);function y(E,m){if(E===!1||m===!1)return!1;if(kn(E))return kn(m)?!0:m;if(kn(m))return E;let g={...E};const S=new Set,A=new Set,x=Reflect.ownKeys(m),O=x.length;for(let C=0;C<O;C++){const _=x[C],F=m[_];if(F===void 0)continue;const I=v.get(_);if(I!==void 0){const Z=I.length;for(let ie=0;ie<Z;ie++){const P=I[ie];E[P.oppositeKey]!==void 0&&A.add(P.check)}}const j=E[_];if(j===void 0){g[_]=F;continue}const $=k.get(_);if($){S.add($);continue}const Y=w[_]??i;g[_]=Y(j,F)}for(const C of S)g=C(g,E,m);for(const C of A)C(g);return g}const b=vg(y),w={$id:i,$ref:i,$schema:i,$comment:i,$defs:b,definitions:b,type:(E,m)=>{if(E===m)return E;const g=Array.isArray(E),S=Array.isArray(m);if(!g&&!S){const A=Xu(E,m);if(A!==void 0)return A}else if(g||S){const A=new Set;if(g&&S)Ju(E,m,(O,C)=>{const _=Xu(O,C);_!==void 0&&A.add(_)});else{const O=g?E:m,C=g?m:E,_=O.length;for(let F=0;F<_;F++){const I=Xu(C,O[F]);I!==void 0&&A.add(I)}}const x=A.size;if(x===1)return A.values().next().value;if(x>1)return Array.from(A)}throw new Error(`It is not possible to create an intersection of the following incompatible types: ${E.toString()}, ${m.toString()}`)},default:i,description:i,title:i,const:i,format:i,contentEncoding:i,contentMediaType:i,not:(E,m)=>{const g=a([E,m]);return g.length===1?g[0]:{anyOf:g}},pattern:e,readOnly:Yu,writeOnly:Yu,enum:(E,m)=>{const g=r(E,m);if(g.length===0)throw new Error(`Intersection of the following enums is empty: "${JSON.stringify(E)}", "${JSON.stringify(m)}"`);return g},anyOf:h,oneOf:h,allOf:(E,m)=>a(E.concat(m)),propertyNames:y,contains:y,dependencies:vg((E,m)=>Array.isArray(E)?Array.isArray(m)?Hu(E,m):y(m,{required:E}):Array.isArray(m)?y(E,{required:m}):y(E,m)),examples:(E,m)=>{if(!Array.isArray(E)||!Array.isArray(m))throw new Error(`Value of the 'examples' field should be an array, but got "${JSON.stringify(E)}" and "${JSON.stringify(m)}"`);return Hu(E,m)},multipleOf:(E,m)=>{let g=1;for(;!Number.isInteger(E)||!Number.isInteger(m);)g*=10,E*=10,m*=10;return QO(E,m)/g},exclusiveMaximum:Math.min,maximum:Math.min,maxItems:Math.min,maxLength:Math.min,maxProperties:Math.min,exclusiveMinimum:Math.max,minimum:Math.max,minItems:Math.max,minLength:Math.max,minProperties:Math.max,uniqueItems:Yu,required:Hu,...s};return{mergeSchemaDefinitions:y,mergeArrayOfSchemaDefinitions:c}}function lx(e){const t=[],r=[e];for(;r.length>0;){const a=r.pop();if(typeof a=="boolean"||a.allOf===void 0){t.push(a);continue}const{allOf:i,...n}=a;t.push(n);for(let o=i.length-1;o>=0;o--)r.push(i[o])}return t}function cx(e){return t=>e(lx(t))}const{compareSchemaDefinitions:ux,compareSchemaValues:fx}=ZO(),{mergeArrayOfSchemaDefinitions:dx}=sx({intersectJson:WO(fx),deduplicateJsonSchemaDef:dg(ux)}),Eg=cx(dx);function tr(e,t,r={},a,i,n=!1){return wn(e,t,r,a,void 0,void 0,i,n)[0]}function Cg(e){return typeof e!="boolean"?e:e?{}:{not:{}}}function px(e,t,r,a,i,n,o){const{if:s,then:c,else:l,...u}=t,f=e.isValid(s,n||{},r);let p=[u],d=[];if(a){if(c&&typeof c!="boolean"){const h=c;d=d.concat(wn(e,h,r,n,a,i,o))}if(l&&typeof l!="boolean"){const h=l;d=d.concat(wn(e,h,r,n,a,i,o))}}else{const h=f?c:l;if(h!==void 0){const k=Cg(h);d=d.concat(wn(e,k,r,n,a,i,o))}}return d.length&&(p=d.map(h=>qn(u,h))),p.flatMap(h=>wn(e,h,r,n,a,i,o))}function Ag(e){return e.reduce((r,a)=>a.length>1?a.flatMap(i=>Yh(r.length,n=>[...r[n]].concat(i))):(r.forEach(i=>i.push(a[0])),r),[[]])}function _g(e,t){return Object.keys(e.patternProperties).filter(r=>RegExp(r).test(t)).reduce((r,a)=>(vt(r,[a],e.patternProperties[a]),r),{})}function mx(e,t,r,a,i,n,o,s){const c=Og(e,t,r,a,i,n,o,s);if(c.length>1||c[0]!==t)return c;if(tu in t)return Tg(e,t,r,a,i,n,o).flatMap(u=>wn(e,u,r,n,a,i,o));if(vn in t&&Array.isArray(t[vn])){const l=t.allOf.map(f=>wn(e,f,r,n,a,i,o));return Ag(l).map(f=>({...t,allOf:f}))}return[t]}function Og(e,t,r,a,i,n,o,s){const c=na(t,r,i,void 0,s);return c!==t?wn(e,c,r,n,a,i,o,s):[t]}function na(e,t,r,a,i,n=!1){if(!_e(e))return e;let o=e,s=a;if(gt in o){const{$ref:c,...l}=o;if(r.includes(c))return n?{...o,[iu]:!0}:o;r.push(c),o={...Co(c,t,s),...l,[Ss]:c},dt in o&&(s=o[dt])}if(Je in o){const c=[],l=IO(o[Je],(u,f,p)=>{const d=[...r];u[p]=na(f,t,d,s,i,!i),c.push(d)},{});I_(r,lg(A_(c))),o={...o,[Je]:l}}if(yi in o&&!Array.isArray(o.items)&&typeof o.items!="boolean"&&(o={...o,items:na(o.items,t,r,s,i)}),i){let c,l;Ve in e&&Array.isArray(e[Ve])?(c=Ve,l=o[Ve]):Fe in e&&Array.isArray(e[Fe])&&(c=Fe,l=o[Fe]),c&&l&&(o={...o,[c]:l.map(u=>na(u,t,r,s,i))})}return Xe(e,o)?e:o}function hx(e,t,r,a,i){const n={...t,properties:{...t.properties}},o=a&&_e(a)?a:{};return Object.keys(o).forEach(s=>{if(!(s in n.properties)){if(nu in n){const c=_g(n,s);if(!Dt(c)){n.properties[s]=tr(e,{[vn]:Object.values(c)},r,se(o,[s]),i),n.properties[s][Xn]=!0;return}}if(gi in n&&n.additionalProperties!==!1){let c;typeof n.additionalProperties!="boolean"?gt in n.additionalProperties?c=tr(e,{[gt]:se(n.additionalProperties,[gt])},r,se(o,[s]),i):"type"in n.additionalProperties?c={...n.additionalProperties}:Ve in n.additionalProperties||Fe in n.additionalProperties?c={type:"object",...n.additionalProperties}:c={type:Oo(se(o,[s]))}:c={type:Oo(se(o,[s]))},n.properties[s]=c,n.properties[s][Xn]=!0}else n.properties[s]={type:"null"},n.properties[s][Xn]=!0}}),n}function gx(e){return Eg(e)}function wn(e,t,r,a,i=!1,n=[],o,s){return _e(t)?mx(e,t,r,i,n,a,o,s).flatMap(l=>{var u;let f=l;if(ru in f)return px(e,f,r,i,n,a,o);if(vn in f){if(i){const{allOf:d,...h}=f;return[...d,h]}try{const d=[],h=[],k={};(u=f.allOf)===null||u===void 0||u.forEach(v=>{if(typeof v=="object"&&v.contains)d.push(v);else{h.push(v);for(const y of Object.getOwnPropertySymbols(v))y in k||(k[y]=v[y])}}),d.length&&(f={...f,allOf:h}),f=o?o(f):gx(f);for(const v of Object.getOwnPropertySymbols(k))f[v]=k[v];d.length&&(f.allOf=d)}catch(d){console.warn(`could not merge subschemas in allOf:
|
|
33
|
-
`,d);const{allOf:h,...k}=f;return k}}return Je in f&&nu in f&&(f=Object.keys(f.properties).reduce((d,h)=>{const k=_g(d,h);return Dt(k)||(d.properties[h]=tr(e,{allOf:[d.properties[h],...Object.values(k)]},r,se(a,[h]),o)),d},{...f,properties:{...f.properties}})),nu in f||gi in f&&f.additionalProperties!==!1?hx(e,f,r,a,o):f}):[{}]}function yx(e,t,r,a,i){let n;const{oneOf:o,anyOf:s,...c}=t;if(Array.isArray(o)?n=o:Array.isArray(s)&&(n=s),n){const l=i===void 0&&a?{}:i,u=qr(t);n=n.map(p=>na(p,r,[]));const f=zs(e,l,n,r,u);if(a){const p=xg(n,!1,r);return zs(e,l,p,r,u),n.map(d=>qn(c,d))}return[qn(c,n[f])]}return[t]}function xg(e,t=!1,r){return e.map(a=>{if(!_e(a))return Cg(a);const i=t&&r?na(a,r,[]):a;return i.additionalProperties===!1?{...i,additionalProperties:!0}:i})}function Tg(e,t,r,a,i,n,o){const{dependencies:s,...c}=t;return yx(e,c,r,a,n).flatMap(u=>Pg(e,s,u,r,a,i,n,o))}function Pg(e,t,r,a,i,n,o,s){let c=[r];for(const l in t)if((i||se(o,[l])!==void 0)&&(!r.properties||l in r.properties)){const[u,f]=ju(l,t);return Array.isArray(f)?c[0]=vx(r,f):_e(f)&&(c=bx(e,r,a,l,f,i,n,o,s)),c.flatMap(p=>Pg(e,u,p,a,i,n,o,s))}return c}function vx(e,t){if(!t)return e;const r=Array.isArray(e.required)?Array.from(new Set([...e.required,...t])):t;return{...e,required:r}}function bx(e,t,r,a,i,n,o,s,c){return wn(e,i,r,s,n,o,c).flatMap(u=>{const{oneOf:f,...p}=u,d=qn(t,p);if(f===void 0)return d;const h=f.map(v=>typeof v=="boolean"||!(gt in v)?[v]:Og(e,v,r,n,o,s));return Ag(h).flatMap(v=>kx(e,d,r,a,v,n,o,s,c))})}function kx(e,t,r,a,i,n,o,s,c){const l=i.filter(u=>{if(typeof u=="boolean"||!(u!=null&&u.properties))return!1;const{[a]:f}=u.properties;if(f){const p={type:"object",properties:{[a]:f}};return e.isValid(p,s,r)||n}return!1});return!n&&l.length!==1?(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[t]):l.flatMap(u=>{const f=u,[p]=ju(a,f.properties),d={...f,properties:p};return wn(e,d,r,s,n,o,c).map(k=>qn(t,k))})}function To(e,t,r,a,i,n={},o){if(Array.isArray(r[i])){const c=qr(r)||a,l=r[i].map(f=>tr(e,f,t,n,o)),u=se(n,c);if(u!==void 0)return l.find(f=>Xe(se(f,[Je,c,Na],se(f,[Je,c,cr])),u))}}function Ig(e,t,r,a,i){let n=r;if(Ke(r,gt)&&(n=tr(e,r,t,void 0,i)),Dt(a))return n;const o=Array.isArray(a)?[...a]:a.split("."),[s,...c]=o;if(s!==void 0&&s!==""&&Ke(n,s))return n=se(n,s),Ig(e,t,n,c,i)}function Bs(e,t,r,a,i,n){const o=Ig(e,t,r,a,n);return o===void 0?i:o}const Ng={title:"!@#$_UNKNOWN_$#@!"};function wx(e,t,r,a,i={},n){const o=Array.isArray(a)?[...a]:a.split(".");let s=r;const c=o.pop(),l=String(c);o.length&&o.forEach(d=>{s=Bs(e,t,s,[Je,d],{},n),Ke(s,Fe)?s=To(e,t,s,l,Fe,se(i,d),n):Ke(s,Ve)&&(s=To(e,t,s,l,Ve,se(i,d),n))}),Ke(s,Fe)?s=To(e,t,s,l,Fe,i,n):Ke(s,Ve)&&(s=To(e,t,s,l,Ve,i,n));let u=Bs(e,t,s,[Je,c],Ng,n);u===Ng&&(u=void 0);const f=Bs(e,t,s,Am,[],n);let p;return u&&Array.isArray(f)&&(p=f.includes(l)),{field:u,isRequired:p}}function Sx(e,t,r,a){var i=-1,n=e==null?0:e.length;for(a&&n&&(r=e[++i]);++i<n;)r=t(r,e[i],i,e);return r}function Ex(e,t){return function(r,a){if(r==null)return r;if(!La(r))return e(r,a);for(var i=r.length,n=-1,o=Object(r);++n<i&&a(o[n],n,o)!==!1;);return r}}var Dg=Ex(Xh);function Cx(e,t,r,a,i){return i(e,function(n,o,s){r=a?(a=!1,n):t(r,n,o,s)}),r}function Ax(e,t,r){var a=Bt(e)?Sx:Cx,i=arguments.length<3;return a(e,Bu(t),r,i,Dg)}const _x={type:"object",$id:Gw,properties:{__not_really_there__:{type:"number"}}};function Zu(e,t,r,a,i){let n=0;return r&&(Ye(r.properties)?n+=Ax(r.properties,(o,s,c)=>{const l=se(a,c);if(typeof s=="boolean")return o;if(Ke(s,gt)){const u=tr(e,s,t,l,i);return o+Zu(e,t,u,l||{},i)}if((Ke(s,Fe)||Ke(s,Ve))&&l){const u=Ke(s,Fe)?Fe:Ve,f=qr(s);return o+_i(e,t,l,se(s,u),-1,f,i)}if(s.type==="object"){const u=Ye(l)?1:0;return o+u+Zu(e,t,s,l,i)}if(s.type===Oo(l)){let u=o+1;return s.default?u+=l===s.default?1:-1:s.const&&(u+=l===s.const?1:-1),u}return o},0):ta(r.type)&&r.type===Oo(a)&&(n+=1)),n}function _i(e,t,r,a,i=-1,n,o){const s=a.map(p=>na(p,t,[])),c=ug(r,a,n);if(cg(c))return c;const l=s.reduce((p,d,h)=>(zs(e,r,[_x,d],t,n)===1&&p.push(h),p),[]);if(l.length===1)return l[0];l.length||Yh(s.length,p=>l.push(p));const u=new Set,{bestIndex:f}=l.reduce((p,d)=>{const{bestScore:h}=p,k=s[d],v=Zu(e,t,k,r,o);return u.add(v),v>h?{bestIndex:d,bestScore:v}:p},{bestIndex:i,bestScore:0});return u.size===1&&i>=0?i:f}function Fg(e){const t=e[cr],r=zr(e);return _e(t)&&ta(t==null?void 0:t.$data)&&r!=="object"&&r!=="array"}function Mg(e){return Array.isArray(e.enum)&&e.enum.length===1||cr in e}function Qu(e){return Array.isArray(e.items)&&e.items.every(t=>_e(t))}function Oi(e){return e==null}function Po(e,t,r=!1,a=!1,i=!1){if(Array.isArray(t)){const n=Array.isArray(e)?e:[],o=i?n:t,s=i?t:n,c=o.map((l,u)=>s[u]!==void 0?Po(n[u],t[u],r,a,i):l);return(r||i)&&c.length<s.length&&c.push(...s.slice(c.length)),c}if(_e(t)){const n=Object.assign({},e);return Object.keys(t).reduce((o,s)=>{var c;const l=se(t,s),u=_e(e)&&s in e,f=s in t,p=(c=se(e,s))!==null&&c!==void 0?c:{},d=u&&_e(p)&&Object.values(p).some(v=>_e(v)),h=u&&_e(se(e,s)),k=f&&_e(l);return h&&k&&!d?(o[s]={...se(e,s),...l},o):(o[s]=Po(se(e,s),l,r,a,i&&(u||!f)),n)},n)}return a&&(e!==void 0&&Oi(t)||typeof t=="number"&&Number.isNaN(t))||i&&!Oi(t)?e:t}function aa(e,t,r=!1){return Object.keys(t).reduce((a,i)=>{const n=e?e[i]:{},o=t[i];if(e&&i in e&&_e(o))a[i]=aa(n,o,r);else if(r&&Array.isArray(n)&&Array.isArray(o)){let s=o;r==="preventDuplicates"&&(s=o.reduce((c,l)=>(n.includes(l)||c.push(l),c),[])),a[i]=n.concat(s)}else a[i]=o;return a},{...e})}function Ox(e){if(Kw in e&&Array.isArray(e.enum)&&e.enum.length===1)return e.enum[0];if(cr in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function xx(e,t){const r=new Map(e.map(n=>[String(n.value),n])),a=new Set(t.filter(n=>n!=="*").map(String)),i=e.filter(n=>!a.has(String(n.value)));return t.flatMap(n=>{if(n==="*")return i;const o=r.get(String(n));return o?[o]:[]})}function Ua(e,t){if(e.enum){let n,o;if(t){const{enumNames:c,enumOrder:l}=be(t);n=c,o=l}let s=e.enum.map((c,l)=>({label:Array.isArray(n)?n[l]||String(c):(n==null?void 0:n[String(c)])||String(c),value:c}));return o&&(s=xx(s,o)),s}let r,a;e.anyOf?(r=e.anyOf,a=t==null?void 0:t.anyOf):e.oneOf&&(r=e.oneOf,a=t==null?void 0:t.oneOf);let i=qr(e);if(t){const{optionsSchemaSelector:n=i}=be(t);i=n}return r==null?void 0:r.map((n,o)=>{var s,c,l;const{title:u}=be(a==null?void 0:a[o]),f=n;let p,d=u;if(i){const h=se(f,[Je,i],{});p=se(h,Na,se(h,cr)),d=(c=(s=d??(h==null?void 0:h.title))!==null&&s!==void 0?s:f.title)!==null&&c!==void 0?c:String(p)}else p=Ox(f),d=(l=d??f.title)!==null&&l!==void 0?l:String(p);return{schema:f,label:d,value:p}})}function Vs(e,t,r={},a){const i=tr(e,t,r,void 0,a),n=i.oneOf||i.anyOf;return Array.isArray(i.enum)?!0:Array.isArray(n)?n.every(o=>typeof o!="boolean"&&Mg(o)):!1}function ef(e,t,r,a){return!t.uniqueItems||!t.items||typeof t.items=="boolean"?!1:Vs(e,t.items,r,a)}const Tx=["string","number","integer","boolean","null"];var xi;(function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"})(xi||(xi={}));function tf(e,t=xi.Ignore,r=-1){if(r>=0){if(Array.isArray(e.items)&&r<e.items.length){const a=e.items[r];if(typeof a!="boolean")return a}}else if(e.items&&!Array.isArray(e.items)&&typeof e.items!="boolean")return e.items;return t!==xi.Ignore&&_e(e.additionalItems)?e.additionalItems:{}}function jg(e,t){const{default:r,type:a}=e;return Array.isArray(a)&&a.includes("null")&&Dt(t)&&r===null?null:t}function Lg(e,t,r,a,i,n=[],o={},s=!1,c=!1){const{emptyObjectFields:l="populateAllDefaults"}=o;if(a===!0||s)e[t]=r;else if(a==="excludeObjectChildren")(c&&r!==void 0||!_e(r)||!Dt(r))&&(e[t]=r);else if(l!=="skipDefaults"){const u=i===void 0?n.includes(t):i;_e(r)?l==="skipEmptyDefaults"?Dt(r)||(e[t]=r):(!Dt(r)||n.includes(t))&&(u||l!=="populateRequiredDefaults")&&(e[t]=r):r!==void 0&&(l==="populateAllDefaults"||l==="skipEmptyDefaults"||u&&n.includes(t))&&(e[t]=r)}}function ia(e,t,r={}){const{parentDefaults:a,rawFormData:i,rootSchema:n={},includeUndefinedValues:o=!1,_recurseList:s=[],experimental_defaultFormStateBehavior:c,experimental_customMergeAllOf:l,required:u,shouldMergeDefaultsIntoFormData:f=!1,initialDefaultsGenerated:p}=r;let d=_e(i)?i:{};const h=_e(t)?t:{};let k=a;const v=k&&(c==null?void 0:c.nestedDefaultsPrecedence)==="ancestorWins";let y=null,b=c,w=s;if(h[cr]!==void 0&&(c==null?void 0:c.constAsDefaults)!=="never"&&!Fg(h))k=h[cr];else if(_e(k)&&_e(h.default)&&!h[Ve]&&!h[Fe]&&!h[gt])v?k=aa(h.default,k):k=aa(k,h.default);else if(Na in h&&!v&&!h[Ve]&&!h[Fe]&&!h[gt])k=h.default;else if(gt in h){const g=h[gt];s.includes(g)||(w=s.concat(g),y=Co(g,n));const S=i===void 0||_e(i)&&Dt(i);y&&!k&&S&&(k=h.default),f&&y&&!_e(i)&&(d=i)}else if(tu in h){const g={...Rg(e,h,r,k),...d};[y]=Tg(e,h,n,!1,[],g,l)}else if(Qu(h)&&!v)k=h.items.map((g,S)=>ia(e,g,{rootSchema:n,includeUndefinedValues:o,_recurseList:s,experimental_defaultFormStateBehavior:c,experimental_customMergeAllOf:l,parentDefaults:Array.isArray(a)?a[S]:void 0,rawFormData:d,required:u,shouldMergeDefaultsIntoFormData:f}));else if(Fe in h){const{oneOf:g,...S}=h;if(g.length===0)return;const A=qr(h),{type:x="null"}=S;!Array.isArray(x)&&Tx.includes(x)&&(b==null?void 0:b.constAsDefaults)==="skipOneOf"&&(b={...b,constAsDefaults:"never"}),y=g[_i(e,n,i??h.default,g,0,A,l)],y=qn(S,y)}else if(Ve in h){const{anyOf:g,...S}=h;if(g.length===0)return;const A=qr(h);y=g[_i(e,n,i??h.default,g,0,A,l)],y=qn(S,y)}if(y)return ia(e,y,{rootSchema:n,includeUndefinedValues:o,_recurseList:w,experimental_defaultFormStateBehavior:b,experimental_customMergeAllOf:l,parentDefaults:k,rawFormData:i??d,required:u,shouldMergeDefaultsIntoFormData:f,initialDefaultsGenerated:p});k===void 0&&(k=h.default);const E=Rg(e,h,r,k);let m=E??k;if(f){const{arrayMinItems:g={}}=c||{},{mergeExtraDefaults:S}=g,A=rf(e,h,n,i,c,l);(!_e(i)||vn in h)&&(m=Po(m,A,S,!0))}return m}function rf(e,t,r,a,i,n){const o=(i==null?void 0:i.allOf)==="populateDefaults"&&vn in t,s=o?tr(e,t,r,a,n):t,c=!Mg(s)&&Vs(e,s,r,n);let l=a;if(c){const f=Ua(s);l=(f==null?void 0:f.some(d=>Xe(d.value,a)))?a:void 0}return s[cr]&&(i==null?void 0:i.constAsDefaults)==="always"?l=s.const:_e(l)&&_e(s.properties)&&(l=Object.keys(s.properties).reduce((f,p)=>{const d=se(s,[Je,p],{});return p in f&&(o||_e(d)&&vn in d)&&(f[p]=rf(e,d,r,se(f,p),i,n)),f},{...l})),l}function Px(e,t,{rawFormData:r,rootSchema:a={},includeUndefinedValues:i=!1,_recurseList:n=[],experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:s,required:c,shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u}={},f){{const p=_e(r)?r:{},d=t,k=(o==null?void 0:o.allOf)==="populateDefaults"&&vn in d||(o==null?void 0:o.emptyObjectFields)!=="skipEmptyDefaults"&&ru in d?tr(e,d,a,p,s):d,v=k[cr],y=Object.keys(k.properties||{}).reduce((b,w)=>{var E;const m=se(k,[Je,w],{}),g=_e(v)&&v[w]!==void 0,S=(_e(m)&&cr in m||g)&&(o==null?void 0:o.constAsDefaults)!=="never"&&!Fg(m),A=ia(e,m,{rootSchema:a,_recurseList:n,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:s,includeUndefinedValues:i===!0,parentDefaults:se(f,[w]),rawFormData:se(p,[w]),required:(E=k.required)===null||E===void 0?void 0:E.includes(w),shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u});return Lg(b,w,A,i,c,k.required,o,S,(m==null?void 0:m.type)==="null"),b},{});if(k.additionalProperties&&!u){const b=_e(k.additionalProperties)?k.additionalProperties:{},w=new Set,E=[];Object.keys(p).filter(m=>!k.properties||!k.properties[m]).forEach(m=>{w.add(m),E.push(m)}),_e(f)&&E.length===0&&Object.keys(f).filter(m=>!k.properties||!k.properties[m]).forEach(m=>w.add(m)),w.forEach(m=>{var g;const S=ia(e,b,{rootSchema:a,_recurseList:n,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:s,includeUndefinedValues:i===!0,parentDefaults:se(f,[m]),rawFormData:se(p,[m]),required:(g=k.required)===null||g===void 0?void 0:g.includes(m),shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u});Lg(y,m,S,i,c,E)})}return jg(t,y)}}function Ix(e,t,{rawFormData:r,rootSchema:a={},_recurseList:i=[],experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:o,required:s,requiredAsRoot:c=!1,shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u}={},f){var p,d;let h=f;const k=t,v=(p=n==null?void 0:n.arrayMinItems)!==null&&p!==void 0?p:{},{populate:y,mergeExtraDefaults:b}=v,w=y==="never",E=y==="requiredOnly",m=y==="all"||!w&&!E,g=(d=v==null?void 0:v.computeSkipPopulate)!==null&&d!==void 0?d:(()=>!1),A=(n==null?void 0:n.emptyObjectFields)==="skipEmptyDefaults"?void 0:[];if(Array.isArray(h)&&(h=h.map((C,_)=>{const F=tf(k,xi.Fallback,_),I=Array.isArray(r)?r[_]:void 0;return ia(e,F,{rootSchema:a,_recurseList:i,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:o,parentDefaults:C,rawFormData:I,required:s,shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u})})),Array.isArray(r)){const C=tf(k);if(w)h=r;else{const _=r.map((I,j)=>ia(e,C,{rootSchema:a,_recurseList:i,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:o,rawFormData:I,parentDefaults:se(h,[j]),required:s,shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u}));h=Po(h,_,(E&&s||m)&&b)}}const x=Array.isArray(h)?h.length:0;if(w)return l&&!s?h:h??A;if(E&&!s)return h||void 0;let O;if(!k.minItems||ef(e,k,a,o)||g(e,k,a)||k.minItems<=x)O=h||!s&&!c?h:A;else{const C=h||[],_=tf(k,xi.Invert),F=_.default,I=Array.from({length:k.minItems-x},()=>ia(e,_,{parentDefaults:F,rootSchema:a,_recurseList:i,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:o,required:s,shouldMergeDefaultsIntoFormData:l}));O=C.concat(I)}return jg(t,O)}function Rg(e,t,r={},a){switch(zr(t)){case"object":return Px(e,t,r,a);case"array":return Ix(e,t,r,a);default:return}}function qg(e,t,r,a,i=!1,n,o,s){if(!_e(t))throw new Error(`Invalid schema: ${t}`);const c=tr(e,t,a,r,o),l=ia(e,c,{rootSchema:a,includeUndefinedValues:i,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:o,rawFormData:r,shouldMergeDefaultsIntoFormData:!0,initialDefaultsGenerated:s,requiredAsRoot:!0});if(c.type!=="object"&&_e(c.default))return{...l,...r};if(_e(r)||Array.isArray(r)){const{mergeDefaultsIntoFormData:u}=n||{},f=u==="useDefaultIfFormDataUndefined",p=rf(e,c,a??c,r,n,o);return Po(l,p,!0,f,!0)}return l}function zg(e={}){return"widget"in be(e)&&be(e).widget!=="hidden"}function $g(e,t,r={},a,i){if(r[su]==="files")return!0;if(t.items){const n=tr(e,t.items,a,void 0,i);return n.type==="string"&&n.format==="data-url"}return!1}function Nx(e,t,r={},a,i,n){const o=be(r,i),{label:s=!0}=o;let c=!!s;if(c){const l=zr(t),u=!!t[Xn];l==="array"&&(c=u||ef(e,t,a,n)||$g(e,t,r,a,n)||zg(r)),l==="object"&&(c=u),l==="boolean"&&r&&!r[su]&&(c=!1),r!=null&&r[Xw]&&(c=!1)}return c}function Ug(e,t,r){for(var a=-1,i=t.length,n={};++a<i;){var o=t[a],s=Os(e,o);r(s,o)&&qu(n,bi(o,e),s)}return n}function Dx(e,t){return Ug(e,t,function(r,a){return ig(e,a)})}var Bg=$h(function(e,t){return e==null?{}:Dx(e,t)});function Fx(e,t){if(t.length===0&&typeof e!="object")return e;const r=Bg(e,t);return Array.isArray(e)?Object.keys(r).map(a=>r[a]):r}function Mx(e,t){const r=(i,n)=>typeof i!="object"||Dt(i)||n&&!Dt(i),a=(i,n=[],o=[[]])=>{const s=Object.keys(i);return s.forEach(c=>{const l=i[c];if(typeof l=="object"){const u=o.map(f=>[...f,c]);l[ou]&&l[ks]!==""?n.push(l[ks]):a(l,n,u)}else c===ks&&l!==""&&o.forEach(u=>{const f=se(t,u),p=s.length===1;(r(f,p)||Array.isArray(f)&&f.every(d=>r(d,p)))&&n.push(u)})}),n};return a(e)}function Vg(e){return Oi(e)||e===""?!0:Array.isArray(e)?e.length===0:_e(e)?Object.values(e).every(Vg):!1}function jx(e,t){return t?t(e):Eg(e)}function Lx(e,t,r={},a,i){function n(h){return _e(h)}function o(h){return _e(h)}function s(h,k,v){var y;const{properties:b,additionalProperties:w,patternProperties:E,propertyNames:m}=h,g=new Set((y=h.required)!==null&&y!==void 0?y:[]);function S(x,O,C,_=!1){var F;const I=d(O,C,v[x]);if(!_&&_e(I)){let j=o(O)?O:{};j.$ref!==void 0&&(j=Co(j.$ref,r));const $=new Set((F=j.required)!==null&&F!==void 0?F:[]);if(Object.entries(I).every(([Z,ie])=>!$.has(Z)&&Vg(ie)))return}I!==void 0&&(v[x]=I)}if(b!==void 0)for(const[x,O]of Object.entries(b))S(x,O,k[x],g.has(x));let A;if(E!==void 0){A=[];const x=Object.entries(E).map(([C,_])=>[new RegExp(C),_]),O=new Set(Object.keys(b??{}));for(const[C,_]of Object.entries(k))if(!O.has(C)){const F=x.find(([I])=>I.test(C));F===void 0?A.push(C):S(C,F[1],_)}}if(w!==void 0&&w!==!1){const x=w;if(A!==void 0)for(const O of A)S(O,x,k[O]);else{const O=new Set(Object.keys(b??{}));for(const[C,_]of Object.entries(k))O.has(C)||S(C,x,_)}}if(m!==void 0)for(const[x,O]of Object.entries(k))v[x]=O;return v}function c(h,k,v){const{items:y,additionalItems:b}=h;if(y!==void 0)if(Array.isArray(y))for(let w=0;w<y.length;w+=1)v.push(d(y[w],k[w]));else for(let w=0;w<k.length;w+=1)v.push(d(y,k[w]));if(b)for(let w=v.length;w<k.length;w+=1)v.push(d(b,k[w]));return v}function l(h,k,v){const{if:y,then:b,else:w}=h;if(y===void 0)return v;const m=(o(y)?e.isValid(y,k,r):y)?b:w;return m===void 0?v:d(m,k,v)}function u(h,k,v,y){if(!Array.isArray(h)||Vs(e,k,r,i))return y;const b=xg(h,!0,r),w=_i(e,r,v,b,0,qr(k),i),E=h[w],m=_e(E)?na(E,r,[]):b[w];return d(m,v,y)}function f(h,k,v){const{anyOf:y}=h;if(!Array.isArray(y))return v;if(k===void 0||Array.isArray(k)&&k.length===0||_e(k)&&Object.keys(k).length===0){let b=v;for(const w of y)b=d(w,k,b);return b}return u(y,h,k,v)}function p(h,k,v){const{dependencies:y}=h;if(y===void 0||!n(k))return v;let b=v;for(const[w,E]of Object.entries(y))w in k&&!Array.isArray(E)&&(b=d(E,k,b));return b}function d(h,k,v){if(k===void 0||h===!1)return;if(h===!0||Dt(h))return k;let y=h;const{$ref:b,allOf:w}=y;if(b!==void 0)return d(Co(b,r),k,v);if(w){y=jx(y,i);const g=y.allOf;if(g)for(let S=0;S<g.length;S++)v=d(g[S],k,v)}let E=f(y,k,u(y.oneOf,y,k,v));const m=zr(y);if(m==="object"){if(!n(k))return;E=s(y,k,n(E)?E:{})}else if(m==="array"){if(!Array.isArray(k))return;E=c(y,k,Array.isArray(E)?E:[])}else E===void 0&&(E=k);return p(y,k,l(y,k,E))}return d(t,a)}const $r=Symbol("no Value");function Hg(e){if(Array.isArray(e.enum))return e.enum;const t=e.oneOf||e.anyOf;if(!Array.isArray(t))return;const r=t.map(a=>cr in a?a[cr]:Array.isArray(a.enum)&&a.enum.length===1?a.enum[0]:$r).filter(a=>a!==$r);return r.length>0?r:void 0}function Rx(e,t){const r=Hg(e);if(!r||r.some(i=>Xe(i,t)))return $r;const a=se(e,Na,$r);return a!==$r&&r.some(i=>Xe(i,a))?a:r.length===1?r[0]:void 0}function nf(e,t,r,a,i={},n){let o;if(Ke(r,Je)){const s={};if(Ke(a,Je)){const u=se(a,Je,{});Object.keys(u).forEach(f=>{Ke(i,f)&&(s[f]=void 0)})}const c=Object.keys(se(r,Je,{})),l={};c.forEach(u=>{const f=se(i,u);let p=se(a,[Je,u],{}),d=se(r,[Je,u],{});Ke(p,gt)&&(p=tr(e,p,t,f,n)),Ke(d,gt)&&(d=tr(e,d,t,f,n));const h=se(p,"type"),k=se(d,"type");if(!h||h===k)if(Ke(s,u)&&delete s[u],k==="object"||k==="array"&&Array.isArray(f)){const v=nf(e,t,d,p,f,n);(v!==void 0||k==="array")&&(l[u]=v)}else{const v=se(d,Na,$r),y=se(p,Na,$r);v!==$r&&v!==f&&(y===f?s[u]=v:se(d,"readOnly")===!0&&(s[u]=void 0));const b=se(d,cr,$r),w=se(p,cr,$r);if(b!==$r&&b!==f&&(s[u]=w===f?b:void 0),Ke(i,u)){const E=Rx(d,f);E!==$r&&(s[u]=E)}}}),o={...typeof i=="string"||Array.isArray(i)?void 0:i,...s,...l}}else if(se(a,"type")==="array"&&se(r,"type")==="array"&&Array.isArray(i)){let s=se(a,"items"),c=se(r,"items");if(typeof s=="object"&&typeof c=="object"&&!Array.isArray(s)&&!Array.isArray(c)){Ke(s,gt)&&(s=tr(e,s,t,i,n)),Ke(c,gt)&&(c=tr(e,c,t,i,n));const l=se(s,"type"),u=se(c,"type");if(!l||l===u){const f=se(r,"maxItems",-1);if(u==="object")o=i.reduce((p,d)=>{const h=nf(e,t,c,s,d,n);return h!==void 0&&(f<0||p.length<f)&&p.push(h),p},[]);else{const p=Hg(c),d=p?i.filter(h=>p.some(k=>Xe(k,h))):i;o=f>0&&d.length>f?d.slice(0,f):d}}}else typeof s=="boolean"&&typeof c=="boolean"&&s===c&&(o=i)}return o}function oa(e,t,r,a,i,n=[],o){if(gt in t||tu in t||vn in t||ru in t){const c=tr(e,t,a,i,o);if(n.findIndex(u=>Xe(u,c))===-1)return oa(e,c,r,a,i,n.concat(c),o)}let s={[ks]:r.replace(/^\./,"")};if(Fe in t||Ve in t){const c=Fe in t?t.oneOf:t.anyOf,l=qr(t),u=_i(e,a,i,c,0,l,o),f=c[u];s={...s,...oa(e,f,r,a,i,n,o)}}if(gi in t&&t[gi]!==!1){vt(s,ou,!0);const c=Ye(t[gi])?t[gi]:{},l=se(t,Je,{});for(const u of Object.keys(i??{}))u in l||(s[u]=oa(e,c,`${r}.${u}`,a,se(i,[u]),n,o))}if(yi in t&&Array.isArray(i)){const{items:c,additionalItems:l}=t;Array.isArray(c)?i.forEach((u,f)=>{c[f]?s[f]=oa(e,c[f],`${r}.${f}`,a,u,n,o):l?s[f]=oa(e,l,`${r}.${f}`,a,u,n,o):console.warn(`Unable to generate path schema for "${r}.${f}". No schema defined for it`)}):i.forEach((u,f)=>{s[f]=oa(e,c,`${r}.${f}`,a,u,n,o)})}else if(Je in t)for(const c in t.properties){const l=se(t,[Je,c],{});s[c]=oa(e,l,`${r}.${c}`,a,se(i,[c]),n,o)}return s}function qx(e,t,r="",a,i,n){return oa(e,t,r,a,i,void 0,n)}class zx{constructor(t,r,a,i){(r==null?void 0:r[so])===Es?this.rootSchema=Mu(r,se(r,dt,"#")):this.rootSchema=r,this.validator=t,this.experimental_defaultFormStateBehavior=a,this.experimental_customMergeAllOf=i}getRootSchema(){return this.rootSchema}getValidator(){return this.validator}doesSchemaUtilsDiffer(t,r,a={},i){return!t||!r?!1:this.validator!==t||!Xe(this.rootSchema,r)||!Xe(this.experimental_defaultFormStateBehavior,a)||this.experimental_customMergeAllOf!==i}findFieldInSchema(t,r,a){return wx(this.validator,this.rootSchema,t,r,a,this.experimental_customMergeAllOf)}findSelectedOptionInXxxOf(t,r,a,i){return To(this.validator,this.rootSchema,t,r,a,i,this.experimental_customMergeAllOf)}getDefaultFormState(t,r,a=!1,i){return qg(this.validator,t,r,this.rootSchema,a,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf,i)}getDisplayLabel(t,r,a){return Nx(this.validator,t,r,this.rootSchema,a,this.experimental_customMergeAllOf)}getClosestMatchingOption(t,r,a,i){return _i(this.validator,this.rootSchema,t,r,a,i,this.experimental_customMergeAllOf)}getFirstMatchingOption(t,r,a){return zs(this.validator,t,r,this.rootSchema,a)}getFromSchema(t,r,a){return Bs(this.validator,this.rootSchema,t,r,a,this.experimental_customMergeAllOf)}isFilesArray(t,r){return $g(this.validator,t,r,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(t){return ef(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(t){return Vs(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}omitExtraData(t,r){return Lx(this.validator,t,this.rootSchema,r)}retrieveSchema(t,r,a){return tr(this.validator,t,this.rootSchema,r,this.experimental_customMergeAllOf,a)}sanitizeDataForNewSchema(t,r,a){return nf(this.validator,this.rootSchema,t,r,a,this.experimental_customMergeAllOf)}toPathSchema(t,r,a){return qx(this.validator,t,r,this.rootSchema,a,this.experimental_customMergeAllOf)}}function $x(e,t,r={},a){return new zx(e,t,r,a)}function Ux(e){var t;if(!e.includes("data:"))throw new Error("File is invalid: URI must be a dataURI");const a=e.slice(5).split(";base64,");if(a.length!==2)throw new Error("File is invalid: dataURI must be base64");const[i,n]=a,[o,...s]=i.split(";"),c=o||"",l=decodeURI(((t=s.map(u=>u.split("=")).find(([u])=>u==="name"))===null||t===void 0?void 0:t[1])||"unknown");try{const u=atob(n),f=new Array(u.length);for(let d=0;d<u.length;d+=1)f[d]=u.charCodeAt(d);return{blob:new window.Blob([new Uint8Array(f)],{type:c}),name:l}}catch(u){throw new Error(`File is invalid: ${u.message}`)}}function sa(e,t){let r=String(e);for(;r.length<t;)r=`0${r}`;return r}function Wg(e,t){const r=e<=0&&t<=0,a=e<0||t<0;if(!r&&a)throw new Error(`Both start (${e}) and stop (${t}) must both be <= 0 or > 0, got one of each`);const i=new Date().getFullYear(),n=r?i+e:e,o=r?i+t:t;if(n>o)return Wg(t,e).reverse();const s=[];for(let c=n;c<=o;c+=1)s.push({value:c,label:sa(c,2)});return s}function Bx(e,t){let r=e;if(Array.isArray(t)){const a=r.split(/(%\d)/);t.forEach((i,n)=>{const o=a.findIndex(s=>s===`%${n+1}`);o>=0&&(a[o]=i)}),r=a.join("")}return r}function Vx(e,t){return Bx(e,t)}function Hs(e,t=[],r){if(Array.isArray(e))return e.map(n=>Hs(n,t)).filter(n=>n!==void 0);const a=e===""||e===null?-1:Number(e),i=t[a];return i?i.value:r}function Kg(e,t,r=[]){const a=Hs(e,r);return Array.isArray(t)?t.filter(i=>!Xe(i,a)):Xe(a,t)?void 0:t}function Ti(e,t){return Array.isArray(t)?t.some(r=>Xe(r,e)):Xe(t,e)}function Gg(e,t=[],r=!1){const a=t.map((i,n)=>Ti(i.value,e)?String(n):void 0).filter(i=>typeof i<"u");return r?a:a[0]}function Hx(e,t,r,a="indexed",i){if(typeof e>"u"||r&&Array.isArray(e)&&e.length<1||!r&&e===i)return i;if(a==="realValue")return r?e.map(String):String(e);const o=Gg(e,t,r);return typeof o>"u"?i:o}function Jg(e,t,r=[]){const a=Hs(e,r);if(!Oi(a)){const i=r.findIndex(s=>a===s.value),n=r.map(({value:s})=>s);return t.slice(0,i).concat(a,t.slice(i)).sort((s,c)=>+(n.indexOf(s)>n.indexOf(c)))}return t}function Yg(e,t,r){if(e===""||!Array.isArray(t))return r;const a=t.find(n=>String(n.value)===e);if(a)return a.value;const i=Number(e);return!Number.isNaN(i)&&i>=0&&i<t.length?t[i].value:r}function tn(e,t,r="indexed",a){return r!=="realValue"?Hs(e,t,a):Array.isArray(e)?e.map(i=>Yg(i,t,a)):Yg(e,t,a)}function Io(e,t,r="indexed"){return r!=="realValue"?String(t):Oi(e)?"":String(typeof e=="object"?t:e)}var Wx=1,Kx=4;function Ws(e){return wo(e,Wx|Kx)}function Gx(e,t,r,a){return a=typeof a=="function"?a:void 0,e==null?e:qu(e,t,r,a)}class Xg{constructor(t){this.errorSchema={},this.resetAllErrors(t)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(t){let a=Array.isArray(t)&&t.length>0||typeof t=="string"?se(this.errorSchema,t):this.errorSchema;return!a&&t&&(a={},Gx(this.errorSchema,t,a,Object)),a}resetAllErrors(t){return this.errorSchema=t?Ws(t):{},this}addErrors(t,r){const a=this.getOrCreateErrorBlock(r);let i=se(a,er);return Array.isArray(i)||(i=[],a[er]=i),Array.isArray(t)?vt(a,er,[...new Set([...i,...t])]):vt(a,er,[...new Set([...i,t])]),this}setErrors(t,r){const a=this.getOrCreateErrorBlock(r),i=Array.isArray(t)?[...new Set([...t])]:[t];return vt(a,er,i),this}clearErrors(t){const r=this.getOrCreateErrorBlock(t);return vt(r,er,[]),this}}var Jx=200;function Yx(e,t,r,a){var i=-1,n=Vu,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;t.length>=Jx&&(n=_o,o=!1,t=new qa(t));e:for(;++i<s;){var u=e[i],f=u;if(u=u!==0?u:0,o&&f===f){for(var p=l;p--;)if(t[p]===f)continue e;c.push(u)}else n(t,f,a)||c.push(u)}return c}var Xx=js(function(e,t){return Ao(e)?Yx(e,So(t,1,Ao,!0)):[]});function Zx(e,t){if(e==null)return{};var r=vi(Nu(e),function(a){return[a]});return t=Bu(t),Ug(e,r,function(a,i){return t(a,i[0])})}function Zg(e,t){const r=Qn(e),a=Qn(t);if(e===t||!r&&!a)return[];if(r&&!a)return en(e);if(!r&&a)return en(t);const i=en(Zx(e,(o,s)=>!Xe(o,se(t,s)))),n=Xx(en(t),en(e));return[...i,...n]}function Qx(e,t,r=[1900,new Date().getFullYear()+2],a="YMD"){const{day:i,month:n,year:o,hour:s,minute:c,second:l}=e,u={type:"day",range:[1,31],value:i},f={type:"month",range:[1,12],value:n},p={type:"year",range:r,value:o},d=[];switch(a){case"MDY":d.push(f,u,p);break;case"DMY":d.push(u,f,p);break;case"YMD":default:d.push(p,f,u)}return t&&d.push({type:"hour",range:[0,23],value:s},{type:"minute",range:[0,59],value:c},{type:"second",range:[0,59],value:l}),d}function eT(e){const t={};return e.multipleOf&&(t.step=e.multipleOf),(e.minimum||e.minimum===0)&&(t.min=e.minimum),(e.maximum||e.maximum===0)&&(t.max=e.maximum),t}function tT(e,t,r={},a=!0){const i={type:t||"text",...eT(e)};return r.inputType?i.type=r.inputType:t||(e.type==="number"?(i.type="number",a&&i.step===void 0&&(i.step="any")):e.type==="integer"&&(i.type="number",i.step===void 0&&(i.step=1))),["date","datetime-local","time","week","month"].includes(i.type)&&(e.formatMinimum!==void 0&&(i.min=e.formatMinimum),e.formatMaximum!==void 0&&(i.max=e.formatMaximum)),r.autocomplete&&(i.autoComplete=r.autocomplete),r.accept&&(i.accept=r.accept),i}function No(e){var t;return(t=e==null?void 0:e.optionValueFormat)!==null&&t!==void 0?t:"indexed"}const Qg={props:{disabled:!1},submitText:"Submit",norender:!1};function ey(e={}){const t=be(e);if(t!=null&&t[ws]){const r=t[ws];return{...Qg,...r}}return Qg}function Ce(e,t,r={}){const{templates:a}=t;if(e==="ButtonTemplates")return a[e];if(Object.hasOwn(r,e)&&typeof r[e]=="string"&&Object.hasOwn(a,r[e])){const i=r[e];return a[i]}return r[e]||a[e]}var rT=0;function ty(e){var t=++rT;return pu(e)+t}function af(){if(se(globalThis,"process.env.NODE_ENV")!=="test")return{};const e=new Map;return new Proxy({},{get(t,r){return e.has(r)||e.set(r,ty("test-id-")),e.get(r)}})}var Ks={exports:{}},pt={};/**
|
|
58
|
+
*/var hh;function fO(){return hh||(hh=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(n=a(n,i(s)))}return n}function i(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return"";if(Array.isArray(n))return r.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var s in n)t.call(n,s)&&n[s]&&(o=a(o,s));return o}function a(n,o){return o?n?n+" "+o:n+o:n}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Ju)),Ju.exports}var dO=fO();const pn=jr(dO);function be(e){return typeof e!="object"||e===null||typeof e.lastModified=="number"&&typeof File<"u"&&e instanceof File||typeof e.getMonth=="function"&&typeof Date<"u"&&e instanceof Date?!1:!Array.isArray(e)}function mO(e){return e.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),be(e.additionalItems)}function gh(e){var t;const r=typeof navigator<"u"?navigator.languages:void 0;if(r)try{return((t=new Intl.NumberFormat(r).formatToParts(1.1).find(n=>n.type==="decimal"))===null||t===void 0?void 0:t.value)||"."}catch{}return"."}function yh(e){if(e==="")return;if(e===null)return null;const t=gh(),r=typeof e=="string"&&t!=="."?e.replace(t,"."):e;if(/\.$/.test(r)||/\.0$/.test(r)||/\.\d*0$/.test(r))return e;const i=Number(r);return typeof i=="number"&&!Number.isNaN(i)?i:e}const hn=Symbol("__additional_property"),Mi="additionalProperties",zr="allOf",je="anyOf",Vt="const",Yn="default",Yu="dependencies",pO="enum",Dt="__errors",tt="$id",Xu="if",ji="items",hO="_$junk_option_schema_id$_",Bo="$name",xe="oneOf",Zu="patternProperties",ze="properties",Qu="readonly",vh="required",Vo="submitButtonOptions",at="$ref",Ho=Symbol("__rjsf_ref"),ec=Symbol("__rjsf_ref_cycle"),Ia="$schema",bh="root",kh="_",gO=["discriminator","propertyName"],wh="formContext",yO="layoutGridLookupMap",Sh="__rjsf",tc=`${Sh}_additionalProperties`,Ch=`${Sh}_rootSchema`,vO="ui:field",rc="ui:widget",gn="ui:options",nc="ui:globalOptions",bO="ui:definitions",kO="https://json-schema.org/draft/2019-09/schema",Ko="https://json-schema.org/draft/2020-12/schema";function me(e={},t={}){return e?Object.keys(e).filter(r=>r.startsWith("ui:")).reduce((r,i)=>{const a=e[i];return i===rc&&be(a)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):i===gn&&be(a)?{...r,...a}:{...r,[i.substring(3)]:a}},{...t}):{...t}}function Eh(e,t={},r){if(!(e.additionalProperties||e.patternProperties))return!1;const{expandable:i=!0}=me(t);return i===!1?i:e.maxProperties!==void 0&&r?Object.keys(r).length<e.maxProperties:!0}var Ah=typeof global=="object"&&global&&global.Object===Object&&global,wO=typeof self=="object"&&self&&self.Object===Object&&self,$r=Ah||wO||Function("return this")(),ur=$r.Symbol,xh=Object.prototype,SO=xh.hasOwnProperty,CO=xh.toString,Ta=ur?ur.toStringTag:void 0;function EO(e){var t=SO.call(e,Ta),r=e[Ta];try{e[Ta]=void 0;var i=!0}catch{}var a=CO.call(e);return i&&(t?e[Ta]=r:delete e[Ta]),a}var AO=Object.prototype,xO=AO.toString;function OO(e){return xO.call(e)}var _O="[object Null]",PO="[object Undefined]",Oh=ur?ur.toStringTag:void 0;function en(e){return e==null?e===void 0?PO:_O:Oh&&Oh in Object(e)?EO(e):OO(e)}function _h(e,t){return function(r){return e(t(r))}}var Wo=_h(Object.getPrototypeOf,Object);function cr(e){return e!=null&&typeof e=="object"}var IO="[object Object]",TO=Function.prototype,NO=Object.prototype,Ph=TO.toString,FO=NO.hasOwnProperty,DO=Ph.call(Object);function yn(e){if(!cr(e)||en(e)!=IO)return!1;var t=Wo(e);if(t===null)return!0;var r=FO.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Ph.call(r)==DO}function ic(e){const t={[Dt]:[],addError(r){this[Dt].push(r)}};if(Array.isArray(e))return e.reduce((r,i,a)=>({...r,[a]:ic(i)}),t);if(yn(e)){const r=e;return Object.keys(r).reduce((i,a)=>({...i,[a]:ic(r[a])}),t)}return t}var Tt=Array.isArray,MO="[object Symbol]";function Na(e){return typeof e=="symbol"||cr(e)&&en(e)==MO}var jO=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,LO=/^\w*$/;function ac(e,t){if(Tt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Na(e)?!0:LO.test(e)||!jO.test(e)||t!=null&&e in Object(t)}function $e(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var qO="[object AsyncFunction]",RO="[object Function]",zO="[object GeneratorFunction]",$O="[object Proxy]";function Fa(e){if(!$e(e))return!1;var t=en(e);return t==RO||t==zO||t==qO||t==$O}var oc=$r["__core-js_shared__"],Ih=(function(){var e=/[^.]+$/.exec(oc&&oc.keys&&oc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function UO(e){return!!Ih&&Ih in e}var BO=Function.prototype,VO=BO.toString;function Xn(e){if(e!=null){try{return VO.call(e)}catch{}try{return e+""}catch{}}return""}var HO=/[\\^$.*+?()[\]{}|]/g,KO=/^\[object .+?Constructor\]$/,WO=Function.prototype,GO=Object.prototype,JO=WO.toString,YO=GO.hasOwnProperty,XO=RegExp("^"+JO.call(YO).replace(HO,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ZO(e){if(!$e(e)||UO(e))return!1;var t=Fa(e)?XO:KO;return t.test(Xn(e))}function QO(e,t){return e==null?void 0:e[t]}function Zn(e,t){var r=QO(e,t);return ZO(r)?r:void 0}var Da=Zn(Object,"create");function e_(){this.__data__=Da?Da(null):{},this.size=0}function t_(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var r_="__lodash_hash_undefined__",n_=Object.prototype,i_=n_.hasOwnProperty;function a_(e){var t=this.__data__;if(Da){var r=t[e];return r===r_?void 0:r}return i_.call(t,e)?t[e]:void 0}var o_=Object.prototype,s_=o_.hasOwnProperty;function l_(e){var t=this.__data__;return Da?t[e]!==void 0:s_.call(t,e)}var u_="__lodash_hash_undefined__";function c_(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Da&&t===void 0?u_:t,this}function Qn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Qn.prototype.clear=e_,Qn.prototype.delete=t_,Qn.prototype.get=a_,Qn.prototype.has=l_,Qn.prototype.set=c_;function f_(){this.__data__=[],this.size=0}function Ma(e,t){return e===t||e!==e&&t!==t}function Go(e,t){for(var r=e.length;r--;)if(Ma(e[r][0],t))return r;return-1}var d_=Array.prototype,m_=d_.splice;function p_(e){var t=this.__data__,r=Go(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():m_.call(t,r,1),--this.size,!0}function h_(e){var t=this.__data__,r=Go(t,e);return r<0?void 0:t[r][1]}function g_(e){return Go(this.__data__,e)>-1}function y_(e,t){var r=this.__data__,i=Go(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function tn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}tn.prototype.clear=f_,tn.prototype.delete=p_,tn.prototype.get=h_,tn.prototype.has=g_,tn.prototype.set=y_;var ja=Zn($r,"Map");function v_(){this.size=0,this.__data__={hash:new Qn,map:new(ja||tn),string:new Qn}}function b_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Jo(e,t){var r=e.__data__;return b_(t)?r[typeof t=="string"?"string":"hash"]:r.map}function k_(e){var t=Jo(this,e).delete(e);return this.size-=t?1:0,t}function w_(e){return Jo(this,e).get(e)}function S_(e){return Jo(this,e).has(e)}function C_(e,t){var r=Jo(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function rn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}rn.prototype.clear=v_,rn.prototype.delete=k_,rn.prototype.get=w_,rn.prototype.has=S_,rn.prototype.set=C_;var E_="Expected a function";function sc(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(E_);var r=function(){var i=arguments,a=t?t.apply(this,i):i[0],n=r.cache;if(n.has(a))return n.get(a);var o=e.apply(this,i);return r.cache=n.set(a,o)||n,o};return r.cache=new(sc.Cache||rn),r}sc.Cache=rn;var A_=500;function x_(e){var t=sc(e,function(i){return r.size===A_&&r.clear(),i}),r=t.cache;return t}var O_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,__=/\\(\\)?/g,Th=x_(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(O_,function(r,i,a,n){t.push(a?n.replace(__,"$1"):i||r)}),t});function Li(e,t){for(var r=-1,i=e==null?0:e.length,a=Array(i);++r<i;)a[r]=t(e[r],r,e);return a}var Nh=ur?ur.prototype:void 0,Fh=Nh?Nh.toString:void 0;function Dh(e){if(typeof e=="string")return e;if(Tt(e))return Li(e,Dh)+"";if(Na(e))return Fh?Fh.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function lc(e){return e==null?"":Dh(e)}function qi(e,t){return Tt(e)?e:ac(e,t)?[e]:Th(lc(e))}function vn(e){if(typeof e=="string"||Na(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Yo(e,t){t=qi(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[vn(t[r++])];return r&&r==i?e:void 0}function ae(e,t,r){var i=e==null?void 0:Yo(e,t);return i===void 0?r:i}const{getOwnPropertyNames:Mh,getOwnPropertySymbols:P_}=Object,{hasOwnProperty:I_}=Object.prototype;function uc(e,t){return function(i,a,n){return e(i,a,n)&&t(i,a,n)}}function Xo(e){return function(r,i,a){if(!r||!i||typeof r!="object"||typeof i!="object")return e(r,i,a);const{cache:n}=a,o=n.get(r),s=n.get(i);if(o&&s)return o===i&&s===r;n.set(r,i),n.set(i,r);const l=e(r,i,a);return n.delete(r),n.delete(i),l}}function jh(e){const t=P_(e);return t.length?Mh(e).concat(t):Mh(e)}const T_=Object.hasOwn||((e,t)=>I_.call(e,t)),N_="__v",F_="__o",D_="_owner",{getOwnPropertyDescriptor:Lh,keys:qh}=Object,ei=Object.is||function(t,r){return t===r?t!==0||1/t===1/r:t!==t&&r!==r};function M_(e,t){return e===t}function j_(e,t){return e.byteLength===t.byteLength&&Zo(new Uint8Array(e),new Uint8Array(t))}function L_(e,t,r){let i=e.length;if(t.length!==i)return!1;for(;i-- >0;)if(!r.equals(e[i],t[i],i,i,e,t,r))return!1;return!0}function q_(e,t){return e.byteLength===t.byteLength&&Zo(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function R_(e,t){return ei(e.getTime(),t.getTime())}function z_(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Rh(e,t,r){const i=e.size;if(i!==t.size)return!1;if(!i)return!0;const a=new Uint8Array(i),n=e.entries();let o,s,l=0;for(;(o=n.next())&&!o.done;){const u=t.entries();let c=0,f=0;for(;(s=u.next())&&!s.done;){if(a[f]){f++;continue}const m=o.value,d=s.value;if(r.equals(m[0],d[0],l,f,e,t,r)&&r.equals(m[1],d[1],m[0],d[0],e,t,r)){c=a[f]=1;break}f++}if(!c)return!1;l++}return!0}function $_(e,t,r){const i=qh(e);let a=i.length;if(qh(t).length!==a)return!1;for(;a-- >0;)if(!$h(e,t,r,i[a]))return!1;return!0}function La(e,t,r){const i=jh(e);let a=i.length;if(jh(t).length!==a)return!1;let n,o,s;for(;a-- >0;)if(n=i[a],!$h(e,t,r,n)||(o=Lh(e,n),s=Lh(t,n),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function U_(e,t){return ei(e.valueOf(),t.valueOf())}function B_(e,t){return e.source===t.source&&e.flags===t.flags}function zh(e,t,r){const i=e.size;if(i!==t.size)return!1;if(!i)return!0;const a=new Uint8Array(i),n=e.values();let o,s;for(;(o=n.next())&&!o.done;){const l=t.values();let u=0,c=0;for(;(s=l.next())&&!s.done;){if(!a[c]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){u=a[c]=1;break}c++}if(!u)return!1}return!0}function Zo(e,t){let r=e.length;if(t.length!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function V_(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function $h(e,t,r,i){return(i===D_||i===F_||i===N_)&&(e.$$typeof||t.$$typeof)?!0:T_(t,i)&&r.equals(e[i],t[i],i,i,e,t,r)}const H_=Object.prototype.toString;function K_(e){const t=Y_(e),{areArraysEqual:r,areDatesEqual:i,areFunctionsEqual:a,areMapsEqual:n,areNumbersEqual:o,areObjectsEqual:s,areRegExpsEqual:l,areSetsEqual:u,getUnsupportedCustomComparator:c}=e;return function(m,d,p){if(m===d)return!0;if(m==null||d==null)return!1;const k=typeof m;if(k!==typeof d)return!1;if(k!=="object")return k==="number"||k==="bigint"?o(m,d,p):k==="function"?a(m,d,p):!1;const v=m.constructor;if(v!==d.constructor)return!1;if(v===Object)return s(m,d,p);if(v===Array)return r(m,d,p);if(v===Date)return i(m,d,p);if(v===RegExp)return l(m,d,p);if(v===Map)return n(m,d,p);if(v===Set)return u(m,d,p);if(v===Promise)return!1;if(Array.isArray(m))return r(m,d,p);const g=H_.call(m),b=t[g];if(b)return b(m,d,p);const w=c&&c(m,d,p,g);return w?w(m,d,p):!1}}function W_({circular:e,createCustomConfig:t,strict:r}){let i={areArrayBuffersEqual:j_,areArraysEqual:r?La:L_,areDataViewsEqual:q_,areDatesEqual:R_,areErrorsEqual:z_,areFunctionsEqual:M_,areMapsEqual:r?uc(Rh,La):Rh,areNumbersEqual:ei,areObjectsEqual:r?La:$_,arePrimitiveWrappersEqual:U_,areRegExpsEqual:B_,areSetsEqual:r?uc(zh,La):zh,areTypedArraysEqual:r?uc(Zo,La):Zo,areUrlsEqual:V_,getUnsupportedCustomComparator:void 0};if(t&&(i=Object.assign({},i,t(i))),e){const a=Xo(i.areArraysEqual),n=Xo(i.areMapsEqual),o=Xo(i.areObjectsEqual),s=Xo(i.areSetsEqual);i=Object.assign({},i,{areArraysEqual:a,areMapsEqual:n,areObjectsEqual:o,areSetsEqual:s})}return i}function G_(e){return function(t,r,i,a,n,o,s){return e(t,r,s)}}function J_({circular:e,comparator:t,createState:r,equals:i,strict:a}){if(r)return function(s,l){const{cache:u=e?new WeakMap:void 0,meta:c}=r();return t(s,l,{cache:u,equals:i,meta:c,strict:a})};if(e)return function(s,l){return t(s,l,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};const n={cache:void 0,equals:i,meta:void 0,strict:a};return function(s,l){return t(s,l,n)}}function Y_({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:i,areErrorsEqual:a,areFunctionsEqual:n,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:l,arePrimitiveWrappersEqual:u,areRegExpsEqual:c,areSetsEqual:f,areTypedArraysEqual:m,areUrlsEqual:d}){return{"[object Arguments]":l,"[object Array]":t,"[object ArrayBuffer]":e,"[object AsyncGeneratorFunction]":n,"[object BigInt]":s,"[object BigInt64Array]":m,"[object BigUint64Array]":m,"[object Boolean]":u,"[object DataView]":r,"[object Date]":i,"[object Error]":a,"[object Float16Array]":m,"[object Float32Array]":m,"[object Float64Array]":m,"[object Function]":n,"[object GeneratorFunction]":n,"[object Int8Array]":m,"[object Int16Array]":m,"[object Int32Array]":m,"[object Map]":o,"[object Number]":u,"[object Object]":(p,k,v)=>typeof p.then!="function"&&typeof k.then!="function"&&l(p,k,v),"[object RegExp]":c,"[object Set]":f,"[object String]":u,"[object URL]":d,"[object Uint8Array]":m,"[object Uint8ClampedArray]":m,"[object Uint16Array]":m,"[object Uint32Array]":m}}nn(),nn({strict:!0}),nn({circular:!0}),nn({circular:!0,strict:!0}),nn({createInternalComparator:()=>ei}),nn({strict:!0,createInternalComparator:()=>ei}),nn({circular:!0,createInternalComparator:()=>ei}),nn({circular:!0,createInternalComparator:()=>ei,strict:!0});function nn(e={}){const{circular:t=!1,createInternalComparator:r,createState:i,strict:a=!1}=e,n=W_(e),o=K_(n),s=r?r(o):G_(o);return J_({circular:t,comparator:o,createState:i,equals:s,strict:a})}const Ue=nn({circular:!0,createCustomConfig:()=>({areFunctionsEqual(e,t){return typeof t=="function"}})});var qa={exports:{}},cc,Uh;function Bh(){if(Uh)return cc;Uh=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),r=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),a=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu),n=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/?]$/iu);function o(S){let A="",O=0,F=0;for(F=0;F<S.length;F++)if(O=S[F].charCodeAt(0),O!==48){if(!(O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102))return"";A+=S[F];break}for(F+=1;F<S.length;F++){if(O=S[F].charCodeAt(0),!(O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102))return"";A+=S[F]}return A}const s=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function l(S){return S.length=0,!0}function u(S,A,O){if(S.length){const F=o(S);if(F!=="")A.push(F);else return O.error=!0,!1;S.length=0}return!0}function c(S){let A=0;const O={error:!1,address:"",zone:""},F=[],T=[];let M=!1,q=!1,J=u;for(let Y=0;Y<S.length;Y++){const Q=S[Y];if(!(Q==="["||Q==="]"))if(Q===":"){if(M===!0&&(q=!0),!J(T,F,O))break;if(++A>7){O.error=!0;break}Y>0&&S[Y-1]===":"&&(M=!0),F.push(":");continue}else if(Q==="%"){if(!J(T,F,O))break;J=l}else{T.push(Q);continue}}return T.length&&(J===l?O.zone=T.join(""):q?F.push(T.join("")):F.push(o(T))),O.address=F.join(""),O}function f(S){if(m(S,":")<2)return{host:S,isIPV6:!1};const A=c(S);if(A.error)return{host:S,isIPV6:!1};{let O=A.address,F=A.address;return A.zone&&(O+="%"+A.zone,F+="%25"+A.zone),{host:O,isIPV6:!0,escapedHost:F}}}function m(S,A){let O=0;for(let F=0;F<S.length;F++)S[F]===A&&O++;return O}function d(S){let A=S;const O=[];let F=-1,T=0;for(;T=A.length;){if(T===1){if(A===".")break;if(A==="/"){O.push("/");break}else{O.push(A);break}}else if(T===2){if(A[0]==="."){if(A[1]===".")break;if(A[1]==="/"){A=A.slice(2);continue}}else if(A[0]==="/"&&A[1]==="."){O.push("/");break}}else if(T===3&&A==="/.."){O.length!==0&&O.pop(),O.push("/");break}if(A[0]==="."){if(A[1]==="."){if(A[2]==="/"){A=A.slice(3);continue}}else if(A[1]==="/"){A=A.slice(2);continue}}else if(A[0]==="/"&&A[1]==="."){if(A[2]==="/"){A=A.slice(2);continue}else if(A[2]==="."&&A[3]==="/"){A=A.slice(3),O.length!==0&&O.pop();continue}}if((F=A.indexOf("/",1))===-1){O.push(A);break}else O.push(A.slice(0,F)),A=A.slice(F)}return O.join("")}const p={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},k=/[@/?#:]/g,v=/[@/?#]/g;function g(S,A){const O=A?v:k;return O.lastIndex=0,S.replace(O,F=>p[F])}function b(S,A=!1){if(S.indexOf("%")===-1)return S;let O="";for(let F=0;F<S.length;F++){if(S[F]==="%"&&F+2<S.length){const T=S.slice(F+1,F+3);if(r(T)){const M=T.toUpperCase(),q=String.fromCharCode(parseInt(M,16));A&&i(q)?O+=q:O+="%"+M,F+=2;continue}}O+=S[F]}return O}const w=new Array(256);{const S="0123456789ABCDEF";for(let A=0;A<256;A++)w[A]="%"+S[A>>4]+S[A&15]}function E(S){return S>=48&&S<=57||S>=65&&S<=90||S>=97&&S<=122||S===42||S===43||S===45||S===46||S===47||S===64||S===95}function h(S){return S<2048?w[192|S>>6]+w[128|S&63]:S<65536?w[224|S>>12]+w[128|S>>6&63]+w[128|S&63]:w[240|S>>18]+w[128|S>>12&63]+w[128|S>>6&63]+w[128|S&63]}function y(S){let A="";for(let O=0;O<S.length;O++){const F=S[O];if(F==="%"&&O+2<S.length){const T=S.slice(O+1,O+3);if(r(T)){const M=T.toUpperCase(),q=String.fromCharCode(parseInt(M,16));q!=="."&&i(q)?A+=q:A+="%"+M,O+=2;continue}}if(a(F))A+=F;else{const T=S.charCodeAt(O);if(T<128)A+=E(T)?F:w[T];else if(T<55296||T>57343)A+=h(T);else if(T<=56319&&O+1<S.length){const M=S.charCodeAt(O+1);M>=56320&&M<=57343?(A+=h(65536+(T-55296<<10)+(M-56320)),O++):A+=h(65533)}else A+=h(65533)}}return A}function C(S){let A="";for(let O=0;O<S.length;O++){const F=S[O];if(F==="%"&&O+2<S.length){const T=S.slice(O+1,O+3);if(r(T)){const M=T.toUpperCase(),q=String.fromCharCode(parseInt(M,16));i(q)?A+=q:A+="%"+M,O+=2;continue}}if(n(F))A+=F;else{const T=S.charCodeAt(O);if(T<128)A+=E(T)?F:w[T];else if(T<55296||T>57343)A+=h(T);else if(T<=56319&&O+1<S.length){const M=S.charCodeAt(O+1);M>=56320&&M<=57343?(A+=h(65536+(T-55296<<10)+(M-56320)),O++):A+=h(65533)}else A+=h(65533)}}return A}function x(S){let A="";for(let O=0;O<S.length;O++){const F=S[O];if(F==="%"&&O+2<S.length){const M=S.slice(O+1,O+3);if(r(M)){A+="%"+M.toUpperCase(),O+=2;continue}}const T=S.charCodeAt(O);if(T<128)A+=E(T)?F:w[T];else if(T<55296||T>57343)A+=h(T);else if(T<=56319&&O+1<S.length){const M=S.charCodeAt(O+1);M>=56320&&M<=57343?(A+=h(65536+(T-55296<<10)+(M-56320)),O++):A+=h(65533)}else A+=h(65533)}return A}function _(S){const A=[];if(S.userinfo!==void 0&&(A.push(S.userinfo),A.push("@")),S.host!==void 0){let O=unescape(S.host);if(!t(O)){const F=f(O);F.isIPV6===!0?O=`[${F.escapedHost}]`:O=g(O,!1)}A.push(O)}return(typeof S.port=="number"||typeof S.port=="string")&&(A.push(":"),A.push(String(S.port))),A.length?A.join(""):void 0}return cc={nonSimpleDomain:s,recomposeAuthority:_,reescapeHostDelimiters:g,normalizePercentEncoding:b,normalizePathEncoding:y,normalizeQueryFragmentEncoding:C,escapePreservingEscapes:x,removeDotSegments:d,isIPv4:t,isUUID:e,normalizeIPv6:f,stringArrayToHexStripped:o},cc}var fc,Vh;function X_(){if(Vh)return fc;Vh=1;const{isUUID:e}=Bh(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function i(h){return r.indexOf(h)!==-1}function a(h){return h.secure===!0?!0:h.secure===!1?!1:h.scheme?h.scheme.length===3&&(h.scheme[0]==="w"||h.scheme[0]==="W")&&(h.scheme[1]==="s"||h.scheme[1]==="S")&&(h.scheme[2]==="s"||h.scheme[2]==="S"):!1}function n(h){return h.host||(h.error=h.error||"HTTP URIs must have a host."),h}function o(h){const y=String(h.scheme).toLowerCase()==="https";return(h.port===(y?443:80)||h.port==="")&&(h.port=void 0),h.path||(h.path="/"),h}function s(h){return h.secure=a(h),h.resourceName=(h.path||"/")+(h.query?"?"+h.query:""),h.path=void 0,h.query=void 0,h}function l(h){if((h.port===(a(h)?443:80)||h.port==="")&&(h.port=void 0),typeof h.secure=="boolean"&&(h.scheme=h.secure?"wss":"ws",h.secure=void 0),h.resourceName){const[y,C]=h.resourceName.split("?");h.path=y&&y!=="/"?y:void 0,h.query=C,h.resourceName=void 0}return h.fragment=void 0,h}function u(h,y){if(!h.path)return h.error="URN can not be parsed",h;const C=h.path.match(t);if(C){const x=y.scheme||h.scheme||"urn";h.nid=C[1].toLowerCase(),h.nss=C[2];const _=`${x}:${y.nid||h.nid}`,S=E(_);h.path=void 0,S&&(h=S.parse(h,y))}else h.error=h.error||"URN can not be parsed.";return h}function c(h,y){if(h.nid===void 0)throw new Error("URN without nid cannot be serialized");const C=y.scheme||h.scheme||"urn",x=h.nid.toLowerCase(),_=`${C}:${y.nid||x}`,S=E(_);S&&(h=S.serialize(h,y));const A=h,O=h.nss;return A.path=`${x||y.nid}:${O}`,y.skipEscape=!0,A}function f(h,y){const C=h;return C.uuid=C.nss,C.nss=void 0,!y.tolerant&&(!C.uuid||!e(C.uuid))&&(C.error=C.error||"UUID is not valid."),C}function m(h){const y=h;return y.nss=(h.uuid||"").toLowerCase(),y}const d={scheme:"http",domainHost:!0,parse:n,serialize:o},p={scheme:"https",domainHost:d.domainHost,parse:n,serialize:o},k={scheme:"ws",domainHost:!0,parse:s,serialize:l},v={scheme:"wss",domainHost:k.domainHost,parse:k.parse,serialize:k.serialize},w={http:d,https:p,ws:k,wss:v,urn:{scheme:"urn",parse:u,serialize:c,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:m,skipNormalize:!0}};Object.setPrototypeOf(w,null);function E(h){return h&&(w[h]||w[h.toLowerCase()])||void 0}return fc={wsIsSecure:a,SCHEMES:w,isValidSchemeName:i,getSchemeHandler:E},fc}var Hh;function Z_(){if(Hh)return qa.exports;Hh=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:i,normalizePathEncoding:a,normalizeQueryFragmentEncoding:n,escapePreservingEscapes:o,reescapeHostDelimiters:s,isIPv4:l,nonSimpleDomain:u}=Bh(),{SCHEMES:c,getSchemeHandler:f}=X_();function m(A,O){return typeof A=="string"?A=C(A,O):typeof A=="object"&&(A=y(v(A,O),O)),A}function d(A,O,F){const T=F?Object.assign({scheme:"null"},F):{scheme:"null"},{parsed:M,malformedAuthorityOrPort:q}=h(A,T),{parsed:J,malformedAuthorityOrPort:Y}=h(O,T);if(q||Y)throw new Error(M.error||J.error||"URI is malformed.");const Q=p(M,J,T,!0);return T.skipEscape=!0,v(Q,T)}function p(A,O,F,T){const M={};return T||(A=y(v(A,F),F),O=y(v(O,F),F)),F=F||{},!F.tolerant&&O.scheme?(M.scheme=O.scheme,M.userinfo=O.userinfo,M.host=O.host,M.port=O.port,M.path=t(O.path||""),M.query=O.query):(O.userinfo!==void 0||O.host!==void 0||O.port!==void 0?(M.userinfo=O.userinfo,M.host=O.host,M.port=O.port,M.path=t(O.path||""),M.query=O.query):(O.path?(O.path[0]==="/"?M.path=t(O.path):((A.userinfo!==void 0||A.host!==void 0||A.port!==void 0)&&!A.path?M.path="/"+O.path:A.path?M.path=A.path.slice(0,A.path.lastIndexOf("/")+1)+O.path:M.path=O.path,M.path=t(M.path)),M.query=O.query):(M.path=A.path,O.query!==void 0?M.query=O.query:M.query=A.query),M.userinfo=A.userinfo,M.host=A.host,M.port=A.port),M.scheme=A.scheme),M.fragment=O.fragment,M}function k(A,O,F){const T=_(A,F),M=_(O,F);return T!==void 0&&M!==void 0&&T.toLowerCase()===M.toLowerCase()}function v(A,O){const F={host:A.host,scheme:A.scheme,userinfo:A.userinfo,port:A.port,path:A.path,query:A.query,nid:A.nid,nss:A.nss,uuid:A.uuid,fragment:A.fragment,reference:A.reference,resourceName:A.resourceName,secure:A.secure,error:""},T=Object.assign({},O),M=[],q=f(T.scheme||F.scheme);q&&q.serialize&&q.serialize(F,T),F.path!==void 0&&(T.skipEscape?F.path=i(F.path):(F.path=o(F.path),F.scheme!==void 0&&(F.path=F.path.split("%3A").join(":")))),T.reference!=="suffix"&&F.scheme&&M.push(F.scheme,":");const J=r(F);if(J!==void 0&&(T.reference!=="suffix"&&M.push("//"),M.push(J),F.path&&F.path[0]!=="/"&&M.push("/")),F.path!==void 0){let Y=F.path;!T.absolutePath&&(!q||!q.absolutePath)&&(Y=t(Y)),J===void 0&&Y[0]==="/"&&Y[1]==="/"&&(Y="/%2F"+Y.slice(2)),M.push(Y)}return F.query!==void 0&&M.push("?",F.query),F.fragment!==void 0&&M.push("#",F.fragment),M.join("")}const g=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,b=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,w=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function E(A,O){if(O[2]!==void 0&&A.path&&A.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof A.port=="number"&&(A.port<0||A.port>65535))return"URI port is malformed."}function h(A,O){const F=Object.assign({},O),T={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let M=!1,q=!1;F.reference==="suffix"&&(F.scheme?A=F.scheme+":"+A:A="//"+A);const J=A.match(b);J!==null&&J[1].indexOf("\\")!==-1&&(T.error="URI authority must not contain a literal backslash.",M=!0);const Y=A.match(w);if(Y!==null){const P=Y[1],j=P.replace(/[\t\n\r]/g,"");j.length>=2&&(j.slice(0,2)!=="//"?(T.error=T.error||"URI authority must not contain a literal backslash.",M=!0):P.length!==j.length&&(T.error=T.error||"URI authority introducer must not contain whitespace.",M=!0))}const Q=A.match(g);if(Q){T.scheme=Q[1]===void 0?void 0:Q[1].toLowerCase(),T.userinfo=Q[3],T.host=Q[4],T.port=parseInt(Q[5],10),T.path=Q[6]||"",T.query=Q[7],T.fragment=Q[8],isNaN(T.port)&&(T.port=Q[5]);const P=E(T,Q);if(P!==void 0&&(T.error=T.error||P,M=!0),T.host)if(l(T.host)===!1){const I=e(T.host);T.host=I.host.toLowerCase(),q=I.isIPV6}else q=!0;T.scheme===void 0&&T.userinfo===void 0&&T.host===void 0&&T.port===void 0&&T.query===void 0&&!T.path?T.reference="same-document":T.scheme===void 0?T.reference="relative":T.fragment===void 0?T.reference="absolute":T.reference="uri",F.reference&&F.reference!=="suffix"&&F.reference!==T.reference&&(T.error=T.error||"URI is not a "+F.reference+" reference.");const j=f(F.scheme||T.scheme);if(!F.unicodeSupport&&(!j||!j.unicodeSupport)&&T.host&&(F.domainHost||j&&j.domainHost)&&q===!1&&u(T.host))try{T.host=new URL("http://"+T.host).hostname}catch(B){T.error=T.error||"Host's domain name can not be converted to ASCII: "+B}(!j||j&&!j.skipNormalize)&&(A.indexOf("%")!==-1&&(T.scheme!==void 0&&(T.scheme=unescape(T.scheme)),T.host!==void 0&&(T.host=s(unescape(T.host),q))),T.path&&(T.path=a(T.path)),T.query&&(T.query=n(T.query)),T.fragment&&(T.fragment=n(T.fragment))),j&&j.parse&&j.parse(T,F)}else T.error=T.error||"URI can not be parsed.";return{parsed:T,malformedAuthorityOrPort:M}}function y(A,O){return h(A,O).parsed}function C(A,O){return x(A,O).normalized}function x(A,O){const{parsed:F,malformedAuthorityOrPort:T}=h(A,O);return{normalized:T?A:v(F,O),malformedAuthorityOrPort:T}}function _(A,O){if(typeof A=="string"){const{normalized:F,malformedAuthorityOrPort:T}=x(A,O);return T?void 0:F}if(typeof A=="object")return v(A,O)}const S={SCHEMES:c,normalize:m,resolve:d,resolveComponent:p,equal:k,serialize:v,parse:y};return qa.exports=S,qa.exports.default=S,qa.exports.fastUri=S,qa.exports}var Q_=Z_();const dc=jr(Q_);var Ra={},Kh;function eP(){if(Kh)return Ra;Kh=1;var e=/~/,t=/~[01]/g;function r(u){switch(u){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+u)}function i(u){return e.test(u)?u.replace(t,r):u}function a(u,c,f){for(var m,d,p=1,k=c.length;p<k;){if(c[p]==="constructor"||c[p]==="prototype"||c[p]==="__proto__")return u;if(m=i(c[p++]),d=k>p,typeof u[m]>"u"&&(Array.isArray(u)&&m==="-"&&(m=u.length),d&&(c[p]!==""&&c[p]<1/0||c[p]==="-"?u[m]=[]:u[m]={})),!d)break;u=u[m]}var v=u[m];return f===void 0?delete u[m]:u[m]=f,v}function n(u){if(typeof u=="string"){if(u=u.split("/"),u[0]==="")return u;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(u)){for(const c of u)if(typeof c!="string"&&typeof c!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return u}throw new Error("Invalid JSON pointer.")}function o(u,c){if(typeof u!="object")throw new Error("Invalid input object.");c=n(c);var f=c.length;if(f===1)return u;for(var m=1;m<f;){if(u=u[i(c[m++])],f===m)return u;if(typeof u!="object"||u===null)return}}function s(u,c,f){if(typeof u!="object")throw new Error("Invalid input object.");if(c=n(c),c.length===0)throw new Error("Invalid JSON pointer for set.");return a(u,c,f)}function l(u){var c=n(u);return{get:function(f){return o(f,c)},set:function(f,m){return s(f,c,m)}}}return Ra.get=o,Ra.set=s,Ra.compile=l,Ra}var tP=eP();const mc=jr(tP);var rP=Object.prototype;function Qo(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||rP;return e===r}var nP=_h(Object.keys,Object),iP=Object.prototype,aP=iP.hasOwnProperty;function Wh(e){if(!Qo(e))return nP(e);var t=[];for(var r in Object(e))aP.call(e,r)&&r!="constructor"&&t.push(r);return t}var pc=Zn($r,"DataView"),hc=Zn($r,"Promise"),Ri=Zn($r,"Set"),gc=Zn($r,"WeakMap"),Gh="[object Map]",oP="[object Object]",Jh="[object Promise]",Yh="[object Set]",Xh="[object WeakMap]",Zh="[object DataView]",sP=Xn(pc),lP=Xn(ja),uP=Xn(hc),cP=Xn(Ri),fP=Xn(gc),fr=en;(pc&&fr(new pc(new ArrayBuffer(1)))!=Zh||ja&&fr(new ja)!=Gh||hc&&fr(hc.resolve())!=Jh||Ri&&fr(new Ri)!=Yh||gc&&fr(new gc)!=Xh)&&(fr=function(e){var t=en(e),r=t==oP?e.constructor:void 0,i=r?Xn(r):"";if(i)switch(i){case sP:return Zh;case lP:return Gh;case uP:return Jh;case cP:return Yh;case fP:return Xh}return t});var dP="[object Arguments]";function Qh(e){return cr(e)&&en(e)==dP}var eg=Object.prototype,mP=eg.hasOwnProperty,pP=eg.propertyIsEnumerable,zi=Qh((function(){return arguments})())?Qh:function(e){return cr(e)&&mP.call(e,"callee")&&!pP.call(e,"callee")},hP=9007199254740991;function yc(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=hP}function ti(e){return e!=null&&yc(e.length)&&!Fa(e)}function gP(){return!1}var tg=typeof Xe=="object"&&Xe&&!Xe.nodeType&&Xe,rg=tg&&typeof module=="object"&&module&&!module.nodeType&&module,yP=rg&&rg.exports===tg,ng=yP?$r.Buffer:void 0,vP=ng?ng.isBuffer:void 0,ri=vP||gP,bP="[object Arguments]",kP="[object Array]",wP="[object Boolean]",SP="[object Date]",CP="[object Error]",EP="[object Function]",AP="[object Map]",xP="[object Number]",OP="[object Object]",_P="[object RegExp]",PP="[object Set]",IP="[object String]",TP="[object WeakMap]",NP="[object ArrayBuffer]",FP="[object DataView]",DP="[object Float32Array]",MP="[object Float64Array]",jP="[object Int8Array]",LP="[object Int16Array]",qP="[object Int32Array]",RP="[object Uint8Array]",zP="[object Uint8ClampedArray]",$P="[object Uint16Array]",UP="[object Uint32Array]",ht={};ht[DP]=ht[MP]=ht[jP]=ht[LP]=ht[qP]=ht[RP]=ht[zP]=ht[$P]=ht[UP]=!0,ht[bP]=ht[kP]=ht[NP]=ht[wP]=ht[FP]=ht[SP]=ht[CP]=ht[EP]=ht[AP]=ht[xP]=ht[OP]=ht[_P]=ht[PP]=ht[IP]=ht[TP]=!1;function BP(e){return cr(e)&&yc(e.length)&&!!ht[en(e)]}function vc(e){return function(t){return e(t)}}var ig=typeof Xe=="object"&&Xe&&!Xe.nodeType&&Xe,za=ig&&typeof module=="object"&&module&&!module.nodeType&&module,VP=za&&za.exports===ig,bc=VP&&Ah.process,$i=(function(){try{var e=za&&za.require&&za.require("util").types;return e||bc&&bc.binding&&bc.binding("util")}catch{}})(),ag=$i&&$i.isTypedArray,$a=ag?vc(ag):BP,HP="[object Map]",KP="[object Set]",WP=Object.prototype,GP=WP.hasOwnProperty;function kt(e){if(e==null)return!0;if(ti(e)&&(Tt(e)||typeof e=="string"||typeof e.splice=="function"||ri(e)||$a(e)||zi(e)))return!e.length;var t=fr(e);if(t==HP||t==KP)return!e.size;if(Qo(e))return!Wh(e).length;for(var r in e)if(GP.call(e,r))return!1;return!0}function JP(){this.__data__=new tn,this.size=0}function YP(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function XP(e){return this.__data__.get(e)}function ZP(e){return this.__data__.has(e)}var QP=200;function eI(e,t){var r=this.__data__;if(r instanceof tn){var i=r.__data__;if(!ja||i.length<QP-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new rn(i)}return r.set(e,t),this.size=r.size,this}function Cr(e){var t=this.__data__=new tn(e);this.size=t.size}Cr.prototype.clear=JP,Cr.prototype.delete=YP,Cr.prototype.get=XP,Cr.prototype.has=ZP,Cr.prototype.set=eI;function kc(e,t){for(var r=-1,i=e==null?0:e.length;++r<i&&t(e[r],r,e)!==!1;);return e}var es=(function(){try{var e=Zn(Object,"defineProperty");return e({},"",{}),e}catch{}})();function wc(e,t,r){t=="__proto__"&&es?es(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var tI=Object.prototype,rI=tI.hasOwnProperty;function Sc(e,t,r){var i=e[t];(!(rI.call(e,t)&&Ma(i,r))||r===void 0&&!(t in e))&&wc(e,t,r)}function Ui(e,t,r,i){var a=!r;r||(r={});for(var n=-1,o=t.length;++n<o;){var s=t[n],l=void 0;l===void 0&&(l=e[s]),a?wc(r,s,l):Sc(r,s,l)}return r}function og(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var nI=9007199254740991,iI=/^(?:0|[1-9]\d*)$/;function ts(e,t){var r=typeof e;return t=t??nI,!!t&&(r=="number"||r!="symbol"&&iI.test(e))&&e>-1&&e%1==0&&e<t}var aI=Object.prototype,oI=aI.hasOwnProperty;function sg(e,t){var r=Tt(e),i=!r&&zi(e),a=!r&&!i&&ri(e),n=!r&&!i&&!a&&$a(e),o=r||i||a||n,s=o?og(e.length,String):[],l=s.length;for(var u in e)(t||oI.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||n&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||ts(u,l)))&&s.push(u);return s}function Er(e){return ti(e)?sg(e):Wh(e)}function sI(e,t){return e&&Ui(t,Er(t),e)}function lI(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var uI=Object.prototype,cI=uI.hasOwnProperty;function fI(e){if(!$e(e))return lI(e);var t=Qo(e),r=[];for(var i in e)i=="constructor"&&(t||!cI.call(e,i))||r.push(i);return r}function Ua(e){return ti(e)?sg(e,!0):fI(e)}function dI(e,t){return e&&Ui(t,Ua(t),e)}var lg=typeof Xe=="object"&&Xe&&!Xe.nodeType&&Xe,ug=lg&&typeof module=="object"&&module&&!module.nodeType&&module,mI=ug&&ug.exports===lg,cg=mI?$r.Buffer:void 0,fg=cg?cg.allocUnsafe:void 0;function dg(e,t){if(t)return e.slice();var r=e.length,i=fg?fg(r):new e.constructor(r);return e.copy(i),i}function Cc(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}function pI(e,t){for(var r=-1,i=e==null?0:e.length,a=0,n=[];++r<i;){var o=e[r];t(o,r,e)&&(n[a++]=o)}return n}function mg(){return[]}var hI=Object.prototype,gI=hI.propertyIsEnumerable,pg=Object.getOwnPropertySymbols,Ec=pg?function(e){return e==null?[]:(e=Object(e),pI(pg(e),function(t){return gI.call(e,t)}))}:mg;function yI(e,t){return Ui(e,Ec(e),t)}function Ac(e,t){for(var r=-1,i=t.length,a=e.length;++r<i;)e[a+r]=t[r];return e}var vI=Object.getOwnPropertySymbols,hg=vI?function(e){for(var t=[];e;)Ac(t,Ec(e)),e=Wo(e);return t}:mg;function bI(e,t){return Ui(e,hg(e),t)}function gg(e,t,r){var i=t(e);return Tt(e)?i:Ac(i,r(e))}function xc(e){return gg(e,Er,Ec)}function Oc(e){return gg(e,Ua,hg)}var kI=Object.prototype,wI=kI.hasOwnProperty;function SI(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&wI.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var rs=$r.Uint8Array;function _c(e){var t=new e.constructor(e.byteLength);return new rs(t).set(new rs(e)),t}function CI(e,t){var r=t?_c(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var EI=/\w*$/;function AI(e){var t=new e.constructor(e.source,EI.exec(e));return t.lastIndex=e.lastIndex,t}var yg=ur?ur.prototype:void 0,vg=yg?yg.valueOf:void 0;function xI(e){return vg?Object(vg.call(e)):{}}function bg(e,t){var r=t?_c(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var OI="[object Boolean]",_I="[object Date]",PI="[object Map]",II="[object Number]",TI="[object RegExp]",NI="[object Set]",FI="[object String]",DI="[object Symbol]",MI="[object ArrayBuffer]",jI="[object DataView]",LI="[object Float32Array]",qI="[object Float64Array]",RI="[object Int8Array]",zI="[object Int16Array]",$I="[object Int32Array]",UI="[object Uint8Array]",BI="[object Uint8ClampedArray]",VI="[object Uint16Array]",HI="[object Uint32Array]";function KI(e,t,r){var i=e.constructor;switch(t){case MI:return _c(e);case OI:case _I:return new i(+e);case jI:return CI(e,r);case LI:case qI:case RI:case zI:case $I:case UI:case BI:case VI:case HI:return bg(e,r);case PI:return new i;case II:case FI:return new i(e);case TI:return AI(e);case NI:return new i;case DI:return xI(e)}}var kg=Object.create,wg=(function(){function e(){}return function(t){if(!$e(t))return{};if(kg)return kg(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function Sg(e){return typeof e.constructor=="function"&&!Qo(e)?wg(Wo(e)):{}}var WI="[object Map]";function GI(e){return cr(e)&&fr(e)==WI}var Cg=$i&&$i.isMap,JI=Cg?vc(Cg):GI,YI="[object Set]";function XI(e){return cr(e)&&fr(e)==YI}var Eg=$i&&$i.isSet,ZI=Eg?vc(Eg):XI,QI=1,eT=2,tT=4,Ag="[object Arguments]",rT="[object Array]",nT="[object Boolean]",iT="[object Date]",aT="[object Error]",xg="[object Function]",oT="[object GeneratorFunction]",sT="[object Map]",lT="[object Number]",Og="[object Object]",uT="[object RegExp]",cT="[object Set]",fT="[object String]",dT="[object Symbol]",mT="[object WeakMap]",pT="[object ArrayBuffer]",hT="[object DataView]",gT="[object Float32Array]",yT="[object Float64Array]",vT="[object Int8Array]",bT="[object Int16Array]",kT="[object Int32Array]",wT="[object Uint8Array]",ST="[object Uint8ClampedArray]",CT="[object Uint16Array]",ET="[object Uint32Array]",pt={};pt[Ag]=pt[rT]=pt[pT]=pt[hT]=pt[nT]=pt[iT]=pt[gT]=pt[yT]=pt[vT]=pt[bT]=pt[kT]=pt[sT]=pt[lT]=pt[Og]=pt[uT]=pt[cT]=pt[fT]=pt[dT]=pt[wT]=pt[ST]=pt[CT]=pt[ET]=!0,pt[aT]=pt[xg]=pt[mT]=!1;function Ba(e,t,r,i,a,n){var o,s=t&QI,l=t&eT,u=t&tT;if(r&&(o=a?r(e,i,a,n):r(e)),o!==void 0)return o;if(!$e(e))return e;var c=Tt(e);if(c){if(o=SI(e),!s)return Cc(e,o)}else{var f=fr(e),m=f==xg||f==oT;if(ri(e))return dg(e,s);if(f==Og||f==Ag||m&&!a){if(o=l||m?{}:Sg(e),!s)return l?bI(e,dI(o,e)):yI(e,sI(o,e))}else{if(!pt[f])return a?e:{};o=KI(e,f,s)}}n||(n=new Cr);var d=n.get(e);if(d)return d;n.set(e,o),ZI(e)?e.forEach(function(v){o.add(Ba(v,t,r,v,e,n))}):JI(e)&&e.forEach(function(v,g){o.set(g,Ba(v,t,r,g,e,n))});var p=u?l?Oc:xc:l?Ua:Er,k=c?void 0:p(e);return kc(k||e,function(v,g){k&&(g=v,v=e[g]),Sc(o,g,Ba(v,t,r,g,e,n))}),o}function _g(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function AT(e,t,r){var i=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var n=Array(a);++i<a;)n[i]=e[i+t];return n}function xT(e,t){return t.length<2?e:Yo(e,AT(t,0,-1))}var OT=Object.prototype,_T=OT.hasOwnProperty;function Pg(e,t){t=qi(t,e);var r=-1,i=t.length;if(!i)return!0;for(;++r<i;){var a=vn(t[r]);if(a==="__proto__"&&!_T.call(e,"__proto__")||(a==="constructor"||a==="prototype")&&r<i-1)return!1}var n=xT(e,t);return n==null||delete n[vn(_g(t))]}function PT(e){return yn(e)?void 0:e}var Ig=ur?ur.isConcatSpreadable:void 0;function IT(e){return Tt(e)||zi(e)||!!(Ig&&e&&e[Ig])}function Va(e,t,r,i,a){var n=-1,o=e.length;for(r||(r=IT),a||(a=[]);++n<o;){var s=e[n];t>0&&r(s)?t>1?Va(s,t-1,r,i,a):Ac(a,s):i||(a[a.length]=s)}return a}function Pc(e){var t=e==null?0:e.length;return t?Va(e,1):[]}function TT(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var Tg=Math.max;function Ng(e,t,r){return t=Tg(t===void 0?e.length-1:t,0),function(){for(var i=arguments,a=-1,n=Tg(i.length-t,0),o=Array(n);++a<n;)o[a]=i[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=i[a];return s[t]=r(o),TT(e,this,s)}}function NT(e){return function(){return e}}function ns(e){return e}var FT=es?function(e,t){return es(e,"toString",{configurable:!0,enumerable:!1,value:NT(t),writable:!0})}:ns,DT=800,MT=16,jT=Date.now;function LT(e){var t=0,r=0;return function(){var i=jT(),a=MT-(i-r);if(r=i,a>0){if(++t>=DT)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Fg=LT(FT);function Dg(e){return Fg(Ng(e,void 0,Pc),e+"")}var qT=1,RT=2,zT=4,Ha=Dg(function(e,t){var r={};if(e==null)return r;var i=!1;t=Li(t,function(n){return n=qi(n,e),i||(i=n.length>1),n}),Ui(e,Oc(e),r),i&&(r=Ba(r,qT|RT|zT,PT));for(var a=t.length;a--;)Pg(r,t[a]);return r});function is(e,t){if(tt in e&&dc.equal(e[tt],t))return e;for(const r of Object.values(e))if(Array.isArray(r)){for(const i of r)if($e(i)){const a=is(i,t);if(a!==void 0)return a}}else if($e(r)){const i=is(r,t);if(i!==void 0)return i}}function Ic(e,t){const r=ae(e,tt,t);let i=e;at in i&&(i={...i,[at]:dc.resolve(r,i[at])});for(const[a,n]of Object.entries(i))Array.isArray(n)?i={...i,[a]:n.map(o=>$e(o)?Ic(o,r):o)}:$e(n)&&(i={...i,[a]:Ic(n,r)});return i}function Tc(e,t){const r=t[e];return[Ha(t,[e]),r]}function Mg(e,t={},r=[],i=ae(t,[tt])){const a=e||"";let n,o=i;if(a.startsWith("#")){const l=decodeURIComponent(a.substring(1));o===void 0||tt in t&&t[tt]===o?n=mc.get(t,l):t[Ia]===Ko&&(n=is(t,o.replace(/\/$/,"")),n!==void 0&&(n=mc.get(n,l)))}else if(t[Ia]===Ko){const l=o?dc.resolve(o,a):a,[u,...c]=l.replace(/#\/?$/,"").split("#");n=is(t,u.replace(/\/$/,"")),n!==void 0&&(o=n[tt],kt(c)||(n=mc.get(n,decodeURIComponent(c.join("#")))))}if(n===void 0)throw new Error(`Could not find a definition for ${e}.`);const s=n[at];if(s){if(r.includes(s)){if(r.length===1)throw new Error(`Definition for ${e} is a circular reference`);const[f,...m]=r,d=[...m,a,f].join(" -> ");throw new Error(`Definition for ${f} contains a circular reference through ${d}`)}const[l,u]=Tc(at,n),c=Mg(u,t,[...r,a],o);return Object.keys(l).length>0?t[Ia]===kO||t[Ia]===Ko?{[zr]:[l,c]}:{...l,...c}:c}return n}function Ka(e,t={},r=ae(t,[tt])){return Mg(e,t,[],r)}var $T=Object.prototype,UT=$T.hasOwnProperty;function BT(e,t){return e!=null&&UT.call(e,t)}function jg(e,t,r){t=qi(t,e);for(var i=-1,a=t.length,n=!1;++i<a;){var o=vn(t[i]);if(!(n=e!=null&&r(e,o)))break;e=e[o]}return n||++i!=a?n:(a=e==null?0:e.length,!!a&&yc(a)&&ts(o,a)&&(Tt(e)||zi(e)))}function Re(e,t){return e!=null&&jg(e,t,BT)}var VT="[object String]";function bn(e){return typeof e=="string"||!Tt(e)&&cr(e)&&en(e)==VT}function dr(e){let t;const r=ae(e,gO);return bn(r)?t=r:r!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}var HT=1/0;function KT(e){var t=e==null?0:e.length;return t?Va(e,HT):[]}function Nc(e,t,r){(r!==void 0&&!Ma(e[t],r)||r===void 0&&!(t in e))&&wc(e,t,r)}function WT(e){return function(t,r,i){for(var a=-1,n=Object(t),o=i(t),s=o.length;s--;){var l=o[++a];if(r(n[l],l,n)===!1)break}return t}}var Lg=WT();function Wa(e){return cr(e)&&ti(e)}function Fc(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function GT(e){return Ui(e,Ua(e))}function JT(e,t,r,i,a,n,o){var s=Fc(e,r),l=Fc(t,r),u=o.get(l);if(u){Nc(e,r,u);return}var c=n?n(s,l,r+"",e,t,o):void 0,f=c===void 0;if(f){var m=Tt(l),d=!m&&ri(l),p=!m&&!d&&$a(l);c=l,m||d||p?Tt(s)?c=s:Wa(s)?c=Cc(s):d?(f=!1,c=dg(l,!0)):p?(f=!1,c=bg(l,!0)):c=[]:yn(l)||zi(l)?(c=s,zi(s)?c=GT(s):(!$e(s)||Fa(s))&&(c=Sg(l))):f=!1}f&&(o.set(l,c),a(c,l,i,n,o),o.delete(l)),Nc(e,r,c)}function qg(e,t,r,i,a){e!==t&&Lg(t,function(n,o){if(a||(a=new Cr),$e(n))JT(e,t,o,r,qg,i,a);else{var s=i?i(Fc(e,o),n,o+"",e,t,a):void 0;s===void 0&&(s=n),Nc(e,o,s)}},Ua)}function as(e,t){return Fg(Ng(e,t,ns),e+"")}function YT(e,t,r){if(!$e(r))return!1;var i=typeof t;return(i=="number"?ti(r)&&ts(t,r.length):i=="string"&&t in r)?Ma(r[t],e):!1}function XT(e){return as(function(t,r){var i=-1,a=r.length,n=a>1?r[a-1]:void 0,o=a>2?r[2]:void 0;for(n=e.length>3&&typeof n=="function"?(a--,n):void 0,o&&YT(r[0],r[1],o)&&(n=a<3?void 0:n,a=1),t=Object(t);++i<a;){var s=r[i];s&&e(t,s,i,n)}return t})}var ZT=XT(function(e,t,r){qg(e,t,r)});function Dc(e,t,r,i){if(!$e(e))return e;t=qi(t,e);for(var a=-1,n=t.length,o=n-1,s=e;s!=null&&++a<n;){var l=vn(t[a]),u=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(a!=o){var c=s[l];u=i?i(c,l,s):void 0,u===void 0&&(u=$e(c)?c:ts(t[a+1])?[]:{})}Sc(s,l,u),s=s[l]}return e}function st(e,t,r){return e==null?e:Dc(e,t,r)}function Rg(e){return typeof e=="function"?e:ns}var QT=/\s/;function eN(e){for(var t=e.length;t--&&QT.test(e.charAt(t)););return t}var tN=/^\s+/;function rN(e){return e&&e.slice(0,eN(e)+1).replace(tN,"")}var zg=NaN,nN=/^[-+]0x[0-9a-f]+$/i,iN=/^0b[01]+$/i,aN=/^0o[0-7]+$/i,oN=parseInt;function sN(e){if(typeof e=="number")return e;if(Na(e))return zg;if($e(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=$e(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=rN(e);var r=iN.test(e);return r||aN.test(e)?oN(e.slice(2),r?2:8):nN.test(e)?zg:+e}var $g=1/0,lN=17976931348623157e292;function uN(e){if(!e)return e===0?e:0;if(e=sN(e),e===$g||e===-$g){var t=e<0?-1:1;return t*lN}return e===e?e:0}function Ug(e){var t=uN(e),r=t%1;return t===t?r?t-r:t:0}var cN=9007199254740991,Mc=4294967295,fN=Math.min;function Bg(e,t){if(e=Ug(e),e<1||e>cN)return[];var r=Mc,i=fN(e,Mc);t=Rg(t),e-=Mc;for(var a=og(i,t);++r<e;)t(r);return a}function Vg(e,t){return e&&Lg(e,t,Er)}var dN="__lodash_hash_undefined__";function mN(e){return this.__data__.set(e,dN),this}function pN(e){return this.__data__.has(e)}function ni(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new rn;++t<r;)this.add(e[t])}ni.prototype.add=ni.prototype.push=mN,ni.prototype.has=pN;function hN(e,t){for(var r=-1,i=e==null?0:e.length;++r<i;)if(t(e[r],r,e))return!0;return!1}function Ga(e,t){return e.has(t)}var gN=1,yN=2;function Hg(e,t,r,i,a,n){var o=r&gN,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=n.get(e),c=n.get(t);if(u&&c)return u==t&&c==e;var f=-1,m=!0,d=r&yN?new ni:void 0;for(n.set(e,t),n.set(t,e);++f<s;){var p=e[f],k=t[f];if(i)var v=o?i(k,p,f,t,e,n):i(p,k,f,e,t,n);if(v!==void 0){if(v)continue;m=!1;break}if(d){if(!hN(t,function(g,b){if(!Ga(d,b)&&(p===g||a(p,g,r,i,n)))return d.push(b)})){m=!1;break}}else if(!(p===k||a(p,k,r,i,n))){m=!1;break}}return n.delete(e),n.delete(t),m}function vN(e){var t=-1,r=Array(e.size);return e.forEach(function(i,a){r[++t]=[a,i]}),r}function jc(e){var t=-1,r=Array(e.size);return e.forEach(function(i){r[++t]=i}),r}var bN=1,kN=2,wN="[object Boolean]",SN="[object Date]",CN="[object Error]",EN="[object Map]",AN="[object Number]",xN="[object RegExp]",ON="[object Set]",_N="[object String]",PN="[object Symbol]",IN="[object ArrayBuffer]",TN="[object DataView]",Kg=ur?ur.prototype:void 0,Lc=Kg?Kg.valueOf:void 0;function NN(e,t,r,i,a,n,o){switch(r){case TN:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case IN:return!(e.byteLength!=t.byteLength||!n(new rs(e),new rs(t)));case wN:case SN:case AN:return Ma(+e,+t);case CN:return e.name==t.name&&e.message==t.message;case xN:case _N:return e==t+"";case EN:var s=vN;case ON:var l=i&bN;if(s||(s=jc),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;i|=kN,o.set(e,t);var c=Hg(s(e),s(t),i,a,n,o);return o.delete(e),c;case PN:if(Lc)return Lc.call(e)==Lc.call(t)}return!1}var FN=1,DN=Object.prototype,MN=DN.hasOwnProperty;function jN(e,t,r,i,a,n){var o=r&FN,s=xc(e),l=s.length,u=xc(t),c=u.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var m=s[f];if(!(o?m in t:MN.call(t,m)))return!1}var d=n.get(e),p=n.get(t);if(d&&p)return d==t&&p==e;var k=!0;n.set(e,t),n.set(t,e);for(var v=o;++f<l;){m=s[f];var g=e[m],b=t[m];if(i)var w=o?i(b,g,m,t,e,n):i(g,b,m,e,t,n);if(!(w===void 0?g===b||a(g,b,r,i,n):w)){k=!1;break}v||(v=m=="constructor")}if(k&&!v){var E=e.constructor,h=t.constructor;E!=h&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof h=="function"&&h instanceof h)&&(k=!1)}return n.delete(e),n.delete(t),k}var LN=1,Wg="[object Arguments]",Gg="[object Array]",os="[object Object]",qN=Object.prototype,Jg=qN.hasOwnProperty;function RN(e,t,r,i,a,n){var o=Tt(e),s=Tt(t),l=o?Gg:fr(e),u=s?Gg:fr(t);l=l==Wg?os:l,u=u==Wg?os:u;var c=l==os,f=u==os,m=l==u;if(m&&ri(e)){if(!ri(t))return!1;o=!0,c=!1}if(m&&!c)return n||(n=new Cr),o||$a(e)?Hg(e,t,r,i,a,n):NN(e,t,l,r,i,a,n);if(!(r&LN)){var d=c&&Jg.call(e,"__wrapped__"),p=f&&Jg.call(t,"__wrapped__");if(d||p){var k=d?e.value():e,v=p?t.value():t;return n||(n=new Cr),a(k,v,r,i,n)}}return m?(n||(n=new Cr),jN(e,t,r,i,a,n)):!1}function ss(e,t,r,i,a){return e===t?!0:e==null||t==null||!cr(e)&&!cr(t)?e!==e&&t!==t:RN(e,t,r,i,ss,a)}var zN=1,$N=2;function UN(e,t,r,i){var a=r.length,n=a;if(e==null)return!n;for(e=Object(e);a--;){var o=r[a];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++a<n;){o=r[a];var s=o[0],l=e[s],u=o[1];if(o[2]){if(l===void 0&&!(s in e))return!1}else{var c=new Cr,f;if(!(f===void 0?ss(u,l,zN|$N,i,c):f))return!1}}return!0}function Yg(e){return e===e&&!$e(e)}function BN(e){for(var t=Er(e),r=t.length;r--;){var i=t[r],a=e[i];t[r]=[i,a,Yg(a)]}return t}function Xg(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function VN(e){var t=BN(e);return t.length==1&&t[0][2]?Xg(t[0][0],t[0][1]):function(r){return r===e||UN(r,e,t)}}function HN(e,t){return e!=null&&t in Object(e)}function Zg(e,t){return e!=null&&jg(e,t,HN)}var KN=1,WN=2;function GN(e,t){return ac(e)&&Yg(t)?Xg(vn(e),t):function(r){var i=ae(r,e);return i===void 0&&i===t?Zg(r,e):ss(t,i,KN|WN)}}function JN(e){return function(t){return t==null?void 0:t[e]}}function YN(e){return function(t){return Yo(t,e)}}function XN(e){return ac(e)?JN(vn(e)):YN(e)}function qc(e){return typeof e=="function"?e:e==null?ns:typeof e=="object"?Tt(e)?GN(e[0],e[1]):VN(e):XN(e)}function ZN(e,t,r){var i=Tt(e),a=i||ri(e)||$a(e);if(t=qc(t),r==null){var n=e&&e.constructor;a?r=i?new n:[]:$e(e)?r=Fa(n)?wg(Wo(e)):{}:r={}}return(a?kc:Vg)(e,function(o,s,l){return t(r,o,s,l)}),r}function QN(e,t,r,i){for(var a=e.length,n=r+-1;++n<a;)if(t(e[n],n,e))return n;return-1}function eF(e){return e!==e}function tF(e,t,r){for(var i=r-1,a=e.length;++i<a;)if(e[i]===t)return i;return-1}function Qg(e,t,r){return t===t?tF(e,t,r):QN(e,eF,r)}function Rc(e,t){var r=e==null?0:e.length;return!!r&&Qg(e,t,0)>-1}function ls(){}var rF=1/0,nF=Ri&&1/jc(new Ri([,-0]))[1]==rF?function(e){return new Ri(e)}:ls,iF=200;function ey(e,t,r){var i=-1,a=Rc,n=e.length,o=!0,s=[],l=s;if(n>=iF){var u=nF(e);if(u)return jc(u);o=!1,a=Ga,l=new ni}else l=s;e:for(;++i<n;){var c=e[i],f=c;if(c=c!==0?c:0,o&&f===f){for(var m=l.length;m--;)if(l[m]===f)continue e;s.push(c)}else a(l,f,r)||(l!==s&&l.push(f),s.push(c))}return s}function ty(e){return e&&e.length?ey(e):[]}function Ja(e){return Array.isArray(e)?"array":typeof e=="string"?"string":e==null?"null":typeof e=="boolean"?"boolean":typeof e=="number"&&!Number.isNaN(e)?"number":typeof e=="object"?"object":"string"}var aF=as(function(e){return ey(Va(e,1,Wa,!0))});function mr(e){let{type:t}=e;return!t&&e.const?Ja(e.const):!t&&e.enum?"string":!t&&(e.properties||e.additionalProperties||e.patternProperties)?"object":(Array.isArray(t)&&(t.length===2&&t.includes("null")?t=t.find(r=>r!=="null"):t=t[0]),t)}function an(e,t){const r={...e},i=Object.keys(t).reduce((a,n)=>{const o=e?e[n]:{},s=t[n];return e&&n in e&&be(s)?a[n]=an(o,s):e&&t&&(mr(e)==="object"||mr(t)==="object")&&n===vh&&Array.isArray(o)&&Array.isArray(s)?a[n]=aF(o,s):a[n]=s,a},r);for(const a of Object.getOwnPropertySymbols(t))i[a]=t[a];return i}var oF="[object Number]";function ry(e){return typeof e=="number"||cr(e)&&en(e)==oF}function ny(e,t,r){var i;if(e&&r){const a=ae(e,r);if(a===void 0)return;for(let n=0;n<t.length;n+=1){const o=t[n],s=ae(o,[ze,r],{});if(s.type!=="object"&&s.type!=="array"&&(s.const===a||!((i=s.enum)===null||i===void 0)&&i.includes(a)))return n}}}function us(e,t,r,i,a){if(t===void 0)return 0;const n=ny(t,r,a);if(ry(n))return n;for(let o=0;o<r.length;o+=1){const s=r[o];if(a&&Re(s,[ze,a])){const l=ae(t,a),u=ae(s,[ze,a],{});if(e.isValid(u,l,i))return o}else if(s[ze]){const l={anyOf:Object.keys(s[ze]).map(c=>({required:[c]}))};let u;if(s.anyOf){const{...c}=s;c.allOf?c.allOf=c.allOf.slice():c.allOf=[],c.allOf.push(l),u=c}else u={...s,...l};if(delete u.required,e.isValid(u,t,i))return o}else if(e.isValid(s,t,i))return o}return 0}const sF=Object.prototype;function Ya(e){for(const t in e)if(sF.hasOwnProperty.call(e,t))return!1;return!0}const lF=["array","boolean","integer","null","number","object","string"];new Set(lF);const uF=["$defs","definitions","properties","patternProperties","dependencies"];new Set(uF);const cF=["items","allOf","oneOf","anyOf"];new Set(cF);const fF=["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"];new Set(fF);function cs(e){return typeof e=="object"}function Ur(e){return cs(e)?Ya(e):e===!0}function Bi(e,t){return e<t?-1:e>t?1:0}function zc(e,t){const r=e.length;if(r===0)return t;let i=t.length;if(i===0)return e;if(r<i){const n=e;e=t,t=n,i=r}const a=new Set(e);for(let n=0;n<i;n++)a.add(t[n]);return Array.from(a)}function dF(e,t){const r=[];if(e.length===0||t.length===0)return r;if(e.length>t.length){const a=e;e=t,t=a}const i=new Set(t);for(let a=0;a<e.length&&i.size>0;a++){const n=e[a];i.delete(n)&&r.push(n)}return r}function iy(e){return e.length===0}function $c(e){return(t,r)=>{const i=t.length-r.length;if(i!==0)return i;for(let a=0;a<t.length;a++)if(t[a]!==r[a]){const n=e(t[a],r[a]);if(n!==0)return n}return 0}}function ay(e,{threshold:t=12}={}){return r=>{const i=r.length;if(i===0)return r;if(i<=t){const o=[];let s=0;e:for(let l=0;l<i;l++){const u=r[l];for(let c=0;c<s;c++)if(e(u,o[c])===0)continue e;s=o.push(u)}return o}const a=r.slice().sort(e);let n=0;for(let o=1;o<i;o++)e(a[n],a[o])!==0&&++n!==o&&(a[n]=a[o]);return a.length=n+1,a}}function mF(e){return(t,r)=>{const i=[];let a=t.length,n=r.length;if(a===0||n===0)return i;if(a>n){const c=t;t=r,r=c;const f=a;a=n,n=f}const o=[...t].sort(e),s=[...r].sort(e);let l=0,u=0;for(;l<a&&u<n;){const c=e(o[l],s[u]);c===0?((i.length===0||e(i[i.length-1],o[l])!==0)&&i.push(o[l]),l++,u++):c<0?l++:u++}return i}}function pF(e,t){return r=>{if(e.has(r))return e.get(r);const i=t(r);return e.set(r,i),i}}const oy=pF,sy=()=>0,hF=e=>e===void 0,gF=e=>typeof e!="object",ly={boolean:0,number:1,string:2};function yF(e,t){const r=typeof e,i=typeof t;return r===i?Bi(e,t):ly[r]-ly[i]}function vF(e,t){const r=e.length;if(r===0)return t;const i=t.length;if(i===0)return e;if(i>r){const o=e;e=t,t=o}const a=new Set(e),n=t.length;for(let o=0;o<n;o++){const s=t[o];a.has(s)||e.push(s)}return e}function fs(e,t,r=sy){return(i,a)=>e(i)?e(a)?r(i,a):-1:e(a)?1:t(i,a)}function Vi(e){return fs(hF,e)}function kn(e,t){return fs(r=>r===void 0||e(r),t)}function Uc(e,t){return fs(Array.isArray,e,t)}const _t=Vi(Bi),Bc=kn(e=>e===0,(e,t)=>e-t);function bF({deduplicationCache:e=new WeakMap,sortedKeysCache:t=new WeakMap}={}){const r=oy(t,k=>Object.keys(k).sort());function i(k){return(v,g)=>{const b=r(v),w=r(g),E=Math.min(b.length,w.length);for(let h=0;h<E;h++){const y=Bi(b[h],w[h]);if(y!==0)return y}if(b.length!==w.length)return b.length-w.length;for(let h=0;h<E;h++){const y=b[h],C=k(v[y],g[y]);if(C!==0)return C}return 0}}function a(k){const v=$c(k),g=oy(e,ay(k,{threshold:0}));return(b,w)=>v(g(b),g(w))}const n=a(Bi);function o(k,v){if(cs(k)){if(cs(v)){const g=Object.keys(k),b=Object.keys(v),w=vF(g,b),E=w.length;for(let h=0;h<E;h++){const y=w[h];if(k[y]===v[y])continue;const x=(p[y]??s)(k[y],v[y]);if(x!==0)return x}return 0}return v===!0&&Ya(k)?0:1}return cs(v)?k===!0&&Ya(v)?0:-1:Bi(k,v)}const s=Vi(u),l=fs(gF,Uc(i(s),$c(u)),yF);function u(k,v){return k===null?-1:v===null?1:l(k,v)}const c=Vi(o),f=kn(Ya,i(c)),m=Vi(a(o)),d=kn(Ur,o),p={$id:_t,$comment:_t,$defs:f,$ref:_t,$schema:_t,const:s,contains:c,contentEncoding:_t,contentMediaType:_t,default:s,definitions:f,description:_t,else:c,examples:s,exclusiveMaximum:_t,exclusiveMinimum:_t,format:_t,if:c,maximum:_t,maxItems:_t,maxLength:_t,maxProperties:_t,minimum:_t,multipleOf:_t,not:c,pattern:_t,propertyNames:c,readOnly:_t,then:c,title:_t,writeOnly:_t,uniqueItems:kn(k=>k===!1,sy),minLength:Bc,minItems:Bc,minProperties:Bc,required:kn(iy,n),enum:kn(iy,a(u)),type:Vi((k,v)=>{const g=Array.isArray(k),b=Array.isArray(v);return!g&&!b?Bi(k,v):n(g?k:[k],b?v:[v])}),items:kn(k=>!Array.isArray(k)&&Ur(k),Uc(o,$c(o))),anyOf:m,allOf:m,oneOf:m,properties:f,patternProperties:f,additionalProperties:d,additionalItems:d,dependencies:kn(Ya,i(Vi(Uc(o,n))))};return{compareSchemaValues:u,compareSchemaDefinitions:o}}function uy(e){return e}const cy=(e,t)=>e?cy(t%e,e):t,kF=(e,t)=>Math.abs(e*t)/cy(e,t);function wF(e,t){return e===t?e:`(?=.*(?:${e}))(?=.*(?:${t}))`}function Vc(e,t,r){const i=e.length,a=t.length;if(i>0&&a>0)for(let n=0;n<i;n++){const o=e[n];for(let s=0;s<a;s++)r(o,t[s])}}function Hc(e,t){return e||t}function fy(e){return(t,r)=>{const i={...t},a=Object.keys(r),n=a.length;for(let o=0;o<n;o++){const s=a[o];i[s]=t[s]===void 0?r[s]:e(t[s],r[s])}return i}}function SF(e){const t=new Map;for(const r of e)for(const i of r[0])t.set(i,r[1]);return t}function ii(e,t,r){r===void 0||Ur(r)?delete e[t]:e[t]=r}const CF=["properties","patternProperties","additionalProperties"];function dy(e){const t=Object.keys(e),r=t.length,i=[];for(let a=0;a<r;a++){const n=t[a];i.push({regExp:new RegExp(n),schema:e[n]})}return[i,t]}const my=[[],[]];function py(e,t,r){const i=r.length;for(let a=0;a<i;a++){const n=r[a];if(!n.regExp.test(t))continue;const o=n.schema;if(o===!1)return!0;e.push(o)}return!1}const EF=["items","additionalItems"],AF=["if","then","else"];function hy(e,t){return t.if!==void 0&&(e.if=t.if),t.then!==void 0&&(e.then=t.then),t.else!==void 0&&(e.else=t.else),e}function Kc(e,t){if(e===t)return e;switch(e){case"number":if(t==="integer")return"integer";case"integer":if(t==="number")return"integer";default:return}}function ai(e,t,r){return[e,t,r]}function xF(e){const t=new Map;for(const[r,i,a]of e){const n=o=>{if(!a(o))throw new Error(`Schema keys '${r}' and '${i}' are conflicting (${r}: ${JSON.stringify(o[r])}, ${i}: ${JSON.stringify(o[i])})`)};for(const o of[[r,i],[i,r]]){let s=t.get(o[0]);s===void 0&&(s=[],t.set(o[0],s)),s.push({oppositeKey:o[1],check:n})}}return t}const OF=[ai("minimum","maximum",e=>e.maximum>=e.minimum),ai("exclusiveMinimum","maximum",e=>e.maximum>e.exclusiveMinimum),ai("minimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.minimum),ai("exclusiveMinimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.exclusiveMinimum),ai("minLength","maxLength",e=>e.maxLength>=e.minLength),ai("minItems","maxItems",e=>e.maxItems>=e.minItems),ai("minProperties","maxProperties",e=>e.maxProperties>=e.minProperties)];function _F({mergePatterns:e=wF,isSubRegExp:t=Object.is,intersectJson:r=dF,deduplicateJsonSchemaDef:i=uy,defaultMerger:a=uy,assigners:n=[],checks:o=OF,mergers:s}={}){function l(E){const h=E.length;let y=E[0];for(let C=1;C<h;C++){const x=g(y,E[C]);if(x===!1)return!1;Ur(x)||(y=x)}return y}function u(E,h,y,C,x,_,S){if(E.length=0,y===!1)return!1;if(E.push(y),x!==void 0){if(x===!1)return!1;E.push(x)}if(py(E,h,_))return!1;const O=E.length<2;if(S===!1){if(O)return;if(py(E,h,C))return!1}else O&&S!==void 0&&E.push(S);return E.length===1?E[0]:l(E)}function c(E,h,y,C,x,_){const S=y.length;if(S>0&&x!==!1)if(_)Object.assign(E,h);else for(let A=0;A<S;A++){const O=y[A];C.has(O)||(E[O]=g(h[O],x))}return E}const f=(E,{properties:h={},patternProperties:y,additionalProperties:C=!0},{properties:x={},patternProperties:_,additionalProperties:S=!0})=>{const A=Ur(C),O=Ur(S);if(A&&O)return ii(E,"properties",b(h,x)),ii(E,"patternProperties",y&&_?b(y,_):y??_),delete E.additionalProperties,E;const F=g(C,S);ii(E,"additionalProperties",F);const T={},M=Object.keys(h),q=M.length,[J,Y]=y?dy(y):my,[Q,P]=_?dy(_):my,j=[],B=new Set,I=O?void 0:S;for(let G=0;G<q;G++){const X=M[G];B.add(X);const z=u(j,X,h[X],J,x[X],Q,I);z!==void 0&&(T[X]=z)}const D=Object.keys(x),L=D.length,U=A?void 0:C;for(let G=0;G<L;G++){const X=D[G];if(B.has(X))continue;const z=u(j,X,x[X],Q,void 0,J,U);z!==void 0&&(T[X]=z)}ii(E,"properties",T);let $={};const H=new Set;return Y.length>0&&P.length>0&&Vc(Y,P,(G,X)=>{t(G,X)&&H.add(G),t(X,G)&&H.add(X),$[e(G,X)]=g(y[G],_[X])}),$=c($,y,Y,H,S,O),$=c($,_,P,H,C,A),ii(E,"patternProperties",$),E},m=(E,{items:h=[],additionalItems:y},{items:C=[],additionalItems:x})=>{const _=Array.isArray(h),S=Array.isArray(C),A=[];if(E.items=A,_&&S){const[O,F,T]=h.length<C.length?[h.length,y,C]:[C.length,x,h];let M=0;for(;M<O;M++)A.push(g(h[M],C[M]));if(F===!1)E.additionalItems=!1;else{const q=F===void 0||Ur(F);for(;M<T.length;M++)A.push(q?T[M]:g(T[M],F));ii(E,"additionalItems",y!==void 0&&x!==void 0?g(y,x):y??x)}}else if(_||S){const[O,F,T]=_?[h,C,y]:[C,h,x];ii(E,"additionalItems",T&&g(T,F));for(let M=0;M<O.length;M++)A.push(g(O[M],F))}else delete E.additionalItems,E.items=g(h,C);return E},d=(E,h,y)=>{hy(E,h);const C=hy({},y);return E.allOf===void 0?E.allOf=[C]:E.allOf=E.allOf.concat(C),E};function p(E,h){const y=[];if(Vc(E,h,(C,x)=>{try{y.push(g(C,x))}catch{}}),y.length===0)throw new Error(`No valid schema combinations could be produced for "${JSON.stringify(E)}" and "${JSON.stringify(h)}"; the merged result is empty`);return i(y)}const k=SF([[CF,f],[EF,m],[AF,d],...n]),v=xF(o);function g(E,h){if(E===!1||h===!1)return!1;if(Ur(E))return Ur(h)?!0:h;if(Ur(h))return E;let y={...E};const C=new Set,x=new Set,_=Reflect.ownKeys(h),S=_.length;for(let A=0;A<S;A++){const O=_[A],F=h[O];if(F===void 0)continue;const T=v.get(O);if(T!==void 0){const Y=T.length;for(let Q=0;Q<Y;Q++){const P=T[Q];E[P.oppositeKey]!==void 0&&x.add(P.check)}}const M=E[O];if(M===void 0){y[O]=F;continue}const q=k.get(O);if(q){C.add(q);continue}const J=w[O]??a;y[O]=J(M,F)}for(const A of C)y=A(y,E,h);for(const A of x)A(y);return y}const b=fy(g),w={$id:a,$ref:a,$schema:a,$comment:a,$defs:b,definitions:b,type:(E,h)=>{if(E===h)return E;const y=Array.isArray(E),C=Array.isArray(h);if(!y&&!C){const x=Kc(E,h);if(x!==void 0)return x}else if(y||C){const x=new Set;if(y&&C)Vc(E,h,(S,A)=>{const O=Kc(S,A);O!==void 0&&x.add(O)});else{const S=y?E:h,A=y?h:E,O=S.length;for(let F=0;F<O;F++){const T=Kc(A,S[F]);T!==void 0&&x.add(T)}}const _=x.size;if(_===1)return x.values().next().value;if(_>1)return Array.from(x)}throw new Error(`It is not possible to create an intersection of the following incompatible types: ${E.toString()}, ${h.toString()}`)},default:a,description:a,title:a,const:a,format:a,contentEncoding:a,contentMediaType:a,not:(E,h)=>{const y=i([E,h]);return y.length===1?y[0]:{anyOf:y}},pattern:e,readOnly:Hc,writeOnly:Hc,enum:(E,h)=>{const y=r(E,h);if(y.length===0)throw new Error(`Intersection of the following enums is empty: "${JSON.stringify(E)}", "${JSON.stringify(h)}"`);return y},anyOf:p,oneOf:p,allOf:(E,h)=>i(E.concat(h)),propertyNames:g,contains:g,dependencies:fy((E,h)=>Array.isArray(E)?Array.isArray(h)?zc(E,h):g(h,{required:E}):Array.isArray(h)?g(E,{required:h}):g(E,h)),examples:(E,h)=>{if(!Array.isArray(E)||!Array.isArray(h))throw new Error(`Value of the 'examples' field should be an array, but got "${JSON.stringify(E)}" and "${JSON.stringify(h)}"`);return zc(E,h)},multipleOf:(E,h)=>{let y=1;for(;!Number.isInteger(E)||!Number.isInteger(h);)y*=10,E*=10,h*=10;return kF(E,h)/y},exclusiveMaximum:Math.min,maximum:Math.min,maxItems:Math.min,maxLength:Math.min,maxProperties:Math.min,exclusiveMinimum:Math.max,minimum:Math.max,minItems:Math.max,minLength:Math.max,minProperties:Math.max,uniqueItems:Hc,required:zc,...s};return{mergeSchemaDefinitions:g,mergeArrayOfSchemaDefinitions:l}}function PF(e){const t=[],r=[e];for(;r.length>0;){const i=r.pop();if(typeof i=="boolean"||i.allOf===void 0){t.push(i);continue}const{allOf:a,...n}=i;t.push(n);for(let o=a.length-1;o>=0;o--)r.push(a[o])}return t}function IF(e){return t=>e(PF(t))}const{compareSchemaDefinitions:TF,compareSchemaValues:NF}=bF(),{mergeArrayOfSchemaDefinitions:FF}=_F({intersectJson:mF(NF),deduplicateJsonSchemaDef:ay(TF)}),gy=IF(FF);function Mt(e,t,r={},i,a,n=!1){return Br(e,t,r,i,void 0,void 0,a,n)[0]}function yy(e){return typeof e!="boolean"?e:e?{}:{not:{}}}function DF(e,t,r,i,a,n,o){const{if:s,then:l,else:u,...c}=t,f=e.isValid(s,n||{},r);let m=[c],d=[];if(i){if(l&&typeof l!="boolean"){const p=l;d=d.concat(Br(e,p,r,n,i,a,o))}if(u&&typeof u!="boolean"){const p=u;d=d.concat(Br(e,p,r,n,i,a,o))}}else{const p=f?l:u;if(p!==void 0){const k=yy(p);d=d.concat(Br(e,k,r,n,i,a,o))}}return d.length&&(m=d.map(p=>an(c,p))),m.flatMap(p=>Br(e,p,r,n,i,a,o))}function vy(e){return e.reduce((r,i)=>i.length>1?i.flatMap(a=>Bg(r.length,n=>[...r[n]].concat(a))):(r.forEach(a=>a.push(i[0])),r),[[]])}function by(e,t){return Object.keys(e.patternProperties).filter(r=>RegExp(r).test(t)).reduce((r,i)=>(st(r,[i],e.patternProperties[i]),r),{})}function MF(e,t,r,i,a,n,o,s){const l=ky(e,t,r,i,a,n,o,s);if(l.length>1||l[0]!==t)return l;if(Yu in t)return Sy(e,t,r,i,a,n,o).flatMap(c=>Br(e,c,r,n,i,a,o));if(zr in t&&Array.isArray(t[zr])){const u=t.allOf.map(f=>Br(e,f,r,n,i,a,o));return vy(u).map(f=>({...t,allOf:f}))}return[t]}function ky(e,t,r,i,a,n,o,s){const l=wn(t,r,a,void 0,s);return l!==t?Br(e,l,r,n,i,a,o,s):[t]}function wn(e,t,r,i,a,n=!1){if(!be(e))return e;let o=e,s=i;if(at in o){const{$ref:l,...u}=o;if(r.includes(l))return n?{...o,[ec]:!0}:o;r.push(l),o={...Ka(l,t,s),...u,[Ho]:l},tt in o&&(s=o[tt])}if(ze in o){const l=[],u=ZN(o[ze],(c,f,m)=>{const d=[...r];c[m]=wn(f,t,d,s,a,!a),l.push(d)},{});ZT(r,ty(KT(l))),o={...o,[ze]:u}}if(ji in o&&!Array.isArray(o.items)&&typeof o.items!="boolean"&&(o={...o,items:wn(o.items,t,r,s,a)}),a){let l,u;je in e&&Array.isArray(e[je])?(l=je,u=o[je]):xe in e&&Array.isArray(e[xe])&&(l=xe,u=o[xe]),l&&u&&(o={...o,[l]:u.map(c=>wn(c,t,r,s,a))})}return Ue(e,o)?e:o}function jF(e,t,r,i,a){const n={...t,properties:{...t.properties}},o=i&&be(i)?i:{};return Object.keys(o).forEach(s=>{if(!(s in n.properties)){if(Zu in n){const l=by(n,s);if(!kt(l)){n.properties[s]=Mt(e,{[zr]:Object.values(l)},r,ae(o,[s]),a),n.properties[s][hn]=!0;return}}if(Mi in n&&n.additionalProperties!==!1){let l;typeof n.additionalProperties!="boolean"?at in n.additionalProperties?l=Mt(e,{[at]:ae(n.additionalProperties,[at])},r,ae(o,[s]),a):"type"in n.additionalProperties?l={...n.additionalProperties}:je in n.additionalProperties||xe in n.additionalProperties?l={type:"object",...n.additionalProperties}:l={type:Ja(ae(o,[s]))}:l={type:Ja(ae(o,[s]))},n.properties[s]=l,n.properties[s][hn]=!0}else n.properties[s]={type:"null"},n.properties[s][hn]=!0}}),n}function LF(e){return gy(e)}function Br(e,t,r,i,a=!1,n=[],o,s){return be(t)?MF(e,t,r,a,n,i,o,s).flatMap(u=>{var c;let f=u;if(Xu in f)return DF(e,f,r,a,n,i,o);if(zr in f){if(a){const{allOf:d,...p}=f;return[...d,p]}try{const d=[],p=[],k={};(c=f.allOf)===null||c===void 0||c.forEach(v=>{if(typeof v=="object"&&v.contains)d.push(v);else{p.push(v);for(const g of Object.getOwnPropertySymbols(v))g in k||(k[g]=v[g])}}),d.length&&(f={...f,allOf:p}),f=o?o(f):LF(f);for(const v of Object.getOwnPropertySymbols(k))f[v]=k[v];d.length&&(f.allOf=d)}catch(d){console.warn(`could not merge subschemas in allOf:
|
|
59
|
+
`,d);const{allOf:p,...k}=f;return k}}return ze in f&&Zu in f&&(f=Object.keys(f.properties).reduce((d,p)=>{const k=by(d,p);return kt(k)||(d.properties[p]=Mt(e,{allOf:[d.properties[p],...Object.values(k)]},r,ae(i,[p]),o)),d},{...f,properties:{...f.properties}})),Zu in f||Mi in f&&f.additionalProperties!==!1?jF(e,f,r,i,o):f}):[{}]}function qF(e,t,r,i,a){let n;const{oneOf:o,anyOf:s,...l}=t;if(Array.isArray(o)?n=o:Array.isArray(s)&&(n=s),n){const u=a===void 0&&i?{}:a,c=dr(t);n=n.map(m=>wn(m,r,[]));const f=us(e,u,n,r,c);if(i){const m=wy(n,!1,r);return us(e,u,m,r,c),n.map(d=>an(l,d))}return[an(l,n[f])]}return[t]}function wy(e,t=!1,r){return e.map(i=>{if(!be(i))return yy(i);const a=t&&r?wn(i,r,[]):i;return a.additionalProperties===!1?{...a,additionalProperties:!0}:a})}function Sy(e,t,r,i,a,n,o){const{dependencies:s,...l}=t;return qF(e,l,r,i,n).flatMap(c=>Cy(e,s,c,r,i,a,n,o))}function Cy(e,t,r,i,a,n,o,s){let l=[r];for(const u in t)if((a||ae(o,[u])!==void 0)&&(!r.properties||u in r.properties)){const[c,f]=Tc(u,t);return Array.isArray(f)?l[0]=RF(r,f):be(f)&&(l=zF(e,r,i,u,f,a,n,o,s)),l.flatMap(m=>Cy(e,c,m,i,a,n,o,s))}return l}function RF(e,t){if(!t)return e;const r=Array.isArray(e.required)?Array.from(new Set([...e.required,...t])):t;return{...e,required:r}}function zF(e,t,r,i,a,n,o,s,l){return Br(e,a,r,s,n,o,l).flatMap(c=>{const{oneOf:f,...m}=c,d=an(t,m);if(f===void 0)return d;const p=f.map(v=>typeof v=="boolean"||!(at in v)?[v]:ky(e,v,r,n,o,s));return vy(p).flatMap(v=>$F(e,d,r,i,v,n,o,s,l))})}function $F(e,t,r,i,a,n,o,s,l){const u=a.filter(c=>{if(typeof c=="boolean"||!(c!=null&&c.properties))return!1;const{[i]:f}=c.properties;if(f){const m={type:"object",properties:{[i]:f}};return e.isValid(m,s,r)||n}return!1});return!n&&u.length!==1?(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[t]):u.flatMap(c=>{const f=c,[m]=Tc(i,f.properties),d={...f,properties:m};return Br(e,d,r,s,n,o,l).map(k=>an(t,k))})}function Xa(e,t,r,i,a,n={},o){if(Array.isArray(r[a])){const l=dr(r)||i,u=r[a].map(f=>Mt(e,f,t,n,o)),c=ae(n,l);if(c!==void 0)return u.find(f=>Ue(ae(f,[ze,l,Yn],ae(f,[ze,l,Vt])),c))}}function Ey(e,t,r,i,a){let n=r;if(Re(r,at)&&(n=Mt(e,r,t,void 0,a)),kt(i))return n;const o=Array.isArray(i)?[...i]:i.split("."),[s,...l]=o;if(s!==void 0&&s!==""&&Re(n,s))return n=ae(n,s),Ey(e,t,n,l,a)}function ds(e,t,r,i,a,n){const o=Ey(e,t,r,i,n);return o===void 0?a:o}const Ay={title:"!@#$_UNKNOWN_$#@!"};function UF(e,t,r,i,a={},n){const o=Array.isArray(i)?[...i]:i.split(".");let s=r;const l=o.pop(),u=String(l);o.length&&o.forEach(d=>{s=ds(e,t,s,[ze,d],{},n),Re(s,xe)?s=Xa(e,t,s,u,xe,ae(a,d),n):Re(s,je)&&(s=Xa(e,t,s,u,je,ae(a,d),n))}),Re(s,xe)?s=Xa(e,t,s,u,xe,a,n):Re(s,je)&&(s=Xa(e,t,s,u,je,a,n));let c=ds(e,t,s,[ze,l],Ay,n);c===Ay&&(c=void 0);const f=ds(e,t,s,vh,[],n);let m;return c&&Array.isArray(f)&&(m=f.includes(u)),{field:c,isRequired:m}}function BF(e,t,r,i){var a=-1,n=e==null?0:e.length;for(i&&n&&(r=e[++a]);++a<n;)r=t(r,e[a],a,e);return r}function VF(e,t){return function(r,i){if(r==null)return r;if(!ti(r))return e(r,i);for(var a=r.length,n=-1,o=Object(r);++n<a&&i(o[n],n,o)!==!1;);return r}}var xy=VF(Vg);function HF(e,t,r,i,a){return a(e,function(n,o,s){r=i?(i=!1,n):t(r,n,o,s)}),r}function KF(e,t,r){var i=Tt(e)?BF:HF,a=arguments.length<3;return i(e,qc(t),r,a,xy)}const WF={type:"object",$id:hO,properties:{__not_really_there__:{type:"number"}}};function Wc(e,t,r,i,a){let n=0;return r&&($e(r.properties)?n+=KF(r.properties,(o,s,l)=>{const u=ae(i,l);if(typeof s=="boolean")return o;if(Re(s,at)){const c=Mt(e,s,t,u,a);return o+Wc(e,t,c,u||{},a)}if((Re(s,xe)||Re(s,je))&&u){const c=Re(s,xe)?xe:je,f=dr(s);return o+Hi(e,t,u,ae(s,c),-1,f,a)}if(s.type==="object"){const c=$e(u)?1:0;return o+c+Wc(e,t,s,u,a)}if(s.type===Ja(u)){let c=o+1;return s.default?c+=u===s.default?1:-1:s.const&&(c+=u===s.const?1:-1),c}return o},0):bn(r.type)&&r.type===Ja(i)&&(n+=1)),n}function Hi(e,t,r,i,a=-1,n,o){const s=i.map(m=>wn(m,t,[])),l=ny(r,i,n);if(ry(l))return l;const u=s.reduce((m,d,p)=>(us(e,r,[WF,d],t,n)===1&&m.push(p),m),[]);if(u.length===1)return u[0];u.length||Bg(s.length,m=>u.push(m));const c=new Set,{bestIndex:f}=u.reduce((m,d)=>{const{bestScore:p}=m,k=s[d],v=Wc(e,t,k,r,o);return c.add(v),v>p?{bestIndex:d,bestScore:v}:m},{bestIndex:a,bestScore:0});return c.size===1&&a>=0?a:f}function Oy(e){const t=e[Vt],r=mr(e);return be(t)&&bn(t==null?void 0:t.$data)&&r!=="object"&&r!=="array"}function _y(e){return Array.isArray(e.enum)&&e.enum.length===1||Vt in e}function Gc(e){return Array.isArray(e.items)&&e.items.every(t=>be(t))}function Ki(e){return e==null}function Za(e,t,r=!1,i=!1,a=!1){if(Array.isArray(t)){const n=Array.isArray(e)?e:[],o=a?n:t,s=a?t:n,l=o.map((u,c)=>s[c]!==void 0?Za(n[c],t[c],r,i,a):u);return(r||a)&&l.length<s.length&&l.push(...s.slice(l.length)),l}if(be(t)){const n=Object.assign({},e);return Object.keys(t).reduce((o,s)=>{var l;const u=ae(t,s),c=be(e)&&s in e,f=s in t,m=(l=ae(e,s))!==null&&l!==void 0?l:{},d=c&&be(m)&&Object.values(m).some(v=>be(v)),p=c&&be(ae(e,s)),k=f&&be(u);return p&&k&&!d?(o[s]={...ae(e,s),...u},o):(o[s]=Za(ae(e,s),u,r,i,a&&(c||!f)),n)},n)}return i&&(e!==void 0&&Ki(t)||typeof t=="number"&&Number.isNaN(t))||a&&!Ki(t)?e:t}function Sn(e,t,r=!1){return Object.keys(t).reduce((i,a)=>{const n=e?e[a]:{},o=t[a];if(e&&a in e&&be(o))i[a]=Sn(n,o,r);else if(r&&Array.isArray(n)&&Array.isArray(o)){let s=o;r==="preventDuplicates"&&(s=o.reduce((l,u)=>(n.includes(u)||l.push(u),l),[])),i[a]=n.concat(s)}else i[a]=o;return i},{...e})}function GF(e){if(pO in e&&Array.isArray(e.enum)&&e.enum.length===1)return e.enum[0];if(Vt in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function JF(e,t){const r=new Map(e.map(n=>[String(n.value),n])),i=new Set(t.filter(n=>n!=="*").map(String)),a=e.filter(n=>!i.has(String(n.value)));return t.flatMap(n=>{if(n==="*")return a;const o=r.get(String(n));return o?[o]:[]})}function oi(e,t){if(e.enum){let n,o;if(t){const{enumNames:l,enumOrder:u}=me(t);n=l,o=u}let s=e.enum.map((l,u)=>({label:Array.isArray(n)?n[u]||String(l):(n==null?void 0:n[String(l)])||String(l),value:l}));return o&&(s=JF(s,o)),s}let r,i;e.anyOf?(r=e.anyOf,i=t==null?void 0:t.anyOf):e.oneOf&&(r=e.oneOf,i=t==null?void 0:t.oneOf);let a=dr(e);if(t){const{optionsSchemaSelector:n=a}=me(t);a=n}return r==null?void 0:r.map((n,o)=>{var s,l,u;const{title:c}=me(i==null?void 0:i[o]),f=n;let m,d=c;if(a){const p=ae(f,[ze,a],{});m=ae(p,Yn,ae(p,Vt)),d=(l=(s=d??(p==null?void 0:p.title))!==null&&s!==void 0?s:f.title)!==null&&l!==void 0?l:String(m)}else m=GF(f),d=(u=d??f.title)!==null&&u!==void 0?u:String(m);return{schema:f,label:d,value:m}})}function ms(e,t,r={},i){const a=Mt(e,t,r,void 0,i),n=a.oneOf||a.anyOf;return Array.isArray(a.enum)?!0:Array.isArray(n)?n.every(o=>typeof o!="boolean"&&_y(o)):!1}function Jc(e,t,r,i){return!t.uniqueItems||!t.items||typeof t.items=="boolean"?!1:ms(e,t.items,r,i)}const YF=["string","number","integer","boolean","null"];var Wi;(function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"})(Wi||(Wi={}));function Yc(e,t=Wi.Ignore,r=-1){if(r>=0){if(Array.isArray(e.items)&&r<e.items.length){const i=e.items[r];if(typeof i!="boolean")return i}}else if(e.items&&!Array.isArray(e.items)&&typeof e.items!="boolean")return e.items;return t!==Wi.Ignore&&be(e.additionalItems)?e.additionalItems:{}}function Py(e,t){const{default:r,type:i}=e;return Array.isArray(i)&&i.includes("null")&&kt(t)&&r===null?null:t}function Iy(e,t,r,i,a,n=[],o={},s=!1,l=!1){const{emptyObjectFields:u="populateAllDefaults"}=o;if(i===!0||s)e[t]=r;else if(i==="excludeObjectChildren")(l&&r!==void 0||!be(r)||!kt(r))&&(e[t]=r);else if(u!=="skipDefaults"){const c=a===void 0?n.includes(t):a;be(r)?u==="skipEmptyDefaults"?kt(r)||(e[t]=r):(!kt(r)||n.includes(t))&&(c||u!=="populateRequiredDefaults")&&(e[t]=r):r!==void 0&&(u==="populateAllDefaults"||u==="skipEmptyDefaults"||c&&n.includes(t))&&(e[t]=r)}}function Cn(e,t,r={}){const{parentDefaults:i,rawFormData:a,rootSchema:n={},includeUndefinedValues:o=!1,_recurseList:s=[],experimental_defaultFormStateBehavior:l,experimental_customMergeAllOf:u,required:c,shouldMergeDefaultsIntoFormData:f=!1,initialDefaultsGenerated:m}=r;let d=be(a)?a:{};const p=be(t)?t:{};let k=i;const v=k&&(l==null?void 0:l.nestedDefaultsPrecedence)==="ancestorWins";let g=null,b=l,w=s;if(p[Vt]!==void 0&&(l==null?void 0:l.constAsDefaults)!=="never"&&!Oy(p))k=p[Vt];else if(be(k)&&be(p.default)&&!p[je]&&!p[xe]&&!p[at])v?k=Sn(p.default,k):k=Sn(k,p.default);else if(Yn in p&&!v&&!p[je]&&!p[xe]&&!p[at])k=p.default;else if(at in p){const y=p[at];s.includes(y)||(w=s.concat(y),g=Ka(y,n));const C=a===void 0||be(a)&&kt(a);g&&!k&&C&&(k=p.default),f&&g&&!be(a)&&(d=a)}else if(Yu in p){const y={...Ty(e,p,r,k),...d};[g]=Sy(e,p,n,!1,[],y,u)}else if(Gc(p)&&!v)k=p.items.map((y,C)=>Cn(e,y,{rootSchema:n,includeUndefinedValues:o,_recurseList:s,experimental_defaultFormStateBehavior:l,experimental_customMergeAllOf:u,parentDefaults:Array.isArray(i)?i[C]:void 0,rawFormData:d,required:c,shouldMergeDefaultsIntoFormData:f}));else if(xe in p){const{oneOf:y,...C}=p;if(y.length===0)return;const x=dr(p),{type:_="null"}=C;!Array.isArray(_)&&YF.includes(_)&&(b==null?void 0:b.constAsDefaults)==="skipOneOf"&&(b={...b,constAsDefaults:"never"}),g=y[Hi(e,n,a??p.default,y,0,x,u)],g=an(C,g)}else if(je in p){const{anyOf:y,...C}=p;if(y.length===0)return;const x=dr(p);g=y[Hi(e,n,a??p.default,y,0,x,u)],g=an(C,g)}if(g)return Cn(e,g,{rootSchema:n,includeUndefinedValues:o,_recurseList:w,experimental_defaultFormStateBehavior:b,experimental_customMergeAllOf:u,parentDefaults:k,rawFormData:a??d,required:c,shouldMergeDefaultsIntoFormData:f,initialDefaultsGenerated:m});k===void 0&&(k=p.default);const E=Ty(e,p,r,k);let h=E??k;if(f){const{arrayMinItems:y={}}=l||{},{mergeExtraDefaults:C}=y,x=Xc(e,p,n,a,l,u);(!be(a)||zr in p)&&(h=Za(h,x,C,!0))}return h}function Xc(e,t,r,i,a,n){const o=(a==null?void 0:a.allOf)==="populateDefaults"&&zr in t,s=o?Mt(e,t,r,i,n):t,l=!_y(s)&&ms(e,s,r,n);let u=i;if(l){const f=oi(s);u=(f==null?void 0:f.some(d=>Ue(d.value,i)))?i:void 0}return s[Vt]&&(a==null?void 0:a.constAsDefaults)==="always"?u=s.const:be(u)&&be(s.properties)&&(u=Object.keys(s.properties).reduce((f,m)=>{const d=ae(s,[ze,m],{});return m in f&&(o||be(d)&&zr in d)&&(f[m]=Xc(e,d,r,ae(f,m),a,n)),f},{...u})),u}function XF(e,t,{rawFormData:r,rootSchema:i={},includeUndefinedValues:a=!1,_recurseList:n=[],experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:s,required:l,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c}={},f){{const m=be(r)?r:{},d=t,k=(o==null?void 0:o.allOf)==="populateDefaults"&&zr in d||(o==null?void 0:o.emptyObjectFields)!=="skipEmptyDefaults"&&Xu in d?Mt(e,d,i,m,s):d,v=k[Vt],g=Object.keys(k.properties||{}).reduce((b,w)=>{var E;const h=ae(k,[ze,w],{}),y=be(v)&&v[w]!==void 0,C=(be(h)&&Vt in h||y)&&(o==null?void 0:o.constAsDefaults)!=="never"&&!Oy(h),x=Cn(e,h,{rootSchema:i,_recurseList:n,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:s,includeUndefinedValues:a===!0,parentDefaults:ae(f,[w]),rawFormData:ae(m,[w]),required:(E=k.required)===null||E===void 0?void 0:E.includes(w),shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c});return Iy(b,w,x,a,l,k.required,o,C,(h==null?void 0:h.type)==="null"),b},{});if(k.additionalProperties&&!c){const b=be(k.additionalProperties)?k.additionalProperties:{},w=new Set,E=[];Object.keys(m).filter(h=>!k.properties||!k.properties[h]).forEach(h=>{w.add(h),E.push(h)}),be(f)&&E.length===0&&Object.keys(f).filter(h=>!k.properties||!k.properties[h]).forEach(h=>w.add(h)),w.forEach(h=>{var y;const C=Cn(e,b,{rootSchema:i,_recurseList:n,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:s,includeUndefinedValues:a===!0,parentDefaults:ae(f,[h]),rawFormData:ae(m,[h]),required:(y=k.required)===null||y===void 0?void 0:y.includes(h),shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c});Iy(g,h,C,a,l,E)})}return Py(t,g)}}function ZF(e,t,{rawFormData:r,rootSchema:i={},_recurseList:a=[],experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:o,required:s,requiredAsRoot:l=!1,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c}={},f){var m,d;let p=f;const k=t,v=(m=n==null?void 0:n.arrayMinItems)!==null&&m!==void 0?m:{},{populate:g,mergeExtraDefaults:b}=v,w=g==="never",E=g==="requiredOnly",h=g==="all"||!w&&!E,y=(d=v==null?void 0:v.computeSkipPopulate)!==null&&d!==void 0?d:(()=>!1),x=(n==null?void 0:n.emptyObjectFields)==="skipEmptyDefaults"?void 0:[];if(Array.isArray(p)&&(p=p.map((A,O)=>{const F=Yc(k,Wi.Fallback,O),T=Array.isArray(r)?r[O]:void 0;return Cn(e,F,{rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:o,parentDefaults:A,rawFormData:T,required:s,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c})})),Array.isArray(r)){const A=Yc(k);if(w)p=r;else{const O=r.map((T,M)=>Cn(e,A,{rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:o,rawFormData:T,parentDefaults:ae(p,[M]),required:s,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c}));p=Za(p,O,(E&&s||h)&&b)}}const _=Array.isArray(p)?p.length:0;if(w)return u&&!s?p:p??x;if(E&&!s)return p||void 0;let S;if(!k.minItems||Jc(e,k,i,o)||y(e,k,i)||k.minItems<=_)S=p||!s&&!l?p:x;else{const A=p||[],O=Yc(k,Wi.Invert),F=O.default,T=Array.from({length:k.minItems-_},()=>Cn(e,O,{parentDefaults:F,rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:o,required:s,shouldMergeDefaultsIntoFormData:u}));S=A.concat(T)}return Py(t,S)}function Ty(e,t,r={},i){switch(mr(t)){case"object":return XF(e,t,r,i);case"array":return ZF(e,t,r,i);default:return}}function Ny(e,t,r,i,a=!1,n,o,s){if(!be(t))throw new Error(`Invalid schema: ${t}`);const l=Mt(e,t,i,r,o),u=Cn(e,l,{rootSchema:i,includeUndefinedValues:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:o,rawFormData:r,shouldMergeDefaultsIntoFormData:!0,initialDefaultsGenerated:s,requiredAsRoot:!0});if(l.type!=="object"&&be(l.default))return{...u,...r};if(be(r)||Array.isArray(r)){const{mergeDefaultsIntoFormData:c}=n||{},f=c==="useDefaultIfFormDataUndefined",m=Xc(e,l,i??l,r,n,o);return Za(u,m,!0,f,!0)}return u}function Fy(e={}){return"widget"in me(e)&&me(e).widget!=="hidden"}function Dy(e,t,r={},i,a){if(r[rc]==="files")return!0;if(t.items){const n=Mt(e,t.items,i,void 0,a);return n.type==="string"&&n.format==="data-url"}return!1}function QF(e,t,r={},i,a,n){const o=me(r,a),{label:s=!0}=o;let l=!!s;if(l){const u=mr(t),c=!!t[hn];u==="array"&&(l=c||Jc(e,t,i,n)||Dy(e,t,r,i,n)||Fy(r)),u==="object"&&(l=c),u==="boolean"&&r&&!r[rc]&&(l=!1),r!=null&&r[vO]&&(l=!1)}return l}function My(e,t,r){for(var i=-1,a=t.length,n={};++i<a;){var o=t[i],s=Yo(e,o);r(s,o)&&Dc(n,qi(o,e),s)}return n}function eD(e,t){return My(e,t,function(r,i){return Zg(e,i)})}var jy=Dg(function(e,t){return e==null?{}:eD(e,t)});function tD(e,t){if(t.length===0&&typeof e!="object")return e;const r=jy(e,t);return Array.isArray(e)?Object.keys(r).map(i=>r[i]):r}function rD(e,t){const r=(a,n)=>typeof a!="object"||kt(a)||n&&!kt(a),i=(a,n=[],o=[[]])=>{const s=Object.keys(a);return s.forEach(l=>{const u=a[l];if(typeof u=="object"){const c=o.map(f=>[...f,l]);u[tc]&&u[Bo]!==""?n.push(u[Bo]):i(u,n,c)}else l===Bo&&u!==""&&o.forEach(c=>{const f=ae(t,c),m=s.length===1;(r(f,m)||Array.isArray(f)&&f.every(d=>r(d,m)))&&n.push(c)})}),n};return i(e)}function Ly(e){return Ki(e)||e===""?!0:Array.isArray(e)?e.length===0:be(e)?Object.values(e).every(Ly):!1}function nD(e,t){return t?t(e):gy(e)}function iD(e,t,r={},i,a){function n(p){return be(p)}function o(p){return be(p)}function s(p,k,v){var g;const{properties:b,additionalProperties:w,patternProperties:E,propertyNames:h}=p,y=new Set((g=p.required)!==null&&g!==void 0?g:[]);function C(_,S,A,O=!1){var F;const T=d(S,A,v[_]);if(!O&&be(T)){let M=o(S)?S:{};M.$ref!==void 0&&(M=Ka(M.$ref,r));const q=new Set((F=M.required)!==null&&F!==void 0?F:[]);if(Object.entries(T).every(([Y,Q])=>!q.has(Y)&&Ly(Q)))return}T!==void 0&&(v[_]=T)}if(b!==void 0)for(const[_,S]of Object.entries(b))C(_,S,k[_],y.has(_));let x;if(E!==void 0){x=[];const _=Object.entries(E).map(([A,O])=>[new RegExp(A),O]),S=new Set(Object.keys(b??{}));for(const[A,O]of Object.entries(k))if(!S.has(A)){const F=_.find(([T])=>T.test(A));F===void 0?x.push(A):C(A,F[1],O)}}if(w!==void 0&&w!==!1){const _=w;if(x!==void 0)for(const S of x)C(S,_,k[S]);else{const S=new Set(Object.keys(b??{}));for(const[A,O]of Object.entries(k))S.has(A)||C(A,_,O)}}if(h!==void 0)for(const[_,S]of Object.entries(k))v[_]=S;return v}function l(p,k,v){const{items:g,additionalItems:b}=p;if(g!==void 0)if(Array.isArray(g))for(let w=0;w<g.length;w+=1)v.push(d(g[w],k[w]));else for(let w=0;w<k.length;w+=1)v.push(d(g,k[w]));if(b)for(let w=v.length;w<k.length;w+=1)v.push(d(b,k[w]));return v}function u(p,k,v){const{if:g,then:b,else:w}=p;if(g===void 0)return v;const h=(o(g)?e.isValid(g,k,r):g)?b:w;return h===void 0?v:d(h,k,v)}function c(p,k,v,g){if(!Array.isArray(p)||ms(e,k,r,a))return g;const b=wy(p,!0,r),w=Hi(e,r,v,b,0,dr(k),a),E=p[w],h=be(E)?wn(E,r,[]):b[w];return d(h,v,g)}function f(p,k,v){const{anyOf:g}=p;if(!Array.isArray(g))return v;if(k===void 0||Array.isArray(k)&&k.length===0||be(k)&&Object.keys(k).length===0){let b=v;for(const w of g)b=d(w,k,b);return b}return c(g,p,k,v)}function m(p,k,v){const{dependencies:g}=p;if(g===void 0||!n(k))return v;let b=v;for(const[w,E]of Object.entries(g))w in k&&!Array.isArray(E)&&(b=d(E,k,b));return b}function d(p,k,v){if(k===void 0||p===!1)return;if(p===!0||kt(p))return k;let g=p;const{$ref:b,allOf:w}=g;if(b!==void 0)return d(Ka(b,r),k,v);if(w){g=nD(g,a);const y=g.allOf;if(y)for(let C=0;C<y.length;C++)v=d(y[C],k,v)}let E=f(g,k,c(g.oneOf,g,k,v));const h=mr(g);if(h==="object"){if(!n(k))return;E=s(g,k,n(E)?E:{})}else if(h==="array"){if(!Array.isArray(k))return;E=l(g,k,Array.isArray(E)?E:[])}else E===void 0&&(E=k);return m(g,k,u(g,k,E))}return d(t,i)}const pr=Symbol("no Value");function qy(e){if(Array.isArray(e.enum))return e.enum;const t=e.oneOf||e.anyOf;if(!Array.isArray(t))return;const r=t.map(i=>Vt in i?i[Vt]:Array.isArray(i.enum)&&i.enum.length===1?i.enum[0]:pr).filter(i=>i!==pr);return r.length>0?r:void 0}function aD(e,t){const r=qy(e);if(!r||r.some(a=>Ue(a,t)))return pr;const i=ae(e,Yn,pr);return i!==pr&&r.some(a=>Ue(a,i))?i:r.length===1?r[0]:void 0}function Zc(e,t,r,i,a={},n){let o;if(Re(r,ze)){const s={};if(Re(i,ze)){const c=ae(i,ze,{});Object.keys(c).forEach(f=>{Re(a,f)&&(s[f]=void 0)})}const l=Object.keys(ae(r,ze,{})),u={};l.forEach(c=>{const f=ae(a,c);let m=ae(i,[ze,c],{}),d=ae(r,[ze,c],{});Re(m,at)&&(m=Mt(e,m,t,f,n)),Re(d,at)&&(d=Mt(e,d,t,f,n));const p=ae(m,"type"),k=ae(d,"type");if(!p||p===k)if(Re(s,c)&&delete s[c],k==="object"||k==="array"&&Array.isArray(f)){const v=Zc(e,t,d,m,f,n);(v!==void 0||k==="array")&&(u[c]=v)}else{const v=ae(d,Yn,pr),g=ae(m,Yn,pr);v!==pr&&v!==f&&(g===f?s[c]=v:ae(d,"readOnly")===!0&&(s[c]=void 0));const b=ae(d,Vt,pr),w=ae(m,Vt,pr);if(b!==pr&&b!==f&&(s[c]=w===f?b:void 0),Re(a,c)){const E=aD(d,f);E!==pr&&(s[c]=E)}}}),o={...typeof a=="string"||Array.isArray(a)?void 0:a,...s,...u}}else if(ae(i,"type")==="array"&&ae(r,"type")==="array"&&Array.isArray(a)){let s=ae(i,"items"),l=ae(r,"items");if(typeof s=="object"&&typeof l=="object"&&!Array.isArray(s)&&!Array.isArray(l)){Re(s,at)&&(s=Mt(e,s,t,a,n)),Re(l,at)&&(l=Mt(e,l,t,a,n));const u=ae(s,"type"),c=ae(l,"type");if(!u||u===c){const f=ae(r,"maxItems",-1);if(c==="object")o=a.reduce((m,d)=>{const p=Zc(e,t,l,s,d,n);return p!==void 0&&(f<0||m.length<f)&&m.push(p),m},[]);else{const m=qy(l),d=m?a.filter(p=>m.some(k=>Ue(k,p))):a;o=f>0&&d.length>f?d.slice(0,f):d}}}else typeof s=="boolean"&&typeof l=="boolean"&&s===l&&(o=a)}return o}function En(e,t,r,i,a,n=[],o){if(at in t||Yu in t||zr in t||Xu in t){const l=Mt(e,t,i,a,o);if(n.findIndex(c=>Ue(c,l))===-1)return En(e,l,r,i,a,n.concat(l),o)}let s={[Bo]:r.replace(/^\./,"")};if(xe in t||je in t){const l=xe in t?t.oneOf:t.anyOf,u=dr(t),c=Hi(e,i,a,l,0,u,o),f=l[c];s={...s,...En(e,f,r,i,a,n,o)}}if(Mi in t&&t[Mi]!==!1){st(s,tc,!0);const l=$e(t[Mi])?t[Mi]:{},u=ae(t,ze,{});for(const c of Object.keys(a??{}))c in u||(s[c]=En(e,l,`${r}.${c}`,i,ae(a,[c]),n,o))}if(ji in t&&Array.isArray(a)){const{items:l,additionalItems:u}=t;Array.isArray(l)?a.forEach((c,f)=>{l[f]?s[f]=En(e,l[f],`${r}.${f}`,i,c,n,o):u?s[f]=En(e,u,`${r}.${f}`,i,c,n,o):console.warn(`Unable to generate path schema for "${r}.${f}". No schema defined for it`)}):a.forEach((c,f)=>{s[f]=En(e,l,`${r}.${f}`,i,c,n,o)})}else if(ze in t)for(const l in t.properties){const u=ae(t,[ze,l],{});s[l]=En(e,u,`${r}.${l}`,i,ae(a,[l]),n,o)}return s}function oD(e,t,r="",i,a,n){return En(e,t,r,i,a,void 0,n)}class sD{constructor(t,r,i,a){(r==null?void 0:r[Ia])===Ko?this.rootSchema=Ic(r,ae(r,tt,"#")):this.rootSchema=r,this.validator=t,this.experimental_defaultFormStateBehavior=i,this.experimental_customMergeAllOf=a}getRootSchema(){return this.rootSchema}getValidator(){return this.validator}doesSchemaUtilsDiffer(t,r,i={},a){return!t||!r?!1:this.validator!==t||!Ue(this.rootSchema,r)||!Ue(this.experimental_defaultFormStateBehavior,i)||this.experimental_customMergeAllOf!==a}findFieldInSchema(t,r,i){return UF(this.validator,this.rootSchema,t,r,i,this.experimental_customMergeAllOf)}findSelectedOptionInXxxOf(t,r,i,a){return Xa(this.validator,this.rootSchema,t,r,i,a,this.experimental_customMergeAllOf)}getDefaultFormState(t,r,i=!1,a){return Ny(this.validator,t,r,this.rootSchema,i,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf,a)}getDisplayLabel(t,r,i){return QF(this.validator,t,r,this.rootSchema,i,this.experimental_customMergeAllOf)}getClosestMatchingOption(t,r,i,a){return Hi(this.validator,this.rootSchema,t,r,i,a,this.experimental_customMergeAllOf)}getFirstMatchingOption(t,r,i){return us(this.validator,t,r,this.rootSchema,i)}getFromSchema(t,r,i){return ds(this.validator,this.rootSchema,t,r,i,this.experimental_customMergeAllOf)}isFilesArray(t,r){return Dy(this.validator,t,r,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(t){return Jc(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(t){return ms(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}omitExtraData(t,r){return iD(this.validator,t,this.rootSchema,r)}retrieveSchema(t,r,i){return Mt(this.validator,t,this.rootSchema,r,this.experimental_customMergeAllOf,i)}sanitizeDataForNewSchema(t,r,i){return Zc(this.validator,this.rootSchema,t,r,i,this.experimental_customMergeAllOf)}toPathSchema(t,r,i){return oD(this.validator,t,r,this.rootSchema,i,this.experimental_customMergeAllOf)}}function lD(e,t,r={},i){return new sD(e,t,r,i)}function uD(e){var t;if(!e.includes("data:"))throw new Error("File is invalid: URI must be a dataURI");const i=e.slice(5).split(";base64,");if(i.length!==2)throw new Error("File is invalid: dataURI must be base64");const[a,n]=i,[o,...s]=a.split(";"),l=o||"",u=decodeURI(((t=s.map(c=>c.split("=")).find(([c])=>c==="name"))===null||t===void 0?void 0:t[1])||"unknown");try{const c=atob(n),f=new Array(c.length);for(let d=0;d<c.length;d+=1)f[d]=c.charCodeAt(d);return{blob:new window.Blob([new Uint8Array(f)],{type:l}),name:u}}catch(c){throw new Error(`File is invalid: ${c.message}`)}}function An(e,t){let r=String(e);for(;r.length<t;)r=`0${r}`;return r}function Ry(e,t){const r=e<=0&&t<=0,i=e<0||t<0;if(!r&&i)throw new Error(`Both start (${e}) and stop (${t}) must both be <= 0 or > 0, got one of each`);const a=new Date().getFullYear(),n=r?a+e:e,o=r?a+t:t;if(n>o)return Ry(t,e).reverse();const s=[];for(let l=n;l<=o;l+=1)s.push({value:l,label:An(l,2)});return s}function cD(e,t){let r=e;if(Array.isArray(t)){const i=r.split(/(%\d)/);t.forEach((a,n)=>{const o=i.findIndex(s=>s===`%${n+1}`);o>=0&&(i[o]=a)}),r=i.join("")}return r}function fD(e,t){return cD(e,t)}function ps(e,t=[],r){if(Array.isArray(e))return e.map(n=>ps(n,t)).filter(n=>n!==void 0);const i=e===""||e===null?-1:Number(e),a=t[i];return a?a.value:r}function zy(e,t,r=[]){const i=ps(e,r);return Array.isArray(t)?t.filter(a=>!Ue(a,i)):Ue(i,t)?void 0:t}function Gi(e,t){return Array.isArray(t)?t.some(r=>Ue(r,e)):Ue(t,e)}function $y(e,t=[],r=!1){const i=t.map((a,n)=>Gi(a.value,e)?String(n):void 0).filter(a=>typeof a<"u");return r?i:i[0]}function dD(e,t,r,i="indexed",a){if(typeof e>"u"||r&&Array.isArray(e)&&e.length<1||!r&&e===a)return a;if(i==="realValue")return r?e.map(String):String(e);const o=$y(e,t,r);return typeof o>"u"?a:o}function Uy(e,t,r=[]){const i=ps(e,r);if(!Ki(i)){const a=r.findIndex(s=>i===s.value),n=r.map(({value:s})=>s);return t.slice(0,a).concat(i,t.slice(a)).sort((s,l)=>+(n.indexOf(s)>n.indexOf(l)))}return t}function By(e,t,r){if(e===""||!Array.isArray(t))return r;const i=t.find(n=>String(n.value)===e);if(i)return i.value;const a=Number(e);return!Number.isNaN(a)&&a>=0&&a<t.length?t[a].value:r}function Ar(e,t,r="indexed",i){return r!=="realValue"?ps(e,t,i):Array.isArray(e)?e.map(a=>By(a,t,i)):By(e,t,i)}function Qa(e,t,r="indexed"){return r!=="realValue"?String(t):Ki(e)?"":String(typeof e=="object"?t:e)}var mD=1,pD=4;function hs(e){return Ba(e,mD|pD)}function hD(e,t,r,i){return i=typeof i=="function"?i:void 0,e==null?e:Dc(e,t,r,i)}class Vy{constructor(t){this.errorSchema={},this.resetAllErrors(t)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(t){let i=Array.isArray(t)&&t.length>0||typeof t=="string"?ae(this.errorSchema,t):this.errorSchema;return!i&&t&&(i={},hD(this.errorSchema,t,i,Object)),i}resetAllErrors(t){return this.errorSchema=t?hs(t):{},this}addErrors(t,r){const i=this.getOrCreateErrorBlock(r);let a=ae(i,Dt);return Array.isArray(a)||(a=[],i[Dt]=a),Array.isArray(t)?st(i,Dt,[...new Set([...a,...t])]):st(i,Dt,[...new Set([...a,t])]),this}setErrors(t,r){const i=this.getOrCreateErrorBlock(r),a=Array.isArray(t)?[...new Set([...t])]:[t];return st(i,Dt,a),this}clearErrors(t){const r=this.getOrCreateErrorBlock(t);return st(r,Dt,[]),this}}var gD=200;function yD(e,t,r,i){var a=-1,n=Rc,o=!0,s=e.length,l=[],u=t.length;if(!s)return l;t.length>=gD&&(n=Ga,o=!1,t=new ni(t));e:for(;++a<s;){var c=e[a],f=c;if(c=c!==0?c:0,o&&f===f){for(var m=u;m--;)if(t[m]===f)continue e;l.push(c)}else n(t,f,i)||l.push(c)}return l}var vD=as(function(e,t){return Wa(e)?yD(e,Va(t,1,Wa,!0)):[]});function bD(e,t){if(e==null)return{};var r=Li(Oc(e),function(i){return[i]});return t=qc(t),My(e,r,function(i,a){return t(i,a[0])})}function Hy(e,t){const r=yn(e),i=yn(t);if(e===t||!r&&!i)return[];if(r&&!i)return Er(e);if(!r&&i)return Er(t);const a=Er(bD(e,(o,s)=>!Ue(o,ae(t,s)))),n=vD(Er(t),Er(e));return[...a,...n]}function kD(e,t,r=[1900,new Date().getFullYear()+2],i="YMD"){const{day:a,month:n,year:o,hour:s,minute:l,second:u}=e,c={type:"day",range:[1,31],value:a},f={type:"month",range:[1,12],value:n},m={type:"year",range:r,value:o},d=[];switch(i){case"MDY":d.push(f,c,m);break;case"DMY":d.push(c,f,m);break;case"YMD":default:d.push(m,f,c)}return t&&d.push({type:"hour",range:[0,23],value:s},{type:"minute",range:[0,59],value:l},{type:"second",range:[0,59],value:u}),d}function wD(e){const t={};return e.multipleOf&&(t.step=e.multipleOf),(e.minimum||e.minimum===0)&&(t.min=e.minimum),(e.maximum||e.maximum===0)&&(t.max=e.maximum),t}function SD(e,t,r={},i=!0){const a={type:t||"text",...wD(e)};return r.inputType?a.type=r.inputType:t||(e.type==="number"?(a.type="number",i&&a.step===void 0&&(a.step="any")):e.type==="integer"&&(a.type="number",a.step===void 0&&(a.step=1))),["date","datetime-local","time","week","month"].includes(a.type)&&(e.formatMinimum!==void 0&&(a.min=e.formatMinimum),e.formatMaximum!==void 0&&(a.max=e.formatMaximum)),r.autocomplete&&(a.autoComplete=r.autocomplete),r.accept&&(a.accept=r.accept),a}function eo(e){var t;return(t=e==null?void 0:e.optionValueFormat)!==null&&t!==void 0?t:"indexed"}const Ky={props:{disabled:!1},submitText:"Submit",norender:!1};function Wy(e={}){const t=me(e);if(t!=null&&t[Vo]){const r=t[Vo];return{...Ky,...r}}return Ky}function ge(e,t,r={}){const{templates:i}=t;if(e==="ButtonTemplates")return i[e];if(Object.hasOwn(r,e)&&typeof r[e]=="string"&&Object.hasOwn(i,r[e])){const a=r[e];return i[a]}return r[e]||i[e]}var CD=0;function Gy(e){var t=++CD;return lc(e)+t}function Qc(){if(ae(globalThis,"process.env.NODE_ENV")!=="test")return{};const e=new Map;return new Proxy({},{get(t,r){return e.has(r)||e.set(r,Gy("test-id-")),e.get(r)}})}var gs={exports:{}},rt={};/**
|
|
34
60
|
* @license React
|
|
35
61
|
* react-is.production.min.js
|
|
36
62
|
*
|
|
@@ -38,7 +64,7 @@ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var z=q(V,Q,N,L,B+"."+Q,
|
|
|
38
64
|
*
|
|
39
65
|
* This source code is licensed under the MIT license found in the
|
|
40
66
|
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var
|
|
67
|
+
*/var Jy;function ED(){if(Jy)return rt;Jy=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),n=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),p;p=Symbol.for("react.module.reference");function k(v){if(typeof v=="object"&&v!==null){var g=v.$$typeof;switch(g){case e:switch(v=v.type,v){case r:case a:case i:case u:case c:return v;default:switch(v=v&&v.$$typeof,v){case s:case o:case l:case m:case f:case n:return v;default:return g}}case t:return g}}}return rt.ContextConsumer=o,rt.ContextProvider=n,rt.Element=e,rt.ForwardRef=l,rt.Fragment=r,rt.Lazy=m,rt.Memo=f,rt.Portal=t,rt.Profiler=a,rt.StrictMode=i,rt.Suspense=u,rt.SuspenseList=c,rt.isAsyncMode=function(){return!1},rt.isConcurrentMode=function(){return!1},rt.isContextConsumer=function(v){return k(v)===o},rt.isContextProvider=function(v){return k(v)===n},rt.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},rt.isForwardRef=function(v){return k(v)===l},rt.isFragment=function(v){return k(v)===r},rt.isLazy=function(v){return k(v)===m},rt.isMemo=function(v){return k(v)===f},rt.isPortal=function(v){return k(v)===t},rt.isProfiler=function(v){return k(v)===a},rt.isStrictMode=function(v){return k(v)===i},rt.isSuspense=function(v){return k(v)===u},rt.isSuspenseList=function(v){return k(v)===c},rt.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===a||v===i||v===u||v===c||v===d||typeof v=="object"&&v!==null&&(v.$$typeof===m||v.$$typeof===f||v.$$typeof===n||v.$$typeof===o||v.$$typeof===l||v.$$typeof===p||v.getModuleId!==void 0)},rt.typeOf=k,rt}var nt={};/**
|
|
42
68
|
* @license React
|
|
43
69
|
* react-is.development.js
|
|
44
70
|
*
|
|
@@ -46,80 +72,67 @@ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var z=q(V,Q,N,L,B+"."+Q,
|
|
|
46
72
|
*
|
|
47
73
|
* This source code is licensed under the MIT license found in the
|
|
48
74
|
* LICENSE file in the root directory of this source tree.
|
|
49
|
-
*/var
|
|
50
|
-
`,u),c}for(const u of[Fe,Ve]){const f=l[u];if(Array.isArray(f)&&f.length>0){const p=c[u],d=Array.isArray(p)?[...p]:[];let h=!1;for(let k=0;k<f.length;k++){const v=f[k],y=(i=v==null?void 0:v[Ss])!==null&&i!==void 0?i:v==null?void 0:v[gt];if(y&&y in o){const b=d[k]||{};d[k]=aa(o[y],b),h=!0}}h&&(c[u]=d)}}}return c}function Do(e){var t,r,a;if(e.const||((t=e.enum)===null||t===void 0?void 0:t.length)===1&&e.enum[0]===!0)return!0;if(((r=e.anyOf)===null||r===void 0?void 0:r.length)===1)return Do(e.anyOf[0]);if(((a=e.oneOf)===null||a===void 0?void 0:a.length)===1)return Do(e.oneOf[0]);if(e.allOf){const i=n=>Do(n);return e.allOf.some(i)}return!1}function gT({hideLabel:e,id:t,multiple:r,options:a,registry:i,uiSchema:n,value:o}){var s,c;if(r||e)return null;const{label:l=!0}=be(n,i.globalUiOptions);if(!l)return null;const u=(s=a.enumOptions)===null||s===void 0?void 0:s.find(({value:d})=>Ti(d,o)),f=(c=u==null?void 0:u.schema)===null||c===void 0?void 0:c.description;if(!f)return null;const p=Ce("DescriptionFieldTemplate",i,a);return D.jsx(p,{id:la(t),description:f,schema:u.schema,uiSchema:n,registry:i})}function pf(e,t){if(Object.is(e,t))return!0;if(e==null||t==null||typeof e!="object"||typeof t!="object")return!1;const r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i+=1){const n=r[i];if(!Object.hasOwn(t,n)||!Object.is(e[n],t[n]))return!1}return!0}function yT(e,t,r,a="customDeep"){if(a==="always")return!0;if(a==="shallow"){const{props:o,state:s}=e;return!pf(o,t)||!pf(s,r)}const{props:i,state:n}=e;return!Xe(i,t)||!Xe(n,r)}function ly(e){const t=lg(e.map(r=>Ye(r)?zr(r):void 0).flat().filter(r=>r!==void 0));return t.length===1?t[0]:t}function Fo(e,t,r,a){const{enableOptionalDataFieldForType:i=[]}=be(a,e.globalUiOptions);let n;return Ve in t&&Array.isArray(t[Ve])?n=ly(t[Ve]):Fe in t&&Array.isArray(t[Fe])?n=ly(t[Fe]):n=zr(t),!uT(e,t)&&!r&&!!n&&!Array.isArray(n)&&!!i.find(o=>o===n)}function cy(e,t=!0){const{year:r,month:a,day:i,hour:n=0,minute:o=0,second:s=0}=e,c=Date.UTC(r,a-1,i,n,o,s),l=new Date(c).toJSON();return t?l:l.slice(0,10)}function mf(e,t=[]){if(!e)return[];let r=[];return er in e&&(r=r.concat(e[er].map(a=>{const i=`.${t.join(".")}`;return{property:i,message:a,stack:`${i} ${a}`}}))),Object.keys(e).reduce((a,i)=>{if(i!==er){const n=e[i];if(Qn(n))return a.concat(mf(n,[...t,i]))}return a},r)}function uy(e){return Bt(e)?vi(e,ea):co(e)?[e]:xu(Rm(pu(e)))}function vT(e){const t=new Xg;return e.length&&e.forEach(r=>{const{property:a,message:i}=r,n=a==="."?[]:uy(a);n.length>0&&n[0]===""&&n.splice(0,1),i&&t.addErrors(i,n)}),t.ErrorSchema}function nn(e,t,r,a){const i=Array.isArray(r)?r:r==null?void 0:r.path,n=e===""?[]:[e],o=i?i.concat(...n):n,s=[t.idPrefix,...o].join(t.idSeparator);let c;return t.nameGenerator&&o.length>0&&(c=t.nameGenerator(o,t.idPrefix,a)),{path:o,[dt]:s,...c!==void 0&&{name:c}}}function fy(e){return Object.keys(e).reduce((t,r)=>{if(r==="addError")return t;const a=e[r];return Qn(a)?{...t,[r]:fy(a)}:{...t,[r]:a}},{})}function bT(e){return Object.values(e).every(t=>t!==-1)}function kT(e){const{className:t="form-control",type:r,range:a,value:i,select:n,rootId:o,name:s,disabled:c,readonly:l,autofocus:u,registry:f,onBlur:p,onFocus:d}=e,h=`${o}_${r}`,{SelectWidget:k}=f.widgets,v=H.useCallback(y=>n(r,y),[n,r]);return D.jsx(k,{schema:{type:"integer"},id:h,name:s,className:t,options:{enumOptions:Wg(a[0],a[1])},placeholder:r,value:i,disabled:c,readonly:l,autofocus:u,onChange:v,onBlur:p,onFocus:d,registry:f,label:"","aria-describedby":rn(o)})}function wT(e){const{time:t=!1,disabled:r=!1,readonly:a=!1,options:i,onChange:n,value:o}=e,[s,c]=H.useState(df(o,t));H.useEffect(()=>{c(df(o,t))},[t,o]);const l=H.useCallback((d,h)=>{const k={...s,[d]:typeof h>"u"?-1:h};bT(k)?n(cy(k,t)):c(k)},[s,n,t]),u=H.useCallback(d=>{d.preventDefault(),!(r||a)&&n(void 0)},[r,a,n]),f=H.useCallback(d=>{if(d.preventDefault(),r||a)return;const h=df(new Date().toJSON(),t);n(cy(h,t))},[r,a,t,n]);return{elements:H.useMemo(()=>Qx(s,t,i.yearsRange,i.format),[s,t,i.yearsRange,i.format]),handleChange:l,handleClear:u,handleSetNow:f}}function Ii(e){const t=H.useRef(e);return Xe(e,t.current)||(t.current=e),t.current}function ST(e,t){return e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}async function ET(e){const{name:t,size:r,type:a}=e;return new Promise((i,n)=>{const o=new window.FileReader;o.onerror=n,o.onload=s=>{var c;typeof((c=s.target)===null||c===void 0?void 0:c.result)=="string"?i({dataURL:ST(s.target.result,t),name:t,size:r,type:a}):i({dataURL:null,name:t,size:r,type:a})},o.readAsDataURL(e)})}async function CT(e){return Promise.all(Array.from(e).map(ET))}function dy(e){return e.reduce((t,r)=>{if(!r)return t;try{const{blob:a,name:i}=Ux(r);return[...t,{dataURL:r,name:i,size:a.size,type:a.type}]}catch{return t}},[])}function AT(e,t,r=!1){const a=H.useMemo(()=>r&&e?Array.isArray(e)?e:[e]:[],[e,r]),i=H.useMemo(()=>Array.isArray(e)?dy(e):dy([e||""]),[e]),n=H.useCallback(async s=>{const l=(await CT(s)).map(u=>u.dataURL||null);t(r?a.concat(...l):l[0])},[a,r,t]),o=H.useCallback(s=>{if(r){const c=a.filter((l,u)=>u!==s);t(c)}else t(void 0)},[a,r,t]);return{filesInfo:i,handleChange:n,handleRemove:o}}function _T(e){if(!e)return"";const t=new Date(e),r=sa(t.getFullYear(),4),a=sa(t.getMonth()+1,2),i=sa(t.getDate(),2),n=sa(t.getHours(),2),o=sa(t.getMinutes(),2),s=sa(t.getSeconds(),2),c=sa(t.getMilliseconds(),3);return`${r}-${a}-${i}T${n}:${o}:${s}.${c}`}function Mo(e,t,r=!1){if(!t)return e;const{errors:a,errorSchema:i}=e;let n=mf(t),o=t;return Dt(i)||(o=aa(i,t,r?"preventDuplicates":!0),n=[...a].concat(n)),{errorSchema:o,errors:n}}function OT(e){const t=e;for(const r in t)if(Object.hasOwn(t,r)){const a=t[r];r===gt&&typeof a=="string"&&a.startsWith("#")?t[r]=Pm+a:t[r]=hf(a)}return e}function xT(e){return e.map(t=>hf(t))}function hf(e){return Array.isArray(e)?xT([...e]):Ye(e)?OT({...e}):e}var Me;(function(e){e.ArrayItemTitle="Item",e.MissingItems="Missing items definition",e.EmptyArray="No items yet. Use the button below to add some.",e.YesLabel="Yes",e.NoLabel="No",e.CloseLabel="Close",e.ErrorsLabel="Errors",e.NewStringDefault="New Value",e.AddButton="Add",e.AddItemButton="Add Item",e.CopyButton="Copy",e.ExpandButton="Expand Cycle",e.MoveDownButton="Move down",e.MoveUpButton="Move up",e.RemoveButton="Remove",e.NowLabel="Now",e.ClearLabel="Clear",e.AriaDateLabel="Select a date",e.PreviewLabel="Preview",e.DecrementAriaLabel="Decrease value by 1",e.IncrementAriaLabel="Increase value by 1",e.OptionalObjectAdd="Add data for optional field",e.OptionalObjectRemove="Remove data for optional field",e.OptionalObjectEmptyMsg="No data for optional field",e.Type="Type",e.Value="Value",e.ClearButton="clear input",e.UnknownFieldType="Unknown field type %1",e.OptionPrefix="Option %1",e.TitleOptionPrefix="%1 option %2",e.KeyLabel="%1 Key",e.DeprecatedLabel="%1 (deprecated)",e.CycleDetected='Circular reference ($ref cycle) detected for field "%1". You may choose to expand to the next cycle break',e.InvalidObjectField='Invalid "%1" object field configuration: _%2_.',e.UnsupportedField="Unsupported field schema.",e.UnsupportedFieldWithId="Unsupported field schema for field `%1`.",e.UnsupportedFieldWithReason="Unsupported field schema: _%1_.",e.UnsupportedFieldWithIdAndReason="Unsupported field schema for field `%1`: _%2_.",e.FilesInfo="**%1** (%2, %3 bytes)"})(Me||(Me={}));function TT(e,t){var r=Bt(e)?Au:Dg;return r(e,Wh(t))}function PT(e,t){return e==null?!0:jh(e,t)}function gf(){return ty("rjsf-array-item-")}function py(e){return Array.isArray(e)?e.map(t=>({key:gf(),item:t})):[]}function my(e){return Array.isArray(e)?e.map(t=>t.item):[]}function IT(e){return Array.isArray(e.type)?!e.type.includes("null"):e.type!=="null"}function hy(e,t,r,a){let{addable:i}=be(a,e.globalUiOptions);return i!==!1&&(t.maxItems!==void 0?i=r.length<t.maxItems:i=!0),i}function gy(e,t,r,a){if(typeof e.items=="function")try{return e.items(t,r,a)}catch(i){console.error(`Error executing dynamic uiSchema.items function for item at index ${r}:`,i);return}else return e.items}function NT(e,t){const{schemaUtils:r,globalFormOptions:a}=e;let i=t.items;return a.useFallbackUiForUnsupportedType&&!i?i={}:Qu(t)&&Ww(t)&&(i=t.additionalItems),r.getDefaultFormState(i)}function DT(e){const{schema:t,fieldPathId:r,uiSchema:a,formData:i=[],disabled:n=!1,readonly:o=!1,autofocus:s=!1,required:c=!1,placeholder:l,onBlur:u,onFocus:f,registry:p,rawErrors:d,name:h,onSelectChange:k}=e,{widgets:v,schemaUtils:y,globalFormOptions:b,globalUiOptions:w}=p,E=y.retrieveSchema(t.items,i),m=(a==null?void 0:a.items)??a,g=Ua(E,m),{widget:S="select",title:A,...x}=be(a,w),O=Sn(t,S,v),C=A??t.title??h,_=y.getDisplayLabel(t,a,w),F=Ii(nn("",b,r,!0));return D.jsx(O,{id:F[dt],name:h,multiple:!0,onChange:k,onBlur:u,onFocus:f,options:{...x,enumOptions:g},schema:t,uiSchema:a,registry:p,value:i,disabled:n,readonly:o,required:c,label:C,hideLabel:!_,placeholder:l,autofocus:s,rawErrors:d,htmlName:F.name})}function FT(e){const{schema:t,fieldPathId:r,uiSchema:a,disabled:i=!1,readonly:n=!1,autofocus:o=!1,required:s=!1,hideError:c,placeholder:l,onBlur:u,onFocus:f,formData:p=[],registry:d,rawErrors:h,name:k,onSelectChange:v}=e,{widgets:y,schemaUtils:b,globalFormOptions:w,globalUiOptions:E}=d,{widget:m,title:g,...S}=be(a,E),A=Sn(t,m,y),x=g??t.title??k,O=b.getDisplayLabel(t,a,E),C=Ii(nn("",w,r,!0));return D.jsx(A,{id:C[dt],name:k,multiple:!0,onChange:v,onBlur:u,onFocus:f,options:S,schema:t,uiSchema:a,registry:d,value:p,disabled:i,readonly:n,hideError:c,required:s,label:x,hideLabel:!O,placeholder:l,autofocus:o,rawErrors:h,htmlName:C.name})}function MT(e){const{schema:t,uiSchema:r,fieldPathId:a,name:i,disabled:n=!1,readonly:o=!1,autofocus:s=!1,required:c=!1,onBlur:l,onFocus:u,registry:f,formData:p=[],rawErrors:d,onSelectChange:h}=e,{widgets:k,schemaUtils:v,globalFormOptions:y,globalUiOptions:b}=f,{widget:w="files",title:E,...m}=be(r,b),g=Sn(t,w,k),S=E??t.title??i,A=v.getDisplayLabel(t,r,b),x=Ii(nn("",y,a,!0));return D.jsx(g,{options:m,id:x[dt],name:i,multiple:!0,onChange:h,onBlur:l,onFocus:u,schema:t,uiSchema:r,value:p,disabled:n,readonly:o,required:c,registry:f,autofocus:s,rawErrors:d,label:S,hideLabel:!A,htmlName:x.name})}function jT(e){const{itemKey:t,index:r,name:a,disabled:i,hideError:n,readonly:o,registry:s,uiOptions:c,parentUiSchema:l,canAdd:u,canRemove:f=!0,canMoveUp:p,canMoveDown:d,rawItemSchema:h,itemData:k,itemUiSchema:v,parentFieldPathId:y,itemErrorSchema:b,autofocus:w,onBlur:E,onFocus:m,onChange:g,rawErrors:S,totalItems:A,title:x,handleAddItem:O,handleCopyItem:C,handleRemoveItem:_,handleReorderItems:F}=e,{schemaUtils:I,fields:{ArraySchemaField:j,SchemaField:$},globalUiOptions:Y,globalFormOptions:Z}=s,ie=H.useMemo(()=>I.retrieveSchema(h,k),[I,h,k]),P=H.useMemo(()=>nn(r,Z,y),[r,Z,y]),M=j||$,U=Ce("ArrayFieldItemTemplate",s,c),T=I.getDisplayLabel(ie,v,Y),{description:N}=be(v),L=!!N||!!ie.description,{orderable:B=!0,removable:V=!0,copyable:K=!1}=c,J={moveUp:B&&p,moveDown:B&&d,copy:K&&u,remove:V&&f,toolbar:!1};J.toolbar=Object.keys(J).some(ae=>J[ae]);const Q=H.useCallback(ae=>{O(ae,r+1)},[O,r]),q=H.useCallback(ae=>{C(ae,r)},[C,r]),z=H.useCallback(ae=>{_(ae,r)},[_,r]),W=H.useCallback(ae=>{F(ae,r,r-1)},[F,r]),G=H.useCallback(ae=>{F(ae,r,r+1)},[F,r]),te={children:D.jsx(M,{name:a,title:x,index:r,schema:ie,uiSchema:v,formData:k,errorSchema:b,fieldPathId:P,required:IT(ie),onChange:g,onBlur:E,onFocus:m,registry:s,disabled:i,readonly:o,hideError:n,autofocus:w,rawErrors:S}),buttonsProps:{fieldPathId:P,disabled:i,readonly:o,canAdd:u,hasCopy:J.copy,hasMoveUp:J.moveUp,hasMoveDown:J.moveDown,hasRemove:J.remove,index:r,totalItems:A,onAddItem:Q,onCopyItem:q,onRemoveItem:z,onMoveUpItem:W,onMoveDownItem:G,registry:s,schema:ie,uiSchema:v},itemKey:t,className:"rjsf-array-item",disabled:i,hasToolbar:J.toolbar,index:r,totalItems:A,readonly:o,registry:s,schema:ie,uiSchema:v,parentUiSchema:l,displayLabel:T,hasDescription:L};return D.jsx(U,{...te})}const yy=H.memo(jT);function LT(e){const{schema:t,uiSchema:r={},errorSchema:a,fieldPathId:i,formData:n,name:o,title:s,disabled:c=!1,readonly:l=!1,autofocus:u=!1,required:f=!1,hideError:p=!1,registry:d,onBlur:h,onFocus:k,rawErrors:v,onChange:y,keyedFormData:b,handleAddItem:w,handleCopyItem:E,handleRemoveItem:m,handleReorderItems:g}=e,S=t.title||s||o,{schemaUtils:A,fields:x,formContext:O,globalUiOptions:C}=d,{OptionalDataControlsField:_}=x,F=H.useMemo(()=>be(r,C),[r,C]),I=H.useMemo(()=>Ye(t.items)?t.items:{},[t.items]),j=H.useMemo(()=>A.retrieveSchema(I),[A,I]),$=H.useMemo(()=>my(b),[b]),Y=Fo(d,t,f,r),Z=Pi(n),ie=H.useMemo(()=>hy(d,t,$,r)&&(!Y||Z),[d,t,$,r,Y,Z]),P=Z?b:[],M=Y?" rjsf-optional-array-field":"",U=e.childFieldPathId??i,T=Y?D.jsx(_,{...e,fieldPathId:U}):void 0,N={canAdd:ie,items:P.map((B,V)=>{const{key:K,item:J}=B,Q=J,q=a?a[V]:void 0,z=gy(r,J,V,O),W={itemKey:K,index:V,name:o&&`${o}-${V}`,registry:d,uiOptions:F,parentUiSchema:r,hideError:p,readonly:l,disabled:c,required:f,title:S?`${S}-${V+1}`:void 0,canAdd:ie,canMoveUp:V>0,canMoveDown:V<$.length-1,rawItemSchema:I,parentFieldPathId:U,itemErrorSchema:q,itemData:Q,itemUiSchema:z,autofocus:u&&V===0,onBlur:h,onFocus:k,rawErrors:v,totalItems:b.length,handleAddItem:w,handleCopyItem:E,handleRemoveItem:m,handleReorderItems:g,onChange:y};return D.jsx(yy,{...W},K)}),className:`rjsf-field rjsf-field-array rjsf-field-array-of-${j.type}${M}`,disabled:c,fieldPathId:i,uiSchema:r,onAddClick:w,readonly:l,required:f,schema:t,title:S,formData:$,rawErrors:v,registry:d,optionalDataControl:T},L=Ce("ArrayFieldTemplate",d,F);return D.jsx(L,{...N})}function RT(e){const{schema:t,uiSchema:r={},formData:a,errorSchema:i,fieldPathId:n,name:o,title:s,disabled:c=!1,readonly:l=!1,autofocus:u=!1,required:f=!1,hideError:p=!1,registry:d,onBlur:h,onFocus:k,rawErrors:v,keyedFormData:y,onChange:b,handleAddItem:w,handleCopyItem:E,handleRemoveItem:m,handleReorderItems:g}=e;let{formData:S=[]}=e;const A=t.title||s||o,{fields:x,formContext:O,globalUiOptions:C}=d,_=H.useMemo(()=>be(r,C),[r,C]),{OptionalDataControlsField:F}=x,I=Fo(d,t,f,r),j=Pi(a),$=H.useMemo(()=>Ye(t.items)?t.items:[],[t.items]),Y=Ye(t.additionalItems),Z=e.childFieldPathId??n;S.length<$.length&&(S=S.concat(new Array($.length-S.length)));const ie=j?y:[],P=I?" rjsf-optional-array-field":"",M=I?D.jsx(F,{...e,fieldPathId:Z}):void 0,U=hy(d,t,S,r)&&Y&&(!I||j),T={canAdd:U,className:`rjsf-field rjsf-field-array rjsf-field-array-fixed-items${P}`,disabled:c,fieldPathId:n,formData:a,items:ie.map((L,B)=>{const{key:V,item:K}=L,J=K,Q=B>=$.length,q=(Q&&Ye(t.additionalItems)?t.additionalItems:$[B])||{};let z;Q?z=r.additionalItems:Array.isArray(r.items)?z=r.items[B]:z=gy(r,K,B,O);const W=i?i[B]:void 0,G={index:B,itemKey:V,name:o&&`${o}-${B}`,registry:d,uiOptions:_,parentUiSchema:r,hideError:p,readonly:l,disabled:c,required:f,title:A?`${A}-${B+1}`:void 0,canAdd:U,canRemove:Q,canMoveUp:B>=$.length+1,canMoveDown:Q&&B<S.length-1,rawItemSchema:q,itemData:J,itemUiSchema:z,parentFieldPathId:Z,itemErrorSchema:W,autofocus:u&&B===0,onBlur:h,onFocus:k,rawErrors:v,totalItems:y.length,onChange:b,handleAddItem:w,handleCopyItem:E,handleRemoveItem:m,handleReorderItems:g};return D.jsx(yy,{...G},V)}),onAddClick:w,readonly:l,required:f,registry:d,schema:t,uiSchema:r,title:A,errorSchema:i,rawErrors:v,optionalDataControl:M},N=Ce("ArrayFieldTemplate",d,_);return D.jsx(N,{...T})}function qT(e=[]){const t=H.useMemo(()=>Ur(e),[e]),[r,a]=H.useState(()=>({formDataHash:t,keyedFormData:py(e)}));let{keyedFormData:i,formDataHash:n}=r;if(t!==n){const s=Array.isArray(e)?e:[],c=i||[];i=s.length===c.length?c.map((l,u)=>({key:l.key,item:s[u]})):py(s),n=t,a({formDataHash:n,keyedFormData:i})}const o=H.useCallback(s=>{const c=my(s),l=Ur(c);return a({formDataHash:l,keyedFormData:s}),c},[]);return{keyedFormData:i,updateKeyedFormData:o}}function zT(e){const{schema:t,uiSchema:r,errorSchema:a,fieldPathId:i,registry:n,formData:o,onChange:s}=e,{globalFormOptions:c,schemaUtils:l,translateString:u}=n,{keyedFormData:f,updateKeyedFormData:p}=qT(o),d=H.useRef(f);d.current=f;const h=H.useRef(a);h.current=a;const k=e.childFieldPathId??i,v=H.useCallback((A,x)=>{A&&A.preventDefault();let O;if(h.current){O={};for(const F of Object.keys(h.current)){const I=parseInt(F,10);x===void 0||I<x?vt(O,[I],h.current[I]):I>=x&&vt(O,[I+1],h.current[I])}}const C={key:gf(),item:NT(n,t)},_=[...d.current];x!==void 0?_.splice(x,0,C):_.push(C),s(p(_),k.path,O)},[n,t,s,p,k]),y=H.useCallback((A,x)=>{A&&A.preventDefault();let O;if(h.current){O={};for(const F of Object.keys(h.current)){const I=parseInt(F,10);I<=x?vt(O,[I],h.current[I]):I>x&&vt(O,[I+1],h.current[I])}}const C={key:gf(),item:Ws(d.current[x].item)},_=[...d.current];x!==void 0?_.splice(x+1,0,C):_.push(C),s(p(_),k.path,O)},[s,p,k]),b=H.useCallback((A,x)=>{A&&A.preventDefault();let O;if(h.current){O={};for(const _ of Object.keys(h.current)){const F=parseInt(_,10);F<x?vt(O,[F],h.current[F]):F>x&&vt(O,[F-1],h.current[F])}}const C=d.current.filter((_,F)=>F!==x);s(p(C),k.path,O)},[s,p,k]),w=H.useCallback((A,x,O)=>{A&&(A.preventDefault(),A.currentTarget.blur());let C;if(h.current){C={};for(const I of Object.keys(h.current)){const j=parseInt(I,10);j===x?vt(C,[O],h.current[x]):j===O?vt(C,[x],h.current[O]):vt(C,[I],h.current[j])}}function _(){const I=d.current.slice();return I.splice(x,1),I.splice(O,0,d.current[x]),I}const F=_();s(p(F),k.path,C)},[s,p,k]),E=H.useCallback((A,x,O,C)=>{const _=typeof x.at(-1)=="number";s(_&&A===void 0?null:A,x,O,C)},[s]),m=H.useCallback(A=>{s(A,k.path,void 0,k==null?void 0:k[dt])},[s,k]),g={...e,formData:o,fieldPathId:k,onSelectChange:m},S={...e,handleAddItem:v,handleCopyItem:y,handleRemoveItem:b,handleReorderItems:w,keyedFormData:f,onChange:E};if(!(yi in t)){if(!c.useFallbackUiForUnsupportedType){const x=be(r),O=Ce("UnsupportedFieldTemplate",n,x);return D.jsx(O,{schema:t,fieldPathId:i,reason:u(Me.MissingItems),registry:n})}const A={...t,[yi]:{type:void 0}};g.schema=A,S.schema=A}return l.isMultiSelect(g.schema)?D.jsx(DT,{...g}):zg(r)?D.jsx(FT,{...g}):Qu(g.schema)?D.jsx(RT,{...S}):l.isFilesArray(g.schema,r)?D.jsx(MT,{...g}):D.jsx(LT,{...S})}function $T(e){const{schema:t,name:r,uiSchema:a,fieldPathId:i,formData:n,registry:o,required:s,disabled:c,readonly:l,hideError:u,autofocus:f,title:p,onChange:d,onFocus:h,onBlur:k,rawErrors:v}=e,{title:y}=t,{widgets:b,translateString:w,globalUiOptions:E}=o,{widget:m="checkbox",title:g,label:S=!0,enumNames:A,...x}=be(a,E),O=Sn(t,m,b),C=w(Me.YesLabel),_=w(Me.NoLabel);let F;const I=g??y??p??r;if(Array.isArray(t.oneOf))F=Ua({oneOf:t.oneOf.map($=>{if(Ye($))return{...$,title:$.title||($.const===!0?C:_)}}).filter($=>$)},a);else{const $=t.enum??[!0,!1];!A&&$.length===2&&$.every(Y=>typeof Y=="boolean")?F=[{value:$[0],label:$[0]?C:_},{value:$[1],label:$[1]?C:_}]:F=Ua({enum:$},a)}const j=H.useCallback(($,Y,Z)=>d($,i.path,Y,Z),[d,i]);return D.jsx(O,{options:{...x,enumOptions:F},schema:t,uiSchema:a,id:i.$id,name:r,onChange:j,onFocus:h,onBlur:k,label:I,hideLabel:!S,value:n,required:s,disabled:c,readonly:l,hideError:u,registry:o,autofocus:f,rawErrors:v,htmlName:i.name})}function UT(e){const[t,r]=H.useState(!1),{name:a,registry:i,schema:n,uiSchema:o,fieldPathId:s}=e,{globalUiOptions:c}=i,l=be(o,c),u=Ce("CyclicSchemaExpandTemplate",i,l);if(!t)return D.jsx(u,{registry:i,schema:n,uiSchema:o,name:a,fieldPathId:s,onExpand:()=>r(!0)});const{fields:f}=i,{SchemaField:p}=f;return D.jsx(p,{...e,schema:{...n,[iu]:!1}})}function BT(e){return{type:"string",enum:["string","number","boolean","object","array"],default:"string",title:e}}function VT(e){const t=typeof e;return t==="string"||t==="number"||t==="boolean"?t:t==="object"?Array.isArray(e)?"array":"object":"string"}function HT(e,t){switch(t){case"string":return String(e);case"number":{const r=Number(e);return Number.isNaN(r)?0:r}case"boolean":return!!e;default:return e}}function WT(e){const{id:t,formData:r,displayLabel:a=!0,schema:i,name:n,uiSchema:o,required:s,disabled:c=!1,readonly:l=!1,onBlur:u,onFocus:f,registry:p,fieldPathId:d,onChange:h,errorSchema:k}=e,{translateString:v,fields:y,globalFormOptions:b}=p,[w,E]=H.useState(VT(r)),m=be(o),g=Ii(nn("__internal_type_selector",b,d)),S=v(Me.Type),A=H.useMemo(()=>BT(S),[S]),x=_=>{_!=null&&(E(_),h(HT(r,_),d.path,k,t))};if(!b.useFallbackUiForUnsupportedType){const{reason:_=v(Me.UnknownFieldType,[String(i.type)])}=e,F=Ce("UnsupportedFieldTemplate",p,m);return D.jsx(F,{schema:i,fieldPathId:d,reason:_,registry:p})}const O=Ce("FallbackFieldTemplate",p,m),{SchemaField:C}=y;return D.jsx(O,{schema:i,registry:p,typeSelector:D.jsx(C,{fieldPathId:g,name:`${n}__fallback_type`,schema:A,formData:w,onChange:x,onBlur:u,onFocus:f,registry:p,hideLabel:!a,disabled:c,readonly:l,required:s},r?Ur(r):"__empty__"),schemaField:D.jsx(C,{...e,schema:{type:w,title:v(Me.Value),...w==="object"&&{additionalProperties:!0}}})})}function KT(e,t){return vi(t,function(r){return e[r]})}function GT(e){return e==null?[]:KT(e,en(e))}var JT=Math.max;function YT(e,t,r,a){e=La(e)?e:GT(e),r=r?Jh(r):0;var i=e.length;return r<0&&(r=JT(i+r,0)),ta(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&og(e,t,r)>-1}var XT=Math.min;function ZT(e,t,r){for(var a=Vu,i=e[0].length,n=e.length,o=n,s=Array(n),c=1/0,l=[];o--;){var u=e[o];c=XT(u.length,c),s[o]=i>=120&&u.length>=120?new qa(o&&u):void 0}u=e[0];var f=-1,p=s[0];e:for(;++f<i&&l.length<c;){var d=u[f],h=d;if(d=d!==0?d:0,!(p?_o(p,h):a(l,h))){for(o=n;--o;){var k=s[o];if(!(k?_o(k,h):a(e[o],h)))continue e}p&&p.push(h),l.push(d)}}return l}function QT(e){return Ao(e)?e:[]}var vy=js(function(e){var t=vi(e,QT);return t.length&&t[0]===e[0]?ZT(t):[]});function eP(e,t){return Rs(e,t)}function by(e){return e===void 0}var En;(function(e){e.ROW="ui:row",e.COLUMN="ui:col",e.COLUMNS="ui:columns",e.CONDITION="ui:condition"})(En||(En={}));var jo;(function(e){e.ALL="all",e.SOME="some",e.NONE="none"})(jo||(jo={}));const tP=/^\$lookup=(.+)/,yf="layoutGrid";function ky(e,t){return e??t}function rP(e){return/^\d+?$/.test(e)}const ca=af();function nP(e,t,r,a,i){const n=se(r,[lu],{}),o=se(r,e),s={...se(o,[Zn],{}),...t,...n},c={...o};Dt(s)||vt(c,[Zn],s),Dt(n)||vt(c,[lu],n);let{readonly:l}=be(c);return(i===!0||by(l)&&a===!0)&&(l=!0,Ke(s,au)?vt(c,[Zn,au],!0):vt(c,`ui:${au}`,!0)),{fieldUiSchema:c,uiReadonly:l}}function aP(e,t,r="$0m3tH1nG Un3xP3cT3d"){const a=Fu([t]).sort(),i=Fu([r]).sort();switch(e){case jo.ALL:return eP(a,i);case jo.SOME:return vy(a,i).length>0;case jo.NONE:return vy(a,i).length===0;default:return!1}}function Ys(e,t,r){let a={},i=e[t];if(Qn(i)){const{children:n,className:o,...s}=i;if(i=n,o){const l=o.split(" ").map(u=>ff(r,u,u)).join(" ");a={...s,className:l}}else a=s}if(!Array.isArray(i))throw new TypeError(`Expected array for "${t}" in ${JSON.stringify(e)}`);return{children:i,gridProps:a}}function wy(e,t,r){let a,i=t;if(rP(r)&&e&&(e==null?void 0:e.type)==="array"&&Ke(e,yi)){const n=Number(r),o=e[yi];Array.isArray(o)?n>o.length?a=Mh(o):a=o[n]:a=o,i={[dt]:t[dt],path:[...t.path.slice(0,t.path.length-1),n]}}return{rawSchema:a,fieldPathId:i}}function iP(e,t,r,a,i){const{schemaUtils:n,globalFormOptions:o}=e;let s=r,c=i;const l=t.split("."),u=l.pop();let f=n.retrieveSchema(s,a),p=a,d=f.readOnly;l.forEach(v=>{if(c=nn(v,o,c),Ke(f,Je))s=se(f,[Je,v],{});else if(f&&(Ke(f,Fe)||Ke(f,Ve))){const y=Ke(f,Fe)?Fe:Ve,b=n.findSelectedOptionInXxxOf(f,v,y,p);s=se(b,[Je,v],{})}else{const y=wy(f,c,v);s=y.rawSchema??{},c=y.fieldPathId}p=se(p,v,{}),f=n.retrieveSchema(s,p),d=ky(f.readOnly,d)});let h,k=!1;if(Dt(f)&&(f=void 0),f&&u){if(f&&(Ke(f,Fe)||Ke(f,Ve))){const y=Ke(f,Fe)?Fe:Ve;f=n.findSelectedOptionInXxxOf(f,u,y,p)}c=nn(u,o,c),k=f!==void 0&&Array.isArray(f.required)&&YT(f.required,u);const v=wy(f,c,u);if(v.rawSchema?(f=v.rawSchema,c=v.fieldPathId):(f=se(f,[Je,u]),f=f&&n.retrieveSchema(f)),d=ky(f==null?void 0:f.readOnly,d),f&&(Ke(f,Fe)||Ke(f,Ve))){const y=Ke(f,Fe)?Fe:Ve,b=qr(f);h={options:f[y],hasDiscriminator:!!b}}}return{schema:f,isRequired:k,isReadonly:d,optionsInfo:h,fieldPathId:c}}function oP(e,t){let r=e;return ta(r)&&(r=ff(t,r)),uo(r)?r:null}function sP(e,t){let r,a=null,i={},n;if(ta(t)||by(t))r=t??"";else{const{name:o="",render:s,...c}=t;r=o,i=c,Dt(i)||TT(i,(l,u)=>{if(ta(l)){const f=tP.exec(l);if(Array.isArray(f)&&f.length>1){const p=f[1];i[u]=ff(e,p,p)}}}),a=oP(s,e),!o&&a&&(n=D.jsx(a,{...c,"data-testid":ca.uiComponent}))}return{name:r,UIComponent:a,uiProps:i,rendered:n}}function Xs(e){const{childrenLayoutGridSchemaId:t,...r}=e,{registry:a,schema:i,formData:n}=r,{schemaUtils:o}=a,s=o.retrieveSchema(i,n);return t.map(c=>H.createElement(vf,{...r,key:`layoutGrid-${Ur(c)}`,schema:s,layoutGridSchema:c}))}function lP(e){const{layoutGridSchema:t,...r}=e,{formData:a,registry:i}=r,{children:n,gridProps:o}=Ys(t,En.CONDITION,i),{operator:s,field:c="",value:l}=o,u=se(a,c,null);return aP(s,u,l)?D.jsx(Xs,{...r,childrenLayoutGridSchemaId:n}):null}function cP(e){const{layoutGridSchema:t,...r}=e,{registry:a,uiSchema:i}=r,{children:n,gridProps:o}=Ys(t,En.COLUMN,a),s=be(i),c=Ce("GridTemplate",a,s);return D.jsx(c,{column:!0,"data-testid":ca.col,...o,children:D.jsx(Xs,{...r,childrenLayoutGridSchemaId:n})})}function uP(e){const{layoutGridSchema:t,...r}=e,{registry:a,uiSchema:i}=r,{children:n,gridProps:o}=Ys(t,En.COLUMNS,a),s=be(i),c=Ce("GridTemplate",a,s);return n.map(l=>D.jsx(c,{column:!0,"data-testid":ca.col,...o,children:D.jsx(Xs,{...r,childrenLayoutGridSchemaId:[l]})},`column-${Ur(l)}`))}function fP(e){const{layoutGridSchema:t,...r}=e,{registry:a,uiSchema:i}=r,{children:n,gridProps:o}=Ys(t,En.ROW,a),s=be(i),c=Ce("GridTemplate",a,s);return D.jsx(c,{...o,"data-testid":ca.row,children:D.jsx(Xs,{...r,childrenLayoutGridSchemaId:n})})}function dP(e){const{gridSchema:t,schema:r,uiSchema:a,errorSchema:i,fieldPathId:n,onBlur:o,onFocus:s,formData:c,readonly:l,registry:u,layoutGridSchema:f,...p}=e,{onChange:d}=p,{fields:h}=u,{SchemaField:k,LayoutMultiSchemaField:v}=h,y=sP(u,t),{name:b,UIComponent:w,uiProps:E}=y,{schema:m,isRequired:g,isReadonly:S,optionsInfo:A,fieldPathId:x}=iP(u,b,r,c,n),O=Ii(x);if(y.rendered)return y.rendered;if(m){const C=A!=null&&A.hasDiscriminator?v:k,{fieldUiSchema:_,uiReadonly:F}=nP(b,E,a,S,l);return D.jsx(C,{"data-testid":A!=null&&A.hasDiscriminator?ca.layoutMultiSchemaField:ca.field,...p,name:b,required:g,readonly:F,schema:m,uiSchema:_,errorSchema:se(i,b),fieldPathId:O,formData:se(c,b),onChange:d,onBlur:o,onFocus:s,options:A==null?void 0:A.options,registry:u})}return w?D.jsx(w,{"data-testid":ca.uiComponent,...p,name:b,required:g,formData:c,readOnly:!!S||l,errorSchema:i,uiSchema:a,schema:r,fieldPathId:n,onBlur:o,onFocus:s,registry:u,...E}):null}function vf(e){const{uiSchema:t}=e;let{layoutGridSchema:r}=e;const a=be(t);if(!r&&yf in a&&Ye(a[yf])&&(r=a[yf]),Ye(r)){if(En.ROW in r)return D.jsx(fP,{...e,layoutGridSchema:r});if(En.COLUMN in r)return D.jsx(cP,{...e,layoutGridSchema:r});if(En.COLUMNS in r)return D.jsx(uP,{...e,layoutGridSchema:r});if(En.CONDITION in r)return D.jsx(lP,{...e,layoutGridSchema:r})}return D.jsx(dP,{...e,gridSchema:r})}vf.TEST_IDS=ca;function pP(e){const{fieldPathId:t,title:r,schema:a,uiSchema:i,required:n,registry:o,name:s}=e,c=be(i,o.globalUiOptions),{title:l}=c,{title:u}=a,f=l||r||u||s;if(!f)return null;const p=Ce("TitleFieldTemplate",o,c);return D.jsx(p,{id:Gs(t),title:f,required:n,schema:a,uiSchema:i,registry:o})}function bf(e,t,r){const a="!@#!@$@#$!@$#";return e.map(({schema:n})=>n).find(n=>{const o=se(n,[Je,t]);return se(o,Na,se(o,cr,a))===r})}function Sy(e,t,r,a,i){const n=t.map(c=>r.retrieveSchema(c,i));let o=e;Ke(e,Fe)?o={...e,[Fe]:n}:Ke(e,Ve)&&(o={...e,[Ve]:n});const s=Ua(o,a);if(!s)throw new Error(`No enumOptions were computed from the schema ${JSON.stringify(o)}`);return s}function mP(e){var z;const{name:t,baseType:r,disabled:a=!1,formData:i,fieldPathId:n,onBlur:o,onChange:s,options:c,onFocus:l,registry:u,uiSchema:f,schema:p,autofocus:d,readonly:h,required:k,errorSchema:v,hideError:y=!1}=e,{widgets:b,schemaUtils:w,globalUiOptions:E}=u,[m,g]=H.useState(Sy(p,c,w,f,i)),S=se(n,dt),A=qr(p),x=Ce("FieldErrorTemplate",u,c),O=Ce("FieldTemplate",u,c),C=Ur(p),_=Ur(c),F=f?Ur(f):"",I=i?Ur(i):"";H.useEffect(()=>{g(Sy(p,c,w,f,i))},[C,_,w,F,I]);const{widget:j=A?"radio":"select",title:$="",placeholder:Y="",optionsSchemaSelector:Z=A,hideError:ie,...P}=be(f);if(!Z)throw new Error("No selector field provided for the LayoutMultiSchemaField");const M=se(i,Z);let U=se((z=m[0])==null?void 0:z.schema,[Je,Z],{});const T=bf(m,Z,M);U=U!=null&&U.type?U:{...U,type:(T==null?void 0:T.type)||r};const N=Sn(U,j,b),L=ie===void 0?y:!!ie,B=se(v,[er],[]),V=Eo(v,[er]),K=w.getDisplayLabel(p,f,E),J=W=>{if(a||h)return;const G=bf(m,Z,W),te=bf(m,Z,M);let ae=w.sanitizeDataForNewSchema(G,te,i);ae&&G&&(ae=w.getDefaultFormState(G,ae,"excludeObjectChildren")),ae&&vt(ae,Z,W),s(ae,n.path,void 0,S)},Q={enumOptions:m,...P},q=!L&&B.length>0?D.jsx(x,{fieldPathId:n,schema:p,errors:B,registry:u}):void 0;return D.jsx(O,{fieldPathId:n,id:S,schema:p,label:($||p.title)??"",disabled:a||Array.isArray(m)&&Dt(m),uiSchema:f,required:k,readonly:!!h,registry:u,displayLabel:K,errors:q,onChange:s,onKeyRename:qs,onKeyRenameBlur:qs,onRemoveProperty:qs,children:D.jsx(N,{id:S,name:t,schema:p,label:($||p.title)??"",disabled:a||Array.isArray(m)&&Dt(m),uiSchema:f,autofocus:d,readonly:h,required:k,registry:u,multiple:!1,rawErrors:B,hideError:L,hideLabel:!K,errorSchema:V,placeholder:Y,onChange:J,onBlur:o,onFocus:l,value:M,options:Q,htmlName:n.name})})}function Ey(e){const{name:t,disabled:r=!1,errorSchema:a={},formData:i,fieldPathId:n,onBlur:o,onChange:s,onFocus:c,options:l,readonly:u,registry:f,required:p=!1,schema:d,uiSchema:h}=e,{schemaUtils:k}=f,v=Ur(i??null),y=H.useMemo(()=>l.map(ae=>k.retrieveSchema(ae,i)),[l,k,v]),[b,w]=H.useState(()=>{const ae=qr(d);return k.getClosestMatchingOption(i,y,0,ae)}),E=H.useRef(!1),m=H.useRef(i),g=H.useRef(n.$id);H.useEffect(()=>{const ae=m.current,pe=g.current;if(m.current=i,g.current=n.$id,!Xe(i,ae)&&n.$id===pe){if(E.current){E.current=!1;return}const ve=qr(d),Ae=k.getClosestMatchingOption(i,y,b,ve);Ae!==b&&w(Ae)}});const S=`${n.$id}${d.oneOf?"__oneof_select":"__anyof_select"}`,A=H.useCallback(ae=>{if(r||u)return;const pe=ae!==void 0?parseInt(ae,10):-1;if(pe===b)return;const ve=pe>=0?y[pe]:void 0,Ae=b>=0?y[b]:void 0;let Se=k.sanitizeDataForNewSchema(ve,Ae,i);ve&&(Se=k.getDefaultFormState(ve,Se,"excludeObjectChildren")),w(pe),E.current=!0,s(Se,n.path,void 0,S)},[b,y,r,u,k,i,n,s,S]),{widgets:x,fields:O,translateString:C,globalUiOptions:_}=f,{SchemaField:F}=O,I=Ce("MultiSchemaFieldTemplate",f,_),j=Fo(f,d,p,h),$=Pi(i),{widget:Y="select",placeholder:Z,autofocus:ie,autocomplete:P,title:M=d.title,...U}=be(h,_),T=Sn({type:"number"},Y,x),N=se(a,er,[]),L=Eo(a,[er]),B=k.getDisplayLabel(d,h,_),V=b>=0&&y[b]||null;let K;if(V){const{required:ae,type:pe}=d,ve={};ae&&(ve.required=ae),pe!==void 0&&!("type"in V)&&(ve.type=pe),K=Object.keys(ve).length>0?qn(ve,V):V}let J=[];Fe in d&&h&&Fe in h?Array.isArray(h[Fe])?J=h[Fe]:console.warn(`uiSchema.oneOf is not an array for "${M||t}"`):Ve in d&&h&&Ve in h&&(Array.isArray(h[Ve])?J=h[Ve]:console.warn(`uiSchema.anyOf is not an array for "${M||t}"`));let Q=h;b>=0&&J.length>b&&(Q=J[b]);const q=M?Me.TitleOptionPrefix:Me.OptionPrefix,z=M?[M]:[],W=y.map((ae,pe)=>{const{title:ve=ae.title}=be(J[pe]);return{label:ve||C(q,z.concat(String(pe+1))),value:pe}}),G=!j||$?D.jsx(T,{id:S,name:`${t}${d.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:A,onBlur:o,onFocus:c,disabled:r||Dt(W),multiple:!1,rawErrors:N,errorSchema:L,value:b>=0?b:void 0,options:{enumOptions:W,...U},registry:f,placeholder:Z,autocomplete:P,autofocus:ie,label:M??t,hideLabel:!B,readonly:u}):void 0,te=K&&K.type!=="null"&&D.jsx(F,{...e,schema:K,uiSchema:Q})||null;return D.jsx(I,{schema:d,registry:f,uiSchema:h,selector:G,optionSchemaField:te})}function hP(e){const{formData:t,onChange:r,fieldPathId:a}=e;return H.useEffect(()=>{t===void 0&&r(null,a.path)},[a,t,r]),null}const gP=/\.([0-9]*0)*$/,yP=/[0.]0*$/;function vP(e){const{registry:t,onChange:r,formData:a,value:i}=e,[n,o]=H.useState(i),{StringField:s}=t.fields,c=Em(),l=c==="."?"\\.":c;let u=a;const f=H.useCallback((d,h,k,v)=>{o(d);const y=typeof d=="string"?d.replace(c,"."):d,b=`${y}`.startsWith(".")?`0${y}`:y,w=typeof b=="string"&&gP.exec(b)?Cm(b.replace(yP,"")):Cm(b);r(w,h,k,v)},[r,c]);if(typeof n=="string"&&typeof u=="number"){const d=new RegExp(`^(${String(u).replace(".",l)})?${l}?0*$`);n.match(d)&&(u=n)}let p=u;if(typeof u=="number"&&c!=="."){const{schema:d,uiSchema:h}=e,{schemaUtils:k}=t,y=(k.isSelect(d)?Ua(d,h):void 0)?"select":"text",{widget:b=y}=be(h);b!=="radio"&&b!=="select"&&b!=="hidden"&&(p=String(u).replace(".",c))}return D.jsx(s,{...e,formData:p,onChange:f})}var Zs;function bP(e){if(!Zs){if(typeof document>"u")return;Zs=document.createElement("textarea")}var t=`&${e};`;Zs.innerHTML=t;var r=Zs.value;return r===t?void 0:r}var ce=32,de=9,ua=13,ye=10,tt=96,zt=126,Tt=91,zn=94,qe=62,Br=35,kf=37,je=45,Vr=61,Vt=92,Ft=42,_t=95,ht=60,Cy=64,an=93,ur=33,Qs=38,nr=58,wf=70,Va=102,el=104,Ha=119,Ni=116,Sf=112,Ay=115,kP=160,wP=12,SP=44,tl=59,Di=63,Hr=46,Pt=47,Wa=39,Ka=34,fa=43,Ht=124,Ga=123,Ef=125,on=40,sn=41,EP=78,CP=110,AP=79,_P=111,_y=120,Oy=88,Cf=30,ze=48,$e=57,Te=65,Ne=90,lt=97,bt=122,rl=128,ln=32,OP={blockQuote:0,breakLine:1,breakThematic:2,codeBlock:3,codeInline:4,footnote:5,footnoteReference:6,frontmatter:7,gfmTask:8,heading:9,htmlBlock:10,htmlComment:11,htmlSelfClosing:12,image:13,link:14,orderedList:15,paragraph:16,ref:17,refCollection:18,table:19,text:20,textFormatted:21,unorderedList:22},oe=OP;function xP(e){if(!Py(e,"---"))return null;let t=3;for(;t<e.length&&(e[t]===" "||e[t]===" ");)t++;if(t<e.length&&e[t]==="\r"&&t++,t>=e.length||e[t]!==`
|
|
51
|
-
`)return null;t++;let r=!1;for(;t<e.length;){let
|
|
52
|
-
`&&e[t]!=="\r";)t++;if(t>=e.length)break;let
|
|
53
|
-
`&&t++,
|
|
54
|
-
`),
|
|
55
|
-
`||e[t-1]==="\r");)t--;return`${e.slice(0,t).replace(
|
|
75
|
+
*/var Yy;function AD(){return Yy||(Yy=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),n=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),p=!1,k=!1,v=!1,g=!1,b=!1,w;w=Symbol.for("react.module.reference");function E(K){return!!(typeof K=="string"||typeof K=="function"||K===r||K===a||b||K===i||K===u||K===c||g||K===d||p||k||v||typeof K=="object"&&K!==null&&(K.$$typeof===m||K.$$typeof===f||K.$$typeof===n||K.$$typeof===o||K.$$typeof===l||K.$$typeof===w||K.getModuleId!==void 0))}function h(K){if(typeof K=="object"&&K!==null){var ie=K.$$typeof;switch(ie){case e:var re=K.type;switch(re){case r:case a:case i:case u:case c:return re;default:var ue=re&&re.$$typeof;switch(ue){case s:case o:case l:case m:case f:case n:return ue;default:return ie}}case t:return ie}}}var y=o,C=n,x=e,_=l,S=r,A=m,O=f,F=t,T=a,M=i,q=u,J=c,Y=!1,Q=!1;function P(K){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function j(K){return Q||(Q=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function B(K){return h(K)===o}function I(K){return h(K)===n}function D(K){return typeof K=="object"&&K!==null&&K.$$typeof===e}function L(K){return h(K)===l}function U(K){return h(K)===r}function $(K){return h(K)===m}function H(K){return h(K)===f}function G(K){return h(K)===t}function X(K){return h(K)===a}function z(K){return h(K)===i}function R(K){return h(K)===u}function W(K){return h(K)===c}nt.ContextConsumer=y,nt.ContextProvider=C,nt.Element=x,nt.ForwardRef=_,nt.Fragment=S,nt.Lazy=A,nt.Memo=O,nt.Portal=F,nt.Profiler=T,nt.StrictMode=M,nt.Suspense=q,nt.SuspenseList=J,nt.isAsyncMode=P,nt.isConcurrentMode=j,nt.isContextConsumer=B,nt.isContextProvider=I,nt.isElement=D,nt.isForwardRef=L,nt.isFragment=U,nt.isLazy=$,nt.isMemo=H,nt.isPortal=G,nt.isProfiler=X,nt.isStrictMode=z,nt.isSuspense=R,nt.isSuspenseList=W,nt.isValidElementType=E,nt.typeOf=h})()),nt}var Xy;function xD(){return Xy||(Xy=1,process.env.NODE_ENV==="production"?gs.exports=ED():gs.exports=AD()),gs.exports}var OD=xD();const Zy=jr(OD),ef={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",time:"TimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function _D(e){var t;let r=ae(e,"MergedWidget");if(!r){const i=((t=e.defaultProps)===null||t===void 0?void 0:t.options)||{};r=({options:a,...n})=>N.jsx(e,{options:{...i,...a},...n}),st(e,"MergedWidget",r)}return r}function Vr(e,t,r={}){const i=mr(e);if(typeof t=="function"||t&&Zy.isForwardRef(V.createElement(t))||Zy.isMemo(t))return _D(t);if(typeof t!="string")throw new Error(`Unsupported widget definition: ${typeof t} in schema: ${JSON.stringify(e)}`);if(t in r){const a=r[t];return Vr(e,a,r)}if(typeof i=="string"){if(!(i in ef))throw new Error(`No widget for type '${i}' in schema: ${JSON.stringify(e)}`);if(t in ef[i]){const a=r[ef[i][t]];return Vr(e,a,r)}}throw new Error(`No widget '${t}' for type '${i}' in schema: ${JSON.stringify(e)}`)}function Qy(e){let t=0;for(let r=0;r<e.length;r++){const i=e.charCodeAt(r);t=(t<<5)-t+i,t&=t}return t.toString(16)}function ev(e){const t=new Set;return JSON.stringify(e,(r,i)=>(t.add(r),i)),JSON.stringify(e,Array.from(t).sort())}function hr(e){return Qy(ev(e))}function PD(e){return Qy(ev(e))}function ID(e,t,r={}){try{return Vr(e,t,r),!0}catch(i){const a=i;if(a.message&&(a.message.startsWith("No widget")||a.message.startsWith("Unsupported widget")))return!1;throw i}}function si(e,t){return`${bn(e)?e:e[tt]}__${t}`}function xn(e){return si(e,"description")}function tf(e){return si(e,"error")}function rf(e){return si(e,"examples")}function nf(e){return si(e,"help")}function ys(e){return si(e,"title")}function xr(e,t=!1){const r=t?` ${rf(e)}`:"";return`${tf(e)} ${xn(e)} ${nf(e)}${r}`}function vs(e,t){return`${e}-${t}`}function rr(e,t){return si(e,t)}function af(e,t){return si(e,`optional${t}`)}function Ji(e){return!Ki(e)&&(!$e(e)||Array.isArray(e)||!kt(e))}function TD(e,t){const{rootSchema:r,schemaUtils:i}=e;if(Ue(t,r))return!0;if(at in r){const a=i.retrieveSchema(r);return Ue(t,a)}return!1}function ND(e,t,r){return t?r:e}function FD(e){return e?new Date(e).toJSON():void 0}function DD(e,t,r,i=!1){!i&&Array.isArray(r)&&t.default!==void 0&&$y(t.default,r,i)===void 0&&console.error(`The schema default value "${t.default}" is not one of the values in the enum options for "${e}"`)}function of(e,t,r){const i=[yO];return Re(e,wh)&&i.unshift(wh),ae(e,[...i,t],r)}function MD(e,t){if(!Array.isArray(t))return e;const r=c=>c.reduce((f,m)=>(f[m]=!0,f),{}),i=c=>c.length>1?`properties '${c.join("', '")}'`:`property '${c[0]}'`,a=r(e),n=t.filter(c=>c==="*"||a[c]),o=r(n),s=e.filter(c=>!o[c]),l=n.indexOf("*");if(l===-1){if(s.length)throw new Error(`uiSchema order list does not contain ${i(s)}`);return n}if(l!==n.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");const u=[...n];return u.splice(l,1,...s),u}function sf(e,t=!0){if(!e)return{year:-1,month:-1,day:-1,hour:t?-1:0,minute:t?-1:0,second:t?-1:0};const r=new Date(e);if(Number.isNaN(r.getTime()))throw new Error(`Unable to parse date ${e}`);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:t?r.getUTCHours():0,minute:t?r.getUTCMinutes():0,second:t?r.getUTCSeconds():0}}function jD(e,t,r){var i,a;const n=(i=e[Ho])!==null&&i!==void 0?i:e[at],o=r.uiSchemaDefinitions,s=n&&o?o[n]:void 0;let l;if(s?!t||kt(t)?l={...s}:l=Sn(s,t):l=t||{},o){let u=e;if(n&&e[at]&&!e[Ho])try{u=Ka(n,r.rootSchema)}catch(c){return console.warn(`could not resolve $ref in resolveUiSchema:
|
|
76
|
+
`,c),l}for(const c of[xe,je]){const f=u[c];if(Array.isArray(f)&&f.length>0){const m=l[c],d=Array.isArray(m)?[...m]:[];let p=!1;for(let k=0;k<f.length;k++){const v=f[k],g=(a=v==null?void 0:v[Ho])!==null&&a!==void 0?a:v==null?void 0:v[at];if(g&&g in o){const b=d[k]||{};d[k]=Sn(o[g],b),p=!0}}p&&(l[c]=d)}}}return l}function to(e){var t,r,i;if(e.const||((t=e.enum)===null||t===void 0?void 0:t.length)===1&&e.enum[0]===!0)return!0;if(((r=e.anyOf)===null||r===void 0?void 0:r.length)===1)return to(e.anyOf[0]);if(((i=e.oneOf)===null||i===void 0?void 0:i.length)===1)return to(e.oneOf[0]);if(e.allOf){const a=n=>to(n);return e.allOf.some(a)}return!1}function LD({hideLabel:e,id:t,multiple:r,options:i,registry:a,uiSchema:n,value:o}){var s,l;if(r||e)return null;const{label:u=!0}=me(n,a.globalUiOptions);if(!u)return null;const c=(s=i.enumOptions)===null||s===void 0?void 0:s.find(({value:d})=>Gi(d,o)),f=(l=c==null?void 0:c.schema)===null||l===void 0?void 0:l.description;if(!f)return null;const m=ge("DescriptionFieldTemplate",a,i);return N.jsx(m,{id:xn(t),description:f,schema:c.schema,uiSchema:n,registry:a})}function lf(e,t){if(Object.is(e,t))return!0;if(e==null||t==null||typeof e!="object"||typeof t!="object")return!1;const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let a=0;a<r.length;a+=1){const n=r[a];if(!Object.hasOwn(t,n)||!Object.is(e[n],t[n]))return!1}return!0}function qD(e,t,r,i="customDeep"){if(i==="always")return!0;if(i==="shallow"){const{props:o,state:s}=e;return!lf(o,t)||!lf(s,r)}const{props:a,state:n}=e;return!Ue(a,t)||!Ue(n,r)}function tv(e){const t=ty(e.map(r=>$e(r)?mr(r):void 0).flat().filter(r=>r!==void 0));return t.length===1?t[0]:t}function ro(e,t,r,i){const{enableOptionalDataFieldForType:a=[]}=me(i,e.globalUiOptions);let n;return je in t&&Array.isArray(t[je])?n=tv(t[je]):xe in t&&Array.isArray(t[xe])?n=tv(t[xe]):n=mr(t),!TD(e,t)&&!r&&!!n&&!Array.isArray(n)&&!!a.find(o=>o===n)}function rv(e,t=!0){const{year:r,month:i,day:a,hour:n=0,minute:o=0,second:s=0}=e,l=Date.UTC(r,i-1,a,n,o,s),u=new Date(l).toJSON();return t?u:u.slice(0,10)}function uf(e,t=[]){if(!e)return[];let r=[];return Dt in e&&(r=r.concat(e[Dt].map(i=>{const a=`.${t.join(".")}`;return{property:a,message:i,stack:`${a} ${i}`}}))),Object.keys(e).reduce((i,a)=>{if(a!==Dt){const n=e[a];if(yn(n))return i.concat(uf(n,[...t,a]))}return i},r)}function nv(e){return Tt(e)?Li(e,vn):Na(e)?[e]:Cc(Th(lc(e)))}function RD(e){const t=new Vy;return e.length&&e.forEach(r=>{const{property:i,message:a}=r,n=i==="."?[]:nv(i);n.length>0&&n[0]===""&&n.splice(0,1),a&&t.addErrors(a,n)}),t.ErrorSchema}function Or(e,t,r,i){const a=Array.isArray(r)?r:r==null?void 0:r.path,n=e===""?[]:[e],o=a?a.concat(...n):n,s=[t.idPrefix,...o].join(t.idSeparator);let l;return t.nameGenerator&&o.length>0&&(l=t.nameGenerator(o,t.idPrefix,i)),{path:o,[tt]:s,...l!==void 0&&{name:l}}}function iv(e){return Object.keys(e).reduce((t,r)=>{if(r==="addError")return t;const i=e[r];return yn(i)?{...t,[r]:iv(i)}:{...t,[r]:i}},{})}function zD(e){return Object.values(e).every(t=>t!==-1)}function $D(e){const{className:t="form-control",type:r,range:i,value:a,select:n,rootId:o,name:s,disabled:l,readonly:u,autofocus:c,registry:f,onBlur:m,onFocus:d}=e,p=`${o}_${r}`,{SelectWidget:k}=f.widgets,v=V.useCallback(g=>n(r,g),[n,r]);return N.jsx(k,{schema:{type:"integer"},id:p,name:s,className:t,options:{enumOptions:Ry(i[0],i[1])},placeholder:r,value:a,disabled:l,readonly:u,autofocus:c,onChange:v,onBlur:m,onFocus:d,registry:f,label:"","aria-describedby":xr(o)})}function UD(e){const{time:t=!1,disabled:r=!1,readonly:i=!1,options:a,onChange:n,value:o}=e,[s,l]=V.useState(sf(o,t));V.useEffect(()=>{l(sf(o,t))},[t,o]);const u=V.useCallback((d,p)=>{const k={...s,[d]:typeof p>"u"?-1:p};zD(k)?n(rv(k,t)):l(k)},[s,n,t]),c=V.useCallback(d=>{d.preventDefault(),!(r||i)&&n(void 0)},[r,i,n]),f=V.useCallback(d=>{if(d.preventDefault(),r||i)return;const p=sf(new Date().toJSON(),t);n(rv(p,t))},[r,i,t,n]);return{elements:V.useMemo(()=>kD(s,t,a.yearsRange,a.format),[s,t,a.yearsRange,a.format]),handleChange:u,handleClear:c,handleSetNow:f}}function Yi(e){const t=V.useRef(e);return Ue(e,t.current)||(t.current=e),t.current}function BD(e,t){return e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}async function VD(e){const{name:t,size:r,type:i}=e;return new Promise((a,n)=>{const o=new window.FileReader;o.onerror=n,o.onload=s=>{var l;typeof((l=s.target)===null||l===void 0?void 0:l.result)=="string"?a({dataURL:BD(s.target.result,t),name:t,size:r,type:i}):a({dataURL:null,name:t,size:r,type:i})},o.readAsDataURL(e)})}async function HD(e){return Promise.all(Array.from(e).map(VD))}function av(e){return e.reduce((t,r)=>{if(!r)return t;try{const{blob:i,name:a}=uD(r);return[...t,{dataURL:r,name:a,size:i.size,type:i.type}]}catch{return t}},[])}function KD(e,t,r=!1){const i=V.useMemo(()=>r&&e?Array.isArray(e)?e:[e]:[],[e,r]),a=V.useMemo(()=>Array.isArray(e)?av(e):av([e||""]),[e]),n=V.useCallback(async s=>{const u=(await HD(s)).map(c=>c.dataURL||null);t(r?i.concat(...u):u[0])},[i,r,t]),o=V.useCallback(s=>{if(r){const l=i.filter((u,c)=>c!==s);t(l)}else t(void 0)},[i,r,t]);return{filesInfo:a,handleChange:n,handleRemove:o}}function WD(e){if(!e)return"";const t=new Date(e),r=An(t.getFullYear(),4),i=An(t.getMonth()+1,2),a=An(t.getDate(),2),n=An(t.getHours(),2),o=An(t.getMinutes(),2),s=An(t.getSeconds(),2),l=An(t.getMilliseconds(),3);return`${r}-${i}-${a}T${n}:${o}:${s}.${l}`}function no(e,t,r=!1){if(!t)return e;const{errors:i,errorSchema:a}=e;let n=uf(t),o=t;return kt(a)||(o=Sn(a,t,r?"preventDuplicates":!0),n=[...i].concat(n)),{errorSchema:o,errors:n}}function GD(e){const t=e;for(const r in t)if(Object.hasOwn(t,r)){const i=t[r];r===at&&typeof i=="string"&&i.startsWith("#")?t[r]=Ch+i:t[r]=cf(i)}return e}function JD(e){return e.map(t=>cf(t))}function cf(e){return Array.isArray(e)?JD([...e]):$e(e)?GD({...e}):e}var Oe;(function(e){e.ArrayItemTitle="Item",e.MissingItems="Missing items definition",e.EmptyArray="No items yet. Use the button below to add some.",e.YesLabel="Yes",e.NoLabel="No",e.CloseLabel="Close",e.ErrorsLabel="Errors",e.NewStringDefault="New Value",e.AddButton="Add",e.AddItemButton="Add Item",e.CopyButton="Copy",e.ExpandButton="Expand Cycle",e.MoveDownButton="Move down",e.MoveUpButton="Move up",e.RemoveButton="Remove",e.NowLabel="Now",e.ClearLabel="Clear",e.AriaDateLabel="Select a date",e.PreviewLabel="Preview",e.DecrementAriaLabel="Decrease value by 1",e.IncrementAriaLabel="Increase value by 1",e.OptionalObjectAdd="Add data for optional field",e.OptionalObjectRemove="Remove data for optional field",e.OptionalObjectEmptyMsg="No data for optional field",e.Type="Type",e.Value="Value",e.ClearButton="clear input",e.UnknownFieldType="Unknown field type %1",e.OptionPrefix="Option %1",e.TitleOptionPrefix="%1 option %2",e.KeyLabel="%1 Key",e.DeprecatedLabel="%1 (deprecated)",e.CycleDetected='Circular reference ($ref cycle) detected for field "%1". You may choose to expand to the next cycle break',e.InvalidObjectField='Invalid "%1" object field configuration: _%2_.',e.UnsupportedField="Unsupported field schema.",e.UnsupportedFieldWithId="Unsupported field schema for field `%1`.",e.UnsupportedFieldWithReason="Unsupported field schema: _%1_.",e.UnsupportedFieldWithIdAndReason="Unsupported field schema for field `%1`: _%2_.",e.FilesInfo="**%1** (%2, %3 bytes)"})(Oe||(Oe={}));function YD(e,t){var r=Tt(e)?kc:xy;return r(e,Rg(t))}function XD(e,t){return e==null?!0:Pg(e,t)}function ff(){return Gy("rjsf-array-item-")}function ov(e){return Array.isArray(e)?e.map(t=>({key:ff(),item:t})):[]}function sv(e){return Array.isArray(e)?e.map(t=>t.item):[]}function ZD(e){return Array.isArray(e.type)?!e.type.includes("null"):e.type!=="null"}function lv(e,t,r,i){let{addable:a}=me(i,e.globalUiOptions);return a!==!1&&(t.maxItems!==void 0?a=r.length<t.maxItems:a=!0),a}function uv(e,t,r,i){if(typeof e.items=="function")try{return e.items(t,r,i)}catch(a){console.error(`Error executing dynamic uiSchema.items function for item at index ${r}:`,a);return}else return e.items}function QD(e,t){const{schemaUtils:r,globalFormOptions:i}=e;let a=t.items;return i.useFallbackUiForUnsupportedType&&!a?a={}:Gc(t)&&mO(t)&&(a=t.additionalItems),r.getDefaultFormState(a)}function eM(e){const{schema:t,fieldPathId:r,uiSchema:i,formData:a=[],disabled:n=!1,readonly:o=!1,autofocus:s=!1,required:l=!1,placeholder:u,onBlur:c,onFocus:f,registry:m,rawErrors:d,name:p,onSelectChange:k}=e,{widgets:v,schemaUtils:g,globalFormOptions:b,globalUiOptions:w}=m,E=g.retrieveSchema(t.items,a),h=(i==null?void 0:i.items)??i,y=oi(E,h),{widget:C="select",title:x,..._}=me(i,w),S=Vr(t,C,v),A=x??t.title??p,O=g.getDisplayLabel(t,i,w),F=Yi(Or("",b,r,!0));return N.jsx(S,{id:F[tt],name:p,multiple:!0,onChange:k,onBlur:c,onFocus:f,options:{..._,enumOptions:y},schema:t,uiSchema:i,registry:m,value:a,disabled:n,readonly:o,required:l,label:A,hideLabel:!O,placeholder:u,autofocus:s,rawErrors:d,htmlName:F.name})}function tM(e){const{schema:t,fieldPathId:r,uiSchema:i,disabled:a=!1,readonly:n=!1,autofocus:o=!1,required:s=!1,hideError:l,placeholder:u,onBlur:c,onFocus:f,formData:m=[],registry:d,rawErrors:p,name:k,onSelectChange:v}=e,{widgets:g,schemaUtils:b,globalFormOptions:w,globalUiOptions:E}=d,{widget:h,title:y,...C}=me(i,E),x=Vr(t,h,g),_=y??t.title??k,S=b.getDisplayLabel(t,i,E),A=Yi(Or("",w,r,!0));return N.jsx(x,{id:A[tt],name:k,multiple:!0,onChange:v,onBlur:c,onFocus:f,options:C,schema:t,uiSchema:i,registry:d,value:m,disabled:a,readonly:n,hideError:l,required:s,label:_,hideLabel:!S,placeholder:u,autofocus:o,rawErrors:p,htmlName:A.name})}function rM(e){const{schema:t,uiSchema:r,fieldPathId:i,name:a,disabled:n=!1,readonly:o=!1,autofocus:s=!1,required:l=!1,onBlur:u,onFocus:c,registry:f,formData:m=[],rawErrors:d,onSelectChange:p}=e,{widgets:k,schemaUtils:v,globalFormOptions:g,globalUiOptions:b}=f,{widget:w="files",title:E,...h}=me(r,b),y=Vr(t,w,k),C=E??t.title??a,x=v.getDisplayLabel(t,r,b),_=Yi(Or("",g,i,!0));return N.jsx(y,{options:h,id:_[tt],name:a,multiple:!0,onChange:p,onBlur:u,onFocus:c,schema:t,uiSchema:r,value:m,disabled:n,readonly:o,required:l,registry:f,autofocus:s,rawErrors:d,label:C,hideLabel:!x,htmlName:_.name})}function nM(e){const{itemKey:t,index:r,name:i,disabled:a,hideError:n,readonly:o,registry:s,uiOptions:l,parentUiSchema:u,canAdd:c,canRemove:f=!0,canMoveUp:m,canMoveDown:d,rawItemSchema:p,itemData:k,itemUiSchema:v,parentFieldPathId:g,itemErrorSchema:b,autofocus:w,onBlur:E,onFocus:h,onChange:y,rawErrors:C,totalItems:x,title:_,handleAddItem:S,handleCopyItem:A,handleRemoveItem:O,handleReorderItems:F}=e,{schemaUtils:T,fields:{ArraySchemaField:M,SchemaField:q},globalUiOptions:J,globalFormOptions:Y}=s,Q=V.useMemo(()=>T.retrieveSchema(p,k),[T,p,k]),P=V.useMemo(()=>Or(r,Y,g),[r,Y,g]),j=M||q,B=ge("ArrayFieldItemTemplate",s,l),I=T.getDisplayLabel(Q,v,J),{description:D}=me(v),L=!!D||!!Q.description,{orderable:U=!0,removable:$=!0,copyable:H=!1}=l,G={moveUp:U&&m,moveDown:U&&d,copy:H&&c,remove:$&&f,toolbar:!1};G.toolbar=Object.keys(G).some(re=>G[re]);const X=V.useCallback(re=>{S(re,r+1)},[S,r]),z=V.useCallback(re=>{A(re,r)},[A,r]),R=V.useCallback(re=>{O(re,r)},[O,r]),W=V.useCallback(re=>{F(re,r,r-1)},[F,r]),K=V.useCallback(re=>{F(re,r,r+1)},[F,r]),ie={children:N.jsx(j,{name:i,title:_,index:r,schema:Q,uiSchema:v,formData:k,errorSchema:b,fieldPathId:P,required:ZD(Q),onChange:y,onBlur:E,onFocus:h,registry:s,disabled:a,readonly:o,hideError:n,autofocus:w,rawErrors:C}),buttonsProps:{fieldPathId:P,disabled:a,readonly:o,canAdd:c,hasCopy:G.copy,hasMoveUp:G.moveUp,hasMoveDown:G.moveDown,hasRemove:G.remove,index:r,totalItems:x,onAddItem:X,onCopyItem:z,onRemoveItem:R,onMoveUpItem:W,onMoveDownItem:K,registry:s,schema:Q,uiSchema:v},itemKey:t,className:"rjsf-array-item",disabled:a,hasToolbar:G.toolbar,index:r,totalItems:x,readonly:o,registry:s,schema:Q,uiSchema:v,parentUiSchema:u,displayLabel:I,hasDescription:L};return N.jsx(B,{...ie})}const cv=V.memo(nM);function iM(e){const{schema:t,uiSchema:r={},errorSchema:i,fieldPathId:a,formData:n,name:o,title:s,disabled:l=!1,readonly:u=!1,autofocus:c=!1,required:f=!1,hideError:m=!1,registry:d,onBlur:p,onFocus:k,rawErrors:v,onChange:g,keyedFormData:b,handleAddItem:w,handleCopyItem:E,handleRemoveItem:h,handleReorderItems:y}=e,C=t.title||s||o,{schemaUtils:x,fields:_,formContext:S,globalUiOptions:A}=d,{OptionalDataControlsField:O}=_,F=V.useMemo(()=>me(r,A),[r,A]),T=V.useMemo(()=>$e(t.items)?t.items:{},[t.items]),M=V.useMemo(()=>x.retrieveSchema(T),[x,T]),q=V.useMemo(()=>sv(b),[b]),J=ro(d,t,f,r),Y=Ji(n),Q=V.useMemo(()=>lv(d,t,q,r)&&(!J||Y),[d,t,q,r,J,Y]),P=Y?b:[],j=J?" rjsf-optional-array-field":"",B=e.childFieldPathId??a,I=J?N.jsx(O,{...e,fieldPathId:B}):void 0,D={canAdd:Q,items:P.map((U,$)=>{const{key:H,item:G}=U,X=G,z=i?i[$]:void 0,R=uv(r,G,$,S),W={itemKey:H,index:$,name:o&&`${o}-${$}`,registry:d,uiOptions:F,parentUiSchema:r,hideError:m,readonly:u,disabled:l,required:f,title:C?`${C}-${$+1}`:void 0,canAdd:Q,canMoveUp:$>0,canMoveDown:$<q.length-1,rawItemSchema:T,parentFieldPathId:B,itemErrorSchema:z,itemData:X,itemUiSchema:R,autofocus:c&&$===0,onBlur:p,onFocus:k,rawErrors:v,totalItems:b.length,handleAddItem:w,handleCopyItem:E,handleRemoveItem:h,handleReorderItems:y,onChange:g};return N.jsx(cv,{...W},H)}),className:`rjsf-field rjsf-field-array rjsf-field-array-of-${M.type}${j}`,disabled:l,fieldPathId:a,uiSchema:r,onAddClick:w,readonly:u,required:f,schema:t,title:C,formData:q,rawErrors:v,registry:d,optionalDataControl:I},L=ge("ArrayFieldTemplate",d,F);return N.jsx(L,{...D})}function aM(e){const{schema:t,uiSchema:r={},formData:i,errorSchema:a,fieldPathId:n,name:o,title:s,disabled:l=!1,readonly:u=!1,autofocus:c=!1,required:f=!1,hideError:m=!1,registry:d,onBlur:p,onFocus:k,rawErrors:v,keyedFormData:g,onChange:b,handleAddItem:w,handleCopyItem:E,handleRemoveItem:h,handleReorderItems:y}=e;let{formData:C=[]}=e;const x=t.title||s||o,{fields:_,formContext:S,globalUiOptions:A}=d,O=V.useMemo(()=>me(r,A),[r,A]),{OptionalDataControlsField:F}=_,T=ro(d,t,f,r),M=Ji(i),q=V.useMemo(()=>$e(t.items)?t.items:[],[t.items]),J=$e(t.additionalItems),Y=e.childFieldPathId??n;C.length<q.length&&(C=C.concat(new Array(q.length-C.length)));const Q=M?g:[],P=T?" rjsf-optional-array-field":"",j=T?N.jsx(F,{...e,fieldPathId:Y}):void 0,B=lv(d,t,C,r)&&J&&(!T||M),I={canAdd:B,className:`rjsf-field rjsf-field-array rjsf-field-array-fixed-items${P}`,disabled:l,fieldPathId:n,formData:i,items:Q.map((L,U)=>{const{key:$,item:H}=L,G=H,X=U>=q.length,z=(X&&$e(t.additionalItems)?t.additionalItems:q[U])||{};let R;X?R=r.additionalItems:Array.isArray(r.items)?R=r.items[U]:R=uv(r,H,U,S);const W=a?a[U]:void 0,K={index:U,itemKey:$,name:o&&`${o}-${U}`,registry:d,uiOptions:O,parentUiSchema:r,hideError:m,readonly:u,disabled:l,required:f,title:x?`${x}-${U+1}`:void 0,canAdd:B,canRemove:X,canMoveUp:U>=q.length+1,canMoveDown:X&&U<C.length-1,rawItemSchema:z,itemData:G,itemUiSchema:R,parentFieldPathId:Y,itemErrorSchema:W,autofocus:c&&U===0,onBlur:p,onFocus:k,rawErrors:v,totalItems:g.length,onChange:b,handleAddItem:w,handleCopyItem:E,handleRemoveItem:h,handleReorderItems:y};return N.jsx(cv,{...K},$)}),onAddClick:w,readonly:u,required:f,registry:d,schema:t,uiSchema:r,title:x,errorSchema:a,rawErrors:v,optionalDataControl:j},D=ge("ArrayFieldTemplate",d,O);return N.jsx(D,{...I})}function oM(e=[]){const t=V.useMemo(()=>hr(e),[e]),[r,i]=V.useState(()=>({formDataHash:t,keyedFormData:ov(e)}));let{keyedFormData:a,formDataHash:n}=r;if(t!==n){const s=Array.isArray(e)?e:[],l=a||[];a=s.length===l.length?l.map((u,c)=>({key:u.key,item:s[c]})):ov(s),n=t,i({formDataHash:n,keyedFormData:a})}const o=V.useCallback(s=>{const l=sv(s),u=hr(l);return i({formDataHash:u,keyedFormData:s}),l},[]);return{keyedFormData:a,updateKeyedFormData:o}}function sM(e){const{schema:t,uiSchema:r,errorSchema:i,fieldPathId:a,registry:n,formData:o,onChange:s}=e,{globalFormOptions:l,schemaUtils:u,translateString:c}=n,{keyedFormData:f,updateKeyedFormData:m}=oM(o),d=V.useRef(f);d.current=f;const p=V.useRef(i);p.current=i;const k=e.childFieldPathId??a,v=V.useCallback((x,_)=>{x&&x.preventDefault();let S;if(p.current){S={};for(const F of Object.keys(p.current)){const T=parseInt(F,10);_===void 0||T<_?st(S,[T],p.current[T]):T>=_&&st(S,[T+1],p.current[T])}}const A={key:ff(),item:QD(n,t)},O=[...d.current];_!==void 0?O.splice(_,0,A):O.push(A),s(m(O),k.path,S)},[n,t,s,m,k]),g=V.useCallback((x,_)=>{x&&x.preventDefault();let S;if(p.current){S={};for(const F of Object.keys(p.current)){const T=parseInt(F,10);T<=_?st(S,[T],p.current[T]):T>_&&st(S,[T+1],p.current[T])}}const A={key:ff(),item:hs(d.current[_].item)},O=[...d.current];_!==void 0?O.splice(_+1,0,A):O.push(A),s(m(O),k.path,S)},[s,m,k]),b=V.useCallback((x,_)=>{x&&x.preventDefault();let S;if(p.current){S={};for(const O of Object.keys(p.current)){const F=parseInt(O,10);F<_?st(S,[F],p.current[F]):F>_&&st(S,[F-1],p.current[F])}}const A=d.current.filter((O,F)=>F!==_);s(m(A),k.path,S)},[s,m,k]),w=V.useCallback((x,_,S)=>{x&&(x.preventDefault(),x.currentTarget.blur());let A;if(p.current){A={};for(const T of Object.keys(p.current)){const M=parseInt(T,10);M===_?st(A,[S],p.current[_]):M===S?st(A,[_],p.current[S]):st(A,[T],p.current[M])}}function O(){const T=d.current.slice();return T.splice(_,1),T.splice(S,0,d.current[_]),T}const F=O();s(m(F),k.path,A)},[s,m,k]),E=V.useCallback((x,_,S,A)=>{const O=typeof _.at(-1)=="number";s(O&&x===void 0?null:x,_,S,A)},[s]),h=V.useCallback(x=>{s(x,k.path,void 0,k==null?void 0:k[tt])},[s,k]),y={...e,formData:o,fieldPathId:k,onSelectChange:h},C={...e,handleAddItem:v,handleCopyItem:g,handleRemoveItem:b,handleReorderItems:w,keyedFormData:f,onChange:E};if(!(ji in t)){if(!l.useFallbackUiForUnsupportedType){const _=me(r),S=ge("UnsupportedFieldTemplate",n,_);return N.jsx(S,{schema:t,fieldPathId:a,reason:c(Oe.MissingItems),registry:n})}const x={...t,[ji]:{type:void 0}};y.schema=x,C.schema=x}return u.isMultiSelect(y.schema)?N.jsx(eM,{...y}):Fy(r)?N.jsx(tM,{...y}):Gc(y.schema)?N.jsx(aM,{...C}):u.isFilesArray(y.schema,r)?N.jsx(rM,{...y}):N.jsx(iM,{...C})}function lM(e){const{schema:t,name:r,uiSchema:i,fieldPathId:a,formData:n,registry:o,required:s,disabled:l,readonly:u,hideError:c,autofocus:f,title:m,onChange:d,onFocus:p,onBlur:k,rawErrors:v}=e,{title:g}=t,{widgets:b,translateString:w,globalUiOptions:E}=o,{widget:h="checkbox",title:y,label:C=!0,enumNames:x,..._}=me(i,E),S=Vr(t,h,b),A=w(Oe.YesLabel),O=w(Oe.NoLabel);let F;const T=y??g??m??r;if(Array.isArray(t.oneOf))F=oi({oneOf:t.oneOf.map(q=>{if($e(q))return{...q,title:q.title||(q.const===!0?A:O)}}).filter(q=>q)},i);else{const q=t.enum??[!0,!1];!x&&q.length===2&&q.every(J=>typeof J=="boolean")?F=[{value:q[0],label:q[0]?A:O},{value:q[1],label:q[1]?A:O}]:F=oi({enum:q},i)}const M=V.useCallback((q,J,Y)=>d(q,a.path,J,Y),[d,a]);return N.jsx(S,{options:{..._,enumOptions:F},schema:t,uiSchema:i,id:a.$id,name:r,onChange:M,onFocus:p,onBlur:k,label:T,hideLabel:!C,value:n,required:s,disabled:l,readonly:u,hideError:c,registry:o,autofocus:f,rawErrors:v,htmlName:a.name})}function uM(e){const[t,r]=V.useState(!1),{name:i,registry:a,schema:n,uiSchema:o,fieldPathId:s}=e,{globalUiOptions:l}=a,u=me(o,l),c=ge("CyclicSchemaExpandTemplate",a,u);if(!t)return N.jsx(c,{registry:a,schema:n,uiSchema:o,name:i,fieldPathId:s,onExpand:()=>r(!0)});const{fields:f}=a,{SchemaField:m}=f;return N.jsx(m,{...e,schema:{...n,[ec]:!1}})}function cM(e){return{type:"string",enum:["string","number","boolean","object","array"],default:"string",title:e}}function fM(e){const t=typeof e;return t==="string"||t==="number"||t==="boolean"?t:t==="object"?Array.isArray(e)?"array":"object":"string"}function dM(e,t){switch(t){case"string":return String(e);case"number":{const r=Number(e);return Number.isNaN(r)?0:r}case"boolean":return!!e;default:return e}}function mM(e){const{id:t,formData:r,displayLabel:i=!0,schema:a,name:n,uiSchema:o,required:s,disabled:l=!1,readonly:u=!1,onBlur:c,onFocus:f,registry:m,fieldPathId:d,onChange:p,errorSchema:k}=e,{translateString:v,fields:g,globalFormOptions:b}=m,[w,E]=V.useState(fM(r)),h=me(o),y=Yi(Or("__internal_type_selector",b,d)),C=v(Oe.Type),x=V.useMemo(()=>cM(C),[C]),_=O=>{O!=null&&(E(O),p(dM(r,O),d.path,k,t))};if(!b.useFallbackUiForUnsupportedType){const{reason:O=v(Oe.UnknownFieldType,[String(a.type)])}=e,F=ge("UnsupportedFieldTemplate",m,h);return N.jsx(F,{schema:a,fieldPathId:d,reason:O,registry:m})}const S=ge("FallbackFieldTemplate",m,h),{SchemaField:A}=g;return N.jsx(S,{schema:a,registry:m,typeSelector:N.jsx(A,{fieldPathId:y,name:`${n}__fallback_type`,schema:x,formData:w,onChange:_,onBlur:c,onFocus:f,registry:m,hideLabel:!i,disabled:l,readonly:u,required:s},r?hr(r):"__empty__"),schemaField:N.jsx(A,{...e,schema:{type:w,title:v(Oe.Value),...w==="object"&&{additionalProperties:!0}}})})}function pM(e,t){return Li(t,function(r){return e[r]})}function hM(e){return e==null?[]:pM(e,Er(e))}var gM=Math.max;function yM(e,t,r,i){e=ti(e)?e:hM(e),r=r?Ug(r):0;var a=e.length;return r<0&&(r=gM(a+r,0)),bn(e)?r<=a&&e.indexOf(t,r)>-1:!!a&&Qg(e,t,r)>-1}var vM=Math.min;function bM(e,t,r){for(var i=Rc,a=e[0].length,n=e.length,o=n,s=Array(n),l=1/0,u=[];o--;){var c=e[o];l=vM(c.length,l),s[o]=a>=120&&c.length>=120?new ni(o&&c):void 0}c=e[0];var f=-1,m=s[0];e:for(;++f<a&&u.length<l;){var d=c[f],p=d;if(d=d!==0?d:0,!(m?Ga(m,p):i(u,p))){for(o=n;--o;){var k=s[o];if(!(k?Ga(k,p):i(e[o],p)))continue e}m&&m.push(p),u.push(d)}}return u}function kM(e){return Wa(e)?e:[]}var fv=as(function(e){var t=Li(e,kM);return t.length&&t[0]===e[0]?bM(t):[]});function wM(e,t){return ss(e,t)}function dv(e){return e===void 0}var Hr;(function(e){e.ROW="ui:row",e.COLUMN="ui:col",e.COLUMNS="ui:columns",e.CONDITION="ui:condition"})(Hr||(Hr={}));var io;(function(e){e.ALL="all",e.SOME="some",e.NONE="none"})(io||(io={}));const SM=/^\$lookup=(.+)/,df="layoutGrid";function mv(e,t){return e??t}function CM(e){return/^\d+?$/.test(e)}const On=Qc();function EM(e,t,r,i,a){const n=ae(r,[nc],{}),o=ae(r,e),s={...ae(o,[gn],{}),...t,...n},l={...o};kt(s)||st(l,[gn],s),kt(n)||st(l,[nc],n);let{readonly:u}=me(l);return(a===!0||dv(u)&&i===!0)&&(u=!0,Re(s,Qu)?st(l,[gn,Qu],!0):st(l,`ui:${Qu}`,!0)),{fieldUiSchema:l,uiReadonly:u}}function AM(e,t,r="$0m3tH1nG Un3xP3cT3d"){const i=Pc([t]).sort(),a=Pc([r]).sort();switch(e){case io.ALL:return wM(i,a);case io.SOME:return fv(i,a).length>0;case io.NONE:return fv(i,a).length===0;default:return!1}}function bs(e,t,r){let i={},a=e[t];if(yn(a)){const{children:n,className:o,...s}=a;if(a=n,o){const u=o.split(" ").map(c=>of(r,c,c)).join(" ");i={...s,className:u}}else i=s}if(!Array.isArray(a))throw new TypeError(`Expected array for "${t}" in ${JSON.stringify(e)}`);return{children:a,gridProps:i}}function pv(e,t,r){let i,a=t;if(CM(r)&&e&&(e==null?void 0:e.type)==="array"&&Re(e,ji)){const n=Number(r),o=e[ji];Array.isArray(o)?n>o.length?i=_g(o):i=o[n]:i=o,a={[tt]:t[tt],path:[...t.path.slice(0,t.path.length-1),n]}}return{rawSchema:i,fieldPathId:a}}function xM(e,t,r,i,a){const{schemaUtils:n,globalFormOptions:o}=e;let s=r,l=a;const u=t.split("."),c=u.pop();let f=n.retrieveSchema(s,i),m=i,d=f.readOnly;u.forEach(v=>{if(l=Or(v,o,l),Re(f,ze))s=ae(f,[ze,v],{});else if(f&&(Re(f,xe)||Re(f,je))){const g=Re(f,xe)?xe:je,b=n.findSelectedOptionInXxxOf(f,v,g,m);s=ae(b,[ze,v],{})}else{const g=pv(f,l,v);s=g.rawSchema??{},l=g.fieldPathId}m=ae(m,v,{}),f=n.retrieveSchema(s,m),d=mv(f.readOnly,d)});let p,k=!1;if(kt(f)&&(f=void 0),f&&c){if(f&&(Re(f,xe)||Re(f,je))){const g=Re(f,xe)?xe:je;f=n.findSelectedOptionInXxxOf(f,c,g,m)}l=Or(c,o,l),k=f!==void 0&&Array.isArray(f.required)&&yM(f.required,c);const v=pv(f,l,c);if(v.rawSchema?(f=v.rawSchema,l=v.fieldPathId):(f=ae(f,[ze,c]),f=f&&n.retrieveSchema(f)),d=mv(f==null?void 0:f.readOnly,d),f&&(Re(f,xe)||Re(f,je))){const g=Re(f,xe)?xe:je,b=dr(f);p={options:f[g],hasDiscriminator:!!b}}}return{schema:f,isRequired:k,isReadonly:d,optionsInfo:p,fieldPathId:l}}function OM(e,t){let r=e;return bn(r)&&(r=of(t,r)),Fa(r)?r:null}function _M(e,t){let r,i=null,a={},n;if(bn(t)||dv(t))r=t??"";else{const{name:o="",render:s,...l}=t;r=o,a=l,kt(a)||YD(a,(u,c)=>{if(bn(u)){const f=SM.exec(u);if(Array.isArray(f)&&f.length>1){const m=f[1];a[c]=of(e,m,m)}}}),i=OM(s,e),!o&&i&&(n=N.jsx(i,{...l,"data-testid":On.uiComponent}))}return{name:r,UIComponent:i,uiProps:a,rendered:n}}function ks(e){const{childrenLayoutGridSchemaId:t,...r}=e,{registry:i,schema:a,formData:n}=r,{schemaUtils:o}=i,s=o.retrieveSchema(a,n);return t.map(l=>V.createElement(mf,{...r,key:`layoutGrid-${hr(l)}`,schema:s,layoutGridSchema:l}))}function PM(e){const{layoutGridSchema:t,...r}=e,{formData:i,registry:a}=r,{children:n,gridProps:o}=bs(t,Hr.CONDITION,a),{operator:s,field:l="",value:u}=o,c=ae(i,l,null);return AM(s,c,u)?N.jsx(ks,{...r,childrenLayoutGridSchemaId:n}):null}function IM(e){const{layoutGridSchema:t,...r}=e,{registry:i,uiSchema:a}=r,{children:n,gridProps:o}=bs(t,Hr.COLUMN,i),s=me(a),l=ge("GridTemplate",i,s);return N.jsx(l,{column:!0,"data-testid":On.col,...o,children:N.jsx(ks,{...r,childrenLayoutGridSchemaId:n})})}function TM(e){const{layoutGridSchema:t,...r}=e,{registry:i,uiSchema:a}=r,{children:n,gridProps:o}=bs(t,Hr.COLUMNS,i),s=me(a),l=ge("GridTemplate",i,s);return n.map(u=>N.jsx(l,{column:!0,"data-testid":On.col,...o,children:N.jsx(ks,{...r,childrenLayoutGridSchemaId:[u]})},`column-${hr(u)}`))}function NM(e){const{layoutGridSchema:t,...r}=e,{registry:i,uiSchema:a}=r,{children:n,gridProps:o}=bs(t,Hr.ROW,i),s=me(a),l=ge("GridTemplate",i,s);return N.jsx(l,{...o,"data-testid":On.row,children:N.jsx(ks,{...r,childrenLayoutGridSchemaId:n})})}function FM(e){const{gridSchema:t,schema:r,uiSchema:i,errorSchema:a,fieldPathId:n,onBlur:o,onFocus:s,formData:l,readonly:u,registry:c,layoutGridSchema:f,...m}=e,{onChange:d}=m,{fields:p}=c,{SchemaField:k,LayoutMultiSchemaField:v}=p,g=_M(c,t),{name:b,UIComponent:w,uiProps:E}=g,{schema:h,isRequired:y,isReadonly:C,optionsInfo:x,fieldPathId:_}=xM(c,b,r,l,n),S=Yi(_);if(g.rendered)return g.rendered;if(h){const A=x!=null&&x.hasDiscriminator?v:k,{fieldUiSchema:O,uiReadonly:F}=EM(b,E,i,C,u);return N.jsx(A,{"data-testid":x!=null&&x.hasDiscriminator?On.layoutMultiSchemaField:On.field,...m,name:b,required:y,readonly:F,schema:h,uiSchema:O,errorSchema:ae(a,b),fieldPathId:S,formData:ae(l,b),onChange:d,onBlur:o,onFocus:s,options:x==null?void 0:x.options,registry:c})}return w?N.jsx(w,{"data-testid":On.uiComponent,...m,name:b,required:y,formData:l,readOnly:!!C||u,errorSchema:a,uiSchema:i,schema:r,fieldPathId:n,onBlur:o,onFocus:s,registry:c,...E}):null}function mf(e){const{uiSchema:t}=e;let{layoutGridSchema:r}=e;const i=me(t);if(!r&&df in i&&$e(i[df])&&(r=i[df]),$e(r)){if(Hr.ROW in r)return N.jsx(NM,{...e,layoutGridSchema:r});if(Hr.COLUMN in r)return N.jsx(IM,{...e,layoutGridSchema:r});if(Hr.COLUMNS in r)return N.jsx(TM,{...e,layoutGridSchema:r});if(Hr.CONDITION in r)return N.jsx(PM,{...e,layoutGridSchema:r})}return N.jsx(FM,{...e,gridSchema:r})}mf.TEST_IDS=On;function DM(e){const{fieldPathId:t,title:r,schema:i,uiSchema:a,required:n,registry:o,name:s}=e,l=me(a,o.globalUiOptions),{title:u}=l,{title:c}=i,f=u||r||c||s;if(!f)return null;const m=ge("TitleFieldTemplate",o,l);return N.jsx(m,{id:ys(t),title:f,required:n,schema:i,uiSchema:a,registry:o})}function pf(e,t,r){const i="!@#!@$@#$!@$#";return e.map(({schema:n})=>n).find(n=>{const o=ae(n,[ze,t]);return ae(o,Yn,ae(o,Vt,i))===r})}function hv(e,t,r,i,a){const n=t.map(l=>r.retrieveSchema(l,a));let o=e;Re(e,xe)?o={...e,[xe]:n}:Re(e,je)&&(o={...e,[je]:n});const s=oi(o,i);if(!s)throw new Error(`No enumOptions were computed from the schema ${JSON.stringify(o)}`);return s}function MM(e){var R;const{name:t,baseType:r,disabled:i=!1,formData:a,fieldPathId:n,onBlur:o,onChange:s,options:l,onFocus:u,registry:c,uiSchema:f,schema:m,autofocus:d,readonly:p,required:k,errorSchema:v,hideError:g=!1}=e,{widgets:b,schemaUtils:w,globalUiOptions:E}=c,[h,y]=V.useState(hv(m,l,w,f,a)),C=ae(n,tt),x=dr(m),_=ge("FieldErrorTemplate",c,l),S=ge("FieldTemplate",c,l),A=hr(m),O=hr(l),F=f?hr(f):"",T=a?hr(a):"";V.useEffect(()=>{y(hv(m,l,w,f,a))},[A,O,w,F,T]);const{widget:M=x?"radio":"select",title:q="",placeholder:J="",optionsSchemaSelector:Y=x,hideError:Q,...P}=me(f);if(!Y)throw new Error("No selector field provided for the LayoutMultiSchemaField");const j=ae(a,Y);let B=ae((R=h[0])==null?void 0:R.schema,[ze,Y],{});const I=pf(h,Y,j);B=B!=null&&B.type?B:{...B,type:(I==null?void 0:I.type)||r};const D=Vr(B,M,b),L=Q===void 0?g:!!Q,U=ae(v,[Dt],[]),$=Ha(v,[Dt]),H=w.getDisplayLabel(m,f,E),G=W=>{if(i||p)return;const K=pf(h,Y,W),ie=pf(h,Y,j);let re=w.sanitizeDataForNewSchema(K,ie,a);re&&K&&(re=w.getDefaultFormState(K,re,"excludeObjectChildren")),re&&st(re,Y,W),s(re,n.path,void 0,C)},X={enumOptions:h,...P},z=!L&&U.length>0?N.jsx(_,{fieldPathId:n,schema:m,errors:U,registry:c}):void 0;return N.jsx(S,{fieldPathId:n,id:C,schema:m,label:(q||m.title)??"",disabled:i||Array.isArray(h)&&kt(h),uiSchema:f,required:k,readonly:!!p,registry:c,displayLabel:H,errors:z,onChange:s,onKeyRename:ls,onKeyRenameBlur:ls,onRemoveProperty:ls,children:N.jsx(D,{id:C,name:t,schema:m,label:(q||m.title)??"",disabled:i||Array.isArray(h)&&kt(h),uiSchema:f,autofocus:d,readonly:p,required:k,registry:c,multiple:!1,rawErrors:U,hideError:L,hideLabel:!H,errorSchema:$,placeholder:J,onChange:G,onBlur:o,onFocus:u,value:j,options:X,htmlName:n.name})})}function gv(e){const{name:t,disabled:r=!1,errorSchema:i={},formData:a,fieldPathId:n,onBlur:o,onChange:s,onFocus:l,options:u,readonly:c,registry:f,required:m=!1,schema:d,uiSchema:p}=e,{schemaUtils:k}=f,v=hr(a??null),g=V.useMemo(()=>u.map(re=>k.retrieveSchema(re,a)),[u,k,v]),[b,w]=V.useState(()=>{const re=dr(d);return k.getClosestMatchingOption(a,g,0,re)}),E=V.useRef(!1),h=V.useRef(a),y=V.useRef(n.$id);V.useEffect(()=>{const re=h.current,ue=y.current;if(h.current=a,y.current=n.$id,!Ue(a,re)&&n.$id===ue){if(E.current){E.current=!1;return}const ye=dr(d),Se=k.getClosestMatchingOption(a,g,b,ye);Se!==b&&w(Se)}});const C=`${n.$id}${d.oneOf?"__oneof_select":"__anyof_select"}`,x=V.useCallback(re=>{if(r||c)return;const ue=re!==void 0?parseInt(re,10):-1;if(ue===b)return;const ye=ue>=0?g[ue]:void 0,Se=b>=0?g[b]:void 0;let ke=k.sanitizeDataForNewSchema(ye,Se,a);ye&&(ke=k.getDefaultFormState(ye,ke,"excludeObjectChildren")),w(ue),E.current=!0,s(ke,n.path,void 0,C)},[b,g,r,c,k,a,n,s,C]),{widgets:_,fields:S,translateString:A,globalUiOptions:O}=f,{SchemaField:F}=S,T=ge("MultiSchemaFieldTemplate",f,O),M=ro(f,d,m,p),q=Ji(a),{widget:J="select",placeholder:Y,autofocus:Q,autocomplete:P,title:j=d.title,...B}=me(p,O),I=Vr({type:"number"},J,_),D=ae(i,Dt,[]),L=Ha(i,[Dt]),U=k.getDisplayLabel(d,p,O),$=b>=0&&g[b]||null;let H;if($){const{required:re,type:ue}=d,ye={};re&&(ye.required=re),ue!==void 0&&!("type"in $)&&(ye.type=ue),H=Object.keys(ye).length>0?an(ye,$):$}let G=[];xe in d&&p&&xe in p?Array.isArray(p[xe])?G=p[xe]:console.warn(`uiSchema.oneOf is not an array for "${j||t}"`):je in d&&p&&je in p&&(Array.isArray(p[je])?G=p[je]:console.warn(`uiSchema.anyOf is not an array for "${j||t}"`));let X=p;b>=0&&G.length>b&&(X=G[b]);const z=j?Oe.TitleOptionPrefix:Oe.OptionPrefix,R=j?[j]:[],W=g.map((re,ue)=>{const{title:ye=re.title}=me(G[ue]);return{label:ye||A(z,R.concat(String(ue+1))),value:ue}}),K=!M||q?N.jsx(I,{id:C,name:`${t}${d.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:x,onBlur:o,onFocus:l,disabled:r||kt(W),multiple:!1,rawErrors:D,errorSchema:L,value:b>=0?b:void 0,options:{enumOptions:W,...B},registry:f,placeholder:Y,autocomplete:P,autofocus:Q,label:j??t,hideLabel:!U,readonly:c}):void 0,ie=H&&H.type!=="null"&&N.jsx(F,{...e,schema:H,uiSchema:X})||null;return N.jsx(T,{schema:d,registry:f,uiSchema:p,selector:K,optionSchemaField:ie})}function jM(e){const{formData:t,onChange:r,fieldPathId:i}=e;return V.useEffect(()=>{t===void 0&&r(null,i.path)},[i,t,r]),null}const LM=/\.([0-9]*0)*$/,qM=/[0.]0*$/;function RM(e){const{registry:t,onChange:r,formData:i,value:a}=e,[n,o]=V.useState(a),{StringField:s}=t.fields,l=gh(),u=l==="."?"\\.":l;let c=i;const f=V.useCallback((d,p,k,v)=>{o(d);const g=typeof d=="string"?d.replace(l,"."):d,b=`${g}`.startsWith(".")?`0${g}`:g,w=typeof b=="string"&&LM.exec(b)?yh(b.replace(qM,"")):yh(b);r(w,p,k,v)},[r,l]);if(typeof n=="string"&&typeof c=="number"){const d=new RegExp(`^(${String(c).replace(".",u)})?${u}?0*$`);n.match(d)&&(c=n)}let m=c;if(typeof c=="number"&&l!=="."){const{schema:d,uiSchema:p}=e,{schemaUtils:k}=t,g=(k.isSelect(d)?oi(d,p):void 0)?"select":"text",{widget:b=g}=me(p);b!=="radio"&&b!=="select"&&b!=="hidden"&&(m=String(c).replace(".",l))}return N.jsx(s,{...e,formData:m,onChange:f})}var ws;function zM(e){if(!ws){if(typeof document>"u")return;ws=document.createElement("textarea")}var t=`&${e};`;ws.innerHTML=t;var r=ws.value;return r===t?void 0:r}var oe=32,le=9,_n=13,fe=10,Ge=96,Pt=126,vt=91,on=94,Ie=62,gr=35,hf=37,_e=45,yr=61,Nt=92,wt=42,gt=95,it=60,yv=64,_r=93,Ht=33,Ss=38,Rt=58,gf=70,li=102,Cs=104,ui=119,Xi=116,yf=112,vv=115,$M=160,UM=12,BM=44,Es=59,Zi=63,vr=46,bt=47,ci=39,fi=34,Pn=43,Ft=124,di=123,vf=125,Pr=40,Ir=41,VM=78,HM=110,KM=79,WM=111,bv=120,kv=88,bf=30,Te=48,Ne=57,we=65,Ae=90,Ze=97,lt=122,As=128,Tr=32,GM={blockQuote:0,breakLine:1,breakThematic:2,codeBlock:3,codeInline:4,footnote:5,footnoteReference:6,frontmatter:7,gfmTask:8,heading:9,htmlBlock:10,htmlComment:11,htmlSelfClosing:12,image:13,link:14,orderedList:15,paragraph:16,ref:17,refCollection:18,table:19,text:20,textFormatted:21,unorderedList:22},ne=GM;function JM(e){if(!Cv(e,"---"))return null;let t=3;for(;t<e.length&&(e[t]===" "||e[t]===" ");)t++;if(t<e.length&&e[t]==="\r"&&t++,t>=e.length||e[t]!==`
|
|
77
|
+
`)return null;t++;let r=!1;for(;t<e.length;){let i=t;for(;t<e.length&&e[t]!==`
|
|
78
|
+
`&&e[t]!=="\r";)t++;if(t>=e.length)break;let a=t;if(e[t]==="\r"&&t++,t<e.length&&e[t]===`
|
|
79
|
+
`&&t++,Cv(e,"---",i))return{endPos:t,hasValidYaml:r};if(!r){let n=oj(e,i,a);if(n<a){let o=e.charCodeAt(n);if(o>=Ze&&o<=lt||o>=we&&o<=Ae||o>=Te&&o<=Ne||o===gt){for(n++;n<a&&(o=e.charCodeAt(n),o>=Ze&&o<=lt||o>=we&&o<=Ae||o>=Te&&o<=Ne||o===gt||o===_e||o===vr);)n++;n<a&&e.charCodeAt(n)===Rt&&(n++,n>=a?r=!0:(o=e.charCodeAt(n),(o===oe||o===le)&&(r=!0)))}}}}return null}var YM=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,XM={class:"className",for:"htmlFor",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap",viewbox:"viewBox"},ZM={};function wv(e){if(!e)return ZM;var t={};for(var r in e){var i=r.toLowerCase(),a=XM[i];if(a)t[a]=e[r];else{var n=r.indexOf(":");n===-1?t[r]=e[r]:t[r.slice(0,n)+r[n+1].toUpperCase()+r.slice(n+2)]=e[r]}}return t}var QM=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s|^<(div|p|h[1-6]|ul|ol|li|blockquote|pre|table|thead|tbody|tr|td|th|dl|dt|dd|hr|address|article|aside|details|dialog|figure|figcaption|footer|form|header|main|menu|nav|section|summary|textarea|fieldset|legend|center|dir|hgroup|marquee|search|output|template)\b)/i;function In(e){return e.indexOf("&")===-1?e:e.replace(YM,(t,r)=>{var i=zM(r);if(i)return i;if(r[0]==="#"){var a=r[1]==="x"||r[1]==="X"?Number.parseInt(r.slice(2),16):Number.parseInt(r.slice(1),10);return a===0||a>=55296&&a<=57343||a>1114111?"�":a<=65535?String.fromCharCode(a):String.fromCharCode(55296+(a-65536>>10),56320+(a-65536&1023))}return t})}var Sv=/(javascript|vbscript|data(?!:image)):/i;function sn(e){if(Sv.test(e))return null;if(e.indexOf("%")===-1)return e;try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(Sv.test(t))return null}catch{return null}return e}var zt={},Kt,It;for(Kt=[192,193,194,195,196,197,224,225,226,227,228,229,230,198],It=0;It<Kt.length;It++)zt[Kt[It]]="a";for(zt[231]=zt[199]="c",zt[240]=zt[208]="d",Kt=[200,201,202,203,233,232,234,235],It=0;It<Kt.length;It++)zt[Kt[It]]="e";for(Kt=[207,239,206,238,205,237,204,236],It=0;It<Kt.length;It++)zt[Kt[It]]="i";for(zt[209]=zt[241]="n",Kt=[248,216,339,338,213,245,212,244,211,243,210,242],It=0;It<Kt.length;It++)zt[Kt[It]]="o";for(Kt=[220,252,219,251,218,250,217,249],It=0;It<Kt.length;It++)zt[Kt[It]]="u";zt[376]=zt[255]=zt[221]=zt[253]="y";function mi(e){for(var t="",r=-1,i=e.length,a=0;a<i;a++){var n=e.charCodeAt(a);if(n>=Ze&&n<=lt||n>=Te&&n<=Ne){r<0&&(r=a);continue}if(n>=we&&n<=Ae){r>=0&&(t+=e.slice(r,a),r=-1),t+=String.fromCharCode(n+Tr);continue}if(n===oe||n===_e){r>=0&&(t+=e.slice(r,a),r=-1),t+="-";continue}r>=0&&(t+=e.slice(r,a),r=-1);var o=zt[n];o&&(t+=o)}return r>=0&&(t+=e.slice(r)),t}function Cv(e,t,r){return e.startsWith(t,r)}var Ev=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr","circle","ellipse","line","path","polygon","polyline","rect","use","stop","animate","set"]);function ao(e){let t=e.toLowerCase();if(Ev.has(t))return!0;let r=t.indexOf(":");return r!==-1?(t=t.slice(r+1),Ev.has(t)):!1}var pi=1,Av=2,Qi=4,xv=8,ej=16,Nr=32,Tn=64,tj=(()=>{var e=new Uint8Array(128),t;for(e[le]=pi,e[fe]=pi|Av,e[UM]=pi,e[_n]=pi|Av,e[oe]=pi,t=Ht;t<=bt;t++)e[t]=Qi;for(t=Rt;t<=yv;t++)e[t]=Qi;for(t=vt;t<=Ge;t++)e[t]=Qi;for(t=di;t<=Pt;t++)e[t]=Qi;for(t=Te;t<=Ne;t++)e[t]=ej;for(t=we;t<=Ae;t++)e[t]=xv;for(t=Ze;t<=lt;t++)e[t]=xv;return e})(),rj=/[\p{P}\p{S}]/u,nj=new RegExp("\\p{Zs}","u"),hi=[];function ij(e){var t=e.indexOf("\r"),r=e.indexOf("\0");if(t===-1&&r===-1)return e;var i=e.length;hi.length=0;var a=0,n=0;for(t===-1?n=r:r===-1?n=t:n=t<r?t:r;n<i;n++){var o=e.charCodeAt(n);o===_n?(a<n&&hi.push(e.slice(a,n)),n+1<i&&e.charCodeAt(n+1)===fe&&n++,hi.push(`
|
|
80
|
+
`),a=n+1):o===0&&(a<n&&hi.push(e.slice(a,n)),hi.push("�"),a=n+1)}return a<i&&hi.push(e.slice(a)),hi.join("")}function aj(e){return e.replace(/>\s+</g,"><").replace(/\n+/g," ").trim()}function oj(e,t,r){let i=r??e.length;for(;t<i&&(e[t]===" "||e[t]===" ");)t++;return t}function Ov(e){if(!e)return!1;for(var t in e)return!0;return!1}function sj(e){return{attrs:{},children:[{type:ne.text,text:e}],c:!0,type:ne.htmlBlock,tag:"header"}}var lj=/^\n+/;function uj(e){for(var t=e.length;t>0&&(e[t-1]===`
|
|
81
|
+
`||e[t-1]==="\r");)t--;return`${e.slice(0,t).replace(lj,"")}
|
|
56
82
|
|
|
57
|
-
`}function
|
|
58
|
-
`,
|
|
59
|
-
`,n),
|
|
60
|
-
`,n),d=
|
|
61
|
-
`,n),b=
|
|
62
|
-
`,t),
|
|
63
|
-
`,
|
|
64
|
-
`,o=
|
|
65
|
-
`,o=
|
|
66
|
-
`,
|
|
67
|
-
`;var
|
|
68
|
-
`,
|
|
69
|
-
`}else
|
|
70
|
-
`}for(s=
|
|
71
|
-
`,s=
|
|
72
|
-
`}else
|
|
73
|
-
`;s=
|
|
74
|
-
`}else
|
|
75
|
-
`;s=
|
|
76
|
-
`,s=
|
|
77
|
-
`,
|
|
78
|
-
`)!==-1
|
|
79
|
-
`)!==-1,
|
|
83
|
+
`}function ea(e){var r,i;if((e.type===ne.htmlSelfClosing||e.type===ne.htmlBlock)&&e.a)return[];if(e.type===ne.paragraph){var t=e.children;return t?t.flatMap(ea):[]}return e.type===ne.text?(r=e.text)!=null&&r.trim()?[e]:[]:e.type===ne.htmlBlock&&e.children?[{...e,children:(i=e.children)==null?void 0:i.flatMap(ea)}]:[e]}function _v(e){for(var t=0;t<e.length;t++){if(e[t].type===ne.htmlBlock){var r=e[t],i=!1;if(r.c&&t===e.length-1){var a=r.j===void 0?r.a?r.e||"":(r.e||"")+(r.h||""):r.j,n=`</${String(r.tag).toLowerCase()}>`,o=a.toLowerCase().indexOf(n);if(o!==-1){var s=a.slice(o+n.length).replace(/<\/[a-z][a-z0-9-]*\s*>/gi,"");s.trim()&&(i=!0)}}i||(r.c=!1)}"children"in e[t]&&e[t].children&&_v(e[t].children)}}function cj(e,t){for(var r=0;r<e.length;r++){var i=e[r];if(i.type===ne.paragraph&&i.children)for(var a=i.children,n=0;n<a.length;n++){var o=a[n];if(o.type===ne.htmlSelfClosing&&o.a&&o.tag.toLowerCase()===t){var s=e.slice(0,r);n>0&&s.push({type:ne.paragraph,children:a.slice(0,n)});var l=[];if(n+1<a.length){var u=a.slice(n+1).filter(c=>!(c.type===ne.htmlSelfClosing&&c.a));u.length>0&&(l=u)}return l=l.concat(e.slice(r+1)),{found:!0,beforeClose:s,afterClose:l}}}if((i.type===ne.htmlSelfClosing||i.type===ne.htmlBlock)&&i.a&&i.tag.toLowerCase()===t)return{found:!0,beforeClose:e.slice(0,r),afterClose:e.slice(r+1)}}return{found:!1,beforeClose:e,afterClose:[]}}function fj(e){var t="";for(var r in e){var i=e[r];i===!0?t+=` ${r}`:i!==void 0&&i!=null&&i!==!1&&(t+=` ${r}="${String(i)}"`)}return t}function Pv(e,t,r,i){var a;return t===void 0?a=fj(r):a=t.length>0&&t.charCodeAt(0)>oe?` ${t}`:t,`<${e}${a}${i}`}function Iv(e){var t=e.tag,r=e.type===ne.htmlSelfClosing,i=e,a=i.b,n=`</${t}>`;if(!r&&i.a)return{kind:"literal",literal:(i.h||n)+(i.e||"")};if(r){var o=e;return o.a?{kind:"literal",literal:o.h||n}:o.m?{kind:"literal",literal:o.m}:{kind:"literal",literal:Pv(t,a,e.attrs," />")}}var s=Pv(t,a,e.attrs,">"),l=i.children,u=l!=null&&l.length>0;if(i.c&&i.j!==void 0)return u?{kind:"sandwich",open:s,close:n}:{kind:"literal",literal:i.j};if(i.c&&!u)return{kind:"literal",literal:s+(i.e||"")+(i.h||n)};if(l!=null&&l.length>0){for(var c="",f=0;f<l.length;f++){var m=l[f];if(m.type!==ne.text)return{kind:"sandwich",open:s,close:n};c+=m.text}return{kind:"literal",literal:s+c+n}}var d=i.e||"";return d&&d.indexOf(n)!==-1?{kind:"literal",literal:s+d}:{kind:"literal",literal:s+d+n}}function dj(e,t,r){var i=[],a=e,n=r;if(a&&i.push(a),Array.isArray(t))for(var o=0;o<t.length;o++)i.push(t[o]);else t!=null&&i.push(t);n&&i.push(n);for(var s=[],l=0;l<i.length;l++){var u=i[l];typeof u=="string"&&s.length>0&&typeof s.at(-1)=="string"?s[s.length-1]=s.at(-1)+u:s.push(u)}return s}function ta(e){return e==null||e.tagfilter!==!1}function mj(e,t,r,i){var a=t(e,r,i);return a===null?null:hj(a)}function pj(e){var t=[];if(!e)return t;for(var r in e)r.charCodeAt(0)===94&&t.push({identifier:r,footnote:e[r].target});return t}function kf(e,t,r){if(t.indexOf(".")===-1)return(e==null?void 0:e[t])||r;for(var i=e,a=t.split("."),n=0;n<a.length&&(i=i==null?void 0:i[a[n]],i!==void 0);)n++;return i||r}function hj(e){for(var t=!1,r=0;r<e.length;r++){var i=e.charCodeAt(r);if(i<=oe||i===fi||i===hf||i===it||i===Ie||i===vt||i===Nt||i===_r||i===on||i===Ge||i>=123){t=!0;break}}if(!t)return e;for(var a="",r=0;r<e.length;r++){var i=e.charCodeAt(r);if(i===hf&&r+2<e.length){var n=e.charCodeAt(r+1),o=e.charCodeAt(r+2);if((n>=Te&&n<=Ne||n>=we&&n<=gf||n>=Ze&&n<=li)&&(o>=Te&&o<=Ne||o>=we&&o<=gf||o>=Ze&&o<=li)){a+=e[r]+e[r+1]+e[r+2],r+=2;continue}}if(i>=55296&&i<=57343){if(i<=56319&&r+1<e.length){var s=e.charCodeAt(r+1);if(s>=56320&&s<=57343){a+=encodeURI(e[r]+e[r+1]),r++;continue}}a+=e[r];continue}a+=encodeURI(e[r])}return a}function gj(...e){return e.filter(Boolean).join(" ")}var yj=new Set(["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"]),xs=/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi;function Tv(e){return yj.has(e.toLowerCase())}function vj(e){return xs.lastIndex=0,xs.test(e)}function Nv(e){return xs.lastIndex=0,e.replace(xs,(t,r,i,a)=>`<${r}${i}${a}`)}function wf(e,t){var r=e||{},i=r.slugify,a;if(i){var n=i;a=o=>n(o,mi)}else a=mi;return{disableAutoLink:r.disableAutoLink,disableFrontmatter:r.disableFrontmatter,disableParsingRawHTML:r.disableParsingRawHTML,enforceAtxHeadings:r.enforceAtxHeadings,evalUnserializableExpressions:r.evalUnserializableExpressions,forceBlock:r.forceBlock,forceInline:t===void 0?r.forceInline:t,ignoreHTMLBlocks:r.ignoreHTMLBlocks,optimizeForStreaming:r.optimizeForStreaming,preserveFrontmatter:r.preserveFrontmatter,sanitizer:r.sanitizer||sn,slugify:a,tagfilter:ta(r)}}var bj=/^<([a-zA-Z][a-zA-Z0-9-]*)\s[^>]*>/,kj=/^<[A-Z]/,Sf=["script","pre","style","textarea"],oo=new Set(Sf),wj=/<(?:pre|script|style|textarea)\b/i,Fv=/<(?:pre|script|style|textarea)\b/iy,Cf=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m,Dv=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/im,Mv=new Uint8Array(128);(()=>{for(var e=[Ge,wt,gt,Pt,yr,vt,Ht,it,Nt,Ss,fe,Cs,ui,li],t=0;t<e.length;t++)Mv[e[t]]=1})();var jv=/([a-zA-Z_][a-zA-Z0-9_-]*)=(?:"([^"]*)"|'([^']*)')/g;function Sj(e){return oo.has(e)}function Cj(e){return wj.test(e)}function Lv(e,t,r){for(var i=t,a=r;i<a&&(e.charCodeAt(i)===oe||e.charCodeAt(i)===le);)i++;if(i>=a)return!1;e.charCodeAt(i)===Ft&&i++;for(var n=0;i<a;){for(;i<a&&(e.charCodeAt(i)===oe||e.charCodeAt(i)===le);)i++;if(i>=a)break;if(e.charCodeAt(i)===Ft&&n>0){for(var o=i+1;o<a&&(e.charCodeAt(o)===oe||e.charCodeAt(o)===le);)o++;if(o>=a)return!0}if(e.charCodeAt(i)===Rt&&i++,i>=a||e.charCodeAt(i)!==_e)return!1;for(;i<a&&e.charCodeAt(i)===_e;)i++;for(i<a&&e.charCodeAt(i)===Rt&&i++,n++;i<a&&(e.charCodeAt(i)===oe||e.charCodeAt(i)===le);)i++;if(i<a)if(e.charCodeAt(i)===Ft)i++;else return!1}return n>0}var Ej=/[\u0000-\u001F\u007F]/g,Aj={action:1,background:1,cite:1,data:1,formaction:1,href:1,longdesc:1,poster:1,src:1,"xlink:href":1},xj=/&#(x[0-9a-f]+|[0-9]+);?/gi;function Oj(e){return e.indexOf("&#")===-1?e:e.replace(xj,(t,r)=>{var i=r.charCodeAt(0)===bv||r.charCodeAt(0)===kv?Number.parseInt(r.slice(1),16):Number.parseInt(r,10);return i>0&&i<=1114111?String.fromCodePoint(i):t})}function _j(e,t,r){if(r&&t.charCodeAt(0)===di)return!1;var i=e.charCodeAt(0),a=e.charCodeAt(1);if((i===WM||i===KM)&&(a===HM||a===VM))return!(r&&t==="");var n=e.toLowerCase();if(n==="srcdoc")return!0;if(n==="style")return/url\s*\(\s*(javascript|vbscript|data:(?!image\/))/i.test(t);if(Aj[n]===1){var o=Oj(In(t));if(sn(o)===null)return!0;var s=o.replace(Ej,"");return s!==o&&sn(s)===null}return!1}function Ef(e){return"<"+(e.f?"/":"")+e.tag+e.g+e.b+(e.n?e.r?" />":"/>":">")}function qv(e,t,r,i){for(var a=[],n=t,o=0;o<i.length;o+=2){var s=i[o];if(s>n){var l=e.slice(n,s).trim();l&&a.push(l)}n=i[o+1]}if(n<r){var u=e.slice(n,r).trim();u&&a.push(u)}return a.join(" ")}function Kr(e,t){if(e.charCodeAt(t)!==it)return null;let r=t+1,i=e.length,a=!1;e.charCodeAt(r)===bt&&(r++,a=!0);let n=r,o=e.charCodeAt(r);if(!(o>=Ze&&o<=lt||o>=we&&o<=Ae))return null;for(;r<i&&(e.charCodeAt(r)>=Ze&&e.charCodeAt(r)<=lt||e.charCodeAt(r)>=we&&e.charCodeAt(r)<=Ae||e.charCodeAt(r)>=Te&&e.charCodeAt(r)<=Ne||e.charCodeAt(r)===_e);)r++;let s=e.slice(n,r);if(!s)return null;let l=s.charCodeAt(0),u=l>=we&&l<=Ae||s.indexOf("-")!==-1,c=r;for(;r<i&&(e.charCodeAt(r)===oe||e.charCodeAt(r)===le||e.charCodeAt(r)===fe);)r++;let f=e.slice(c,r);if(r===c&&r<i){var m=e.charCodeAt(r);if(m!==Ie&&m!==bt)return null}let d=r,p={},k=!1;for(var v=null;r<i;){let F=e.charCodeAt(r);if(F===Ie){let T=v?qv(e,d,r,v):e.slice(d,r);return{r:k,u,f:a,b:T,q:v!=null,n:!1,g:f,attrs:p,end:r+1,tag:s}}if(F===oe||F===le||F===fe){r++;continue}if(F===bt&&r+1<i&&e.charCodeAt(r+1)===Ie){k=r>d&&e.charCodeAt(r-1)===oe;let T=v?qv(e,d,r,v):e.slice(d,r);return{r:k,u,f:a,b:T,q:v!=null,n:!0,g:f,attrs:p,end:r+2,tag:s}}var g=r,b=e.charCodeAt(r);if(!(b>=Ze&&b<=lt||b>=we&&b<=Ae||b===gt||b===Rt))return null;for(r++;r<i;){var w=e.charCodeAt(r);if(w>=Ze&&w<=lt||w>=we&&w<=Ae||w>=Te&&w<=Ne||w===gt||w===vr||w===Rt||w===_e)r++;else break}for(var E=e.slice(g,r),h=r;r<i&&(e.charCodeAt(r)===oe||e.charCodeAt(r)===le);)r++;var y,C;if(e.charCodeAt(r)===yr){for(r++;r<i&&(e.charCodeAt(r)===oe||e.charCodeAt(r)===le);)r++;var x=e.charCodeAt(r);if(x===fi||x===ci){r++;for(var _=r;r<i&&e.charCodeAt(r)!==x;)r++;if(r>=i)return null;if(y=e.slice(_,r),r++,r<i){var S=e.charCodeAt(r);if(S!==oe&&S!==le&&S!==fe&&S!==Ie&&S!==bt)return null}C=r}else if(x===di){var A=1,_=r;for(r++;r<i&&A>0;){var w=e.charCodeAt(r);w===di?A++:w===vf&&A--,r++}y=e.slice(_,r),C=r}else{for(var _=r;r<i;){var O=e.charCodeAt(r);if(O===oe||O===le||O===Ie||O===fe||O===fi||O===ci||O===yr||O===it||O===Ge)break;r++}if(r===_)return null;y=e.slice(_,r),C=r}}else y="",C=h;_j(E,y,u)?(v===null&&(v=[]),v.push(g,C)):p[E]=y}return null}function nr(e){var t=e.indexOf("<");if(t===-1)return e;for(var r="",i=0,a=!1;t!==-1;){var n=Kr(e,t);n?(n.q&&(r+=e.slice(i,t)+Ef(n),i=n.end,a=!0),t=e.indexOf("<",n.end)):t=e.indexOf("<",t+1)}return a?r+e.slice(i):e}function Pj(e,t,r){if(!r.optimizeForStreaming&&e.indexOf("[")===-1)return!1;for(var i=0,a=e.length,n=!1,o=!1;i<a;){for(var s=e.indexOf(`
|
|
84
|
+
`,i),l=s<0?a:s,u=i,c=0;u<l&&c<4;)if(e.charCodeAt(u)===oe)c++,u++;else if(e.charCodeAt(u)===le)c+=4,u++;else break;if(u>=l){n=!1,i=s<0?a:s+1;continue}if(c<4){var f=e.charCodeAt(u);if(f===Ge||f===Pt){for(var m=f,d=0,p=u;p<l&&e.charCodeAt(p)===m;)d++,p++;if(d>=3){var k=!0;if(m===Ge){for(var v=p;v<l;v++)if(e.charCodeAt(v)===Ge){k=!1;break}}if(k){n=!1;for(var g=s<0?a:s+1;g<a;){for(var b=g,w=0;b<a&&w<4;){var E=e.charCodeAt(b);if(E===oe)w++,b++;else if(E===le)w+=4,b++;else break}if(w<4&&b<a&&e.charCodeAt(b)===m){for(var h=0;b<a&&e.charCodeAt(b)===m;)h++,b++;if(h>=d){for(;b<a&&(e.charCodeAt(b)===oe||e.charCodeAt(b)===le);)b++;if(b>=a||e.charCodeAt(b)===fe){i=b>=a?a:b+1;break}}}for(;g<a&&e.charCodeAt(g)!==fe;)g++;g<a&&g++}g>=a&&(i=a,o=!0);continue}}}}for(var y=u;y<l&&e.charCodeAt(y)===Ie;){y++,y<l&&e.charCodeAt(y)===oe&&y++;for(var C=0;y<l&&C<4;)if(e.charCodeAt(y)===oe)C++,y++;else if(e.charCodeAt(y)===le)C+=4,y++;else break;if(C>=4)break;n=!1}if(!n&&c<4&&y<l&&e.charCodeAt(y)===vt&&!(y+1<a&&e.charCodeAt(y+1)===on)){var x=Rv(e,y,t);if(x){i=x,n=!1;continue}}var _=e.charCodeAt(u);if(_===gr&&c<4)n=!1;else if(c<4&&(_===_e||_===wt||_===gt)){for(var S=u,A=0;S<l;){var O=e.charCodeAt(S);if(O===_)A++;else if(O!==oe&&O!==le)break;S++}n=!(A>=3&&S>=l)}else n=!0;i=s<0?a:s+1}return o}function Rv(e,t,r){let i=e.length;if(e.charCodeAt(t)!==vt)return null;let a=t+1<i&&e.charCodeAt(t+1)===on,n=t+1;for(;n<i;){var o=e.charCodeAt(n);if(o===_r){n++;break}if(o===vt)return null;o===Nt&&n+1<i&&n++,n++}if(n>i||e.charCodeAt(n-1)!==_r)return null;let s=e.slice(t+1,n-1);if(s.length>999)return null;let l=_s(s);if(!l||n>=i||e.charCodeAt(n)!==Rt)return null;n++;let u=!1;for(;n<i;){let F=e.charCodeAt(n);if(F===oe||F===le)n++;else if(F===fe&&!u)u=!0,n++;else break}if(a){let F=e.indexOf(`
|
|
85
|
+
`,n),T=F<0?i:F,M=e.slice(n,T).trim();return r[l]={target:M,title:void 0},F<0?i:F+1}var c;if(n<i&&e.charCodeAt(n)===it){n++;for(var f=n;n<i&&e.charCodeAt(n)!==Ie&&e.charCodeAt(n)!==fe;)e.charCodeAt(n)===Nt&&n+1<i&&n++,n++;if(n>=i||e.charCodeAt(n)!==Ie)return null;c=e.slice(f,n),n++;for(var m=e.indexOf(`
|
|
86
|
+
`,n),d=m<0?i:m,p=n;p<d&&(e.charCodeAt(p)===oe||e.charCodeAt(p)===le);)p++;if(p<d){if(p===n)return null;var k=e.charCodeAt(p);if(k!==fi&&k!==ci&&k!==Pr)return null}}else{for(var f=n,v=0;n<i;){var o=e.charCodeAt(n);if(o===Pr)v++;else if(o===Ir){if(v===0)break;v--}else{if(o===oe||o===le||o===fe)break;o===Nt&&n+1<i&&n++}n++}if(c=e.slice(f,n),!c)return null}for(;n<i&&(e.charCodeAt(n)===oe||e.charCodeAt(n)===le);)n++;var g=e.indexOf(`
|
|
87
|
+
`,n),b=g<0?i:g,w,E=!1,h=n,y=n;if(n===b&&n<i)for(y=n+1;y<i&&(e.charCodeAt(y)===oe||e.charCodeAt(y)===le);)y++;if(y<i){var C=e.charCodeAt(y);if(C===fi||C===ci||C===Pr){for(var x=C===Pr?41:C,_=y+1,S=_;_<i;){var A=e.charCodeAt(_);if(A===x){for(var O=_+1;O<i&&(e.charCodeAt(O)===oe||e.charCodeAt(O)===le);)O++;(O>=i||e.charCodeAt(O)===fe)&&(w=e.slice(S,_),E=!0,h=O<i?O+1:i);break}if(A===Nt&&_+1<i){_+=2;continue}if(A===fe&&_+1<i&&e.charCodeAt(_+1)===fe)break;_++}if(!E&&y===n)return null}}if(E)return r[l]||(r[l]={target:In(ra(c)),title:w===void 0?w:In(ra(w))}),h;for(;n<b&&(e.charCodeAt(n)===oe||e.charCodeAt(n)===le);)n++;return n<b?null:(r[l]||(r[l]={target:In(ra(c)),title:w}),g<0?i:g+1)}var Zt=new Uint8Array(tj);for(Zt[gr]|=Nr,Zt[Ie]|=Nr,Zt[_e]|=Nr|Tn,Zt[Pn]|=Nr,Zt[wt]|=Nr|Tn,Zt[gt]|=Nr|Tn,Zt[Ge]|=Nr|Tn,Zt[Pt]|=Nr|Tn,Zt[it]|=Nr|Tn,Zt[vt]|=Tn,Zt[Ht]|=Tn,Zt[Ft]|=Nr,Os=Te;Os<=Ne;Os++)Zt[Os]|=Nr;var Os;function zv(e){if(e.indexOf("[")<0&&e.indexOf("]")<0)return!1;for(var t=0;t<e.length;t++){if(e.charCodeAt(t)===Nt){t++;continue}if(e.charCodeAt(t)===vt||e.charCodeAt(t)===_r)return!0}return!1}function _s(e){for(var t=e.length,r=!0,i=t>0,a=0;a<t;a++){var n=e.charCodeAt(a);if(n===oe){if(r){i=!1;break}r=!0}else if(n<33||n>126||n>=we&&n<=Ae){i=!1;break}else r=!1}if(i&&!r)return e;var o=e.replace(/\s+/g," ").trim();return o.indexOf("ẞ")!==-1?o.replace(/\u1E9E/g,"ss").toLowerCase():o.toLowerCase()}function Af(e){return e<As?Zt[e]:e===$M?pi:0}function ra(e){return e.indexOf("\\")===-1?e:e.replace(/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,"$1")}var xf=null,Of=-1,Ps=-1;function Je(e,t){if(t>=Of&&t<=Ps&&e===xf)return Ps;var r=e.indexOf(`
|
|
88
|
+
`,t),i=r<0?e.length:r;return xf=e,Of=t,Ps=i,i}function Le(e,t){let r=Je(e,t);return r<e.length?r+1:r}function so(e,t,r){for(;t<r;){let i=e.charCodeAt(t);if(i!==oe&&i!==le)break;t++}return t}function $v(e,t){let r=Le(e,t);for(;r<e.length;){let i=Je(e,r);if(Wt(e,r,i))return r;r=Le(e,r)}return e.length}function Nn(e,t,r,i){let a=0;for(;t+a<r&&e.charCodeAt(t+a)===i;)a++;return a}var Ye=0,Ve=0;function Et(e,t,r){for(Ye=0,Ve=0;t+Ve<r;){let i=e.charCodeAt(t+Ve);if(i===le)Ye+=4-Ye%4;else if(i===oe)Ye++;else break;Ve++}}function Wt(e,t,r){return so(e,t,r)>=r}function Ij(e,t){if(!e)return e;var r=t.v||(t.v=Object.create(null)),i=r[e];if(i===void 0)return r[e]=0,e;for(var a=i+1,n=`${e}-${a}`;r[n]!==void 0;)a++,n=`${e}-${a}`;return r[e]=a,r[n]=0,n}function Tj(e,t,r,i){let a=Je(e,t);if(Et(e,t,a),Ye>3)return null;let n=t+Ve;if(e.charCodeAt(n)!==gr)return null;let o=Nn(e,n,a,35);if(o<1||o>6||(n+=o,n<a&&e.charCodeAt(n)!==oe&&e.charCodeAt(n)!==le))return null;n=so(e,n,a);for(var s=a;s>n&&e.charCodeAt(s-1)===oe;)s--;for(var l=s;s>n&&e.charCodeAt(s-1)===gr;)s--;if(s<l)if(s===n||e.charCodeAt(s-1)===oe)for(;s>n&&e.charCodeAt(s-1)===oe;)s--;else s=l;let u=e.slice(n,s),c=ia(u,!1,r,i);return{node:{type:ne.heading,level:o,children:c,id:""},end:Le(e,a)}}function Nj(e,t,r){var i=e.charCodeAt(t);if(i!==yr&&i!==_e)return!1;for(var a=t;a<r&&e.charCodeAt(a)===i;)a++;for(;a<r&&(e.charCodeAt(a)===oe||e.charCodeAt(a)===le);)a++;return a>=r}function Fn(e,t){let r=Je(e,t);if(Et(e,t,r),Ye>3)return null;let i=t+Ve,a=e.charCodeAt(i);if(a!==_e&&a!==wt&&a!==gt)return null;let n=0;for(;i<r;){let o=e.charCodeAt(i);if(o===a)n++;else if(o!==oe&&o!==le)return null;i++}return n<3?null:{node:{type:ne.breakThematic},end:Le(e,r)}}var Uv=0,Bv=0,Vv="";function Fj(e,t,r){let i=Je(e,t);if(Et(e,t,i),Ye>3)return null;let a=Ye,n=t+Ve,o=e.charCodeAt(n);if(o!==Ge&&o!==Pt)return null;let s=Nn(e,n,i,o);if(s<3)return null;n+=s;let l=so(e,n,i),u=i;if(o===Ge){for(let T=l;T<i;T++)if(e.charCodeAt(T)===Ge)return null}for(;u>l&&(e.charCodeAt(u-1)===oe||e.charCodeAt(u-1)===le);)u--;let c=e.slice(l,u),f="",m="",d=c.indexOf(" ");d===-1?f=c:(f=c.slice(0,d),m=c.slice(d+1).trim()),f=ra(f);var p;if(m){jv.lastIndex=0;for(var k;(k=jv.exec(m))!=null;)p||(p={}),p[k[1]]=k[2]===void 0?k[3]:k[2]}let v=Le(e,i),g=e.length,b=e.length;var w;o===Uv&&s===Bv?w=Vv:(w=String.fromCharCode(o).repeat(s),Uv=o,Bv=s,Vv=w);for(var E=v;E<e.length;){var h=e.indexOf(w,E);if(h===-1)break;for(var y=h,C=0;y>0&&C<4&&e.charCodeAt(y-1)===oe;)y--,C++;if(C<=3&&(y===0||e.charCodeAt(y-1)===fe)){for(var x=h+s;x<e.length&&e.charCodeAt(x)===o;)x++;var _=Je(e,x);if(Wt(e,x,_)){g=y,b=Le(e,_);break}}E=h+1}var S;if(a===0)S=g>v&&e.charCodeAt(g-1)===fe?e.slice(v,g-1):e.slice(v,g);else{S="";for(var A=v;A<g;){var O=Je(e,A);Et(e,A,O);var F=Math.min(Ve,a);S+=`${e.slice(A+F,O)}
|
|
89
|
+
`,A=Le(e,O)}S.length>0&&S.charCodeAt(S.length-1)===fe&&(S=S.slice(0,-1))}return{node:{type:ne.codeBlock,lang:f||void 0,text:S,infoString:m||void 0,attrs:p},end:b}}function Hv(e,t,r){for(var i=0,a=t;a<r&&i<4;)e.charCodeAt(a)===le?i+=4-i%4:i++,a++;if(i<4)return"";for(var n="",o=4;o<i;o++)n+=" ";return n+e.slice(a,r)}function Dj(e,t){let r=Je(e,t);if(Et(e,t,r),Ye<4)return null;let i="",a=t;for(;a<e.length;){let m=Je(e,a);if(Et(e,a,m),Wt(e,a,m)){for(var n=`${Hv(e,a,m)}
|
|
90
|
+
`,o=Le(e,m);o<e.length;){var s=Je(e,o);if(Wt(e,o,s)){n+=`${Hv(e,o,s)}
|
|
91
|
+
`,o=Le(e,s);continue}Et(e,o,s),Ye>=4&&(i+=n,a=o);break}if(a!==o)break;continue}if(Ye<4)break;let d=0,p=0;var l=0;for(let k=a;k<m&&p<4;k++){if(e.charCodeAt(k)===le){var u=4-p%4;p+u>4&&(l=p+u-4),p+=u}else p++;d++}var c="";if(l>0)for(var f=0;f<l;f++)c+=" ";c+=e.slice(a+d,m),i+=`${c}
|
|
92
|
+
`,a=Le(e,m)}for(;i.length>0&&i.charCodeAt(i.length-1)===fe;)i=i.slice(0,-1);return i?{node:{type:ne.codeBlock,lang:void 0,text:i,infoString:void 0,attrs:void 0},end:a}:null}function Mj(e,t,r,i){let a=Je(e,t);if(Et(e,t,a),Ye>3)return null;let n=t+Ve;if(e.charCodeAt(n)!==Ie)return null;let o="",s=t,l,u=!1,c=!1,f=!1;for(;s<e.length;){let q=Je(e,s);Et(e,s,q);let J=s+Ve;if(e.charCodeAt(J)===Ie){let Y=J+1;var m=Ye+1,d=!1;if(Y<q){var p=e.charCodeAt(Y);p===oe?(Y++,m++,d=!0):p===le&&(d=!0)}for(var k="",v=!1,g=Y;g<q;g++)if(e.charCodeAt(g)===le){v=!0;break}if(v){var b=m;if(d&&Y<q&&e.charCodeAt(Y)===le){for(var w=4-b%4,E=0;E<w-1;E++)k+=" ";b+=w,Y++}for(var h=Y;h<q;h++)if(e.charCodeAt(h)===le){for(var y=4-b%4,C=0;C<y;C++)k+=" ";b+=y}else k+=e[h],b++}else k=e.slice(Y,q);if(!(o||l)){let Q=k.match(/^\[!([A-Za-z]+)\]\s*$/);if(Q){l=Q[1].toUpperCase(),s=Le(e,q);continue}}o+=`${k}
|
|
93
|
+
`;var x=k.trimStart();x.startsWith("```")||x.startsWith("~~~")?f=!f:(k.startsWith(" ")||k.startsWith(" "))&&(f=!0),c=x.length>0,s=Le(e,q)}else if(o&&!Wt(e,s,q)&&c){if(Ye<4){var _=s+Ve,S=_<q?e.charCodeAt(_):0;if(S===gr||S===Ie||S===Ge||S===Pt||S===it||(S===_e||S===wt||S===gt)&&Fn(e,s)||(S===_e||S===wt||S===Pn)&&_+1<q&&(e.charCodeAt(_+1)===oe||e.charCodeAt(_+1)===le))break;if(S>=Te&&S<=Ne){for(var A=_;A<q&&e.charCodeAt(A)>=Te&&e.charCodeAt(A)<=Ne;)A++;if(A<q&&(e.charCodeAt(A)===vr||e.charCodeAt(A)===Ir))break}}if(f)break;o+=`${e.slice(s,q)}
|
|
94
|
+
`,u=!0,s=Le(e,q)}else break}if(!(o||l))return null;var{inBlockQuote:O,l:F}=r;r.inBlockQuote=!0,u&&(r.l=!0);var T=r.i;r.i=T||!Wt(e,s,e.length);let M=jn(o||"",r,i);return r.i=T,r.inBlockQuote=O,r.l=F,{node:{type:ne.blockQuote,children:M,alert:l||void 0},end:s}}function Kv(e,t,r){for(var i=0,a=t;a<r;a++)e.charCodeAt(a)===le?i+=4-i%4:i++;return i}function Dn(e,t,r){if(Et(e,t,r),Ye>3)return null;var i=t+Ve;if(i>=r)return null;var a=e.charCodeAt(i),n=Ye,o=i,s=i;if(a===_e||a===wt||a===Pn){if(o=i+1,o<r&&e.charCodeAt(o)!==oe&&e.charCodeAt(o)!==le&&e.charCodeAt(o)!==fe)return null}else if(a>=Te&&a<=Ne){for(;s<r&&s-i<9;){var l=e.charCodeAt(s);if(l<Te||l>Ne)break;s++}if(s>i&&s<r){var u=e.charCodeAt(s);if(u===vr||u===Ir){if(o=s+1,o<r&&e.charCodeAt(o)!==oe&&e.charCodeAt(o)!==le&&e.charCodeAt(o)!==fe)return null}else return null}else return null}else return null;var c=o,f=Kv(e,t,o),m=0,d=c,p=f;if(c>=r)return{ordered:a>=Te&&a<=Ne,marker:a>=Te&&a<=Ne?e[s]:e[i],start:a>=Te&&a<=Ne?Number.parseInt(e.slice(i,s),10):void 0,contentStart:c,contentCol:f+1,markerCol:n,isEmpty:!0};for(;d<r&&(e.charCodeAt(d)===oe||e.charCodeAt(d)===le);){if(e.charCodeAt(d)===le){var k=4-p%4;p+=k}else p++;d++,m++}var v=d>=r,g=p-f;return v||g>4?(p=f+1,d=c+1,m=1):m===0&&(p=f+1,d=c,m=1),{ordered:a>=Te&&a<=Ne,marker:a>=Te&&a<=Ne?e[s]:e[i],start:a>=Te&&a<=Ne?Number.parseInt(e.slice(i,s),10):void 0,contentStart:d,contentCol:p,markerCol:n,isEmpty:v}}var na=0;function Wv(e,t,r,i){var a=0,n=t;for(na=0;n<r&&a<i;){var o=e.charCodeAt(n);if(o===le){var s=4-a%4;if(a+s>i){na=a+s-i,n++,a=i;break}a+=s}else if(o===oe)a++;else break;n++}return n}function Gv(e,t,r,i){var a=Je(e,t),n=Dn(e,t,a);if(!n)return null;var o=[],s=t,l=n.contentCol,u="",c=n.isEmpty,f=!1,m=!1;if(!n.isEmpty){for(var d=!1,p=n.contentStart;p<a;p++)if(e.charCodeAt(p)===le){d=!0;break}if(d){var k="",v=Kv(e,t,n.contentStart),g=v-n.contentCol;if(g>0)for(var b=0;b<g;b++)k+=" ";for(var w=n.contentStart;w<a;w++)if(e.charCodeAt(w)===le){for(var E=4-v%4,h=0;h<E;h++)k+=" ";v+=E}else k+=e[w],v++;u=`${k}
|
|
95
|
+
`}else u=`${e.slice(n.contentStart,a)}
|
|
96
|
+
`}for(s=Le(e,a);s<e.length;){var y=Je(e,s);Et(e,s,y);var C=e.charCodeAt(s+Ve);if(Ye<l&&(C===_e||C===wt||C===gt)&&Ye<=3&&Fn(e,s))break;var x=Dn(e,s,y);if(x&&x.ordered===n.ordered&&x.marker===n.marker&&x.markerCol<l){o.push({contentCol:l,raw:u,hasBlankAfter:f,isEmpty:c}),f&&(m=!0),l=x.contentCol,c=x.isEmpty,f=!1,u=x.isEmpty?"":`${e.slice(x.contentStart,y)}
|
|
97
|
+
`,s=Le(e,y);continue}if(Wt(e,s,y)){var _=Wv(e,s,y,l);if(na>0||_<y){for(var S="",A=0;A<na;A++)S+=" ";u+=`${S+e.slice(_,y)}
|
|
98
|
+
`}else u+=`
|
|
99
|
+
`;s=Le(e,y);for(var O=!1,F=0;F<u.length;F++){var T=u.charCodeAt(F);if(T!==fe&&T!==_n&&T!==oe&&T!==le){O=!0;break}}if(c&&!O)if(s<e.length){var M=Je(e,s),q=Dn(e,s,M);if(!q||q.ordered!==n.ordered||q.marker!==n.marker)break;f=!0}else break;if(s<e.length){var J=Je(e,s);Et(e,s,J);var Y=e.charCodeAt(s+Ve);if((Y===_e||Y===wt||Y===gt)&&Ye<=3&&Fn(e,s))break;var Q=Dn(e,s,J);if(Q&&Q.ordered===n.ordered&&Q.marker===n.marker&&Q.markerCol<l){f=!0;continue}if(!Wt(e,s,J)&&Ye<l)break}continue}if(Ye>=l){var P=Wv(e,s,y,l);if(na>0){for(var j="",B=l,I=0;I<na;I++)j+=" ",B++;for(var D=P;D<y;D++)if(e.charCodeAt(D)===le){for(var L=4-B%4,U=0;U<L;U++)j+=" ";B+=L}else j+=e[D],B++;u+=`${j}
|
|
100
|
+
`}else u+=`${e.slice(P,y)}
|
|
101
|
+
`;s=Le(e,y);continue}for(var $=!1,H=0;H<u.length;H++){var G=u.charCodeAt(H);if(G!==fe&&G!==_n&&G!==oe&&G!==le){$=!0;break}}if(!f&&$&&!c){var X=s+Ve,z=e.charCodeAt(X),R=z===gr||z===Ie||z===it||z===Ge||z===Pt||(z===_e||z===wt||z===gt||z===Pn)&&(Fn(e,s)!=null||Dn(e,s,y)!=null)||z>=Te&&z<=Ne&&Dn(e,s,y)!=null;if(!R){u+=`${e.slice(X,y)}
|
|
102
|
+
`,s=Le(e,y);continue}}break}if(o.push({contentCol:l,raw:u,hasBlankAfter:f,isEmpty:c}),o.length===0)return null;var W=m;if(!W)for(var K=0;K<o.length;K++){if(o[K].hasBlankAfter&&K<o.length-1){W=!0;break}if(!o[K].isEmpty){for(var ie=o[K].raw,re=ie.length,ue=0,ye=!1,Se=!1,ke=!1,Pe=!1,de=0,Ke=0,ut=-1;ue<re;){var ve=ie.indexOf(`
|
|
103
|
+
`,ue);if(ve<0&&(ve=re),Pe){Et(ie,ue,ve);for(var Z=ie.slice(ue+Ve,ve),ee=0;ee<Z.length&&Z.charCodeAt(ee)===de;)ee++;ee>=Ke&&Z.slice(ee).trim()===""&&(Pe=!1),ue=ve<re?ve+1:re;continue}if(Wt(ie,ue,ve)){ut>=0?ke=!0:ye&&(Se=!0),ue=ve<re?ve+1:re;continue}if(Et(ie,ue,ve),ut>=0){if(Ye>=ut){ue=ve<re?ve+1:re;continue}var te=Dn(ie,ue,ve);if(te&&te.markerCol<ut&&te.contentCol<=ut){ue=ve<re?ve+1:re;continue}if(te){ue=ve<re?ve+1:re;continue}ut=-1,ke&&(Se=!0,ke=!1)}var he=ie.slice(ue+Ve,ve),ce=he.charCodeAt(0);if((ce===Ge||ce===Pt)&&Ye<=3){for(var mt=0;mt<he.length&&he.charCodeAt(mt)===ce;)mt++;if(mt>=3){if(Se&&ye){W=!0;break}Pe=!0,de=ce,Ke=mt,ye=!0,ue=ve<re?ve+1:re;continue}}var qe=Ye<=3?Dn(ie,ue,ve):null;if(qe&&ye){if(Se){W=!0;break}ut=qe.contentCol,ke=!1,ue=ve<re?ve+1:re,ye=!0;continue}if(Se){W=!0;break}ye=!0,ue=ve<re?ve+1:re}if(W)break}}for(var We=[],St=0;St<o.length;St++){for(var xt=o[St],ct=xt.raw,Ct=ct.length;Ct>0&&ct.charCodeAt(Ct-1)===fe;)Ct--;var yt=Ct<ct.length?ct.slice(0,Ct):ct,ki=null;if(yt.length>=3&&yt.charCodeAt(0)===vt){var $n=yt[1];($n===" "||$n==="x"||$n==="X")&&yt.charCodeAt(2)===_r&&(ki={type:ne.gfmTask,completed:$n==="x"||$n==="X"},yt=yt.slice(3))}var At;if(xt.isEmpty&&yt.trim()==="")At=[];else if(W){var wi=r.inList;r.inList=!0;var Dl=r.i;r.i=Dl||St!==o.length-1,At=jn(yt,r,i),r.i=Dl,r.inList=wi}else{var fn=r.inList;r.inList=!0;var Si=r.i;if(r.i=Si||St!==o.length-1,At=jn(yt,r,i),r.i=Si,r.inList=fn,At.length===1&&At[0].type===ne.paragraph)At=At[0].children;else if(r.p){var Un=[];r.p.push({src:At,dest:Un,unwrap:!0}),At=Un}else{for(var Jr=[],Qt=0;Qt<At.length;Qt++)if(At[Qt].type===ne.paragraph)for(var Yr=At[Qt].children,fa=0;fa<Yr.length;fa++)Jr.push(Yr[fa]);else Jr.push(At[Qt]);At=Jr}}if(ki){var Ci=[ki,{type:ne.text,text:" "}];if(r.p)r.p.push({src:At,dest:Ci,unwrap:!1});else for(var Mr=0;Mr<At.length;Mr++)Ci.push(At[Mr]);We.push(Ci)}else We.push(At)}return{node:{type:n.ordered?ne.orderedList:ne.unorderedList,start:n.ordered?n.start:void 0,items:We},end:s}}var Is=new Set(["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]);function Wr(e,t,r){let i={};for(let[o,s]of Object.entries(e)){let l=o.toLowerCase();if(l==="style"&&typeof s=="string"){let u={},c=[],f=0,m=0;for(let p=0;p<s.length;p++){let k=s.charCodeAt(p);k===Pr?f++:k===Ir?f--:k===Es&&f===0&&(c.push(s.slice(m,p)),m=p+1)}m<s.length&&c.push(s.slice(m));let d=!1;c.forEach(p=>{let k=p.indexOf(":");if(k===-1)return;let v=p.slice(0,k).trim(),g=p.slice(k+1).trim();if(v&&g){if(/url\s*\(\s*(javascript|vbscript|data:(?!image\/))/i.test(g)){d=!0;return}let b=v.indexOf("-")===-1?v:v.replace(/-([a-z])/g,(w,E)=>E.toUpperCase());u[b]=g}}),!d&&Object.keys(u).length>0&&(i[o]=u)}else if((l==="href"||l==="src")&&(r!=null&&r.sanitizer)){let u=r.sanitizer(s,t,l);u!=null&&(i[o]=u)}else if(s==="")i[o]=!0;else if(s.length>=2&&s.charCodeAt(0)===di&&s.charCodeAt(s.length-1)===vf){var a=s.slice(1,-1);if(a.length>0){var n=a.charCodeAt(0);if(n===vt||n===di)try{i[o]=JSON.parse(a);continue}catch{}}if(a==="true"){i[o]=!0;continue}if(a==="false"){i[o]=!1;continue}if(r!=null&&r.evalUnserializableExpressions)try{i[o]=(0,eval)(`(${a})`);continue}catch{}i[o]=a}else i[o]=s}return i}function Mn(e,t,r){let i=t.length;if(i===0)return r;var a=t.charCodeAt(0),n=a>=we&&a<=Ae||a>=Ze&&a<=lt;if(!n){for(var o=String.fromCharCode(a),s=e.length-i,l=r;l<=s;){var u=e.indexOf(o,l);if(u===-1||u>s)return-1;for(var c=!0,f=1;f<i;f++){var m=e.charCodeAt(u+f),d=t.charCodeAt(f);if(m>=we&&m<=Ae&&(m+=Tr),d>=we&&d<=Ae&&(d+=Tr),m!==d){c=!1;break}}if(c)return u;l=u+1}return-1}a>=we&&a<=Ae&&(a+=Tr);for(let k=r;k<=e.length-i;k++){var p=e.charCodeAt(k);if(p>=we&&p<=Ae&&(p+=Tr),p!==a)continue;let v=!0;for(let g=1;g<i;g++){let b=e.charCodeAt(k+g),w=t.charCodeAt(g);if(b>=we&&b<=Ae&&(b+=Tr),w>=we&&w<=Ae&&(w+=Tr),b!==w){v=!1;break}}if(v)return k}return-1}function jj(e,t,r){let i=t.length;var a=t.charCodeAt(0);a>=we&&a<=Ae&&(a+=Tr);for(let o=Math.min(r,e.length-i);o>=0;o--){var n=e.charCodeAt(o);if(n>=we&&n<=Ae&&(n+=Tr),n!==a)continue;let s=!0;for(let l=1;l<i;l++){let u=e.charCodeAt(o+l),c=t.charCodeAt(l);if(u>=we&&u<=Ae&&(u+=Tr),c>=we&&c<=Ae&&(c+=Tr),u!==c){s=!1;break}}if(s)return o}return-1}var Ts=-1;function _f(e,t,r){let i=r.toLowerCase(),a=`<${i}`,n=`</${i}`,o=1,s=t,l=e.length;for(Ts=-1;s<l&&o>0;){let f=Mn(e,a,s),m=Mn(e,n,s);if(m===-1)return-1;if(f!==-1&&f<m){let d=Kr(e,f);d?(d.tag.toLowerCase()===i&&!d.f&&!d.n&&!ao(d.tag)&&o++,s=d.end):s=f+1}else{var u=m+n.length,c=u<l?e.charCodeAt(u):62;if((c===Ie||c===oe||c===le||c===fe)&&(o--,o===0)){Ts=m;let d=m+n.length;for(;d<l&&e.charCodeAt(d)!==Ie;)d++;return d+1}s=m+1}}return-1}function Jv(e,t,r,i){if(i.ignoreHTMLBlocks||i.disableParsingRawHTML)return null;var a=Je(e,t);if(Et(e,t,a),Ye>3&&!r.inHTML)return null;var n=t+Ve;if(e.charCodeAt(n)!==it)return null;var o=e.indexOf(">",n+1);if(o!==-1&&o<a){var s=e.slice(n+1,o);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(s)||/^[^\s@]+@[^\s@]+$/.test(s))return null}var l=Lj(e,n);if(l>=1&&l<=5){var u=e.length;if(l===1){for(var c=e.length,f=0;f<Sf.length;f++){var m=Mn(e,`</${Sf[f]}>`,n);m>=0&&m<c&&(c=m)}if(c<e.length){var d=e.indexOf(">",c);u=d>=0?Le(e,d+1):e.length}}else{var p=l===2?"-->":l===3?"?>":l===4?">":"]]>",k=e.indexOf(p,n);k>=0&&(u=Le(e,k+p.length))}var v=e.slice(n,u);if(l>=2)return{node:{type:ne.htmlComment,text:v,s:!1,raw:!0},end:u};var g="div",b=v.match(/^<\/?([a-zA-Z][a-zA-Z0-9-]*)/);b&&(g=b[1]);var w=Kr(e,n),E={},h;w&&!w.f&&(E=Wr(w.attrs,g,i),h=w.g+w.b);var y=[],C=g.toLowerCase(),x=`</${C}`,_=Mn(v,x,0),S="",A,O,F;if(w!=null&&w.f){F=v.slice(0,w.end-n);for(var T=v.slice(w.end-n);T.length>0&&T.charCodeAt(T.length-1)===fe;)T=T.slice(0,-1);T&&(O=nr(T))}else if(w&&!w.f){var M=w.end-n;if(_===-1){for(var q=v;q.length>0&&q.charCodeAt(q.length-1)===fe;)q=q.slice(0,-1);A=nr(q)}else{var J=M;v.charCodeAt(J)===fe&&J++;for(var Y=_;Y>J;){var Q=v.charCodeAt(Y-1);if(Q!==oe&&Q!==le&&Q!==fe&&Q!==_n)break;Y--}var P=v.slice(J,Y);P&&(O=nr(P));for(var j=v.slice(_);j.length>0&&j.charCodeAt(j.length-1)===fe;)j=j.slice(0,-1);F=nr(j),S=v.slice(M,_).trim()}}var B=w?w.f:!1;return{node:{type:ne.htmlBlock,tag:g,attrs:E,b:h,children:y,e:O,h:F,j:A,text:S,c:!0,a:B},end:u}}if(l===6||l===7){var I=$v(e,t),D=I<e.length?I:e.length,L=e.slice(n,D),U=I<e.length?Le(e,I):e.length,$=Kr(e,n);if($){var H=$.tag,G=H.toLowerCase(),X=$.f;if(X){var z=e.slice($.end,D);return{node:{type:ne.htmlBlock,tag:H,attrs:{},children:[],h:e.slice(n,$.end),e:z?nr(z):void 0,text:z,c:!0,a:!0},end:U}}if($.n||ao(H))return{node:{type:ne.htmlBlock,tag:H,attrs:Wr($.attrs,H,i),b:$.g+$.b,children:[],text:"",c:!1,a:!1},end:$.end<e.length&&e.charCodeAt($.end)===fe?$.end+1:$.end};var R=r.d||0,W=e.slice(n,D),K=-1,ie=-1,re=!1;if(R<10){for(var ue=`</${G}`,ye=$.end-n,Se=1,ke=ye;ke<W.length&&Se>0;){var Pe=Mn(W,`<${G}`,ke),de=Mn(W,ue,ke);if(de===-1)break;if(Pe!==-1&&Pe<de){var Ke=Pe+G.length+1;if(Ke<W.length){var ut=W.charCodeAt(Ke);(ut===oe||ut===le||ut===fe||ut===Ie||ut===bt)&&Se++}ke=Pe+1}else{var ve=de+ue.length;if(ve<W.length){var Z=W.charCodeAt(ve);if((Z===Ie||Z===oe||Z===le||Z===fe)&&(Se--,Se===0)){K=de;for(var ee=ve;ee<W.length&&W.charCodeAt(ee)!==Ie;)ee++;ie=ee+1;break}}else if(Se--,Se===0){K=de,ie=W.length;break}ke=de+1}}if(K===-1&&!$.f&&(l===6||$.u)){var te=_f(e,$.end,G);if(te!==-1){for(var he=Ts,ce=$.end,mt=!1,qe=!1,We=!1,St=0,xt=!1,ct=!1,Ct=ce;Ct<he;){var yt=e.charCodeAt(Ct);if(yt===fe)ct&&(mt=!0),xt||St++,ct=!0,Ct++;else if(yt===oe||yt===le)Ct++;else{if(!xt&&(xt=!0,St>=2&&yt===it)){We=!0;break}if(ct=!1,yt===it){var ki=e.charCodeAt(Ct+1)|32;if((ki===yf||ki===vv||ki===Xi)&&(Fv.lastIndex=Ct,Fv.test(e))){qe=!0;break}}Ct++}}if(mt&&!We&&!qe){var $n=Je(e,te);D=$n,U=Le(e,$n),W=e.slice(n,D),L=e.slice(n,D),K=he-n,ie=te-n,re=!0}}}}var At=$.b.indexOf(`
|
|
104
|
+
`)!==-1||$.g.indexOf(`
|
|
105
|
+
`)!==-1,wi=!1;if(K!==-1){var Dl=W.slice(ie).trim();wi=Dl.length===0}var fn=!1,Si=D,Un=U;if(K!==-1){var Jr=n+ie,Qt=Je(e,Jr-1);if(Jr<Qt){for(var Yr=Jr;Yr<Qt&&(e.charCodeAt(Yr)===oe||e.charCodeAt(Yr)===le);)Yr++;if(Yr<Qt&&e.charCodeAt(Yr)===it){var fa=Kr(e,Yr);fa&&!fa.f&&(fn=!0,Si=Jr,Un=Jr,wi=!0)}}if(!fn){var Ci=Le(e,Qt);if(Ci<D){for(var Mr=Ci;Mr<D&&(e.charCodeAt(Mr)===oe||e.charCodeAt(Mr)===le);)Mr++;if(Mr<D&&e.charCodeAt(Mr)===it){var Xz=Kr(e,Mr);Xz&&(fn=!0,Si=Qt,Un=Ci,wi=!0)}}}if(!fn&&r.inHTML){fn=!0,Si=Qt,Un=Le(e,Qt);var Zz=e.slice(Jr,Qt).trim();wi=Zz.length===0}}var da=[],or="";if(K!==-1){or=W.slice($.end-n,K);var ma=or.trim();if(ma){var{inline:Qz,inHTML:e$,d:t$}=r;r.inHTML=!0,r.d=R+1;var r$=G==="p";if(r$)r.inline=!0,da=ia(ma,!1,r,i);else{var O1=or.indexOf(`
|
|
80
106
|
|
|
81
|
-
`)!==-1,
|
|
107
|
+
`)!==-1,_1=Cf.test(ma),Fd=Dv.test(ma),n$=O1||_1||r.inHTML&&Fd,i$=or.length>=2&&or.charCodeAt(0)===fe&&or.charCodeAt(or.length-1)===fe&&!O1;i$&&!_1&&!Fd?da=[{type:ne.text,text:ma}]:n$||Fd?(r.inline=!1,da=jn(or,r,i)):(r.inline=!0,da=ia(ma,!1,r,i))}r.inline=Qz,r.inHTML=e$,r.d=t$}}var P1=!1;if(l===6&&K!==-1&&!r.inHTML&&!At){var a$=/<[a-zA-Z][^>]*>/.test(or),o$=or.indexOf(`
|
|
82
108
|
|
|
83
|
-
`)!==-1||
|
|
109
|
+
`)!==-1||Cf.test(or);a$&&!o$&&(P1=!0)}var s$=!re&&(r.inHTML||l===7||At||!wi||P1);if(s$){var ko,Xr,I1=!1;if(K!==-1&&fn){var T1=!1;if(r.inHTML&&ie<W.length){for(var Ml=ie;Ml<W.length&&W.charCodeAt(Ml)!==fe;)Ml++;var Dd=W.slice(ie,Ml).trim();T1=Dd.length>1&&Dd.charCodeAt(0)===it&&Dd.charCodeAt(1)!==bt}Xr=T1?W.slice($.end-n):or,I1=!0}else(l===7||r.inHTML)&&K!==-1?(Xr=W.slice($.end-n),Xr.charCodeAt(0)===fe&&(Xr=Xr.slice(1))):fn?ko=e.slice(n,Si):At?ko=L:(Xr=W.slice($.end-n),Xr.charCodeAt(0)===fe&&(Xr=Xr.slice(1)));var N1=ko!==void 0,Md=nr(ko===void 0?Xr||"":ko),F1={type:ne.htmlBlock,tag:H,attrs:Wr($.attrs,H,i),b:$.g+$.b,children:da,e:N1?void 0:Md,j:N1?Md:void 0,text:Md,c:!0,a:!1};return I1&&(F1.x=!0),{node:F1,end:Un}}var D1=nr(or);return{node:{type:ne.htmlBlock,tag:H,attrs:Wr($.attrs,H,i),b:$.g+$.b,children:da,e:re?void 0:D1,text:D1,c:!1,a:!1},end:Un}}var jl=L.match(/^<(\/?)([a-zA-Z][a-zA-Z0-9-]*)/),l$=jl?jl[2]:"div",jd=jl?jl[1]==="/":!1,Ld,M1,j1,Ll="";if(jd){var qd=L.indexOf(">");qd===-1?Ld=L:(Ld=L.slice(0,qd+1),Ll=L.slice(qd+1),Ll&&(M1=nr(Ll)))}else j1=nr(L);return{node:{type:ne.htmlBlock,tag:l$,attrs:{},children:[],e:M1,h:Ld,j:j1,text:jd?Ll:L,c:!0,a:jd},end:U}}var $t=Kr(e,n);if(!$t)return null;var Bn=$t.tag,Rd=Bn.toLowerCase(),L1=Bn.charCodeAt(0),zd=L1>=we&&L1<=Ae;if(!(zd||Is.has(Rd)||oo.has(Rd)||Rd.includes("-")))return null;if($t.f)return{node:{type:ne.htmlSelfClosing,tag:Bn,attrs:{},h:e.slice(n,$t.end),a:!0},end:$t.end};var pa=_f(e,$t.end,Bn),wo=[];if(pa!==-1){var u$=Ts,ql=e.slice($t.end,u$),Rl=ql.trim();if(Rl){var c$=ql.indexOf(`
|
|
84
110
|
|
|
85
|
-
`)!==-1,
|
|
86
|
-
`,
|
|
87
|
-
${e.slice(
|
|
88
|
-
`,
|
|
89
|
-
`)!==-1&&(s=s.replace(/\n/g," ")),s.length>0&&s[0]===" "&&s.at(-1)===" "&&s.trim().length>0&&(s=s.slice(1,-1)),{node:{type:oe.codeInline,text:s},end:n+o}}i=n+o}return null}function Ff(e,t,r){if(e.charCodeAt(t)!==tt)return t;let a=ma(e,t,r,96),i=t+a;for(;i<r;){let n=e.indexOf("`",i);if(n<0||n>=r)return t;let o=ma(e,n,r,96);if(o===a)return n+o;i=n+o}return t}function wI(e,t,r){if(e.charCodeAt(t)!==ht)return t;if(t+1<r&&e.charCodeAt(t+1)===Pt){let l=t+2;for(;l<r&&e.charCodeAt(l)!==qe;)l++;return l<r?l+1:t}if(t+3<r&&e.charCodeAt(t+1)===ur&&e.charCodeAt(t+2)===je&&e.charCodeAt(t+3)===je){let l=e.indexOf("-->",t+4);return l>=0?l+3:t}let a=t+1,i=a;for(;a<r;){let l=e.charCodeAt(a);if(l>=Te&&l<=Ne||l>=lt&&l<=bt||l>=ze&&l<=$e||l===je)a++;else break}if(a===i)return t;let n=e.slice(i,a).toLowerCase(),o=!1;for(;a<r;){let l=e.charCodeAt(a);if(l===qe){a++;break}if(l===Pt&&a+1<r&&e.charCodeAt(a+1)===qe){a+=2,o=!0;break}if(l===Ka||l===Wa){var s=l;for(a++;a<r&&e.charCodeAt(a)!==s;)a++;a<r&&a++;continue}if(l===ye)return t;a++}if(o||Lo(n))return a;let c=1;for(;a<r&&c>0;)if(e.charCodeAt(a)===ht)if(a+1<r&&e.charCodeAt(a+1)===Pt){let l=a+2,u=l;for(;u<r&&(e.charCodeAt(u)>=Te&&e.charCodeAt(u)<=Ne||e.charCodeAt(u)>=lt&&e.charCodeAt(u)<=bt);)u++;if(e.slice(l,u).toLowerCase()===n){for(;u<r&&e.charCodeAt(u)!==qe;)u++;if(u<r&&u++,c--,c===0)return u}a=u}else{let l=a+1,u=l;for(;u<r&&(e.charCodeAt(u)>=Te&&e.charCodeAt(u)<=Ne||e.charCodeAt(u)>=lt&&e.charCodeAt(u)<=bt);)u++;e.slice(l,u).toLowerCase()===n&&c++,a++}else a++;return a}function SI(e,t,r,a,i){if(e.charCodeAt(t)!==zt||t+1>=r||e.charCodeAt(t+1)!==zt)return null;let n=t+2;for(;n+1<r;){let o=e.charCodeAt(n);if(o===tt){let s=Ff(e,n,r);if(s>n){n=s;continue}}if(o===zt&&e.charCodeAt(n+1)===zt){let s=e.slice(t+2,n),c=_n(s,0,s.length,a,i);return{node:{type:oe.textFormatted,tag:"del",children:c},end:n+2}}o===Vt&&n+1<r&&n++,n++}return null}function EI(e,t,r,a,i){if(e.charCodeAt(t)!==Vr||t+1>=r||e.charCodeAt(t+1)!==Vr)return null;let n=t+2;for(;n+1<r;){let o=e.charCodeAt(n);if(o===tt){let s=Ff(e,n,r);if(s>n){n=s;continue}}if(o===Vr&&e.charCodeAt(n+1)===Vr&&n>t+2){let s=e.slice(t+2,n),c=_n(s,0,s.length,a,i);return{node:{type:oe.textFormatted,tag:"mark",children:c},end:n+2}}o===Vt&&n+1<r&&n++,n++}return null}function iv(e,t,r){return e<rl?!!(Pf(e)&Fi):MP.test(t[r])}function ov(e,t,r){return e<rl?!!(Pf(e)&Ya):jP.test(t[r])}function CI(e,t,r){var a=e.charCodeAt(t);if(a!==Ft&&a!==_t)return null;var i=ma(e,t,r,a);if(i===0)return null;var n=t>0?e.charCodeAt(t-1):32,o=t+i<r?e.charCodeAt(t+i):32,s=ov(n,e,t-1),c=ov(o,e,t+i),l=t>0?iv(n,e,t-1):!1,u=t+i<r?iv(o,e,t+i):!1,f=!c&&(!u||s||l),p=!s&&(!l||c||u),d,h;return a===Ft?(d=f,h=p):(d=f&&(!p||l),h=p&&(!f||u)),{len:i,canOpen:d,canClose:h}}function AI(e,t,r,a){if(t.length!==0){for(var i=e.length,n=Array(i),o=null,s=null,c=0;c<i;c++){var l={node:e[c],prev:s,next:null};s?s.next=l:o=l,n[c]=l,s=l}for(var u=Array(t.length),f=0;f<t.length;f++)u[f]=n[t[f].idx];for(var p=[],d=0;d<12;d++)p[d]=-1;for(var h=0;h<t.length;){var k=t[h];if(!(k.active&&k.canClose)){h++;continue}for(var v=k.ch===Ft?0:1,y=v*6+k.len%3*2+(k.canOpen?1:0),b=p[y]===void 0?-1:p[y],w=-1,E=h-1;E>b;E--){var m=t[E];if(!(!m.active||m.ch!==k.ch||!m.canOpen)&&!((k.canOpen||m.canClose)&&(m.len+k.len)%3===0&&m.len%3!==0)){w=E;break}}if(w<0){p[y]=h-1,!k.canOpen&&(k.active=!1),h++;continue}var g=t[w],S=g.len>=2&&k.len>=2,A=S?2:1;g.len-=A,k.len-=A;var x=u[w],O=u[h],C=x.node,_=O.node;C.text=C.text.slice(0,C.text.length-A),_.text=_.text.slice(A);for(var F=[],I=x.next;I&&I!==O;)F.push(I.node),I=I.next;var j={type:oe.textFormatted,tag:S?"strong":"em",children:F},$={node:j,prev:x,next:O};x.next=$,O.prev=$;for(var Y=w+1;Y<h;Y++)t[Y].active=!1;if(g.len===0&&(g.active=!1,C.text==="")){var Z=x.prev;$.prev=Z,Z?Z.next=$:o=$}if(k.len===0){if(k.active=!1,_.text===""){var ie=O.next;$.next=ie,ie&&(ie.prev=$)}}else continue;h++}for(var P=0,M=o;M;){var U=M.node;if(U.type===oe.text){var T=U;if(T.text===""){M=M.next;continue}if(P>0&&e[P-1].type===oe.text){e[P-1].text+=T.text,M=M.next;continue}}e[P++]=U,M=M.next}e.length=P}}function cl(e,t,r,a){return t(e,r,a)===null?null:e}var sv=0,Mf=0,lv=0,jf=0,cv=0,Lf=0,Rf=0,Wr=0;function _I(){return Rf===2147483647&&(Mf=0,jf=0,Lf=0,ul=0,Rf=0),++Rf}var qf=null,ul=0,fl=[],zf=256;function uv(e,t,r,a,i){var K;let n=e.charCodeAt(t)===ur,o=n?t+1:t;if(e.charCodeAt(o)!==Tt||jf===Wr&&o>=lv)return null;var s=ul===Wr?qf:null,c=s===null?0:s[o];if(c<0)return null;var l=c;if(c===0){var u=e.indexOf("]",o+1);if(u<0||u>=r)return lv=o,jf=Wr,null;l=o+1;var f=0;fl[f++]=o;for(var p=r-o>=zf;l<r&&f>0;){var d=e.charCodeAt(l);if(d===Vt&&l+1<r){l+=2;continue}if(d===tt){var h=Ff(e,l,r);if(h>l){l=h;continue}}if(d===ht){var k=fv(e,l,r);if(k){l=k.end;continue}var v=wI(e,l,r);if(v>l){l=v;continue}}if(d===Tt)fl[f++]=l;else if(d===an){var y=fl[--f];s===null&&p&&l-o>=zf&&(s=qf=new Int32Array(r),ul=Wr),s!==null&&(s[y]=l+1)}l++}if(f>0){if(s===null&&p&&l-o>=zf&&(s=qf=new Int32Array(r),ul=Wr),s!==null)for(;f>0;)s[fl[--f]]=-1;return null}}var b=l-1,w=e.slice(o+1,b),E=l<r?e.charCodeAt(l):0,m=!1;if(E===on){var g=!0;for(l++;l<r&&(e.charCodeAt(l)===ce||e.charCodeAt(l)===ye);)l++;var S="",A=l;if(l<r&&e.charCodeAt(l)===ht){for(l++,A=l;A<r&&e.charCodeAt(A)!==qe;){if(e.charCodeAt(A)===Vt&&A+1<r){A+=2;continue}if(e.charCodeAt(A)===ye){g=!1;break}A++}g&&(A>=r||e.charCodeAt(A)!==qe)&&(g=!1),g&&(S=e.slice(l,A),A++)}else if(g){var x=Mf===Wr?sv:-1;if(x>=0&&l>=x)g=!1;else{for(var O=0,C=!1;A<r;){var _=e.charCodeAt(A);if(_===Vt&&A+1<r){A+=2;continue}if(_===on)O++;else if(_===sn){if(C=!0,O===0)break;O--}else if(_===ce||_===ye)break;A++}A>=r&&!C&&(x<0||l<x)&&(sv=l,Mf=Wr),S=e.slice(l,A)}}if(g){for(l=A;l<r&&(e.charCodeAt(l)===ce||e.charCodeAt(l)===ye);)l++;var F;if(l<r){var I=e.charCodeAt(l);if(I===Ka||I===Wa||I===on){var j=I===on?41:I;l++;for(var $=l;l<r&&e.charCodeAt(l)!==j;)e.charCodeAt(l)===Vt&&l+1<r&&l++,l++;l>=r?g=!1:(F=e.slice($,l),l++)}}if(g){for(;l<r&&(e.charCodeAt(l)===ce||e.charCodeAt(l)===ye);)l++;(l>=r||e.charCodeAt(l)!==sn)&&(g=!1)}}if(g){if(l++,S=da(Li(S)),F!==void 0&&(F=da(Li(F))),n){var Y=_n(w,0,w.length,a,i),Z=dl(Y);return{node:{type:oe.image,target:cl(S,(i==null?void 0:i.sanitizer)||$n,"img","src"),alt:Z,title:F},end:l}}var ie=a.inAnchor;a.inAnchor=!0;var V=ie?[{type:oe.text,text:w}]:_n(w,0,w.length,a,i);return a.inAnchor=ie,!a.inAnchor&&$f(V)?null:{node:{type:oe.link,target:cl(S,(i==null?void 0:i.sanitizer)||$n,"a","href"),title:F,children:V},end:l}}l=b+1,m=!0}var P="",M=l;if(!m&&E===Tt){var U=l+1;M=U;for(var T=!1;M<r&&e.charCodeAt(M)!==an;){if(e.charCodeAt(M)===Vt&&M+1<r){M+=2;continue}if(e.charCodeAt(M)===Tt){T=!0;break}M++}if(T||M>=r)return null;var N=e.slice(U,M);if(N.trim())P=il(N);else{if(Ky(w))return null;P=il(w)}M+=1}else{if(Ky(w))return null;P=il(w)}var L=(K=a.refs)==null?void 0:K[P];if(!L)return null;if(n)return{node:{type:oe.image,target:cl(L.target,(i==null?void 0:i.sanitizer)||$n,"img","src"),alt:dl(_n(w,0,w.length,a,i)),title:L.title},end:M};var B=a.inAnchor;a.inAnchor=!0;var V=B?[{type:oe.text,text:w}]:_n(w,0,w.length,a,i);return a.inAnchor=B,!a.inAnchor&&$f(V)?null:{node:{type:oe.link,target:cl(L.target,(i==null?void 0:i.sanitizer)||$n,"a","href"),title:L.title,children:V},end:M}}function fv(e,t,r){if(e.charCodeAt(t)!==ht)return null;for(var a=t+1;a<r;){var i=e.charCodeAt(a);if(i===qe)break;if(i===ce||i===ye||i===ua||i===ht)return null;a++}if(a>=r||e.charCodeAt(a)!==qe)return null;var n=e.slice(t+1,a),o=n.match(/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^\x00-\x20]*)$/);return o?{node:{type:oe.link,target:n,title:void 0,children:[{type:oe.text,text:n}]},end:a+1}:n.indexOf("@")!==-1&&/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(n)?{node:{type:oe.link,target:`mailto:${n}`,title:void 0,children:[{type:oe.text,text:n}]},end:a+1}:null}function OI(e,t,r,a){if(e.charCodeAt(t)!==Tt||t+1>=r||e.charCodeAt(t+1)!==zn||Lf===Wr&&t>=cv)return null;let i=t+2;for(;i<r&&e.charCodeAt(i)!==an&&e.charCodeAt(i)!==ye;)i++;if(i>=r)return cv=t,Lf=Wr,null;if(e.charCodeAt(i)!==an)return null;let n=e.slice(t+2,i);return n?{node:{type:oe.footnoteReference,target:`#${Ja(n)}`,text:n},end:i+1}:null}function xI(e,t,r,a){if(a.disableBareUrls)return null;var i="",n=!1,o=e.charCodeAt(t);if(o===el||o===72?t+8<=r&&e.charCodeAt(t+1)===Ni&&e.charCodeAt(t+2)===Ni&&e.charCodeAt(t+3)===Sf&&(e.charCodeAt(t+4)===Ay&&e.charCodeAt(t+5)===nr&&e.charCodeAt(t+6)===Pt&&e.charCodeAt(t+7)===Pt?i="https://":e.charCodeAt(t+4)===nr&&e.charCodeAt(t+5)===Pt&&e.charCodeAt(t+6)===Pt&&(i="http://")):o===Va||o===70?t+6<=r&&e.charCodeAt(t+1)===Ni&&e.charCodeAt(t+2)===Sf&&e.charCodeAt(t+3)===nr&&e.charCodeAt(t+4)===Pt&&e.charCodeAt(t+5)===Pt&&(i="ftp://"):(o===Ha||o===87)&&t+4<=r&&e.charCodeAt(t+1)===Ha&&e.charCodeAt(t+2)===Ha&&e.charCodeAt(t+3)===Hr&&(i="www.",n=!0),!i)return null;let s=t+i.length;for(;s<r;){let g=e.charCodeAt(s);if(g===ce||g===ye||g===de||g===ua||g===ht||g===qe)break;s++}for(var c=0,l=0,u=t;u<s;u++){var f=e.charCodeAt(u);f===on?c++:f===sn&&l++}let p=s;for(;p>t+i.length;){let g=e.charCodeAt(p-1);if(g===Hr||g===SP||g===nr||g===ur||g===Di||g===sn||g===Ft||g===_t||g===zt){if(g===sn){if(c>=l)break;l--}p--}else if(g===tl){for(var d=p-2;d>t&&(e.charCodeAt(d)>=Te&&e.charCodeAt(d)<=Ne||e.charCodeAt(d)>=lt&&e.charCodeAt(d)<=bt||e.charCodeAt(d)>=ze&&e.charCodeAt(d)<=$e);)d--;d>=t&&e.charCodeAt(d)===Qs?p=d:p--}else break}if(p<=t+i.length)return null;var h=t+(n?4:i.length),k=e.indexOf("/",h);if((k<0||k>p)&&(k=p),n&&e.indexOf(".",h)===-1)return null;for(var v=-1,y=-1,b=k-1;b>=h;b--)if(e.charCodeAt(b)===Hr)if(v<0)v=b;else{y=b;break}for(var w=y>=0?y+1:h,b=w;b<k;b++)if(e.charCodeAt(b)===_t)return null;var E=e.slice(t,p),m=n?`http://${E}`:E;return{node:{type:oe.link,target:m,title:void 0,children:[{type:oe.text,text:E}]},end:p}}function TI(e,t,r,a){if(a.disableBareUrls)return null;for(var i=t,n=i;i<r;){var o=e.charCodeAt(i);if(o>=Te&&o<=Ne||o>=lt&&o<=bt||o>=ze&&o<=$e||o===Hr||o===ur||o===Br||o===36||o===kf||o===Qs||o===Wa||o===Ft||o===fa||o===Pt||o===Vr||o===Di||o===zn||o===_t||o===tt||o===Ga||o===Ht||o===Ef||o===zt||o===je)i++;else break}if(i===n||i>=r||e.charCodeAt(i)!==Cy)return null;i++;for(var s=i,c=-1,l=i;i<r;){var o=e.charCodeAt(i);if(o>=Te&&o<=Ne||o>=lt&&o<=bt||o>=ze&&o<=$e)i++;else if((o===je||o===_t)&&i>s)i++;else if(o===Hr){if(i===s)break;var u=e.charCodeAt(i-1);if(u===je||u===_t||i-l>63)break;if(i+1<r){var f=e.charCodeAt(i+1);if(f>=Te&&f<=Ne||f>=lt&&f<=bt||f>=ze&&f<=$e)c=i,l=i+1,i++;else break}else break}else break}if(i-l>63||c<0)return null;var p=e.charCodeAt(i-1);if(!(p>=Te&&p<=Ne||p>=lt&&p<=bt||p>=ze&&p<=$e)||i<=c+1)return null;for(var d=-1,h=c-1;h>=s;h--)if(e.charCodeAt(h)===Hr){d=h;break}for(var k=d>=0?d+1:s,h=k;h<i;h++)if(e.charCodeAt(h)===_t)return null;var v=e.slice(t,i);return{node:{type:oe.link,target:`mailto:${v}`,title:void 0,children:[{type:oe.text,text:v}]},end:i}}function $f(e){for(var t=0;t<e.length;t++)if(e[t].type===oe.link||"children"in e[t]&&Array.isArray(e[t].children)&&$f(e[t].children))return!0;return!1}function dl(e,t){for(var r="",a=0;a<e.length;a++){var i=e[a];i.type===oe.text?r+=i.text:i.type===oe.breakLine?r+=" ":i.type===oe.codeInline||i.type===oe.footnoteReference?r+=i.text:"children"in i&&Array.isArray(i.children)?r+=dl(i.children,t):!t&&i.type===oe.image&&(r+=i.alt||"")}return r}function Uf(e,t,r){for(var a=0;a<e.length;a++){var i=e[a];if(i.type===oe.heading){var n=i;n.id=cI(r(dl(n.children,!0)),t)}if("children"in i){var o=i.children;Array.isArray(o)&&Uf(o,t,r)}if((i.type===oe.orderedList||i.type===oe.unorderedList)&&Array.isArray(i.items))for(var s=i.items,c=0;c<s.length;c++)Uf(s[c],t,r)}}function Za(e){return{type:oe.text,text:e}}function PI(e,t,r){var a=t+1;if(a>=r)return-1;if(e.charCodeAt(a)===Br){a++;var i=a<r&&(e.charCodeAt(a)===_y||e.charCodeAt(a)===Oy);i&&a++;for(var n=a,o=i?6:7;a<r&&a-n<=o;){var s=e.charCodeAt(a),c=s>=ze&&s<=$e||i&&(s>=Te&&s<=wf||s>=lt&&s<=Va);if(!c)break;a++}return a===n||a-n>o?-1:a<r&&e.charCodeAt(a)===tl?a+1:-1}for(var l=a;a<r&&a-l<48;){var u=e.charCodeAt(a);if(u>=Te&&u<=Ne||u>=lt&&u<=bt||u>=ze&&u<=$e){a++;continue}break}return a===l?-1:a<r&&e.charCodeAt(a)===tl?a+1:-1}function II(e,t,r,a,i){if(e.charCodeAt(t)!==ht)return null;var n=t+1;if(n>=r)return null;var o=e.charCodeAt(n);if(o===ur&&n+1<r&&e.charCodeAt(n+1)===je&&n+2<r&&e.charCodeAt(n+2)===je){var s=n+3;if(s<r&&e.charCodeAt(s)===qe)return{node:{type:oe.htmlComment,text:"",s:!0},end:s+1};if(s+1<r&&e.charCodeAt(s)===je&&e.charCodeAt(s+1)===qe)return{node:{type:oe.htmlComment,text:"-",s:!0},end:s+2};var c=e.indexOf("-->",s);return c!==-1&&c<=r-3?{node:{type:oe.htmlComment,text:e.slice(t+4,c),s:!1},end:c+3}:null}if(o===Di){var l=e.indexOf("?>",n+1);return l!==-1&&l<r?{node:{type:oe.htmlSelfClosing,tag:"?",attrs:{},m:e.slice(t,l+2),a:!1},end:l+2}:null}if(o===ur&&n+1<r){var u=e.charCodeAt(n+1);if(u===Tt&&e.slice(n+1,n+8)==="[CDATA["){var f=e.indexOf("]]>",n+8);return f!==-1&&f<r?{node:{type:oe.htmlSelfClosing,tag:"![CDATA[",attrs:{},m:e.slice(t,f+3),a:!1},end:f+3}:null}if(u>=Te&&u<=Ne){var p=e.indexOf(">",n+2);return p!==-1&&p<r?{node:{type:oe.htmlSelfClosing,tag:`!${e.slice(n+1,p)}`,attrs:{},m:e.slice(t,p+1),a:!1},end:p+1}:null}}if(o===Pt){var d=n+1;if(d>=r)return null;var h=e.charCodeAt(d);if(!(h>=Te&&h<=Ne||h>=lt&&h<=bt))return null;for(d++;d<r;){var k=e.charCodeAt(d);if(k>=Te&&k<=Ne||k>=lt&&k<=bt||k>=ze&&k<=$e||k===je)d++;else break}for(;d<r&&(e.charCodeAt(d)===ce||e.charCodeAt(d)===de||e.charCodeAt(d)===ye);)d++;if(d<r&&e.charCodeAt(d)===qe){var v=e.slice(n+1,d).trim();return{node:{type:oe.htmlSelfClosing,tag:v,attrs:{},h:e.slice(t,d+1),a:!0},end:d+1}}return null}if(!(o>=Te&&o<=Ne||o>=lt&&o<=bt))return null;var y=Cn(e,t);if(!y)return null;var b=y.tag,w=b.toLowerCase(),E=y.n;if(E||Lo(b))return{node:{type:oe.htmlSelfClosing,tag:b,attrs:An(y.attrs,b,i),m:y.q?Tf(y):e.slice(t,y.end),a:!1},end:y.end};var m=Ro.has(w),g=Df(e.slice(0,r),y.end,b);if(g===-1)return{node:{type:oe.htmlSelfClosing,tag:b,attrs:An(y.attrs,b,i),m:y.q?Tf(y):e.slice(t,y.end),a:!1},end:y.end};var S=hI(e,`</${w}`,g),A=e.slice(y.end,S);if(m){var x=xr(A);return{node:{type:oe.htmlBlock,tag:b,attrs:An(y.attrs,b,i),b:y.g+y.b,children:[],e:x||void 0,h:e.slice(S,g),text:x,c:!0,a:!1},end:g}}var O=[],C=A.trim();if(C){var{inAnchor:_,inline:F,k:I}=a;w==="a"&&(a.inAnchor=!0),a.k=!1;var j=C.indexOf(`
|
|
111
|
+
`)!==-1,f$=Cf.test(Rl),d$=Dv.test(Rl),m$=r.inline,p$=r.inHTML,h$=r.d;r.inHTML=!0,r.d=(r.d||0)+1,c$||f$||d$?(r.inline=!1,wo=jn(ql,r,i)):(r.inline=!0,wo=ia(Rl,!1,r,i)),r.inline=m$,r.inHTML=p$,r.d=h$}var g$=Je(e,pa),y$=e.slice(pa,g$).trim(),q1=y$?pa:Le(e,pa),R1=zd?e.slice(n,pa):e.slice(n,q1);return{node:{type:ne.htmlBlock,tag:Bn,attrs:Wr($t.attrs,Bn,i),b:$t.g+$t.b,children:wo,j:nr(R1),text:zd?ql:R1,c:!0,a:!1},end:q1}}var So=$v(e,$t.end),v$=So<e.length?Le(e,So):So,$d=e.slice($t.end,So);if($d.trim()){var{inline:b$,inHTML:k$,d:w$}=r;r.inline=!1,r.inHTML=!0,r.d=(r.d||0)+1,wo=jn($d,r,i),r.inline=b$,r.inHTML=k$,r.d=w$}var S$=e.slice($t.end,So);return{node:{type:ne.htmlBlock,tag:Bn,attrs:Wr($t.attrs,Bn,i),b:$t.g+$t.b,children:wo,e:nr(S$),text:$d,c:!0,a:!1},end:v$}}function Lj(e,t){if(e.charCodeAt(t)!==it)return 0;var r=t+1,i=e.length;if(e.charCodeAt(r)===Ht&&e.charCodeAt(r+1)===_e&&e.charCodeAt(r+2)===_e)return 2;if(e.charCodeAt(r)===Zi)return 3;if(e.charCodeAt(r)===Ht){var a=e.charCodeAt(r+1);if(a>=we&&a<=Ae)return 4;if(e.slice(r+1,r+8)==="[CDATA[")return 5}for(var n=e.charCodeAt(r)===bt,o=n?r+1:r,s=o;s<i;){var l=e.charCodeAt(s);if(l>=we&&l<=Ae||l>=Ze&&l<=lt||l>=Te&&l<=Ne||l===_e)s++;else break}if(s===o)return 0;var u=e.slice(o,s);if(oo.has(u.toLowerCase())){if(n)return 0;var c=e.charCodeAt(s);return c===oe||c===le||c===Ie||c===fe||s>=i?1:0}if(Is.has(u.toLowerCase())){if(n){for(var f=s;f<i&&(e.charCodeAt(f)===oe||e.charCodeAt(f)===le);)f++;return f<i&&e.charCodeAt(f)===Ie?6:0}var m=s<i?e.charCodeAt(s):-1;return m===oe||m===le||m===Ie||m===fe||m===bt||m===-1?6:0}if(n){for(var d=s;d<i&&(e.charCodeAt(d)===oe||e.charCodeAt(d)===le);)d++;if(d<i&&e.charCodeAt(d)===Ie){var p=Je(e,t),k=e.slice(d+1,p).trim();if(k==="")return 7}}else{var v=Je(e,t),g=Kr(e,t);if(g&&g.end<=v){var b=e.slice(g.end,v).trim();if(b==="")return 7}}return 0}function Yv(e,t,r){for(var i=0,a=e.length;i<a&&(e.charCodeAt(i)===oe||e.charCodeAt(i)===le);)i++;for(;a>i&&(e.charCodeAt(a-1)===oe||e.charCodeAt(a-1)===le);)a--;i<a&&e.charCodeAt(i)===Ft&&i++,a>i&&e.charCodeAt(a-1)===Ft&&(a-2<i||e.charCodeAt(a-2)!==Nt)&&a--;for(var n=[],o=i,s=!1,l=[],u=i;u<a;){var c=e.charCodeAt(u);if(c===Nt&&u+1<a){e.charCodeAt(u+1)===Ft?(s||(s=!0,l=[]),l.push(e.slice(o,u)),l.push("|"),u+=2,o=u):u+=2;continue}if(c===Ge){for(var f=0;u<a&&e.charCodeAt(u)===Ge;)f++,u++;for(var m=!1;u<a&&!m;){for(var d=0;u<a&&e.charCodeAt(u)===Ge;)d++,u++;d===f?m=!0:d===0&&u++}continue}if(c===Ft){var p=s?(l.push(e.slice(o,u)),l.join("")):e.slice(o,u);n.push(p.trim()),u++,o=u,s=!1,l=[];continue}u++}var k=s?(l.push(e.slice(o,a)),l.join("")):e.slice(o,a);return n.push(k.trim()),n.map(v=>{var g=v.indexOf("\\|")===-1?v:v.replace(/\\\|/g,"|");return g?ia(g,!1,t,r):[]})}function Xv(e,t,r,i){let a=Je(e,t);var n=e.indexOf("|",t);if(n<0||n>=a)return null;let o=Le(e,a);if(o>=e.length)return null;let s=Je(e,o);if(!Lv(e,o,s))return null;let l=e.slice(t,a),u=e.slice(o,s);for(var c=[],f=0,m=u.length;f<m&&(u.charCodeAt(f)===oe||u.charCodeAt(f)===le);)f++;for(f<m&&u.charCodeAt(f)===Ft&&f++;f<m;){for(;f<m&&(u.charCodeAt(f)===oe||u.charCodeAt(f)===le);)f++;if(f>=m||u.charCodeAt(f)===Ft)break;var d=u.charCodeAt(f)===Rt;for(d&&f++;f<m&&u.charCodeAt(f)===_e;)f++;var p=f<m&&u.charCodeAt(f)===Rt;for(p&&f++,c.push(d&&p?"center":p?"right":d?"left":null);f<m&&(u.charCodeAt(f)===oe||u.charCodeAt(f)===le);)f++;f<m&&u.charCodeAt(f)===Ft&&f++}let k=Yv(l,r,i);if(c.length!==k.length)return null;let v=[],g=Le(e,s);for(;g<e.length;){let C=Je(e,g),x=e.slice(g,C);if(Wt(e,g,C))break;if(Et(e,g,C),Ye<4){var b=e.charCodeAt(g+Ve);if(b===Ie||b===gr||(b===_e||b===wt||b===gt)&&Fn(e,g))break;if(b===Ge||b===Pt){for(var w=g+Ve,E=0;w<C&&e.charCodeAt(w)===b;)E++,w++;if(E>=3)break}}v.push(Yv(x,r,i)),g=Le(e,C)}if(i.optimizeForStreaming&&v.length===0)return null;for(var h=k.length,y=0;y<v.length;y++)if(v[y].length<h)for(;v[y].length<h;)v[y].push([]);else v[y].length>h&&(v[y].length=h);return{node:{type:ne.table,header:k,cells:v,align:c},end:g}}function qj(e,t,r){var i=Je(e,t);if(Et(e,t,i),Ye>3)return null;var a=t+Ve;if(e.charCodeAt(a)!==vt)return null;if(a+1<e.length&&e.charCodeAt(a+1)===on){var n=Rj(e,a,r);return n||null}r.refs||(r.refs={});var o=Rv(e,a,r.refs);return o===null?null:{node:{type:ne.refCollection},end:o}}function Rj(e,t,r){var i=e.length;if(e.charCodeAt(t)!==vt||t+1>=i||e.charCodeAt(t+1)!==on)return null;for(var a=t+2,n=a;a<i&&e.charCodeAt(a)!==_r;){if(e.charCodeAt(a)===fe)return null;a++}if(a>=i)return null;var o=`^${e.slice(n,a)}`.toLowerCase();if(a++,a>=i||e.charCodeAt(a)!==Rt)return null;for(a++;a<i&&(e.charCodeAt(a)===oe||e.charCodeAt(a)===le);)a++;if(a<i&&e.charCodeAt(a)===fe)for(a++;a<i&&(e.charCodeAt(a)===oe||e.charCodeAt(a)===le);)a++;var s=e.indexOf(`
|
|
112
|
+
`,a);s<0&&(s=i);for(var l=e.slice(a,s).trim(),u=s<i?s+1:i;u<i;){var c=Je(e,u);if(Et(e,u,c),Ye>=2&&!Wt(e,u,c))l+=`
|
|
113
|
+
${e.slice(u,c)}`,u=Le(e,c);else if(Wt(e,u,c)){var f=Le(e,c);if(f<i){var m=Je(e,f);if(Et(e,f,m),Ye>=2){l+=`
|
|
114
|
+
`,u=Le(e,c);continue}}break}else break}var d=r.refs;return d&&!d[o]&&(d[o]={target:l,title:void 0}),{node:{type:ne.footnote},end:u}}function zj(e,t,r,i){let a=t,n=0,o=0,s=-1;for(;a<e.length;){let F=s>=0?s:Je(e,a);if(s=-1,Wt(e,a,F))break;if(Et(e,a,F),Ye<4&&o>0&&!r.l){let M=e.charCodeAt(a+Ve);if(M===yr||M===_e){let q=a+Ve;for(;q<F&&e.charCodeAt(q)===M;)q++;for(;q<F&&(e.charCodeAt(q)===oe||e.charCodeAt(q)===le);)q++;if(q>=F){n=M===yr?1:2,a=Le(e,F);break}}}o=F;let T=Le(e,F);if(T<e.length){if(e.charCodeAt(T)===bf){var l=Je(e,T);a=Le(e,l),o=l;continue}let M=Je(e,T);if(s=M,Et(e,T,M),Ye<4){let q=e.charCodeAt(T+Ve);if(q===Ie){a=T;break}if(q===gr){for(var u=T+Ve,c=0;u<M&&e.charCodeAt(u)===gr&&c<=6;)c++,u++;if(c>=1&&c<=6&&(u>=M||e.charCodeAt(u)===oe||e.charCodeAt(u)===le)){a=T;break}}if(q===Ge||q===Pt){for(var f=T+Ve,m=0;f<M&&e.charCodeAt(f)===q;)m++,f++;if(m>=3){a=T;break}}if(q===it){var d=T+Ve+1,p=d<M?e.charCodeAt(d):0,k=p===Ht||p===Zi;if(!k&&p===bt){for(var v=d+1,g=v;g<M&&(e.charCodeAt(g)>=we&&e.charCodeAt(g)<=Ae||e.charCodeAt(g)>=Ze&&e.charCodeAt(g)<=lt||e.charCodeAt(g)>=Te&&e.charCodeAt(g)<=Ne||e.charCodeAt(g)===_e);)g++;g>v&&(k=Is.has(e.slice(v,g).toLowerCase()))}else if(!k){for(var b=d;b<M&&(e.charCodeAt(b)>=we&&e.charCodeAt(b)<=Ae||e.charCodeAt(b)>=Ze&&e.charCodeAt(b)<=lt||e.charCodeAt(b)>=Te&&e.charCodeAt(b)<=Ne||e.charCodeAt(b)===_e);)b++;if(b>d){var w=e.slice(d,b).toLowerCase();k=Is.has(w)||oo.has(w)}}if(k&&Jv(e,T,r,i)){a=T;break}}if(q===_e||q===wt||q===Pn){let J=T+Ve+1;if(J<M&&(e.charCodeAt(J)===oe||e.charCodeAt(J)===le)){var E=so(e,J,M);if(E<M&&!Fn(e,T)){a=T;break}}}if(q>=Te&&q<=Ne){let J=T+Ve;for(;J<M&&e.charCodeAt(J)>=Te&&e.charCodeAt(J)<=Ne;)J++;if(J<M&&(e.charCodeAt(J)===vr||e.charCodeAt(J)===Ir)&&J-(T+Ve)===1&&e.charCodeAt(T+Ve)===49){var h=J+1;if(h<M&&(e.charCodeAt(h)===oe||e.charCodeAt(h)===le)){var y=so(e,h,M);if(y<M){a=T;break}}}}if(q===Ft){let J=Le(e,M);if(J<e.length){let Y=Je(e,J);if(Lv(e,J,Y)){a=T;break}}}if((q===_e||q===wt||q===gt)&&Fn(e,T)){if(q!==_e){a=T;break}let J=T+Ve;for(;J<M&&e.charCodeAt(J)===_e;)J++;for(;J<M&&(e.charCodeAt(J)===oe||e.charCodeAt(J)===le);)J++;if(J<M){a=T;break}}}}a=Le(e,F)}for(var C=n?o:a;C>t&&(e.charCodeAt(C-1)===fe||e.charCodeAt(C-1)===_n||e.charCodeAt(C-1)===oe||e.charCodeAt(C-1)===le);)C--;for(var x=t;x<C&&(e.charCodeAt(x)===oe||e.charCodeAt(x)===le);)x++;if(x>=C)return null;for(var _=!1,S=x;S<C;S++)if(e.charCodeAt(S)===bf){_=!0;break}var A=_?e.slice(x,C).replace(/\u001E/g,""):e.slice(x,C);if(!A)return null;let O=ia(A,!0,r,i);return n?{node:{type:ne.heading,level:n,children:O,id:""},end:a}:{node:{type:ne.paragraph,children:O},end:a}}function ia(e,t,r,i){var a=r.t;if(!a){var n=r.k;r.k=t;var o=Gr(e,0,e.length,r,i);return r.k=n,o}var s=[];return a.push({dest:s,text:e,breaks:t,inline:r.inline,inAnchor:r.inAnchor,inHTML:r.inHTML,htmlDepth:r.d,inList:r.inList,inBlockQuote:r.inBlockQuote,noSetext:r.l,depth:r.o}),s}function $j(e,t,r){if(e.charCodeAt(t)!==Ge)return null;let i=Nn(e,t,r,96),a=t+i;for(;a<r;){let n=e.indexOf("`",a);if(n<0||n>=r)return null;let o=Nn(e,n,r,96);if(o===i){let s=e.slice(t+i,n);return s.indexOf(`
|
|
115
|
+
`)!==-1&&(s=s.replace(/\n/g," ")),s.length>0&&s[0]===" "&&s.at(-1)===" "&&s.trim().length>0&&(s=s.slice(1,-1)),{node:{type:ne.codeInline,text:s},end:n+o}}a=n+o}return null}function Pf(e,t,r){if(e.charCodeAt(t)!==Ge)return t;let i=Nn(e,t,r,96),a=t+i;for(;a<r;){let n=e.indexOf("`",a);if(n<0||n>=r)return t;let o=Nn(e,n,r,96);if(o===i)return n+o;a=n+o}return t}function Uj(e,t,r){if(e.charCodeAt(t)!==it)return t;if(t+1<r&&e.charCodeAt(t+1)===bt){let u=t+2;for(;u<r&&e.charCodeAt(u)!==Ie;)u++;return u<r?u+1:t}if(t+3<r&&e.charCodeAt(t+1)===Ht&&e.charCodeAt(t+2)===_e&&e.charCodeAt(t+3)===_e){let u=e.indexOf("-->",t+4);return u>=0?u+3:t}let i=t+1,a=i;for(;i<r;){let u=e.charCodeAt(i);if(u>=we&&u<=Ae||u>=Ze&&u<=lt||u>=Te&&u<=Ne||u===_e)i++;else break}if(i===a)return t;let n=e.slice(a,i).toLowerCase(),o=!1;for(;i<r;){let u=e.charCodeAt(i);if(u===Ie){i++;break}if(u===bt&&i+1<r&&e.charCodeAt(i+1)===Ie){i+=2,o=!0;break}if(u===fi||u===ci){var s=u;for(i++;i<r&&e.charCodeAt(i)!==s;)i++;i<r&&i++;continue}if(u===fe)return t;i++}if(o||ao(n))return i;let l=1;for(;i<r&&l>0;)if(e.charCodeAt(i)===it)if(i+1<r&&e.charCodeAt(i+1)===bt){let u=i+2,c=u;for(;c<r&&(e.charCodeAt(c)>=we&&e.charCodeAt(c)<=Ae||e.charCodeAt(c)>=Ze&&e.charCodeAt(c)<=lt);)c++;if(e.slice(u,c).toLowerCase()===n){for(;c<r&&e.charCodeAt(c)!==Ie;)c++;if(c<r&&c++,l--,l===0)return c}i=c}else{let u=i+1,c=u;for(;c<r&&(e.charCodeAt(c)>=we&&e.charCodeAt(c)<=Ae||e.charCodeAt(c)>=Ze&&e.charCodeAt(c)<=lt);)c++;e.slice(u,c).toLowerCase()===n&&l++,i++}else i++;return i}function Bj(e,t,r,i,a){if(e.charCodeAt(t)!==Pt||t+1>=r||e.charCodeAt(t+1)!==Pt)return null;let n=t+2;for(;n+1<r;){let o=e.charCodeAt(n);if(o===Ge){let s=Pf(e,n,r);if(s>n){n=s;continue}}if(o===Pt&&e.charCodeAt(n+1)===Pt){let s=e.slice(t+2,n),l=Gr(s,0,s.length,i,a);return{node:{type:ne.textFormatted,tag:"del",children:l},end:n+2}}o===Nt&&n+1<r&&n++,n++}return null}function Vj(e,t,r,i,a){if(e.charCodeAt(t)!==yr||t+1>=r||e.charCodeAt(t+1)!==yr)return null;let n=t+2;for(;n+1<r;){let o=e.charCodeAt(n);if(o===Ge){let s=Pf(e,n,r);if(s>n){n=s;continue}}if(o===yr&&e.charCodeAt(n+1)===yr&&n>t+2){let s=e.slice(t+2,n),l=Gr(s,0,s.length,i,a);return{node:{type:ne.textFormatted,tag:"mark",children:l},end:n+2}}o===Nt&&n+1<r&&n++,n++}return null}function Zv(e,t,r){return e<As?!!(Af(e)&Qi):rj.test(t[r])}function Qv(e,t,r){return e<As?!!(Af(e)&pi):nj.test(t[r])}function Hj(e,t,r){var i=e.charCodeAt(t);if(i!==wt&&i!==gt)return null;var a=Nn(e,t,r,i);if(a===0)return null;var n=t>0?e.charCodeAt(t-1):32,o=t+a<r?e.charCodeAt(t+a):32,s=Qv(n,e,t-1),l=Qv(o,e,t+a),u=t>0?Zv(n,e,t-1):!1,c=t+a<r?Zv(o,e,t+a):!1,f=!l&&(!c||s||u),m=!s&&(!u||l||c),d,p;return i===wt?(d=f,p=m):(d=f&&(!m||u),p=m&&(!f||c)),{len:a,canOpen:d,canClose:p}}function Kj(e,t,r,i){if(t.length!==0){for(var a=e.length,n=Array(a),o=null,s=null,l=0;l<a;l++){var u={node:e[l],prev:s,next:null};s?s.next=u:o=u,n[l]=u,s=u}for(var c=Array(t.length),f=0;f<t.length;f++)c[f]=n[t[f].idx];for(var m=[],d=0;d<12;d++)m[d]=-1;for(var p=0;p<t.length;){var k=t[p];if(!(k.active&&k.canClose)){p++;continue}for(var v=k.ch===wt?0:1,g=v*6+k.len%3*2+(k.canOpen?1:0),b=m[g]===void 0?-1:m[g],w=-1,E=p-1;E>b;E--){var h=t[E];if(!(!h.active||h.ch!==k.ch||!h.canOpen)&&!((k.canOpen||h.canClose)&&(h.len+k.len)%3===0&&h.len%3!==0)){w=E;break}}if(w<0){m[g]=p-1,!k.canOpen&&(k.active=!1),p++;continue}var y=t[w],C=y.len>=2&&k.len>=2,x=C?2:1;y.len-=x,k.len-=x;var _=c[w],S=c[p],A=_.node,O=S.node;A.text=A.text.slice(0,A.text.length-x),O.text=O.text.slice(x);for(var F=[],T=_.next;T&&T!==S;)F.push(T.node),T=T.next;var M={type:ne.textFormatted,tag:C?"strong":"em",children:F},q={node:M,prev:_,next:S};_.next=q,S.prev=q;for(var J=w+1;J<p;J++)t[J].active=!1;if(y.len===0&&(y.active=!1,A.text==="")){var Y=_.prev;q.prev=Y,Y?Y.next=q:o=q}if(k.len===0){if(k.active=!1,O.text===""){var Q=S.next;q.next=Q,Q&&(Q.prev=q)}}else continue;p++}for(var P=0,j=o;j;){var B=j.node;if(B.type===ne.text){var I=B;if(I.text===""){j=j.next;continue}if(P>0&&e[P-1].type===ne.text){e[P-1].text+=I.text,j=j.next;continue}}e[P++]=B,j=j.next}e.length=P}}function Ns(e,t,r,i){return t(e,r,i)===null?null:e}var eb=0,If=0,tb=0,Tf=0,rb=0,Nf=0,Ff=0,br=0;function Wj(){return Ff===2147483647&&(If=0,Tf=0,Nf=0,Fs=0,Ff=0),++Ff}var Df=null,Fs=0,Ds=[],Mf=256;function nb(e,t,r,i,a){var H;let n=e.charCodeAt(t)===Ht,o=n?t+1:t;if(e.charCodeAt(o)!==vt||Tf===br&&o>=tb)return null;var s=Fs===br?Df:null,l=s===null?0:s[o];if(l<0)return null;var u=l;if(l===0){var c=e.indexOf("]",o+1);if(c<0||c>=r)return tb=o,Tf=br,null;u=o+1;var f=0;Ds[f++]=o;for(var m=r-o>=Mf;u<r&&f>0;){var d=e.charCodeAt(u);if(d===Nt&&u+1<r){u+=2;continue}if(d===Ge){var p=Pf(e,u,r);if(p>u){u=p;continue}}if(d===it){var k=ib(e,u,r);if(k){u=k.end;continue}var v=Uj(e,u,r);if(v>u){u=v;continue}}if(d===vt)Ds[f++]=u;else if(d===_r){var g=Ds[--f];s===null&&m&&u-o>=Mf&&(s=Df=new Int32Array(r),Fs=br),s!==null&&(s[g]=u+1)}u++}if(f>0){if(s===null&&m&&u-o>=Mf&&(s=Df=new Int32Array(r),Fs=br),s!==null)for(;f>0;)s[Ds[--f]]=-1;return null}}var b=u-1,w=e.slice(o+1,b),E=u<r?e.charCodeAt(u):0,h=!1;if(E===Pr){var y=!0;for(u++;u<r&&(e.charCodeAt(u)===oe||e.charCodeAt(u)===fe);)u++;var C="",x=u;if(u<r&&e.charCodeAt(u)===it){for(u++,x=u;x<r&&e.charCodeAt(x)!==Ie;){if(e.charCodeAt(x)===Nt&&x+1<r){x+=2;continue}if(e.charCodeAt(x)===fe){y=!1;break}x++}y&&(x>=r||e.charCodeAt(x)!==Ie)&&(y=!1),y&&(C=e.slice(u,x),x++)}else if(y){var _=If===br?eb:-1;if(_>=0&&u>=_)y=!1;else{for(var S=0,A=!1;x<r;){var O=e.charCodeAt(x);if(O===Nt&&x+1<r){x+=2;continue}if(O===Pr)S++;else if(O===Ir){if(A=!0,S===0)break;S--}else if(O===oe||O===fe)break;x++}x>=r&&!A&&(_<0||u<_)&&(eb=u,If=br),C=e.slice(u,x)}}if(y){for(u=x;u<r&&(e.charCodeAt(u)===oe||e.charCodeAt(u)===fe);)u++;var F;if(u<r){var T=e.charCodeAt(u);if(T===fi||T===ci||T===Pr){var M=T===Pr?41:T;u++;for(var q=u;u<r&&e.charCodeAt(u)!==M;)e.charCodeAt(u)===Nt&&u+1<r&&u++,u++;u>=r?y=!1:(F=e.slice(q,u),u++)}}if(y){for(;u<r&&(e.charCodeAt(u)===oe||e.charCodeAt(u)===fe);)u++;(u>=r||e.charCodeAt(u)!==Ir)&&(y=!1)}}if(y){if(u++,C=In(ra(C)),F!==void 0&&(F=In(ra(F))),n){var J=Gr(w,0,w.length,i,a),Y=Ms(J);return{node:{type:ne.image,target:Ns(C,(a==null?void 0:a.sanitizer)||sn,"img","src"),alt:Y,title:F},end:u}}var Q=i.inAnchor;i.inAnchor=!0;var $=Q?[{type:ne.text,text:w}]:Gr(w,0,w.length,i,a);return i.inAnchor=Q,!i.inAnchor&&jf($)?null:{node:{type:ne.link,target:Ns(C,(a==null?void 0:a.sanitizer)||sn,"a","href"),title:F,children:$},end:u}}u=b+1,h=!0}var P="",j=u;if(!h&&E===vt){var B=u+1;j=B;for(var I=!1;j<r&&e.charCodeAt(j)!==_r;){if(e.charCodeAt(j)===Nt&&j+1<r){j+=2;continue}if(e.charCodeAt(j)===vt){I=!0;break}j++}if(I||j>=r)return null;var D=e.slice(B,j);if(D.trim())P=_s(D);else{if(zv(w))return null;P=_s(w)}j+=1}else{if(zv(w))return null;P=_s(w)}var L=(H=i.refs)==null?void 0:H[P];if(!L)return null;if(n)return{node:{type:ne.image,target:Ns(L.target,(a==null?void 0:a.sanitizer)||sn,"img","src"),alt:Ms(Gr(w,0,w.length,i,a)),title:L.title},end:j};var U=i.inAnchor;i.inAnchor=!0;var $=U?[{type:ne.text,text:w}]:Gr(w,0,w.length,i,a);return i.inAnchor=U,!i.inAnchor&&jf($)?null:{node:{type:ne.link,target:Ns(L.target,(a==null?void 0:a.sanitizer)||sn,"a","href"),title:L.title,children:$},end:j}}function ib(e,t,r){if(e.charCodeAt(t)!==it)return null;for(var i=t+1;i<r;){var a=e.charCodeAt(i);if(a===Ie)break;if(a===oe||a===fe||a===_n||a===it)return null;i++}if(i>=r||e.charCodeAt(i)!==Ie)return null;var n=e.slice(t+1,i),o=n.match(/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^\x00-\x20]*)$/);return o?{node:{type:ne.link,target:n,title:void 0,children:[{type:ne.text,text:n}]},end:i+1}:n.indexOf("@")!==-1&&/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(n)?{node:{type:ne.link,target:`mailto:${n}`,title:void 0,children:[{type:ne.text,text:n}]},end:i+1}:null}function Gj(e,t,r,i){if(e.charCodeAt(t)!==vt||t+1>=r||e.charCodeAt(t+1)!==on||Nf===br&&t>=rb)return null;let a=t+2;for(;a<r&&e.charCodeAt(a)!==_r&&e.charCodeAt(a)!==fe;)a++;if(a>=r)return rb=t,Nf=br,null;if(e.charCodeAt(a)!==_r)return null;let n=e.slice(t+2,a);return n?{node:{type:ne.footnoteReference,target:`#${mi(n)}`,text:n},end:a+1}:null}function Jj(e,t,r,i){if(i.disableBareUrls)return null;var a="",n=!1,o=e.charCodeAt(t);if(o===Cs||o===72?t+8<=r&&e.charCodeAt(t+1)===Xi&&e.charCodeAt(t+2)===Xi&&e.charCodeAt(t+3)===yf&&(e.charCodeAt(t+4)===vv&&e.charCodeAt(t+5)===Rt&&e.charCodeAt(t+6)===bt&&e.charCodeAt(t+7)===bt?a="https://":e.charCodeAt(t+4)===Rt&&e.charCodeAt(t+5)===bt&&e.charCodeAt(t+6)===bt&&(a="http://")):o===li||o===70?t+6<=r&&e.charCodeAt(t+1)===Xi&&e.charCodeAt(t+2)===yf&&e.charCodeAt(t+3)===Rt&&e.charCodeAt(t+4)===bt&&e.charCodeAt(t+5)===bt&&(a="ftp://"):(o===ui||o===87)&&t+4<=r&&e.charCodeAt(t+1)===ui&&e.charCodeAt(t+2)===ui&&e.charCodeAt(t+3)===vr&&(a="www.",n=!0),!a)return null;let s=t+a.length;for(;s<r;){let y=e.charCodeAt(s);if(y===oe||y===fe||y===le||y===_n||y===it||y===Ie)break;s++}for(var l=0,u=0,c=t;c<s;c++){var f=e.charCodeAt(c);f===Pr?l++:f===Ir&&u++}let m=s;for(;m>t+a.length;){let y=e.charCodeAt(m-1);if(y===vr||y===BM||y===Rt||y===Ht||y===Zi||y===Ir||y===wt||y===gt||y===Pt){if(y===Ir){if(l>=u)break;u--}m--}else if(y===Es){for(var d=m-2;d>t&&(e.charCodeAt(d)>=we&&e.charCodeAt(d)<=Ae||e.charCodeAt(d)>=Ze&&e.charCodeAt(d)<=lt||e.charCodeAt(d)>=Te&&e.charCodeAt(d)<=Ne);)d--;d>=t&&e.charCodeAt(d)===Ss?m=d:m--}else break}if(m<=t+a.length)return null;var p=t+(n?4:a.length),k=e.indexOf("/",p);if((k<0||k>m)&&(k=m),n&&e.indexOf(".",p)===-1)return null;for(var v=-1,g=-1,b=k-1;b>=p;b--)if(e.charCodeAt(b)===vr)if(v<0)v=b;else{g=b;break}for(var w=g>=0?g+1:p,b=w;b<k;b++)if(e.charCodeAt(b)===gt)return null;var E=e.slice(t,m),h=n?`http://${E}`:E;return{node:{type:ne.link,target:h,title:void 0,children:[{type:ne.text,text:E}]},end:m}}function Yj(e,t,r,i){if(i.disableBareUrls)return null;for(var a=t,n=a;a<r;){var o=e.charCodeAt(a);if(o>=we&&o<=Ae||o>=Ze&&o<=lt||o>=Te&&o<=Ne||o===vr||o===Ht||o===gr||o===36||o===hf||o===Ss||o===ci||o===wt||o===Pn||o===bt||o===yr||o===Zi||o===on||o===gt||o===Ge||o===di||o===Ft||o===vf||o===Pt||o===_e)a++;else break}if(a===n||a>=r||e.charCodeAt(a)!==yv)return null;a++;for(var s=a,l=-1,u=a;a<r;){var o=e.charCodeAt(a);if(o>=we&&o<=Ae||o>=Ze&&o<=lt||o>=Te&&o<=Ne)a++;else if((o===_e||o===gt)&&a>s)a++;else if(o===vr){if(a===s)break;var c=e.charCodeAt(a-1);if(c===_e||c===gt||a-u>63)break;if(a+1<r){var f=e.charCodeAt(a+1);if(f>=we&&f<=Ae||f>=Ze&&f<=lt||f>=Te&&f<=Ne)l=a,u=a+1,a++;else break}else break}else break}if(a-u>63||l<0)return null;var m=e.charCodeAt(a-1);if(!(m>=we&&m<=Ae||m>=Ze&&m<=lt||m>=Te&&m<=Ne)||a<=l+1)return null;for(var d=-1,p=l-1;p>=s;p--)if(e.charCodeAt(p)===vr){d=p;break}for(var k=d>=0?d+1:s,p=k;p<a;p++)if(e.charCodeAt(p)===gt)return null;var v=e.slice(t,a);return{node:{type:ne.link,target:`mailto:${v}`,title:void 0,children:[{type:ne.text,text:v}]},end:a}}function jf(e){for(var t=0;t<e.length;t++)if(e[t].type===ne.link||"children"in e[t]&&Array.isArray(e[t].children)&&jf(e[t].children))return!0;return!1}function Ms(e,t){for(var r="",i=0;i<e.length;i++){var a=e[i];a.type===ne.text?r+=a.text:a.type===ne.breakLine?r+=" ":a.type===ne.codeInline||a.type===ne.footnoteReference?r+=a.text:"children"in a&&Array.isArray(a.children)?r+=Ms(a.children,t):!t&&a.type===ne.image&&(r+=a.alt||"")}return r}function Lf(e,t,r){for(var i=0;i<e.length;i++){var a=e[i];if(a.type===ne.heading){var n=a;n.id=Ij(r(Ms(n.children,!0)),t)}if("children"in a){var o=a.children;Array.isArray(o)&&Lf(o,t,r)}if((a.type===ne.orderedList||a.type===ne.unorderedList)&&Array.isArray(a.items))for(var s=a.items,l=0;l<s.length;l++)Lf(s[l],t,r)}}function gi(e){return{type:ne.text,text:e}}function Xj(e,t,r){var i=t+1;if(i>=r)return-1;if(e.charCodeAt(i)===gr){i++;var a=i<r&&(e.charCodeAt(i)===bv||e.charCodeAt(i)===kv);a&&i++;for(var n=i,o=a?6:7;i<r&&i-n<=o;){var s=e.charCodeAt(i),l=s>=Te&&s<=Ne||a&&(s>=we&&s<=gf||s>=Ze&&s<=li);if(!l)break;i++}return i===n||i-n>o?-1:i<r&&e.charCodeAt(i)===Es?i+1:-1}for(var u=i;i<r&&i-u<48;){var c=e.charCodeAt(i);if(c>=we&&c<=Ae||c>=Ze&&c<=lt||c>=Te&&c<=Ne){i++;continue}break}return i===u?-1:i<r&&e.charCodeAt(i)===Es?i+1:-1}function Zj(e,t,r,i,a){if(e.charCodeAt(t)!==it)return null;var n=t+1;if(n>=r)return null;var o=e.charCodeAt(n);if(o===Ht&&n+1<r&&e.charCodeAt(n+1)===_e&&n+2<r&&e.charCodeAt(n+2)===_e){var s=n+3;if(s<r&&e.charCodeAt(s)===Ie)return{node:{type:ne.htmlComment,text:"",s:!0},end:s+1};if(s+1<r&&e.charCodeAt(s)===_e&&e.charCodeAt(s+1)===Ie)return{node:{type:ne.htmlComment,text:"-",s:!0},end:s+2};var l=e.indexOf("-->",s);return l!==-1&&l<=r-3?{node:{type:ne.htmlComment,text:e.slice(t+4,l),s:!1},end:l+3}:null}if(o===Zi){var u=e.indexOf("?>",n+1);return u!==-1&&u<r?{node:{type:ne.htmlSelfClosing,tag:"?",attrs:{},m:e.slice(t,u+2),a:!1},end:u+2}:null}if(o===Ht&&n+1<r){var c=e.charCodeAt(n+1);if(c===vt&&e.slice(n+1,n+8)==="[CDATA["){var f=e.indexOf("]]>",n+8);return f!==-1&&f<r?{node:{type:ne.htmlSelfClosing,tag:"![CDATA[",attrs:{},m:e.slice(t,f+3),a:!1},end:f+3}:null}if(c>=we&&c<=Ae){var m=e.indexOf(">",n+2);return m!==-1&&m<r?{node:{type:ne.htmlSelfClosing,tag:`!${e.slice(n+1,m)}`,attrs:{},m:e.slice(t,m+1),a:!1},end:m+1}:null}}if(o===bt){var d=n+1;if(d>=r)return null;var p=e.charCodeAt(d);if(!(p>=we&&p<=Ae||p>=Ze&&p<=lt))return null;for(d++;d<r;){var k=e.charCodeAt(d);if(k>=we&&k<=Ae||k>=Ze&&k<=lt||k>=Te&&k<=Ne||k===_e)d++;else break}for(;d<r&&(e.charCodeAt(d)===oe||e.charCodeAt(d)===le||e.charCodeAt(d)===fe);)d++;if(d<r&&e.charCodeAt(d)===Ie){var v=e.slice(n+1,d).trim();return{node:{type:ne.htmlSelfClosing,tag:v,attrs:{},h:e.slice(t,d+1),a:!0},end:d+1}}return null}if(!(o>=we&&o<=Ae||o>=Ze&&o<=lt))return null;var g=Kr(e,t);if(!g)return null;var b=g.tag,w=b.toLowerCase(),E=g.n;if(E||ao(b))return{node:{type:ne.htmlSelfClosing,tag:b,attrs:Wr(g.attrs,b,a),m:g.q?Ef(g):e.slice(t,g.end),a:!1},end:g.end};var h=oo.has(w),y=_f(e.slice(0,r),g.end,b);if(y===-1)return{node:{type:ne.htmlSelfClosing,tag:b,attrs:Wr(g.attrs,b,a),m:g.q?Ef(g):e.slice(t,g.end),a:!1},end:g.end};var C=jj(e,`</${w}`,y),x=e.slice(g.end,C);if(h){var _=nr(x);return{node:{type:ne.htmlBlock,tag:b,attrs:Wr(g.attrs,b,a),b:g.g+g.b,children:[],e:_||void 0,h:e.slice(C,y),text:_,c:!0,a:!1},end:y}}var S=[],A=x.trim();if(A){var{inAnchor:O,inline:F,k:T}=i;w==="a"&&(i.inAnchor=!0),i.k=!1;var M=A.indexOf(`
|
|
90
116
|
|
|
91
|
-
`)!==-1||/^#{1,6}\s/.test(
|
|
92
|
-
`,t++;t<r&&e.charCodeAt(t)===
|
|
93
|
-
`),
|
|
94
|
-
`,
|
|
95
|
-
`,
|
|
96
|
-
`,
|
|
97
|
-
`)||
|
|
98
|
-
`),endPos:i.end}:null}function Bf(e,t,r){zo=0,e=LP(e),!t.refs&&(t.refs={}),(r.optimizeForStreaming||t.inline)&&(t.w=lI(e,t.refs,r));var a,i;t.t||(t.t=a=[],t.p=i=[]);let n=va(e,t,r);if(a&&i){for(var o=a,s={inline:t.inline,inAnchor:t.inAnchor,inHTML:t.inHTML,htmlDepth:t.d,inList:t.inList,inBlockQuote:t.inBlockQuote,noSetext:t.l,depth:t.o},c=0;c<o.length;c++){var l=o[c];t.inline=l.inline,t.inAnchor=l.inAnchor,t.inHTML=l.inHTML,t.d=l.htmlDepth,t.inList=l.inList,t.inBlockQuote=l.inBlockQuote,t.l=l.noSetext,t.o=l.depth,t.k=l.breaks;var u=_n(l.text,0,l.text.length,t,r);t.k=!1;for(var f=0;f<u.length;f++)l.dest.push(u[f])}t.inline=s.inline,t.inAnchor=s.inAnchor,t.inHTML=s.inHTML,t.d=s.htmlDepth,t.inList=s.inList,t.inBlockQuote=s.inBlockQuote,t.l=s.noSetext,t.o=s.depth;for(var p=i,d=0;d<p.length;d++)for(var h=p[d],k=0;k<h.src.length;k++){var v=h.src[k];if(h.unwrap&&v.type===oe.paragraph)for(var y=v.children,b=0;b<y.length;b++)h.dest.push(y[b]);else h.dest.push(v)}t.t=void 0,t.p=void 0,Uf(n,t,r.slugify)}return Fy(t.refs)?[{type:oe.refCollection,refs:t.refs},...n]:n}var Vf;try{zi=Fn.createElement("div"),Vf=zi!=null&&typeof zi=="object"&&"$$typeof"in zi&&typeof zi.$$typeof=="symbol"?zi.$$typeof:Symbol.for("react.transitional.element")}catch{Vf=Symbol.for("react.transitional.element")}var zi;function Hf(e,t,r){return{$$typeof:Vf,type:e,key:r==null?null:String(r),ref:null,props:t,_owner:null,_store:{},_debugStack:null,_debugTask:null}}function Kr(e,t){var r={key:e};if(t){var a=xy(t);for(var i in a)r[i]=a[i]}return r}var dv=typeof Fn.createContext>"u"?void 0:Fn.createContext(void 0);function pv(e,t,r,a,i,n,o,s,c){switch(e.type){case oe.blockQuote:{let y={key:r.key};return e.alert&&(y.className=`markdown-alert-${n(e.alert.toLowerCase(),Ja)}`,e.children.unshift(zP(e.alert))),a("blockquote",y,t(e.children,r))}case oe.breakLine:return a("br",{key:r.key});case oe.breakThematic:return a("hr",{key:r.key});case oe.frontmatter:return s.preserveFrontmatter?a("pre",{key:r.key},e.text):null;case oe.codeBlock:{let y=e.lang?da(e.lang):"";var l=e.attrs?xy(e.attrs):{};return l.className=y?`language-${y} lang-${y}`:"",a("pre",{key:r.key},a("code",l,e.text))}case oe.codeInline:return a("code",{key:r.key},e.text);case oe.footnoteReference:return a("a",{key:r.key,href:i(e.target,"a","href")||void 0},a("sup",null,e.text));case oe.gfmTask:return a("input",{checked:e.completed,key:r.key,readOnly:!0,type:"checkbox"});case oe.heading:return a(`h${e.level}`,{id:e.id,key:r.key},t(e.children,r));case oe.htmlBlock:{let y=e;if(ji(s)&&Ry(y.tag)){var u=Ly(y);return u.kind==="literal"?a("span",{key:r.key},u.literal):a("span",{key:r.key},...HP(u.open,y.children?t(y.children,r):null,u.close))}let b=y.j,w=b!==void 0,E=w?b:y.a?y.e||"":(y.e||"")+(y.h||"");if(E&&y.c){let m=y.tag.toLowerCase(),g=tI(m),S=y.children,A=S!=null&&S.length>0;if(g){let j=w?b:y.e||"",$=ji(s)?qy(j):j;if(/<[a-z][^>]{0,100}>/i.test(E)){var f=Kr(r.key,e.attrs);return f.dangerouslySetInnerHTML={__html:$},c(e.tag,f)}return c(e.tag,Kr(r.key,e.attrs),$)}let x=new RegExp(`^<${y.tag}(\\s|>)`,"i");if(A&&!x.test(E)&&ji(s)&&XP(E))return c(e.tag,Kr(r.key,e.attrs),t(S,r));if(rI(E)){let j=ji(s)?qy(E):E;var p=Kr(r.key,e.attrs);return p.dangerouslySetInnerHTML={__html:j},c(e.tag,p)}let O=_f({slugify:s.slugify,sanitizer:i,tagfilter:!0}),C=RP(E);if(new RegExp(`^<${y.tag}(\\s[^>]*)?>(\\s*</${y.tag}>)?$`,"i").test(C))return y.children&&y.children.length>0?c(e.tag,Kr(r.key,e.attrs),t(y.children,r)):c(e.tag,Kr(r.key,e.attrs));let _=Bf(C,{inline:!1,refs:o,inHTML:!1},O);My(_);let F=y.tag.toLowerCase(),I=w;if(I&&A)return c(e.tag,Kr(r.key,e.attrs),t(S,r));if(I)return t(_.flatMap(Mi),r);var d=BP(_,F);if(d.found&&d.afterClose.length>0){var h=d.beforeClose.flatMap(Mi),k=d.afterClose.flatMap(Mi);return Hf(Fn.Fragment,{children:[c(e.tag,Kr(r.key,e.attrs),t(h,r)),t(k,r)]},r.key)}return c(e.tag,Kr(r.key,e.attrs),t(_.flatMap(Mi),r))}return Lo(e.tag)?c(e.tag,Kr(r.key,e.attrs)):c(e.tag,Kr(r.key,e.attrs),e.children?t(e.children,r):"")}case oe.htmlSelfClosing:{let y=e;if(ji(s)&&Ry(y.tag)){var v=Ly(y);return a("span",{key:r.key},v.kind==="literal"?v.literal:v.open+(v.close||""))}return c(e.tag,Kr(r.key,e.attrs))}case oe.image:{let y=e.target===null?null:i(e.target,"img","src");return a("img",{key:r.key,alt:e.alt&&e.alt.length>0?e.alt:void 0,title:e.title||void 0,src:y||void 0})}case oe.link:{let y={key:r.key};if(e.target!=null){let b=WP(e.target,i,"a","href");b!=null&&(y.href=b)}return e.title&&(y.title=e.title),a("a",y,t(e.children,r))}case oe.table:{let y=e;return a("table",{key:r.key},a("thead",{key:"thead"},a("tr",null,y.header.map(function(b,w){return a("th",{key:w,style:y.align[w]===null?{}:{textAlign:y.align[w]}},t(b,r))}))),y.cells.length>0&&a("tbody",{key:"tbody"},y.cells.map(function(b,w){return a("tr",{key:w},b.map(function(E,m){return a("td",{key:m,style:y.align[m]===null?{}:{textAlign:y.align[m]}},t(E,r))}))})))}case oe.text:return e.text;case oe.textFormatted:return a(e.tag,{key:r.key},t(e.children,r));case oe.orderedList:case oe.unorderedList:{let y=e.type===oe.orderedList?"ol":"ul";return a(y,{key:r.key,start:e.type===oe.orderedList?e.start:void 0},e.items.map(function(b,w){return a("li",{key:w},t(b,r))}))}case oe.paragraph:return a("p",{key:r.key},t(e.children,r));case oe.ref:return null;default:return null}}var MI=(e,t,r,a,i,n,o)=>{var s=l=>l.map(u=>"text"in u?u.text:""),c=(l,u={})=>{var f=Array.isArray(l)?l:[l],p=(u.renderDepth||0)+1;if(p>2500)return s(f);u.renderDepth=p;for(var d=u.key,h=[],k=!1,v=0;v<f.length;v++){u.key=v;var y;if(e){var b=pv.bind(null,f[v],c,u,t,r,a,i,n,o);y=e(b,f[v],c,u)}else y=pv(f[v],c,u,t,r,a,i,n,o);var w=typeof y=="string";if(k&&typeof y=="string"){var E=h.at(-1);h[h.length-1]=(typeof E=="string"?E:"")+y}else if(y!=null)if(Array.isArray(y))for(var m=0;m<y.length;m++)h.push(y[m]);else h.push(y);k=w}return u.key=d,u.renderDepth=p-1,h};return c},jI=(e,t)=>{let r=Af(t,e,void 0);return r?typeof r=="function"||typeof r=="object"&&"render"in r?r:Af(t,`${e}.component`,e):e};function LI(e,t){let r={...t||{}};r.overrides=r.overrides||{};let a=r.slugify||Ja,i=r.sanitizer||$n,n=r.createElement,o=Fy(r.overrides),s=w=>Wf(w,{...r,wrapper:null});function c(w){for(var E in w){var m=w[E];if(typeof m=="string"&&m.length>0&&m.charCodeAt(0)===ht&&(ZP.test(m)||QP.test(m)||FI(m,0))){var g=s(m.trim());w[E]=E==="innerHTML"&&Array.isArray(g)?g[0]:g}}}function l(w,E,...m){var g=E||{},S=w;if(o){var A=Af(r.overrides,`${w}.props`,{});S=jI(w,r.overrides),g={...g,...A,className:JP(g.className,A.className)||void 0}}if(!n){var x=g.key;return x!=null&&delete g.key,m.length===1?g.children=m[0]:m.length>1&&(g.children=m),Hf(S,g,x)}return n(S,g,...m)}function u(w,E,...m){return E&&c(E),l(w,E,...m)}let f=_f(r,r.forceInline),p=e[0]&&e[0].type===oe.refCollection?e[0].refs:{},d=MI(r.renderRule,l,i,a,p,r,u),h=d(e,{inline:r.forceInline,refs:p}),k=KP(p);if(k.length>0&&h.push(l("footer",{key:"footer"},k.map(function(w){let E=w.identifier.charCodeAt(0)===zn?w.identifier.slice(1):w.identifier,m=Bf(w.footnote,{inline:!0,refs:p},f);return l("div",{id:a(E,Ja),key:w.identifier},`${E}: `,d(m,{inline:!0,refs:p}))}))),r.wrapper===null)return h;let v=r.wrapper||(r.forceInline?"span":"div"),y;if(h.length>1||r.forceWrapper)y=h;else return h.length===1?h[0]:null;var b=r.wrapperProps?{...r.wrapperProps}:{};return b.children=y,Hf(v,b,"outer")}function Wf(e="",t={}){let r={...t||{}};r.overrides=r.overrides||{},r.slugify,r.sanitizer;function a(n){let o=r.forceInline||!(r.forceBlock||NP.test(n)),s=_f(r,o),c=o?n:UP(n),l=Bf(c,{inline:o,refs:i},s);return LI(l,{...r,forceInline:o})}let i={};return a(e)}function RI(e){let t=Fn.useRef(e),r=t.current;if(r!==e){var a=!0,i=0;for(var n in e)if(i++,!Object.is(r[n],e[n])){a=!1;break}if(a){var o=0;for(var s in r)o++;a=o===i}a||(t.current=e)}return t.current}var $o=({children:e,options:t,...r})=>{if(!(typeof Fn.useContext<"u")){let s={...t,overrides:{...t==null?void 0:t.overrides},wrapperProps:{...t==null?void 0:t.wrapperProps,...r}};return Wf(e??"",s)}let a=dv?Fn.useContext(dv):void 0,i=RI(r),n=Fn.useMemo(()=>({...a,...t,overrides:{...a==null?void 0:a.overrides,...t==null?void 0:t.overrides},wrapperProps:{...a==null?void 0:a.wrapperProps,...t==null?void 0:t.wrapperProps,...i}}),[a,t,i]),o=e??"";return Fn.useMemo(()=>Wf(o,n),[o,n])};const mv=Symbol("remove-this-key"),hv=Symbol("reset");function qI(e,t){return Array.isArray(e.required)&&e.required.includes(t)}function zI(e,t){switch(t){case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};case"string":default:return e(Me.NewStringDefault)}}function gv(e){return!!(e!=null&&e[Xn])}function yv(e){return Object.keys(e).filter(t=>gv(e[t]))}function $I(e){const{fieldPathId:t,schema:r,registry:a,uiSchema:i,errorSchema:n,formData:o,onChange:s,onBlur:c,onFocus:l,disabled:u,readonly:f,required:p,hideError:d,propertyName:h,handleKeyRename:k,handleRemoveProperty:v,addedByAdditionalProperties:y}=e,[b,w]=H.useState(!1),{globalFormOptions:E,fields:m}=a,{SchemaField:g}=m,S=Ii(nn(h,E,t.path)),A=H.useCallback((_,F,I,j)=>{let $=_;_===void 0&&y&&($=""),s($,F,I,j)},[s,y]),x=H.useCallback(_=>{h!==_&&w(!0),k(h,_)},[h,k]),O=H.useCallback(_=>{const{target:{value:F}}=_;x(F)},[x]),C=H.useCallback(()=>{v(h)},[h,v]);return D.jsx(g,{name:h,required:p,schema:r,uiSchema:i,errorSchema:n,fieldPathId:S,formData:o,wasPropertyKeyModified:b,onKeyRename:x,onKeyRenameBlur:O,onRemoveProperty:C,onChange:A,onBlur:c,onFocus:l,registry:a,disabled:u,readonly:f,hideError:d})}const UI=H.memo($I);function BI(e){const{schema:t,uiSchema:r={},formData:a,errorSchema:i,fieldPathId:n,name:o,required:s=!1,disabled:c,readonly:l,hideError:u,onBlur:f,onFocus:p,onChange:d,registry:h,title:k}=e,{fields:v,schemaUtils:y,translateString:b,globalUiOptions:w}=h,{OptionalDataControlsField:E}=v,m=H.useRef(a);m.current=a;const g=H.useMemo(()=>y.retrieveSchema(t,a,!0),[y,t,a]),S=H.useMemo(()=>be(r,w),[r,w]),A=H.useMemo(()=>g.properties??{},[g.properties]),x=e.childFieldPathId??n,O=H.useRef({previousKey:"",currentKey:void 0}),[C,_]=H.useState(()=>yv(A)),F=H.useMemo(()=>{const V=new Set(yv(A));return Object.keys(A).filter(K=>!V.has(K))},[A]),I=S.title??g.title??k??o,j=S.description??g.description,$=Fo(h,g,s,r),Y=Pi(a);let Z=[];const ie=H.useCallback((V,K)=>{const{duplicateKeySuffixSeparator:J="-"}=be(r,w);let Q=0,q=V;for(;Ke(K,q);)Q+=1,q=`${V}${J}${Q}`;return q},[r,w]),P=H.useCallback(()=>{if(!(g.additionalProperties||g.patternProperties))return;const V={...a},K=ie("newKey",V);if(g.patternProperties)vt(V,K,null);else{let J,Q,q;if(Ye(g.additionalProperties)){J=g.additionalProperties.type,Q=g.additionalProperties.const,q=g.additionalProperties.default;let W=g.additionalProperties;gt in W&&(W=y.retrieveSchema({[gt]:W[gt]},a),J=W.type,Q=W.const,q=y.getDefaultFormState(W,q)),!J&&(Ve in W||Fe in W)&&(J="object")}const z=Q??q??zI(b,J);vt(V,K,z)}O.current.previousKey===K&&(O.current.currentKey=K,O.current.previousKey=ie(K,V)),_(J=>[...J,K]),d(V,x.path)},[a,d,b,y,x,ie,g]),M=H.useCallback((V,K)=>{if(V!==K){const J=m.current,Q=ie(K,J),q={...J},z={[V]:Q},W=Object.keys(q).map(te=>({[Object.hasOwn(z,te)?z[te]:te]:q[te]})),G=Object.assign({},...W);m.current=G,V!==O.current.currentKey&&(O.current.previousKey=V),O.current.currentKey=Q,_(te=>te.map(ae=>ae===V?Q:ae)),d(G,x.path)}},[d,x,ie]),U=H.useCallback(V=>{_(K=>K.filter(J=>J!==V)),d(mv,[...x.path,V])},[d,x]),T=H.useCallback(V=>O.current.currentKey===V?O.current.previousKey:V,[]);if(!$||Y)try{const V=new Set(F),K=C.filter(J=>Object.hasOwn(A,J)&&!V.has(J));Z=mT([...F,...K],S.order)}catch(V){return D.jsxs("div",{children:[D.jsx("p",{className:"rjsf-config-error",style:{color:"red"},children:D.jsx($o,{options:{disableParsingRawHTML:!0},children:b(Me.InvalidObjectField,[o||"root",V.message])})}),D.jsx("pre",{children:JSON.stringify(g)})]})}const N=Ce("ObjectFieldTemplate",h,S),L=$?D.jsx(E,{...e,fieldPathId:x,schema:g}):void 0,B={title:S.label===!1?"":I,description:S.label===!1?void 0:j,properties:Z.map(V=>{var z;const K=gv((z=g.properties)==null?void 0:z[V]),J=K?r.additionalProperties:r[V],Q=be(J).widget==="hidden";return{content:D.jsx(UI,{propertyName:V,required:qI(g,V),schema:se(g,[Je,V],{}),uiSchema:J,errorSchema:se(i,[V]),fieldPathId:x,formData:se(a,[V]),handleKeyRename:M,handleRemoveProperty:U,addedByAdditionalProperties:K,onChange:d,onBlur:f,onFocus:p,registry:h,disabled:c,readonly:l,hideError:u},T(V)),name:V,readonly:l,disabled:c,required:s,hidden:Q}}),readonly:l,disabled:c,required:s,fieldPathId:n,uiSchema:r,errorSchema:i,schema:g,formData:a,registry:h,optionalDataControl:L,className:$?"rjsf-optional-object-field":void 0};return D.jsx(N,{...B,onAddProperty:P})}function VI(e){const{schema:t,uiSchema:r={},formData:a,disabled:i=!1,readonly:n=!1,onChange:o,errorSchema:s,fieldPathId:c,registry:l}=e,{globalUiOptions:u={},schemaUtils:f,translateString:p}=l,d=be(r,u),h=Ce("OptionalDataControlsTemplate",l,d),k=Pi(a);let v,y,b,w;if(i||n)v=uf(c,"Msg"),y=k?void 0:p(Me.OptionalObjectEmptyMsg);else{const E=k?Me.OptionalObjectRemove:Me.OptionalObjectAdd;y=p(E),k?(v=uf(c,"Remove"),w=()=>o(void 0,c.path,s)):(v=uf(c,"Add"),b=()=>{let m=f.getDefaultFormState(t,a,"excludeObjectChildren");m===void 0&&(m=zr(t)==="array"?[]:{}),o(m,c.path,s)})}return y&&D.jsx(h,{id:v,registry:l,schema:t,uiSchema:r,label:y,onAddClick:b,onRemoveClick:w})}const HI={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function WI(e,t,r){const{field:a}=t,{fields:i,schemaUtils:n}=r;if(typeof a=="function")return a;if(typeof a=="string"&&a in i)return i[a];const o=zr(e),s=Array.isArray(o)?o[0]:o||"",c=e.$id;let l=HI[s];return c&&c in i&&(l=c),(e.anyOf||e.oneOf)&&!n.isSelect(e)&&l!=="ObjectField"?()=>null:l in i?i[l]:i.FallbackField}function KI(e){const{schema:t,fieldPathId:r,uiSchema:a,formData:i,errorSchema:n,name:o,onChange:s,onKeyRename:c,onKeyRenameBlur:l,onRemoveProperty:u,required:f=!1,registry:p,wasPropertyKeyModified:d=!1}=e,{schemaUtils:h,globalFormOptions:k,globalUiOptions:v,fields:y}=p,{AnyOfField:b,OneOfField:w,CyclicSchemaField:E}=y,m=r[dt],g=H.useCallback((Se,De,he,Le)=>s(Se,De,he,Le||m),[m,s]);if(t[iu])return D.jsx(E,{...e});const S=hT(t,a,p),A=be(S,v),x=Ce("FieldTemplate",p,A),O=Ce("DescriptionFieldTemplate",p,A),C=Ce("FieldHelpTemplate",p,A),_=Ce("FieldErrorTemplate",p,A),F=h.retrieveSchema(t,i),I=WI(F,A,p),$=!!F.deprecated?A.deprecatedHandling??"label":void 0,Y=!!(A.disabled??e.disabled)||$==="disable",Z=!!(A.readonly??(e.readonly||e.schema.readOnly||F.readOnly)),ie=A.hideError,P=ie===void 0?e.hideError:!!ie,M=!!(A.autofocus??e.autofocus);if(Object.keys(F).length===0)return null;let U=h.getDisplayLabel(F,S,v);const T=A.field&&A.fieldReplacesAnyOrOneOf===!0;let N,L,B={fieldPathId:r};if((Ve in F||Fe in F)&&!T&&!h.isSelect(F)){F[Ve]?(N=b,L=F[Ve].map(he=>h.retrieveSchema(Ye(he)?he:{},i))):F[Fe]&&(N=w,L=F[Fe].map(he=>h.retrieveSchema(Ye(he)?he:{},i)));const Se=Fo(p,F,f,S),De=Pi(i);U=U&&(!Se||De),B={childFieldPathId:r,fieldPathId:nn("XxxOf",k,r)}}const{__errors:V,...K}=n||{},J=Eo(S,["ui:classNames","classNames","ui:style"]);Zn in J&&(J[Zn]=Eo(J[Zn],["classNames","style"]));const Q=D.jsx(I,{...e,onChange:g,...B,schema:F,uiSchema:J,disabled:Y,readonly:Z,hideError:P,autofocus:M,errorSchema:K,rawErrors:V}),q=r[dt];let z;d?z=o:z=Xn in F?o:A.title||e.schema.title||F.title||e.title||o,$==="label"&&(z=p.translateString(Me.DeprecatedLabel,[z]));const W=A.description||e.schema.description||F.description||"",{help:G}=A,te=A.widget==="hidden"||$==="hide",ae=["rjsf-field",`rjsf-field-${zr(F)}`];!P&&V&&V.length>0&&ae.push("rjsf-field-error"),A.classNames&&ae.push(A.classNames);const pe=D.jsx(C,{help:G,fieldPathId:r,schema:F,uiSchema:S,hasErrors:!P&&V&&V.length>0,registry:p}),ve=P||N&&!h.isSelect(F)?void 0:D.jsx(_,{errors:V,errorSchema:n,fieldPathId:r,schema:F,uiSchema:S,registry:p}),Ae={description:D.jsx(O,{id:la(q),description:W,schema:F,uiSchema:S,registry:p}),rawDescription:W,help:pe,rawHelp:typeof G=="string"?G:void 0,errors:ve,rawErrors:P?void 0:V,fieldPathId:r,id:q,label:z,hidden:te,onChange:s,onKeyRename:c,onKeyRenameBlur:l,onRemoveProperty:u,required:f,disabled:Y,readonly:Z,hideError:P,displayLabel:U,classNames:ae.join(" ").trim(),style:A.style,formData:i,schema:F,uiSchema:S,registry:p};return D.jsx(x,{...Ae,children:D.jsxs(D.Fragment,{children:[Q,N&&D.jsx(N,{name:o,disabled:Y,readonly:Z,hideError:P,errorSchema:n,formData:i,fieldPathId:r,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:L,registry:p,required:f,schema:F,uiSchema:S})]})})}const GI=H.memo(KI,(e,t)=>{const{experimental_componentUpdateStrategy:r="customDeep"}=t.registry.globalFormOptions;return r==="always"?!1:r==="shallow"?pf(e,t):Xe(e,t)});function JI(e){const{schema:t,name:r,uiSchema:a,fieldPathId:i,formData:n,required:o,disabled:s=!1,readonly:c=!1,autofocus:l=!1,onChange:u,onBlur:f,onFocus:p,registry:d,rawErrors:h,hideError:k,title:v}=e,{title:y,format:b}=t,{widgets:w,schemaUtils:E,globalUiOptions:m}=d,g=E.isSelect(t)?Ua(t,a):void 0;let S=g?"select":"text";b&&cT(t,b,w)&&(S=b);const{widget:A=S,placeholder:x="",title:O,...C}=be(a),_=E.getDisplayLabel(t,a,m),F=O??v??y??r,I=Sn(t,A,w),j=H.useCallback(($,Y,Z)=>u($,i.path,Y,Z),[u,i]);return D.jsx(I,{options:{...C,enumOptions:g},schema:t,uiSchema:a,id:i.$id,name:r,label:F,hideLabel:!_,hideError:k,value:n,onChange:j,onBlur:f,onFocus:p,required:o,disabled:s,readonly:c,autofocus:l,registry:d,placeholder:x,rawErrors:h,htmlName:i.name})}function YI(){return{AnyOfField:Ey,ArrayField:zT,BooleanField:$T,CyclicSchemaField:UT,FallbackField:WT,LayoutGridField:vf,LayoutHeaderField:pP,LayoutMultiSchemaField:mP,NumberField:vP,ObjectField:BI,OneOfField:Ey,OptionalDataControlsField:VI,SchemaField:GI,StringField:JI,NullField:hP}}function XI(e){const{fieldPathId:t,description:r,registry:a,schema:i,uiSchema:n}=e,o=be(n,a.globalUiOptions),{label:s=!0}=o;if(!r||!s)return null;const c=Ce("DescriptionFieldTemplate",a,o);return D.jsx(c,{id:la(t),description:r,schema:i,uiSchema:n,registry:a})}function ZI(e){const{disabled:t,hasCopy:r,hasMoveDown:a,hasMoveUp:i,hasRemove:n,fieldPathId:o,onCopyItem:s,onRemoveItem:c,onMoveDownItem:l,onMoveUpItem:u,readonly:f,registry:p,uiSchema:d}=e,{CopyButton:h,MoveDownButton:k,MoveUpButton:v,RemoveButton:y}=p.templates.ButtonTemplates;return D.jsxs(D.Fragment,{children:[(i||a)&&D.jsx(v,{id:Or(o,"moveUp"),className:"rjsf-array-item-move-up",disabled:t||f||!i,onClick:u,uiSchema:d,registry:p}),(i||a)&&D.jsx(k,{id:Or(o,"moveDown"),className:"rjsf-array-item-move-down",disabled:t||f||!a,onClick:l,uiSchema:d,registry:p}),r&&D.jsx(h,{id:Or(o,"copy"),className:"rjsf-array-item-copy",disabled:t||f,onClick:s,uiSchema:d,registry:p}),n&&D.jsx(y,{id:Or(o,"remove"),className:"rjsf-array-item-remove",disabled:t||f,onClick:c,uiSchema:d,registry:p})]})}function QI(e){const{children:t,className:r,buttonsProps:a,displayLabel:i,hasDescription:n,hasToolbar:o,registry:s,uiSchema:c}=e,l=be(c),u=Ce("ArrayFieldItemButtonsTemplate",s,l),f={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"},p=n?31:9,d={display:"flex",alignItems:i?"center":"baseline"},h={display:"flex",justifyContent:"flex-end",marginTop:i?`${p}px`:0};return D.jsxs("div",{className:r,style:d,children:[D.jsx("div",{className:o?"col-xs-9 col-md-10 col-xl-11":"col-xs-12",children:t}),o&&D.jsx("div",{className:"col-xs-3 col-md-2 col-xl-1 array-item-toolbox",children:D.jsx("div",{className:"btn-group",style:h,children:D.jsx(u,{...a,style:f})})})]})}function eN(e){const{canAdd:t,className:r,disabled:a,fieldPathId:i,uiSchema:n,items:o,optionalDataControl:s,onAddClick:c,readonly:l,registry:u,required:f,schema:p,title:d}=e,h=be(n),k=Ce("ArrayFieldDescriptionTemplate",u,h),v=Ce("ArrayFieldTitleTemplate",u,h),y=!l&&!a,{ButtonTemplates:{AddButton:b}}=u.templates;return D.jsxs("fieldset",{className:r,id:i.$id,children:[D.jsx(v,{fieldPathId:i,title:h.title||d,required:f,schema:p,uiSchema:n,registry:u,optionalDataControl:y?s:void 0}),D.jsx(k,{fieldPathId:i,description:h.description||p.description,schema:p,uiSchema:n,registry:u}),y?void 0:s,D.jsx("div",{className:"row array-item-list",children:o}),t&&D.jsx(b,{id:Or(i,"add"),className:"rjsf-array-item-add",onClick:c,disabled:a||l,uiSchema:n,registry:u})]})}function tN(e){const{fieldPathId:t,title:r,schema:a,uiSchema:i,required:n,registry:o,optionalDataControl:s}=e,c=be(i,o.globalUiOptions),{label:l=!0}=c;if(!r||!l)return null;const u=Ce("TitleFieldTemplate",o,c);return D.jsx(u,{id:Gs(t),title:r,required:n,schema:a,uiSchema:i,registry:o,optionalDataControl:s})}function rN(e){const{id:t,schema:r}=e,{examples:a,default:i}=r;return Array.isArray(a)?D.jsx("datalist",{id:lf(t),children:a.concat(i!==void 0&&!a.map(String).includes(String(i))?[i]:[]).map(n=>D.jsx("option",{value:n},String(n)))},`datalist_${t}`):null}function nN(e){const{id:t,name:r,htmlName:a,value:i,readonly:n,disabled:o,autofocus:s,onBlur:c,onFocus:l,onChange:u,onChangeOverride:f,options:p,schema:d,uiSchema:h,registry:k,rawErrors:v,type:y,hideLabel:b,hideError:w,...E}=e,{ClearButton:m}=k.templates.ButtonTemplates;if(!t)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const g={...E,...tT(d,y,p)};let S;g.type==="number"||g.type==="integer"?S=i||i===0?i:"":S=i??"";const A=H.useCallback(({target:{value:_}})=>u(_===""?p.emptyValue:_),[u,p]),x=H.useCallback(({target:_})=>c(t,_==null?void 0:_.value),[c,t]),O=H.useCallback(({target:_})=>l(t,_==null?void 0:_.value),[l,t]),C=H.useCallback(_=>{_.preventDefault(),_.stopPropagation(),u(p.emptyValue??"")},[u,p.emptyValue]);return D.jsxs(D.Fragment,{children:[D.jsx("input",{id:t,name:a||t,className:"form-control",readOnly:n,disabled:o,autoFocus:s,value:S,...g,list:d.examples?lf(t):void 0,onChange:f||A,onBlur:x,onFocus:O,"aria-describedby":rn(t,!!d.examples)}),p.allowClearTextInputs&&!n&&!o&&S&&D.jsx(m,{registry:k,onClick:C}),D.jsx(rN,{id:t,schema:d})]})}function aN(e){const{iconType:t="default",icon:r,className:a,uiSchema:i,registry:n,...o}=e;return D.jsx("button",{type:"button",className:`btn btn-${t} ${a}`,...o,children:D.jsx("i",{className:`glyphicon glyphicon-${r}`})})}const ba=H.memo(aN);function iN(e){const{registry:{translateString:t}}=e;return D.jsx(ba,{title:t(Me.CopyButton),...e,icon:"copy"})}const oN=H.memo(iN);function sN(e){const{registry:{translateString:t}}=e;return D.jsx(ba,{title:t(Me.MoveDownButton),...e,icon:"arrow-down"})}const lN=H.memo(sN);function cN(e){const{registry:{translateString:t}}=e;return D.jsx(ba,{title:t(Me.MoveUpButton),...e,icon:"arrow-up"})}const uN=H.memo(cN);function fN(e){const{registry:{translateString:t}}=e;return D.jsx(ba,{title:t(Me.RemoveButton),...e,iconType:"danger",icon:"remove"})}const dN=H.memo(fN);function pN({id:e,className:t,onClick:r,disabled:a,registry:i,...n}){const{translateString:o}=i;return D.jsx(ba,{id:e,iconType:"default",icon:"remove",className:"btn-clear col-xs-12",title:o(Me.ClearButton),onClick:r,disabled:a,registry:i,...n})}const mN=H.memo(pN);function hN({id:e,className:t,onClick:r,disabled:a,registry:i}){const{translateString:n}=i;return D.jsx("div",{className:"row",children:D.jsx("p",{className:`col-xs-4 col-sm-2 col-lg-1 col-xs-offset-8 col-sm-offset-10 col-lg-offset-11 text-right ${t}`,children:D.jsx(ba,{id:e,iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:n(Me.AddButton),onClick:r,disabled:a,registry:i})})})}function gN({uiSchema:e}){const{submitText:t,norender:r,props:a={}}=ey(e);return r?null:D.jsx("div",{children:D.jsx("button",{type:"submit",...a,className:`btn btn-info ${a.className||""}`,children:t})})}function yN(){return{SubmitButton:gN,AddButton:hN,CopyButton:oN,MoveDownButton:lN,MoveUpButton:uN,RemoveButton:dN,ClearButton:mN}}function vN(e){const{name:t,fieldPathId:r,registry:a,onExpand:i}=e,{translateString:n}=a,o=`${r[dt]}-button`;return D.jsxs("div",{style:{marginTop:"1rem"},children:[D.jsx("div",{className:"text-danger",children:n(Me.CycleDetected,[t])}),D.jsxs("div",{children:[D.jsx("button",{id:o,type:"button",className:"btn btn-sm btn-warning",onClick:()=>i(r[dt]),children:n(Me.ExpandButton)})," "]})]})}const vv=af();function bv({description:e,registry:t,uiSchema:r={}}){const{globalUiOptions:a}=t;return be(r,a).enableMarkdownInDescription&&typeof e=="string"?D.jsx($o,{options:{disableParsingRawHTML:!0},"data-testid":vv.markdown,children:e}):e}bv.TEST_IDS=vv;function bN(e){const{id:t,description:r,registry:a,uiSchema:i}=e;return r?D.jsx("div",{id:t,className:"field-description",children:D.jsx(bv,{description:r,registry:a,uiSchema:i})}):null}function kN({errors:e,registry:t}){const{translateString:r}=t;return D.jsxs("div",{className:"panel panel-danger errors",children:[D.jsx("div",{className:"panel-heading",children:D.jsx("h3",{className:"panel-title",children:r(Me.ErrorsLabel)})}),D.jsx("ul",{className:"list-group",children:e.map((a,i)=>D.jsx("li",{className:"list-group-item text-danger",children:a.stack},i))})]})}function wN(e){const{schema:t,registry:r,typeSelector:a,schemaField:i}=e,n=Ce("MultiSchemaFieldTemplate",r);return D.jsx(n,{selector:a,optionSchemaField:i,schema:t,registry:r})}function SN(e){const{errors:t=[],fieldPathId:r}=e;if(t.length===0)return null;const a=sf(r);return D.jsx("div",{children:D.jsx("ul",{id:a,className:"error-detail bs-callout bs-callout-info",children:t.filter(i=>!!i).map((i,n)=>D.jsx("li",{className:"text-danger",children:i},n))})})}const kv=af();function wv({help:e,registry:t,uiSchema:r={}}){const{globalUiOptions:a}=t;return be(r,a).enableMarkdownInHelp&&typeof e=="string"?D.jsx($o,{options:{disableParsingRawHTML:!0},"data-testid":kv.markdown,children:e}):e}wv.TEST_IDS=kv;function EN(e){const{fieldPathId:t,help:r,uiSchema:a,registry:i}=e;return r?D.jsx("div",{id:cf(t),className:"help-block",children:D.jsx(wv,{help:r,registry:i,uiSchema:a})}):null}const CN="*";function Sv(e){const{label:t,required:r,id:a}=e;return t?D.jsxs("label",{className:"control-label",htmlFor:a,children:[t,r&&D.jsx("span",{className:"required",children:CN})]}):null}function AN(e){const{id:t,label:r,children:a,errors:i,help:n,description:o,hidden:s,required:c,displayLabel:l,registry:u,uiSchema:f}=e,p=be(f),d=Ce("WrapIfAdditionalTemplate",u,p);if(s)return D.jsx("div",{className:"hidden",children:a});const h=p.widget==="checkbox";return D.jsxs(d,{...e,children:[l&&!h&&D.jsx(Sv,{label:r,required:c,id:t}),l&&o?o:null,a,i,n]})}function _N(e){const{children:t,column:r,className:a,...i}=e;return D.jsx("div",{className:a,...i,children:t})}function ON(e){const{selector:t,optionSchemaField:r}=e;return D.jsxs("div",{className:"panel panel-default panel-body",children:[D.jsx("div",{className:"form-group",children:t}),r]})}function xN(e){const{className:t,description:r,disabled:a,formData:i,fieldPathId:n,onAddProperty:o,optionalDataControl:s,properties:c,readonly:l,registry:u,required:f,schema:p,title:d,uiSchema:h}=e,k=be(h),v=Ce("TitleFieldTemplate",u,k),y=Ce("DescriptionFieldTemplate",u,k);if((p.oneOf||p.anyOf)&&!p.properties&&c.length===0)return null;const w=!l&&!a,{ButtonTemplates:{AddButton:E}}=u.templates;return D.jsxs("fieldset",{className:t,id:n.$id,children:[d&&D.jsx(v,{id:Gs(n),title:d,required:f,schema:p,uiSchema:h,registry:u,optionalDataControl:w?s:void 0}),r&&D.jsx(y,{id:la(n),description:r,schema:p,uiSchema:h,registry:u}),w?void 0:s,c.map(m=>m.content),Im(p,h,i)&&D.jsx(E,{id:Or(n,"add"),className:"rjsf-object-property-expand",onClick:o,disabled:a||l,uiSchema:h,registry:u})]})}function TN(e){const{id:t,registry:r,label:a,onAddClick:i,onRemoveClick:n}=e;return i?D.jsx(ba,{id:t,registry:r,icon:"plus",className:"rjsf-add-optional-data btn-sm",onClick:i,title:a}):n?D.jsx(ba,{id:t,registry:r,icon:"remove",className:"rjsf-remove-optional-data btn-sm",onClick:n,title:a}):D.jsx("em",{id:t,children:a})}const PN="*";function IN(e){const{id:t,title:r,required:a,optionalDataControl:i}=e;return D.jsxs("legend",{id:t,children:[r,a&&D.jsx("span",{className:"required",children:PN}),i&&D.jsx("span",{className:"pull-right",style:{marginBottom:"2px"},children:i})]})}function NN(e){const{schema:t,fieldPathId:r,reason:a,registry:i}=e,{translateString:n}=i;let o=Me.UnsupportedField;const s=[];return r!=null&&r.$id&&(o=Me.UnsupportedFieldWithId,s.push(r.$id)),a&&(o=o===Me.UnsupportedField?Me.UnsupportedFieldWithReason:Me.UnsupportedFieldWithIdAndReason,s.push(a)),D.jsxs("div",{className:"unsupported-field",children:[D.jsx("p",{children:D.jsx($o,{options:{disableParsingRawHTML:!0},children:n(o,s)})}),t&&D.jsx("pre",{children:JSON.stringify(t,null,2)})]})}function DN(e){const{id:t,classNames:r,style:a,disabled:i,displayLabel:n,label:o,onKeyRenameBlur:s,onRemoveProperty:c,rawDescription:l,readonly:u,required:f,schema:p,hideError:d,rawErrors:h,children:k,uiSchema:v,registry:y}=e,{templates:b,translateString:w}=y,{RemoveButton:E}=b.ButtonTemplates,m=w(Me.KeyLabel,[o]),g=Xn in p,S=!!l,A=["form-group",r];!d&&h&&h.length>0&&A.push("has-error has-danger");const x=A.join(" ").trim();if(!g)return D.jsx("div",{className:x,style:a,children:k});const O=S?46:26;return D.jsx("div",{className:x,style:a,children:D.jsxs("div",{className:"row",children:[D.jsx("div",{className:"col-xs-5 form-additional",children:D.jsxs("div",{className:"form-group",children:[n&&D.jsx(Sv,{label:m,required:f,id:`${t}-key`}),n&&l&&D.jsx("div",{children:" "}),D.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:s,defaultValue:o},o)]})}),D.jsx("div",{className:"form-additional form-group col-xs-5",children:k}),D.jsx("div",{className:"col-xs-2",style:{marginTop:n?`${O}px`:void 0},children:D.jsx(E,{id:Or(t,"remove"),className:"rjsf-object-property-remove btn-block",style:{border:"0"},disabled:i||u,onClick:c,uiSchema:v,registry:y})})]})})}function FN(){return{ArrayFieldDescriptionTemplate:XI,ArrayFieldItemTemplate:QI,ArrayFieldItemButtonsTemplate:ZI,ArrayFieldTemplate:eN,ArrayFieldTitleTemplate:tN,ButtonTemplates:yN(),BaseInputTemplate:nN,CyclicSchemaExpandTemplate:vN,DescriptionFieldTemplate:bN,ErrorListTemplate:kN,FallbackFieldTemplate:wN,FieldTemplate:AN,FieldErrorTemplate:SN,FieldHelpTemplate:EN,GridTemplate:_N,MultiSchemaFieldTemplate:ON,ObjectFieldTemplate:xN,OptionalDataControlsTemplate:TN,TitleFieldTemplate:IN,UnsupportedFieldTemplate:NN,WrapIfAdditionalTemplate:DN}}function MN({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return D.jsx(r,{time:e,...t})}function jN(e){const{disabled:t=!1,readonly:r=!1,autofocus:a=!1,options:i,id:n,name:o,registry:s,onBlur:c,onFocus:l}=e,{translateString:u}=s,{elements:f,handleChange:p,handleClear:d,handleSetNow:h}=wT(e);return D.jsxs("ul",{className:"list-inline",children:[f.map((k,v)=>D.jsx("li",{className:"list-inline-item",children:D.jsx(kT,{rootId:n,name:o,select:p,...k,disabled:t,readonly:r,registry:s,onBlur:c,onFocus:l,autofocus:a&&v===0})},v)),(i.hideNowButton!=="undefined"?!i.hideNowButton:!0)&&D.jsx("li",{className:"list-inline-item",children:D.jsx("button",{type:"button",className:"btn btn-info btn-now",onClick:h,children:u(Me.NowLabel)})}),(i.hideClearButton!=="undefined"?!i.hideClearButton:!0)&&D.jsx("li",{className:"list-inline-item",children:D.jsx("button",{type:"button",className:"btn btn-warning btn-clear",onClick:d,children:u(Me.ClearLabel)})})]})}function LN({id:e,disabled:t,options:r,value:a,autofocus:i=!1,readonly:n,onChange:o,onBlur:s,onFocus:c,htmlName:l}){const{inline:u=!1,enumOptions:f,enumDisabled:p,emptyValue:d}=r,h=No(r),k=Array.isArray(a)?a:[a],v=H.useCallback(({target:b})=>s(e,tn(b==null?void 0:b.value,f,h,d)),[s,e,f,d,h]),y=H.useCallback(({target:b})=>c(e,tn(b==null?void 0:b.value,f,h,d)),[c,e,f,d,h]);return D.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(f)&&f.map((b,w)=>{const E=Ti(b.value,k),m=Array.isArray(p)&&p.includes(b.value),g=t||m||n?"disabled":"",S=x=>{x.target.checked?o(Jg(w,k,f)):o(Kg(w,k,f))},A=D.jsxs("span",{children:[D.jsx("input",{type:"checkbox",id:Js(e,w),name:l||e,checked:E,value:Io(b.value,w,h),disabled:t||m||n,autoFocus:i&&w===0,onChange:S,onBlur:v,onFocus:y,"aria-describedby":rn(e)}),D.jsx("span",{children:b.label})]});return u?D.jsx("label",{className:`checkbox-inline ${g}`,children:A},String(b.value)):D.jsx("div",{className:`checkbox ${g}`,children:D.jsx("label",{children:A})},String(b.value))})})}function RN({schema:e,uiSchema:t,options:r,id:a,value:i,disabled:n,readonly:o,label:s,hideLabel:c,autofocus:l=!1,onBlur:u,onFocus:f,onChange:p,registry:d,htmlName:h}){const k=Ce("DescriptionFieldTemplate",d,r),v=Do(e),y=H.useCallback(S=>p(S.target.checked),[p]),b=H.useCallback(S=>u(a,S.target.checked),[u,a]),w=H.useCallback(S=>f(a,S.target.checked),[f,a]),g=be(t).widget==="checkbox"?void 0:r.description??e.description;return D.jsxs("div",{className:`checkbox ${n||o?"disabled":""}`,children:[!c&&g&&D.jsx(k,{id:la(a),description:g,schema:e,uiSchema:t,registry:d}),D.jsxs("label",{children:[D.jsx("input",{type:"checkbox",id:a,name:h||a,checked:typeof i>"u"?!1:i,required:v,disabled:n||o,autoFocus:l,onChange:y,onBlur:b,onFocus:w,"aria-describedby":rn(a)}),fT(D.jsx("span",{children:s}),c)]})]})}function qN(e){const{disabled:t,readonly:r,options:a,registry:i}=e,n=Ce("BaseInputTemplate",i,a);return D.jsx(n,{type:"color",...e,disabled:t||r})}function zN(e){const{onChange:t,value:r,options:a,registry:i}=e,n=Ce("BaseInputTemplate",i,a);return D.jsx(n,{type:"datetime-local",...e,value:_T(r),onChange:o=>t(dT(o))})}function $N(e){const{onChange:t,options:r,registry:a}=e,i=Ce("BaseInputTemplate",a,r),n=H.useCallback(o=>t(o||void 0),[t]);return D.jsx(i,{type:"date",...e,onChange:n})}function UN(e){const{options:t,registry:r}=e,a=Ce("BaseInputTemplate",r,t);return D.jsx(a,{type:"email",...e})}function BN({fileInfo:e,registry:t}){const{translateString:r}=t,{dataURL:a,type:i,name:n}=e;if(!a)return null;const o=r(Me.PreviewLabel);return["image/jpeg","image/png"].includes(i)?D.jsx("img",{src:a,alt:o,style:{maxWidth:"100%"},className:"file-preview"}):D.jsxs(D.Fragment,{children:[" ",D.jsx("a",{download:`preview-${n}`,href:a,className:"file-download",children:o})]})}function VN({filesInfo:e,registry:t,preview:r,onRemove:a,options:i}){if(e.length===0)return null;const{translateString:n}=t,{RemoveButton:o}=Ce("ButtonTemplates",t,i);return D.jsx("ul",{className:"file-info",children:e.map((s,c)=>{const{name:l,size:u,type:f}=s,p=()=>a(c);return D.jsxs("li",{children:[D.jsx($o,{children:n(Me.FilesInfo,[l,f,String(u)])}),r&&D.jsx(BN,{fileInfo:s,registry:t}),D.jsx(o,{onClick:p,registry:t})]},c)})})}function HN(e){const{disabled:t,readonly:r,required:a,multiple:i,onChange:n,value:o,options:s,registry:c}=e,{filesInfo:l,handleChange:u,handleRemove:f}=AT(o,n,i),p=Ce("BaseInputTemplate",c,s),d=h=>{h.target.files&&u(h.target.files)};return D.jsxs("div",{children:[D.jsx(p,{...e,disabled:t||r,type:"file",required:o?!1:a,onChangeOverride:d,value:"",accept:s.accept?String(s.accept):void 0}),D.jsx(VN,{filesInfo:l,onRemove:f,registry:c,preview:s.filePreview,options:s})]})}function WN({id:e,value:t,htmlName:r}){return D.jsx("input",{type:"hidden",id:e,name:r||e,value:typeof t>"u"?"":t})}function KN(e){const{options:t,registry:r}=e,a=Ce("BaseInputTemplate",r,t);return D.jsx(a,{type:"password",...e})}function GN({options:e,value:t,required:r,disabled:a,readonly:i,autofocus:n=!1,onBlur:o,onFocus:s,onChange:c,id:l,htmlName:u}){const{enumOptions:f,enumDisabled:p,inline:d,emptyValue:h}=e,k=No(e),v=H.useCallback(({target:b})=>o(l,tn(b==null?void 0:b.value,f,k,h)),[o,f,h,l,k]),y=H.useCallback(({target:b})=>s(l,tn(b==null?void 0:b.value,f,k,h)),[s,f,h,l,k]);return D.jsx("div",{className:"field-radio-group",id:l,role:"radiogroup",children:Array.isArray(f)&&f.map((b,w)=>{const E=Ti(b.value,t),m=Array.isArray(p)&&p.includes(b.value),g=a||m||i?"disabled":"",S=()=>c(b.value),A=D.jsxs("span",{children:[D.jsx("input",{type:"radio",id:Js(l,w),checked:E,name:u||l,required:r,value:Io(b.value,w,k),disabled:a||m||i,autoFocus:n&&w===0,onChange:S,onBlur:v,onFocus:y,"aria-describedby":rn(l)}),D.jsx("span",{children:b.label})]});return d?D.jsx("label",{className:`radio-inline ${g}`,children:A},String(b.value)):D.jsx("div",{className:`radio ${g}`,children:D.jsx("label",{children:A})},String(b.value))})})}function JN(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return D.jsxs("div",{className:"field-range-wrapper",children:[D.jsx(r,{type:"range",...e}),D.jsx("span",{className:"range-view",children:t})]})}function YN({id:e,value:t,required:r,disabled:a,readonly:i,autofocus:n,onChange:o,onFocus:s,onBlur:c,schema:l,options:u,htmlName:f}){const{stars:p=5,shape:d="star"}=u,h=l.maximum?Math.min(l.maximum,5):Math.min(Math.max(p,1),5),k=l.minimum||0,v=H.useCallback(E=>{!a&&!i&&o(E)},[o,a,i]),y=H.useCallback(E=>{if(s){const m=Number(E.target.dataset.value);s(e,m)}},[s,e]),b=H.useCallback(E=>{if(c){const m=Number(E.target.dataset.value);c(e,m)}},[c,e]),w=E=>d==="heart"?E?"♥":"♡":E?"★":"☆";return D.jsxs("div",{className:"rating-widget",style:{display:"inline-flex",fontSize:"1.5rem",cursor:a||i?"default":"pointer"},children:[[...Array(h)].map((E,m)=>{const g=k+m,S=g<=t;return D.jsx("span",{onClick:()=>v(g),onKeyDown:A=>(A.key==="Enter"||A.key===" ")&&v(g),onFocus:y,onBlur:b,"data-value":g,tabIndex:a||i?-1:0,role:"radio","aria-checked":g===t,"aria-label":`${g} ${d==="heart"?"heart":"star"}${g===1?"":"s"}`,style:{color:S?"#FFD700":"#ccc",padding:"0 0.2rem",transition:"color 0.2s",userSelect:"none"},children:w(S)},m)}),D.jsx("input",{type:"hidden",id:e,name:f||e,value:t||"",required:r,disabled:a||i,"aria-hidden":"true"})]})}function Kf(e,t){return t?Array.from(e.target.options).slice().filter(r=>r.selected).map(r=>r.value):e.target.value}function XN({schema:e,id:t,options:r,value:a,required:i,disabled:n,readonly:o,multiple:s=!1,autofocus:c=!1,onChange:l,onBlur:u,onFocus:f,placeholder:p,htmlName:d,registry:h,uiSchema:k}){const{enumOptions:v,enumDisabled:y,emptyValue:b}=r,w=s?[]:"",E=No(r),m=H.useCallback(O=>{const C=Kf(O,s);return f(t,tn(C,v,E,b))},[f,t,s,v,b,E]),g=H.useCallback(O=>{const C=Kf(O,s);return u(t,tn(C,v,E,b))},[u,t,s,v,b,E]),S=H.useCallback(O=>{const C=Kf(O,s);return l(tn(C,v,E,b))},[l,s,v,b,E]),A=Hx(a,v,s,E,w),x=!s&&e.default===void 0;return pT(t,e,v,s),D.jsxs(D.Fragment,{children:[D.jsx(gT,{id:t,multiple:s,options:r,registry:h,uiSchema:k,value:a}),D.jsxs("select",{id:t,name:d||t,multiple:s,className:"form-control",value:A,required:i,disabled:n||o,autoFocus:c,onBlur:g,onFocus:m,onChange:S,"aria-describedby":rn(t),children:[x&&D.jsx("option",{value:"",children:p}),Array.isArray(v)&&v.map(({value:O,label:C},_)=>{const F=y&&y.includes(O);return D.jsx("option",{value:Io(O,_,E),disabled:F,children:C},String(O))})]})]})}function ZN({id:e,options:t,placeholder:r,value:a,required:i,disabled:n,readonly:o,autofocus:s=!1,onChange:c,onBlur:l,onFocus:u,htmlName:f}){const p=H.useCallback(({target:{value:k}})=>c(k===""?t.emptyValue:k),[c,t.emptyValue]),d=H.useCallback(({target:k})=>l(e,k==null?void 0:k.value),[l,e]),h=H.useCallback(({target:k})=>u(e,k==null?void 0:k.value),[e,u]);return D.jsx("textarea",{id:e,name:f||e,className:"form-control",value:a||"",placeholder:r,required:i,disabled:n,readOnly:o,autoFocus:s,rows:t.rows,onBlur:d,onFocus:h,onChange:p,"aria-describedby":rn(e)})}function QN(e){const{options:t,registry:r}=e,a=Ce("BaseInputTemplate",r,t);return D.jsx(a,{...e})}function eD(e){const{onChange:t,options:r,registry:a}=e,i=Ce("BaseInputTemplate",a,r),n=H.useCallback(o=>t(o?`${o}:00`:void 0),[t]);return D.jsx(i,{type:"time",...e,onChange:n})}function tD(e){const{options:t,registry:r}=e,a=Ce("BaseInputTemplate",r,t);return D.jsx(a,{type:"number",...e})}function rD(e){const{options:t,registry:r}=e,a=Ce("BaseInputTemplate",r,t);return D.jsx(a,{type:"url",...e})}function nD(){return{AltDateWidget:jN,AltDateTimeWidget:MN,CheckboxWidget:RN,CheckboxesWidget:LN,ColorWidget:qN,DateWidget:$N,DateTimeWidget:zN,EmailWidget:UN,FileWidget:HN,HiddenWidget:WN,PasswordWidget:KN,RadioWidget:GN,RangeWidget:JN,RatingWidget:YN,SelectWidget:XN,TextWidget:QN,TextareaWidget:ZN,TimeWidget:eD,UpDownWidget:tD,URLWidget:rD}}function aD(){return{fields:YI(),templates:FN(),widgets:nD(),rootSchema:{},formContext:{},translateString:Vx,globalFormOptions:{idPrefix:_m,idSeparator:Om,useFallbackUiForUnsupportedType:!1}}}function $i(e,t){return{...Bg(e,["schema","uiSchema","fieldPathId","schemaUtils","formData","edit","errors","errorSchema"]),...t!==void 0&&{status:t}}}let iD=class si extends H.Component{constructor(r){super(r);gr(this,"formElement");gr(this,"pendingChanges",[]);gr(this,"isProcessingUserChange",!1);gr(this,"getUsedFormData",(r,a)=>Fx(r,a));gr(this,"getFieldNames",(r,a)=>Mx(r,a));gr(this,"omitExtraData",r=>{const{schema:a,schemaUtils:i}=this.state;return i.omitExtraData(a,r)});gr(this,"setFieldValue",(r,a)=>{const{registry:i}=this.state,n=Array.isArray(r)?r:r.split("."),o=nn("",i.globalFormOptions,n);this.onChange(a,n,void 0,o[dt])});gr(this,"onChange",(r,a,i,n)=>{this.pendingChanges.push({newValue:r,path:a,newErrorSchema:i,id:n}),this.pendingChanges.length===1&&this.processPendingChange()});gr(this,"reset",()=>{const{formData:r,initialFormData:a=hv,onChange:i}=this.props,s={formData:this.getStateFromProps(this.props,r??a,void 0,void 0,void 0,!0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{},initialDefaultsGenerated:!1,customErrors:void 0};this.setState(s,()=>i==null?void 0:i($i({...this.state,...s})))});gr(this,"onBlur",(r,a)=>{const{onBlur:i,omitExtraData:n,liveOmit:o,liveValidate:s}=this.props;if(i&&i(r,a),n===!0&&o==="onBlur"||s==="onBlur"){const{onChange:c,extraErrors:l}=this.props,{formData:u}=this.state;let f=u,p={formData:f};if(n===!0&&o==="onBlur"&&(f=this.omitExtraData(u),p={formData:f}),s==="onBlur"){const{schema:h,schemaUtils:k,errorSchema:v,customErrors:y,retrievedSchema:b}=this.state,w=this.liveValidate(h,k,v,f,l,y,b);p={formData:f,...w,customErrors:y}}const d=Object.keys(p).filter(h=>!h.startsWith("schemaValidation")).some(h=>{const k=se(this.state,h),v=se(p,h);return!Xe(k,v)});this.setState(p,()=>{c&&d&&c($i({...this.state,...p}),r)})}});gr(this,"onFocus",(r,a)=>{const{onFocus:i}=this.props;i&&i(r,a)});gr(this,"onSubmit",r=>{if(r.preventDefault(),r.target!==r.currentTarget)return;r.persist();const{omitExtraData:a,extraErrors:i,noValidate:n,onSubmit:o}=this.props;let{formData:s}=this.state;if(a===!0&&(s=this.omitExtraData(s)),n||this.validateFormWithFormData(s)){const c=i||{},l=i?mf(i):[];this.setState({formData:s,errors:l,errorSchema:c,schemaValidationErrors:[],schemaValidationErrorSchema:{}},()=>{o&&o($i({...this.state,formData:s},"submitted"),r)})}});gr(this,"submit",()=>{if(this.formElement.current){const r=new CustomEvent("submit",{cancelable:!0});r.preventDefault(),this.formElement.current.dispatchEvent(r),this.formElement.current.requestSubmit()}});gr(this,"validateFormWithFormData",r=>{const{extraErrors:a,extraErrorsBlockSubmit:i,focusOnFirstError:n,onError:o}=this.props,{errors:s}=this.state,c=this.validate(r),{errors:l,errorSchema:u}=a?si.mergeErrors(c,a):c,f=c.errors.length>0||a&&i;return f?(n&&(typeof n=="function"?n(l[0]):this.focusOnError(l[0])),this.setState({errors:l,errorSchema:u,schemaValidationErrors:c.errors,schemaValidationErrorSchema:c.errorSchema},()=>{o?o(l):console.error("Form validation failed",l)})):l.length>0?this.setState({errors:l,errorSchema:u,schemaValidationErrors:[],schemaValidationErrorSchema:{}}):s.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}}),!f});if(!r.validator)throw new Error("A validator is required for Form functionality to work");const{formData:a,initialFormData:i,onChange:n}=r,o=a??i;this.state={...this.getStateFromProps(r,o,void 0,void 0,void 0,!0),prevExtraErrors:r.extraErrors},n&&!Xe(this.state.formData,o)&&n($i(this.state)),this.formElement=H.createRef()}static getDerivedStateFromProps(r,a){if(r.extraErrors!==a.prevExtraErrors){const i={errors:a.schemaValidationErrors||[],errorSchema:a.schemaValidationErrorSchema||{}};let{errors:n,errorSchema:o}=i;return r.extraErrors&&({errors:n,errorSchema:o}=Mo(i,r.extraErrors)),a.customErrors&&({errors:n,errorSchema:o}=Mo({errors:n,errorSchema:o},a.customErrors.ErrorSchema,!0)),{prevExtraErrors:r.extraErrors,errors:n,errorSchema:o}}return null}getSnapshotBeforeUpdate(r,a){if(!Xe(this.props,r)){const i=Zg(this.props.formData,r.formData),n=Zg(this.props.formData,this.state.formData),o=!Xe(r.schema,this.props.schema),s=i.length>0||!Xe(r.formData,this.props.formData),c=n.length>0||!Xe(this.state.formData,this.props.formData),l=this.getStateFromProps(this.props,this.props.formData,o||s?void 0:this.state.retrievedSchema,o,i,!c),u=!Xe(l,a);return{nextState:l,shouldUpdate:u}}return{shouldUpdate:!1}}componentDidUpdate(r,a,i){if(i.shouldUpdate){const{nextState:n}=i,o=!Xe(n.formData,this.props.formData),s=this.isProcessingUserChange;if(this.isProcessingUserChange=!1,s&&o)return;o&&!Xe(n.formData,a.formData)&&this.props.onChange&&this.props.onChange($i(n)),this.setState(n)}}getStateFromProps(r,a,i,n=!1,o=[],s=!1,c=!1){var ie;const l=this.state||{},u="schema"in r?r.schema:this.props.schema,f="validator"in r?r.validator:this.props.validator,p=("uiSchema"in r?r.uiSchema:this.props.uiSchema)||{},d=r.formData===void 0&&this.props.formData===void 0,h=typeof a<"u",k="liveValidate"in r?r.liveValidate:this.props.liveValidate,v=h&&!r.noValidate&&k,y="experimental_defaultFormStateBehavior"in r?r.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior,b="experimental_customMergeAllOf"in r?r.experimental_customMergeAllOf:this.props.experimental_customMergeAllOf;let{schemaUtils:w}=l;(!w||w.doesSchemaUtilsDiffer(f,u,y,b))&&(w=$x(f,u,y,b));const E=w.getRootSchema();let m=a;a===hv?m=void 0:a===void 0&&d&&(m=l.formData);let g,S,A=!1;const x=[];do{g=w.getDefaultFormState(E,m,!1,l.initialDefaultsGenerated);const P=c?Ur({formData:g}):"";if(S=this.updateRetrievedSchema(i??w.retrieveSchema(E,g)),c&&!x.includes(P)&&!Xe(S,l.retrievedSchema)){const M=w.sanitizeDataForNewSchema(S,l.retrievedSchema,g);if(A=!Xe(M,g),A){g=M,m=M;const U=Ur({formData:M});A=!x.includes(U),x.push(U)}x.push(P)}else A=!1}while(A);const O=()=>r.noValidate||n?{errors:[],errorSchema:{}}:r.liveValidate?{errors:l.errors||[],errorSchema:l.errorSchema||{}}:{errors:l.schemaValidationErrors||[],errorSchema:l.schemaValidationErrorSchema||{}};let C,_,{schemaValidationErrors:F,schemaValidationErrorSchema:I}=l;if(v&&!s){const P=this.liveValidate(E,w,l.errorSchema,g,void 0,l.customErrors,i,i!==void 0);C=P.errors,_=P.errorSchema,F=P.schemaValidationErrors,I=P.schemaValidationErrorSchema}else{const P=O();if(C=P.errors,_=P.errorSchema,o.length>0&&!v){const U=o.reduce((T,N)=>(T[N]=void 0,T),{});I=aa(P.errorSchema,U,"preventDuplicates"),_=I}const M=si.mergeErrors({errorSchema:_,errors:C},r.extraErrors,l.customErrors);C=M.errors,_=M.errorSchema}const j=si.getRegistry(r,E,w),$=Xe(l.registry,j)?l.registry:j,Y=l.fieldPathId&&((ie=l.fieldPathId)==null?void 0:ie[dt])===$.globalFormOptions.idPrefix?l.fieldPathId:nn("",$.globalFormOptions);return{schemaUtils:w,schema:E,uiSchema:p,fieldPathId:Y,formData:g,edit:h,errors:C,errorSchema:_,schemaValidationErrors:F,schemaValidationErrorSchema:I,retrievedSchema:S,initialDefaultsGenerated:!0,registry:$}}shouldComponentUpdate(r,a){const{experimental_componentUpdateStrategy:i="customDeep"}=this.props;return yT(this,r,a,i)}validate(r,a=this.state.schema,i,n){const o=i||this.state.schemaUtils,{customValidate:s,transformErrors:c,uiSchema:l}=this.props,u=n??a,f=r?JSON.parse(JSON.stringify(r)):void 0;return o.getValidator().validateFormData(f,u,s,c,l)}renderErrors(r){const{errors:a,errorSchema:i,schema:n,uiSchema:o}=this.state,s=be(o),c=Ce("ErrorListTemplate",r,s);return a!=null&&a.length?D.jsx(c,{errors:a,errorSchema:i||{},schema:n,uiSchema:o,registry:r}):null}static mergeErrors(r,a,i){let{errorSchema:n,errors:o}=r;if(a){const s=Mo(r,a);n=s.errorSchema,o=s.errors}if(i){const s=Mo({errors:o,errorSchema:n},i.ErrorSchema,!0);n=s.errorSchema,o=s.errors}return{errors:o,errorSchema:n}}liveValidate(r,a,i,n,o,s,c,l=!1){const u=this.validate(n,r,a,c),{errors:f}=u;let{errorSchema:p}=u;l&&(p=aa(i,u.errorSchema,"preventDuplicates"));const d=f,h=p;return{...si.mergeErrors({errorSchema:p,errors:f},o,s),schemaValidationErrors:d,schemaValidationErrorSchema:h}}processPendingChange(){if(this.pendingChanges.length===0)return;this.isProcessingUserChange=!0;const{newValue:r,path:a,id:i}=this.pendingChanges[0],{newErrorSchema:n}=this.pendingChanges[0],{extraErrors:o,omitExtraData:s,liveOmit:c,noValidate:l,liveValidate:u,onChange:f,disabled:p,readonly:d}=this.props,{formData:h,schemaUtils:k,schema:v,fieldPathId:y,schemaValidationErrorSchema:b,errors:w}=this.state;let{customErrors:E,retrievedSchema:m}=this.state,g=b;const S=y.path[0]||"",A=!a||a.length===0||a.length===1&&a[0]===S;let x=A?r:Ws(h);const O=_e(x)&&Object.keys(x).length>0&&Object.values(x).every($=>$===void 0),C=h==null,_=O&&C?void 0:x;if(_e(x)||Array.isArray(x)){let $=!1;if(r===mv)PT(x,a);else if(!A){let ie=r;if(r===void 0)if(typeof a[a.length-1]=="number")ie=null;else{const{field:M}=k.findFieldInSchema(v,a,h),U=M;!(U&&(Fe in U||Ve in U))&&U!==void 0&&($=!0)}$?vt(x,a,void 0):vt(x,a,ie)}const Y=m&&!A&&!_e(r)&&!Array.isArray(r)&&!p&&!d,Z=this.getStateFromProps(this.props,_,void 0,void 0,void 0,!0,Y);x=Z.formData,m=Z.retrievedSchema,$&&x&&vt(x,a,void 0)}const F=!l&&(u===!0||u==="onChange");let I={formData:x,retrievedSchema:m},j=x;if(s===!0&&(c===!0||c==="onChange")&&(j=this.omitExtraData(x),I={...I,formData:j}),n){const $=A?b:se(b,a);if(!Dt($))A?g=n:(g=Ws(b),vt(g,a,n));else if(E||(E=new Xg),A){const Y=se(n,er);Y&&E.setErrors(Y)}else vt(E.ErrorSchema,a,n)}else E&&se(E.ErrorSchema,[...a,er])&&E.clearErrors(a);if(F&&this.pendingChanges.length===1){const $=this.liveValidate(v,k,g,j,o,E,m);I={...I,formData:j,...$,customErrors:E}}else if(!l&&n){const $=si.mergeErrors({errorSchema:g,errors:w},o,E);I={...I,formData:j,...$,customErrors:E}}this.setState(I,()=>{f&&f($i({...this.state,...I}),i),this.pendingChanges.shift(),this.processPendingChange()})}updateRetrievedSchema(r){var i;return Xe(r,(i=this.state)==null?void 0:i.retrievedSchema)?this.state.retrievedSchema:r}static getGlobalFormOptions(r){const{uiSchema:a={},experimental_componentUpdateStrategy:i,idSeparator:n=Om,idPrefix:o=_m,nameGenerator:s,useFallbackUiForUnsupportedType:c=!1}=r;return{idPrefix:a["ui:rootFieldId"]||o,idSeparator:n,useFallbackUiForUnsupportedType:c,...i!==void 0&&{experimental_componentUpdateStrategy:i},...s!==void 0&&{nameGenerator:s}}}static getRegistry(r,a,i){var p;const{translateString:n,uiSchema:o={}}=r,{fields:s,templates:c,widgets:l,formContext:u,translateString:f}=aD();return{fields:{...s,...r.fields},templates:{...c,...r.templates,ButtonTemplates:{...c.ButtonTemplates,...(p=r.templates)==null?void 0:p.ButtonTemplates}},widgets:{...l,...r.widgets},rootSchema:a,formContext:r.formContext||u,schemaUtils:i,translateString:n||f,globalUiOptions:o[lu],globalFormOptions:si.getGlobalFormOptions(r),uiSchemaDefinitions:o[Zw]??{}}}focusOnError(r){const{idPrefix:a="root",idSeparator:i="_"}=this.props,{property:n}=r,o=uy(n);o[0]===""?o[0]=a:o.unshift(a);const s=o.join(i);let c=this.formElement.current.elements[s];c||(c=this.formElement.current.querySelector(`input[id^="${s}"], button[id^="${s}"]`)),c!=null&&c.length&&(c=c[0]),c&&c.focus()}validateForm(){const{omitExtraData:r}=this.props;let{formData:a}=this.state;return r===!0&&(a=this.omitExtraData(a)),this.validateFormWithFormData(a)}render(){const{children:r,id:a,className:i="",tagName:n,name:o,method:s,target:c,action:l,autoComplete:u,enctype:f,acceptCharset:p,noHtml5Validate:d=!1,disabled:h,readonly:k,showErrorList:v="top",_internalFormWrapper:y}=this.props,{schema:b,uiSchema:w,formData:E,errorSchema:m,fieldPathId:g,registry:S}=this.state,{SchemaField:A}=S.fields,{SubmitButton:x}=S.templates.ButtonTemplates,O=y?n:void 0,C=y||n||"form";let{[ws]:_={}}=be(w);h&&(_={..._,props:{..._.props,disabled:!0}});const F={[Zn]:{[ws]:_}};return D.jsxs(C,{className:i||"rjsf",id:a,name:o,method:s,target:c,action:l,autoComplete:u,encType:f,acceptCharset:p,noValidate:d,onSubmit:this.onSubmit,as:O,ref:this.formElement,children:[v==="top"&&this.renderErrors(S),D.jsx(A,{name:"",schema:b,uiSchema:w,errorSchema:m,fieldPathId:g,formData:E,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:S,disabled:h,readonly:k}),r||D.jsx(x,{uiSchema:F,registry:S}),v==="bottom"&&this.renderErrors(S)]})}};function oD(e,t="none"){return t==="all"?e:e.reduce((r,a)=>{const{message:i,schemaPath:n}=a,o=t!=="anyOf"?n==null?void 0:n.indexOf(`/${Ve}/`):void 0,s=t!=="oneOf"?n==null?void 0:n.indexOf(`/${Fe}/`):void 0;let c;return o&&o>=0?c=n==null?void 0:n.substring(0,o):s&&s>=0&&(c=n==null?void 0:n.substring(0,s)),(c?r.find(u=>{var f;return u.message===i&&((f=u.schemaPath)===null||f===void 0?void 0:f.startsWith(c))}):void 0)||r.push(a),r},[])}function sD(e=[],t,r,a){const i=e.map(n=>{var o;const{instancePath:s,keyword:c,params:l,schemaPath:u,parentSchema:f,...p}=n;let{message:d=""}=p,h=s.replace(/\//g,"."),k=`${h} ${d}`.trim(),v="";const y=[...((o=l.deps)===null||o===void 0?void 0:o.split(", "))||[],l.missingProperty,l.property].filter(b=>b);if(y.length>0)y.forEach(b=>{const w=h?`${h}.${b}`:b;let E=be(se(t,w.replace(/^\./,""))).title;if(E===void 0){const m=u.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([b]);E=be(se(t,m)).title}if(E===void 0){const m=h.replace(/^\./,"").split(".").filter(Boolean);E=se(t,[...m,b,"title"])}if(E)d=d.replace(`'${b}'`,`'${E}'`),v=E;else{const m=se(f,[Je,b,"title"]);if(m)d=d.replace(`'${b}'`,`'${m}'`),v=m;else if(a){const g=h.replace(/^\./,"").split(".").filter(Boolean),S=[];for(const x of g)S.push(Je,x);S.push(Je,b,"title");const A=se(a,S);A&&(d=d.replace(`'${b}'`,`'${A}'`),v=A)}}}),k=d;else{const b=be(se(t,h.replace(/^\./,""))).title;if(b)k=`'${b}' ${d}`.trim(),v=b;else{const w=f==null?void 0:f.title;w&&(k=`'${w}' ${d}`.trim(),v=w)}}return"missingProperty"in l&&(h=h?`${h}.${l.missingProperty}`:l.missingProperty),{name:c,property:h,message:d,params:l,stack:k,schemaPath:u,title:v}});return oD(i,r)}function lD(e,t,r,a,i,n,o,s){const{validationError:c}=t;let l=sD(t.errors,o,s,a);c&&(l=[...l,{stack:c.message}]),typeof n=="function"&&(l=n(l,o));let u=vT(l);if(c&&(u={...u,$schema:{__errors:[c.message]}}),typeof i!="function")return{errors:l,errorSchema:u};const f=qg(e,a,r,a,!0),p=i(f,cu(f),o,u),d=fy(p);return Mo({errors:l,errorSchema:u},d)}var pl={exports:{}},Gf={},Un={},Qa={},Jf={},Yf={},Xf={},Ev;function ml(){return Ev||(Ev=1,(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(b){if(super(),!e.IDENTIFIER.test(b))throw new Error("CodeGen: name must be a valid identifier");this.str=b}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class a extends t{constructor(b){super(),this._items=typeof b=="string"?[b]:b}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const b=this._items[0];return b===""||b==='""'}get str(){var b;return(b=this._str)!==null&&b!==void 0?b:this._str=this._items.reduce((w,E)=>`${w}${E}`,"")}get names(){var b;return(b=this._names)!==null&&b!==void 0?b:this._names=this._items.reduce((w,E)=>(E instanceof r&&(w[E.str]=(w[E.str]||0)+1),w),{})}}e._Code=a,e.nil=new a("");function i(y,...b){const w=[y[0]];let E=0;for(;E<b.length;)s(w,b[E]),w.push(y[++E]);return new a(w)}e._=i;const n=new a("+");function o(y,...b){const w=[d(y[0])];let E=0;for(;E<b.length;)w.push(n),s(w,b[E]),w.push(n,d(y[++E]));return c(w),new a(w)}e.str=o;function s(y,b){b instanceof a?y.push(...b._items):b instanceof r?y.push(b):y.push(f(b))}e.addCodeArg=s;function c(y){let b=1;for(;b<y.length-1;){if(y[b]===n){const w=l(y[b-1],y[b+1]);if(w!==void 0){y.splice(b-1,3,w);continue}y[b++]="+"}b++}}function l(y,b){if(b==='""')return y;if(y==='""')return b;if(typeof y=="string")return b instanceof r||y[y.length-1]!=='"'?void 0:typeof b!="string"?`${y.slice(0,-1)}${b}"`:b[0]==='"'?y.slice(0,-1)+b.slice(1):void 0;if(typeof b=="string"&&b[0]==='"'&&!(y instanceof r))return`"${y}${b.slice(1)}`}function u(y,b){return b.emptyStr()?y:y.emptyStr()?b:o`${y}${b}`}e.strConcat=u;function f(y){return typeof y=="number"||typeof y=="boolean"||y===null?y:d(Array.isArray(y)?y.join(","):y)}function p(y){return new a(d(y))}e.stringify=p;function d(y){return JSON.stringify(y).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=d;function h(y){return typeof y=="string"&&e.IDENTIFIER.test(y)?new a(`.${y}`):i`[${y}]`}e.getProperty=h;function k(y){if(typeof y=="string"&&e.IDENTIFIER.test(y))return new a(`${y}`);throw new Error(`CodeGen: invalid export name: ${y}, use explicit $id name mapping`)}e.getEsmExportName=k;function v(y){return new a(y.toString())}e.regexpCode=v})(Xf)),Xf}var Zf={},Cv;function Av(){return Cv||(Cv=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=ml();class r extends Error{constructor(l){super(`CodeGen: "code" for ${l} not defined`),this.value=l.value}}var a;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(a||(e.UsedValueState=a={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{constructor({prefixes:l,parent:u}={}){this._names={},this._prefixes=l,this._parent=u}toName(l){return l instanceof t.Name?l:this.name(l)}name(l){return new t.Name(this._newName(l))}_newName(l){const u=this._names[l]||this._nameGroup(l);return`${l}${u.index++}`}_nameGroup(l){var u,f;if(!((f=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||f===void 0)&&f.has(l)||this._prefixes&&!this._prefixes.has(l))throw new Error(`CodeGen: prefix "${l}" is not allowed in this scope`);return this._names[l]={prefix:l,index:0}}}e.Scope=i;class n extends t.Name{constructor(l,u){super(u),this.prefix=l}setValue(l,{property:u,itemIndex:f}){this.value=l,this.scopePath=(0,t._)`.${new t.Name(u)}[${f}]`}}e.ValueScopeName=n;const o=(0,t._)`\n`;class s extends i{constructor(l){super(l),this._values={},this._scope=l.scope,this.opts={...l,_n:l.lines?o:t.nil}}get(){return this._scope}name(l){return new n(l,this._newName(l))}value(l,u){var f;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const p=this.toName(l),{prefix:d}=p,h=(f=u.key)!==null&&f!==void 0?f:u.ref;let k=this._values[d];if(k){const b=k.get(h);if(b)return b}else k=this._values[d]=new Map;k.set(h,p);const v=this._scope[d]||(this._scope[d]=[]),y=v.length;return v[y]=u.ref,p.setValue(u,{property:d,itemIndex:y}),p}getValue(l,u){const f=this._values[l];if(f)return f.get(u)}scopeRefs(l,u=this._values){return this._reduceValues(u,f=>{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,t._)`${l}${f.scopePath}`})}scopeCode(l=this._values,u,f){return this._reduceValues(l,p=>{if(p.value===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return p.value.code},u,f)}_reduceValues(l,u,f={},p){let d=t.nil;for(const h in l){const k=l[h];if(!k)continue;const v=f[h]=f[h]||new Map;k.forEach(y=>{if(v.has(y))return;v.set(y,a.Started);let b=u(y);if(b){const w=this.opts.es5?e.varKinds.var:e.varKinds.const;d=(0,t._)`${d}${w} ${y} = ${b};${this.opts._n}`}else if(b=p==null?void 0:p(y))d=(0,t._)`${d}${b}${this.opts._n}`;else throw new r(y);v.set(y,a.Completed)})}return d}}e.ValueScope=s})(Zf)),Zf}var _v;function Ue(){return _v||(_v=1,(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=ml(),r=Av();var a=ml();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return a._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return a.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return a.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return a.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return a.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return a.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return a.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return a.Name}});var i=Av();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.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 n{optimizeNodes(){return this}optimizeNames(N,L){return this}}class o extends n{constructor(N,L,B){super(),this.varKind=N,this.name=L,this.rhs=B}render({es5:N,_n:L}){const B=N?r.varKinds.var:this.varKind,V=this.rhs===void 0?"":` = ${this.rhs}`;return`${B} ${this.name}${V};`+L}optimizeNames(N,L){if(N[this.name.str])return this.rhs&&(this.rhs=I(this.rhs,N,L)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends n{constructor(N,L,B){super(),this.lhs=N,this.rhs=L,this.sideEffects=B}render({_n:N}){return`${this.lhs} = ${this.rhs};`+N}optimizeNames(N,L){if(!(this.lhs instanceof t.Name&&!N[this.lhs.str]&&!this.sideEffects))return this.rhs=I(this.rhs,N,L),this}get names(){const N=this.lhs instanceof t.Name?{}:{...this.lhs.names};return F(N,this.rhs)}}class c extends s{constructor(N,L,B,V){super(N,B,V),this.op=L}render({_n:N}){return`${this.lhs} ${this.op}= ${this.rhs};`+N}}class l extends n{constructor(N){super(),this.label=N,this.names={}}render({_n:N}){return`${this.label}:`+N}}class u extends n{constructor(N){super(),this.label=N,this.names={}}render({_n:N}){return`break${this.label?` ${this.label}`:""};`+N}}class f extends n{constructor(N){super(),this.error=N}render({_n:N}){return`throw ${this.error};`+N}get names(){return this.error.names}}class p extends n{constructor(N){super(),this.code=N}render({_n:N}){return`${this.code};`+N}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(N,L){return this.code=I(this.code,N,L),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class d extends n{constructor(N=[]){super(),this.nodes=N}render(N){return this.nodes.reduce((L,B)=>L+B.render(N),"")}optimizeNodes(){const{nodes:N}=this;let L=N.length;for(;L--;){const B=N[L].optimizeNodes();Array.isArray(B)?N.splice(L,1,...B):B?N[L]=B:N.splice(L,1)}return N.length>0?this:void 0}optimizeNames(N,L){const{nodes:B}=this;let V=B.length;for(;V--;){const K=B[V];K.optimizeNames(N,L)||(j(N,K.names),B.splice(V,1))}return B.length>0?this:void 0}get names(){return this.nodes.reduce((N,L)=>_(N,L.names),{})}}class h extends d{render(N){return"{"+N._n+super.render(N)+"}"+N._n}}class k extends d{}class v extends h{}v.kind="else";class y extends h{constructor(N,L){super(L),this.condition=N}render(N){let L=`if(${this.condition})`+super.render(N);return this.else&&(L+="else "+this.else.render(N)),L}optimizeNodes(){super.optimizeNodes();const N=this.condition;if(N===!0)return this.nodes;let L=this.else;if(L){const B=L.optimizeNodes();L=this.else=Array.isArray(B)?new v(B):B}if(L)return N===!1?L instanceof y?L:L.nodes:this.nodes.length?this:new y($(N),L instanceof y?[L]:L.nodes);if(!(N===!1||!this.nodes.length))return this}optimizeNames(N,L){var B;if(this.else=(B=this.else)===null||B===void 0?void 0:B.optimizeNames(N,L),!!(super.optimizeNames(N,L)||this.else))return this.condition=I(this.condition,N,L),this}get names(){const N=super.names;return F(N,this.condition),this.else&&_(N,this.else.names),N}}y.kind="if";class b extends h{}b.kind="for";class w extends b{constructor(N){super(),this.iteration=N}render(N){return`for(${this.iteration})`+super.render(N)}optimizeNames(N,L){if(super.optimizeNames(N,L))return this.iteration=I(this.iteration,N,L),this}get names(){return _(super.names,this.iteration.names)}}class E extends b{constructor(N,L,B,V){super(),this.varKind=N,this.name=L,this.from=B,this.to=V}render(N){const L=N.es5?r.varKinds.var:this.varKind,{name:B,from:V,to:K}=this;return`for(${L} ${B}=${V}; ${B}<${K}; ${B}++)`+super.render(N)}get names(){const N=F(super.names,this.from);return F(N,this.to)}}class m extends b{constructor(N,L,B,V){super(),this.loop=N,this.varKind=L,this.name=B,this.iterable=V}render(N){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(N)}optimizeNames(N,L){if(super.optimizeNames(N,L))return this.iterable=I(this.iterable,N,L),this}get names(){return _(super.names,this.iterable.names)}}class g extends h{constructor(N,L,B){super(),this.name=N,this.args=L,this.async=B}render(N){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(N)}}g.kind="func";class S extends d{render(N){return"return "+super.render(N)}}S.kind="return";class A extends h{render(N){let L="try"+super.render(N);return this.catch&&(L+=this.catch.render(N)),this.finally&&(L+=this.finally.render(N)),L}optimizeNodes(){var N,L;return super.optimizeNodes(),(N=this.catch)===null||N===void 0||N.optimizeNodes(),(L=this.finally)===null||L===void 0||L.optimizeNodes(),this}optimizeNames(N,L){var B,V;return super.optimizeNames(N,L),(B=this.catch)===null||B===void 0||B.optimizeNames(N,L),(V=this.finally)===null||V===void 0||V.optimizeNames(N,L),this}get names(){const N=super.names;return this.catch&&_(N,this.catch.names),this.finally&&_(N,this.finally.names),N}}class x extends h{constructor(N){super(),this.error=N}render(N){return`catch(${this.error})`+super.render(N)}}x.kind="catch";class O extends h{render(N){return"finally"+super.render(N)}}O.kind="finally";class C{constructor(N,L={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...L,_n:L.lines?`
|
|
99
|
-
`:""},this._extScope=N,this._scope=new r.Scope({parent:N}),this._nodes=[new k]}toString(){return this._root.render(this.opts)}name(N){return this._scope.name(N)}scopeName(N){return this._extScope.name(N)}scopeValue(N,L){const B=this._extScope.value(N,L);return(this._values[B.prefix]||(this._values[B.prefix]=new Set)).add(B),B}getScopeValue(N,L){return this._extScope.getValue(N,L)}scopeRefs(N){return this._extScope.scopeRefs(N,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(N,L,B,V){const K=this._scope.toName(L);return B!==void 0&&V&&(this._constants[K.str]=B),this._leafNode(new o(N,K,B)),K}const(N,L,B){return this._def(r.varKinds.const,N,L,B)}let(N,L,B){return this._def(r.varKinds.let,N,L,B)}var(N,L,B){return this._def(r.varKinds.var,N,L,B)}assign(N,L,B){return this._leafNode(new s(N,L,B))}add(N,L){return this._leafNode(new c(N,e.operators.ADD,L))}code(N){return typeof N=="function"?N():N!==t.nil&&this._leafNode(new p(N)),this}object(...N){const L=["{"];for(const[B,V]of N)L.length>1&&L.push(","),L.push(B),(B!==V||this.opts.es5)&&(L.push(":"),(0,t.addCodeArg)(L,V));return L.push("}"),new t._Code(L)}if(N,L,B){if(this._blockNode(new y(N)),L&&B)this.code(L).else().code(B).endIf();else if(L)this.code(L).endIf();else if(B)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(N){return this._elseNode(new y(N))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(y,v)}_for(N,L){return this._blockNode(N),L&&this.code(L).endFor(),this}for(N,L){return this._for(new w(N),L)}forRange(N,L,B,V,K=this.opts.es5?r.varKinds.var:r.varKinds.let){const J=this._scope.toName(N);return this._for(new E(K,J,L,B),()=>V(J))}forOf(N,L,B,V=r.varKinds.const){const K=this._scope.toName(N);if(this.opts.es5){const J=L instanceof t.Name?L:this.var("_arr",L);return this.forRange("_i",0,(0,t._)`${J}.length`,Q=>{this.var(K,(0,t._)`${J}[${Q}]`),B(K)})}return this._for(new m("of",V,K,L),()=>B(K))}forIn(N,L,B,V=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(N,(0,t._)`Object.keys(${L})`,B);const K=this._scope.toName(N);return this._for(new m("in",V,K,L),()=>B(K))}endFor(){return this._endBlockNode(b)}label(N){return this._leafNode(new l(N))}break(N){return this._leafNode(new u(N))}return(N){const L=new S;if(this._blockNode(L),this.code(N),L.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(N,L,B){if(!L&&!B)throw new Error('CodeGen: "try" without "catch" and "finally"');const V=new A;if(this._blockNode(V),this.code(N),L){const K=this.name("e");this._currNode=V.catch=new x(K),L(K)}return B&&(this._currNode=V.finally=new O,this.code(B)),this._endBlockNode(x,O)}throw(N){return this._leafNode(new f(N))}block(N,L){return this._blockStarts.push(this._nodes.length),N&&this.code(N).endBlock(L),this}endBlock(N){const L=this._blockStarts.pop();if(L===void 0)throw new Error("CodeGen: not in self-balancing block");const B=this._nodes.length-L;if(B<0||N!==void 0&&B!==N)throw new Error(`CodeGen: wrong number of nodes: ${B} vs ${N} expected`);return this._nodes.length=L,this}func(N,L=t.nil,B,V){return this._blockNode(new g(N,L,B)),V&&this.code(V).endFunc(),this}endFunc(){return this._endBlockNode(g)}optimize(N=1){for(;N-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(N){return this._currNode.nodes.push(N),this}_blockNode(N){this._currNode.nodes.push(N),this._nodes.push(N)}_endBlockNode(N,L){const B=this._currNode;if(B instanceof N||L&&B instanceof L)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${L?`${N.kind}/${L.kind}`:N.kind}"`)}_elseNode(N){const L=this._currNode;if(!(L instanceof y))throw new Error('CodeGen: "else" without "if"');return this._currNode=L.else=N,this}get _root(){return this._nodes[0]}get _currNode(){const N=this._nodes;return N[N.length-1]}set _currNode(N){const L=this._nodes;L[L.length-1]=N}}e.CodeGen=C;function _(T,N){for(const L in N)T[L]=(T[L]||0)+(N[L]||0);return T}function F(T,N){return N instanceof t._CodeOrName?_(T,N.names):T}function I(T,N,L){if(T instanceof t.Name)return B(T);if(!V(T))return T;return new t._Code(T._items.reduce((K,J)=>(J instanceof t.Name&&(J=B(J)),J instanceof t._Code?K.push(...J._items):K.push(J),K),[]));function B(K){const J=L[K.str];return J===void 0||N[K.str]!==1?K:(delete N[K.str],J)}function V(K){return K instanceof t._Code&&K._items.some(J=>J instanceof t.Name&&N[J.str]===1&&L[J.str]!==void 0)}}function j(T,N){for(const L in N)T[L]=(T[L]||0)-(N[L]||0)}function $(T){return typeof T=="boolean"||typeof T=="number"||T===null?!T:(0,t._)`!${U(T)}`}e.not=$;const Y=M(e.operators.AND);function Z(...T){return T.reduce(Y)}e.and=Z;const ie=M(e.operators.OR);function P(...T){return T.reduce(ie)}e.or=P;function M(T){return(N,L)=>N===t.nil?L:L===t.nil?N:(0,t._)`${U(N)} ${T} ${U(L)}`}function U(T){return T instanceof t.Name?T:(0,t._)`(${T})`}})(Yf)),Yf}var Be={},Ov;function et(){if(Ov)return Be;Ov=1,Object.defineProperty(Be,"__esModule",{value:!0}),Be.checkStrictMode=Be.getErrorPath=Be.Type=Be.useFunc=Be.setEvaluated=Be.evaluatedPropsToName=Be.mergeEvaluated=Be.eachItem=Be.unescapeJsonPointer=Be.escapeJsonPointer=Be.escapeFragment=Be.unescapeFragment=Be.schemaRefOrVal=Be.schemaHasRulesButRef=Be.schemaHasRules=Be.checkUnknownRules=Be.alwaysValidSchema=Be.toHash=void 0;const e=Ue(),t=ml();function r(m){const g={};for(const S of m)g[S]=!0;return g}Be.toHash=r;function a(m,g){return typeof g=="boolean"?g:Object.keys(g).length===0?!0:(i(m,g),!n(g,m.self.RULES.all))}Be.alwaysValidSchema=a;function i(m,g=m.schema){const{opts:S,self:A}=m;if(!S.strictSchema||typeof g=="boolean")return;const x=A.RULES.keywords;for(const O in g)x[O]||E(m,`unknown keyword: "${O}"`)}Be.checkUnknownRules=i;function n(m,g){if(typeof m=="boolean")return!m;for(const S in m)if(g[S])return!0;return!1}Be.schemaHasRules=n;function o(m,g){if(typeof m=="boolean")return!m;for(const S in m)if(S!=="$ref"&&g.all[S])return!0;return!1}Be.schemaHasRulesButRef=o;function s({topSchemaRef:m,schemaPath:g},S,A,x){if(!x){if(typeof S=="number"||typeof S=="boolean")return S;if(typeof S=="string")return(0,e._)`${S}`}return(0,e._)`${m}${g}${(0,e.getProperty)(A)}`}Be.schemaRefOrVal=s;function c(m){return f(decodeURIComponent(m))}Be.unescapeFragment=c;function l(m){return encodeURIComponent(u(m))}Be.escapeFragment=l;function u(m){return typeof m=="number"?`${m}`:m.replace(/~/g,"~0").replace(/\//g,"~1")}Be.escapeJsonPointer=u;function f(m){return m.replace(/~1/g,"/").replace(/~0/g,"~")}Be.unescapeJsonPointer=f;function p(m,g){if(Array.isArray(m))for(const S of m)g(S);else g(m)}Be.eachItem=p;function d({mergeNames:m,mergeToName:g,mergeValues:S,resultToName:A}){return(x,O,C,_)=>{const F=C===void 0?O:C instanceof e.Name?(O instanceof e.Name?m(x,O,C):g(x,O,C),C):O instanceof e.Name?(g(x,C,O),O):S(O,C);return _===e.Name&&!(F instanceof e.Name)?A(x,F):F}}Be.mergeEvaluated={props:d({mergeNames:(m,g,S)=>m.if((0,e._)`${S} !== true && ${g} !== undefined`,()=>{m.if((0,e._)`${g} === true`,()=>m.assign(S,!0),()=>m.assign(S,(0,e._)`${S} || {}`).code((0,e._)`Object.assign(${S}, ${g})`))}),mergeToName:(m,g,S)=>m.if((0,e._)`${S} !== true`,()=>{g===!0?m.assign(S,!0):(m.assign(S,(0,e._)`${S} || {}`),k(m,S,g))}),mergeValues:(m,g)=>m===!0?!0:{...m,...g},resultToName:h}),items:d({mergeNames:(m,g,S)=>m.if((0,e._)`${S} !== true && ${g} !== undefined`,()=>m.assign(S,(0,e._)`${g} === true ? true : ${S} > ${g} ? ${S} : ${g}`)),mergeToName:(m,g,S)=>m.if((0,e._)`${S} !== true`,()=>m.assign(S,g===!0?!0:(0,e._)`${S} > ${g} ? ${S} : ${g}`)),mergeValues:(m,g)=>m===!0?!0:Math.max(m,g),resultToName:(m,g)=>m.var("items",g)})};function h(m,g){if(g===!0)return m.var("props",!0);const S=m.var("props",(0,e._)`{}`);return g!==void 0&&k(m,S,g),S}Be.evaluatedPropsToName=h;function k(m,g,S){Object.keys(S).forEach(A=>m.assign((0,e._)`${g}${(0,e.getProperty)(A)}`,!0))}Be.setEvaluated=k;const v={};function y(m,g){return m.scopeValue("func",{ref:g,code:v[g.code]||(v[g.code]=new t._Code(g.code))})}Be.useFunc=y;var b;(function(m){m[m.Num=0]="Num",m[m.Str=1]="Str"})(b||(Be.Type=b={}));function w(m,g,S){if(m instanceof e.Name){const A=g===b.Num;return S?A?(0,e._)`"[" + ${m} + "]"`:(0,e._)`"['" + ${m} + "']"`:A?(0,e._)`"/" + ${m}`:(0,e._)`"/" + ${m}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return S?(0,e.getProperty)(m).toString():"/"+u(m)}Be.getErrorPath=w;function E(m,g,S=m.opts.strictSchema){if(S){if(g=`strict mode: ${g}`,S===!0)throw new Error(g);m.self.logger.warn(g)}}return Be.checkStrictMode=E,Be}var hl={},xv;function ka(){if(xv)return hl;xv=1,Object.defineProperty(hl,"__esModule",{value:!0});const e=Ue(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return hl.default=t,hl}var Tv;function gl(){return Tv||(Tv=1,(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=Ue(),r=et(),a=ka();e.keywordError={message:({keyword:v})=>(0,t.str)`must pass "${v}" keyword validation`},e.keyword$DataError={message:({keyword:v,schemaType:y})=>y?(0,t.str)`"${v}" keyword must be ${y} ($data)`:(0,t.str)`"${v}" keyword is invalid ($data)`};function i(v,y=e.keywordError,b,w){const{it:E}=v,{gen:m,compositeRule:g,allErrors:S}=E,A=f(v,y,b);w??(g||S)?c(m,A):l(E,(0,t._)`[${A}]`)}e.reportError=i;function n(v,y=e.keywordError,b){const{it:w}=v,{gen:E,compositeRule:m,allErrors:g}=w,S=f(v,y,b);c(E,S),m||g||l(w,a.default.vErrors)}e.reportExtraError=n;function o(v,y){v.assign(a.default.errors,y),v.if((0,t._)`${a.default.vErrors} !== null`,()=>v.if(y,()=>v.assign((0,t._)`${a.default.vErrors}.length`,y),()=>v.assign(a.default.vErrors,null)))}e.resetErrorsCount=o;function s({gen:v,keyword:y,schemaValue:b,data:w,errsCount:E,it:m}){if(E===void 0)throw new Error("ajv implementation error");const g=v.name("err");v.forRange("i",E,a.default.errors,S=>{v.const(g,(0,t._)`${a.default.vErrors}[${S}]`),v.if((0,t._)`${g}.instancePath === undefined`,()=>v.assign((0,t._)`${g}.instancePath`,(0,t.strConcat)(a.default.instancePath,m.errorPath))),v.assign((0,t._)`${g}.schemaPath`,(0,t.str)`${m.errSchemaPath}/${y}`),m.opts.verbose&&(v.assign((0,t._)`${g}.schema`,b),v.assign((0,t._)`${g}.data`,w))})}e.extendErrors=s;function c(v,y){const b=v.const("err",y);v.if((0,t._)`${a.default.vErrors} === null`,()=>v.assign(a.default.vErrors,(0,t._)`[${b}]`),(0,t._)`${a.default.vErrors}.push(${b})`),v.code((0,t._)`${a.default.errors}++`)}function l(v,y){const{gen:b,validateName:w,schemaEnv:E}=v;E.$async?b.throw((0,t._)`new ${v.ValidationError}(${y})`):(b.assign((0,t._)`${w}.errors`,y),b.return(!1))}const u={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(v,y,b){const{createErrors:w}=v.it;return w===!1?(0,t._)`{}`:p(v,y,b)}function p(v,y,b={}){const{gen:w,it:E}=v,m=[d(E,b),h(v,b)];return k(v,y,m),w.object(...m)}function d({errorPath:v},{instancePath:y}){const b=y?(0,t.str)`${v}${(0,r.getErrorPath)(y,r.Type.Str)}`:v;return[a.default.instancePath,(0,t.strConcat)(a.default.instancePath,b)]}function h({keyword:v,it:{errSchemaPath:y}},{schemaPath:b,parentSchema:w}){let E=w?y:(0,t.str)`${y}/${v}`;return b&&(E=(0,t.str)`${E}${(0,r.getErrorPath)(b,r.Type.Str)}`),[u.schemaPath,E]}function k(v,{params:y,message:b},w){const{keyword:E,data:m,schemaValue:g,it:S}=v,{opts:A,propertyName:x,topSchemaRef:O,schemaPath:C}=S;w.push([u.keyword,E],[u.params,typeof y=="function"?y(v):y||(0,t._)`{}`]),A.messages&&w.push([u.message,typeof b=="function"?b(v):b]),A.verbose&&w.push([u.schema,g],[u.parentSchema,(0,t._)`${O}${C}`],[a.default.data,m]),x&&w.push([u.propertyName,x])}})(Jf)),Jf}var Pv;function cD(){if(Pv)return Qa;Pv=1,Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.boolOrEmptySchema=Qa.topBoolOrEmptySchema=void 0;const e=gl(),t=Ue(),r=ka(),a={message:"boolean schema is false"};function i(s){const{gen:c,schema:l,validateName:u}=s;l===!1?o(s,!1):typeof l=="object"&&l.$async===!0?c.return(r.default.data):(c.assign((0,t._)`${u}.errors`,null),c.return(!0))}Qa.topBoolOrEmptySchema=i;function n(s,c){const{gen:l,schema:u}=s;u===!1?(l.var(c,!1),o(s)):l.var(c,!0)}Qa.boolOrEmptySchema=n;function o(s,c){const{gen:l,data:u}=s,f={gen:l,keyword:"false schema",data:u,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:s};(0,e.reportError)(f,a,void 0,c)}return Qa}var rr={},ei={},Iv;function Nv(){if(Iv)return ei;Iv=1,Object.defineProperty(ei,"__esModule",{value:!0}),ei.getRules=ei.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function r(i){return typeof i=="string"&&t.has(i)}ei.isJSONType=r;function a(){const i={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...i,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},i.number,i.string,i.array,i.object],post:{rules:[]},all:{},keywords:{}}}return ei.getRules=a,ei}var Bn={},Dv;function Fv(){if(Dv)return Bn;Dv=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.shouldUseRule=Bn.shouldUseGroup=Bn.schemaHasRulesForType=void 0;function e({schema:a,self:i},n){const o=i.RULES.types[n];return o&&o!==!0&&t(a,o)}Bn.schemaHasRulesForType=e;function t(a,i){return i.rules.some(n=>r(a,n))}Bn.shouldUseGroup=t;function r(a,i){var n;return a[i.keyword]!==void 0||((n=i.definition.implements)===null||n===void 0?void 0:n.some(o=>a[o]!==void 0))}return Bn.shouldUseRule=r,Bn}var Mv;function yl(){if(Mv)return rr;Mv=1,Object.defineProperty(rr,"__esModule",{value:!0}),rr.reportTypeError=rr.checkDataTypes=rr.checkDataType=rr.coerceAndCheckDataType=rr.getJSONTypes=rr.getSchemaTypes=rr.DataType=void 0;const e=Nv(),t=Fv(),r=gl(),a=Ue(),i=et();var n;(function(b){b[b.Correct=0]="Correct",b[b.Wrong=1]="Wrong"})(n||(rr.DataType=n={}));function o(b){const w=s(b.type);if(w.includes("null")){if(b.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!w.length&&b.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');b.nullable===!0&&w.push("null")}return w}rr.getSchemaTypes=o;function s(b){const w=Array.isArray(b)?b:b?[b]:[];if(w.every(e.isJSONType))return w;throw new Error("type must be JSONType or JSONType[]: "+w.join(","))}rr.getJSONTypes=s;function c(b,w){const{gen:E,data:m,opts:g}=b,S=u(w,g.coerceTypes),A=w.length>0&&!(S.length===0&&w.length===1&&(0,t.schemaHasRulesForType)(b,w[0]));if(A){const x=h(w,m,g.strictNumbers,n.Wrong);E.if(x,()=>{S.length?f(b,w,S):v(b)})}return A}rr.coerceAndCheckDataType=c;const l=new Set(["string","number","integer","boolean","null"]);function u(b,w){return w?b.filter(E=>l.has(E)||w==="array"&&E==="array"):[]}function f(b,w,E){const{gen:m,data:g,opts:S}=b,A=m.let("dataType",(0,a._)`typeof ${g}`),x=m.let("coerced",(0,a._)`undefined`);S.coerceTypes==="array"&&m.if((0,a._)`${A} == 'object' && Array.isArray(${g}) && ${g}.length == 1`,()=>m.assign(g,(0,a._)`${g}[0]`).assign(A,(0,a._)`typeof ${g}`).if(h(w,g,S.strictNumbers),()=>m.assign(x,g))),m.if((0,a._)`${x} !== undefined`);for(const C of E)(l.has(C)||C==="array"&&S.coerceTypes==="array")&&O(C);m.else(),v(b),m.endIf(),m.if((0,a._)`${x} !== undefined`,()=>{m.assign(g,x),p(b,x)});function O(C){switch(C){case"string":m.elseIf((0,a._)`${A} == "number" || ${A} == "boolean"`).assign(x,(0,a._)`"" + ${g}`).elseIf((0,a._)`${g} === null`).assign(x,(0,a._)`""`);return;case"number":m.elseIf((0,a._)`${A} == "boolean" || ${g} === null
|
|
100
|
-
|| (${
|
|
101
|
-
|| (${
|
|
102
|
-
|| ${A} === "boolean" || ${g} === null`).assign(x,(0,a._)`[${g}]`)}}}function p({gen:b,parentData:w,parentDataProperty:E},m){b.if((0,a._)`${w} !== undefined`,()=>b.assign((0,a._)`${w}[${E}]`,m))}function d(b,w,E,m=n.Correct){const g=m===n.Correct?a.operators.EQ:a.operators.NEQ;let S;switch(b){case"null":return(0,a._)`${w} ${g} null`;case"array":S=(0,a._)`Array.isArray(${w})`;break;case"object":S=(0,a._)`${w} && typeof ${w} == "object" && !Array.isArray(${w})`;break;case"integer":S=A((0,a._)`!(${w} % 1) && !isNaN(${w})`);break;case"number":S=A();break;default:return(0,a._)`typeof ${w} ${g} ${b}`}return m===n.Correct?S:(0,a.not)(S);function A(x=a.nil){return(0,a.and)((0,a._)`typeof ${w} == "number"`,x,E?(0,a._)`isFinite(${w})`:a.nil)}}rr.checkDataType=d;function h(b,w,E,m){if(b.length===1)return d(b[0],w,E,m);let g;const S=(0,i.toHash)(b);if(S.array&&S.object){const A=(0,a._)`typeof ${w} != "object"`;g=S.null?A:(0,a._)`!${w} || ${A}`,delete S.null,delete S.array,delete S.object}else g=a.nil;S.number&&delete S.integer;for(const A in S)g=(0,a.and)(g,d(A,w,E,m));return g}rr.checkDataTypes=h;const k={message:({schema:b})=>`must be ${b}`,params:({schema:b,schemaValue:w})=>typeof b=="string"?(0,a._)`{type: ${b}}`:(0,a._)`{type: ${w}}`};function v(b){const w=y(b);(0,r.reportError)(w,k)}rr.reportTypeError=v;function y(b){const{gen:w,data:E,schema:m}=b,g=(0,i.schemaRefOrVal)(b,m,"type");return{gen:w,keyword:"type",data:E,schema:m.type,schemaCode:g,schemaValue:g,parentSchema:m,params:{},it:b}}return rr}var Uo={},jv;function uD(){if(jv)return Uo;jv=1,Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.assignDefaults=void 0;const e=Ue(),t=et();function r(i,n){const{properties:o,items:s}=i.schema;if(n==="object"&&o)for(const c in o)a(i,c,o[c].default);else n==="array"&&Array.isArray(s)&&s.forEach((c,l)=>a(i,l,c.default))}Uo.assignDefaults=r;function a(i,n,o){const{gen:s,compositeRule:c,data:l,opts:u}=i;if(o===void 0)return;const f=(0,e._)`${l}${(0,e.getProperty)(n)}`;if(c){(0,t.checkStrictMode)(i,`default is ignored for: ${f}`);return}let p=(0,e._)`${f} === undefined`;u.useDefaults==="empty"&&(p=(0,e._)`${p} || ${f} === null || ${f} === ""`),s.if(p,(0,e._)`${f} = ${(0,e.stringify)(o)}`)}return Uo}var un={},yt={},Lv;function fn(){if(Lv)return yt;Lv=1,Object.defineProperty(yt,"__esModule",{value:!0}),yt.validateUnion=yt.validateArray=yt.usePattern=yt.callValidateCode=yt.schemaProperties=yt.allSchemaProperties=yt.noPropertyInData=yt.propertyInData=yt.isOwnProperty=yt.hasPropFunc=yt.reportMissingProp=yt.checkMissingProp=yt.checkReportMissingProp=void 0;const e=Ue(),t=et(),r=ka(),a=et();function i(b,w){const{gen:E,data:m,it:g}=b;E.if(u(E,m,w,g.opts.ownProperties),()=>{b.setParams({missingProperty:(0,e._)`${w}`},!0),b.error()})}yt.checkReportMissingProp=i;function n({gen:b,data:w,it:{opts:E}},m,g){return(0,e.or)(...m.map(S=>(0,e.and)(u(b,w,S,E.ownProperties),(0,e._)`${g} = ${S}`)))}yt.checkMissingProp=n;function o(b,w){b.setParams({missingProperty:w},!0),b.error()}yt.reportMissingProp=o;function s(b){return b.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}yt.hasPropFunc=s;function c(b,w,E){return(0,e._)`${s(b)}.call(${w}, ${E})`}yt.isOwnProperty=c;function l(b,w,E,m){const g=(0,e._)`${w}${(0,e.getProperty)(E)} !== undefined`;return m?(0,e._)`${g} && ${c(b,w,E)}`:g}yt.propertyInData=l;function u(b,w,E,m){const g=(0,e._)`${w}${(0,e.getProperty)(E)} === undefined`;return m?(0,e.or)(g,(0,e.not)(c(b,w,E))):g}yt.noPropertyInData=u;function f(b){return b?Object.keys(b).filter(w=>w!=="__proto__"):[]}yt.allSchemaProperties=f;function p(b,w){return f(w).filter(E=>!(0,t.alwaysValidSchema)(b,w[E]))}yt.schemaProperties=p;function d({schemaCode:b,data:w,it:{gen:E,topSchemaRef:m,schemaPath:g,errorPath:S},it:A},x,O,C){const _=C?(0,e._)`${b}, ${w}, ${m}${g}`:w,F=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,S)],[r.default.parentData,A.parentData],[r.default.parentDataProperty,A.parentDataProperty],[r.default.rootData,r.default.rootData]];A.opts.dynamicRef&&F.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const I=(0,e._)`${_}, ${E.object(...F)}`;return O!==e.nil?(0,e._)`${x}.call(${O}, ${I})`:(0,e._)`${x}(${I})`}yt.callValidateCode=d;const h=(0,e._)`new RegExp`;function k({gen:b,it:{opts:w}},E){const m=w.unicodeRegExp?"u":"",{regExp:g}=w.code,S=g(E,m);return b.scopeValue("pattern",{key:S.toString(),ref:S,code:(0,e._)`${g.code==="new RegExp"?h:(0,a.useFunc)(b,g)}(${E}, ${m})`})}yt.usePattern=k;function v(b){const{gen:w,data:E,keyword:m,it:g}=b,S=w.name("valid");if(g.allErrors){const x=w.let("valid",!0);return A(()=>w.assign(x,!1)),x}return w.var(S,!0),A(()=>w.break()),S;function A(x){const O=w.const("len",(0,e._)`${E}.length`);w.forRange("i",0,O,C=>{b.subschema({keyword:m,dataProp:C,dataPropType:t.Type.Num},S),w.if((0,e.not)(S),x)})}}yt.validateArray=v;function y(b){const{gen:w,schema:E,keyword:m,it:g}=b;if(!Array.isArray(E))throw new Error("ajv implementation error");if(E.some(O=>(0,t.alwaysValidSchema)(g,O))&&!g.opts.unevaluated)return;const A=w.let("valid",!1),x=w.name("_valid");w.block(()=>E.forEach((O,C)=>{const _=b.subschema({keyword:m,schemaProp:C,compositeRule:!0},x);w.assign(A,(0,e._)`${A} || ${x}`),b.mergeValidEvaluated(_,x)||w.if((0,e.not)(A))})),b.result(A,()=>b.reset(),()=>b.error(!0))}return yt.validateUnion=y,yt}var Rv;function fD(){if(Rv)return un;Rv=1,Object.defineProperty(un,"__esModule",{value:!0}),un.validateKeywordUsage=un.validSchemaType=un.funcKeywordCode=un.macroKeywordCode=void 0;const e=Ue(),t=ka(),r=fn(),a=gl();function i(p,d){const{gen:h,keyword:k,schema:v,parentSchema:y,it:b}=p,w=d.macro.call(b.self,v,y,b),E=l(h,k,w);b.opts.validateSchema!==!1&&b.self.validateSchema(w,!0);const m=h.name("valid");p.subschema({schema:w,schemaPath:e.nil,errSchemaPath:`${b.errSchemaPath}/${k}`,topSchemaRef:E,compositeRule:!0},m),p.pass(m,()=>p.error(!0))}un.macroKeywordCode=i;function n(p,d){var h;const{gen:k,keyword:v,schema:y,parentSchema:b,$data:w,it:E}=p;c(E,d);const m=!w&&d.compile?d.compile.call(E.self,y,b,E):d.validate,g=l(k,v,m),S=k.let("valid");p.block$data(S,A),p.ok((h=d.valid)!==null&&h!==void 0?h:S);function A(){if(d.errors===!1)C(),d.modifying&&o(p),_(()=>p.error());else{const F=d.async?x():O();d.modifying&&o(p),_(()=>s(p,F))}}function x(){const F=k.let("ruleErrs",null);return k.try(()=>C((0,e._)`await `),I=>k.assign(S,!1).if((0,e._)`${I} instanceof ${E.ValidationError}`,()=>k.assign(F,(0,e._)`${I}.errors`),()=>k.throw(I))),F}function O(){const F=(0,e._)`${g}.errors`;return k.assign(F,null),C(e.nil),F}function C(F=d.async?(0,e._)`await `:e.nil){const I=E.opts.passContext?t.default.this:t.default.self,j=!("compile"in d&&!w||d.schema===!1);k.assign(S,(0,e._)`${F}${(0,r.callValidateCode)(p,g,I,j)}`,d.modifying)}function _(F){var I;k.if((0,e.not)((I=d.valid)!==null&&I!==void 0?I:S),F)}}un.funcKeywordCode=n;function o(p){const{gen:d,data:h,it:k}=p;d.if(k.parentData,()=>d.assign(h,(0,e._)`${k.parentData}[${k.parentDataProperty}]`))}function s(p,d){const{gen:h}=p;h.if((0,e._)`Array.isArray(${d})`,()=>{h.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${d} : ${t.default.vErrors}.concat(${d})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,a.extendErrors)(p)},()=>p.error())}function c({schemaEnv:p},d){if(d.async&&!p.$async)throw new Error("async keyword in sync schema")}function l(p,d,h){if(h===void 0)throw new Error(`keyword "${d}" failed to compile`);return p.scopeValue("keyword",typeof h=="function"?{ref:h}:{ref:h,code:(0,e.stringify)(h)})}function u(p,d,h=!1){return!d.length||d.some(k=>k==="array"?Array.isArray(p):k==="object"?p&&typeof p=="object"&&!Array.isArray(p):typeof p==k||h&&typeof p>"u")}un.validSchemaType=u;function f({schema:p,opts:d,self:h,errSchemaPath:k},v,y){if(Array.isArray(v.keyword)?!v.keyword.includes(y):v.keyword!==y)throw new Error("ajv implementation error");const b=v.dependencies;if(b!=null&&b.some(w=>!Object.prototype.hasOwnProperty.call(p,w)))throw new Error(`parent schema must have dependencies of ${y}: ${b.join(",")}`);if(v.validateSchema&&!v.validateSchema(p[y])){const E=`keyword "${y}" value is invalid at path "${k}": `+h.errorsText(v.validateSchema.errors);if(d.validateSchema==="log")h.logger.error(E);else throw new Error(E)}}return un.validateKeywordUsage=f,un}var Vn={},qv;function dD(){if(qv)return Vn;qv=1,Object.defineProperty(Vn,"__esModule",{value:!0}),Vn.extendSubschemaMode=Vn.extendSubschemaData=Vn.getSubschema=void 0;const e=Ue(),t=et();function r(n,{keyword:o,schemaProp:s,schema:c,schemaPath:l,errSchemaPath:u,topSchemaRef:f}){if(o!==void 0&&c!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(o!==void 0){const p=n.schema[o];return s===void 0?{schema:p,schemaPath:(0,e._)`${n.schemaPath}${(0,e.getProperty)(o)}`,errSchemaPath:`${n.errSchemaPath}/${o}`}:{schema:p[s],schemaPath:(0,e._)`${n.schemaPath}${(0,e.getProperty)(o)}${(0,e.getProperty)(s)}`,errSchemaPath:`${n.errSchemaPath}/${o}/${(0,t.escapeFragment)(s)}`}}if(c!==void 0){if(l===void 0||u===void 0||f===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:c,schemaPath:l,topSchemaRef:f,errSchemaPath:u}}throw new Error('either "keyword" or "schema" must be passed')}Vn.getSubschema=r;function a(n,o,{dataProp:s,dataPropType:c,data:l,dataTypes:u,propertyName:f}){if(l!==void 0&&s!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:p}=o;if(s!==void 0){const{errorPath:h,dataPathArr:k,opts:v}=o,y=p.let("data",(0,e._)`${o.data}${(0,e.getProperty)(s)}`,!0);d(y),n.errorPath=(0,e.str)`${h}${(0,t.getErrorPath)(s,c,v.jsPropertySyntax)}`,n.parentDataProperty=(0,e._)`${s}`,n.dataPathArr=[...k,n.parentDataProperty]}if(l!==void 0){const h=l instanceof e.Name?l:p.let("data",l,!0);d(h),f!==void 0&&(n.propertyName=f)}u&&(n.dataTypes=u);function d(h){n.data=h,n.dataLevel=o.dataLevel+1,n.dataTypes=[],o.definedProperties=new Set,n.parentData=o.data,n.dataNames=[...o.dataNames,h]}}Vn.extendSubschemaData=a;function i(n,{jtdDiscriminator:o,jtdMetadata:s,compositeRule:c,createErrors:l,allErrors:u}){c!==void 0&&(n.compositeRule=c),l!==void 0&&(n.createErrors=l),u!==void 0&&(n.allErrors=u),n.jtdDiscriminator=o,n.jtdMetadata=s}return Vn.extendSubschemaMode=i,Vn}var pr={},Qf,zv;function $v(){return zv||(zv=1,Qf=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 a,i,n;if(Array.isArray(t)){if(a=t.length,a!=r.length)return!1;for(i=a;i--!==0;)if(!e(t[i],r[i]))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(n=Object.keys(t),a=n.length,a!==Object.keys(r).length)return!1;for(i=a;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,n[i]))return!1;for(i=a;i--!==0;){var o=n[i];if(!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r}),Qf}var ed={exports:{}},Uv;function pD(){if(Uv)return ed.exports;Uv=1;var e=ed.exports=function(a,i,n){typeof i=="function"&&(n=i,i={}),n=i.cb||n;var o=typeof n=="function"?n:n.pre||function(){},s=n.post||function(){};t(i,o,s,a,"",a)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.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 t(a,i,n,o,s,c,l,u,f,p){if(o&&typeof o=="object"&&!Array.isArray(o)){i(o,s,c,l,u,f,p);for(var d in o){var h=o[d];if(Array.isArray(h)){if(d in e.arrayKeywords)for(var k=0;k<h.length;k++)t(a,i,n,h[k],s+"/"+d+"/"+k,c,s,d,o,k)}else if(d in e.propsKeywords){if(h&&typeof h=="object")for(var v in h)t(a,i,n,h[v],s+"/"+d+"/"+r(v),c,s,d,o,v)}else(d in e.keywords||a.allKeys&&!(d in e.skipKeywords))&&t(a,i,n,h,s+"/"+d,c,s,d,o)}n(o,s,c,l,u,f,p)}}function r(a){return a.replace(/~/g,"~0").replace(/\//g,"~1")}return ed.exports}var Bv;function vl(){if(Bv)return pr;Bv=1,Object.defineProperty(pr,"__esModule",{value:!0}),pr.getSchemaRefs=pr.resolveUrl=pr.normalizeId=pr._getFullPath=pr.getFullPath=pr.inlineRef=void 0;const e=et(),t=$v(),r=pD(),a=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(k,v=!0){return typeof k=="boolean"?!0:v===!0?!o(k):v?s(k)<=v:!1}pr.inlineRef=i;const n=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function o(k){for(const v in k){if(n.has(v))return!0;const y=k[v];if(Array.isArray(y)&&y.some(o)||typeof y=="object"&&o(y))return!0}return!1}function s(k){let v=0;for(const y in k){if(y==="$ref")return 1/0;if(v++,!a.has(y)&&(typeof k[y]=="object"&&(0,e.eachItem)(k[y],b=>v+=s(b)),v===1/0))return 1/0}return v}function c(k,v="",y){y!==!1&&(v=f(v));const b=k.parse(v);return l(k,b)}pr.getFullPath=c;function l(k,v){return k.serialize(v).split("#")[0]+"#"}pr._getFullPath=l;const u=/#\/?$/;function f(k){return k?k.replace(u,""):""}pr.normalizeId=f;function p(k,v,y){return y=f(y),k.resolve(v,y)}pr.resolveUrl=p;const d=/^[a-z_][-a-z0-9._]*$/i;function h(k,v){if(typeof k=="boolean")return{};const{schemaId:y,uriResolver:b}=this.opts,w=f(k[y]||v),E={"":w},m=c(b,w,!1),g={},S=new Set;return r(k,{allKeys:!0},(O,C,_,F)=>{if(F===void 0)return;const I=m+C;let j=E[F];typeof O[y]=="string"&&(j=$.call(this,O[y])),Y.call(this,O.$anchor),Y.call(this,O.$dynamicAnchor),E[C]=j;function $(Z){const ie=this.opts.uriResolver.resolve;if(Z=f(j?ie(j,Z):Z),S.has(Z))throw x(Z);S.add(Z);let P=this.refs[Z];return typeof P=="string"&&(P=this.refs[P]),typeof P=="object"?A(O,P.schema,Z):Z!==f(I)&&(Z[0]==="#"?(A(O,g[Z],Z),g[Z]=O):this.refs[Z]=I),Z}function Y(Z){if(typeof Z=="string"){if(!d.test(Z))throw new Error(`invalid anchor "${Z}"`);$.call(this,`#${Z}`)}}}),g;function A(O,C,_){if(C!==void 0&&!t(O,C))throw x(_)}function x(O){return new Error(`reference "${O}" resolves to more than one schema`)}}return pr.getSchemaRefs=h,pr}var Vv;function bl(){if(Vv)return Un;Vv=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.getData=Un.KeywordCxt=Un.validateFunctionCode=void 0;const e=cD(),t=yl(),r=Fv(),a=yl(),i=uD(),n=fD(),o=dD(),s=Ue(),c=ka(),l=vl(),u=et(),f=gl();function p(q){if(m(q)&&(S(q),E(q))){v(q);return}d(q,()=>(0,e.topBoolOrEmptySchema)(q))}Un.validateFunctionCode=p;function d({gen:q,validateName:z,schema:W,schemaEnv:G,opts:te},ae){te.code.es5?q.func(z,(0,s._)`${c.default.data}, ${c.default.valCxt}`,G.$async,()=>{q.code((0,s._)`"use strict"; ${b(W,te)}`),k(q,te),q.code(ae)}):q.func(z,(0,s._)`${c.default.data}, ${h(te)}`,G.$async,()=>q.code(b(W,te)).code(ae))}function h(q){return(0,s._)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${q.dynamicRef?(0,s._)`, ${c.default.dynamicAnchors}={}`:s.nil}}={}`}function k(q,z){q.if(c.default.valCxt,()=>{q.var(c.default.instancePath,(0,s._)`${c.default.valCxt}.${c.default.instancePath}`),q.var(c.default.parentData,(0,s._)`${c.default.valCxt}.${c.default.parentData}`),q.var(c.default.parentDataProperty,(0,s._)`${c.default.valCxt}.${c.default.parentDataProperty}`),q.var(c.default.rootData,(0,s._)`${c.default.valCxt}.${c.default.rootData}`),z.dynamicRef&&q.var(c.default.dynamicAnchors,(0,s._)`${c.default.valCxt}.${c.default.dynamicAnchors}`)},()=>{q.var(c.default.instancePath,(0,s._)`""`),q.var(c.default.parentData,(0,s._)`undefined`),q.var(c.default.parentDataProperty,(0,s._)`undefined`),q.var(c.default.rootData,c.default.data),z.dynamicRef&&q.var(c.default.dynamicAnchors,(0,s._)`{}`)})}function v(q){const{schema:z,opts:W,gen:G}=q;d(q,()=>{W.$comment&&z.$comment&&F(q),O(q),G.let(c.default.vErrors,null),G.let(c.default.errors,0),W.unevaluated&&y(q),A(q),I(q)})}function y(q){const{gen:z,validateName:W}=q;q.evaluated=z.const("evaluated",(0,s._)`${W}.evaluated`),z.if((0,s._)`${q.evaluated}.dynamicProps`,()=>z.assign((0,s._)`${q.evaluated}.props`,(0,s._)`undefined`)),z.if((0,s._)`${q.evaluated}.dynamicItems`,()=>z.assign((0,s._)`${q.evaluated}.items`,(0,s._)`undefined`))}function b(q,z){const W=typeof q=="object"&&q[z.schemaId];return W&&(z.code.source||z.code.process)?(0,s._)`/*# sourceURL=${W} */`:s.nil}function w(q,z){if(m(q)&&(S(q),E(q))){g(q,z);return}(0,e.boolOrEmptySchema)(q,z)}function E({schema:q,self:z}){if(typeof q=="boolean")return!q;for(const W in q)if(z.RULES.all[W])return!0;return!1}function m(q){return typeof q.schema!="boolean"}function g(q,z){const{schema:W,gen:G,opts:te}=q;te.$comment&&W.$comment&&F(q),C(q),_(q);const ae=G.const("_errs",c.default.errors);A(q,ae),G.var(z,(0,s._)`${ae} === ${c.default.errors}`)}function S(q){(0,u.checkUnknownRules)(q),x(q)}function A(q,z){if(q.opts.jtd)return $(q,[],!1,z);const W=(0,t.getSchemaTypes)(q.schema),G=(0,t.coerceAndCheckDataType)(q,W);$(q,W,!G,z)}function x(q){const{schema:z,errSchemaPath:W,opts:G,self:te}=q;z.$ref&&G.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(z,te.RULES)&&te.logger.warn(`$ref: keywords ignored in schema at path "${W}"`)}function O(q){const{schema:z,opts:W}=q;z.default!==void 0&&W.useDefaults&&W.strictSchema&&(0,u.checkStrictMode)(q,"default is ignored in the schema root")}function C(q){const z=q.schema[q.opts.schemaId];z&&(q.baseId=(0,l.resolveUrl)(q.opts.uriResolver,q.baseId,z))}function _(q){if(q.schema.$async&&!q.schemaEnv.$async)throw new Error("async schema in sync schema")}function F({gen:q,schemaEnv:z,schema:W,errSchemaPath:G,opts:te}){const ae=W.$comment;if(te.$comment===!0)q.code((0,s._)`${c.default.self}.logger.log(${ae})`);else if(typeof te.$comment=="function"){const pe=(0,s.str)`${G}/$comment`,ve=q.scopeValue("root",{ref:z.root});q.code((0,s._)`${c.default.self}.opts.$comment(${ae}, ${pe}, ${ve}.schema)`)}}function I(q){const{gen:z,schemaEnv:W,validateName:G,ValidationError:te,opts:ae}=q;W.$async?z.if((0,s._)`${c.default.errors} === 0`,()=>z.return(c.default.data),()=>z.throw((0,s._)`new ${te}(${c.default.vErrors})`)):(z.assign((0,s._)`${G}.errors`,c.default.vErrors),ae.unevaluated&&j(q),z.return((0,s._)`${c.default.errors} === 0`))}function j({gen:q,evaluated:z,props:W,items:G}){W instanceof s.Name&&q.assign((0,s._)`${z}.props`,W),G instanceof s.Name&&q.assign((0,s._)`${z}.items`,G)}function $(q,z,W,G){const{gen:te,schema:ae,data:pe,allErrors:ve,opts:Ae,self:Se}=q,{RULES:De}=Se;if(ae.$ref&&(Ae.ignoreKeywordsWithRef||!(0,u.schemaHasRulesButRef)(ae,De))){te.block(()=>V(q,"$ref",De.all.$ref.definition));return}Ae.jtd||Z(q,z),te.block(()=>{for(const Le of De.rules)he(Le);he(De.post)});function he(Le){(0,r.shouldUseGroup)(ae,Le)&&(Le.type?(te.if((0,a.checkDataType)(Le.type,pe,Ae.strictNumbers)),Y(q,Le),z.length===1&&z[0]===Le.type&&W&&(te.else(),(0,a.reportTypeError)(q)),te.endIf()):Y(q,Le),ve||te.if((0,s._)`${c.default.errors} === ${G||0}`))}}function Y(q,z){const{gen:W,schema:G,opts:{useDefaults:te}}=q;te&&(0,i.assignDefaults)(q,z.type),W.block(()=>{for(const ae of z.rules)(0,r.shouldUseRule)(G,ae)&&V(q,ae.keyword,ae.definition,z.type)})}function Z(q,z){q.schemaEnv.meta||!q.opts.strictTypes||(ie(q,z),q.opts.allowUnionTypes||P(q,z),M(q,q.dataTypes))}function ie(q,z){if(z.length){if(!q.dataTypes.length){q.dataTypes=z;return}z.forEach(W=>{T(q.dataTypes,W)||L(q,`type "${W}" not allowed by context "${q.dataTypes.join(",")}"`)}),N(q,z)}}function P(q,z){z.length>1&&!(z.length===2&&z.includes("null"))&&L(q,"use allowUnionTypes to allow union type keyword")}function M(q,z){const W=q.self.RULES.all;for(const G in W){const te=W[G];if(typeof te=="object"&&(0,r.shouldUseRule)(q.schema,te)){const{type:ae}=te.definition;ae.length&&!ae.some(pe=>U(z,pe))&&L(q,`missing type "${ae.join(",")}" for keyword "${G}"`)}}}function U(q,z){return q.includes(z)||z==="number"&&q.includes("integer")}function T(q,z){return q.includes(z)||z==="integer"&&q.includes("number")}function N(q,z){const W=[];for(const G of q.dataTypes)T(z,G)?W.push(G):z.includes("integer")&&G==="number"&&W.push("integer");q.dataTypes=W}function L(q,z){const W=q.schemaEnv.baseId+q.errSchemaPath;z+=` at "${W}" (strictTypes)`,(0,u.checkStrictMode)(q,z,q.opts.strictTypes)}class B{constructor(z,W,G){if((0,n.validateKeywordUsage)(z,W,G),this.gen=z.gen,this.allErrors=z.allErrors,this.keyword=G,this.data=z.data,this.schema=z.schema[G],this.$data=W.$data&&z.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(z,this.schema,G,this.$data),this.schemaType=W.schemaType,this.parentSchema=z.schema,this.params={},this.it=z,this.def=W,this.$data)this.schemaCode=z.gen.const("vSchema",Q(this.$data,z));else if(this.schemaCode=this.schemaValue,!(0,n.validSchemaType)(this.schema,W.schemaType,W.allowUndefined))throw new Error(`${G} value must be ${JSON.stringify(W.schemaType)}`);("code"in W?W.trackErrors:W.errors!==!1)&&(this.errsCount=z.gen.const("_errs",c.default.errors))}result(z,W,G){this.failResult((0,s.not)(z),W,G)}failResult(z,W,G){this.gen.if(z),G?G():this.error(),W?(this.gen.else(),W(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(z,W){this.failResult((0,s.not)(z),void 0,W)}fail(z){if(z===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(z),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(z){if(!this.$data)return this.fail(z);const{schemaCode:W}=this;this.fail((0,s._)`${W} !== undefined && (${(0,s.or)(this.invalid$data(),z)})`)}error(z,W,G){if(W){this.setParams(W),this._error(z,G),this.setParams({});return}this._error(z,G)}_error(z,W){(z?f.reportExtraError:f.reportError)(this,this.def.error,W)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,f.resetErrorsCount)(this.gen,this.errsCount)}ok(z){this.allErrors||this.gen.if(z)}setParams(z,W){W?Object.assign(this.params,z):this.params=z}block$data(z,W,G=s.nil){this.gen.block(()=>{this.check$data(z,G),W()})}check$data(z=s.nil,W=s.nil){if(!this.$data)return;const{gen:G,schemaCode:te,schemaType:ae,def:pe}=this;G.if((0,s.or)((0,s._)`${te} === undefined`,W)),z!==s.nil&&G.assign(z,!0),(ae.length||pe.validateSchema)&&(G.elseIf(this.invalid$data()),this.$dataError(),z!==s.nil&&G.assign(z,!1)),G.else()}invalid$data(){const{gen:z,schemaCode:W,schemaType:G,def:te,it:ae}=this;return(0,s.or)(pe(),ve());function pe(){if(G.length){if(!(W instanceof s.Name))throw new Error("ajv implementation error");const Ae=Array.isArray(G)?G:[G];return(0,s._)`${(0,a.checkDataTypes)(Ae,W,ae.opts.strictNumbers,a.DataType.Wrong)}`}return s.nil}function ve(){if(te.validateSchema){const Ae=z.scopeValue("validate$data",{ref:te.validateSchema});return(0,s._)`!${Ae}(${W})`}return s.nil}}subschema(z,W){const G=(0,o.getSubschema)(this.it,z);(0,o.extendSubschemaData)(G,this.it,z),(0,o.extendSubschemaMode)(G,z);const te={...this.it,...G,items:void 0,props:void 0};return w(te,W),te}mergeEvaluated(z,W){const{it:G,gen:te}=this;G.opts.unevaluated&&(G.props!==!0&&z.props!==void 0&&(G.props=u.mergeEvaluated.props(te,z.props,G.props,W)),G.items!==!0&&z.items!==void 0&&(G.items=u.mergeEvaluated.items(te,z.items,G.items,W)))}mergeValidEvaluated(z,W){const{it:G,gen:te}=this;if(G.opts.unevaluated&&(G.props!==!0||G.items!==!0))return te.if(W,()=>this.mergeEvaluated(z,s.Name)),!0}}Un.KeywordCxt=B;function V(q,z,W,G){const te=new B(q,W,z);"code"in W?W.code(te,G):te.$data&&W.validate?(0,n.funcKeywordCode)(te,W):"macro"in W?(0,n.macroKeywordCode)(te,W):(W.compile||W.validate)&&(0,n.funcKeywordCode)(te,W)}const K=/^\/(?:[^~]|~0|~1)*$/,J=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Q(q,{dataLevel:z,dataNames:W,dataPathArr:G}){let te,ae;if(q==="")return c.default.rootData;if(q[0]==="/"){if(!K.test(q))throw new Error(`Invalid JSON-pointer: ${q}`);te=q,ae=c.default.rootData}else{const Se=J.exec(q);if(!Se)throw new Error(`Invalid JSON-pointer: ${q}`);const De=+Se[1];if(te=Se[2],te==="#"){if(De>=z)throw new Error(Ae("property/index",De));return G[z-De]}if(De>z)throw new Error(Ae("data",De));if(ae=W[z-De],!te)return ae}let pe=ae;const ve=te.split("/");for(const Se of ve)Se&&(ae=(0,s._)`${ae}${(0,s.getProperty)((0,u.unescapeJsonPointer)(Se))}`,pe=(0,s._)`${pe} && ${ae}`);return pe;function Ae(Se,De){return`Cannot access ${Se} ${De} levels up, current level is ${z}`}}return Un.getData=Q,Un}var kl={},Hv;function td(){if(Hv)return kl;Hv=1,Object.defineProperty(kl,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return kl.default=e,kl}var wl={},Wv;function Sl(){if(Wv)return wl;Wv=1,Object.defineProperty(wl,"__esModule",{value:!0});const e=vl();class t extends Error{constructor(a,i,n,o){super(o||`can't resolve reference ${n} from id ${i}`),this.missingRef=(0,e.resolveUrl)(a,i,n),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(a,this.missingRef))}}return wl.default=t,wl}var Tr={},Kv;function rd(){if(Kv)return Tr;Kv=1,Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.resolveSchema=Tr.getCompilingSchema=Tr.resolveRef=Tr.compileSchema=Tr.SchemaEnv=void 0;const e=Ue(),t=td(),r=ka(),a=vl(),i=et(),n=bl();class o{constructor(y){var b;this.refs={},this.dynamicAnchors={};let w;typeof y.schema=="object"&&(w=y.schema),this.schema=y.schema,this.schemaId=y.schemaId,this.root=y.root||this,this.baseId=(b=y.baseId)!==null&&b!==void 0?b:(0,a.normalizeId)(w==null?void 0:w[y.schemaId||"$id"]),this.schemaPath=y.schemaPath,this.localRefs=y.localRefs,this.meta=y.meta,this.$async=w==null?void 0:w.$async,this.refs={}}}Tr.SchemaEnv=o;function s(v){const y=u.call(this,v);if(y)return y;const b=(0,a.getFullPath)(this.opts.uriResolver,v.root.baseId),{es5:w,lines:E}=this.opts.code,{ownProperties:m}=this.opts,g=new e.CodeGen(this.scope,{es5:w,lines:E,ownProperties:m});let S;v.$async&&(S=g.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const A=g.scopeName("validate");v.validateName=A;const x={gen:g,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:g.scopeValue("schema",this.opts.code.source===!0?{ref:v.schema,code:(0,e.stringify)(v.schema)}:{ref:v.schema}),validateName:A,ValidationError:S,schema:v.schema,schemaEnv:v,rootId:b,baseId:v.baseId||b,schemaPath:e.nil,errSchemaPath:v.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let O;try{this._compilations.add(v),(0,n.validateFunctionCode)(x),g.optimize(this.opts.code.optimize);const C=g.toString();O=`${g.scopeRefs(r.default.scope)}return ${C}`,this.opts.code.process&&(O=this.opts.code.process(O,v));const F=new Function(`${r.default.self}`,`${r.default.scope}`,O)(this,this.scope.get());if(this.scope.value(A,{ref:F}),F.errors=null,F.schema=v.schema,F.schemaEnv=v,v.$async&&(F.$async=!0),this.opts.code.source===!0&&(F.source={validateName:A,validateCode:C,scopeValues:g._values}),this.opts.unevaluated){const{props:I,items:j}=x;F.evaluated={props:I instanceof e.Name?void 0:I,items:j instanceof e.Name?void 0:j,dynamicProps:I instanceof e.Name,dynamicItems:j instanceof e.Name},F.source&&(F.source.evaluated=(0,e.stringify)(F.evaluated))}return v.validate=F,v}catch(C){throw delete v.validate,delete v.validateName,O&&this.logger.error("Error compiling schema, function code:",O),C}finally{this._compilations.delete(v)}}Tr.compileSchema=s;function c(v,y,b){var w;b=(0,a.resolveUrl)(this.opts.uriResolver,y,b);const E=v.refs[b];if(E)return E;let m=p.call(this,v,b);if(m===void 0){const g=(w=v.localRefs)===null||w===void 0?void 0:w[b],{schemaId:S}=this.opts;g&&(m=new o({schema:g,schemaId:S,root:v,baseId:y}))}if(m!==void 0)return v.refs[b]=l.call(this,m)}Tr.resolveRef=c;function l(v){return(0,a.inlineRef)(v.schema,this.opts.inlineRefs)?v.schema:v.validate?v:s.call(this,v)}function u(v){for(const y of this._compilations)if(f(y,v))return y}Tr.getCompilingSchema=u;function f(v,y){return v.schema===y.schema&&v.root===y.root&&v.baseId===y.baseId}function p(v,y){let b;for(;typeof(b=this.refs[y])=="string";)y=b;return b||this.schemas[y]||d.call(this,v,y)}function d(v,y){const b=this.opts.uriResolver.parse(y),w=(0,a._getFullPath)(this.opts.uriResolver,b);let E=(0,a.getFullPath)(this.opts.uriResolver,v.baseId,void 0);if(Object.keys(v.schema).length>0&&w===E)return k.call(this,b,v);const m=(0,a.normalizeId)(w),g=this.refs[m]||this.schemas[m];if(typeof g=="string"){const S=d.call(this,v,g);return typeof(S==null?void 0:S.schema)!="object"?void 0:k.call(this,b,S)}if(typeof(g==null?void 0:g.schema)=="object"){if(g.validate||s.call(this,g),m===(0,a.normalizeId)(y)){const{schema:S}=g,{schemaId:A}=this.opts,x=S[A];return x&&(E=(0,a.resolveUrl)(this.opts.uriResolver,E,x)),new o({schema:S,schemaId:A,root:v,baseId:E})}return k.call(this,b,g)}}Tr.resolveSchema=d;const h=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function k(v,{baseId:y,schema:b,root:w}){var E;if(((E=v.fragment)===null||E===void 0?void 0:E[0])!=="/")return;for(const S of v.fragment.slice(1).split("/")){if(typeof b=="boolean")return;const A=b[(0,i.unescapeFragment)(S)];if(A===void 0)return;b=A;const x=typeof b=="object"&&b[this.opts.schemaId];!h.has(S)&&x&&(y=(0,a.resolveUrl)(this.opts.uriResolver,y,x))}let m;if(typeof b!="boolean"&&b.$ref&&!(0,i.schemaHasRulesButRef)(b,this.RULES)){const S=(0,a.resolveUrl)(this.opts.uriResolver,y,b.$ref);m=d.call(this,w,S)}const{schemaId:g}=this.opts;if(m=m||new o({schema:b,schemaId:g,root:w,baseId:y}),m.schema!==m.root.schema)return m}return Tr}const mD={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1};var El={},Bo={exports:{}},nd,Gv;function Jv(){if(Gv)return nd;Gv=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),r=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),a=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function n(m){let g="",S=0,A=0;for(A=0;A<m.length;A++)if(S=m[A].charCodeAt(0),S!==48){if(!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";g+=m[A];break}for(A+=1;A<m.length;A++){if(S=m[A].charCodeAt(0),!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";g+=m[A]}return g}const o=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function s(m){return m.length=0,!0}function c(m,g,S){if(m.length){const A=n(m);if(A!=="")g.push(A);else return S.error=!0,!1;m.length=0}return!0}function l(m){let g=0;const S={error:!1,address:"",zone:""},A=[],x=[];let O=!1,C=!1,_=c;for(let F=0;F<m.length;F++){const I=m[F];if(!(I==="["||I==="]"))if(I===":"){if(O===!0&&(C=!0),!_(x,A,S))break;if(++g>7){S.error=!0;break}F>0&&m[F-1]===":"&&(O=!0),A.push(":");continue}else if(I==="%"){if(!_(x,A,S))break;_=s}else{x.push(I);continue}}return x.length&&(_===s?S.zone=x.join(""):C?A.push(x.join("")):A.push(n(x))),S.address=A.join(""),S}function u(m){if(f(m,":")<2)return{host:m,isIPV6:!1};const g=l(m);if(g.error)return{host:m,isIPV6:!1};{let S=g.address,A=g.address;return g.zone&&(S+="%"+g.zone,A+="%25"+g.zone),{host:S,isIPV6:!0,escapedHost:A}}}function f(m,g){let S=0;for(let A=0;A<m.length;A++)m[A]===g&&S++;return S}function p(m){let g=m;const S=[];let A=-1,x=0;for(;x=g.length;){if(x===1){if(g===".")break;if(g==="/"){S.push("/");break}else{S.push(g);break}}else if(x===2){if(g[0]==="."){if(g[1]===".")break;if(g[1]==="/"){g=g.slice(2);continue}}else if(g[0]==="/"&&(g[1]==="."||g[1]==="/")){S.push("/");break}}else if(x===3&&g==="/.."){S.length!==0&&S.pop(),S.push("/");break}if(g[0]==="."){if(g[1]==="."){if(g[2]==="/"){g=g.slice(3);continue}}else if(g[1]==="/"){g=g.slice(2);continue}}else if(g[0]==="/"&&g[1]==="."){if(g[2]==="/"){g=g.slice(2);continue}else if(g[2]==="."&&g[3]==="/"){g=g.slice(3),S.length!==0&&S.pop();continue}}if((A=g.indexOf("/",1))===-1){S.push(g);break}else S.push(g.slice(0,A)),g=g.slice(A)}return S.join("")}const d={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},h=/[@/?#:]/g,k=/[@/?#]/g;function v(m,g){const S=g?k:h;return S.lastIndex=0,m.replace(S,A=>d[A])}function y(m,g=!1){if(m.indexOf("%")===-1)return m;let S="";for(let A=0;A<m.length;A++){if(m[A]==="%"&&A+2<m.length){const x=m.slice(A+1,A+3);if(r(x)){const O=x.toUpperCase(),C=String.fromCharCode(parseInt(O,16));g&&a(C)?S+=C:S+="%"+O,A+=2;continue}}S+=m[A]}return S}function b(m){let g="";for(let S=0;S<m.length;S++){if(m[S]==="%"&&S+2<m.length){const A=m.slice(S+1,S+3);if(r(A)){const x=A.toUpperCase(),O=String.fromCharCode(parseInt(x,16));O!=="."&&a(O)?g+=O:g+="%"+x,S+=2;continue}}i(m[S])?g+=m[S]:g+=escape(m[S])}return g}function w(m){let g="";for(let S=0;S<m.length;S++){if(m[S]==="%"&&S+2<m.length){const A=m.slice(S+1,S+3);if(r(A)){g+="%"+A.toUpperCase(),S+=2;continue}}g+=escape(m[S])}return g}function E(m){const g=[];if(m.userinfo!==void 0&&(g.push(m.userinfo),g.push("@")),m.host!==void 0){let S=unescape(m.host);if(!t(S)){const A=u(S);A.isIPV6===!0?S=`[${A.escapedHost}]`:S=v(S,!1)}g.push(S)}return(typeof m.port=="number"||typeof m.port=="string")&&(g.push(":"),g.push(String(m.port))),g.length?g.join(""):void 0}return nd={nonSimpleDomain:o,recomposeAuthority:E,reescapeHostDelimiters:v,normalizePercentEncoding:y,normalizePathEncoding:b,escapePreservingEscapes:w,removeDotSegments:p,isIPv4:t,isUUID:e,normalizeIPv6:u,stringArrayToHexStripped:n},nd}var ad,Yv;function hD(){if(Yv)return ad;Yv=1;const{isUUID:e}=Jv(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function a(m){return r.indexOf(m)!==-1}function i(m){return m.secure===!0?!0:m.secure===!1?!1:m.scheme?m.scheme.length===3&&(m.scheme[0]==="w"||m.scheme[0]==="W")&&(m.scheme[1]==="s"||m.scheme[1]==="S")&&(m.scheme[2]==="s"||m.scheme[2]==="S"):!1}function n(m){return m.host||(m.error=m.error||"HTTP URIs must have a host."),m}function o(m){const g=String(m.scheme).toLowerCase()==="https";return(m.port===(g?443:80)||m.port==="")&&(m.port=void 0),m.path||(m.path="/"),m}function s(m){return m.secure=i(m),m.resourceName=(m.path||"/")+(m.query?"?"+m.query:""),m.path=void 0,m.query=void 0,m}function c(m){if((m.port===(i(m)?443:80)||m.port==="")&&(m.port=void 0),typeof m.secure=="boolean"&&(m.scheme=m.secure?"wss":"ws",m.secure=void 0),m.resourceName){const[g,S]=m.resourceName.split("?");m.path=g&&g!=="/"?g:void 0,m.query=S,m.resourceName=void 0}return m.fragment=void 0,m}function l(m,g){if(!m.path)return m.error="URN can not be parsed",m;const S=m.path.match(t);if(S){const A=g.scheme||m.scheme||"urn";m.nid=S[1].toLowerCase(),m.nss=S[2];const x=`${A}:${g.nid||m.nid}`,O=E(x);m.path=void 0,O&&(m=O.parse(m,g))}else m.error=m.error||"URN can not be parsed.";return m}function u(m,g){if(m.nid===void 0)throw new Error("URN without nid cannot be serialized");const S=g.scheme||m.scheme||"urn",A=m.nid.toLowerCase(),x=`${S}:${g.nid||A}`,O=E(x);O&&(m=O.serialize(m,g));const C=m,_=m.nss;return C.path=`${A||g.nid}:${_}`,g.skipEscape=!0,C}function f(m,g){const S=m;return S.uuid=S.nss,S.nss=void 0,!g.tolerant&&(!S.uuid||!e(S.uuid))&&(S.error=S.error||"UUID is not valid."),S}function p(m){const g=m;return g.nss=(m.uuid||"").toLowerCase(),g}const d={scheme:"http",domainHost:!0,parse:n,serialize:o},h={scheme:"https",domainHost:d.domainHost,parse:n,serialize:o},k={scheme:"ws",domainHost:!0,parse:s,serialize:c},v={scheme:"wss",domainHost:k.domainHost,parse:k.parse,serialize:k.serialize},w={http:d,https:h,ws:k,wss:v,urn:{scheme:"urn",parse:l,serialize:u,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:p,skipNormalize:!0}};Object.setPrototypeOf(w,null);function E(m){return m&&(w[m]||w[m.toLowerCase()])||void 0}return ad={wsIsSecure:i,SCHEMES:w,isValidSchemeName:a,getSchemeHandler:E},ad}var Xv;function gD(){if(Xv)return Bo.exports;Xv=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:a,normalizePathEncoding:i,escapePreservingEscapes:n,reescapeHostDelimiters:o,isIPv4:s,nonSimpleDomain:c}=Jv(),{SCHEMES:l,getSchemeHandler:u}=hD();function f(A,x){return typeof A=="string"?A=E(A,x):typeof A=="object"&&(A=w(k(A,x),x)),A}function p(A,x,O){const C=O?Object.assign({scheme:"null"},O):{scheme:"null"},_=d(w(A,C),w(x,C),C,!0);return C.skipEscape=!0,k(_,C)}function d(A,x,O,C){const _={};return C||(A=w(k(A,O),O),x=w(k(x,O),O)),O=O||{},!O.tolerant&&x.scheme?(_.scheme=x.scheme,_.userinfo=x.userinfo,_.host=x.host,_.port=x.port,_.path=t(x.path||""),_.query=x.query):(x.userinfo!==void 0||x.host!==void 0||x.port!==void 0?(_.userinfo=x.userinfo,_.host=x.host,_.port=x.port,_.path=t(x.path||""),_.query=x.query):(x.path?(x.path[0]==="/"?_.path=t(x.path):((A.userinfo!==void 0||A.host!==void 0||A.port!==void 0)&&!A.path?_.path="/"+x.path:A.path?_.path=A.path.slice(0,A.path.lastIndexOf("/")+1)+x.path:_.path=x.path,_.path=t(_.path)),_.query=x.query):(_.path=A.path,x.query!==void 0?_.query=x.query:_.query=A.query),_.userinfo=A.userinfo,_.host=A.host,_.port=A.port),_.scheme=A.scheme),_.fragment=x.fragment,_}function h(A,x,O){const C=g(A,O),_=g(x,O);return C!==void 0&&_!==void 0&&C.toLowerCase()===_.toLowerCase()}function k(A,x){const O={host:A.host,scheme:A.scheme,userinfo:A.userinfo,port:A.port,path:A.path,query:A.query,nid:A.nid,nss:A.nss,uuid:A.uuid,fragment:A.fragment,reference:A.reference,resourceName:A.resourceName,secure:A.secure,error:""},C=Object.assign({},x),_=[],F=u(C.scheme||O.scheme);F&&F.serialize&&F.serialize(O,C),O.path!==void 0&&(C.skipEscape?O.path=a(O.path):(O.path=n(O.path),O.scheme!==void 0&&(O.path=O.path.split("%3A").join(":")))),C.reference!=="suffix"&&O.scheme&&_.push(O.scheme,":");const I=r(O);if(I!==void 0&&(C.reference!=="suffix"&&_.push("//"),_.push(I),O.path&&O.path[0]!=="/"&&_.push("/")),O.path!==void 0){let j=O.path;!C.absolutePath&&(!F||!F.absolutePath)&&(j=t(j)),I===void 0&&j[0]==="/"&&j[1]==="/"&&(j="/%2F"+j.slice(2)),_.push(j)}return O.query!==void 0&&_.push("?",O.query),O.fragment!==void 0&&_.push("#",O.fragment),_.join("")}const v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function y(A,x){if(x[2]!==void 0&&A.path&&A.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof A.port=="number"&&(A.port<0||A.port>65535))return"URI port is malformed."}function b(A,x){const O=Object.assign({},x),C={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let _=!1,F=!1;O.reference==="suffix"&&(O.scheme?A=O.scheme+":"+A:A="//"+A);const I=A.match(v);if(I){C.scheme=I[1],C.userinfo=I[3],C.host=I[4],C.port=parseInt(I[5],10),C.path=I[6]||"",C.query=I[7],C.fragment=I[8],isNaN(C.port)&&(C.port=I[5]);const j=y(C,I);if(j!==void 0&&(C.error=C.error||j,_=!0),C.host)if(s(C.host)===!1){const Z=e(C.host);C.host=Z.host.toLowerCase(),F=Z.isIPV6}else F=!0;C.scheme===void 0&&C.userinfo===void 0&&C.host===void 0&&C.port===void 0&&C.query===void 0&&!C.path?C.reference="same-document":C.scheme===void 0?C.reference="relative":C.fragment===void 0?C.reference="absolute":C.reference="uri",O.reference&&O.reference!=="suffix"&&O.reference!==C.reference&&(C.error=C.error||"URI is not a "+O.reference+" reference.");const $=u(O.scheme||C.scheme);if(!O.unicodeSupport&&(!$||!$.unicodeSupport)&&C.host&&(O.domainHost||$&&$.domainHost)&&F===!1&&c(C.host))try{C.host=URL.domainToASCII(C.host.toLowerCase())}catch(Y){C.error=C.error||"Host's domain name can not be converted to ASCII: "+Y}if((!$||$&&!$.skipNormalize)&&(A.indexOf("%")!==-1&&(C.scheme!==void 0&&(C.scheme=unescape(C.scheme)),C.host!==void 0&&(C.host=o(unescape(C.host),F))),C.path&&(C.path=i(C.path)),C.fragment))try{C.fragment=encodeURI(decodeURIComponent(C.fragment))}catch{C.error=C.error||"URI malformed"}$&&$.parse&&$.parse(C,O)}else C.error=C.error||"URI can not be parsed.";return{parsed:C,malformedAuthorityOrPort:_}}function w(A,x){return b(A,x).parsed}function E(A,x){return m(A,x).normalized}function m(A,x){const{parsed:O,malformedAuthorityOrPort:C}=b(A,x);return{normalized:C?A:k(O,x),malformedAuthorityOrPort:C}}function g(A,x){if(typeof A=="string"){const{normalized:O,malformedAuthorityOrPort:C}=m(A,x);return C?void 0:O}if(typeof A=="object")return k(A,x)}const S={SCHEMES:l,normalize:f,resolve:p,resolveComponent:d,equal:h,serialize:k,parse:w};return Bo.exports=S,Bo.exports.default=S,Bo.exports.fastUri=S,Bo.exports}var Zv;function yD(){if(Zv)return El;Zv=1,Object.defineProperty(El,"__esModule",{value:!0});const e=gD();return e.code='require("ajv/dist/runtime/uri").default',El.default=e,El}var Qv;function vD(){return Qv||(Qv=1,(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=bl();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Ue();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 a=td(),i=Sl(),n=Nv(),o=rd(),s=Ue(),c=vl(),l=yl(),u=et(),f=mD,p=yD(),d=(P,M)=>new RegExp(P,M);d.code="new RegExp";const h=["removeAdditional","useDefaults","coerceTypes"],k=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={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."},y={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},b=200;function w(P){var M,U,T,N,L,B,V,K,J,Q,q,z,W,G,te,ae,pe,ve,Ae,Se,De,he,Le,We,ke;const ee=P.strict,re=(M=P.code)===null||M===void 0?void 0:M.optimize,ne=re===!0||re===void 0?1:re||0,we=(T=(U=P.code)===null||U===void 0?void 0:U.regExp)!==null&&T!==void 0?T:d,me=(N=P.uriResolver)!==null&&N!==void 0?N:p.default;return{strictSchema:(B=(L=P.strictSchema)!==null&&L!==void 0?L:ee)!==null&&B!==void 0?B:!0,strictNumbers:(K=(V=P.strictNumbers)!==null&&V!==void 0?V:ee)!==null&&K!==void 0?K:!0,strictTypes:(Q=(J=P.strictTypes)!==null&&J!==void 0?J:ee)!==null&&Q!==void 0?Q:"log",strictTuples:(z=(q=P.strictTuples)!==null&&q!==void 0?q:ee)!==null&&z!==void 0?z:"log",strictRequired:(G=(W=P.strictRequired)!==null&&W!==void 0?W:ee)!==null&&G!==void 0?G:!1,code:P.code?{...P.code,optimize:ne,regExp:we}:{optimize:ne,regExp:we},loopRequired:(te=P.loopRequired)!==null&&te!==void 0?te:b,loopEnum:(ae=P.loopEnum)!==null&&ae!==void 0?ae:b,meta:(pe=P.meta)!==null&&pe!==void 0?pe:!0,messages:(ve=P.messages)!==null&&ve!==void 0?ve:!0,inlineRefs:(Ae=P.inlineRefs)!==null&&Ae!==void 0?Ae:!0,schemaId:(Se=P.schemaId)!==null&&Se!==void 0?Se:"$id",addUsedSchema:(De=P.addUsedSchema)!==null&&De!==void 0?De:!0,validateSchema:(he=P.validateSchema)!==null&&he!==void 0?he:!0,validateFormats:(Le=P.validateFormats)!==null&&Le!==void 0?Le:!0,unicodeRegExp:(We=P.unicodeRegExp)!==null&&We!==void 0?We:!0,int32range:(ke=P.int32range)!==null&&ke!==void 0?ke:!0,uriResolver:me}}class E{constructor(M={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,M=this.opts={...M,...w(M)};const{es5:U,lines:T}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:k,es5:U,lines:T}),this.logger=_(M.logger);const N=M.validateFormats;M.validateFormats=!1,this.RULES=(0,n.getRules)(),m.call(this,v,M,"NOT SUPPORTED"),m.call(this,y,M,"DEPRECATED","warn"),this._metaOpts=O.call(this),M.formats&&A.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),M.keywords&&x.call(this,M.keywords),typeof M.meta=="object"&&this.addMetaSchema(M.meta),S.call(this),M.validateFormats=N}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:M,meta:U,schemaId:T}=this.opts;let N=f;T==="id"&&(N={...f},N.id=N.$id,delete N.$id),U&&M&&this.addMetaSchema(N,N[T],!1)}defaultMeta(){const{meta:M,schemaId:U}=this.opts;return this.opts.defaultMeta=typeof M=="object"?M[U]||M:void 0}validate(M,U){let T;if(typeof M=="string"){if(T=this.getSchema(M),!T)throw new Error(`no schema with key or ref "${M}"`)}else T=this.compile(M);const N=T(U);return"$async"in T||(this.errors=T.errors),N}compile(M,U){const T=this._addSchema(M,U);return T.validate||this._compileSchemaEnv(T)}compileAsync(M,U){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:T}=this.opts;return N.call(this,M,U);async function N(Q,q){await L.call(this,Q.$schema);const z=this._addSchema(Q,q);return z.validate||B.call(this,z)}async function L(Q){Q&&!this.getSchema(Q)&&await N.call(this,{$ref:Q},!0)}async function B(Q){try{return this._compileSchemaEnv(Q)}catch(q){if(!(q instanceof i.default))throw q;return V.call(this,q),await K.call(this,q.missingSchema),B.call(this,Q)}}function V({missingSchema:Q,missingRef:q}){if(this.refs[Q])throw new Error(`AnySchema ${Q} is loaded but ${q} cannot be resolved`)}async function K(Q){const q=await J.call(this,Q);this.refs[Q]||await L.call(this,q.$schema),this.refs[Q]||this.addSchema(q,Q,U)}async function J(Q){const q=this._loading[Q];if(q)return q;try{return await(this._loading[Q]=T(Q))}finally{delete this._loading[Q]}}}addSchema(M,U,T,N=this.opts.validateSchema){if(Array.isArray(M)){for(const B of M)this.addSchema(B,void 0,T,N);return this}let L;if(typeof M=="object"){const{schemaId:B}=this.opts;if(L=M[B],L!==void 0&&typeof L!="string")throw new Error(`schema ${B} must be string`)}return U=(0,c.normalizeId)(U||L),this._checkUnique(U),this.schemas[U]=this._addSchema(M,T,U,N,!0),this}addMetaSchema(M,U,T=this.opts.validateSchema){return this.addSchema(M,U,!0,T),this}validateSchema(M,U){if(typeof M=="boolean")return!0;let T;if(T=M.$schema,T!==void 0&&typeof T!="string")throw new Error("$schema must be a string");if(T=T||this.opts.defaultMeta||this.defaultMeta(),!T)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const N=this.validate(T,M);if(!N&&U){const L="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(L);else throw new Error(L)}return N}getSchema(M){let U;for(;typeof(U=g.call(this,M))=="string";)M=U;if(U===void 0){const{schemaId:T}=this.opts,N=new o.SchemaEnv({schema:{},schemaId:T});if(U=o.resolveSchema.call(this,N,M),!U)return;this.refs[M]=U}return U.validate||this._compileSchemaEnv(U)}removeSchema(M){if(M instanceof RegExp)return this._removeAllSchemas(this.schemas,M),this._removeAllSchemas(this.refs,M),this;switch(typeof M){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const U=g.call(this,M);return typeof U=="object"&&this._cache.delete(U.schema),delete this.schemas[M],delete this.refs[M],this}case"object":{const U=M;this._cache.delete(U);let T=M[this.opts.schemaId];return T&&(T=(0,c.normalizeId)(T),delete this.schemas[T],delete this.refs[T]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(M){for(const U of M)this.addKeyword(U);return this}addKeyword(M,U){let T;if(typeof M=="string")T=M,typeof U=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),U.keyword=T);else if(typeof M=="object"&&U===void 0){if(U=M,T=U.keyword,Array.isArray(T)&&!T.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(I.call(this,T,U),!U)return(0,u.eachItem)(T,L=>j.call(this,L)),this;Y.call(this,U);const N={...U,type:(0,l.getJSONTypes)(U.type),schemaType:(0,l.getJSONTypes)(U.schemaType)};return(0,u.eachItem)(T,N.type.length===0?L=>j.call(this,L,N):L=>N.type.forEach(B=>j.call(this,L,N,B))),this}getKeyword(M){const U=this.RULES.all[M];return typeof U=="object"?U.definition:!!U}removeKeyword(M){const{RULES:U}=this;delete U.keywords[M],delete U.all[M];for(const T of U.rules){const N=T.rules.findIndex(L=>L.keyword===M);N>=0&&T.rules.splice(N,1)}return this}addFormat(M,U){return typeof U=="string"&&(U=new RegExp(U)),this.formats[M]=U,this}errorsText(M=this.errors,{separator:U=", ",dataVar:T="data"}={}){return!M||M.length===0?"No errors":M.map(N=>`${T}${N.instancePath} ${N.message}`).reduce((N,L)=>N+U+L)}$dataMetaSchema(M,U){const T=this.RULES.all;M=JSON.parse(JSON.stringify(M));for(const N of U){const L=N.split("/").slice(1);let B=M;for(const V of L)B=B[V];for(const V in T){const K=T[V];if(typeof K!="object")continue;const{$data:J}=K.definition,Q=B[V];J&&Q&&(B[V]=ie(Q))}}return M}_removeAllSchemas(M,U){for(const T in M){const N=M[T];(!U||U.test(T))&&(typeof N=="string"?delete M[T]:N&&!N.meta&&(this._cache.delete(N.schema),delete M[T]))}}_addSchema(M,U,T,N=this.opts.validateSchema,L=this.opts.addUsedSchema){let B;const{schemaId:V}=this.opts;if(typeof M=="object")B=M[V];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof M!="boolean")throw new Error("schema must be object or boolean")}let K=this._cache.get(M);if(K!==void 0)return K;T=(0,c.normalizeId)(B||T);const J=c.getSchemaRefs.call(this,M,T);return K=new o.SchemaEnv({schema:M,schemaId:V,meta:U,baseId:T,localRefs:J}),this._cache.set(K.schema,K),L&&!T.startsWith("#")&&(T&&this._checkUnique(T),this.refs[T]=K),N&&this.validateSchema(M,!0),K}_checkUnique(M){if(this.schemas[M]||this.refs[M])throw new Error(`schema with key or id "${M}" already exists`)}_compileSchemaEnv(M){if(M.meta?this._compileMetaSchema(M):o.compileSchema.call(this,M),!M.validate)throw new Error("ajv implementation error");return M.validate}_compileMetaSchema(M){const U=this.opts;this.opts=this._metaOpts;try{o.compileSchema.call(this,M)}finally{this.opts=U}}}E.ValidationError=a.default,E.MissingRefError=i.default,e.default=E;function m(P,M,U,T="error"){for(const N in P){const L=N;L in M&&this.logger[T](`${U}: option ${N}. ${P[L]}`)}}function g(P){return P=(0,c.normalizeId)(P),this.schemas[P]||this.refs[P]}function S(){const P=this.opts.schemas;if(P)if(Array.isArray(P))this.addSchema(P);else for(const M in P)this.addSchema(P[M],M)}function A(){for(const P in this.opts.formats){const M=this.opts.formats[P];M&&this.addFormat(P,M)}}function x(P){if(Array.isArray(P)){this.addVocabulary(P);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const M in P){const U=P[M];U.keyword||(U.keyword=M),this.addKeyword(U)}}function O(){const P={...this.opts};for(const M of h)delete P[M];return P}const C={log(){},warn(){},error(){}};function _(P){if(P===!1)return C;if(P===void 0)return console;if(P.log&&P.warn&&P.error)return P;throw new Error("logger must implement log, warn and error methods")}const F=/^[a-z_$][a-z0-9_$:-]*$/i;function I(P,M){const{RULES:U}=this;if((0,u.eachItem)(P,T=>{if(U.keywords[T])throw new Error(`Keyword ${T} is already defined`);if(!F.test(T))throw new Error(`Keyword ${T} has invalid name`)}),!!M&&M.$data&&!("code"in M||"validate"in M))throw new Error('$data keyword must have "code" or "validate" function')}function j(P,M,U){var T;const N=M==null?void 0:M.post;if(U&&N)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:L}=this;let B=N?L.post:L.rules.find(({type:K})=>K===U);if(B||(B={type:U,rules:[]},L.rules.push(B)),L.keywords[P]=!0,!M)return;const V={keyword:P,definition:{...M,type:(0,l.getJSONTypes)(M.type),schemaType:(0,l.getJSONTypes)(M.schemaType)}};M.before?$.call(this,B,V,M.before):B.rules.push(V),L.all[P]=V,(T=M.implements)===null||T===void 0||T.forEach(K=>this.addKeyword(K))}function $(P,M,U){const T=P.rules.findIndex(N=>N.keyword===U);T>=0?P.rules.splice(T,0,M):(P.rules.push(M),this.logger.warn(`rule ${U} is not defined`))}function Y(P){let{metaSchema:M}=P;M!==void 0&&(P.$data&&this.opts.$data&&(M=ie(M)),P.validateSchema=this.compile(M,!0))}const Z={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ie(P){return{anyOf:[P,Z]}}})(Gf)),Gf}var Cl={},Al={},_l={},eb;function bD(){if(eb)return _l;eb=1,Object.defineProperty(_l,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return _l.default=e,_l}var wa={},tb;function kD(){if(tb)return wa;tb=1,Object.defineProperty(wa,"__esModule",{value:!0}),wa.callRef=wa.getValidate=void 0;const e=Sl(),t=fn(),r=Ue(),a=ka(),i=rd(),n=et(),o={keyword:"$ref",schemaType:"string",code(l){const{gen:u,schema:f,it:p}=l,{baseId:d,schemaEnv:h,validateName:k,opts:v,self:y}=p,{root:b}=h;if((f==="#"||f==="#/")&&d===b.baseId)return E();const w=i.resolveRef.call(y,b,d,f);if(w===void 0)throw new e.default(p.opts.uriResolver,d,f);if(w instanceof i.SchemaEnv)return m(w);return g(w);function E(){if(h===b)return c(l,k,h,h.$async);const S=u.scopeValue("root",{ref:b});return c(l,(0,r._)`${S}.validate`,b,b.$async)}function m(S){const A=s(l,S);c(l,A,S,S.$async)}function g(S){const A=u.scopeValue("schema",v.code.source===!0?{ref:S,code:(0,r.stringify)(S)}:{ref:S}),x=u.name("valid"),O=l.subschema({schema:S,dataTypes:[],schemaPath:r.nil,topSchemaRef:A,errSchemaPath:f},x);l.mergeEvaluated(O),l.ok(x)}}};function s(l,u){const{gen:f}=l;return u.validate?f.scopeValue("validate",{ref:u.validate}):(0,r._)`${f.scopeValue("wrapper",{ref:u})}.validate`}wa.getValidate=s;function c(l,u,f,p){const{gen:d,it:h}=l,{allErrors:k,schemaEnv:v,opts:y}=h,b=y.passContext?a.default.this:r.nil;p?w():E();function w(){if(!v.$async)throw new Error("async schema referenced by sync schema");const S=d.let("valid");d.try(()=>{d.code((0,r._)`await ${(0,t.callValidateCode)(l,u,b)}`),g(u),k||d.assign(S,!0)},A=>{d.if((0,r._)`!(${A} instanceof ${h.ValidationError})`,()=>d.throw(A)),m(A),k||d.assign(S,!1)}),l.ok(S)}function E(){l.result((0,t.callValidateCode)(l,u,b),()=>g(u),()=>m(u))}function m(S){const A=(0,r._)`${S}.errors`;d.assign(a.default.vErrors,(0,r._)`${a.default.vErrors} === null ? ${A} : ${a.default.vErrors}.concat(${A})`),d.assign(a.default.errors,(0,r._)`${a.default.vErrors}.length`)}function g(S){var A;if(!h.opts.unevaluated)return;const x=(A=f==null?void 0:f.validate)===null||A===void 0?void 0:A.evaluated;if(h.props!==!0)if(x&&!x.dynamicProps)x.props!==void 0&&(h.props=n.mergeEvaluated.props(d,x.props,h.props));else{const O=d.var("props",(0,r._)`${S}.evaluated.props`);h.props=n.mergeEvaluated.props(d,O,h.props,r.Name)}if(h.items!==!0)if(x&&!x.dynamicItems)x.items!==void 0&&(h.items=n.mergeEvaluated.items(d,x.items,h.items));else{const O=d.var("items",(0,r._)`${S}.evaluated.items`);h.items=n.mergeEvaluated.items(d,O,h.items,r.Name)}}}return wa.callRef=c,wa.default=o,wa}var rb;function wD(){if(rb)return Al;rb=1,Object.defineProperty(Al,"__esModule",{value:!0});const e=bD(),t=kD(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Al.default=r,Al}var Ol={},xl={},nb;function SD(){if(nb)return xl;nb=1,Object.defineProperty(xl,"__esModule",{value:!0});const e=Ue(),t=e.operators,r={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},a={message:({keyword:n,schemaCode:o})=>(0,e.str)`must be ${r[n].okStr} ${o}`,params:({keyword:n,schemaCode:o})=>(0,e._)`{comparison: ${r[n].okStr}, limit: ${o}}`},i={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:a,code(n){const{keyword:o,data:s,schemaCode:c}=n;n.fail$data((0,e._)`${s} ${r[o].fail} ${c} || isNaN(${s})`)}};return xl.default=i,xl}var Tl={},ab;function ED(){if(ab)return Tl;ab=1,Object.defineProperty(Tl,"__esModule",{value:!0});const e=Ue(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:a})=>(0,e.str)`must be multiple of ${a}`,params:({schemaCode:a})=>(0,e._)`{multipleOf: ${a}}`},code(a){const{gen:i,data:n,schemaCode:o,it:s}=a,c=s.opts.multipleOfPrecision,l=i.let("res"),u=c?(0,e._)`Math.abs(Math.round(${l}) - ${l}) > 1e-${c}`:(0,e._)`${l} !== parseInt(${l})`;a.fail$data((0,e._)`(${o} === 0 || (${l} = ${n}/${o}, ${u}))`)}};return Tl.default=r,Tl}var Pl={},Il={},ib;function CD(){if(ib)return Il;ib=1,Object.defineProperty(Il,"__esModule",{value:!0});function e(t){const r=t.length;let a=0,i=0,n;for(;i<r;)a++,n=t.charCodeAt(i++),n>=55296&&n<=56319&&i<r&&(n=t.charCodeAt(i),(n&64512)===56320&&i++);return a}return Il.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Il}var ob;function AD(){if(ob)return Pl;ob=1,Object.defineProperty(Pl,"__esModule",{value:!0});const e=Ue(),t=et(),r=CD(),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:o}){const s=n==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${s} than ${o} characters`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:o,data:s,schemaCode:c,it:l}=n,u=o==="maxLength"?e.operators.GT:e.operators.LT,f=l.opts.unicode===!1?(0,e._)`${s}.length`:(0,e._)`${(0,t.useFunc)(n.gen,r.default)}(${s})`;n.fail$data((0,e._)`${f} ${u} ${c}`)}};return Pl.default=i,Pl}var Nl={},sb;function _D(){if(sb)return Nl;sb=1,Object.defineProperty(Nl,"__esModule",{value:!0});const e=fn(),t=et(),r=Ue(),i={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,r.str)`must match pattern "${n}"`,params:({schemaCode:n})=>(0,r._)`{pattern: ${n}}`},code(n){const{gen:o,data:s,$data:c,schema:l,schemaCode:u,it:f}=n,p=f.opts.unicodeRegExp?"u":"";if(c){const{regExp:d}=f.opts.code,h=d.code==="new RegExp"?(0,r._)`new RegExp`:(0,t.useFunc)(o,d),k=o.let("valid");o.try(()=>o.assign(k,(0,r._)`${h}(${u}, ${p}).test(${s})`),()=>o.assign(k,!1)),n.fail$data((0,r._)`!${k}`)}else{const d=(0,e.usePattern)(n,l);n.fail$data((0,r._)`!${d}.test(${s})`)}}};return Nl.default=i,Nl}var Dl={},lb;function OD(){if(lb)return Dl;lb=1,Object.defineProperty(Dl,"__esModule",{value:!0});const e=Ue(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:a,schemaCode:i}){const n=a==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${n} than ${i} properties`},params:({schemaCode:a})=>(0,e._)`{limit: ${a}}`},code(a){const{keyword:i,data:n,schemaCode:o}=a,s=i==="maxProperties"?e.operators.GT:e.operators.LT;a.fail$data((0,e._)`Object.keys(${n}).length ${s} ${o}`)}};return Dl.default=r,Dl}var Fl={},cb;function xD(){if(cb)return Fl;cb=1,Object.defineProperty(Fl,"__esModule",{value:!0});const e=fn(),t=Ue(),r=et(),i={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:n}})=>(0,t.str)`must have required property '${n}'`,params:({params:{missingProperty:n}})=>(0,t._)`{missingProperty: ${n}}`},code(n){const{gen:o,schema:s,schemaCode:c,data:l,$data:u,it:f}=n,{opts:p}=f;if(!u&&s.length===0)return;const d=s.length>=p.loopRequired;if(f.allErrors?h():k(),p.strictRequired){const b=n.parentSchema.properties,{definedProperties:w}=n.it;for(const E of s)if((b==null?void 0:b[E])===void 0&&!w.has(E)){const m=f.schemaEnv.baseId+f.errSchemaPath,g=`required property "${E}" is not defined at "${m}" (strictRequired)`;(0,r.checkStrictMode)(f,g,f.opts.strictRequired)}}function h(){if(d||u)n.block$data(t.nil,v);else for(const b of s)(0,e.checkReportMissingProp)(n,b)}function k(){const b=o.let("missing");if(d||u){const w=o.let("valid",!0);n.block$data(w,()=>y(b,w)),n.ok(w)}else o.if((0,e.checkMissingProp)(n,s,b)),(0,e.reportMissingProp)(n,b),o.else()}function v(){o.forOf("prop",c,b=>{n.setParams({missingProperty:b}),o.if((0,e.noPropertyInData)(o,l,b,p.ownProperties),()=>n.error())})}function y(b,w){n.setParams({missingProperty:b}),o.forOf(b,c,()=>{o.assign(w,(0,e.propertyInData)(o,l,b,p.ownProperties)),o.if((0,t.not)(w),()=>{n.error(),o.break()})},t.nil)}}};return Fl.default=i,Fl}var Ml={},ub;function TD(){if(ub)return Ml;ub=1,Object.defineProperty(Ml,"__esModule",{value:!0});const e=Ue(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:a,schemaCode:i}){const n=a==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${n} than ${i} items`},params:({schemaCode:a})=>(0,e._)`{limit: ${a}}`},code(a){const{keyword:i,data:n,schemaCode:o}=a,s=i==="maxItems"?e.operators.GT:e.operators.LT;a.fail$data((0,e._)`${n}.length ${s} ${o}`)}};return Ml.default=r,Ml}var jl={},Ll={},fb;function id(){if(fb)return Ll;fb=1,Object.defineProperty(Ll,"__esModule",{value:!0});const e=$v();return e.code='require("ajv/dist/runtime/equal").default',Ll.default=e,Ll}var db;function PD(){if(db)return jl;db=1,Object.defineProperty(jl,"__esModule",{value:!0});const e=yl(),t=Ue(),r=et(),a=id(),n={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:o,j:s}})=>(0,t.str)`must NOT have duplicate items (items ## ${s} and ${o} are identical)`,params:({params:{i:o,j:s}})=>(0,t._)`{i: ${o}, j: ${s}}`},code(o){const{gen:s,data:c,$data:l,schema:u,parentSchema:f,schemaCode:p,it:d}=o;if(!l&&!u)return;const h=s.let("valid"),k=f.items?(0,e.getSchemaTypes)(f.items):[];o.block$data(h,v,(0,t._)`${p} === false`),o.ok(h);function v(){const E=s.let("i",(0,t._)`${c}.length`),m=s.let("j");o.setParams({i:E,j:m}),s.assign(h,!0),s.if((0,t._)`${E} > 1`,()=>(y()?b:w)(E,m))}function y(){return k.length>0&&!k.some(E=>E==="object"||E==="array")}function b(E,m){const g=s.name("item"),S=(0,e.checkDataTypes)(k,g,d.opts.strictNumbers,e.DataType.Wrong),A=s.const("indices",(0,t._)`{}`);s.for((0,t._)`;${E}--;`,()=>{s.let(g,(0,t._)`${c}[${E}]`),s.if(S,(0,t._)`continue`),k.length>1&&s.if((0,t._)`typeof ${g} == "string"`,(0,t._)`${g} += "_"`),s.if((0,t._)`typeof ${A}[${g}] == "number"`,()=>{s.assign(m,(0,t._)`${A}[${g}]`),o.error(),s.assign(h,!1).break()}).code((0,t._)`${A}[${g}] = ${E}`)})}function w(E,m){const g=(0,r.useFunc)(s,a.default),S=s.name("outer");s.label(S).for((0,t._)`;${E}--;`,()=>s.for((0,t._)`${m} = ${E}; ${m}--;`,()=>s.if((0,t._)`${g}(${c}[${E}], ${c}[${m}])`,()=>{o.error(),s.assign(h,!1).break(S)})))}}};return jl.default=n,jl}var Rl={},pb;function ID(){if(pb)return Rl;pb=1,Object.defineProperty(Rl,"__esModule",{value:!0});const e=Ue(),t=et(),r=id(),i={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:n})=>(0,e._)`{allowedValue: ${n}}`},code(n){const{gen:o,data:s,$data:c,schemaCode:l,schema:u}=n;c||u&&typeof u=="object"?n.fail$data((0,e._)`!${(0,t.useFunc)(o,r.default)}(${s}, ${l})`):n.fail((0,e._)`${u} !== ${s}`)}};return Rl.default=i,Rl}var ql={},mb;function ND(){if(mb)return ql;mb=1,Object.defineProperty(ql,"__esModule",{value:!0});const e=Ue(),t=et(),r=id(),i={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:n})=>(0,e._)`{allowedValues: ${n}}`},code(n){const{gen:o,data:s,$data:c,schema:l,schemaCode:u,it:f}=n;if(!c&&l.length===0)throw new Error("enum must have non-empty array");const p=l.length>=f.opts.loopEnum;let d;const h=()=>d??(d=(0,t.useFunc)(o,r.default));let k;if(p||c)k=o.let("valid"),n.block$data(k,v);else{if(!Array.isArray(l))throw new Error("ajv implementation error");const b=o.const("vSchema",u);k=(0,e.or)(...l.map((w,E)=>y(b,E)))}n.pass(k);function v(){o.assign(k,!1),o.forOf("v",u,b=>o.if((0,e._)`${h()}(${s}, ${b})`,()=>o.assign(k,!0).break()))}function y(b,w){const E=l[w];return typeof E=="object"&&E!==null?(0,e._)`${h()}(${s}, ${b}[${w}])`:(0,e._)`${s} === ${E}`}}};return ql.default=i,ql}var hb;function DD(){if(hb)return Ol;hb=1,Object.defineProperty(Ol,"__esModule",{value:!0});const e=SD(),t=ED(),r=AD(),a=_D(),i=OD(),n=xD(),o=TD(),s=PD(),c=ID(),l=ND(),u=[e.default,t.default,r.default,a.default,i.default,n.default,o.default,s.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},c.default,l.default];return Ol.default=u,Ol}var zl={},Ui={},gb;function yb(){if(gb)return Ui;gb=1,Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.validateAdditionalItems=void 0;const e=Ue(),t=et(),a={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:n}})=>(0,e.str)`must NOT have more than ${n} items`,params:({params:{len:n}})=>(0,e._)`{limit: ${n}}`},code(n){const{parentSchema:o,it:s}=n,{items:c}=o;if(!Array.isArray(c)){(0,t.checkStrictMode)(s,'"additionalItems" is ignored when "items" is not an array of schemas');return}i(n,c)}};function i(n,o){const{gen:s,schema:c,data:l,keyword:u,it:f}=n;f.items=!0;const p=s.const("len",(0,e._)`${l}.length`);if(c===!1)n.setParams({len:o.length}),n.pass((0,e._)`${p} <= ${o.length}`);else if(typeof c=="object"&&!(0,t.alwaysValidSchema)(f,c)){const h=s.var("valid",(0,e._)`${p} <= ${o.length}`);s.if((0,e.not)(h),()=>d(h)),n.ok(h)}function d(h){s.forRange("i",o.length,p,k=>{n.subschema({keyword:u,dataProp:k,dataPropType:t.Type.Num},h),f.allErrors||s.if((0,e.not)(h),()=>s.break())})}}return Ui.validateAdditionalItems=i,Ui.default=a,Ui}var $l={},Bi={},vb;function bb(){if(vb)return Bi;vb=1,Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.validateTuple=void 0;const e=Ue(),t=et(),r=fn(),a={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(n){const{schema:o,it:s}=n;if(Array.isArray(o))return i(n,"additionalItems",o);s.items=!0,!(0,t.alwaysValidSchema)(s,o)&&n.ok((0,r.validateArray)(n))}};function i(n,o,s=n.schema){const{gen:c,parentSchema:l,data:u,keyword:f,it:p}=n;k(l),p.opts.unevaluated&&s.length&&p.items!==!0&&(p.items=t.mergeEvaluated.items(c,s.length,p.items));const d=c.name("valid"),h=c.const("len",(0,e._)`${u}.length`);s.forEach((v,y)=>{(0,t.alwaysValidSchema)(p,v)||(c.if((0,e._)`${h} > ${y}`,()=>n.subschema({keyword:f,schemaProp:y,dataProp:y},d)),n.ok(d))});function k(v){const{opts:y,errSchemaPath:b}=p,w=s.length,E=w===v.minItems&&(w===v.maxItems||v[o]===!1);if(y.strictTuples&&!E){const m=`"${f}" is ${w}-tuple, but minItems or maxItems/${o} are not specified or different at path "${b}"`;(0,t.checkStrictMode)(p,m,y.strictTuples)}}}return Bi.validateTuple=i,Bi.default=a,Bi}var kb;function FD(){if(kb)return $l;kb=1,Object.defineProperty($l,"__esModule",{value:!0});const e=bb(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return $l.default=t,$l}var Ul={},wb;function MD(){if(wb)return Ul;wb=1,Object.defineProperty(Ul,"__esModule",{value:!0});const e=Ue(),t=et(),r=fn(),a=yb(),n={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:o}})=>(0,e.str)`must NOT have more than ${o} items`,params:({params:{len:o}})=>(0,e._)`{limit: ${o}}`},code(o){const{schema:s,parentSchema:c,it:l}=o,{prefixItems:u}=c;l.items=!0,!(0,t.alwaysValidSchema)(l,s)&&(u?(0,a.validateAdditionalItems)(o,u):o.ok((0,r.validateArray)(o)))}};return Ul.default=n,Ul}var Bl={},Sb;function jD(){if(Sb)return Bl;Sb=1,Object.defineProperty(Bl,"__esModule",{value:!0});const e=Ue(),t=et(),a={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:i,max:n}})=>n===void 0?(0,e.str)`must contain at least ${i} valid item(s)`:(0,e.str)`must contain at least ${i} and no more than ${n} valid item(s)`,params:({params:{min:i,max:n}})=>n===void 0?(0,e._)`{minContains: ${i}}`:(0,e._)`{minContains: ${i}, maxContains: ${n}}`},code(i){const{gen:n,schema:o,parentSchema:s,data:c,it:l}=i;let u,f;const{minContains:p,maxContains:d}=s;l.opts.next?(u=p===void 0?1:p,f=d):u=1;const h=n.const("len",(0,e._)`${c}.length`);if(i.setParams({min:u,max:f}),f===void 0&&u===0){(0,t.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(f!==void 0&&u>f){(0,t.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),i.fail();return}if((0,t.alwaysValidSchema)(l,o)){let w=(0,e._)`${h} >= ${u}`;f!==void 0&&(w=(0,e._)`${w} && ${h} <= ${f}`),i.pass(w);return}l.items=!0;const k=n.name("valid");f===void 0&&u===1?y(k,()=>n.if(k,()=>n.break())):u===0?(n.let(k,!0),f!==void 0&&n.if((0,e._)`${c}.length > 0`,v)):(n.let(k,!1),v()),i.result(k,()=>i.reset());function v(){const w=n.name("_valid"),E=n.let("count",0);y(w,()=>n.if(w,()=>b(E)))}function y(w,E){n.forRange("i",0,h,m=>{i.subschema({keyword:"contains",dataProp:m,dataPropType:t.Type.Num,compositeRule:!0},w),E()})}function b(w){n.code((0,e._)`${w}++`),f===void 0?n.if((0,e._)`${w} >= ${u}`,()=>n.assign(k,!0).break()):(n.if((0,e._)`${w} > ${f}`,()=>n.assign(k,!1).break()),u===1?n.assign(k,!0):n.if((0,e._)`${w} >= ${u}`,()=>n.assign(k,!0)))}}};return Bl.default=a,Bl}var od={},Eb;function LD(){return Eb||(Eb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Ue(),r=et(),a=fn();e.error={message:({params:{property:c,depsCount:l,deps:u}})=>{const f=l===1?"property":"properties";return(0,t.str)`must have ${f} ${u} when property ${c} is present`},params:({params:{property:c,depsCount:l,deps:u,missingProperty:f}})=>(0,t._)`{property: ${c},
|
|
117
|
+
`)!==-1||/^#{1,6}\s/.test(A);M?(i.inline=!1,S=jn(A,i,a)):S=Gr(A,0,A.length,i,a),i.inAnchor=O,i.inline=F,i.k=T}return{node:{type:ne.htmlBlock,tag:b,attrs:Wr(g.attrs,b,a),b:g.b,children:S,text:nr(x),c:!1,a:!1},end:y}}var Qj=200,lo=0;function Gr(e,t,r,i,a){if(lo++,lo>Qj)return lo--,[{type:ne.text,text:e.slice(t,r)}];var n=br;br=Wj();let o=i;if(a.optimizeForStreaming){let ee=function(We,St){for(var xt=1,ct=St+1;ct<We.length;ct++){var Ct=We.charCodeAt(ct);if(Ct===vt)xt++;else if(Ct===_r&&(xt--,xt===0))return ct}return-1},te=e.slice(t,r),he=te;for(var s=0,l=0,u=0,c=0,f=0,m=-1,d=-1,p=-1,k=-1,v=-1,g=0;g<te.length;g++){var b=te.charCodeAt(g);b===wt?g+1<te.length&&te.charCodeAt(g+1)===wt?(s++,m=g,g++):(l++,d=g):b===gt?g+1<te.length&&te.charCodeAt(g+1)===gt?(u++,p=g,g++):(c++,k=g):b===Pt&&g+1<te.length&&te.charCodeAt(g+1)===Pt&&(f++,v=g,g++)}var w=[];f%2===1&&v>=0&&w.push([v,2]),u%2===1&&p>=0&&w.push([p,2]),c%2===1&&k>=0&&w.push([k,1]),s%2===1&&m>=0&&w.push([m,2]),l%2===1&&d>=0&&w.push([d,1]),w.sort((We,St)=>St[0]-We[0]);for(var E=0;E<w.length;E++){var h=w[E][0],y=w[E][1];te=te.slice(0,h)+te.slice(h+y)}let ce=0,mt=-1;for(let We=0;We<te.length;We++)te.charCodeAt(We)===Ge&&(ce++,mt=We);if(ce%2===1&&mt!==-1){let We=!1,St=-1,xt=0;for(;xt<te.length;)te.charCodeAt(xt)===Ge&&(We?(We=!1,St=-1):(St=xt,We=!0)),xt++;We&&St!==-1&&(te=te.slice(0,St))}for(var C=!0;C;){C=!1;for(var x=-1,_=-1,S=-1,A=!1,O=0;O<te.length;O++){var F=te.charCodeAt(O);if(F===vt&&(O===0||te.charCodeAt(O-1)!==Nt)){var T=O>0&&te.charCodeAt(O-1)===Ht,M=T?O-1:O,q=ee(te,O);if(q===-1)x=M,A=T,_=O+1,S=te.length;else{var J=q+1;if(J>=te.length)x=M,A=T,_=O+1,S=q;else if(te.charCodeAt(J)===Pr){var Y=te.indexOf(")",J+1);Y===-1?(x=M,A=T,_=O+1,S=q,O=te.length):O=Y}else if(te.charCodeAt(J)===vt){var Q=te.indexOf("]",J+1);Q===-1?(x=M,A=T,_=O+1,S=q,O=te.length):O=Q}else O=q}}}if(x>=0){var P=A?"":te.slice(_,S);te=te.slice(0,x)+P,C=!0}}let qe=te.match(/<([A-Z][A-Za-z0-9]*)(?:\s[^>]*)?>([^<]*)$/);if(qe&&qe.index!==void 0){var j=qe[0].length-qe[2].length,B=j>=2&&qe[0].charCodeAt(j-2)===bt;if(!B){for(var I=!1,D=0,L=0;L<qe.index;L++)te.charCodeAt(L)===Ge&&D++;if(I=D%2===1,!I){let We=qe[1];Mn(te,`</${We}`,0)===-1&&(te=te.slice(0,qe.index)+qe[2])}}}te!==he&&(e=e.slice(0,t)+te,r=t+te.length)}let U=[];var $=[];let H=t;var G="",X=a.disableAutoLink||a.disableBareUrls||o.inAnchor?-1:e.indexOf("@",t);for(X>=r&&(X=-1);t<r;){let ee=e.charCodeAt(t),te=null;if(ee===Ge){if(te=$j(e,t,r),!te){var z=Nn(e,t,r,Ge);t+=z-1}}else if(ee===wt||ee===gt){var R=Hj(e,t,r);if(R){if(R.canOpen||R.canClose){(G||t>H)&&(U.push(gi(G+e.slice(H,t))),G="");var W=e.slice(t,t+R.len),K=gi(W);$.push({idx:U.length,ch:ee,len:R.len,canOpen:R.canOpen,canClose:R.canClose,active:!0}),U.push(K),t+=R.len,H=t;continue}t+=R.len-1}}else if(ee===Pt)te=Bj(e,t,r,o,a);else if(ee===yr)te=Vj(e,t,r,o,a);else if(ee===vt)t+1<r&&e.charCodeAt(t+1)===on&&(te=Gj(e,t,r)),te||(te=nb(e,t,r,o,a));else if(ee===Ht&&t+1<r&&e.charCodeAt(t+1)===vt)te=nb(e,t,r,o,a);else if(ee===it)te=ib(e,t,r),!(te||a.disableParsingRawHTML||a.ignoreHTMLBlocks)&&(te=Zj(e,t,r,o,a));else if(ee===Ss){var ie=Xj(e,t,r);if(ie!==-1){var re=e.slice(t,ie),ue=In(re);if(ue!==re){G=G+e.slice(H,t)+ue,t=ie,H=ie;continue}}}else if((ee===Cs||ee===ui||ee===li)&&!o.inAnchor&&!a.disableAutoLink&&(t===0||e.charCodeAt(t-1)!==it)){var ye=t+1<r?e.charCodeAt(t+1):0;(ee===Cs&&ye===Xi||ee===li&&ye===Xi||ee===ui&&ye===ui)&&(te=Jj(e,t,r,a))}if(!te&&X>=0&&X-t<=64&&!o.inAnchor&&!a.disableAutoLink&&!a.disableBareUrls&&(ee>=we&&ee<=Ae||ee>=Ze&&ee<=lt||ee>=Te&&ee<=Ne)&&(te=Yj(e,t,r,a),!te&&t>=X&&(X=e.indexOf("@",t+1),X>=r&&(X=-1))),ee===fe&&o.k){var Se=!1,ke=0;if(t>H&&e.charCodeAt(t-1)===Nt)Se=!0,ke=1;else{for(var Pe=0,de=t-1;de>=H&&e.charCodeAt(de)===oe;)Pe++,de--;Pe>=2&&(Se=!0,ke=Pe)}if(Se){for((G||t-ke>H)&&(U.push(gi(G+e.slice(H,t-ke))),G=""),U.push({type:ne.breakLine}),t++;t<r&&e.charCodeAt(t)===oe;)t++;H=t;continue}var Ke=t>H&&e.charCodeAt(t-1)===oe,ut=t+1<r&&e.charCodeAt(t+1)===oe;if(Ke||ut){for(var ve=t;ve>H&&e.charCodeAt(ve-1)===oe;)ve--;for(G+=`${e.slice(H,ve)}
|
|
118
|
+
`,t++;t<r&&e.charCodeAt(t)===oe;)t++;H=t;continue}}if(te)(G||t>H)&&(U.push(gi(G+e.slice(H,t))),G=""),U.push(te.node),t=te.end,H=t;else{if(ee===Nt&&t+1<r){let he=e.charCodeAt(t+1);if(Af(he)&Qi){(G||t>H)&&(U.push(gi(G+e.slice(H,t))),G=""),U.push(gi(e[t+1])),t+=2,H=t;continue}}if(t++,X<0||X-t>64)for(;t<r&&!(X>=0&&X-t<=64);){var Z=e.charCodeAt(t);if(Z<As&&!Mv[Z])t++;else break}}}return(G||r>H)&&(U.push(gi(G+e.slice(H,r))),G=""),$.length>0&&Kj(U,$),br=n,lo--,U}var e2=500;function jn(e,t,r){var i=t.o||0;if(i>e2)return[{type:ne.text,text:e}];if(t.o=i+1,r.optimizeForStreaming&&!(t.i||t.w)){for(var a=e.length;a>0&&e.charCodeAt(a-1)===fe;)a--;for(var n=a;n>0&&e.charCodeAt(n-1)!==fe;)n--;if(a>n&&e.charCodeAt(n)===Ft){for(var o=!1,s=n+1;s<a;s++){var l=e.charCodeAt(s);if(l!==oe&&l!==le&&l!==Ft&&l!==Rt&&l!==_e){o=!0;break}}for(var u=!1,c=!1,f=0,m=n,d=n-1;d>0;){for(var p=d;p>0&&e.charCodeAt(p-1)!==fe;)p--;if(e.charCodeAt(p)!==Ft)break;m=p;for(var k=!0,v=!1,g=p;g<d;g++){var b=e.charCodeAt(g);if(b===_e)v=!0;else if(b!==oe&&b!==le&&b!==Rt&&b!==Ft){k=!1;break}}k&&v?(u=!0,c=!0):c||f++,d=p-1}o?u||(e=e.slice(0,n).trimEnd()):e=u&&f>0?e.slice(0,n).trimEnd():e.slice(0,m).trimEnd()}for(var w=-1,E=-1,h=-1,y=!1,C=e.length-1;C>=0;C--)if(e.charCodeAt(C)===it){for(var x=C+1<e.length?e.charCodeAt(C+1):0,_=x>=we&&x<=Ae||x>=Ze&&x<=lt,S=x===bt&&C+2<e.length&&(e.charCodeAt(C+2)>=we&&e.charCodeAt(C+2)<=Ae||e.charCodeAt(C+2)>=Ze&&e.charCodeAt(C+2)<=lt),A=x===Ht||x===Zi,O=e.length;O>C+1&&e.charCodeAt(O-1)===fe;)O--;var F=C+1>=O;if(_||S||A||F){var T=C+1;if((S||_)&&(T=C+2),_||S)for(;T<e.length;){var M=e.charCodeAt(T);if(M>=we&&M<=Ae||M>=Ze&&M<=lt||M>=Te&&M<=Ne)T++;else break}for(var q=_||S?T:C+2;q<e.length&&e.charCodeAt(q)!==Ie;)q++;if(q>=e.length)w=C,y=!0;else if((_||S)&&e.charCodeAt(q-1)!==bt){for(var J=!1,Y=q+1;Y<e.length;Y++)if(e.charCodeAt(Y)===it){J=!0;break}J||(w=C,E=T,h=q+1)}}break}if(w>=0){for(var Q=0,P=0;P<w;P++)e.charCodeAt(P)===Ge&&Q++;if(Q%2===0)if(y)e=e.slice(0,w);else{var j=e.slice(w+1,E);Mn(e,`</${j}`,0)===-1&&(e=e.slice(0,w)+e.slice(h))}}for(var B=e.length;B>0&&e.charCodeAt(B-1)===fe;)B--;if(B>0){for(var I=B;I>0&&e.charCodeAt(I-1)!==fe;)I--;for(var D=I,L=0;D<B&&e.charCodeAt(D)===oe&&L<3;)D++,L++;if(I>0&&D<B&&Nj(e,D,B)){for(var U=I-1,$=U;$>0&&e.charCodeAt($-1)!==fe;)$--;Wt(e,$,U)||(e=e.slice(0,I).trimEnd())}}var H=e.length;if(H>0){for(var G=e.lastIndexOf(`
|
|
119
|
+
`),X=G===-1?0:G+1,z=H,R=X,W=0;R<z&&e.charCodeAt(R)===oe&&W<3;)R++,W++;if(R<z){var K=e.charCodeAt(R),ie=!1;if(K===wt||K===_e||K===Pn){var re=R+1;if(re>=z||e.charCodeAt(re)===oe||e.charCodeAt(re)===le){for(var ue=re;ue<z&&(e.charCodeAt(ue)===oe||e.charCodeAt(ue)===le);)ue++;ue>=z&&(ie=!0)}}else if(K>=Te&&K<=Ne){for(var ye=R;ye<z&&e.charCodeAt(ye)>=Te&&e.charCodeAt(ye)<=Ne;)ye++;if(ye<z&&(e.charCodeAt(ye)===vr||e.charCodeAt(ye)===Ir)){var Se=ye+1;if(Se>=z||e.charCodeAt(Se)===oe||e.charCodeAt(Se)===le){for(var ke=Se;ke<z&&(e.charCodeAt(ke)===oe||e.charCodeAt(ke)===le);)ke++;ke>=z&&(ie=!0)}}}ie&&(e=e.slice(0,X).trimEnd())}}}if(t.inline)return Gr(e,0,e.length,t,r);let Pe=[],de=0,Ke=e.length;if(de===0&&!r.disableFrontmatter&&e.startsWith("---")){let ce=JM(e);if(ce!=null&&ce.hasValidYaml){if(r.preserveFrontmatter!==!1){let mt=e.slice(0,ce.endPos).trimEnd();Pe.push({type:ne.frontmatter,text:mt})}de=ce.endPos}}for(;de<Ke;){for(var ut=e.indexOf(`
|
|
120
|
+
`,de),ve=ut<0?Ke:ut;de<Ke&&Wt(e,de,ve);)de=ve<Ke?ve+1:ve,de<Ke&&(ut=e.indexOf(`
|
|
121
|
+
`,de),ve=ut<0?Ke:ut);if(de>=Ke)break;var Z=e.charCodeAt(de)===bf;Et(e,de,ve);let ce=null;if(xf=e,Of=de,Ps=ve,!Z&&Ye>=4&&!t.inHTML)ce=Dj(e,de);else if(!Z){let mt=de+Ve,qe=e.charCodeAt(mt);qe===gr?ce=Tj(e,de,t,r):qe===Ie?ce=Mj(e,de,t,r):qe===Ge||qe===Pt?ce=Fj(e,de):qe===_e||qe===wt||qe===gt?(ce=Fn(e,de),!ce&&(ce=Gv(e,de,t,r))):qe===Pn||qe>=Te&&qe<=Ne?ce=Gv(e,de,t,r):qe===it?ce=Jv(e,de,t,r):qe===Ft?ce=Xv(e,de,t,r):qe===vt&&(ce=qj(e,de,t))}if(!ce){for(var ee=!1,te=de;te<ve;te++)if(e.charCodeAt(te)===Ft){ee=!0;break}ee&&(ce=Xv(e,de,t,r))}if(ce||(ce=zj(e,de,t,r)),ce)ce.node.type!==ne.refCollection&&Pe.push(ce.node),de=ce.end;else{var he=e.indexOf(`
|
|
122
|
+
`,de);de=he<0?Ke:he+1}}return t.o=i,Pe}function t2(e,t,r,i){var a=Kr(e,t);return a?{tagName:a.tag,tagLower:a.tag.toLowerCase(),attrs:a.b,whitespaceBeforeAttrs:a.g,isSelfClosing:a.n,hasSpaceBeforeSlash:a.r,isClosing:a.f,hasNewline:a.g.includes(`
|
|
123
|
+
`)||a.b.includes(`
|
|
124
|
+
`),endPos:a.end}:null}function qf(e,t,r){lo=0,e=ij(e),!t.refs&&(t.refs={}),(r.optimizeForStreaming||t.inline)&&(t.w=Pj(e,t.refs,r));var i,a;t.t||(t.t=i=[],t.p=a=[]);let n=jn(e,t,r);if(i&&a){for(var o=i,s={inline:t.inline,inAnchor:t.inAnchor,inHTML:t.inHTML,htmlDepth:t.d,inList:t.inList,inBlockQuote:t.inBlockQuote,noSetext:t.l,depth:t.o},l=0;l<o.length;l++){var u=o[l];t.inline=u.inline,t.inAnchor=u.inAnchor,t.inHTML=u.inHTML,t.d=u.htmlDepth,t.inList=u.inList,t.inBlockQuote=u.inBlockQuote,t.l=u.noSetext,t.o=u.depth,t.k=u.breaks;var c=Gr(u.text,0,u.text.length,t,r);t.k=!1;for(var f=0;f<c.length;f++)u.dest.push(c[f])}t.inline=s.inline,t.inAnchor=s.inAnchor,t.inHTML=s.inHTML,t.d=s.htmlDepth,t.inList=s.inList,t.inBlockQuote=s.inBlockQuote,t.l=s.noSetext,t.o=s.depth;for(var m=a,d=0;d<m.length;d++)for(var p=m[d],k=0;k<p.src.length;k++){var v=p.src[k];if(p.unwrap&&v.type===ne.paragraph)for(var g=v.children,b=0;b<g.length;b++)p.dest.push(g[b]);else p.dest.push(v)}t.t=void 0,t.p=void 0,Lf(n,t,r.slugify)}return Ov(t.refs)?[{type:ne.refCollection,refs:t.refs},...n]:n}var Rf;try{aa=Zr.createElement("div"),Rf=aa!=null&&typeof aa=="object"&&"$$typeof"in aa&&typeof aa.$$typeof=="symbol"?aa.$$typeof:Symbol.for("react.transitional.element")}catch{Rf=Symbol.for("react.transitional.element")}var aa;function zf(e,t,r){return{$$typeof:Rf,type:e,key:r==null?null:String(r),ref:null,props:t,_owner:null,_store:{},_debugStack:null,_debugTask:null}}function kr(e,t){var r={key:e};if(t){var i=wv(t);for(var a in i)r[a]=i[a]}return r}var ab=typeof Zr.createContext>"u"?void 0:Zr.createContext(void 0);function ob(e,t,r,i,a,n,o,s,l){switch(e.type){case ne.blockQuote:{let g={key:r.key};return e.alert&&(g.className=`markdown-alert-${n(e.alert.toLowerCase(),mi)}`,e.children.unshift(sj(e.alert))),i("blockquote",g,t(e.children,r))}case ne.breakLine:return i("br",{key:r.key});case ne.breakThematic:return i("hr",{key:r.key});case ne.frontmatter:return s.preserveFrontmatter?i("pre",{key:r.key},e.text):null;case ne.codeBlock:{let g=e.lang?In(e.lang):"";var u=e.attrs?wv(e.attrs):{};return u.className=g?`language-${g} lang-${g}`:"",i("pre",{key:r.key},i("code",u,e.text))}case ne.codeInline:return i("code",{key:r.key},e.text);case ne.footnoteReference:return i("a",{key:r.key,href:a(e.target,"a","href")||void 0},i("sup",null,e.text));case ne.gfmTask:return i("input",{checked:e.completed,key:r.key,readOnly:!0,type:"checkbox"});case ne.heading:return i(`h${e.level}`,{id:e.id,key:r.key},t(e.children,r));case ne.htmlBlock:{let g=e;if(ta(s)&&Tv(g.tag)){var c=Iv(g);return c.kind==="literal"?i("span",{key:r.key},c.literal):i("span",{key:r.key},...dj(c.open,g.children?t(g.children,r):null,c.close))}let b=g.j,w=b!==void 0,E=w?b:g.a?g.e||"":(g.e||"")+(g.h||"");if(E&&g.c){let h=g.tag.toLowerCase(),y=Sj(h),C=g.children,x=C!=null&&C.length>0;if(y){let M=w?b:g.e||"",q=ta(s)?Nv(M):M;if(/<[a-z][^>]{0,100}>/i.test(E)){var f=kr(r.key,e.attrs);return f.dangerouslySetInnerHTML={__html:q},l(e.tag,f)}return l(e.tag,kr(r.key,e.attrs),q)}let _=new RegExp(`^<${g.tag}(\\s|>)`,"i");if(x&&!_.test(E)&&ta(s)&&vj(E))return l(e.tag,kr(r.key,e.attrs),t(C,r));if(Cj(E)){let M=ta(s)?Nv(E):E;var m=kr(r.key,e.attrs);return m.dangerouslySetInnerHTML={__html:M},l(e.tag,m)}let S=wf({slugify:s.slugify,sanitizer:a,tagfilter:!0}),A=aj(E);if(new RegExp(`^<${g.tag}(\\s[^>]*)?>(\\s*</${g.tag}>)?$`,"i").test(A))return g.children&&g.children.length>0?l(e.tag,kr(r.key,e.attrs),t(g.children,r)):l(e.tag,kr(r.key,e.attrs));let O=qf(A,{inline:!1,refs:o,inHTML:!1},S);_v(O);let F=g.tag.toLowerCase(),T=w;if(T&&x)return l(e.tag,kr(r.key,e.attrs),t(C,r));if(T)return t(O.flatMap(ea),r);var d=cj(O,F);if(d.found&&d.afterClose.length>0){var p=d.beforeClose.flatMap(ea),k=d.afterClose.flatMap(ea);return zf(Zr.Fragment,{children:[l(e.tag,kr(r.key,e.attrs),t(p,r)),t(k,r)]},r.key)}return l(e.tag,kr(r.key,e.attrs),t(O.flatMap(ea),r))}return ao(e.tag)?l(e.tag,kr(r.key,e.attrs)):l(e.tag,kr(r.key,e.attrs),e.children?t(e.children,r):"")}case ne.htmlSelfClosing:{let g=e;if(ta(s)&&Tv(g.tag)){var v=Iv(g);return i("span",{key:r.key},v.kind==="literal"?v.literal:v.open+(v.close||""))}return l(e.tag,kr(r.key,e.attrs))}case ne.image:{let g=e.target===null?null:a(e.target,"img","src");return i("img",{key:r.key,alt:e.alt&&e.alt.length>0?e.alt:void 0,title:e.title||void 0,src:g||void 0})}case ne.link:{let g={key:r.key};if(e.target!=null){let b=mj(e.target,a,"a","href");b!=null&&(g.href=b)}return e.title&&(g.title=e.title),i("a",g,t(e.children,r))}case ne.table:{let g=e;return i("table",{key:r.key},i("thead",{key:"thead"},i("tr",null,g.header.map(function(b,w){return i("th",{key:w,style:g.align[w]===null?{}:{textAlign:g.align[w]}},t(b,r))}))),g.cells.length>0&&i("tbody",{key:"tbody"},g.cells.map(function(b,w){return i("tr",{key:w},b.map(function(E,h){return i("td",{key:h,style:g.align[h]===null?{}:{textAlign:g.align[h]}},t(E,r))}))})))}case ne.text:return e.text;case ne.textFormatted:return i(e.tag,{key:r.key},t(e.children,r));case ne.orderedList:case ne.unorderedList:{let g=e.type===ne.orderedList?"ol":"ul";return i(g,{key:r.key,start:e.type===ne.orderedList?e.start:void 0},e.items.map(function(b,w){return i("li",{key:w},t(b,r))}))}case ne.paragraph:return i("p",{key:r.key},t(e.children,r));case ne.ref:return null;default:return null}}var r2=(e,t,r,i,a,n,o)=>{var s=u=>u.map(c=>"text"in c?c.text:""),l=(u,c={})=>{var f=Array.isArray(u)?u:[u],m=(c.renderDepth||0)+1;if(m>2500)return s(f);c.renderDepth=m;for(var d=c.key,p=[],k=!1,v=0;v<f.length;v++){c.key=v;var g;if(e){var b=ob.bind(null,f[v],l,c,t,r,i,a,n,o);g=e(b,f[v],l,c)}else g=ob(f[v],l,c,t,r,i,a,n,o);var w=typeof g=="string";if(k&&typeof g=="string"){var E=p.at(-1);p[p.length-1]=(typeof E=="string"?E:"")+g}else if(g!=null)if(Array.isArray(g))for(var h=0;h<g.length;h++)p.push(g[h]);else p.push(g);k=w}return c.key=d,c.renderDepth=m-1,p};return l},n2=(e,t)=>{let r=kf(t,e,void 0);return r?typeof r=="function"||typeof r=="object"&&"render"in r?r:kf(t,`${e}.component`,e):e};function i2(e,t){let r={...t||{}};r.overrides=r.overrides||{};let i=r.slugify||mi,a=r.sanitizer||sn,n=r.createElement,o=Ov(r.overrides),s=w=>$f(w,{...r,wrapper:null});function l(w){for(var E in w){var h=w[E];if(typeof h=="string"&&h.length>0&&h.charCodeAt(0)===it&&(bj.test(h)||kj.test(h)||t2(h,0))){var y=s(h.trim());w[E]=E==="innerHTML"&&Array.isArray(y)?y[0]:y}}}function u(w,E,...h){var y=E||{},C=w;if(o){var x=kf(r.overrides,`${w}.props`,{});C=n2(w,r.overrides),y={...y,...x,className:gj(y.className,x.className)||void 0}}if(!n){var _=y.key;return _!=null&&delete y.key,h.length===1?y.children=h[0]:h.length>1&&(y.children=h),zf(C,y,_)}return n(C,y,...h)}function c(w,E,...h){return E&&l(E),u(w,E,...h)}let f=wf(r,r.forceInline),m=e[0]&&e[0].type===ne.refCollection?e[0].refs:{},d=r2(r.renderRule,u,a,i,m,r,c),p=d(e,{inline:r.forceInline,refs:m}),k=pj(m);if(k.length>0&&p.push(u("footer",{key:"footer"},k.map(function(w){let E=w.identifier.charCodeAt(0)===on?w.identifier.slice(1):w.identifier,h=qf(w.footnote,{inline:!0,refs:m},f);return u("div",{id:i(E,mi),key:w.identifier},`${E}: `,d(h,{inline:!0,refs:m}))}))),r.wrapper===null)return p;let v=r.wrapper||(r.forceInline?"span":"div"),g;if(p.length>1||r.forceWrapper)g=p;else return p.length===1?p[0]:null;var b=r.wrapperProps?{...r.wrapperProps}:{};return b.children=g,zf(v,b,"outer")}function $f(e="",t={}){let r={...t||{}};r.overrides=r.overrides||{},r.slugify,r.sanitizer;function i(n){let o=r.forceInline||!(r.forceBlock||QM.test(n)),s=wf(r,o),l=o?n:uj(n),u=qf(l,{inline:o,refs:a},s);return i2(u,{...r,forceInline:o})}let a={};return i(e)}function a2(e){let t=Zr.useRef(e),r=t.current;if(r!==e){var i=!0,a=0;for(var n in e)if(a++,!Object.is(r[n],e[n])){i=!1;break}if(i){var o=0;for(var s in r)o++;i=o===a}i||(t.current=e)}return t.current}var uo=({children:e,options:t,...r})=>{if(!(typeof Zr.useContext<"u")){let s={...t,overrides:{...t==null?void 0:t.overrides},wrapperProps:{...t==null?void 0:t.wrapperProps,...r}};return $f(e??"",s)}let i=ab?Zr.useContext(ab):void 0,a=a2(r),n=Zr.useMemo(()=>({...i,...t,overrides:{...i==null?void 0:i.overrides,...t==null?void 0:t.overrides},wrapperProps:{...i==null?void 0:i.wrapperProps,...t==null?void 0:t.wrapperProps,...a}}),[i,t,a]),o=e??"";return Zr.useMemo(()=>$f(o,n),[o,n])};const sb=Symbol("remove-this-key"),lb=Symbol("reset");function o2(e,t){return Array.isArray(e.required)&&e.required.includes(t)}function s2(e,t){switch(t){case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};case"string":default:return e(Oe.NewStringDefault)}}function ub(e){return!!(e!=null&&e[hn])}function cb(e){return Object.keys(e).filter(t=>ub(e[t]))}function l2(e){const{fieldPathId:t,schema:r,registry:i,uiSchema:a,errorSchema:n,formData:o,onChange:s,onBlur:l,onFocus:u,disabled:c,readonly:f,required:m,hideError:d,propertyName:p,handleKeyRename:k,handleRemoveProperty:v,addedByAdditionalProperties:g}=e,[b,w]=V.useState(!1),{globalFormOptions:E,fields:h}=i,{SchemaField:y}=h,C=Yi(Or(p,E,t.path)),x=V.useCallback((O,F,T,M)=>{let q=O;O===void 0&&g&&(q=""),s(q,F,T,M)},[s,g]),_=V.useCallback(O=>{p!==O&&w(!0),k(p,O)},[p,k]),S=V.useCallback(O=>{const{target:{value:F}}=O;_(F)},[_]),A=V.useCallback(()=>{v(p)},[p,v]);return N.jsx(y,{name:p,required:m,schema:r,uiSchema:a,errorSchema:n,fieldPathId:C,formData:o,wasPropertyKeyModified:b,onKeyRename:_,onKeyRenameBlur:S,onRemoveProperty:A,onChange:x,onBlur:l,onFocus:u,registry:i,disabled:c,readonly:f,hideError:d})}const u2=V.memo(l2);function c2(e){const{schema:t,uiSchema:r={},formData:i,errorSchema:a,fieldPathId:n,name:o,required:s=!1,disabled:l,readonly:u,hideError:c,onBlur:f,onFocus:m,onChange:d,registry:p,title:k}=e,{fields:v,schemaUtils:g,translateString:b,globalUiOptions:w}=p,{OptionalDataControlsField:E}=v,h=V.useRef(i);h.current=i;const y=V.useMemo(()=>g.retrieveSchema(t,i,!0),[g,t,i]),C=V.useMemo(()=>me(r,w),[r,w]),x=V.useMemo(()=>y.properties??{},[y.properties]),_=e.childFieldPathId??n,S=V.useRef({previousKey:"",currentKey:void 0}),[A,O]=V.useState(()=>cb(x)),F=V.useMemo(()=>{const $=new Set(cb(x));return Object.keys(x).filter(H=>!$.has(H))},[x]),T=C.title??y.title??k??o,M=C.description??y.description,q=ro(p,y,s,r),J=Ji(i);let Y=[];const Q=V.useCallback(($,H)=>{const{duplicateKeySuffixSeparator:G="-"}=me(r,w);let X=0,z=$;for(;Re(H,z);)X+=1,z=`${$}${G}${X}`;return z},[r,w]),P=V.useCallback(()=>{if(!(y.additionalProperties||y.patternProperties))return;const $={...i},H=Q("newKey",$);if(y.patternProperties)st($,H,null);else{let G,X,z;if($e(y.additionalProperties)){G=y.additionalProperties.type,X=y.additionalProperties.const,z=y.additionalProperties.default;let W=y.additionalProperties;at in W&&(W=g.retrieveSchema({[at]:W[at]},i),G=W.type,X=W.const,z=g.getDefaultFormState(W,z)),!G&&(je in W||xe in W)&&(G="object")}const R=X??z??s2(b,G);st($,H,R)}S.current.previousKey===H&&(S.current.currentKey=H,S.current.previousKey=Q(H,$)),O(G=>[...G,H]),d($,_.path)},[i,d,b,g,_,Q,y]),j=V.useCallback(($,H)=>{if($!==H){const G=h.current,X=Q(H,G),z={...G},R={[$]:X},W=Object.keys(z).map(ie=>({[Object.hasOwn(R,ie)?R[ie]:ie]:z[ie]})),K=Object.assign({},...W);h.current=K,$!==S.current.currentKey&&(S.current.previousKey=$),S.current.currentKey=X,O(ie=>ie.map(re=>re===$?X:re)),d(K,_.path)}},[d,_,Q]),B=V.useCallback($=>{O(H=>H.filter(G=>G!==$)),d(sb,[..._.path,$])},[d,_]),I=V.useCallback($=>S.current.currentKey===$?S.current.previousKey:$,[]);if(!q||J)try{const $=new Set(F),H=A.filter(G=>Object.hasOwn(x,G)&&!$.has(G));Y=MD([...F,...H],C.order)}catch($){return N.jsxs("div",{children:[N.jsx("p",{className:"rjsf-config-error",style:{color:"red"},children:N.jsx(uo,{options:{disableParsingRawHTML:!0},children:b(Oe.InvalidObjectField,[o||"root",$.message])})}),N.jsx("pre",{children:JSON.stringify(y)})]})}const D=ge("ObjectFieldTemplate",p,C),L=q?N.jsx(E,{...e,fieldPathId:_,schema:y}):void 0,U={title:C.label===!1?"":T,description:C.label===!1?void 0:M,properties:Y.map($=>{var R;const H=ub((R=y.properties)==null?void 0:R[$]),G=H?r.additionalProperties:r[$],X=me(G).widget==="hidden";return{content:N.jsx(u2,{propertyName:$,required:o2(y,$),schema:ae(y,[ze,$],{}),uiSchema:G,errorSchema:ae(a,[$]),fieldPathId:_,formData:ae(i,[$]),handleKeyRename:j,handleRemoveProperty:B,addedByAdditionalProperties:H,onChange:d,onBlur:f,onFocus:m,registry:p,disabled:l,readonly:u,hideError:c},I($)),name:$,readonly:u,disabled:l,required:s,hidden:X}}),readonly:u,disabled:l,required:s,fieldPathId:n,uiSchema:r,errorSchema:a,schema:y,formData:i,registry:p,optionalDataControl:L,className:q?"rjsf-optional-object-field":void 0};return N.jsx(D,{...U,onAddProperty:P})}function f2(e){const{schema:t,uiSchema:r={},formData:i,disabled:a=!1,readonly:n=!1,onChange:o,errorSchema:s,fieldPathId:l,registry:u}=e,{globalUiOptions:c={},schemaUtils:f,translateString:m}=u,d=me(r,c),p=ge("OptionalDataControlsTemplate",u,d),k=Ji(i);let v,g,b,w;if(a||n)v=af(l,"Msg"),g=k?void 0:m(Oe.OptionalObjectEmptyMsg);else{const E=k?Oe.OptionalObjectRemove:Oe.OptionalObjectAdd;g=m(E),k?(v=af(l,"Remove"),w=()=>o(void 0,l.path,s)):(v=af(l,"Add"),b=()=>{let h=f.getDefaultFormState(t,i,"excludeObjectChildren");h===void 0&&(h=mr(t)==="array"?[]:{}),o(h,l.path,s)})}return g&&N.jsx(p,{id:v,registry:u,schema:t,uiSchema:r,label:g,onAddClick:b,onRemoveClick:w})}const d2={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function m2(e,t,r){const{field:i}=t,{fields:a,schemaUtils:n}=r;if(typeof i=="function")return i;if(typeof i=="string"&&i in a)return a[i];const o=mr(e),s=Array.isArray(o)?o[0]:o||"",l=e.$id;let u=d2[s];return l&&l in a&&(u=l),(e.anyOf||e.oneOf)&&!n.isSelect(e)&&u!=="ObjectField"?()=>null:u in a?a[u]:a.FallbackField}function p2(e){const{schema:t,fieldPathId:r,uiSchema:i,formData:a,errorSchema:n,name:o,onChange:s,onKeyRename:l,onKeyRenameBlur:u,onRemoveProperty:c,required:f=!1,registry:m,wasPropertyKeyModified:d=!1}=e,{schemaUtils:p,globalFormOptions:k,globalUiOptions:v,fields:g}=m,{AnyOfField:b,OneOfField:w,CyclicSchemaField:E}=g,h=r[tt],y=V.useCallback((ke,Pe,de,Ke)=>s(ke,Pe,de,Ke||h),[h,s]);if(t[ec])return N.jsx(E,{...e});const C=jD(t,i,m),x=me(C,v),_=ge("FieldTemplate",m,x),S=ge("DescriptionFieldTemplate",m,x),A=ge("FieldHelpTemplate",m,x),O=ge("FieldErrorTemplate",m,x),F=p.retrieveSchema(t,a),T=m2(F,x,m),q=!!F.deprecated?x.deprecatedHandling??"label":void 0,J=!!(x.disabled??e.disabled)||q==="disable",Y=!!(x.readonly??(e.readonly||e.schema.readOnly||F.readOnly)),Q=x.hideError,P=Q===void 0?e.hideError:!!Q,j=!!(x.autofocus??e.autofocus);if(Object.keys(F).length===0)return null;let B=p.getDisplayLabel(F,C,v);const I=x.field&&x.fieldReplacesAnyOrOneOf===!0;let D,L,U={fieldPathId:r};if((je in F||xe in F)&&!I&&!p.isSelect(F)){F[je]?(D=b,L=F[je].map(de=>p.retrieveSchema($e(de)?de:{},a))):F[xe]&&(D=w,L=F[xe].map(de=>p.retrieveSchema($e(de)?de:{},a)));const ke=ro(m,F,f,C),Pe=Ji(a);B=B&&(!ke||Pe),U={childFieldPathId:r,fieldPathId:Or("XxxOf",k,r)}}const{__errors:$,...H}=n||{},G=Ha(C,["ui:classNames","classNames","ui:style"]);gn in G&&(G[gn]=Ha(G[gn],["classNames","style"]));const X=N.jsx(T,{...e,onChange:y,...U,schema:F,uiSchema:G,disabled:J,readonly:Y,hideError:P,autofocus:j,errorSchema:H,rawErrors:$}),z=r[tt];let R;d?R=o:R=hn in F?o:x.title||e.schema.title||F.title||e.title||o,q==="label"&&(R=m.translateString(Oe.DeprecatedLabel,[R]));const W=x.description||e.schema.description||F.description||"",{help:K}=x,ie=x.widget==="hidden"||q==="hide",re=["rjsf-field",`rjsf-field-${mr(F)}`];!P&&$&&$.length>0&&re.push("rjsf-field-error"),x.classNames&&re.push(x.classNames);const ue=N.jsx(A,{help:K,fieldPathId:r,schema:F,uiSchema:C,hasErrors:!P&&$&&$.length>0,registry:m}),ye=P||D&&!p.isSelect(F)?void 0:N.jsx(O,{errors:$,errorSchema:n,fieldPathId:r,schema:F,uiSchema:C,registry:m}),Se={description:N.jsx(S,{id:xn(z),description:W,schema:F,uiSchema:C,registry:m}),rawDescription:W,help:ue,rawHelp:typeof K=="string"?K:void 0,errors:ye,rawErrors:P?void 0:$,fieldPathId:r,id:z,label:R,hidden:ie,onChange:s,onKeyRename:l,onKeyRenameBlur:u,onRemoveProperty:c,required:f,disabled:J,readonly:Y,hideError:P,displayLabel:B,classNames:re.join(" ").trim(),style:x.style,formData:a,schema:F,uiSchema:C,registry:m};return N.jsx(_,{...Se,children:N.jsxs(N.Fragment,{children:[X,D&&N.jsx(D,{name:o,disabled:J,readonly:Y,hideError:P,errorSchema:n,formData:a,fieldPathId:r,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:L,registry:m,required:f,schema:F,uiSchema:C})]})})}const h2=V.memo(p2,(e,t)=>{const{experimental_componentUpdateStrategy:r="customDeep"}=t.registry.globalFormOptions;return r==="always"?!1:r==="shallow"?lf(e,t):Ue(e,t)});function g2(e){const{schema:t,name:r,uiSchema:i,fieldPathId:a,formData:n,required:o,disabled:s=!1,readonly:l=!1,autofocus:u=!1,onChange:c,onBlur:f,onFocus:m,registry:d,rawErrors:p,hideError:k,title:v}=e,{title:g,format:b}=t,{widgets:w,schemaUtils:E,globalUiOptions:h}=d,y=E.isSelect(t)?oi(t,i):void 0;let C=y?"select":"text";b&&ID(t,b,w)&&(C=b);const{widget:x=C,placeholder:_="",title:S,...A}=me(i),O=E.getDisplayLabel(t,i,h),F=S??v??g??r,T=Vr(t,x,w),M=V.useCallback((q,J,Y)=>c(q,a.path,J,Y),[c,a]);return N.jsx(T,{options:{...A,enumOptions:y},schema:t,uiSchema:i,id:a.$id,name:r,label:F,hideLabel:!O,hideError:k,value:n,onChange:M,onBlur:f,onFocus:m,required:o,disabled:s,readonly:l,autofocus:u,registry:d,placeholder:_,rawErrors:p,htmlName:a.name})}function y2(){return{AnyOfField:gv,ArrayField:sM,BooleanField:lM,CyclicSchemaField:uM,FallbackField:mM,LayoutGridField:mf,LayoutHeaderField:DM,LayoutMultiSchemaField:MM,NumberField:RM,ObjectField:c2,OneOfField:gv,OptionalDataControlsField:f2,SchemaField:h2,StringField:g2,NullField:jM}}function v2(e){const{fieldPathId:t,description:r,registry:i,schema:a,uiSchema:n}=e,o=me(n,i.globalUiOptions),{label:s=!0}=o;if(!r||!s)return null;const l=ge("DescriptionFieldTemplate",i,o);return N.jsx(l,{id:xn(t),description:r,schema:a,uiSchema:n,registry:i})}function b2(e){const{disabled:t,hasCopy:r,hasMoveDown:i,hasMoveUp:a,hasRemove:n,fieldPathId:o,onCopyItem:s,onRemoveItem:l,onMoveDownItem:u,onMoveUpItem:c,readonly:f,registry:m,uiSchema:d}=e,{CopyButton:p,MoveDownButton:k,MoveUpButton:v,RemoveButton:g}=m.templates.ButtonTemplates;return N.jsxs(N.Fragment,{children:[(a||i)&&N.jsx(v,{id:rr(o,"moveUp"),className:"rjsf-array-item-move-up",disabled:t||f||!a,onClick:c,uiSchema:d,registry:m}),(a||i)&&N.jsx(k,{id:rr(o,"moveDown"),className:"rjsf-array-item-move-down",disabled:t||f||!i,onClick:u,uiSchema:d,registry:m}),r&&N.jsx(p,{id:rr(o,"copy"),className:"rjsf-array-item-copy",disabled:t||f,onClick:s,uiSchema:d,registry:m}),n&&N.jsx(g,{id:rr(o,"remove"),className:"rjsf-array-item-remove",disabled:t||f,onClick:l,uiSchema:d,registry:m})]})}function k2(e){const{children:t,className:r,buttonsProps:i,displayLabel:a,hasDescription:n,hasToolbar:o,registry:s,uiSchema:l}=e,u=me(l),c=ge("ArrayFieldItemButtonsTemplate",s,u),f={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"},m=n?31:9,d={display:"flex",alignItems:a?"center":"baseline"},p={display:"flex",justifyContent:"flex-end",marginTop:a?`${m}px`:0};return N.jsxs("div",{className:r,style:d,children:[N.jsx("div",{className:o?"col-xs-9 col-md-10 col-xl-11":"col-xs-12",children:t}),o&&N.jsx("div",{className:"col-xs-3 col-md-2 col-xl-1 array-item-toolbox",children:N.jsx("div",{className:"btn-group",style:p,children:N.jsx(c,{...i,style:f})})})]})}function w2(e){const{canAdd:t,className:r,disabled:i,fieldPathId:a,uiSchema:n,items:o,optionalDataControl:s,onAddClick:l,readonly:u,registry:c,required:f,schema:m,title:d}=e,p=me(n),k=ge("ArrayFieldDescriptionTemplate",c,p),v=ge("ArrayFieldTitleTemplate",c,p),g=!u&&!i,{ButtonTemplates:{AddButton:b}}=c.templates;return N.jsxs("fieldset",{className:r,id:a.$id,children:[N.jsx(v,{fieldPathId:a,title:p.title||d,required:f,schema:m,uiSchema:n,registry:c,optionalDataControl:g?s:void 0}),N.jsx(k,{fieldPathId:a,description:p.description||m.description,schema:m,uiSchema:n,registry:c}),g?void 0:s,N.jsx("div",{className:"row array-item-list",children:o}),t&&N.jsx(b,{id:rr(a,"add"),className:"rjsf-array-item-add",onClick:l,disabled:i||u,uiSchema:n,registry:c})]})}function S2(e){const{fieldPathId:t,title:r,schema:i,uiSchema:a,required:n,registry:o,optionalDataControl:s}=e,l=me(a,o.globalUiOptions),{label:u=!0}=l;if(!r||!u)return null;const c=ge("TitleFieldTemplate",o,l);return N.jsx(c,{id:ys(t),title:r,required:n,schema:i,uiSchema:a,registry:o,optionalDataControl:s})}function C2(e){const{id:t,schema:r}=e,{examples:i,default:a}=r;return Array.isArray(i)?N.jsx("datalist",{id:rf(t),children:i.concat(a!==void 0&&!i.map(String).includes(String(a))?[a]:[]).map(n=>N.jsx("option",{value:n},String(n)))},`datalist_${t}`):null}function E2(e){const{id:t,name:r,htmlName:i,value:a,readonly:n,disabled:o,autofocus:s,onBlur:l,onFocus:u,onChange:c,onChangeOverride:f,options:m,schema:d,uiSchema:p,registry:k,rawErrors:v,type:g,hideLabel:b,hideError:w,...E}=e,{ClearButton:h}=k.templates.ButtonTemplates;if(!t)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const y={...E,...SD(d,g,m)};let C;y.type==="number"||y.type==="integer"?C=a||a===0?a:"":C=a??"";const x=V.useCallback(({target:{value:O}})=>c(O===""?m.emptyValue:O),[c,m]),_=V.useCallback(({target:O})=>l(t,O==null?void 0:O.value),[l,t]),S=V.useCallback(({target:O})=>u(t,O==null?void 0:O.value),[u,t]),A=V.useCallback(O=>{O.preventDefault(),O.stopPropagation(),c(m.emptyValue??"")},[c,m.emptyValue]);return N.jsxs(N.Fragment,{children:[N.jsx("input",{id:t,name:i||t,className:"form-control",readOnly:n,disabled:o,autoFocus:s,value:C,...y,list:d.examples?rf(t):void 0,onChange:f||x,onBlur:_,onFocus:S,"aria-describedby":xr(t,!!d.examples)}),m.allowClearTextInputs&&!n&&!o&&C&&N.jsx(h,{registry:k,onClick:A}),N.jsx(C2,{id:t,schema:d})]})}function A2(e){const{iconType:t="default",icon:r,className:i,uiSchema:a,registry:n,...o}=e;return N.jsx("button",{type:"button",className:`btn btn-${t} ${i}`,...o,children:N.jsx("i",{className:`glyphicon glyphicon-${r}`})})}const Ln=V.memo(A2);function x2(e){const{registry:{translateString:t}}=e;return N.jsx(Ln,{title:t(Oe.CopyButton),...e,icon:"copy"})}const O2=V.memo(x2);function _2(e){const{registry:{translateString:t}}=e;return N.jsx(Ln,{title:t(Oe.MoveDownButton),...e,icon:"arrow-down"})}const P2=V.memo(_2);function I2(e){const{registry:{translateString:t}}=e;return N.jsx(Ln,{title:t(Oe.MoveUpButton),...e,icon:"arrow-up"})}const T2=V.memo(I2);function N2(e){const{registry:{translateString:t}}=e;return N.jsx(Ln,{title:t(Oe.RemoveButton),...e,iconType:"danger",icon:"remove"})}const F2=V.memo(N2);function D2({id:e,className:t,onClick:r,disabled:i,registry:a,...n}){const{translateString:o}=a;return N.jsx(Ln,{id:e,iconType:"default",icon:"remove",className:"btn-clear col-xs-12",title:o(Oe.ClearButton),onClick:r,disabled:i,registry:a,...n})}const M2=V.memo(D2);function j2({id:e,className:t,onClick:r,disabled:i,registry:a}){const{translateString:n}=a;return N.jsx("div",{className:"row",children:N.jsx("p",{className:`col-xs-4 col-sm-2 col-lg-1 col-xs-offset-8 col-sm-offset-10 col-lg-offset-11 text-right ${t}`,children:N.jsx(Ln,{id:e,iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:n(Oe.AddButton),onClick:r,disabled:i,registry:a})})})}function L2({uiSchema:e}){const{submitText:t,norender:r,props:i={}}=Wy(e);return r?null:N.jsx("div",{children:N.jsx("button",{type:"submit",...i,className:`btn btn-info ${i.className||""}`,children:t})})}function q2(){return{SubmitButton:L2,AddButton:j2,CopyButton:O2,MoveDownButton:P2,MoveUpButton:T2,RemoveButton:F2,ClearButton:M2}}function R2(e){const{name:t,fieldPathId:r,registry:i,onExpand:a}=e,{translateString:n}=i,o=`${r[tt]}-button`;return N.jsxs("div",{style:{marginTop:"1rem"},children:[N.jsx("div",{className:"text-danger",children:n(Oe.CycleDetected,[t])}),N.jsxs("div",{children:[N.jsx("button",{id:o,type:"button",className:"btn btn-sm btn-warning",onClick:()=>a(r[tt]),children:n(Oe.ExpandButton)})," "]})]})}const fb=Qc();function db({description:e,registry:t,uiSchema:r={}}){const{globalUiOptions:i}=t;return me(r,i).enableMarkdownInDescription&&typeof e=="string"?N.jsx(uo,{options:{disableParsingRawHTML:!0},"data-testid":fb.markdown,children:e}):e}db.TEST_IDS=fb;function z2(e){const{id:t,description:r,registry:i,uiSchema:a}=e;return r?N.jsx("div",{id:t,className:"field-description",children:N.jsx(db,{description:r,registry:i,uiSchema:a})}):null}function $2({errors:e,registry:t}){const{translateString:r}=t;return N.jsxs("div",{className:"panel panel-danger errors",children:[N.jsx("div",{className:"panel-heading",children:N.jsx("h3",{className:"panel-title",children:r(Oe.ErrorsLabel)})}),N.jsx("ul",{className:"list-group",children:e.map((i,a)=>N.jsx("li",{className:"list-group-item text-danger",children:i.stack},a))})]})}function U2(e){const{schema:t,registry:r,typeSelector:i,schemaField:a}=e,n=ge("MultiSchemaFieldTemplate",r);return N.jsx(n,{selector:i,optionSchemaField:a,schema:t,registry:r})}function B2(e){const{errors:t=[],fieldPathId:r}=e;if(t.length===0)return null;const i=tf(r);return N.jsx("div",{children:N.jsx("ul",{id:i,className:"error-detail bs-callout bs-callout-info",children:t.filter(a=>!!a).map((a,n)=>N.jsx("li",{className:"text-danger",children:a},n))})})}const mb=Qc();function pb({help:e,registry:t,uiSchema:r={}}){const{globalUiOptions:i}=t;return me(r,i).enableMarkdownInHelp&&typeof e=="string"?N.jsx(uo,{options:{disableParsingRawHTML:!0},"data-testid":mb.markdown,children:e}):e}pb.TEST_IDS=mb;function V2(e){const{fieldPathId:t,help:r,uiSchema:i,registry:a}=e;return r?N.jsx("div",{id:nf(t),className:"help-block",children:N.jsx(pb,{help:r,registry:a,uiSchema:i})}):null}const H2="*";function hb(e){const{label:t,required:r,id:i}=e;return t?N.jsxs("label",{className:"control-label",htmlFor:i,children:[t,r&&N.jsx("span",{className:"required",children:H2})]}):null}function K2(e){const{id:t,label:r,children:i,errors:a,help:n,description:o,hidden:s,required:l,displayLabel:u,registry:c,uiSchema:f}=e,m=me(f),d=ge("WrapIfAdditionalTemplate",c,m);if(s)return N.jsx("div",{className:"hidden",children:i});const p=m.widget==="checkbox";return N.jsxs(d,{...e,children:[u&&!p&&N.jsx(hb,{label:r,required:l,id:t}),u&&o?o:null,i,a,n]})}function W2(e){const{children:t,column:r,className:i,...a}=e;return N.jsx("div",{className:i,...a,children:t})}function G2(e){const{selector:t,optionSchemaField:r}=e;return N.jsxs("div",{className:"panel panel-default panel-body",children:[N.jsx("div",{className:"form-group",children:t}),r]})}function J2(e){const{className:t,description:r,disabled:i,formData:a,fieldPathId:n,onAddProperty:o,optionalDataControl:s,properties:l,readonly:u,registry:c,required:f,schema:m,title:d,uiSchema:p}=e,k=me(p),v=ge("TitleFieldTemplate",c,k),g=ge("DescriptionFieldTemplate",c,k);if((m.oneOf||m.anyOf)&&!m.properties&&l.length===0)return null;const w=!u&&!i,{ButtonTemplates:{AddButton:E}}=c.templates;return N.jsxs("fieldset",{className:t,id:n.$id,children:[d&&N.jsx(v,{id:ys(n),title:d,required:f,schema:m,uiSchema:p,registry:c,optionalDataControl:w?s:void 0}),r&&N.jsx(g,{id:xn(n),description:r,schema:m,uiSchema:p,registry:c}),w?void 0:s,l.map(h=>h.content),Eh(m,p,a)&&N.jsx(E,{id:rr(n,"add"),className:"rjsf-object-property-expand",onClick:o,disabled:i||u,uiSchema:p,registry:c})]})}function Y2(e){const{id:t,registry:r,label:i,onAddClick:a,onRemoveClick:n}=e;return a?N.jsx(Ln,{id:t,registry:r,icon:"plus",className:"rjsf-add-optional-data btn-sm",onClick:a,title:i}):n?N.jsx(Ln,{id:t,registry:r,icon:"remove",className:"rjsf-remove-optional-data btn-sm",onClick:n,title:i}):N.jsx("em",{id:t,children:i})}const X2="*";function Z2(e){const{id:t,title:r,required:i,optionalDataControl:a}=e;return N.jsxs("legend",{id:t,children:[r,i&&N.jsx("span",{className:"required",children:X2}),a&&N.jsx("span",{className:"pull-right",style:{marginBottom:"2px"},children:a})]})}function Q2(e){const{schema:t,fieldPathId:r,reason:i,registry:a}=e,{translateString:n}=a;let o=Oe.UnsupportedField;const s=[];return r!=null&&r.$id&&(o=Oe.UnsupportedFieldWithId,s.push(r.$id)),i&&(o=o===Oe.UnsupportedField?Oe.UnsupportedFieldWithReason:Oe.UnsupportedFieldWithIdAndReason,s.push(i)),N.jsxs("div",{className:"unsupported-field",children:[N.jsx("p",{children:N.jsx(uo,{options:{disableParsingRawHTML:!0},children:n(o,s)})}),t&&N.jsx("pre",{children:JSON.stringify(t,null,2)})]})}function eL(e){const{id:t,classNames:r,style:i,disabled:a,displayLabel:n,label:o,onKeyRenameBlur:s,onRemoveProperty:l,rawDescription:u,readonly:c,required:f,schema:m,hideError:d,rawErrors:p,children:k,uiSchema:v,registry:g}=e,{templates:b,translateString:w}=g,{RemoveButton:E}=b.ButtonTemplates,h=w(Oe.KeyLabel,[o]),y=hn in m,C=!!u,x=["form-group",r];!d&&p&&p.length>0&&x.push("has-error has-danger");const _=x.join(" ").trim();if(!y)return N.jsx("div",{className:_,style:i,children:k});const S=C?46:26;return N.jsx("div",{className:_,style:i,children:N.jsxs("div",{className:"row",children:[N.jsx("div",{className:"col-xs-5 form-additional",children:N.jsxs("div",{className:"form-group",children:[n&&N.jsx(hb,{label:h,required:f,id:`${t}-key`}),n&&u&&N.jsx("div",{children:" "}),N.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:s,defaultValue:o},o)]})}),N.jsx("div",{className:"form-additional form-group col-xs-5",children:k}),N.jsx("div",{className:"col-xs-2",style:{marginTop:n?`${S}px`:void 0},children:N.jsx(E,{id:rr(t,"remove"),className:"rjsf-object-property-remove btn-block",style:{border:"0"},disabled:a||c,onClick:l,uiSchema:v,registry:g})})]})})}function tL(){return{ArrayFieldDescriptionTemplate:v2,ArrayFieldItemTemplate:k2,ArrayFieldItemButtonsTemplate:b2,ArrayFieldTemplate:w2,ArrayFieldTitleTemplate:S2,ButtonTemplates:q2(),BaseInputTemplate:E2,CyclicSchemaExpandTemplate:R2,DescriptionFieldTemplate:z2,ErrorListTemplate:$2,FallbackFieldTemplate:U2,FieldTemplate:K2,FieldErrorTemplate:B2,FieldHelpTemplate:V2,GridTemplate:W2,MultiSchemaFieldTemplate:G2,ObjectFieldTemplate:J2,OptionalDataControlsTemplate:Y2,TitleFieldTemplate:Z2,UnsupportedFieldTemplate:Q2,WrapIfAdditionalTemplate:eL}}function rL({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return N.jsx(r,{time:e,...t})}function nL(e){const{disabled:t=!1,readonly:r=!1,autofocus:i=!1,options:a,id:n,name:o,registry:s,onBlur:l,onFocus:u}=e,{translateString:c}=s,{elements:f,handleChange:m,handleClear:d,handleSetNow:p}=UD(e);return N.jsxs("ul",{className:"list-inline",children:[f.map((k,v)=>N.jsx("li",{className:"list-inline-item",children:N.jsx($D,{rootId:n,name:o,select:m,...k,disabled:t,readonly:r,registry:s,onBlur:l,onFocus:u,autofocus:i&&v===0})},v)),(a.hideNowButton!=="undefined"?!a.hideNowButton:!0)&&N.jsx("li",{className:"list-inline-item",children:N.jsx("button",{type:"button",className:"btn btn-info btn-now",onClick:p,children:c(Oe.NowLabel)})}),(a.hideClearButton!=="undefined"?!a.hideClearButton:!0)&&N.jsx("li",{className:"list-inline-item",children:N.jsx("button",{type:"button",className:"btn btn-warning btn-clear",onClick:d,children:c(Oe.ClearLabel)})})]})}function iL({id:e,disabled:t,options:r,value:i,autofocus:a=!1,readonly:n,onChange:o,onBlur:s,onFocus:l,htmlName:u}){const{inline:c=!1,enumOptions:f,enumDisabled:m,emptyValue:d}=r,p=eo(r),k=Array.isArray(i)?i:[i],v=V.useCallback(({target:b})=>s(e,Ar(b==null?void 0:b.value,f,p,d)),[s,e,f,d,p]),g=V.useCallback(({target:b})=>l(e,Ar(b==null?void 0:b.value,f,p,d)),[l,e,f,d,p]);return N.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(f)&&f.map((b,w)=>{const E=Gi(b.value,k),h=Array.isArray(m)&&m.includes(b.value),y=t||h||n?"disabled":"",C=_=>{_.target.checked?o(Uy(w,k,f)):o(zy(w,k,f))},x=N.jsxs("span",{children:[N.jsx("input",{type:"checkbox",id:vs(e,w),name:u||e,checked:E,value:Qa(b.value,w,p),disabled:t||h||n,autoFocus:a&&w===0,onChange:C,onBlur:v,onFocus:g,"aria-describedby":xr(e)}),N.jsx("span",{children:b.label})]});return c?N.jsx("label",{className:`checkbox-inline ${y}`,children:x},String(b.value)):N.jsx("div",{className:`checkbox ${y}`,children:N.jsx("label",{children:x})},String(b.value))})})}function aL({schema:e,uiSchema:t,options:r,id:i,value:a,disabled:n,readonly:o,label:s,hideLabel:l,autofocus:u=!1,onBlur:c,onFocus:f,onChange:m,registry:d,htmlName:p}){const k=ge("DescriptionFieldTemplate",d,r),v=to(e),g=V.useCallback(C=>m(C.target.checked),[m]),b=V.useCallback(C=>c(i,C.target.checked),[c,i]),w=V.useCallback(C=>f(i,C.target.checked),[f,i]),y=me(t).widget==="checkbox"?void 0:r.description??e.description;return N.jsxs("div",{className:`checkbox ${n||o?"disabled":""}`,children:[!l&&y&&N.jsx(k,{id:xn(i),description:y,schema:e,uiSchema:t,registry:d}),N.jsxs("label",{children:[N.jsx("input",{type:"checkbox",id:i,name:p||i,checked:typeof a>"u"?!1:a,required:v,disabled:n||o,autoFocus:u,onChange:g,onBlur:b,onFocus:w,"aria-describedby":xr(i)}),ND(N.jsx("span",{children:s}),l)]})]})}function oL(e){const{disabled:t,readonly:r,options:i,registry:a}=e,n=ge("BaseInputTemplate",a,i);return N.jsx(n,{type:"color",...e,disabled:t||r})}function sL(e){const{onChange:t,value:r,options:i,registry:a}=e,n=ge("BaseInputTemplate",a,i);return N.jsx(n,{type:"datetime-local",...e,value:WD(r),onChange:o=>t(FD(o))})}function lL(e){const{onChange:t,options:r,registry:i}=e,a=ge("BaseInputTemplate",i,r),n=V.useCallback(o=>t(o||void 0),[t]);return N.jsx(a,{type:"date",...e,onChange:n})}function uL(e){const{options:t,registry:r}=e,i=ge("BaseInputTemplate",r,t);return N.jsx(i,{type:"email",...e})}function cL({fileInfo:e,registry:t}){const{translateString:r}=t,{dataURL:i,type:a,name:n}=e;if(!i)return null;const o=r(Oe.PreviewLabel);return["image/jpeg","image/png"].includes(a)?N.jsx("img",{src:i,alt:o,style:{maxWidth:"100%"},className:"file-preview"}):N.jsxs(N.Fragment,{children:[" ",N.jsx("a",{download:`preview-${n}`,href:i,className:"file-download",children:o})]})}function fL({filesInfo:e,registry:t,preview:r,onRemove:i,options:a}){if(e.length===0)return null;const{translateString:n}=t,{RemoveButton:o}=ge("ButtonTemplates",t,a);return N.jsx("ul",{className:"file-info",children:e.map((s,l)=>{const{name:u,size:c,type:f}=s,m=()=>i(l);return N.jsxs("li",{children:[N.jsx(uo,{children:n(Oe.FilesInfo,[u,f,String(c)])}),r&&N.jsx(cL,{fileInfo:s,registry:t}),N.jsx(o,{onClick:m,registry:t})]},l)})})}function dL(e){const{disabled:t,readonly:r,required:i,multiple:a,onChange:n,value:o,options:s,registry:l}=e,{filesInfo:u,handleChange:c,handleRemove:f}=KD(o,n,a),m=ge("BaseInputTemplate",l,s),d=p=>{p.target.files&&c(p.target.files)};return N.jsxs("div",{children:[N.jsx(m,{...e,disabled:t||r,type:"file",required:o?!1:i,onChangeOverride:d,value:"",accept:s.accept?String(s.accept):void 0}),N.jsx(fL,{filesInfo:u,onRemove:f,registry:l,preview:s.filePreview,options:s})]})}function mL({id:e,value:t,htmlName:r}){return N.jsx("input",{type:"hidden",id:e,name:r||e,value:typeof t>"u"?"":t})}function pL(e){const{options:t,registry:r}=e,i=ge("BaseInputTemplate",r,t);return N.jsx(i,{type:"password",...e})}function hL({options:e,value:t,required:r,disabled:i,readonly:a,autofocus:n=!1,onBlur:o,onFocus:s,onChange:l,id:u,htmlName:c}){const{enumOptions:f,enumDisabled:m,inline:d,emptyValue:p}=e,k=eo(e),v=V.useCallback(({target:b})=>o(u,Ar(b==null?void 0:b.value,f,k,p)),[o,f,p,u,k]),g=V.useCallback(({target:b})=>s(u,Ar(b==null?void 0:b.value,f,k,p)),[s,f,p,u,k]);return N.jsx("div",{className:"field-radio-group",id:u,role:"radiogroup",children:Array.isArray(f)&&f.map((b,w)=>{const E=Gi(b.value,t),h=Array.isArray(m)&&m.includes(b.value),y=i||h||a?"disabled":"",C=()=>l(b.value),x=N.jsxs("span",{children:[N.jsx("input",{type:"radio",id:vs(u,w),checked:E,name:c||u,required:r,value:Qa(b.value,w,k),disabled:i||h||a,autoFocus:n&&w===0,onChange:C,onBlur:v,onFocus:g,"aria-describedby":xr(u)}),N.jsx("span",{children:b.label})]});return d?N.jsx("label",{className:`radio-inline ${y}`,children:x},String(b.value)):N.jsx("div",{className:`radio ${y}`,children:N.jsx("label",{children:x})},String(b.value))})})}function gL(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return N.jsxs("div",{className:"field-range-wrapper",children:[N.jsx(r,{type:"range",...e}),N.jsx("span",{className:"range-view",children:t})]})}function yL({id:e,value:t,required:r,disabled:i,readonly:a,autofocus:n,onChange:o,onFocus:s,onBlur:l,schema:u,options:c,htmlName:f}){const{stars:m=5,shape:d="star"}=c,p=u.maximum?Math.min(u.maximum,5):Math.min(Math.max(m,1),5),k=u.minimum||0,v=V.useCallback(E=>{!i&&!a&&o(E)},[o,i,a]),g=V.useCallback(E=>{if(s){const h=Number(E.target.dataset.value);s(e,h)}},[s,e]),b=V.useCallback(E=>{if(l){const h=Number(E.target.dataset.value);l(e,h)}},[l,e]),w=E=>d==="heart"?E?"♥":"♡":E?"★":"☆";return N.jsxs("div",{className:"rating-widget",style:{display:"inline-flex",fontSize:"1.5rem",cursor:i||a?"default":"pointer"},children:[[...Array(p)].map((E,h)=>{const y=k+h,C=y<=t;return N.jsx("span",{onClick:()=>v(y),onKeyDown:x=>(x.key==="Enter"||x.key===" ")&&v(y),onFocus:g,onBlur:b,"data-value":y,tabIndex:i||a?-1:0,role:"radio","aria-checked":y===t,"aria-label":`${y} ${d==="heart"?"heart":"star"}${y===1?"":"s"}`,style:{color:C?"#FFD700":"#ccc",padding:"0 0.2rem",transition:"color 0.2s",userSelect:"none"},children:w(C)},h)}),N.jsx("input",{type:"hidden",id:e,name:f||e,value:t||"",required:r,disabled:i||a,"aria-hidden":"true"})]})}function Uf(e,t){return t?Array.from(e.target.options).slice().filter(r=>r.selected).map(r=>r.value):e.target.value}function vL({schema:e,id:t,options:r,value:i,required:a,disabled:n,readonly:o,multiple:s=!1,autofocus:l=!1,onChange:u,onBlur:c,onFocus:f,placeholder:m,htmlName:d,registry:p,uiSchema:k}){const{enumOptions:v,enumDisabled:g,emptyValue:b}=r,w=s?[]:"",E=eo(r),h=V.useCallback(S=>{const A=Uf(S,s);return f(t,Ar(A,v,E,b))},[f,t,s,v,b,E]),y=V.useCallback(S=>{const A=Uf(S,s);return c(t,Ar(A,v,E,b))},[c,t,s,v,b,E]),C=V.useCallback(S=>{const A=Uf(S,s);return u(Ar(A,v,E,b))},[u,s,v,b,E]),x=dD(i,v,s,E,w),_=!s&&e.default===void 0;return DD(t,e,v,s),N.jsxs(N.Fragment,{children:[N.jsx(LD,{id:t,multiple:s,options:r,registry:p,uiSchema:k,value:i}),N.jsxs("select",{id:t,name:d||t,multiple:s,className:"form-control",value:x,required:a,disabled:n||o,autoFocus:l,onBlur:y,onFocus:h,onChange:C,"aria-describedby":xr(t),children:[_&&N.jsx("option",{value:"",children:m}),Array.isArray(v)&&v.map(({value:S,label:A},O)=>{const F=g&&g.includes(S);return N.jsx("option",{value:Qa(S,O,E),disabled:F,children:A},String(S))})]})]})}function bL({id:e,options:t,placeholder:r,value:i,required:a,disabled:n,readonly:o,autofocus:s=!1,onChange:l,onBlur:u,onFocus:c,htmlName:f}){const m=V.useCallback(({target:{value:k}})=>l(k===""?t.emptyValue:k),[l,t.emptyValue]),d=V.useCallback(({target:k})=>u(e,k==null?void 0:k.value),[u,e]),p=V.useCallback(({target:k})=>c(e,k==null?void 0:k.value),[e,c]);return N.jsx("textarea",{id:e,name:f||e,className:"form-control",value:i||"",placeholder:r,required:a,disabled:n,readOnly:o,autoFocus:s,rows:t.rows,onBlur:d,onFocus:p,onChange:m,"aria-describedby":xr(e)})}function kL(e){const{options:t,registry:r}=e,i=ge("BaseInputTemplate",r,t);return N.jsx(i,{...e})}function wL(e){const{onChange:t,options:r,registry:i}=e,a=ge("BaseInputTemplate",i,r),n=V.useCallback(o=>t(o?`${o}:00`:void 0),[t]);return N.jsx(a,{type:"time",...e,onChange:n})}function SL(e){const{options:t,registry:r}=e,i=ge("BaseInputTemplate",r,t);return N.jsx(i,{type:"number",...e})}function CL(e){const{options:t,registry:r}=e,i=ge("BaseInputTemplate",r,t);return N.jsx(i,{type:"url",...e})}function EL(){return{AltDateWidget:nL,AltDateTimeWidget:rL,CheckboxWidget:aL,CheckboxesWidget:iL,ColorWidget:oL,DateWidget:lL,DateTimeWidget:sL,EmailWidget:uL,FileWidget:dL,HiddenWidget:mL,PasswordWidget:pL,RadioWidget:hL,RangeWidget:gL,RatingWidget:yL,SelectWidget:vL,TextWidget:kL,TextareaWidget:bL,TimeWidget:wL,UpDownWidget:SL,URLWidget:CL}}function AL(){return{fields:y2(),templates:tL(),widgets:EL(),rootSchema:{},formContext:{},translateString:fD,globalFormOptions:{idPrefix:bh,idSeparator:kh,useFallbackUiForUnsupportedType:!1}}}function oa(e,t){return{...jy(e,["schema","uiSchema","fieldPathId","schemaUtils","formData","edit","errors","errorSchema"]),...t!==void 0&&{status:t}}}let xL=class Ei extends V.Component{constructor(r){super(r);Jt(this,"formElement");Jt(this,"pendingChanges",[]);Jt(this,"isProcessingUserChange",!1);Jt(this,"getUsedFormData",(r,i)=>tD(r,i));Jt(this,"getFieldNames",(r,i)=>rD(r,i));Jt(this,"omitExtraData",r=>{const{schema:i,schemaUtils:a}=this.state;return a.omitExtraData(i,r)});Jt(this,"setFieldValue",(r,i)=>{const{registry:a}=this.state,n=Array.isArray(r)?r:r.split("."),o=Or("",a.globalFormOptions,n);this.onChange(i,n,void 0,o[tt])});Jt(this,"onChange",(r,i,a,n)=>{this.pendingChanges.push({newValue:r,path:i,newErrorSchema:a,id:n}),this.pendingChanges.length===1&&this.processPendingChange()});Jt(this,"reset",()=>{const{formData:r,initialFormData:i=lb,onChange:a}=this.props,s={formData:this.getStateFromProps(this.props,r??i,void 0,void 0,void 0,!0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{},initialDefaultsGenerated:!1,customErrors:void 0};this.setState(s,()=>a==null?void 0:a(oa({...this.state,...s})))});Jt(this,"onBlur",(r,i)=>{const{onBlur:a,omitExtraData:n,liveOmit:o,liveValidate:s}=this.props;if(a&&a(r,i),n===!0&&o==="onBlur"||s==="onBlur"){const{onChange:l,extraErrors:u}=this.props,{formData:c}=this.state;let f=c,m={formData:f};if(n===!0&&o==="onBlur"&&(f=this.omitExtraData(c),m={formData:f}),s==="onBlur"){const{schema:p,schemaUtils:k,errorSchema:v,customErrors:g,retrievedSchema:b}=this.state,w=this.liveValidate(p,k,v,f,u,g,b);m={formData:f,...w,customErrors:g}}const d=Object.keys(m).filter(p=>!p.startsWith("schemaValidation")).some(p=>{const k=ae(this.state,p),v=ae(m,p);return!Ue(k,v)});this.setState(m,()=>{l&&d&&l(oa({...this.state,...m}),r)})}});Jt(this,"onFocus",(r,i)=>{const{onFocus:a}=this.props;a&&a(r,i)});Jt(this,"onSubmit",r=>{if(r.preventDefault(),r.target!==r.currentTarget)return;r.persist();const{omitExtraData:i,extraErrors:a,noValidate:n,onSubmit:o}=this.props;let{formData:s}=this.state;if(i===!0&&(s=this.omitExtraData(s)),n||this.validateFormWithFormData(s)){const l=a||{},u=a?uf(a):[];this.setState({formData:s,errors:u,errorSchema:l,schemaValidationErrors:[],schemaValidationErrorSchema:{}},()=>{o&&o(oa({...this.state,formData:s},"submitted"),r)})}});Jt(this,"submit",()=>{if(this.formElement.current){const r=new CustomEvent("submit",{cancelable:!0});r.preventDefault(),this.formElement.current.dispatchEvent(r),this.formElement.current.requestSubmit()}});Jt(this,"validateFormWithFormData",r=>{const{extraErrors:i,extraErrorsBlockSubmit:a,focusOnFirstError:n,onError:o}=this.props,{errors:s}=this.state,l=this.validate(r),{errors:u,errorSchema:c}=i?Ei.mergeErrors(l,i):l,f=l.errors.length>0||i&&a;return f?(n&&(typeof n=="function"?n(u[0]):this.focusOnError(u[0])),this.setState({errors:u,errorSchema:c,schemaValidationErrors:l.errors,schemaValidationErrorSchema:l.errorSchema},()=>{o?o(u):console.error("Form validation failed",u)})):u.length>0?this.setState({errors:u,errorSchema:c,schemaValidationErrors:[],schemaValidationErrorSchema:{}}):s.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}}),!f});if(!r.validator)throw new Error("A validator is required for Form functionality to work");const{formData:i,initialFormData:a,onChange:n}=r,o=i??a;this.state={...this.getStateFromProps(r,o,void 0,void 0,void 0,!0),prevExtraErrors:r.extraErrors},n&&!Ue(this.state.formData,o)&&n(oa(this.state)),this.formElement=V.createRef()}static getDerivedStateFromProps(r,i){if(r.extraErrors!==i.prevExtraErrors){const a={errors:i.schemaValidationErrors||[],errorSchema:i.schemaValidationErrorSchema||{}};let{errors:n,errorSchema:o}=a;return r.extraErrors&&({errors:n,errorSchema:o}=no(a,r.extraErrors)),i.customErrors&&({errors:n,errorSchema:o}=no({errors:n,errorSchema:o},i.customErrors.ErrorSchema,!0)),{prevExtraErrors:r.extraErrors,errors:n,errorSchema:o}}return null}getSnapshotBeforeUpdate(r,i){if(!Ue(this.props,r)){const a=Hy(this.props.formData,r.formData),n=Hy(this.props.formData,this.state.formData),o=!Ue(r.schema,this.props.schema),s=a.length>0||!Ue(r.formData,this.props.formData),l=n.length>0||!Ue(this.state.formData,this.props.formData),u=this.getStateFromProps(this.props,this.props.formData,o||s?void 0:this.state.retrievedSchema,o,a,!l),c=!Ue(u,i);return{nextState:u,shouldUpdate:c}}return{shouldUpdate:!1}}componentDidUpdate(r,i,a){if(a.shouldUpdate){const{nextState:n}=a,o=!Ue(n.formData,this.props.formData),s=this.isProcessingUserChange;if(this.isProcessingUserChange=!1,s&&o)return;o&&!Ue(n.formData,i.formData)&&this.props.onChange&&this.props.onChange(oa(n)),this.setState(n)}}getStateFromProps(r,i,a,n=!1,o=[],s=!1,l=!1){var Q;const u=this.state||{},c="schema"in r?r.schema:this.props.schema,f="validator"in r?r.validator:this.props.validator,m=("uiSchema"in r?r.uiSchema:this.props.uiSchema)||{},d=r.formData===void 0&&this.props.formData===void 0,p=typeof i<"u",k="liveValidate"in r?r.liveValidate:this.props.liveValidate,v=p&&!r.noValidate&&k,g="experimental_defaultFormStateBehavior"in r?r.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior,b="experimental_customMergeAllOf"in r?r.experimental_customMergeAllOf:this.props.experimental_customMergeAllOf;let{schemaUtils:w}=u;(!w||w.doesSchemaUtilsDiffer(f,c,g,b))&&(w=lD(f,c,g,b));const E=w.getRootSchema();let h=i;i===lb?h=void 0:i===void 0&&d&&(h=u.formData);let y,C,x=!1;const _=[];do{y=w.getDefaultFormState(E,h,!1,u.initialDefaultsGenerated);const P=l?hr({formData:y}):"";if(C=this.updateRetrievedSchema(a??w.retrieveSchema(E,y)),l&&!_.includes(P)&&!Ue(C,u.retrievedSchema)){const j=w.sanitizeDataForNewSchema(C,u.retrievedSchema,y);if(x=!Ue(j,y),x){y=j,h=j;const B=hr({formData:j});x=!_.includes(B),_.push(B)}_.push(P)}else x=!1}while(x);const S=()=>r.noValidate||n?{errors:[],errorSchema:{}}:r.liveValidate?{errors:u.errors||[],errorSchema:u.errorSchema||{}}:{errors:u.schemaValidationErrors||[],errorSchema:u.schemaValidationErrorSchema||{}};let A,O,{schemaValidationErrors:F,schemaValidationErrorSchema:T}=u;if(v&&!s){const P=this.liveValidate(E,w,u.errorSchema,y,void 0,u.customErrors,a,a!==void 0);A=P.errors,O=P.errorSchema,F=P.schemaValidationErrors,T=P.schemaValidationErrorSchema}else{const P=S();if(A=P.errors,O=P.errorSchema,o.length>0&&!v){const B=o.reduce((I,D)=>(I[D]=void 0,I),{});T=Sn(P.errorSchema,B,"preventDuplicates"),O=T}const j=Ei.mergeErrors({errorSchema:O,errors:A},r.extraErrors,u.customErrors);A=j.errors,O=j.errorSchema}const M=Ei.getRegistry(r,E,w),q=Ue(u.registry,M)?u.registry:M,J=u.fieldPathId&&((Q=u.fieldPathId)==null?void 0:Q[tt])===q.globalFormOptions.idPrefix?u.fieldPathId:Or("",q.globalFormOptions);return{schemaUtils:w,schema:E,uiSchema:m,fieldPathId:J,formData:y,edit:p,errors:A,errorSchema:O,schemaValidationErrors:F,schemaValidationErrorSchema:T,retrievedSchema:C,initialDefaultsGenerated:!0,registry:q}}shouldComponentUpdate(r,i){const{experimental_componentUpdateStrategy:a="customDeep"}=this.props;return qD(this,r,i,a)}validate(r,i=this.state.schema,a,n){const o=a||this.state.schemaUtils,{customValidate:s,transformErrors:l,uiSchema:u}=this.props,c=n??i,f=r?JSON.parse(JSON.stringify(r)):void 0;return o.getValidator().validateFormData(f,c,s,l,u)}renderErrors(r){const{errors:i,errorSchema:a,schema:n,uiSchema:o}=this.state,s=me(o),l=ge("ErrorListTemplate",r,s);return i!=null&&i.length?N.jsx(l,{errors:i,errorSchema:a||{},schema:n,uiSchema:o,registry:r}):null}static mergeErrors(r,i,a){let{errorSchema:n,errors:o}=r;if(i){const s=no(r,i);n=s.errorSchema,o=s.errors}if(a){const s=no({errors:o,errorSchema:n},a.ErrorSchema,!0);n=s.errorSchema,o=s.errors}return{errors:o,errorSchema:n}}liveValidate(r,i,a,n,o,s,l,u=!1){const c=this.validate(n,r,i,l),{errors:f}=c;let{errorSchema:m}=c;u&&(m=Sn(a,c.errorSchema,"preventDuplicates"));const d=f,p=m;return{...Ei.mergeErrors({errorSchema:m,errors:f},o,s),schemaValidationErrors:d,schemaValidationErrorSchema:p}}processPendingChange(){if(this.pendingChanges.length===0)return;this.isProcessingUserChange=!0;const{newValue:r,path:i,id:a}=this.pendingChanges[0],{newErrorSchema:n}=this.pendingChanges[0],{extraErrors:o,omitExtraData:s,liveOmit:l,noValidate:u,liveValidate:c,onChange:f,disabled:m,readonly:d}=this.props,{formData:p,schemaUtils:k,schema:v,fieldPathId:g,schemaValidationErrorSchema:b,errors:w}=this.state;let{customErrors:E,retrievedSchema:h}=this.state,y=b;const C=g.path[0]||"",x=!i||i.length===0||i.length===1&&i[0]===C;let _=x?r:hs(p);const S=be(_)&&Object.keys(_).length>0&&Object.values(_).every(q=>q===void 0),A=p==null,O=S&&A?void 0:_;if(be(_)||Array.isArray(_)){let q=!1;if(r===sb)XD(_,i);else if(!x){let Q=r;if(r===void 0)if(typeof i[i.length-1]=="number")Q=null;else{const{field:j}=k.findFieldInSchema(v,i,p),B=j;!(B&&(xe in B||je in B))&&B!==void 0&&(q=!0)}q?st(_,i,void 0):st(_,i,Q)}const J=h&&!x&&!be(r)&&!Array.isArray(r)&&!m&&!d,Y=this.getStateFromProps(this.props,O,void 0,void 0,void 0,!0,J);_=Y.formData,h=Y.retrievedSchema,q&&_&&st(_,i,void 0)}const F=!u&&(c===!0||c==="onChange");let T={formData:_,retrievedSchema:h},M=_;if(s===!0&&(l===!0||l==="onChange")&&(M=this.omitExtraData(_),T={...T,formData:M}),n){const q=x?b:ae(b,i);if(!kt(q))x?y=n:(y=hs(b),st(y,i,n));else if(E||(E=new Vy),x){const J=ae(n,Dt);J&&E.setErrors(J)}else st(E.ErrorSchema,i,n)}else E&&ae(E.ErrorSchema,[...i,Dt])&&E.clearErrors(i);if(F&&this.pendingChanges.length===1){const q=this.liveValidate(v,k,y,M,o,E,h);T={...T,formData:M,...q,customErrors:E}}else if(!u&&n){const q=Ei.mergeErrors({errorSchema:y,errors:w},o,E);T={...T,formData:M,...q,customErrors:E}}this.setState(T,()=>{f&&f(oa({...this.state,...T}),a),this.pendingChanges.shift(),this.processPendingChange()})}updateRetrievedSchema(r){var a;return Ue(r,(a=this.state)==null?void 0:a.retrievedSchema)?this.state.retrievedSchema:r}static getGlobalFormOptions(r){const{uiSchema:i={},experimental_componentUpdateStrategy:a,idSeparator:n=kh,idPrefix:o=bh,nameGenerator:s,useFallbackUiForUnsupportedType:l=!1}=r;return{idPrefix:i["ui:rootFieldId"]||o,idSeparator:n,useFallbackUiForUnsupportedType:l,...a!==void 0&&{experimental_componentUpdateStrategy:a},...s!==void 0&&{nameGenerator:s}}}static getRegistry(r,i,a){var m;const{translateString:n,uiSchema:o={}}=r,{fields:s,templates:l,widgets:u,formContext:c,translateString:f}=AL();return{fields:{...s,...r.fields},templates:{...l,...r.templates,ButtonTemplates:{...l.ButtonTemplates,...(m=r.templates)==null?void 0:m.ButtonTemplates}},widgets:{...u,...r.widgets},rootSchema:i,formContext:r.formContext||c,schemaUtils:a,translateString:n||f,globalUiOptions:o[nc],globalFormOptions:Ei.getGlobalFormOptions(r),uiSchemaDefinitions:o[bO]??{}}}focusOnError(r){const{idPrefix:i="root",idSeparator:a="_"}=this.props,{property:n}=r,o=nv(n);o[0]===""?o[0]=i:o.unshift(i);const s=o.join(a);let l=this.formElement.current.elements[s];l||(l=this.formElement.current.querySelector(`input[id^="${s}"], button[id^="${s}"]`)),l!=null&&l.length&&(l=l[0]),l&&l.focus()}validateForm(){const{omitExtraData:r}=this.props;let{formData:i}=this.state;return r===!0&&(i=this.omitExtraData(i)),this.validateFormWithFormData(i)}render(){const{children:r,id:i,className:a="",tagName:n,name:o,method:s,target:l,action:u,autoComplete:c,enctype:f,acceptCharset:m,noHtml5Validate:d=!1,disabled:p,readonly:k,showErrorList:v="top",_internalFormWrapper:g}=this.props,{schema:b,uiSchema:w,formData:E,errorSchema:h,fieldPathId:y,registry:C}=this.state,{SchemaField:x}=C.fields,{SubmitButton:_}=C.templates.ButtonTemplates,S=g?n:void 0,A=g||n||"form";let{[Vo]:O={}}=me(w);p&&(O={...O,props:{...O.props,disabled:!0}});const F={[gn]:{[Vo]:O}};return N.jsxs(A,{className:a||"rjsf",id:i,name:o,method:s,target:l,action:u,autoComplete:c,encType:f,acceptCharset:m,noValidate:d,onSubmit:this.onSubmit,as:S,ref:this.formElement,children:[v==="top"&&this.renderErrors(C),N.jsx(x,{name:"",schema:b,uiSchema:w,errorSchema:h,fieldPathId:y,formData:E,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:C,disabled:p,readonly:k}),r||N.jsx(_,{uiSchema:F,registry:C}),v==="bottom"&&this.renderErrors(C)]})}};function OL(e,t="none"){return t==="all"?e:e.reduce((r,i)=>{const{message:a,schemaPath:n}=i,o=t!=="anyOf"?n==null?void 0:n.indexOf(`/${je}/`):void 0,s=t!=="oneOf"?n==null?void 0:n.indexOf(`/${xe}/`):void 0;let l;return o&&o>=0?l=n==null?void 0:n.substring(0,o):s&&s>=0&&(l=n==null?void 0:n.substring(0,s)),(l?r.find(c=>{var f;return c.message===a&&((f=c.schemaPath)===null||f===void 0?void 0:f.startsWith(l))}):void 0)||r.push(i),r},[])}function _L(e=[],t,r,i){const a=e.map(n=>{var o;const{instancePath:s,keyword:l,params:u,schemaPath:c,parentSchema:f,...m}=n;let{message:d=""}=m,p=s.replace(/\//g,"."),k=`${p} ${d}`.trim(),v="";const g=[...((o=u.deps)===null||o===void 0?void 0:o.split(", "))||[],u.missingProperty,u.property].filter(b=>b);if(g.length>0)g.forEach(b=>{const w=p?`${p}.${b}`:b;let E=me(ae(t,w.replace(/^\./,""))).title;if(E===void 0){const h=c.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([b]);E=me(ae(t,h)).title}if(E===void 0){const h=p.replace(/^\./,"").split(".").filter(Boolean);E=ae(t,[...h,b,"title"])}if(E)d=d.replace(`'${b}'`,`'${E}'`),v=E;else{const h=ae(f,[ze,b,"title"]);if(h)d=d.replace(`'${b}'`,`'${h}'`),v=h;else if(i){const y=p.replace(/^\./,"").split(".").filter(Boolean),C=[];for(const _ of y)C.push(ze,_);C.push(ze,b,"title");const x=ae(i,C);x&&(d=d.replace(`'${b}'`,`'${x}'`),v=x)}}}),k=d;else{const b=me(ae(t,p.replace(/^\./,""))).title;if(b)k=`'${b}' ${d}`.trim(),v=b;else{const w=f==null?void 0:f.title;w&&(k=`'${w}' ${d}`.trim(),v=w)}}return"missingProperty"in u&&(p=p?`${p}.${u.missingProperty}`:u.missingProperty),{name:l,property:p,message:d,params:u,stack:k,schemaPath:c,title:v}});return OL(a,r)}function PL(e,t,r,i,a,n,o,s){const{validationError:l}=t;let u=_L(t.errors,o,s,i);l&&(u=[...u,{stack:l.message}]),typeof n=="function"&&(u=n(u,o));let c=RD(u);if(l&&(c={...c,$schema:{__errors:[l.message]}}),typeof a!="function")return{errors:u,errorSchema:c};const f=Ny(e,i,r,i,!0),m=a(f,ic(f),o,c),d=iv(m);return no({errors:u,errorSchema:c},d)}var js={exports:{}},Bf={},ln={},yi={},Vf={},Hf={},Kf={},gb;function Ls(){return gb||(gb=1,(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(b){if(super(),!e.IDENTIFIER.test(b))throw new Error("CodeGen: name must be a valid identifier");this.str=b}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class i extends t{constructor(b){super(),this._items=typeof b=="string"?[b]:b}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const b=this._items[0];return b===""||b==='""'}get str(){var b;return(b=this._str)!==null&&b!==void 0?b:this._str=this._items.reduce((w,E)=>`${w}${E}`,"")}get names(){var b;return(b=this._names)!==null&&b!==void 0?b:this._names=this._items.reduce((w,E)=>(E instanceof r&&(w[E.str]=(w[E.str]||0)+1),w),{})}}e._Code=i,e.nil=new i("");function a(g,...b){const w=[g[0]];let E=0;for(;E<b.length;)s(w,b[E]),w.push(g[++E]);return new i(w)}e._=a;const n=new i("+");function o(g,...b){const w=[d(g[0])];let E=0;for(;E<b.length;)w.push(n),s(w,b[E]),w.push(n,d(g[++E]));return l(w),new i(w)}e.str=o;function s(g,b){b instanceof i?g.push(...b._items):b instanceof r?g.push(b):g.push(f(b))}e.addCodeArg=s;function l(g){let b=1;for(;b<g.length-1;){if(g[b]===n){const w=u(g[b-1],g[b+1]);if(w!==void 0){g.splice(b-1,3,w);continue}g[b++]="+"}b++}}function u(g,b){if(b==='""')return g;if(g==='""')return b;if(typeof g=="string")return b instanceof r||g[g.length-1]!=='"'?void 0:typeof b!="string"?`${g.slice(0,-1)}${b}"`:b[0]==='"'?g.slice(0,-1)+b.slice(1):void 0;if(typeof b=="string"&&b[0]==='"'&&!(g instanceof r))return`"${g}${b.slice(1)}`}function c(g,b){return b.emptyStr()?g:g.emptyStr()?b:o`${g}${b}`}e.strConcat=c;function f(g){return typeof g=="number"||typeof g=="boolean"||g===null?g:d(Array.isArray(g)?g.join(","):g)}function m(g){return new i(d(g))}e.stringify=m;function d(g){return JSON.stringify(g).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=d;function p(g){return typeof g=="string"&&e.IDENTIFIER.test(g)?new i(`.${g}`):a`[${g}]`}e.getProperty=p;function k(g){if(typeof g=="string"&&e.IDENTIFIER.test(g))return new i(`${g}`);throw new Error(`CodeGen: invalid export name: ${g}, use explicit $id name mapping`)}e.getEsmExportName=k;function v(g){return new i(g.toString())}e.regexpCode=v})(Kf)),Kf}var Wf={},yb;function vb(){return yb||(yb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Ls();class r extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}}var i;(function(l){l[l.Started=0]="Started",l[l.Completed=1]="Completed"})(i||(e.UsedValueState=i={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class a{constructor({prefixes:u,parent:c}={}){this._names={},this._prefixes=u,this._parent=c}toName(u){return u instanceof t.Name?u:this.name(u)}name(u){return new t.Name(this._newName(u))}_newName(u){const c=this._names[u]||this._nameGroup(u);return`${u}${c.index++}`}_nameGroup(u){var c,f;if(!((f=(c=this._parent)===null||c===void 0?void 0:c._prefixes)===null||f===void 0)&&f.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}}e.Scope=a;class n extends t.Name{constructor(u,c){super(c),this.prefix=u}setValue(u,{property:c,itemIndex:f}){this.value=u,this.scopePath=(0,t._)`.${new t.Name(c)}[${f}]`}}e.ValueScopeName=n;const o=(0,t._)`\n`;class s extends a{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts={...u,_n:u.lines?o:t.nil}}get(){return this._scope}name(u){return new n(u,this._newName(u))}value(u,c){var f;if(c.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const m=this.toName(u),{prefix:d}=m,p=(f=c.key)!==null&&f!==void 0?f:c.ref;let k=this._values[d];if(k){const b=k.get(p);if(b)return b}else k=this._values[d]=new Map;k.set(p,m);const v=this._scope[d]||(this._scope[d]=[]),g=v.length;return v[g]=c.ref,m.setValue(c,{property:d,itemIndex:g}),m}getValue(u,c){const f=this._values[u];if(f)return f.get(c)}scopeRefs(u,c=this._values){return this._reduceValues(c,f=>{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,t._)`${u}${f.scopePath}`})}scopeCode(u=this._values,c,f){return this._reduceValues(u,m=>{if(m.value===void 0)throw new Error(`CodeGen: name "${m}" has no value`);return m.value.code},c,f)}_reduceValues(u,c,f={},m){let d=t.nil;for(const p in u){const k=u[p];if(!k)continue;const v=f[p]=f[p]||new Map;k.forEach(g=>{if(v.has(g))return;v.set(g,i.Started);let b=c(g);if(b){const w=this.opts.es5?e.varKinds.var:e.varKinds.const;d=(0,t._)`${d}${w} ${g} = ${b};${this.opts._n}`}else if(b=m==null?void 0:m(g))d=(0,t._)`${d}${b}${this.opts._n}`;else throw new r(g);v.set(g,i.Completed)})}return d}}e.ValueScope=s})(Wf)),Wf}var bb;function Fe(){return bb||(bb=1,(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=Ls(),r=vb();var i=Ls();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return i.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return i.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return i.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return i.Name}});var a=vb();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 n{optimizeNodes(){return this}optimizeNames(D,L){return this}}class o extends n{constructor(D,L,U){super(),this.varKind=D,this.name=L,this.rhs=U}render({es5:D,_n:L}){const U=D?r.varKinds.var:this.varKind,$=this.rhs===void 0?"":` = ${this.rhs}`;return`${U} ${this.name}${$};`+L}optimizeNames(D,L){if(D[this.name.str])return this.rhs&&(this.rhs=T(this.rhs,D,L)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends n{constructor(D,L,U){super(),this.lhs=D,this.rhs=L,this.sideEffects=U}render({_n:D}){return`${this.lhs} = ${this.rhs};`+D}optimizeNames(D,L){if(!(this.lhs instanceof t.Name&&!D[this.lhs.str]&&!this.sideEffects))return this.rhs=T(this.rhs,D,L),this}get names(){const D=this.lhs instanceof t.Name?{}:{...this.lhs.names};return F(D,this.rhs)}}class l extends s{constructor(D,L,U,$){super(D,U,$),this.op=L}render({_n:D}){return`${this.lhs} ${this.op}= ${this.rhs};`+D}}class u extends n{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`${this.label}:`+D}}class c extends n{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`break${this.label?` ${this.label}`:""};`+D}}class f extends n{constructor(D){super(),this.error=D}render({_n:D}){return`throw ${this.error};`+D}get names(){return this.error.names}}class m extends n{constructor(D){super(),this.code=D}render({_n:D}){return`${this.code};`+D}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(D,L){return this.code=T(this.code,D,L),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class d extends n{constructor(D=[]){super(),this.nodes=D}render(D){return this.nodes.reduce((L,U)=>L+U.render(D),"")}optimizeNodes(){const{nodes:D}=this;let L=D.length;for(;L--;){const U=D[L].optimizeNodes();Array.isArray(U)?D.splice(L,1,...U):U?D[L]=U:D.splice(L,1)}return D.length>0?this:void 0}optimizeNames(D,L){const{nodes:U}=this;let $=U.length;for(;$--;){const H=U[$];H.optimizeNames(D,L)||(M(D,H.names),U.splice($,1))}return U.length>0?this:void 0}get names(){return this.nodes.reduce((D,L)=>O(D,L.names),{})}}class p extends d{render(D){return"{"+D._n+super.render(D)+"}"+D._n}}class k extends d{}class v extends p{}v.kind="else";class g extends p{constructor(D,L){super(L),this.condition=D}render(D){let L=`if(${this.condition})`+super.render(D);return this.else&&(L+="else "+this.else.render(D)),L}optimizeNodes(){super.optimizeNodes();const D=this.condition;if(D===!0)return this.nodes;let L=this.else;if(L){const U=L.optimizeNodes();L=this.else=Array.isArray(U)?new v(U):U}if(L)return D===!1?L instanceof g?L:L.nodes:this.nodes.length?this:new g(q(D),L instanceof g?[L]:L.nodes);if(!(D===!1||!this.nodes.length))return this}optimizeNames(D,L){var U;if(this.else=(U=this.else)===null||U===void 0?void 0:U.optimizeNames(D,L),!!(super.optimizeNames(D,L)||this.else))return this.condition=T(this.condition,D,L),this}get names(){const D=super.names;return F(D,this.condition),this.else&&O(D,this.else.names),D}}g.kind="if";class b extends p{}b.kind="for";class w extends b{constructor(D){super(),this.iteration=D}render(D){return`for(${this.iteration})`+super.render(D)}optimizeNames(D,L){if(super.optimizeNames(D,L))return this.iteration=T(this.iteration,D,L),this}get names(){return O(super.names,this.iteration.names)}}class E extends b{constructor(D,L,U,$){super(),this.varKind=D,this.name=L,this.from=U,this.to=$}render(D){const L=D.es5?r.varKinds.var:this.varKind,{name:U,from:$,to:H}=this;return`for(${L} ${U}=${$}; ${U}<${H}; ${U}++)`+super.render(D)}get names(){const D=F(super.names,this.from);return F(D,this.to)}}class h extends b{constructor(D,L,U,$){super(),this.loop=D,this.varKind=L,this.name=U,this.iterable=$}render(D){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(D)}optimizeNames(D,L){if(super.optimizeNames(D,L))return this.iterable=T(this.iterable,D,L),this}get names(){return O(super.names,this.iterable.names)}}class y extends p{constructor(D,L,U){super(),this.name=D,this.args=L,this.async=U}render(D){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(D)}}y.kind="func";class C extends d{render(D){return"return "+super.render(D)}}C.kind="return";class x extends p{render(D){let L="try"+super.render(D);return this.catch&&(L+=this.catch.render(D)),this.finally&&(L+=this.finally.render(D)),L}optimizeNodes(){var D,L;return super.optimizeNodes(),(D=this.catch)===null||D===void 0||D.optimizeNodes(),(L=this.finally)===null||L===void 0||L.optimizeNodes(),this}optimizeNames(D,L){var U,$;return super.optimizeNames(D,L),(U=this.catch)===null||U===void 0||U.optimizeNames(D,L),($=this.finally)===null||$===void 0||$.optimizeNames(D,L),this}get names(){const D=super.names;return this.catch&&O(D,this.catch.names),this.finally&&O(D,this.finally.names),D}}class _ extends p{constructor(D){super(),this.error=D}render(D){return`catch(${this.error})`+super.render(D)}}_.kind="catch";class S extends p{render(D){return"finally"+super.render(D)}}S.kind="finally";class A{constructor(D,L={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...L,_n:L.lines?`
|
|
125
|
+
`:""},this._extScope=D,this._scope=new r.Scope({parent:D}),this._nodes=[new k]}toString(){return this._root.render(this.opts)}name(D){return this._scope.name(D)}scopeName(D){return this._extScope.name(D)}scopeValue(D,L){const U=this._extScope.value(D,L);return(this._values[U.prefix]||(this._values[U.prefix]=new Set)).add(U),U}getScopeValue(D,L){return this._extScope.getValue(D,L)}scopeRefs(D){return this._extScope.scopeRefs(D,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(D,L,U,$){const H=this._scope.toName(L);return U!==void 0&&$&&(this._constants[H.str]=U),this._leafNode(new o(D,H,U)),H}const(D,L,U){return this._def(r.varKinds.const,D,L,U)}let(D,L,U){return this._def(r.varKinds.let,D,L,U)}var(D,L,U){return this._def(r.varKinds.var,D,L,U)}assign(D,L,U){return this._leafNode(new s(D,L,U))}add(D,L){return this._leafNode(new l(D,e.operators.ADD,L))}code(D){return typeof D=="function"?D():D!==t.nil&&this._leafNode(new m(D)),this}object(...D){const L=["{"];for(const[U,$]of D)L.length>1&&L.push(","),L.push(U),(U!==$||this.opts.es5)&&(L.push(":"),(0,t.addCodeArg)(L,$));return L.push("}"),new t._Code(L)}if(D,L,U){if(this._blockNode(new g(D)),L&&U)this.code(L).else().code(U).endIf();else if(L)this.code(L).endIf();else if(U)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(D){return this._elseNode(new g(D))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(g,v)}_for(D,L){return this._blockNode(D),L&&this.code(L).endFor(),this}for(D,L){return this._for(new w(D),L)}forRange(D,L,U,$,H=this.opts.es5?r.varKinds.var:r.varKinds.let){const G=this._scope.toName(D);return this._for(new E(H,G,L,U),()=>$(G))}forOf(D,L,U,$=r.varKinds.const){const H=this._scope.toName(D);if(this.opts.es5){const G=L instanceof t.Name?L:this.var("_arr",L);return this.forRange("_i",0,(0,t._)`${G}.length`,X=>{this.var(H,(0,t._)`${G}[${X}]`),U(H)})}return this._for(new h("of",$,H,L),()=>U(H))}forIn(D,L,U,$=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(D,(0,t._)`Object.keys(${L})`,U);const H=this._scope.toName(D);return this._for(new h("in",$,H,L),()=>U(H))}endFor(){return this._endBlockNode(b)}label(D){return this._leafNode(new u(D))}break(D){return this._leafNode(new c(D))}return(D){const L=new C;if(this._blockNode(L),this.code(D),L.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(C)}try(D,L,U){if(!L&&!U)throw new Error('CodeGen: "try" without "catch" and "finally"');const $=new x;if(this._blockNode($),this.code(D),L){const H=this.name("e");this._currNode=$.catch=new _(H),L(H)}return U&&(this._currNode=$.finally=new S,this.code(U)),this._endBlockNode(_,S)}throw(D){return this._leafNode(new f(D))}block(D,L){return this._blockStarts.push(this._nodes.length),D&&this.code(D).endBlock(L),this}endBlock(D){const L=this._blockStarts.pop();if(L===void 0)throw new Error("CodeGen: not in self-balancing block");const U=this._nodes.length-L;if(U<0||D!==void 0&&U!==D)throw new Error(`CodeGen: wrong number of nodes: ${U} vs ${D} expected`);return this._nodes.length=L,this}func(D,L=t.nil,U,$){return this._blockNode(new y(D,L,U)),$&&this.code($).endFunc(),this}endFunc(){return this._endBlockNode(y)}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,L){const U=this._currNode;if(U instanceof D||L&&U instanceof L)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${L?`${D.kind}/${L.kind}`:D.kind}"`)}_elseNode(D){const L=this._currNode;if(!(L instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=L.else=D,this}get _root(){return this._nodes[0]}get _currNode(){const D=this._nodes;return D[D.length-1]}set _currNode(D){const L=this._nodes;L[L.length-1]=D}}e.CodeGen=A;function O(I,D){for(const L in D)I[L]=(I[L]||0)+(D[L]||0);return I}function F(I,D){return D instanceof t._CodeOrName?O(I,D.names):I}function T(I,D,L){if(I instanceof t.Name)return U(I);if(!$(I))return I;return new t._Code(I._items.reduce((H,G)=>(G instanceof t.Name&&(G=U(G)),G instanceof t._Code?H.push(...G._items):H.push(G),H),[]));function U(H){const G=L[H.str];return G===void 0||D[H.str]!==1?H:(delete D[H.str],G)}function $(H){return H instanceof t._Code&&H._items.some(G=>G instanceof t.Name&&D[G.str]===1&&L[G.str]!==void 0)}}function M(I,D){for(const L in D)I[L]=(I[L]||0)-(D[L]||0)}function q(I){return typeof I=="boolean"||typeof I=="number"||I===null?!I:(0,t._)`!${B(I)}`}e.not=q;const J=j(e.operators.AND);function Y(...I){return I.reduce(J)}e.and=Y;const Q=j(e.operators.OR);function P(...I){return I.reduce(Q)}e.or=P;function j(I){return(D,L)=>D===t.nil?L:L===t.nil?D:(0,t._)`${B(D)} ${I} ${B(L)}`}function B(I){return I instanceof t.Name?I:(0,t._)`(${I})`}})(Hf)),Hf}var De={},kb;function He(){if(kb)return De;kb=1,Object.defineProperty(De,"__esModule",{value:!0}),De.checkStrictMode=De.getErrorPath=De.Type=De.useFunc=De.setEvaluated=De.evaluatedPropsToName=De.mergeEvaluated=De.eachItem=De.unescapeJsonPointer=De.escapeJsonPointer=De.escapeFragment=De.unescapeFragment=De.schemaRefOrVal=De.schemaHasRulesButRef=De.schemaHasRules=De.checkUnknownRules=De.alwaysValidSchema=De.toHash=void 0;const e=Fe(),t=Ls();function r(h){const y={};for(const C of h)y[C]=!0;return y}De.toHash=r;function i(h,y){return typeof y=="boolean"?y:Object.keys(y).length===0?!0:(a(h,y),!n(y,h.self.RULES.all))}De.alwaysValidSchema=i;function a(h,y=h.schema){const{opts:C,self:x}=h;if(!C.strictSchema||typeof y=="boolean")return;const _=x.RULES.keywords;for(const S in y)_[S]||E(h,`unknown keyword: "${S}"`)}De.checkUnknownRules=a;function n(h,y){if(typeof h=="boolean")return!h;for(const C in h)if(y[C])return!0;return!1}De.schemaHasRules=n;function o(h,y){if(typeof h=="boolean")return!h;for(const C in h)if(C!=="$ref"&&y.all[C])return!0;return!1}De.schemaHasRulesButRef=o;function s({topSchemaRef:h,schemaPath:y},C,x,_){if(!_){if(typeof C=="number"||typeof C=="boolean")return C;if(typeof C=="string")return(0,e._)`${C}`}return(0,e._)`${h}${y}${(0,e.getProperty)(x)}`}De.schemaRefOrVal=s;function l(h){return f(decodeURIComponent(h))}De.unescapeFragment=l;function u(h){return encodeURIComponent(c(h))}De.escapeFragment=u;function c(h){return typeof h=="number"?`${h}`:h.replace(/~/g,"~0").replace(/\//g,"~1")}De.escapeJsonPointer=c;function f(h){return h.replace(/~1/g,"/").replace(/~0/g,"~")}De.unescapeJsonPointer=f;function m(h,y){if(Array.isArray(h))for(const C of h)y(C);else y(h)}De.eachItem=m;function d({mergeNames:h,mergeToName:y,mergeValues:C,resultToName:x}){return(_,S,A,O)=>{const F=A===void 0?S:A instanceof e.Name?(S instanceof e.Name?h(_,S,A):y(_,S,A),A):S instanceof e.Name?(y(_,A,S),S):C(S,A);return O===e.Name&&!(F instanceof e.Name)?x(_,F):F}}De.mergeEvaluated={props:d({mergeNames:(h,y,C)=>h.if((0,e._)`${C} !== true && ${y} !== undefined`,()=>{h.if((0,e._)`${y} === true`,()=>h.assign(C,!0),()=>h.assign(C,(0,e._)`${C} || {}`).code((0,e._)`Object.assign(${C}, ${y})`))}),mergeToName:(h,y,C)=>h.if((0,e._)`${C} !== true`,()=>{y===!0?h.assign(C,!0):(h.assign(C,(0,e._)`${C} || {}`),k(h,C,y))}),mergeValues:(h,y)=>h===!0?!0:{...h,...y},resultToName:p}),items:d({mergeNames:(h,y,C)=>h.if((0,e._)`${C} !== true && ${y} !== undefined`,()=>h.assign(C,(0,e._)`${y} === true ? true : ${C} > ${y} ? ${C} : ${y}`)),mergeToName:(h,y,C)=>h.if((0,e._)`${C} !== true`,()=>h.assign(C,y===!0?!0:(0,e._)`${C} > ${y} ? ${C} : ${y}`)),mergeValues:(h,y)=>h===!0?!0:Math.max(h,y),resultToName:(h,y)=>h.var("items",y)})};function p(h,y){if(y===!0)return h.var("props",!0);const C=h.var("props",(0,e._)`{}`);return y!==void 0&&k(h,C,y),C}De.evaluatedPropsToName=p;function k(h,y,C){Object.keys(C).forEach(x=>h.assign((0,e._)`${y}${(0,e.getProperty)(x)}`,!0))}De.setEvaluated=k;const v={};function g(h,y){return h.scopeValue("func",{ref:y,code:v[y.code]||(v[y.code]=new t._Code(y.code))})}De.useFunc=g;var b;(function(h){h[h.Num=0]="Num",h[h.Str=1]="Str"})(b||(De.Type=b={}));function w(h,y,C){if(h instanceof e.Name){const x=y===b.Num;return C?x?(0,e._)`"[" + ${h} + "]"`:(0,e._)`"['" + ${h} + "']"`:x?(0,e._)`"/" + ${h}`:(0,e._)`"/" + ${h}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return C?(0,e.getProperty)(h).toString():"/"+c(h)}De.getErrorPath=w;function E(h,y,C=h.opts.strictSchema){if(C){if(y=`strict mode: ${y}`,C===!0)throw new Error(y);h.self.logger.warn(y)}}return De.checkStrictMode=E,De}var qs={},wb;function qn(){if(wb)return qs;wb=1,Object.defineProperty(qs,"__esModule",{value:!0});const e=Fe(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return qs.default=t,qs}var Sb;function Rs(){return Sb||(Sb=1,(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=Fe(),r=He(),i=qn();e.keywordError={message:({keyword:v})=>(0,t.str)`must pass "${v}" keyword validation`},e.keyword$DataError={message:({keyword:v,schemaType:g})=>g?(0,t.str)`"${v}" keyword must be ${g} ($data)`:(0,t.str)`"${v}" keyword is invalid ($data)`};function a(v,g=e.keywordError,b,w){const{it:E}=v,{gen:h,compositeRule:y,allErrors:C}=E,x=f(v,g,b);w??(y||C)?l(h,x):u(E,(0,t._)`[${x}]`)}e.reportError=a;function n(v,g=e.keywordError,b){const{it:w}=v,{gen:E,compositeRule:h,allErrors:y}=w,C=f(v,g,b);l(E,C),h||y||u(w,i.default.vErrors)}e.reportExtraError=n;function o(v,g){v.assign(i.default.errors,g),v.if((0,t._)`${i.default.vErrors} !== null`,()=>v.if(g,()=>v.assign((0,t._)`${i.default.vErrors}.length`,g),()=>v.assign(i.default.vErrors,null)))}e.resetErrorsCount=o;function s({gen:v,keyword:g,schemaValue:b,data:w,errsCount:E,it:h}){if(E===void 0)throw new Error("ajv implementation error");const y=v.name("err");v.forRange("i",E,i.default.errors,C=>{v.const(y,(0,t._)`${i.default.vErrors}[${C}]`),v.if((0,t._)`${y}.instancePath === undefined`,()=>v.assign((0,t._)`${y}.instancePath`,(0,t.strConcat)(i.default.instancePath,h.errorPath))),v.assign((0,t._)`${y}.schemaPath`,(0,t.str)`${h.errSchemaPath}/${g}`),h.opts.verbose&&(v.assign((0,t._)`${y}.schema`,b),v.assign((0,t._)`${y}.data`,w))})}e.extendErrors=s;function l(v,g){const b=v.const("err",g);v.if((0,t._)`${i.default.vErrors} === null`,()=>v.assign(i.default.vErrors,(0,t._)`[${b}]`),(0,t._)`${i.default.vErrors}.push(${b})`),v.code((0,t._)`${i.default.errors}++`)}function u(v,g){const{gen:b,validateName:w,schemaEnv:E}=v;E.$async?b.throw((0,t._)`new ${v.ValidationError}(${g})`):(b.assign((0,t._)`${w}.errors`,g),b.return(!1))}const c={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(v,g,b){const{createErrors:w}=v.it;return w===!1?(0,t._)`{}`:m(v,g,b)}function m(v,g,b={}){const{gen:w,it:E}=v,h=[d(E,b),p(v,b)];return k(v,g,h),w.object(...h)}function d({errorPath:v},{instancePath:g}){const b=g?(0,t.str)`${v}${(0,r.getErrorPath)(g,r.Type.Str)}`:v;return[i.default.instancePath,(0,t.strConcat)(i.default.instancePath,b)]}function p({keyword:v,it:{errSchemaPath:g}},{schemaPath:b,parentSchema:w}){let E=w?g:(0,t.str)`${g}/${v}`;return b&&(E=(0,t.str)`${E}${(0,r.getErrorPath)(b,r.Type.Str)}`),[c.schemaPath,E]}function k(v,{params:g,message:b},w){const{keyword:E,data:h,schemaValue:y,it:C}=v,{opts:x,propertyName:_,topSchemaRef:S,schemaPath:A}=C;w.push([c.keyword,E],[c.params,typeof g=="function"?g(v):g||(0,t._)`{}`]),x.messages&&w.push([c.message,typeof b=="function"?b(v):b]),x.verbose&&w.push([c.schema,y],[c.parentSchema,(0,t._)`${S}${A}`],[i.default.data,h]),_&&w.push([c.propertyName,_])}})(Vf)),Vf}var Cb;function IL(){if(Cb)return yi;Cb=1,Object.defineProperty(yi,"__esModule",{value:!0}),yi.boolOrEmptySchema=yi.topBoolOrEmptySchema=void 0;const e=Rs(),t=Fe(),r=qn(),i={message:"boolean schema is false"};function a(s){const{gen:l,schema:u,validateName:c}=s;u===!1?o(s,!1):typeof u=="object"&&u.$async===!0?l.return(r.default.data):(l.assign((0,t._)`${c}.errors`,null),l.return(!0))}yi.topBoolOrEmptySchema=a;function n(s,l){const{gen:u,schema:c}=s;c===!1?(u.var(l,!1),o(s)):u.var(l,!0)}yi.boolOrEmptySchema=n;function o(s,l){const{gen:u,data:c}=s,f={gen:u,keyword:"false schema",data:c,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:s};(0,e.reportError)(f,i,void 0,l)}return yi}var jt={},vi={},Eb;function Ab(){if(Eb)return vi;Eb=1,Object.defineProperty(vi,"__esModule",{value:!0}),vi.getRules=vi.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function r(a){return typeof a=="string"&&t.has(a)}vi.isJSONType=r;function i(){const a={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...a,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},a.number,a.string,a.array,a.object],post:{rules:[]},all:{},keywords:{}}}return vi.getRules=i,vi}var un={},xb;function Ob(){if(xb)return un;xb=1,Object.defineProperty(un,"__esModule",{value:!0}),un.shouldUseRule=un.shouldUseGroup=un.schemaHasRulesForType=void 0;function e({schema:i,self:a},n){const o=a.RULES.types[n];return o&&o!==!0&&t(i,o)}un.schemaHasRulesForType=e;function t(i,a){return a.rules.some(n=>r(i,n))}un.shouldUseGroup=t;function r(i,a){var n;return i[a.keyword]!==void 0||((n=a.definition.implements)===null||n===void 0?void 0:n.some(o=>i[o]!==void 0))}return un.shouldUseRule=r,un}var _b;function zs(){if(_b)return jt;_b=1,Object.defineProperty(jt,"__esModule",{value:!0}),jt.reportTypeError=jt.checkDataTypes=jt.checkDataType=jt.coerceAndCheckDataType=jt.getJSONTypes=jt.getSchemaTypes=jt.DataType=void 0;const e=Ab(),t=Ob(),r=Rs(),i=Fe(),a=He();var n;(function(b){b[b.Correct=0]="Correct",b[b.Wrong=1]="Wrong"})(n||(jt.DataType=n={}));function o(b){const w=s(b.type);if(w.includes("null")){if(b.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!w.length&&b.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');b.nullable===!0&&w.push("null")}return w}jt.getSchemaTypes=o;function s(b){const w=Array.isArray(b)?b:b?[b]:[];if(w.every(e.isJSONType))return w;throw new Error("type must be JSONType or JSONType[]: "+w.join(","))}jt.getJSONTypes=s;function l(b,w){const{gen:E,data:h,opts:y}=b,C=c(w,y.coerceTypes),x=w.length>0&&!(C.length===0&&w.length===1&&(0,t.schemaHasRulesForType)(b,w[0]));if(x){const _=p(w,h,y.strictNumbers,n.Wrong);E.if(_,()=>{C.length?f(b,w,C):v(b)})}return x}jt.coerceAndCheckDataType=l;const u=new Set(["string","number","integer","boolean","null"]);function c(b,w){return w?b.filter(E=>u.has(E)||w==="array"&&E==="array"):[]}function f(b,w,E){const{gen:h,data:y,opts:C}=b,x=h.let("dataType",(0,i._)`typeof ${y}`),_=h.let("coerced",(0,i._)`undefined`);C.coerceTypes==="array"&&h.if((0,i._)`${x} == 'object' && Array.isArray(${y}) && ${y}.length == 1`,()=>h.assign(y,(0,i._)`${y}[0]`).assign(x,(0,i._)`typeof ${y}`).if(p(w,y,C.strictNumbers),()=>h.assign(_,y))),h.if((0,i._)`${_} !== undefined`);for(const A of E)(u.has(A)||A==="array"&&C.coerceTypes==="array")&&S(A);h.else(),v(b),h.endIf(),h.if((0,i._)`${_} !== undefined`,()=>{h.assign(y,_),m(b,_)});function S(A){switch(A){case"string":h.elseIf((0,i._)`${x} == "number" || ${x} == "boolean"`).assign(_,(0,i._)`"" + ${y}`).elseIf((0,i._)`${y} === null`).assign(_,(0,i._)`""`);return;case"number":h.elseIf((0,i._)`${x} == "boolean" || ${y} === null
|
|
126
|
+
|| (${x} == "string" && ${y} && ${y} == +${y})`).assign(_,(0,i._)`+${y}`);return;case"integer":h.elseIf((0,i._)`${x} === "boolean" || ${y} === null
|
|
127
|
+
|| (${x} === "string" && ${y} && ${y} == +${y} && !(${y} % 1))`).assign(_,(0,i._)`+${y}`);return;case"boolean":h.elseIf((0,i._)`${y} === "false" || ${y} === 0 || ${y} === null`).assign(_,!1).elseIf((0,i._)`${y} === "true" || ${y} === 1`).assign(_,!0);return;case"null":h.elseIf((0,i._)`${y} === "" || ${y} === 0 || ${y} === false`),h.assign(_,null);return;case"array":h.elseIf((0,i._)`${x} === "string" || ${x} === "number"
|
|
128
|
+
|| ${x} === "boolean" || ${y} === null`).assign(_,(0,i._)`[${y}]`)}}}function m({gen:b,parentData:w,parentDataProperty:E},h){b.if((0,i._)`${w} !== undefined`,()=>b.assign((0,i._)`${w}[${E}]`,h))}function d(b,w,E,h=n.Correct){const y=h===n.Correct?i.operators.EQ:i.operators.NEQ;let C;switch(b){case"null":return(0,i._)`${w} ${y} null`;case"array":C=(0,i._)`Array.isArray(${w})`;break;case"object":C=(0,i._)`${w} && typeof ${w} == "object" && !Array.isArray(${w})`;break;case"integer":C=x((0,i._)`!(${w} % 1) && !isNaN(${w})`);break;case"number":C=x();break;default:return(0,i._)`typeof ${w} ${y} ${b}`}return h===n.Correct?C:(0,i.not)(C);function x(_=i.nil){return(0,i.and)((0,i._)`typeof ${w} == "number"`,_,E?(0,i._)`isFinite(${w})`:i.nil)}}jt.checkDataType=d;function p(b,w,E,h){if(b.length===1)return d(b[0],w,E,h);let y;const C=(0,a.toHash)(b);if(C.array&&C.object){const x=(0,i._)`typeof ${w} != "object"`;y=C.null?x:(0,i._)`!${w} || ${x}`,delete C.null,delete C.array,delete C.object}else y=i.nil;C.number&&delete C.integer;for(const x in C)y=(0,i.and)(y,d(x,w,E,h));return y}jt.checkDataTypes=p;const k={message:({schema:b})=>`must be ${b}`,params:({schema:b,schemaValue:w})=>typeof b=="string"?(0,i._)`{type: ${b}}`:(0,i._)`{type: ${w}}`};function v(b){const w=g(b);(0,r.reportError)(w,k)}jt.reportTypeError=v;function g(b){const{gen:w,data:E,schema:h}=b,y=(0,a.schemaRefOrVal)(b,h,"type");return{gen:w,keyword:"type",data:E,schema:h.type,schemaCode:y,schemaValue:y,parentSchema:h,params:{},it:b}}return jt}var co={},Pb;function TL(){if(Pb)return co;Pb=1,Object.defineProperty(co,"__esModule",{value:!0}),co.assignDefaults=void 0;const e=Fe(),t=He();function r(a,n){const{properties:o,items:s}=a.schema;if(n==="object"&&o)for(const l in o)i(a,l,o[l].default);else n==="array"&&Array.isArray(s)&&s.forEach((l,u)=>i(a,u,l.default))}co.assignDefaults=r;function i(a,n,o){const{gen:s,compositeRule:l,data:u,opts:c}=a;if(o===void 0)return;const f=(0,e._)`${u}${(0,e.getProperty)(n)}`;if(l){(0,t.checkStrictMode)(a,`default is ignored for: ${f}`);return}let m=(0,e._)`${f} === undefined`;c.useDefaults==="empty"&&(m=(0,e._)`${m} || ${f} === null || ${f} === ""`),s.if(m,(0,e._)`${f} = ${(0,e.stringify)(o)}`)}return co}var Fr={},ot={},Ib;function Dr(){if(Ib)return ot;Ib=1,Object.defineProperty(ot,"__esModule",{value:!0}),ot.validateUnion=ot.validateArray=ot.usePattern=ot.callValidateCode=ot.schemaProperties=ot.allSchemaProperties=ot.noPropertyInData=ot.propertyInData=ot.isOwnProperty=ot.hasPropFunc=ot.reportMissingProp=ot.checkMissingProp=ot.checkReportMissingProp=void 0;const e=Fe(),t=He(),r=qn(),i=He();function a(b,w){const{gen:E,data:h,it:y}=b;E.if(c(E,h,w,y.opts.ownProperties),()=>{b.setParams({missingProperty:(0,e._)`${w}`},!0),b.error()})}ot.checkReportMissingProp=a;function n({gen:b,data:w,it:{opts:E}},h,y){return(0,e.or)(...h.map(C=>(0,e.and)(c(b,w,C,E.ownProperties),(0,e._)`${y} = ${C}`)))}ot.checkMissingProp=n;function o(b,w){b.setParams({missingProperty:w},!0),b.error()}ot.reportMissingProp=o;function s(b){return b.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}ot.hasPropFunc=s;function l(b,w,E){return(0,e._)`${s(b)}.call(${w}, ${E})`}ot.isOwnProperty=l;function u(b,w,E,h){const y=(0,e._)`${w}${(0,e.getProperty)(E)} !== undefined`;return h?(0,e._)`${y} && ${l(b,w,E)}`:y}ot.propertyInData=u;function c(b,w,E,h){const y=(0,e._)`${w}${(0,e.getProperty)(E)} === undefined`;return h?(0,e.or)(y,(0,e.not)(l(b,w,E))):y}ot.noPropertyInData=c;function f(b){return b?Object.keys(b).filter(w=>w!=="__proto__"):[]}ot.allSchemaProperties=f;function m(b,w){return f(w).filter(E=>!(0,t.alwaysValidSchema)(b,w[E]))}ot.schemaProperties=m;function d({schemaCode:b,data:w,it:{gen:E,topSchemaRef:h,schemaPath:y,errorPath:C},it:x},_,S,A){const O=A?(0,e._)`${b}, ${w}, ${h}${y}`:w,F=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,C)],[r.default.parentData,x.parentData],[r.default.parentDataProperty,x.parentDataProperty],[r.default.rootData,r.default.rootData]];x.opts.dynamicRef&&F.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const T=(0,e._)`${O}, ${E.object(...F)}`;return S!==e.nil?(0,e._)`${_}.call(${S}, ${T})`:(0,e._)`${_}(${T})`}ot.callValidateCode=d;const p=(0,e._)`new RegExp`;function k({gen:b,it:{opts:w}},E){const h=w.unicodeRegExp?"u":"",{regExp:y}=w.code,C=y(E,h);return b.scopeValue("pattern",{key:C.toString(),ref:C,code:(0,e._)`${y.code==="new RegExp"?p:(0,i.useFunc)(b,y)}(${E}, ${h})`})}ot.usePattern=k;function v(b){const{gen:w,data:E,keyword:h,it:y}=b,C=w.name("valid");if(y.allErrors){const _=w.let("valid",!0);return x(()=>w.assign(_,!1)),_}return w.var(C,!0),x(()=>w.break()),C;function x(_){const S=w.const("len",(0,e._)`${E}.length`);w.forRange("i",0,S,A=>{b.subschema({keyword:h,dataProp:A,dataPropType:t.Type.Num},C),w.if((0,e.not)(C),_)})}}ot.validateArray=v;function g(b){const{gen:w,schema:E,keyword:h,it:y}=b;if(!Array.isArray(E))throw new Error("ajv implementation error");if(E.some(S=>(0,t.alwaysValidSchema)(y,S))&&!y.opts.unevaluated)return;const x=w.let("valid",!1),_=w.name("_valid");w.block(()=>E.forEach((S,A)=>{const O=b.subschema({keyword:h,schemaProp:A,compositeRule:!0},_);w.assign(x,(0,e._)`${x} || ${_}`),b.mergeValidEvaluated(O,_)||w.if((0,e.not)(x))})),b.result(x,()=>b.reset(),()=>b.error(!0))}return ot.validateUnion=g,ot}var Tb;function NL(){if(Tb)return Fr;Tb=1,Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.validateKeywordUsage=Fr.validSchemaType=Fr.funcKeywordCode=Fr.macroKeywordCode=void 0;const e=Fe(),t=qn(),r=Dr(),i=Rs();function a(m,d){const{gen:p,keyword:k,schema:v,parentSchema:g,it:b}=m,w=d.macro.call(b.self,v,g,b),E=u(p,k,w);b.opts.validateSchema!==!1&&b.self.validateSchema(w,!0);const h=p.name("valid");m.subschema({schema:w,schemaPath:e.nil,errSchemaPath:`${b.errSchemaPath}/${k}`,topSchemaRef:E,compositeRule:!0},h),m.pass(h,()=>m.error(!0))}Fr.macroKeywordCode=a;function n(m,d){var p;const{gen:k,keyword:v,schema:g,parentSchema:b,$data:w,it:E}=m;l(E,d);const h=!w&&d.compile?d.compile.call(E.self,g,b,E):d.validate,y=u(k,v,h),C=k.let("valid");m.block$data(C,x),m.ok((p=d.valid)!==null&&p!==void 0?p:C);function x(){if(d.errors===!1)A(),d.modifying&&o(m),O(()=>m.error());else{const F=d.async?_():S();d.modifying&&o(m),O(()=>s(m,F))}}function _(){const F=k.let("ruleErrs",null);return k.try(()=>A((0,e._)`await `),T=>k.assign(C,!1).if((0,e._)`${T} instanceof ${E.ValidationError}`,()=>k.assign(F,(0,e._)`${T}.errors`),()=>k.throw(T))),F}function S(){const F=(0,e._)`${y}.errors`;return k.assign(F,null),A(e.nil),F}function A(F=d.async?(0,e._)`await `:e.nil){const T=E.opts.passContext?t.default.this:t.default.self,M=!("compile"in d&&!w||d.schema===!1);k.assign(C,(0,e._)`${F}${(0,r.callValidateCode)(m,y,T,M)}`,d.modifying)}function O(F){var T;k.if((0,e.not)((T=d.valid)!==null&&T!==void 0?T:C),F)}}Fr.funcKeywordCode=n;function o(m){const{gen:d,data:p,it:k}=m;d.if(k.parentData,()=>d.assign(p,(0,e._)`${k.parentData}[${k.parentDataProperty}]`))}function s(m,d){const{gen:p}=m;p.if((0,e._)`Array.isArray(${d})`,()=>{p.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${d} : ${t.default.vErrors}.concat(${d})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,i.extendErrors)(m)},()=>m.error())}function l({schemaEnv:m},d){if(d.async&&!m.$async)throw new Error("async keyword in sync schema")}function u(m,d,p){if(p===void 0)throw new Error(`keyword "${d}" failed to compile`);return m.scopeValue("keyword",typeof p=="function"?{ref:p}:{ref:p,code:(0,e.stringify)(p)})}function c(m,d,p=!1){return!d.length||d.some(k=>k==="array"?Array.isArray(m):k==="object"?m&&typeof m=="object"&&!Array.isArray(m):typeof m==k||p&&typeof m>"u")}Fr.validSchemaType=c;function f({schema:m,opts:d,self:p,errSchemaPath:k},v,g){if(Array.isArray(v.keyword)?!v.keyword.includes(g):v.keyword!==g)throw new Error("ajv implementation error");const b=v.dependencies;if(b!=null&&b.some(w=>!Object.prototype.hasOwnProperty.call(m,w)))throw new Error(`parent schema must have dependencies of ${g}: ${b.join(",")}`);if(v.validateSchema&&!v.validateSchema(m[g])){const E=`keyword "${g}" value is invalid at path "${k}": `+p.errorsText(v.validateSchema.errors);if(d.validateSchema==="log")p.logger.error(E);else throw new Error(E)}}return Fr.validateKeywordUsage=f,Fr}var cn={},Nb;function FL(){if(Nb)return cn;Nb=1,Object.defineProperty(cn,"__esModule",{value:!0}),cn.extendSubschemaMode=cn.extendSubschemaData=cn.getSubschema=void 0;const e=Fe(),t=He();function r(n,{keyword:o,schemaProp:s,schema:l,schemaPath:u,errSchemaPath:c,topSchemaRef:f}){if(o!==void 0&&l!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(o!==void 0){const m=n.schema[o];return s===void 0?{schema:m,schemaPath:(0,e._)`${n.schemaPath}${(0,e.getProperty)(o)}`,errSchemaPath:`${n.errSchemaPath}/${o}`}:{schema:m[s],schemaPath:(0,e._)`${n.schemaPath}${(0,e.getProperty)(o)}${(0,e.getProperty)(s)}`,errSchemaPath:`${n.errSchemaPath}/${o}/${(0,t.escapeFragment)(s)}`}}if(l!==void 0){if(u===void 0||c===void 0||f===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:l,schemaPath:u,topSchemaRef:f,errSchemaPath:c}}throw new Error('either "keyword" or "schema" must be passed')}cn.getSubschema=r;function i(n,o,{dataProp:s,dataPropType:l,data:u,dataTypes:c,propertyName:f}){if(u!==void 0&&s!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:m}=o;if(s!==void 0){const{errorPath:p,dataPathArr:k,opts:v}=o,g=m.let("data",(0,e._)`${o.data}${(0,e.getProperty)(s)}`,!0);d(g),n.errorPath=(0,e.str)`${p}${(0,t.getErrorPath)(s,l,v.jsPropertySyntax)}`,n.parentDataProperty=(0,e._)`${s}`,n.dataPathArr=[...k,n.parentDataProperty]}if(u!==void 0){const p=u instanceof e.Name?u:m.let("data",u,!0);d(p),f!==void 0&&(n.propertyName=f)}c&&(n.dataTypes=c);function d(p){n.data=p,n.dataLevel=o.dataLevel+1,n.dataTypes=[],o.definedProperties=new Set,n.parentData=o.data,n.dataNames=[...o.dataNames,p]}}cn.extendSubschemaData=i;function a(n,{jtdDiscriminator:o,jtdMetadata:s,compositeRule:l,createErrors:u,allErrors:c}){l!==void 0&&(n.compositeRule=l),u!==void 0&&(n.createErrors=u),c!==void 0&&(n.allErrors=c),n.jtdDiscriminator=o,n.jtdMetadata=s}return cn.extendSubschemaMode=a,cn}var Gt={},Gf,Fb;function Db(){return Fb||(Fb=1,Gf=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var i,a,n;if(Array.isArray(t)){if(i=t.length,i!=r.length)return!1;for(a=i;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(n=Object.keys(t),i=n.length,i!==Object.keys(r).length)return!1;for(a=i;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,n[a]))return!1;for(a=i;a--!==0;){var o=n[a];if(!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r}),Gf}var Jf={exports:{}},Mb;function DL(){if(Mb)return Jf.exports;Mb=1;var e=Jf.exports=function(i,a,n){typeof a=="function"&&(n=a,a={}),n=a.cb||n;var o=typeof n=="function"?n:n.pre||function(){},s=n.post||function(){};t(a,o,s,i,"",i)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.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 t(i,a,n,o,s,l,u,c,f,m){if(o&&typeof o=="object"&&!Array.isArray(o)){a(o,s,l,u,c,f,m);for(var d in o){var p=o[d];if(Array.isArray(p)){if(d in e.arrayKeywords)for(var k=0;k<p.length;k++)t(i,a,n,p[k],s+"/"+d+"/"+k,l,s,d,o,k)}else if(d in e.propsKeywords){if(p&&typeof p=="object")for(var v in p)t(i,a,n,p[v],s+"/"+d+"/"+r(v),l,s,d,o,v)}else(d in e.keywords||i.allKeys&&!(d in e.skipKeywords))&&t(i,a,n,p,s+"/"+d,l,s,d,o)}n(o,s,l,u,c,f,m)}}function r(i){return i.replace(/~/g,"~0").replace(/\//g,"~1")}return Jf.exports}var jb;function $s(){if(jb)return Gt;jb=1,Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.getSchemaRefs=Gt.resolveUrl=Gt.normalizeId=Gt._getFullPath=Gt.getFullPath=Gt.inlineRef=void 0;const e=He(),t=Db(),r=DL(),i=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function a(k,v=!0){return typeof k=="boolean"?!0:v===!0?!o(k):v?s(k)<=v:!1}Gt.inlineRef=a;const n=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function o(k){for(const v in k){if(n.has(v))return!0;const g=k[v];if(Array.isArray(g)&&g.some(o)||typeof g=="object"&&o(g))return!0}return!1}function s(k){let v=0;for(const g in k){if(g==="$ref")return 1/0;if(v++,!i.has(g)&&(typeof k[g]=="object"&&(0,e.eachItem)(k[g],b=>v+=s(b)),v===1/0))return 1/0}return v}function l(k,v="",g){g!==!1&&(v=f(v));const b=k.parse(v);return u(k,b)}Gt.getFullPath=l;function u(k,v){return k.serialize(v).split("#")[0]+"#"}Gt._getFullPath=u;const c=/#\/?$/;function f(k){return k?k.replace(c,""):""}Gt.normalizeId=f;function m(k,v,g){return g=f(g),k.resolve(v,g)}Gt.resolveUrl=m;const d=/^[a-z_][-a-z0-9._]*$/i;function p(k,v){if(typeof k=="boolean")return{};const{schemaId:g,uriResolver:b}=this.opts,w=f(k[g]||v),E={"":w},h=l(b,w,!1),y={},C=new Set;return r(k,{allKeys:!0},(S,A,O,F)=>{if(F===void 0)return;const T=h+A;let M=E[F];typeof S[g]=="string"&&(M=q.call(this,S[g])),J.call(this,S.$anchor),J.call(this,S.$dynamicAnchor),E[A]=M;function q(Y){const Q=this.opts.uriResolver.resolve;if(Y=f(M?Q(M,Y):Y),C.has(Y))throw _(Y);C.add(Y);let P=this.refs[Y];return typeof P=="string"&&(P=this.refs[P]),typeof P=="object"?x(S,P.schema,Y):Y!==f(T)&&(Y[0]==="#"?(x(S,y[Y],Y),y[Y]=S):this.refs[Y]=T),Y}function J(Y){if(typeof Y=="string"){if(!d.test(Y))throw new Error(`invalid anchor "${Y}"`);q.call(this,`#${Y}`)}}}),y;function x(S,A,O){if(A!==void 0&&!t(S,A))throw _(O)}function _(S){return new Error(`reference "${S}" resolves to more than one schema`)}}return Gt.getSchemaRefs=p,Gt}var Lb;function Us(){if(Lb)return ln;Lb=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.getData=ln.KeywordCxt=ln.validateFunctionCode=void 0;const e=IL(),t=zs(),r=Ob(),i=zs(),a=TL(),n=NL(),o=FL(),s=Fe(),l=qn(),u=$s(),c=He(),f=Rs();function m(z){if(h(z)&&(C(z),E(z))){v(z);return}d(z,()=>(0,e.topBoolOrEmptySchema)(z))}ln.validateFunctionCode=m;function d({gen:z,validateName:R,schema:W,schemaEnv:K,opts:ie},re){ie.code.es5?z.func(R,(0,s._)`${l.default.data}, ${l.default.valCxt}`,K.$async,()=>{z.code((0,s._)`"use strict"; ${b(W,ie)}`),k(z,ie),z.code(re)}):z.func(R,(0,s._)`${l.default.data}, ${p(ie)}`,K.$async,()=>z.code(b(W,ie)).code(re))}function p(z){return(0,s._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${z.dynamicRef?(0,s._)`, ${l.default.dynamicAnchors}={}`:s.nil}}={}`}function k(z,R){z.if(l.default.valCxt,()=>{z.var(l.default.instancePath,(0,s._)`${l.default.valCxt}.${l.default.instancePath}`),z.var(l.default.parentData,(0,s._)`${l.default.valCxt}.${l.default.parentData}`),z.var(l.default.parentDataProperty,(0,s._)`${l.default.valCxt}.${l.default.parentDataProperty}`),z.var(l.default.rootData,(0,s._)`${l.default.valCxt}.${l.default.rootData}`),R.dynamicRef&&z.var(l.default.dynamicAnchors,(0,s._)`${l.default.valCxt}.${l.default.dynamicAnchors}`)},()=>{z.var(l.default.instancePath,(0,s._)`""`),z.var(l.default.parentData,(0,s._)`undefined`),z.var(l.default.parentDataProperty,(0,s._)`undefined`),z.var(l.default.rootData,l.default.data),R.dynamicRef&&z.var(l.default.dynamicAnchors,(0,s._)`{}`)})}function v(z){const{schema:R,opts:W,gen:K}=z;d(z,()=>{W.$comment&&R.$comment&&F(z),S(z),K.let(l.default.vErrors,null),K.let(l.default.errors,0),W.unevaluated&&g(z),x(z),T(z)})}function g(z){const{gen:R,validateName:W}=z;z.evaluated=R.const("evaluated",(0,s._)`${W}.evaluated`),R.if((0,s._)`${z.evaluated}.dynamicProps`,()=>R.assign((0,s._)`${z.evaluated}.props`,(0,s._)`undefined`)),R.if((0,s._)`${z.evaluated}.dynamicItems`,()=>R.assign((0,s._)`${z.evaluated}.items`,(0,s._)`undefined`))}function b(z,R){const W=typeof z=="object"&&z[R.schemaId];return W&&(R.code.source||R.code.process)?(0,s._)`/*# sourceURL=${W} */`:s.nil}function w(z,R){if(h(z)&&(C(z),E(z))){y(z,R);return}(0,e.boolOrEmptySchema)(z,R)}function E({schema:z,self:R}){if(typeof z=="boolean")return!z;for(const W in z)if(R.RULES.all[W])return!0;return!1}function h(z){return typeof z.schema!="boolean"}function y(z,R){const{schema:W,gen:K,opts:ie}=z;ie.$comment&&W.$comment&&F(z),A(z),O(z);const re=K.const("_errs",l.default.errors);x(z,re),K.var(R,(0,s._)`${re} === ${l.default.errors}`)}function C(z){(0,c.checkUnknownRules)(z),_(z)}function x(z,R){if(z.opts.jtd)return q(z,[],!1,R);const W=(0,t.getSchemaTypes)(z.schema),K=(0,t.coerceAndCheckDataType)(z,W);q(z,W,!K,R)}function _(z){const{schema:R,errSchemaPath:W,opts:K,self:ie}=z;R.$ref&&K.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(R,ie.RULES)&&ie.logger.warn(`$ref: keywords ignored in schema at path "${W}"`)}function S(z){const{schema:R,opts:W}=z;R.default!==void 0&&W.useDefaults&&W.strictSchema&&(0,c.checkStrictMode)(z,"default is ignored in the schema root")}function A(z){const R=z.schema[z.opts.schemaId];R&&(z.baseId=(0,u.resolveUrl)(z.opts.uriResolver,z.baseId,R))}function O(z){if(z.schema.$async&&!z.schemaEnv.$async)throw new Error("async schema in sync schema")}function F({gen:z,schemaEnv:R,schema:W,errSchemaPath:K,opts:ie}){const re=W.$comment;if(ie.$comment===!0)z.code((0,s._)`${l.default.self}.logger.log(${re})`);else if(typeof ie.$comment=="function"){const ue=(0,s.str)`${K}/$comment`,ye=z.scopeValue("root",{ref:R.root});z.code((0,s._)`${l.default.self}.opts.$comment(${re}, ${ue}, ${ye}.schema)`)}}function T(z){const{gen:R,schemaEnv:W,validateName:K,ValidationError:ie,opts:re}=z;W.$async?R.if((0,s._)`${l.default.errors} === 0`,()=>R.return(l.default.data),()=>R.throw((0,s._)`new ${ie}(${l.default.vErrors})`)):(R.assign((0,s._)`${K}.errors`,l.default.vErrors),re.unevaluated&&M(z),R.return((0,s._)`${l.default.errors} === 0`))}function M({gen:z,evaluated:R,props:W,items:K}){W instanceof s.Name&&z.assign((0,s._)`${R}.props`,W),K instanceof s.Name&&z.assign((0,s._)`${R}.items`,K)}function q(z,R,W,K){const{gen:ie,schema:re,data:ue,allErrors:ye,opts:Se,self:ke}=z,{RULES:Pe}=ke;if(re.$ref&&(Se.ignoreKeywordsWithRef||!(0,c.schemaHasRulesButRef)(re,Pe))){ie.block(()=>$(z,"$ref",Pe.all.$ref.definition));return}Se.jtd||Y(z,R),ie.block(()=>{for(const Ke of Pe.rules)de(Ke);de(Pe.post)});function de(Ke){(0,r.shouldUseGroup)(re,Ke)&&(Ke.type?(ie.if((0,i.checkDataType)(Ke.type,ue,Se.strictNumbers)),J(z,Ke),R.length===1&&R[0]===Ke.type&&W&&(ie.else(),(0,i.reportTypeError)(z)),ie.endIf()):J(z,Ke),ye||ie.if((0,s._)`${l.default.errors} === ${K||0}`))}}function J(z,R){const{gen:W,schema:K,opts:{useDefaults:ie}}=z;ie&&(0,a.assignDefaults)(z,R.type),W.block(()=>{for(const re of R.rules)(0,r.shouldUseRule)(K,re)&&$(z,re.keyword,re.definition,R.type)})}function Y(z,R){z.schemaEnv.meta||!z.opts.strictTypes||(Q(z,R),z.opts.allowUnionTypes||P(z,R),j(z,z.dataTypes))}function Q(z,R){if(R.length){if(!z.dataTypes.length){z.dataTypes=R;return}R.forEach(W=>{I(z.dataTypes,W)||L(z,`type "${W}" not allowed by context "${z.dataTypes.join(",")}"`)}),D(z,R)}}function P(z,R){R.length>1&&!(R.length===2&&R.includes("null"))&&L(z,"use allowUnionTypes to allow union type keyword")}function j(z,R){const W=z.self.RULES.all;for(const K in W){const ie=W[K];if(typeof ie=="object"&&(0,r.shouldUseRule)(z.schema,ie)){const{type:re}=ie.definition;re.length&&!re.some(ue=>B(R,ue))&&L(z,`missing type "${re.join(",")}" for keyword "${K}"`)}}}function B(z,R){return z.includes(R)||R==="number"&&z.includes("integer")}function I(z,R){return z.includes(R)||R==="integer"&&z.includes("number")}function D(z,R){const W=[];for(const K of z.dataTypes)I(R,K)?W.push(K):R.includes("integer")&&K==="number"&&W.push("integer");z.dataTypes=W}function L(z,R){const W=z.schemaEnv.baseId+z.errSchemaPath;R+=` at "${W}" (strictTypes)`,(0,c.checkStrictMode)(z,R,z.opts.strictTypes)}class U{constructor(R,W,K){if((0,n.validateKeywordUsage)(R,W,K),this.gen=R.gen,this.allErrors=R.allErrors,this.keyword=K,this.data=R.data,this.schema=R.schema[K],this.$data=W.$data&&R.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,c.schemaRefOrVal)(R,this.schema,K,this.$data),this.schemaType=W.schemaType,this.parentSchema=R.schema,this.params={},this.it=R,this.def=W,this.$data)this.schemaCode=R.gen.const("vSchema",X(this.$data,R));else if(this.schemaCode=this.schemaValue,!(0,n.validSchemaType)(this.schema,W.schemaType,W.allowUndefined))throw new Error(`${K} value must be ${JSON.stringify(W.schemaType)}`);("code"in W?W.trackErrors:W.errors!==!1)&&(this.errsCount=R.gen.const("_errs",l.default.errors))}result(R,W,K){this.failResult((0,s.not)(R),W,K)}failResult(R,W,K){this.gen.if(R),K?K():this.error(),W?(this.gen.else(),W(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(R,W){this.failResult((0,s.not)(R),void 0,W)}fail(R){if(R===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(R),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(R){if(!this.$data)return this.fail(R);const{schemaCode:W}=this;this.fail((0,s._)`${W} !== undefined && (${(0,s.or)(this.invalid$data(),R)})`)}error(R,W,K){if(W){this.setParams(W),this._error(R,K),this.setParams({});return}this._error(R,K)}_error(R,W){(R?f.reportExtraError:f.reportError)(this,this.def.error,W)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,f.resetErrorsCount)(this.gen,this.errsCount)}ok(R){this.allErrors||this.gen.if(R)}setParams(R,W){W?Object.assign(this.params,R):this.params=R}block$data(R,W,K=s.nil){this.gen.block(()=>{this.check$data(R,K),W()})}check$data(R=s.nil,W=s.nil){if(!this.$data)return;const{gen:K,schemaCode:ie,schemaType:re,def:ue}=this;K.if((0,s.or)((0,s._)`${ie} === undefined`,W)),R!==s.nil&&K.assign(R,!0),(re.length||ue.validateSchema)&&(K.elseIf(this.invalid$data()),this.$dataError(),R!==s.nil&&K.assign(R,!1)),K.else()}invalid$data(){const{gen:R,schemaCode:W,schemaType:K,def:ie,it:re}=this;return(0,s.or)(ue(),ye());function ue(){if(K.length){if(!(W instanceof s.Name))throw new Error("ajv implementation error");const Se=Array.isArray(K)?K:[K];return(0,s._)`${(0,i.checkDataTypes)(Se,W,re.opts.strictNumbers,i.DataType.Wrong)}`}return s.nil}function ye(){if(ie.validateSchema){const Se=R.scopeValue("validate$data",{ref:ie.validateSchema});return(0,s._)`!${Se}(${W})`}return s.nil}}subschema(R,W){const K=(0,o.getSubschema)(this.it,R);(0,o.extendSubschemaData)(K,this.it,R),(0,o.extendSubschemaMode)(K,R);const ie={...this.it,...K,items:void 0,props:void 0};return w(ie,W),ie}mergeEvaluated(R,W){const{it:K,gen:ie}=this;K.opts.unevaluated&&(K.props!==!0&&R.props!==void 0&&(K.props=c.mergeEvaluated.props(ie,R.props,K.props,W)),K.items!==!0&&R.items!==void 0&&(K.items=c.mergeEvaluated.items(ie,R.items,K.items,W)))}mergeValidEvaluated(R,W){const{it:K,gen:ie}=this;if(K.opts.unevaluated&&(K.props!==!0||K.items!==!0))return ie.if(W,()=>this.mergeEvaluated(R,s.Name)),!0}}ln.KeywordCxt=U;function $(z,R,W,K){const ie=new U(z,W,R);"code"in W?W.code(ie,K):ie.$data&&W.validate?(0,n.funcKeywordCode)(ie,W):"macro"in W?(0,n.macroKeywordCode)(ie,W):(W.compile||W.validate)&&(0,n.funcKeywordCode)(ie,W)}const H=/^\/(?:[^~]|~0|~1)*$/,G=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function X(z,{dataLevel:R,dataNames:W,dataPathArr:K}){let ie,re;if(z==="")return l.default.rootData;if(z[0]==="/"){if(!H.test(z))throw new Error(`Invalid JSON-pointer: ${z}`);ie=z,re=l.default.rootData}else{const ke=G.exec(z);if(!ke)throw new Error(`Invalid JSON-pointer: ${z}`);const Pe=+ke[1];if(ie=ke[2],ie==="#"){if(Pe>=R)throw new Error(Se("property/index",Pe));return K[R-Pe]}if(Pe>R)throw new Error(Se("data",Pe));if(re=W[R-Pe],!ie)return re}let ue=re;const ye=ie.split("/");for(const ke of ye)ke&&(re=(0,s._)`${re}${(0,s.getProperty)((0,c.unescapeJsonPointer)(ke))}`,ue=(0,s._)`${ue} && ${re}`);return ue;function Se(ke,Pe){return`Cannot access ${ke} ${Pe} levels up, current level is ${R}`}}return ln.getData=X,ln}var Bs={},qb;function Yf(){if(qb)return Bs;qb=1,Object.defineProperty(Bs,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return Bs.default=e,Bs}var Vs={},Rb;function Hs(){if(Rb)return Vs;Rb=1,Object.defineProperty(Vs,"__esModule",{value:!0});const e=$s();class t extends Error{constructor(i,a,n,o){super(o||`can't resolve reference ${n} from id ${a}`),this.missingRef=(0,e.resolveUrl)(i,a,n),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(i,this.missingRef))}}return Vs.default=t,Vs}var ir={},zb;function Xf(){if(zb)return ir;zb=1,Object.defineProperty(ir,"__esModule",{value:!0}),ir.resolveSchema=ir.getCompilingSchema=ir.resolveRef=ir.compileSchema=ir.SchemaEnv=void 0;const e=Fe(),t=Yf(),r=qn(),i=$s(),a=He(),n=Us();class o{constructor(g){var b;this.refs={},this.dynamicAnchors={};let w;typeof g.schema=="object"&&(w=g.schema),this.schema=g.schema,this.schemaId=g.schemaId,this.root=g.root||this,this.baseId=(b=g.baseId)!==null&&b!==void 0?b:(0,i.normalizeId)(w==null?void 0:w[g.schemaId||"$id"]),this.schemaPath=g.schemaPath,this.localRefs=g.localRefs,this.meta=g.meta,this.$async=w==null?void 0:w.$async,this.refs={}}}ir.SchemaEnv=o;function s(v){const g=c.call(this,v);if(g)return g;const b=(0,i.getFullPath)(this.opts.uriResolver,v.root.baseId),{es5:w,lines:E}=this.opts.code,{ownProperties:h}=this.opts,y=new e.CodeGen(this.scope,{es5:w,lines:E,ownProperties:h});let C;v.$async&&(C=y.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const x=y.scopeName("validate");v.validateName=x;const _={gen:y,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:y.scopeValue("schema",this.opts.code.source===!0?{ref:v.schema,code:(0,e.stringify)(v.schema)}:{ref:v.schema}),validateName:x,ValidationError:C,schema:v.schema,schemaEnv:v,rootId:b,baseId:v.baseId||b,schemaPath:e.nil,errSchemaPath:v.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let S;try{this._compilations.add(v),(0,n.validateFunctionCode)(_),y.optimize(this.opts.code.optimize);const A=y.toString();S=`${y.scopeRefs(r.default.scope)}return ${A}`,this.opts.code.process&&(S=this.opts.code.process(S,v));const F=new Function(`${r.default.self}`,`${r.default.scope}`,S)(this,this.scope.get());if(this.scope.value(x,{ref:F}),F.errors=null,F.schema=v.schema,F.schemaEnv=v,v.$async&&(F.$async=!0),this.opts.code.source===!0&&(F.source={validateName:x,validateCode:A,scopeValues:y._values}),this.opts.unevaluated){const{props:T,items:M}=_;F.evaluated={props:T instanceof e.Name?void 0:T,items:M instanceof e.Name?void 0:M,dynamicProps:T instanceof e.Name,dynamicItems:M instanceof e.Name},F.source&&(F.source.evaluated=(0,e.stringify)(F.evaluated))}return v.validate=F,v}catch(A){throw delete v.validate,delete v.validateName,S&&this.logger.error("Error compiling schema, function code:",S),A}finally{this._compilations.delete(v)}}ir.compileSchema=s;function l(v,g,b){var w;b=(0,i.resolveUrl)(this.opts.uriResolver,g,b);const E=v.refs[b];if(E)return E;let h=m.call(this,v,b);if(h===void 0){const y=(w=v.localRefs)===null||w===void 0?void 0:w[b],{schemaId:C}=this.opts;y&&(h=new o({schema:y,schemaId:C,root:v,baseId:g}))}if(h!==void 0)return v.refs[b]=u.call(this,h)}ir.resolveRef=l;function u(v){return(0,i.inlineRef)(v.schema,this.opts.inlineRefs)?v.schema:v.validate?v:s.call(this,v)}function c(v){for(const g of this._compilations)if(f(g,v))return g}ir.getCompilingSchema=c;function f(v,g){return v.schema===g.schema&&v.root===g.root&&v.baseId===g.baseId}function m(v,g){let b;for(;typeof(b=this.refs[g])=="string";)g=b;return b||this.schemas[g]||d.call(this,v,g)}function d(v,g){const b=this.opts.uriResolver.parse(g),w=(0,i._getFullPath)(this.opts.uriResolver,b);let E=(0,i.getFullPath)(this.opts.uriResolver,v.baseId,void 0);if(Object.keys(v.schema).length>0&&w===E)return k.call(this,b,v);const h=(0,i.normalizeId)(w),y=this.refs[h]||this.schemas[h];if(typeof y=="string"){const C=d.call(this,v,y);return typeof(C==null?void 0:C.schema)!="object"?void 0:k.call(this,b,C)}if(typeof(y==null?void 0:y.schema)=="object"){if(y.validate||s.call(this,y),h===(0,i.normalizeId)(g)){const{schema:C}=y,{schemaId:x}=this.opts,_=C[x];return _&&(E=(0,i.resolveUrl)(this.opts.uriResolver,E,_)),new o({schema:C,schemaId:x,root:v,baseId:E})}return k.call(this,b,y)}}ir.resolveSchema=d;const p=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function k(v,{baseId:g,schema:b,root:w}){var E;if(((E=v.fragment)===null||E===void 0?void 0:E[0])!=="/")return;for(const C of v.fragment.slice(1).split("/")){if(typeof b=="boolean")return;const x=b[(0,a.unescapeFragment)(C)];if(x===void 0)return;b=x;const _=typeof b=="object"&&b[this.opts.schemaId];!p.has(C)&&_&&(g=(0,i.resolveUrl)(this.opts.uriResolver,g,_))}let h;if(typeof b!="boolean"&&b.$ref&&!(0,a.schemaHasRulesButRef)(b,this.RULES)){const C=(0,i.resolveUrl)(this.opts.uriResolver,g,b.$ref);h=d.call(this,w,C)}const{schemaId:y}=this.opts;if(h=h||new o({schema:b,schemaId:y,root:w,baseId:g}),h.schema!==h.root.schema)return h}return ir}const ML={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1};var Ks={},fo={exports:{}},Zf,$b;function Ub(){if($b)return Zf;$b=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),r=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),a=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function n(h){let y="",C=0,x=0;for(x=0;x<h.length;x++)if(C=h[x].charCodeAt(0),C!==48){if(!(C>=48&&C<=57||C>=65&&C<=70||C>=97&&C<=102))return"";y+=h[x];break}for(x+=1;x<h.length;x++){if(C=h[x].charCodeAt(0),!(C>=48&&C<=57||C>=65&&C<=70||C>=97&&C<=102))return"";y+=h[x]}return y}const o=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function s(h){return h.length=0,!0}function l(h,y,C){if(h.length){const x=n(h);if(x!=="")y.push(x);else return C.error=!0,!1;h.length=0}return!0}function u(h){let y=0;const C={error:!1,address:"",zone:""},x=[],_=[];let S=!1,A=!1,O=l;for(let F=0;F<h.length;F++){const T=h[F];if(!(T==="["||T==="]"))if(T===":"){if(S===!0&&(A=!0),!O(_,x,C))break;if(++y>7){C.error=!0;break}F>0&&h[F-1]===":"&&(S=!0),x.push(":");continue}else if(T==="%"){if(!O(_,x,C))break;O=s}else{_.push(T);continue}}return _.length&&(O===s?C.zone=_.join(""):A?x.push(_.join("")):x.push(n(_))),C.address=x.join(""),C}function c(h){if(f(h,":")<2)return{host:h,isIPV6:!1};const y=u(h);if(y.error)return{host:h,isIPV6:!1};{let C=y.address,x=y.address;return y.zone&&(C+="%"+y.zone,x+="%25"+y.zone),{host:C,isIPV6:!0,escapedHost:x}}}function f(h,y){let C=0;for(let x=0;x<h.length;x++)h[x]===y&&C++;return C}function m(h){let y=h;const C=[];let x=-1,_=0;for(;_=y.length;){if(_===1){if(y===".")break;if(y==="/"){C.push("/");break}else{C.push(y);break}}else if(_===2){if(y[0]==="."){if(y[1]===".")break;if(y[1]==="/"){y=y.slice(2);continue}}else if(y[0]==="/"&&(y[1]==="."||y[1]==="/")){C.push("/");break}}else if(_===3&&y==="/.."){C.length!==0&&C.pop(),C.push("/");break}if(y[0]==="."){if(y[1]==="."){if(y[2]==="/"){y=y.slice(3);continue}}else if(y[1]==="/"){y=y.slice(2);continue}}else if(y[0]==="/"&&y[1]==="."){if(y[2]==="/"){y=y.slice(2);continue}else if(y[2]==="."&&y[3]==="/"){y=y.slice(3),C.length!==0&&C.pop();continue}}if((x=y.indexOf("/",1))===-1){C.push(y);break}else C.push(y.slice(0,x)),y=y.slice(x)}return C.join("")}const d={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},p=/[@/?#:]/g,k=/[@/?#]/g;function v(h,y){const C=y?k:p;return C.lastIndex=0,h.replace(C,x=>d[x])}function g(h,y=!1){if(h.indexOf("%")===-1)return h;let C="";for(let x=0;x<h.length;x++){if(h[x]==="%"&&x+2<h.length){const _=h.slice(x+1,x+3);if(r(_)){const S=_.toUpperCase(),A=String.fromCharCode(parseInt(S,16));y&&i(A)?C+=A:C+="%"+S,x+=2;continue}}C+=h[x]}return C}function b(h){let y="";for(let C=0;C<h.length;C++){if(h[C]==="%"&&C+2<h.length){const x=h.slice(C+1,C+3);if(r(x)){const _=x.toUpperCase(),S=String.fromCharCode(parseInt(_,16));S!=="."&&i(S)?y+=S:y+="%"+_,C+=2;continue}}a(h[C])?y+=h[C]:y+=escape(h[C])}return y}function w(h){let y="";for(let C=0;C<h.length;C++){if(h[C]==="%"&&C+2<h.length){const x=h.slice(C+1,C+3);if(r(x)){y+="%"+x.toUpperCase(),C+=2;continue}}y+=escape(h[C])}return y}function E(h){const y=[];if(h.userinfo!==void 0&&(y.push(h.userinfo),y.push("@")),h.host!==void 0){let C=unescape(h.host);if(!t(C)){const x=c(C);x.isIPV6===!0?C=`[${x.escapedHost}]`:C=v(C,!1)}y.push(C)}return(typeof h.port=="number"||typeof h.port=="string")&&(y.push(":"),y.push(String(h.port))),y.length?y.join(""):void 0}return Zf={nonSimpleDomain:o,recomposeAuthority:E,reescapeHostDelimiters:v,normalizePercentEncoding:g,normalizePathEncoding:b,escapePreservingEscapes:w,removeDotSegments:m,isIPv4:t,isUUID:e,normalizeIPv6:c,stringArrayToHexStripped:n},Zf}var Qf,Bb;function jL(){if(Bb)return Qf;Bb=1;const{isUUID:e}=Ub(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function i(h){return r.indexOf(h)!==-1}function a(h){return h.secure===!0?!0:h.secure===!1?!1:h.scheme?h.scheme.length===3&&(h.scheme[0]==="w"||h.scheme[0]==="W")&&(h.scheme[1]==="s"||h.scheme[1]==="S")&&(h.scheme[2]==="s"||h.scheme[2]==="S"):!1}function n(h){return h.host||(h.error=h.error||"HTTP URIs must have a host."),h}function o(h){const y=String(h.scheme).toLowerCase()==="https";return(h.port===(y?443:80)||h.port==="")&&(h.port=void 0),h.path||(h.path="/"),h}function s(h){return h.secure=a(h),h.resourceName=(h.path||"/")+(h.query?"?"+h.query:""),h.path=void 0,h.query=void 0,h}function l(h){if((h.port===(a(h)?443:80)||h.port==="")&&(h.port=void 0),typeof h.secure=="boolean"&&(h.scheme=h.secure?"wss":"ws",h.secure=void 0),h.resourceName){const[y,C]=h.resourceName.split("?");h.path=y&&y!=="/"?y:void 0,h.query=C,h.resourceName=void 0}return h.fragment=void 0,h}function u(h,y){if(!h.path)return h.error="URN can not be parsed",h;const C=h.path.match(t);if(C){const x=y.scheme||h.scheme||"urn";h.nid=C[1].toLowerCase(),h.nss=C[2];const _=`${x}:${y.nid||h.nid}`,S=E(_);h.path=void 0,S&&(h=S.parse(h,y))}else h.error=h.error||"URN can not be parsed.";return h}function c(h,y){if(h.nid===void 0)throw new Error("URN without nid cannot be serialized");const C=y.scheme||h.scheme||"urn",x=h.nid.toLowerCase(),_=`${C}:${y.nid||x}`,S=E(_);S&&(h=S.serialize(h,y));const A=h,O=h.nss;return A.path=`${x||y.nid}:${O}`,y.skipEscape=!0,A}function f(h,y){const C=h;return C.uuid=C.nss,C.nss=void 0,!y.tolerant&&(!C.uuid||!e(C.uuid))&&(C.error=C.error||"UUID is not valid."),C}function m(h){const y=h;return y.nss=(h.uuid||"").toLowerCase(),y}const d={scheme:"http",domainHost:!0,parse:n,serialize:o},p={scheme:"https",domainHost:d.domainHost,parse:n,serialize:o},k={scheme:"ws",domainHost:!0,parse:s,serialize:l},v={scheme:"wss",domainHost:k.domainHost,parse:k.parse,serialize:k.serialize},w={http:d,https:p,ws:k,wss:v,urn:{scheme:"urn",parse:u,serialize:c,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:m,skipNormalize:!0}};Object.setPrototypeOf(w,null);function E(h){return h&&(w[h]||w[h.toLowerCase()])||void 0}return Qf={wsIsSecure:a,SCHEMES:w,isValidSchemeName:i,getSchemeHandler:E},Qf}var Vb;function LL(){if(Vb)return fo.exports;Vb=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:i,normalizePathEncoding:a,escapePreservingEscapes:n,reescapeHostDelimiters:o,isIPv4:s,nonSimpleDomain:l}=Ub(),{SCHEMES:u,getSchemeHandler:c}=jL();function f(x,_){return typeof x=="string"?x=E(x,_):typeof x=="object"&&(x=w(k(x,_),_)),x}function m(x,_,S){const A=S?Object.assign({scheme:"null"},S):{scheme:"null"},O=d(w(x,A),w(_,A),A,!0);return A.skipEscape=!0,k(O,A)}function d(x,_,S,A){const O={};return A||(x=w(k(x,S),S),_=w(k(_,S),S)),S=S||{},!S.tolerant&&_.scheme?(O.scheme=_.scheme,O.userinfo=_.userinfo,O.host=_.host,O.port=_.port,O.path=t(_.path||""),O.query=_.query):(_.userinfo!==void 0||_.host!==void 0||_.port!==void 0?(O.userinfo=_.userinfo,O.host=_.host,O.port=_.port,O.path=t(_.path||""),O.query=_.query):(_.path?(_.path[0]==="/"?O.path=t(_.path):((x.userinfo!==void 0||x.host!==void 0||x.port!==void 0)&&!x.path?O.path="/"+_.path:x.path?O.path=x.path.slice(0,x.path.lastIndexOf("/")+1)+_.path:O.path=_.path,O.path=t(O.path)),O.query=_.query):(O.path=x.path,_.query!==void 0?O.query=_.query:O.query=x.query),O.userinfo=x.userinfo,O.host=x.host,O.port=x.port),O.scheme=x.scheme),O.fragment=_.fragment,O}function p(x,_,S){const A=y(x,S),O=y(_,S);return A!==void 0&&O!==void 0&&A.toLowerCase()===O.toLowerCase()}function k(x,_){const S={host:x.host,scheme:x.scheme,userinfo:x.userinfo,port:x.port,path:x.path,query:x.query,nid:x.nid,nss:x.nss,uuid:x.uuid,fragment:x.fragment,reference:x.reference,resourceName:x.resourceName,secure:x.secure,error:""},A=Object.assign({},_),O=[],F=c(A.scheme||S.scheme);F&&F.serialize&&F.serialize(S,A),S.path!==void 0&&(A.skipEscape?S.path=i(S.path):(S.path=n(S.path),S.scheme!==void 0&&(S.path=S.path.split("%3A").join(":")))),A.reference!=="suffix"&&S.scheme&&O.push(S.scheme,":");const T=r(S);if(T!==void 0&&(A.reference!=="suffix"&&O.push("//"),O.push(T),S.path&&S.path[0]!=="/"&&O.push("/")),S.path!==void 0){let M=S.path;!A.absolutePath&&(!F||!F.absolutePath)&&(M=t(M)),T===void 0&&M[0]==="/"&&M[1]==="/"&&(M="/%2F"+M.slice(2)),O.push(M)}return S.query!==void 0&&O.push("?",S.query),S.fragment!==void 0&&O.push("#",S.fragment),O.join("")}const v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function g(x,_){if(_[2]!==void 0&&x.path&&x.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof x.port=="number"&&(x.port<0||x.port>65535))return"URI port is malformed."}function b(x,_){const S=Object.assign({},_),A={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let O=!1,F=!1;S.reference==="suffix"&&(S.scheme?x=S.scheme+":"+x:x="//"+x);const T=x.match(v);if(T){A.scheme=T[1],A.userinfo=T[3],A.host=T[4],A.port=parseInt(T[5],10),A.path=T[6]||"",A.query=T[7],A.fragment=T[8],isNaN(A.port)&&(A.port=T[5]);const M=g(A,T);if(M!==void 0&&(A.error=A.error||M,O=!0),A.host)if(s(A.host)===!1){const Y=e(A.host);A.host=Y.host.toLowerCase(),F=Y.isIPV6}else F=!0;A.scheme===void 0&&A.userinfo===void 0&&A.host===void 0&&A.port===void 0&&A.query===void 0&&!A.path?A.reference="same-document":A.scheme===void 0?A.reference="relative":A.fragment===void 0?A.reference="absolute":A.reference="uri",S.reference&&S.reference!=="suffix"&&S.reference!==A.reference&&(A.error=A.error||"URI is not a "+S.reference+" reference.");const q=c(S.scheme||A.scheme);if(!S.unicodeSupport&&(!q||!q.unicodeSupport)&&A.host&&(S.domainHost||q&&q.domainHost)&&F===!1&&l(A.host))try{A.host=URL.domainToASCII(A.host.toLowerCase())}catch(J){A.error=A.error||"Host's domain name can not be converted to ASCII: "+J}if((!q||q&&!q.skipNormalize)&&(x.indexOf("%")!==-1&&(A.scheme!==void 0&&(A.scheme=unescape(A.scheme)),A.host!==void 0&&(A.host=o(unescape(A.host),F))),A.path&&(A.path=a(A.path)),A.fragment))try{A.fragment=encodeURI(decodeURIComponent(A.fragment))}catch{A.error=A.error||"URI malformed"}q&&q.parse&&q.parse(A,S)}else A.error=A.error||"URI can not be parsed.";return{parsed:A,malformedAuthorityOrPort:O}}function w(x,_){return b(x,_).parsed}function E(x,_){return h(x,_).normalized}function h(x,_){const{parsed:S,malformedAuthorityOrPort:A}=b(x,_);return{normalized:A?x:k(S,_),malformedAuthorityOrPort:A}}function y(x,_){if(typeof x=="string"){const{normalized:S,malformedAuthorityOrPort:A}=h(x,_);return A?void 0:S}if(typeof x=="object")return k(x,_)}const C={SCHEMES:u,normalize:f,resolve:m,resolveComponent:d,equal:p,serialize:k,parse:w};return fo.exports=C,fo.exports.default=C,fo.exports.fastUri=C,fo.exports}var Hb;function qL(){if(Hb)return Ks;Hb=1,Object.defineProperty(Ks,"__esModule",{value:!0});const e=LL();return e.code='require("ajv/dist/runtime/uri").default',Ks.default=e,Ks}var Kb;function RL(){return Kb||(Kb=1,(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=Us();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Fe();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 i=Yf(),a=Hs(),n=Ab(),o=Xf(),s=Fe(),l=$s(),u=zs(),c=He(),f=ML,m=qL(),d=(P,j)=>new RegExp(P,j);d.code="new RegExp";const p=["removeAdditional","useDefaults","coerceTypes"],k=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={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."},g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},b=200;function w(P){var j,B,I,D,L,U,$,H,G,X,z,R,W,K,ie,re,ue,ye,Se,ke,Pe,de,Ke,ut,ve;const Z=P.strict,ee=(j=P.code)===null||j===void 0?void 0:j.optimize,te=ee===!0||ee===void 0?1:ee||0,he=(I=(B=P.code)===null||B===void 0?void 0:B.regExp)!==null&&I!==void 0?I:d,ce=(D=P.uriResolver)!==null&&D!==void 0?D:m.default;return{strictSchema:(U=(L=P.strictSchema)!==null&&L!==void 0?L:Z)!==null&&U!==void 0?U:!0,strictNumbers:(H=($=P.strictNumbers)!==null&&$!==void 0?$:Z)!==null&&H!==void 0?H:!0,strictTypes:(X=(G=P.strictTypes)!==null&&G!==void 0?G:Z)!==null&&X!==void 0?X:"log",strictTuples:(R=(z=P.strictTuples)!==null&&z!==void 0?z:Z)!==null&&R!==void 0?R:"log",strictRequired:(K=(W=P.strictRequired)!==null&&W!==void 0?W:Z)!==null&&K!==void 0?K:!1,code:P.code?{...P.code,optimize:te,regExp:he}:{optimize:te,regExp:he},loopRequired:(ie=P.loopRequired)!==null&&ie!==void 0?ie:b,loopEnum:(re=P.loopEnum)!==null&&re!==void 0?re:b,meta:(ue=P.meta)!==null&&ue!==void 0?ue:!0,messages:(ye=P.messages)!==null&&ye!==void 0?ye:!0,inlineRefs:(Se=P.inlineRefs)!==null&&Se!==void 0?Se:!0,schemaId:(ke=P.schemaId)!==null&&ke!==void 0?ke:"$id",addUsedSchema:(Pe=P.addUsedSchema)!==null&&Pe!==void 0?Pe:!0,validateSchema:(de=P.validateSchema)!==null&&de!==void 0?de:!0,validateFormats:(Ke=P.validateFormats)!==null&&Ke!==void 0?Ke:!0,unicodeRegExp:(ut=P.unicodeRegExp)!==null&&ut!==void 0?ut:!0,int32range:(ve=P.int32range)!==null&&ve!==void 0?ve:!0,uriResolver:ce}}class E{constructor(j={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,j=this.opts={...j,...w(j)};const{es5:B,lines:I}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:k,es5:B,lines:I}),this.logger=O(j.logger);const D=j.validateFormats;j.validateFormats=!1,this.RULES=(0,n.getRules)(),h.call(this,v,j,"NOT SUPPORTED"),h.call(this,g,j,"DEPRECATED","warn"),this._metaOpts=S.call(this),j.formats&&x.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),j.keywords&&_.call(this,j.keywords),typeof j.meta=="object"&&this.addMetaSchema(j.meta),C.call(this),j.validateFormats=D}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:j,meta:B,schemaId:I}=this.opts;let D=f;I==="id"&&(D={...f},D.id=D.$id,delete D.$id),B&&j&&this.addMetaSchema(D,D[I],!1)}defaultMeta(){const{meta:j,schemaId:B}=this.opts;return this.opts.defaultMeta=typeof j=="object"?j[B]||j:void 0}validate(j,B){let I;if(typeof j=="string"){if(I=this.getSchema(j),!I)throw new Error(`no schema with key or ref "${j}"`)}else I=this.compile(j);const D=I(B);return"$async"in I||(this.errors=I.errors),D}compile(j,B){const I=this._addSchema(j,B);return I.validate||this._compileSchemaEnv(I)}compileAsync(j,B){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:I}=this.opts;return D.call(this,j,B);async function D(X,z){await L.call(this,X.$schema);const R=this._addSchema(X,z);return R.validate||U.call(this,R)}async function L(X){X&&!this.getSchema(X)&&await D.call(this,{$ref:X},!0)}async function U(X){try{return this._compileSchemaEnv(X)}catch(z){if(!(z instanceof a.default))throw z;return $.call(this,z),await H.call(this,z.missingSchema),U.call(this,X)}}function $({missingSchema:X,missingRef:z}){if(this.refs[X])throw new Error(`AnySchema ${X} is loaded but ${z} cannot be resolved`)}async function H(X){const z=await G.call(this,X);this.refs[X]||await L.call(this,z.$schema),this.refs[X]||this.addSchema(z,X,B)}async function G(X){const z=this._loading[X];if(z)return z;try{return await(this._loading[X]=I(X))}finally{delete this._loading[X]}}}addSchema(j,B,I,D=this.opts.validateSchema){if(Array.isArray(j)){for(const U of j)this.addSchema(U,void 0,I,D);return this}let L;if(typeof j=="object"){const{schemaId:U}=this.opts;if(L=j[U],L!==void 0&&typeof L!="string")throw new Error(`schema ${U} must be string`)}return B=(0,l.normalizeId)(B||L),this._checkUnique(B),this.schemas[B]=this._addSchema(j,I,B,D,!0),this}addMetaSchema(j,B,I=this.opts.validateSchema){return this.addSchema(j,B,!0,I),this}validateSchema(j,B){if(typeof j=="boolean")return!0;let I;if(I=j.$schema,I!==void 0&&typeof I!="string")throw new Error("$schema must be a string");if(I=I||this.opts.defaultMeta||this.defaultMeta(),!I)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const D=this.validate(I,j);if(!D&&B){const L="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(L);else throw new Error(L)}return D}getSchema(j){let B;for(;typeof(B=y.call(this,j))=="string";)j=B;if(B===void 0){const{schemaId:I}=this.opts,D=new o.SchemaEnv({schema:{},schemaId:I});if(B=o.resolveSchema.call(this,D,j),!B)return;this.refs[j]=B}return B.validate||this._compileSchemaEnv(B)}removeSchema(j){if(j instanceof RegExp)return this._removeAllSchemas(this.schemas,j),this._removeAllSchemas(this.refs,j),this;switch(typeof j){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const B=y.call(this,j);return typeof B=="object"&&this._cache.delete(B.schema),delete this.schemas[j],delete this.refs[j],this}case"object":{const B=j;this._cache.delete(B);let I=j[this.opts.schemaId];return I&&(I=(0,l.normalizeId)(I),delete this.schemas[I],delete this.refs[I]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(j){for(const B of j)this.addKeyword(B);return this}addKeyword(j,B){let I;if(typeof j=="string")I=j,typeof B=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),B.keyword=I);else if(typeof j=="object"&&B===void 0){if(B=j,I=B.keyword,Array.isArray(I)&&!I.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(T.call(this,I,B),!B)return(0,c.eachItem)(I,L=>M.call(this,L)),this;J.call(this,B);const D={...B,type:(0,u.getJSONTypes)(B.type),schemaType:(0,u.getJSONTypes)(B.schemaType)};return(0,c.eachItem)(I,D.type.length===0?L=>M.call(this,L,D):L=>D.type.forEach(U=>M.call(this,L,D,U))),this}getKeyword(j){const B=this.RULES.all[j];return typeof B=="object"?B.definition:!!B}removeKeyword(j){const{RULES:B}=this;delete B.keywords[j],delete B.all[j];for(const I of B.rules){const D=I.rules.findIndex(L=>L.keyword===j);D>=0&&I.rules.splice(D,1)}return this}addFormat(j,B){return typeof B=="string"&&(B=new RegExp(B)),this.formats[j]=B,this}errorsText(j=this.errors,{separator:B=", ",dataVar:I="data"}={}){return!j||j.length===0?"No errors":j.map(D=>`${I}${D.instancePath} ${D.message}`).reduce((D,L)=>D+B+L)}$dataMetaSchema(j,B){const I=this.RULES.all;j=JSON.parse(JSON.stringify(j));for(const D of B){const L=D.split("/").slice(1);let U=j;for(const $ of L)U=U[$];for(const $ in I){const H=I[$];if(typeof H!="object")continue;const{$data:G}=H.definition,X=U[$];G&&X&&(U[$]=Q(X))}}return j}_removeAllSchemas(j,B){for(const I in j){const D=j[I];(!B||B.test(I))&&(typeof D=="string"?delete j[I]:D&&!D.meta&&(this._cache.delete(D.schema),delete j[I]))}}_addSchema(j,B,I,D=this.opts.validateSchema,L=this.opts.addUsedSchema){let U;const{schemaId:$}=this.opts;if(typeof j=="object")U=j[$];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof j!="boolean")throw new Error("schema must be object or boolean")}let H=this._cache.get(j);if(H!==void 0)return H;I=(0,l.normalizeId)(U||I);const G=l.getSchemaRefs.call(this,j,I);return H=new o.SchemaEnv({schema:j,schemaId:$,meta:B,baseId:I,localRefs:G}),this._cache.set(H.schema,H),L&&!I.startsWith("#")&&(I&&this._checkUnique(I),this.refs[I]=H),D&&this.validateSchema(j,!0),H}_checkUnique(j){if(this.schemas[j]||this.refs[j])throw new Error(`schema with key or id "${j}" already exists`)}_compileSchemaEnv(j){if(j.meta?this._compileMetaSchema(j):o.compileSchema.call(this,j),!j.validate)throw new Error("ajv implementation error");return j.validate}_compileMetaSchema(j){const B=this.opts;this.opts=this._metaOpts;try{o.compileSchema.call(this,j)}finally{this.opts=B}}}E.ValidationError=i.default,E.MissingRefError=a.default,e.default=E;function h(P,j,B,I="error"){for(const D in P){const L=D;L in j&&this.logger[I](`${B}: option ${D}. ${P[L]}`)}}function y(P){return P=(0,l.normalizeId)(P),this.schemas[P]||this.refs[P]}function C(){const P=this.opts.schemas;if(P)if(Array.isArray(P))this.addSchema(P);else for(const j in P)this.addSchema(P[j],j)}function x(){for(const P in this.opts.formats){const j=this.opts.formats[P];j&&this.addFormat(P,j)}}function _(P){if(Array.isArray(P)){this.addVocabulary(P);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const j in P){const B=P[j];B.keyword||(B.keyword=j),this.addKeyword(B)}}function S(){const P={...this.opts};for(const j of p)delete P[j];return P}const A={log(){},warn(){},error(){}};function O(P){if(P===!1)return A;if(P===void 0)return console;if(P.log&&P.warn&&P.error)return P;throw new Error("logger must implement log, warn and error methods")}const F=/^[a-z_$][a-z0-9_$:-]*$/i;function T(P,j){const{RULES:B}=this;if((0,c.eachItem)(P,I=>{if(B.keywords[I])throw new Error(`Keyword ${I} is already defined`);if(!F.test(I))throw new Error(`Keyword ${I} has invalid name`)}),!!j&&j.$data&&!("code"in j||"validate"in j))throw new Error('$data keyword must have "code" or "validate" function')}function M(P,j,B){var I;const D=j==null?void 0:j.post;if(B&&D)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:L}=this;let U=D?L.post:L.rules.find(({type:H})=>H===B);if(U||(U={type:B,rules:[]},L.rules.push(U)),L.keywords[P]=!0,!j)return;const $={keyword:P,definition:{...j,type:(0,u.getJSONTypes)(j.type),schemaType:(0,u.getJSONTypes)(j.schemaType)}};j.before?q.call(this,U,$,j.before):U.rules.push($),L.all[P]=$,(I=j.implements)===null||I===void 0||I.forEach(H=>this.addKeyword(H))}function q(P,j,B){const I=P.rules.findIndex(D=>D.keyword===B);I>=0?P.rules.splice(I,0,j):(P.rules.push(j),this.logger.warn(`rule ${B} is not defined`))}function J(P){let{metaSchema:j}=P;j!==void 0&&(P.$data&&this.opts.$data&&(j=Q(j)),P.validateSchema=this.compile(j,!0))}const Y={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Q(P){return{anyOf:[P,Y]}}})(Bf)),Bf}var Ws={},Gs={},Js={},Wb;function zL(){if(Wb)return Js;Wb=1,Object.defineProperty(Js,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Js.default=e,Js}var Rn={},Gb;function $L(){if(Gb)return Rn;Gb=1,Object.defineProperty(Rn,"__esModule",{value:!0}),Rn.callRef=Rn.getValidate=void 0;const e=Hs(),t=Dr(),r=Fe(),i=qn(),a=Xf(),n=He(),o={keyword:"$ref",schemaType:"string",code(u){const{gen:c,schema:f,it:m}=u,{baseId:d,schemaEnv:p,validateName:k,opts:v,self:g}=m,{root:b}=p;if((f==="#"||f==="#/")&&d===b.baseId)return E();const w=a.resolveRef.call(g,b,d,f);if(w===void 0)throw new e.default(m.opts.uriResolver,d,f);if(w instanceof a.SchemaEnv)return h(w);return y(w);function E(){if(p===b)return l(u,k,p,p.$async);const C=c.scopeValue("root",{ref:b});return l(u,(0,r._)`${C}.validate`,b,b.$async)}function h(C){const x=s(u,C);l(u,x,C,C.$async)}function y(C){const x=c.scopeValue("schema",v.code.source===!0?{ref:C,code:(0,r.stringify)(C)}:{ref:C}),_=c.name("valid"),S=u.subschema({schema:C,dataTypes:[],schemaPath:r.nil,topSchemaRef:x,errSchemaPath:f},_);u.mergeEvaluated(S),u.ok(_)}}};function s(u,c){const{gen:f}=u;return c.validate?f.scopeValue("validate",{ref:c.validate}):(0,r._)`${f.scopeValue("wrapper",{ref:c})}.validate`}Rn.getValidate=s;function l(u,c,f,m){const{gen:d,it:p}=u,{allErrors:k,schemaEnv:v,opts:g}=p,b=g.passContext?i.default.this:r.nil;m?w():E();function w(){if(!v.$async)throw new Error("async schema referenced by sync schema");const C=d.let("valid");d.try(()=>{d.code((0,r._)`await ${(0,t.callValidateCode)(u,c,b)}`),y(c),k||d.assign(C,!0)},x=>{d.if((0,r._)`!(${x} instanceof ${p.ValidationError})`,()=>d.throw(x)),h(x),k||d.assign(C,!1)}),u.ok(C)}function E(){u.result((0,t.callValidateCode)(u,c,b),()=>y(c),()=>h(c))}function h(C){const x=(0,r._)`${C}.errors`;d.assign(i.default.vErrors,(0,r._)`${i.default.vErrors} === null ? ${x} : ${i.default.vErrors}.concat(${x})`),d.assign(i.default.errors,(0,r._)`${i.default.vErrors}.length`)}function y(C){var x;if(!p.opts.unevaluated)return;const _=(x=f==null?void 0:f.validate)===null||x===void 0?void 0:x.evaluated;if(p.props!==!0)if(_&&!_.dynamicProps)_.props!==void 0&&(p.props=n.mergeEvaluated.props(d,_.props,p.props));else{const S=d.var("props",(0,r._)`${C}.evaluated.props`);p.props=n.mergeEvaluated.props(d,S,p.props,r.Name)}if(p.items!==!0)if(_&&!_.dynamicItems)_.items!==void 0&&(p.items=n.mergeEvaluated.items(d,_.items,p.items));else{const S=d.var("items",(0,r._)`${C}.evaluated.items`);p.items=n.mergeEvaluated.items(d,S,p.items,r.Name)}}}return Rn.callRef=l,Rn.default=o,Rn}var Jb;function UL(){if(Jb)return Gs;Jb=1,Object.defineProperty(Gs,"__esModule",{value:!0});const e=zL(),t=$L(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Gs.default=r,Gs}var Ys={},Xs={},Yb;function BL(){if(Yb)return Xs;Yb=1,Object.defineProperty(Xs,"__esModule",{value:!0});const e=Fe(),t=e.operators,r={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},i={message:({keyword:n,schemaCode:o})=>(0,e.str)`must be ${r[n].okStr} ${o}`,params:({keyword:n,schemaCode:o})=>(0,e._)`{comparison: ${r[n].okStr}, limit: ${o}}`},a={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:i,code(n){const{keyword:o,data:s,schemaCode:l}=n;n.fail$data((0,e._)`${s} ${r[o].fail} ${l} || isNaN(${s})`)}};return Xs.default=a,Xs}var Zs={},Xb;function VL(){if(Xb)return Zs;Xb=1,Object.defineProperty(Zs,"__esModule",{value:!0});const e=Fe(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:i})=>(0,e.str)`must be multiple of ${i}`,params:({schemaCode:i})=>(0,e._)`{multipleOf: ${i}}`},code(i){const{gen:a,data:n,schemaCode:o,it:s}=i,l=s.opts.multipleOfPrecision,u=a.let("res"),c=l?(0,e._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${l}`:(0,e._)`${u} !== parseInt(${u})`;i.fail$data((0,e._)`(${o} === 0 || (${u} = ${n}/${o}, ${c}))`)}};return Zs.default=r,Zs}var Qs={},el={},Zb;function HL(){if(Zb)return el;Zb=1,Object.defineProperty(el,"__esModule",{value:!0});function e(t){const r=t.length;let i=0,a=0,n;for(;a<r;)i++,n=t.charCodeAt(a++),n>=55296&&n<=56319&&a<r&&(n=t.charCodeAt(a),(n&64512)===56320&&a++);return i}return el.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',el}var Qb;function KL(){if(Qb)return Qs;Qb=1,Object.defineProperty(Qs,"__esModule",{value:!0});const e=Fe(),t=He(),r=HL(),a={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:o}){const s=n==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${s} than ${o} characters`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:o,data:s,schemaCode:l,it:u}=n,c=o==="maxLength"?e.operators.GT:e.operators.LT,f=u.opts.unicode===!1?(0,e._)`${s}.length`:(0,e._)`${(0,t.useFunc)(n.gen,r.default)}(${s})`;n.fail$data((0,e._)`${f} ${c} ${l}`)}};return Qs.default=a,Qs}var tl={},ek;function WL(){if(ek)return tl;ek=1,Object.defineProperty(tl,"__esModule",{value:!0});const e=Dr(),t=He(),r=Fe(),a={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,r.str)`must match pattern "${n}"`,params:({schemaCode:n})=>(0,r._)`{pattern: ${n}}`},code(n){const{gen:o,data:s,$data:l,schema:u,schemaCode:c,it:f}=n,m=f.opts.unicodeRegExp?"u":"";if(l){const{regExp:d}=f.opts.code,p=d.code==="new RegExp"?(0,r._)`new RegExp`:(0,t.useFunc)(o,d),k=o.let("valid");o.try(()=>o.assign(k,(0,r._)`${p}(${c}, ${m}).test(${s})`),()=>o.assign(k,!1)),n.fail$data((0,r._)`!${k}`)}else{const d=(0,e.usePattern)(n,u);n.fail$data((0,r._)`!${d}.test(${s})`)}}};return tl.default=a,tl}var rl={},tk;function GL(){if(tk)return rl;tk=1,Object.defineProperty(rl,"__esModule",{value:!0});const e=Fe(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:i,schemaCode:a}){const n=i==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${n} than ${a} properties`},params:({schemaCode:i})=>(0,e._)`{limit: ${i}}`},code(i){const{keyword:a,data:n,schemaCode:o}=i,s=a==="maxProperties"?e.operators.GT:e.operators.LT;i.fail$data((0,e._)`Object.keys(${n}).length ${s} ${o}`)}};return rl.default=r,rl}var nl={},rk;function JL(){if(rk)return nl;rk=1,Object.defineProperty(nl,"__esModule",{value:!0});const e=Dr(),t=Fe(),r=He(),a={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:n}})=>(0,t.str)`must have required property '${n}'`,params:({params:{missingProperty:n}})=>(0,t._)`{missingProperty: ${n}}`},code(n){const{gen:o,schema:s,schemaCode:l,data:u,$data:c,it:f}=n,{opts:m}=f;if(!c&&s.length===0)return;const d=s.length>=m.loopRequired;if(f.allErrors?p():k(),m.strictRequired){const b=n.parentSchema.properties,{definedProperties:w}=n.it;for(const E of s)if((b==null?void 0:b[E])===void 0&&!w.has(E)){const h=f.schemaEnv.baseId+f.errSchemaPath,y=`required property "${E}" is not defined at "${h}" (strictRequired)`;(0,r.checkStrictMode)(f,y,f.opts.strictRequired)}}function p(){if(d||c)n.block$data(t.nil,v);else for(const b of s)(0,e.checkReportMissingProp)(n,b)}function k(){const b=o.let("missing");if(d||c){const w=o.let("valid",!0);n.block$data(w,()=>g(b,w)),n.ok(w)}else o.if((0,e.checkMissingProp)(n,s,b)),(0,e.reportMissingProp)(n,b),o.else()}function v(){o.forOf("prop",l,b=>{n.setParams({missingProperty:b}),o.if((0,e.noPropertyInData)(o,u,b,m.ownProperties),()=>n.error())})}function g(b,w){n.setParams({missingProperty:b}),o.forOf(b,l,()=>{o.assign(w,(0,e.propertyInData)(o,u,b,m.ownProperties)),o.if((0,t.not)(w),()=>{n.error(),o.break()})},t.nil)}}};return nl.default=a,nl}var il={},nk;function YL(){if(nk)return il;nk=1,Object.defineProperty(il,"__esModule",{value:!0});const e=Fe(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:i,schemaCode:a}){const n=i==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${n} than ${a} items`},params:({schemaCode:i})=>(0,e._)`{limit: ${i}}`},code(i){const{keyword:a,data:n,schemaCode:o}=i,s=a==="maxItems"?e.operators.GT:e.operators.LT;i.fail$data((0,e._)`${n}.length ${s} ${o}`)}};return il.default=r,il}var al={},ol={},ik;function ed(){if(ik)return ol;ik=1,Object.defineProperty(ol,"__esModule",{value:!0});const e=Db();return e.code='require("ajv/dist/runtime/equal").default',ol.default=e,ol}var ak;function XL(){if(ak)return al;ak=1,Object.defineProperty(al,"__esModule",{value:!0});const e=zs(),t=Fe(),r=He(),i=ed(),n={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:o,j:s}})=>(0,t.str)`must NOT have duplicate items (items ## ${s} and ${o} are identical)`,params:({params:{i:o,j:s}})=>(0,t._)`{i: ${o}, j: ${s}}`},code(o){const{gen:s,data:l,$data:u,schema:c,parentSchema:f,schemaCode:m,it:d}=o;if(!u&&!c)return;const p=s.let("valid"),k=f.items?(0,e.getSchemaTypes)(f.items):[];o.block$data(p,v,(0,t._)`${m} === false`),o.ok(p);function v(){const E=s.let("i",(0,t._)`${l}.length`),h=s.let("j");o.setParams({i:E,j:h}),s.assign(p,!0),s.if((0,t._)`${E} > 1`,()=>(g()?b:w)(E,h))}function g(){return k.length>0&&!k.some(E=>E==="object"||E==="array")}function b(E,h){const y=s.name("item"),C=(0,e.checkDataTypes)(k,y,d.opts.strictNumbers,e.DataType.Wrong),x=s.const("indices",(0,t._)`{}`);s.for((0,t._)`;${E}--;`,()=>{s.let(y,(0,t._)`${l}[${E}]`),s.if(C,(0,t._)`continue`),k.length>1&&s.if((0,t._)`typeof ${y} == "string"`,(0,t._)`${y} += "_"`),s.if((0,t._)`typeof ${x}[${y}] == "number"`,()=>{s.assign(h,(0,t._)`${x}[${y}]`),o.error(),s.assign(p,!1).break()}).code((0,t._)`${x}[${y}] = ${E}`)})}function w(E,h){const y=(0,r.useFunc)(s,i.default),C=s.name("outer");s.label(C).for((0,t._)`;${E}--;`,()=>s.for((0,t._)`${h} = ${E}; ${h}--;`,()=>s.if((0,t._)`${y}(${l}[${E}], ${l}[${h}])`,()=>{o.error(),s.assign(p,!1).break(C)})))}}};return al.default=n,al}var sl={},ok;function ZL(){if(ok)return sl;ok=1,Object.defineProperty(sl,"__esModule",{value:!0});const e=Fe(),t=He(),r=ed(),a={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:n})=>(0,e._)`{allowedValue: ${n}}`},code(n){const{gen:o,data:s,$data:l,schemaCode:u,schema:c}=n;l||c&&typeof c=="object"?n.fail$data((0,e._)`!${(0,t.useFunc)(o,r.default)}(${s}, ${u})`):n.fail((0,e._)`${c} !== ${s}`)}};return sl.default=a,sl}var ll={},sk;function QL(){if(sk)return ll;sk=1,Object.defineProperty(ll,"__esModule",{value:!0});const e=Fe(),t=He(),r=ed(),a={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:n})=>(0,e._)`{allowedValues: ${n}}`},code(n){const{gen:o,data:s,$data:l,schema:u,schemaCode:c,it:f}=n;if(!l&&u.length===0)throw new Error("enum must have non-empty array");const m=u.length>=f.opts.loopEnum;let d;const p=()=>d??(d=(0,t.useFunc)(o,r.default));let k;if(m||l)k=o.let("valid"),n.block$data(k,v);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const b=o.const("vSchema",c);k=(0,e.or)(...u.map((w,E)=>g(b,E)))}n.pass(k);function v(){o.assign(k,!1),o.forOf("v",c,b=>o.if((0,e._)`${p()}(${s}, ${b})`,()=>o.assign(k,!0).break()))}function g(b,w){const E=u[w];return typeof E=="object"&&E!==null?(0,e._)`${p()}(${s}, ${b}[${w}])`:(0,e._)`${s} === ${E}`}}};return ll.default=a,ll}var lk;function eq(){if(lk)return Ys;lk=1,Object.defineProperty(Ys,"__esModule",{value:!0});const e=BL(),t=VL(),r=KL(),i=WL(),a=GL(),n=JL(),o=YL(),s=XL(),l=ZL(),u=QL(),c=[e.default,t.default,r.default,i.default,a.default,n.default,o.default,s.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},l.default,u.default];return Ys.default=c,Ys}var ul={},sa={},uk;function ck(){if(uk)return sa;uk=1,Object.defineProperty(sa,"__esModule",{value:!0}),sa.validateAdditionalItems=void 0;const e=Fe(),t=He(),i={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:n}})=>(0,e.str)`must NOT have more than ${n} items`,params:({params:{len:n}})=>(0,e._)`{limit: ${n}}`},code(n){const{parentSchema:o,it:s}=n,{items:l}=o;if(!Array.isArray(l)){(0,t.checkStrictMode)(s,'"additionalItems" is ignored when "items" is not an array of schemas');return}a(n,l)}};function a(n,o){const{gen:s,schema:l,data:u,keyword:c,it:f}=n;f.items=!0;const m=s.const("len",(0,e._)`${u}.length`);if(l===!1)n.setParams({len:o.length}),n.pass((0,e._)`${m} <= ${o.length}`);else if(typeof l=="object"&&!(0,t.alwaysValidSchema)(f,l)){const p=s.var("valid",(0,e._)`${m} <= ${o.length}`);s.if((0,e.not)(p),()=>d(p)),n.ok(p)}function d(p){s.forRange("i",o.length,m,k=>{n.subschema({keyword:c,dataProp:k,dataPropType:t.Type.Num},p),f.allErrors||s.if((0,e.not)(p),()=>s.break())})}}return sa.validateAdditionalItems=a,sa.default=i,sa}var cl={},la={},fk;function dk(){if(fk)return la;fk=1,Object.defineProperty(la,"__esModule",{value:!0}),la.validateTuple=void 0;const e=Fe(),t=He(),r=Dr(),i={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(n){const{schema:o,it:s}=n;if(Array.isArray(o))return a(n,"additionalItems",o);s.items=!0,!(0,t.alwaysValidSchema)(s,o)&&n.ok((0,r.validateArray)(n))}};function a(n,o,s=n.schema){const{gen:l,parentSchema:u,data:c,keyword:f,it:m}=n;k(u),m.opts.unevaluated&&s.length&&m.items!==!0&&(m.items=t.mergeEvaluated.items(l,s.length,m.items));const d=l.name("valid"),p=l.const("len",(0,e._)`${c}.length`);s.forEach((v,g)=>{(0,t.alwaysValidSchema)(m,v)||(l.if((0,e._)`${p} > ${g}`,()=>n.subschema({keyword:f,schemaProp:g,dataProp:g},d)),n.ok(d))});function k(v){const{opts:g,errSchemaPath:b}=m,w=s.length,E=w===v.minItems&&(w===v.maxItems||v[o]===!1);if(g.strictTuples&&!E){const h=`"${f}" is ${w}-tuple, but minItems or maxItems/${o} are not specified or different at path "${b}"`;(0,t.checkStrictMode)(m,h,g.strictTuples)}}}return la.validateTuple=a,la.default=i,la}var mk;function tq(){if(mk)return cl;mk=1,Object.defineProperty(cl,"__esModule",{value:!0});const e=dk(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return cl.default=t,cl}var fl={},pk;function rq(){if(pk)return fl;pk=1,Object.defineProperty(fl,"__esModule",{value:!0});const e=Fe(),t=He(),r=Dr(),i=ck(),n={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:o}})=>(0,e.str)`must NOT have more than ${o} items`,params:({params:{len:o}})=>(0,e._)`{limit: ${o}}`},code(o){const{schema:s,parentSchema:l,it:u}=o,{prefixItems:c}=l;u.items=!0,!(0,t.alwaysValidSchema)(u,s)&&(c?(0,i.validateAdditionalItems)(o,c):o.ok((0,r.validateArray)(o)))}};return fl.default=n,fl}var dl={},hk;function nq(){if(hk)return dl;hk=1,Object.defineProperty(dl,"__esModule",{value:!0});const e=Fe(),t=He(),i={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:a,max:n}})=>n===void 0?(0,e.str)`must contain at least ${a} valid item(s)`:(0,e.str)`must contain at least ${a} and no more than ${n} valid item(s)`,params:({params:{min:a,max:n}})=>n===void 0?(0,e._)`{minContains: ${a}}`:(0,e._)`{minContains: ${a}, maxContains: ${n}}`},code(a){const{gen:n,schema:o,parentSchema:s,data:l,it:u}=a;let c,f;const{minContains:m,maxContains:d}=s;u.opts.next?(c=m===void 0?1:m,f=d):c=1;const p=n.const("len",(0,e._)`${l}.length`);if(a.setParams({min:c,max:f}),f===void 0&&c===0){(0,t.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(f!==void 0&&c>f){(0,t.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),a.fail();return}if((0,t.alwaysValidSchema)(u,o)){let w=(0,e._)`${p} >= ${c}`;f!==void 0&&(w=(0,e._)`${w} && ${p} <= ${f}`),a.pass(w);return}u.items=!0;const k=n.name("valid");f===void 0&&c===1?g(k,()=>n.if(k,()=>n.break())):c===0?(n.let(k,!0),f!==void 0&&n.if((0,e._)`${l}.length > 0`,v)):(n.let(k,!1),v()),a.result(k,()=>a.reset());function v(){const w=n.name("_valid"),E=n.let("count",0);g(w,()=>n.if(w,()=>b(E)))}function g(w,E){n.forRange("i",0,p,h=>{a.subschema({keyword:"contains",dataProp:h,dataPropType:t.Type.Num,compositeRule:!0},w),E()})}function b(w){n.code((0,e._)`${w}++`),f===void 0?n.if((0,e._)`${w} >= ${c}`,()=>n.assign(k,!0).break()):(n.if((0,e._)`${w} > ${f}`,()=>n.assign(k,!1).break()),c===1?n.assign(k,!0):n.if((0,e._)`${w} >= ${c}`,()=>n.assign(k,!0)))}}};return dl.default=i,dl}var td={},gk;function iq(){return gk||(gk=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Fe(),r=He(),i=Dr();e.error={message:({params:{property:l,depsCount:u,deps:c}})=>{const f=u===1?"property":"properties";return(0,t.str)`must have ${f} ${c} when property ${l} is present`},params:({params:{property:l,depsCount:u,deps:c,missingProperty:f}})=>(0,t._)`{property: ${l},
|
|
103
129
|
missingProperty: ${f},
|
|
104
|
-
depsCount: ${
|
|
105
|
-
deps: ${u}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[l,u]=n(c);o(c,l),s(c,u)}};function n({schema:c}){const l={},u={};for(const f in c){if(f==="__proto__")continue;const p=Array.isArray(c[f])?l:u;p[f]=c[f]}return[l,u]}function o(c,l=c.schema){const{gen:u,data:f,it:p}=c;if(Object.keys(l).length===0)return;const d=u.let("missing");for(const h in l){const k=l[h];if(k.length===0)continue;const v=(0,a.propertyInData)(u,f,h,p.opts.ownProperties);c.setParams({property:h,depsCount:k.length,deps:k.join(", ")}),p.allErrors?u.if(v,()=>{for(const y of k)(0,a.checkReportMissingProp)(c,y)}):(u.if((0,t._)`${v} && (${(0,a.checkMissingProp)(c,k,d)})`),(0,a.reportMissingProp)(c,d),u.else())}}e.validatePropertyDeps=o;function s(c,l=c.schema){const{gen:u,data:f,keyword:p,it:d}=c,h=u.name("valid");for(const k in l)(0,r.alwaysValidSchema)(d,l[k])||(u.if((0,a.propertyInData)(u,f,k,d.opts.ownProperties),()=>{const v=c.subschema({keyword:p,schemaProp:k},h);c.mergeValidEvaluated(v,h)},()=>u.var(h,!0)),c.ok(h))}e.validateSchemaDeps=s,e.default=i})(od)),od}var Vl={},Cb;function RD(){if(Cb)return Vl;Cb=1,Object.defineProperty(Vl,"__esModule",{value:!0});const e=Ue(),t=et(),a={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:i})=>(0,e._)`{propertyName: ${i.propertyName}}`},code(i){const{gen:n,schema:o,data:s,it:c}=i;if((0,t.alwaysValidSchema)(c,o))return;const l=n.name("valid");n.forIn("key",s,u=>{i.setParams({propertyName:u}),i.subschema({keyword:"propertyNames",data:u,dataTypes:["string"],propertyName:u,compositeRule:!0},l),n.if((0,e.not)(l),()=>{i.error(!0),c.allErrors||n.break()})}),i.ok(l)}};return Vl.default=a,Vl}var Hl={},Ab;function _b(){if(Ab)return Hl;Ab=1,Object.defineProperty(Hl,"__esModule",{value:!0});const e=fn(),t=Ue(),r=ka(),a=et(),n={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:o})=>(0,t._)`{additionalProperty: ${o.additionalProperty}}`},code(o){const{gen:s,schema:c,parentSchema:l,data:u,errsCount:f,it:p}=o;if(!f)throw new Error("ajv implementation error");const{allErrors:d,opts:h}=p;if(p.props=!0,h.removeAdditional!=="all"&&(0,a.alwaysValidSchema)(p,c))return;const k=(0,e.allSchemaProperties)(l.properties),v=(0,e.allSchemaProperties)(l.patternProperties);y(),o.ok((0,t._)`${f} === ${r.default.errors}`);function y(){s.forIn("key",u,g=>{!k.length&&!v.length?E(g):s.if(b(g),()=>E(g))})}function b(g){let S;if(k.length>8){const A=(0,a.schemaRefOrVal)(p,l.properties,"properties");S=(0,e.isOwnProperty)(s,A,g)}else k.length?S=(0,t.or)(...k.map(A=>(0,t._)`${g} === ${A}`)):S=t.nil;return v.length&&(S=(0,t.or)(S,...v.map(A=>(0,t._)`${(0,e.usePattern)(o,A)}.test(${g})`))),(0,t.not)(S)}function w(g){s.code((0,t._)`delete ${u}[${g}]`)}function E(g){if(h.removeAdditional==="all"||h.removeAdditional&&c===!1){w(g);return}if(c===!1){o.setParams({additionalProperty:g}),o.error(),d||s.break();return}if(typeof c=="object"&&!(0,a.alwaysValidSchema)(p,c)){const S=s.name("valid");h.removeAdditional==="failing"?(m(g,S,!1),s.if((0,t.not)(S),()=>{o.reset(),w(g)})):(m(g,S),d||s.if((0,t.not)(S),()=>s.break()))}}function m(g,S,A){const x={keyword:"additionalProperties",dataProp:g,dataPropType:a.Type.Str};A===!1&&Object.assign(x,{compositeRule:!0,createErrors:!1,allErrors:!1}),o.subschema(x,S)}}};return Hl.default=n,Hl}var Wl={},Ob;function qD(){if(Ob)return Wl;Ob=1,Object.defineProperty(Wl,"__esModule",{value:!0});const e=bl(),t=fn(),r=et(),a=_b(),i={keyword:"properties",type:"object",schemaType:"object",code(n){const{gen:o,schema:s,parentSchema:c,data:l,it:u}=n;u.opts.removeAdditional==="all"&&c.additionalProperties===void 0&&a.default.code(new e.KeywordCxt(u,a.default,"additionalProperties"));const f=(0,t.allSchemaProperties)(s);for(const v of f)u.definedProperties.add(v);u.opts.unevaluated&&f.length&&u.props!==!0&&(u.props=r.mergeEvaluated.props(o,(0,r.toHash)(f),u.props));const p=f.filter(v=>!(0,r.alwaysValidSchema)(u,s[v]));if(p.length===0)return;const d=o.name("valid");for(const v of p)h(v)?k(v):(o.if((0,t.propertyInData)(o,l,v,u.opts.ownProperties)),k(v),u.allErrors||o.else().var(d,!0),o.endIf()),n.it.definedProperties.add(v),n.ok(d);function h(v){return u.opts.useDefaults&&!u.compositeRule&&s[v].default!==void 0}function k(v){n.subschema({keyword:"properties",schemaProp:v,dataProp:v},d)}}};return Wl.default=i,Wl}var Kl={},xb;function zD(){if(xb)return Kl;xb=1,Object.defineProperty(Kl,"__esModule",{value:!0});const e=fn(),t=Ue(),r=et(),a=et(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(n){const{gen:o,schema:s,data:c,parentSchema:l,it:u}=n,{opts:f}=u,p=(0,e.allSchemaProperties)(s),d=p.filter(E=>(0,r.alwaysValidSchema)(u,s[E]));if(p.length===0||d.length===p.length&&(!u.opts.unevaluated||u.props===!0))return;const h=f.strictSchema&&!f.allowMatchingProperties&&l.properties,k=o.name("valid");u.props!==!0&&!(u.props instanceof t.Name)&&(u.props=(0,a.evaluatedPropsToName)(o,u.props));const{props:v}=u;y();function y(){for(const E of p)h&&b(E),u.allErrors?w(E):(o.var(k,!0),w(E),o.if(k))}function b(E){for(const m in h)new RegExp(E).test(m)&&(0,r.checkStrictMode)(u,`property ${m} matches pattern ${E} (use allowMatchingProperties)`)}function w(E){o.forIn("key",c,m=>{o.if((0,t._)`${(0,e.usePattern)(n,E)}.test(${m})`,()=>{const g=d.includes(E);g||n.subschema({keyword:"patternProperties",schemaProp:E,dataProp:m,dataPropType:a.Type.Str},k),u.opts.unevaluated&&v!==!0?o.assign((0,t._)`${v}[${m}]`,!0):!g&&!u.allErrors&&o.if((0,t.not)(k),()=>o.break())})})}}};return Kl.default=i,Kl}var Gl={},Tb;function $D(){if(Tb)return Gl;Tb=1,Object.defineProperty(Gl,"__esModule",{value:!0});const e=et(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:a,schema:i,it:n}=r;if((0,e.alwaysValidSchema)(n,i)){r.fail();return}const o=a.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),r.failResult(o,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return Gl.default=t,Gl}var Jl={},Pb;function UD(){if(Pb)return Jl;Pb=1,Object.defineProperty(Jl,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:fn().validateUnion,error:{message:"must match a schema in anyOf"}};return Jl.default=t,Jl}var Yl={},Ib;function BD(){if(Ib)return Yl;Ib=1,Object.defineProperty(Yl,"__esModule",{value:!0});const e=Ue(),t=et(),a={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:i})=>(0,e._)`{passingSchemas: ${i.passing}}`},code(i){const{gen:n,schema:o,parentSchema:s,it:c}=i;if(!Array.isArray(o))throw new Error("ajv implementation error");if(c.opts.discriminator&&s.discriminator)return;const l=o,u=n.let("valid",!1),f=n.let("passing",null),p=n.name("_valid");i.setParams({passing:f}),n.block(d),i.result(u,()=>i.reset(),()=>i.error(!0));function d(){l.forEach((h,k)=>{let v;(0,t.alwaysValidSchema)(c,h)?n.var(p,!0):v=i.subschema({keyword:"oneOf",schemaProp:k,compositeRule:!0},p),k>0&&n.if((0,e._)`${p} && ${u}`).assign(u,!1).assign(f,(0,e._)`[${f}, ${k}]`).else(),n.if(p,()=>{n.assign(u,!0),n.assign(f,k),v&&i.mergeEvaluated(v,e.Name)})})}}};return Yl.default=a,Yl}var Xl={},Nb;function VD(){if(Nb)return Xl;Nb=1,Object.defineProperty(Xl,"__esModule",{value:!0});const e=et(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:a,schema:i,it:n}=r;if(!Array.isArray(i))throw new Error("ajv implementation error");const o=a.name("valid");i.forEach((s,c)=>{if((0,e.alwaysValidSchema)(n,s))return;const l=r.subschema({keyword:"allOf",schemaProp:c},o);r.ok(o),r.mergeEvaluated(l)})}};return Xl.default=t,Xl}var Zl={},Db;function HD(){if(Db)return Zl;Db=1,Object.defineProperty(Zl,"__esModule",{value:!0});const e=Ue(),t=et(),a={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:n})=>(0,e.str)`must match "${n.ifClause}" schema`,params:({params:n})=>(0,e._)`{failingKeyword: ${n.ifClause}}`},code(n){const{gen:o,parentSchema:s,it:c}=n;s.then===void 0&&s.else===void 0&&(0,t.checkStrictMode)(c,'"if" without "then" and "else" is ignored');const l=i(c,"then"),u=i(c,"else");if(!l&&!u)return;const f=o.let("valid",!0),p=o.name("_valid");if(d(),n.reset(),l&&u){const k=o.let("ifClause");n.setParams({ifClause:k}),o.if(p,h("then",k),h("else",k))}else l?o.if(p,h("then")):o.if((0,e.not)(p),h("else"));n.pass(f,()=>n.error(!0));function d(){const k=n.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},p);n.mergeEvaluated(k)}function h(k,v){return()=>{const y=n.subschema({keyword:k},p);o.assign(f,p),n.mergeValidEvaluated(y,f),v?o.assign(v,(0,e._)`${k}`):n.setParams({ifClause:k})}}}};function i(n,o){const s=n.schema[o];return s!==void 0&&!(0,t.alwaysValidSchema)(n,s)}return Zl.default=a,Zl}var Ql={},Fb;function WD(){if(Fb)return Ql;Fb=1,Object.defineProperty(Ql,"__esModule",{value:!0});const e=et(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:a,it:i}){a.if===void 0&&(0,e.checkStrictMode)(i,`"${r}" without "if" is ignored`)}};return Ql.default=t,Ql}var Mb;function KD(){if(Mb)return zl;Mb=1,Object.defineProperty(zl,"__esModule",{value:!0});const e=yb(),t=FD(),r=bb(),a=MD(),i=jD(),n=LD(),o=RD(),s=_b(),c=qD(),l=zD(),u=$D(),f=UD(),p=BD(),d=VD(),h=HD(),k=WD();function v(y=!1){const b=[u.default,f.default,p.default,d.default,h.default,k.default,o.default,s.default,n.default,c.default,l.default];return y?b.push(t.default,a.default):b.push(e.default,r.default),b.push(i.default),b}return zl.default=v,zl}var ec={},tc={},jb;function GD(){if(jb)return tc;jb=1,Object.defineProperty(tc,"__esModule",{value:!0});const e=Ue(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:a})=>(0,e.str)`must match format "${a}"`,params:({schemaCode:a})=>(0,e._)`{format: ${a}}`},code(a,i){const{gen:n,data:o,$data:s,schema:c,schemaCode:l,it:u}=a,{opts:f,errSchemaPath:p,schemaEnv:d,self:h}=u;if(!f.validateFormats)return;s?k():v();function k(){const y=n.scopeValue("formats",{ref:h.formats,code:f.code.formats}),b=n.const("fDef",(0,e._)`${y}[${l}]`),w=n.let("fType"),E=n.let("format");n.if((0,e._)`typeof ${b} == "object" && !(${b} instanceof RegExp)`,()=>n.assign(w,(0,e._)`${b}.type || "string"`).assign(E,(0,e._)`${b}.validate`),()=>n.assign(w,(0,e._)`"string"`).assign(E,b)),a.fail$data((0,e.or)(m(),g()));function m(){return f.strictSchema===!1?e.nil:(0,e._)`${l} && !${E}`}function g(){const S=d.$async?(0,e._)`(${b}.async ? await ${E}(${o}) : ${E}(${o}))`:(0,e._)`${E}(${o})`,A=(0,e._)`(typeof ${E} == "function" ? ${S} : ${E}.test(${o}))`;return(0,e._)`${E} && ${E} !== true && ${w} === ${i} && !${A}`}}function v(){const y=h.formats[c];if(!y){m();return}if(y===!0)return;const[b,w,E]=g(y);b===i&&a.pass(S());function m(){if(f.strictSchema===!1){h.logger.warn(A());return}throw new Error(A());function A(){return`unknown format "${c}" ignored in schema at path "${p}"`}}function g(A){const x=A instanceof RegExp?(0,e.regexpCode)(A):f.code.formats?(0,e._)`${f.code.formats}${(0,e.getProperty)(c)}`:void 0,O=n.scopeValue("formats",{key:c,ref:A,code:x});return typeof A=="object"&&!(A instanceof RegExp)?[A.type||"string",A.validate,(0,e._)`${O}.validate`]:["string",A,O]}function S(){if(typeof y=="object"&&!(y instanceof RegExp)&&y.async){if(!d.$async)throw new Error("async format in sync schema");return(0,e._)`await ${E}(${o})`}return typeof w=="function"?(0,e._)`${E}(${o})`:(0,e._)`${E}.test(${o})`}}}};return tc.default=r,tc}var Lb;function JD(){if(Lb)return ec;Lb=1,Object.defineProperty(ec,"__esModule",{value:!0});const t=[GD().default];return ec.default=t,ec}var ti={},Rb;function YD(){return Rb||(Rb=1,Object.defineProperty(ti,"__esModule",{value:!0}),ti.contentVocabulary=ti.metadataVocabulary=void 0,ti.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],ti.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),ti}var qb;function XD(){if(qb)return Cl;qb=1,Object.defineProperty(Cl,"__esModule",{value:!0});const e=wD(),t=DD(),r=KD(),a=JD(),i=YD(),n=[e.default,t.default,(0,r.default)(),a.default,i.metadataVocabulary,i.contentVocabulary];return Cl.default=n,Cl}var rc={},Vo={},zb;function ZD(){if(zb)return Vo;zb=1,Object.defineProperty(Vo,"__esModule",{value:!0}),Vo.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Vo.DiscrError=e={})),Vo}var $b;function QD(){if($b)return rc;$b=1,Object.defineProperty(rc,"__esModule",{value:!0});const e=Ue(),t=ZD(),r=rd(),a=Sl(),i=et(),o={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:s,tagName:c}})=>s===t.DiscrError.Tag?`tag "${c}" must be string`:`value of tag "${c}" must be in oneOf`,params:({params:{discrError:s,tag:c,tagName:l}})=>(0,e._)`{error: ${s}, tag: ${l}, tagValue: ${c}}`},code(s){const{gen:c,data:l,schema:u,parentSchema:f,it:p}=s,{oneOf:d}=f;if(!p.opts.discriminator)throw new Error("discriminator: requires discriminator option");const h=u.propertyName;if(typeof h!="string")throw new Error("discriminator: requires propertyName");if(u.mapping)throw new Error("discriminator: mapping is not supported");if(!d)throw new Error("discriminator: requires oneOf keyword");const k=c.let("valid",!1),v=c.const("tag",(0,e._)`${l}${(0,e.getProperty)(h)}`);c.if((0,e._)`typeof ${v} == "string"`,()=>y(),()=>s.error(!1,{discrError:t.DiscrError.Tag,tag:v,tagName:h})),s.ok(k);function y(){const E=w();c.if(!1);for(const m in E)c.elseIf((0,e._)`${v} === ${m}`),c.assign(k,b(E[m]));c.else(),s.error(!1,{discrError:t.DiscrError.Mapping,tag:v,tagName:h}),c.endIf()}function b(E){const m=c.name("valid"),g=s.subschema({keyword:"oneOf",schemaProp:E},m);return s.mergeEvaluated(g,e.Name),m}function w(){var E;const m={},g=A(f);let S=!0;for(let C=0;C<d.length;C++){let _=d[C];if(_!=null&&_.$ref&&!(0,i.schemaHasRulesButRef)(_,p.self.RULES)){const I=_.$ref;if(_=r.resolveRef.call(p.self,p.schemaEnv.root,p.baseId,I),_ instanceof r.SchemaEnv&&(_=_.schema),_===void 0)throw new a.default(p.opts.uriResolver,p.baseId,I)}const F=(E=_==null?void 0:_.properties)===null||E===void 0?void 0:E[h];if(typeof F!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${h}"`);S=S&&(g||A(_)),x(F,C)}if(!S)throw new Error(`discriminator: "${h}" must be required`);return m;function A({required:C}){return Array.isArray(C)&&C.includes(h)}function x(C,_){if(C.const)O(C.const,_);else if(C.enum)for(const F of C.enum)O(F,_);else throw new Error(`discriminator: "properties/${h}" must have "const" or "enum"`)}function O(C,_){if(typeof C!="string"||C in m)throw new Error(`discriminator: "${h}" values must be unique strings`);m[C]=_}}}};return rc.default=o,rc}const eF={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};var Ub;function Bb(){return Ub||(Ub=1,(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=vD(),a=XD(),i=QD(),n=eF,o=["/properties"],s="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),a.default.forEach(h=>this.addVocabulary(h)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const h=this.opts.$data?this.$dataMetaSchema(n,o):n;this.addMetaSchema(h,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var l=bl();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=Ue();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var f=td();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var p=Sl();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})})(pl,pl.exports)),pl.exports}var tF=Bb();const rF=gn(tF);var nc={exports:{}},sd={},Vb;function nF(){return Vb||(Vb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(x,O){return{validate:x,compare:O}}e.fullFormats={date:t(n,o),time:t(c,l),"date-time":t(f,p),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:k,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:A,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:y,int32:{type:"number",validate:E},int64:{type:"number",validate:m},float:{type:"number",validate:g},double:{type:"number",validate:g},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,l),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,p),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function r(x){return x%4===0&&(x%100!==0||x%400===0)}const a=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function n(x){const O=a.exec(x);if(!O)return!1;const C=+O[1],_=+O[2],F=+O[3];return _>=1&&_<=12&&F>=1&&F<=(_===2&&r(C)?29:i[_])}function o(x,O){if(x&&O)return x>O?1:x<O?-1:0}const s=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function c(x,O){const C=s.exec(x);if(!C)return!1;const _=+C[1],F=+C[2],I=+C[3],j=C[5];return(_<=23&&F<=59&&I<=59||_===23&&F===59&&I===60)&&(!O||j!=="")}function l(x,O){if(!(x&&O))return;const C=s.exec(x),_=s.exec(O);if(C&&_)return x=C[1]+C[2]+C[3]+(C[4]||""),O=_[1]+_[2]+_[3]+(_[4]||""),x>O?1:x<O?-1:0}const u=/t|\s/i;function f(x){const O=x.split(u);return O.length===2&&n(O[0])&&c(O[1],!0)}function p(x,O){if(!(x&&O))return;const[C,_]=x.split(u),[F,I]=O.split(u),j=o(C,F);if(j!==void 0)return j||l(_,I)}const d=/\/|:/,h=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function k(x){return d.test(x)&&h.test(x)}const v=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function y(x){return v.lastIndex=0,v.test(x)}const b=-2147483648,w=2**31-1;function E(x){return Number.isInteger(x)&&x<=w&&x>=b}function m(x){return Number.isInteger(x)}function g(){return!0}const S=/[^\\]\\Z/;function A(x){if(S.test(x))return!1;try{return new RegExp(x),!0}catch{return!1}}})(sd)),sd}var ld={},Hb;function aF(){return Hb||(Hb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=Bb(),r=Ue(),a=r.operators,i={formatMaximum:{okStr:"<=",ok:a.LTE,fail:a.GT},formatMinimum:{okStr:">=",ok:a.GTE,fail:a.LT},formatExclusiveMaximum:{okStr:"<",ok:a.LT,fail:a.GTE},formatExclusiveMinimum:{okStr:">",ok:a.GT,fail:a.LTE}},n={message:({keyword:s,schemaCode:c})=>r.str`should be ${i[s].okStr} ${c}`,params:({keyword:s,schemaCode:c})=>r._`{comparison: ${i[s].okStr}, limit: ${c}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:n,code(s){const{gen:c,data:l,schemaCode:u,keyword:f,it:p}=s,{opts:d,self:h}=p;if(!d.validateFormats)return;const k=new t.KeywordCxt(p,h.RULES.all.format.definition,"format");k.$data?v():y();function v(){const w=c.scopeValue("formats",{ref:h.formats,code:d.code.formats}),E=c.const("fmt",r._`${w}[${k.schemaCode}]`);s.fail$data(r.or(r._`typeof ${E} != "object"`,r._`${E} instanceof RegExp`,r._`typeof ${E}.compare != "function"`,b(E)))}function y(){const w=k.schema,E=h.formats[w];if(!E||E===!0)return;if(typeof E!="object"||E instanceof RegExp||typeof E.compare!="function")throw new Error(`"${f}": format "${w}" does not define "compare" function`);const m=c.scopeValue("formats",{key:w,ref:E,code:d.code.formats?r._`${d.code.formats}${r.getProperty(w)}`:void 0});s.fail$data(b(m))}function b(w){return r._`${w}.compare(${l}, ${u}) ${i[f].fail} 0`}},dependencies:["format"]};const o=s=>(s.addKeyword(e.formatLimitDefinition),s);e.default=o})(ld)),ld}var Wb;function iF(){return Wb||(Wb=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=nF(),a=aF(),i=Ue(),n=new i.Name("fullFormats"),o=new i.Name("fastFormats"),s=(l,u={keywords:!0})=>{if(Array.isArray(u))return c(l,u,r.fullFormats,n),l;const[f,p]=u.mode==="fast"?[r.fastFormats,o]:[r.fullFormats,n],d=u.formats||r.formatNames;return c(l,d,f,p),u.keywords&&a.default(l),l};s.get=(l,u="full")=>{const p=(u==="fast"?r.fastFormats:r.fullFormats)[l];if(!p)throw new Error(`Unknown format "${l}"`);return p};function c(l,u,f,p){var d,h;(d=(h=l.opts.code).formats)!==null&&d!==void 0||(h.formats=i._`require("ajv-formats/dist/formats").${p}`);for(const k of u)l.addFormat(k,f[k])}e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s})(nc,nc.exports)),nc.exports}var oF=iF();const Kb=gn(oF),sF={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},lF=/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,cF=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function uF(e,t,r={},a,i=rF,n){let o=new i({...sF,...r});return a?Kb(o,a):a!==!1&&Kb(o),o.addFormat("data-url",cF),o.addFormat("color",lF),o.addKeyword(ou),Array.isArray(e)&&o.addMetaSchema(e),Ye(t)&&Object.keys(t).forEach(s=>{o.addFormat(s,t[s])}),n&&(o=n(o)),o}class fF{constructor(t,r){this.hasRegisteredRootSchema=!1;const{additionalMetaSchemas:a,customFormats:i,ajvOptionsOverrides:n,ajvFormatOptions:o,AjvClass:s,extenderFn:c,suppressDuplicateFiltering:l}=t;this.ajv=uF(a,i,n,o,s,c),this.localizer=r,this.suppressDuplicateFiltering=l}reset(){this.ajv.removeSchema(),this.lastSeenRootSchema=void 0,this.hasRegisteredRootSchema=!1}rawValidation(t,r){var a,i;let n,o;try{t[dt]&&(o=this.ajv.getSchema(t[dt])),o===void 0&&(o=this.ajv.compile(t)),o(r)}catch(c){n=c}let s;return o&&(typeof this.localizer=="function"&&(((a=o.errors)!==null&&a!==void 0?a:[]).forEach(c=>{var l;["missingProperty","property"].forEach(u=>{var f;!((f=c.params)===null||f===void 0)&&f[u]&&(c.params[u]=`'${c.params[u]}'`)}),!((l=c.params)===null||l===void 0)&&l.deps&&(c.params.deps=c.params.deps.split(", ").map(u=>`'${u}'`).join(", "))}),this.localizer(o.errors),((i=o.errors)!==null&&i!==void 0?i:[]).forEach(c=>{var l;["missingProperty","property"].forEach(u=>{var f;!((f=c.params)===null||f===void 0)&&f[u]&&(c.params[u]=c.params[u].slice(1,-1))}),!((l=c.params)===null||l===void 0)&&l.deps&&(c.params.deps=c.params.deps.split(", ").map(u=>u.slice(1,-1)).join(", "))})),s=o.errors||void 0,o.errors=null),{errors:s,validationError:n}}validateFormData(t,r,a,i,n){const o=this.rawValidation(r,t);return lD(this,o,t,r,a,i,n,this.suppressDuplicateFiltering)}handleSchemaUpdate(t){var r,a;if(this.lastSeenRootSchema===t&&this.hasRegisteredRootSchema)return;const i=(r=t[dt])!==null&&r!==void 0?r:Pm;this.ajv.getSchema(i)===void 0?this.ajv.addSchema(t,i):Xe(t,(a=this.ajv.getSchema(i))===null||a===void 0?void 0:a.schema)||(this.ajv.removeSchema(i),this.ajv.addSchema(t,i)),this.lastSeenRootSchema=t,this.hasRegisteredRootSchema=!0}isValid(t,r,a){var i;try{this.handleSchemaUpdate(a);const n=hf(t),o=(i=n[dt])!==null&&i!==void 0?i:lT(n);let s;return s=this.ajv.getSchema(o),s===void 0&&(s=this.ajv.addSchema(n,o).getSchema(o)||this.ajv.compile(n)),s(r)}catch(n){return console.warn("Error encountered compiling schema:",n),!1}}}function ac(e={},t){return new fF(e,t)}ac();var cd,Gb;function dF(){return Gb||(Gb=1,cd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"additionalProperties":n="must NOT have additional properties";break;case"anyOf":n='must match a schema in "anyOf"';break;case"const":n="must be equal to constant";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="must have propert",a==1?n+="y":n+="ies",n+=" "+i.params.deps+" when property "+i.params.property+" is present";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='must pass "'+i.keyword+'" keyword validation'}break;case"enum":n="must be equal to one of the allowed values";break;case"false schema":n="boolean schema is false";break;case"format":n='must match format "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"maxItems":n="";var a=i.params.limit;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"maxLength":n="";var a=i.params.limit;n+="must NOT be longer than "+a+" character",a!=1&&(n+="s");break;case"maxProperties":n="";var a=i.params.limit;n+="must NOT have more than "+a+" propert",a==1?n+="y":n+="ies";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"minItems":n="";var a=i.params.limit;n+="must NOT have less than "+a+" item",a!=1&&(n+="s");break;case"minLength":n="";var a=i.params.limit;n+="must NOT be shorter than "+a+" character",a!=1&&(n+="s");break;case"minProperties":n="";var a=i.params.limit;n+="must NOT have less than "+a+" propert",a==1?n+="y":n+="ies";break;case"multipleOf":n="must be a multiple of "+i.params.multipleOf;break;case"not":n='must NOT be valid according to schema in "not"';break;case"oneOf":n='must match exactly one schema in "oneOf"';break;case"pattern":n='must match pattern "'+i.params.pattern+'"';break;case"patternRequired":n='must have property matching pattern "'+i.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="must have required property "+i.params.missingProperty;break;case"type":n="must be "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="must NOT have duplicate items (items ## "+i.params.j+" and "+i.params.i+" are identical)";break;default:n='must pass "'+i.keyword+'" keyword validation'}i.message=n}}),cd}var ud,Jb;function pF(){return Jb||(Jb=1,ud=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+=" يجب أن لا يحوي أكثر من "+a+" عنصر";break;case"additionalProperties":n="يجب أن لا يحوي خصائص إضافية";break;case"anyOf":n='يجب أن يوافق أحد المخططات الموجودة في "anyOf"';break;case"const":n="يجب أن يكون ثابتاً";break;case"contains":n="يجب أن يحوي عنصرا صحيح";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+=" يجب أن يحوي الخصائص "+i.params.deps+" عندما تكون الخاصية "+i.params.property+" موجودة";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='يجب أن تمرر كلمة التحقق المفتاحية "'+i.keyword+'"'}break;case"enum":n="قيمة هذا الحقل يجب أن تكون مساوية لأحد القيم المعرفة مسبقاً";break;case"false schema":n="المخطط المنطقي غير صحيح";break;case"format":n='يجب أن يوافق الصيغة "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" يجب أن يكون "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" يجب أن يكون "+r;break;case"if":n='يجب أن توافق المخطط "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" يجب أن يكون "+r;break;case"maxItems":n="";var a=i.params.limit;n+=" يجب أن لا يحوي أكثر من "+a+" عنصر";break;case"maxLength":n="";var a=i.params.limit;n+=" يجب أن لا يحوي أكثر من "+a+" محرف";break;case"maxProperties":n="";var a=i.params.limit;n+=" يجب أن لا يحوي أكثر من "+a+" خصائص";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" يجب أن يكون "+r;break;case"minItems":n="";var a=i.params.limit;n+=" يجب أن لا يحوي أقل من "+a+" عنصر";break;case"minLength":n="";var a=i.params.limit;n+=" يجب أن لا يحوي أقل من "+a+" محرف";break;case"minProperties":n="";var a=i.params.limit;n+=" يجب أن لا يحوي أقل من "+a+" خصائص";break;case"multipleOf":n=" يجب أن يحوي أكثر من "+i.params.multipleOf;break;case"not":n='يجب أن يكون غير صحيح وفقاً للمخطط "not"';break;case"oneOf":n='يجب أن يوافق مخطط واحد فقط موجود في "oneOf"';break;case"pattern":n='يجب أن يوافق النمط "'+i.params.pattern+'"';break;case"patternRequired":n='يجب أن يحوي خاصية توافق النمط "'+i.params.missingPattern+'"';break;case"propertyNames":n="اسم الخاصية غير صالح";break;case"required":n="هذا الحقل إلزامي";break;case"type":n="قيمة هذا الحقل غير صالحة";break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="يجب أن لا يحوي عناصر مكررة (العنصر ## "+i.params.j+" و "+i.params.i+" متطابقة)";break;default:n='يجب أن تمرر كلمة التحقق المفتاحية "'+i.keyword+'"'}i.message=n}}),ud}var fd,Yb;function mF(){return Yb||(Yb=1,fd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="no ha de tenir més de "+a+" element",a!=1&&(n+="s");break;case"additionalProperties":n="no ha de tenir propietats addicionals";break;case"anyOf":n='ha de coincidir amb algun esquema definit a "anyOf"';break;case"const":n="ha de ser igual a la constant";break;case"contains":n="ha de contenir un ítem vàlid";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="ha de contenir la propietat",a!=1&&(n+="s"),n+=" "+i.params.deps+" quan la propietat "+i.params.property+" és present";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='ha de passar la validació de la clau "'+i.keyword+'"'}break;case"enum":n="ha de ser igual a un dels valors predefinits";break;case"false schema":n="l’esquema és fals";break;case"format":n='ha de coincidir amb el format "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ha de ser "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ha de ser "+r;break;case"if":n='ha de correspondre’s amb l’esquema "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ha de ser "+r;break;case"maxItems":n="";var a=i.params.limit;n+="no ha de tenir més de "+a+" ítem",a!=1&&(n+="s");break;case"maxLength":n="";var a=i.params.limit;n+="no pot contenir més de "+a+" caràcter",a!=1&&(n+="s");break;case"maxProperties":n="";var a=i.params.limit;n+="no pot contenir més de "+a+" propietat",a!=1&&(n+="s");break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ha de ser "+r;break;case"minItems":n="";var a=i.params.limit;n+="no ha de tenir menys de "+a+" ítem",a!=1&&(n+="s");break;case"minLength":n="";var a=i.params.limit;n+="no pot contenir menys de "+a+" caràcter",a!=1&&(n+="s");break;case"minProperties":n="";var a=i.params.limit;n+="no pot contenir menys de "+a+" propietat",a!=1&&(n+="s");break;case"multipleOf":n="ha de ser múltiple de "+i.params.multipleOf;break;case"not":n='no ha de ser vàlid d’acord amb l’esquema definit a "not"';break;case"oneOf":n='ha de coincidir només amb un esquema definit a "oneOf"';break;case"pattern":n='ha de coincidir amb el patró "'+i.params.pattern+'"';break;case"patternRequired":n='la propietat ha de coincidir amb el patró "'+i.params.missingPattern+'"';break;case"propertyNames":n="la propietat no és vàlida";break;case"required":n="ha de tenir la propietat requerida "+i.params.missingProperty;break;case"type":n="ha de ser del tipus "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="no ha de tenir ítems duplicats (els ítems ## "+i.params.j+" i "+i.params.i+" són idèntics)";break;default:n='ha de passar la validació de la clau "'+i.keyword+'"'}i.message=n}}),fd}var dd,Xb;function hF(){return Xb||(Xb=1,dd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="nemůže mít víc, než "+a+" prv",a>=2&&a<=4?n+="ky":a!=1?n+="ek":n+="ků";break;case"additionalProperties":n="nemůže mít další položky";break;case"anyOf":n='musí vyhovět alespoň jednomu schématu v "anyOf"';break;case"const":n="musí být roven konstantě";break;case"contains":n="musí obsahovat prvek odpovídající schématu";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="musí mít polož",a>=2&&a<=4?n+="ky":a!=1?n+="ek":n+="ka",n+=": "+i.params.deps+", pokud obsahuje "+i.params.property;break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='musí vyhovět "'+i.keyword+'" validaci'}break;case"enum":n="musí být rovno jedné hodnotě z výčtu";break;case"false schema":n="schéma je false";break;case"format":n='musí být ve formátu "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí být "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí být "+r;break;case"if":n='musí vyhovět "'+i.params.failingKeyword+'" schématu';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí být "+r;break;case"maxItems":n="";var a=i.params.limit;n+="nesmí obsahovat víc než "+a+" prv",a>=2&&a<=4?n+="ky":a!=1?n+="ek":n+="ků";break;case"maxLength":n="";var a=i.params.limit;n+="nesmí být delší než "+a+" zna",a>=2&&a<=4?n+="ky":a!=1?n+="k":n+="ků";break;case"maxProperties":n="";var a=i.params.limit;n+="nesmí mít víc než "+a+" polož",a>=2&&a<=4?n+="ky":a!=1?n+="ek":n+="ka";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí být "+r;break;case"minItems":n="";var a=i.params.limit;n+="nesmí obsahovat méně než "+a+" prv",a>=2&&a<=4?n+="ky":a!=1?n+="ek":n+="ků";break;case"minLength":n="";var a=i.params.limit;n+="nesmí být kratší než "+a+" zna",a>=2&&a<=4?n+="ky":a!=1?n+="k":n+="ků";break;case"minProperties":n="";var a=i.params.limit;n+="nesmí mít méně než "+a+" polož",a>=2&&a<=4?n+="ky":a!=1?n+="ek":n+="ka";break;case"multipleOf":n="musí být násobkem "+i.params.multipleOf;break;case"not":n='nesmí vyhovět schématu v "not"';break;case"oneOf":n='musí vyhovět právě jednomu schématu v "oneOf"';break;case"pattern":n='musí vyhovět regulárnímu výrazu "'+i.params.pattern+'"';break;case"patternRequired":n='musí obsahovat položku vyhovující regulárnímu výrazu "'+i.params.missingPattern+'"';break;case"propertyNames":n="název položky není platný";break;case"required":n="musí obsahovat požadovanou položku "+i.params.missingProperty;break;case"type":n="musí být "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nesmí obsahovat duplicitní prvky (prvky ## "+i.params.j+" a "+i.params.i+" jsou identické)";break;default:n='musí vyhovět "'+i.keyword+'" validaci'}i.message=n}}),dd}var pd,Zb;function gF(){return Zb||(Zb=1,pd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="darf nicht mehr als "+a+" Element",a!=1&&(n+="e"),n+=" enthalten";break;case"additionalProperties":n="darf keine zusätzlichen Attribute haben";break;case"anyOf":n='muss einem der Schemata in "anyOf" entsprechen';break;case"const":n="muss gleich der Konstanten sein";break;case"contains":n="muss ein valides Element enthalten";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="muss Attribut",a!=1&&(n+="e"),n+=" "+i.params.deps+" aufweisen, wenn Attribut "+i.params.property+" gesetzt ist";break;case"discriminator":switch(i.params.error){case"tag":n='der Tag "'+i.params.tag+'" muss eine Zeichenkette sein';break;case"mapping":n='der Wert vom Tag "'+i.params.tag+'" muss im oneOf enthalten sein';break;default:n='muss die Validierung "'+i.keyword+'" bestehen'}break;case"enum":n="muss einem der vorgegebenen Werte entsprechen";break;case"false schema":n="boolesches Schema ist falsch";break;case"format":n='muss diesem Format entsprechen: "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="muss "+r+" sein";break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="muss "+r+" sein";break;case"if":n='muss dem Schema "'+i.params.failingKeyword+'" entsprechen';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="muss "+r+" sein";break;case"maxItems":n="";var a=i.params.limit;n+="darf nicht mehr als "+a+" Element",a!=1&&(n+="e"),n+=" haben";break;case"maxLength":n="";var a=i.params.limit;n+="darf nicht länger als "+a+" Zeichen sein";break;case"maxProperties":n="";var a=i.params.limit;n+="darf nicht mehr als "+a+" Attribut",a!=1&&(n+="e"),n+=" haben";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="muss "+r+" sein";break;case"minItems":n="";var a=i.params.limit;n+="darf nicht weniger als "+a+" Element",a!=1&&(n+="e"),n+=" haben";break;case"minLength":n="";var a=i.params.limit;n+="darf nicht kürzer als "+a+" Zeichen sein";break;case"minProperties":n="";var a=i.params.limit;n+="darf nicht weniger als "+a+" Attribut",a!=1&&(n+="e"),n+=" haben";break;case"multipleOf":n="muss ein Vielfaches von "+i.params.multipleOf+" sein";break;case"not":n='muss dem in "not" angegebenen Schema widersprechen';break;case"oneOf":n='muss genau einem der Schemata in "oneOf" entsprechen';break;case"pattern":n='muss diesem Muster entsprechen: "'+i.params.pattern+'"';break;case"patternRequired":n='muss ein Attribut nach folgendem Muster haben "'+i.params.missingPattern+'"';break;case"propertyNames":n="Attributname ist ungültig";break;case"required":n="muss das erforderliche Attribut "+i.params.missingProperty+" enthalten";break;case"type":n="muss sein: "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="darf nicht mehr als "+a+" Element",a!=1&&(n+="e"),n+=" haben";break;case"unevaluatedProperties":n="darf keine unausgewerteten Attribute haben";break;case"uniqueItems":n="darf keine Duplikate enthalten (Elemente #"+i.params.j+" und #"+i.params.i+" sind gleich)";break;default:n='muss die Validierung "'+i.keyword+'" bestehen'}i.message=n}}),pd}var md,Qb;function yF(){return Qb||(Qb=1,md=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="no debe tener más de "+a+" elemento",a!=1&&(n+="s");break;case"additionalProperties":n="no debe tener propiedades adicionales";break;case"anyOf":n='debe coincidir con algún esquema en "anyOf"';break;case"const":n="debe ser igual a la constante";break;case"contains":n="debe contener un elemento válido";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="debe contener la",a!=1&&(n+="s"),n+=" propiedad",a!=1&&(n+="es"),n+=" "+i.params.deps+" cuando la propiedad "+i.params.property+" se encuentra presente";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='debe pasar la validación de palabra clave "'+i.keyword+'"'}break;case"enum":n="deber ser igual a uno de los valores predefinidos";break;case"false schema":n="el esquema és falso";break;case"format":n='debe coincidir con el formato "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="debe ser "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="debe ser "+r;break;case"if":n='debe corresponderse con el esquema "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="debe ser "+r;break;case"maxItems":n="";var a=i.params.limit;n+="no debe contener más de "+a+" elemento",a!=1&&(n+="s");break;case"maxLength":n="";var a=i.params.limit;n+="no debe contener más de "+a+" caracter",a!=1&&(n+="es");break;case"maxProperties":n="";var a=i.params.limit;n+="no debe contener más de "+a+" propiedad",a!=1&&(n+="es");break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="debe ser "+r;break;case"minItems":n="";var a=i.params.limit;n+="no debe contener menos de "+a+" elemento",a!=1&&(n+="s");break;case"minLength":n="";var a=i.params.limit;n+="no debe contener menos de "+a+" caracter",a!=1&&(n+="es");break;case"minProperties":n="";var a=i.params.limit;n+="no debe contener menos de "+a+" propiedad",a!=1&&(n+="es");break;case"multipleOf":n="debe ser múltiplo de "+i.params.multipleOf;break;case"not":n='no debe ser válido según el esquema en "not"';break;case"oneOf":n='debe coincidir con un solo esquema en "oneOf"';break;case"pattern":n='debe coincidir con el patron "'+i.params.pattern+'"';break;case"patternRequired":n='la propiedad debe coincidir con el patrón "'+i.params.missingPattern+'"';break;case"propertyNames":n="la propiedad no és válida";break;case"required":n="debe tener la propiedad requerida "+i.params.missingProperty;break;case"type":n="debe ser "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="no debe contener elementos duplicados, (los elementos ## "+i.params.j+" y "+i.params.i+" son idénticos)";break;default:n='debe pasar la validación de palabra clave "'+i.keyword+'"'}i.message=n}}),md}var hd,ek;function vF(){return ek||(ek=1,hd=function(t){if(t&&t.length)for(const n of t){let o;switch(n.keyword){case"additionalItems":case"items":o="";var i=n.params.limit;o+="saa sisältää enintään "+i,i==1?o+=":n elementin":o+=" elementtiä";break;case"additionalProperties":o="ei saa sisältää ylimääräisiä ominaisuuksia";break;case"anyOf":o='täytyy vastata "anyOf" skeemaa';break;case"const":o="täytyy olla yhtä kuin vakio";break;case"contains":o="täytyy sisältää kelvollinen elementti";break;case"dependencies":case"dependentRequired":o="";var i=n.params.depsCount;o+="täytyy sisältää "+n.params.deps+" ominaisuu",i==1?o+="s":o+="det",o+=" kun "+n.params.property+"-ominaisuus on läsnä";break;case"discriminator":switch(n.params.error){case"tag":o='tunniste "'+n.params.tag+'" täytyy olla merkkijono';break;case"mapping":o='tunnisteen "'+n.params.tag+'" arvon muoto pitää olla oneOf';break;default:o='täytyy läpäistä "'+n.keyword+'" avainsanatarkistus'}break;case"enum":o="täytyy olla yhtä kuin jokin sallituista arvoista";break;case"false schema":o="boolean skeema on väärä";break;case"format":o='täytyy vastata muotoa "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="täytyy olla "+r;break;case"formatMinimum":case"formatExclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="täytyy olla "+r;break;case"if":o='täytyy vastata "'+n.params.failingKeyword+'" skeemaa';break;case"maximum":case"exclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="täytyy olla "+r;break;case"maxItems":o="";var i=n.params.limit;o+="tulee sisältää enintään "+i+" ",i==1?o+="elementti":o+="elementtiä";break;case"maxLength":o="";var i=n.params.limit;o+="ei saa olla pidempi kuin "+i+" merkki",i!=1&&(o+="ä");break;case"maxProperties":o="";var i=n.params.limit;o+="tulee sisältää enintään "+i+" ",i==1?o+="ominaisuus":o+="ominaisuutta";break;case"minimum":case"exclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="täytyy olla "+r;break;case"minItems":o="";var i=n.params.limit;o+="tulee sisältää vähintään "+i+" ",i==1?o+="elementti":o+="elementtiä";break;case"minLength":o="";var i=n.params.limit;o+="ei saa olla lyhyempi kuin "+i+" merkki",i!=1&&(o+="ä");break;case"minProperties":o="";var i=n.params.limit;o+="tulee sisältää vähintään "+i+" ",i==1?o+="ominaisuus":o+="ominaisuutta";break;case"multipleOf":o="täytyy olla moninkertainen: "+n.params.multipleOf;break;case"not":o='ei saa olla hyväksytty skeeman "not" mukaan';break;case"oneOf":o='täytyy vastata täsmälleen yhtä "oneOf" -kohdassa määriteltyä skeemaa';break;case"pattern":o='täytyy vastata muotoa "'+n.params.pattern+'"';break;case"patternRequired":o='täytyy sisältää ominaisuus joka vastaa kaavaa "'+n.params.missingPattern+'"';break;case"propertyNames":o="ominaisuuden nimi on virheellinen";break;case"required":o="täytyy sisältää vaadittu ominaisuus "+n.params.missingProperty;break;case"type":o="";var a=n.params.type;o+="täytyy olla ",a=="number"?o+="numero":a=="integer"?o+="kokonaisluku":a=="string"?o+="merkkijono":a=="boolean"?o+="boolean":o+=a;break;case"unevaluatedItems":o="";var i=n.params.len;o+="ei saa olla enemmän kuin "+i+" elementti",i!=1&&(o+="ä");break;case"unevaluatedProperties":o="ei saa sisältää arvioimattomia ominaisuuksia";break;case"uniqueItems":o="ei saa sisältää duplikaatteja (elementit ## "+n.params.j+" ja "+n.params.i+" ovat identtiset)";break;default:o='täytyy läpäistä "'+n.keyword+'" avainsanatarkistus'}n.message=o}}),hd}var gd,tk;function bF(){return tk||(tk=1,gd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="ne doit pas contenir plus de "+a+" élémént",a!=1&&(n+="s");break;case"additionalProperties":n="ne doit pas contenir de propriétés additionnelles";break;case"anyOf":n='doit correspondre à un schéma de "anyOf"';break;case"const":n="doit être égal à la constante";break;case"contains":n="doit contenir un élément valide";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="doit avoir la propriété "+i.params.deps+" quand la propriété "+i.params.property+" est présente";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='doit être valide selon le critère "'+i.keyword+'"'}break;case"enum":n="doit être égal à une des valeurs prédéfinies";break;case"false schema":n='le schema est "false"';break;case"format":n='doit correspondre au format "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="doit être "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="doit être "+r;break;case"if":n='doit correspondre au schéma "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="doit être "+r;break;case"maxItems":n="";var a=i.params.limit;n+="ne doit pas contenir plus de "+a+" élément",a!=1&&(n+="s");break;case"maxLength":n="";var a=i.params.limit;n+="ne doit pas dépasser "+a+" caractère",a!=1&&(n+="s");break;case"maxProperties":n="";var a=i.params.limit;n+="ne doit pas contenir plus de "+a+" propriété",a!=1&&(n+="s");break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="doit être "+r;break;case"minItems":n="";var a=i.params.limit;n+="ne doit pas contenir moins de "+a+" élément",a!=1&&(n+="s");break;case"minLength":n="";var a=i.params.limit;n+="ne doit pas faire moins de "+a+" caractère",a!=1&&(n+="s");break;case"minProperties":n="";var a=i.params.limit;n+="ne doit pas contenir moins de "+a+" propriété",a!=1&&(n+="s");break;case"multipleOf":n="doit être un multiple de "+i.params.multipleOf;break;case"not":n='est invalide selon le schéma "not"';break;case"oneOf":n='doit correspondre à exactement un schéma de "oneOf"';break;case"pattern":n='doit correspondre au format "'+i.params.pattern+'"';break;case"patternRequired":n='la propriété doit correspondre au format "'+i.params.missingPattern+'"';break;case"propertyNames":n="le nom de propriété est invalide";break;case"required":n="requiert la propriété "+i.params.missingProperty;break;case"type":n="doit être de type "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="ne doit pas contenir de doublons (les éléments ## "+i.params.j+" et "+i.params.i+" sont identiques)";break;default:n='doit être valide selon le critère "'+i.keyword+'"'}i.message=n}}),gd}var yd,rk;function kF(){return rk||(rk=1,yd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="nem lehet több, mint "+a+" eleme";break;case"additionalProperties":n="nem lehetnek további elemei";break;case"anyOf":n='meg kell feleljen legalább egy "anyOf" alaknak';break;case"const":n="must be equal to constant";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="-nak kell legyen",a>1&&(n+="ek"),n+=" a következő tulajdonsága",a!=1&&(n+="i"),n+=": "+i.params.deps+", ha van "+i.params.property+" tulajdonsága";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='must pass "'+i.keyword+'" keyword validation'}break;case"enum":n="egyenlő kell legyen valamely előre meghatározott értékkel";break;case"false schema":n="boolean schema is false";break;case"format":n='meg kell feleljen a következő formátumnak: "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="kell legyen "+r;break;case"maxItems":n="";var a=i.params.limit;n+="nem lehet több, mint "+a+" eleme";break;case"maxLength":n="";var a=i.params.limit;n+="nem lehet hosszabb, mint "+a+" szimbólum";break;case"maxProperties":n="";var a=i.params.limit;n+="nem lehet több, mint "+a+" tulajdonsága";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="kell legyen "+r;break;case"minItems":n="";var a=i.params.limit;n+="nem lehet kevesebb, mint "+a+" eleme";break;case"minLength":n="";var a=i.params.limit;n+="nem lehet rövidebb, mint "+a+" szimbólum";break;case"minProperties":n="";var a=i.params.limit;n+="nem lehet kevesebb, mint "+a+" tulajdonsága";break;case"multipleOf":n="a többszöröse kell legyen a következő számnak: "+i.params.multipleOf;break;case"not":n='nem lehet érvényes a "not" alaknak megfelelően';break;case"oneOf":n='meg kell feleljen pontosan egy "oneOf" alaknak';break;case"pattern":n='meg kell feleljen a következő mintának: "'+i.params.pattern+'"';break;case"patternRequired":n='must have property matching pattern "'+i.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="kell legyen "+i.params.missingProperty+" tulajdonsága";break;case"type":n=""+i.params.type+" kell legyen";break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nem lehetnek azonos elemei ("+i.params.j+" és "+i.params.i+" elemek azonosak)";break;default:n='must pass "'+i.keyword+'" keyword validation'}i.message=n}}),yd}var vd,nk;function wF(){return nk||(nk=1,vd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+=" tidak boleh memiliki lebih dari "+a+" item";break;case"additionalProperties":n="tidak boleh memiliki properti tambahan";break;case"anyOf":n='harus cocok dengan beberapa skema pada "anyOf"';break;case"const":n="harus sama dengan konstan";break;case"contains":n="harus berisi item yang valid";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+=" harus memiliki properti "+i.params.deps+" ketika properti "+i.params.property+" hadir";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='harus lulus validasi kata kunci "'+i.keyword+'"'}break;case"enum":n="harus sama dengan salah satu dari nilai yang telah ditentukan";break;case"false schema":n="skema boolean salah";break;case"format":n='harus cocok dengan format "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="harus "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="harus "+r;break;case"if":n='harus cocok dengan skema "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="harus "+r;break;case"maxItems":n="";var a=i.params.limit;n+=" tidak boleh memiliki lebih dari "+a+" item";break;case"maxLength":n="";var a=i.params.limit;n+=" tidak boleh lebih dari "+a+" karakter";break;case"maxProperties":n="";var a=i.params.limit;n+=" tidak boleh memiliki lebih dari "+a+" properti";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="harus "+r;break;case"minItems":n="";var a=i.params.limit;n+=" tidak boleh kurang dari "+a+" item";break;case"minLength":n="";var a=i.params.limit;n+=" tidak boleh lebih pendek dari "+a+" karakter";break;case"minProperties":n="";var a=i.params.limit;n+=" tidak boleh kurang dari "+a+" properti";break;case"multipleOf":n="harus merupakan kelipatan dari "+i.params.multipleOf;break;case"not":n='tidak boleh valid sesuai dengan skema pada "not"';break;case"oneOf":n='harus sama persis dengan satu skema pada "oneOf"';break;case"pattern":n='harus cocok dengan pola "'+i.params.pattern+'"';break;case"patternRequired":n='harus memiliki pola pencocokan properti "'+i.params.missingPattern+'"';break;case"propertyNames":n="nama properti tidak valid";break;case"required":n="harus memiliki properti "+i.params.missingProperty;break;case"type":n="harus berupa "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="tidak boleh memiliki item duplikat (item ## "+i.params.j+" dan "+i.params.i+" identik)";break;default:n='harus lulus validasi kata kunci "'+i.keyword+'"'}i.message=n}}),vd}var bd,ak;function SF(){return ak||(ak=1,bd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="non dovrebbe avere più di "+a+" element",a==1?n+="o":n+="i";break;case"additionalProperties":n="non deve avere attributi aggiuntivi";break;case"anyOf":n='deve corrispondere ad uno degli schema in "anyOf"';break;case"const":n="deve essere uguale alla costante";break;case"contains":n="deve contentere un elemento valido";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="dovrebbe avere ",a==1?n+="l'":n+="gli ",n+="attribut",a==1?n+="o":n+="i",n+=" "+i.params.deps+" quando l'attributo "+i.params.property+" è presente";break;case"discriminator":switch(i.params.error){case"tag":n='il tag "'+i.params.tag+'" deve essere di tipo stringa';break;case"mapping":n='il valore del tag "'+i.params.tag+'" deve essere nei oneOf';break;default:n='deve essere valido secondo il criterio "'+i.keyword+'"'}break;case"enum":n="deve essere uguale ad uno dei valori consentiti";break;case"false schema":n="lo schema booleano è falso";break;case"format":n='deve corrispondere al formato "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="deve essere "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="deve essere "+r;break;case"if":n='deve corrispondere allo schema "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="deve essere "+r;break;case"maxItems":n="";var a=i.params.limit;n+="non deve avere più di "+a+" element",a==1?n+="o":n+="i";break;case"maxLength":n="";var a=i.params.limit;n+="non deve essere più lungo di "+a+" caratter",a==1?n+="e":n+="i";break;case"maxProperties":n="";var a=i.params.limit;n+="non deve avere più di "+a+" attribut",a==1?n+="o":n+="i";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="deve essere "+r;break;case"minItems":n="";var a=i.params.limit;n+="non deve avere meno di "+a+" element",a==1?n+="o":n+="i";break;case"minLength":n="";var a=i.params.limit;n+="non deve essere meno lungo di "+a+" caratter",a==1?n+="e":n+="i";break;case"minProperties":n="";var a=i.params.limit;n+="non deve avere meno di "+a+" attribut",a==1?n+="o":n+="i";break;case"multipleOf":n="deve essere un multiplo di "+i.params.multipleOf;break;case"not":n='non deve essere valido in base allo schema di "non"';break;case"oneOf":n='deve corrispondere esattamente ad uno degli schema in "oneOf"';break;case"pattern":n='deve corrispondere al formato "'+i.params.pattern+'"';break;case"patternRequired":n='deve avere un attributo che corrisponda al formato "'+i.params.missingPattern+'"';break;case"propertyNames":n="il nome dell'attritbuto non è valido";break;case"required":n="deve avere l'attributo obbligatorio "+i.params.missingProperty;break;case"type":n="deve essere di tipo "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="non deve avere più di "+a+" elementi",a==1?n+="o":n+="i";break;case"unevaluatedProperties":n="non deve avere attributi non valutati";break;case"uniqueItems":n="non deve avere duplicati (gli elementi ## "+i.params.j+" e "+i.params.i+" sono uguali)";break;default:n='deve essere valido secondo il criterio "'+i.keyword+'"'}i.message=n}}),bd}var kd,ik;function EF(){return ik||(ik=1,kd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="は"+a+"以上あってはいけない";break;case"additionalProperties":n="追加してはいけない";break;case"anyOf":n='"anyOf"のスキーマとマッチしなくてはいけない';break;case"const":n="must be equal to constant";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n=""+i.params.property+"がある場合、";var a=i.params.depsCount;n+="は"+i.params.deps+"をつけなければいけない";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='must pass "'+i.keyword+'" keyword validation'}break;case"enum":n="事前に定義された値のいずれかに等しくなければいけない";break;case"false schema":n="boolean schema is false";break;case"format":n='"'+i.params.format+'"形式に揃えなければいけない';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+=r+"でなければいけない";break;case"maxItems":n="";var a=i.params.limit;n+="は"+a+"個以上であってはいけない";break;case"maxLength":n="";var a=i.params.limit;n+="は"+a+"文字以上であってはいけない";break;case"maxProperties":n="";var a=i.params.limit;n+="は"+a+"個以上のプロパティを有してはいけない";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+=r+"でなければいけない";break;case"minItems":n="";var a=i.params.limit;n+="は"+a+"個以下であってはいけない";break;case"minLength":n="";var a=i.params.limit;n+="は"+a+"文字以下であってはいけない";break;case"minProperties":n="";var a=i.params.limit;n+="は"+a+"個以下のプロパティを有してはいけない";break;case"multipleOf":n=""+i.params.multipleOf+"の倍数でなければいけない";break;case"not":n='"not"のスキーマに従って有効としてはいけない';break;case"oneOf":n='"oneOf"のスキーマと完全に一致しなくてはいけない';break;case"pattern":n='"'+i.params.pattern+'"のパターンと一致しなければいけない';break;case"patternRequired":n='must have property matching pattern "'+i.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="必要なプロパティ"+i.params.missingProperty+"がなければいけない";break;case"type":n=""+i.params.type+"でなければいけない";break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="重複するアイテムがあってはいけない("+i.params.j+"と"+i.params.i+"は同じである)";break;default:n='must pass "'+i.keyword+'" keyword validation'}i.message=n}}),kd}var wd,ok;function CF(){return ok||(ok=1,wd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+=" 항목은 아이템을 "+a+"개 이상 가질 수 없습니다";break;case"additionalProperties":n="추가적인 속성은 허용되지 않습니다";break;case"anyOf":n='"anyOf"의 스키마와 일치해야 합니다';break;case"const":n="상수와 같아야합니다";break;case"contains":n="올바른 아이템을 포함해야 합니다";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+=i.params.property+"속성이 있는 경우, "+i.params.deps+" 속성이 있어야합니다";break;case"discriminator":switch(i.params.error){case"tag":n='"'+i.params.tag+'"태그는 반드시 문자열이여야 합니다';break;case"mapping":n='"'+i.params.tag+'"태그의 값은 반드시 oneOf에 있어야 합니다';break;default:n='"'+i.keyword+'"키워드 검사를 통과해야 합니다'}break;case"enum":n="미리 정의된 값중 하나여야 합니다";break;case"false schema":n="boolean 스키마는 올바르지 않습니다";break;case"format":n='"'+i.params.format+'" 포맷과 일치해야 합니다';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" "+r+" 이여야 합니다";break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" "+r+" 이여야 합니다";break;case"if":n='"'+i.params.failingKeyword+'" 스키마와 일치해야 합니다';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" "+r+" 이여야 합니다";break;case"maxItems":n="";var a=i.params.limit;n+="아이템이 최대 "+a+"개이여야 합니다";break;case"maxLength":n="";var a=i.params.limit;n+="최대 "+a+"글자여야 합니다";break;case"maxProperties":n="";var a=i.params.limit;n+="속성은 최대 "+a+"개 이내여야 합니다";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" "+r+" 이여야 합니다";break;case"minItems":n="";var a=i.params.limit;n+="아이템이 최소 "+a+"개이여야 합니다";break;case"minLength":n="";var a=i.params.limit;n+="최소 "+a+"글자여야 합니다";break;case"minProperties":n="";var a=i.params.limit;n+="속성은 최소 "+a+"개 이상이여야 합니다";break;case"multipleOf":n=""+i.params.multipleOf+"의 배수여야 합니다";break;case"not":n='"not"스키마에 따라 유효하지 않아야 합니다';break;case"oneOf":n='"oneOf" 스키마중 하나와 정확하게 일치해야 합니다';break;case"pattern":n='"'+i.params.pattern+'"패턴과 일치해야 합니다';break;case"patternRequired":n='"'+i.params.missingPattern+'"패턴과 일치하는 속성을 가져야 합니다';break;case"propertyNames":n="속성명이 올바르지 않습니다";break;case"required":n=""+i.params.missingProperty+" 속성은 필수입니다";break;case"type":n=""+i.params.type+"이여야 합니다";break;case"unevaluatedItems":n="";var a=i.params.len;n+="항목이 "+a+"개 아이템을 초과하면 안됩니다";break;case"unevaluatedProperties":n="평가되지 않은 속성이 없어야합니다.";break;case"uniqueItems":n="중복 아이템이 없어야 합니다 (아이템"+i.params.j+"과 아이템"+i.params.i+"가 동일합니다)";break;default:n='"'+i.keyword+'"키워드 검사를 통과해야 합니다'}i.message=n}}),wd}var Sd,sk;function AF(){return sk||(sk=1,Sd=function(t){if(t&&t.length)for(const n of t){let o;switch(n.keyword){case"additionalItems":case"items":o="";var i=n.params.limit;o+="kan ikke ha mer enn "+i+" element",i!=1&&(o+="er");break;case"additionalProperties":o="kan ikke ha flere egenskaper";break;case"anyOf":o='må samsvare med et schema i "anyOf"';break;case"const":o="må være lik konstanten";break;case"contains":o="må inneholde et gyldig element";break;case"dependencies":case"dependentRequired":o="";var i=n.params.depsCount;o+="må ha egenskapen",i!=1&&(o+="e"),o+=" "+n.params.deps+" når egenskapen "+n.params.property+" er angitt";break;case"discriminator":switch(n.params.error){case"tag":o='tag "'+n.params.tag+'" must be string';break;case"mapping":o='value of tag "'+n.params.tag+'" must be in oneOf';break;default:o="må samsvare med valideringen for "+n.keyword}break;case"enum":o="må være lik en av de forhåndsdefinerte verdiene";break;case"false schema":o="boolsk schema er usannt";break;case"format":o='må stemme overens med formatet "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="må være "+r;break;case"formatMinimum":case"formatExclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="må være "+r;break;case"if":o='must match "'+n.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="må være "+r;break;case"maxItems":o="";var i=n.params.limit;o+="kan ikke ha fler enn "+i+" element",i!=1&&(o+="er");break;case"maxLength":o="";var i=n.params.limit;o+="kan ikke være lengre enn "+i+" tegn";break;case"maxProperties":o="";var i=n.params.limit;o+="kan ikke ha mer enn "+i+" egenskap",i!=1&&(o+="er");break;case"minimum":case"exclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="må være "+r;break;case"minItems":o="";var i=n.params.limit;o+="kan ikke ha færre enn "+i+" element",i!=1&&(o+="er");break;case"minLength":o="";var i=n.params.limit;o+="kan ikke være kortere enn "+i+" tegn";break;case"minProperties":o="";var i=n.params.limit;o+="kan ikke ha mindre enn "+i+" egenskap",i!=1&&(o+="er");break;case"multipleOf":o="må være et multiplum av "+n.params.multipleOf;break;case"not":o='kan ikke samsvare med schema i "not"';break;case"oneOf":o='må samsvare med nøyaktig ett schema i "oneOf"';break;case"pattern":o='må samsvare med mønsteret "'+n.params.pattern+'"';break;case"patternRequired":o='må ha en egenskap som samsvarer med mønsteret "'+n.params.missingPattern;break;case"propertyNames":o="egenskapen med navnet '",n.params.propertyNameout+="' er ugyldig";break;case"required":o="må ha den påkrevde egenskapen "+n.params.missingProperty;break;case"type":o="";var a=n.params.type;o+="må være ",a=="number"?o+="et tall":a=="integer"?o+="et heltall":a=="string"?o+="en streng":a=="boolean"?o+="ja eller nei":o+=a;break;case"unevaluatedItems":o="";var i=n.params.len;o+="must NOT have more than "+i+" item",i!=1&&(o+="s");break;case"unevaluatedProperties":o="must NOT have unevaluated properties";break;case"uniqueItems":o="kan ikke ha duplikate elemeneter (elementene ## "+n.params.j+" og "+n.params.i+" er identiske)";break;default:o="må samsvare med valideringen for "+n.keyword}n.message=o}}),Sd}var Ed,lk;function _F(){return lk||(lk=1,Ed=function(t){if(t&&t.length)for(const n of t){let o;switch(n.keyword){case"additionalItems":case"items":o="";var i=n.params.limit;o+="mag niet meer dan "+i+" item",i!=1&&(o+="s"),o+=" bevatten";break;case"additionalProperties":o="mag geen extra eigenschappen bevatten";break;case"anyOf":o='moet overeenkomen met een schema in "anyOf"';break;case"const":o="moet gelijk zijn aan constante";break;case"contains":o="moet een geldig item bevatten";break;case"dependencies":case"dependentRequired":o="";var i=n.params.depsCount;o+="moet de eigenschap",i!=1&&(o+="pen"),o+=" "+n.params.deps+" bevatten als "+n.params.property+" is gedefinieerd";break;case"discriminator":switch(n.params.error){case"tag":o='tag "'+n.params.tag+'" moet een tekenreeks zijn';break;case"mapping":o='de waarde van het veld "'+n.params.tag+'" moet voorkomen in de oneOf';break;default:o='moet sleutelwoord validatie "'+n.keyword+'" doorstaan'}break;case"enum":o="moet overeenkomen met één van de voorgedefinieerde waarden";break;case"false schema":o="boolean schema is fout";break;case"format":o='moet overeenkomen met het volgende formaat: "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="moet "+r+" zijn";break;case"formatMinimum":case"formatExclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="moet "+r+" zijn";break;case"if":o='moet overeenkomen met "'+n.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="moet "+r+" zijn";break;case"maxItems":o="";var i=n.params.limit;o+="mag niet meer dan "+i+" item",i!=1&&(o+="s"),o+=" bevatten";break;case"maxLength":o="";var i=n.params.limit;o+="mag niet langer dan "+i+" karakter",i!=1&&(o+="s"),o+=" zijn";break;case"maxProperties":o="";var i=n.params.limit;o+="mag niet meer dan "+i+" eigenschap",i!=1&&(o+="pen"),o+=" bevatten";break;case"minimum":case"exclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="moet "+r+" zijn";break;case"minItems":o="";var i=n.params.limit;o+="mag niet minder dan "+i+" item",i!=1&&(o+="s"),o+=" bevatten";break;case"minLength":o="";var i=n.params.limit;o+="mag niet korter dan "+i+" karakter",i!=1&&(o+="s"),o+=" zijn";break;case"minProperties":o="";var i=n.params.limit;o+="mag niet minder dan "+i+" eigenschap",i!=1&&(o+="pen"),o+=" bevatten";break;case"multipleOf":o="moet een veelvoud van "+n.params.multipleOf+" zijn";break;case"not":o='mag niet overeenkomen met een schema in "not"';break;case"oneOf":o='moet overeenkomen met één schema in "oneOf"';break;case"pattern":o='moet overeenkomen met het volgende patroon: "'+n.params.pattern+'"';break;case"patternRequired":o='moet een eigenschap bevatten die overeenkomt met het pattroon: "'+n.params.missingPattern+'"';break;case"propertyNames":o="eigenschapnaam is ongeldig";break;case"required":o="moet de eigenschap "+n.params.missingProperty+" bevatten";break;case"type":o="";var a=n.params.type;o+="moet een ",a=="number"?o+="nummer":a=="integer"?o+="geheel getal":a=="string"?o+="tekenreeks":a=="boolean"&&(o+="ja of nee waarde"),o+=" ("+a+") bevatten";break;case"unevaluatedItems":o="";var i=n.params.len;o+="mag niet meer dan "+i+" item",i!=1&&(o+="s"),o+=" bevatten";break;case"unevaluatedProperties":o="mag geen ongecontroleerde eigenschappen bevatten";break;case"uniqueItems":o="mag geen gedupliceerde items bevatten (items ## "+n.params.j+" en "+n.params.i+" zijn identiek)";break;default:o='moet sleutelwoord validatie "'+n.keyword+'" doorstaan'}n.message=o}}),Ed}var Cd,ck;function OF(){return ck||(ck=1,Cd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="nie powinien mieć więcej niż "+a+" element",a==1?n+="u":n+="ów";break;case"additionalProperties":n="nie powinien zawierać dodatkowych pól";break;case"anyOf":n='powinien pasować do wzoru z sekcji "anyOf"';break;case"const":n="powinien być równy stałej";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="powinien zawierać pol",a==1?n+="e":n+="a",n+=" "+i.params.deps+" kiedy pole "+i.params.property+" jest obecne";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='powinien przejść walidację "'+i.keyword+'"'}break;case"enum":n="powinien być równy jednej z predefiniowanych wartości";break;case"false schema":n="boolean schema is false";break;case"format":n='powinien zgadzać się z formatem "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="powinien być "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="powinien być "+r;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="powinien być "+r;break;case"maxItems":n="";var a=i.params.limit;n+="nie powinien mieć więcej niż "+a+" element",a==1?n+="u":n+="ów";break;case"maxLength":n="";var a=i.params.limit;n+="nie powinien być dłuższy niż "+a+" znak",a!=1&&(n+="ów");break;case"maxProperties":n="";var a=i.params.limit;n+="nie powinien zawierać więcej niż "+a+" ",a==1?n+="pole":n+="pól";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="powinien być "+r;break;case"minItems":n="";var a=i.params.limit;n+="nie powinien mieć mniej niż "+a+" element",a==1?n+="u":n+="ów";break;case"minLength":n="";var a=i.params.limit;n+="nie powinien być krótszy niż "+a+" znak",a!=1&&(n+="ów");break;case"minProperties":n="";var a=i.params.limit;n+="nie powinien zawierać mniej niż "+a+" ",a==1?n+="pole":n+="pól";break;case"multipleOf":n="powinien być wielokrotnością "+i.params.multipleOf;break;case"not":n='nie powinien pasować do wzoru z sekcji "not"';break;case"oneOf":n='powinien pasować do jednego wzoru z sekcji "oneOf"';break;case"pattern":n='powinien zgadzać się ze wzorem "'+i.params.pattern+'"';break;case"patternRequired":n='powinien mieć pole pasujące do wzorca "'+i.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="powinien zawierać wymagane pole "+i.params.missingProperty;break;case"type":n="powinien być "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nie powinien zawierać elementów które się powtarzają (elementy "+i.params.j+" i "+i.params.i+" są identyczne)";break;default:n='powinien przejść walidację "'+i.keyword+'"'}i.message=n}}),Cd}var Ad,uk;function xF(){return uk||(uk=1,Ad=function(t){if(t&&t.length)for(const n of t){let o;switch(n.keyword){case"additionalItems":case"items":o="não são permitidos itens adicionais (mais do que "+i+")";break;case"additionalProperties":o="não são permitidas propriedades adicionais";break;case"anyOf":o='os dados não correspondem a nenhum schema de "anyOf"';break;case"const":o="deve ser igual à constante";break;case"contains":o="deve conter um item válido";break;case"dependencies":case"dependentRequired":o="";var i=n.params.depsCount;o+=" deve ter propriedade",i!=1&&(o+="s"),o+=" "+n.params.deps+" quando a propriedade "+n.params.property+" estiver presente";break;case"discriminator":switch(n.params.error){case"tag":o='a tag "'+n.params.tag+'" deve ser uma string';break;case"mapping":o='o valor da tag "'+n.params.tag+'" deve estar no oneOf';break;default:o='deve passar a validação da keyword "'+n.keyword+'"'}break;case"enum":o="deve ser igual a um dos valores permitidos";break;case"false schema":o='o schema booleano é "false"';break;case"format":o='deve corresponder ao formato "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="deve ser "+r;break;case"formatMinimum":case"formatExclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="deve ser "+r;break;case"if":o='deve corresponder ao schema "'+n.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="deve ser "+r;break;case"maxItems":o="";var i=n.params.limit;o+="não deve ter mais que "+i+" elemento",i!=1&&(o+="s");break;case"maxLength":o="";var i=n.params.limit;o+="não deve ser maior que "+i+" caracter",i!=1&&(o+="es");break;case"maxProperties":o="";var i=n.params.limit;o+="não deve ter mais que "+i+" propriedade",i!=1&&(o+="s");break;case"minimum":case"exclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="deve ser "+r;break;case"minItems":o="";var i=n.params.limit;o+="não deve ter menos que "+i+" elemento",i!=1&&(o+="s");break;case"minLength":o="";var i=n.params.limit;o+="não deve ser mais curta que "+i+" caracter",i!=1&&(o+="es");break;case"minProperties":o="";var i=n.params.limit;o+="não deve ter menos que "+i+" propriedade",i!=1&&(o+="s");break;case"multipleOf":o="deve ser múltiplo de "+n.params.multipleOf;break;case"not":o='não deve ser valido segundo o schema em "not"';break;case"oneOf":o='deve corresponder exatamente com um schema em "oneOf"';break;case"pattern":o='deve corresponder ao padrão "'+n.params.pattern+'"';break;case"patternRequired":o='deve ter a propriedade correspondente ao padrão "'+n.params.missingPattern+'"';break;case"propertyNames":o="o nome da propriedade é inválido";break;case"required":o="deve ter a propriedade obrigatória "+n.params.missingProperty;break;case"type":o="";var a=n.params.type;o+="deve ser ",a=="number"?o+="um número":a=="integer"?o+="um número inteiro":a=="string"?o+="um texto":a=="boolean"?o+="um booleano":o+=a;break;case"unevaluatedItems":o="";var i=n.params.len;o+="não pode possuir mais que "+i+" ",i==1?o+="item":o+="itens";break;case"unevaluatedProperties":o="não pode possuir propridades não avaliadas";break;case"uniqueItems":o="não deve ter itens duplicados (os itens ## "+n.params.j+" e "+n.params.i+" são idênticos)";break;default:o='deve passar a validação da keyword "'+n.keyword+'"'}n.message=o}}),Ad}var _d,fk;function TF(){return fk||(fk=1,_d=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="должно иметь не более, чем "+a+" элемент",a>=2&&a<=4?n+="а":a!=1&&(n+="ов");break;case"additionalProperties":n="не должно иметь дополнительных полей";break;case"anyOf":n='должно соответствовать одной их схем в "anyOf"';break;case"const":n="должно быть равно заданному значению";break;case"contains":n="должно содержать значение соответствующее схеме";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="должно иметь пол",a==1?n+="е":n+="я",n+=" "+i.params.deps+", когда присутствует поле "+i.params.property;break;case"discriminator":switch(i.params.error){case"tag":n='поле "'+i.params.tag+'" должно быть строкой';break;case"mapping":n='значение поля "'+i.params.tag+'" должно быть в одной из oneOf схем ';break;default:n='должно соответствовать правилу "'+i.keyword+'"'}break;case"enum":n="должно быть равно одному из разрешенных значений";break;case"false schema":n="схема равна false";break;case"format":n='должно соответствовать формату "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="должно быть "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="должно быть "+r;break;case"if":n='должно соответствовать схемe "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="должно быть "+r;break;case"maxItems":n="";var a=i.params.limit;n+="должно иметь не более, чем "+a+" элемент",a>=2&&a<=4?n+="а":a!=1&&(n+="ов");break;case"maxLength":n="";var a=i.params.limit;n+="должно быть не длиннее, чем "+a+" символ",a>=2&&a<=4?n+="а":a!=1&&(n+="ов");break;case"maxProperties":n="";var a=i.params.limit;n+="должно иметь не более, чем "+a+" пол",a==1?n+="е":a>=2&&a<=4?n+="я":n+="ей";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="должно быть "+r;break;case"minItems":n="";var a=i.params.limit;n+="должно иметь не менее, чем "+a+" элемент",a>=2&&a<=4?n+="а":a!=1&&(n+="ов");break;case"minLength":n="";var a=i.params.limit;n+="должно быть не короче, чем "+a+" символ",a>=2&&a<=4?n+="а":a!=1&&(n+="ов");break;case"minProperties":n="";var a=i.params.limit;n+="должно иметь не менее, чем "+a+" пол",a==1?n+="е":a>=2&&a<=4?n+="я":n+="ей";break;case"multipleOf":n="должно быть кратным "+i.params.multipleOf;break;case"not":n='должно не соответствовать схеме в "not"';break;case"oneOf":n='должно соответствовать в точности одной схемe в "oneOf"';break;case"pattern":n='должно соответствовать образцу "'+i.params.pattern+'"';break;case"patternRequired":n='должно иметь поле, соответствующее образцу "'+i.params.missingPattern+'"';break;case"propertyNames":n="имя поля не соответствует схеме";break;case"required":n="должно иметь обязательное поле "+i.params.missingProperty;break;case"type":n="должно быть "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="должно иметь не более, чем "+a+" элемент",a>=2&&a<=4?n+="а":a!=1&&(n+="ов");break;case"unevaluatedProperties":n="не должно иметь непроверенных полей";break;case"uniqueItems":n="не должно иметь повторяющихся элементов (элементы "+i.params.j+" и "+i.params.i+" идентичны)";break;default:n='должно соответствовать правилу "'+i.keyword+'"'}i.message=n}}),_d}var Od,dk;function PF(){return dk||(dk=1,Od=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="nemôže obsahovať viac, než "+a+" prv",a==1?n+="ok":n+="kov";break;case"additionalProperties":n="nemôže obsahovať ďalšie položky";break;case"anyOf":n='musí splňovať aspoň jednu zo schém v "anyOf"';break;case"const":n="musí byť konštanta";break;case"contains":n="musí obsahovať prvok zodpovedajúci schéme";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+=" musí obsahovať polož",a>=2&&a<=4?n+="ky":a!=1?n+="iek":n+="ka",n+=": "+i.params.deps+", ak obsahuje "+i.params.property;break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='musí splniť "'+i.keyword+'" validáciu'}break;case"enum":n="musí byť jedna z definovaných hodnôt";break;case"false schema":n="schéma je false";break;case"format":n='musí obsahovať formát "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí byť "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí byť "+r;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí byť "+r;break;case"maxItems":n="";var a=i.params.limit;n+="nesmie obsahovať viac než "+a+" prv",a==1?n+="ok":n+="kov";break;case"maxLength":n="";var a=i.params.limit;n+="nesmie byť dlhší než "+a+" znak",a!=1&&(n+="ov");break;case"maxProperties":n="";var a=i.params.limit;n+="nesmie obsahovať viac než "+a+" polož",a>=2&&a<=4?n+="ky":a!=1?n+="iek":n+="ka";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí byť "+r;break;case"minItems":n="";var a=i.params.limit;n+="nesmie obsahovať menej než "+a+" prv",a==1?n+="ok":n+="kov";break;case"minLength":n="";var a=i.params.limit;n+="nesmie byť kratší než "+a+" znak",a!=1&&(n+="ov");break;case"minProperties":n="";var a=i.params.limit;n+="nesmie obsahovať menej než "+a+" polož",a>=2&&a<=4?n+="ky":a!=1?n+="iek":n+="ka";break;case"multipleOf":n="musí byť násobkom "+i.params.multipleOf;break;case"not":n='nesmie splňovať schému v "not"';break;case"oneOf":n='musí splňovať práve jednu schému v "oneOf"';break;case"pattern":n='musí splňovať regulárny výraz "'+i.params.pattern+'"';break;case"patternRequired":n='musí obsahovať položku splňjúcu regulárny výraz "'+i.params.missingPattern+'"';break;case"propertyNames":n="názov položky nezodpovedá schéme";break;case"required":n="musí obsahovať požadovanú položku "+i.params.missingProperty;break;case"type":n="musí byť "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nesmie obsahovať duplicitné prvky (prvky ## "+i.params.j+" a "+i.params.i+" sú rovnaké)";break;default:n='musí splniť "'+i.keyword+'" validáciu'}i.message=n}}),Od}var xd,pk;function IF(){return pk||(pk=1,xd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="borde ha fler än "+a+" sak",a!=1&&(n+="er");break;case"additionalProperties":n="borde inte ha fler egenskaper";break;case"anyOf":n='borde matcha något schema i "anyOf"';break;case"const":n="bör vara en konstant";break;case"contains":n="bör innehålla ett giltigt objekt";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="borde ha egenskap",a!=1&&(n+="er"),n+=" "+i.params.deps+" när egenskap "+i.params.property+" finns tillgängligt";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='bör passera "'+i.keyword+'" nyckelord validering'}break;case"enum":n="borde vara ekvivalent med en av dess fördefinierade värden";break;case"false schema":n="boolean schema är falskt";break;case"format":n='borde matcha formatet "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="bör vara "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="bör vara "+r;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="borde vara "+r;break;case"maxItems":n="";var a=i.params.limit;n+="borde inte ha fler än "+a+" sak",a!=1&&(n+="er");break;case"maxLength":n="";var a=i.params.limit;n+="borde inte vara längre än "+a+" tecken";break;case"maxProperties":n="";var a=i.params.limit;n+="borde inte ha fler än "+a+" egenskap",a!=1&&(n+="er");break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="borde vara "+r;break;case"minItems":n="";var a=i.params.limit;n+="borde inte ha färre än "+a+" sak",a!=1&&(n+="er");break;case"minLength":n="";var a=i.params.limit;n+="borde inte vara kortare än "+a+" tecken";break;case"minProperties":n="";var a=i.params.limit;n+="borde inte ha färre än "+a+" egenskap",a!=1&&(n+="er");break;case"multipleOf":n="borde vara en multipel av "+i.params.multipleOf;break;case"not":n='borde inte vara giltigt enligt schema i "not"';break;case"oneOf":n='borde matcha exakt ett schema i "oneOf"';break;case"pattern":n='borde matcha mönstret "'+i.params.pattern+'"';break;case"patternRequired":n='bör ha en egenskap som matchar mönstret "'+i.params.missingPattern+'"';break;case"propertyNames":n="egenskap med namnet är inte giltig";break;case"required":n="borde ha den nödvändiga egenskapen "+i.params.missingProperty;break;case"type":n="borde vara "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="borde inte ha duplicerade saker (sakerna ## "+i.params.j+" och "+i.params.i+" är identiska)";break;default:n='bör passera "'+i.keyword+'" nyckelord validering'}i.message=n}}),xd}var Td,mk;function NF(){return mk||(mk=1,Td=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="ต้องมีสมาชิกไม่เกิน "+a+" ตัว";break;case"additionalProperties":n="ต้องไม่มี property อื่นๆ นอกเหนีอจากที่กำหนดไว้";break;case"anyOf":n='ต้องตรงกับหนึ่งใน schema ที่กำหนดไว้ใน "anyOf"';break;case"const":n="ต้องเท่ากับค่าคงที่";break;case"contains":n="ต้องมีสมาชิกที่ผ่านเงื่อนไขอยู่";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="เมื่อมี property "+i.params.property+" แล้วจะต้องมี property "+i.params.deps+" ด้วย";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" ต้องเป็น string';break;case"mapping":n='ต้องมีค่าของ tag "'+i.params.tag+'" ใน oneOf';break;default:n='ต้องผ่านคีย์เวิร์ด "'+i.keyword+'"'}break;case"enum":n="ต้องตรงกับหนึ่งในค่าที่กำหนดไว้";break;case"false schema":n="schema เป็น false";break;case"format":n='ต้องเป็นรูปแบบ "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ต้อง "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ต้อง "+r;break;case"if":n='ต้องตรงกับ schema "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ต้อง "+r;break;case"maxItems":n="";var a=i.params.limit;n+="ต้องมีสมาชิกไม่เกิน "+a;break;case"maxLength":n="";var a=i.params.limit;n+="ต้องยาวไม่เกิน "+a+" ตัวอักษร";break;case"maxProperties":n="";var a=i.params.limit;n+="ต้องมี property ไม่เกิน "+a+" ตัว";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ต้อง "+r;break;case"minItems":n="";var a=i.params.limit;n+="ควรมีสมาชิกไม่น้อยกว่า "+a;break;case"minLength":n="";var a=i.params.limit;n+="ต้องมีอย่างน้อย "+a+" ตัวอักษร";break;case"minProperties":n="";var a=i.params.limit;n+="ต้องมี property อย่างน้อย "+a+" ตัว";break;case"multipleOf":n="ต้องเป็นเลขที่หาร "+i.params.multipleOf+" ลงตัว";break;case"not":n='ต้องไม่ผ่าน schema ที่กำหนดไว้ใน "not"';break;case"oneOf":n='ต้องตรงกับ schema ตัวเดียวใน "oneOf" เท่านั้น';break;case"pattern":n='ต้องตรงตาม pattern "'+i.params.pattern+'"';break;case"patternRequired":n='ต้องมี property ที่มีชื่อตรงตาม pattern "'+i.params.missingPattern+'"';break;case"propertyNames":n="ชื่อ property ไม่ถูกต้อง";break;case"required":n="ต้องมี property "+i.params.missingProperty+" ด้วย";break;case"type":n="ต้องเป็น "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="ต้องมีไม่เกิน "+a+" ตัว";break;case"unevaluatedProperties":n="ต้องไม่มี property ที่ยังไม่ได้ผ่านการตรวจสอบเงื่อนไขใดๆ";break;case"uniqueItems":n="ต้องมีสมาชิกไม่ซ้ำักัน (ลำดับที่ "+i.params.j+" กับ "+i.params.i+" ซ้ำกัน)";break;default:n='ต้องผ่านคีย์เวิร์ด "'+i.keyword+'"'}i.message=n}}),Td}var Pd,hk;function DF(){return hk||(hk=1,Pd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="不允许超过"+a+"个元素";break;case"additionalProperties":n="不允许有额外的属性";break;case"anyOf":n="数据应为 anyOf 所指定的其中一个";break;case"const":n="应当等于常量";break;case"contains":n="应当包含一个有效项";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="应当拥有属性"+i.params.property+"的依赖属性"+i.params.deps;break;case"discriminator":switch(i.params.error){case"tag":n='标签 "'+i.params.tag+'" 的类型必须为字符串';break;case"mapping":n='标签 "'+i.params.tag+'" 的值必须在 oneOf 之中';break;default:n='应当通过 "'+i.keyword+' 关键词校验"'}break;case"enum":n="应当是预设定的枚举值之一";break;case"false schema":n="布尔模式出错";break;case"format":n='应当匹配格式 "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="应当是 "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="应当是 "+r;break;case"if":n='应当匹配模式 "'+i.params.failingKeyword+'" ';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="应当为 "+r;break;case"maxItems":n="";var a=i.params.limit;n+="不应多于 "+a+" 个项";break;case"maxLength":n="";var a=i.params.limit;n+="不应多于 "+a+" 个字符";break;case"maxProperties":n="";var a=i.params.limit;n+="不应有多于 "+a+" 个属性";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="应当为 "+r;break;case"minItems":n="";var a=i.params.limit;n+="不应少于 "+a+" 个项";break;case"minLength":n="";var a=i.params.limit;n+="不应少于 "+a+" 个字符";break;case"minProperties":n="";var a=i.params.limit;n+="不应有少于 "+a+" 个属性";break;case"multipleOf":n="应当是 "+i.params.multipleOf+" 的整数倍";break;case"not":n='不应当匹配 "not" schema';break;case"oneOf":n='只能匹配一个 "oneOf" 中的 schema';break;case"pattern":n='应当匹配模式 "'+i.params.pattern+'"';break;case"patternRequired":n="应当有属性匹配模式 "+i.params.missingPattern;break;case"propertyNames":n="属性名 无效";break;case"required":n="应当有必需属性 "+i.params.missingProperty;break;case"type":n="应当是 "+i.params.type+" 类型";break;case"unevaluatedItems":n="";var a=i.params.len;n+=" 不允许有超过 "+a+" 个元素";break;case"unevaluatedProperties":n="不允许存在未求值的属性";break;case"uniqueItems":n="不应当含有重复项 (第 "+i.params.j+" 项与第 "+i.params.i+" 项是重复的)";break;default:n='应当通过 "'+i.keyword+' 关键词校验"'}i.message=n}}),Pd}var Id,gk;function FF(){return gk||(gk=1,Id=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="不可以超過"+a+"個元素";break;case"additionalProperties":n="不可以有額外的屬性";break;case"anyOf":n="不符合 anyOf 指定的模式";break;case"const":n="應該等於常數";break;case"contains":n="應該包含一個有效元素";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="應該要有屬性"+i.params.property+"的依賴屬性"+i.params.deps;break;case"discriminator":switch(i.params.error){case"tag":n='標籤 "'+i.params.tag+'" 的類型必須是字串';break;case"mapping":n='標籤 "'+i.params.tag+'" 必須在 oneOf 其中之一';break;default:n='應該通過 "'+i.keyword+' 關鍵詞檢驗"'}break;case"enum":n="應該要在預設的值之中";break;case"false schema":n="布林模式不正確";break;case"format":n="應該要符合"+i.params.format+"格式";break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="應該是 "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="應該是 "+r;break;case"if":n='應該符合 "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="應該要 "+r;break;case"maxItems":n="";var a=i.params.limit;n+="不應該多於 "+a+" 個";break;case"maxLength":n="";var a=i.params.limit;n+="不應該多於 "+a+" 個字元";break;case"maxProperties":n="";var a=i.params.limit;n+="不應該多於 "+a+" 個屬性";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="應該要 "+r;break;case"minItems":n="";var a=i.params.limit;n+="不應該少於 "+a+" 個";break;case"minLength":n="";var a=i.params.limit;n+="不應該少於 "+a+" 個字元";break;case"minProperties":n="";var a=i.params.limit;n+="不應該少於 "+a+" 個屬性";break;case"multipleOf":n="應該是 "+i.params.multipleOf+" 的整數倍";break;case"not":n='不應該符合 "not" schema';break;case"oneOf":n='只能符合一個 "oneOf" 中的 schema';break;case"pattern":n='應該符合模式 "'+i.params.pattern+'"';break;case"patternRequired":n="應該有屬性對應模式 "+i.params.missingPattern;break;case"propertyNames":n="属性名 無效";break;case"required":n="應該有必須屬性 "+i.params.missingProperty;break;case"type":n="應該是 "+i.params.type+" 類型";break;case"unevaluatedItems":n="";var a=i.params.len;n+=" 的元素不可以超過 "+a+" 個";break;case"unevaluatedProperties":n="不應該有未驗證的屬性";break;case"uniqueItems":n="不應該有重複項目 (第 "+i.params.j+" 項和第 "+i.params.i+" 項是重複的)";break;default:n='應該通過 "'+i.keyword+' 關鍵詞檢驗"'}i.message=n}}),Id}var Nd,yk;function MF(){return yk||(yk=1,Nd={en:dF(),ar:pF(),ca:mF(),cs:hF(),de:gF(),es:yF(),fi:vF(),fr:bF(),hu:kF(),id:wF(),it:SF(),ja:EF(),ko:CF(),nb:AF(),nl:_F(),pl:OF(),"pt-BR":xF(),ru:TF(),sk:PF(),sv:IF(),th:NF(),zh:DF(),"zh-TW":FF()}),Nd}var jF=MF();const Ho=gn(jF),ic={flex:1,paddingLeft:6,paddingRight:6};function LF(e){const{disabled:t,hasCopy:r,hasMoveDown:a,hasMoveUp:i,hasRemove:n,fieldPathId:o,onCopyItem:s,onRemoveItem:c,onMoveDownItem:l,onMoveUpItem:u,readonly:f,registry:p,uiSchema:d}=e,{CopyButton:h,MoveDownButton:k,MoveUpButton:v,RemoveButton:y}=p.templates.ButtonTemplates;return D.jsxs("div",{className:"d-flex flex-row",children:[(i||a)&&D.jsx("div",{className:"m-0 p-0",children:D.jsx(v,{id:Or(o,"moveUp"),className:"rjsf-array-item-move-up",style:ic,disabled:t||f||!i,onClick:u,uiSchema:d,registry:p})}),(i||a)&&D.jsx("div",{className:"m-0 p-0",children:D.jsx(k,{id:Or(o,"moveDown"),className:"rjsf-array-item-move-down",style:ic,disabled:t||f||!a,onClick:l,uiSchema:d,registry:p})}),r&&D.jsx("div",{className:"m-0 p-0",children:D.jsx(h,{id:Or(o,"copy"),className:"rjsf-array-item-copy",style:ic,disabled:t||f,onClick:s,uiSchema:d,registry:p})}),n&&D.jsx("div",{className:"m-0 p-0",children:D.jsx(y,{id:Or(o,"remove"),className:"rjsf-array-item-remove",style:ic,disabled:t||f,onClick:c,uiSchema:d,registry:p})})]})}function RF(e){const{children:t,buttonsProps:r,hasToolbar:a,registry:i,uiSchema:n}=e,o=be(n),s=Ce("ArrayFieldItemButtonsTemplate",i,o);return D.jsx("div",{children:D.jsxs("div",{className:"row mb-2 d-flex align-items-center",children:[D.jsx("div",{className:a?"col-9 col-lg-9":"col-12",children:t}),a&&D.jsx("div",{className:"col-3 col-lg-3 py-4",children:D.jsx(s,{...r})})]})})}function qF(e){const{canAdd:t,disabled:r,fieldPathId:a,items:i,optionalDataControl:n,onAddClick:o,readonly:s,registry:c,required:l,schema:u,title:f,uiSchema:p}=e,d=be(p),h=Ce("ArrayFieldTitleTemplate",c,d),k=Ce("ArrayFieldDescriptionTemplate",c,d),{AddButton:v}=c.templates.ButtonTemplates,y=!s&&!r;return D.jsx("div",{children:D.jsx("div",{className:"row p-0 m-0",children:D.jsxs("div",{className:"col p-0 m-0",children:[D.jsx(h,{fieldPathId:a,title:d.title||f,required:l,schema:u,uiSchema:p,registry:c,optionalDataControl:y?n:void 0}),D.jsx(k,{fieldPathId:a,description:d.description||u.description,schema:u,uiSchema:p,registry:c}),y?void 0:n,D.jsxs("div",{className:"container-fluid p-0 m-0",children:[i,t&&D.jsxs("div",{className:"row mt-2",children:[D.jsx("div",{className:"col-9"}),D.jsx("div",{className:"col-3 py-4",children:D.jsx(v,{id:Or(a,"add"),className:"rjsf-array-item-add",onClick:o,disabled:r||s,uiSchema:p,registry:c})})]})]})]})})})}const Wo={width:16,height:16,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,focusable:!1},zF=()=>D.jsx("svg",{...Wo,children:D.jsx("path",{d:"M8 13V3M3.5 7.5L8 3l4.5 4.5"})}),$F=()=>D.jsx("svg",{...Wo,children:D.jsx("path",{d:"M8 3v10M3.5 8.5L8 13l4.5-4.5"})}),UF=()=>D.jsxs("svg",{...Wo,children:[D.jsx("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.5"}),D.jsx("path",{d:"M10.5 2.5h-7a1 1 0 0 0-1 1v7"})]}),vk=()=>D.jsx("svg",{...Wo,children:D.jsx("path",{d:"M3.5 8h9"})}),BF=()=>D.jsx("svg",{...Wo,children:D.jsx("path",{d:"M8 3.5v9M3.5 8h9"})});function Vi({iconType:e,icon:t,className:r,uiSchema:a,registry:i,variant:n="light",...o}){return D.jsx("button",{type:"button",className:`btn btn-${n} btn-sm ${r||""}`.trim(),...o,children:t})}function VF(e){const{translateString:t}=e.registry;return D.jsx(Vi,{title:t(Me.CopyButton),...e,icon:D.jsx(UF,{})})}function HF(e){const{translateString:t}=e.registry;return D.jsx(Vi,{title:t(Me.MoveUpButton),...e,icon:D.jsx(zF,{})})}function WF(e){const{translateString:t}=e.registry;return D.jsx(Vi,{title:t(Me.MoveDownButton),...e,icon:D.jsx($F,{})})}function KF(e){const{translateString:t}=e.registry;return D.jsx(Vi,{title:t(Me.RemoveButton),...e,variant:"danger",icon:D.jsx(vk,{})})}function GF(e){const{translateString:t}=e.registry;return D.jsx(Vi,{title:t(Me.ClearButton),...e,icon:D.jsx(vk,{})})}function JF({className:e,...t}){const{translateString:r}=t.registry;return D.jsx(Vi,{...t,variant:"primary",className:`ml-1 ${e||""}`.trim(),style:{width:"100%"},title:r(Me.AddItemButton),icon:D.jsx(BF,{})})}function YF({uiSchema:e}){const{submitText:t,norender:r,props:a={}}=ey(e);return r?null:D.jsx("div",{children:D.jsx("button",{type:"submit",...a,className:`btn btn-primary ${a.className||""}`.trim(),children:t})})}const XF={SubmitButton:YF,AddButton:JF,CopyButton:VF,MoveDownButton:WF,MoveUpButton:HF,RemoveButton:KF,ClearButton:GF};function cz(){}function uz(){}function ZF(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const QF=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,eM=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tM={};function bk(e,t){return(tM.jsx?eM:QF).test(e)}const rM=/[ \t\n\f\r]/g;function nM(e){return typeof e=="object"?e.type==="text"?kk(e.value):!1:kk(e)}function kk(e){return e.replace(rM,"")===""}class Ko{constructor(t,r,a){this.normal=r,this.property=t,a&&(this.space=a)}}Ko.prototype.normal={},Ko.prototype.property={},Ko.prototype.space=void 0;function wk(e,t){const r={},a={};for(const i of e)Object.assign(r,i.property),Object.assign(a,i.normal);return new Ko(r,a,t)}function Dd(e){return e.toLowerCase()}class vr{constructor(t,r){this.attribute=r,this.property=t}}vr.prototype.attribute="",vr.prototype.booleanish=!1,vr.prototype.boolean=!1,vr.prototype.commaOrSpaceSeparated=!1,vr.prototype.commaSeparated=!1,vr.prototype.defined=!1,vr.prototype.mustUseProperty=!1,vr.prototype.number=!1,vr.prototype.overloadedBoolean=!1,vr.prototype.property="",vr.prototype.spaceSeparated=!1,vr.prototype.space=void 0;let aM=0;const Pe=ni(),Ut=ni(),Fd=ni(),ue=ni(),kt=ni(),ri=ni(),Pr=ni();function ni(){return 2**++aM}const Md=Object.freeze(Object.defineProperty({__proto__:null,boolean:Pe,booleanish:Ut,commaOrSpaceSeparated:Pr,commaSeparated:ri,number:ue,overloadedBoolean:Fd,spaceSeparated:kt},Symbol.toStringTag,{value:"Module"})),jd=Object.keys(Md);class Ld extends vr{constructor(t,r,a,i){let n=-1;if(super(t,r),Sk(this,"space",i),typeof a=="number")for(;++n<jd.length;){const o=jd[n];Sk(this,jd[n],(a&Md[o])===Md[o])}}}Ld.prototype.defined=!0;function Sk(e,t,r){r&&(e[t]=r)}function Hi(e){const t={},r={};for(const[a,i]of Object.entries(e.properties)){const n=new Ld(a,e.transform(e.attributes||{},a),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(n.mustUseProperty=!0),t[a]=n,r[Dd(a)]=a,r[Dd(n.attribute)]=a}return new Ko(t,r,e.space)}const Ek=Hi({properties:{ariaActiveDescendant:null,ariaAtomic:Ut,ariaAutoComplete:null,ariaBusy:Ut,ariaChecked:Ut,ariaColCount:ue,ariaColIndex:ue,ariaColSpan:ue,ariaControls:kt,ariaCurrent:null,ariaDescribedBy:kt,ariaDetails:null,ariaDisabled:Ut,ariaDropEffect:kt,ariaErrorMessage:null,ariaExpanded:Ut,ariaFlowTo:kt,ariaGrabbed:Ut,ariaHasPopup:null,ariaHidden:Ut,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:kt,ariaLevel:ue,ariaLive:null,ariaModal:Ut,ariaMultiLine:Ut,ariaMultiSelectable:Ut,ariaOrientation:null,ariaOwns:kt,ariaPlaceholder:null,ariaPosInSet:ue,ariaPressed:Ut,ariaReadOnly:Ut,ariaRelevant:null,ariaRequired:Ut,ariaRoleDescription:kt,ariaRowCount:ue,ariaRowIndex:ue,ariaRowSpan:ue,ariaSelected:Ut,ariaSetSize:ue,ariaSort:null,ariaValueMax:ue,ariaValueMin:ue,ariaValueNow:ue,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Ck(e,t){return t in e?e[t]:t}function Ak(e,t){return Ck(e,t.toLowerCase())}const iM=Hi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ri,acceptCharset:kt,accessKey:kt,action:null,allow:null,allowFullScreen:Pe,allowPaymentRequest:Pe,allowUserMedia:Pe,alpha:Pe,alt:null,as:null,async:Pe,autoCapitalize:null,autoComplete:kt,autoFocus:Pe,autoPlay:Pe,blocking:kt,capture:null,charSet:null,checked:Pe,cite:null,className:kt,closedBy:null,colorSpace:null,cols:ue,colSpan:ue,command:null,commandFor:null,content:null,contentEditable:Ut,controls:Pe,controlsList:kt,coords:ue|ri,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Pe,defer:Pe,dir:null,dirName:null,disabled:Pe,download:Fd,draggable:Ut,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Pe,formTarget:null,headers:kt,height:ue,hidden:Fd,high:ue,href:null,hrefLang:null,htmlFor:kt,httpEquiv:kt,id:null,imageSizes:null,imageSrcSet:null,inert:Pe,inputMode:null,integrity:null,is:null,isMap:Pe,itemId:null,itemProp:kt,itemRef:kt,itemScope:Pe,itemType:kt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Pe,low:ue,manifest:null,max:null,maxLength:ue,media:null,method:null,min:null,minLength:ue,multiple:Pe,muted:Pe,name:null,nonce:null,noModule:Pe,noValidate:Pe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Pe,optimum:ue,pattern:null,ping:kt,placeholder:null,playsInline:Pe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Pe,referrerPolicy:null,rel:kt,required:Pe,reversed:Pe,rows:ue,rowSpan:ue,sandbox:kt,scope:null,scoped:Pe,seamless:Pe,selected:Pe,shadowRootClonable:Pe,shadowRootCustomElementRegistry:Pe,shadowRootDelegatesFocus:Pe,shadowRootMode:null,shadowRootSerializable:Pe,shape:null,size:ue,sizes:null,slot:null,span:ue,spellCheck:Ut,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ue,step:null,style:null,tabIndex:ue,target:null,title:null,translate:null,type:null,typeMustMatch:Pe,useMap:null,value:Ut,width:ue,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:kt,axis:null,background:null,bgColor:null,border:ue,borderColor:null,bottomMargin:ue,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Pe,declare:Pe,event:null,face:null,frame:null,frameBorder:null,hSpace:ue,leftMargin:ue,link:null,longDesc:null,lowSrc:null,marginHeight:ue,marginWidth:ue,noResize:Pe,noHref:Pe,noShade:Pe,noWrap:Pe,object:null,profile:null,prompt:null,rev:null,rightMargin:ue,rules:null,scheme:null,scrolling:Ut,standby:null,summary:null,text:null,topMargin:ue,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ue,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Pe,disablePictureInPicture:Pe,disableRemotePlayback:Pe,exportParts:ri,part:kt,prefix:null,property:null,results:ue,security:null,unselectable:null},space:"html",transform:Ak}),oM=Hi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Pr,accentHeight:ue,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ue,amplitude:ue,arabicForm:null,ascent:ue,attributeName:null,attributeType:null,azimuth:ue,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ue,by:null,calcMode:null,capHeight:ue,className:kt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ue,diffuseConstant:ue,direction:null,display:null,dur:null,divisor:ue,dominantBaseline:null,download:Pe,dx:null,dy:null,edgeMode:null,editable:null,elevation:ue,enableBackground:null,end:null,event:null,exponent:ue,externalResourcesRequired:null,fill:null,fillOpacity:ue,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ri,g2:ri,glyphName:ri,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ue,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ue,horizOriginX:ue,horizOriginY:ue,id:null,ideographic:ue,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ue,k:ue,k1:ue,k2:ue,k3:ue,k4:ue,kernelMatrix:Pr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ue,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ue,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ue,overlineThickness:ue,paintOrder:null,panose1:null,path:null,pathLength:ue,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:kt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ue,pointsAtY:ue,pointsAtZ:ue,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Pr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Pr,rev:Pr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Pr,requiredFeatures:Pr,requiredFonts:Pr,requiredFormats:Pr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ue,specularExponent:ue,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ue,strikethroughThickness:ue,string:null,stroke:null,strokeDashArray:Pr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ue,strokeOpacity:ue,strokeWidth:null,style:null,surfaceScale:ue,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Pr,tabIndex:ue,tableValues:null,target:null,targetX:ue,targetY:ue,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Pr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ue,underlineThickness:ue,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ue,values:null,vAlphabetic:ue,vMathematical:ue,vectorEffect:null,vHanging:ue,vIdeographic:ue,version:null,vertAdvY:ue,vertOriginX:ue,vertOriginY:ue,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ue,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ck}),_k=Hi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Ok=Hi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ak}),xk=Hi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),sM={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},lM=/[A-Z]/g,Tk=/-[a-z]/g,cM=/^data[-\w.:]+$/i;function uM(e,t){const r=Dd(t);let a=t,i=vr;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&cM.test(t)){if(t.charAt(4)==="-"){const n=t.slice(5).replace(Tk,dM);a="data"+n.charAt(0).toUpperCase()+n.slice(1)}else{const n=t.slice(4);if(!Tk.test(n)){let o=n.replace(lM,fM);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Ld}return new i(a,t)}function fM(e){return"-"+e.toLowerCase()}function dM(e){return e.charAt(1).toUpperCase()}const pM=wk([Ek,iM,_k,Ok,xk],"html"),Rd=wk([Ek,oM,_k,Ok,xk],"svg");function mM(e){return e.join(" ").trim()}var Wi={},qd,Pk;function hM(){if(Pk)return qd;Pk=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,n=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g,c=`
|
|
106
|
-
`,l="/",u="*",f="",p="comment",d="declaration";function h(v,y){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];y=y||{};var b=1,w=1;function E(I){var j=I.match(t);j&&(b+=j.length);var $=I.lastIndexOf(c);w=~$?I.length-$:w+I.length}function m(){var I={line:b,column:w};return function(j){return j.position=new g(I),x(),j}}function g(I){this.start=I,this.end={line:b,column:w},this.source=y.source}g.prototype.content=v;function S(I){var j=new Error(y.source+":"+b+":"+w+": "+I);if(j.reason=I,j.filename=y.source,j.line=b,j.column=w,j.source=v,!y.silent)throw j}function A(I){var j=I.exec(v);if(j){var $=j[0];return E($),v=v.slice($.length),j}}function x(){A(r)}function O(I){var j;for(I=I||[];j=C();)j!==!1&&I.push(j);return I}function C(){var I=m();if(!(l!=v.charAt(0)||u!=v.charAt(1))){for(var j=2;f!=v.charAt(j)&&(u!=v.charAt(j)||l!=v.charAt(j+1));)++j;if(j+=2,f===v.charAt(j-1))return S("End of comment missing");var $=v.slice(2,j-2);return w+=2,E($),v=v.slice(j),w+=2,I({type:p,comment:$})}}function _(){var I=m(),j=A(a);if(j){if(C(),!A(i))return S("property missing ':'");var $=A(n),Y=I({type:d,property:k(j[0].replace(e,f)),value:$?k($[0].replace(e,f)):f});return A(o),Y}}function F(){var I=[];O(I);for(var j;j=_();)j!==!1&&(I.push(j),O(I));return I}return x(),F()}function k(v){return v?v.replace(s,f):f}return qd=h,qd}var Ik;function gM(){if(Ik)return Wi;Ik=1;var e=Wi&&Wi.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.default=r;const t=e(hM());function r(a,i){let n=null;if(!a||typeof a!="string")return n;const o=(0,t.default)(a),s=typeof i=="function";return o.forEach(c=>{if(c.type!=="declaration")return;const{property:l,value:u}=c;s?i(l,u,c):u&&(n=n||{},n[l]=u)}),n}return Wi}var Go={},Nk;function yM(){if(Nk)return Go;Nk=1,Object.defineProperty(Go,"__esModule",{value:!0}),Go.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,n=function(l){return!l||r.test(l)||e.test(l)},o=function(l,u){return u.toUpperCase()},s=function(l,u){return"".concat(u,"-")},c=function(l,u){return u===void 0&&(u={}),n(l)?l:(l=l.toLowerCase(),u.reactCompat?l=l.replace(i,s):l=l.replace(a,s),l.replace(t,o))};return Go.camelCase=c,Go}var Jo,Dk;function vM(){if(Dk)return Jo;Dk=1;var e=Jo&&Jo.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(gM()),r=yM();function a(i,n){var o={};return!i||typeof i!="string"||(0,t.default)(i,function(s,c){s&&c&&(o[(0,r.camelCase)(s,n)]=c)}),o}return a.default=a,Jo=a,Jo}var bM=vM();const kM=gn(bM),Fk=Mk("end"),zd=Mk("start");function Mk(e){return t;function t(r){const a=r&&r.position&&r.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function wM(e){const t=zd(e),r=Fk(e);if(t&&r)return{start:t,end:r}}function Yo(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?jk(e.position):"start"in e||"end"in e?jk(e):"line"in e||"column"in e?$d(e):""}function $d(e){return Lk(e&&e.line)+":"+Lk(e&&e.column)}function jk(e){return $d(e&&e.start)+"-"+$d(e&&e.end)}function Lk(e){return e&&typeof e=="number"?e:1}class ir extends Error{constructor(t,r,a){super(),typeof r=="string"&&(a=r,r=void 0);let i="",n={},o=!1;if(r&&("line"in r&&"column"in r?n={place:r}:"start"in r&&"end"in r?n={place:r}:"type"in r?n={ancestors:[r],place:r.position}:n={...r}),typeof t=="string"?i=t:!n.cause&&t&&(o=!0,i=t.message,n.cause=t),!n.ruleId&&!n.source&&typeof a=="string"){const c=a.indexOf(":");c===-1?n.ruleId=a:(n.source=a.slice(0,c),n.ruleId=a.slice(c+1))}if(!n.place&&n.ancestors&&n.ancestors){const c=n.ancestors[n.ancestors.length-1];c&&(n.place=c.position)}const s=n.place&&"start"in n.place?n.place.start:n.place;this.ancestors=n.ancestors||void 0,this.cause=n.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=Yo(n.place)||"1:1",this.place=n.place||void 0,this.reason=this.message,this.ruleId=n.ruleId||void 0,this.source=n.source||void 0,this.stack=o&&n.cause&&typeof n.cause.stack=="string"?n.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ir.prototype.file="",ir.prototype.name="",ir.prototype.reason="",ir.prototype.message="",ir.prototype.stack="",ir.prototype.column=void 0,ir.prototype.line=void 0,ir.prototype.ancestors=void 0,ir.prototype.cause=void 0,ir.prototype.fatal=void 0,ir.prototype.place=void 0,ir.prototype.ruleId=void 0,ir.prototype.source=void 0;const Ud={}.hasOwnProperty,SM=new Map,EM=/[A-Z]/g,CM=new Set(["table","tbody","thead","tfoot","tr"]),AM=new Set(["td","th"]),Rk="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function _M(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let a;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=FM(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=DM(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Rd:pM,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},n=qk(i,e,void 0);return n&&typeof n!="string"?n:i.create(e,i.Fragment,{children:n||void 0},void 0)}function qk(e,t,r){if(t.type==="element")return OM(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return xM(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return PM(e,t,r);if(t.type==="mdxjsEsm")return TM(e,t);if(t.type==="root")return IM(e,t,r);if(t.type==="text")return NM(e,t)}function OM(e,t,r){const a=e.schema;let i=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(i=Rd,e.schema=i),e.ancestors.push(t);const n=$k(e,t.tagName,!1),o=MM(e,t);let s=Vd(e,t);return CM.has(t.tagName)&&(s=s.filter(function(c){return typeof c=="string"?!nM(c):!0})),zk(e,o,n,t),Bd(o,s),e.ancestors.pop(),e.schema=a,e.create(t,n,o,r)}function xM(e,t){if(t.data&&t.data.estree&&e.evaluater){const a=t.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}Xo(e,t.position)}function TM(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Xo(e,t.position)}function PM(e,t,r){const a=e.schema;let i=a;t.name==="svg"&&a.space==="html"&&(i=Rd,e.schema=i),e.ancestors.push(t);const n=t.name===null?e.Fragment:$k(e,t.name,!0),o=jM(e,t),s=Vd(e,t);return zk(e,o,n,t),Bd(o,s),e.ancestors.pop(),e.schema=a,e.create(t,n,o,r)}function IM(e,t,r){const a={};return Bd(a,Vd(e,t)),e.create(t,e.Fragment,a,r)}function NM(e,t){return t.value}function zk(e,t,r,a){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=a)}function Bd(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function DM(e,t,r){return a;function a(i,n,o,s){const l=Array.isArray(o.children)?r:t;return s?l(n,o,s):l(n,o)}}function FM(e,t){return r;function r(a,i,n,o){const s=Array.isArray(n.children),c=zd(a);return t(i,n,o,s,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function MM(e,t){const r={};let a,i;for(i in t.properties)if(i!=="children"&&Ud.call(t.properties,i)){const n=LM(e,i,t.properties[i]);if(n){const[o,s]=n;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&AM.has(t.tagName)?a=s:r[o]=s}}if(a){const n=r.style||(r.style={});n[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return r}function jM(e,t){const r={};for(const a of t.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const n=a.data.estree.body[0];n.type;const o=n.expression;o.type;const s=o.properties[0];s.type,Object.assign(r,e.evaluater.evaluateExpression(s.argument))}else Xo(e,t.position);else{const i=a.name;let n;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const s=a.value.data.estree.body[0];s.type,n=e.evaluater.evaluateExpression(s.expression)}else Xo(e,t.position);else n=a.value===null?!0:a.value;r[i]=n}return r}function Vd(e,t){const r=[];let a=-1;const i=e.passKeys?new Map:SM;for(;++a<t.children.length;){const n=t.children[a];let o;if(e.passKeys){const c=n.type==="element"?n.tagName:n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement"?n.name:void 0;if(c){const l=i.get(c)||0;o=c+"-"+l,i.set(c,l+1)}}const s=qk(e,n,o);s!==void 0&&r.push(s)}return r}function LM(e,t,r){const a=uM(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=a.commaSeparated?ZF(r):mM(r)),a.property==="style"){let i=typeof r=="object"?r:RM(e,String(r));return e.stylePropertyNameCase==="css"&&(i=qM(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&a.space?sM[a.property]||a.property:a.attribute,r]}}function RM(e,t){try{return kM(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const a=r,i=new ir("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Rk+"#cannot-parse-style-attribute",i}}function $k(e,t,r){let a;if(!r)a={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let n=-1,o;for(;++n<i.length;){const s=bk(i[n])?{type:"Identifier",name:i[n]}:{type:"Literal",value:i[n]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(n&&s.type==="Literal"),optional:!1}:s}a=o}else a=bk(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(a.type==="Literal"){const i=a.value;return Ud.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(a);Xo(e)}function Xo(e,t){const r=new ir("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Rk+"#cannot-handle-mdx-estrees-without-createevaluater",r}function qM(e){const t={};let r;for(r in e)Ud.call(e,r)&&(t[zM(r)]=e[r]);return t}function zM(e){let t=e.replace(EM,$M);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function $M(e){return"-"+e.toLowerCase()}const Hd={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},UM={};function BM(e,t){const r=UM,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Uk(e,a,i)}function Uk(e,t,r){if(VM(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Bk(e.children,t,r)}return Array.isArray(e)?Bk(e,t,r):""}function Bk(e,t,r){const a=[];let i=-1;for(;++i<e.length;)a[i]=Uk(e[i],t,r);return a.join("")}function VM(e){return!!(e&&typeof e=="object")}const Vk=document.createElement("i");function Wd(e){const t="&"+e+";";Vk.innerHTML=t;const r=Vk.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function On(e,t,r,a){const i=e.length;let n=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,a.length<1e4)o=Array.from(a),o.unshift(t,r),e.splice(...o);else for(r&&e.splice(t,r);n<a.length;)o=a.slice(n,n+1e4),o.unshift(t,0),e.splice(...o),n+=1e4,t+=1e4}function Gr(e,t){return e.length>0?(On(e,e.length,0,t),e):t}const Hk={}.hasOwnProperty;function HM(e){const t={};let r=-1;for(;++r<e.length;)WM(t,e[r]);return t}function WM(e,t){let r;for(r in t){const i=(Hk.call(e,r)?e[r]:void 0)||(e[r]={}),n=t[r];let o;if(n)for(o in n){Hk.call(i,o)||(i[o]=[]);const s=n[o];KM(i[o],Array.isArray(s)?s:s?[s]:[])}}}function KM(e,t){let r=-1;const a=[];for(;++r<t.length;)(t[r].add==="after"?e:a).push(t[r]);On(e,0,0,a)}function Wk(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Ki(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const xn=Sa(/[A-Za-z]/),Ir=Sa(/[\dA-Za-z]/),GM=Sa(/[#-'*+\--9=?A-Z^-~]/);function Kd(e){return e!==null&&(e<32||e===127)}const Gd=Sa(/\d/),JM=Sa(/[\dA-Fa-f]/),YM=Sa(/[!-/:-@[-`{-~]/);function Oe(e){return e!==null&&e<-2}function br(e){return e!==null&&(e<0||e===32)}function ct(e){return e===-2||e===-1||e===32}const XM=Sa(new RegExp("\\p{P}|\\p{S}","u")),ZM=Sa(/\s/);function Sa(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Gi(e){const t=[];let r=-1,a=0,i=0;for(;++r<e.length;){const n=e.charCodeAt(r);let o="";if(n===37&&Ir(e.charCodeAt(r+1))&&Ir(e.charCodeAt(r+2)))i=2;else if(n<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(n))||(o=String.fromCharCode(n));else if(n>55295&&n<57344){const s=e.charCodeAt(r+1);n<56320&&s>56319&&s<57344?(o=String.fromCharCode(n,s),i=1):o="�"}else o=String.fromCharCode(n);o&&(t.push(e.slice(a,r),encodeURIComponent(o)),a=r+i+1,o=""),i&&(r+=i,i=0)}return t.join("")+e.slice(a)}function Et(e,t,r,a){const i=a?a-1:Number.POSITIVE_INFINITY;let n=0;return o;function o(c){return ct(c)?(e.enter(r),s(c)):t(c)}function s(c){return ct(c)&&n++<i?(e.consume(c),s):(e.exit(r),t(c))}}const QM={tokenize:ej};function ej(e){const t=e.attempt(this.parser.constructs.contentInitial,a,i);let r;return t;function a(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Et(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),n(s)}function n(s){const c=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=c),r=c,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return Oe(s)?(e.consume(s),e.exit("chunkText"),n):(e.consume(s),o)}}const tj={tokenize:rj},Kk={tokenize:nj};function rj(e){const t=this,r=[];let a=0,i,n,o;return s;function s(w){if(a<r.length){const E=r[a];return t.containerState=E[1],e.attempt(E[0].continuation,c,l)(w)}return l(w)}function c(w){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&b();const E=t.events.length;let m=E,g;for(;m--;)if(t.events[m][0]==="exit"&&t.events[m][1].type==="chunkFlow"){g=t.events[m][1].end;break}y(a);let S=E;for(;S<t.events.length;)t.events[S][1].end={...g},S++;return On(t.events,m+1,0,t.events.slice(E)),t.events.length=S,l(w)}return s(w)}function l(w){if(a===r.length){if(!i)return p(w);if(i.currentConstruct&&i.currentConstruct.concrete)return h(w);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Kk,u,f)(w)}function u(w){return i&&b(),y(a),p(w)}function f(w){return t.parser.lazy[t.now().line]=a!==r.length,o=t.now().offset,h(w)}function p(w){return t.containerState={},e.attempt(Kk,d,h)(w)}function d(w){return a++,r.push([t.currentConstruct,t.containerState]),p(w)}function h(w){if(w===null){i&&b(),y(0),e.consume(w);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:n}),k(w)}function k(w){if(w===null){v(e.exit("chunkFlow"),!0),y(0),e.consume(w);return}return Oe(w)?(e.consume(w),v(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(w),k)}function v(w,E){const m=t.sliceStream(w);if(E&&m.push(null),w.previous=n,n&&(n.next=w),n=w,i.defineSkip(w.start),i.write(m),t.parser.lazy[w.start.line]){let g=i.events.length;for(;g--;)if(i.events[g][1].start.offset<o&&(!i.events[g][1].end||i.events[g][1].end.offset>o))return;const S=t.events.length;let A=S,x,O;for(;A--;)if(t.events[A][0]==="exit"&&t.events[A][1].type==="chunkFlow"){if(x){O=t.events[A][1].end;break}x=!0}for(y(a),g=S;g<t.events.length;)t.events[g][1].end={...O},g++;On(t.events,A+1,0,t.events.slice(S)),t.events.length=g}}function y(w){let E=r.length;for(;E-- >w;){const m=r[E];t.containerState=m[1],m[0].exit.call(t,e)}r.length=w}function b(){i.write([null]),n=void 0,i=void 0,t.containerState._closeFlow=void 0}}function nj(e,t,r){return Et(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Gk(e){if(e===null||br(e)||ZM(e))return 1;if(XM(e))return 2}function Jd(e,t,r){const a=[];let i=-1;for(;++i<e.length;){const n=e[i].resolveAll;n&&!a.includes(n)&&(t=n(t,r),a.push(n))}return t}const Yd={name:"attention",resolveAll:aj,tokenize:ij};function aj(e,t){let r=-1,a,i,n,o,s,c,l,u;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(a=r;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&t.sliceSerialize(e[a][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[a][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;c=e[a][1].end.offset-e[a][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const f={...e[a][1].end},p={...e[r][1].start};Jk(f,-c),Jk(p,c),o={type:c>1?"strongSequence":"emphasisSequence",start:f,end:{...e[a][1].end}},s={type:c>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:p},n={type:c>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[r][1].start}},i={type:c>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[a][1].end={...o.start},e[r][1].start={...s.end},l=[],e[a][1].end.offset-e[a][1].start.offset&&(l=Gr(l,[["enter",e[a][1],t],["exit",e[a][1],t]])),l=Gr(l,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",n,t]]),l=Gr(l,Jd(t.parser.constructs.insideSpan.null,e.slice(a+1,r),t)),l=Gr(l,[["exit",n,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(u=2,l=Gr(l,[["enter",e[r][1],t],["exit",e[r][1],t]])):u=0,On(e,a-1,r-a+3,l),r=a+l.length-u-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function ij(e,t){const r=this.parser.constructs.attentionMarkers.null,a=this.previous,i=Gk(a);let n;return o;function o(c){return n=c,e.enter("attentionSequence"),s(c)}function s(c){if(c===n)return e.consume(c),s;const l=e.exit("attentionSequence"),u=Gk(c),f=!u||u===2&&i||r.includes(c),p=!i||i===2&&u||r.includes(a);return l._open=!!(n===42?f:f&&(i||!p)),l._close=!!(n===42?p:p&&(u||!f)),t(c)}}function Jk(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const oj={name:"autolink",tokenize:sj};function sj(e,t,r){let a=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),n}function n(d){return xn(d)?(e.consume(d),o):d===64?r(d):l(d)}function o(d){return d===43||d===45||d===46||Ir(d)?(a=1,s(d)):l(d)}function s(d){return d===58?(e.consume(d),a=0,c):(d===43||d===45||d===46||Ir(d))&&a++<32?(e.consume(d),s):(a=0,l(d))}function c(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||Kd(d)?r(d):(e.consume(d),c)}function l(d){return d===64?(e.consume(d),u):GM(d)?(e.consume(d),l):r(d)}function u(d){return Ir(d)?f(d):r(d)}function f(d){return d===46?(e.consume(d),a=0,u):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):p(d)}function p(d){if((d===45||Ir(d))&&a++<63){const h=d===45?p:f;return e.consume(d),h}return r(d)}}const oc={partial:!0,tokenize:lj};function lj(e,t,r){return a;function a(n){return ct(n)?Et(e,i,"linePrefix")(n):i(n)}function i(n){return n===null||Oe(n)?t(n):r(n)}}const Yk={continuation:{tokenize:uj},exit:fj,name:"blockQuote",tokenize:cj};function cj(e,t,r){const a=this;return i;function i(o){if(o===62){const s=a.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),n}return r(o)}function n(o){return ct(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function uj(e,t,r){const a=this;return i;function i(o){return ct(o)?Et(e,n,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):n(o)}function n(o){return e.attempt(Yk,t,r)(o)}}function fj(e){e.exit("blockQuote")}const Xk={name:"characterEscape",tokenize:dj};function dj(e,t,r){return a;function a(n){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(n),e.exit("escapeMarker"),i}function i(n){return YM(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}const Zk={name:"characterReference",tokenize:pj};function pj(e,t,r){const a=this;let i=0,n,o;return s;function s(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),c}function c(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),n=31,o=Ir,u(f))}function l(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),n=6,o=JM,u):(e.enter("characterReferenceValue"),n=7,o=Gd,u(f))}function u(f){if(f===59&&i){const p=e.exit("characterReferenceValue");return o===Ir&&!Wd(a.sliceSerialize(p))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(f)&&i++<n?(e.consume(f),u):r(f)}}const Qk={partial:!0,tokenize:hj},e0={concrete:!0,name:"codeFenced",tokenize:mj};function mj(e,t,r){const a=this,i={partial:!0,tokenize:m};let n=0,o=0,s;return c;function c(g){return l(g)}function l(g){const S=a.events[a.events.length-1];return n=S&&S[1].type==="linePrefix"?S[2].sliceSerialize(S[1],!0).length:0,s=g,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(g)}function u(g){return g===s?(o++,e.consume(g),u):o<3?r(g):(e.exit("codeFencedFenceSequence"),ct(g)?Et(e,f,"whitespace")(g):f(g))}function f(g){return g===null||Oe(g)?(e.exit("codeFencedFence"),a.interrupt?t(g):e.check(Qk,k,E)(g)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===null||Oe(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(g)):ct(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Et(e,d,"whitespace")(g)):g===96&&g===s?r(g):(e.consume(g),p)}function d(g){return g===null||Oe(g)?f(g):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(g))}function h(g){return g===null||Oe(g)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(g)):g===96&&g===s?r(g):(e.consume(g),h)}function k(g){return e.attempt(i,E,v)(g)}function v(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),y}function y(g){return n>0&&ct(g)?Et(e,b,"linePrefix",n+1)(g):b(g)}function b(g){return g===null||Oe(g)?e.check(Qk,k,E)(g):(e.enter("codeFlowValue"),w(g))}function w(g){return g===null||Oe(g)?(e.exit("codeFlowValue"),b(g)):(e.consume(g),w)}function E(g){return e.exit("codeFenced"),t(g)}function m(g,S,A){let x=0;return O;function O(j){return g.enter("lineEnding"),g.consume(j),g.exit("lineEnding"),C}function C(j){return g.enter("codeFencedFence"),ct(j)?Et(g,_,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):_(j)}function _(j){return j===s?(g.enter("codeFencedFenceSequence"),F(j)):A(j)}function F(j){return j===s?(x++,g.consume(j),F):x>=o?(g.exit("codeFencedFenceSequence"),ct(j)?Et(g,I,"whitespace")(j):I(j)):A(j)}function I(j){return j===null||Oe(j)?(g.exit("codeFencedFence"),S(j)):A(j)}}}function hj(e,t,r){const a=this;return i;function i(o){return o===null?r(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n)}function n(o){return a.parser.lazy[a.now().line]?r(o):t(o)}}const Xd={name:"codeIndented",tokenize:yj},gj={partial:!0,tokenize:vj};function yj(e,t,r){const a=this;return i;function i(l){return e.enter("codeIndented"),Et(e,n,"linePrefix",5)(l)}function n(l){const u=a.events[a.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?o(l):r(l)}function o(l){return l===null?c(l):Oe(l)?e.attempt(gj,o,c)(l):(e.enter("codeFlowValue"),s(l))}function s(l){return l===null||Oe(l)?(e.exit("codeFlowValue"),o(l)):(e.consume(l),s)}function c(l){return e.exit("codeIndented"),t(l)}}function vj(e,t,r){const a=this;return i;function i(o){return a.parser.lazy[a.now().line]?r(o):Oe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Et(e,n,"linePrefix",5)(o)}function n(o){const s=a.events[a.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):Oe(o)?i(o):r(o)}}const bj={name:"codeText",previous:wj,resolve:kj,tokenize:Sj};function kj(e){let t=e.length-4,r=3,a,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(a=r;++a<t;)if(e[a][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(a=r-1,t++;++a<=t;)i===void 0?a!==t&&e[a][1].type!=="lineEnding"&&(i=a):(a===t||e[a][1].type==="lineEnding")&&(e[i][1].type="codeTextData",a!==i+2&&(e[i][1].end=e[a-1][1].end,e.splice(i+2,a-i-2),t-=a-i-2,a=i+2),i=void 0);return e}function wj(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Sj(e,t,r){let a=0,i,n;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),s(f)}function s(f){return f===96?(e.consume(f),a++,s):(e.exit("codeTextSequence"),c(f))}function c(f){return f===null?r(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),c):f===96?(n=e.enter("codeTextSequence"),i=0,u(f)):Oe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("codeTextData"),l(f))}function l(f){return f===null||f===32||f===96||Oe(f)?(e.exit("codeTextData"),c(f)):(e.consume(f),l)}function u(f){return f===96?(e.consume(f),i++,u):i===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(n.type="codeTextData",l(f))}}class Ej{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const a=r??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(t,a):t>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(t,r,a){const i=r||0;this.setCursor(Math.trunc(t));const n=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return a&&Zo(this.left,a),n.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Zo(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Zo(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);Zo(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Zo(this.left,r.reverse())}}}function Zo(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function t0(e){const t={};let r=-1,a,i,n,o,s,c,l;const u=new Ej(e);for(;++r<u.length;){for(;r in t;)r=t[r];if(a=u.get(r),r&&a[1].type==="chunkFlow"&&u.get(r-1)[1].type==="listItemPrefix"&&(c=a[1]._tokenizer.events,n=0,n<c.length&&c[n][1].type==="lineEndingBlank"&&(n+=2),n<c.length&&c[n][1].type==="content"))for(;++n<c.length&&c[n][1].type!=="content";)c[n][1].type==="chunkText"&&(c[n][1]._isInFirstContentOfListItem=!0,n++);if(a[0]==="enter")a[1].contentType&&(Object.assign(t,Cj(u,r)),r=t[r],l=!0);else if(a[1]._container){for(n=r,i=void 0;n--;)if(o=u.get(n),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(u.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=n);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(a[1].end={...u.get(i)[1].start},s=u.slice(i,r),s.unshift(a),u.splice(i,r-i+1,s))}}return On(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function Cj(e,t){const r=e.get(t)[1],a=e.get(t)[2];let i=t-1;const n=[];let o=r._tokenizer;o||(o=a.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,c=[],l={};let u,f,p=-1,d=r,h=0,k=0;const v=[k];for(;d;){for(;e.get(++i)[1]!==d;);n.push(i),d._tokenizer||(u=a.sliceStream(d),d.next||u.push(null),f&&o.defineSkip(d.start),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=r;++p<s.length;)s[p][0]==="exit"&&s[p-1][0]==="enter"&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(k=p+1,v.push(k),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(o.events=[],d?(d._tokenizer=void 0,d.previous=void 0):v.pop(),p=v.length;p--;){const y=s.slice(v[p],v[p+1]),b=n.pop();c.push([b,b+y.length-1]),e.splice(b,2,y)}for(c.reverse(),p=-1;++p<c.length;)l[h+c[p][0]]=h+c[p][1],h+=c[p][1]-c[p][0]-1;return l}const Aj={resolve:Oj,tokenize:xj},_j={partial:!0,tokenize:Tj};function Oj(e){return t0(e),e}function xj(e,t){let r;return a;function a(s){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?n(s):Oe(s)?e.check(_j,o,n)(s):(e.consume(s),i)}function n(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function Tj(e,t,r){const a=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Et(e,n,"linePrefix")}function n(o){if(o===null||Oe(o))return r(o);const s=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(a.parser.constructs.flow,r,t)(o)}}function r0(e,t,r,a,i,n,o,s,c){const l=c||Number.POSITIVE_INFINITY;let u=0;return f;function f(y){return y===60?(e.enter(a),e.enter(i),e.enter(n),e.consume(y),e.exit(n),p):y===null||y===32||y===41||Kd(y)?r(y):(e.enter(a),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),k(y))}function p(y){return y===62?(e.enter(n),e.consume(y),e.exit(n),e.exit(i),e.exit(a),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),d(y))}function d(y){return y===62?(e.exit("chunkString"),e.exit(s),p(y)):y===null||y===60||Oe(y)?r(y):(e.consume(y),y===92?h:d)}function h(y){return y===60||y===62||y===92?(e.consume(y),d):d(y)}function k(y){return!u&&(y===null||y===41||br(y))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(a),t(y)):u<l&&y===40?(e.consume(y),u++,k):y===41?(e.consume(y),u--,k):y===null||y===32||y===40||Kd(y)?r(y):(e.consume(y),y===92?v:k)}function v(y){return y===40||y===41||y===92?(e.consume(y),k):k(y)}}function n0(e,t,r,a,i,n){const o=this;let s=0,c;return l;function l(d){return e.enter(a),e.enter(i),e.consume(d),e.exit(i),e.enter(n),u}function u(d){return s>999||d===null||d===91||d===93&&!c||d===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?r(d):d===93?(e.exit(n),e.enter(i),e.consume(d),e.exit(i),e.exit(a),t):Oe(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===null||d===91||d===93||Oe(d)||s++>999?(e.exit("chunkString"),u(d)):(e.consume(d),c||(c=!ct(d)),d===92?p:f)}function p(d){return d===91||d===92||d===93?(e.consume(d),s++,f):f(d)}}function a0(e,t,r,a,i,n){let o;return s;function s(p){return p===34||p===39||p===40?(e.enter(a),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,c):r(p)}function c(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(a),t):(e.enter(n),l(p))}function l(p){return p===o?(e.exit(n),c(o)):p===null?r(p):Oe(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Et(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===o||p===null||Oe(p)?(e.exit("chunkString"),l(p)):(e.consume(p),p===92?f:u)}function f(p){return p===o||p===92?(e.consume(p),u):u(p)}}function Qo(e,t){let r;return a;function a(i){return Oe(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,a):ct(i)?Et(e,a,r?"linePrefix":"lineSuffix")(i):t(i)}}const Pj={name:"definition",tokenize:Nj},Ij={partial:!0,tokenize:Dj};function Nj(e,t,r){const a=this;let i;return n;function n(d){return e.enter("definition"),o(d)}function o(d){return n0.call(a,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function s(d){return i=Ki(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),c):r(d)}function c(d){return br(d)?Qo(e,l)(d):l(d)}function l(d){return r0(e,u,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function u(d){return e.attempt(Ij,f,f)(d)}function f(d){return ct(d)?Et(e,p,"whitespace")(d):p(d)}function p(d){return d===null||Oe(d)?(e.exit("definition"),a.parser.defined.push(i),t(d)):r(d)}}function Dj(e,t,r){return a;function a(s){return br(s)?Qo(e,i)(s):r(s)}function i(s){return a0(e,n,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function n(s){return ct(s)?Et(e,o,"whitespace")(s):o(s)}function o(s){return s===null||Oe(s)?t(s):r(s)}}const Fj={name:"hardBreakEscape",tokenize:Mj};function Mj(e,t,r){return a;function a(n){return e.enter("hardBreakEscape"),e.consume(n),i}function i(n){return Oe(n)?(e.exit("hardBreakEscape"),t(n)):r(n)}}const jj={name:"headingAtx",resolve:Lj,tokenize:Rj};function Lj(e,t){let r=e.length-2,a=3,i,n;return e[a][1].type==="whitespace"&&(a+=2),r-2>a&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(a===r-1||r-4>a&&e[r-2][1].type==="whitespace")&&(r-=a+1===r?2:4),r>a&&(i={type:"atxHeadingText",start:e[a][1].start,end:e[r][1].end},n={type:"chunkText",start:e[a][1].start,end:e[r][1].end,contentType:"text"},On(e,a,r-a+1,[["enter",i,t],["enter",n,t],["exit",n,t],["exit",i,t]])),e}function Rj(e,t,r){let a=0;return i;function i(u){return e.enter("atxHeading"),n(u)}function n(u){return e.enter("atxHeadingSequence"),o(u)}function o(u){return u===35&&a++<6?(e.consume(u),o):u===null||br(u)?(e.exit("atxHeadingSequence"),s(u)):r(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),c(u)):u===null||Oe(u)?(e.exit("atxHeading"),t(u)):ct(u)?Et(e,s,"whitespace")(u):(e.enter("atxHeadingText"),l(u))}function c(u){return u===35?(e.consume(u),c):(e.exit("atxHeadingSequence"),s(u))}function l(u){return u===null||u===35||br(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),l)}}const qj=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],i0=["pre","script","style","textarea"],zj={concrete:!0,name:"htmlFlow",resolveTo:Bj,tokenize:Vj},$j={partial:!0,tokenize:Wj},Uj={partial:!0,tokenize:Hj};function Bj(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Vj(e,t,r){const a=this;let i,n,o,s,c;return l;function l(T){return u(T)}function u(T){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(T),f}function f(T){return T===33?(e.consume(T),p):T===47?(e.consume(T),n=!0,k):T===63?(e.consume(T),i=3,a.interrupt?t:P):xn(T)?(e.consume(T),o=String.fromCharCode(T),v):r(T)}function p(T){return T===45?(e.consume(T),i=2,d):T===91?(e.consume(T),i=5,s=0,h):xn(T)?(e.consume(T),i=4,a.interrupt?t:P):r(T)}function d(T){return T===45?(e.consume(T),a.interrupt?t:P):r(T)}function h(T){const N="CDATA[";return T===N.charCodeAt(s++)?(e.consume(T),s===N.length?a.interrupt?t:_:h):r(T)}function k(T){return xn(T)?(e.consume(T),o=String.fromCharCode(T),v):r(T)}function v(T){if(T===null||T===47||T===62||br(T)){const N=T===47,L=o.toLowerCase();return!N&&!n&&i0.includes(L)?(i=1,a.interrupt?t(T):_(T)):qj.includes(o.toLowerCase())?(i=6,N?(e.consume(T),y):a.interrupt?t(T):_(T)):(i=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(T):n?b(T):w(T))}return T===45||Ir(T)?(e.consume(T),o+=String.fromCharCode(T),v):r(T)}function y(T){return T===62?(e.consume(T),a.interrupt?t:_):r(T)}function b(T){return ct(T)?(e.consume(T),b):O(T)}function w(T){return T===47?(e.consume(T),O):T===58||T===95||xn(T)?(e.consume(T),E):ct(T)?(e.consume(T),w):O(T)}function E(T){return T===45||T===46||T===58||T===95||Ir(T)?(e.consume(T),E):m(T)}function m(T){return T===61?(e.consume(T),g):ct(T)?(e.consume(T),m):w(T)}function g(T){return T===null||T===60||T===61||T===62||T===96?r(T):T===34||T===39?(e.consume(T),c=T,S):ct(T)?(e.consume(T),g):A(T)}function S(T){return T===c?(e.consume(T),c=null,x):T===null||Oe(T)?r(T):(e.consume(T),S)}function A(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||br(T)?m(T):(e.consume(T),A)}function x(T){return T===47||T===62||ct(T)?w(T):r(T)}function O(T){return T===62?(e.consume(T),C):r(T)}function C(T){return T===null||Oe(T)?_(T):ct(T)?(e.consume(T),C):r(T)}function _(T){return T===45&&i===2?(e.consume(T),$):T===60&&i===1?(e.consume(T),Y):T===62&&i===4?(e.consume(T),M):T===63&&i===3?(e.consume(T),P):T===93&&i===5?(e.consume(T),ie):Oe(T)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check($j,U,F)(T)):T===null||Oe(T)?(e.exit("htmlFlowData"),F(T)):(e.consume(T),_)}function F(T){return e.check(Uj,I,U)(T)}function I(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),j}function j(T){return T===null||Oe(T)?F(T):(e.enter("htmlFlowData"),_(T))}function $(T){return T===45?(e.consume(T),P):_(T)}function Y(T){return T===47?(e.consume(T),o="",Z):_(T)}function Z(T){if(T===62){const N=o.toLowerCase();return i0.includes(N)?(e.consume(T),M):_(T)}return xn(T)&&o.length<8?(e.consume(T),o+=String.fromCharCode(T),Z):_(T)}function ie(T){return T===93?(e.consume(T),P):_(T)}function P(T){return T===62?(e.consume(T),M):T===45&&i===2?(e.consume(T),P):_(T)}function M(T){return T===null||Oe(T)?(e.exit("htmlFlowData"),U(T)):(e.consume(T),M)}function U(T){return e.exit("htmlFlow"),t(T)}}function Hj(e,t,r){const a=this;return i;function i(o){return Oe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n):r(o)}function n(o){return a.parser.lazy[a.now().line]?r(o):t(o)}}function Wj(e,t,r){return a;function a(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(oc,t,r)}}const Kj={name:"htmlText",tokenize:Gj};function Gj(e,t,r){const a=this;let i,n,o;return s;function s(P){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(P),c}function c(P){return P===33?(e.consume(P),l):P===47?(e.consume(P),m):P===63?(e.consume(P),w):xn(P)?(e.consume(P),A):r(P)}function l(P){return P===45?(e.consume(P),u):P===91?(e.consume(P),n=0,h):xn(P)?(e.consume(P),b):r(P)}function u(P){return P===45?(e.consume(P),d):r(P)}function f(P){return P===null?r(P):P===45?(e.consume(P),p):Oe(P)?(o=f,Y(P)):(e.consume(P),f)}function p(P){return P===45?(e.consume(P),d):f(P)}function d(P){return P===62?$(P):P===45?p(P):f(P)}function h(P){const M="CDATA[";return P===M.charCodeAt(n++)?(e.consume(P),n===M.length?k:h):r(P)}function k(P){return P===null?r(P):P===93?(e.consume(P),v):Oe(P)?(o=k,Y(P)):(e.consume(P),k)}function v(P){return P===93?(e.consume(P),y):k(P)}function y(P){return P===62?$(P):P===93?(e.consume(P),y):k(P)}function b(P){return P===null||P===62?$(P):Oe(P)?(o=b,Y(P)):(e.consume(P),b)}function w(P){return P===null?r(P):P===63?(e.consume(P),E):Oe(P)?(o=w,Y(P)):(e.consume(P),w)}function E(P){return P===62?$(P):w(P)}function m(P){return xn(P)?(e.consume(P),g):r(P)}function g(P){return P===45||Ir(P)?(e.consume(P),g):S(P)}function S(P){return Oe(P)?(o=S,Y(P)):ct(P)?(e.consume(P),S):$(P)}function A(P){return P===45||Ir(P)?(e.consume(P),A):P===47||P===62||br(P)?x(P):r(P)}function x(P){return P===47?(e.consume(P),$):P===58||P===95||xn(P)?(e.consume(P),O):Oe(P)?(o=x,Y(P)):ct(P)?(e.consume(P),x):$(P)}function O(P){return P===45||P===46||P===58||P===95||Ir(P)?(e.consume(P),O):C(P)}function C(P){return P===61?(e.consume(P),_):Oe(P)?(o=C,Y(P)):ct(P)?(e.consume(P),C):x(P)}function _(P){return P===null||P===60||P===61||P===62||P===96?r(P):P===34||P===39?(e.consume(P),i=P,F):Oe(P)?(o=_,Y(P)):ct(P)?(e.consume(P),_):(e.consume(P),I)}function F(P){return P===i?(e.consume(P),i=void 0,j):P===null?r(P):Oe(P)?(o=F,Y(P)):(e.consume(P),F)}function I(P){return P===null||P===34||P===39||P===60||P===61||P===96?r(P):P===47||P===62||br(P)?x(P):(e.consume(P),I)}function j(P){return P===47||P===62||br(P)?x(P):r(P)}function $(P){return P===62?(e.consume(P),e.exit("htmlTextData"),e.exit("htmlText"),t):r(P)}function Y(P){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),Z}function Z(P){return ct(P)?Et(e,ie,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):ie(P)}function ie(P){return e.enter("htmlTextData"),o(P)}}const Zd={name:"labelEnd",resolveAll:Zj,resolveTo:Qj,tokenize:eL},Jj={tokenize:tL},Yj={tokenize:rL},Xj={tokenize:nL};function Zj(e){let t=-1;const r=[];for(;++t<e.length;){const a=e[t][1];if(r.push(e[t]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const i=a.type==="labelImage"?4:2;a.type="data",t+=i}}return e.length!==r.length&&On(e,0,e.length,r),e}function Qj(e,t){let r=e.length,a=0,i,n,o,s;for(;r--;)if(i=e[r][1],n){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(n=r,i.type!=="labelLink")){a=2;break}}else i.type==="labelEnd"&&(o=r);const c={type:e[n][1].type==="labelLink"?"link":"image",start:{...e[n][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[n][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[n+a+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",c,t],["enter",l,t]],s=Gr(s,e.slice(n+1,n+a+3)),s=Gr(s,[["enter",u,t]]),s=Gr(s,Jd(t.parser.constructs.insideSpan.null,e.slice(n+a+4,o-3),t)),s=Gr(s,[["exit",u,t],e[o-2],e[o-1],["exit",l,t]]),s=Gr(s,e.slice(o+1)),s=Gr(s,[["exit",c,t]]),On(e,n,e.length,s),e}function eL(e,t,r){const a=this;let i=a.events.length,n,o;for(;i--;)if((a.events[i][1].type==="labelImage"||a.events[i][1].type==="labelLink")&&!a.events[i][1]._balanced){n=a.events[i][1];break}return s;function s(p){return n?n._inactive?f(p):(o=a.parser.defined.includes(Ki(a.sliceSerialize({start:n.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),c):r(p)}function c(p){return p===40?e.attempt(Jj,u,o?u:f)(p):p===91?e.attempt(Yj,u,o?l:f)(p):o?u(p):f(p)}function l(p){return e.attempt(Xj,u,f)(p)}function u(p){return t(p)}function f(p){return n._balanced=!0,r(p)}}function tL(e,t,r){return a;function a(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return br(f)?Qo(e,n)(f):n(f)}function n(f){return f===41?u(f):r0(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return br(f)?Qo(e,c)(f):u(f)}function s(f){return r(f)}function c(f){return f===34||f===39||f===40?a0(e,l,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):u(f)}function l(f){return br(f)?Qo(e,u)(f):u(f)}function u(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):r(f)}}function rL(e,t,r){const a=this;return i;function i(s){return n0.call(a,e,n,o,"reference","referenceMarker","referenceString")(s)}function n(s){return a.parser.defined.includes(Ki(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?t(s):r(s)}function o(s){return r(s)}}function nL(e,t,r){return a;function a(n){return e.enter("reference"),e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),i}function i(n){return n===93?(e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),e.exit("reference"),t):r(n)}}const aL={name:"labelStartImage",resolveAll:Zd.resolveAll,tokenize:iL};function iL(e,t,r){const a=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),n}function n(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):r(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(s):t(s)}}const oL={name:"labelStartLink",resolveAll:Zd.resolveAll,tokenize:sL};function sL(e,t,r){const a=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),n}function n(o){return o===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(o):t(o)}}const Qd={name:"lineEnding",tokenize:lL};function lL(e,t){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Et(e,t,"linePrefix")}}const sc={name:"thematicBreak",tokenize:cL};function cL(e,t,r){let a=0,i;return n;function n(l){return e.enter("thematicBreak"),o(l)}function o(l){return i=l,s(l)}function s(l){return l===i?(e.enter("thematicBreakSequence"),c(l)):a>=3&&(l===null||Oe(l))?(e.exit("thematicBreak"),t(l)):r(l)}function c(l){return l===i?(e.consume(l),a++,c):(e.exit("thematicBreakSequence"),ct(l)?Et(e,s,"whitespace")(l):s(l))}}const kr={continuation:{tokenize:pL},exit:hL,name:"list",tokenize:dL},uL={partial:!0,tokenize:gL},fL={partial:!0,tokenize:mL};function dL(e,t,r){const a=this,i=a.events[a.events.length-1];let n=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(d){const h=a.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!a.containerState.marker||d===a.containerState.marker:Gd(d)){if(a.containerState.type||(a.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(sc,r,l)(d):l(d);if(!a.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(d)}return r(d)}function c(d){return Gd(d)&&++o<10?(e.consume(d),c):(!a.interrupt||o<2)&&(a.containerState.marker?d===a.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),l(d)):r(d)}function l(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||d,e.check(oc,a.interrupt?r:u,e.attempt(uL,p,f))}function u(d){return a.containerState.initialBlankLine=!0,n++,p(d)}function f(d){return ct(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),p):r(d)}function p(d){return a.containerState.size=n+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function pL(e,t,r){const a=this;return a.containerState._closeFlow=void 0,e.check(oc,i,n);function i(s){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,Et(e,t,"listItemIndent",a.containerState.size+1)(s)}function n(s){return a.containerState.furtherBlankLines||!ct(s)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,o(s)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(fL,t,o)(s))}function o(s){return a.containerState._closeFlow=!0,a.interrupt=void 0,Et(e,e.attempt(kr,t,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function mL(e,t,r){const a=this;return Et(e,i,"listItemIndent",a.containerState.size+1);function i(n){const o=a.events[a.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===a.containerState.size?t(n):r(n)}}function hL(e){e.exit(this.containerState.type)}function gL(e,t,r){const a=this;return Et(e,i,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(n){const o=a.events[a.events.length-1];return!ct(n)&&o&&o[1].type==="listItemPrefixWhitespace"?t(n):r(n)}}const o0={name:"setextUnderline",resolveTo:yL,tokenize:vL};function yL(e,t){let r=e.length,a,i,n;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){a=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!n&&e[r][1].type==="definition"&&(n=r);const o={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",n?(e.splice(i,0,["enter",o,t]),e.splice(n+1,0,["exit",e[a][1],t]),e[a][1].end={...e[n][1].end}):e[a][1]=o,e.push(["exit",o,t]),e}function vL(e,t,r){const a=this;let i;return n;function n(l){let u=a.events.length,f;for(;u--;)if(a.events[u][1].type!=="lineEnding"&&a.events[u][1].type!=="linePrefix"&&a.events[u][1].type!=="content"){f=a.events[u][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||f)?(e.enter("setextHeadingLine"),i=l,o(l)):r(l)}function o(l){return e.enter("setextHeadingLineSequence"),s(l)}function s(l){return l===i?(e.consume(l),s):(e.exit("setextHeadingLineSequence"),ct(l)?Et(e,c,"lineSuffix")(l):c(l))}function c(l){return l===null||Oe(l)?(e.exit("setextHeadingLine"),t(l)):r(l)}}const bL={tokenize:kL};function kL(e){const t=this,r=e.attempt(oc,a,e.attempt(this.parser.constructs.flowInitial,i,Et(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Aj,i)),"linePrefix")));return r;function a(n){if(n===null){e.consume(n);return}return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(n){if(n===null){e.consume(n);return}return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const wL={resolveAll:l0()},SL=s0("string"),EL=s0("text");function s0(e){return{resolveAll:l0(e==="text"?CL:void 0),tokenize:t};function t(r){const a=this,i=this.parser.constructs[e],n=r.attempt(i,o,s);return o;function o(u){return l(u)?n(u):s(u)}function s(u){if(u===null){r.consume(u);return}return r.enter("data"),r.consume(u),c}function c(u){return l(u)?(r.exit("data"),n(u)):(r.consume(u),c)}function l(u){if(u===null)return!0;const f=i[u];let p=-1;if(f)for(;++p<f.length;){const d=f[p];if(!d.previous||d.previous.call(a,a.previous))return!0}return!1}}}function l0(e){return t;function t(r,a){let i=-1,n;for(;++i<=r.length;)n===void 0?r[i]&&r[i][1].type==="data"&&(n=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==n+2&&(r[n][1].end=r[i-1][1].end,r.splice(n+2,i-n-2),i=n+2),n=void 0);return e?e(r,a):r}}function CL(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const a=e[r-1][1],i=t.sliceStream(a);let n=i.length,o=-1,s=0,c;for(;n--;){const l=i[n];if(typeof l=="string"){for(o=l.length;l.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(l===-2)c=!0,s++;else if(l!==-1){n++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(s=0),s){const l={type:r===e.length||c||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:n?o:a.start._bufferIndex+o,_index:a.start._index+n,line:a.end.line,column:a.end.column-s,offset:a.end.offset-s},end:{...a.end}};a.end={...l.start},a.start.offset===a.end.offset?Object.assign(a,l):(e.splice(r,0,["enter",l,t],["exit",l,t]),r+=2)}r++}return e}const AL=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Pj},disable:{null:[]},document:{42:kr,43:kr,45:kr,48:kr,49:kr,50:kr,51:kr,52:kr,53:kr,54:kr,55:kr,56:kr,57:kr,62:Yk},flow:{35:jj,42:sc,45:[o0,sc],60:zj,61:o0,95:sc,96:e0,126:e0},flowInitial:{[-2]:Xd,[-1]:Xd,32:Xd},insideSpan:{null:[Yd,wL]},string:{38:Zk,92:Xk},text:{[-5]:Qd,[-4]:Qd,[-3]:Qd,33:aL,38:Zk,42:Yd,60:[oj,Kj],91:oL,92:[Fj,Xk],93:Zd,95:Yd,96:bj}},Symbol.toStringTag,{value:"Module"}));function _L(e,t,r){let a={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const i={},n=[];let o=[],s=[];const c={attempt:S(m),check:S(g),consume:b,enter:w,exit:E,interrupt:S(g,{interrupt:!0})},l={code:null,containerState:{},defineSkip:k,events:[],now:h,parser:e,previous:null,sliceSerialize:p,sliceStream:d,write:f};let u=t.tokenize.call(l,c);return t.resolveAll&&n.push(t),l;function f(C){return o=Gr(o,C),v(),o[o.length-1]!==null?[]:(A(t,0),l.events=Jd(n,l.events,l),l.events)}function p(C,_){return xL(d(C),_)}function d(C){return OL(o,C)}function h(){const{_bufferIndex:C,_index:_,line:F,column:I,offset:j}=a;return{_bufferIndex:C,_index:_,line:F,column:I,offset:j}}function k(C){i[C.line]=C.column,O()}function v(){let C;for(;a._index<o.length;){const _=o[a._index];if(typeof _=="string")for(C=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===C&&a._bufferIndex<_.length;)y(_.charCodeAt(a._bufferIndex));else y(_)}}function y(C){u=u(C)}function b(C){Oe(C)?(a.line++,a.column=1,a.offset+=C===-3?2:1,O()):C!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===o[a._index].length&&(a._bufferIndex=-1,a._index++)),l.previous=C}function w(C,_){const F=_||{};return F.type=C,F.start=h(),l.events.push(["enter",F,l]),s.push(F),F}function E(C){const _=s.pop();return _.end=h(),l.events.push(["exit",_,l]),_}function m(C,_){A(C,_.from)}function g(C,_){_.restore()}function S(C,_){return F;function F(I,j,$){let Y,Z,ie,P;return Array.isArray(I)?U(I):"tokenize"in I?U([I]):M(I);function M(B){return V;function V(K){const J=K!==null&&B[K],Q=K!==null&&B.null,q=[...Array.isArray(J)?J:J?[J]:[],...Array.isArray(Q)?Q:Q?[Q]:[]];return U(q)(K)}}function U(B){return Y=B,Z=0,B.length===0?$:T(B[Z])}function T(B){return V;function V(K){return P=x(),ie=B,B.partial||(l.currentConstruct=B),B.name&&l.parser.constructs.disable.null.includes(B.name)?L():B.tokenize.call(_?Object.assign(Object.create(l),_):l,c,N,L)(K)}}function N(B){return C(ie,P),j}function L(B){return P.restore(),++Z<Y.length?T(Y[Z]):$}}}function A(C,_){C.resolveAll&&!n.includes(C)&&n.push(C),C.resolve&&On(l.events,_,l.events.length-_,C.resolve(l.events.slice(_),l)),C.resolveTo&&(l.events=C.resolveTo(l.events,l))}function x(){const C=h(),_=l.previous,F=l.currentConstruct,I=l.events.length,j=Array.from(s);return{from:I,restore:$};function $(){a=C,l.previous=_,l.currentConstruct=F,l.events.length=I,s=j,O()}}function O(){a.line in i&&a.column<2&&(a.column=i[a.line],a.offset+=i[a.line]-1)}}function OL(e,t){const r=t.start._index,a=t.start._bufferIndex,i=t.end._index,n=t.end._bufferIndex;let o;if(r===i)o=[e[r].slice(a,n)];else{if(o=e.slice(r,i),a>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(a):o.shift()}n>0&&o.push(e[i].slice(0,n))}return o}function xL(e,t){let r=-1;const a=[];let i;for(;++r<e.length;){const n=e[r];let o;if(typeof n=="string")o=n;else switch(n){case-5:{o="\r";break}case-4:{o=`
|
|
107
|
-
`;break}case-3:{o=`\r
|
|
108
|
-
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(n)}i=n===-2,a.push(o)}return a.join("")}function TL(e){const a={constructs:HM([AL,...(e||{}).extensions||[]]),content:i(QM),defined:[],document:i(tj),flow:i(bL),lazy:{},string:i(SL),text:i(EL)};return a;function i(n){return o;function o(s){return _L(a,n,s)}}}function PL(e){for(;!t0(e););return e}const c0=/[\0\t\n\r]/g;function IL(){let e=1,t="",r=!0,a;return i;function i(n,o,s){const c=[];let l,u,f,p,d;for(n=t+(typeof n=="string"?n.toString():new TextDecoder(o||void 0).decode(n)),f=0,t="",r&&(n.charCodeAt(0)===65279&&f++,r=void 0);f<n.length;){if(c0.lastIndex=f,l=c0.exec(n),p=l&&l.index!==void 0?l.index:n.length,d=n.charCodeAt(p),!l){t=n.slice(f);break}if(d===10&&f===p&&a)c.push(-3),a=void 0;else switch(a&&(c.push(-5),a=void 0),f<p&&(c.push(n.slice(f,p)),e+=p-f),d){case 0:{c.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,c.push(-2);e++<u;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:a=!0,e=1}f=p+1}return s&&(a&&c.push(-5),t&&c.push(t),c.push(null)),c}}const NL=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function DL(e){return e.replace(NL,FL)}function FL(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),n=i===120||i===88;return Wk(r.slice(n?2:1),n?16:10)}return Wd(r)||e}const u0={}.hasOwnProperty;function ML(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),jL(r)(PL(TL(r).document().write(IL()(e,t,!0))))}function jL(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:n(Ae),autolinkProtocol:x,autolinkEmail:x,atxHeading:n(te),blockQuote:n(Q),characterEscape:x,characterReference:x,codeFenced:n(q),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:n(q,o),codeText:n(z,o),codeTextData:x,data:x,codeFlowValue:x,definition:n(W),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:n(G),hardBreakEscape:n(ae),hardBreakTrailing:n(ae),htmlFlow:n(pe,o),htmlFlowData:x,htmlText:n(pe,o),htmlTextData:x,image:n(ve),label:o,link:n(Ae),listItem:n(De),listItemValue:p,listOrdered:n(Se,f),listUnordered:n(Se),paragraph:n(he),reference:T,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:n(te),strong:n(Le),thematicBreak:n(ke)},exit:{atxHeading:c(),atxHeadingSequence:m,autolink:c(),autolinkEmail:J,autolinkProtocol:K,blockQuote:c(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:L,characterReferenceMarkerNumeric:L,characterReferenceValue:B,characterReference:V,codeFenced:c(v),codeFencedFence:k,codeFencedFenceInfo:d,codeFencedFenceMeta:h,codeFlowValue:O,codeIndented:c(y),codeText:c(j),codeTextData:O,data:O,definition:c(),definitionDestinationString:E,definitionLabelString:b,definitionTitleString:w,emphasis:c(),hardBreakEscape:c(_),hardBreakTrailing:c(_),htmlFlow:c(F),htmlFlowData:O,htmlText:c(I),htmlTextData:O,image:c(Y),label:ie,labelText:Z,lineEnding:C,link:c($),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:N,resourceDestinationString:P,resourceTitleString:M,resource:U,setextHeading:c(A),setextHeadingLineSequence:S,setextHeadingText:g,strong:c(),thematicBreak:c()}};f0(t,(e||{}).mdastExtensions||[]);const r={};return a;function a(ee){let re={type:"root",children:[]};const ne={stack:[re],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:r},we=[];let me=-1;for(;++me<ee.length;)if(ee[me][1].type==="listOrdered"||ee[me][1].type==="listUnordered")if(ee[me][0]==="enter")we.push(me);else{const at=we.pop();me=i(ee,at,me)}for(me=-1;++me<ee.length;){const at=t[ee[me][0]];u0.call(at,ee[me][1].type)&&at[ee[me][1].type].call(Object.assign({sliceSerialize:ee[me][2].sliceSerialize},ne),ee[me][1])}if(ne.tokenStack.length>0){const at=ne.tokenStack[ne.tokenStack.length-1];(at[1]||d0).call(ne,void 0,at[0])}for(re.position={start:Ea(ee.length>0?ee[0][1].start:{line:1,column:1,offset:0}),end:Ea(ee.length>0?ee[ee.length-2][1].end:{line:1,column:1,offset:0})},me=-1;++me<t.transforms.length;)re=t.transforms[me](re)||re;return re}function i(ee,re,ne){let we=re-1,me=-1,at=!1,Re,Ge,Ct,It;for(;++we<=ne;){const it=ee[we];switch(it[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{it[0]==="enter"?me++:me--,It=void 0;break}case"lineEndingBlank":{it[0]==="enter"&&(Re&&!It&&!me&&!Ct&&(Ct=we),It=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:It=void 0}if(!me&&it[0]==="enter"&&it[1].type==="listItemPrefix"||me===-1&&it[0]==="exit"&&(it[1].type==="listUnordered"||it[1].type==="listOrdered")){if(Re){let wt=we;for(Ge=void 0;wt--;){const ot=ee[wt];if(ot[1].type==="lineEnding"||ot[1].type==="lineEndingBlank"){if(ot[0]==="exit")continue;Ge&&(ee[Ge][1].type="lineEndingBlank",at=!0),ot[1].type="lineEnding",Ge=wt}else if(!(ot[1].type==="linePrefix"||ot[1].type==="blockQuotePrefix"||ot[1].type==="blockQuotePrefixWhitespace"||ot[1].type==="blockQuoteMarker"||ot[1].type==="listItemIndent"))break}Ct&&(!Ge||Ct<Ge)&&(Re._spread=!0),Re.end=Object.assign({},Ge?ee[Ge][1].start:it[1].end),ee.splice(Ge||we,0,["exit",Re,it[2]]),we++,ne++}if(it[1].type==="listItemPrefix"){const wt={type:"listItem",_spread:!1,start:Object.assign({},it[1].start),end:void 0};Re=wt,ee.splice(we,0,["enter",wt,it[2]]),we++,ne++,Ct=void 0,It=!0}}}return ee[re][1]._spread=at,ne}function n(ee,re){return ne;function ne(we){s.call(this,ee(we),we),re&&re.call(this,we)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(ee,re,ne){this.stack[this.stack.length-1].children.push(ee),this.stack.push(ee),this.tokenStack.push([re,ne||void 0]),ee.position={start:Ea(re.start),end:void 0}}function c(ee){return re;function re(ne){ee&&ee.call(this,ne),l.call(this,ne)}}function l(ee,re){const ne=this.stack.pop(),we=this.tokenStack.pop();if(we)we[0].type!==ee.type&&(re?re.call(this,ee,we[0]):(we[1]||d0).call(this,ee,we[0]));else throw new Error("Cannot close `"+ee.type+"` ("+Yo({start:ee.start,end:ee.end})+"): it’s not open");ne.position.end=Ea(ee.end)}function u(){return BM(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(ee){if(this.data.expectingFirstListItemValue){const re=this.stack[this.stack.length-2];re.start=Number.parseInt(this.sliceSerialize(ee),10),this.data.expectingFirstListItemValue=void 0}}function d(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.lang=ee}function h(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.meta=ee}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.value=ee.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.value=ee.replace(/(\r?\n|\r)$/g,"")}function b(ee){const re=this.resume(),ne=this.stack[this.stack.length-1];ne.label=re,ne.identifier=Ki(this.sliceSerialize(ee)).toLowerCase()}function w(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.title=ee}function E(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.url=ee}function m(ee){const re=this.stack[this.stack.length-1];if(!re.depth){const ne=this.sliceSerialize(ee).length;re.depth=ne}}function g(){this.data.setextHeadingSlurpLineEnding=!0}function S(ee){const re=this.stack[this.stack.length-1];re.depth=this.sliceSerialize(ee).codePointAt(0)===61?1:2}function A(){this.data.setextHeadingSlurpLineEnding=void 0}function x(ee){const ne=this.stack[this.stack.length-1].children;let we=ne[ne.length-1];(!we||we.type!=="text")&&(we=We(),we.position={start:Ea(ee.start),end:void 0},ne.push(we)),this.stack.push(we)}function O(ee){const re=this.stack.pop();re.value+=this.sliceSerialize(ee),re.position.end=Ea(ee.end)}function C(ee){const re=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ne=re.children[re.children.length-1];ne.position.end=Ea(ee.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(re.type)&&(x.call(this,ee),O.call(this,ee))}function _(){this.data.atHardBreak=!0}function F(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.value=ee}function I(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.value=ee}function j(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.value=ee}function $(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=re,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function Y(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=re,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function Z(ee){const re=this.sliceSerialize(ee),ne=this.stack[this.stack.length-2];ne.label=DL(re),ne.identifier=Ki(re).toLowerCase()}function ie(){const ee=this.stack[this.stack.length-1],re=this.resume(),ne=this.stack[this.stack.length-1];if(this.data.inReference=!0,ne.type==="link"){const we=ee.children;ne.children=we}else ne.alt=re}function P(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.url=ee}function M(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.title=ee}function U(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function N(ee){const re=this.resume(),ne=this.stack[this.stack.length-1];ne.label=re,ne.identifier=Ki(this.sliceSerialize(ee)).toLowerCase(),this.data.referenceType="full"}function L(ee){this.data.characterReferenceType=ee.type}function B(ee){const re=this.sliceSerialize(ee),ne=this.data.characterReferenceType;let we;ne?(we=Wk(re,ne==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):we=Wd(re);const me=this.stack[this.stack.length-1];me.value+=we}function V(ee){const re=this.stack.pop();re.position.end=Ea(ee.end)}function K(ee){O.call(this,ee);const re=this.stack[this.stack.length-1];re.url=this.sliceSerialize(ee)}function J(ee){O.call(this,ee);const re=this.stack[this.stack.length-1];re.url="mailto:"+this.sliceSerialize(ee)}function Q(){return{type:"blockquote",children:[]}}function q(){return{type:"code",lang:null,meta:null,value:""}}function z(){return{type:"inlineCode",value:""}}function W(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function G(){return{type:"emphasis",children:[]}}function te(){return{type:"heading",depth:0,children:[]}}function ae(){return{type:"break"}}function pe(){return{type:"html",value:""}}function ve(){return{type:"image",title:null,url:"",alt:null}}function Ae(){return{type:"link",title:null,url:"",children:[]}}function Se(ee){return{type:"list",ordered:ee.type==="listOrdered",start:null,spread:ee._spread,children:[]}}function De(ee){return{type:"listItem",spread:ee._spread,checked:null,children:[]}}function he(){return{type:"paragraph",children:[]}}function Le(){return{type:"strong",children:[]}}function We(){return{type:"text",value:""}}function ke(){return{type:"thematicBreak"}}}function Ea(e){return{line:e.line,column:e.column,offset:e.offset}}function f0(e,t){let r=-1;for(;++r<t.length;){const a=t[r];Array.isArray(a)?f0(e,a):LL(e,a)}}function LL(e,t){let r;for(r in t)if(u0.call(t,r))switch(r){case"canContainEols":{const a=t[r];a&&e[r].push(...a);break}case"transforms":{const a=t[r];a&&e[r].push(...a);break}case"enter":case"exit":{const a=t[r];a&&Object.assign(e[r],a);break}}}function d0(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Yo({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Yo({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Yo({start:t.start,end:t.end})+") is still open")}function RL(e){const t=this;t.parser=r;function r(a){return ML(a,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function qL(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function zL(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
109
|
-
`}]}function $L(e,t){const r=t.value?t.value+`
|
|
110
|
-
`:"",a={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(a.className=["language-"+i[0]]);let n={type:"element",tagName:"code",properties:a,children:[{type:"text",value:r}]};return t.meta&&(n.data={meta:t.meta}),e.patch(t,n),n=e.applyData(t,n),n={type:"element",tagName:"pre",properties:{},children:[n]},e.patch(t,n),n}function UL(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function BL(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function VL(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),i=Gi(a.toLowerCase()),n=e.footnoteOrder.indexOf(a);let o,s=e.footnoteCounts.get(a);s===void 0?(s=0,e.footnoteOrder.push(a),o=e.footnoteOrder.length):o=n+1,s+=1,e.footnoteCounts.set(a,s);const c={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,c);const l={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function HL(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function WL(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function p0(e,t){const r=t.referenceType;let a="]";if(r==="collapsed"?a+="[]":r==="full"&&(a+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+a}];const i=e.all(t),n=i[0];n&&n.type==="text"?n.value="["+n.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=a:i.push({type:"text",value:a}),i}function KL(e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return p0(e,t);const i={src:Gi(a.url||""),alt:t.alt};a.title!==null&&a.title!==void 0&&(i.title=a.title);const n={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,n),e.applyData(t,n)}function GL(e,t){const r={src:Gi(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const a={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,a),e.applyData(t,a)}function JL(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const a={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,a),e.applyData(t,a)}function YL(e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return p0(e,t);const i={href:Gi(a.url||"")};a.title!==null&&a.title!==void 0&&(i.title=a.title);const n={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function XL(e,t){const r={href:Gi(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const a={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function ZL(e,t,r){const a=e.all(t),i=r?QL(r):m0(t),n={},o=[];if(typeof t.checked=="boolean"){const u=a[0];let f;u&&u.type==="element"&&u.tagName==="p"?f=u:(f={type:"element",tagName:"p",properties:{},children:[]},a.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),n.className=["task-list-item"]}let s=-1;for(;++s<a.length;){const u=a[s];(i||s!==0||u.type!=="element"||u.tagName!=="p")&&o.push({type:"text",value:`
|
|
111
|
-
`}),u.type==="element"&&u.tagName==="p"&&!i?o.push(...u.children):o.push(u)}const c=a[a.length-1];c&&(i||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
|
|
112
|
-
`});const l={type:"element",tagName:"li",properties:n,children:o};return e.patch(t,l),e.applyData(t,l)}function QL(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let a=-1;for(;!t&&++a<r.length;)t=m0(r[a])}return t}function m0(e){const t=e.spread;return t??e.children.length>1}function eR(e,t){const r={},a=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++i<a.length;){const o=a[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const n={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(a,!0)};return e.patch(t,n),e.applyData(t,n)}function tR(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function rR(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function nR(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function aR(e,t){const r=e.all(t),a=r.shift(),i=[];if(a){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(t.children[0],o),i.push(o)}if(r.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},s=zd(t.children[1]),c=Fk(t.children[t.children.length-1]);s&&c&&(o.position={start:s,end:c}),i.push(o)}const n={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,n),e.applyData(t,n)}function iR(e,t,r){const a=r?r.children:void 0,n=(a?a.indexOf(t):1)===0?"th":"td",o=r&&r.type==="table"?r.align:void 0,s=o?o.length:t.children.length;let c=-1;const l=[];for(;++c<s;){const f=t.children[c],p={},d=o?o[c]:void 0;d&&(p.align=d);let h={type:"element",tagName:n,properties:p,children:[]};f&&(h.children=e.all(f),e.patch(f,h),h=e.applyData(f,h)),l.push(h)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,u),e.applyData(t,u)}function oR(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const h0=9,g0=32;function sR(e){const t=String(e),r=/\r?\n|\r/g;let a=r.exec(t),i=0;const n=[];for(;a;)n.push(y0(t.slice(i,a.index),i>0,!0),a[0]),i=a.index+a[0].length,a=r.exec(t);return n.push(y0(t.slice(i),i>0,!1)),n.join("")}function y0(e,t,r){let a=0,i=e.length;if(t){let n=e.codePointAt(a);for(;n===h0||n===g0;)a++,n=e.codePointAt(a)}if(r){let n=e.codePointAt(i-1);for(;n===h0||n===g0;)i--,n=e.codePointAt(i-1)}return i>a?e.slice(a,i):""}function lR(e,t){const r={type:"text",value:sR(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function cR(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const uR={blockquote:qL,break:zL,code:$L,delete:UL,emphasis:BL,footnoteReference:VL,heading:HL,html:WL,imageReference:KL,image:GL,inlineCode:JL,linkReference:YL,link:XL,listItem:ZL,list:eR,paragraph:tR,root:rR,strong:nR,table:aR,tableCell:oR,tableRow:iR,text:lR,thematicBreak:cR,toml:lc,yaml:lc,definition:lc,footnoteDefinition:lc};function lc(){}const v0=-1,cc=0,es=1,uc=2,ep=3,tp=4,rp=5,np=6,b0=7,k0=8,fR=typeof self=="object"?self:globalThis,w0=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new fR[e](t)},dR=(e,t)=>{const r=(i,n)=>(e.set(n,i),i),a=i=>{if(e.has(i))return e.get(i);const[n,o]=t[i];switch(n){case cc:case v0:return r(o,i);case es:{const s=r([],i);for(const c of o)s.push(a(c));return s}case uc:{const s=r({},i);for(const[c,l]of o)s[a(c)]=a(l);return s}case ep:return r(new Date(o),i);case tp:{const{source:s,flags:c}=o;return r(new RegExp(s,c),i)}case rp:{const s=r(new Map,i);for(const[c,l]of o)s.set(a(c),a(l));return s}case np:{const s=r(new Set,i);for(const c of o)s.add(a(c));return s}case b0:{const{name:s,message:c}=o;return r(w0(s,c),i)}case k0:return r(BigInt(o),i);case"BigInt":return r(Object(BigInt(o)),i);case"ArrayBuffer":return r(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:s}=new Uint8Array(o);return r(new DataView(s),o)}}return r(w0(n,o),i)};return a},S0=e=>dR(new Map,e)(0),Ji="",{toString:pR}={},{keys:mR}=Object,ts=e=>{const t=typeof e;if(t!=="object"||!e)return[cc,t];const r=pR.call(e).slice(8,-1);switch(r){case"Array":return[es,Ji];case"Object":return[uc,Ji];case"Date":return[ep,Ji];case"RegExp":return[tp,Ji];case"Map":return[rp,Ji];case"Set":return[np,Ji];case"DataView":return[es,r]}return r.includes("Array")?[es,r]:r.includes("Error")?[b0,r]:[uc,r]},fc=([e,t])=>e===cc&&(t==="function"||t==="symbol"),hR=(e,t,r,a)=>{const i=(o,s)=>{const c=a.push(o)-1;return r.set(s,c),c},n=o=>{if(r.has(o))return r.get(o);let[s,c]=ts(o);switch(s){case cc:{let u=o;switch(c){case"bigint":s=k0,u=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);u=null;break;case"undefined":return i([v0],o)}return i([s,u],o)}case es:{if(c){let p=o;return c==="DataView"?p=new Uint8Array(o.buffer):c==="ArrayBuffer"&&(p=new Uint8Array(o)),i([c,[...p]],o)}const u=[],f=i([s,u],o);for(const p of o)u.push(n(p));return f}case uc:{if(c)switch(c){case"BigInt":return i([c,o.toString()],o);case"Boolean":case"Number":case"String":return i([c,o.valueOf()],o)}if(t&&"toJSON"in o)return n(o.toJSON());const u=[],f=i([s,u],o);for(const p of mR(o))(e||!fc(ts(o[p])))&&u.push([n(p),n(o[p])]);return f}case ep:return i([s,o.toISOString()],o);case tp:{const{source:u,flags:f}=o;return i([s,{source:u,flags:f}],o)}case rp:{const u=[],f=i([s,u],o);for(const[p,d]of o)(e||!(fc(ts(p))||fc(ts(d))))&&u.push([n(p),n(d)]);return f}case np:{const u=[],f=i([s,u],o);for(const p of o)(e||!fc(ts(p)))&&u.push(n(p));return f}}const{message:l}=o;return i([s,{name:c,message:l}],o)};return n},E0=(e,{json:t,lossy:r}={})=>{const a=[];return hR(!(t||r),!!t,new Map,a)(e),a},dc=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?S0(E0(e,t)):structuredClone(e):(e,t)=>S0(E0(e,t));function gR(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function yR(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function vR(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||gR,a=e.options.footnoteBackLabel||yR,i=e.options.footnoteLabel||"Footnotes",n=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let c=-1;for(;++c<e.footnoteOrder.length;){const l=e.footnoteById.get(e.footnoteOrder[c]);if(!l)continue;const u=e.all(l),f=String(l.identifier).toUpperCase(),p=Gi(f.toLowerCase());let d=0;const h=[],k=e.footnoteCounts.get(f);for(;k!==void 0&&++d<=k;){h.length>0&&h.push({type:"text",value:" "});let b=typeof r=="string"?r:r(c,d);typeof b=="string"&&(b={type:"text",value:b}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(c,d),className:["data-footnote-backref"]},children:Array.isArray(b)?b:[b]})}const v=u[u.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const b=v.children[v.children.length-1];b&&b.type==="text"?b.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...h)}else u.push(...h);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(u,!0)};e.patch(l,y),s.push(y)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:n,properties:{...dc(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
113
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
|
|
114
|
-
`}]}}const C0=(function(e){if(e==null)return SR;if(typeof e=="function")return pc(e);if(typeof e=="object")return Array.isArray(e)?bR(e):kR(e);if(typeof e=="string")return wR(e);throw new Error("Expected function, string, or object as test")});function bR(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=C0(e[r]);return pc(a);function a(...i){let n=-1;for(;++n<t.length;)if(t[n].apply(this,i))return!0;return!1}}function kR(e){const t=e;return pc(r);function r(a){const i=a;let n;for(n in e)if(i[n]!==t[n])return!1;return!0}}function wR(e){return pc(t);function t(r){return r&&r.type===e}}function pc(e){return t;function t(r,a,i){return!!(ER(r)&&e.call(this,r,typeof a=="number"?a:void 0,i||void 0))}}function SR(){return!0}function ER(e){return e!==null&&typeof e=="object"&&"type"in e}function kz(e){return e}const A0=[],CR=!0,_0=!1,AR="skip";function _R(e,t,r,a){let i;typeof t=="function"&&typeof r!="function"?(a=r,r=t):i=t;const n=C0(i),o=a?-1:1;s(e,void 0,[])();function s(c,l,u){const f=c&&typeof c=="object"?c:{};if(typeof f.type=="string"){const d=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(c.type+(d?"<"+d+">":""))+")"})}return p;function p(){let d=A0,h,k,v;if((!t||n(c,l,u[u.length-1]||void 0))&&(d=OR(r(c,u)),d[0]===_0))return d;if("children"in c&&c.children){const y=c;if(y.children&&d[0]!==AR)for(k=(a?y.children.length:-1)+o,v=u.concat(y);k>-1&&k<y.children.length;){const b=y.children[k];if(h=s(b,k,v)(),h[0]===_0)return h;k=typeof h[1]=="number"?h[1]:k+o}}return d}}}function OR(e){return Array.isArray(e)?e:typeof e=="number"?[CR,e]:e==null?A0:[e]}function O0(e,t,r,a){let i,n,o;typeof t=="function"&&typeof r!="function"?(n=void 0,o=t,i=r):(n=t,o=r,i=a),_R(e,n,s,i);function s(c,l){const u=l[l.length-1],f=u?u.children.indexOf(c):void 0;return o(c,f,u)}}const ap={}.hasOwnProperty,xR={};function TR(e,t){const r=t||xR,a=new Map,i=new Map,n=new Map,o={...uR,...r.handlers},s={all:l,applyData:IR,definitionById:a,footnoteById:i,footnoteCounts:n,footnoteOrder:[],handlers:o,one:c,options:r,patch:PR,wrap:DR};return O0(e,function(u){if(u.type==="definition"||u.type==="footnoteDefinition"){const f=u.type==="definition"?a:i,p=String(u.identifier).toUpperCase();f.has(p)||f.set(p,u)}}),s;function c(u,f){const p=u.type,d=s.handlers[p];if(ap.call(s.handlers,p)&&d)return d(s,u,f);if(s.options.passThrough&&s.options.passThrough.includes(p)){if("children"in u){const{children:k,...v}=u,y=dc(v);return y.children=s.all(u),y}return dc(u)}return(s.options.unknownHandler||NR)(s,u,f)}function l(u){const f=[];if("children"in u){const p=u.children;let d=-1;for(;++d<p.length;){const h=s.one(p[d],u);if(h){if(d&&p[d-1].type==="break"&&(!Array.isArray(h)&&h.type==="text"&&(h.value=x0(h.value)),!Array.isArray(h)&&h.type==="element")){const k=h.children[0];k&&k.type==="text"&&(k.value=x0(k.value))}Array.isArray(h)?f.push(...h):f.push(h)}}}return f}}function PR(e,t){e.position&&(t.position=wM(e))}function IR(e,t){let r=t;if(e&&e.data){const a=e.data.hName,i=e.data.hChildren,n=e.data.hProperties;if(typeof a=="string")if(r.type==="element")r.tagName=a;else{const o="children"in r?r.children:[r];r={type:"element",tagName:a,properties:{},children:o}}r.type==="element"&&n&&Object.assign(r.properties,dc(n)),"children"in r&&r.children&&i!==null&&i!==void 0&&(r.children=i)}return r}function NR(e,t){const r=t.data||{},a="value"in t&&!(ap.call(r,"hProperties")||ap.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function DR(e,t){const r=[];let a=-1;for(t&&r.push({type:"text",value:`
|
|
115
|
-
`});++a<e.length;)a&&r.push({type:"text",value:`
|
|
116
|
-
`}),r.push(e[a]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
117
|
-
`}),r}function x0(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function T0(e,t){const r=TR(e,t),a=r.one(e,void 0),i=vR(r),n=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return i&&n.children.push({type:"text",value:`
|
|
118
|
-
`},i),n}function FR(e,t){return e&&"run"in e?async function(r,a){const i=T0(r,{file:a,...t});await e.run(i,a)}:function(r,a){return T0(r,{file:a,...e||t})}}function P0(e){if(e)throw e}var ip,I0;function MR(){if(I0)return ip;I0=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,i=function(l){return typeof Array.isArray=="function"?Array.isArray(l):t.call(l)==="[object Array]"},n=function(l){if(!l||t.call(l)!=="[object Object]")return!1;var u=e.call(l,"constructor"),f=l.constructor&&l.constructor.prototype&&e.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!u&&!f)return!1;var p;for(p in l);return typeof p>"u"||e.call(l,p)},o=function(l,u){r&&u.name==="__proto__"?r(l,u.name,{enumerable:!0,configurable:!0,value:u.newValue,writable:!0}):l[u.name]=u.newValue},s=function(l,u){if(u==="__proto__")if(e.call(l,u)){if(a)return a(l,u).value}else return;return l[u]};return ip=function c(){var l,u,f,p,d,h,k=arguments[0],v=1,y=arguments.length,b=!1;for(typeof k=="boolean"&&(b=k,k=arguments[1]||{},v=2),(k==null||typeof k!="object"&&typeof k!="function")&&(k={});v<y;++v)if(l=arguments[v],l!=null)for(u in l)f=s(k,u),p=s(l,u),k!==p&&(b&&p&&(n(p)||(d=i(p)))?(d?(d=!1,h=f&&i(f)?f:[]):h=f&&n(f)?f:{},o(k,{name:u,newValue:c(b,h,p)})):typeof p<"u"&&o(k,{name:u,newValue:p}));return k},ip}var jR=MR();const op=gn(jR);function sp(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function LR(){const e=[],t={run:r,use:a};return t;function r(...i){let n=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...i);function s(c,...l){const u=e[++n];let f=-1;if(c){o(c);return}for(;++f<i.length;)(l[f]===null||l[f]===void 0)&&(l[f]=i[f]);i=l,u?RR(u,s)(...l):o(null,...l)}}function a(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function RR(e,t){let r;return a;function a(...o){const s=e.length>o.length;let c;s&&o.push(i);try{c=e.apply(this,o)}catch(l){const u=l;if(s&&r)throw u;return i(u)}s||(c&&c.then&&typeof c.then=="function"?c.then(n,i):c instanceof Error?i(c):n(c))}function i(o,...s){r||(r=!0,t(o,...s))}function n(o){i(null,o)}}const Tn={basename:qR,dirname:zR,extname:$R,join:UR,sep:"/"};function qR(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');rs(e);let r=0,a=-1,i=e.length,n;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1);return a<0?"":e.slice(r,a)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(a=i):(s=-1,a=o));return r===a?a=o:a<0&&(a=e.length),e.slice(r,a)}function zR(e){if(rs(e),e.length===0)return".";let t=-1,r=e.length,a;for(;--r;)if(e.codePointAt(r)===47){if(a){t=r;break}}else a||(a=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function $R(e){rs(e);let t=e.length,r=-1,a=0,i=-1,n=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){a=t+1;break}continue}r<0&&(o=!0,r=t+1),s===46?i<0?i=t:n!==1&&(n=1):i>-1&&(n=-1)}return i<0||r<0||n===0||n===1&&i===r-1&&i===a+1?"":e.slice(i,r)}function UR(...e){let t=-1,r;for(;++t<e.length;)rs(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":BR(r)}function BR(e){rs(e);const t=e.codePointAt(0)===47;let r=VR(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function VR(e,t){let r="",a=0,i=-1,n=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(i===o-1||n===1))if(i!==o-1&&n===2){if(r.length<2||a!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(c=r.lastIndexOf("/"),c!==r.length-1){c<0?(r="",a=0):(r=r.slice(0,c),a=r.length-1-r.lastIndexOf("/")),i=o,n=0;continue}}else if(r.length>0){r="",a=0,i=o,n=0;continue}}t&&(r=r.length>0?r+"/..":"..",a=2)}else r.length>0?r+="/"+e.slice(i+1,o):r=e.slice(i+1,o),a=o-i-1;i=o,n=0}else s===46&&n>-1?n++:n=-1}return r}function rs(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const HR={cwd:WR};function WR(){return"/"}function lp(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function KR(e){if(typeof e=="string")e=new URL(e);else if(!lp(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return GR(e)}function GR(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const a=t.codePointAt(r+2);if(a===70||a===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const cp=["history","path","basename","stem","extname","dirname"];class N0{constructor(t){let r;t?lp(t)?r={path:t}:typeof t=="string"||JR(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":HR.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<cp.length;){const n=cp[a];n in r&&r[n]!==void 0&&r[n]!==null&&(this[n]=n==="history"?[...r[n]]:r[n])}let i;for(i in r)cp.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?Tn.basename(this.path):void 0}set basename(t){fp(t,"basename"),up(t,"basename"),this.path=Tn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Tn.dirname(this.path):void 0}set dirname(t){D0(this.basename,"dirname"),this.path=Tn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Tn.extname(this.path):void 0}set extname(t){if(up(t,"extname"),D0(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Tn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){lp(t)&&(t=KR(t)),fp(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Tn.basename(this.path,this.extname):void 0}set stem(t){fp(t,"stem"),up(t,"stem"),this.path=Tn.join(this.dirname||"",t+(this.extname||""))}fail(t,r,a){const i=this.message(t,r,a);throw i.fatal=!0,i}info(t,r,a){const i=this.message(t,r,a);return i.fatal=void 0,i}message(t,r,a){const i=new ir(t,r,a);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function up(e,t){if(e&&e.includes(Tn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Tn.sep+"`")}function fp(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function D0(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function JR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const YR=(function(e){const a=this.constructor.prototype,i=a[e],n=function(){return i.apply(n,arguments)};return Object.setPrototypeOf(n,a),n}),XR={}.hasOwnProperty;class dp extends YR{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=LR()}copy(){const t=new dp;let r=-1;for(;++r<this.attachers.length;){const a=this.attachers[r];t.use(...a)}return t.data(op(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(hp("data",this.frozen),this.namespace[t]=r,this):XR.call(this.namespace,t)&&this.namespace[t]||void 0:t?(hp("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const i=r.call(t,...a);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=mc(t),a=this.parser||this.Parser;return pp("parse",a),a(String(r),r)}process(t,r){const a=this;return this.freeze(),pp("process",this.parser||this.Parser),mp("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(n,o){const s=mc(t),c=a.parse(s);a.run(c,s,function(u,f,p){if(u||!f||!p)return l(u);const d=f,h=a.stringify(d,p);e2(h)?p.value=h:p.result=h,l(u,p)});function l(u,f){u||!f?o(u):n?n(f):r(void 0,f)}}}processSync(t){let r=!1,a;return this.freeze(),pp("processSync",this.parser||this.Parser),mp("processSync",this.compiler||this.Compiler),this.process(t,i),M0("processSync","process",r),a;function i(n,o){r=!0,P0(n),a=o}}run(t,r,a){F0(t),this.freeze();const i=this.transformers;return!a&&typeof r=="function"&&(a=r,r=void 0),a?n(void 0,a):new Promise(n);function n(o,s){const c=mc(r);i.run(t,c,l);function l(u,f,p){const d=f||t;u?s(u):o?o(d):a(void 0,d,p)}}}runSync(t,r){let a=!1,i;return this.run(t,r,n),M0("runSync","run",a),i;function n(o,s){P0(o),i=s,a=!0}}stringify(t,r){this.freeze();const a=mc(r),i=this.compiler||this.Compiler;return mp("stringify",i),F0(t),i(t,a)}use(t,...r){const a=this.attachers,i=this.namespace;if(hp("use",this.frozen),t!=null)if(typeof t=="function")c(t,r);else if(typeof t=="object")Array.isArray(t)?s(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function n(l){if(typeof l=="function")c(l,[]);else if(typeof l=="object")if(Array.isArray(l)){const[u,...f]=l;c(u,f)}else o(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function o(l){if(!("plugins"in l)&&!("settings"in l))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(l.plugins),l.settings&&(i.settings=op(!0,i.settings,l.settings))}function s(l){let u=-1;if(l!=null)if(Array.isArray(l))for(;++u<l.length;){const f=l[u];n(f)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function c(l,u){let f=-1,p=-1;for(;++f<a.length;)if(a[f][0]===l){p=f;break}if(p===-1)a.push([l,...u]);else if(u.length>0){let[d,...h]=u;const k=a[p][1];sp(k)&&sp(d)&&(d=op(!0,k,d)),a[p]=[l,d,...h]}}}}const ZR=new dp().freeze();function pp(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function mp(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function hp(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function F0(e){if(!sp(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function M0(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function mc(e){return QR(e)?e:new N0(e)}function QR(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function e2(e){return typeof e=="string"||t2(e)}function t2(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const r2="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",j0=[],L0={allowDangerousHtml:!0},n2=/^(https?|ircs?|mailto|xmpp)$/i,a2=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function i2(e){const t=o2(e),r=s2(e);return l2(t.runSync(t.parse(r),r),e)}function o2(e){const t=e.rehypePlugins||j0,r=e.remarkPlugins||j0,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...L0}:L0;return ZR().use(RL).use(r).use(FR,a).use(t)}function s2(e){const t=e.children||"",r=new N0;return typeof t=="string"&&(r.value=t),r}function l2(e,t){const r=t.allowedElements,a=t.allowElement,i=t.components,n=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||c2;for(const u of a2)Object.hasOwn(t,u.from)&&(""+u.from+(u.to?"use `"+u.to+"` instead":"remove it")+r2+u.id,void 0);return O0(e,l),_M(e,{Fragment:D.Fragment,components:i,ignoreInvalidStyle:!0,jsx:D.jsx,jsxs:D.jsxs,passKeys:!0,passNode:!0});function l(u,f,p){if(u.type==="raw"&&p&&typeof f=="number")return o?p.children.splice(f,1):p.children[f]={type:"text",value:u.value},f;if(u.type==="element"){let d;for(d in Hd)if(Object.hasOwn(Hd,d)&&Object.hasOwn(u.properties,d)){const h=u.properties[d],k=Hd[d];(k===null||k.includes(u.tagName))&&(u.properties[d]=c(String(h||""),d,u))}}if(u.type==="element"){let d=r?!r.includes(u.tagName):n?n.includes(u.tagName):!1;if(!d&&a&&typeof f=="number"&&(d=!a(u,f,p)),d&&p&&typeof f=="number")return s&&u.children?p.children.splice(f,1,...u.children):p.children.splice(f,1),f}}}function c2(e){const t=e.indexOf(":"),r=e.indexOf("?"),a=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||r!==-1&&t>r||a!==-1&&t>a||n2.test(e.slice(0,t))?e:""}const u2=i2,f2=e=>D.jsx("a",{href:e.href,target:"_blank",rel:"noreferrer",children:e.children});function dn(e){const t=e.components||{};return t.a||(t.a=f2),D.jsx(u2,{...e,components:t,allowedElements:["a","p","em","img","strong","ul","ol","li"]})}function d2({id:e,description:t}){return t?D.jsx("div",{children:D.jsx("div",{id:e,className:"mb-3",children:typeof t=="string"?D.jsx(dn,{children:t}):t})}):null}function p2({errors:e=[],fieldPathId:t}){return e.length===0?null:D.jsx("ul",{className:"list-group",id:sf(t),children:e.filter(Boolean).map((r,a)=>D.jsx("li",{className:"list-group-item border-0 m-0 p-0",children:D.jsx("small",{className:"m-0 text-danger",children:typeof r=="string"?D.jsx(dn,{children:r}):r})},`${r}-${a}`))})}function m2({fieldPathId:e,help:t,hasErrors:r}){return t?D.jsx("small",{className:`form-text ${r?"text-danger":"text-muted"}`,id:cf(e),children:t}):null}const R0=({content:e})=>{const t=H.useMemo(()=>jc(e),[e]);return D.jsx("div",{dangerouslySetInnerHTML:{__html:t}})};function h2(e){var y,b;const{id:t,children:r,displayLabel:a,rawErrors:i=[],errors:n,help:o,rawDescription:s,hidden:c,label:l,required:u,schema:f,uiSchema:p,registry:d}=e,h=be(p),k=Ce("WrapIfAdditionalTemplate",d,h);if(c)return D.jsx("div",{className:"hidden",children:r});const v=i.length>0;return D.jsxs(D.Fragment,{children:[((y=f==null?void 0:f.rawHtml)==null?void 0:y.before)&&D.jsx(R0,{content:f.rawHtml.before}),D.jsx(k,{...e,children:D.jsxs("div",{className:"form-group",children:[a&&D.jsxs("label",{className:`form-label${v?" text-danger":""}`,htmlFor:t,children:[D.jsx(dn,{components:{p:"span"},children:l}),u?"*":null]}),r,a&&s&&D.jsx("small",{className:`form-text ${v?"text-danger":"text-muted"}`,children:D.jsx(dn,{children:s})}),n,o]})}),((b=f==null?void 0:f.rawHtml)==null?void 0:b.after)&&D.jsx(R0,{content:f.rawHtml.after})]})}function g2(e){const{description:t,disabled:r,formData:a,fieldPathId:i,onAddProperty:n,optionalDataControl:o,properties:s,readonly:c,registry:l,required:u,schema:f,title:p,uiSchema:d}=e,h=be(d),k=Ce("TitleFieldTemplate",l,h),v=Ce("DescriptionFieldTemplate",l,h),{AddButton:y}=l.templates.ButtonTemplates;if((f.oneOf||f.anyOf)&&!f.properties&&s.length===0)return null;const w=!c&&!r;return D.jsxs(D.Fragment,{children:[p&&D.jsx(k,{id:Gs(i),title:p,required:u,schema:f,uiSchema:d,registry:l,optionalDataControl:w?o:void 0}),t&&D.jsx(v,{id:la(i),description:t,schema:f,uiSchema:d,registry:l}),w?void 0:o,D.jsxs("div",{className:"container-fluid p-0",children:[s.map(E=>D.jsx("div",{className:`row mb-2${E.hidden?" d-none":""}`,children:D.jsx("div",{className:"col-12",children:E.content})},E.name)),Im(f,d,a)&&D.jsx("div",{className:"row",children:D.jsx("div",{className:"col-3 py-4",children:D.jsx(y,{id:Or(i,"add"),className:"rjsf-object-property-expand",onClick:n,disabled:r||c,uiSchema:d,registry:l})})})]})]})}function y2({id:e,title:t,uiSchema:r,optionalDataControl:a}){const i=be(r);return D.jsxs("div",{id:e,className:"my-1",children:[D.jsx("h5",{children:D.jsx(dn,{children:i.title||t})}),D.jsx("hr",{className:"border-0",style:{height:"1px"}}),a]})}function v2(e){const{id:t,classNames:r,style:a,disabled:i,label:n,onKeyRenameBlur:o,onRemoveProperty:s,readonly:c,required:l,schema:u,hideError:f,rawErrors:p,children:d,uiSchema:h,registry:k}=e,{templates:v,translateString:y}=k,{RemoveButton:b}=v.ButtonTemplates,w=Xn in u,E=[r];!f&&p&&p.length>0&&E.push("has-error has-danger");const m=E.filter(Boolean).join(" ").trim();if(!w)return D.jsx("div",{className:m,style:a,children:d});const g=`${t}-key`;return D.jsx("div",{className:m,style:a,children:D.jsxs("div",{className:"row",children:[D.jsx("div",{className:"col",children:D.jsxs("div",{className:"form-group",children:[D.jsx("label",{className:"form-label",htmlFor:g,children:y(Me.KeyLabel,[n])}),D.jsx("input",{className:"form-control",type:"text",id:g,name:g,required:l,disabled:i||c,defaultValue:n,onBlur:c?void 0:o})]})}),D.jsx("div",{className:"col",children:d}),D.jsx("div",{className:"col-auto py-4",children:D.jsx(b,{disabled:i||c,onClick:s,uiSchema:h,registry:k})})]})})}const b2=Object.freeze(Object.defineProperty({__proto__:null,ArrayFieldItemButtonsTemplate:LF,ArrayFieldItemTemplate:RF,ArrayFieldTemplate:qF,ButtonTemplates:XF,DescriptionFieldTemplate:d2,FieldErrorTemplate:p2,FieldHelpTemplate:m2,FieldTemplate:h2,ObjectFieldTemplate:g2,TitleFieldTemplate:y2,WrapIfAdditionalTemplate:v2},Symbol.toStringTag,{value:"Module"}));function k2({schema:e,uiSchema:t,options:r,id:a,value:i,disabled:n,readonly:o,label:s,hideLabel:c,autofocus:l=!1,onBlur:u,onFocus:f,onChange:p,registry:d}){const h=Ce("DescriptionFieldTemplate",d,r),k=Do(e),v=H.useCallback(g=>p(g.target.checked),[p]),y=H.useCallback(g=>u(a,g.target.checked),[u,a]),b=H.useCallback(g=>f(a,g.target.checked),[f,a]),m=be(t).widget==="checkbox"?void 0:r.description??e.description;return D.jsxs("div",{className:`checkbox ${n||o?"disabled":""}`.trim(),children:[!c&&m&&D.jsx(h,{id:la(a),description:m,schema:e,uiSchema:t,registry:d}),D.jsxs("div",{className:"form-check",children:[D.jsx("input",{type:"checkbox",className:"form-check-input",id:a,name:a,checked:typeof i>"u"?!1:i,required:k,disabled:n||o,autoFocus:l,onChange:v,onBlur:y,onFocus:b,"aria-describedby":rn(a)}),!c&&!!s&&D.jsx("label",{className:"form-check-label",htmlFor:a,children:D.jsx(dn,{components:{p:"span"},children:s})})]})]})}function w2({id:e,disabled:t,options:r,value:a,autofocus:i=!1,readonly:n,required:o,onChange:s,onBlur:c,onFocus:l}){const{inline:u=!1,enumOptions:f,enumDisabled:p,emptyValue:d}=r,h=No(r),k=Array.isArray(a)?a:[a],v=H.useCallback(({target:b})=>c(e,tn(b==null?void 0:b.value,f,h,d)),[c,e,f,d,h]),y=H.useCallback(({target:b})=>l(e,tn(b==null?void 0:b.value,f,h,d)),[l,e,f,d,h]);return D.jsx("div",{id:e,children:Array.isArray(f)&&f.map((b,w)=>{const E=Ti(b.value,k),m=Array.isArray(p)&&p.includes(b.value),g=Js(e,w),S=A=>{A.target.checked?s(Jg(w,k,f)):s(Kg(w,k,f))};return D.jsxs("div",{className:`custom-control custom-checkbox bg-transparent border-0${u?" custom-control-inline":""}`,children:[D.jsx("input",{type:"checkbox",className:"custom-control-input",id:g,name:e,checked:E,value:Io(b.value,w,h),required:o,disabled:t||m||n,autoFocus:i&&w===0,onChange:S,onBlur:v,onFocus:y,"aria-describedby":rn(e)}),D.jsx("label",{className:"custom-control-label",htmlFor:g,children:D.jsx(dn,{components:{p:"span"},children:b.label})})]},String(b.value))})})}function S2({options:e,value:t,required:r,disabled:a,readonly:i,autofocus:n=!1,onBlur:o,onFocus:s,onChange:c,id:l}){const{enumOptions:u,enumDisabled:f,inline:p,emptyValue:d}=e,h=No(e),k=H.useCallback(({target:y})=>o(l,tn(y==null?void 0:y.value,u,h,d)),[o,u,d,l,h]),v=H.useCallback(({target:y})=>s(l,tn(y==null?void 0:y.value,u,h,d)),[s,u,d,l,h]);return D.jsx("div",{id:l,role:"radiogroup",children:Array.isArray(u)&&u.map((y,b)=>{const w=Ti(y.value,t),E=Array.isArray(f)&&f.includes(y.value),m=Js(l,b);return D.jsxs("div",{className:`form-check${p?" form-check-inline":""}`,children:[D.jsx("input",{type:"radio",className:"form-check-input",id:m,name:l,checked:w,value:Io(y.value,b,h),required:r,disabled:a||E||i,autoFocus:n&&b===0,onChange:()=>c(y.value),onBlur:k,onFocus:v,"aria-describedby":rn(l)}),D.jsx("label",{className:"form-check-label",htmlFor:m,children:D.jsx(dn,{components:{p:"span"},children:y.label})})]},String(y.value))})})}const E2=5;function C2({id:e,options:t,placeholder:r,value:a,required:i,disabled:n,readonly:o,autofocus:s=!1,onChange:c,onBlur:l,onFocus:u}){const f=H.useCallback(({target:{value:h}})=>c(h===""?t.emptyValue:h),[c,t.emptyValue]),p=H.useCallback(({target:h})=>l(e,h==null?void 0:h.value),[l,e]),d=H.useCallback(({target:h})=>u(e,h==null?void 0:h.value),[u,e]);return D.jsx("textarea",{id:e,name:e,className:"form-control",value:a??"",placeholder:r,required:i,disabled:n,readOnly:o,autoFocus:s,rows:t.rows||E2,onChange:f,onBlur:p,onFocus:d,"aria-describedby":rn(e)})}const q0={templates:b2,widgets:Object.freeze(Object.defineProperty({__proto__:null,CheckboxWidget:k2,CheckboxesWidget:w2,RadioWidget:S2,TextareaWidget:C2},Symbol.toStringTag,{value:"Module"}))},A2=e=>e==="{}"?`{
|
|
130
|
+
depsCount: ${u},
|
|
131
|
+
deps: ${c}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[u,c]=n(l);o(l,u),s(l,c)}};function n({schema:l}){const u={},c={};for(const f in l){if(f==="__proto__")continue;const m=Array.isArray(l[f])?u:c;m[f]=l[f]}return[u,c]}function o(l,u=l.schema){const{gen:c,data:f,it:m}=l;if(Object.keys(u).length===0)return;const d=c.let("missing");for(const p in u){const k=u[p];if(k.length===0)continue;const v=(0,i.propertyInData)(c,f,p,m.opts.ownProperties);l.setParams({property:p,depsCount:k.length,deps:k.join(", ")}),m.allErrors?c.if(v,()=>{for(const g of k)(0,i.checkReportMissingProp)(l,g)}):(c.if((0,t._)`${v} && (${(0,i.checkMissingProp)(l,k,d)})`),(0,i.reportMissingProp)(l,d),c.else())}}e.validatePropertyDeps=o;function s(l,u=l.schema){const{gen:c,data:f,keyword:m,it:d}=l,p=c.name("valid");for(const k in u)(0,r.alwaysValidSchema)(d,u[k])||(c.if((0,i.propertyInData)(c,f,k,d.opts.ownProperties),()=>{const v=l.subschema({keyword:m,schemaProp:k},p);l.mergeValidEvaluated(v,p)},()=>c.var(p,!0)),l.ok(p))}e.validateSchemaDeps=s,e.default=a})(td)),td}var ml={},yk;function aq(){if(yk)return ml;yk=1,Object.defineProperty(ml,"__esModule",{value:!0});const e=Fe(),t=He(),i={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:a})=>(0,e._)`{propertyName: ${a.propertyName}}`},code(a){const{gen:n,schema:o,data:s,it:l}=a;if((0,t.alwaysValidSchema)(l,o))return;const u=n.name("valid");n.forIn("key",s,c=>{a.setParams({propertyName:c}),a.subschema({keyword:"propertyNames",data:c,dataTypes:["string"],propertyName:c,compositeRule:!0},u),n.if((0,e.not)(u),()=>{a.error(!0),l.allErrors||n.break()})}),a.ok(u)}};return ml.default=i,ml}var pl={},vk;function bk(){if(vk)return pl;vk=1,Object.defineProperty(pl,"__esModule",{value:!0});const e=Dr(),t=Fe(),r=qn(),i=He(),n={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:o})=>(0,t._)`{additionalProperty: ${o.additionalProperty}}`},code(o){const{gen:s,schema:l,parentSchema:u,data:c,errsCount:f,it:m}=o;if(!f)throw new Error("ajv implementation error");const{allErrors:d,opts:p}=m;if(m.props=!0,p.removeAdditional!=="all"&&(0,i.alwaysValidSchema)(m,l))return;const k=(0,e.allSchemaProperties)(u.properties),v=(0,e.allSchemaProperties)(u.patternProperties);g(),o.ok((0,t._)`${f} === ${r.default.errors}`);function g(){s.forIn("key",c,y=>{!k.length&&!v.length?E(y):s.if(b(y),()=>E(y))})}function b(y){let C;if(k.length>8){const x=(0,i.schemaRefOrVal)(m,u.properties,"properties");C=(0,e.isOwnProperty)(s,x,y)}else k.length?C=(0,t.or)(...k.map(x=>(0,t._)`${y} === ${x}`)):C=t.nil;return v.length&&(C=(0,t.or)(C,...v.map(x=>(0,t._)`${(0,e.usePattern)(o,x)}.test(${y})`))),(0,t.not)(C)}function w(y){s.code((0,t._)`delete ${c}[${y}]`)}function E(y){if(p.removeAdditional==="all"||p.removeAdditional&&l===!1){w(y);return}if(l===!1){o.setParams({additionalProperty:y}),o.error(),d||s.break();return}if(typeof l=="object"&&!(0,i.alwaysValidSchema)(m,l)){const C=s.name("valid");p.removeAdditional==="failing"?(h(y,C,!1),s.if((0,t.not)(C),()=>{o.reset(),w(y)})):(h(y,C),d||s.if((0,t.not)(C),()=>s.break()))}}function h(y,C,x){const _={keyword:"additionalProperties",dataProp:y,dataPropType:i.Type.Str};x===!1&&Object.assign(_,{compositeRule:!0,createErrors:!1,allErrors:!1}),o.subschema(_,C)}}};return pl.default=n,pl}var hl={},kk;function oq(){if(kk)return hl;kk=1,Object.defineProperty(hl,"__esModule",{value:!0});const e=Us(),t=Dr(),r=He(),i=bk(),a={keyword:"properties",type:"object",schemaType:"object",code(n){const{gen:o,schema:s,parentSchema:l,data:u,it:c}=n;c.opts.removeAdditional==="all"&&l.additionalProperties===void 0&&i.default.code(new e.KeywordCxt(c,i.default,"additionalProperties"));const f=(0,t.allSchemaProperties)(s);for(const v of f)c.definedProperties.add(v);c.opts.unevaluated&&f.length&&c.props!==!0&&(c.props=r.mergeEvaluated.props(o,(0,r.toHash)(f),c.props));const m=f.filter(v=>!(0,r.alwaysValidSchema)(c,s[v]));if(m.length===0)return;const d=o.name("valid");for(const v of m)p(v)?k(v):(o.if((0,t.propertyInData)(o,u,v,c.opts.ownProperties)),k(v),c.allErrors||o.else().var(d,!0),o.endIf()),n.it.definedProperties.add(v),n.ok(d);function p(v){return c.opts.useDefaults&&!c.compositeRule&&s[v].default!==void 0}function k(v){n.subschema({keyword:"properties",schemaProp:v,dataProp:v},d)}}};return hl.default=a,hl}var gl={},wk;function sq(){if(wk)return gl;wk=1,Object.defineProperty(gl,"__esModule",{value:!0});const e=Dr(),t=Fe(),r=He(),i=He(),a={keyword:"patternProperties",type:"object",schemaType:"object",code(n){const{gen:o,schema:s,data:l,parentSchema:u,it:c}=n,{opts:f}=c,m=(0,e.allSchemaProperties)(s),d=m.filter(E=>(0,r.alwaysValidSchema)(c,s[E]));if(m.length===0||d.length===m.length&&(!c.opts.unevaluated||c.props===!0))return;const p=f.strictSchema&&!f.allowMatchingProperties&&u.properties,k=o.name("valid");c.props!==!0&&!(c.props instanceof t.Name)&&(c.props=(0,i.evaluatedPropsToName)(o,c.props));const{props:v}=c;g();function g(){for(const E of m)p&&b(E),c.allErrors?w(E):(o.var(k,!0),w(E),o.if(k))}function b(E){for(const h in p)new RegExp(E).test(h)&&(0,r.checkStrictMode)(c,`property ${h} matches pattern ${E} (use allowMatchingProperties)`)}function w(E){o.forIn("key",l,h=>{o.if((0,t._)`${(0,e.usePattern)(n,E)}.test(${h})`,()=>{const y=d.includes(E);y||n.subschema({keyword:"patternProperties",schemaProp:E,dataProp:h,dataPropType:i.Type.Str},k),c.opts.unevaluated&&v!==!0?o.assign((0,t._)`${v}[${h}]`,!0):!y&&!c.allErrors&&o.if((0,t.not)(k),()=>o.break())})})}}};return gl.default=a,gl}var yl={},Sk;function lq(){if(Sk)return yl;Sk=1,Object.defineProperty(yl,"__esModule",{value:!0});const e=He(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:i,schema:a,it:n}=r;if((0,e.alwaysValidSchema)(n,a)){r.fail();return}const o=i.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),r.failResult(o,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return yl.default=t,yl}var vl={},Ck;function uq(){if(Ck)return vl;Ck=1,Object.defineProperty(vl,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Dr().validateUnion,error:{message:"must match a schema in anyOf"}};return vl.default=t,vl}var bl={},Ek;function cq(){if(Ek)return bl;Ek=1,Object.defineProperty(bl,"__esModule",{value:!0});const e=Fe(),t=He(),i={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:a})=>(0,e._)`{passingSchemas: ${a.passing}}`},code(a){const{gen:n,schema:o,parentSchema:s,it:l}=a;if(!Array.isArray(o))throw new Error("ajv implementation error");if(l.opts.discriminator&&s.discriminator)return;const u=o,c=n.let("valid",!1),f=n.let("passing",null),m=n.name("_valid");a.setParams({passing:f}),n.block(d),a.result(c,()=>a.reset(),()=>a.error(!0));function d(){u.forEach((p,k)=>{let v;(0,t.alwaysValidSchema)(l,p)?n.var(m,!0):v=a.subschema({keyword:"oneOf",schemaProp:k,compositeRule:!0},m),k>0&&n.if((0,e._)`${m} && ${c}`).assign(c,!1).assign(f,(0,e._)`[${f}, ${k}]`).else(),n.if(m,()=>{n.assign(c,!0),n.assign(f,k),v&&a.mergeEvaluated(v,e.Name)})})}}};return bl.default=i,bl}var kl={},Ak;function fq(){if(Ak)return kl;Ak=1,Object.defineProperty(kl,"__esModule",{value:!0});const e=He(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:i,schema:a,it:n}=r;if(!Array.isArray(a))throw new Error("ajv implementation error");const o=i.name("valid");a.forEach((s,l)=>{if((0,e.alwaysValidSchema)(n,s))return;const u=r.subschema({keyword:"allOf",schemaProp:l},o);r.ok(o),r.mergeEvaluated(u)})}};return kl.default=t,kl}var wl={},xk;function dq(){if(xk)return wl;xk=1,Object.defineProperty(wl,"__esModule",{value:!0});const e=Fe(),t=He(),i={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:n})=>(0,e.str)`must match "${n.ifClause}" schema`,params:({params:n})=>(0,e._)`{failingKeyword: ${n.ifClause}}`},code(n){const{gen:o,parentSchema:s,it:l}=n;s.then===void 0&&s.else===void 0&&(0,t.checkStrictMode)(l,'"if" without "then" and "else" is ignored');const u=a(l,"then"),c=a(l,"else");if(!u&&!c)return;const f=o.let("valid",!0),m=o.name("_valid");if(d(),n.reset(),u&&c){const k=o.let("ifClause");n.setParams({ifClause:k}),o.if(m,p("then",k),p("else",k))}else u?o.if(m,p("then")):o.if((0,e.not)(m),p("else"));n.pass(f,()=>n.error(!0));function d(){const k=n.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},m);n.mergeEvaluated(k)}function p(k,v){return()=>{const g=n.subschema({keyword:k},m);o.assign(f,m),n.mergeValidEvaluated(g,f),v?o.assign(v,(0,e._)`${k}`):n.setParams({ifClause:k})}}}};function a(n,o){const s=n.schema[o];return s!==void 0&&!(0,t.alwaysValidSchema)(n,s)}return wl.default=i,wl}var Sl={},Ok;function mq(){if(Ok)return Sl;Ok=1,Object.defineProperty(Sl,"__esModule",{value:!0});const e=He(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:i,it:a}){i.if===void 0&&(0,e.checkStrictMode)(a,`"${r}" without "if" is ignored`)}};return Sl.default=t,Sl}var _k;function pq(){if(_k)return ul;_k=1,Object.defineProperty(ul,"__esModule",{value:!0});const e=ck(),t=tq(),r=dk(),i=rq(),a=nq(),n=iq(),o=aq(),s=bk(),l=oq(),u=sq(),c=lq(),f=uq(),m=cq(),d=fq(),p=dq(),k=mq();function v(g=!1){const b=[c.default,f.default,m.default,d.default,p.default,k.default,o.default,s.default,n.default,l.default,u.default];return g?b.push(t.default,i.default):b.push(e.default,r.default),b.push(a.default),b}return ul.default=v,ul}var Cl={},El={},Pk;function hq(){if(Pk)return El;Pk=1,Object.defineProperty(El,"__esModule",{value:!0});const e=Fe(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:i})=>(0,e.str)`must match format "${i}"`,params:({schemaCode:i})=>(0,e._)`{format: ${i}}`},code(i,a){const{gen:n,data:o,$data:s,schema:l,schemaCode:u,it:c}=i,{opts:f,errSchemaPath:m,schemaEnv:d,self:p}=c;if(!f.validateFormats)return;s?k():v();function k(){const g=n.scopeValue("formats",{ref:p.formats,code:f.code.formats}),b=n.const("fDef",(0,e._)`${g}[${u}]`),w=n.let("fType"),E=n.let("format");n.if((0,e._)`typeof ${b} == "object" && !(${b} instanceof RegExp)`,()=>n.assign(w,(0,e._)`${b}.type || "string"`).assign(E,(0,e._)`${b}.validate`),()=>n.assign(w,(0,e._)`"string"`).assign(E,b)),i.fail$data((0,e.or)(h(),y()));function h(){return f.strictSchema===!1?e.nil:(0,e._)`${u} && !${E}`}function y(){const C=d.$async?(0,e._)`(${b}.async ? await ${E}(${o}) : ${E}(${o}))`:(0,e._)`${E}(${o})`,x=(0,e._)`(typeof ${E} == "function" ? ${C} : ${E}.test(${o}))`;return(0,e._)`${E} && ${E} !== true && ${w} === ${a} && !${x}`}}function v(){const g=p.formats[l];if(!g){h();return}if(g===!0)return;const[b,w,E]=y(g);b===a&&i.pass(C());function h(){if(f.strictSchema===!1){p.logger.warn(x());return}throw new Error(x());function x(){return`unknown format "${l}" ignored in schema at path "${m}"`}}function y(x){const _=x instanceof RegExp?(0,e.regexpCode)(x):f.code.formats?(0,e._)`${f.code.formats}${(0,e.getProperty)(l)}`:void 0,S=n.scopeValue("formats",{key:l,ref:x,code:_});return typeof x=="object"&&!(x instanceof RegExp)?[x.type||"string",x.validate,(0,e._)`${S}.validate`]:["string",x,S]}function C(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!d.$async)throw new Error("async format in sync schema");return(0,e._)`await ${E}(${o})`}return typeof w=="function"?(0,e._)`${E}(${o})`:(0,e._)`${E}.test(${o})`}}}};return El.default=r,El}var Ik;function gq(){if(Ik)return Cl;Ik=1,Object.defineProperty(Cl,"__esModule",{value:!0});const t=[hq().default];return Cl.default=t,Cl}var bi={},Tk;function yq(){return Tk||(Tk=1,Object.defineProperty(bi,"__esModule",{value:!0}),bi.contentVocabulary=bi.metadataVocabulary=void 0,bi.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],bi.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),bi}var Nk;function vq(){if(Nk)return Ws;Nk=1,Object.defineProperty(Ws,"__esModule",{value:!0});const e=UL(),t=eq(),r=pq(),i=gq(),a=yq(),n=[e.default,t.default,(0,r.default)(),i.default,a.metadataVocabulary,a.contentVocabulary];return Ws.default=n,Ws}var Al={},mo={},Fk;function bq(){if(Fk)return mo;Fk=1,Object.defineProperty(mo,"__esModule",{value:!0}),mo.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(mo.DiscrError=e={})),mo}var Dk;function kq(){if(Dk)return Al;Dk=1,Object.defineProperty(Al,"__esModule",{value:!0});const e=Fe(),t=bq(),r=Xf(),i=Hs(),a=He(),o={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:s,tagName:l}})=>s===t.DiscrError.Tag?`tag "${l}" must be string`:`value of tag "${l}" must be in oneOf`,params:({params:{discrError:s,tag:l,tagName:u}})=>(0,e._)`{error: ${s}, tag: ${u}, tagValue: ${l}}`},code(s){const{gen:l,data:u,schema:c,parentSchema:f,it:m}=s,{oneOf:d}=f;if(!m.opts.discriminator)throw new Error("discriminator: requires discriminator option");const p=c.propertyName;if(typeof p!="string")throw new Error("discriminator: requires propertyName");if(c.mapping)throw new Error("discriminator: mapping is not supported");if(!d)throw new Error("discriminator: requires oneOf keyword");const k=l.let("valid",!1),v=l.const("tag",(0,e._)`${u}${(0,e.getProperty)(p)}`);l.if((0,e._)`typeof ${v} == "string"`,()=>g(),()=>s.error(!1,{discrError:t.DiscrError.Tag,tag:v,tagName:p})),s.ok(k);function g(){const E=w();l.if(!1);for(const h in E)l.elseIf((0,e._)`${v} === ${h}`),l.assign(k,b(E[h]));l.else(),s.error(!1,{discrError:t.DiscrError.Mapping,tag:v,tagName:p}),l.endIf()}function b(E){const h=l.name("valid"),y=s.subschema({keyword:"oneOf",schemaProp:E},h);return s.mergeEvaluated(y,e.Name),h}function w(){var E;const h={},y=x(f);let C=!0;for(let A=0;A<d.length;A++){let O=d[A];if(O!=null&&O.$ref&&!(0,a.schemaHasRulesButRef)(O,m.self.RULES)){const T=O.$ref;if(O=r.resolveRef.call(m.self,m.schemaEnv.root,m.baseId,T),O instanceof r.SchemaEnv&&(O=O.schema),O===void 0)throw new i.default(m.opts.uriResolver,m.baseId,T)}const F=(E=O==null?void 0:O.properties)===null||E===void 0?void 0:E[p];if(typeof F!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${p}"`);C=C&&(y||x(O)),_(F,A)}if(!C)throw new Error(`discriminator: "${p}" must be required`);return h;function x({required:A}){return Array.isArray(A)&&A.includes(p)}function _(A,O){if(A.const)S(A.const,O);else if(A.enum)for(const F of A.enum)S(F,O);else throw new Error(`discriminator: "properties/${p}" must have "const" or "enum"`)}function S(A,O){if(typeof A!="string"||A in h)throw new Error(`discriminator: "${p}" values must be unique strings`);h[A]=O}}}};return Al.default=o,Al}const wq={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};var Mk;function jk(){return Mk||(Mk=1,(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=RL(),i=vq(),a=kq(),n=wq,o=["/properties"],s="http://json-schema.org/draft-07/schema";class l extends r.default{_addVocabularies(){super._addVocabularies(),i.default.forEach(p=>this.addVocabulary(p)),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const p=this.opts.$data?this.$dataMetaSchema(n,o):n;this.addMetaSchema(p,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}t.Ajv=l,e.exports=t=l,e.exports.Ajv=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var u=Us();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var c=Fe();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return c._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return c.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return c.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return c.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return c.CodeGen}});var f=Yf();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var m=Hs();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return m.default}})})(js,js.exports)),js.exports}var Sq=jk();const Cq=jr(Sq);var xl={exports:{}},rd={},Lk;function Eq(){return Lk||(Lk=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(_,S){return{validate:_,compare:S}}e.fullFormats={date:t(n,o),time:t(l,u),"date-time":t(f,m),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:k,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:x,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:g,int32:{type:"number",validate:E},int64:{type:"number",validate:h},float:{type:"number",validate:y},double:{type:"number",validate:y},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,u),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,m),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function r(_){return _%4===0&&(_%100!==0||_%400===0)}const i=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,a=[0,31,28,31,30,31,30,31,31,30,31,30,31];function n(_){const S=i.exec(_);if(!S)return!1;const A=+S[1],O=+S[2],F=+S[3];return O>=1&&O<=12&&F>=1&&F<=(O===2&&r(A)?29:a[O])}function o(_,S){if(_&&S)return _>S?1:_<S?-1:0}const s=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function l(_,S){const A=s.exec(_);if(!A)return!1;const O=+A[1],F=+A[2],T=+A[3],M=A[5];return(O<=23&&F<=59&&T<=59||O===23&&F===59&&T===60)&&(!S||M!=="")}function u(_,S){if(!(_&&S))return;const A=s.exec(_),O=s.exec(S);if(A&&O)return _=A[1]+A[2]+A[3]+(A[4]||""),S=O[1]+O[2]+O[3]+(O[4]||""),_>S?1:_<S?-1:0}const c=/t|\s/i;function f(_){const S=_.split(c);return S.length===2&&n(S[0])&&l(S[1],!0)}function m(_,S){if(!(_&&S))return;const[A,O]=_.split(c),[F,T]=S.split(c),M=o(A,F);if(M!==void 0)return M||u(O,T)}const d=/\/|:/,p=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function k(_){return d.test(_)&&p.test(_)}const v=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function g(_){return v.lastIndex=0,v.test(_)}const b=-2147483648,w=2**31-1;function E(_){return Number.isInteger(_)&&_<=w&&_>=b}function h(_){return Number.isInteger(_)}function y(){return!0}const C=/[^\\]\\Z/;function x(_){if(C.test(_))return!1;try{return new RegExp(_),!0}catch{return!1}}})(rd)),rd}var nd={},qk;function Aq(){return qk||(qk=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=jk(),r=Fe(),i=r.operators,a={formatMaximum:{okStr:"<=",ok:i.LTE,fail:i.GT},formatMinimum:{okStr:">=",ok:i.GTE,fail:i.LT},formatExclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},formatExclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}},n={message:({keyword:s,schemaCode:l})=>r.str`should be ${a[s].okStr} ${l}`,params:({keyword:s,schemaCode:l})=>r._`{comparison: ${a[s].okStr}, limit: ${l}}`};e.formatLimitDefinition={keyword:Object.keys(a),type:"string",schemaType:"string",$data:!0,error:n,code(s){const{gen:l,data:u,schemaCode:c,keyword:f,it:m}=s,{opts:d,self:p}=m;if(!d.validateFormats)return;const k=new t.KeywordCxt(m,p.RULES.all.format.definition,"format");k.$data?v():g();function v(){const w=l.scopeValue("formats",{ref:p.formats,code:d.code.formats}),E=l.const("fmt",r._`${w}[${k.schemaCode}]`);s.fail$data(r.or(r._`typeof ${E} != "object"`,r._`${E} instanceof RegExp`,r._`typeof ${E}.compare != "function"`,b(E)))}function g(){const w=k.schema,E=p.formats[w];if(!E||E===!0)return;if(typeof E!="object"||E instanceof RegExp||typeof E.compare!="function")throw new Error(`"${f}": format "${w}" does not define "compare" function`);const h=l.scopeValue("formats",{key:w,ref:E,code:d.code.formats?r._`${d.code.formats}${r.getProperty(w)}`:void 0});s.fail$data(b(h))}function b(w){return r._`${w}.compare(${u}, ${c}) ${a[f].fail} 0`}},dependencies:["format"]};const o=s=>(s.addKeyword(e.formatLimitDefinition),s);e.default=o})(nd)),nd}var Rk;function xq(){return Rk||(Rk=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=Eq(),i=Aq(),a=Fe(),n=new a.Name("fullFormats"),o=new a.Name("fastFormats"),s=(u,c={keywords:!0})=>{if(Array.isArray(c))return l(u,c,r.fullFormats,n),u;const[f,m]=c.mode==="fast"?[r.fastFormats,o]:[r.fullFormats,n],d=c.formats||r.formatNames;return l(u,d,f,m),c.keywords&&i.default(u),u};s.get=(u,c="full")=>{const m=(c==="fast"?r.fastFormats:r.fullFormats)[u];if(!m)throw new Error(`Unknown format "${u}"`);return m};function l(u,c,f,m){var d,p;(d=(p=u.opts.code).formats)!==null&&d!==void 0||(p.formats=a._`require("ajv-formats/dist/formats").${m}`);for(const k of c)u.addFormat(k,f[k])}e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s})(xl,xl.exports)),xl.exports}var Oq=xq();const zk=jr(Oq),_q={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},Pq=/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,Iq=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function Tq(e,t,r={},i,a=Cq,n){let o=new a({..._q,...r});return i?zk(o,i):i!==!1&&zk(o),o.addFormat("data-url",Iq),o.addFormat("color",Pq),o.addKeyword(tc),Array.isArray(e)&&o.addMetaSchema(e),$e(t)&&Object.keys(t).forEach(s=>{o.addFormat(s,t[s])}),n&&(o=n(o)),o}class Nq{constructor(t,r){this.hasRegisteredRootSchema=!1;const{additionalMetaSchemas:i,customFormats:a,ajvOptionsOverrides:n,ajvFormatOptions:o,AjvClass:s,extenderFn:l,suppressDuplicateFiltering:u}=t;this.ajv=Tq(i,a,n,o,s,l),this.localizer=r,this.suppressDuplicateFiltering=u}reset(){this.ajv.removeSchema(),this.lastSeenRootSchema=void 0,this.hasRegisteredRootSchema=!1}rawValidation(t,r){var i,a;let n,o;try{t[tt]&&(o=this.ajv.getSchema(t[tt])),o===void 0&&(o=this.ajv.compile(t)),o(r)}catch(l){n=l}let s;return o&&(typeof this.localizer=="function"&&(((i=o.errors)!==null&&i!==void 0?i:[]).forEach(l=>{var u;["missingProperty","property"].forEach(c=>{var f;!((f=l.params)===null||f===void 0)&&f[c]&&(l.params[c]=`'${l.params[c]}'`)}),!((u=l.params)===null||u===void 0)&&u.deps&&(l.params.deps=l.params.deps.split(", ").map(c=>`'${c}'`).join(", "))}),this.localizer(o.errors),((a=o.errors)!==null&&a!==void 0?a:[]).forEach(l=>{var u;["missingProperty","property"].forEach(c=>{var f;!((f=l.params)===null||f===void 0)&&f[c]&&(l.params[c]=l.params[c].slice(1,-1))}),!((u=l.params)===null||u===void 0)&&u.deps&&(l.params.deps=l.params.deps.split(", ").map(c=>c.slice(1,-1)).join(", "))})),s=o.errors||void 0,o.errors=null),{errors:s,validationError:n}}validateFormData(t,r,i,a,n){const o=this.rawValidation(r,t);return PL(this,o,t,r,i,a,n,this.suppressDuplicateFiltering)}handleSchemaUpdate(t){var r,i;if(this.lastSeenRootSchema===t&&this.hasRegisteredRootSchema)return;const a=(r=t[tt])!==null&&r!==void 0?r:Ch;this.ajv.getSchema(a)===void 0?this.ajv.addSchema(t,a):Ue(t,(i=this.ajv.getSchema(a))===null||i===void 0?void 0:i.schema)||(this.ajv.removeSchema(a),this.ajv.addSchema(t,a)),this.lastSeenRootSchema=t,this.hasRegisteredRootSchema=!0}isValid(t,r,i){var a;try{this.handleSchemaUpdate(i);const n=cf(t),o=(a=n[tt])!==null&&a!==void 0?a:PD(n);let s;return s=this.ajv.getSchema(o),s===void 0&&(s=this.ajv.addSchema(n,o).getSchema(o)||this.ajv.compile(n)),s(r)}catch(n){return console.warn("Error encountered compiling schema:",n),!1}}}function Ol(e={},t){return new Nq(e,t)}Ol();var id,$k;function Fq(){return $k||($k=1,id=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"additionalProperties":n="must NOT have additional properties";break;case"anyOf":n='must match a schema in "anyOf"';break;case"const":n="must be equal to constant";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="must have propert",i==1?n+="y":n+="ies",n+=" "+a.params.deps+" when property "+a.params.property+" is present";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='must pass "'+a.keyword+'" keyword validation'}break;case"enum":n="must be equal to one of the allowed values";break;case"false schema":n="boolean schema is false";break;case"format":n='must match format "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"if":n='must match "'+a.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"maxItems":n="";var i=a.params.limit;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"maxLength":n="";var i=a.params.limit;n+="must NOT be longer than "+i+" character",i!=1&&(n+="s");break;case"maxProperties":n="";var i=a.params.limit;n+="must NOT have more than "+i+" propert",i==1?n+="y":n+="ies";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"minItems":n="";var i=a.params.limit;n+="must NOT have less than "+i+" item",i!=1&&(n+="s");break;case"minLength":n="";var i=a.params.limit;n+="must NOT be shorter than "+i+" character",i!=1&&(n+="s");break;case"minProperties":n="";var i=a.params.limit;n+="must NOT have less than "+i+" propert",i==1?n+="y":n+="ies";break;case"multipleOf":n="must be a multiple of "+a.params.multipleOf;break;case"not":n='must NOT be valid according to schema in "not"';break;case"oneOf":n='must match exactly one schema in "oneOf"';break;case"pattern":n='must match pattern "'+a.params.pattern+'"';break;case"patternRequired":n='must have property matching pattern "'+a.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="must have required property "+a.params.missingProperty;break;case"type":n="must be "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="must NOT have duplicate items (items ## "+a.params.j+" and "+a.params.i+" are identical)";break;default:n='must pass "'+a.keyword+'" keyword validation'}a.message=n}}),id}var ad,Uk;function Dq(){return Uk||(Uk=1,ad=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+=" يجب أن لا يحوي أكثر من "+i+" عنصر";break;case"additionalProperties":n="يجب أن لا يحوي خصائص إضافية";break;case"anyOf":n='يجب أن يوافق أحد المخططات الموجودة في "anyOf"';break;case"const":n="يجب أن يكون ثابتاً";break;case"contains":n="يجب أن يحوي عنصرا صحيح";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+=" يجب أن يحوي الخصائص "+a.params.deps+" عندما تكون الخاصية "+a.params.property+" موجودة";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='يجب أن تمرر كلمة التحقق المفتاحية "'+a.keyword+'"'}break;case"enum":n="قيمة هذا الحقل يجب أن تكون مساوية لأحد القيم المعرفة مسبقاً";break;case"false schema":n="المخطط المنطقي غير صحيح";break;case"format":n='يجب أن يوافق الصيغة "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" يجب أن يكون "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" يجب أن يكون "+r;break;case"if":n='يجب أن توافق المخطط "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" يجب أن يكون "+r;break;case"maxItems":n="";var i=a.params.limit;n+=" يجب أن لا يحوي أكثر من "+i+" عنصر";break;case"maxLength":n="";var i=a.params.limit;n+=" يجب أن لا يحوي أكثر من "+i+" محرف";break;case"maxProperties":n="";var i=a.params.limit;n+=" يجب أن لا يحوي أكثر من "+i+" خصائص";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" يجب أن يكون "+r;break;case"minItems":n="";var i=a.params.limit;n+=" يجب أن لا يحوي أقل من "+i+" عنصر";break;case"minLength":n="";var i=a.params.limit;n+=" يجب أن لا يحوي أقل من "+i+" محرف";break;case"minProperties":n="";var i=a.params.limit;n+=" يجب أن لا يحوي أقل من "+i+" خصائص";break;case"multipleOf":n=" يجب أن يحوي أكثر من "+a.params.multipleOf;break;case"not":n='يجب أن يكون غير صحيح وفقاً للمخطط "not"';break;case"oneOf":n='يجب أن يوافق مخطط واحد فقط موجود في "oneOf"';break;case"pattern":n='يجب أن يوافق النمط "'+a.params.pattern+'"';break;case"patternRequired":n='يجب أن يحوي خاصية توافق النمط "'+a.params.missingPattern+'"';break;case"propertyNames":n="اسم الخاصية غير صالح";break;case"required":n="هذا الحقل إلزامي";break;case"type":n="قيمة هذا الحقل غير صالحة";break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="يجب أن لا يحوي عناصر مكررة (العنصر ## "+a.params.j+" و "+a.params.i+" متطابقة)";break;default:n='يجب أن تمرر كلمة التحقق المفتاحية "'+a.keyword+'"'}a.message=n}}),ad}var od,Bk;function Mq(){return Bk||(Bk=1,od=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="no ha de tenir més de "+i+" element",i!=1&&(n+="s");break;case"additionalProperties":n="no ha de tenir propietats addicionals";break;case"anyOf":n='ha de coincidir amb algun esquema definit a "anyOf"';break;case"const":n="ha de ser igual a la constant";break;case"contains":n="ha de contenir un ítem vàlid";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="ha de contenir la propietat",i!=1&&(n+="s"),n+=" "+a.params.deps+" quan la propietat "+a.params.property+" és present";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='ha de passar la validació de la clau "'+a.keyword+'"'}break;case"enum":n="ha de ser igual a un dels valors predefinits";break;case"false schema":n="l’esquema és fals";break;case"format":n='ha de coincidir amb el format "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ha de ser "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ha de ser "+r;break;case"if":n='ha de correspondre’s amb l’esquema "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ha de ser "+r;break;case"maxItems":n="";var i=a.params.limit;n+="no ha de tenir més de "+i+" ítem",i!=1&&(n+="s");break;case"maxLength":n="";var i=a.params.limit;n+="no pot contenir més de "+i+" caràcter",i!=1&&(n+="s");break;case"maxProperties":n="";var i=a.params.limit;n+="no pot contenir més de "+i+" propietat",i!=1&&(n+="s");break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ha de ser "+r;break;case"minItems":n="";var i=a.params.limit;n+="no ha de tenir menys de "+i+" ítem",i!=1&&(n+="s");break;case"minLength":n="";var i=a.params.limit;n+="no pot contenir menys de "+i+" caràcter",i!=1&&(n+="s");break;case"minProperties":n="";var i=a.params.limit;n+="no pot contenir menys de "+i+" propietat",i!=1&&(n+="s");break;case"multipleOf":n="ha de ser múltiple de "+a.params.multipleOf;break;case"not":n='no ha de ser vàlid d’acord amb l’esquema definit a "not"';break;case"oneOf":n='ha de coincidir només amb un esquema definit a "oneOf"';break;case"pattern":n='ha de coincidir amb el patró "'+a.params.pattern+'"';break;case"patternRequired":n='la propietat ha de coincidir amb el patró "'+a.params.missingPattern+'"';break;case"propertyNames":n="la propietat no és vàlida";break;case"required":n="ha de tenir la propietat requerida "+a.params.missingProperty;break;case"type":n="ha de ser del tipus "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="no ha de tenir ítems duplicats (els ítems ## "+a.params.j+" i "+a.params.i+" són idèntics)";break;default:n='ha de passar la validació de la clau "'+a.keyword+'"'}a.message=n}}),od}var sd,Vk;function jq(){return Vk||(Vk=1,sd=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="nemůže mít víc, než "+i+" prv",i>=2&&i<=4?n+="ky":i!=1?n+="ek":n+="ků";break;case"additionalProperties":n="nemůže mít další položky";break;case"anyOf":n='musí vyhovět alespoň jednomu schématu v "anyOf"';break;case"const":n="musí být roven konstantě";break;case"contains":n="musí obsahovat prvek odpovídající schématu";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="musí mít polož",i>=2&&i<=4?n+="ky":i!=1?n+="ek":n+="ka",n+=": "+a.params.deps+", pokud obsahuje "+a.params.property;break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='musí vyhovět "'+a.keyword+'" validaci'}break;case"enum":n="musí být rovno jedné hodnotě z výčtu";break;case"false schema":n="schéma je false";break;case"format":n='musí být ve formátu "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí být "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí být "+r;break;case"if":n='musí vyhovět "'+a.params.failingKeyword+'" schématu';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí být "+r;break;case"maxItems":n="";var i=a.params.limit;n+="nesmí obsahovat víc než "+i+" prv",i>=2&&i<=4?n+="ky":i!=1?n+="ek":n+="ků";break;case"maxLength":n="";var i=a.params.limit;n+="nesmí být delší než "+i+" zna",i>=2&&i<=4?n+="ky":i!=1?n+="k":n+="ků";break;case"maxProperties":n="";var i=a.params.limit;n+="nesmí mít víc než "+i+" polož",i>=2&&i<=4?n+="ky":i!=1?n+="ek":n+="ka";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí být "+r;break;case"minItems":n="";var i=a.params.limit;n+="nesmí obsahovat méně než "+i+" prv",i>=2&&i<=4?n+="ky":i!=1?n+="ek":n+="ků";break;case"minLength":n="";var i=a.params.limit;n+="nesmí být kratší než "+i+" zna",i>=2&&i<=4?n+="ky":i!=1?n+="k":n+="ků";break;case"minProperties":n="";var i=a.params.limit;n+="nesmí mít méně než "+i+" polož",i>=2&&i<=4?n+="ky":i!=1?n+="ek":n+="ka";break;case"multipleOf":n="musí být násobkem "+a.params.multipleOf;break;case"not":n='nesmí vyhovět schématu v "not"';break;case"oneOf":n='musí vyhovět právě jednomu schématu v "oneOf"';break;case"pattern":n='musí vyhovět regulárnímu výrazu "'+a.params.pattern+'"';break;case"patternRequired":n='musí obsahovat položku vyhovující regulárnímu výrazu "'+a.params.missingPattern+'"';break;case"propertyNames":n="název položky není platný";break;case"required":n="musí obsahovat požadovanou položku "+a.params.missingProperty;break;case"type":n="musí být "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nesmí obsahovat duplicitní prvky (prvky ## "+a.params.j+" a "+a.params.i+" jsou identické)";break;default:n='musí vyhovět "'+a.keyword+'" validaci'}a.message=n}}),sd}var ld,Hk;function Lq(){return Hk||(Hk=1,ld=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="darf nicht mehr als "+i+" Element",i!=1&&(n+="e"),n+=" enthalten";break;case"additionalProperties":n="darf keine zusätzlichen Attribute haben";break;case"anyOf":n='muss einem der Schemata in "anyOf" entsprechen';break;case"const":n="muss gleich der Konstanten sein";break;case"contains":n="muss ein valides Element enthalten";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="muss Attribut",i!=1&&(n+="e"),n+=" "+a.params.deps+" aufweisen, wenn Attribut "+a.params.property+" gesetzt ist";break;case"discriminator":switch(a.params.error){case"tag":n='der Tag "'+a.params.tag+'" muss eine Zeichenkette sein';break;case"mapping":n='der Wert vom Tag "'+a.params.tag+'" muss im oneOf enthalten sein';break;default:n='muss die Validierung "'+a.keyword+'" bestehen'}break;case"enum":n="muss einem der vorgegebenen Werte entsprechen";break;case"false schema":n="boolesches Schema ist falsch";break;case"format":n='muss diesem Format entsprechen: "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="muss "+r+" sein";break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="muss "+r+" sein";break;case"if":n='muss dem Schema "'+a.params.failingKeyword+'" entsprechen';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="muss "+r+" sein";break;case"maxItems":n="";var i=a.params.limit;n+="darf nicht mehr als "+i+" Element",i!=1&&(n+="e"),n+=" haben";break;case"maxLength":n="";var i=a.params.limit;n+="darf nicht länger als "+i+" Zeichen sein";break;case"maxProperties":n="";var i=a.params.limit;n+="darf nicht mehr als "+i+" Attribut",i!=1&&(n+="e"),n+=" haben";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="muss "+r+" sein";break;case"minItems":n="";var i=a.params.limit;n+="darf nicht weniger als "+i+" Element",i!=1&&(n+="e"),n+=" haben";break;case"minLength":n="";var i=a.params.limit;n+="darf nicht kürzer als "+i+" Zeichen sein";break;case"minProperties":n="";var i=a.params.limit;n+="darf nicht weniger als "+i+" Attribut",i!=1&&(n+="e"),n+=" haben";break;case"multipleOf":n="muss ein Vielfaches von "+a.params.multipleOf+" sein";break;case"not":n='muss dem in "not" angegebenen Schema widersprechen';break;case"oneOf":n='muss genau einem der Schemata in "oneOf" entsprechen';break;case"pattern":n='muss diesem Muster entsprechen: "'+a.params.pattern+'"';break;case"patternRequired":n='muss ein Attribut nach folgendem Muster haben "'+a.params.missingPattern+'"';break;case"propertyNames":n="Attributname ist ungültig";break;case"required":n="muss das erforderliche Attribut "+a.params.missingProperty+" enthalten";break;case"type":n="muss sein: "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="darf nicht mehr als "+i+" Element",i!=1&&(n+="e"),n+=" haben";break;case"unevaluatedProperties":n="darf keine unausgewerteten Attribute haben";break;case"uniqueItems":n="darf keine Duplikate enthalten (Elemente #"+a.params.j+" und #"+a.params.i+" sind gleich)";break;default:n='muss die Validierung "'+a.keyword+'" bestehen'}a.message=n}}),ld}var ud,Kk;function qq(){return Kk||(Kk=1,ud=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="no debe tener más de "+i+" elemento",i!=1&&(n+="s");break;case"additionalProperties":n="no debe tener propiedades adicionales";break;case"anyOf":n='debe coincidir con algún esquema en "anyOf"';break;case"const":n="debe ser igual a la constante";break;case"contains":n="debe contener un elemento válido";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="debe contener la",i!=1&&(n+="s"),n+=" propiedad",i!=1&&(n+="es"),n+=" "+a.params.deps+" cuando la propiedad "+a.params.property+" se encuentra presente";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='debe pasar la validación de palabra clave "'+a.keyword+'"'}break;case"enum":n="deber ser igual a uno de los valores predefinidos";break;case"false schema":n="el esquema és falso";break;case"format":n='debe coincidir con el formato "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="debe ser "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="debe ser "+r;break;case"if":n='debe corresponderse con el esquema "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="debe ser "+r;break;case"maxItems":n="";var i=a.params.limit;n+="no debe contener más de "+i+" elemento",i!=1&&(n+="s");break;case"maxLength":n="";var i=a.params.limit;n+="no debe contener más de "+i+" caracter",i!=1&&(n+="es");break;case"maxProperties":n="";var i=a.params.limit;n+="no debe contener más de "+i+" propiedad",i!=1&&(n+="es");break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="debe ser "+r;break;case"minItems":n="";var i=a.params.limit;n+="no debe contener menos de "+i+" elemento",i!=1&&(n+="s");break;case"minLength":n="";var i=a.params.limit;n+="no debe contener menos de "+i+" caracter",i!=1&&(n+="es");break;case"minProperties":n="";var i=a.params.limit;n+="no debe contener menos de "+i+" propiedad",i!=1&&(n+="es");break;case"multipleOf":n="debe ser múltiplo de "+a.params.multipleOf;break;case"not":n='no debe ser válido según el esquema en "not"';break;case"oneOf":n='debe coincidir con un solo esquema en "oneOf"';break;case"pattern":n='debe coincidir con el patron "'+a.params.pattern+'"';break;case"patternRequired":n='la propiedad debe coincidir con el patrón "'+a.params.missingPattern+'"';break;case"propertyNames":n="la propiedad no és válida";break;case"required":n="debe tener la propiedad requerida "+a.params.missingProperty;break;case"type":n="debe ser "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="no debe contener elementos duplicados, (los elementos ## "+a.params.j+" y "+a.params.i+" son idénticos)";break;default:n='debe pasar la validación de palabra clave "'+a.keyword+'"'}a.message=n}}),ud}var cd,Wk;function Rq(){return Wk||(Wk=1,cd=function(t){if(t&&t.length)for(const n of t){let o;switch(n.keyword){case"additionalItems":case"items":o="";var a=n.params.limit;o+="saa sisältää enintään "+a,a==1?o+=":n elementin":o+=" elementtiä";break;case"additionalProperties":o="ei saa sisältää ylimääräisiä ominaisuuksia";break;case"anyOf":o='täytyy vastata "anyOf" skeemaa';break;case"const":o="täytyy olla yhtä kuin vakio";break;case"contains":o="täytyy sisältää kelvollinen elementti";break;case"dependencies":case"dependentRequired":o="";var a=n.params.depsCount;o+="täytyy sisältää "+n.params.deps+" ominaisuu",a==1?o+="s":o+="det",o+=" kun "+n.params.property+"-ominaisuus on läsnä";break;case"discriminator":switch(n.params.error){case"tag":o='tunniste "'+n.params.tag+'" täytyy olla merkkijono';break;case"mapping":o='tunnisteen "'+n.params.tag+'" arvon muoto pitää olla oneOf';break;default:o='täytyy läpäistä "'+n.keyword+'" avainsanatarkistus'}break;case"enum":o="täytyy olla yhtä kuin jokin sallituista arvoista";break;case"false schema":o="boolean skeema on väärä";break;case"format":o='täytyy vastata muotoa "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="täytyy olla "+r;break;case"formatMinimum":case"formatExclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="täytyy olla "+r;break;case"if":o='täytyy vastata "'+n.params.failingKeyword+'" skeemaa';break;case"maximum":case"exclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="täytyy olla "+r;break;case"maxItems":o="";var a=n.params.limit;o+="tulee sisältää enintään "+a+" ",a==1?o+="elementti":o+="elementtiä";break;case"maxLength":o="";var a=n.params.limit;o+="ei saa olla pidempi kuin "+a+" merkki",a!=1&&(o+="ä");break;case"maxProperties":o="";var a=n.params.limit;o+="tulee sisältää enintään "+a+" ",a==1?o+="ominaisuus":o+="ominaisuutta";break;case"minimum":case"exclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="täytyy olla "+r;break;case"minItems":o="";var a=n.params.limit;o+="tulee sisältää vähintään "+a+" ",a==1?o+="elementti":o+="elementtiä";break;case"minLength":o="";var a=n.params.limit;o+="ei saa olla lyhyempi kuin "+a+" merkki",a!=1&&(o+="ä");break;case"minProperties":o="";var a=n.params.limit;o+="tulee sisältää vähintään "+a+" ",a==1?o+="ominaisuus":o+="ominaisuutta";break;case"multipleOf":o="täytyy olla moninkertainen: "+n.params.multipleOf;break;case"not":o='ei saa olla hyväksytty skeeman "not" mukaan';break;case"oneOf":o='täytyy vastata täsmälleen yhtä "oneOf" -kohdassa määriteltyä skeemaa';break;case"pattern":o='täytyy vastata muotoa "'+n.params.pattern+'"';break;case"patternRequired":o='täytyy sisältää ominaisuus joka vastaa kaavaa "'+n.params.missingPattern+'"';break;case"propertyNames":o="ominaisuuden nimi on virheellinen";break;case"required":o="täytyy sisältää vaadittu ominaisuus "+n.params.missingProperty;break;case"type":o="";var i=n.params.type;o+="täytyy olla ",i=="number"?o+="numero":i=="integer"?o+="kokonaisluku":i=="string"?o+="merkkijono":i=="boolean"?o+="boolean":o+=i;break;case"unevaluatedItems":o="";var a=n.params.len;o+="ei saa olla enemmän kuin "+a+" elementti",a!=1&&(o+="ä");break;case"unevaluatedProperties":o="ei saa sisältää arvioimattomia ominaisuuksia";break;case"uniqueItems":o="ei saa sisältää duplikaatteja (elementit ## "+n.params.j+" ja "+n.params.i+" ovat identtiset)";break;default:o='täytyy läpäistä "'+n.keyword+'" avainsanatarkistus'}n.message=o}}),cd}var fd,Gk;function zq(){return Gk||(Gk=1,fd=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="ne doit pas contenir plus de "+i+" élémént",i!=1&&(n+="s");break;case"additionalProperties":n="ne doit pas contenir de propriétés additionnelles";break;case"anyOf":n='doit correspondre à un schéma de "anyOf"';break;case"const":n="doit être égal à la constante";break;case"contains":n="doit contenir un élément valide";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="doit avoir la propriété "+a.params.deps+" quand la propriété "+a.params.property+" est présente";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='doit être valide selon le critère "'+a.keyword+'"'}break;case"enum":n="doit être égal à une des valeurs prédéfinies";break;case"false schema":n='le schema est "false"';break;case"format":n='doit correspondre au format "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="doit être "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="doit être "+r;break;case"if":n='doit correspondre au schéma "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="doit être "+r;break;case"maxItems":n="";var i=a.params.limit;n+="ne doit pas contenir plus de "+i+" élément",i!=1&&(n+="s");break;case"maxLength":n="";var i=a.params.limit;n+="ne doit pas dépasser "+i+" caractère",i!=1&&(n+="s");break;case"maxProperties":n="";var i=a.params.limit;n+="ne doit pas contenir plus de "+i+" propriété",i!=1&&(n+="s");break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="doit être "+r;break;case"minItems":n="";var i=a.params.limit;n+="ne doit pas contenir moins de "+i+" élément",i!=1&&(n+="s");break;case"minLength":n="";var i=a.params.limit;n+="ne doit pas faire moins de "+i+" caractère",i!=1&&(n+="s");break;case"minProperties":n="";var i=a.params.limit;n+="ne doit pas contenir moins de "+i+" propriété",i!=1&&(n+="s");break;case"multipleOf":n="doit être un multiple de "+a.params.multipleOf;break;case"not":n='est invalide selon le schéma "not"';break;case"oneOf":n='doit correspondre à exactement un schéma de "oneOf"';break;case"pattern":n='doit correspondre au format "'+a.params.pattern+'"';break;case"patternRequired":n='la propriété doit correspondre au format "'+a.params.missingPattern+'"';break;case"propertyNames":n="le nom de propriété est invalide";break;case"required":n="requiert la propriété "+a.params.missingProperty;break;case"type":n="doit être de type "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="ne doit pas contenir de doublons (les éléments ## "+a.params.j+" et "+a.params.i+" sont identiques)";break;default:n='doit être valide selon le critère "'+a.keyword+'"'}a.message=n}}),fd}var dd,Jk;function $q(){return Jk||(Jk=1,dd=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="nem lehet több, mint "+i+" eleme";break;case"additionalProperties":n="nem lehetnek további elemei";break;case"anyOf":n='meg kell feleljen legalább egy "anyOf" alaknak';break;case"const":n="must be equal to constant";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="-nak kell legyen",i>1&&(n+="ek"),n+=" a következő tulajdonsága",i!=1&&(n+="i"),n+=": "+a.params.deps+", ha van "+a.params.property+" tulajdonsága";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='must pass "'+a.keyword+'" keyword validation'}break;case"enum":n="egyenlő kell legyen valamely előre meghatározott értékkel";break;case"false schema":n="boolean schema is false";break;case"format":n='meg kell feleljen a következő formátumnak: "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"if":n='must match "'+a.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="kell legyen "+r;break;case"maxItems":n="";var i=a.params.limit;n+="nem lehet több, mint "+i+" eleme";break;case"maxLength":n="";var i=a.params.limit;n+="nem lehet hosszabb, mint "+i+" szimbólum";break;case"maxProperties":n="";var i=a.params.limit;n+="nem lehet több, mint "+i+" tulajdonsága";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="kell legyen "+r;break;case"minItems":n="";var i=a.params.limit;n+="nem lehet kevesebb, mint "+i+" eleme";break;case"minLength":n="";var i=a.params.limit;n+="nem lehet rövidebb, mint "+i+" szimbólum";break;case"minProperties":n="";var i=a.params.limit;n+="nem lehet kevesebb, mint "+i+" tulajdonsága";break;case"multipleOf":n="a többszöröse kell legyen a következő számnak: "+a.params.multipleOf;break;case"not":n='nem lehet érvényes a "not" alaknak megfelelően';break;case"oneOf":n='meg kell feleljen pontosan egy "oneOf" alaknak';break;case"pattern":n='meg kell feleljen a következő mintának: "'+a.params.pattern+'"';break;case"patternRequired":n='must have property matching pattern "'+a.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="kell legyen "+a.params.missingProperty+" tulajdonsága";break;case"type":n=""+a.params.type+" kell legyen";break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nem lehetnek azonos elemei ("+a.params.j+" és "+a.params.i+" elemek azonosak)";break;default:n='must pass "'+a.keyword+'" keyword validation'}a.message=n}}),dd}var md,Yk;function Uq(){return Yk||(Yk=1,md=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+=" tidak boleh memiliki lebih dari "+i+" item";break;case"additionalProperties":n="tidak boleh memiliki properti tambahan";break;case"anyOf":n='harus cocok dengan beberapa skema pada "anyOf"';break;case"const":n="harus sama dengan konstan";break;case"contains":n="harus berisi item yang valid";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+=" harus memiliki properti "+a.params.deps+" ketika properti "+a.params.property+" hadir";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='harus lulus validasi kata kunci "'+a.keyword+'"'}break;case"enum":n="harus sama dengan salah satu dari nilai yang telah ditentukan";break;case"false schema":n="skema boolean salah";break;case"format":n='harus cocok dengan format "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="harus "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="harus "+r;break;case"if":n='harus cocok dengan skema "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="harus "+r;break;case"maxItems":n="";var i=a.params.limit;n+=" tidak boleh memiliki lebih dari "+i+" item";break;case"maxLength":n="";var i=a.params.limit;n+=" tidak boleh lebih dari "+i+" karakter";break;case"maxProperties":n="";var i=a.params.limit;n+=" tidak boleh memiliki lebih dari "+i+" properti";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="harus "+r;break;case"minItems":n="";var i=a.params.limit;n+=" tidak boleh kurang dari "+i+" item";break;case"minLength":n="";var i=a.params.limit;n+=" tidak boleh lebih pendek dari "+i+" karakter";break;case"minProperties":n="";var i=a.params.limit;n+=" tidak boleh kurang dari "+i+" properti";break;case"multipleOf":n="harus merupakan kelipatan dari "+a.params.multipleOf;break;case"not":n='tidak boleh valid sesuai dengan skema pada "not"';break;case"oneOf":n='harus sama persis dengan satu skema pada "oneOf"';break;case"pattern":n='harus cocok dengan pola "'+a.params.pattern+'"';break;case"patternRequired":n='harus memiliki pola pencocokan properti "'+a.params.missingPattern+'"';break;case"propertyNames":n="nama properti tidak valid";break;case"required":n="harus memiliki properti "+a.params.missingProperty;break;case"type":n="harus berupa "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="tidak boleh memiliki item duplikat (item ## "+a.params.j+" dan "+a.params.i+" identik)";break;default:n='harus lulus validasi kata kunci "'+a.keyword+'"'}a.message=n}}),md}var pd,Xk;function Bq(){return Xk||(Xk=1,pd=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="non dovrebbe avere più di "+i+" element",i==1?n+="o":n+="i";break;case"additionalProperties":n="non deve avere attributi aggiuntivi";break;case"anyOf":n='deve corrispondere ad uno degli schema in "anyOf"';break;case"const":n="deve essere uguale alla costante";break;case"contains":n="deve contentere un elemento valido";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="dovrebbe avere ",i==1?n+="l'":n+="gli ",n+="attribut",i==1?n+="o":n+="i",n+=" "+a.params.deps+" quando l'attributo "+a.params.property+" è presente";break;case"discriminator":switch(a.params.error){case"tag":n='il tag "'+a.params.tag+'" deve essere di tipo stringa';break;case"mapping":n='il valore del tag "'+a.params.tag+'" deve essere nei oneOf';break;default:n='deve essere valido secondo il criterio "'+a.keyword+'"'}break;case"enum":n="deve essere uguale ad uno dei valori consentiti";break;case"false schema":n="lo schema booleano è falso";break;case"format":n='deve corrispondere al formato "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="deve essere "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="deve essere "+r;break;case"if":n='deve corrispondere allo schema "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="deve essere "+r;break;case"maxItems":n="";var i=a.params.limit;n+="non deve avere più di "+i+" element",i==1?n+="o":n+="i";break;case"maxLength":n="";var i=a.params.limit;n+="non deve essere più lungo di "+i+" caratter",i==1?n+="e":n+="i";break;case"maxProperties":n="";var i=a.params.limit;n+="non deve avere più di "+i+" attribut",i==1?n+="o":n+="i";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="deve essere "+r;break;case"minItems":n="";var i=a.params.limit;n+="non deve avere meno di "+i+" element",i==1?n+="o":n+="i";break;case"minLength":n="";var i=a.params.limit;n+="non deve essere meno lungo di "+i+" caratter",i==1?n+="e":n+="i";break;case"minProperties":n="";var i=a.params.limit;n+="non deve avere meno di "+i+" attribut",i==1?n+="o":n+="i";break;case"multipleOf":n="deve essere un multiplo di "+a.params.multipleOf;break;case"not":n='non deve essere valido in base allo schema di "non"';break;case"oneOf":n='deve corrispondere esattamente ad uno degli schema in "oneOf"';break;case"pattern":n='deve corrispondere al formato "'+a.params.pattern+'"';break;case"patternRequired":n='deve avere un attributo che corrisponda al formato "'+a.params.missingPattern+'"';break;case"propertyNames":n="il nome dell'attritbuto non è valido";break;case"required":n="deve avere l'attributo obbligatorio "+a.params.missingProperty;break;case"type":n="deve essere di tipo "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="non deve avere più di "+i+" elementi",i==1?n+="o":n+="i";break;case"unevaluatedProperties":n="non deve avere attributi non valutati";break;case"uniqueItems":n="non deve avere duplicati (gli elementi ## "+a.params.j+" e "+a.params.i+" sono uguali)";break;default:n='deve essere valido secondo il criterio "'+a.keyword+'"'}a.message=n}}),pd}var hd,Zk;function Vq(){return Zk||(Zk=1,hd=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="は"+i+"以上あってはいけない";break;case"additionalProperties":n="追加してはいけない";break;case"anyOf":n='"anyOf"のスキーマとマッチしなくてはいけない';break;case"const":n="must be equal to constant";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n=""+a.params.property+"がある場合、";var i=a.params.depsCount;n+="は"+a.params.deps+"をつけなければいけない";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='must pass "'+a.keyword+'" keyword validation'}break;case"enum":n="事前に定義された値のいずれかに等しくなければいけない";break;case"false schema":n="boolean schema is false";break;case"format":n='"'+a.params.format+'"形式に揃えなければいけない';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"if":n='must match "'+a.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+=r+"でなければいけない";break;case"maxItems":n="";var i=a.params.limit;n+="は"+i+"個以上であってはいけない";break;case"maxLength":n="";var i=a.params.limit;n+="は"+i+"文字以上であってはいけない";break;case"maxProperties":n="";var i=a.params.limit;n+="は"+i+"個以上のプロパティを有してはいけない";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+=r+"でなければいけない";break;case"minItems":n="";var i=a.params.limit;n+="は"+i+"個以下であってはいけない";break;case"minLength":n="";var i=a.params.limit;n+="は"+i+"文字以下であってはいけない";break;case"minProperties":n="";var i=a.params.limit;n+="は"+i+"個以下のプロパティを有してはいけない";break;case"multipleOf":n=""+a.params.multipleOf+"の倍数でなければいけない";break;case"not":n='"not"のスキーマに従って有効としてはいけない';break;case"oneOf":n='"oneOf"のスキーマと完全に一致しなくてはいけない';break;case"pattern":n='"'+a.params.pattern+'"のパターンと一致しなければいけない';break;case"patternRequired":n='must have property matching pattern "'+a.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="必要なプロパティ"+a.params.missingProperty+"がなければいけない";break;case"type":n=""+a.params.type+"でなければいけない";break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="重複するアイテムがあってはいけない("+a.params.j+"と"+a.params.i+"は同じである)";break;default:n='must pass "'+a.keyword+'" keyword validation'}a.message=n}}),hd}var gd,Qk;function Hq(){return Qk||(Qk=1,gd=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+=" 항목은 아이템을 "+i+"개 이상 가질 수 없습니다";break;case"additionalProperties":n="추가적인 속성은 허용되지 않습니다";break;case"anyOf":n='"anyOf"의 스키마와 일치해야 합니다';break;case"const":n="상수와 같아야합니다";break;case"contains":n="올바른 아이템을 포함해야 합니다";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+=a.params.property+"속성이 있는 경우, "+a.params.deps+" 속성이 있어야합니다";break;case"discriminator":switch(a.params.error){case"tag":n='"'+a.params.tag+'"태그는 반드시 문자열이여야 합니다';break;case"mapping":n='"'+a.params.tag+'"태그의 값은 반드시 oneOf에 있어야 합니다';break;default:n='"'+a.keyword+'"키워드 검사를 통과해야 합니다'}break;case"enum":n="미리 정의된 값중 하나여야 합니다";break;case"false schema":n="boolean 스키마는 올바르지 않습니다";break;case"format":n='"'+a.params.format+'" 포맷과 일치해야 합니다';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" "+r+" 이여야 합니다";break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" "+r+" 이여야 합니다";break;case"if":n='"'+a.params.failingKeyword+'" 스키마와 일치해야 합니다';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" "+r+" 이여야 합니다";break;case"maxItems":n="";var i=a.params.limit;n+="아이템이 최대 "+i+"개이여야 합니다";break;case"maxLength":n="";var i=a.params.limit;n+="최대 "+i+"글자여야 합니다";break;case"maxProperties":n="";var i=a.params.limit;n+="속성은 최대 "+i+"개 이내여야 합니다";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" "+r+" 이여야 합니다";break;case"minItems":n="";var i=a.params.limit;n+="아이템이 최소 "+i+"개이여야 합니다";break;case"minLength":n="";var i=a.params.limit;n+="최소 "+i+"글자여야 합니다";break;case"minProperties":n="";var i=a.params.limit;n+="속성은 최소 "+i+"개 이상이여야 합니다";break;case"multipleOf":n=""+a.params.multipleOf+"의 배수여야 합니다";break;case"not":n='"not"스키마에 따라 유효하지 않아야 합니다';break;case"oneOf":n='"oneOf" 스키마중 하나와 정확하게 일치해야 합니다';break;case"pattern":n='"'+a.params.pattern+'"패턴과 일치해야 합니다';break;case"patternRequired":n='"'+a.params.missingPattern+'"패턴과 일치하는 속성을 가져야 합니다';break;case"propertyNames":n="속성명이 올바르지 않습니다";break;case"required":n=""+a.params.missingProperty+" 속성은 필수입니다";break;case"type":n=""+a.params.type+"이여야 합니다";break;case"unevaluatedItems":n="";var i=a.params.len;n+="항목이 "+i+"개 아이템을 초과하면 안됩니다";break;case"unevaluatedProperties":n="평가되지 않은 속성이 없어야합니다.";break;case"uniqueItems":n="중복 아이템이 없어야 합니다 (아이템"+a.params.j+"과 아이템"+a.params.i+"가 동일합니다)";break;default:n='"'+a.keyword+'"키워드 검사를 통과해야 합니다'}a.message=n}}),gd}var yd,e1;function Kq(){return e1||(e1=1,yd=function(t){if(t&&t.length)for(const n of t){let o;switch(n.keyword){case"additionalItems":case"items":o="";var a=n.params.limit;o+="kan ikke ha mer enn "+a+" element",a!=1&&(o+="er");break;case"additionalProperties":o="kan ikke ha flere egenskaper";break;case"anyOf":o='må samsvare med et schema i "anyOf"';break;case"const":o="må være lik konstanten";break;case"contains":o="må inneholde et gyldig element";break;case"dependencies":case"dependentRequired":o="";var a=n.params.depsCount;o+="må ha egenskapen",a!=1&&(o+="e"),o+=" "+n.params.deps+" når egenskapen "+n.params.property+" er angitt";break;case"discriminator":switch(n.params.error){case"tag":o='tag "'+n.params.tag+'" must be string';break;case"mapping":o='value of tag "'+n.params.tag+'" must be in oneOf';break;default:o="må samsvare med valideringen for "+n.keyword}break;case"enum":o="må være lik en av de forhåndsdefinerte verdiene";break;case"false schema":o="boolsk schema er usannt";break;case"format":o='må stemme overens med formatet "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="må være "+r;break;case"formatMinimum":case"formatExclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="må være "+r;break;case"if":o='must match "'+n.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="må være "+r;break;case"maxItems":o="";var a=n.params.limit;o+="kan ikke ha fler enn "+a+" element",a!=1&&(o+="er");break;case"maxLength":o="";var a=n.params.limit;o+="kan ikke være lengre enn "+a+" tegn";break;case"maxProperties":o="";var a=n.params.limit;o+="kan ikke ha mer enn "+a+" egenskap",a!=1&&(o+="er");break;case"minimum":case"exclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="må være "+r;break;case"minItems":o="";var a=n.params.limit;o+="kan ikke ha færre enn "+a+" element",a!=1&&(o+="er");break;case"minLength":o="";var a=n.params.limit;o+="kan ikke være kortere enn "+a+" tegn";break;case"minProperties":o="";var a=n.params.limit;o+="kan ikke ha mindre enn "+a+" egenskap",a!=1&&(o+="er");break;case"multipleOf":o="må være et multiplum av "+n.params.multipleOf;break;case"not":o='kan ikke samsvare med schema i "not"';break;case"oneOf":o='må samsvare med nøyaktig ett schema i "oneOf"';break;case"pattern":o='må samsvare med mønsteret "'+n.params.pattern+'"';break;case"patternRequired":o='må ha en egenskap som samsvarer med mønsteret "'+n.params.missingPattern;break;case"propertyNames":o="egenskapen med navnet '",n.params.propertyNameout+="' er ugyldig";break;case"required":o="må ha den påkrevde egenskapen "+n.params.missingProperty;break;case"type":o="";var i=n.params.type;o+="må være ",i=="number"?o+="et tall":i=="integer"?o+="et heltall":i=="string"?o+="en streng":i=="boolean"?o+="ja eller nei":o+=i;break;case"unevaluatedItems":o="";var a=n.params.len;o+="must NOT have more than "+a+" item",a!=1&&(o+="s");break;case"unevaluatedProperties":o="must NOT have unevaluated properties";break;case"uniqueItems":o="kan ikke ha duplikate elemeneter (elementene ## "+n.params.j+" og "+n.params.i+" er identiske)";break;default:o="må samsvare med valideringen for "+n.keyword}n.message=o}}),yd}var vd,t1;function Wq(){return t1||(t1=1,vd=function(t){if(t&&t.length)for(const n of t){let o;switch(n.keyword){case"additionalItems":case"items":o="";var a=n.params.limit;o+="mag niet meer dan "+a+" item",a!=1&&(o+="s"),o+=" bevatten";break;case"additionalProperties":o="mag geen extra eigenschappen bevatten";break;case"anyOf":o='moet overeenkomen met een schema in "anyOf"';break;case"const":o="moet gelijk zijn aan constante";break;case"contains":o="moet een geldig item bevatten";break;case"dependencies":case"dependentRequired":o="";var a=n.params.depsCount;o+="moet de eigenschap",a!=1&&(o+="pen"),o+=" "+n.params.deps+" bevatten als "+n.params.property+" is gedefinieerd";break;case"discriminator":switch(n.params.error){case"tag":o='tag "'+n.params.tag+'" moet een tekenreeks zijn';break;case"mapping":o='de waarde van het veld "'+n.params.tag+'" moet voorkomen in de oneOf';break;default:o='moet sleutelwoord validatie "'+n.keyword+'" doorstaan'}break;case"enum":o="moet overeenkomen met één van de voorgedefinieerde waarden";break;case"false schema":o="boolean schema is fout";break;case"format":o='moet overeenkomen met het volgende formaat: "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="moet "+r+" zijn";break;case"formatMinimum":case"formatExclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="moet "+r+" zijn";break;case"if":o='moet overeenkomen met "'+n.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="moet "+r+" zijn";break;case"maxItems":o="";var a=n.params.limit;o+="mag niet meer dan "+a+" item",a!=1&&(o+="s"),o+=" bevatten";break;case"maxLength":o="";var a=n.params.limit;o+="mag niet langer dan "+a+" karakter",a!=1&&(o+="s"),o+=" zijn";break;case"maxProperties":o="";var a=n.params.limit;o+="mag niet meer dan "+a+" eigenschap",a!=1&&(o+="pen"),o+=" bevatten";break;case"minimum":case"exclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="moet "+r+" zijn";break;case"minItems":o="";var a=n.params.limit;o+="mag niet minder dan "+a+" item",a!=1&&(o+="s"),o+=" bevatten";break;case"minLength":o="";var a=n.params.limit;o+="mag niet korter dan "+a+" karakter",a!=1&&(o+="s"),o+=" zijn";break;case"minProperties":o="";var a=n.params.limit;o+="mag niet minder dan "+a+" eigenschap",a!=1&&(o+="pen"),o+=" bevatten";break;case"multipleOf":o="moet een veelvoud van "+n.params.multipleOf+" zijn";break;case"not":o='mag niet overeenkomen met een schema in "not"';break;case"oneOf":o='moet overeenkomen met één schema in "oneOf"';break;case"pattern":o='moet overeenkomen met het volgende patroon: "'+n.params.pattern+'"';break;case"patternRequired":o='moet een eigenschap bevatten die overeenkomt met het pattroon: "'+n.params.missingPattern+'"';break;case"propertyNames":o="eigenschapnaam is ongeldig";break;case"required":o="moet de eigenschap "+n.params.missingProperty+" bevatten";break;case"type":o="";var i=n.params.type;o+="moet een ",i=="number"?o+="nummer":i=="integer"?o+="geheel getal":i=="string"?o+="tekenreeks":i=="boolean"&&(o+="ja of nee waarde"),o+=" ("+i+") bevatten";break;case"unevaluatedItems":o="";var a=n.params.len;o+="mag niet meer dan "+a+" item",a!=1&&(o+="s"),o+=" bevatten";break;case"unevaluatedProperties":o="mag geen ongecontroleerde eigenschappen bevatten";break;case"uniqueItems":o="mag geen gedupliceerde items bevatten (items ## "+n.params.j+" en "+n.params.i+" zijn identiek)";break;default:o='moet sleutelwoord validatie "'+n.keyword+'" doorstaan'}n.message=o}}),vd}var bd,r1;function Gq(){return r1||(r1=1,bd=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="nie powinien mieć więcej niż "+i+" element",i==1?n+="u":n+="ów";break;case"additionalProperties":n="nie powinien zawierać dodatkowych pól";break;case"anyOf":n='powinien pasować do wzoru z sekcji "anyOf"';break;case"const":n="powinien być równy stałej";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="powinien zawierać pol",i==1?n+="e":n+="a",n+=" "+a.params.deps+" kiedy pole "+a.params.property+" jest obecne";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='powinien przejść walidację "'+a.keyword+'"'}break;case"enum":n="powinien być równy jednej z predefiniowanych wartości";break;case"false schema":n="boolean schema is false";break;case"format":n='powinien zgadzać się z formatem "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="powinien być "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="powinien być "+r;break;case"if":n='must match "'+a.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="powinien być "+r;break;case"maxItems":n="";var i=a.params.limit;n+="nie powinien mieć więcej niż "+i+" element",i==1?n+="u":n+="ów";break;case"maxLength":n="";var i=a.params.limit;n+="nie powinien być dłuższy niż "+i+" znak",i!=1&&(n+="ów");break;case"maxProperties":n="";var i=a.params.limit;n+="nie powinien zawierać więcej niż "+i+" ",i==1?n+="pole":n+="pól";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="powinien być "+r;break;case"minItems":n="";var i=a.params.limit;n+="nie powinien mieć mniej niż "+i+" element",i==1?n+="u":n+="ów";break;case"minLength":n="";var i=a.params.limit;n+="nie powinien być krótszy niż "+i+" znak",i!=1&&(n+="ów");break;case"minProperties":n="";var i=a.params.limit;n+="nie powinien zawierać mniej niż "+i+" ",i==1?n+="pole":n+="pól";break;case"multipleOf":n="powinien być wielokrotnością "+a.params.multipleOf;break;case"not":n='nie powinien pasować do wzoru z sekcji "not"';break;case"oneOf":n='powinien pasować do jednego wzoru z sekcji "oneOf"';break;case"pattern":n='powinien zgadzać się ze wzorem "'+a.params.pattern+'"';break;case"patternRequired":n='powinien mieć pole pasujące do wzorca "'+a.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="powinien zawierać wymagane pole "+a.params.missingProperty;break;case"type":n="powinien być "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nie powinien zawierać elementów które się powtarzają (elementy "+a.params.j+" i "+a.params.i+" są identyczne)";break;default:n='powinien przejść walidację "'+a.keyword+'"'}a.message=n}}),bd}var kd,n1;function Jq(){return n1||(n1=1,kd=function(t){if(t&&t.length)for(const n of t){let o;switch(n.keyword){case"additionalItems":case"items":o="não são permitidos itens adicionais (mais do que "+a+")";break;case"additionalProperties":o="não são permitidas propriedades adicionais";break;case"anyOf":o='os dados não correspondem a nenhum schema de "anyOf"';break;case"const":o="deve ser igual à constante";break;case"contains":o="deve conter um item válido";break;case"dependencies":case"dependentRequired":o="";var a=n.params.depsCount;o+=" deve ter propriedade",a!=1&&(o+="s"),o+=" "+n.params.deps+" quando a propriedade "+n.params.property+" estiver presente";break;case"discriminator":switch(n.params.error){case"tag":o='a tag "'+n.params.tag+'" deve ser uma string';break;case"mapping":o='o valor da tag "'+n.params.tag+'" deve estar no oneOf';break;default:o='deve passar a validação da keyword "'+n.keyword+'"'}break;case"enum":o="deve ser igual a um dos valores permitidos";break;case"false schema":o='o schema booleano é "false"';break;case"format":o='deve corresponder ao formato "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="deve ser "+r;break;case"formatMinimum":case"formatExclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="deve ser "+r;break;case"if":o='deve corresponder ao schema "'+n.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="deve ser "+r;break;case"maxItems":o="";var a=n.params.limit;o+="não deve ter mais que "+a+" elemento",a!=1&&(o+="s");break;case"maxLength":o="";var a=n.params.limit;o+="não deve ser maior que "+a+" caracter",a!=1&&(o+="es");break;case"maxProperties":o="";var a=n.params.limit;o+="não deve ter mais que "+a+" propriedade",a!=1&&(o+="s");break;case"minimum":case"exclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="deve ser "+r;break;case"minItems":o="";var a=n.params.limit;o+="não deve ter menos que "+a+" elemento",a!=1&&(o+="s");break;case"minLength":o="";var a=n.params.limit;o+="não deve ser mais curta que "+a+" caracter",a!=1&&(o+="es");break;case"minProperties":o="";var a=n.params.limit;o+="não deve ter menos que "+a+" propriedade",a!=1&&(o+="s");break;case"multipleOf":o="deve ser múltiplo de "+n.params.multipleOf;break;case"not":o='não deve ser valido segundo o schema em "not"';break;case"oneOf":o='deve corresponder exatamente com um schema em "oneOf"';break;case"pattern":o='deve corresponder ao padrão "'+n.params.pattern+'"';break;case"patternRequired":o='deve ter a propriedade correspondente ao padrão "'+n.params.missingPattern+'"';break;case"propertyNames":o="o nome da propriedade é inválido";break;case"required":o="deve ter a propriedade obrigatória "+n.params.missingProperty;break;case"type":o="";var i=n.params.type;o+="deve ser ",i=="number"?o+="um número":i=="integer"?o+="um número inteiro":i=="string"?o+="um texto":i=="boolean"?o+="um booleano":o+=i;break;case"unevaluatedItems":o="";var a=n.params.len;o+="não pode possuir mais que "+a+" ",a==1?o+="item":o+="itens";break;case"unevaluatedProperties":o="não pode possuir propridades não avaliadas";break;case"uniqueItems":o="não deve ter itens duplicados (os itens ## "+n.params.j+" e "+n.params.i+" são idênticos)";break;default:o='deve passar a validação da keyword "'+n.keyword+'"'}n.message=o}}),kd}var wd,i1;function Yq(){return i1||(i1=1,wd=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="должно иметь не более, чем "+i+" элемент",i>=2&&i<=4?n+="а":i!=1&&(n+="ов");break;case"additionalProperties":n="не должно иметь дополнительных полей";break;case"anyOf":n='должно соответствовать одной их схем в "anyOf"';break;case"const":n="должно быть равно заданному значению";break;case"contains":n="должно содержать значение соответствующее схеме";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="должно иметь пол",i==1?n+="е":n+="я",n+=" "+a.params.deps+", когда присутствует поле "+a.params.property;break;case"discriminator":switch(a.params.error){case"tag":n='поле "'+a.params.tag+'" должно быть строкой';break;case"mapping":n='значение поля "'+a.params.tag+'" должно быть в одной из oneOf схем ';break;default:n='должно соответствовать правилу "'+a.keyword+'"'}break;case"enum":n="должно быть равно одному из разрешенных значений";break;case"false schema":n="схема равна false";break;case"format":n='должно соответствовать формату "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="должно быть "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="должно быть "+r;break;case"if":n='должно соответствовать схемe "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="должно быть "+r;break;case"maxItems":n="";var i=a.params.limit;n+="должно иметь не более, чем "+i+" элемент",i>=2&&i<=4?n+="а":i!=1&&(n+="ов");break;case"maxLength":n="";var i=a.params.limit;n+="должно быть не длиннее, чем "+i+" символ",i>=2&&i<=4?n+="а":i!=1&&(n+="ов");break;case"maxProperties":n="";var i=a.params.limit;n+="должно иметь не более, чем "+i+" пол",i==1?n+="е":i>=2&&i<=4?n+="я":n+="ей";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="должно быть "+r;break;case"minItems":n="";var i=a.params.limit;n+="должно иметь не менее, чем "+i+" элемент",i>=2&&i<=4?n+="а":i!=1&&(n+="ов");break;case"minLength":n="";var i=a.params.limit;n+="должно быть не короче, чем "+i+" символ",i>=2&&i<=4?n+="а":i!=1&&(n+="ов");break;case"minProperties":n="";var i=a.params.limit;n+="должно иметь не менее, чем "+i+" пол",i==1?n+="е":i>=2&&i<=4?n+="я":n+="ей";break;case"multipleOf":n="должно быть кратным "+a.params.multipleOf;break;case"not":n='должно не соответствовать схеме в "not"';break;case"oneOf":n='должно соответствовать в точности одной схемe в "oneOf"';break;case"pattern":n='должно соответствовать образцу "'+a.params.pattern+'"';break;case"patternRequired":n='должно иметь поле, соответствующее образцу "'+a.params.missingPattern+'"';break;case"propertyNames":n="имя поля не соответствует схеме";break;case"required":n="должно иметь обязательное поле "+a.params.missingProperty;break;case"type":n="должно быть "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="должно иметь не более, чем "+i+" элемент",i>=2&&i<=4?n+="а":i!=1&&(n+="ов");break;case"unevaluatedProperties":n="не должно иметь непроверенных полей";break;case"uniqueItems":n="не должно иметь повторяющихся элементов (элементы "+a.params.j+" и "+a.params.i+" идентичны)";break;default:n='должно соответствовать правилу "'+a.keyword+'"'}a.message=n}}),wd}var Sd,a1;function Xq(){return a1||(a1=1,Sd=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="nemôže obsahovať viac, než "+i+" prv",i==1?n+="ok":n+="kov";break;case"additionalProperties":n="nemôže obsahovať ďalšie položky";break;case"anyOf":n='musí splňovať aspoň jednu zo schém v "anyOf"';break;case"const":n="musí byť konštanta";break;case"contains":n="musí obsahovať prvok zodpovedajúci schéme";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+=" musí obsahovať polož",i>=2&&i<=4?n+="ky":i!=1?n+="iek":n+="ka",n+=": "+a.params.deps+", ak obsahuje "+a.params.property;break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='musí splniť "'+a.keyword+'" validáciu'}break;case"enum":n="musí byť jedna z definovaných hodnôt";break;case"false schema":n="schéma je false";break;case"format":n='musí obsahovať formát "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí byť "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí byť "+r;break;case"if":n='must match "'+a.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí byť "+r;break;case"maxItems":n="";var i=a.params.limit;n+="nesmie obsahovať viac než "+i+" prv",i==1?n+="ok":n+="kov";break;case"maxLength":n="";var i=a.params.limit;n+="nesmie byť dlhší než "+i+" znak",i!=1&&(n+="ov");break;case"maxProperties":n="";var i=a.params.limit;n+="nesmie obsahovať viac než "+i+" polož",i>=2&&i<=4?n+="ky":i!=1?n+="iek":n+="ka";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí byť "+r;break;case"minItems":n="";var i=a.params.limit;n+="nesmie obsahovať menej než "+i+" prv",i==1?n+="ok":n+="kov";break;case"minLength":n="";var i=a.params.limit;n+="nesmie byť kratší než "+i+" znak",i!=1&&(n+="ov");break;case"minProperties":n="";var i=a.params.limit;n+="nesmie obsahovať menej než "+i+" polož",i>=2&&i<=4?n+="ky":i!=1?n+="iek":n+="ka";break;case"multipleOf":n="musí byť násobkom "+a.params.multipleOf;break;case"not":n='nesmie splňovať schému v "not"';break;case"oneOf":n='musí splňovať práve jednu schému v "oneOf"';break;case"pattern":n='musí splňovať regulárny výraz "'+a.params.pattern+'"';break;case"patternRequired":n='musí obsahovať položku splňjúcu regulárny výraz "'+a.params.missingPattern+'"';break;case"propertyNames":n="názov položky nezodpovedá schéme";break;case"required":n="musí obsahovať požadovanú položku "+a.params.missingProperty;break;case"type":n="musí byť "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nesmie obsahovať duplicitné prvky (prvky ## "+a.params.j+" a "+a.params.i+" sú rovnaké)";break;default:n='musí splniť "'+a.keyword+'" validáciu'}a.message=n}}),Sd}var Cd,o1;function Zq(){return o1||(o1=1,Cd=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="borde ha fler än "+i+" sak",i!=1&&(n+="er");break;case"additionalProperties":n="borde inte ha fler egenskaper";break;case"anyOf":n='borde matcha något schema i "anyOf"';break;case"const":n="bör vara en konstant";break;case"contains":n="bör innehålla ett giltigt objekt";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="borde ha egenskap",i!=1&&(n+="er"),n+=" "+a.params.deps+" när egenskap "+a.params.property+" finns tillgängligt";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='bör passera "'+a.keyword+'" nyckelord validering'}break;case"enum":n="borde vara ekvivalent med en av dess fördefinierade värden";break;case"false schema":n="boolean schema är falskt";break;case"format":n='borde matcha formatet "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="bör vara "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="bör vara "+r;break;case"if":n='must match "'+a.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="borde vara "+r;break;case"maxItems":n="";var i=a.params.limit;n+="borde inte ha fler än "+i+" sak",i!=1&&(n+="er");break;case"maxLength":n="";var i=a.params.limit;n+="borde inte vara längre än "+i+" tecken";break;case"maxProperties":n="";var i=a.params.limit;n+="borde inte ha fler än "+i+" egenskap",i!=1&&(n+="er");break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="borde vara "+r;break;case"minItems":n="";var i=a.params.limit;n+="borde inte ha färre än "+i+" sak",i!=1&&(n+="er");break;case"minLength":n="";var i=a.params.limit;n+="borde inte vara kortare än "+i+" tecken";break;case"minProperties":n="";var i=a.params.limit;n+="borde inte ha färre än "+i+" egenskap",i!=1&&(n+="er");break;case"multipleOf":n="borde vara en multipel av "+a.params.multipleOf;break;case"not":n='borde inte vara giltigt enligt schema i "not"';break;case"oneOf":n='borde matcha exakt ett schema i "oneOf"';break;case"pattern":n='borde matcha mönstret "'+a.params.pattern+'"';break;case"patternRequired":n='bör ha en egenskap som matchar mönstret "'+a.params.missingPattern+'"';break;case"propertyNames":n="egenskap med namnet är inte giltig";break;case"required":n="borde ha den nödvändiga egenskapen "+a.params.missingProperty;break;case"type":n="borde vara "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="borde inte ha duplicerade saker (sakerna ## "+a.params.j+" och "+a.params.i+" är identiska)";break;default:n='bör passera "'+a.keyword+'" nyckelord validering'}a.message=n}}),Cd}var Ed,s1;function Qq(){return s1||(s1=1,Ed=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="ต้องมีสมาชิกไม่เกิน "+i+" ตัว";break;case"additionalProperties":n="ต้องไม่มี property อื่นๆ นอกเหนีอจากที่กำหนดไว้";break;case"anyOf":n='ต้องตรงกับหนึ่งใน schema ที่กำหนดไว้ใน "anyOf"';break;case"const":n="ต้องเท่ากับค่าคงที่";break;case"contains":n="ต้องมีสมาชิกที่ผ่านเงื่อนไขอยู่";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="เมื่อมี property "+a.params.property+" แล้วจะต้องมี property "+a.params.deps+" ด้วย";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" ต้องเป็น string';break;case"mapping":n='ต้องมีค่าของ tag "'+a.params.tag+'" ใน oneOf';break;default:n='ต้องผ่านคีย์เวิร์ด "'+a.keyword+'"'}break;case"enum":n="ต้องตรงกับหนึ่งในค่าที่กำหนดไว้";break;case"false schema":n="schema เป็น false";break;case"format":n='ต้องเป็นรูปแบบ "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ต้อง "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ต้อง "+r;break;case"if":n='ต้องตรงกับ schema "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ต้อง "+r;break;case"maxItems":n="";var i=a.params.limit;n+="ต้องมีสมาชิกไม่เกิน "+i;break;case"maxLength":n="";var i=a.params.limit;n+="ต้องยาวไม่เกิน "+i+" ตัวอักษร";break;case"maxProperties":n="";var i=a.params.limit;n+="ต้องมี property ไม่เกิน "+i+" ตัว";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ต้อง "+r;break;case"minItems":n="";var i=a.params.limit;n+="ควรมีสมาชิกไม่น้อยกว่า "+i;break;case"minLength":n="";var i=a.params.limit;n+="ต้องมีอย่างน้อย "+i+" ตัวอักษร";break;case"minProperties":n="";var i=a.params.limit;n+="ต้องมี property อย่างน้อย "+i+" ตัว";break;case"multipleOf":n="ต้องเป็นเลขที่หาร "+a.params.multipleOf+" ลงตัว";break;case"not":n='ต้องไม่ผ่าน schema ที่กำหนดไว้ใน "not"';break;case"oneOf":n='ต้องตรงกับ schema ตัวเดียวใน "oneOf" เท่านั้น';break;case"pattern":n='ต้องตรงตาม pattern "'+a.params.pattern+'"';break;case"patternRequired":n='ต้องมี property ที่มีชื่อตรงตาม pattern "'+a.params.missingPattern+'"';break;case"propertyNames":n="ชื่อ property ไม่ถูกต้อง";break;case"required":n="ต้องมี property "+a.params.missingProperty+" ด้วย";break;case"type":n="ต้องเป็น "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="ต้องมีไม่เกิน "+i+" ตัว";break;case"unevaluatedProperties":n="ต้องไม่มี property ที่ยังไม่ได้ผ่านการตรวจสอบเงื่อนไขใดๆ";break;case"uniqueItems":n="ต้องมีสมาชิกไม่ซ้ำักัน (ลำดับที่ "+a.params.j+" กับ "+a.params.i+" ซ้ำกัน)";break;default:n='ต้องผ่านคีย์เวิร์ด "'+a.keyword+'"'}a.message=n}}),Ed}var Ad,l1;function eR(){return l1||(l1=1,Ad=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="不允许超过"+i+"个元素";break;case"additionalProperties":n="不允许有额外的属性";break;case"anyOf":n="数据应为 anyOf 所指定的其中一个";break;case"const":n="应当等于常量";break;case"contains":n="应当包含一个有效项";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="应当拥有属性"+a.params.property+"的依赖属性"+a.params.deps;break;case"discriminator":switch(a.params.error){case"tag":n='标签 "'+a.params.tag+'" 的类型必须为字符串';break;case"mapping":n='标签 "'+a.params.tag+'" 的值必须在 oneOf 之中';break;default:n='应当通过 "'+a.keyword+' 关键词校验"'}break;case"enum":n="应当是预设定的枚举值之一";break;case"false schema":n="布尔模式出错";break;case"format":n='应当匹配格式 "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="应当是 "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="应当是 "+r;break;case"if":n='应当匹配模式 "'+a.params.failingKeyword+'" ';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="应当为 "+r;break;case"maxItems":n="";var i=a.params.limit;n+="不应多于 "+i+" 个项";break;case"maxLength":n="";var i=a.params.limit;n+="不应多于 "+i+" 个字符";break;case"maxProperties":n="";var i=a.params.limit;n+="不应有多于 "+i+" 个属性";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="应当为 "+r;break;case"minItems":n="";var i=a.params.limit;n+="不应少于 "+i+" 个项";break;case"minLength":n="";var i=a.params.limit;n+="不应少于 "+i+" 个字符";break;case"minProperties":n="";var i=a.params.limit;n+="不应有少于 "+i+" 个属性";break;case"multipleOf":n="应当是 "+a.params.multipleOf+" 的整数倍";break;case"not":n='不应当匹配 "not" schema';break;case"oneOf":n='只能匹配一个 "oneOf" 中的 schema';break;case"pattern":n='应当匹配模式 "'+a.params.pattern+'"';break;case"patternRequired":n="应当有属性匹配模式 "+a.params.missingPattern;break;case"propertyNames":n="属性名 无效";break;case"required":n="应当有必需属性 "+a.params.missingProperty;break;case"type":n="应当是 "+a.params.type+" 类型";break;case"unevaluatedItems":n="";var i=a.params.len;n+=" 不允许有超过 "+i+" 个元素";break;case"unevaluatedProperties":n="不允许存在未求值的属性";break;case"uniqueItems":n="不应当含有重复项 (第 "+a.params.j+" 项与第 "+a.params.i+" 项是重复的)";break;default:n='应当通过 "'+a.keyword+' 关键词校验"'}a.message=n}}),Ad}var xd,u1;function tR(){return u1||(u1=1,xd=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="不可以超過"+i+"個元素";break;case"additionalProperties":n="不可以有額外的屬性";break;case"anyOf":n="不符合 anyOf 指定的模式";break;case"const":n="應該等於常數";break;case"contains":n="應該包含一個有效元素";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="應該要有屬性"+a.params.property+"的依賴屬性"+a.params.deps;break;case"discriminator":switch(a.params.error){case"tag":n='標籤 "'+a.params.tag+'" 的類型必須是字串';break;case"mapping":n='標籤 "'+a.params.tag+'" 必須在 oneOf 其中之一';break;default:n='應該通過 "'+a.keyword+' 關鍵詞檢驗"'}break;case"enum":n="應該要在預設的值之中";break;case"false schema":n="布林模式不正確";break;case"format":n="應該要符合"+a.params.format+"格式";break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="應該是 "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="應該是 "+r;break;case"if":n='應該符合 "'+a.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="應該要 "+r;break;case"maxItems":n="";var i=a.params.limit;n+="不應該多於 "+i+" 個";break;case"maxLength":n="";var i=a.params.limit;n+="不應該多於 "+i+" 個字元";break;case"maxProperties":n="";var i=a.params.limit;n+="不應該多於 "+i+" 個屬性";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="應該要 "+r;break;case"minItems":n="";var i=a.params.limit;n+="不應該少於 "+i+" 個";break;case"minLength":n="";var i=a.params.limit;n+="不應該少於 "+i+" 個字元";break;case"minProperties":n="";var i=a.params.limit;n+="不應該少於 "+i+" 個屬性";break;case"multipleOf":n="應該是 "+a.params.multipleOf+" 的整數倍";break;case"not":n='不應該符合 "not" schema';break;case"oneOf":n='只能符合一個 "oneOf" 中的 schema';break;case"pattern":n='應該符合模式 "'+a.params.pattern+'"';break;case"patternRequired":n="應該有屬性對應模式 "+a.params.missingPattern;break;case"propertyNames":n="属性名 無效";break;case"required":n="應該有必須屬性 "+a.params.missingProperty;break;case"type":n="應該是 "+a.params.type+" 類型";break;case"unevaluatedItems":n="";var i=a.params.len;n+=" 的元素不可以超過 "+i+" 個";break;case"unevaluatedProperties":n="不應該有未驗證的屬性";break;case"uniqueItems":n="不應該有重複項目 (第 "+a.params.j+" 項和第 "+a.params.i+" 項是重複的)";break;default:n='應該通過 "'+a.keyword+' 關鍵詞檢驗"'}a.message=n}}),xd}var Od,c1;function rR(){return c1||(c1=1,Od={en:Fq(),ar:Dq(),ca:Mq(),cs:jq(),de:Lq(),es:qq(),fi:Rq(),fr:zq(),hu:$q(),id:Uq(),it:Bq(),ja:Vq(),ko:Hq(),nb:Kq(),nl:Wq(),pl:Gq(),"pt-BR":Jq(),ru:Yq(),sk:Xq(),sv:Zq(),th:Qq(),zh:eR(),"zh-TW":tR()}),Od}var nR=rR();const po=jr(nR),_l={flex:1,paddingLeft:6,paddingRight:6};function iR(e){const{disabled:t,hasCopy:r,hasMoveDown:i,hasMoveUp:a,hasRemove:n,fieldPathId:o,onCopyItem:s,onRemoveItem:l,onMoveDownItem:u,onMoveUpItem:c,readonly:f,registry:m,uiSchema:d}=e,{CopyButton:p,MoveDownButton:k,MoveUpButton:v,RemoveButton:g}=m.templates.ButtonTemplates;return N.jsxs("div",{className:"d-flex flex-row",children:[(a||i)&&N.jsx("div",{className:"m-0 p-0",children:N.jsx(v,{id:rr(o,"moveUp"),className:"rjsf-array-item-move-up",style:_l,disabled:t||f||!a,onClick:c,uiSchema:d,registry:m})}),(a||i)&&N.jsx("div",{className:"m-0 p-0",children:N.jsx(k,{id:rr(o,"moveDown"),className:"rjsf-array-item-move-down",style:_l,disabled:t||f||!i,onClick:u,uiSchema:d,registry:m})}),r&&N.jsx("div",{className:"m-0 p-0",children:N.jsx(p,{id:rr(o,"copy"),className:"rjsf-array-item-copy",style:_l,disabled:t||f,onClick:s,uiSchema:d,registry:m})}),n&&N.jsx("div",{className:"m-0 p-0",children:N.jsx(g,{id:rr(o,"remove"),className:"rjsf-array-item-remove",style:_l,disabled:t||f,onClick:l,uiSchema:d,registry:m})})]})}function aR(e){const{children:t,buttonsProps:r,hasToolbar:i,registry:a,uiSchema:n}=e,o=me(n),s=ge("ArrayFieldItemButtonsTemplate",a,o);return N.jsx("div",{children:N.jsxs("div",{className:"row mb-2 d-flex align-items-center",children:[N.jsx("div",{className:i?"col-9 col-lg-9":"col-12",children:t}),i&&N.jsx("div",{className:"col-3 col-lg-3 py-4",children:N.jsx(s,{...r})})]})})}function oR(e){const{canAdd:t,disabled:r,fieldPathId:i,items:a,optionalDataControl:n,onAddClick:o,readonly:s,registry:l,required:u,schema:c,title:f,uiSchema:m}=e,d=me(m),p=ge("ArrayFieldTitleTemplate",l,d),k=ge("ArrayFieldDescriptionTemplate",l,d),{AddButton:v}=l.templates.ButtonTemplates,g=!s&&!r;return N.jsx("div",{children:N.jsx("div",{className:"row p-0 m-0",children:N.jsxs("div",{className:"col p-0 m-0",children:[N.jsx(p,{fieldPathId:i,title:d.title||f,required:u,schema:c,uiSchema:m,registry:l,optionalDataControl:g?n:void 0}),N.jsx(k,{fieldPathId:i,description:d.description||c.description,schema:c,uiSchema:m,registry:l}),g?void 0:n,N.jsxs("div",{className:"container-fluid p-0 m-0",children:[a,t&&N.jsxs("div",{className:"row mt-2",children:[N.jsx("div",{className:"col-9"}),N.jsx("div",{className:"col-3 py-4",children:N.jsx(v,{id:rr(i,"add"),className:"rjsf-array-item-add",onClick:o,disabled:r||s,uiSchema:m,registry:l})})]})]})]})})})}const ho={width:16,height:16,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,focusable:!1},sR=()=>N.jsx("svg",{...ho,children:N.jsx("path",{d:"M8 13V3M3.5 7.5L8 3l4.5 4.5"})}),lR=()=>N.jsx("svg",{...ho,children:N.jsx("path",{d:"M8 3v10M3.5 8.5L8 13l4.5-4.5"})}),uR=()=>N.jsxs("svg",{...ho,children:[N.jsx("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.5"}),N.jsx("path",{d:"M10.5 2.5h-7a1 1 0 0 0-1 1v7"})]}),f1=()=>N.jsx("svg",{...ho,children:N.jsx("path",{d:"M3.5 8h9"})}),cR=()=>N.jsx("svg",{...ho,children:N.jsx("path",{d:"M8 3.5v9M3.5 8h9"})});function ua({iconType:e,icon:t,className:r,uiSchema:i,registry:a,variant:n="light",...o}){return N.jsx("button",{type:"button",className:`btn btn-${n} btn-sm ${r||""}`.trim(),...o,children:t})}function fR(e){const{translateString:t}=e.registry;return N.jsx(ua,{title:t(Oe.CopyButton),...e,icon:N.jsx(uR,{})})}function dR(e){const{translateString:t}=e.registry;return N.jsx(ua,{title:t(Oe.MoveUpButton),...e,icon:N.jsx(sR,{})})}function mR(e){const{translateString:t}=e.registry;return N.jsx(ua,{title:t(Oe.MoveDownButton),...e,icon:N.jsx(lR,{})})}function pR(e){const{translateString:t}=e.registry;return N.jsx(ua,{title:t(Oe.RemoveButton),...e,variant:"danger",icon:N.jsx(f1,{})})}function hR(e){const{translateString:t}=e.registry;return N.jsx(ua,{title:t(Oe.ClearButton),...e,icon:N.jsx(f1,{})})}function gR({className:e,...t}){const{translateString:r}=t.registry;return N.jsx(ua,{...t,variant:"primary",className:`ml-1 ${e||""}`.trim(),style:{width:"100%"},title:r(Oe.AddItemButton),icon:N.jsx(cR,{})})}function yR({uiSchema:e}){const{submitText:t,norender:r,props:i={}}=Wy(e);return r?null:N.jsx("div",{children:N.jsx("button",{type:"submit",...i,className:`btn btn-primary ${i.className||""}`.trim(),children:t})})}const vR={SubmitButton:yR,AddButton:gR,CopyButton:fR,MoveDownButton:mR,MoveUpButton:dR,RemoveButton:pR,ClearButton:hR};function bR({id:e,description:t}){return t?N.jsx("div",{children:N.jsx("div",{id:e,className:"mb-3",children:typeof t=="string"?N.jsx(Sr,{children:t}):t})}):null}function kR({errors:e=[],fieldPathId:t}){return e.length===0?null:N.jsx("ul",{className:"list-group",id:tf(t),children:e.filter(Boolean).map((r,i)=>N.jsx("li",{className:"list-group-item border-0 m-0 p-0",children:N.jsx("small",{className:"m-0 text-danger",children:typeof r=="string"?N.jsx(Sr,{children:r}):r})},`${r}-${i}`))})}function wR({fieldPathId:e,help:t,hasErrors:r}){return t?N.jsx("small",{className:`form-text ${r?"text-danger":"text-muted"}`,id:nf(e),children:t}):null}function SR(e){var g,b;const{id:t,children:r,displayLabel:i,rawErrors:a=[],errors:n,help:o,rawDescription:s,hidden:l,label:u,required:c,schema:f,uiSchema:m,registry:d}=e,p=me(m),k=ge("WrapIfAdditionalTemplate",d,p);if(l)return N.jsx("div",{className:"hidden",children:r});const v=a.length>0;return N.jsxs(N.Fragment,{children:[((g=f==null?void 0:f.markdown)==null?void 0:g.before)&&N.jsx("div",{className:"fcode-form-markdown",children:N.jsx(Bu,{children:f.markdown.before})}),N.jsx(k,{...e,children:N.jsxs("div",{className:"form-group",children:[i&&N.jsxs("label",{className:`form-label${v?" text-danger":""}`,htmlFor:t,children:[N.jsx(Sr,{components:{p:"span"},children:u}),c?"*":null]}),r,i&&s&&N.jsx("small",{className:`form-text ${v?"text-danger":"text-muted"}`,children:N.jsx(Sr,{children:s})}),n,o]})}),((b=f==null?void 0:f.markdown)==null?void 0:b.after)&&N.jsx("div",{className:"fcode-form-markdown",children:N.jsx(Bu,{children:f.markdown.after})})]})}function CR(e){const{description:t,disabled:r,formData:i,fieldPathId:a,onAddProperty:n,optionalDataControl:o,properties:s,readonly:l,registry:u,required:c,schema:f,title:m,uiSchema:d}=e,p=me(d),k=ge("TitleFieldTemplate",u,p),v=ge("DescriptionFieldTemplate",u,p),{AddButton:g}=u.templates.ButtonTemplates;if((f.oneOf||f.anyOf)&&!f.properties&&s.length===0)return null;const w=!l&&!r;return N.jsxs(N.Fragment,{children:[m&&N.jsx(k,{id:ys(a),title:m,required:c,schema:f,uiSchema:d,registry:u,optionalDataControl:w?o:void 0}),t&&N.jsx(v,{id:xn(a),description:t,schema:f,uiSchema:d,registry:u}),w?void 0:o,N.jsxs("div",{className:"container-fluid p-0",children:[s.map(E=>N.jsx("div",{className:`row mb-2${E.hidden?" d-none":""}`,children:N.jsx("div",{className:"col-12",children:E.content})},E.name)),Eh(f,d,i)&&N.jsx("div",{className:"row",children:N.jsx("div",{className:"col-3 py-4",children:N.jsx(g,{id:rr(a,"add"),className:"rjsf-object-property-expand",onClick:n,disabled:r||l,uiSchema:d,registry:u})})})]})]})}function ER({id:e,title:t,uiSchema:r,optionalDataControl:i}){const a=me(r);return N.jsxs("div",{id:e,className:"my-1",children:[N.jsx("h5",{children:N.jsx(Sr,{children:a.title||t})}),N.jsx("hr",{className:"border-0",style:{height:"1px"}}),i]})}function AR(e){const{id:t,classNames:r,style:i,disabled:a,label:n,onKeyRenameBlur:o,onRemoveProperty:s,readonly:l,required:u,schema:c,hideError:f,rawErrors:m,children:d,uiSchema:p,registry:k}=e,{templates:v,translateString:g}=k,{RemoveButton:b}=v.ButtonTemplates,w=hn in c,E=[r];!f&&m&&m.length>0&&E.push("has-error has-danger");const h=E.filter(Boolean).join(" ").trim();if(!w)return N.jsx("div",{className:h,style:i,children:d});const y=`${t}-key`;return N.jsx("div",{className:h,style:i,children:N.jsxs("div",{className:"row",children:[N.jsx("div",{className:"col",children:N.jsxs("div",{className:"form-group",children:[N.jsx("label",{className:"form-label",htmlFor:y,children:g(Oe.KeyLabel,[n])}),N.jsx("input",{className:"form-control",type:"text",id:y,name:y,required:u,disabled:a||l,defaultValue:n,onBlur:l?void 0:o})]})}),N.jsx("div",{className:"col",children:d}),N.jsx("div",{className:"col-auto py-4",children:N.jsx(b,{disabled:a||l,onClick:s,uiSchema:p,registry:k})})]})})}const xR=Object.freeze(Object.defineProperty({__proto__:null,ArrayFieldItemButtonsTemplate:iR,ArrayFieldItemTemplate:aR,ArrayFieldTemplate:oR,ButtonTemplates:vR,DescriptionFieldTemplate:bR,FieldErrorTemplate:kR,FieldHelpTemplate:wR,FieldTemplate:SR,ObjectFieldTemplate:CR,TitleFieldTemplate:ER,WrapIfAdditionalTemplate:AR},Symbol.toStringTag,{value:"Module"}));function OR({schema:e,uiSchema:t,options:r,id:i,value:a,disabled:n,readonly:o,label:s,hideLabel:l,autofocus:u=!1,onBlur:c,onFocus:f,onChange:m,registry:d}){const p=ge("DescriptionFieldTemplate",d,r),k=to(e),v=V.useCallback(y=>m(y.target.checked),[m]),g=V.useCallback(y=>c(i,y.target.checked),[c,i]),b=V.useCallback(y=>f(i,y.target.checked),[f,i]),h=me(t).widget==="checkbox"?void 0:r.description??e.description;return N.jsxs("div",{className:`checkbox ${n||o?"disabled":""}`.trim(),children:[!l&&h&&N.jsx(p,{id:xn(i),description:h,schema:e,uiSchema:t,registry:d}),N.jsxs("div",{className:"form-check",children:[N.jsx("input",{type:"checkbox",className:"form-check-input",id:i,name:i,checked:typeof a>"u"?!1:a,required:k,disabled:n||o,autoFocus:u,onChange:v,onBlur:g,onFocus:b,"aria-describedby":xr(i)}),!l&&!!s&&N.jsx("label",{className:"form-check-label",htmlFor:i,children:N.jsx(Sr,{components:{p:"span"},children:s})})]})]})}function _R({id:e,disabled:t,options:r,value:i,autofocus:a=!1,readonly:n,required:o,onChange:s,onBlur:l,onFocus:u}){const{inline:c=!1,enumOptions:f,enumDisabled:m,emptyValue:d}=r,p=eo(r),k=Array.isArray(i)?i:[i],v=V.useCallback(({target:b})=>l(e,Ar(b==null?void 0:b.value,f,p,d)),[l,e,f,d,p]),g=V.useCallback(({target:b})=>u(e,Ar(b==null?void 0:b.value,f,p,d)),[u,e,f,d,p]);return N.jsx("div",{id:e,children:Array.isArray(f)&&f.map((b,w)=>{const E=Gi(b.value,k),h=Array.isArray(m)&&m.includes(b.value),y=vs(e,w),C=x=>{x.target.checked?s(Uy(w,k,f)):s(zy(w,k,f))};return N.jsxs("div",{className:`custom-control custom-checkbox bg-transparent border-0${c?" custom-control-inline":""}`,children:[N.jsx("input",{type:"checkbox",className:"custom-control-input",id:y,name:e,checked:E,value:Qa(b.value,w,p),required:o,disabled:t||h||n,autoFocus:a&&w===0,onChange:C,onBlur:v,onFocus:g,"aria-describedby":xr(e)}),N.jsx("label",{className:"custom-control-label",htmlFor:y,children:N.jsx(Sr,{components:{p:"span"},children:b.label})})]},String(b.value))})})}function PR({options:e,value:t,required:r,disabled:i,readonly:a,autofocus:n=!1,onBlur:o,onFocus:s,onChange:l,id:u}){const{enumOptions:c,enumDisabled:f,inline:m,emptyValue:d}=e,p=eo(e),k=V.useCallback(({target:g})=>o(u,Ar(g==null?void 0:g.value,c,p,d)),[o,c,d,u,p]),v=V.useCallback(({target:g})=>s(u,Ar(g==null?void 0:g.value,c,p,d)),[s,c,d,u,p]);return N.jsx("div",{id:u,role:"radiogroup",children:Array.isArray(c)&&c.map((g,b)=>{const w=Gi(g.value,t),E=Array.isArray(f)&&f.includes(g.value),h=vs(u,b);return N.jsxs("div",{className:`form-check${m?" form-check-inline":""}`,children:[N.jsx("input",{type:"radio",className:"form-check-input",id:h,name:u,checked:w,value:Qa(g.value,b,p),required:r,disabled:i||E||a,autoFocus:n&&b===0,onChange:()=>l(g.value),onBlur:k,onFocus:v,"aria-describedby":xr(u)}),N.jsx("label",{className:"form-check-label",htmlFor:h,children:N.jsx(Sr,{components:{p:"span"},children:g.label})})]},String(g.value))})})}const IR=5;function TR({id:e,options:t,placeholder:r,value:i,required:a,disabled:n,readonly:o,autofocus:s=!1,onChange:l,onBlur:u,onFocus:c}){const f=V.useCallback(({target:{value:p}})=>l(p===""?t.emptyValue:p),[l,t.emptyValue]),m=V.useCallback(({target:p})=>u(e,p==null?void 0:p.value),[u,e]),d=V.useCallback(({target:p})=>c(e,p==null?void 0:p.value),[c,e]);return N.jsx("textarea",{id:e,name:e,className:"form-control",value:i??"",placeholder:r,required:a,disabled:n,readOnly:o,autoFocus:s,rows:t.rows||IR,onChange:f,onBlur:m,onFocus:d,"aria-describedby":xr(e)})}const d1={templates:xR,widgets:Object.freeze(Object.defineProperty({__proto__:null,CheckboxWidget:OR,CheckboxesWidget:_R,RadioWidget:PR,TextareaWidget:TR},Symbol.toStringTag,{value:"Module"}))},NR=e=>e==="{}"?`{
|
|
119
132
|
|
|
120
|
-
}`:e,
|
|
121
|
-
`).length,value:
|
|
122
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
133
|
+
}`:e,FR=e=>{const{onChange:t,onBlur:r,onFocus:i,fieldPathId:a,schema:{title:n,description:o},formData:s,readonly:l,disabled:u}=e,c=V.useRef(null),[f,m]=V.useState(NR(JSON.stringify(s||{},null,2))),d=V.useCallback(b=>{m(b.target.value)},[t]),p=V.useCallback(function(b){c.current&&b.key=="Tab"&&b.preventDefault()},[]),k=V.useCallback(()=>{try{const b=JSON.parse(f);t(b,a.path),r(a.$id,b)}catch{t(null,a.path,{__errors:["Invalid JSON"]}),r(a.$id,null)}},[f,r,t,a]),v=V.useCallback(b=>{i(a.$id,b.target.value)},[i,a]),g=f||JSON.stringify(s,null,2)||"{}";return N.jsxs("div",{className:"form-group",children:[n&&N.jsx("label",{className:"form-label",htmlFor:a.$id,children:n}),N.jsxs("div",{className:"wrapper",children:[N.jsx("textarea",{id:a.$id,ref:c,rows:g.split(`
|
|
134
|
+
`).length,value:g,className:pn(["form-control","textarea"]),onChange:d,onKeyDown:p,onFocus:v,onBlur:k,readOnly:l,disabled:u}),N.jsx("div",{className:"shadow",children:f})]}),N.jsx("small",{className:"text-muted form-text",children:N.jsx(Sr,{children:o})})]})},DR=e=>{const{fieldPathId:t,onChange:r,schema:{title:i,description:a},disabled:n}=e;return N.jsxs("div",{className:"form-group",children:[N.jsx("div",{className:"wrapper",children:N.jsx("button",{id:t.$id,type:"submit",className:"btn btn-primary",onClick:()=>{r(!0,t.path)},disabled:n,children:i})}),N.jsx("small",{className:"text-muted form-text",children:N.jsx(Sr,{children:a})})]})};function m1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function MR(e){if(Array.isArray(e))return e}function jR(e,t,r){return(t=BR(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LR(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,a,n,o,s=[],l=!0,u=!1;try{if(n=(r=r.call(e)).next,t!==0)for(;!(l=(i=n.call(r)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(c){u=!0,a=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return s}}function qR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
135
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function h1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?p1(Object(r),!0).forEach(function(i){jR(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p1(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function RR(e,t){if(e==null)return{};var r,i,a=zR(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i<n.length;i++)r=n[i],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function zR(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function $R(e,t){return MR(e)||LR(e,t)||VR(e,t)||qR()}function UR(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function BR(e){var t=UR(e,"string");return typeof t=="symbol"?t:t+""}function VR(e,t){if(e){if(typeof e=="string")return m1(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m1(e,t):void 0}}function HR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function y1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?g1(Object(r),!0).forEach(function(i){HR(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g1(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function KR(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(i){return t.reduceRight(function(a,n){return n(a)},i)}}function go(e){return function t(){for(var r=this,i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return a.length>=e.length?e.apply(this,a):function(){for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];return t.apply(r,[].concat(a,s))}}}function Pl(e){return{}.toString.call(e).includes("Object")}function WR(e){return!Object.keys(e).length}function yo(e){return typeof e=="function"}function GR(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function JR(e,t){return Pl(t)||zn("changeType"),Object.keys(t).some(function(r){return!GR(e,r)})&&zn("changeField"),t}function YR(e){yo(e)||zn("selectorType")}function XR(e){yo(e)||Pl(e)||zn("handlerType"),Pl(e)&&Object.values(e).some(function(t){return!yo(t)})&&zn("handlersType")}function ZR(e){e||zn("initialIsRequired"),Pl(e)||zn("initialType"),WR(e)&&zn("initialContent")}function QR(e,t){throw new Error(e[t]||e.default)}var ez={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},zn=go(QR)(ez),Il={changes:JR,selector:YR,handler:XR,initial:ZR};function tz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Il.initial(e),Il.handler(t);var r={current:e},i=go(iz)(r,t),a=go(nz)(r),n=go(Il.changes)(e),o=go(rz)(r);function s(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return Il.selector(u),u(r.current)}function l(u){KR(i,a,n,o)(u)}return[s,l]}function rz(e,t){return yo(t)?t(e.current):t}function nz(e,t){return e.current=y1(y1({},e.current),t),t}function iz(e,t,r){return yo(t)?t(e.current):Object.keys(r).forEach(function(i){var a;return(a=t[i])===null||a===void 0?void 0:a.call(t,e.current[i])}),r}var az={create:tz},oz={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function sz(e){return function t(){for(var r=this,i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return a.length>=e.length?e.apply(this,a):function(){for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];return t.apply(r,[].concat(a,s))}}}function lz(e){return{}.toString.call(e).includes("Object")}function uz(e){return e||b1("configIsRequired"),lz(e)||b1("configType"),e.urls?(cz(),{paths:{vs:e.urls.monacoBase}}):e}function cz(){console.warn(v1.deprecation)}function fz(e,t){throw new Error(e[t]||e.default)}var v1={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
123
136
|
You are using deprecated way of configuration.
|
|
124
137
|
|
|
125
138
|
Instead of using
|
|
@@ -128,5 +141,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
128
141
|
monaco.config({ paths: { vs: '...' } })
|
|
129
142
|
|
|
130
143
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
131
|
-
`},W0=eq(aq)(H0),iq={config:rq},oq=function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return function(i){return r.reduceRight(function(n,o){return o(n)},i)}};function K0(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],K0(e[r],t[r]))}),U0(U0({},e),t)}var sq={type:"cancelation",msg:"operation is manually canceled"};function gp(e){var t=!1,r=new Promise(function(a,i){e.then(function(n){return t?i(sq):a(n)}),e.catch(i)});return r.cancel=function(){return t=!0},r}var lq=["monaco"],cq=Z2.create({config:Q2,isInitialized:!1,resolve:null,reject:null,monaco:null}),G0=F2(cq,2),is=G0[0],yc=G0[1];function uq(e){var t=iq.config(e),r=t.monaco,a=N2(t,lq);yc(function(i){return{config:K0(i.config,a),monaco:r}})}function fq(){var e=is(function(t){var r=t.monaco,a=t.isInitialized,i=t.resolve;return{monaco:r,isInitialized:a,resolve:i}});if(!e.isInitialized){if(yc({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),gp(yp);if(window.monaco&&window.monaco.editor)return J0(window.monaco),e.resolve(window.monaco),gp(yp);oq(dq,mq)(hq)}return gp(yp)}function dq(e){return document.body.appendChild(e)}function pq(e){var t=document.createElement("script");return e&&(t.src=e),t}function mq(e){var t=is(function(a){var i=a.config,n=a.reject;return{config:i,reject:n}}),r=pq("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function hq(){var e=is(function(r){var a=r.config,i=r.resolve,n=r.reject;return{config:a,resolve:i,reject:n}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){var a=r.m||r;J0(a),e.resolve(a)},function(r){e.reject(r)})}function J0(e){is().monaco||yc({monaco:e})}function gq(){return is(function(e){var t=e.monaco;return t})}var yp=new Promise(function(e,t){return yc({resolve:e,reject:t})}),vc={config:uq,init:fq,__getMonacoInstance:gq},yq={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},vp=yq,vq={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},bq=vq;function kq({children:e}){return H.createElement("div",{style:bq.container},e)}var wq=kq,Sq=wq;function Eq({width:e,height:t,isEditorReady:r,loading:a,_ref:i,className:n,wrapperProps:o}){return H.createElement("section",{style:{...vp.wrapper,width:e,height:t},...o},!r&&H.createElement(Sq,null,a),H.createElement("div",{ref:i,style:{...vp.fullWidth,...!r&&vp.hide},className:n}))}var Cq=Eq,Y0=H.memo(Cq);function Aq(e){H.useEffect(e,[])}var bp=Aq;function _q(e,t,r=!0){let a=H.useRef(!0);H.useEffect(a.current||!r?()=>{a.current=!1}:e,t)}var Nr=_q;function os(){}function Yi(e,t,r,a){return Oq(e,a)||xq(e,t,r,a)}function Oq(e,t){return e.editor.getModel(X0(e,t))}function xq(e,t,r,a){return e.editor.createModel(t,r,a?X0(e,a):void 0)}function X0(e,t){return e.Uri.parse(t)}function Tq({original:e,modified:t,language:r,originalLanguage:a,modifiedLanguage:i,originalModelPath:n,modifiedModelPath:o,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:c=!1,theme:l="light",loading:u="Loading...",options:f={},height:p="100%",width:d="100%",className:h,wrapperProps:k={},beforeMount:v=os,onMount:y=os}){let[b,w]=H.useState(!1),[E,m]=H.useState(!0),g=H.useRef(null),S=H.useRef(null),A=H.useRef(null),x=H.useRef(y),O=H.useRef(v),C=H.useRef(!1);bp(()=>{let j=vc.init();return j.then($=>(S.current=$)&&m(!1)).catch($=>($==null?void 0:$.type)!=="cancelation"&&console.error("Monaco initialization: error:",$)),()=>g.current?I():j.cancel()}),Nr(()=>{if(g.current&&S.current){let j=g.current.getOriginalEditor(),$=Yi(S.current,e||"",a||r||"text",n||"");$!==j.getModel()&&j.setModel($)}},[n],b),Nr(()=>{if(g.current&&S.current){let j=g.current.getModifiedEditor(),$=Yi(S.current,t||"",i||r||"text",o||"");$!==j.getModel()&&j.setModel($)}},[o],b),Nr(()=>{let j=g.current.getModifiedEditor();j.getOption(S.current.editor.EditorOption.readOnly)?j.setValue(t||""):t!==j.getValue()&&(j.executeEdits("",[{range:j.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),j.pushUndoStop())},[t],b),Nr(()=>{var j,$;($=(j=g.current)==null?void 0:j.getModel())==null||$.original.setValue(e||"")},[e],b),Nr(()=>{let{original:j,modified:$}=g.current.getModel();S.current.editor.setModelLanguage(j,a||r||"text"),S.current.editor.setModelLanguage($,i||r||"text")},[r,a,i],b),Nr(()=>{var j;(j=S.current)==null||j.editor.setTheme(l)},[l],b),Nr(()=>{var j;(j=g.current)==null||j.updateOptions(f)},[f],b);let _=H.useCallback(()=>{var Y;if(!S.current)return;O.current(S.current);let j=Yi(S.current,e||"",a||r||"text",n||""),$=Yi(S.current,t||"",i||r||"text",o||"");(Y=g.current)==null||Y.setModel({original:j,modified:$})},[r,t,i,e,a,n,o]),F=H.useCallback(()=>{var j;!C.current&&A.current&&(g.current=S.current.editor.createDiffEditor(A.current,{automaticLayout:!0,...f}),_(),(j=S.current)==null||j.editor.setTheme(l),w(!0),C.current=!0)},[f,l,_]);H.useEffect(()=>{b&&x.current(g.current,S.current)},[b]),H.useEffect(()=>{!E&&!b&&F()},[E,b,F]);function I(){var $,Y,Z,ie;let j=($=g.current)==null?void 0:$.getModel();s||((Y=j==null?void 0:j.original)==null||Y.dispose()),c||((Z=j==null?void 0:j.modified)==null||Z.dispose()),(ie=g.current)==null||ie.dispose()}return H.createElement(Y0,{width:d,height:p,isEditorReady:b,loading:u,_ref:A,className:h,wrapperProps:k})}var Pq=Tq;H.memo(Pq);function Iq(){let[e,t]=H.useState(vc.__getMonacoInstance());return bp(()=>{let r;return e||(r=vc.init(),r.then(a=>{t(a)})),()=>r==null?void 0:r.cancel()}),e}var Nq=Iq;function Dq(e){let t=H.useRef();return H.useEffect(()=>{t.current=e},[e]),t.current}var Fq=Dq,bc=new Map;function Mq({defaultValue:e,defaultLanguage:t,defaultPath:r,value:a,language:i,path:n,theme:o="light",line:s,loading:c="Loading...",options:l={},overrideServices:u={},saveViewState:f=!0,keepCurrentModel:p=!1,width:d="100%",height:h="100%",className:k,wrapperProps:v={},beforeMount:y=os,onMount:b=os,onChange:w,onValidate:E=os}){let[m,g]=H.useState(!1),[S,A]=H.useState(!0),x=H.useRef(null),O=H.useRef(null),C=H.useRef(null),_=H.useRef(b),F=H.useRef(y),I=H.useRef(),j=H.useRef(a),$=Fq(n),Y=H.useRef(!1),Z=H.useRef(!1);bp(()=>{let M=vc.init();return M.then(U=>(x.current=U)&&A(!1)).catch(U=>(U==null?void 0:U.type)!=="cancelation"&&console.error("Monaco initialization: error:",U)),()=>O.current?P():M.cancel()}),Nr(()=>{var U,T,N,L;let M=Yi(x.current,e||a||"",t||i||"",n||r||"");M!==((U=O.current)==null?void 0:U.getModel())&&(f&&bc.set($,(T=O.current)==null?void 0:T.saveViewState()),(N=O.current)==null||N.setModel(M),f&&((L=O.current)==null||L.restoreViewState(bc.get(n))))},[n],m),Nr(()=>{var M;(M=O.current)==null||M.updateOptions(l)},[l],m),Nr(()=>{!O.current||a===void 0||(O.current.getOption(x.current.editor.EditorOption.readOnly)?O.current.setValue(a):a!==O.current.getValue()&&(Z.current=!0,O.current.executeEdits("",[{range:O.current.getModel().getFullModelRange(),text:a,forceMoveMarkers:!0}]),O.current.pushUndoStop(),Z.current=!1))},[a],m),Nr(()=>{var U,T;let M=(U=O.current)==null?void 0:U.getModel();M&&i&&((T=x.current)==null||T.editor.setModelLanguage(M,i))},[i],m),Nr(()=>{var M;s!==void 0&&((M=O.current)==null||M.revealLine(s))},[s],m),Nr(()=>{var M;(M=x.current)==null||M.editor.setTheme(o)},[o],m);let ie=H.useCallback(()=>{var M;if(!(!C.current||!x.current)&&!Y.current){F.current(x.current);let U=n||r,T=Yi(x.current,a||e||"",t||i||"",U||"");O.current=(M=x.current)==null?void 0:M.editor.create(C.current,{model:T,automaticLayout:!0,...l},u),f&&O.current.restoreViewState(bc.get(U)),x.current.editor.setTheme(o),s!==void 0&&O.current.revealLine(s),g(!0),Y.current=!0}},[e,t,r,a,i,n,l,u,f,o,s]);H.useEffect(()=>{m&&_.current(O.current,x.current)},[m]),H.useEffect(()=>{!S&&!m&&ie()},[S,m,ie]),j.current=a,H.useEffect(()=>{var M,U;m&&w&&((M=I.current)==null||M.dispose(),I.current=(U=O.current)==null?void 0:U.onDidChangeModelContent(T=>{Z.current||w(O.current.getValue(),T)}))},[m,w]),H.useEffect(()=>{if(m){let M=x.current.editor.onDidChangeMarkers(U=>{var N;let T=(N=O.current.getModel())==null?void 0:N.uri;if(T&&U.find(L=>L.path===T.path)){let L=x.current.editor.getModelMarkers({resource:T});E==null||E(L)}});return()=>{M==null||M.dispose()}}return()=>{}},[m,E]);function P(){var M,U;(M=I.current)==null||M.dispose(),p?f&&bc.set(n,O.current.saveViewState()):(U=O.current.getModel())==null||U.dispose(),O.current.dispose()}return H.createElement(Y0,{width:d,height:h,isEditorReady:m,loading:c,_ref:C,className:k,wrapperProps:v})}var jq=Mq,Lq=H.memo(jq),Rq=Lq;const qq={base:"vs-dark",inherit:!0,rules:[{background:"282a36",token:""},{foreground:"6272a4",token:"comment"},{foreground:"ff79c6",token:"string"},{foreground:"bd93f9",token:"constant.numeric"},{foreground:"bd93f9",token:"constant.language"},{foreground:"bd93f9",token:"constant.character"},{foreground:"bd93f9",token:"constant.other"},{foreground:"ffb86c",token:"variable.other.readwrite.instance"},{foreground:"bd93f9",token:"constant.character.escaped"},{foreground:"bd93f9",token:"constant.character.escape"},{foreground:"bd93f9",token:"string source"},{foreground:"bd93f9",token:"string source.ruby"},{foreground:"bd93f9",token:"keyword"},{foreground:"bd93f9",token:"storage"},{foreground:"8be9fd",fontStyle:"italic",token:"storage.type"},{foreground:"50fa7b",fontStyle:"underline",token:"entity.name.class"},{foreground:"50fa7b",fontStyle:"italic underline",token:"entity.other.inherited-class"},{foreground:"50fa7b",token:"entity.name.function"},{foreground:"ffb86c",fontStyle:"italic",token:"variable.parameter"},{foreground:"bd93f9",token:"entity.name.tag"},{foreground:"50fa7b",token:"entity.other.attribute-name"},{foreground:"50fa7b",token:"support.function"},{foreground:"6be5fd",token:"support.constant"},{foreground:"66d9ef",fontStyle:" italic",token:"support.type"},{foreground:"66d9ef",fontStyle:" italic",token:"support.class"},{foreground:"f8f8f0",background:"bd93f9",token:"invalid"},{foreground:"f8f8f0",background:"bd93f9",token:"invalid.deprecated"},{foreground:"cfcfc2",token:"meta.structure.dictionary.json string.quoted.double.json"},{foreground:"6272a4",token:"meta.diff"},{foreground:"6272a4",token:"meta.diff.header"},{foreground:"bd93f9",token:"markup.deleted"},{foreground:"50fa7b",token:"markup.inserted"},{foreground:"e6db74",token:"markup.changed"},{foreground:"bd93f9",token:"constant.numeric.line-number.find-in-files - match"},{foreground:"e6db74",token:"entity.name.filename"},{foreground:"f83333",token:"message.error"},{foreground:"eeeeee",token:"punctuation.definition.string.begin.json - meta.structure.dictionary.value.json"},{foreground:"eeeeee",token:"punctuation.definition.string.end.json - meta.structure.dictionary.value.json"},{foreground:"8be9fd",token:"meta.structure.dictionary.json string.quoted.double.json"},{foreground:"ff79c6",token:"meta.structure.dictionary.value.json string.quoted.double.json"},{foreground:"50fa7b",token:"meta meta meta meta meta meta meta.structure.dictionary.value string"},{foreground:"ffb86c",token:"meta meta meta meta meta meta.structure.dictionary.value string"},{foreground:"bd93f9",token:"meta meta meta meta meta.structure.dictionary.value string"},{foreground:"bd93f9",token:"meta meta meta meta.structure.dictionary.value string"},{foreground:"50fa7b",token:"meta meta meta.structure.dictionary.value string"},{foreground:"ffb86c",token:"meta meta.structure.dictionary.value string"},{foreground:"f8f8f2",token:"string.key.json"},{foreground:"ff79c6",token:"string.value.json"},{foreground:"b5cea8",token:"keyword.json"}],colors:{"editor.foreground":"#f8f8f2","editor.background":"#282a36","editor.selectionBackground":"#2c303c","editor.lineHighlightBackground":"#2c303c","editorCursor.foreground":"#f8f8f0","editorWhitespace.foreground":"#3B3A32","editorIndentGuide.activeBackground":"#9D550FB0","editor.selectionHighlightBorder":"#222218"}},zq=Object.freeze(Object.defineProperty({__proto__:null,button:O2,json:_2,sourceCode:e=>{const{fieldPathId:t,schema:{title:r,description:a},uiSchema:{"ui:options":i={}}={},formData:n,readonly:o,disabled:s,onChange:c,...l}=e,{language:u="html",height:f="20vh",width:p="100%",theme:d="dracula",...h}=i,k=Nq();H.useEffect(()=>{k&&k.editor.defineTheme("dracula",qq)});const v=H.useCallback(b=>{if(b!==void 0)if(u==="json")try{c(JSON.parse(b),t.path)}catch{c(null,t.path,{__errors:["Invalid JSON"]})}else c(b,t.path)},[c,t,u]),y=H.useMemo(()=>u==="json"?JSON.stringify(n,null,2):n,[n]);return D.jsxs("div",{className:"form-group",children:[r&&D.jsx("label",{className:"form-label",htmlFor:t.$id,children:r}),D.jsx("div",{className:"wrapper",children:D.jsx(Rq,{id:t.$id,className:hi(["form-control","source-code"]),theme:d,width:p,height:f,defaultLanguage:u,defaultValue:y,onChange:v,options:{fontFamily:"JetBrains Mono",fontLigatures:!0,readOnly:s||o,tabSize:2,minimap:{enabled:!1},...h},...l})}),D.jsx("small",{className:"text-muted form-text",children:D.jsx(dn,{children:a})})]})}},Symbol.toStringTag,{value:"Module"})),$q=iD,Uq=(e,t)=>e&&e in Ho?ac({},Ho[e]):t&&t in Ho?ac({},Ho[t]):ac({},Ho.en),Bq=(e,t)=>e.map(r=>{var n,o;const a=(n=r.property)==null?void 0:n.replace(/^\./,""),i=(o=t.properties)==null?void 0:o[a];return i!=null&&i.errorMessage&&i.errorMessage[r.name]&&(r.message=i.errorMessage[r.name]),r}),Z0=({id:e,templates:t,widgets:r,fields:a,locale:i,fallbackLocale:n,validator:o,className:s,embedFormOptions:c={},rjsfTheme:l,...u})=>{const{theme:f}=c;Yp(c);const p=H.useMemo(()=>Uq(i,n),[i,n]),[d,h]=H.useState(u.formData);return D.jsx($q,{id:e,idPrefix:`root_${e}`,validator:o||p,transformErrors:k=>Bq(k,u.schema),className:hi(["fcode-form",s,{[`theme-${f}`]:f}]),fields:{...zq,...l==null?void 0:l.fields,...a},templates:{...q0.templates,...l==null?void 0:l.templates,...t},widgets:{...q0.widgets,...l==null?void 0:l.widgets,...r},...u,formData:d,onChange:k=>{u.onChange&&u.onChange(k);const{schema:v,formData:y}=k;if(v!=null&&v.required&&Array.isArray(v.required))for(const b of v.required){const w=(v.properties||{})[b];w&&w.type==="boolean"&&y[b]===!1&&delete y[b]}h(y)}})},Q0={theme:"light",loadingOverlayDisabled:!1,loadingOverlayContent:"Sending information...",loadingContent:"Loading form...",locale:"en"},kp=({hostUrl:e="https://code.factorialhr.com/platform",headers:t,team:r,processId:a,processVersion:i,onNextStep:n=yw,onSuccess:o=gw,onError:s=vw,defaultValues:c={},async:l=!1,disabled:u=!1,readonly:f=!1,options:p,...d})=>{const[h,k]=H.useState({processId:a,steps:[],variables:{...p&&p.variables}}),[v]=H1({hostUrl:e,headers:t,team:r,processId:h.processId,processVersion:i,locale:p==null?void 0:p.locale,async:l}),y=H.useMemo(()=>{const U=xp();return console.log(`Building Factorial Code form with id ${U}`),U},[r,h]),b=H.useMemo(()=>{const U=c||{};return window.location.search?{...U,...Object.fromEntries(new URLSearchParams(window.location.search).entries())}:U},[c]),[w,E]=H.useState(!1),[m,g]=H.useState(b),[S,A]=H.useState({}),x=H.useCallback(U=>{A({}),E(!0),g(U.formData),v({metadata:{origin:{url:window.location.href,browser:{language:navigator.language,userAgent:navigator.userAgent}},...h.steps.length>0&&{steps:h.steps},...Object.keys(h.variables).length>0&&{variables:h.variables},...p&&p.locale&&{locale:p.locale}},...U.formData}).then(({results:T,resolvedFiles:N})=>{if(g(b),T.nextProcessId){const L=h.steps;L.push({processId:h.processId,data:{...U.formData,...N},result:T}),k({processId:T.nextProcessId,steps:L,variables:{...h.variables,...T.variables}}),n(T.nextProcessId,T);return}o(y,T,U.formData)}).catch(T=>{T!=null&&T.formErrors?A(ww(T==null?void 0:T.formErrors)):s(y,T,U.formData)}).finally(()=>E(!1))},[y,b,o,s,v,h]),{loading:O,formSpecs:C,error:_}=W1({hostUrl:e,headers:t,team:r,processId:h.processId,processVersion:i,locale:p==null?void 0:p.locale}),F={...Q0,...p};Yp(F),H.useEffect(()=>{_&&s(y,_,{})},[_]);const I=hi(["fcode-form-wrapper",F.className]);if(O)return D.jsx("div",{className:hi([I,"fcode-form-loading"]),"data-testid":"fcode-form",children:D.jsx(hm,{active:!0,content:F.loadingContent,children:D.jsx("div",{className:"fcode-form-outer",children:D.jsx(gm,{})})})});if(_||!C)return D.jsx("div",{className:I,"data-testid":"fcode-form",children:D.jsx("div",{className:"fcode-form-outer",children:D.jsx("p",{className:"fcode-form-error-message","data-testid":"fcode-form-error",children:kw(_)})})});C.schema.embedFormOptions={...Q0,...C.schema.embedFormOptions,...p,variables:{...C.schema.embedFormOptions&&C.schema.embedFormOptions.variables,...h.variables,...p&&p.variables}};const j=wm(C),$=Object.keys(j.schema.properties||{}),Y=Object.fromEntries(Object.entries(m).filter(([U,T])=>$.includes(U))),{loadingOverlayDisabled:Z,loadingOverlayContent:ie,locale:P,fallbackLocale:M}=j.embedFormOptions;return D.jsx("div",{className:hi(["fcode-form-wrapper",j.embedFormOptions.className]),"data-testid":"fcode-form",children:D.jsx(hm,{active:w,content:ie,disabled:Z,children:D.jsx("div",{className:"fcode-form-outer",children:D.jsx(Z0,{id:y,schema:j.schema,uiSchema:j.uiSchema,embedFormOptions:j.embedFormOptions,locale:P,fallbackLocale:M,formData:Y,onSubmit:x,noHtml5Validate:!0,disabled:u,readonly:f,showErrorList:!1,extraErrors:S,...d})})})})};kp.displayName="FcodeForm",st.FcodeForm=kp,st.FcodeJsonSchemaForm=Z0,st.buildId=xp,st.default=kp,st.processFormSpecs=wm,Object.defineProperties(st,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
|
144
|
+
`},b1=sz(fz)(v1),dz={config:uz},mz=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return function(a){return r.reduceRight(function(n,o){return o(n)},a)}};function k1(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],k1(e[r],t[r]))}),h1(h1({},e),t)}var pz={type:"cancelation",msg:"operation is manually canceled"};function _d(e){var t=!1,r=new Promise(function(i,a){e.then(function(n){return t?a(pz):i(n)}),e.catch(a)});return r.cancel=function(){return t=!0},r}var hz=["monaco"],gz=az.create({config:oz,isInitialized:!1,resolve:null,reject:null,monaco:null}),w1=$R(gz,2),vo=w1[0],Tl=w1[1];function yz(e){var t=dz.config(e),r=t.monaco,i=RR(t,hz);Tl(function(a){return{config:k1(a.config,i),monaco:r}})}function vz(){var e=vo(function(t){var r=t.monaco,i=t.isInitialized,a=t.resolve;return{monaco:r,isInitialized:i,resolve:a}});if(!e.isInitialized){if(Tl({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),_d(Pd);if(window.monaco&&window.monaco.editor)return S1(window.monaco),e.resolve(window.monaco),_d(Pd);mz(bz,wz)(Sz)}return _d(Pd)}function bz(e){return document.body.appendChild(e)}function kz(e){var t=document.createElement("script");return e&&(t.src=e),t}function wz(e){var t=vo(function(i){var a=i.config,n=i.reject;return{config:a,reject:n}}),r=kz("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function Sz(){var e=vo(function(r){var i=r.config,a=r.resolve,n=r.reject;return{config:i,resolve:a,reject:n}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){var i=r.m||r;S1(i),e.resolve(i)},function(r){e.reject(r)})}function S1(e){vo().monaco||Tl({monaco:e})}function Cz(){return vo(function(e){var t=e.monaco;return t})}var Pd=new Promise(function(e,t){return Tl({resolve:e,reject:t})}),Nl={config:yz,init:vz,__getMonacoInstance:Cz},Ez={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Id=Ez,Az={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},xz=Az;function Oz({children:e}){return V.createElement("div",{style:xz.container},e)}var _z=Oz,Pz=_z;function Iz({width:e,height:t,isEditorReady:r,loading:i,_ref:a,className:n,wrapperProps:o}){return V.createElement("section",{style:{...Id.wrapper,width:e,height:t},...o},!r&&V.createElement(Pz,null,i),V.createElement("div",{ref:a,style:{...Id.fullWidth,...!r&&Id.hide},className:n}))}var Tz=Iz,C1=V.memo(Tz);function Nz(e){V.useEffect(e,[])}var Td=Nz;function Fz(e,t,r=!0){let i=V.useRef(!0);V.useEffect(i.current||!r?()=>{i.current=!1}:e,t)}var ar=Fz;function bo(){}function ca(e,t,r,i){return Dz(e,i)||Mz(e,t,r,i)}function Dz(e,t){return e.editor.getModel(E1(e,t))}function Mz(e,t,r,i){return e.editor.createModel(t,r,i?E1(e,i):void 0)}function E1(e,t){return e.Uri.parse(t)}function jz({original:e,modified:t,language:r,originalLanguage:i,modifiedLanguage:a,originalModelPath:n,modifiedModelPath:o,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:l=!1,theme:u="light",loading:c="Loading...",options:f={},height:m="100%",width:d="100%",className:p,wrapperProps:k={},beforeMount:v=bo,onMount:g=bo}){let[b,w]=V.useState(!1),[E,h]=V.useState(!0),y=V.useRef(null),C=V.useRef(null),x=V.useRef(null),_=V.useRef(g),S=V.useRef(v),A=V.useRef(!1);Td(()=>{let M=Nl.init();return M.then(q=>(C.current=q)&&h(!1)).catch(q=>(q==null?void 0:q.type)!=="cancelation"&&console.error("Monaco initialization: error:",q)),()=>y.current?T():M.cancel()}),ar(()=>{if(y.current&&C.current){let M=y.current.getOriginalEditor(),q=ca(C.current,e||"",i||r||"text",n||"");q!==M.getModel()&&M.setModel(q)}},[n],b),ar(()=>{if(y.current&&C.current){let M=y.current.getModifiedEditor(),q=ca(C.current,t||"",a||r||"text",o||"");q!==M.getModel()&&M.setModel(q)}},[o],b),ar(()=>{let M=y.current.getModifiedEditor();M.getOption(C.current.editor.EditorOption.readOnly)?M.setValue(t||""):t!==M.getValue()&&(M.executeEdits("",[{range:M.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),M.pushUndoStop())},[t],b),ar(()=>{var M,q;(q=(M=y.current)==null?void 0:M.getModel())==null||q.original.setValue(e||"")},[e],b),ar(()=>{let{original:M,modified:q}=y.current.getModel();C.current.editor.setModelLanguage(M,i||r||"text"),C.current.editor.setModelLanguage(q,a||r||"text")},[r,i,a],b),ar(()=>{var M;(M=C.current)==null||M.editor.setTheme(u)},[u],b),ar(()=>{var M;(M=y.current)==null||M.updateOptions(f)},[f],b);let O=V.useCallback(()=>{var J;if(!C.current)return;S.current(C.current);let M=ca(C.current,e||"",i||r||"text",n||""),q=ca(C.current,t||"",a||r||"text",o||"");(J=y.current)==null||J.setModel({original:M,modified:q})},[r,t,a,e,i,n,o]),F=V.useCallback(()=>{var M;!A.current&&x.current&&(y.current=C.current.editor.createDiffEditor(x.current,{automaticLayout:!0,...f}),O(),(M=C.current)==null||M.editor.setTheme(u),w(!0),A.current=!0)},[f,u,O]);V.useEffect(()=>{b&&_.current(y.current,C.current)},[b]),V.useEffect(()=>{!E&&!b&&F()},[E,b,F]);function T(){var q,J,Y,Q;let M=(q=y.current)==null?void 0:q.getModel();s||((J=M==null?void 0:M.original)==null||J.dispose()),l||((Y=M==null?void 0:M.modified)==null||Y.dispose()),(Q=y.current)==null||Q.dispose()}return V.createElement(C1,{width:d,height:m,isEditorReady:b,loading:c,_ref:x,className:p,wrapperProps:k})}var Lz=jz;V.memo(Lz);function qz(){let[e,t]=V.useState(Nl.__getMonacoInstance());return Td(()=>{let r;return e||(r=Nl.init(),r.then(i=>{t(i)})),()=>r==null?void 0:r.cancel()}),e}var Rz=qz;function zz(e){let t=V.useRef();return V.useEffect(()=>{t.current=e},[e]),t.current}var $z=zz,Fl=new Map;function Uz({defaultValue:e,defaultLanguage:t,defaultPath:r,value:i,language:a,path:n,theme:o="light",line:s,loading:l="Loading...",options:u={},overrideServices:c={},saveViewState:f=!0,keepCurrentModel:m=!1,width:d="100%",height:p="100%",className:k,wrapperProps:v={},beforeMount:g=bo,onMount:b=bo,onChange:w,onValidate:E=bo}){let[h,y]=V.useState(!1),[C,x]=V.useState(!0),_=V.useRef(null),S=V.useRef(null),A=V.useRef(null),O=V.useRef(b),F=V.useRef(g),T=V.useRef(),M=V.useRef(i),q=$z(n),J=V.useRef(!1),Y=V.useRef(!1);Td(()=>{let j=Nl.init();return j.then(B=>(_.current=B)&&x(!1)).catch(B=>(B==null?void 0:B.type)!=="cancelation"&&console.error("Monaco initialization: error:",B)),()=>S.current?P():j.cancel()}),ar(()=>{var B,I,D,L;let j=ca(_.current,e||i||"",t||a||"",n||r||"");j!==((B=S.current)==null?void 0:B.getModel())&&(f&&Fl.set(q,(I=S.current)==null?void 0:I.saveViewState()),(D=S.current)==null||D.setModel(j),f&&((L=S.current)==null||L.restoreViewState(Fl.get(n))))},[n],h),ar(()=>{var j;(j=S.current)==null||j.updateOptions(u)},[u],h),ar(()=>{!S.current||i===void 0||(S.current.getOption(_.current.editor.EditorOption.readOnly)?S.current.setValue(i):i!==S.current.getValue()&&(Y.current=!0,S.current.executeEdits("",[{range:S.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),S.current.pushUndoStop(),Y.current=!1))},[i],h),ar(()=>{var B,I;let j=(B=S.current)==null?void 0:B.getModel();j&&a&&((I=_.current)==null||I.editor.setModelLanguage(j,a))},[a],h),ar(()=>{var j;s!==void 0&&((j=S.current)==null||j.revealLine(s))},[s],h),ar(()=>{var j;(j=_.current)==null||j.editor.setTheme(o)},[o],h);let Q=V.useCallback(()=>{var j;if(!(!A.current||!_.current)&&!J.current){F.current(_.current);let B=n||r,I=ca(_.current,i||e||"",t||a||"",B||"");S.current=(j=_.current)==null?void 0:j.editor.create(A.current,{model:I,automaticLayout:!0,...u},c),f&&S.current.restoreViewState(Fl.get(B)),_.current.editor.setTheme(o),s!==void 0&&S.current.revealLine(s),y(!0),J.current=!0}},[e,t,r,i,a,n,u,c,f,o,s]);V.useEffect(()=>{h&&O.current(S.current,_.current)},[h]),V.useEffect(()=>{!C&&!h&&Q()},[C,h,Q]),M.current=i,V.useEffect(()=>{var j,B;h&&w&&((j=T.current)==null||j.dispose(),T.current=(B=S.current)==null?void 0:B.onDidChangeModelContent(I=>{Y.current||w(S.current.getValue(),I)}))},[h,w]),V.useEffect(()=>{if(h){let j=_.current.editor.onDidChangeMarkers(B=>{var D;let I=(D=S.current.getModel())==null?void 0:D.uri;if(I&&B.find(L=>L.path===I.path)){let L=_.current.editor.getModelMarkers({resource:I});E==null||E(L)}});return()=>{j==null||j.dispose()}}return()=>{}},[h,E]);function P(){var j,B;(j=T.current)==null||j.dispose(),m?f&&Fl.set(n,S.current.saveViewState()):(B=S.current.getModel())==null||B.dispose(),S.current.dispose()}return V.createElement(C1,{width:d,height:p,isEditorReady:h,loading:l,_ref:A,className:k,wrapperProps:v})}var Bz=Uz,Vz=V.memo(Bz),Hz=Vz;const Kz={base:"vs-dark",inherit:!0,rules:[{background:"282a36",token:""},{foreground:"6272a4",token:"comment"},{foreground:"ff79c6",token:"string"},{foreground:"bd93f9",token:"constant.numeric"},{foreground:"bd93f9",token:"constant.language"},{foreground:"bd93f9",token:"constant.character"},{foreground:"bd93f9",token:"constant.other"},{foreground:"ffb86c",token:"variable.other.readwrite.instance"},{foreground:"bd93f9",token:"constant.character.escaped"},{foreground:"bd93f9",token:"constant.character.escape"},{foreground:"bd93f9",token:"string source"},{foreground:"bd93f9",token:"string source.ruby"},{foreground:"bd93f9",token:"keyword"},{foreground:"bd93f9",token:"storage"},{foreground:"8be9fd",fontStyle:"italic",token:"storage.type"},{foreground:"50fa7b",fontStyle:"underline",token:"entity.name.class"},{foreground:"50fa7b",fontStyle:"italic underline",token:"entity.other.inherited-class"},{foreground:"50fa7b",token:"entity.name.function"},{foreground:"ffb86c",fontStyle:"italic",token:"variable.parameter"},{foreground:"bd93f9",token:"entity.name.tag"},{foreground:"50fa7b",token:"entity.other.attribute-name"},{foreground:"50fa7b",token:"support.function"},{foreground:"6be5fd",token:"support.constant"},{foreground:"66d9ef",fontStyle:" italic",token:"support.type"},{foreground:"66d9ef",fontStyle:" italic",token:"support.class"},{foreground:"f8f8f0",background:"bd93f9",token:"invalid"},{foreground:"f8f8f0",background:"bd93f9",token:"invalid.deprecated"},{foreground:"cfcfc2",token:"meta.structure.dictionary.json string.quoted.double.json"},{foreground:"6272a4",token:"meta.diff"},{foreground:"6272a4",token:"meta.diff.header"},{foreground:"bd93f9",token:"markup.deleted"},{foreground:"50fa7b",token:"markup.inserted"},{foreground:"e6db74",token:"markup.changed"},{foreground:"bd93f9",token:"constant.numeric.line-number.find-in-files - match"},{foreground:"e6db74",token:"entity.name.filename"},{foreground:"f83333",token:"message.error"},{foreground:"eeeeee",token:"punctuation.definition.string.begin.json - meta.structure.dictionary.value.json"},{foreground:"eeeeee",token:"punctuation.definition.string.end.json - meta.structure.dictionary.value.json"},{foreground:"8be9fd",token:"meta.structure.dictionary.json string.quoted.double.json"},{foreground:"ff79c6",token:"meta.structure.dictionary.value.json string.quoted.double.json"},{foreground:"50fa7b",token:"meta meta meta meta meta meta meta.structure.dictionary.value string"},{foreground:"ffb86c",token:"meta meta meta meta meta meta.structure.dictionary.value string"},{foreground:"bd93f9",token:"meta meta meta meta meta.structure.dictionary.value string"},{foreground:"bd93f9",token:"meta meta meta meta.structure.dictionary.value string"},{foreground:"50fa7b",token:"meta meta meta.structure.dictionary.value string"},{foreground:"ffb86c",token:"meta meta.structure.dictionary.value string"},{foreground:"f8f8f2",token:"string.key.json"},{foreground:"ff79c6",token:"string.value.json"},{foreground:"b5cea8",token:"keyword.json"}],colors:{"editor.foreground":"#f8f8f2","editor.background":"#282a36","editor.selectionBackground":"#2c303c","editor.lineHighlightBackground":"#2c303c","editorCursor.foreground":"#f8f8f0","editorWhitespace.foreground":"#3B3A32","editorIndentGuide.activeBackground":"#9D550FB0","editor.selectionHighlightBorder":"#222218"}},Wz=Object.freeze(Object.defineProperty({__proto__:null,button:DR,json:FR,sourceCode:e=>{const{fieldPathId:t,schema:{title:r,description:i},uiSchema:{"ui:options":a={}}={},formData:n,readonly:o,disabled:s,onChange:l,...u}=e,{language:c="html",height:f="20vh",width:m="100%",theme:d="dracula",...p}=a,k=Rz();V.useEffect(()=>{k&&k.editor.defineTheme("dracula",Kz)});const v=V.useCallback(b=>{if(b!==void 0)if(c==="json")try{l(JSON.parse(b),t.path)}catch{l(null,t.path,{__errors:["Invalid JSON"]})}else l(b,t.path)},[l,t,c]),g=V.useMemo(()=>c==="json"?JSON.stringify(n,null,2):n,[n]);return N.jsxs("div",{className:"form-group",children:[r&&N.jsx("label",{className:"form-label",htmlFor:t.$id,children:r}),N.jsx("div",{className:"wrapper",children:N.jsx(Hz,{id:t.$id,className:pn(["form-control","source-code"]),theme:d,width:m,height:f,defaultLanguage:c,defaultValue:g,onChange:v,options:{fontFamily:"JetBrains Mono",fontLigatures:!0,readOnly:s||o,tabSize:2,minimap:{enabled:!1},...p},...u})}),N.jsx("small",{className:"text-muted form-text",children:N.jsx(Sr,{children:i})})]})}},Symbol.toStringTag,{value:"Module"})),Gz=xL,Jz=(e,t)=>e&&e in po?Ol({},po[e]):t&&t in po?Ol({},po[t]):Ol({},po.en),Yz=(e,t)=>e.map(r=>{var n,o;const i=(n=r.property)==null?void 0:n.replace(/^\./,""),a=(o=t.properties)==null?void 0:o[i];return a!=null&&a.errorMessage&&a.errorMessage[r.name]&&(r.message=a.errorMessage[r.name]),r}),A1=({id:e,templates:t,widgets:r,fields:i,locale:a,fallbackLocale:n,validator:o,className:s,embedFormOptions:l={},rjsfTheme:u,...c})=>{const{theme:f}=l;Wd(l);const m=V.useMemo(()=>Jz(a,n),[a,n]),[d,p]=V.useState(c.formData);return N.jsx(Gz,{id:e,idPrefix:`root_${e}`,validator:o||m,transformErrors:k=>Yz(k,c.schema),className:pn(["fcode-form",s,{[`theme-${f}`]:f}]),fields:{...Wz,...u==null?void 0:u.fields,...i},templates:{...d1.templates,...u==null?void 0:u.templates,...t},widgets:{...d1.widgets,...u==null?void 0:u.widgets,...r},...c,formData:d,onChange:k=>{c.onChange&&c.onChange(k);const{schema:v,formData:g}=k;if(v!=null&&v.required&&Array.isArray(v.required))for(const b of v.required){const w=(v.properties||{})[b];w&&w.type==="boolean"&&g[b]===!1&&delete g[b]}p(g)}})},x1={theme:"light",loadingOverlayDisabled:!1,loadingOverlayContent:"Sending information...",loadingContent:"Loading form...",locale:"en"},Nd=({hostUrl:e="https://code.factorialhr.com/platform",headers:t,team:r,processId:i,processVersion:a,onNextStep:n=k0,onSuccess:o,keepSuccessView:s=!1,onError:l,markdownComponents:u,defaultValues:c={},async:f=!1,disabled:m=!1,readonly:d=!1,options:p,...k})=>{const[v,g]=V.useState({processId:i,steps:[],variables:{...p&&p.variables}}),[b]=Y1({hostUrl:e,headers:t,team:r,processId:v.processId,processVersion:a,locale:p==null?void 0:p.locale,async:f}),w=V.useMemo(()=>{const U=Bd();return console.log(`Building Factorial Code form with id ${U}`),U},[r,v]),E=V.useMemo(()=>{const U=c||{};return window.location.search?{...U,...Object.fromEntries(new URLSearchParams(window.location.search).entries())}:U},[c]),[h,y]=V.useState(!1),[C,x]=V.useState(E),[_,S]=V.useState({}),[A,O]=V.useState(null),F=V.useCallback(U=>{S({}),y(!0),x(U.formData),b({metadata:{origin:{url:window.location.href,browser:{language:navigator.language,userAgent:navigator.userAgent}},...v.steps.length>0&&{steps:v.steps},...Object.keys(v.variables).length>0&&{variables:v.variables},...p&&p.locale&&{locale:p.locale}},...U.formData}).then(({results:$,resolvedFiles:H})=>{if(x(E),$.nextProcessId){const G=v.steps;G.push({processId:v.processId,data:{...U.formData,...H},result:$}),g({processId:$.nextProcessId,steps:G,variables:{...v.variables,...$.variables}}),n($.nextProcessId,$);return}o?o(w,$,U.formData):(console.log(`Form ${w} has been successfully submitted.`),Oo("fcode-forms-on-submit-success",{formId:w,formSubmittedData:U.formData,processExecutionResult:$})),(!o||s)&&O({kind:"success",message:$.message||w0}),!o&&$.redirect&&b0($.redirect)}).catch($=>{$!=null&&$.formErrors?S(A0($==null?void 0:$.formErrors)):l?l(w,$,U.formData):(console.log(`There has been an error submitting the form ${w}`,$),Oo("fcode-forms-on-submit-error",{formId:w,error:$}),O({kind:"error",message:S0($)}))}).finally(()=>y(!1))},[w,E,o,s,l,b,v]),{loading:T,formSpecs:M,error:q}=X1({hostUrl:e,headers:t,team:r,processId:v.processId,processVersion:a,locale:p==null?void 0:p.locale}),J={...x1,...p};Wd(J),V.useEffect(()=>{q&&(l?l(w,q,{}):(console.log(`There has been an error submitting the form ${w}`,q),Oo("fcode-forms-on-submit-error",{formId:w,error:q})))},[q]);const Y=pn(["fcode-form-wrapper",J.className]);if(T)return N.jsx("div",{className:pn([Y,"fcode-form-loading"]),"data-testid":"fcode-form",children:N.jsx(dm,{active:!0,content:J.loadingContent,children:N.jsx("div",{className:"fcode-form-outer",children:N.jsx(mm,{})})})});if(q||!M)return N.jsx("div",{className:Y,"data-testid":"fcode-form",children:N.jsx("div",{className:"fcode-form-outer",children:N.jsx("p",{className:"fcode-form-error-message","data-testid":"fcode-form-error",children:E0(q)})})});M.schema.embedFormOptions={...x1,...M.schema.embedFormOptions,...p,variables:{...M.schema.embedFormOptions&&M.schema.embedFormOptions.variables,...v.variables,...p&&p.variables}};const Q=ph(M),P=Object.keys(Q.schema.properties||{}),j=Object.fromEntries(Object.entries(C).filter(([U,$])=>P.includes(U)));if(A)return N.jsx("div",{className:pn(["fcode-form-wrapper",Q.embedFormOptions.className]),"data-testid":"fcode-form",children:N.jsx("div",{className:"fcode-form-outer",children:N.jsx("div",{className:pn(["fcode-form-markdown",A.kind==="success"?"fcode-form-success-message":"fcode-form-error-message"]),"data-testid":`fcode-form-${A.kind}-message`,children:N.jsx(Bu,{components:u,children:A.message})})})});const{loadingOverlayDisabled:B,loadingOverlayContent:I,locale:D,fallbackLocale:L}=Q.embedFormOptions;return N.jsx("div",{className:pn(["fcode-form-wrapper",Q.embedFormOptions.className]),"data-testid":"fcode-form",children:N.jsx(dm,{active:h,content:I,disabled:B,children:N.jsx("div",{className:"fcode-form-outer",children:N.jsx(A1,{id:w,schema:Q.schema,uiSchema:Q.uiSchema,embedFormOptions:Q.embedFormOptions,locale:D,fallbackLocale:L,formData:j,onSubmit:F,noHtml5Validate:!0,disabled:m,readonly:d,showErrorList:!1,extraErrors:_,...k})})})})};Nd.displayName="FcodeForm",Xe.FcodeForm=Nd,Xe.FcodeJsonSchemaForm=A1,Xe.buildId=Bd,Xe.default=Nd,Xe.processFormSpecs=ph,Object.defineProperties(Xe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
|
132
145
|
//# sourceMappingURL=fcode-form.umd.js.map
|