@factorialco/fcode-react-forms 3.4.0 → 3.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,62 +1,62 @@
1
- "use strict";var S0=Object.defineProperty;var C0=(e,t,r)=>t in e?S0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var zt=(e,t,r)=>C0(e,typeof t!="symbol"?t+"":t,r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const j=require("react/jsx-runtime"),B=require("react"),_s=require("react-dom");function E0(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 rn=E0(B),sv=(e,t,r)=>`${e}/api/${t}/forms/${r}`,ov=()=>Math.random().toString(36).substring(2,10),A0=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),O0=e=>{if(typeof e!="string")return!1;try{const{protocol:t}=new URL(e);return t==="https:"||t==="http:"}catch{return!1}},_0="Fcode-Version-Tag",P0="Fcode-Locale",am="Fcode-Resolved-Files",lv=e=>e?{[_0]:e}:{},uv=e=>e?{[P0]:e}:{},I0=async({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n,cache:s="force-cache"})=>{const o={...t,...lv(a),...uv(n)},l=await fetch(sv(e,r,i),{cache:s,...Object.keys(o).length>0&&{headers:o}}),u=await l.json();if(l.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(l.ok)return u;throw u},T0=/^data:([^;,]+)?(?:;name=([^;,]+))?(?:;base64)?,(.*)$/,j0=e=>{const t=T0.exec(e);if(!t)return null;const[,r="application/octet-stream",i="file",a]=t,s=e.includes(";base64,")?Uint8Array.from(atob(a),o=>o.charCodeAt(0)):new TextEncoder().encode(decodeURIComponent(a));return{mime:r,name:i,blob:new Blob([s],{type:r})}},R0=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=j0(a);n&&(r.push({key:i,file:new File([n.blob],n.name,{type:n.mime})}),delete t[i])}return{sanitized:t,files:r}},N0=e=>{var r,i;const t=(i=(r=e.headers)==null?void 0:r.get)==null?void 0:i.call(r,am);if(t)try{const a=JSON.parse(t);if(a&&typeof a=="object"&&!Array.isArray(a))return a}catch(a){console.error(`Unexpected ${am} header`,a)}},F0=async({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,async:n,locale:s,formData:o})=>{const{sanitized:l,files:u}=R0(o),c=sv(e,r,i),f={"Fcode-Async":n?"true":"false"},m=lv(a),d=uv(s);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(o)});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:N0(p)};throw k},D0=({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n,async:s=!1})=>{const[o,l]=B.useState(!1),[u,c]=B.useState(void 0),[f,m]=B.useState(void 0),[d,p]=B.useState(void 0),k=B.useCallback(()=>{l(!1),c(void 0),p(void 0),m(void 0)},[]);return[B.useCallback(async g=>{try{m(g),l(!0);const b=await F0({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n,async:s,formData:g});return l(!1),c(b.results),b}catch(b){throw p(b),l(!1),b}},[e,t,r,i,a,n,s]),{loading:o,results:u,error:d,formData:f,reset:k}]},M0=({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n})=>{const[s,o]=B.useState(!0),[l,u]=B.useState(!1),[c,f]=B.useState(),[m,d]=B.useState(),[p,k]=B.useState(0),v=B.useRef(!1),g=JSON.stringify(t??null),b=B.useMemo(()=>t,[g]),w=B.useCallback(()=>{v.current=!0,k(C=>C+1)},[]);return B.useEffect(()=>{let C=!1;const h=v.current;return v.current=!1,h?u(!0):o(!0),d(void 0),I0({hostUrl:e,headers:b,team:r,processId:i,processVersion:a,locale:n,cache:h?"reload":"force-cache"}).then(y=>{C||f(y)}).catch(y=>{if(!C){if(h){console.warn("Reloading the form definition failed; keeping the current form.",y);return}d(y)}}).finally(()=>{C||(o(!1),u(!1))}),()=>{C=!0}},[e,b,r,i,a,n,p]),{loading:s,reloading:l,formSpecs:c,error:m,reload:w}},L0=e=>A0(e)||/^\.{0,2}\//.test(e)&&!/[\s{]/.test(e),q0=e=>{const t=new URL(e,window.location.href).href;return Array.from(document.querySelectorAll('link[rel="stylesheet"]')).some(r=>r.href===t)},$0=e=>{if(q0(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},z0=e=>{const t=document.createElement("style");return t.type="text/css",t.appendChild(document.createTextNode(e)),document.getElementsByTagName("head")[0].appendChild(t),t};function U0({stylesheets:e}){B.useEffect(()=>{const t=e.map(r=>L0(r)?$0(r):z0(r)).filter(r=>r!==void 0);return()=>{t.forEach(r=>{r.remove()})}},[])}function cv(e){const{stylesheet:t,stylesheetBaseUrl:r="https://code.factorialhr.com/sdk",theme:i,themeStylesheet:a}=e,n=B.useMemo(()=>{if(t)return[t];if(i==="none")return[];const s=[`${r}/styles.css`];return a?s.push(a):i&&s.push(`${r}/styles-theme-${i}.css`),s},[t,r,i,a]);U0({stylesheets:n})}function Bo(){return Bo=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},Bo.apply(null,arguments)}function fv(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 Mc(e,t){return Mc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Mc(e,t)}function dv(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Mc(e,t)}function Wr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ps={exports:{}},Is={exports:{}},Ze={};/** @license React v16.13.1
1
+ "use strict";var R0=Object.defineProperty;var N0=(e,t,r)=>t in e?R0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var zt=(e,t,r)=>N0(e,typeof t!="symbol"?t+"":t,r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const j=require("react/jsx-runtime"),U=require("react"),Ts=require("react-dom");function F0(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 rn=F0(U),fv=(e,t,r)=>`${e}/api/${t}/forms/${r}`,dv=()=>Math.random().toString(36).substring(2,10),D0=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),M0=e=>{if(typeof e!="string")return!1;try{const{protocol:t}=new URL(e);return t==="https:"||t==="http:"}catch{return!1}},L0="Fcode-Version-Tag",q0="Fcode-Locale",cm="Fcode-Resolved-Files",mv=e=>e?{[L0]:e}:{},pv=e=>e?{[q0]:e}:{},$0=async({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n,cache:s="force-cache"})=>{const o={...t,...mv(a),...pv(n)},l=await fetch(fv(e,r,i),{cache:s,...Object.keys(o).length>0&&{headers:o}}),u=await l.json();if(l.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(l.ok)return u;throw u},z0=/^data:([^;,]+)?(?:;name=([^;,]+))?(?:;base64)?,(.*)$/,U0=e=>{const t=z0.exec(e);if(!t)return null;const[,r="application/octet-stream",i="file",a]=t,s=e.includes(";base64,")?Uint8Array.from(atob(a),o=>o.charCodeAt(0)):new TextEncoder().encode(decodeURIComponent(a));return{mime:r,name:i,blob:new Blob([s],{type:r})}},B0=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=U0(a);n&&(r.push({key:i,file:new File([n.blob],n.name,{type:n.mime})}),delete t[i])}return{sanitized:t,files:r}},V0=e=>{var r,i;const t=(i=(r=e.headers)==null?void 0:r.get)==null?void 0:i.call(r,cm);if(t)try{const a=JSON.parse(t);if(a&&typeof a=="object"&&!Array.isArray(a))return a}catch(a){console.error(`Unexpected ${cm} header`,a)}},H0=async({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,async:n,locale:s,formData:o})=>{const{sanitized:l,files:u}=B0(o),c=fv(e,r,i),f={"Fcode-Async":n?"true":"false"},m=mv(a),d=pv(s);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(o)});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:V0(p)};throw k},W0=({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n,async:s=!1})=>{const[o,l]=U.useState(!1),[u,c]=U.useState(void 0),[f,m]=U.useState(void 0),[d,p]=U.useState(void 0),k=U.useCallback(()=>{l(!1),c(void 0),p(void 0),m(void 0)},[]);return[U.useCallback(async g=>{try{m(g),l(!0);const b=await H0({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n,async:s,formData:g});return l(!1),c(b.results),b}catch(b){throw p(b),l(!1),b}},[e,t,r,i,a,n,s]),{loading:o,results:u,error:d,formData:f,reset:k}]},K0=({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n})=>{const[s,o]=U.useState(!0),[l,u]=U.useState(!1),[c,f]=U.useState(),[m,d]=U.useState(),[p,k]=U.useState(0),v=U.useRef(!1),g=JSON.stringify(t??null),b=U.useMemo(()=>t,[g]),w=U.useCallback(x=>{v.current!=="visible"&&(v.current=x!=null&&x.silent?"silent":"visible"),k(h=>h+1)},[]);return U.useEffect(()=>{let x=!1;const h=v.current!==!1,y=v.current==="silent";return v.current=!1,h?y||u(!0):o(!0),d(void 0),$0({hostUrl:e,headers:b,team:r,processId:i,processVersion:a,locale:n,cache:h?"reload":"force-cache"}).then(S=>{x||f(S)}).catch(S=>{if(!x){if(h){console.warn("Reloading the form definition failed; keeping the current form.",S);return}d(S)}}).finally(()=>{x||(o(!1),u(!1))}),()=>{x=!0}},[e,b,r,i,a,n,p]),{loading:s,reloading:l,formSpecs:c,error:m,reload:w}},G0=e=>D0(e)||/^\.{0,2}\//.test(e)&&!/[\s{]/.test(e),J0=e=>{const t=new URL(e,window.location.href).href;return Array.from(document.querySelectorAll('link[rel="stylesheet"]')).some(r=>r.href===t)},Y0=e=>{if(J0(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},X0=e=>{const t=document.createElement("style");return t.type="text/css",t.appendChild(document.createTextNode(e)),document.getElementsByTagName("head")[0].appendChild(t),t};function Z0({stylesheets:e}){U.useEffect(()=>{const t=e.map(r=>G0(r)?Y0(r):X0(r)).filter(r=>r!==void 0);return()=>{t.forEach(r=>{r.remove()})}},[])}function hv(e){const{stylesheet:t,stylesheetBaseUrl:r="https://code.factorialhr.com/sdk",theme:i,themeStylesheet:a}=e,n=U.useMemo(()=>{if(t)return[t];if(i==="none")return[];const s=[`${r}/styles.css`];return a?s.push(a):i&&s.push(`${r}/styles-theme-${i}.css`),s},[t,r,i,a]);Z0({stylesheets:n})}function Ko(){return Ko=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},Ko.apply(null,arguments)}function gv(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 Uc(e,t){return Uc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Uc(e,t)}function yv(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Uc(e,t)}function Kr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var js={exports:{}},Rs={exports:{}},Ze={};/** @license React v16.13.1
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
5
5
  *
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
- */var sm;function B0(){if(sm)return Ze;sm=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,s=e?Symbol.for("react.provider"):60109,o=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 o:case c:case p:case d:case s:return h;default:return y}}case r:return y}}}function C(h){return w(h)===u}return Ze.AsyncMode=l,Ze.ConcurrentMode=u,Ze.ContextConsumer=o,Ze.ContextProvider=s,Ze.Element=t,Ze.ForwardRef=c,Ze.Fragment=i,Ze.Lazy=p,Ze.Memo=d,Ze.Portal=r,Ze.Profiler=n,Ze.StrictMode=a,Ze.Suspense=f,Ze.isAsyncMode=function(h){return C(h)||w(h)===l},Ze.isConcurrentMode=C,Ze.isContextConsumer=function(h){return w(h)===o},Ze.isContextProvider=function(h){return w(h)===s},Ze.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===t},Ze.isForwardRef=function(h){return w(h)===c},Ze.isFragment=function(h){return w(h)===i},Ze.isLazy=function(h){return w(h)===p},Ze.isMemo=function(h){return w(h)===d},Ze.isPortal=function(h){return w(h)===r},Ze.isProfiler=function(h){return w(h)===n},Ze.isStrictMode=function(h){return w(h)===a},Ze.isSuspense=function(h){return w(h)===f},Ze.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===s||h.$$typeof===o||h.$$typeof===c||h.$$typeof===v||h.$$typeof===g||h.$$typeof===b||h.$$typeof===k)},Ze.typeOf=w,Ze}var Qe={};/** @license React v16.13.1
8
+ */var fm;function Q0(){if(fm)return Ze;fm=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,s=e?Symbol.for("react.provider"):60109,o=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 o:case c:case p:case d:case s:return h;default:return y}}case r:return y}}}function x(h){return w(h)===u}return Ze.AsyncMode=l,Ze.ConcurrentMode=u,Ze.ContextConsumer=o,Ze.ContextProvider=s,Ze.Element=t,Ze.ForwardRef=c,Ze.Fragment=i,Ze.Lazy=p,Ze.Memo=d,Ze.Portal=r,Ze.Profiler=n,Ze.StrictMode=a,Ze.Suspense=f,Ze.isAsyncMode=function(h){return x(h)||w(h)===l},Ze.isConcurrentMode=x,Ze.isContextConsumer=function(h){return w(h)===o},Ze.isContextProvider=function(h){return w(h)===s},Ze.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===t},Ze.isForwardRef=function(h){return w(h)===c},Ze.isFragment=function(h){return w(h)===i},Ze.isLazy=function(h){return w(h)===p},Ze.isMemo=function(h){return w(h)===d},Ze.isPortal=function(h){return w(h)===r},Ze.isProfiler=function(h){return w(h)===n},Ze.isStrictMode=function(h){return w(h)===a},Ze.isSuspense=function(h){return w(h)===f},Ze.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===s||h.$$typeof===o||h.$$typeof===c||h.$$typeof===v||h.$$typeof===g||h.$$typeof===b||h.$$typeof===k)},Ze.typeOf=w,Ze}var Qe={};/** @license React v16.13.1
9
9
  * react-is.development.js
10
10
  *
11
11
  * Copyright (c) Facebook, Inc. and its affiliates.
12
12
  *
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
- */var om;function V0(){return om||(om=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,s=e?Symbol.for("react.provider"):60109,o=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(q){return typeof q=="string"||typeof q=="function"||q===i||q===u||q===n||q===a||q===f||q===m||typeof q=="object"&&q!==null&&(q.$$typeof===p||q.$$typeof===d||q.$$typeof===s||q.$$typeof===o||q.$$typeof===c||q.$$typeof===v||q.$$typeof===g||q.$$typeof===b||q.$$typeof===k)}function C(q){if(typeof q=="object"&&q!==null){var G=q.$$typeof;switch(G){case t:var W=q.type;switch(W){case l:case u:case i:case n:case a:case f:return W;default:var ie=W&&W.$$typeof;switch(ie){case o:case c:case p:case d:case s:return ie;default:return G}}case r:return G}}}var h=l,y=u,S=o,A=s,_=t,x=c,E=i,O=p,R=d,T=r,D=n,L=a,J=f,X=!1;function Z(q){return X||(X=!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(q)||C(q)===l}function P(q){return C(q)===u}function F(q){return C(q)===o}function z(q){return C(q)===s}function I(q){return typeof q=="object"&&q!==null&&q.$$typeof===t}function N(q){return C(q)===c}function M(q){return C(q)===i}function U(q){return C(q)===p}function V(q){return C(q)===d}function H(q){return C(q)===r}function K(q){return C(q)===n}function Y(q){return C(q)===a}function $(q){return C(q)===f}Qe.AsyncMode=h,Qe.ConcurrentMode=y,Qe.ContextConsumer=S,Qe.ContextProvider=A,Qe.Element=_,Qe.ForwardRef=x,Qe.Fragment=E,Qe.Lazy=O,Qe.Memo=R,Qe.Portal=T,Qe.Profiler=D,Qe.StrictMode=L,Qe.Suspense=J,Qe.isAsyncMode=Z,Qe.isConcurrentMode=P,Qe.isContextConsumer=F,Qe.isContextProvider=z,Qe.isElement=I,Qe.isForwardRef=N,Qe.isFragment=M,Qe.isLazy=U,Qe.isMemo=V,Qe.isPortal=H,Qe.isProfiler=K,Qe.isStrictMode=Y,Qe.isSuspense=$,Qe.isValidElementType=w,Qe.typeOf=C})()),Qe}var lm;function mv(){return lm||(lm=1,process.env.NODE_ENV==="production"?Is.exports=B0():Is.exports=V0()),Is.exports}/*
15
+ */var dm;function ew(){return dm||(dm=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,s=e?Symbol.for("react.provider"):60109,o=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(q){return typeof q=="string"||typeof q=="function"||q===i||q===u||q===n||q===a||q===f||q===m||typeof q=="object"&&q!==null&&(q.$$typeof===p||q.$$typeof===d||q.$$typeof===s||q.$$typeof===o||q.$$typeof===c||q.$$typeof===v||q.$$typeof===g||q.$$typeof===b||q.$$typeof===k)}function x(q){if(typeof q=="object"&&q!==null){var J=q.$$typeof;switch(J){case t:var G=q.type;switch(G){case l:case u:case i:case n:case a:case f:return G;default:var ie=G&&G.$$typeof;switch(ie){case o:case c:case p:case d:case s:return ie;default:return J}}case r:return J}}}var h=l,y=u,S=o,A=s,_=t,C=c,E=i,O=p,R=d,T=r,D=n,L=a,H=f,Y=!1;function Z(q){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(q)||x(q)===l}function P(q){return x(q)===u}function F(q){return x(q)===o}function z(q){return x(q)===s}function I(q){return typeof q=="object"&&q!==null&&q.$$typeof===t}function N(q){return x(q)===c}function M(q){return x(q)===i}function B(q){return x(q)===p}function V(q){return x(q)===d}function W(q){return x(q)===r}function K(q){return x(q)===n}function X(q){return x(q)===a}function $(q){return x(q)===f}Qe.AsyncMode=h,Qe.ConcurrentMode=y,Qe.ContextConsumer=S,Qe.ContextProvider=A,Qe.Element=_,Qe.ForwardRef=C,Qe.Fragment=E,Qe.Lazy=O,Qe.Memo=R,Qe.Portal=T,Qe.Profiler=D,Qe.StrictMode=L,Qe.Suspense=H,Qe.isAsyncMode=Z,Qe.isConcurrentMode=P,Qe.isContextConsumer=F,Qe.isContextProvider=z,Qe.isElement=I,Qe.isForwardRef=N,Qe.isFragment=M,Qe.isLazy=B,Qe.isMemo=V,Qe.isPortal=W,Qe.isProfiler=K,Qe.isStrictMode=X,Qe.isSuspense=$,Qe.isValidElementType=w,Qe.typeOf=x})()),Qe}var mm;function vv(){return mm||(mm=1,process.env.NODE_ENV==="production"?Rs.exports=Q0():Rs.exports=ew()),Rs.exports}/*
16
16
  object-assign
17
17
  (c) Sindre Sorhus
18
18
  @license MIT
19
- */var Yl,um;function H0(){if(um)return Yl;um=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 s={},o=0;o<10;o++)s["_"+String.fromCharCode(o)]=o;var l=Object.getOwnPropertyNames(s).map(function(c){return s[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 Yl=a()?Object.assign:function(n,s){for(var o,l=i(n),u,c=1;c<arguments.length;c++){o=Object(arguments[c]);for(var f in o)t.call(o,f)&&(l[f]=o[f]);if(e){u=e(o);for(var m=0;m<u.length;m++)r.call(o,u[m])&&(l[u[m]]=o[u[m]])}}return l},Yl}var Xl,cm;function Rf(){if(cm)return Xl;cm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Xl=e,Xl}var Zl,fm;function pv(){return fm||(fm=1,Zl=Function.call.bind(Object.prototype.hasOwnProperty)),Zl}var Ql,dm;function K0(){if(dm)return Ql;dm=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Rf(),r={},i=pv();e=function(n){var s="Warning: "+n;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function a(n,s,o,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")+": "+o+" 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](s,c,l,o,null,t)}catch(p){f=p}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+o+" `"+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 "+o+" type: "+f.message+(d??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Ql=a,Ql}var eu,mm;function W0(){if(mm)return eu;mm=1;var e=mv(),t=H0(),r=Rf(),i=pv(),a=K0(),n=function(){};process.env.NODE_ENV!=="production"&&(n=function(o){var l="Warning: "+o;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function s(){return null}return eu=function(o,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(P){var F=P&&(u&&P[u]||P[c]);if(typeof F=="function")return F}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:C(),elementType:h(),instanceOf:y,node:x(),objectOf:A,oneOf:S,oneOfType:_,shape:O,exact:R};function p(P,F){return P===F?P!==0||1/P===1/F:P!==P&&F!==F}function k(P,F){this.message=P,this.data=F&&typeof F=="object"?F:{},this.stack=""}k.prototype=Error.prototype;function v(P){if(process.env.NODE_ENV!=="production")var F={},z=0;function I(M,U,V,H,K,Y,$){if(H=H||m,Y=Y||V,$!==r){if(l){var q=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 q.name="Invariant Violation",q}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var G=H+":"+V;!F[G]&&z<3&&(n("You are manually calling a React.PropTypes validation function for the `"+Y+"` 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."),F[G]=!0,z++)}}return U[V]==null?M?U[V]===null?new k("The "+K+" `"+Y+"` is marked as required "+("in `"+H+"`, but its value is `null`.")):new k("The "+K+" `"+Y+"` is marked as required in "+("`"+H+"`, but its value is `undefined`.")):null:P(U,V,H,K,Y)}var N=I.bind(null,!1);return N.isRequired=I.bind(null,!0),N}function g(P){function F(z,I,N,M,U,V){var H=z[I],K=L(H);if(K!==P){var Y=J(H);return new k("Invalid "+M+" `"+U+"` of type "+("`"+Y+"` supplied to `"+N+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return v(F)}function b(){return v(s)}function w(P){function F(z,I,N,M,U){if(typeof P!="function")return new k("Property `"+U+"` of component `"+N+"` has invalid PropType notation inside arrayOf.");var V=z[I];if(!Array.isArray(V)){var H=L(V);return new k("Invalid "+M+" `"+U+"` of type "+("`"+H+"` supplied to `"+N+"`, expected an array."))}for(var K=0;K<V.length;K++){var Y=P(V,K,N,M,U+"["+K+"]",r);if(Y instanceof Error)return Y}return null}return v(F)}function C(){function P(F,z,I,N,M){var U=F[z];if(!o(U)){var V=L(U);return new k("Invalid "+N+" `"+M+"` of type "+("`"+V+"` supplied to `"+I+"`, expected a single ReactElement."))}return null}return v(P)}function h(){function P(F,z,I,N,M){var U=F[z];if(!e.isValidElementType(U)){var V=L(U);return new k("Invalid "+N+" `"+M+"` of type "+("`"+V+"` supplied to `"+I+"`, expected a single ReactElement type."))}return null}return v(P)}function y(P){function F(z,I,N,M,U){if(!(z[I]instanceof P)){var V=P.name||m,H=Z(z[I]);return new k("Invalid "+M+" `"+U+"` of type "+("`"+H+"` supplied to `"+N+"`, expected ")+("instance of `"+V+"`."))}return null}return v(F)}function S(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.")),s;function F(z,I,N,M,U){for(var V=z[I],H=0;H<P.length;H++)if(p(V,P[H]))return null;var K=JSON.stringify(P,function($,q){var G=J(q);return G==="symbol"?String(q):q});return new k("Invalid "+M+" `"+U+"` of value `"+String(V)+"` "+("supplied to `"+N+"`, expected one of "+K+"."))}return v(F)}function A(P){function F(z,I,N,M,U){if(typeof P!="function")return new k("Property `"+U+"` of component `"+N+"` has invalid PropType notation inside objectOf.");var V=z[I],H=L(V);if(H!=="object")return new k("Invalid "+M+" `"+U+"` of type "+("`"+H+"` supplied to `"+N+"`, expected an object."));for(var K in V)if(i(V,K)){var Y=P(V,K,N,M,U+"."+K,r);if(Y instanceof Error)return Y}return null}return v(F)}function _(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&n("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var F=0;F<P.length;F++){var z=P[F];if(typeof z!="function")return n("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+X(z)+" at index "+F+"."),s}function I(N,M,U,V,H){for(var K=[],Y=0;Y<P.length;Y++){var $=P[Y],q=$(N,M,U,V,H,r);if(q==null)return null;q.data&&i(q.data,"expectedType")&&K.push(q.data.expectedType)}var G=K.length>0?", expected one of type ["+K.join(", ")+"]":"";return new k("Invalid "+V+" `"+H+"` supplied to "+("`"+U+"`"+G+"."))}return v(I)}function x(){function P(F,z,I,N,M){return T(F[z])?null:new k("Invalid "+N+" `"+M+"` supplied to "+("`"+I+"`, expected a ReactNode."))}return v(P)}function E(P,F,z,I,N){return new k((P||"React class")+": "+F+" type `"+z+"."+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+N+"`.")}function O(P){function F(z,I,N,M,U){var V=z[I],H=L(V);if(H!=="object")return new k("Invalid "+M+" `"+U+"` of type `"+H+"` "+("supplied to `"+N+"`, expected `object`."));for(var K in P){var Y=P[K];if(typeof Y!="function")return E(N,M,U,K,J(Y));var $=Y(V,K,N,M,U+"."+K,r);if($)return $}return null}return v(F)}function R(P){function F(z,I,N,M,U){var V=z[I],H=L(V);if(H!=="object")return new k("Invalid "+M+" `"+U+"` of type `"+H+"` "+("supplied to `"+N+"`, expected `object`."));var K=t({},z[I],P);for(var Y in K){var $=P[Y];if(i(P,Y)&&typeof $!="function")return E(N,M,U,Y,J($));if(!$)return new k("Invalid "+M+" `"+U+"` key `"+Y+"` supplied to `"+N+"`.\nBad object: "+JSON.stringify(z[I],null," ")+`
20
- Valid keys: `+JSON.stringify(Object.keys(P),null," "));var q=$(V,Y,N,M,U+"."+Y,r);if(q)return q}return null}return v(F)}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||o(P))return!0;var F=f(P);if(F){var z=F.call(P),I;if(F!==P.entries){for(;!(I=z.next()).done;)if(!T(I.value))return!1}else for(;!(I=z.next()).done;){var N=I.value;if(N&&!T(N[1]))return!1}}else return!1;return!0;default:return!1}}function D(P,F){return P==="symbol"?!0:F?F["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&F instanceof Symbol:!1}function L(P){var F=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":D(F,P)?"symbol":F}function J(P){if(typeof P>"u"||P===null)return""+P;var F=L(P);if(F==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return F}function X(P){var F=J(P);switch(F){case"array":case"object":return"an "+F;case"boolean":case"date":case"regexp":return"a "+F;default:return F}}function Z(P){return!P.constructor||!P.constructor.name?m:P.constructor.name}return d.checkPropTypes=a,d.resetWarningCache=a.resetWarningCache,d.PropTypes=d,d},eu}var tu,pm;function G0(){if(pm)return tu;pm=1;var e=Rf();function t(){}function r(){}return r.resetWarningCache=t,tu=function(){function i(s,o,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},tu}var hm;function J0(){if(hm)return Ps.exports;if(hm=1,process.env.NODE_ENV!=="production"){var e=mv(),t=!0;Ps.exports=W0()(e.isElement,t)}else Ps.exports=G0()();return Ps.exports}var Y0=J0();const Ce=Wr(Y0);function X0(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Z0(e,t){e.classList?e.classList.add(t):X0(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function gm(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Q0(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=gm(e.className,t):e.setAttribute("class",gm(e.className&&e.className.baseVal||"",t))}const ym={disabled:!1};var ew=process.env.NODE_ENV!=="production"?Ce.oneOfType([Ce.number,Ce.shape({enter:Ce.number,exit:Ce.number,appear:Ce.number}).isRequired]):null,tw=process.env.NODE_ENV!=="production"?Ce.oneOfType([Ce.string,Ce.shape({enter:Ce.string,exit:Ce.string,active:Ce.string}),Ce.shape({enter:Ce.string,enterDone:Ce.string,enterActive:Ce.string,exit:Ce.string,exitDone:Ce.string,exitActive:Ce.string})]):null;const hv=B.createContext(null);var gv=function(t){return t.scrollTop},Ia="unmounted",ti="exited",ri="entering",Fi="entered",Lc="exiting",Gr=(function(e){dv(t,e);function t(i,a){var n;n=e.call(this,i,a)||this;var s=a,o=s&&!s.isMounting?i.enter:i.appear,l;return n.appearStatus=null,i.in?o?(l=ti,n.appearStatus=ri):l=Fi:i.unmountOnExit||i.mountOnEnter?l=Ia:l=ti,n.state={status:l},n.nextCallback=null,n}t.getDerivedStateFromProps=function(a,n){var s=a.in;return s&&n.status===Ia?{status:ti}: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 s=this.state.status;this.props.in?s!==ri&&s!==Fi&&(n=ri):(s===ri||s===Fi)&&(n=Lc)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,n,s,o;return n=s=o=a,a!=null&&typeof a!="number"&&(n=a.exit,s=a.enter,o=a.appear!==void 0?a.appear:s),{exit:n,enter:s,appear:o}},r.updateStatus=function(a,n){if(a===void 0&&(a=!1),n!==null)if(this.cancelNextCallback(),n===ri){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:_s.findDOMNode(this);s&&gv(s)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ti&&this.setState({status:Ia})},r.performEnter=function(a){var n=this,s=this.props.enter,o=this.context?this.context.isMounting:a,l=this.props.nodeRef?[o]:[_s.findDOMNode(this),o],u=l[0],c=l[1],f=this.getTimeouts(),m=o?f.appear:f.enter;if(!a&&!s||ym.disabled){this.safeSetState({status:Fi},function(){n.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:ri},function(){n.props.onEntering(u,c),n.onTransitionEnd(m,function(){n.safeSetState({status:Fi},function(){n.props.onEntered(u,c)})})})},r.performExit=function(){var a=this,n=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:_s.findDOMNode(this);if(!n||ym.disabled){this.safeSetState({status:ti},function(){a.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:Lc},function(){a.props.onExiting(o),a.onTransitionEnd(s.exit,function(){a.safeSetState({status:ti},function(){a.props.onExited(o)})})})},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,s=!0;return this.nextCallback=function(o){s&&(s=!1,n.nextCallback=null,a(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(a,n){this.setNextCallback(n);var s=this.props.nodeRef?this.props.nodeRef.current:_s.findDOMNode(this),o=a==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,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===Ia)return null;var n=this.props,s=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 o=fv(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return B.createElement(hv.Provider,{value:null},typeof s=="function"?s(a,o):B.cloneElement(B.Children.only(s),o))},t})(B.Component);Gr.contextType=hv;Gr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:Ce.shape({current:typeof Element>"u"?Ce.any:function(e,t,r,i,a,n){var s=e[t];return Ce.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,r,i,a,n)}}),children:Ce.oneOfType([Ce.func.isRequired,Ce.element.isRequired]).isRequired,in:Ce.bool,mountOnEnter:Ce.bool,unmountOnExit:Ce.bool,appear:Ce.bool,enter:Ce.bool,exit:Ce.bool,timeout:function(t){var r=ew;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:Ce.func,onEnter:Ce.func,onEntering:Ce.func,onEntered:Ce.func,onExit:Ce.func,onExiting:Ce.func,onExited:Ce.func}:{};function _i(){}Gr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_i,onEntering:_i,onEntered:_i,onExit:_i,onExiting:_i,onExited:_i};Gr.UNMOUNTED=Ia;Gr.EXITED=ti;Gr.ENTERING=ri;Gr.ENTERED=Fi;Gr.EXITING=Lc;var rw=function(t,r){return t&&r&&r.split(" ").forEach(function(i){return Z0(t,i)})},ru=function(t,r){return t&&r&&r.split(" ").forEach(function(i){return Q0(t,i)})},Nf=(function(e){dv(t,e);function t(){for(var i,a=arguments.length,n=new Array(a),s=0;s<a;s++)n[s]=arguments[s];return i=e.call.apply(e,[this].concat(n))||this,i.appliedClasses={appear:{},enter:{},exit:{}},i.onEnter=function(o,l){var u=i.resolveArguments(o,l),c=u[0],f=u[1];i.removeClasses(c,"exit"),i.addClass(c,f?"appear":"enter","base"),i.props.onEnter&&i.props.onEnter(o,l)},i.onEntering=function(o,l){var u=i.resolveArguments(o,l),c=u[0],f=u[1],m=f?"appear":"enter";i.addClass(c,m,"active"),i.props.onEntering&&i.props.onEntering(o,l)},i.onEntered=function(o,l){var u=i.resolveArguments(o,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(o,l)},i.onExit=function(o){var l=i.resolveArguments(o),u=l[0];i.removeClasses(u,"appear"),i.removeClasses(u,"enter"),i.addClass(u,"exit","base"),i.props.onExit&&i.props.onExit(o)},i.onExiting=function(o){var l=i.resolveArguments(o),u=l[0];i.addClass(u,"exit","active"),i.props.onExiting&&i.props.onExiting(o)},i.onExited=function(o){var l=i.resolveArguments(o),u=l[0];i.removeClasses(u,"exit"),i.addClass(u,"exit","done"),i.props.onExited&&i.props.onExited(o)},i.resolveArguments=function(o,l){return i.props.nodeRef?[i.props.nodeRef.current,o]:[o,l]},i.getClassNames=function(o){var l=i.props.classNames,u=typeof l=="string",c=u&&l?l+"-":"",f=u?""+c+o:l[o],m=u?f+"-active":l[o+"Active"],d=u?f+"-done":l[o+"Done"];return{baseClassName:f,activeClassName:m,doneClassName:d}},i}var r=t.prototype;return r.addClass=function(a,n,s){var o=this.getClassNames(n)[s+"ClassName"],l=this.getClassNames("enter"),u=l.doneClassName;n==="appear"&&s==="done"&&u&&(o+=" "+u),s==="active"&&a&&gv(a),o&&(this.appliedClasses[n][s]=o,rw(a,o))},r.removeClasses=function(a,n){var s=this.appliedClasses[n],o=s.base,l=s.active,u=s.done;this.appliedClasses[n]={},o&&ru(a,o),l&&ru(a,l),u&&ru(a,u)},r.render=function(){var a=this.props;a.classNames;var n=fv(a,["classNames"]);return B.createElement(Gr,Bo({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(B.Component);Nf.defaultProps={classNames:""};Nf.propTypes=process.env.NODE_ENV!=="production"?Bo({},Gr.propTypes,{classNames:tw,onEnter:Ce.func,onEntering:Ce.func,onEntered:Ce.func,onExit:Ce.func,onExiting:Ce.func,onExited:Ce.func}):{};const nw=Nf,vm=({active:e,children:t,content:r,disabled:i})=>{const a=B.useRef(null);return i?j.jsx(j.Fragment,{children:t}):j.jsxs("div",{className:"fcode-loading-overlay-root",children:[t,j.jsx(nw,{nodeRef:a,in:e,timeout:200,unmountOnExit:!0,classNames:"fcode-loading-overlay",children:j.jsx("div",{ref:a,"data-testid":"overlay",className:"fcode-loading-overlay",children:j.jsxs("div",{className:"fcode-loading-overlay-content-wrapper",children:[j.jsx("div",{"data-testid":"spinner",className:"fcode-loading-overlay-spinner",children:j.jsx("svg",{viewBox:"25 25 50 50",children:j.jsx("circle",{cx:"50",cy:"50",r:"20",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"})})}),r&&j.jsx("p",{"data-testid":"content",className:"fcode-loading-overlay-content",children:r})]})})})]})},iw=["first","second"],yv=()=>j.jsxs("div",{className:"fcode-form-skeleton","data-testid":"fcode-form-skeleton","aria-hidden":"true",children:[j.jsx("div",{className:"fcode-form-skeleton-title"}),j.jsx("div",{className:"fcode-form-skeleton-description"}),iw.map(e=>j.jsxs("div",{className:"fcode-form-skeleton-group",children:[j.jsx("div",{className:"fcode-form-skeleton-label"}),j.jsx("div",{className:"fcode-form-skeleton-field"})]},e)),j.jsx("div",{className:"fcode-form-skeleton-button"})]});yv.displayName="FormSkeleton";const To=(e,t)=>{const r=new CustomEvent(e,{detail:t});document.dispatchEvent(r)},aw=e=>{try{const t=new URL(e,window.location.href);return t.protocol==="http:"||t.protocol==="https:"?t.href:null}catch{return null}},sw=(e,t=r=>window.location.assign(r))=>{const r=aw(e.url);if(r===null){console.warn(`Ignoring redirect to unsupported URL: ${e.url}`);return}setTimeout(()=>t(r),e.timeout||0)},ow=(e,t)=>{To("fcode-forms-on-next-step",{formId:e,previousProcessExecutionResult:t})},lw="The form has been successfully submitted",bm="There has been an error submitting the form",vv=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 bm}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:bm},uw="The form couldn't be loaded",cw=e=>{if(typeof e=="string"&&e)return e;const t=e==null?void 0:e.message;return typeof t=="string"&&t?t:uw},bv=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]=bv(e[t]);break}return e},fw=e=>{let t={};return e.fields&&(t={...bv(e.fields)}),e.global&&(t.__errors=[...e.global]),t};function dw(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const mw=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,pw=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,hw={};function km(e,t){return(hw.jsx?pw:mw).test(e)}const gw=/[ \t\n\f\r]/g;function yw(e){return typeof e=="object"?e.type==="text"?wm(e.value):!1:wm(e)}function wm(e){return e.replace(gw,"")===""}class is{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}}is.prototype.normal={};is.prototype.property={};is.prototype.space=void 0;function kv(e,t){const r={},i={};for(const a of e)Object.assign(r,a.property),Object.assign(i,a.normal);return new is(r,i,t)}function qc(e){return e.toLowerCase()}class Zt{constructor(t,r){this.attribute=r,this.property=t}}Zt.prototype.attribute="";Zt.prototype.booleanish=!1;Zt.prototype.boolean=!1;Zt.prototype.commaOrSpaceSeparated=!1;Zt.prototype.commaSeparated=!1;Zt.prototype.defined=!1;Zt.prototype.mustUseProperty=!1;Zt.prototype.number=!1;Zt.prototype.overloadedBoolean=!1;Zt.prototype.property="";Zt.prototype.spaceSeparated=!1;Zt.prototype.space=void 0;let vw=0;const Se=vi(),Ot=vi(),$c=vi(),oe=vi(),ft=vi(),ai=vi(),tr=vi();function vi(){return 2**++vw}const zc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Se,booleanish:Ot,commaOrSpaceSeparated:tr,commaSeparated:ai,number:oe,overloadedBoolean:$c,spaceSeparated:ft},Symbol.toStringTag,{value:"Module"})),nu=Object.keys(zc);class Ff extends Zt{constructor(t,r,i,a){let n=-1;if(super(t,r),xm(this,"space",a),typeof i=="number")for(;++n<nu.length;){const s=nu[n];xm(this,nu[n],(i&zc[s])===zc[s])}}}Ff.prototype.defined=!0;function xm(e,t,r){r&&(e[t]=r)}function ia(e){const t={},r={};for(const[i,a]of Object.entries(e.properties)){const n=new Ff(i,e.transform(e.attributes||{},i),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(n.mustUseProperty=!0),t[i]=n,r[qc(i)]=i,r[qc(n.attribute)]=i}return new is(t,r,e.space)}const wv=ia({properties:{ariaActiveDescendant:null,ariaAtomic:Ot,ariaAutoComplete:null,ariaBusy:Ot,ariaChecked:Ot,ariaColCount:oe,ariaColIndex:oe,ariaColSpan:oe,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:oe,ariaLive:null,ariaModal:Ot,ariaMultiLine:Ot,ariaMultiSelectable:Ot,ariaOrientation:null,ariaOwns:ft,ariaPlaceholder:null,ariaPosInSet:oe,ariaPressed:Ot,ariaReadOnly:Ot,ariaRelevant:null,ariaRequired:Ot,ariaRoleDescription:ft,ariaRowCount:oe,ariaRowIndex:oe,ariaRowSpan:oe,ariaSelected:Ot,ariaSetSize:oe,ariaSort:null,ariaValueMax:oe,ariaValueMin:oe,ariaValueNow:oe,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function xv(e,t){return t in e?e[t]:t}function Sv(e,t){return xv(e,t.toLowerCase())}const bw=ia({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ai,acceptCharset:ft,accessKey:ft,action:null,allow:null,allowFullScreen:Se,allowPaymentRequest:Se,allowUserMedia:Se,alpha:Se,alt:null,as:null,async:Se,autoCapitalize:null,autoComplete:ft,autoFocus:Se,autoPlay:Se,blocking:ft,capture:null,charSet:null,checked:Se,cite:null,className:ft,closedBy:null,colorSpace:null,cols:oe,colSpan:oe,command:null,commandFor:null,content:null,contentEditable:Ot,controls:Se,controlsList:ft,coords:oe|ai,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Se,defer:Se,dir:null,dirName:null,disabled:Se,download:$c,draggable:Ot,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Se,formTarget:null,headers:ft,height:oe,hidden:$c,high:oe,href:null,hrefLang:null,htmlFor:ft,httpEquiv:ft,id:null,imageSizes:null,imageSrcSet:null,inert:Se,inputMode:null,integrity:null,is:null,isMap:Se,itemId:null,itemProp:ft,itemRef:ft,itemScope:Se,itemType:ft,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Se,low:oe,manifest:null,max:null,maxLength:oe,media:null,method:null,min:null,minLength:oe,multiple:Se,muted:Se,name:null,nonce:null,noModule:Se,noValidate:Se,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:Se,optimum:oe,pattern:null,ping:ft,placeholder:null,playsInline:Se,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Se,referrerPolicy:null,rel:ft,required:Se,reversed:Se,rows:oe,rowSpan:oe,sandbox:ft,scope:null,scoped:Se,seamless:Se,selected:Se,shadowRootClonable:Se,shadowRootCustomElementRegistry:Se,shadowRootDelegatesFocus:Se,shadowRootMode:null,shadowRootSerializable:Se,shape:null,size:oe,sizes:null,slot:null,span:oe,spellCheck:Ot,src:null,srcDoc:null,srcLang:null,srcSet:null,start:oe,step:null,style:null,tabIndex:oe,target:null,title:null,translate:null,type:null,typeMustMatch:Se,useMap:null,value:Ot,width:oe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ft,axis:null,background:null,bgColor:null,border:oe,borderColor:null,bottomMargin:oe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Se,declare:Se,event:null,face:null,frame:null,frameBorder:null,hSpace:oe,leftMargin:oe,link:null,longDesc:null,lowSrc:null,marginHeight:oe,marginWidth:oe,noResize:Se,noHref:Se,noShade:Se,noWrap:Se,object:null,profile:null,prompt:null,rev:null,rightMargin:oe,rules:null,scheme:null,scrolling:Ot,standby:null,summary:null,text:null,topMargin:oe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:oe,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Se,disablePictureInPicture:Se,disableRemotePlayback:Se,exportParts:ai,part:ft,prefix:null,property:null,results:oe,security:null,unselectable:null},space:"html",transform:Sv}),kw=ia({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:tr,accentHeight:oe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:oe,amplitude:oe,arabicForm:null,ascent:oe,attributeName:null,attributeType:null,azimuth:oe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:oe,by:null,calcMode:null,capHeight:oe,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:oe,diffuseConstant:oe,direction:null,display:null,dur:null,divisor:oe,dominantBaseline:null,download:Se,dx:null,dy:null,edgeMode:null,editable:null,elevation:oe,enableBackground:null,end:null,event:null,exponent:oe,externalResourcesRequired:null,fill:null,fillOpacity:oe,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:ai,g2:ai,glyphName:ai,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:oe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:oe,horizOriginX:oe,horizOriginY:oe,id:null,ideographic:oe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:oe,k:oe,k1:oe,k2:oe,k3:oe,k4:oe,kernelMatrix:tr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:oe,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:oe,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:oe,overlineThickness:oe,paintOrder:null,panose1:null,path:null,pathLength:oe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ft,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:oe,pointsAtY:oe,pointsAtZ:oe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tr,rev:tr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tr,requiredFeatures:tr,requiredFonts:tr,requiredFormats:tr,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:oe,specularExponent:oe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:oe,strikethroughThickness:oe,string:null,stroke:null,strokeDashArray:tr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:oe,strokeOpacity:oe,strokeWidth:null,style:null,surfaceScale:oe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tr,tabIndex:oe,tableValues:null,target:null,targetX:oe,targetY:oe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:oe,underlineThickness:oe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:oe,values:null,vAlphabetic:oe,vMathematical:oe,vectorEffect:null,vHanging:oe,vIdeographic:oe,version:null,vertAdvY:oe,vertOriginX:oe,vertOriginY:oe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:oe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:xv}),Cv=ia({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()}}),Ev=ia({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Sv}),Av=ia({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),ww={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"},xw=/[A-Z]/g,Sm=/-[a-z]/g,Sw=/^data[-\w.:]+$/i;function Cw(e,t){const r=qc(t);let i=t,a=Zt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Sw.test(t)){if(t.charAt(4)==="-"){const n=t.slice(5).replace(Sm,Aw);i="data"+n.charAt(0).toUpperCase()+n.slice(1)}else{const n=t.slice(4);if(!Sm.test(n)){let s=n.replace(xw,Ew);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=Ff}return new a(i,t)}function Ew(e){return"-"+e.toLowerCase()}function Aw(e){return e.charAt(1).toUpperCase()}const Ow=kv([wv,bw,Cv,Ev,Av],"html"),Df=kv([wv,kw,Cv,Ev,Av],"svg");function _w(e){return e.join(" ").trim()}var Pi={},iu,Cm;function Pw(){if(Cm)return iu;Cm=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,n=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\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 C(T){var D=T.match(t);D&&(b+=D.length);var L=T.lastIndexOf(l);w=~L?T.length-L:w+T.length}function h(){var T={line:b,column:w};return function(D){return D.position=new y(T),_(),D}}function y(T){this.start=T,this.end={line:b,column:w},this.source=g.source}y.prototype.content=v;function S(T){var D=new Error(g.source+":"+b+":"+w+": "+T);if(D.reason=T,D.filename=g.source,D.line=b,D.column=w,D.source=v,!g.silent)throw D}function A(T){var D=T.exec(v);if(D){var L=D[0];return C(L),v=v.slice(L.length),D}}function _(){A(r)}function x(T){var D;for(T=T||[];D=E();)D!==!1&&T.push(D);return T}function E(){var T=h();if(!(u!=v.charAt(0)||c!=v.charAt(1))){for(var D=2;f!=v.charAt(D)&&(c!=v.charAt(D)||u!=v.charAt(D+1));)++D;if(D+=2,f===v.charAt(D-1))return S("End of comment missing");var L=v.slice(2,D-2);return w+=2,C(L),v=v.slice(D),w+=2,T({type:m,comment:L})}}function O(){var T=h(),D=A(i);if(D){if(E(),!A(a))return S("property missing ':'");var L=A(n),J=T({type:d,property:k(D[0].replace(e,f)),value:L?k(L[0].replace(e,f)):f});return A(s),J}}function R(){var T=[];x(T);for(var D;D=O();)D!==!1&&(T.push(D),x(T));return T}return _(),R()}function k(v){return v?v.replace(o,f):f}return iu=p,iu}var Em;function Iw(){if(Em)return Pi;Em=1;var e=Pi&&Pi.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.default=r;const t=e(Pw());function r(i,a){let n=null;if(!i||typeof i!="string")return n;const s=(0,t.default)(i),o=typeof a=="function";return s.forEach(l=>{if(l.type!=="declaration")return;const{property:u,value:c}=l;o?a(u,c,l):c&&(n=n||{},n[u]=c)}),n}return Pi}var va={},Am;function Tw(){if(Am)return va;Am=1,Object.defineProperty(va,"__esModule",{value:!0}),va.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)},s=function(u,c){return c.toUpperCase()},o=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,o):u=u.replace(i,o),u.replace(t,s))};return va.camelCase=l,va}var ba,Om;function jw(){if(Om)return ba;Om=1;var e=ba&&ba.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(Iw()),r=Tw();function i(a,n){var s={};return!a||typeof a!="string"||(0,t.default)(a,function(o,l){o&&l&&(s[(0,r.camelCase)(o,n)]=l)}),s}return i.default=i,ba=i,ba}var Rw=jw();const Nw=Wr(Rw),Ov=_v("end"),Mf=_v("start");function _v(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 Fw(e){const t=Mf(e),r=Ov(e);if(t&&r)return{start:t,end:r}}function Ma(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?_m(e.position):"start"in e||"end"in e?_m(e):"line"in e||"column"in e?Uc(e):""}function Uc(e){return Pm(e&&e.line)+":"+Pm(e&&e.column)}function _m(e){return Uc(e&&e.start)+"-"+Uc(e&&e.end)}function Pm(e){return e&&typeof e=="number"?e:1}class $t extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let a="",n={},s=!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&&(s=!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 o=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=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=o?o.line:void 0,this.name=Ma(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=s&&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}}$t.prototype.file="";$t.prototype.name="";$t.prototype.reason="";$t.prototype.message="";$t.prototype.stack="";$t.prototype.column=void 0;$t.prototype.line=void 0;$t.prototype.ancestors=void 0;$t.prototype.cause=void 0;$t.prototype.fatal=void 0;$t.prototype.place=void 0;$t.prototype.ruleId=void 0;$t.prototype.source=void 0;const Lf={}.hasOwnProperty,Dw=new Map,Mw=/[A-Z]/g,Lw=new Set(["table","tbody","thead","tfoot","tr"]),qw=new Set(["td","th"]),Pv="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function $w(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=Gw(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=Ww(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"?Df:Ow,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},n=Iv(a,e,void 0);return n&&typeof n!="string"?n:a.create(e,a.Fragment,{children:n||void 0},void 0)}function Iv(e,t,r){if(t.type==="element")return zw(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Uw(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Vw(e,t,r);if(t.type==="mdxjsEsm")return Bw(e,t);if(t.type==="root")return Hw(e,t,r);if(t.type==="text")return Kw(e,t)}function zw(e,t,r){const i=e.schema;let a=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(a=Df,e.schema=a),e.ancestors.push(t);const n=jv(e,t.tagName,!1),s=Jw(e,t);let o=$f(e,t);return Lw.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!yw(l):!0})),Tv(e,s,n,t),qf(s,o),e.ancestors.pop(),e.schema=i,e.create(t,n,s,r)}function Uw(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)}Ha(e,t.position)}function Bw(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ha(e,t.position)}function Vw(e,t,r){const i=e.schema;let a=i;t.name==="svg"&&i.space==="html"&&(a=Df,e.schema=a),e.ancestors.push(t);const n=t.name===null?e.Fragment:jv(e,t.name,!0),s=Yw(e,t),o=$f(e,t);return Tv(e,s,n,t),qf(s,o),e.ancestors.pop(),e.schema=i,e.create(t,n,s,r)}function Hw(e,t,r){const i={};return qf(i,$f(e,t)),e.create(t,e.Fragment,i,r)}function Kw(e,t){return t.value}function Tv(e,t,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=i)}function qf(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function Ww(e,t,r){return i;function i(a,n,s,o){const u=Array.isArray(s.children)?r:t;return o?u(n,s,o):u(n,s)}}function Gw(e,t){return r;function r(i,a,n,s){const o=Array.isArray(n.children),l=Mf(i);return t(a,n,s,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function Jw(e,t){const r={};let i,a;for(a in t.properties)if(a!=="children"&&Lf.call(t.properties,a)){const n=Xw(e,a,t.properties[a]);if(n){const[s,o]=n;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&qw.has(t.tagName)?i=o:r[s]=o}}if(i){const n=r.style||(r.style={});n[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function Yw(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 s=n.expression;s.type;const o=s.properties[0];o.type,Object.assign(r,e.evaluater.evaluateExpression(o.argument))}else Ha(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 o=i.value.data.estree.body[0];o.type,n=e.evaluater.evaluateExpression(o.expression)}else Ha(e,t.position);else n=i.value===null?!0:i.value;r[a]=n}return r}function $f(e,t){const r=[];let i=-1;const a=e.passKeys?new Map:Dw;for(;++i<t.children.length;){const n=t.children[i];let s;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;s=l+"-"+u,a.set(l,u+1)}}const o=Iv(e,n,s);o!==void 0&&r.push(o)}return r}function Xw(e,t,r){const i=Cw(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?dw(r):_w(r)),i.property==="style"){let a=typeof r=="object"?r:Zw(e,String(r));return e.stylePropertyNameCase==="css"&&(a=Qw(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&i.space?ww[i.property]||i.property:i.attribute,r]}}function Zw(e,t){try{return Nw(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,a=new $t("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=Pv+"#cannot-parse-style-attribute",a}}function jv(e,t,r){let i;if(!r)i={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let n=-1,s;for(;++n<a.length;){const o=km(a[n])?{type:"Identifier",name:a[n]}:{type:"Literal",value:a[n]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(n&&o.type==="Literal"),optional:!1}:o}i=s}else i=km(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const a=i.value;return Lf.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(i);Ha(e)}function Ha(e,t){const r=new $t("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=Pv+"#cannot-handle-mdx-estrees-without-createevaluater",r}function Qw(e){const t={};let r;for(r in e)Lf.call(e,r)&&(t[ex(r)]=e[r]);return t}function ex(e){let t=e.replace(Mw,tx);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function tx(e){return"-"+e.toLowerCase()}const au={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"]},rx={};function zf(e,t){const r=rx,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,a=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Rv(e,i,a)}function Rv(e,t,r){if(nx(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 Im(e.children,t,r)}return Array.isArray(e)?Im(e,t,r):""}function Im(e,t,r){const i=[];let a=-1;for(;++a<e.length;)i[a]=Rv(e[a],t,r);return i.join("")}function nx(e){return!!(e&&typeof e=="object")}const Tm=document.createElement("i");function Uf(e){const t="&"+e+";";Tm.innerHTML=t;const r=Tm.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function ar(e,t,r,i){const a=e.length;let n=0,s;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,r=r>0?r:0,i.length<1e4)s=Array.from(i),s.unshift(t,r),e.splice(...s);else for(r&&e.splice(t,r);n<i.length;)s=i.slice(n,n+1e4),s.unshift(t,0),e.splice(...s),n+=1e4,t+=1e4}function ur(e,t){return e.length>0?(ar(e,e.length,0,t),e):t}const jm={}.hasOwnProperty;function Nv(e){const t={};let r=-1;for(;++r<e.length;)ix(t,e[r]);return t}function ix(e,t){let r;for(r in t){const a=(jm.call(e,r)?e[r]:void 0)||(e[r]={}),n=t[r];let s;if(n)for(s in n){jm.call(a,s)||(a[s]=[]);const o=n[s];ax(a[s],Array.isArray(o)?o:o?[o]:[])}}}function ax(e,t){let r=-1;const i=[];for(;++r<t.length;)(t[r].add==="after"?e:i).push(t[r]);ar(e,0,0,i)}function Fv(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 Ar(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Bt=$n(/[A-Za-z]/),Lt=$n(/[\dA-Za-z]/),sx=$n(/[#-'*+\--9=?A-Z^-~]/);function Vo(e){return e!==null&&(e<32||e===127)}const Bc=$n(/\d/),ox=$n(/[\dA-Fa-f]/),lx=$n(/[!-/:-@[-`{-~]/);function he(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 ml=$n(new RegExp("\\p{P}|\\p{S}","u")),oi=$n(/\s/);function $n(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function aa(e){const t=[];let r=-1,i=0,a=0;for(;++r<e.length;){const n=e.charCodeAt(r);let s="";if(n===37&&Lt(e.charCodeAt(r+1))&&Lt(e.charCodeAt(r+2)))a=2;else if(n<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(n))||(s=String.fromCharCode(n));else if(n>55295&&n<57344){const o=e.charCodeAt(r+1);n<56320&&o>56319&&o<57344?(s=String.fromCharCode(n,o),a=1):s="�"}else s=String.fromCharCode(n);s&&(t.push(e.slice(i,r),encodeURIComponent(s)),i=r+a+1,s=""),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 s;function s(l){return Me(l)?(e.enter(r),o(l)):t(l)}function o(l){return Me(l)&&n++<a?(e.consume(l),o):(e.exit(r),t(l))}}const ux={tokenize:cx};function cx(e){const t=e.attempt(this.parser.constructs.contentInitial,i,a);let r;return t;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Be(e,t,"linePrefix")}function a(o){return e.enter("paragraph"),n(o)}function n(o){const l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return he(o)?(e.consume(o),e.exit("chunkText"),n):(e.consume(o),s)}}const fx={tokenize:dx},Rm={tokenize:mx};function dx(e){const t=this,r=[];let i=0,a,n,s;return o;function o(w){if(i<r.length){const C=r[i];return t.containerState=C[1],e.attempt(C[0].continuation,l,u)(w)}return u(w)}function l(w){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&b();const C=t.events.length;let h=C,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 S=C;for(;S<t.events.length;)t.events[S][1].end={...y},S++;return ar(t.events,h+1,0,t.events.slice(C)),t.events.length=S,u(w)}return o(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(Rm,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,s=t.now().offset,p(w)}function m(w){return t.containerState={},e.attempt(Rm,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 he(w)?(e.consume(w),v(e.exit("chunkFlow")),i=0,t.interrupt=void 0,o):(e.consume(w),k)}function v(w,C){const h=t.sliceStream(w);if(C&&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<s&&(!a.events[y][1].end||a.events[y][1].end.offset>s))return;const S=t.events.length;let A=S,_,x;for(;A--;)if(t.events[A][0]==="exit"&&t.events[A][1].type==="chunkFlow"){if(_){x=t.events[A][1].end;break}_=!0}for(g(i),y=S;y<t.events.length;)t.events[y][1].end={...x},y++;ar(t.events,A+1,0,t.events.slice(S)),t.events.length=y}}function g(w){let C=r.length;for(;C-- >w;){const h=r[C];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 mx(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 Yi(e){if(e===null||dt(e)||oi(e))return 1;if(ml(e))return 2}function pl(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 Vc={name:"attention",resolveAll:px,tokenize:hx};function px(e,t){let r=-1,i,a,n,s,o,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};Nm(f,-l),Nm(m,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[i][1].end}},o={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:{...s.start},end:{...o.end}},e[i][1].end={...s.start},e[r][1].start={...o.end},u=[],e[i][1].end.offset-e[i][1].start.offset&&(u=ur(u,[["enter",e[i][1],t],["exit",e[i][1],t]])),u=ur(u,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",n,t]]),u=ur(u,pl(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),u=ur(u,[["exit",n,t],["enter",o,t],["exit",o,t],["exit",a,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=ur(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,ar(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 hx(e,t){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,a=Yi(i);let n;return s;function s(l){return n=l,e.enter("attentionSequence"),o(l)}function o(l){if(l===n)return e.consume(l),o;const u=e.exit("attentionSequence"),c=Yi(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 Nm(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const gx={name:"autolink",tokenize:yx};function yx(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 Bt(d)?(e.consume(d),s):d===64?r(d):u(d)}function s(d){return d===43||d===45||d===46||Lt(d)?(i=1,o(d)):u(d)}function o(d){return d===58?(e.consume(d),i=0,l):(d===43||d===45||d===46||Lt(d))&&i++<32?(e.consume(d),o):(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||Vo(d)?r(d):(e.consume(d),l)}function u(d){return d===64?(e.consume(d),c):sx(d)?(e.consume(d),u):r(d)}function c(d){return Lt(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||Lt(d))&&i++<63){const p=d===45?m:f;return e.consume(d),p}return r(d)}}const as={partial:!0,tokenize:vx};function vx(e,t,r){return i;function i(n){return Me(n)?Be(e,a,"linePrefix")(n):a(n)}function a(n){return n===null||he(n)?t(n):r(n)}}const Dv={continuation:{tokenize:kx},exit:wx,name:"blockQuote",tokenize:bx};function bx(e,t,r){const i=this;return a;function a(s){if(s===62){const o=i.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),n}return r(s)}function n(s){return Me(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function kx(e,t,r){const i=this;return a;function a(s){return Me(s)?Be(e,n,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):n(s)}function n(s){return e.attempt(Dv,t,r)(s)}}function wx(e){e.exit("blockQuote")}const Mv={name:"characterEscape",tokenize:xx};function xx(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 lx(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}const Lv={name:"characterReference",tokenize:Sx};function Sx(e,t,r){const i=this;let a=0,n,s;return o;function o(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,s=Lt,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),n=6,s=ox,c):(e.enter("characterReferenceValue"),n=7,s=Bc,c(f))}function c(f){if(f===59&&a){const m=e.exit("characterReferenceValue");return s===Lt&&!Uf(i.sliceSerialize(m))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&a++<n?(e.consume(f),c):r(f)}}const Fm={partial:!0,tokenize:Ex},Dm={concrete:!0,name:"codeFenced",tokenize:Cx};function Cx(e,t,r){const i=this,a={partial:!0,tokenize:h};let n=0,s=0,o;return l;function l(y){return u(y)}function u(y){const S=i.events[i.events.length-1];return n=S&&S[1].type==="linePrefix"?S[2].sliceSerialize(S[1],!0).length:0,o=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(y)}function c(y){return y===o?(s++,e.consume(y),c):s<3?r(y):(e.exit("codeFencedFenceSequence"),Me(y)?Be(e,f,"whitespace")(y):f(y))}function f(y){return y===null||he(y)?(e.exit("codeFencedFence"),i.interrupt?t(y):e.check(Fm,k,C)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===null||he(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===o?r(y):(e.consume(y),m)}function d(y){return y===null||he(y)?f(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===null||he(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(y)):y===96&&y===o?r(y):(e.consume(y),p)}function k(y){return e.attempt(a,C,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||he(y)?e.check(Fm,k,C)(y):(e.enter("codeFlowValue"),w(y))}function w(y){return y===null||he(y)?(e.exit("codeFlowValue"),b(y)):(e.consume(y),w)}function C(y){return e.exit("codeFenced"),t(y)}function h(y,S,A){let _=0;return x;function x(D){return y.enter("lineEnding"),y.consume(D),y.exit("lineEnding"),E}function E(D){return y.enter("codeFencedFence"),Me(D)?Be(y,O,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):O(D)}function O(D){return D===o?(y.enter("codeFencedFenceSequence"),R(D)):A(D)}function R(D){return D===o?(_++,y.consume(D),R):_>=s?(y.exit("codeFencedFenceSequence"),Me(D)?Be(y,T,"whitespace")(D):T(D)):A(D)}function T(D){return D===null||he(D)?(y.exit("codeFencedFence"),S(D)):A(D)}}}function Ex(e,t,r){const i=this;return a;function a(s){return s===null?r(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n)}function n(s){return i.parser.lazy[i.now().line]?r(s):t(s)}}const su={name:"codeIndented",tokenize:Ox},Ax={partial:!0,tokenize:_x};function Ox(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?s(u):r(u)}function s(u){return u===null?l(u):he(u)?e.attempt(Ax,s,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||he(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function _x(e,t,r){const i=this;return a;function a(s){return i.parser.lazy[i.now().line]?r(s):he(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):Be(e,n,"linePrefix",5)(s)}function n(s){const o=i.events[i.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):he(s)?a(s):r(s)}}const Px={name:"codeText",previous:Tx,resolve:Ix,tokenize:jx};function Ix(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 Tx(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function jx(e,t,r){let i=0,a,n;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),o(f)}function o(f){return f===96?(e.consume(f),i++,o):(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)):he(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||he(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 Rx{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&&ka(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),ka(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ka(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);ka(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ka(this.left,r.reverse())}}}function ka(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 qv(e){const t={};let r=-1,i,a,n,s,o,l,u;const c=new Rx(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,Nx(c,r)),r=t[r],u=!0);else if(i[1]._container){for(n=r,a=void 0;n--;)if(s=c.get(n),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(a&&(c.get(a)[1].type="lineEndingBlank"),s[1].type="lineEnding",a=n);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;a&&(i[1].end={...c.get(a)[1].start},o=c.slice(a,r),o.unshift(i),c.splice(a,r-a+1,o))}}return ar(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function Nx(e,t){const r=e.get(t)[1],i=e.get(t)[2];let a=t-1;const n=[];let s=r._tokenizer;s||(s=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.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&&s.defineSkip(d.start),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=r;++m<o.length;)o[m][0]==="exit"&&o[m-1][0]==="enter"&&o[m][1].type===o[m-1][1].type&&o[m][1].start.line!==o[m][1].end.line&&(k=m+1,v.push(k),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(s.events=[],d?(d._tokenizer=void 0,d.previous=void 0):v.pop(),m=v.length;m--;){const g=o.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 Fx={resolve:Mx,tokenize:Lx},Dx={partial:!0,tokenize:qx};function Mx(e){return qv(e),e}function Lx(e,t){let r;return i;function i(o){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),a(o)}function a(o){return o===null?n(o):he(o)?e.check(Dx,s,n)(o):(e.consume(o),a)}function n(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,a}}function qx(e,t,r){const i=this;return a;function a(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Be(e,n,"linePrefix")}function n(s){if(s===null||he(s))return r(s);const o=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(i.parser.constructs.flow,r,t)(s)}}function $v(e,t,r,i,a,n,s,o,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||Vo(g)?r(g):(e.enter(i),e.enter(s),e.enter(o),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(o),e.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===62?(e.exit("chunkString"),e.exit(o),m(g)):g===null||g===60||he(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(o),e.exit(s),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||Vo(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 zv(e,t,r,i,a,n){const s=this;let o=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 o>999||d===null||d===91||d===93&&!l||d===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?r(d):d===93?(e.exit(n),e.enter(a),e.consume(d),e.exit(a),e.exit(i),t):he(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||he(d)||o++>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),o++,f):f(d)}}function Uv(e,t,r,i,a,n){let s;return o;function o(m){return m===34||m===39||m===40?(e.enter(i),e.enter(a),e.consume(m),e.exit(a),s=m===40?41:m,l):r(m)}function l(m){return m===s?(e.enter(a),e.consume(m),e.exit(a),e.exit(i),t):(e.enter(n),u(m))}function u(m){return m===s?(e.exit(n),l(s)):m===null?r(m):he(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===s||m===null||he(m)?(e.exit("chunkString"),u(m)):(e.consume(m),m===92?f:c)}function f(m){return m===s||m===92?(e.consume(m),c):c(m)}}function La(e,t){let r;return i;function i(a){return he(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 $x={name:"definition",tokenize:Ux},zx={partial:!0,tokenize:Bx};function Ux(e,t,r){const i=this;let a;return n;function n(d){return e.enter("definition"),s(d)}function s(d){return zv.call(i,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function o(d){return a=Ar(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)?La(e,u)(d):u(d)}function u(d){return $v(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function c(d){return e.attempt(zx,f,f)(d)}function f(d){return Me(d)?Be(e,m,"whitespace")(d):m(d)}function m(d){return d===null||he(d)?(e.exit("definition"),i.parser.defined.push(a),t(d)):r(d)}}function Bx(e,t,r){return i;function i(o){return dt(o)?La(e,a)(o):r(o)}function a(o){return Uv(e,n,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function n(o){return Me(o)?Be(e,s,"whitespace")(o):s(o)}function s(o){return o===null||he(o)?t(o):r(o)}}const Vx={name:"hardBreakEscape",tokenize:Hx};function Hx(e,t,r){return i;function i(n){return e.enter("hardBreakEscape"),e.consume(n),a}function a(n){return he(n)?(e.exit("hardBreakEscape"),t(n)):r(n)}}const Kx={name:"headingAtx",resolve:Wx,tokenize:Gx};function Wx(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"},ar(e,i,r-i+1,[["enter",a,t],["enter",n,t],["exit",n,t],["exit",a,t]])),e}function Gx(e,t,r){let i=0;return a;function a(c){return e.enter("atxHeading"),n(c)}function n(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&i++<6?(e.consume(c),s):c===null||dt(c)?(e.exit("atxHeadingSequence"),o(c)):r(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||he(c)?(e.exit("atxHeading"),t(c)):Me(c)?Be(e,o,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),o(c))}function u(c){return c===null||c===35||dt(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),u)}}const Jx=["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"],Mm=["pre","script","style","textarea"],Yx={concrete:!0,name:"htmlFlow",resolveTo:Qx,tokenize:eS},Xx={partial:!0,tokenize:rS},Zx={partial:!0,tokenize:tS};function Qx(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 eS(e,t,r){const i=this;let a,n,s,o,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):Bt(I)?(e.consume(I),s=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,o=0,p):Bt(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 N="CDATA[";return I===N.charCodeAt(o++)?(e.consume(I),o===N.length?i.interrupt?t:O:p):r(I)}function k(I){return Bt(I)?(e.consume(I),s=String.fromCharCode(I),v):r(I)}function v(I){if(I===null||I===47||I===62||dt(I)){const N=I===47,M=s.toLowerCase();return!N&&!n&&Mm.includes(M)?(a=1,i.interrupt?t(I):O(I)):Jx.includes(s.toLowerCase())?(a=6,N?(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||Lt(I)?(e.consume(I),s+=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):x(I)}function w(I){return I===47?(e.consume(I),x):I===58||I===95||Bt(I)?(e.consume(I),C):Me(I)?(e.consume(I),w):x(I)}function C(I){return I===45||I===46||I===58||I===95||Lt(I)?(e.consume(I),C):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,S):Me(I)?(e.consume(I),y):A(I)}function S(I){return I===l?(e.consume(I),l=null,_):I===null||he(I)?r(I):(e.consume(I),S)}function A(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),A)}function _(I){return I===47||I===62||Me(I)?w(I):r(I)}function x(I){return I===62?(e.consume(I),E):r(I)}function E(I){return I===null||he(I)?O(I):Me(I)?(e.consume(I),E):r(I)}function O(I){return I===45&&a===2?(e.consume(I),L):I===60&&a===1?(e.consume(I),J):I===62&&a===4?(e.consume(I),F):I===63&&a===3?(e.consume(I),P):I===93&&a===5?(e.consume(I),Z):he(I)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(Xx,z,R)(I)):I===null||he(I)?(e.exit("htmlFlowData"),R(I)):(e.consume(I),O)}function R(I){return e.check(Zx,T,z)(I)}function T(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),D}function D(I){return I===null||he(I)?R(I):(e.enter("htmlFlowData"),O(I))}function L(I){return I===45?(e.consume(I),P):O(I)}function J(I){return I===47?(e.consume(I),s="",X):O(I)}function X(I){if(I===62){const N=s.toLowerCase();return Mm.includes(N)?(e.consume(I),F):O(I)}return Bt(I)&&s.length<8?(e.consume(I),s+=String.fromCharCode(I),X):O(I)}function Z(I){return I===93?(e.consume(I),P):O(I)}function P(I){return I===62?(e.consume(I),F):I===45&&a===2?(e.consume(I),P):O(I)}function F(I){return I===null||he(I)?(e.exit("htmlFlowData"),z(I)):(e.consume(I),F)}function z(I){return e.exit("htmlFlow"),t(I)}}function tS(e,t,r){const i=this;return a;function a(s){return he(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n):r(s)}function n(s){return i.parser.lazy[i.now().line]?r(s):t(s)}}function rS(e,t,r){return i;function i(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(as,t,r)}}const nS={name:"htmlText",tokenize:iS};function iS(e,t,r){const i=this;let a,n,s;return o;function o(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):Bt(P)?(e.consume(P),A):r(P)}function u(P){return P===45?(e.consume(P),c):P===91?(e.consume(P),n=0,p):Bt(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):he(P)?(s=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?L(P):P===45?m(P):f(P)}function p(P){const F="CDATA[";return P===F.charCodeAt(n++)?(e.consume(P),n===F.length?k:p):r(P)}function k(P){return P===null?r(P):P===93?(e.consume(P),v):he(P)?(s=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?L(P):P===93?(e.consume(P),g):k(P)}function b(P){return P===null||P===62?L(P):he(P)?(s=b,J(P)):(e.consume(P),b)}function w(P){return P===null?r(P):P===63?(e.consume(P),C):he(P)?(s=w,J(P)):(e.consume(P),w)}function C(P){return P===62?L(P):w(P)}function h(P){return Bt(P)?(e.consume(P),y):r(P)}function y(P){return P===45||Lt(P)?(e.consume(P),y):S(P)}function S(P){return he(P)?(s=S,J(P)):Me(P)?(e.consume(P),S):L(P)}function A(P){return P===45||Lt(P)?(e.consume(P),A):P===47||P===62||dt(P)?_(P):r(P)}function _(P){return P===47?(e.consume(P),L):P===58||P===95||Bt(P)?(e.consume(P),x):he(P)?(s=_,J(P)):Me(P)?(e.consume(P),_):L(P)}function x(P){return P===45||P===46||P===58||P===95||Lt(P)?(e.consume(P),x):E(P)}function E(P){return P===61?(e.consume(P),O):he(P)?(s=E,J(P)):Me(P)?(e.consume(P),E):_(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,R):he(P)?(s=O,J(P)):Me(P)?(e.consume(P),O):(e.consume(P),T)}function R(P){return P===a?(e.consume(P),a=void 0,D):P===null?r(P):he(P)?(s=R,J(P)):(e.consume(P),R)}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 D(P){return P===47||P===62||dt(P)?_(P):r(P)}function L(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"),X}function X(P){return Me(P)?Be(e,Z,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):Z(P)}function Z(P){return e.enter("htmlTextData"),s(P)}}const Bf={name:"labelEnd",resolveAll:lS,resolveTo:uS,tokenize:cS},aS={tokenize:fS},sS={tokenize:dS},oS={tokenize:mS};function lS(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&&ar(e,0,e.length,r),e}function uS(e,t){let r=e.length,i=0,a,n,s,o;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(s){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"&&(s=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[s][1].end}},c={type:"labelText",start:{...e[n+i+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",l,t],["enter",u,t]],o=ur(o,e.slice(n+1,n+i+3)),o=ur(o,[["enter",c,t]]),o=ur(o,pl(t.parser.constructs.insideSpan.null,e.slice(n+i+4,s-3),t)),o=ur(o,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),o=ur(o,e.slice(s+1)),o=ur(o,[["exit",l,t]]),ar(e,n,e.length,o),e}function cS(e,t,r){const i=this;let a=i.events.length,n,s;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 o;function o(m){return n?n._inactive?f(m):(s=i.parser.defined.includes(Ar(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(aS,c,s?c:f)(m):m===91?e.attempt(sS,c,s?u:f)(m):s?c(m):f(m)}function u(m){return e.attempt(oS,c,f)(m)}function c(m){return t(m)}function f(m){return n._balanced=!0,r(m)}}function fS(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)?La(e,n)(f):n(f)}function n(f){return f===41?c(f):$v(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return dt(f)?La(e,l)(f):c(f)}function o(f){return r(f)}function l(f){return f===34||f===39||f===40?Uv(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return dt(f)?La(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 dS(e,t,r){const i=this;return a;function a(o){return zv.call(i,e,n,s,"reference","referenceMarker","referenceString")(o)}function n(o){return i.parser.defined.includes(Ar(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(o):r(o)}function s(o){return r(o)}}function mS(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 pS={name:"labelStartImage",resolveAll:Bf.resolveAll,tokenize:hS};function hS(e,t,r){const i=this;return a;function a(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),n}function n(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):r(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(o):t(o)}}const gS={name:"labelStartLink",resolveAll:Bf.resolveAll,tokenize:yS};function yS(e,t,r){const i=this;return a;function a(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),n}function n(s){return s===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(s):t(s)}}const ou={name:"lineEnding",tokenize:vS};function vS(e,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Be(e,t,"linePrefix")}}const jo={name:"thematicBreak",tokenize:bS};function bS(e,t,r){let i=0,a;return n;function n(u){return e.enter("thematicBreak"),s(u)}function s(u){return a=u,o(u)}function o(u){return u===a?(e.enter("thematicBreakSequence"),l(u)):i>=3&&(u===null||he(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,o,"whitespace")(u):o(u))}}const Yt={continuation:{tokenize:SS},exit:ES,name:"list",tokenize:xS},kS={partial:!0,tokenize:AS},wS={partial:!0,tokenize:CS};function xS(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,s=0;return o;function o(d){const p=i.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!i.containerState.marker||d===i.containerState.marker:Bc(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(jo,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 Bc(d)&&++s<10?(e.consume(d),l):(!i.interrupt||s<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(as,i.interrupt?r:c,e.attempt(kS,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 SS(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(as,a,n);function a(o){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Be(e,t,"listItemIndent",i.containerState.size+1)(o)}function n(o){return i.containerState.furtherBlankLines||!Me(o)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,s(o)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(wS,t,s)(o))}function s(o){return i.containerState._closeFlow=!0,i.interrupt=void 0,Be(e,e.attempt(Yt,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function CS(e,t,r){const i=this;return Be(e,a,"listItemIndent",i.containerState.size+1);function a(n){const s=i.events[i.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===i.containerState.size?t(n):r(n)}}function ES(e){e.exit(this.containerState.type)}function AS(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 s=i.events[i.events.length-1];return!Me(n)&&s&&s[1].type==="listItemPrefixWhitespace"?t(n):r(n)}}const Lm={name:"setextUnderline",resolveTo:OS,tokenize:_S};function OS(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 s={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",s,t]),e.splice(n+1,0,["exit",e[i][1],t]),e[i][1].end={...e[n][1].end}):e[i][1]=s,e.push(["exit",s,t]),e}function _S(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,s(u)):r(u)}function s(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===a?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),Me(u)?Be(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||he(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const PS={tokenize:IS};function IS(e){const t=this,r=e.attempt(as,i,e.attempt(this.parser.constructs.flowInitial,a,Be(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Fx,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 TS={resolveAll:Vv()},jS=Bv("string"),RS=Bv("text");function Bv(e){return{resolveAll:Vv(e==="text"?NS:void 0),tokenize:t};function t(r){const i=this,a=this.parser.constructs[e],n=r.attempt(a,s,o);return s;function s(c){return u(c)?n(c):o(c)}function o(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 Vv(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 NS(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,s=-1,o=0,l;for(;n--;){const u=a[n];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(u===-2)l=!0,o++;else if(u!==-1){n++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(o=0),o){const u={type:r===e.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:n?s:i.start._bufferIndex+s,_index:i.start._index+n,line:i.end.line,column:i.end.column-o,offset:i.end.offset-o},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 FS={42:Yt,43:Yt,45:Yt,48:Yt,49:Yt,50:Yt,51:Yt,52:Yt,53:Yt,54:Yt,55:Yt,56:Yt,57:Yt,62:Dv},DS={91:$x},MS={[-2]:su,[-1]:su,32:su},LS={35:Kx,42:jo,45:[Lm,jo],60:Yx,61:Lm,95:jo,96:Dm,126:Dm},qS={38:Lv,92:Mv},$S={[-5]:ou,[-4]:ou,[-3]:ou,33:pS,38:Lv,42:Vc,60:[gx,nS],91:gS,92:[Vx,Mv],93:Bf,95:Vc,96:Px},zS={null:[Vc,TS]},US={null:[42,95]},BS={null:[]},VS=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:US,contentInitial:DS,disable:BS,document:FS,flow:LS,flowInitial:MS,insideSpan:zS,string:qS,text:$S},Symbol.toStringTag,{value:"Module"}));function HS(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 s=[],o=[];const l={attempt:S(h),check:S(y),consume:b,enter:w,exit:C,interrupt:S(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(E){return s=ur(s,E),v(),s[s.length-1]!==null?[]:(A(t,0),u.events=pl(n,u.events,u),u.events)}function m(E,O){return WS(d(E),O)}function d(E){return KS(s,E)}function p(){const{_bufferIndex:E,_index:O,line:R,column:T,offset:D}=i;return{_bufferIndex:E,_index:O,line:R,column:T,offset:D}}function k(E){a[E.line]=E.column,x()}function v(){let E;for(;i._index<s.length;){const O=s[i._index];if(typeof O=="string")for(E=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===E&&i._bufferIndex<O.length;)g(O.charCodeAt(i._bufferIndex));else g(O)}}function g(E){c=c(E)}function b(E){he(E)?(i.line++,i.column=1,i.offset+=E===-3?2:1,x()):E!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===s[i._index].length&&(i._bufferIndex=-1,i._index++)),u.previous=E}function w(E,O){const R=O||{};return R.type=E,R.start=p(),u.events.push(["enter",R,u]),o.push(R),R}function C(E){const O=o.pop();return O.end=p(),u.events.push(["exit",O,u]),O}function h(E,O){A(E,O.from)}function y(E,O){O.restore()}function S(E,O){return R;function R(T,D,L){let J,X,Z,P;return Array.isArray(T)?z(T):"tokenize"in T?z([T]):F(T);function F(U){return V;function V(H){const K=H!==null&&U[H],Y=H!==null&&U.null,$=[...Array.isArray(K)?K:K?[K]:[],...Array.isArray(Y)?Y:Y?[Y]:[]];return z($)(H)}}function z(U){return J=U,X=0,U.length===0?L:I(U[X])}function I(U){return V;function V(H){return P=_(),Z=U,U.partial||(u.currentConstruct=U),U.name&&u.parser.constructs.disable.null.includes(U.name)?M():U.tokenize.call(O?Object.assign(Object.create(u),O):u,l,N,M)(H)}}function N(U){return E(Z,P),D}function M(U){return P.restore(),++X<J.length?I(J[X]):L}}}function A(E,O){E.resolveAll&&!n.includes(E)&&n.push(E),E.resolve&&ar(u.events,O,u.events.length-O,E.resolve(u.events.slice(O),u)),E.resolveTo&&(u.events=E.resolveTo(u.events,u))}function _(){const E=p(),O=u.previous,R=u.currentConstruct,T=u.events.length,D=Array.from(o);return{from:T,restore:L};function L(){i=E,u.previous=O,u.currentConstruct=R,u.events.length=T,o=D,x()}}function x(){i.line in a&&i.column<2&&(i.column=a[i.line],i.offset+=a[i.line]-1)}}function KS(e,t){const r=t.start._index,i=t.start._bufferIndex,a=t.end._index,n=t.end._bufferIndex;let s;if(r===a)s=[e[r].slice(i,n)];else{if(s=e.slice(r,a),i>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(i):s.shift()}n>0&&s.push(e[a].slice(0,n))}return s}function WS(e,t){let r=-1;const i=[];let a;for(;++r<e.length;){const n=e[r];let s;if(typeof n=="string")s=n;else switch(n){case-5:{s="\r";break}case-4:{s=`
19
+ */var tu,pm;function tw(){if(pm)return tu;pm=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 s={},o=0;o<10;o++)s["_"+String.fromCharCode(o)]=o;var l=Object.getOwnPropertyNames(s).map(function(c){return s[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 tu=a()?Object.assign:function(n,s){for(var o,l=i(n),u,c=1;c<arguments.length;c++){o=Object(arguments[c]);for(var f in o)t.call(o,f)&&(l[f]=o[f]);if(e){u=e(o);for(var m=0;m<u.length;m++)r.call(o,u[m])&&(l[u[m]]=o[u[m]])}}return l},tu}var ru,hm;function Lf(){if(hm)return ru;hm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ru=e,ru}var nu,gm;function bv(){return gm||(gm=1,nu=Function.call.bind(Object.prototype.hasOwnProperty)),nu}var iu,ym;function rw(){if(ym)return iu;ym=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Lf(),r={},i=bv();e=function(n){var s="Warning: "+n;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function a(n,s,o,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")+": "+o+" 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](s,c,l,o,null,t)}catch(p){f=p}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+o+" `"+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 "+o+" type: "+f.message+(d??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},iu=a,iu}var au,vm;function nw(){if(vm)return au;vm=1;var e=vv(),t=tw(),r=Lf(),i=bv(),a=rw(),n=function(){};process.env.NODE_ENV!=="production"&&(n=function(o){var l="Warning: "+o;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function s(){return null}return au=function(o,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(P){var F=P&&(u&&P[u]||P[c]);if(typeof F=="function")return F}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:x(),elementType:h(),instanceOf:y,node:C(),objectOf:A,oneOf:S,oneOfType:_,shape:O,exact:R};function p(P,F){return P===F?P!==0||1/P===1/F:P!==P&&F!==F}function k(P,F){this.message=P,this.data=F&&typeof F=="object"?F:{},this.stack=""}k.prototype=Error.prototype;function v(P){if(process.env.NODE_ENV!=="production")var F={},z=0;function I(M,B,V,W,K,X,$){if(W=W||m,X=X||V,$!==r){if(l){var q=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 q.name="Invariant Violation",q}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var J=W+":"+V;!F[J]&&z<3&&(n("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+W+"`. 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."),F[J]=!0,z++)}}return B[V]==null?M?B[V]===null?new k("The "+K+" `"+X+"` is marked as required "+("in `"+W+"`, but its value is `null`.")):new k("The "+K+" `"+X+"` is marked as required in "+("`"+W+"`, but its value is `undefined`.")):null:P(B,V,W,K,X)}var N=I.bind(null,!1);return N.isRequired=I.bind(null,!0),N}function g(P){function F(z,I,N,M,B,V){var W=z[I],K=L(W);if(K!==P){var X=H(W);return new k("Invalid "+M+" `"+B+"` of type "+("`"+X+"` supplied to `"+N+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return v(F)}function b(){return v(s)}function w(P){function F(z,I,N,M,B){if(typeof P!="function")return new k("Property `"+B+"` of component `"+N+"` has invalid PropType notation inside arrayOf.");var V=z[I];if(!Array.isArray(V)){var W=L(V);return new k("Invalid "+M+" `"+B+"` of type "+("`"+W+"` supplied to `"+N+"`, expected an array."))}for(var K=0;K<V.length;K++){var X=P(V,K,N,M,B+"["+K+"]",r);if(X instanceof Error)return X}return null}return v(F)}function x(){function P(F,z,I,N,M){var B=F[z];if(!o(B)){var V=L(B);return new k("Invalid "+N+" `"+M+"` of type "+("`"+V+"` supplied to `"+I+"`, expected a single ReactElement."))}return null}return v(P)}function h(){function P(F,z,I,N,M){var B=F[z];if(!e.isValidElementType(B)){var V=L(B);return new k("Invalid "+N+" `"+M+"` of type "+("`"+V+"` supplied to `"+I+"`, expected a single ReactElement type."))}return null}return v(P)}function y(P){function F(z,I,N,M,B){if(!(z[I]instanceof P)){var V=P.name||m,W=Z(z[I]);return new k("Invalid "+M+" `"+B+"` of type "+("`"+W+"` supplied to `"+N+"`, expected ")+("instance of `"+V+"`."))}return null}return v(F)}function S(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.")),s;function F(z,I,N,M,B){for(var V=z[I],W=0;W<P.length;W++)if(p(V,P[W]))return null;var K=JSON.stringify(P,function($,q){var J=H(q);return J==="symbol"?String(q):q});return new k("Invalid "+M+" `"+B+"` of value `"+String(V)+"` "+("supplied to `"+N+"`, expected one of "+K+"."))}return v(F)}function A(P){function F(z,I,N,M,B){if(typeof P!="function")return new k("Property `"+B+"` of component `"+N+"` has invalid PropType notation inside objectOf.");var V=z[I],W=L(V);if(W!=="object")return new k("Invalid "+M+" `"+B+"` of type "+("`"+W+"` supplied to `"+N+"`, expected an object."));for(var K in V)if(i(V,K)){var X=P(V,K,N,M,B+"."+K,r);if(X instanceof Error)return X}return null}return v(F)}function _(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&n("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var F=0;F<P.length;F++){var z=P[F];if(typeof z!="function")return n("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(z)+" at index "+F+"."),s}function I(N,M,B,V,W){for(var K=[],X=0;X<P.length;X++){var $=P[X],q=$(N,M,B,V,W,r);if(q==null)return null;q.data&&i(q.data,"expectedType")&&K.push(q.data.expectedType)}var J=K.length>0?", expected one of type ["+K.join(", ")+"]":"";return new k("Invalid "+V+" `"+W+"` supplied to "+("`"+B+"`"+J+"."))}return v(I)}function C(){function P(F,z,I,N,M){return T(F[z])?null:new k("Invalid "+N+" `"+M+"` supplied to "+("`"+I+"`, expected a ReactNode."))}return v(P)}function E(P,F,z,I,N){return new k((P||"React class")+": "+F+" type `"+z+"."+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+N+"`.")}function O(P){function F(z,I,N,M,B){var V=z[I],W=L(V);if(W!=="object")return new k("Invalid "+M+" `"+B+"` of type `"+W+"` "+("supplied to `"+N+"`, expected `object`."));for(var K in P){var X=P[K];if(typeof X!="function")return E(N,M,B,K,H(X));var $=X(V,K,N,M,B+"."+K,r);if($)return $}return null}return v(F)}function R(P){function F(z,I,N,M,B){var V=z[I],W=L(V);if(W!=="object")return new k("Invalid "+M+" `"+B+"` of type `"+W+"` "+("supplied to `"+N+"`, expected `object`."));var K=t({},z[I],P);for(var X in K){var $=P[X];if(i(P,X)&&typeof $!="function")return E(N,M,B,X,H($));if(!$)return new k("Invalid "+M+" `"+B+"` key `"+X+"` supplied to `"+N+"`.\nBad object: "+JSON.stringify(z[I],null," ")+`
20
+ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var q=$(V,X,N,M,B+"."+X,r);if(q)return q}return null}return v(F)}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||o(P))return!0;var F=f(P);if(F){var z=F.call(P),I;if(F!==P.entries){for(;!(I=z.next()).done;)if(!T(I.value))return!1}else for(;!(I=z.next()).done;){var N=I.value;if(N&&!T(N[1]))return!1}}else return!1;return!0;default:return!1}}function D(P,F){return P==="symbol"?!0:F?F["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&F instanceof Symbol:!1}function L(P){var F=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":D(F,P)?"symbol":F}function H(P){if(typeof P>"u"||P===null)return""+P;var F=L(P);if(F==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return F}function Y(P){var F=H(P);switch(F){case"array":case"object":return"an "+F;case"boolean":case"date":case"regexp":return"a "+F;default:return F}}function Z(P){return!P.constructor||!P.constructor.name?m:P.constructor.name}return d.checkPropTypes=a,d.resetWarningCache=a.resetWarningCache,d.PropTypes=d,d},au}var su,bm;function iw(){if(bm)return su;bm=1;var e=Lf();function t(){}function r(){}return r.resetWarningCache=t,su=function(){function i(s,o,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},su}var km;function aw(){if(km)return js.exports;if(km=1,process.env.NODE_ENV!=="production"){var e=vv(),t=!0;js.exports=nw()(e.isElement,t)}else js.exports=iw()();return js.exports}var sw=aw();const Ce=Kr(sw);function ow(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function lw(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 wm(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function uw(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=wm(e.className,t):e.setAttribute("class",wm(e.className&&e.className.baseVal||"",t))}const xm={disabled:!1};var cw=process.env.NODE_ENV!=="production"?Ce.oneOfType([Ce.number,Ce.shape({enter:Ce.number,exit:Ce.number,appear:Ce.number}).isRequired]):null,fw=process.env.NODE_ENV!=="production"?Ce.oneOfType([Ce.string,Ce.shape({enter:Ce.string,exit:Ce.string,active:Ce.string}),Ce.shape({enter:Ce.string,enterDone:Ce.string,enterActive:Ce.string,exit:Ce.string,exitDone:Ce.string,exitActive:Ce.string})]):null;const kv=U.createContext(null);var wv=function(t){return t.scrollTop},Ra="unmounted",ni="exited",ii="entering",Mi="entered",Bc="exiting",Gr=(function(e){yv(t,e);function t(i,a){var n;n=e.call(this,i,a)||this;var s=a,o=s&&!s.isMounting?i.enter:i.appear,l;return n.appearStatus=null,i.in?o?(l=ni,n.appearStatus=ii):l=Mi:i.unmountOnExit||i.mountOnEnter?l=Ra:l=ni,n.state={status:l},n.nextCallback=null,n}t.getDerivedStateFromProps=function(a,n){var s=a.in;return s&&n.status===Ra?{status:ni}: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 s=this.state.status;this.props.in?s!==ii&&s!==Mi&&(n=ii):(s===ii||s===Mi)&&(n=Bc)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,n,s,o;return n=s=o=a,a!=null&&typeof a!="number"&&(n=a.exit,s=a.enter,o=a.appear!==void 0?a.appear:s),{exit:n,enter:s,appear:o}},r.updateStatus=function(a,n){if(a===void 0&&(a=!1),n!==null)if(this.cancelNextCallback(),n===ii){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ts.findDOMNode(this);s&&wv(s)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ni&&this.setState({status:Ra})},r.performEnter=function(a){var n=this,s=this.props.enter,o=this.context?this.context.isMounting:a,l=this.props.nodeRef?[o]:[Ts.findDOMNode(this),o],u=l[0],c=l[1],f=this.getTimeouts(),m=o?f.appear:f.enter;if(!a&&!s||xm.disabled){this.safeSetState({status:Mi},function(){n.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:ii},function(){n.props.onEntering(u,c),n.onTransitionEnd(m,function(){n.safeSetState({status:Mi},function(){n.props.onEntered(u,c)})})})},r.performExit=function(){var a=this,n=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:Ts.findDOMNode(this);if(!n||xm.disabled){this.safeSetState({status:ni},function(){a.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:Bc},function(){a.props.onExiting(o),a.onTransitionEnd(s.exit,function(){a.safeSetState({status:ni},function(){a.props.onExited(o)})})})},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,s=!0;return this.nextCallback=function(o){s&&(s=!1,n.nextCallback=null,a(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(a,n){this.setNextCallback(n);var s=this.props.nodeRef?this.props.nodeRef.current:Ts.findDOMNode(this),o=a==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,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===Ra)return null;var n=this.props,s=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 o=gv(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return U.createElement(kv.Provider,{value:null},typeof s=="function"?s(a,o):U.cloneElement(U.Children.only(s),o))},t})(U.Component);Gr.contextType=kv;Gr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:Ce.shape({current:typeof Element>"u"?Ce.any:function(e,t,r,i,a,n){var s=e[t];return Ce.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,r,i,a,n)}}),children:Ce.oneOfType([Ce.func.isRequired,Ce.element.isRequired]).isRequired,in:Ce.bool,mountOnEnter:Ce.bool,unmountOnExit:Ce.bool,appear:Ce.bool,enter:Ce.bool,exit:Ce.bool,timeout:function(t){var r=cw;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:Ce.func,onEnter:Ce.func,onEntering:Ce.func,onEntered:Ce.func,onExit:Ce.func,onExiting:Ce.func,onExited:Ce.func}:{};function Ii(){}Gr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ii,onEntering:Ii,onEntered:Ii,onExit:Ii,onExiting:Ii,onExited:Ii};Gr.UNMOUNTED=Ra;Gr.EXITED=ni;Gr.ENTERING=ii;Gr.ENTERED=Mi;Gr.EXITING=Bc;var dw=function(t,r){return t&&r&&r.split(" ").forEach(function(i){return lw(t,i)})},ou=function(t,r){return t&&r&&r.split(" ").forEach(function(i){return uw(t,i)})},qf=(function(e){yv(t,e);function t(){for(var i,a=arguments.length,n=new Array(a),s=0;s<a;s++)n[s]=arguments[s];return i=e.call.apply(e,[this].concat(n))||this,i.appliedClasses={appear:{},enter:{},exit:{}},i.onEnter=function(o,l){var u=i.resolveArguments(o,l),c=u[0],f=u[1];i.removeClasses(c,"exit"),i.addClass(c,f?"appear":"enter","base"),i.props.onEnter&&i.props.onEnter(o,l)},i.onEntering=function(o,l){var u=i.resolveArguments(o,l),c=u[0],f=u[1],m=f?"appear":"enter";i.addClass(c,m,"active"),i.props.onEntering&&i.props.onEntering(o,l)},i.onEntered=function(o,l){var u=i.resolveArguments(o,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(o,l)},i.onExit=function(o){var l=i.resolveArguments(o),u=l[0];i.removeClasses(u,"appear"),i.removeClasses(u,"enter"),i.addClass(u,"exit","base"),i.props.onExit&&i.props.onExit(o)},i.onExiting=function(o){var l=i.resolveArguments(o),u=l[0];i.addClass(u,"exit","active"),i.props.onExiting&&i.props.onExiting(o)},i.onExited=function(o){var l=i.resolveArguments(o),u=l[0];i.removeClasses(u,"exit"),i.addClass(u,"exit","done"),i.props.onExited&&i.props.onExited(o)},i.resolveArguments=function(o,l){return i.props.nodeRef?[i.props.nodeRef.current,o]:[o,l]},i.getClassNames=function(o){var l=i.props.classNames,u=typeof l=="string",c=u&&l?l+"-":"",f=u?""+c+o:l[o],m=u?f+"-active":l[o+"Active"],d=u?f+"-done":l[o+"Done"];return{baseClassName:f,activeClassName:m,doneClassName:d}},i}var r=t.prototype;return r.addClass=function(a,n,s){var o=this.getClassNames(n)[s+"ClassName"],l=this.getClassNames("enter"),u=l.doneClassName;n==="appear"&&s==="done"&&u&&(o+=" "+u),s==="active"&&a&&wv(a),o&&(this.appliedClasses[n][s]=o,dw(a,o))},r.removeClasses=function(a,n){var s=this.appliedClasses[n],o=s.base,l=s.active,u=s.done;this.appliedClasses[n]={},o&&ou(a,o),l&&ou(a,l),u&&ou(a,u)},r.render=function(){var a=this.props;a.classNames;var n=gv(a,["classNames"]);return U.createElement(Gr,Ko({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(U.Component);qf.defaultProps={classNames:""};qf.propTypes=process.env.NODE_ENV!=="production"?Ko({},Gr.propTypes,{classNames:fw,onEnter:Ce.func,onEntering:Ce.func,onEntered:Ce.func,onExit:Ce.func,onExiting:Ce.func,onExited:Ce.func}):{};const mw=qf,Sm=({active:e,children:t,content:r,disabled:i})=>{const a=U.useRef(null);return i?j.jsx(j.Fragment,{children:t}):j.jsxs("div",{className:"fcode-loading-overlay-root",children:[t,j.jsx(mw,{nodeRef:a,in:e,timeout:200,unmountOnExit:!0,classNames:"fcode-loading-overlay",children:j.jsx("div",{ref:a,"data-testid":"overlay",className:"fcode-loading-overlay",children:j.jsxs("div",{className:"fcode-loading-overlay-content-wrapper",children:[j.jsx("div",{"data-testid":"spinner",className:"fcode-loading-overlay-spinner",children:j.jsx("svg",{viewBox:"25 25 50 50",children:j.jsx("circle",{cx:"50",cy:"50",r:"20",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"})})}),r&&j.jsx("p",{"data-testid":"content",className:"fcode-loading-overlay-content",children:r})]})})})]})},pw=["first","second"],xv=()=>j.jsxs("div",{className:"fcode-form-skeleton","data-testid":"fcode-form-skeleton","aria-hidden":"true",children:[j.jsx("div",{className:"fcode-form-skeleton-title"}),j.jsx("div",{className:"fcode-form-skeleton-description"}),pw.map(e=>j.jsxs("div",{className:"fcode-form-skeleton-group",children:[j.jsx("div",{className:"fcode-form-skeleton-label"}),j.jsx("div",{className:"fcode-form-skeleton-field"})]},e)),j.jsx("div",{className:"fcode-form-skeleton-button"})]});xv.displayName="FormSkeleton";const Fo=(e,t)=>{const r=new CustomEvent(e,{detail:t});document.dispatchEvent(r)},hw=e=>{try{const t=new URL(e,window.location.href);return t.protocol==="http:"||t.protocol==="https:"?t.href:null}catch{return null}},gw=(e,t=r=>window.location.assign(r))=>{const r=hw(e.url);if(r===null){console.warn(`Ignoring redirect to unsupported URL: ${e.url}`);return}setTimeout(()=>t(r),e.timeout||0)},yw=(e,t)=>{Fo("fcode-forms-on-next-step",{formId:e,previousProcessExecutionResult:t})},vw="The form has been successfully submitted",Cm="There has been an error submitting the form",Sv=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 Cm}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:Cm},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},Cv=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]=Cv(e[t]);break}return e},ww=e=>{let t={};return e.fields&&(t={...Cv(e.fields)}),e.global&&(t.__errors=[...e.global]),t};function xw(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const Sw=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Cw=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ew={};function Em(e,t){return(Ew.jsx?Cw:Sw).test(e)}const Aw=/[ \t\n\f\r]/g;function Ow(e){return typeof e=="object"?e.type==="text"?Am(e.value):!1:Am(e)}function Am(e){return e.replace(Aw,"")===""}class os{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}}os.prototype.normal={};os.prototype.property={};os.prototype.space=void 0;function Ev(e,t){const r={},i={};for(const a of e)Object.assign(r,a.property),Object.assign(i,a.normal);return new os(r,i,t)}function Vc(e){return e.toLowerCase()}class Zt{constructor(t,r){this.attribute=r,this.property=t}}Zt.prototype.attribute="";Zt.prototype.booleanish=!1;Zt.prototype.boolean=!1;Zt.prototype.commaOrSpaceSeparated=!1;Zt.prototype.commaSeparated=!1;Zt.prototype.defined=!1;Zt.prototype.mustUseProperty=!1;Zt.prototype.number=!1;Zt.prototype.overloadedBoolean=!1;Zt.prototype.property="";Zt.prototype.spaceSeparated=!1;Zt.prototype.space=void 0;let _w=0;const Se=ki(),Ot=ki(),Hc=ki(),oe=ki(),ft=ki(),oi=ki(),tr=ki();function ki(){return 2**++_w}const Wc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Se,booleanish:Ot,commaOrSpaceSeparated:tr,commaSeparated:oi,number:oe,overloadedBoolean:Hc,spaceSeparated:ft},Symbol.toStringTag,{value:"Module"})),lu=Object.keys(Wc);class $f extends Zt{constructor(t,r,i,a){let n=-1;if(super(t,r),Om(this,"space",a),typeof i=="number")for(;++n<lu.length;){const s=lu[n];Om(this,lu[n],(i&Wc[s])===Wc[s])}}}$f.prototype.defined=!0;function Om(e,t,r){r&&(e[t]=r)}function sa(e){const t={},r={};for(const[i,a]of Object.entries(e.properties)){const n=new $f(i,e.transform(e.attributes||{},i),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(n.mustUseProperty=!0),t[i]=n,r[Vc(i)]=i,r[Vc(n.attribute)]=i}return new os(t,r,e.space)}const Av=sa({properties:{ariaActiveDescendant:null,ariaAtomic:Ot,ariaAutoComplete:null,ariaBusy:Ot,ariaChecked:Ot,ariaColCount:oe,ariaColIndex:oe,ariaColSpan:oe,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:oe,ariaLive:null,ariaModal:Ot,ariaMultiLine:Ot,ariaMultiSelectable:Ot,ariaOrientation:null,ariaOwns:ft,ariaPlaceholder:null,ariaPosInSet:oe,ariaPressed:Ot,ariaReadOnly:Ot,ariaRelevant:null,ariaRequired:Ot,ariaRoleDescription:ft,ariaRowCount:oe,ariaRowIndex:oe,ariaRowSpan:oe,ariaSelected:Ot,ariaSetSize:oe,ariaSort:null,ariaValueMax:oe,ariaValueMin:oe,ariaValueNow:oe,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Ov(e,t){return t in e?e[t]:t}function _v(e,t){return Ov(e,t.toLowerCase())}const Pw=sa({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:oi,acceptCharset:ft,accessKey:ft,action:null,allow:null,allowFullScreen:Se,allowPaymentRequest:Se,allowUserMedia:Se,alpha:Se,alt:null,as:null,async:Se,autoCapitalize:null,autoComplete:ft,autoFocus:Se,autoPlay:Se,blocking:ft,capture:null,charSet:null,checked:Se,cite:null,className:ft,closedBy:null,colorSpace:null,cols:oe,colSpan:oe,command:null,commandFor:null,content:null,contentEditable:Ot,controls:Se,controlsList:ft,coords:oe|oi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Se,defer:Se,dir:null,dirName:null,disabled:Se,download:Hc,draggable:Ot,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Se,formTarget:null,headers:ft,height:oe,hidden:Hc,high:oe,href:null,hrefLang:null,htmlFor:ft,httpEquiv:ft,id:null,imageSizes:null,imageSrcSet:null,inert:Se,inputMode:null,integrity:null,is:null,isMap:Se,itemId:null,itemProp:ft,itemRef:ft,itemScope:Se,itemType:ft,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Se,low:oe,manifest:null,max:null,maxLength:oe,media:null,method:null,min:null,minLength:oe,multiple:Se,muted:Se,name:null,nonce:null,noModule:Se,noValidate:Se,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:Se,optimum:oe,pattern:null,ping:ft,placeholder:null,playsInline:Se,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Se,referrerPolicy:null,rel:ft,required:Se,reversed:Se,rows:oe,rowSpan:oe,sandbox:ft,scope:null,scoped:Se,seamless:Se,selected:Se,shadowRootClonable:Se,shadowRootCustomElementRegistry:Se,shadowRootDelegatesFocus:Se,shadowRootMode:null,shadowRootSerializable:Se,shape:null,size:oe,sizes:null,slot:null,span:oe,spellCheck:Ot,src:null,srcDoc:null,srcLang:null,srcSet:null,start:oe,step:null,style:null,tabIndex:oe,target:null,title:null,translate:null,type:null,typeMustMatch:Se,useMap:null,value:Ot,width:oe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ft,axis:null,background:null,bgColor:null,border:oe,borderColor:null,bottomMargin:oe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Se,declare:Se,event:null,face:null,frame:null,frameBorder:null,hSpace:oe,leftMargin:oe,link:null,longDesc:null,lowSrc:null,marginHeight:oe,marginWidth:oe,noResize:Se,noHref:Se,noShade:Se,noWrap:Se,object:null,profile:null,prompt:null,rev:null,rightMargin:oe,rules:null,scheme:null,scrolling:Ot,standby:null,summary:null,text:null,topMargin:oe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:oe,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Se,disablePictureInPicture:Se,disableRemotePlayback:Se,exportParts:oi,part:ft,prefix:null,property:null,results:oe,security:null,unselectable:null},space:"html",transform:_v}),Iw=sa({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:tr,accentHeight:oe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:oe,amplitude:oe,arabicForm:null,ascent:oe,attributeName:null,attributeType:null,azimuth:oe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:oe,by:null,calcMode:null,capHeight:oe,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:oe,diffuseConstant:oe,direction:null,display:null,dur:null,divisor:oe,dominantBaseline:null,download:Se,dx:null,dy:null,edgeMode:null,editable:null,elevation:oe,enableBackground:null,end:null,event:null,exponent:oe,externalResourcesRequired:null,fill:null,fillOpacity:oe,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:oi,g2:oi,glyphName:oi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:oe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:oe,horizOriginX:oe,horizOriginY:oe,id:null,ideographic:oe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:oe,k:oe,k1:oe,k2:oe,k3:oe,k4:oe,kernelMatrix:tr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:oe,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:oe,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:oe,overlineThickness:oe,paintOrder:null,panose1:null,path:null,pathLength:oe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ft,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:oe,pointsAtY:oe,pointsAtZ:oe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tr,rev:tr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tr,requiredFeatures:tr,requiredFonts:tr,requiredFormats:tr,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:oe,specularExponent:oe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:oe,strikethroughThickness:oe,string:null,stroke:null,strokeDashArray:tr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:oe,strokeOpacity:oe,strokeWidth:null,style:null,surfaceScale:oe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tr,tabIndex:oe,tableValues:null,target:null,targetX:oe,targetY:oe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:oe,underlineThickness:oe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:oe,values:null,vAlphabetic:oe,vMathematical:oe,vectorEffect:null,vHanging:oe,vIdeographic:oe,version:null,vertAdvY:oe,vertOriginX:oe,vertOriginY:oe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:oe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ov}),Pv=sa({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()}}),Iv=sa({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:_v}),Tv=sa({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Tw={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"},jw=/[A-Z]/g,_m=/-[a-z]/g,Rw=/^data[-\w.:]+$/i;function Nw(e,t){const r=Vc(t);let i=t,a=Zt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Rw.test(t)){if(t.charAt(4)==="-"){const n=t.slice(5).replace(_m,Dw);i="data"+n.charAt(0).toUpperCase()+n.slice(1)}else{const n=t.slice(4);if(!_m.test(n)){let s=n.replace(jw,Fw);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=$f}return new a(i,t)}function Fw(e){return"-"+e.toLowerCase()}function Dw(e){return e.charAt(1).toUpperCase()}const Mw=Ev([Av,Pw,Pv,Iv,Tv],"html"),zf=Ev([Av,Iw,Pv,Iv,Tv],"svg");function Lw(e){return e.join(" ").trim()}var Ti={},uu,Pm;function qw(){if(Pm)return uu;Pm=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,n=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\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 x(T){var D=T.match(t);D&&(b+=D.length);var L=T.lastIndexOf(l);w=~L?T.length-L:w+T.length}function h(){var T={line:b,column:w};return function(D){return D.position=new y(T),_(),D}}function y(T){this.start=T,this.end={line:b,column:w},this.source=g.source}y.prototype.content=v;function S(T){var D=new Error(g.source+":"+b+":"+w+": "+T);if(D.reason=T,D.filename=g.source,D.line=b,D.column=w,D.source=v,!g.silent)throw D}function A(T){var D=T.exec(v);if(D){var L=D[0];return x(L),v=v.slice(L.length),D}}function _(){A(r)}function C(T){var D;for(T=T||[];D=E();)D!==!1&&T.push(D);return T}function E(){var T=h();if(!(u!=v.charAt(0)||c!=v.charAt(1))){for(var D=2;f!=v.charAt(D)&&(c!=v.charAt(D)||u!=v.charAt(D+1));)++D;if(D+=2,f===v.charAt(D-1))return S("End of comment missing");var L=v.slice(2,D-2);return w+=2,x(L),v=v.slice(D),w+=2,T({type:m,comment:L})}}function O(){var T=h(),D=A(i);if(D){if(E(),!A(a))return S("property missing ':'");var L=A(n),H=T({type:d,property:k(D[0].replace(e,f)),value:L?k(L[0].replace(e,f)):f});return A(s),H}}function R(){var T=[];C(T);for(var D;D=O();)D!==!1&&(T.push(D),C(T));return T}return _(),R()}function k(v){return v?v.replace(o,f):f}return uu=p,uu}var Im;function $w(){if(Im)return Ti;Im=1;var e=Ti&&Ti.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.default=r;const t=e(qw());function r(i,a){let n=null;if(!i||typeof i!="string")return n;const s=(0,t.default)(i),o=typeof a=="function";return s.forEach(l=>{if(l.type!=="declaration")return;const{property:u,value:c}=l;o?a(u,c,l):c&&(n=n||{},n[u]=c)}),n}return Ti}var ka={},Tm;function zw(){if(Tm)return ka;Tm=1,Object.defineProperty(ka,"__esModule",{value:!0}),ka.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)},s=function(u,c){return c.toUpperCase()},o=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,o):u=u.replace(i,o),u.replace(t,s))};return ka.camelCase=l,ka}var wa,jm;function Uw(){if(jm)return wa;jm=1;var e=wa&&wa.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e($w()),r=zw();function i(a,n){var s={};return!a||typeof a!="string"||(0,t.default)(a,function(o,l){o&&l&&(s[(0,r.camelCase)(o,n)]=l)}),s}return i.default=i,wa=i,wa}var Bw=Uw();const Vw=Kr(Bw),jv=Rv("end"),Uf=Rv("start");function Rv(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 Hw(e){const t=Uf(e),r=jv(e);if(t&&r)return{start:t,end:r}}function $a(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Rm(e.position):"start"in e||"end"in e?Rm(e):"line"in e||"column"in e?Kc(e):""}function Kc(e){return Nm(e&&e.line)+":"+Nm(e&&e.column)}function Rm(e){return Kc(e&&e.start)+"-"+Kc(e&&e.end)}function Nm(e){return e&&typeof e=="number"?e:1}class $t extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let a="",n={},s=!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&&(s=!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 o=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=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=o?o.line:void 0,this.name=$a(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=s&&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}}$t.prototype.file="";$t.prototype.name="";$t.prototype.reason="";$t.prototype.message="";$t.prototype.stack="";$t.prototype.column=void 0;$t.prototype.line=void 0;$t.prototype.ancestors=void 0;$t.prototype.cause=void 0;$t.prototype.fatal=void 0;$t.prototype.place=void 0;$t.prototype.ruleId=void 0;$t.prototype.source=void 0;const Bf={}.hasOwnProperty,Ww=new Map,Kw=/[A-Z]/g,Gw=new Set(["table","tbody","thead","tfoot","tr"]),Jw=new Set(["td","th"]),Nv="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Yw(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=ix(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=nx(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"?zf:Mw,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},n=Fv(a,e,void 0);return n&&typeof n!="string"?n:a.create(e,a.Fragment,{children:n||void 0},void 0)}function Fv(e,t,r){if(t.type==="element")return Xw(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Zw(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return ex(e,t,r);if(t.type==="mdxjsEsm")return Qw(e,t);if(t.type==="root")return tx(e,t,r);if(t.type==="text")return rx(e,t)}function Xw(e,t,r){const i=e.schema;let a=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(a=zf,e.schema=a),e.ancestors.push(t);const n=Mv(e,t.tagName,!1),s=ax(e,t);let o=Hf(e,t);return Gw.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!Ow(l):!0})),Dv(e,s,n,t),Vf(s,o),e.ancestors.pop(),e.schema=i,e.create(t,n,s,r)}function Zw(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)}Ga(e,t.position)}function Qw(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ga(e,t.position)}function ex(e,t,r){const i=e.schema;let a=i;t.name==="svg"&&i.space==="html"&&(a=zf,e.schema=a),e.ancestors.push(t);const n=t.name===null?e.Fragment:Mv(e,t.name,!0),s=sx(e,t),o=Hf(e,t);return Dv(e,s,n,t),Vf(s,o),e.ancestors.pop(),e.schema=i,e.create(t,n,s,r)}function tx(e,t,r){const i={};return Vf(i,Hf(e,t)),e.create(t,e.Fragment,i,r)}function rx(e,t){return t.value}function Dv(e,t,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=i)}function Vf(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function nx(e,t,r){return i;function i(a,n,s,o){const u=Array.isArray(s.children)?r:t;return o?u(n,s,o):u(n,s)}}function ix(e,t){return r;function r(i,a,n,s){const o=Array.isArray(n.children),l=Uf(i);return t(a,n,s,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function ax(e,t){const r={};let i,a;for(a in t.properties)if(a!=="children"&&Bf.call(t.properties,a)){const n=ox(e,a,t.properties[a]);if(n){const[s,o]=n;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&Jw.has(t.tagName)?i=o:r[s]=o}}if(i){const n=r.style||(r.style={});n[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function sx(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 s=n.expression;s.type;const o=s.properties[0];o.type,Object.assign(r,e.evaluater.evaluateExpression(o.argument))}else Ga(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 o=i.value.data.estree.body[0];o.type,n=e.evaluater.evaluateExpression(o.expression)}else Ga(e,t.position);else n=i.value===null?!0:i.value;r[a]=n}return r}function Hf(e,t){const r=[];let i=-1;const a=e.passKeys?new Map:Ww;for(;++i<t.children.length;){const n=t.children[i];let s;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;s=l+"-"+u,a.set(l,u+1)}}const o=Fv(e,n,s);o!==void 0&&r.push(o)}return r}function ox(e,t,r){const i=Nw(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?xw(r):Lw(r)),i.property==="style"){let a=typeof r=="object"?r:lx(e,String(r));return e.stylePropertyNameCase==="css"&&(a=ux(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&i.space?Tw[i.property]||i.property:i.attribute,r]}}function lx(e,t){try{return Vw(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,a=new $t("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=Nv+"#cannot-parse-style-attribute",a}}function Mv(e,t,r){let i;if(!r)i={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let n=-1,s;for(;++n<a.length;){const o=Em(a[n])?{type:"Identifier",name:a[n]}:{type:"Literal",value:a[n]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(n&&o.type==="Literal"),optional:!1}:o}i=s}else i=Em(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const a=i.value;return Bf.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(i);Ga(e)}function Ga(e,t){const r=new $t("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=Nv+"#cannot-handle-mdx-estrees-without-createevaluater",r}function ux(e){const t={};let r;for(r in e)Bf.call(e,r)&&(t[cx(r)]=e[r]);return t}function cx(e){let t=e.replace(Kw,fx);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function fx(e){return"-"+e.toLowerCase()}const cu={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"]},dx={};function Wf(e,t){const r=dx,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,a=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Lv(e,i,a)}function Lv(e,t,r){if(mx(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 Fm(e.children,t,r)}return Array.isArray(e)?Fm(e,t,r):""}function Fm(e,t,r){const i=[];let a=-1;for(;++a<e.length;)i[a]=Lv(e[a],t,r);return i.join("")}function mx(e){return!!(e&&typeof e=="object")}const Dm=document.createElement("i");function Kf(e){const t="&"+e+";";Dm.innerHTML=t;const r=Dm.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function ar(e,t,r,i){const a=e.length;let n=0,s;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,r=r>0?r:0,i.length<1e4)s=Array.from(i),s.unshift(t,r),e.splice(...s);else for(r&&e.splice(t,r);n<i.length;)s=i.slice(n,n+1e4),s.unshift(t,0),e.splice(...s),n+=1e4,t+=1e4}function ur(e,t){return e.length>0?(ar(e,e.length,0,t),e):t}const Mm={}.hasOwnProperty;function qv(e){const t={};let r=-1;for(;++r<e.length;)px(t,e[r]);return t}function px(e,t){let r;for(r in t){const a=(Mm.call(e,r)?e[r]:void 0)||(e[r]={}),n=t[r];let s;if(n)for(s in n){Mm.call(a,s)||(a[s]=[]);const o=n[s];hx(a[s],Array.isArray(o)?o:o?[o]:[])}}}function hx(e,t){let r=-1;const i=[];for(;++r<t.length;)(t[r].add==="after"?e:i).push(t[r]);ar(e,0,0,i)}function $v(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 Ar(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Bt=Un(/[A-Za-z]/),Lt=Un(/[\dA-Za-z]/),gx=Un(/[#-'*+\--9=?A-Z^-~]/);function Go(e){return e!==null&&(e<32||e===127)}const Gc=Un(/\d/),yx=Un(/[\dA-Fa-f]/),vx=Un(/[!-/:-@[-`{-~]/);function he(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 vl=Un(new RegExp("\\p{P}|\\p{S}","u")),ui=Un(/\s/);function Un(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function oa(e){const t=[];let r=-1,i=0,a=0;for(;++r<e.length;){const n=e.charCodeAt(r);let s="";if(n===37&&Lt(e.charCodeAt(r+1))&&Lt(e.charCodeAt(r+2)))a=2;else if(n<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(n))||(s=String.fromCharCode(n));else if(n>55295&&n<57344){const o=e.charCodeAt(r+1);n<56320&&o>56319&&o<57344?(s=String.fromCharCode(n,o),a=1):s="�"}else s=String.fromCharCode(n);s&&(t.push(e.slice(i,r),encodeURIComponent(s)),i=r+a+1,s=""),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 s;function s(l){return Me(l)?(e.enter(r),o(l)):t(l)}function o(l){return Me(l)&&n++<a?(e.consume(l),o):(e.exit(r),t(l))}}const bx={tokenize:kx};function kx(e){const t=e.attempt(this.parser.constructs.contentInitial,i,a);let r;return t;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Be(e,t,"linePrefix")}function a(o){return e.enter("paragraph"),n(o)}function n(o){const l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return he(o)?(e.consume(o),e.exit("chunkText"),n):(e.consume(o),s)}}const wx={tokenize:xx},Lm={tokenize:Sx};function xx(e){const t=this,r=[];let i=0,a,n,s;return o;function o(w){if(i<r.length){const x=r[i];return t.containerState=x[1],e.attempt(x[0].continuation,l,u)(w)}return u(w)}function l(w){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&b();const x=t.events.length;let h=x,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 S=x;for(;S<t.events.length;)t.events[S][1].end={...y},S++;return ar(t.events,h+1,0,t.events.slice(x)),t.events.length=S,u(w)}return o(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(Lm,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,s=t.now().offset,p(w)}function m(w){return t.containerState={},e.attempt(Lm,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 he(w)?(e.consume(w),v(e.exit("chunkFlow")),i=0,t.interrupt=void 0,o):(e.consume(w),k)}function v(w,x){const h=t.sliceStream(w);if(x&&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<s&&(!a.events[y][1].end||a.events[y][1].end.offset>s))return;const S=t.events.length;let A=S,_,C;for(;A--;)if(t.events[A][0]==="exit"&&t.events[A][1].type==="chunkFlow"){if(_){C=t.events[A][1].end;break}_=!0}for(g(i),y=S;y<t.events.length;)t.events[y][1].end={...C},y++;ar(t.events,A+1,0,t.events.slice(S)),t.events.length=y}}function g(w){let x=r.length;for(;x-- >w;){const h=r[x];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 Sx(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 Zi(e){if(e===null||dt(e)||ui(e))return 1;if(vl(e))return 2}function bl(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 Jc={name:"attention",resolveAll:Cx,tokenize:Ex};function Cx(e,t){let r=-1,i,a,n,s,o,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};qm(f,-l),qm(m,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[i][1].end}},o={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:{...s.start},end:{...o.end}},e[i][1].end={...s.start},e[r][1].start={...o.end},u=[],e[i][1].end.offset-e[i][1].start.offset&&(u=ur(u,[["enter",e[i][1],t],["exit",e[i][1],t]])),u=ur(u,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",n,t]]),u=ur(u,bl(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),u=ur(u,[["exit",n,t],["enter",o,t],["exit",o,t],["exit",a,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=ur(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,ar(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 Ex(e,t){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,a=Zi(i);let n;return s;function s(l){return n=l,e.enter("attentionSequence"),o(l)}function o(l){if(l===n)return e.consume(l),o;const u=e.exit("attentionSequence"),c=Zi(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 qm(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Ax={name:"autolink",tokenize:Ox};function Ox(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 Bt(d)?(e.consume(d),s):d===64?r(d):u(d)}function s(d){return d===43||d===45||d===46||Lt(d)?(i=1,o(d)):u(d)}function o(d){return d===58?(e.consume(d),i=0,l):(d===43||d===45||d===46||Lt(d))&&i++<32?(e.consume(d),o):(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||Go(d)?r(d):(e.consume(d),l)}function u(d){return d===64?(e.consume(d),c):gx(d)?(e.consume(d),u):r(d)}function c(d){return Lt(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||Lt(d))&&i++<63){const p=d===45?m:f;return e.consume(d),p}return r(d)}}const ls={partial:!0,tokenize:_x};function _x(e,t,r){return i;function i(n){return Me(n)?Be(e,a,"linePrefix")(n):a(n)}function a(n){return n===null||he(n)?t(n):r(n)}}const zv={continuation:{tokenize:Ix},exit:Tx,name:"blockQuote",tokenize:Px};function Px(e,t,r){const i=this;return a;function a(s){if(s===62){const o=i.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),n}return r(s)}function n(s){return Me(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function Ix(e,t,r){const i=this;return a;function a(s){return Me(s)?Be(e,n,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):n(s)}function n(s){return e.attempt(zv,t,r)(s)}}function Tx(e){e.exit("blockQuote")}const Uv={name:"characterEscape",tokenize:jx};function jx(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 vx(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}const Bv={name:"characterReference",tokenize:Rx};function Rx(e,t,r){const i=this;let a=0,n,s;return o;function o(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,s=Lt,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),n=6,s=yx,c):(e.enter("characterReferenceValue"),n=7,s=Gc,c(f))}function c(f){if(f===59&&a){const m=e.exit("characterReferenceValue");return s===Lt&&!Kf(i.sliceSerialize(m))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&a++<n?(e.consume(f),c):r(f)}}const $m={partial:!0,tokenize:Fx},zm={concrete:!0,name:"codeFenced",tokenize:Nx};function Nx(e,t,r){const i=this,a={partial:!0,tokenize:h};let n=0,s=0,o;return l;function l(y){return u(y)}function u(y){const S=i.events[i.events.length-1];return n=S&&S[1].type==="linePrefix"?S[2].sliceSerialize(S[1],!0).length:0,o=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(y)}function c(y){return y===o?(s++,e.consume(y),c):s<3?r(y):(e.exit("codeFencedFenceSequence"),Me(y)?Be(e,f,"whitespace")(y):f(y))}function f(y){return y===null||he(y)?(e.exit("codeFencedFence"),i.interrupt?t(y):e.check($m,k,x)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===null||he(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===o?r(y):(e.consume(y),m)}function d(y){return y===null||he(y)?f(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===null||he(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(y)):y===96&&y===o?r(y):(e.consume(y),p)}function k(y){return e.attempt(a,x,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||he(y)?e.check($m,k,x)(y):(e.enter("codeFlowValue"),w(y))}function w(y){return y===null||he(y)?(e.exit("codeFlowValue"),b(y)):(e.consume(y),w)}function x(y){return e.exit("codeFenced"),t(y)}function h(y,S,A){let _=0;return C;function C(D){return y.enter("lineEnding"),y.consume(D),y.exit("lineEnding"),E}function E(D){return y.enter("codeFencedFence"),Me(D)?Be(y,O,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):O(D)}function O(D){return D===o?(y.enter("codeFencedFenceSequence"),R(D)):A(D)}function R(D){return D===o?(_++,y.consume(D),R):_>=s?(y.exit("codeFencedFenceSequence"),Me(D)?Be(y,T,"whitespace")(D):T(D)):A(D)}function T(D){return D===null||he(D)?(y.exit("codeFencedFence"),S(D)):A(D)}}}function Fx(e,t,r){const i=this;return a;function a(s){return s===null?r(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n)}function n(s){return i.parser.lazy[i.now().line]?r(s):t(s)}}const fu={name:"codeIndented",tokenize:Mx},Dx={partial:!0,tokenize:Lx};function Mx(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?s(u):r(u)}function s(u){return u===null?l(u):he(u)?e.attempt(Dx,s,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||he(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function Lx(e,t,r){const i=this;return a;function a(s){return i.parser.lazy[i.now().line]?r(s):he(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):Be(e,n,"linePrefix",5)(s)}function n(s){const o=i.events[i.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):he(s)?a(s):r(s)}}const qx={name:"codeText",previous:zx,resolve:$x,tokenize:Ux};function $x(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 zx(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Ux(e,t,r){let i=0,a,n;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),o(f)}function o(f){return f===96?(e.consume(f),i++,o):(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)):he(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||he(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 Bx{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&&xa(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),xa(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),xa(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);xa(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);xa(this.left,r.reverse())}}}function xa(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 Vv(e){const t={};let r=-1,i,a,n,s,o,l,u;const c=new Bx(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,Vx(c,r)),r=t[r],u=!0);else if(i[1]._container){for(n=r,a=void 0;n--;)if(s=c.get(n),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(a&&(c.get(a)[1].type="lineEndingBlank"),s[1].type="lineEnding",a=n);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;a&&(i[1].end={...c.get(a)[1].start},o=c.slice(a,r),o.unshift(i),c.splice(a,r-a+1,o))}}return ar(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function Vx(e,t){const r=e.get(t)[1],i=e.get(t)[2];let a=t-1;const n=[];let s=r._tokenizer;s||(s=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.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&&s.defineSkip(d.start),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=r;++m<o.length;)o[m][0]==="exit"&&o[m-1][0]==="enter"&&o[m][1].type===o[m-1][1].type&&o[m][1].start.line!==o[m][1].end.line&&(k=m+1,v.push(k),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(s.events=[],d?(d._tokenizer=void 0,d.previous=void 0):v.pop(),m=v.length;m--;){const g=o.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 Hx={resolve:Kx,tokenize:Gx},Wx={partial:!0,tokenize:Jx};function Kx(e){return Vv(e),e}function Gx(e,t){let r;return i;function i(o){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),a(o)}function a(o){return o===null?n(o):he(o)?e.check(Wx,s,n)(o):(e.consume(o),a)}function n(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,a}}function Jx(e,t,r){const i=this;return a;function a(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Be(e,n,"linePrefix")}function n(s){if(s===null||he(s))return r(s);const o=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(i.parser.constructs.flow,r,t)(s)}}function Hv(e,t,r,i,a,n,s,o,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||Go(g)?r(g):(e.enter(i),e.enter(s),e.enter(o),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(o),e.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===62?(e.exit("chunkString"),e.exit(o),m(g)):g===null||g===60||he(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(o),e.exit(s),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||Go(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 Wv(e,t,r,i,a,n){const s=this;let o=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 o>999||d===null||d===91||d===93&&!l||d===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?r(d):d===93?(e.exit(n),e.enter(a),e.consume(d),e.exit(a),e.exit(i),t):he(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||he(d)||o++>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),o++,f):f(d)}}function Kv(e,t,r,i,a,n){let s;return o;function o(m){return m===34||m===39||m===40?(e.enter(i),e.enter(a),e.consume(m),e.exit(a),s=m===40?41:m,l):r(m)}function l(m){return m===s?(e.enter(a),e.consume(m),e.exit(a),e.exit(i),t):(e.enter(n),u(m))}function u(m){return m===s?(e.exit(n),l(s)):m===null?r(m):he(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===s||m===null||he(m)?(e.exit("chunkString"),u(m)):(e.consume(m),m===92?f:c)}function f(m){return m===s||m===92?(e.consume(m),c):c(m)}}function za(e,t){let r;return i;function i(a){return he(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 Yx={name:"definition",tokenize:Zx},Xx={partial:!0,tokenize:Qx};function Zx(e,t,r){const i=this;let a;return n;function n(d){return e.enter("definition"),s(d)}function s(d){return Wv.call(i,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function o(d){return a=Ar(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)?za(e,u)(d):u(d)}function u(d){return Hv(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function c(d){return e.attempt(Xx,f,f)(d)}function f(d){return Me(d)?Be(e,m,"whitespace")(d):m(d)}function m(d){return d===null||he(d)?(e.exit("definition"),i.parser.defined.push(a),t(d)):r(d)}}function Qx(e,t,r){return i;function i(o){return dt(o)?za(e,a)(o):r(o)}function a(o){return Kv(e,n,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function n(o){return Me(o)?Be(e,s,"whitespace")(o):s(o)}function s(o){return o===null||he(o)?t(o):r(o)}}const eS={name:"hardBreakEscape",tokenize:tS};function tS(e,t,r){return i;function i(n){return e.enter("hardBreakEscape"),e.consume(n),a}function a(n){return he(n)?(e.exit("hardBreakEscape"),t(n)):r(n)}}const rS={name:"headingAtx",resolve:nS,tokenize:iS};function nS(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"},ar(e,i,r-i+1,[["enter",a,t],["enter",n,t],["exit",n,t],["exit",a,t]])),e}function iS(e,t,r){let i=0;return a;function a(c){return e.enter("atxHeading"),n(c)}function n(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&i++<6?(e.consume(c),s):c===null||dt(c)?(e.exit("atxHeadingSequence"),o(c)):r(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||he(c)?(e.exit("atxHeading"),t(c)):Me(c)?Be(e,o,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),o(c))}function u(c){return c===null||c===35||dt(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),u)}}const aS=["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"],Um=["pre","script","style","textarea"],sS={concrete:!0,name:"htmlFlow",resolveTo:uS,tokenize:cS},oS={partial:!0,tokenize:dS},lS={partial:!0,tokenize:fS};function uS(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 cS(e,t,r){const i=this;let a,n,s,o,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):Bt(I)?(e.consume(I),s=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,o=0,p):Bt(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 N="CDATA[";return I===N.charCodeAt(o++)?(e.consume(I),o===N.length?i.interrupt?t:O:p):r(I)}function k(I){return Bt(I)?(e.consume(I),s=String.fromCharCode(I),v):r(I)}function v(I){if(I===null||I===47||I===62||dt(I)){const N=I===47,M=s.toLowerCase();return!N&&!n&&Um.includes(M)?(a=1,i.interrupt?t(I):O(I)):aS.includes(s.toLowerCase())?(a=6,N?(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||Lt(I)?(e.consume(I),s+=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):C(I)}function w(I){return I===47?(e.consume(I),C):I===58||I===95||Bt(I)?(e.consume(I),x):Me(I)?(e.consume(I),w):C(I)}function x(I){return I===45||I===46||I===58||I===95||Lt(I)?(e.consume(I),x):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,S):Me(I)?(e.consume(I),y):A(I)}function S(I){return I===l?(e.consume(I),l=null,_):I===null||he(I)?r(I):(e.consume(I),S)}function A(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),A)}function _(I){return I===47||I===62||Me(I)?w(I):r(I)}function C(I){return I===62?(e.consume(I),E):r(I)}function E(I){return I===null||he(I)?O(I):Me(I)?(e.consume(I),E):r(I)}function O(I){return I===45&&a===2?(e.consume(I),L):I===60&&a===1?(e.consume(I),H):I===62&&a===4?(e.consume(I),F):I===63&&a===3?(e.consume(I),P):I===93&&a===5?(e.consume(I),Z):he(I)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(oS,z,R)(I)):I===null||he(I)?(e.exit("htmlFlowData"),R(I)):(e.consume(I),O)}function R(I){return e.check(lS,T,z)(I)}function T(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),D}function D(I){return I===null||he(I)?R(I):(e.enter("htmlFlowData"),O(I))}function L(I){return I===45?(e.consume(I),P):O(I)}function H(I){return I===47?(e.consume(I),s="",Y):O(I)}function Y(I){if(I===62){const N=s.toLowerCase();return Um.includes(N)?(e.consume(I),F):O(I)}return Bt(I)&&s.length<8?(e.consume(I),s+=String.fromCharCode(I),Y):O(I)}function Z(I){return I===93?(e.consume(I),P):O(I)}function P(I){return I===62?(e.consume(I),F):I===45&&a===2?(e.consume(I),P):O(I)}function F(I){return I===null||he(I)?(e.exit("htmlFlowData"),z(I)):(e.consume(I),F)}function z(I){return e.exit("htmlFlow"),t(I)}}function fS(e,t,r){const i=this;return a;function a(s){return he(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n):r(s)}function n(s){return i.parser.lazy[i.now().line]?r(s):t(s)}}function dS(e,t,r){return i;function i(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(ls,t,r)}}const mS={name:"htmlText",tokenize:pS};function pS(e,t,r){const i=this;let a,n,s;return o;function o(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):Bt(P)?(e.consume(P),A):r(P)}function u(P){return P===45?(e.consume(P),c):P===91?(e.consume(P),n=0,p):Bt(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):he(P)?(s=f,H(P)):(e.consume(P),f)}function m(P){return P===45?(e.consume(P),d):f(P)}function d(P){return P===62?L(P):P===45?m(P):f(P)}function p(P){const F="CDATA[";return P===F.charCodeAt(n++)?(e.consume(P),n===F.length?k:p):r(P)}function k(P){return P===null?r(P):P===93?(e.consume(P),v):he(P)?(s=k,H(P)):(e.consume(P),k)}function v(P){return P===93?(e.consume(P),g):k(P)}function g(P){return P===62?L(P):P===93?(e.consume(P),g):k(P)}function b(P){return P===null||P===62?L(P):he(P)?(s=b,H(P)):(e.consume(P),b)}function w(P){return P===null?r(P):P===63?(e.consume(P),x):he(P)?(s=w,H(P)):(e.consume(P),w)}function x(P){return P===62?L(P):w(P)}function h(P){return Bt(P)?(e.consume(P),y):r(P)}function y(P){return P===45||Lt(P)?(e.consume(P),y):S(P)}function S(P){return he(P)?(s=S,H(P)):Me(P)?(e.consume(P),S):L(P)}function A(P){return P===45||Lt(P)?(e.consume(P),A):P===47||P===62||dt(P)?_(P):r(P)}function _(P){return P===47?(e.consume(P),L):P===58||P===95||Bt(P)?(e.consume(P),C):he(P)?(s=_,H(P)):Me(P)?(e.consume(P),_):L(P)}function C(P){return P===45||P===46||P===58||P===95||Lt(P)?(e.consume(P),C):E(P)}function E(P){return P===61?(e.consume(P),O):he(P)?(s=E,H(P)):Me(P)?(e.consume(P),E):_(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,R):he(P)?(s=O,H(P)):Me(P)?(e.consume(P),O):(e.consume(P),T)}function R(P){return P===a?(e.consume(P),a=void 0,D):P===null?r(P):he(P)?(s=R,H(P)):(e.consume(P),R)}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 D(P){return P===47||P===62||dt(P)?_(P):r(P)}function L(P){return P===62?(e.consume(P),e.exit("htmlTextData"),e.exit("htmlText"),t):r(P)}function H(P){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),Y}function Y(P){return Me(P)?Be(e,Z,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):Z(P)}function Z(P){return e.enter("htmlTextData"),s(P)}}const Gf={name:"labelEnd",resolveAll:vS,resolveTo:bS,tokenize:kS},hS={tokenize:wS},gS={tokenize:xS},yS={tokenize:SS};function vS(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&&ar(e,0,e.length,r),e}function bS(e,t){let r=e.length,i=0,a,n,s,o;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(s){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"&&(s=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[s][1].end}},c={type:"labelText",start:{...e[n+i+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",l,t],["enter",u,t]],o=ur(o,e.slice(n+1,n+i+3)),o=ur(o,[["enter",c,t]]),o=ur(o,bl(t.parser.constructs.insideSpan.null,e.slice(n+i+4,s-3),t)),o=ur(o,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),o=ur(o,e.slice(s+1)),o=ur(o,[["exit",l,t]]),ar(e,n,e.length,o),e}function kS(e,t,r){const i=this;let a=i.events.length,n,s;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 o;function o(m){return n?n._inactive?f(m):(s=i.parser.defined.includes(Ar(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(hS,c,s?c:f)(m):m===91?e.attempt(gS,c,s?u:f)(m):s?c(m):f(m)}function u(m){return e.attempt(yS,c,f)(m)}function c(m){return t(m)}function f(m){return n._balanced=!0,r(m)}}function wS(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)?za(e,n)(f):n(f)}function n(f){return f===41?c(f):Hv(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return dt(f)?za(e,l)(f):c(f)}function o(f){return r(f)}function l(f){return f===34||f===39||f===40?Kv(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return dt(f)?za(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(o){return Wv.call(i,e,n,s,"reference","referenceMarker","referenceString")(o)}function n(o){return i.parser.defined.includes(Ar(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(o):r(o)}function s(o){return r(o)}}function SS(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 CS={name:"labelStartImage",resolveAll:Gf.resolveAll,tokenize:ES};function ES(e,t,r){const i=this;return a;function a(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),n}function n(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):r(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(o):t(o)}}const AS={name:"labelStartLink",resolveAll:Gf.resolveAll,tokenize:OS};function OS(e,t,r){const i=this;return a;function a(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),n}function n(s){return s===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(s):t(s)}}const du={name:"lineEnding",tokenize:_S};function _S(e,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Be(e,t,"linePrefix")}}const Do={name:"thematicBreak",tokenize:PS};function PS(e,t,r){let i=0,a;return n;function n(u){return e.enter("thematicBreak"),s(u)}function s(u){return a=u,o(u)}function o(u){return u===a?(e.enter("thematicBreakSequence"),l(u)):i>=3&&(u===null||he(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,o,"whitespace")(u):o(u))}}const Yt={continuation:{tokenize:RS},exit:FS,name:"list",tokenize:jS},IS={partial:!0,tokenize:DS},TS={partial:!0,tokenize:NS};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,s=0;return o;function o(d){const p=i.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!i.containerState.marker||d===i.containerState.marker:Gc(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(Do,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 Gc(d)&&++s<10?(e.consume(d),l):(!i.interrupt||s<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(ls,i.interrupt?r:c,e.attempt(IS,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 RS(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(ls,a,n);function a(o){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Be(e,t,"listItemIndent",i.containerState.size+1)(o)}function n(o){return i.containerState.furtherBlankLines||!Me(o)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,s(o)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(TS,t,s)(o))}function s(o){return i.containerState._closeFlow=!0,i.interrupt=void 0,Be(e,e.attempt(Yt,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function NS(e,t,r){const i=this;return Be(e,a,"listItemIndent",i.containerState.size+1);function a(n){const s=i.events[i.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===i.containerState.size?t(n):r(n)}}function FS(e){e.exit(this.containerState.type)}function DS(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 s=i.events[i.events.length-1];return!Me(n)&&s&&s[1].type==="listItemPrefixWhitespace"?t(n):r(n)}}const Bm={name:"setextUnderline",resolveTo:MS,tokenize:LS};function MS(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 s={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",s,t]),e.splice(n+1,0,["exit",e[i][1],t]),e[i][1].end={...e[n][1].end}):e[i][1]=s,e.push(["exit",s,t]),e}function LS(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,s(u)):r(u)}function s(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===a?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),Me(u)?Be(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||he(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const qS={tokenize:$S};function $S(e){const t=this,r=e.attempt(ls,i,e.attempt(this.parser.constructs.flowInitial,a,Be(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Hx,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 zS={resolveAll:Jv()},US=Gv("string"),BS=Gv("text");function Gv(e){return{resolveAll:Jv(e==="text"?VS:void 0),tokenize:t};function t(r){const i=this,a=this.parser.constructs[e],n=r.attempt(a,s,o);return s;function s(c){return u(c)?n(c):o(c)}function o(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 Jv(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 VS(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,s=-1,o=0,l;for(;n--;){const u=a[n];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(u===-2)l=!0,o++;else if(u!==-1){n++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(o=0),o){const u={type:r===e.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:n?s:i.start._bufferIndex+s,_index:i.start._index+n,line:i.end.line,column:i.end.column-o,offset:i.end.offset-o},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 HS={42:Yt,43:Yt,45:Yt,48:Yt,49:Yt,50:Yt,51:Yt,52:Yt,53:Yt,54:Yt,55:Yt,56:Yt,57:Yt,62:zv},WS={91:Yx},KS={[-2]:fu,[-1]:fu,32:fu},GS={35:rS,42:Do,45:[Bm,Do],60:sS,61:Bm,95:Do,96:zm,126:zm},JS={38:Bv,92:Uv},YS={[-5]:du,[-4]:du,[-3]:du,33:CS,38:Bv,42:Jc,60:[Ax,mS],91:AS,92:[eS,Uv],93:Gf,95:Jc,96:qx},XS={null:[Jc,zS]},ZS={null:[42,95]},QS={null:[]},eC=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:ZS,contentInitial:WS,disable:QS,document:HS,flow:GS,flowInitial:KS,insideSpan:XS,string:JS,text:YS},Symbol.toStringTag,{value:"Module"}));function tC(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 s=[],o=[];const l={attempt:S(h),check:S(y),consume:b,enter:w,exit:x,interrupt:S(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(E){return s=ur(s,E),v(),s[s.length-1]!==null?[]:(A(t,0),u.events=bl(n,u.events,u),u.events)}function m(E,O){return nC(d(E),O)}function d(E){return rC(s,E)}function p(){const{_bufferIndex:E,_index:O,line:R,column:T,offset:D}=i;return{_bufferIndex:E,_index:O,line:R,column:T,offset:D}}function k(E){a[E.line]=E.column,C()}function v(){let E;for(;i._index<s.length;){const O=s[i._index];if(typeof O=="string")for(E=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===E&&i._bufferIndex<O.length;)g(O.charCodeAt(i._bufferIndex));else g(O)}}function g(E){c=c(E)}function b(E){he(E)?(i.line++,i.column=1,i.offset+=E===-3?2:1,C()):E!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===s[i._index].length&&(i._bufferIndex=-1,i._index++)),u.previous=E}function w(E,O){const R=O||{};return R.type=E,R.start=p(),u.events.push(["enter",R,u]),o.push(R),R}function x(E){const O=o.pop();return O.end=p(),u.events.push(["exit",O,u]),O}function h(E,O){A(E,O.from)}function y(E,O){O.restore()}function S(E,O){return R;function R(T,D,L){let H,Y,Z,P;return Array.isArray(T)?z(T):"tokenize"in T?z([T]):F(T);function F(B){return V;function V(W){const K=W!==null&&B[W],X=W!==null&&B.null,$=[...Array.isArray(K)?K:K?[K]:[],...Array.isArray(X)?X:X?[X]:[]];return z($)(W)}}function z(B){return H=B,Y=0,B.length===0?L:I(B[Y])}function I(B){return V;function V(W){return P=_(),Z=B,B.partial||(u.currentConstruct=B),B.name&&u.parser.constructs.disable.null.includes(B.name)?M():B.tokenize.call(O?Object.assign(Object.create(u),O):u,l,N,M)(W)}}function N(B){return E(Z,P),D}function M(B){return P.restore(),++Y<H.length?I(H[Y]):L}}}function A(E,O){E.resolveAll&&!n.includes(E)&&n.push(E),E.resolve&&ar(u.events,O,u.events.length-O,E.resolve(u.events.slice(O),u)),E.resolveTo&&(u.events=E.resolveTo(u.events,u))}function _(){const E=p(),O=u.previous,R=u.currentConstruct,T=u.events.length,D=Array.from(o);return{from:T,restore:L};function L(){i=E,u.previous=O,u.currentConstruct=R,u.events.length=T,o=D,C()}}function C(){i.line in a&&i.column<2&&(i.column=a[i.line],i.offset+=a[i.line]-1)}}function rC(e,t){const r=t.start._index,i=t.start._bufferIndex,a=t.end._index,n=t.end._bufferIndex;let s;if(r===a)s=[e[r].slice(i,n)];else{if(s=e.slice(r,a),i>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(i):s.shift()}n>0&&s.push(e[a].slice(0,n))}return s}function nC(e,t){let r=-1;const i=[];let a;for(;++r<e.length;){const n=e[r];let s;if(typeof n=="string")s=n;else switch(n){case-5:{s="\r";break}case-4:{s=`
22
22
  `;break}case-3:{s=`\r
23
- `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&a)continue;s=" ";break}default:s=String.fromCharCode(n)}a=n===-2,i.push(s)}return i.join("")}function GS(e){const i={constructs:Nv([VS,...(e||{}).extensions||[]]),content:a(ux),defined:[],document:a(fx),flow:a(PS),lazy:{},string:a(jS),text:a(RS)};return i;function a(n){return s;function s(o){return HS(i,n,o)}}}function JS(e){for(;!qv(e););return e}const qm=/[\0\t\n\r]/g;function YS(){let e=1,t="",r=!0,i;return a;function a(n,s,o){const l=[];let u,c,f,m,d;for(n=t+(typeof n=="string"?n.toString():new TextDecoder(s||void 0).decode(n)),f=0,t="",r&&(n.charCodeAt(0)===65279&&f++,r=void 0);f<n.length;){if(qm.lastIndex=f,u=qm.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 o&&(i&&l.push(-5),t&&l.push(t),l.push(null)),l}}const XS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ZS(e){return e.replace(XS,QS)}function QS(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const a=r.charCodeAt(1),n=a===120||a===88;return Fv(r.slice(n?2:1),n?16:10)}return Uf(r)||e}const Hv={}.hasOwnProperty;function eC(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),tC(r)(JS(GS(r).document().write(YS()(e,t,!0))))}function tC(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:n(we),autolinkProtocol:_,autolinkEmail:_,atxHeading:n(ie),blockQuote:n(Y),characterEscape:_,characterReference:_,codeFenced:n($),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:n($,s),codeText:n(q,s),codeTextData:_,data:_,codeFlowValue:_,definition:n(G),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:n(W),hardBreakEscape:n(re),hardBreakTrailing:n(re),htmlFlow:n(ue,s),htmlFlowData:_,htmlText:n(ue,s),htmlTextData:_,image:n(ye),label:s,link:n(we),listItem:n(Pe),listItemValue:m,listOrdered:n(ke,f),listUnordered:n(ke),paragraph:n(de),reference:I,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:n(ie),strong:n(Ve),thematicBreak:n(ve)},exit:{atxHeading:l(),atxHeadingSequence:h,autolink:l(),autolinkEmail:K,autolinkProtocol:H,blockQuote:l(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:M,characterReferenceMarkerNumeric:M,characterReferenceValue:U,characterReference:V,codeFenced:l(v),codeFencedFence:k,codeFencedFenceInfo:d,codeFencedFenceMeta:p,codeFlowValue:x,codeIndented:l(g),codeText:l(D),codeTextData:x,data:x,definition:l(),definitionDestinationString:C,definitionLabelString:b,definitionTitleString:w,emphasis:l(),hardBreakEscape:l(O),hardBreakTrailing:l(O),htmlFlow:l(R),htmlFlowData:x,htmlText:l(T),htmlTextData:x,image:l(J),label:Z,labelText:X,lineEnding:E,link:l(L),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:N,resourceDestinationString:P,resourceTitleString:F,resource:z,setextHeading:l(A),setextHeadingLineSequence:S,setextHeadingText:y,strong:l(),thematicBreak:l()}};Kv(t,(e||{}).mdastExtensions||[]);const r={};return i;function i(Q){let ee={type:"root",children:[]};const te={stack:[ee],tokenStack:[],config:t,enter:o,exit:u,buffer:s,resume:c,data:r},pe=[];let ce=-1;for(;++ce<Q.length;)if(Q[ce][1].type==="listOrdered"||Q[ce][1].type==="listUnordered")if(Q[ce][0]==="enter")pe.push(ce);else{const ct=pe.pop();ce=a(Q,ct,ce)}for(ce=-1;++ce<Q.length;){const ct=t[Q[ce][0]];Hv.call(ct,Q[ce][1].type)&&ct[Q[ce][1].type].call(Object.assign({sliceSerialize:Q[ce][2].sliceSerialize},te),Q[ce][1])}if(te.tokenStack.length>0){const ct=te.tokenStack[te.tokenStack.length-1];(ct[1]||$m).call(te,void 0,ct[0])}for(ee.position={start:hn(Q.length>0?Q[0][1].start:{line:1,column:1,offset:0}),end:hn(Q.length>0?Q[Q.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(Q,ee,te){let pe=ee-1,ce=-1,ct=!1,Fe,He,bt,Et;for(;++pe<=te;){const ot=Q[pe];switch(ot[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ot[0]==="enter"?ce++:ce--,Et=void 0;break}case"lineEndingBlank":{ot[0]==="enter"&&(Fe&&!Et&&!ce&&!bt&&(bt=pe),Et=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Et=void 0}if(!ce&&ot[0]==="enter"&&ot[1].type==="listItemPrefix"||ce===-1&&ot[0]==="exit"&&(ot[1].type==="listUnordered"||ot[1].type==="listOrdered")){if(Fe){let kt=pe;for(He=void 0;kt--;){const pt=Q[kt];if(pt[1].type==="lineEnding"||pt[1].type==="lineEndingBlank"){if(pt[0]==="exit")continue;He&&(Q[He][1].type="lineEndingBlank",ct=!0),pt[1].type="lineEnding",He=kt}else if(!(pt[1].type==="linePrefix"||pt[1].type==="blockQuotePrefix"||pt[1].type==="blockQuotePrefixWhitespace"||pt[1].type==="blockQuoteMarker"||pt[1].type==="listItemIndent"))break}bt&&(!He||bt<He)&&(Fe._spread=!0),Fe.end=Object.assign({},He?Q[He][1].start:ot[1].end),Q.splice(He||pe,0,["exit",Fe,ot[2]]),pe++,te++}if(ot[1].type==="listItemPrefix"){const kt={type:"listItem",_spread:!1,start:Object.assign({},ot[1].start),end:void 0};Fe=kt,Q.splice(pe,0,["enter",kt,ot[2]]),pe++,te++,bt=void 0,Et=!0}}}return Q[ee][1]._spread=ct,te}function n(Q,ee){return te;function te(pe){o.call(this,Q(pe),pe),ee&&ee.call(this,pe)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(Q,ee,te){this.stack[this.stack.length-1].children.push(Q),this.stack.push(Q),this.tokenStack.push([ee,te||void 0]),Q.position={start:hn(ee.start),end:void 0}}function l(Q){return ee;function ee(te){Q&&Q.call(this,te),u.call(this,te)}}function u(Q,ee){const te=this.stack.pop(),pe=this.tokenStack.pop();if(pe)pe[0].type!==Q.type&&(ee?ee.call(this,Q,pe[0]):(pe[1]||$m).call(this,Q,pe[0]));else throw new Error("Cannot close `"+Q.type+"` ("+Ma({start:Q.start,end:Q.end})+"): it’s not open");te.position.end=hn(Q.end)}function c(){return zf(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function m(Q){if(this.data.expectingFirstListItemValue){const ee=this.stack[this.stack.length-2];ee.start=Number.parseInt(this.sliceSerialize(Q),10),this.data.expectingFirstListItemValue=void 0}}function d(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.lang=Q}function p(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.meta=Q}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q.replace(/(\r?\n|\r)$/g,"")}function b(Q){const ee=this.resume(),te=this.stack[this.stack.length-1];te.label=ee,te.identifier=Ar(this.sliceSerialize(Q)).toLowerCase()}function w(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.title=Q}function C(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.url=Q}function h(Q){const ee=this.stack[this.stack.length-1];if(!ee.depth){const te=this.sliceSerialize(Q).length;ee.depth=te}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function S(Q){const ee=this.stack[this.stack.length-1];ee.depth=this.sliceSerialize(Q).codePointAt(0)===61?1:2}function A(){this.data.setextHeadingSlurpLineEnding=void 0}function _(Q){const te=this.stack[this.stack.length-1].children;let pe=te[te.length-1];(!pe||pe.type!=="text")&&(pe=st(),pe.position={start:hn(Q.start),end:void 0},te.push(pe)),this.stack.push(pe)}function x(Q){const ee=this.stack.pop();ee.value+=this.sliceSerialize(Q),ee.position.end=hn(Q.end)}function E(Q){const ee=this.stack[this.stack.length-1];if(this.data.atHardBreak){const te=ee.children[ee.children.length-1];te.position.end=hn(Q.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ee.type)&&(_.call(this,Q),x.call(this,Q))}function O(){this.data.atHardBreak=!0}function R(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q}function T(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q}function D(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q}function L(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const ee=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=ee,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function J(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const ee=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=ee,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function X(Q){const ee=this.sliceSerialize(Q),te=this.stack[this.stack.length-2];te.label=ZS(ee),te.identifier=Ar(ee).toLowerCase()}function Z(){const Q=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 pe=Q.children;te.children=pe}else te.alt=ee}function P(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.url=Q}function F(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.title=Q}function z(){this.data.inReference=void 0}function I(){this.data.referenceType="collapsed"}function N(Q){const ee=this.resume(),te=this.stack[this.stack.length-1];te.label=ee,te.identifier=Ar(this.sliceSerialize(Q)).toLowerCase(),this.data.referenceType="full"}function M(Q){this.data.characterReferenceType=Q.type}function U(Q){const ee=this.sliceSerialize(Q),te=this.data.characterReferenceType;let pe;te?(pe=Fv(ee,te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):pe=Uf(ee);const ce=this.stack[this.stack.length-1];ce.value+=pe}function V(Q){const ee=this.stack.pop();ee.position.end=hn(Q.end)}function H(Q){x.call(this,Q);const ee=this.stack[this.stack.length-1];ee.url=this.sliceSerialize(Q)}function K(Q){x.call(this,Q);const ee=this.stack[this.stack.length-1];ee.url="mailto:"+this.sliceSerialize(Q)}function Y(){return{type:"blockquote",children:[]}}function $(){return{type:"code",lang:null,meta:null,value:""}}function q(){return{type:"inlineCode",value:""}}function G(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function W(){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 we(){return{type:"link",title:null,url:"",children:[]}}function ke(Q){return{type:"list",ordered:Q.type==="listOrdered",start:null,spread:Q._spread,children:[]}}function Pe(Q){return{type:"listItem",spread:Q._spread,checked:null,children:[]}}function de(){return{type:"paragraph",children:[]}}function Ve(){return{type:"strong",children:[]}}function st(){return{type:"text",value:""}}function ve(){return{type:"thematicBreak"}}}function hn(e){return{line:e.line,column:e.column,offset:e.offset}}function Kv(e,t){let r=-1;for(;++r<t.length;){const i=t[r];Array.isArray(i)?Kv(e,i):rC(e,i)}}function rC(e,t){let r;for(r in t)if(Hv.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 $m(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ma({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ma({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ma({start:t.start,end:t.end})+") is still open")}function nC(e){const t=this;t.parser=r;function r(i){return eC(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function iC(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 aC(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
24
- `}]}function sC(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 oC(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function lC(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function uC(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=aa(i.toLowerCase()),n=e.footnoteOrder.indexOf(i);let s,o=e.footnoteCounts.get(i);o===void 0?(o=0,e.footnoteOrder.push(i),s=e.footnoteOrder.length):s=n+1,o+=1,e.footnoteCounts.set(i,o);const l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function cC(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 fC(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function Wv(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 s=a[a.length-1];return s&&s.type==="text"?s.value+=i:a.push({type:"text",value:i}),a}function dC(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return Wv(e,t);const a={src:aa(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 mC(e,t){const r={src:aa(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 pC(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 hC(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return Wv(e,t);const a={href:aa(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 gC(e,t){const r={href:aa(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 yC(e,t,r){const i=e.all(t),a=r?vC(r):Gv(t),n={},s=[];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 o=-1;for(;++o<i.length;){const c=i[o];(a||o!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
23
+ `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&a)continue;s=" ";break}default:s=String.fromCharCode(n)}a=n===-2,i.push(s)}return i.join("")}function iC(e){const i={constructs:qv([eC,...(e||{}).extensions||[]]),content:a(bx),defined:[],document:a(wx),flow:a(qS),lazy:{},string:a(US),text:a(BS)};return i;function a(n){return s;function s(o){return tC(i,n,o)}}}function aC(e){for(;!Vv(e););return e}const Vm=/[\0\t\n\r]/g;function sC(){let e=1,t="",r=!0,i;return a;function a(n,s,o){const l=[];let u,c,f,m,d;for(n=t+(typeof n=="string"?n.toString():new TextDecoder(s||void 0).decode(n)),f=0,t="",r&&(n.charCodeAt(0)===65279&&f++,r=void 0);f<n.length;){if(Vm.lastIndex=f,u=Vm.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 o&&(i&&l.push(-5),t&&l.push(t),l.push(null)),l}}const oC=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function lC(e){return e.replace(oC,uC)}function uC(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const a=r.charCodeAt(1),n=a===120||a===88;return $v(r.slice(n?2:1),n?16:10)}return Kf(r)||e}const Yv={}.hasOwnProperty;function cC(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),fC(r)(aC(iC(r).document().write(sC()(e,t,!0))))}function fC(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:n(we),autolinkProtocol:_,autolinkEmail:_,atxHeading:n(ie),blockQuote:n(X),characterEscape:_,characterReference:_,codeFenced:n($),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:n($,s),codeText:n(q,s),codeTextData:_,data:_,codeFlowValue:_,definition:n(J),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:n(G),hardBreakEscape:n(re),hardBreakTrailing:n(re),htmlFlow:n(ue,s),htmlFlowData:_,htmlText:n(ue,s),htmlTextData:_,image:n(ye),label:s,link:n(we),listItem:n(Pe),listItemValue:m,listOrdered:n(ke,f),listUnordered:n(ke),paragraph:n(de),reference:I,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:n(ie),strong:n(Ve),thematicBreak:n(ve)},exit:{atxHeading:l(),atxHeadingSequence:h,autolink:l(),autolinkEmail:K,autolinkProtocol:W,blockQuote:l(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:M,characterReferenceMarkerNumeric:M,characterReferenceValue:B,characterReference:V,codeFenced:l(v),codeFencedFence:k,codeFencedFenceInfo:d,codeFencedFenceMeta:p,codeFlowValue:C,codeIndented:l(g),codeText:l(D),codeTextData:C,data:C,definition:l(),definitionDestinationString:x,definitionLabelString:b,definitionTitleString:w,emphasis:l(),hardBreakEscape:l(O),hardBreakTrailing:l(O),htmlFlow:l(R),htmlFlowData:C,htmlText:l(T),htmlTextData:C,image:l(H),label:Z,labelText:Y,lineEnding:E,link:l(L),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:N,resourceDestinationString:P,resourceTitleString:F,resource:z,setextHeading:l(A),setextHeadingLineSequence:S,setextHeadingText:y,strong:l(),thematicBreak:l()}};Xv(t,(e||{}).mdastExtensions||[]);const r={};return i;function i(Q){let ee={type:"root",children:[]};const te={stack:[ee],tokenStack:[],config:t,enter:o,exit:u,buffer:s,resume:c,data:r},pe=[];let ce=-1;for(;++ce<Q.length;)if(Q[ce][1].type==="listOrdered"||Q[ce][1].type==="listUnordered")if(Q[ce][0]==="enter")pe.push(ce);else{const ct=pe.pop();ce=a(Q,ct,ce)}for(ce=-1;++ce<Q.length;){const ct=t[Q[ce][0]];Yv.call(ct,Q[ce][1].type)&&ct[Q[ce][1].type].call(Object.assign({sliceSerialize:Q[ce][2].sliceSerialize},te),Q[ce][1])}if(te.tokenStack.length>0){const ct=te.tokenStack[te.tokenStack.length-1];(ct[1]||Hm).call(te,void 0,ct[0])}for(ee.position={start:hn(Q.length>0?Q[0][1].start:{line:1,column:1,offset:0}),end:hn(Q.length>0?Q[Q.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(Q,ee,te){let pe=ee-1,ce=-1,ct=!1,Fe,He,bt,Et;for(;++pe<=te;){const ot=Q[pe];switch(ot[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ot[0]==="enter"?ce++:ce--,Et=void 0;break}case"lineEndingBlank":{ot[0]==="enter"&&(Fe&&!Et&&!ce&&!bt&&(bt=pe),Et=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Et=void 0}if(!ce&&ot[0]==="enter"&&ot[1].type==="listItemPrefix"||ce===-1&&ot[0]==="exit"&&(ot[1].type==="listUnordered"||ot[1].type==="listOrdered")){if(Fe){let kt=pe;for(He=void 0;kt--;){const pt=Q[kt];if(pt[1].type==="lineEnding"||pt[1].type==="lineEndingBlank"){if(pt[0]==="exit")continue;He&&(Q[He][1].type="lineEndingBlank",ct=!0),pt[1].type="lineEnding",He=kt}else if(!(pt[1].type==="linePrefix"||pt[1].type==="blockQuotePrefix"||pt[1].type==="blockQuotePrefixWhitespace"||pt[1].type==="blockQuoteMarker"||pt[1].type==="listItemIndent"))break}bt&&(!He||bt<He)&&(Fe._spread=!0),Fe.end=Object.assign({},He?Q[He][1].start:ot[1].end),Q.splice(He||pe,0,["exit",Fe,ot[2]]),pe++,te++}if(ot[1].type==="listItemPrefix"){const kt={type:"listItem",_spread:!1,start:Object.assign({},ot[1].start),end:void 0};Fe=kt,Q.splice(pe,0,["enter",kt,ot[2]]),pe++,te++,bt=void 0,Et=!0}}}return Q[ee][1]._spread=ct,te}function n(Q,ee){return te;function te(pe){o.call(this,Q(pe),pe),ee&&ee.call(this,pe)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(Q,ee,te){this.stack[this.stack.length-1].children.push(Q),this.stack.push(Q),this.tokenStack.push([ee,te||void 0]),Q.position={start:hn(ee.start),end:void 0}}function l(Q){return ee;function ee(te){Q&&Q.call(this,te),u.call(this,te)}}function u(Q,ee){const te=this.stack.pop(),pe=this.tokenStack.pop();if(pe)pe[0].type!==Q.type&&(ee?ee.call(this,Q,pe[0]):(pe[1]||Hm).call(this,Q,pe[0]));else throw new Error("Cannot close `"+Q.type+"` ("+$a({start:Q.start,end:Q.end})+"): it’s not open");te.position.end=hn(Q.end)}function c(){return Wf(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function m(Q){if(this.data.expectingFirstListItemValue){const ee=this.stack[this.stack.length-2];ee.start=Number.parseInt(this.sliceSerialize(Q),10),this.data.expectingFirstListItemValue=void 0}}function d(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.lang=Q}function p(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.meta=Q}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q.replace(/(\r?\n|\r)$/g,"")}function b(Q){const ee=this.resume(),te=this.stack[this.stack.length-1];te.label=ee,te.identifier=Ar(this.sliceSerialize(Q)).toLowerCase()}function w(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.title=Q}function x(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.url=Q}function h(Q){const ee=this.stack[this.stack.length-1];if(!ee.depth){const te=this.sliceSerialize(Q).length;ee.depth=te}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function S(Q){const ee=this.stack[this.stack.length-1];ee.depth=this.sliceSerialize(Q).codePointAt(0)===61?1:2}function A(){this.data.setextHeadingSlurpLineEnding=void 0}function _(Q){const te=this.stack[this.stack.length-1].children;let pe=te[te.length-1];(!pe||pe.type!=="text")&&(pe=st(),pe.position={start:hn(Q.start),end:void 0},te.push(pe)),this.stack.push(pe)}function C(Q){const ee=this.stack.pop();ee.value+=this.sliceSerialize(Q),ee.position.end=hn(Q.end)}function E(Q){const ee=this.stack[this.stack.length-1];if(this.data.atHardBreak){const te=ee.children[ee.children.length-1];te.position.end=hn(Q.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ee.type)&&(_.call(this,Q),C.call(this,Q))}function O(){this.data.atHardBreak=!0}function R(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q}function T(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q}function D(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q}function L(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const ee=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=ee,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function H(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const ee=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=ee,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function Y(Q){const ee=this.sliceSerialize(Q),te=this.stack[this.stack.length-2];te.label=lC(ee),te.identifier=Ar(ee).toLowerCase()}function Z(){const Q=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 pe=Q.children;te.children=pe}else te.alt=ee}function P(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.url=Q}function F(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.title=Q}function z(){this.data.inReference=void 0}function I(){this.data.referenceType="collapsed"}function N(Q){const ee=this.resume(),te=this.stack[this.stack.length-1];te.label=ee,te.identifier=Ar(this.sliceSerialize(Q)).toLowerCase(),this.data.referenceType="full"}function M(Q){this.data.characterReferenceType=Q.type}function B(Q){const ee=this.sliceSerialize(Q),te=this.data.characterReferenceType;let pe;te?(pe=$v(ee,te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):pe=Kf(ee);const ce=this.stack[this.stack.length-1];ce.value+=pe}function V(Q){const ee=this.stack.pop();ee.position.end=hn(Q.end)}function W(Q){C.call(this,Q);const ee=this.stack[this.stack.length-1];ee.url=this.sliceSerialize(Q)}function K(Q){C.call(this,Q);const ee=this.stack[this.stack.length-1];ee.url="mailto:"+this.sliceSerialize(Q)}function X(){return{type:"blockquote",children:[]}}function $(){return{type:"code",lang:null,meta:null,value:""}}function q(){return{type:"inlineCode",value:""}}function J(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function G(){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 we(){return{type:"link",title:null,url:"",children:[]}}function ke(Q){return{type:"list",ordered:Q.type==="listOrdered",start:null,spread:Q._spread,children:[]}}function Pe(Q){return{type:"listItem",spread:Q._spread,checked:null,children:[]}}function de(){return{type:"paragraph",children:[]}}function Ve(){return{type:"strong",children:[]}}function st(){return{type:"text",value:""}}function ve(){return{type:"thematicBreak"}}}function hn(e){return{line:e.line,column:e.column,offset:e.offset}}function Xv(e,t){let r=-1;for(;++r<t.length;){const i=t[r];Array.isArray(i)?Xv(e,i):dC(e,i)}}function dC(e,t){let r;for(r in t)if(Yv.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 Hm(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+$a({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+$a({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+$a({start:t.start,end:t.end})+") is still open")}function mC(e){const t=this;t.parser=r;function r(i){return cC(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function pC(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 hC(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
24
+ `}]}function gC(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 yC(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function vC(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function bC(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=oa(i.toLowerCase()),n=e.footnoteOrder.indexOf(i);let s,o=e.footnoteCounts.get(i);o===void 0?(o=0,e.footnoteOrder.push(i),s=e.footnoteOrder.length):s=n+1,o+=1,e.footnoteCounts.set(i,o);const l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function kC(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 wC(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function Zv(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 s=a[a.length-1];return s&&s.type==="text"?s.value+=i:a.push({type:"text",value:i}),a}function xC(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return Zv(e,t);const a={src:oa(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 SC(e,t){const r={src:oa(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 CC(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 EC(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return Zv(e,t);const a={href:oa(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 AC(e,t){const r={href:oa(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 OC(e,t,r){const i=e.all(t),a=r?_C(r):Qv(t),n={},s=[];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 o=-1;for(;++o<i.length;){const c=i[o];(a||o!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
26
26
  `}),c.type==="element"&&c.tagName==="p"&&!a?s.push(...c.children):s.push(c)}const l=i[i.length-1];l&&(a||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
27
- `});const u={type:"element",tagName:"li",properties:n,children:s};return e.patch(t,u),e.applyData(t,u)}function vC(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=Gv(r[i])}return t}function Gv(e){const t=e.spread;return t??e.children.length>1}function bC(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 s=i[a];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.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 kC(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function wC(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function xC(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function SC(e,t){const r=e.all(t),i=r.shift(),a=[];if(i){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],s),a.push(s)}if(r.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},o=Mf(t.children[1]),l=Ov(t.children[t.children.length-1]);o&&l&&(s.position={start:o,end:l}),a.push(s)}const n={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,n),e.applyData(t,n)}function CC(e,t,r){const i=r?r.children:void 0,n=(i?i.indexOf(t):1)===0?"th":"td",s=r&&r.type==="table"?r.align:void 0,o=s?s.length:t.children.length;let l=-1;const u=[];for(;++l<o;){const f=t.children[l],m={},d=s?s[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 EC(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const zm=9,Um=32;function AC(e){const t=String(e),r=/\r?\n|\r/g;let i=r.exec(t),a=0;const n=[];for(;i;)n.push(Bm(t.slice(a,i.index),a>0,!0),i[0]),a=i.index+i[0].length,i=r.exec(t);return n.push(Bm(t.slice(a),a>0,!1)),n.join("")}function Bm(e,t,r){let i=0,a=e.length;if(t){let n=e.codePointAt(i);for(;n===zm||n===Um;)i++,n=e.codePointAt(i)}if(r){let n=e.codePointAt(a-1);for(;n===zm||n===Um;)a--,n=e.codePointAt(a-1)}return a>i?e.slice(i,a):""}function OC(e,t){const r={type:"text",value:AC(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function _C(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const PC={blockquote:iC,break:aC,code:sC,delete:oC,emphasis:lC,footnoteReference:uC,heading:cC,html:fC,imageReference:dC,image:mC,inlineCode:pC,linkReference:hC,link:gC,listItem:yC,list:bC,paragraph:kC,root:wC,strong:xC,table:SC,tableCell:EC,tableRow:CC,text:OC,thematicBreak:_C,toml:Ts,yaml:Ts,definition:Ts,footnoteDefinition:Ts};function Ts(){}const Jv=-1,hl=0,qa=1,Ho=2,Vf=3,Hf=4,Kf=5,Wf=6,Yv=7,Xv=8,IC=typeof self=="object"?self:globalThis,Vm=(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 IC[e](t)},TC=(e,t)=>{const r=(a,n)=>(e.set(n,a),a),i=a=>{if(e.has(a))return e.get(a);const[n,s]=t[a];switch(n){case hl:case Jv:return r(s,a);case qa:{const o=r([],a);for(const l of s)o.push(i(l));return o}case Ho:{const o=r({},a);for(const[l,u]of s)o[i(l)]=i(u);return o}case Vf:return r(new Date(s),a);case Hf:{const{source:o,flags:l}=s;return r(new RegExp(o,l),a)}case Kf:{const o=r(new Map,a);for(const[l,u]of s)o.set(i(l),i(u));return o}case Wf:{const o=r(new Set,a);for(const l of s)o.add(i(l));return o}case Yv:{const{name:o,message:l}=s;return r(Vm(o,l),a)}case Xv:return r(BigInt(s),a);case"BigInt":return r(Object(BigInt(s)),a);case"ArrayBuffer":return r(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return r(new DataView(o),s)}}return r(Vm(n,s),a)};return i},Hm=e=>TC(new Map,e)(0),Ii="",{toString:jC}={},{keys:RC}=Object,wa=e=>{const t=typeof e;if(t!=="object"||!e)return[hl,t];const r=jC.call(e).slice(8,-1);switch(r){case"Array":return[qa,Ii];case"Object":return[Ho,Ii];case"Date":return[Vf,Ii];case"RegExp":return[Hf,Ii];case"Map":return[Kf,Ii];case"Set":return[Wf,Ii];case"DataView":return[qa,r]}return r.includes("Array")?[qa,r]:r.includes("Error")?[Yv,r]:[Ho,r]},js=([e,t])=>e===hl&&(t==="function"||t==="symbol"),NC=(e,t,r,i)=>{const a=(s,o)=>{const l=i.push(s)-1;return r.set(o,l),l},n=s=>{if(r.has(s))return r.get(s);let[o,l]=wa(s);switch(o){case hl:{let c=s;switch(l){case"bigint":o=Xv,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return a([Jv],s)}return a([o,c],s)}case qa:{if(l){let m=s;return l==="DataView"?m=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(m=new Uint8Array(s)),a([l,[...m]],s)}const c=[],f=a([o,c],s);for(const m of s)c.push(n(m));return f}case Ho:{if(l)switch(l){case"BigInt":return a([l,s.toString()],s);case"Boolean":case"Number":case"String":return a([l,s.valueOf()],s)}if(t&&"toJSON"in s)return n(s.toJSON());const c=[],f=a([o,c],s);for(const m of RC(s))(e||!js(wa(s[m])))&&c.push([n(m),n(s[m])]);return f}case Vf:return a([o,s.toISOString()],s);case Hf:{const{source:c,flags:f}=s;return a([o,{source:c,flags:f}],s)}case Kf:{const c=[],f=a([o,c],s);for(const[m,d]of s)(e||!(js(wa(m))||js(wa(d))))&&c.push([n(m),n(d)]);return f}case Wf:{const c=[],f=a([o,c],s);for(const m of s)(e||!js(wa(m)))&&c.push(n(m));return f}}const{message:u}=s;return a([o,{name:l,message:u}],s)};return n},Km=(e,{json:t,lossy:r}={})=>{const i=[];return NC(!(t||r),!!t,new Map,i)(e),i},Ko=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Hm(Km(e,t)):structuredClone(e):(e,t)=>Hm(Km(e,t));function FC(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 DC(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function MC(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||FC,i=e.options.footnoteBackLabel||DC,a=e.options.footnoteLabel||"Footnotes",n=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];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=aa(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),o.push(g)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:n,properties:{...Ko(s),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
27
+ `});const u={type:"element",tagName:"li",properties:n,children:s};return e.patch(t,u),e.applyData(t,u)}function _C(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=Qv(r[i])}return t}function Qv(e){const t=e.spread;return t??e.children.length>1}function PC(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 s=i[a];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.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 IC(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function TC(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function jC(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function RC(e,t){const r=e.all(t),i=r.shift(),a=[];if(i){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],s),a.push(s)}if(r.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},o=Uf(t.children[1]),l=jv(t.children[t.children.length-1]);o&&l&&(s.position={start:o,end:l}),a.push(s)}const n={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,n),e.applyData(t,n)}function NC(e,t,r){const i=r?r.children:void 0,n=(i?i.indexOf(t):1)===0?"th":"td",s=r&&r.type==="table"?r.align:void 0,o=s?s.length:t.children.length;let l=-1;const u=[];for(;++l<o;){const f=t.children[l],m={},d=s?s[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 FC(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const Wm=9,Km=32;function DC(e){const t=String(e),r=/\r?\n|\r/g;let i=r.exec(t),a=0;const n=[];for(;i;)n.push(Gm(t.slice(a,i.index),a>0,!0),i[0]),a=i.index+i[0].length,i=r.exec(t);return n.push(Gm(t.slice(a),a>0,!1)),n.join("")}function Gm(e,t,r){let i=0,a=e.length;if(t){let n=e.codePointAt(i);for(;n===Wm||n===Km;)i++,n=e.codePointAt(i)}if(r){let n=e.codePointAt(a-1);for(;n===Wm||n===Km;)a--,n=e.codePointAt(a-1)}return a>i?e.slice(i,a):""}function MC(e,t){const r={type:"text",value:DC(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function LC(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const qC={blockquote:pC,break:hC,code:gC,delete:yC,emphasis:vC,footnoteReference:bC,heading:kC,html:wC,imageReference:xC,image:SC,inlineCode:CC,linkReference:EC,link:AC,listItem:OC,list:PC,paragraph:IC,root:TC,strong:jC,table:RC,tableCell:FC,tableRow:NC,text:MC,thematicBreak:LC,toml:Ns,yaml:Ns,definition:Ns,footnoteDefinition:Ns};function Ns(){}const eb=-1,kl=0,Ua=1,Jo=2,Jf=3,Yf=4,Xf=5,Zf=6,tb=7,rb=8,$C=typeof self=="object"?self:globalThis,Jm=(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 $C[e](t)},zC=(e,t)=>{const r=(a,n)=>(e.set(n,a),a),i=a=>{if(e.has(a))return e.get(a);const[n,s]=t[a];switch(n){case kl:case eb:return r(s,a);case Ua:{const o=r([],a);for(const l of s)o.push(i(l));return o}case Jo:{const o=r({},a);for(const[l,u]of s)o[i(l)]=i(u);return o}case Jf:return r(new Date(s),a);case Yf:{const{source:o,flags:l}=s;return r(new RegExp(o,l),a)}case Xf:{const o=r(new Map,a);for(const[l,u]of s)o.set(i(l),i(u));return o}case Zf:{const o=r(new Set,a);for(const l of s)o.add(i(l));return o}case tb:{const{name:o,message:l}=s;return r(Jm(o,l),a)}case rb:return r(BigInt(s),a);case"BigInt":return r(Object(BigInt(s)),a);case"ArrayBuffer":return r(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return r(new DataView(o),s)}}return r(Jm(n,s),a)};return i},Ym=e=>zC(new Map,e)(0),ji="",{toString:UC}={},{keys:BC}=Object,Sa=e=>{const t=typeof e;if(t!=="object"||!e)return[kl,t];const r=UC.call(e).slice(8,-1);switch(r){case"Array":return[Ua,ji];case"Object":return[Jo,ji];case"Date":return[Jf,ji];case"RegExp":return[Yf,ji];case"Map":return[Xf,ji];case"Set":return[Zf,ji];case"DataView":return[Ua,r]}return r.includes("Array")?[Ua,r]:r.includes("Error")?[tb,r]:[Jo,r]},Fs=([e,t])=>e===kl&&(t==="function"||t==="symbol"),VC=(e,t,r,i)=>{const a=(s,o)=>{const l=i.push(s)-1;return r.set(o,l),l},n=s=>{if(r.has(s))return r.get(s);let[o,l]=Sa(s);switch(o){case kl:{let c=s;switch(l){case"bigint":o=rb,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return a([eb],s)}return a([o,c],s)}case Ua:{if(l){let m=s;return l==="DataView"?m=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(m=new Uint8Array(s)),a([l,[...m]],s)}const c=[],f=a([o,c],s);for(const m of s)c.push(n(m));return f}case Jo:{if(l)switch(l){case"BigInt":return a([l,s.toString()],s);case"Boolean":case"Number":case"String":return a([l,s.valueOf()],s)}if(t&&"toJSON"in s)return n(s.toJSON());const c=[],f=a([o,c],s);for(const m of BC(s))(e||!Fs(Sa(s[m])))&&c.push([n(m),n(s[m])]);return f}case Jf:return a([o,s.toISOString()],s);case Yf:{const{source:c,flags:f}=s;return a([o,{source:c,flags:f}],s)}case Xf:{const c=[],f=a([o,c],s);for(const[m,d]of s)(e||!(Fs(Sa(m))||Fs(Sa(d))))&&c.push([n(m),n(d)]);return f}case Zf:{const c=[],f=a([o,c],s);for(const m of s)(e||!Fs(Sa(m)))&&c.push(n(m));return f}}const{message:u}=s;return a([o,{name:l,message:u}],s)};return n},Xm=(e,{json:t,lossy:r}={})=>{const i=[];return VC(!(t||r),!!t,new Map,i)(e),i},Yo=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Ym(Xm(e,t)):structuredClone(e):(e,t)=>Ym(Xm(e,t));function HC(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 WC(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function KC(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||HC,i=e.options.footnoteBackLabel||WC,a=e.options.footnoteLabel||"Footnotes",n=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];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=oa(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),o.push(g)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:n,properties:{...Yo(s),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
28
28
  `},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
29
- `}]}}const gl=(function(e){if(e==null)return zC;if(typeof e=="function")return yl(e);if(typeof e=="object")return Array.isArray(e)?LC(e):qC(e);if(typeof e=="string")return $C(e);throw new Error("Expected function, string, or object as test")});function LC(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=gl(e[r]);return yl(i);function i(...a){let n=-1;for(;++n<t.length;)if(t[n].apply(this,a))return!0;return!1}}function qC(e){const t=e;return yl(r);function r(i){const a=i;let n;for(n in e)if(a[n]!==t[n])return!1;return!0}}function $C(e){return yl(t);function t(r){return r&&r.type===e}}function yl(e){return t;function t(r,i,a){return!!(UC(r)&&e.call(this,r,typeof i=="number"?i:void 0,a||void 0))}}function zC(){return!0}function UC(e){return e!==null&&typeof e=="object"&&"type"in e}const Zv=[],BC=!0,Hc=!1,VC="skip";function Qv(e,t,r,i){let a;typeof t=="function"&&typeof r!="function"?(i=r,r=t):a=t;const n=gl(a),s=i?-1:1;o(e,void 0,[])();function o(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=Zv,p,k,v;if((!t||n(l,u,c[c.length-1]||void 0))&&(d=HC(r(l,c)),d[0]===Hc))return d;if("children"in l&&l.children){const g=l;if(g.children&&d[0]!==VC)for(k=(i?g.children.length:-1)+s,v=c.concat(g);k>-1&&k<g.children.length;){const b=g.children[k];if(p=o(b,k,v)(),p[0]===Hc)return p;k=typeof p[1]=="number"?p[1]:k+s}}return d}}}function HC(e){return Array.isArray(e)?e:typeof e=="number"?[BC,e]:e==null?Zv:[e]}function Gf(e,t,r,i){let a,n,s;typeof t=="function"&&typeof r!="function"?(n=void 0,s=t,a=r):(n=t,s=r,a=i),Qv(e,n,o,a);function o(l,u){const c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return s(l,f,c)}}const Kc={}.hasOwnProperty,KC={};function WC(e,t){const r=t||KC,i=new Map,a=new Map,n=new Map,s={...PC,...r.handlers},o={all:u,applyData:JC,definitionById:i,footnoteById:a,footnoteCounts:n,footnoteOrder:[],handlers:s,one:l,options:r,patch:GC,wrap:XC};return Gf(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)}}),o;function l(c,f){const m=c.type,d=o.handlers[m];if(Kc.call(o.handlers,m)&&d)return d(o,c,f);if(o.options.passThrough&&o.options.passThrough.includes(m)){if("children"in c){const{children:k,...v}=c,g=Ko(v);return g.children=o.all(c),g}return Ko(c)}return(o.options.unknownHandler||YC)(o,c,f)}function u(c){const f=[];if("children"in c){const m=c.children;let d=-1;for(;++d<m.length;){const p=o.one(m[d],c);if(p){if(d&&m[d-1].type==="break"&&(!Array.isArray(p)&&p.type==="text"&&(p.value=Wm(p.value)),!Array.isArray(p)&&p.type==="element")){const k=p.children[0];k&&k.type==="text"&&(k.value=Wm(k.value))}Array.isArray(p)?f.push(...p):f.push(p)}}}return f}}function GC(e,t){e.position&&(t.position=Fw(e))}function JC(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 s="children"in r?r.children:[r];r={type:"element",tagName:i,properties:{},children:s}}r.type==="element"&&n&&Object.assign(r.properties,Ko(n)),"children"in r&&r.children&&a!==null&&a!==void 0&&(r.children=a)}return r}function YC(e,t){const r=t.data||{},i="value"in t&&!(Kc.call(r,"hProperties")||Kc.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 XC(e,t){const r=[];let i=-1;for(t&&r.push({type:"text",value:`
29
+ `}]}}const wl=(function(e){if(e==null)return XC;if(typeof e=="function")return xl(e);if(typeof e=="object")return Array.isArray(e)?GC(e):JC(e);if(typeof e=="string")return YC(e);throw new Error("Expected function, string, or object as test")});function GC(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=wl(e[r]);return xl(i);function i(...a){let n=-1;for(;++n<t.length;)if(t[n].apply(this,a))return!0;return!1}}function JC(e){const t=e;return xl(r);function r(i){const a=i;let n;for(n in e)if(a[n]!==t[n])return!1;return!0}}function YC(e){return xl(t);function t(r){return r&&r.type===e}}function xl(e){return t;function t(r,i,a){return!!(ZC(r)&&e.call(this,r,typeof i=="number"?i:void 0,a||void 0))}}function XC(){return!0}function ZC(e){return e!==null&&typeof e=="object"&&"type"in e}const nb=[],QC=!0,Yc=!1,eE="skip";function ib(e,t,r,i){let a;typeof t=="function"&&typeof r!="function"?(i=r,r=t):a=t;const n=wl(a),s=i?-1:1;o(e,void 0,[])();function o(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=nb,p,k,v;if((!t||n(l,u,c[c.length-1]||void 0))&&(d=tE(r(l,c)),d[0]===Yc))return d;if("children"in l&&l.children){const g=l;if(g.children&&d[0]!==eE)for(k=(i?g.children.length:-1)+s,v=c.concat(g);k>-1&&k<g.children.length;){const b=g.children[k];if(p=o(b,k,v)(),p[0]===Yc)return p;k=typeof p[1]=="number"?p[1]:k+s}}return d}}}function tE(e){return Array.isArray(e)?e:typeof e=="number"?[QC,e]:e==null?nb:[e]}function Qf(e,t,r,i){let a,n,s;typeof t=="function"&&typeof r!="function"?(n=void 0,s=t,a=r):(n=t,s=r,a=i),ib(e,n,o,a);function o(l,u){const c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return s(l,f,c)}}const Xc={}.hasOwnProperty,rE={};function nE(e,t){const r=t||rE,i=new Map,a=new Map,n=new Map,s={...qC,...r.handlers},o={all:u,applyData:aE,definitionById:i,footnoteById:a,footnoteCounts:n,footnoteOrder:[],handlers:s,one:l,options:r,patch:iE,wrap:oE};return Qf(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)}}),o;function l(c,f){const m=c.type,d=o.handlers[m];if(Xc.call(o.handlers,m)&&d)return d(o,c,f);if(o.options.passThrough&&o.options.passThrough.includes(m)){if("children"in c){const{children:k,...v}=c,g=Yo(v);return g.children=o.all(c),g}return Yo(c)}return(o.options.unknownHandler||sE)(o,c,f)}function u(c){const f=[];if("children"in c){const m=c.children;let d=-1;for(;++d<m.length;){const p=o.one(m[d],c);if(p){if(d&&m[d-1].type==="break"&&(!Array.isArray(p)&&p.type==="text"&&(p.value=Zm(p.value)),!Array.isArray(p)&&p.type==="element")){const k=p.children[0];k&&k.type==="text"&&(k.value=Zm(k.value))}Array.isArray(p)?f.push(...p):f.push(p)}}}return f}}function iE(e,t){e.position&&(t.position=Hw(e))}function aE(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 s="children"in r?r.children:[r];r={type:"element",tagName:i,properties:{},children:s}}r.type==="element"&&n&&Object.assign(r.properties,Yo(n)),"children"in r&&r.children&&a!==null&&a!==void 0&&(r.children=a)}return r}function sE(e,t){const r=t.data||{},i="value"in t&&!(Xc.call(r,"hProperties")||Xc.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 oE(e,t){const r=[];let i=-1;for(t&&r.push({type:"text",value:`
30
30
  `});++i<e.length;)i&&r.push({type:"text",value:`
31
31
  `}),r.push(e[i]);return t&&e.length>0&&r.push({type:"text",value:`
32
- `}),r}function Wm(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function Gm(e,t){const r=WC(e,t),i=r.one(e,void 0),a=MC(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 ZC(e,t){return e&&"run"in e?async function(r,i){const a=Gm(r,{file:i,...t});await e.run(a,i)}:function(r,i){return Gm(r,{file:i,...e||t})}}function Jm(e){if(e)throw e}var lu,Ym;function QC(){if(Ym)return lu;Ym=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)},s=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},o=function(u,c){if(c==="__proto__")if(e.call(u,c)){if(i)return i(u,c).value}else return;return u[c]};return lu=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=o(k,c),m=o(u,c),k!==m&&(b&&m&&(n(m)||(d=a(m)))?(d?(d=!1,p=f&&a(f)?f:[]):p=f&&n(f)?f:{},s(k,{name:c,newValue:l(b,p,m)})):typeof m<"u"&&s(k,{name:c,newValue:m}));return k},lu}var eE=QC();const uu=Wr(eE);function Wc(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 tE(){const e=[],t={run:r,use:i};return t;function r(...a){let n=-1;const s=a.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...a);function o(l,...u){const c=e[++n];let f=-1;if(l){s(l);return}for(;++f<a.length;)(u[f]===null||u[f]===void 0)&&(u[f]=a[f]);a=u,c?rE(c,o)(...u):s(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 rE(e,t){let r;return i;function i(...s){const o=e.length>s.length;let l;o&&s.push(a);try{l=e.apply(this,s)}catch(u){const c=u;if(o&&r)throw c;return a(c)}o||(l&&l.then&&typeof l.then=="function"?l.then(n,a):l instanceof Error?a(l):n(l))}function a(s,...o){r||(r=!0,t(s,...o))}function n(s){a(null,s)}}const Lr={basename:nE,dirname:iE,extname:aE,join:sE,sep:"/"};function nE(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ss(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 s=-1,o=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(n){r=a+1;break}}else s<0&&(n=!0,s=a+1),o>-1&&(e.codePointAt(a)===t.codePointAt(o--)?o<0&&(i=a):(o=-1,i=s));return r===i?i=s:i<0&&(i=e.length),e.slice(r,i)}function iE(e){if(ss(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 aE(e){ss(e);let t=e.length,r=-1,i=0,a=-1,n=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){i=t+1;break}continue}r<0&&(s=!0,r=t+1),o===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 sE(...e){let t=-1,r;for(;++t<e.length;)ss(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":oE(r)}function oE(e){ss(e);const t=e.codePointAt(0)===47;let r=lE(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function lE(e,t){let r="",i=0,a=-1,n=0,s=-1,o,l;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(a===s-1||n===1))if(a!==s-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=s,n=0;continue}}else if(r.length>0){r="",i=0,a=s,n=0;continue}}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(a+1,s):r=e.slice(a+1,s),i=s-a-1;a=s,n=0}else o===46&&n>-1?n++:n=-1}return r}function ss(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const uE={cwd:cE};function cE(){return"/"}function Gc(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function fE(e){if(typeof e=="string")e=new URL(e);else if(!Gc(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 dE(e)}function dE(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 cu=["history","path","basename","stem","extname","dirname"];class eb{constructor(t){let r;t?Gc(t)?r={path:t}:typeof t=="string"||mE(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":uE.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<cu.length;){const n=cu[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)cu.includes(a)||(this[a]=r[a])}get basename(){return typeof this.path=="string"?Lr.basename(this.path):void 0}set basename(t){du(t,"basename"),fu(t,"basename"),this.path=Lr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Lr.dirname(this.path):void 0}set dirname(t){Xm(this.basename,"dirname"),this.path=Lr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Lr.extname(this.path):void 0}set extname(t){if(fu(t,"extname"),Xm(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=Lr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Gc(t)&&(t=fE(t)),du(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Lr.basename(this.path,this.extname):void 0}set stem(t){du(t,"stem"),fu(t,"stem"),this.path=Lr.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 $t(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 fu(e,t){if(e&&e.includes(Lr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Lr.sep+"`")}function du(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Xm(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function mE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const pE=(function(e){const i=this.constructor.prototype,a=i[e],n=function(){return a.apply(n,arguments)};return Object.setPrototypeOf(n,i),n}),hE={}.hasOwnProperty;class Jf extends pE{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=tE()}copy(){const t=new Jf;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];t.use(...i)}return t.data(uu(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(hu("data",this.frozen),this.namespace[t]=r,this):hE.call(this.namespace,t)&&this.namespace[t]||void 0:t?(hu("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=Rs(t),i=this.parser||this.Parser;return mu("parse",i),i(String(r),r)}process(t,r){const i=this;return this.freeze(),mu("process",this.parser||this.Parser),pu("process",this.compiler||this.Compiler),r?a(void 0,r):new Promise(a);function a(n,s){const o=Rs(t),l=i.parse(o);i.run(l,o,function(c,f,m){if(c||!f||!m)return u(c);const d=f,p=i.stringify(d,m);vE(p)?m.value=p:m.result=p,u(c,m)});function u(c,f){c||!f?s(c):n?n(f):r(void 0,f)}}}processSync(t){let r=!1,i;return this.freeze(),mu("processSync",this.parser||this.Parser),pu("processSync",this.compiler||this.Compiler),this.process(t,a),Qm("processSync","process",r),i;function a(n,s){r=!0,Jm(n),i=s}}run(t,r,i){Zm(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(s,o){const l=Rs(r);a.run(t,l,u);function u(c,f,m){const d=f||t;c?o(c):s?s(d):i(void 0,d,m)}}}runSync(t,r){let i=!1,a;return this.run(t,r,n),Qm("runSync","run",i),a;function n(s,o){Jm(s),a=o,i=!0}}stringify(t,r){this.freeze();const i=Rs(r),a=this.compiler||this.Compiler;return pu("stringify",a),Zm(t),a(t,i)}use(t,...r){const i=this.attachers,a=this.namespace;if(hu("use",this.frozen),t!=null)if(typeof t=="function")l(t,r);else if(typeof t=="object")Array.isArray(t)?o(t):s(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 s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(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");o(u.plugins),u.settings&&(a.settings=uu(!0,a.settings,u.settings))}function o(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];Wc(k)&&Wc(d)&&(d=uu(!0,k,d)),i[m]=[u,d,...p]}}}}const gE=new Jf().freeze();function mu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function pu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function hu(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 Zm(e){if(!Wc(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Qm(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Rs(e){return yE(e)?e:new eb(e)}function yE(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function vE(e){return typeof e=="string"||bE(e)}function bE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const kE="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",ep=[],tp={allowDangerousHtml:!0},wE=/^(https?|ircs?|mailto|xmpp)$/i,xE=[{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 SE(e){const t=CE(e),r=EE(e);return AE(t.runSync(t.parse(r),r),e)}function CE(e){const t=e.rehypePlugins||ep,r=e.remarkPlugins||ep,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...tp}:tp;return gE().use(nC).use(r).use(ZC,i).use(t)}function EE(e){const t=e.children||"",r=new eb;return typeof t=="string"&&(r.value=t),r}function AE(e,t){const r=t.allowedElements,i=t.allowElement,a=t.components,n=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,l=t.urlTransform||OE;for(const c of xE)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+kE+c.id,void 0);return Gf(e,u),$w(e,{Fragment:j.Fragment,components:a,ignoreInvalidStyle:!0,jsx:j.jsx,jsxs:j.jsxs,passKeys:!0,passNode:!0});function u(c,f,m){if(c.type==="raw"&&m&&typeof f=="number")return s?m.children.splice(f,1):m.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let d;for(d in au)if(Object.hasOwn(au,d)&&Object.hasOwn(c.properties,d)){const p=c.properties[d],k=au[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 o&&c.children?m.children.splice(f,1,...c.children):m.children.splice(f,1),f}}}function OE(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||wE.test(e.slice(0,t))?e:""}function rp(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 _E(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function PE(e,t,r){const a=gl((r||{}).ignore||[]),n=IE(t);let s=-1;for(;++s<n.length;)Qv(e,"text",o);function o(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[s][0],d=n[s][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 C=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=C+1:(p!==C&&b.push({type:"text",value:u.value.slice(p,C)}),Array.isArray(y)?b.push(...y):y&&b.push(y),p=C+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 IE(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([TE(a[0]),jE(a[1])])}return t}function TE(e){return typeof e=="string"?new RegExp(_E(e),"g"):e}function jE(e){return typeof e=="function"?e:function(){return e}}const gu="phrasing",yu=["autolink","link","image","label"];function RE(){return{transforms:[$E],enter:{literalAutolink:FE,literalAutolinkEmail:vu,literalAutolinkHttp:vu,literalAutolinkWww:vu},exit:{literalAutolink:qE,literalAutolinkEmail:LE,literalAutolinkHttp:DE,literalAutolinkWww:ME}}}function NE(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:gu,notInConstruct:yu},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:gu,notInConstruct:yu},{character:":",before:"[ps]",after:"\\/",inConstruct:gu,notInConstruct:yu}]}}function FE(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function vu(e){this.config.enter.autolinkProtocol.call(this,e)}function DE(e){this.config.exit.autolinkProtocol.call(this,e)}function ME(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 LE(e){this.config.exit.autolinkEmail.call(this,e)}function qE(e){this.exit(e)}function $E(e){PE(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,zE],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),UE]],{ignore:["link","linkReference"]})}function zE(e,t,r,i,a){let n="";if(!tb(a)||(/^w/i.test(t)&&(r=t+r,t="",n="http://"),!BE(r)))return!1;const s=VE(r+i);if(!s[0])return!1;const o={type:"link",title:null,url:n+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function UE(e,t,r,i){return!tb(i,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function BE(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 VE(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=rp(e,"(");let n=rp(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 tb(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||oi(r)||ml(r))&&(!t||r!==47)}rb.peek=QE;function HE(){this.buffer()}function KE(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function WE(){this.buffer()}function GE(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function JE(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Ar(this.sliceSerialize(e)).toLowerCase(),r.label=t}function YE(e){this.exit(e)}function XE(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Ar(this.sliceSerialize(e)).toLowerCase(),r.label=t}function ZE(e){this.exit(e)}function QE(){return"["}function rb(e,t,r,i){const a=r.createTracker(i);let n=a.move("[^");const s=r.enter("footnoteReference"),o=r.enter("reference");return n+=a.move(r.safe(r.associationId(e),{after:"]",before:n})),o(),s(),n+=a.move("]"),n}function eA(){return{enter:{gfmFootnoteCallString:HE,gfmFootnoteCall:KE,gfmFootnoteDefinitionLabelString:WE,gfmFootnoteDefinition:GE},exit:{gfmFootnoteCallString:JE,gfmFootnoteCall:YE,gfmFootnoteDefinitionLabelString:XE,gfmFootnoteDefinition:ZE}}}function tA(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:rb},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(i,a,n,s){const o=n.createTracker(s);let l=o.move("[^");const u=n.enter("footnoteDefinition"),c=n.enter("label");return l+=o.move(n.safe(n.associationId(i),{before:l,after:"]"})),c(),l+=o.move("]:"),i.children&&i.children.length>0&&(o.shift(4),l+=o.move((t?`
34
- `:" ")+n.indentLines(n.containerFlow(i,o.current()),t?nb:rA))),u(),l}}function rA(e,t,r){return t===0?e:nb(e,t,r)}function nb(e,t,r){return(r?"":" ")+e}const nA=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];ib.peek=lA;function iA(){return{canContainEols:["delete"],enter:{strikethrough:sA},exit:{strikethrough:oA}}}function aA(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:nA}],handlers:{delete:ib}}}function sA(e){this.enter({type:"delete",children:[]},e)}function oA(e){this.exit(e)}function ib(e,t,r,i){const a=r.createTracker(i),n=r.enter("strikethrough");let s=a.move("~~");return s+=r.containerPhrasing(e,{...a.current(),before:s,after:"~"}),s+=a.move("~~"),n(),s}function lA(){return"~"}function uA(e){return e.length}function cA(e,t){const r=t||{},i=(r.align||[]).concat(),a=r.stringLength||uA,n=[],s=[],o=[],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=fA(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)}s[c]=k,o[c]=v}let f=-1;if(typeof i=="object"&&"length"in i)for(;++f<u;)n[f]=np(i[f]);else{const k=np(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}s.splice(1,0,m),o.splice(1,0,d),c=-1;const p=[];for(;++c<s.length;){const k=s[c],v=o[c];f=-1;const g=[];for(;++f<u;){const b=k[f]||"";let w="",C="";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),C=" ".repeat(h/2-.5)):(w=" ".repeat(h/2),C=w):C=" ".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(C),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 fA(e){return e==null?"":String(e)}function np(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 dA(e,t,r,i){const a=r.enter("blockquote"),n=r.createTracker(i);n.move("> "),n.shift(2);const s=r.indentLines(r.containerFlow(e,n.current()),mA);return a(),s}function mA(e,t,r){return">"+(r?"":" ")+e}function pA(e,t){return ip(e,t.inConstruct,!0)&&!ip(e,t.notInConstruct,!1)}function ip(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 ap(e,t,r,i){let a=-1;for(;++a<r.unsafe.length;)if(r.unsafe[a].character===`
36
- `&&pA(r.stack,r.unsafe[a]))return/[ \t]/.test(i.before)?"":" ";return`\\
37
- `}function hA(e,t){const r=String(e);let i=r.indexOf(t),a=i,n=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===a?++n>s&&(s=n):n=1,a=i+t.length,i=r.indexOf(t,a);return s}function gA(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 yA(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 vA(e,t,r,i){const a=yA(r),n=e.value||"",s=a==="`"?"GraveAccent":"Tilde";if(gA(e,r)){const f=r.enter("codeIndented"),m=r.indentLines(n,bA);return f(),m}const o=r.createTracker(i),l=a.repeat(Math.max(hA(n,a)+1,3)),u=r.enter("codeFenced");let c=o.move(l);if(e.lang){const f=r.enter(`codeFencedLang${s}`);c+=o.move(r.safe(e.lang,{before:c,after:" ",encode:["`"],...o.current()})),f()}if(e.lang&&e.meta){const f=r.enter(`codeFencedMeta${s}`);c+=o.move(" "),c+=o.move(r.safe(e.meta,{before:c,after:`
32
+ `}),r}function Zm(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function Qm(e,t){const r=nE(e,t),i=r.one(e,void 0),a=KC(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 lE(e,t){return e&&"run"in e?async function(r,i){const a=Qm(r,{file:i,...t});await e.run(a,i)}:function(r,i){return Qm(r,{file:i,...e||t})}}function ep(e){if(e)throw e}var mu,tp;function uE(){if(tp)return mu;tp=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)},s=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},o=function(u,c){if(c==="__proto__")if(e.call(u,c)){if(i)return i(u,c).value}else return;return u[c]};return mu=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=o(k,c),m=o(u,c),k!==m&&(b&&m&&(n(m)||(d=a(m)))?(d?(d=!1,p=f&&a(f)?f:[]):p=f&&n(f)?f:{},s(k,{name:c,newValue:l(b,p,m)})):typeof m<"u"&&s(k,{name:c,newValue:m}));return k},mu}var cE=uE();const pu=Kr(cE);function Zc(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 fE(){const e=[],t={run:r,use:i};return t;function r(...a){let n=-1;const s=a.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...a);function o(l,...u){const c=e[++n];let f=-1;if(l){s(l);return}for(;++f<a.length;)(u[f]===null||u[f]===void 0)&&(u[f]=a[f]);a=u,c?dE(c,o)(...u):s(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 dE(e,t){let r;return i;function i(...s){const o=e.length>s.length;let l;o&&s.push(a);try{l=e.apply(this,s)}catch(u){const c=u;if(o&&r)throw c;return a(c)}o||(l&&l.then&&typeof l.then=="function"?l.then(n,a):l instanceof Error?a(l):n(l))}function a(s,...o){r||(r=!0,t(s,...o))}function n(s){a(null,s)}}const Lr={basename:mE,dirname:pE,extname:hE,join:gE,sep:"/"};function mE(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');us(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 s=-1,o=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(n){r=a+1;break}}else s<0&&(n=!0,s=a+1),o>-1&&(e.codePointAt(a)===t.codePointAt(o--)?o<0&&(i=a):(o=-1,i=s));return r===i?i=s:i<0&&(i=e.length),e.slice(r,i)}function pE(e){if(us(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 hE(e){us(e);let t=e.length,r=-1,i=0,a=-1,n=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){i=t+1;break}continue}r<0&&(s=!0,r=t+1),o===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 gE(...e){let t=-1,r;for(;++t<e.length;)us(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":yE(r)}function yE(e){us(e);const t=e.codePointAt(0)===47;let r=vE(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function vE(e,t){let r="",i=0,a=-1,n=0,s=-1,o,l;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(a===s-1||n===1))if(a!==s-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=s,n=0;continue}}else if(r.length>0){r="",i=0,a=s,n=0;continue}}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(a+1,s):r=e.slice(a+1,s),i=s-a-1;a=s,n=0}else o===46&&n>-1?n++:n=-1}return r}function us(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const bE={cwd:kE};function kE(){return"/"}function Qc(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function wE(e){if(typeof e=="string")e=new URL(e);else if(!Qc(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 xE(e)}function xE(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 hu=["history","path","basename","stem","extname","dirname"];class ab{constructor(t){let r;t?Qc(t)?r={path:t}:typeof t=="string"||SE(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":bE.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<hu.length;){const n=hu[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)hu.includes(a)||(this[a]=r[a])}get basename(){return typeof this.path=="string"?Lr.basename(this.path):void 0}set basename(t){yu(t,"basename"),gu(t,"basename"),this.path=Lr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Lr.dirname(this.path):void 0}set dirname(t){rp(this.basename,"dirname"),this.path=Lr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Lr.extname(this.path):void 0}set extname(t){if(gu(t,"extname"),rp(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=Lr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Qc(t)&&(t=wE(t)),yu(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Lr.basename(this.path,this.extname):void 0}set stem(t){yu(t,"stem"),gu(t,"stem"),this.path=Lr.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 $t(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 gu(e,t){if(e&&e.includes(Lr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Lr.sep+"`")}function yu(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function rp(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function SE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const CE=(function(e){const i=this.constructor.prototype,a=i[e],n=function(){return a.apply(n,arguments)};return Object.setPrototypeOf(n,i),n}),EE={}.hasOwnProperty;class ed extends CE{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=fE()}copy(){const t=new ed;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];t.use(...i)}return t.data(pu(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(ku("data",this.frozen),this.namespace[t]=r,this):EE.call(this.namespace,t)&&this.namespace[t]||void 0:t?(ku("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=Ds(t),i=this.parser||this.Parser;return vu("parse",i),i(String(r),r)}process(t,r){const i=this;return this.freeze(),vu("process",this.parser||this.Parser),bu("process",this.compiler||this.Compiler),r?a(void 0,r):new Promise(a);function a(n,s){const o=Ds(t),l=i.parse(o);i.run(l,o,function(c,f,m){if(c||!f||!m)return u(c);const d=f,p=i.stringify(d,m);_E(p)?m.value=p:m.result=p,u(c,m)});function u(c,f){c||!f?s(c):n?n(f):r(void 0,f)}}}processSync(t){let r=!1,i;return this.freeze(),vu("processSync",this.parser||this.Parser),bu("processSync",this.compiler||this.Compiler),this.process(t,a),ip("processSync","process",r),i;function a(n,s){r=!0,ep(n),i=s}}run(t,r,i){np(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(s,o){const l=Ds(r);a.run(t,l,u);function u(c,f,m){const d=f||t;c?o(c):s?s(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(s,o){ep(s),a=o,i=!0}}stringify(t,r){this.freeze();const i=Ds(r),a=this.compiler||this.Compiler;return bu("stringify",a),np(t),a(t,i)}use(t,...r){const i=this.attachers,a=this.namespace;if(ku("use",this.frozen),t!=null)if(typeof t=="function")l(t,r);else if(typeof t=="object")Array.isArray(t)?o(t):s(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 s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(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");o(u.plugins),u.settings&&(a.settings=pu(!0,a.settings,u.settings))}function o(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];Zc(k)&&Zc(d)&&(d=pu(!0,k,d)),i[m]=[u,d,...p]}}}}const AE=new ed().freeze();function vu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function bu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function ku(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 np(e){if(!Zc(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 Ds(e){return OE(e)?e:new ab(e)}function OE(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function _E(e){return typeof e=="string"||PE(e)}function PE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const IE="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",ap=[],sp={allowDangerousHtml:!0},TE=/^(https?|ircs?|mailto|xmpp)$/i,jE=[{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 RE(e){const t=NE(e),r=FE(e);return DE(t.runSync(t.parse(r),r),e)}function NE(e){const t=e.rehypePlugins||ap,r=e.remarkPlugins||ap,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...sp}:sp;return AE().use(mC).use(r).use(lE,i).use(t)}function FE(e){const t=e.children||"",r=new ab;return typeof t=="string"&&(r.value=t),r}function DE(e,t){const r=t.allowedElements,i=t.allowElement,a=t.components,n=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,l=t.urlTransform||ME;for(const c of jE)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+IE+c.id,void 0);return Qf(e,u),Yw(e,{Fragment:j.Fragment,components:a,ignoreInvalidStyle:!0,jsx:j.jsx,jsxs:j.jsxs,passKeys:!0,passNode:!0});function u(c,f,m){if(c.type==="raw"&&m&&typeof f=="number")return s?m.children.splice(f,1):m.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let d;for(d in cu)if(Object.hasOwn(cu,d)&&Object.hasOwn(c.properties,d)){const p=c.properties[d],k=cu[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 o&&c.children?m.children.splice(f,1,...c.children):m.children.splice(f,1),f}}}function ME(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||TE.test(e.slice(0,t))?e:""}function op(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 LE(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function qE(e,t,r){const a=wl((r||{}).ignore||[]),n=$E(t);let s=-1;for(;++s<n.length;)ib(e,"text",o);function o(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[s][0],d=n[s][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 x=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=x+1:(p!==x&&b.push({type:"text",value:u.value.slice(p,x)}),Array.isArray(y)?b.push(...y):y&&b.push(y),p=x+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 $E(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([zE(a[0]),UE(a[1])])}return t}function zE(e){return typeof e=="string"?new RegExp(LE(e),"g"):e}function UE(e){return typeof e=="function"?e:function(){return e}}const wu="phrasing",xu=["autolink","link","image","label"];function BE(){return{transforms:[YE],enter:{literalAutolink:HE,literalAutolinkEmail:Su,literalAutolinkHttp:Su,literalAutolinkWww:Su},exit:{literalAutolink:JE,literalAutolinkEmail:GE,literalAutolinkHttp:WE,literalAutolinkWww:KE}}}function VE(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:wu,notInConstruct:xu},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:wu,notInConstruct:xu},{character:":",before:"[ps]",after:"\\/",inConstruct:wu,notInConstruct:xu}]}}function HE(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Su(e){this.config.enter.autolinkProtocol.call(this,e)}function WE(e){this.config.exit.autolinkProtocol.call(this,e)}function KE(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 GE(e){this.config.exit.autolinkEmail.call(this,e)}function JE(e){this.exit(e)}function YE(e){qE(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,XE],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),ZE]],{ignore:["link","linkReference"]})}function XE(e,t,r,i,a){let n="";if(!sb(a)||(/^w/i.test(t)&&(r=t+r,t="",n="http://"),!QE(r)))return!1;const s=eA(r+i);if(!s[0])return!1;const o={type:"link",title:null,url:n+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function ZE(e,t,r,i){return!sb(i,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function QE(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 eA(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=op(e,"(");let n=op(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 sb(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||ui(r)||vl(r))&&(!t||r!==47)}ob.peek=uA;function tA(){this.buffer()}function rA(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function nA(){this.buffer()}function iA(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function aA(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Ar(this.sliceSerialize(e)).toLowerCase(),r.label=t}function sA(e){this.exit(e)}function oA(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Ar(this.sliceSerialize(e)).toLowerCase(),r.label=t}function lA(e){this.exit(e)}function uA(){return"["}function ob(e,t,r,i){const a=r.createTracker(i);let n=a.move("[^");const s=r.enter("footnoteReference"),o=r.enter("reference");return n+=a.move(r.safe(r.associationId(e),{after:"]",before:n})),o(),s(),n+=a.move("]"),n}function cA(){return{enter:{gfmFootnoteCallString:tA,gfmFootnoteCall:rA,gfmFootnoteDefinitionLabelString:nA,gfmFootnoteDefinition:iA},exit:{gfmFootnoteCallString:aA,gfmFootnoteCall:sA,gfmFootnoteDefinitionLabelString:oA,gfmFootnoteDefinition:lA}}}function fA(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:ob},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(i,a,n,s){const o=n.createTracker(s);let l=o.move("[^");const u=n.enter("footnoteDefinition"),c=n.enter("label");return l+=o.move(n.safe(n.associationId(i),{before:l,after:"]"})),c(),l+=o.move("]:"),i.children&&i.children.length>0&&(o.shift(4),l+=o.move((t?`
34
+ `:" ")+n.indentLines(n.containerFlow(i,o.current()),t?lb:dA))),u(),l}}function dA(e,t,r){return t===0?e:lb(e,t,r)}function lb(e,t,r){return(r?"":" ")+e}const mA=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];ub.peek=vA;function pA(){return{canContainEols:["delete"],enter:{strikethrough:gA},exit:{strikethrough:yA}}}function hA(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:mA}],handlers:{delete:ub}}}function gA(e){this.enter({type:"delete",children:[]},e)}function yA(e){this.exit(e)}function ub(e,t,r,i){const a=r.createTracker(i),n=r.enter("strikethrough");let s=a.move("~~");return s+=r.containerPhrasing(e,{...a.current(),before:s,after:"~"}),s+=a.move("~~"),n(),s}function vA(){return"~"}function bA(e){return e.length}function kA(e,t){const r=t||{},i=(r.align||[]).concat(),a=r.stringLength||bA,n=[],s=[],o=[],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=wA(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)}s[c]=k,o[c]=v}let f=-1;if(typeof i=="object"&&"length"in i)for(;++f<u;)n[f]=lp(i[f]);else{const k=lp(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}s.splice(1,0,m),o.splice(1,0,d),c=-1;const p=[];for(;++c<s.length;){const k=s[c],v=o[c];f=-1;const g=[];for(;++f<u;){const b=k[f]||"";let w="",x="";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),x=" ".repeat(h/2-.5)):(w=" ".repeat(h/2),x=w):x=" ".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(x),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 wA(e){return e==null?"":String(e)}function lp(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 xA(e,t,r,i){const a=r.enter("blockquote"),n=r.createTracker(i);n.move("> "),n.shift(2);const s=r.indentLines(r.containerFlow(e,n.current()),SA);return a(),s}function SA(e,t,r){return">"+(r?"":" ")+e}function CA(e,t){return up(e,t.inConstruct,!0)&&!up(e,t.notInConstruct,!1)}function up(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 cp(e,t,r,i){let a=-1;for(;++a<r.unsafe.length;)if(r.unsafe[a].character===`
36
+ `&&CA(r.stack,r.unsafe[a]))return/[ \t]/.test(i.before)?"":" ";return`\\
37
+ `}function EA(e,t){const r=String(e);let i=r.indexOf(t),a=i,n=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===a?++n>s&&(s=n):n=1,a=i+t.length,i=r.indexOf(t,a);return s}function AA(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 OA(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 _A(e,t,r,i){const a=OA(r),n=e.value||"",s=a==="`"?"GraveAccent":"Tilde";if(AA(e,r)){const f=r.enter("codeIndented"),m=r.indentLines(n,PA);return f(),m}const o=r.createTracker(i),l=a.repeat(Math.max(EA(n,a)+1,3)),u=r.enter("codeFenced");let c=o.move(l);if(e.lang){const f=r.enter(`codeFencedLang${s}`);c+=o.move(r.safe(e.lang,{before:c,after:" ",encode:["`"],...o.current()})),f()}if(e.lang&&e.meta){const f=r.enter(`codeFencedMeta${s}`);c+=o.move(" "),c+=o.move(r.safe(e.meta,{before:c,after:`
38
38
  `,encode:["`"],...o.current()})),f()}return c+=o.move(`
39
39
  `),n&&(c+=o.move(n+`
40
- `)),c+=o.move(l),u(),c}function bA(e,t,r){return(r?"":" ")+e}function Yf(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 kA(e,t,r,i){const a=Yf(r),n=a==='"'?"Quote":"Apostrophe",s=r.enter("definition");let o=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("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":`
41
- `,...l.current()}))),o(),e.title&&(o=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),o()),s(),u}function wA(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 Ka(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Wo(e,t,r){const i=Yi(e),a=Yi(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}}ab.peek=xA;function ab(e,t,r,i){const a=wA(r),n=r.enter("emphasis"),s=r.createTracker(i),o=s.move(a);let l=s.move(r.containerPhrasing(e,{after:a,before:o,...s.current()}));const u=l.charCodeAt(0),c=Wo(i.before.charCodeAt(i.before.length-1),u,a);c.inside&&(l=Ka(u)+l.slice(1));const f=l.charCodeAt(l.length-1),m=Wo(i.after.charCodeAt(0),f,a);m.inside&&(l=l.slice(0,-1)+Ka(f));const d=s.move(a);return n(),r.attentionEncodeSurroundingInfo={after:m.outside,before:c.outside},o+l+d}function xA(e,t,r){return r.options.emphasis||"*"}function SA(e,t){let r=!1;return Gf(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return r=!0,Hc}),!!((!e.depth||e.depth<3)&&zf(e)&&(t.options.setext||r))}function CA(e,t,r,i){const a=Math.max(Math.min(6,e.depth||1),1),n=r.createTracker(i);if(SA(e,r)){const c=r.enter("headingSetext"),f=r.enter("phrasing"),m=r.containerPhrasing(e,{...n.current(),before:`
40
+ `)),c+=o.move(l),u(),c}function PA(e,t,r){return(r?"":" ")+e}function td(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 IA(e,t,r,i){const a=td(r),n=a==='"'?"Quote":"Apostrophe",s=r.enter("definition");let o=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("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":`
41
+ `,...l.current()}))),o(),e.title&&(o=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),o()),s(),u}function TA(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 Ja(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Xo(e,t,r){const i=Zi(e),a=Zi(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}}cb.peek=jA;function cb(e,t,r,i){const a=TA(r),n=r.enter("emphasis"),s=r.createTracker(i),o=s.move(a);let l=s.move(r.containerPhrasing(e,{after:a,before:o,...s.current()}));const u=l.charCodeAt(0),c=Xo(i.before.charCodeAt(i.before.length-1),u,a);c.inside&&(l=Ja(u)+l.slice(1));const f=l.charCodeAt(l.length-1),m=Xo(i.after.charCodeAt(0),f,a);m.inside&&(l=l.slice(0,-1)+Ja(f));const d=s.move(a);return n(),r.attentionEncodeSurroundingInfo={after:m.outside,before:c.outside},o+l+d}function jA(e,t,r){return r.options.emphasis||"*"}function RA(e,t){let r=!1;return Qf(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return r=!0,Yc}),!!((!e.depth||e.depth<3)&&Wf(e)&&(t.options.setext||r))}function NA(e,t,r,i){const a=Math.max(Math.min(6,e.depth||1),1),n=r.createTracker(i);if(RA(e,r)){const c=r.enter("headingSetext"),f=r.enter("phrasing"),m=r.containerPhrasing(e,{...n.current(),before:`
42
42
  `,after:`
43
43
  `});return f(),c(),m+`
44
44
  `+(a===1?"=":"-").repeat(m.length-(Math.max(m.lastIndexOf("\r"),m.lastIndexOf(`
45
45
  `))+1))}const s="#".repeat(a),o=r.enter("headingAtx"),l=r.enter("phrasing");n.move(s+" ");let u=r.containerPhrasing(e,{before:"# ",after:`
46
- `,...n.current()});return/^[\t ]/.test(u)&&(u=Ka(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,r.options.closeAtx&&(u+=" "+s),l(),o(),u}sb.peek=EA;function sb(e){return e.value||""}function EA(){return"<"}ob.peek=AA;function ob(e,t,r,i){const a=Yf(r),n=a==='"'?"Quote":"Apostrophe",s=r.enter("image");let o=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("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=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),o()),u+=l.move(")"),s(),u}function AA(){return"!"}lb.peek=OA;function lb(e,t,r,i){const a=e.referenceType,n=r.enter("imageReference");let s=r.enter("label");const o=r.createTracker(i);let l=o.move("![");const u=r.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const c=r.stack;r.stack=[],s=r.enter("reference");const f=r.safe(r.associationId(e),{before:l,after:"]",...o.current()});return s(),r.stack=c,n(),a==="full"||!u||u!==f?l+=o.move(f+"]"):a==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function OA(){return"!"}ub.peek=_A;function ub(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 s=r.unsafe[n],o=r.compilePattern(s);let l;if(s.atBreak)for(;l=o.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 _A(){return"`"}function cb(e,t){const r=zf(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))}fb.peek=PA;function fb(e,t,r,i){const a=Yf(r),n=a==='"'?"Quote":"Apostrophe",s=r.createTracker(i);let o,l;if(cb(e,r)){const c=r.stack;r.stack=[],o=r.enter("autolink");let f=s.move("<");return f+=s.move(r.containerPhrasing(e,{before:f,after:">",...s.current()})),f+=s.move(">"),o(),r.stack=c,f}o=r.enter("link"),l=r.enter("label");let u=s.move("[");return u+=s.move(r.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(r.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=r.enter("destinationRaw"),u+=s.move(r.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=r.enter(`title${n}`),u+=s.move(" "+a),u+=s.move(r.safe(e.title,{before:u,after:a,...s.current()})),u+=s.move(a),l()),u+=s.move(")"),o(),u}function PA(e,t,r){return cb(e,r)?"<":"["}db.peek=IA;function db(e,t,r,i){const a=e.referenceType,n=r.enter("linkReference");let s=r.enter("label");const o=r.createTracker(i);let l=o.move("[");const u=r.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const c=r.stack;r.stack=[],s=r.enter("reference");const f=r.safe(r.associationId(e),{before:l,after:"]",...o.current()});return s(),r.stack=c,n(),a==="full"||!u||u!==f?l+=o.move(f+"]"):a==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function IA(){return"["}function Xf(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 TA(e){const t=Xf(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 jA(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 mb(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 RA(e,t,r,i){const a=r.enter("list"),n=r.bulletCurrent;let s=e.ordered?jA(r):Xf(r);const o=e.ordered?s==="."?")":".":TA(r);let l=t&&r.bulletLastUsed?s===r.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&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),mb(r)===s&&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&&(s=o),r.bulletCurrent=s;const u=r.containerFlow(e,i);return r.bulletLastUsed=s,r.bulletCurrent=n,a(),u}function NA(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 FA(e,t,r,i){const a=NA(r);let n=r.bulletCurrent||Xf(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 s=n.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=r.createTracker(i);o.move(n+" ".repeat(s-n.length)),o.shift(s);const l=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,o.current()),c);return l(),u;function c(f,m,d){return m?(d?"":" ".repeat(s))+f:(d?n:n+" ".repeat(s-n.length))+f}}function DA(e,t,r,i){const a=r.enter("paragraph"),n=r.enter("phrasing"),s=r.containerPhrasing(e,i);return n(),a(),s}const MA=gl(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function LA(e,t,r,i){return(e.children.some(function(s){return MA(s)})?r.containerPhrasing:r.containerFlow).call(r,e,i)}function qA(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}pb.peek=$A;function pb(e,t,r,i){const a=qA(r),n=r.enter("strong"),s=r.createTracker(i),o=s.move(a+a);let l=s.move(r.containerPhrasing(e,{after:a,before:o,...s.current()}));const u=l.charCodeAt(0),c=Wo(i.before.charCodeAt(i.before.length-1),u,a);c.inside&&(l=Ka(u)+l.slice(1));const f=l.charCodeAt(l.length-1),m=Wo(i.after.charCodeAt(0),f,a);m.inside&&(l=l.slice(0,-1)+Ka(f));const d=s.move(a+a);return n(),r.attentionEncodeSurroundingInfo={after:m.outside,before:c.outside},o+l+d}function $A(e,t,r){return r.options.strong||"*"}function zA(e,t,r,i){return r.safe(e.value,i)}function UA(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 BA(e,t,r){const i=(mb(r)+(r.options.ruleSpaces?" ":"")).repeat(UA(r));return r.options.ruleSpaces?i.slice(0,-1):i}const hb={blockquote:dA,break:ap,code:vA,definition:kA,emphasis:ab,hardBreak:ap,heading:CA,html:sb,image:ob,imageReference:lb,inlineCode:ub,link:fb,linkReference:db,list:RA,listItem:FA,paragraph:DA,root:LA,strong:pb,text:zA,thematicBreak:BA};function VA(){return{enter:{table:HA,tableData:sp,tableHeader:sp,tableRow:WA},exit:{codeText:GA,table:KA,tableData:bu,tableHeader:bu,tableRow:bu}}}function HA(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 KA(e){this.exit(e),this.data.inTable=void 0}function WA(e){this.enter({type:"tableRow",children:[]},e)}function bu(e){this.exit(e)}function sp(e){this.enter({type:"tableCell",children:[]},e)}function GA(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,JA));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function JA(e,t){return t==="|"?t:e}function YA(e){const t=e||{},r=t.tableCellPadding,i=t.tablePipeAlign,a=t.stringLength,n=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
46
+ `,...n.current()});return/^[\t ]/.test(u)&&(u=Ja(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,r.options.closeAtx&&(u+=" "+s),l(),o(),u}fb.peek=FA;function fb(e){return e.value||""}function FA(){return"<"}db.peek=DA;function db(e,t,r,i){const a=td(r),n=a==='"'?"Quote":"Apostrophe",s=r.enter("image");let o=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("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=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),o()),u+=l.move(")"),s(),u}function DA(){return"!"}mb.peek=MA;function mb(e,t,r,i){const a=e.referenceType,n=r.enter("imageReference");let s=r.enter("label");const o=r.createTracker(i);let l=o.move("![");const u=r.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const c=r.stack;r.stack=[],s=r.enter("reference");const f=r.safe(r.associationId(e),{before:l,after:"]",...o.current()});return s(),r.stack=c,n(),a==="full"||!u||u!==f?l+=o.move(f+"]"):a==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function MA(){return"!"}pb.peek=LA;function pb(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 s=r.unsafe[n],o=r.compilePattern(s);let l;if(s.atBreak)for(;l=o.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 LA(){return"`"}function hb(e,t){const r=Wf(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))}gb.peek=qA;function gb(e,t,r,i){const a=td(r),n=a==='"'?"Quote":"Apostrophe",s=r.createTracker(i);let o,l;if(hb(e,r)){const c=r.stack;r.stack=[],o=r.enter("autolink");let f=s.move("<");return f+=s.move(r.containerPhrasing(e,{before:f,after:">",...s.current()})),f+=s.move(">"),o(),r.stack=c,f}o=r.enter("link"),l=r.enter("label");let u=s.move("[");return u+=s.move(r.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(r.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=r.enter("destinationRaw"),u+=s.move(r.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=r.enter(`title${n}`),u+=s.move(" "+a),u+=s.move(r.safe(e.title,{before:u,after:a,...s.current()})),u+=s.move(a),l()),u+=s.move(")"),o(),u}function qA(e,t,r){return hb(e,r)?"<":"["}yb.peek=$A;function yb(e,t,r,i){const a=e.referenceType,n=r.enter("linkReference");let s=r.enter("label");const o=r.createTracker(i);let l=o.move("[");const u=r.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const c=r.stack;r.stack=[],s=r.enter("reference");const f=r.safe(r.associationId(e),{before:l,after:"]",...o.current()});return s(),r.stack=c,n(),a==="full"||!u||u!==f?l+=o.move(f+"]"):a==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function $A(){return"["}function rd(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 zA(e){const t=rd(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 UA(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 vb(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 BA(e,t,r,i){const a=r.enter("list"),n=r.bulletCurrent;let s=e.ordered?UA(r):rd(r);const o=e.ordered?s==="."?")":".":zA(r);let l=t&&r.bulletLastUsed?s===r.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&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),vb(r)===s&&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&&(s=o),r.bulletCurrent=s;const u=r.containerFlow(e,i);return r.bulletLastUsed=s,r.bulletCurrent=n,a(),u}function VA(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 HA(e,t,r,i){const a=VA(r);let n=r.bulletCurrent||rd(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 s=n.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=r.createTracker(i);o.move(n+" ".repeat(s-n.length)),o.shift(s);const l=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,o.current()),c);return l(),u;function c(f,m,d){return m?(d?"":" ".repeat(s))+f:(d?n:n+" ".repeat(s-n.length))+f}}function WA(e,t,r,i){const a=r.enter("paragraph"),n=r.enter("phrasing"),s=r.containerPhrasing(e,i);return n(),a(),s}const KA=wl(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function GA(e,t,r,i){return(e.children.some(function(s){return KA(s)})?r.containerPhrasing:r.containerFlow).call(r,e,i)}function JA(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}bb.peek=YA;function bb(e,t,r,i){const a=JA(r),n=r.enter("strong"),s=r.createTracker(i),o=s.move(a+a);let l=s.move(r.containerPhrasing(e,{after:a,before:o,...s.current()}));const u=l.charCodeAt(0),c=Xo(i.before.charCodeAt(i.before.length-1),u,a);c.inside&&(l=Ja(u)+l.slice(1));const f=l.charCodeAt(l.length-1),m=Xo(i.after.charCodeAt(0),f,a);m.inside&&(l=l.slice(0,-1)+Ja(f));const d=s.move(a+a);return n(),r.attentionEncodeSurroundingInfo={after:m.outside,before:c.outside},o+l+d}function YA(e,t,r){return r.options.strong||"*"}function XA(e,t,r,i){return r.safe(e.value,i)}function ZA(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 QA(e,t,r){const i=(vb(r)+(r.options.ruleSpaces?" ":"")).repeat(ZA(r));return r.options.ruleSpaces?i.slice(0,-1):i}const kb={blockquote:xA,break:cp,code:_A,definition:IA,emphasis:cb,hardBreak:cp,heading:NA,html:fb,image:db,imageReference:mb,inlineCode:pb,link:gb,linkReference:yb,list:BA,listItem:HA,paragraph:WA,root:GA,strong:bb,text:XA,thematicBreak:QA};function eO(){return{enter:{table:tO,tableData:fp,tableHeader:fp,tableRow:nO},exit:{codeText:iO,table:rO,tableData:Cu,tableHeader:Cu,tableRow:Cu}}}function tO(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 rO(e){this.exit(e),this.data.inTable=void 0}function nO(e){this.enter({type:"tableRow",children:[]},e)}function Cu(e){this.exit(e)}function fp(e){this.enter({type:"tableCell",children:[]},e)}function iO(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,aO));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function aO(e,t){return t==="|"?t:e}function sO(e){const t=e||{},r=t.tableCellPadding,i=t.tablePipeAlign,a=t.stringLength,n=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
47
47
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:m,table:s,tableCell:l,tableRow:o}};function s(d,p,k,v){return u(c(d,k,v),d.align)}function o(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 cA(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=hb.inlineCode(d,p,k);return k.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function XA(){return{exit:{taskListCheckValueChecked:op,taskListCheckValueUnchecked:op,paragraph:QA}}}function ZA(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:eO}}}function op(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function QA(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,s;for(;++n<a.length;){const o=a[n];if(o.type==="paragraph"){s=o;break}}s===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 eO(e,t,r,i){const a=e.children[0],n=typeof e.checked=="boolean"&&a&&a.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",o=r.createTracker(i);n&&o.move(s);let l=hb.listItem(e,t,r,{...i,...o.current()});return n&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+s}}function tO(){return[RE(),eA(),iA(),VA(),XA()]}function rO(e){return{extensions:[NE(),tA(e),aA(),YA(e),ZA()]}}const nO={tokenize:uO,partial:!0},gb={tokenize:cO,partial:!0},yb={tokenize:fO,partial:!0},vb={tokenize:dO,partial:!0},iO={tokenize:mO,partial:!0},bb={name:"wwwAutolink",tokenize:oO,previous:wb},kb={name:"protocolAutolink",tokenize:lO,previous:xb},sn={name:"emailAutolink",tokenize:sO,previous:Sb},Jr={};function aO(){return{text:Jr}}let Wn=48;for(;Wn<123;)Jr[Wn]=sn,Wn++,Wn===58?Wn=65:Wn===91&&(Wn=97);Jr[43]=sn;Jr[45]=sn;Jr[46]=sn;Jr[95]=sn;Jr[72]=[sn,kb];Jr[104]=[sn,kb];Jr[87]=[sn,bb];Jr[119]=[sn,bb];function sO(e,t,r){const i=this;let a,n;return s;function s(f){return!Jc(f)||!Sb.call(i,i.previous)||Zf(i.events)?r(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(f))}function o(f){return Jc(f)?(e.consume(f),o):f===64?(e.consume(f),l):r(f)}function l(f){return f===46?e.check(iO,c,u)(f):f===45||f===95||Lt(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&&Bt(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):r(f)}}function oO(e,t,r){const i=this;return a;function a(s){return s!==87&&s!==119||!wb.call(i,i.previous)||Zf(i.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(nO,e.attempt(gb,e.attempt(yb,n),r),r)(s))}function n(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function lO(e,t,r){const i=this;let a="",n=!1;return s;function s(f){return(f===72||f===104)&&xb.call(i,i.previous)&&!Zf(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(f),e.consume(f),o):r(f)}function o(f){if(Bt(f)&&a.length<5)return a+=String.fromCodePoint(f),e.consume(f),o;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||Vo(f)||dt(f)||oi(f)||ml(f)?r(f):e.attempt(gb,e.attempt(yb,c),r)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function uO(e,t,r){let i=0;return a;function a(s){return(s===87||s===119)&&i<3?(i++,e.consume(s),a):s===46&&i===3?(e.consume(s),n):r(s)}function n(s){return s===null?r(s):t(s)}}function cO(e,t,r){let i,a,n;return s;function s(u){return u===46||u===95?e.check(vb,l,o)(u):u===null||dt(u)||oi(u)||u!==45&&ml(u)?l(u):(n=!0,e.consume(u),s)}function o(u){return u===95?i=!0:(a=i,i=void 0),e.consume(u),s}function l(u){return a||i||!n?r(u):t(u)}}function fO(e,t){let r=0,i=0;return a;function a(s){return s===40?(r++,e.consume(s),a):s===41&&i<r?n(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(vb,t,n)(s):s===null||dt(s)||oi(s)?t(s):(e.consume(s),a)}function n(s){return s===41&&i++,e.consume(s),a}}function dO(e,t,r){return i;function i(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),i):o===38?(e.consume(o),n):o===93?(e.consume(o),a):o===60||o===null||dt(o)||oi(o)?t(o):r(o)}function a(o){return o===null||o===40||o===91||dt(o)||oi(o)?t(o):i(o)}function n(o){return Bt(o)?s(o):r(o)}function s(o){return o===59?(e.consume(o),i):Bt(o)?(e.consume(o),s):r(o)}}function mO(e,t,r){return i;function i(n){return e.consume(n),a}function a(n){return Lt(n)?r(n):t(n)}}function wb(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||dt(e)}function xb(e){return!Bt(e)}function Sb(e){return!(e===47||Jc(e))}function Jc(e){return e===43||e===45||e===46||e===95||Lt(e)}function Zf(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 pO={tokenize:xO,partial:!0};function hO(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:bO,continuation:{tokenize:kO},exit:wO}},text:{91:{name:"gfmFootnoteCall",tokenize:vO},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:gO,resolveTo:yO}}}}function gO(e,t,r){const i=this;let a=i.events.length;const n=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s;for(;a--;){const l=i.events[a][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!s||!s._balanced)return r(l);const u=Ar(i.sliceSerialize({start:s.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 yO(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)},s={type:"chunkString",contentType:"string",start:Object.assign({},n.start),end:Object.assign({},n.end)},o=[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",s,t],["exit",s,t],["exit",n,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...o),e}function vO(e,t,r){const i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let n=0,s;return o;function o(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&&!s||f===null||f===91||dt(f))return r(f);if(f===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return a.includes(Ar(i.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(f)}return dt(f)||(s=!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 bO(e,t,r){const i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let n,s=0,o;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(s>999||p===93&&!o||p===null||p===91||dt(p))return r(p);if(p===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return n=Ar(i.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return dt(p)||(o=!0),s++,e.consume(p),p===92?f:c}function f(p){return p===91||p===92||p===93?(e.consume(p),s++,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 kO(e,t,r){return e.check(as,t,e.attempt(pO,t,r))}function wO(e){e.exit("gfmFootnoteDefinition")}function xO(e,t,r){const i=this;return Be(e,a,"gfmFootnoteDefinitionIndent",5);function a(n){const s=i.events[i.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(n):r(n)}}function SO(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(s,o){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},f={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},m=[["enter",c,o],["enter",s[u][1],o],["exit",s[u][1],o],["enter",f,o]],d=o.parser.constructs.insideSpan.null;d&&ar(m,m.length,0,pl(d,s.slice(u+1,l),o)),ar(m,m.length,0,[["exit",f,o],["enter",s[l][1],o],["exit",s[l][1],o],["exit",c,o]]),ar(s,u-1,l-u+3,m),l=u+m.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function n(s,o,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):(s.enter("strikethroughSequenceTemporary"),d(p))}function d(p){const k=Yi(u);if(p===126)return f>1?l(p):(s.consume(p),f++,d);if(f<2&&!r)return l(p);const v=s.exit("strikethroughSequenceTemporary"),g=Yi(p);return v._open=!g||g===2&&!!k,v._close=!k||k===2&&!!g,o(p)}}}class CO{constructor(){this.map=[]}add(t,r,i){EO(this,t,r,i)}consume(t){if(this.map.sort(function(n,s){return n[0]-s[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 EO(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 AO(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 OO(){return{flow:{null:{name:"table",tokenize:_O,resolveAll:PO}}}}function _O(e,t,r){const i=this;let a=0,n=0,s;return o;function o(x){let E=i.events.length-1;for(;E>-1;){const T=i.events[E][1].type;if(T==="lineEnding"||T==="linePrefix")E--;else break}const O=E>-1?i.events[E][1].type:null,R=O==="tableHead"||O==="tableRow"?y:l;return R===y&&i.parser.lazy[i.now().line]?r(x):R(x)}function l(x){return e.enter("tableHead"),e.enter("tableRow"),u(x)}function u(x){return x===124||(s=!0,n+=1),c(x)}function c(x){return x===null?r(x):he(x)?n>1?(n=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),d):r(x):Me(x)?Be(e,c,"whitespace")(x):(n+=1,s&&(s=!1,a+=1),x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),f(x)))}function f(x){return x===null||x===124||dt(x)?(e.exit("data"),c(x)):(e.consume(x),x===92?m:f)}function m(x){return x===92||x===124?(e.consume(x),f):f(x)}function d(x){return i.interrupt=!1,i.parser.lazy[i.now().line]?r(x):(e.enter("tableDelimiterRow"),s=!1,Me(x)?Be(e,p,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):p(x))}function p(x){return x===45||x===58?v(x):x===124?(s=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),k):h(x)}function k(x){return Me(x)?Be(e,v,"whitespace")(x):v(x)}function v(x){return x===58?(n+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),g):x===45?(n+=1,g(x)):x===null||he(x)?C(x):h(x)}function g(x){return x===45?(e.enter("tableDelimiterFiller"),b(x)):h(x)}function b(x){return x===45?(e.consume(x),b):x===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(x))}function w(x){return Me(x)?Be(e,C,"whitespace")(x):C(x)}function C(x){return x===124?p(x):x===null||he(x)?!s||a!==n?h(x):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(x)):h(x)}function h(x){return r(x)}function y(x){return e.enter("tableRow"),S(x)}function S(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),S):x===null||he(x)?(e.exit("tableRow"),t(x)):Me(x)?Be(e,S,"whitespace")(x):(e.enter("data"),A(x))}function A(x){return x===null||x===124||dt(x)?(e.exit("data"),S(x)):(e.consume(x),x===92?_:A)}function _(x){return x===92||x===124?(e.consume(x),A):A(x)}}function PO(e,t){let r=-1,i=!0,a=0,n=[0,0,0,0],s=[0,0,0,0],o=!1,l=0,u,c,f;const m=new CO;for(;++r<e.length;){const d=e[r],p=d[1];d[0]==="enter"?p.type==="tableHead"?(o=!1,l!==0&&(lp(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],s=[0,r+1,0,0],o&&(o=!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,s[2]===0&&(n[1]!==0&&(s[0]=s[1],f=Ns(m,t,n,a,void 0,f),n=[0,0,0,0]),s[2]=r)):p.type==="tableCellDivider"&&(i?i=!1:(n[1]!==0&&(s[0]=s[1],f=Ns(m,t,n,a,void 0,f)),n=s,s=[n[1],r,0,0])):p.type==="tableHead"?(o=!0,l=r):p.type==="tableRow"||p.type==="tableDelimiterRow"?(l=r,n[1]!==0?(s[0]=s[1],f=Ns(m,t,n,a,r,f)):s[1]!==0&&(f=Ns(m,t,s,a,r,f)),a=0):a&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")&&(s[3]=r)}for(l!==0&&lp(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=AO(t.events,r))}return e}function Ns(e,t,r,i,a,n){const s=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",o="tableContent";r[0]!==0&&(n.end=Object.assign({},Di(t.events,r[0])),e.add(r[0],0,[["exit",n,t]]));const l=Di(t.events,r[1]);if(n={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(r[1],0,[["enter",n,t]]),r[2]!==0){const u=Di(t.events,r[2]),c=Di(t.events,r[3]),f={type:o,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({},Di(t.events,a)),e.add(a,0,[["exit",n,t]]),n=void 0),n}function lp(e,t,r,i,a){const n=[],s=Di(t.events,r);a&&(a.end=Object.assign({},s),n.push(["exit",a,t])),i.end=Object.assign({},s),n.push(["exit",i,t]),e.add(r+1,0,n)}function Di(e,t){const r=e[t],i=r[0]==="enter"?"start":"end";return r[1][i]}const IO={name:"tasklistCheck",tokenize:jO};function TO(){return{text:{91:IO}}}function jO(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"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):r(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):r(l)}function o(l){return he(l)?t(l):Me(l)?e.check({tokenize:RO},t,r)(l):r(l)}}function RO(e,t,r){return Be(e,i,"whitespace");function i(a){return a===null?r(a):t(a)}}function NO(e){return Nv([aO(),hO(),SO(e),OO(),TO()])}const FO={};function DO(e){const t=this,r=e||FO,i=t.data(),a=i.micromarkExtensions||(i.micromarkExtensions=[]),n=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);a.push(NO(r)),n.push(tO()),s.push(rO(r))}const Cb=SE,Eb=e=>j.jsx("a",{href:e.href,target:"_blank",rel:"noreferrer",children:e.children});function Ir(e){const t=e.components||{};return t.a||(t.a=Eb),j.jsx(Cb,{...e,components:t,allowedElements:["a","p","em","img","strong","ul","ol","li"]})}const MO=["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 Yc(e){const t=e.components||{};return t.a||(t.a=Eb),j.jsx(Cb,{...e,remarkPlugins:[DO],components:t,allowedElements:MO})}/*!
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 kA(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=kb.inlineCode(d,p,k);return k.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function oO(){return{exit:{taskListCheckValueChecked:dp,taskListCheckValueUnchecked:dp,paragraph:uO}}}function lO(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:cO}}}function dp(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function uO(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,s;for(;++n<a.length;){const o=a[n];if(o.type==="paragraph"){s=o;break}}s===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 cO(e,t,r,i){const a=e.children[0],n=typeof e.checked=="boolean"&&a&&a.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",o=r.createTracker(i);n&&o.move(s);let l=kb.listItem(e,t,r,{...i,...o.current()});return n&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+s}}function fO(){return[BE(),cA(),pA(),eO(),oO()]}function dO(e){return{extensions:[VE(),fA(e),hA(),sO(e),lO()]}}const mO={tokenize:bO,partial:!0},wb={tokenize:kO,partial:!0},xb={tokenize:wO,partial:!0},Sb={tokenize:xO,partial:!0},pO={tokenize:SO,partial:!0},Cb={name:"wwwAutolink",tokenize:yO,previous:Ab},Eb={name:"protocolAutolink",tokenize:vO,previous:Ob},sn={name:"emailAutolink",tokenize:gO,previous:_b},Jr={};function hO(){return{text:Jr}}let Jn=48;for(;Jn<123;)Jr[Jn]=sn,Jn++,Jn===58?Jn=65:Jn===91&&(Jn=97);Jr[43]=sn;Jr[45]=sn;Jr[46]=sn;Jr[95]=sn;Jr[72]=[sn,Eb];Jr[104]=[sn,Eb];Jr[87]=[sn,Cb];Jr[119]=[sn,Cb];function gO(e,t,r){const i=this;let a,n;return s;function s(f){return!ef(f)||!_b.call(i,i.previous)||nd(i.events)?r(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(f))}function o(f){return ef(f)?(e.consume(f),o):f===64?(e.consume(f),l):r(f)}function l(f){return f===46?e.check(pO,c,u)(f):f===45||f===95||Lt(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&&Bt(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):r(f)}}function yO(e,t,r){const i=this;return a;function a(s){return s!==87&&s!==119||!Ab.call(i,i.previous)||nd(i.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(mO,e.attempt(wb,e.attempt(xb,n),r),r)(s))}function n(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function vO(e,t,r){const i=this;let a="",n=!1;return s;function s(f){return(f===72||f===104)&&Ob.call(i,i.previous)&&!nd(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(f),e.consume(f),o):r(f)}function o(f){if(Bt(f)&&a.length<5)return a+=String.fromCodePoint(f),e.consume(f),o;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||Go(f)||dt(f)||ui(f)||vl(f)?r(f):e.attempt(wb,e.attempt(xb,c),r)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function bO(e,t,r){let i=0;return a;function a(s){return(s===87||s===119)&&i<3?(i++,e.consume(s),a):s===46&&i===3?(e.consume(s),n):r(s)}function n(s){return s===null?r(s):t(s)}}function kO(e,t,r){let i,a,n;return s;function s(u){return u===46||u===95?e.check(Sb,l,o)(u):u===null||dt(u)||ui(u)||u!==45&&vl(u)?l(u):(n=!0,e.consume(u),s)}function o(u){return u===95?i=!0:(a=i,i=void 0),e.consume(u),s}function l(u){return a||i||!n?r(u):t(u)}}function wO(e,t){let r=0,i=0;return a;function a(s){return s===40?(r++,e.consume(s),a):s===41&&i<r?n(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(Sb,t,n)(s):s===null||dt(s)||ui(s)?t(s):(e.consume(s),a)}function n(s){return s===41&&i++,e.consume(s),a}}function xO(e,t,r){return i;function i(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),i):o===38?(e.consume(o),n):o===93?(e.consume(o),a):o===60||o===null||dt(o)||ui(o)?t(o):r(o)}function a(o){return o===null||o===40||o===91||dt(o)||ui(o)?t(o):i(o)}function n(o){return Bt(o)?s(o):r(o)}function s(o){return o===59?(e.consume(o),i):Bt(o)?(e.consume(o),s):r(o)}}function SO(e,t,r){return i;function i(n){return e.consume(n),a}function a(n){return Lt(n)?r(n):t(n)}}function Ab(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||dt(e)}function Ob(e){return!Bt(e)}function _b(e){return!(e===47||ef(e))}function ef(e){return e===43||e===45||e===46||e===95||Lt(e)}function nd(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 CO={tokenize:jO,partial:!0};function EO(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:PO,continuation:{tokenize:IO},exit:TO}},text:{91:{name:"gfmFootnoteCall",tokenize:_O},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:AO,resolveTo:OO}}}}function AO(e,t,r){const i=this;let a=i.events.length;const n=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s;for(;a--;){const l=i.events[a][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!s||!s._balanced)return r(l);const u=Ar(i.sliceSerialize({start:s.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 OO(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)},s={type:"chunkString",contentType:"string",start:Object.assign({},n.start),end:Object.assign({},n.end)},o=[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",s,t],["exit",s,t],["exit",n,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...o),e}function _O(e,t,r){const i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let n=0,s;return o;function o(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&&!s||f===null||f===91||dt(f))return r(f);if(f===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return a.includes(Ar(i.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(f)}return dt(f)||(s=!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 PO(e,t,r){const i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let n,s=0,o;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(s>999||p===93&&!o||p===null||p===91||dt(p))return r(p);if(p===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return n=Ar(i.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return dt(p)||(o=!0),s++,e.consume(p),p===92?f:c}function f(p){return p===91||p===92||p===93?(e.consume(p),s++,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 IO(e,t,r){return e.check(ls,t,e.attempt(CO,t,r))}function TO(e){e.exit("gfmFootnoteDefinition")}function jO(e,t,r){const i=this;return Be(e,a,"gfmFootnoteDefinitionIndent",5);function a(n){const s=i.events[i.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(n):r(n)}}function RO(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(s,o){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},f={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},m=[["enter",c,o],["enter",s[u][1],o],["exit",s[u][1],o],["enter",f,o]],d=o.parser.constructs.insideSpan.null;d&&ar(m,m.length,0,bl(d,s.slice(u+1,l),o)),ar(m,m.length,0,[["exit",f,o],["enter",s[l][1],o],["exit",s[l][1],o],["exit",c,o]]),ar(s,u-1,l-u+3,m),l=u+m.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function n(s,o,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):(s.enter("strikethroughSequenceTemporary"),d(p))}function d(p){const k=Zi(u);if(p===126)return f>1?l(p):(s.consume(p),f++,d);if(f<2&&!r)return l(p);const v=s.exit("strikethroughSequenceTemporary"),g=Zi(p);return v._open=!g||g===2&&!!k,v._close=!k||k===2&&!!g,o(p)}}}class NO{constructor(){this.map=[]}add(t,r,i){FO(this,t,r,i)}consume(t){if(this.map.sort(function(n,s){return n[0]-s[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 FO(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 DO(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 MO(){return{flow:{null:{name:"table",tokenize:LO,resolveAll:qO}}}}function LO(e,t,r){const i=this;let a=0,n=0,s;return o;function o(C){let E=i.events.length-1;for(;E>-1;){const T=i.events[E][1].type;if(T==="lineEnding"||T==="linePrefix")E--;else break}const O=E>-1?i.events[E][1].type:null,R=O==="tableHead"||O==="tableRow"?y:l;return R===y&&i.parser.lazy[i.now().line]?r(C):R(C)}function l(C){return e.enter("tableHead"),e.enter("tableRow"),u(C)}function u(C){return C===124||(s=!0,n+=1),c(C)}function c(C){return C===null?r(C):he(C)?n>1?(n=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),d):r(C):Me(C)?Be(e,c,"whitespace")(C):(n+=1,s&&(s=!1,a+=1),C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),f(C)))}function f(C){return C===null||C===124||dt(C)?(e.exit("data"),c(C)):(e.consume(C),C===92?m:f)}function m(C){return C===92||C===124?(e.consume(C),f):f(C)}function d(C){return i.interrupt=!1,i.parser.lazy[i.now().line]?r(C):(e.enter("tableDelimiterRow"),s=!1,Me(C)?Be(e,p,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):p(C))}function p(C){return C===45||C===58?v(C):C===124?(s=!0,e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),k):h(C)}function k(C){return Me(C)?Be(e,v,"whitespace")(C):v(C)}function v(C){return C===58?(n+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),g):C===45?(n+=1,g(C)):C===null||he(C)?x(C):h(C)}function g(C){return C===45?(e.enter("tableDelimiterFiller"),b(C)):h(C)}function b(C){return C===45?(e.consume(C),b):C===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(C))}function w(C){return Me(C)?Be(e,x,"whitespace")(C):x(C)}function x(C){return C===124?p(C):C===null||he(C)?!s||a!==n?h(C):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(C)):h(C)}function h(C){return r(C)}function y(C){return e.enter("tableRow"),S(C)}function S(C){return C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),S):C===null||he(C)?(e.exit("tableRow"),t(C)):Me(C)?Be(e,S,"whitespace")(C):(e.enter("data"),A(C))}function A(C){return C===null||C===124||dt(C)?(e.exit("data"),S(C)):(e.consume(C),C===92?_:A)}function _(C){return C===92||C===124?(e.consume(C),A):A(C)}}function qO(e,t){let r=-1,i=!0,a=0,n=[0,0,0,0],s=[0,0,0,0],o=!1,l=0,u,c,f;const m=new NO;for(;++r<e.length;){const d=e[r],p=d[1];d[0]==="enter"?p.type==="tableHead"?(o=!1,l!==0&&(mp(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],s=[0,r+1,0,0],o&&(o=!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,s[2]===0&&(n[1]!==0&&(s[0]=s[1],f=Ms(m,t,n,a,void 0,f),n=[0,0,0,0]),s[2]=r)):p.type==="tableCellDivider"&&(i?i=!1:(n[1]!==0&&(s[0]=s[1],f=Ms(m,t,n,a,void 0,f)),n=s,s=[n[1],r,0,0])):p.type==="tableHead"?(o=!0,l=r):p.type==="tableRow"||p.type==="tableDelimiterRow"?(l=r,n[1]!==0?(s[0]=s[1],f=Ms(m,t,n,a,r,f)):s[1]!==0&&(f=Ms(m,t,s,a,r,f)),a=0):a&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")&&(s[3]=r)}for(l!==0&&mp(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=DO(t.events,r))}return e}function Ms(e,t,r,i,a,n){const s=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",o="tableContent";r[0]!==0&&(n.end=Object.assign({},Li(t.events,r[0])),e.add(r[0],0,[["exit",n,t]]));const l=Li(t.events,r[1]);if(n={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(r[1],0,[["enter",n,t]]),r[2]!==0){const u=Li(t.events,r[2]),c=Li(t.events,r[3]),f={type:o,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({},Li(t.events,a)),e.add(a,0,[["exit",n,t]]),n=void 0),n}function mp(e,t,r,i,a){const n=[],s=Li(t.events,r);a&&(a.end=Object.assign({},s),n.push(["exit",a,t])),i.end=Object.assign({},s),n.push(["exit",i,t]),e.add(r+1,0,n)}function Li(e,t){const r=e[t],i=r[0]==="enter"?"start":"end";return r[1][i]}const $O={name:"tasklistCheck",tokenize:UO};function zO(){return{text:{91:$O}}}function UO(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"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):r(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):r(l)}function o(l){return he(l)?t(l):Me(l)?e.check({tokenize:BO},t,r)(l):r(l)}}function BO(e,t,r){return Be(e,i,"whitespace");function i(a){return a===null?r(a):t(a)}}function VO(e){return qv([hO(),EO(),RO(e),MO(),zO()])}const HO={};function WO(e){const t=this,r=e||HO,i=t.data(),a=i.micromarkExtensions||(i.micromarkExtensions=[]),n=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);a.push(VO(r)),n.push(fO()),s.push(dO(r))}const Pb=RE,Ib=e=>j.jsx("a",{href:e.href,target:"_blank",rel:"noreferrer",children:e.children});function Ir(e){const t=e.components||{};return t.a||(t.a=Ib),j.jsx(Pb,{...e,components:t,allowedElements:["a","p","em","img","strong","ul","ol","li"]})}const KO=["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 tf(e){const t=e.components||{};return t.a||(t.a=Ib),j.jsx(Pb,{...e,remarkPlugins:[WO],components:t,allowedElements:KO})}/*!
49
49
  * mustache.js - Logic-less {{mustache}} templates with JavaScript
50
50
  * http://github.com/janl/mustache.js
51
- */var LO=Object.prototype.toString,sa=Array.isArray||function(t){return LO.call(t)==="[object Array]"};function Qf(e){return typeof e=="function"}function qO(e){return sa(e)?"array":typeof e}function ku(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function up(e,t){return e!=null&&typeof e=="object"&&t in e}function $O(e,t){return e!=null&&typeof e!="object"&&e.hasOwnProperty&&e.hasOwnProperty(t)}var zO=RegExp.prototype.test;function UO(e,t){return zO.call(e,t)}var BO=/\S/;function VO(e){return!UO(BO,e)}var HO={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function KO(e){return String(e).replace(/[&<>"'`=\/]/g,function(r){return HO[r]})}var WO=/\s*/,GO=/\s+/,cp=/\s*=/,JO=/\s*\}/,YO=/#|\^|\/|>|\{|&|=|!/;function XO(e,t){if(!e)return[];var r=!1,i=[],a=[],n=[],s=!1,o=!1,l="",u=0;function c(){if(s&&!o)for(;n.length;)delete a[n.pop()];else n=[];s=!1,o=!1}var f,m,d;function p(A){if(typeof A=="string"&&(A=A.split(GO,2)),!sa(A)||A.length!==2)throw new Error("Invalid tags: "+A);f=new RegExp(ku(A[0])+"\\s*"),m=new RegExp("\\s*"+ku(A[1])),d=new RegExp("\\s*"+ku("}"+A[1]))}p(t||pr.tags);for(var k=new os(e),v,g,b,w,C,h;!k.eos();){if(v=k.pos,b=k.scanUntil(f),b)for(var y=0,S=b.length;y<S;++y)w=b.charAt(y),VO(w)?(n.push(a.length),l+=w):(o=!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(s=!0,g=k.scan(YO)||"name",k.scan(WO),g==="="?(b=k.scanUntil(cp),k.scan(cp),k.scanUntil(m)):g==="{"?(b=k.scanUntil(d),k.scan(JO),k.scanUntil(m),g="&"):b=k.scanUntil(m),!k.scan(m))throw new Error("Unclosed tag at "+k.pos);if(g==">"?C=[g,b,v,k.pos,l,u,r]:C=[g,b,v,k.pos],u++,a.push(C),g==="#"||g==="^")i.push(C);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==="&"?o=!0:g==="="&&p(b)}if(c(),h=i.pop(),h)throw new Error('Unclosed section "'+h[1]+'" at '+k.pos);return QO(ZO(a))}function ZO(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 QO(e){for(var t=[],r=t,i=[],a,n,s=0,o=e.length;s<o;++s)switch(a=e[s],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 os(e){this.string=e,this.tail=e,this.pos=0}os.prototype.eos=function(){return this.tail===""};os.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};os.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 Xi(e,t){this.view=e,this.cache={".":this.view},this.parent=t}Xi.prototype.push=function(t){return new Xi(t,this)};Xi.prototype.lookup=function(t){var r=this.cache,i;if(r.hasOwnProperty(t))i=r[t];else{for(var a=this,n,s,o,l=!1;a;){if(t.indexOf(".")>0)for(n=a.view,s=t.split("."),o=0;n!=null&&o<s.length;)o===s.length-1&&(l=up(n,s[o])||$O(n,s[o])),n=n[s[o++]];else n=a.view[t],l=up(a.view,t);if(l){i=n;break}a=a.parent}r[t]=i}return Qf(i)&&(i=i.call(this.view)),i};function Gt(){this.templateCache={_cache:{},set:function(t,r){this._cache[t]=r},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}Gt.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()};Gt.prototype.parse=function(t,r){var i=this.templateCache,a=t+":"+(r||pr.tags).join(":"),n=typeof i<"u",s=n?i.get(a):void 0;return s==null&&(s=XO(t,r),n&&i.set(a,s)),s};Gt.prototype.render=function(t,r,i,a){var n=this.getConfigTags(a),s=this.parse(t,n),o=r instanceof Xi?r:new Xi(r,void 0);return this.renderTokens(s,o,i,t,a)};Gt.prototype.renderTokens=function(t,r,i,a,n){for(var s="",o,l,u,c=0,f=t.length;c<f;++c)u=void 0,o=t[c],l=o[0],l==="#"?u=this.renderSection(o,r,i,a,n):l==="^"?u=this.renderInverted(o,r,i,a,n):l===">"?u=this.renderPartial(o,r,i,n):l==="&"?u=this.unescapedValue(o,r):l==="name"?u=this.escapedValue(o,r,n):l==="text"&&(u=this.rawValue(o)),u!==void 0&&(s+=u);return s};Gt.prototype.renderSection=function(t,r,i,a,n){var s=this,o="",l=r.lookup(t[1]);function u(m){return s.render(m,r,i,n)}if(l){if(sa(l))for(var c=0,f=l.length;c<f;++c)o+=this.renderTokens(t[4],r.push(l[c]),i,a,n);else if(typeof l=="object"||typeof l=="string"||typeof l=="number")o+=this.renderTokens(t[4],r.push(l),i,a,n);else if(Qf(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&&(o+=l)}else o+=this.renderTokens(t[4],r,i,a,n);return o}};Gt.prototype.renderInverted=function(t,r,i,a,n){var s=r.lookup(t[1]);if(!s||sa(s)&&s.length===0)return this.renderTokens(t[4],r,i,a,n)};Gt.prototype.indentPartial=function(t,r,i){for(var a=r.replace(/[^ \t]/g,""),n=t.split(`
51
+ */var GO=Object.prototype.toString,la=Array.isArray||function(t){return GO.call(t)==="[object Array]"};function id(e){return typeof e=="function"}function JO(e){return la(e)?"array":typeof e}function Eu(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function pp(e,t){return e!=null&&typeof e=="object"&&t in e}function YO(e,t){return e!=null&&typeof e!="object"&&e.hasOwnProperty&&e.hasOwnProperty(t)}var XO=RegExp.prototype.test;function ZO(e,t){return XO.call(e,t)}var QO=/\S/;function e_(e){return!ZO(QO,e)}var t_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function r_(e){return String(e).replace(/[&<>"'`=\/]/g,function(r){return t_[r]})}var n_=/\s*/,i_=/\s+/,hp=/\s*=/,a_=/\s*\}/,s_=/#|\^|\/|>|\{|&|=|!/;function o_(e,t){if(!e)return[];var r=!1,i=[],a=[],n=[],s=!1,o=!1,l="",u=0;function c(){if(s&&!o)for(;n.length;)delete a[n.pop()];else n=[];s=!1,o=!1}var f,m,d;function p(A){if(typeof A=="string"&&(A=A.split(i_,2)),!la(A)||A.length!==2)throw new Error("Invalid tags: "+A);f=new RegExp(Eu(A[0])+"\\s*"),m=new RegExp("\\s*"+Eu(A[1])),d=new RegExp("\\s*"+Eu("}"+A[1]))}p(t||pr.tags);for(var k=new cs(e),v,g,b,w,x,h;!k.eos();){if(v=k.pos,b=k.scanUntil(f),b)for(var y=0,S=b.length;y<S;++y)w=b.charAt(y),e_(w)?(n.push(a.length),l+=w):(o=!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(s=!0,g=k.scan(s_)||"name",k.scan(n_),g==="="?(b=k.scanUntil(hp),k.scan(hp),k.scanUntil(m)):g==="{"?(b=k.scanUntil(d),k.scan(a_),k.scanUntil(m),g="&"):b=k.scanUntil(m),!k.scan(m))throw new Error("Unclosed tag at "+k.pos);if(g==">"?x=[g,b,v,k.pos,l,u,r]:x=[g,b,v,k.pos],u++,a.push(x),g==="#"||g==="^")i.push(x);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==="&"?o=!0:g==="="&&p(b)}if(c(),h=i.pop(),h)throw new Error('Unclosed section "'+h[1]+'" at '+k.pos);return u_(l_(a))}function l_(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 u_(e){for(var t=[],r=t,i=[],a,n,s=0,o=e.length;s<o;++s)switch(a=e[s],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 cs(e){this.string=e,this.tail=e,this.pos=0}cs.prototype.eos=function(){return this.tail===""};cs.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};cs.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 Qi(e,t){this.view=e,this.cache={".":this.view},this.parent=t}Qi.prototype.push=function(t){return new Qi(t,this)};Qi.prototype.lookup=function(t){var r=this.cache,i;if(r.hasOwnProperty(t))i=r[t];else{for(var a=this,n,s,o,l=!1;a;){if(t.indexOf(".")>0)for(n=a.view,s=t.split("."),o=0;n!=null&&o<s.length;)o===s.length-1&&(l=pp(n,s[o])||YO(n,s[o])),n=n[s[o++]];else n=a.view[t],l=pp(a.view,t);if(l){i=n;break}a=a.parent}r[t]=i}return id(i)&&(i=i.call(this.view)),i};function Gt(){this.templateCache={_cache:{},set:function(t,r){this._cache[t]=r},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}Gt.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()};Gt.prototype.parse=function(t,r){var i=this.templateCache,a=t+":"+(r||pr.tags).join(":"),n=typeof i<"u",s=n?i.get(a):void 0;return s==null&&(s=o_(t,r),n&&i.set(a,s)),s};Gt.prototype.render=function(t,r,i,a){var n=this.getConfigTags(a),s=this.parse(t,n),o=r instanceof Qi?r:new Qi(r,void 0);return this.renderTokens(s,o,i,t,a)};Gt.prototype.renderTokens=function(t,r,i,a,n){for(var s="",o,l,u,c=0,f=t.length;c<f;++c)u=void 0,o=t[c],l=o[0],l==="#"?u=this.renderSection(o,r,i,a,n):l==="^"?u=this.renderInverted(o,r,i,a,n):l===">"?u=this.renderPartial(o,r,i,n):l==="&"?u=this.unescapedValue(o,r):l==="name"?u=this.escapedValue(o,r,n):l==="text"&&(u=this.rawValue(o)),u!==void 0&&(s+=u);return s};Gt.prototype.renderSection=function(t,r,i,a,n){var s=this,o="",l=r.lookup(t[1]);function u(m){return s.render(m,r,i,n)}if(l){if(la(l))for(var c=0,f=l.length;c<f;++c)o+=this.renderTokens(t[4],r.push(l[c]),i,a,n);else if(typeof l=="object"||typeof l=="string"||typeof l=="number")o+=this.renderTokens(t[4],r.push(l),i,a,n);else if(id(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&&(o+=l)}else o+=this.renderTokens(t[4],r,i,a,n);return o}};Gt.prototype.renderInverted=function(t,r,i,a,n){var s=r.lookup(t[1]);if(!s||la(s)&&s.length===0)return this.renderTokens(t[4],r,i,a,n)};Gt.prototype.indentPartial=function(t,r,i){for(var a=r.replace(/[^ \t]/g,""),n=t.split(`
53
53
  `),s=0;s<n.length;s++)n[s].length&&(s>0||!i)&&(n[s]=a+n[s]);return n.join(`
54
- `)};Gt.prototype.renderPartial=function(t,r,i,a){if(i){var n=this.getConfigTags(a),s=Qf(i)?i(t[1]):i[t[1]];if(s!=null){var o=t[6],l=t[5],u=t[4],c=s;l==0&&u&&(c=this.indentPartial(s,u,o));var f=this.parse(c,n);return this.renderTokens(f,r,i,c,a)}}};Gt.prototype.unescapedValue=function(t,r){var i=r.lookup(t[1]);if(i!=null)return i};Gt.prototype.escapedValue=function(t,r,i){var a=this.getConfigEscape(i)||pr.escape,n=r.lookup(t[1]);if(n!=null)return typeof n=="number"&&a===pr.escape?String(n):a(n)};Gt.prototype.rawValue=function(t){return t[1]};Gt.prototype.getConfigTags=function(t){return sa(t)?t:t&&typeof t=="object"?t.tags:void 0};Gt.prototype.getConfigEscape=function(t){if(t&&typeof t=="object"&&!sa(t))return t.escape};var pr={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){Wa.templateCache=e},get templateCache(){return Wa.templateCache}},Wa=new Gt;pr.clearCache=function(){return Wa.clearCache()};pr.parse=function(t,r){return Wa.parse(t,r)};pr.render=function(t,r,i,a){if(typeof t!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+qO(t)+'" was given as the first argument for mustache#render(template, view, partials)');return Wa.render(t,r,i,a)};pr.escape=KO;pr.Scanner=os;pr.Context=Xi;pr.Writer=Gt;const wu=e=>e&&typeof e=="object"&&!Array.isArray(e),Xc=(e,...t)=>{if(!t.length)return e;const r=t.shift();if(wu(e)&&wu(r))for(const i in r)wu(r[i])?(e[i]||Object.assign(e,{[i]:{}}),Xc(e[i],r[i])):Object.assign(e,{[i]:r[i]});return Xc(e,...t)},e_=(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()},t_=([e,t],r,i)=>{const{ui:a,uiSchema:n,["ui:schema"]:s}=t;return{...r===0&&i.focusOnFirst&&{"ui:autofocus":!0},...i.isSensitive&&{"ui:widget":"password"},...s,...n,...a,...t.properties&&{...Go(t.properties,i.globalUiSchema)},...t.oneOf&&Xc({},...t.oneOf.map(o=>Go(o.properties,i.globalUiSchema))),...i.globalUiSchema[e]}},Go=(e,t,r=!1)=>Object.entries(e??{}).reduce((i,[a,n],s)=>{const o=t_([a,n],s,{focusOnFirst:r,isSensitive:n.isSensitive,globalUiSchema:t});return{...i,[a]:{...o,"ui:classNames":e_(o,n)}}},{}),Zc=(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=>Zc(n,t)):r[i]=Zc(a,t):r[i]=a}return r},r_=e=>{const{embedFormOptions:t,ui:r,uiSchema:i,...a}=e;return Zc(a,["ui","isSensitive","isTransient"])},n_=e=>{const t={...e.schema.ui,...e.schema.uiSchema};let r={};if(e.schema.dependencies){const i=Go(e.schema.dependencies,t);for(const a in i){const n=i[a];delete n["ui:classNames"],r={...r,...n}}}return{...t,...r,...Go(e.schema.properties,t)}},Ab=e=>(Object.entries(e).forEach(([t,r])=>{r&&typeof r=="object"&&Ab(r),r&&typeof r=="object"&&!Object.keys(r).length&&delete e[t]}),e),i_=(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(Ab(JSON.parse(i))):i},a_=(e,t)=>{const r=(t==null?void 0:t.variables)??{};return JSON.parse(pr.render(i_(e,r),r))};function Ob(e){const t=a_(e,e.schema.embedFormOptions);return{schema:r_(t.schema),uiSchema:n_(t),embedFormOptions:{...t.schema.embedFormOptions}}}var xu={exports:{}};/*!
54
+ `)};Gt.prototype.renderPartial=function(t,r,i,a){if(i){var n=this.getConfigTags(a),s=id(i)?i(t[1]):i[t[1]];if(s!=null){var o=t[6],l=t[5],u=t[4],c=s;l==0&&u&&(c=this.indentPartial(s,u,o));var f=this.parse(c,n);return this.renderTokens(f,r,i,c,a)}}};Gt.prototype.unescapedValue=function(t,r){var i=r.lookup(t[1]);if(i!=null)return i};Gt.prototype.escapedValue=function(t,r,i){var a=this.getConfigEscape(i)||pr.escape,n=r.lookup(t[1]);if(n!=null)return typeof n=="number"&&a===pr.escape?String(n):a(n)};Gt.prototype.rawValue=function(t){return t[1]};Gt.prototype.getConfigTags=function(t){return la(t)?t:t&&typeof t=="object"?t.tags:void 0};Gt.prototype.getConfigEscape=function(t){if(t&&typeof t=="object"&&!la(t))return t.escape};var pr={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){Ya.templateCache=e},get templateCache(){return Ya.templateCache}},Ya=new Gt;pr.clearCache=function(){return Ya.clearCache()};pr.parse=function(t,r){return Ya.parse(t,r)};pr.render=function(t,r,i,a){if(typeof t!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+JO(t)+'" was given as the first argument for mustache#render(template, view, partials)');return Ya.render(t,r,i,a)};pr.escape=r_;pr.Scanner=cs;pr.Context=Qi;pr.Writer=Gt;const Au=e=>e&&typeof e=="object"&&!Array.isArray(e),rf=(e,...t)=>{if(!t.length)return e;const r=t.shift();if(Au(e)&&Au(r))for(const i in r)Au(r[i])?(e[i]||Object.assign(e,{[i]:{}}),rf(e[i],r[i])):Object.assign(e,{[i]:r[i]});return rf(e,...t)},c_=(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()},f_=([e,t],r,i)=>{const{ui:a,uiSchema:n,["ui:schema"]:s}=t;return{...r===0&&i.focusOnFirst&&{"ui:autofocus":!0},...i.isSensitive&&{"ui:widget":"password"},...s,...n,...a,...t.properties&&{...Zo(t.properties,i.globalUiSchema)},...t.oneOf&&rf({},...t.oneOf.map(o=>Zo(o.properties,i.globalUiSchema))),...i.globalUiSchema[e]}},Zo=(e,t,r=!1)=>Object.entries(e??{}).reduce((i,[a,n],s)=>{const o=f_([a,n],s,{focusOnFirst:r,isSensitive:n.isSensitive,globalUiSchema:t});return{...i,[a]:{...o,"ui:classNames":c_(o,n)}}},{}),nf=(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=>nf(n,t)):r[i]=nf(a,t):r[i]=a}return r},d_=e=>{const{embedFormOptions:t,ui:r,uiSchema:i,...a}=e;return nf(a,["ui","isSensitive","isTransient"])},m_=e=>{const t={...e.schema.ui,...e.schema.uiSchema};let r={};if(e.schema.dependencies){const i=Zo(e.schema.dependencies,t);for(const a in i){const n=i[a];delete n["ui:classNames"],r={...r,...n}}}return{...t,...r,...Zo(e.schema.properties,t)}},Tb=e=>(Object.entries(e).forEach(([t,r])=>{r&&typeof r=="object"&&Tb(r),r&&typeof r=="object"&&!Object.keys(r).length&&delete e[t]}),e),p_=(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(Tb(JSON.parse(i))):i},h_=(e,t)=>{const r=(t==null?void 0:t.variables)??{};return JSON.parse(pr.render(p_(e,r),r))};function jb(e){const t=h_(e,e.schema.embedFormOptions);return{schema:d_(t.schema),uiSchema:m_(t),embedFormOptions:{...t.schema.embedFormOptions}}}var Ou={exports:{}};/*!
55
55
  Copyright (c) 2018 Jed Watson.
56
56
  Licensed under the MIT License (MIT), see
57
57
  http://jedwatson.github.io/classnames
58
- */var fp;function s_(){return fp||(fp=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n="",s=0;s<arguments.length;s++){var o=arguments[s];o&&(n=a(n,i(o)))}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 s="";for(var o in n)t.call(n,o)&&n[o]&&(s=a(s,o));return s}function a(n,s){return s?n?n+" "+s:n+s:n}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(xu)),xu.exports}var o_=s_();const tn=Wr(o_);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 l_(e){return e.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),be(e.additionalItems)}function _b(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 dp(e){if(e==="")return;if(e===null)return null;const t=_b(),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 Sn=Symbol("__additional_property"),qi="additionalProperties",Hr="allOf",Le="anyOf",Kt="const",li="default",ed="dependencies",u_="enum",Nt="__errors",nt="$id",td="if",Zi="items",c_="_$junk_option_schema_id$_",Ro="$name",Ae="oneOf",Qc="patternProperties",ze="properties",Su="readonly",Pb="required",Jo="submitButtonOptions",at="$ref",No=Symbol("__rjsf_ref"),rd=Symbol("__rjsf_ref_cycle"),Ta="$schema",Ib="root",Tb="_",f_=["discriminator","propertyName"],mp="formContext",d_="layoutGridLookupMap",jb="__rjsf",nd=`${jb}_additionalProperties`,Rb=`${jb}_rootSchema`,m_="ui:field",id="ui:widget",Cn="ui:options",ef="ui:globalOptions",p_="ui:definitions",h_="https://json-schema.org/draft/2019-09/schema",Fo="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===id&&be(a)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):i===Cn&&be(a)?{...r,...a}:{...r,[i.substring(3)]:a}},{...t}):{...t}}function Nb(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 Fb=typeof global=="object"&&global&&global.Object===Object&&global,g_=typeof self=="object"&&self&&self.Object===Object&&self,Yr=Fb||g_||Function("return this")(),hr=Yr.Symbol,Db=Object.prototype,y_=Db.hasOwnProperty,v_=Db.toString,xa=hr?hr.toStringTag:void 0;function b_(e){var t=y_.call(e,xa),r=e[xa];try{e[xa]=void 0;var i=!0}catch{}var a=v_.call(e);return i&&(t?e[xa]=r:delete e[xa]),a}var k_=Object.prototype,w_=k_.toString;function x_(e){return w_.call(e)}var S_="[object Null]",C_="[object Undefined]",pp=hr?hr.toStringTag:void 0;function on(e){return e==null?e===void 0?C_:S_:pp&&pp in Object(e)?b_(e):x_(e)}function Mb(e,t){return function(r){return e(t(r))}}var vl=Mb(Object.getPrototypeOf,Object);function gr(e){return e!=null&&typeof e=="object"}var E_="[object Object]",A_=Function.prototype,O_=Object.prototype,Lb=A_.toString,__=O_.hasOwnProperty,P_=Lb.call(Object);function jn(e){if(!gr(e)||on(e)!=E_)return!1;var t=vl(e);if(t===null)return!0;var r=__.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Lb.call(r)==P_}function tf(e){const t={[Nt]:[],addError(r){this[Nt].push(r)}};if(Array.isArray(e))return e.reduce((r,i,a)=>({...r,[a]:tf(i)}),t);if(jn(e)){const r=e;return Object.keys(r).reduce((i,a)=>({...i,[a]:tf(r[a])}),t)}return t}var jt=Array.isArray,I_="[object Symbol]";function ls(e){return typeof e=="symbol"||gr(e)&&on(e)==I_}var T_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,j_=/^\w*$/;function ad(e,t){if(jt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ls(e)?!0:j_.test(e)||!T_.test(e)||t!=null&&e in Object(t)}function Ue(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var R_="[object AsyncFunction]",N_="[object Function]",F_="[object GeneratorFunction]",D_="[object Proxy]";function us(e){if(!Ue(e))return!1;var t=on(e);return t==N_||t==F_||t==R_||t==D_}var Cu=Yr["__core-js_shared__"],hp=(function(){var e=/[^.]+$/.exec(Cu&&Cu.keys&&Cu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function M_(e){return!!hp&&hp in e}var L_=Function.prototype,q_=L_.toString;function bi(e){if(e!=null){try{return q_.call(e)}catch{}try{return e+""}catch{}}return""}var $_=/[\\^$.*+?()[\]{}|]/g,z_=/^\[object .+?Constructor\]$/,U_=Function.prototype,B_=Object.prototype,V_=U_.toString,H_=B_.hasOwnProperty,K_=RegExp("^"+V_.call(H_).replace($_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function W_(e){if(!Ue(e)||M_(e))return!1;var t=us(e)?K_:z_;return t.test(bi(e))}function G_(e,t){return e==null?void 0:e[t]}function ki(e,t){var r=G_(e,t);return W_(r)?r:void 0}var Ga=ki(Object,"create");function J_(){this.__data__=Ga?Ga(null):{},this.size=0}function Y_(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var X_="__lodash_hash_undefined__",Z_=Object.prototype,Q_=Z_.hasOwnProperty;function eP(e){var t=this.__data__;if(Ga){var r=t[e];return r===X_?void 0:r}return Q_.call(t,e)?t[e]:void 0}var tP=Object.prototype,rP=tP.hasOwnProperty;function nP(e){var t=this.__data__;return Ga?t[e]!==void 0:rP.call(t,e)}var iP="__lodash_hash_undefined__";function aP(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ga&&t===void 0?iP:t,this}function ui(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])}}ui.prototype.clear=J_;ui.prototype.delete=Y_;ui.prototype.get=eP;ui.prototype.has=nP;ui.prototype.set=aP;function sP(){this.__data__=[],this.size=0}function cs(e,t){return e===t||e!==e&&t!==t}function bl(e,t){for(var r=e.length;r--;)if(cs(e[r][0],t))return r;return-1}var oP=Array.prototype,lP=oP.splice;function uP(e){var t=this.__data__,r=bl(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():lP.call(t,r,1),--this.size,!0}function cP(e){var t=this.__data__,r=bl(t,e);return r<0?void 0:t[r][1]}function fP(e){return bl(this.__data__,e)>-1}function dP(e,t){var r=this.__data__,i=bl(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function ln(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])}}ln.prototype.clear=sP;ln.prototype.delete=uP;ln.prototype.get=cP;ln.prototype.has=fP;ln.prototype.set=dP;var Ja=ki(Yr,"Map");function mP(){this.size=0,this.__data__={hash:new ui,map:new(Ja||ln),string:new ui}}function pP(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function kl(e,t){var r=e.__data__;return pP(t)?r[typeof t=="string"?"string":"hash"]:r.map}function hP(e){var t=kl(this,e).delete(e);return this.size-=t?1:0,t}function gP(e){return kl(this,e).get(e)}function yP(e){return kl(this,e).has(e)}function vP(e,t){var r=kl(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function un(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])}}un.prototype.clear=mP;un.prototype.delete=hP;un.prototype.get=gP;un.prototype.has=yP;un.prototype.set=vP;var bP="Expected a function";function sd(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(bP);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 s=e.apply(this,i);return r.cache=n.set(a,s)||n,s};return r.cache=new(sd.Cache||un),r}sd.Cache=un;var kP=500;function wP(e){var t=sd(e,function(i){return r.size===kP&&r.clear(),i}),r=t.cache;return t}var xP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,SP=/\\(\\)?/g,qb=wP(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(xP,function(r,i,a,n){t.push(a?n.replace(SP,"$1"):i||r)}),t});function oa(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 gp=hr?hr.prototype:void 0,yp=gp?gp.toString:void 0;function $b(e){if(typeof e=="string")return e;if(jt(e))return oa(e,$b)+"";if(ls(e))return yp?yp.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function od(e){return e==null?"":$b(e)}function la(e,t){return jt(e)?e:ad(e,t)?[e]:qb(od(e))}function Rn(e){if(typeof e=="string"||ls(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function wl(e,t){t=la(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[Rn(t[r++])];return r&&r==i?e:void 0}function ae(e,t,r){var i=e==null?void 0:wl(e,t);return i===void 0?r:i}const{getOwnPropertyNames:vp,getOwnPropertySymbols:CP}=Object,{hasOwnProperty:EP}=Object.prototype;function Eu(e,t){return function(i,a,n){return e(i,a,n)&&t(i,a,n)}}function Fs(e){return function(r,i,a){if(!r||!i||typeof r!="object"||typeof i!="object")return e(r,i,a);const{cache:n}=a,s=n.get(r),o=n.get(i);if(s&&o)return s===i&&o===r;n.set(r,i),n.set(i,r);const l=e(r,i,a);return n.delete(r),n.delete(i),l}}function bp(e){const t=CP(e);return t.length?vp(e).concat(t):vp(e)}const AP=Object.hasOwn||((e,t)=>EP.call(e,t)),OP="__v",_P="__o",PP="_owner",{getOwnPropertyDescriptor:kp,keys:wp}=Object,wi=Object.is||function(t,r){return t===r?t!==0||1/t===1/r:t!==t&&r!==r};function IP(e,t){return e===t}function TP(e,t){return e.byteLength===t.byteLength&&Yo(new Uint8Array(e),new Uint8Array(t))}function jP(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 RP(e,t){return e.byteLength===t.byteLength&&Yo(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function NP(e,t){return wi(e.getTime(),t.getTime())}function FP(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function xp(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 s,o,l=0;for(;(s=n.next())&&!s.done;){const u=t.entries();let c=0,f=0;for(;(o=u.next())&&!o.done;){if(a[f]){f++;continue}const m=s.value,d=o.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 DP(e,t,r){const i=wp(e);let a=i.length;if(wp(t).length!==a)return!1;for(;a-- >0;)if(!zb(e,t,r,i[a]))return!1;return!0}function Sa(e,t,r){const i=bp(e);let a=i.length;if(bp(t).length!==a)return!1;let n,s,o;for(;a-- >0;)if(n=i[a],!zb(e,t,r,n)||(s=kp(e,n),o=kp(t,n),(s||o)&&(!s||!o||s.configurable!==o.configurable||s.enumerable!==o.enumerable||s.writable!==o.writable)))return!1;return!0}function MP(e,t){return wi(e.valueOf(),t.valueOf())}function LP(e,t){return e.source===t.source&&e.flags===t.flags}function Sp(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 s,o;for(;(s=n.next())&&!s.done;){const l=t.values();let u=0,c=0;for(;(o=l.next())&&!o.done;){if(!a[c]&&r.equals(s.value,o.value,s.value,o.value,e,t,r)){u=a[c]=1;break}c++}if(!u)return!1}return!0}function Yo(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 qP(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 zb(e,t,r,i){return(i===PP||i===_P||i===OP)&&(e.$$typeof||t.$$typeof)?!0:AP(t,i)&&r.equals(e[i],t[i],i,i,e,t,r)}const $P=Object.prototype.toString;function zP(e){const t=HP(e),{areArraysEqual:r,areDatesEqual:i,areFunctionsEqual:a,areMapsEqual:n,areNumbersEqual:s,areObjectsEqual:o,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"?s(m,d,p):k==="function"?a(m,d,p):!1;const v=m.constructor;if(v!==d.constructor)return!1;if(v===Object)return o(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=$P.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 UP({circular:e,createCustomConfig:t,strict:r}){let i={areArrayBuffersEqual:TP,areArraysEqual:r?Sa:jP,areDataViewsEqual:RP,areDatesEqual:NP,areErrorsEqual:FP,areFunctionsEqual:IP,areMapsEqual:r?Eu(xp,Sa):xp,areNumbersEqual:wi,areObjectsEqual:r?Sa:DP,arePrimitiveWrappersEqual:MP,areRegExpsEqual:LP,areSetsEqual:r?Eu(Sp,Sa):Sp,areTypedArraysEqual:r?Eu(Yo,Sa):Yo,areUrlsEqual:qP,getUnsupportedCustomComparator:void 0};if(t&&(i=Object.assign({},i,t(i))),e){const a=Fs(i.areArraysEqual),n=Fs(i.areMapsEqual),s=Fs(i.areObjectsEqual),o=Fs(i.areSetsEqual);i=Object.assign({},i,{areArraysEqual:a,areMapsEqual:n,areObjectsEqual:s,areSetsEqual:o})}return i}function BP(e){return function(t,r,i,a,n,s,o){return e(t,r,o)}}function VP({circular:e,comparator:t,createState:r,equals:i,strict:a}){if(r)return function(o,l){const{cache:u=e?new WeakMap:void 0,meta:c}=r();return t(o,l,{cache:u,equals:i,meta:c,strict:a})};if(e)return function(o,l){return t(o,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(o,l){return t(o,l,n)}}function HP({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:i,areErrorsEqual:a,areFunctionsEqual:n,areMapsEqual:s,areNumbersEqual:o,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]":o,"[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]":s,"[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}}cn();cn({strict:!0});cn({circular:!0});cn({circular:!0,strict:!0});cn({createInternalComparator:()=>wi});cn({strict:!0,createInternalComparator:()=>wi});cn({circular:!0,createInternalComparator:()=>wi});cn({circular:!0,createInternalComparator:()=>wi,strict:!0});function cn(e={}){const{circular:t=!1,createInternalComparator:r,createState:i,strict:a=!1}=e,n=UP(e),s=zP(n),o=r?r(s):BP(s);return VP({circular:t,comparator:s,createState:i,equals:o,strict:a})}const $e=cn({circular:!0,createCustomConfig:()=>({areFunctionsEqual(e,t){return typeof t=="function"}})});var Ca={exports:{}},Au,Cp;function Ub(){if(Cp)return Au;Cp=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 s(x){let E="",O=0,R=0;for(R=0;R<x.length;R++)if(O=x[R].charCodeAt(0),O!==48){if(!(O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102))return"";E+=x[R];break}for(R+=1;R<x.length;R++){if(O=x[R].charCodeAt(0),!(O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102))return"";E+=x[R]}return E}const o=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function l(x){return x.length=0,!0}function u(x,E,O){if(x.length){const R=s(x);if(R!=="")E.push(R);else return O.error=!0,!1;x.length=0}return!0}function c(x){let E=0;const O={error:!1,address:"",zone:""},R=[],T=[];let D=!1,L=!1,J=u;for(let X=0;X<x.length;X++){const Z=x[X];if(!(Z==="["||Z==="]"))if(Z===":"){if(D===!0&&(L=!0),!J(T,R,O))break;if(++E>7){O.error=!0;break}X>0&&x[X-1]===":"&&(D=!0),R.push(":");continue}else if(Z==="%"){if(!J(T,R,O))break;J=l}else{T.push(Z);continue}}return T.length&&(J===l?O.zone=T.join(""):L?R.push(T.join("")):R.push(s(T))),O.address=R.join(""),O}function f(x){if(m(x,":")<2)return{host:x,isIPV6:!1};const E=c(x);if(E.error)return{host:x,isIPV6:!1};{let O=E.address,R=E.address;return E.zone&&(O+="%"+E.zone,R+="%25"+E.zone),{host:O,isIPV6:!0,escapedHost:R}}}function m(x,E){let O=0;for(let R=0;R<x.length;R++)x[R]===E&&O++;return O}function d(x){let E=x;const O=[];let R=-1,T=0;for(;T=E.length;){if(T===1){if(E===".")break;if(E==="/"){O.push("/");break}else{O.push(E);break}}else if(T===2){if(E[0]==="."){if(E[1]===".")break;if(E[1]==="/"){E=E.slice(2);continue}}else if(E[0]==="/"&&E[1]==="."){O.push("/");break}}else if(T===3&&E==="/.."){O.length!==0&&O.pop(),O.push("/");break}if(E[0]==="."){if(E[1]==="."){if(E[2]==="/"){E=E.slice(3);continue}}else if(E[1]==="/"){E=E.slice(2);continue}}else if(E[0]==="/"&&E[1]==="."){if(E[2]==="/"){E=E.slice(2);continue}else if(E[2]==="."&&E[3]==="/"){E=E.slice(3),O.length!==0&&O.pop();continue}}if((R=E.indexOf("/",1))===-1){O.push(E);break}else O.push(E.slice(0,R)),E=E.slice(R)}return O.join("")}const p={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},k=/[@/?#:]/g,v=/[@/?#]/g;function g(x,E){const O=E?v:k;return O.lastIndex=0,x.replace(O,R=>p[R])}function b(x,E=!1){if(x.indexOf("%")===-1)return x;let O="";for(let R=0;R<x.length;R++){if(x[R]==="%"&&R+2<x.length){const T=x.slice(R+1,R+3);if(r(T)){const D=T.toUpperCase(),L=String.fromCharCode(parseInt(D,16));E&&i(L)?O+=L:O+="%"+D,R+=2;continue}}O+=x[R]}return O}const w=new Array(256);{const x="0123456789ABCDEF";for(let E=0;E<256;E++)w[E]="%"+x[E>>4]+x[E&15]}function C(x){return x>=48&&x<=57||x>=65&&x<=90||x>=97&&x<=122||x===42||x===43||x===45||x===46||x===47||x===64||x===95}function h(x){return x<2048?w[192|x>>6]+w[128|x&63]:x<65536?w[224|x>>12]+w[128|x>>6&63]+w[128|x&63]:w[240|x>>18]+w[128|x>>12&63]+w[128|x>>6&63]+w[128|x&63]}function y(x){let E="";for(let O=0;O<x.length;O++){const R=x[O];if(R==="%"&&O+2<x.length){const T=x.slice(O+1,O+3);if(r(T)){const D=T.toUpperCase(),L=String.fromCharCode(parseInt(D,16));L!=="."&&i(L)?E+=L:E+="%"+D,O+=2;continue}}if(a(R))E+=R;else{const T=x.charCodeAt(O);if(T<128)E+=C(T)?R:w[T];else if(T<55296||T>57343)E+=h(T);else if(T<=56319&&O+1<x.length){const D=x.charCodeAt(O+1);D>=56320&&D<=57343?(E+=h(65536+(T-55296<<10)+(D-56320)),O++):E+=h(65533)}else E+=h(65533)}}return E}function S(x){let E="";for(let O=0;O<x.length;O++){const R=x[O];if(R==="%"&&O+2<x.length){const T=x.slice(O+1,O+3);if(r(T)){const D=T.toUpperCase(),L=String.fromCharCode(parseInt(D,16));i(L)?E+=L:E+="%"+D,O+=2;continue}}if(n(R))E+=R;else{const T=x.charCodeAt(O);if(T<128)E+=C(T)?R:w[T];else if(T<55296||T>57343)E+=h(T);else if(T<=56319&&O+1<x.length){const D=x.charCodeAt(O+1);D>=56320&&D<=57343?(E+=h(65536+(T-55296<<10)+(D-56320)),O++):E+=h(65533)}else E+=h(65533)}}return E}function A(x){let E="";for(let O=0;O<x.length;O++){const R=x[O];if(R==="%"&&O+2<x.length){const D=x.slice(O+1,O+3);if(r(D)){E+="%"+D.toUpperCase(),O+=2;continue}}const T=x.charCodeAt(O);if(T<128)E+=C(T)?R:w[T];else if(T<55296||T>57343)E+=h(T);else if(T<=56319&&O+1<x.length){const D=x.charCodeAt(O+1);D>=56320&&D<=57343?(E+=h(65536+(T-55296<<10)+(D-56320)),O++):E+=h(65533)}else E+=h(65533)}return E}function _(x){const E=[];if(x.userinfo!==void 0&&(E.push(x.userinfo),E.push("@")),x.host!==void 0){let O=unescape(x.host);if(!t(O)){const R=f(O);R.isIPV6===!0?O=`[${R.escapedHost}]`:O=g(O,!1)}E.push(O)}return(typeof x.port=="number"||typeof x.port=="string")&&(E.push(":"),E.push(String(x.port))),E.length?E.join(""):void 0}return Au={nonSimpleDomain:o,recomposeAuthority:_,reescapeHostDelimiters:g,normalizePercentEncoding:b,normalizePathEncoding:y,normalizeQueryFragmentEncoding:S,escapePreservingEscapes:A,removeDotSegments:d,isIPv4:t,isUUID:e,normalizeIPv6:f,stringArrayToHexStripped:s},Au}var Ou,Ep;function KP(){if(Ep)return Ou;Ep=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 s(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 o(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,S]=h.resourceName.split("?");h.path=y&&y!=="/"?y:void 0,h.query=S,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 S=h.path.match(t);if(S){const A=y.scheme||h.scheme||"urn";h.nid=S[1].toLowerCase(),h.nss=S[2];const _=`${A}:${y.nid||h.nid}`,x=C(_);h.path=void 0,x&&(h=x.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 S=y.scheme||h.scheme||"urn",A=h.nid.toLowerCase(),_=`${S}:${y.nid||A}`,x=C(_);x&&(h=x.serialize(h,y));const E=h,O=h.nss;return E.path=`${A||y.nid}:${O}`,y.skipEscape=!0,E}function f(h,y){const S=h;return S.uuid=S.nss,S.nss=void 0,!y.tolerant&&(!S.uuid||!e(S.uuid))&&(S.error=S.error||"UUID is not valid."),S}function m(h){const y=h;return y.nss=(h.uuid||"").toLowerCase(),y}const d={scheme:"http",domainHost:!0,parse:n,serialize:s},p={scheme:"https",domainHost:d.domainHost,parse:n,serialize:s},k={scheme:"ws",domainHost:!0,parse:o,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 C(h){return h&&(w[h]||w[h.toLowerCase()])||void 0}return Ou={wsIsSecure:a,SCHEMES:w,isValidSchemeName:i,getSchemeHandler:C},Ou}var Ap;function WP(){if(Ap)return Ca.exports;Ap=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:i,normalizePathEncoding:a,normalizeQueryFragmentEncoding:n,escapePreservingEscapes:s,reescapeHostDelimiters:o,isIPv4:l,nonSimpleDomain:u}=Ub(),{SCHEMES:c,getSchemeHandler:f}=KP();function m(E,O){return typeof E=="string"?E=S(E,O):typeof E=="object"&&(E=y(v(E,O),O)),E}function d(E,O,R){const T=R?Object.assign({scheme:"null"},R):{scheme:"null"},{parsed:D,malformedAuthorityOrPort:L}=h(E,T),{parsed:J,malformedAuthorityOrPort:X}=h(O,T);if(L||X)throw new Error(D.error||J.error||"URI is malformed.");const Z=p(D,J,T,!0);return T.skipEscape=!0,v(Z,T)}function p(E,O,R,T){const D={};return T||(E=y(v(E,R),R),O=y(v(O,R),R)),R=R||{},!R.tolerant&&O.scheme?(D.scheme=O.scheme,D.userinfo=O.userinfo,D.host=O.host,D.port=O.port,D.path=t(O.path||""),D.query=O.query):(O.userinfo!==void 0||O.host!==void 0||O.port!==void 0?(D.userinfo=O.userinfo,D.host=O.host,D.port=O.port,D.path=t(O.path||""),D.query=O.query):(O.path?(O.path[0]==="/"?D.path=t(O.path):((E.userinfo!==void 0||E.host!==void 0||E.port!==void 0)&&!E.path?D.path="/"+O.path:E.path?D.path=E.path.slice(0,E.path.lastIndexOf("/")+1)+O.path:D.path=O.path,D.path=t(D.path)),D.query=O.query):(D.path=E.path,O.query!==void 0?D.query=O.query:D.query=E.query),D.userinfo=E.userinfo,D.host=E.host,D.port=E.port),D.scheme=E.scheme),D.fragment=O.fragment,D}function k(E,O,R){const T=_(E,R),D=_(O,R);return T!==void 0&&D!==void 0&&T.toLowerCase()===D.toLowerCase()}function v(E,O){const R={host:E.host,scheme:E.scheme,userinfo:E.userinfo,port:E.port,path:E.path,query:E.query,nid:E.nid,nss:E.nss,uuid:E.uuid,fragment:E.fragment,reference:E.reference,resourceName:E.resourceName,secure:E.secure,error:""},T=Object.assign({},O),D=[],L=f(T.scheme||R.scheme);L&&L.serialize&&L.serialize(R,T),R.path!==void 0&&(T.skipEscape?R.path=i(R.path):(R.path=s(R.path),R.scheme!==void 0&&(R.path=R.path.split("%3A").join(":")))),T.reference!=="suffix"&&R.scheme&&D.push(R.scheme,":");const J=r(R);if(J!==void 0&&(T.reference!=="suffix"&&D.push("//"),D.push(J),R.path&&R.path[0]!=="/"&&D.push("/")),R.path!==void 0){let X=R.path;!T.absolutePath&&(!L||!L.absolutePath)&&(X=t(X)),J===void 0&&X[0]==="/"&&X[1]==="/"&&(X="/%2F"+X.slice(2)),D.push(X)}return R.query!==void 0&&D.push("?",R.query),R.fragment!==void 0&&D.push("#",R.fragment),D.join("")}const g=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,b=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,w=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function C(E,O){if(O[2]!==void 0&&E.path&&E.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof E.port=="number"&&(E.port<0||E.port>65535))return"URI port is malformed."}function h(E,O){const R=Object.assign({},O),T={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let D=!1,L=!1;R.reference==="suffix"&&(R.scheme?E=R.scheme+":"+E:E="//"+E);const J=E.match(b);J!==null&&J[1].indexOf("\\")!==-1&&(T.error="URI authority must not contain a literal backslash.",D=!0);const X=E.match(w);if(X!==null){const P=X[1],F=P.replace(/[\t\n\r]/g,"");F.length>=2&&(F.slice(0,2)!=="//"?(T.error=T.error||"URI authority must not contain a literal backslash.",D=!0):P.length!==F.length&&(T.error=T.error||"URI authority introducer must not contain whitespace.",D=!0))}const Z=E.match(g);if(Z){T.scheme=Z[1]===void 0?void 0:Z[1].toLowerCase(),T.userinfo=Z[3],T.host=Z[4],T.port=parseInt(Z[5],10),T.path=Z[6]||"",T.query=Z[7],T.fragment=Z[8],isNaN(T.port)&&(T.port=Z[5]);const P=C(T,Z);if(P!==void 0&&(T.error=T.error||P,D=!0),T.host)if(l(T.host)===!1){const I=e(T.host);T.host=I.host.toLowerCase(),L=I.isIPV6}else L=!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",R.reference&&R.reference!=="suffix"&&R.reference!==T.reference&&(T.error=T.error||"URI is not a "+R.reference+" reference.");const F=f(R.scheme||T.scheme);if(!R.unicodeSupport&&(!F||!F.unicodeSupport)&&T.host&&(R.domainHost||F&&F.domainHost)&&L===!1&&u(T.host))try{T.host=new URL("http://"+T.host).hostname}catch(z){T.error=T.error||"Host's domain name can not be converted to ASCII: "+z}(!F||F&&!F.skipNormalize)&&(E.indexOf("%")!==-1&&(T.scheme!==void 0&&(T.scheme=unescape(T.scheme)),T.host!==void 0&&(T.host=o(unescape(T.host),L))),T.path&&(T.path=a(T.path)),T.query&&(T.query=n(T.query)),T.fragment&&(T.fragment=n(T.fragment))),F&&F.parse&&F.parse(T,R)}else T.error=T.error||"URI can not be parsed.";return{parsed:T,malformedAuthorityOrPort:D}}function y(E,O){return h(E,O).parsed}function S(E,O){return A(E,O).normalized}function A(E,O){const{parsed:R,malformedAuthorityOrPort:T}=h(E,O);return{normalized:T?E:v(R,O),malformedAuthorityOrPort:T}}function _(E,O){if(typeof E=="string"){const{normalized:R,malformedAuthorityOrPort:T}=A(E,O);return T?void 0:R}if(typeof E=="object")return v(E,O)}const x={SCHEMES:c,normalize:m,resolve:d,resolveComponent:p,equal:k,serialize:v,parse:y};return Ca.exports=x,Ca.exports.default=x,Ca.exports.fastUri=x,Ca.exports}var GP=WP();const ld=Wr(GP);var Ea={},Op;function JP(){if(Op)return Ea;Op=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 s(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 o(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 s(f,c)},set:function(f,m){return o(f,c,m)}}}return Ea.get=s,Ea.set=o,Ea.compile=l,Ea}var YP=JP();const _u=Wr(YP);var XP=Object.prototype;function xl(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||XP;return e===r}var ZP=Mb(Object.keys,Object),QP=Object.prototype,eI=QP.hasOwnProperty;function Bb(e){if(!xl(e))return ZP(e);var t=[];for(var r in Object(e))eI.call(e,r)&&r!="constructor"&&t.push(r);return t}var rf=ki(Yr,"DataView"),nf=ki(Yr,"Promise"),Hi=ki(Yr,"Set"),af=ki(Yr,"WeakMap"),_p="[object Map]",tI="[object Object]",Pp="[object Promise]",Ip="[object Set]",Tp="[object WeakMap]",jp="[object DataView]",rI=bi(rf),nI=bi(Ja),iI=bi(nf),aI=bi(Hi),sI=bi(af),cr=on;(rf&&cr(new rf(new ArrayBuffer(1)))!=jp||Ja&&cr(new Ja)!=_p||nf&&cr(nf.resolve())!=Pp||Hi&&cr(new Hi)!=Ip||af&&cr(new af)!=Tp)&&(cr=function(e){var t=on(e),r=t==tI?e.constructor:void 0,i=r?bi(r):"";if(i)switch(i){case rI:return jp;case nI:return _p;case iI:return Pp;case aI:return Ip;case sI:return Tp}return t});var oI="[object Arguments]";function Rp(e){return gr(e)&&on(e)==oI}var Vb=Object.prototype,lI=Vb.hasOwnProperty,uI=Vb.propertyIsEnumerable,Qi=Rp((function(){return arguments})())?Rp:function(e){return gr(e)&&lI.call(e,"callee")&&!uI.call(e,"callee")},cI=9007199254740991;function ud(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=cI}function xi(e){return e!=null&&ud(e.length)&&!us(e)}function fI(){return!1}var Hb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Np=Hb&&typeof module=="object"&&module&&!module.nodeType&&module,dI=Np&&Np.exports===Hb,Fp=dI?Yr.Buffer:void 0,mI=Fp?Fp.isBuffer:void 0,ci=mI||fI,pI="[object Arguments]",hI="[object Array]",gI="[object Boolean]",yI="[object Date]",vI="[object Error]",bI="[object Function]",kI="[object Map]",wI="[object Number]",xI="[object Object]",SI="[object RegExp]",CI="[object Set]",EI="[object String]",AI="[object WeakMap]",OI="[object ArrayBuffer]",_I="[object DataView]",PI="[object Float32Array]",II="[object Float64Array]",TI="[object Int8Array]",jI="[object Int16Array]",RI="[object Int32Array]",NI="[object Uint8Array]",FI="[object Uint8ClampedArray]",DI="[object Uint16Array]",MI="[object Uint32Array]",ht={};ht[PI]=ht[II]=ht[TI]=ht[jI]=ht[RI]=ht[NI]=ht[FI]=ht[DI]=ht[MI]=!0;ht[pI]=ht[hI]=ht[OI]=ht[gI]=ht[_I]=ht[yI]=ht[vI]=ht[bI]=ht[kI]=ht[wI]=ht[xI]=ht[SI]=ht[CI]=ht[EI]=ht[AI]=!1;function LI(e){return gr(e)&&ud(e.length)&&!!ht[on(e)]}function cd(e){return function(t){return e(t)}}var Kb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$a=Kb&&typeof module=="object"&&module&&!module.nodeType&&module,qI=$a&&$a.exports===Kb,Pu=qI&&Fb.process,ea=(function(){try{var e=$a&&$a.require&&$a.require("util").types;return e||Pu&&Pu.binding&&Pu.binding("util")}catch{}})(),Dp=ea&&ea.isTypedArray,fs=Dp?cd(Dp):LI,$I="[object Map]",zI="[object Set]",UI=Object.prototype,BI=UI.hasOwnProperty;function wt(e){if(e==null)return!0;if(xi(e)&&(jt(e)||typeof e=="string"||typeof e.splice=="function"||ci(e)||fs(e)||Qi(e)))return!e.length;var t=cr(e);if(t==$I||t==zI)return!e.size;if(xl(e))return!Bb(e).length;for(var r in e)if(BI.call(e,r))return!1;return!0}function VI(){this.__data__=new ln,this.size=0}function HI(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function KI(e){return this.__data__.get(e)}function WI(e){return this.__data__.has(e)}var GI=200;function JI(e,t){var r=this.__data__;if(r instanceof ln){var i=r.__data__;if(!Ja||i.length<GI-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new un(i)}return r.set(e,t),this.size=r.size,this}function Or(e){var t=this.__data__=new ln(e);this.size=t.size}Or.prototype.clear=VI;Or.prototype.delete=HI;Or.prototype.get=KI;Or.prototype.has=WI;Or.prototype.set=JI;function fd(e,t){for(var r=-1,i=e==null?0:e.length;++r<i&&t(e[r],r,e)!==!1;);return e}var Xo=(function(){try{var e=ki(Object,"defineProperty");return e({},"",{}),e}catch{}})();function dd(e,t,r){t=="__proto__"&&Xo?Xo(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var YI=Object.prototype,XI=YI.hasOwnProperty;function md(e,t,r){var i=e[t];(!(XI.call(e,t)&&cs(i,r))||r===void 0&&!(t in e))&&dd(e,t,r)}function ua(e,t,r,i){var a=!r;r||(r={});for(var n=-1,s=t.length;++n<s;){var o=t[n],l=void 0;l===void 0&&(l=e[o]),a?dd(r,o,l):md(r,o,l)}return r}function Wb(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var ZI=9007199254740991,QI=/^(?:0|[1-9]\d*)$/;function Sl(e,t){var r=typeof e;return t=t??ZI,!!t&&(r=="number"||r!="symbol"&&QI.test(e))&&e>-1&&e%1==0&&e<t}var eT=Object.prototype,tT=eT.hasOwnProperty;function Gb(e,t){var r=jt(e),i=!r&&Qi(e),a=!r&&!i&&ci(e),n=!r&&!i&&!a&&fs(e),s=r||i||a||n,o=s?Wb(e.length,String):[],l=o.length;for(var u in e)(t||tT.call(e,u))&&!(s&&(u=="length"||a&&(u=="offset"||u=="parent")||n&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Sl(u,l)))&&o.push(u);return o}function Cr(e){return xi(e)?Gb(e):Bb(e)}function rT(e,t){return e&&ua(t,Cr(t),e)}function nT(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var iT=Object.prototype,aT=iT.hasOwnProperty;function sT(e){if(!Ue(e))return nT(e);var t=xl(e),r=[];for(var i in e)i=="constructor"&&(t||!aT.call(e,i))||r.push(i);return r}function ds(e){return xi(e)?Gb(e,!0):sT(e)}function oT(e,t){return e&&ua(t,ds(t),e)}var Jb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Mp=Jb&&typeof module=="object"&&module&&!module.nodeType&&module,lT=Mp&&Mp.exports===Jb,Lp=lT?Yr.Buffer:void 0,qp=Lp?Lp.allocUnsafe:void 0;function Yb(e,t){if(t)return e.slice();var r=e.length,i=qp?qp(r):new e.constructor(r);return e.copy(i),i}function pd(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}function uT(e,t){for(var r=-1,i=e==null?0:e.length,a=0,n=[];++r<i;){var s=e[r];t(s,r,e)&&(n[a++]=s)}return n}function Xb(){return[]}var cT=Object.prototype,fT=cT.propertyIsEnumerable,$p=Object.getOwnPropertySymbols,hd=$p?function(e){return e==null?[]:(e=Object(e),uT($p(e),function(t){return fT.call(e,t)}))}:Xb;function dT(e,t){return ua(e,hd(e),t)}function gd(e,t){for(var r=-1,i=t.length,a=e.length;++r<i;)e[a+r]=t[r];return e}var mT=Object.getOwnPropertySymbols,Zb=mT?function(e){for(var t=[];e;)gd(t,hd(e)),e=vl(e);return t}:Xb;function pT(e,t){return ua(e,Zb(e),t)}function Qb(e,t,r){var i=t(e);return jt(e)?i:gd(i,r(e))}function sf(e){return Qb(e,Cr,hd)}function yd(e){return Qb(e,ds,Zb)}var hT=Object.prototype,gT=hT.hasOwnProperty;function yT(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&gT.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Zo=Yr.Uint8Array;function vd(e){var t=new e.constructor(e.byteLength);return new Zo(t).set(new Zo(e)),t}function vT(e,t){var r=t?vd(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var bT=/\w*$/;function kT(e){var t=new e.constructor(e.source,bT.exec(e));return t.lastIndex=e.lastIndex,t}var zp=hr?hr.prototype:void 0,Up=zp?zp.valueOf:void 0;function wT(e){return Up?Object(Up.call(e)):{}}function ek(e,t){var r=t?vd(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var xT="[object Boolean]",ST="[object Date]",CT="[object Map]",ET="[object Number]",AT="[object RegExp]",OT="[object Set]",_T="[object String]",PT="[object Symbol]",IT="[object ArrayBuffer]",TT="[object DataView]",jT="[object Float32Array]",RT="[object Float64Array]",NT="[object Int8Array]",FT="[object Int16Array]",DT="[object Int32Array]",MT="[object Uint8Array]",LT="[object Uint8ClampedArray]",qT="[object Uint16Array]",$T="[object Uint32Array]";function zT(e,t,r){var i=e.constructor;switch(t){case IT:return vd(e);case xT:case ST:return new i(+e);case TT:return vT(e,r);case jT:case RT:case NT:case FT:case DT:case MT:case LT:case qT:case $T:return ek(e,r);case CT:return new i;case ET:case _T:return new i(e);case AT:return kT(e);case OT:return new i;case PT:return wT(e)}}var Bp=Object.create,tk=(function(){function e(){}return function(t){if(!Ue(t))return{};if(Bp)return Bp(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function rk(e){return typeof e.constructor=="function"&&!xl(e)?tk(vl(e)):{}}var UT="[object Map]";function BT(e){return gr(e)&&cr(e)==UT}var Vp=ea&&ea.isMap,VT=Vp?cd(Vp):BT,HT="[object Set]";function KT(e){return gr(e)&&cr(e)==HT}var Hp=ea&&ea.isSet,WT=Hp?cd(Hp):KT,GT=1,JT=2,YT=4,nk="[object Arguments]",XT="[object Array]",ZT="[object Boolean]",QT="[object Date]",ej="[object Error]",ik="[object Function]",tj="[object GeneratorFunction]",rj="[object Map]",nj="[object Number]",ak="[object Object]",ij="[object RegExp]",aj="[object Set]",sj="[object String]",oj="[object Symbol]",lj="[object WeakMap]",uj="[object ArrayBuffer]",cj="[object DataView]",fj="[object Float32Array]",dj="[object Float64Array]",mj="[object Int8Array]",pj="[object Int16Array]",hj="[object Int32Array]",gj="[object Uint8Array]",yj="[object Uint8ClampedArray]",vj="[object Uint16Array]",bj="[object Uint32Array]",mt={};mt[nk]=mt[XT]=mt[uj]=mt[cj]=mt[ZT]=mt[QT]=mt[fj]=mt[dj]=mt[mj]=mt[pj]=mt[hj]=mt[rj]=mt[nj]=mt[ak]=mt[ij]=mt[aj]=mt[sj]=mt[oj]=mt[gj]=mt[yj]=mt[vj]=mt[bj]=!0;mt[ej]=mt[ik]=mt[lj]=!1;function za(e,t,r,i,a,n){var s,o=t&GT,l=t&JT,u=t&YT;if(r&&(s=a?r(e,i,a,n):r(e)),s!==void 0)return s;if(!Ue(e))return e;var c=jt(e);if(c){if(s=yT(e),!o)return pd(e,s)}else{var f=cr(e),m=f==ik||f==tj;if(ci(e))return Yb(e,o);if(f==ak||f==nk||m&&!a){if(s=l||m?{}:rk(e),!o)return l?pT(e,oT(s,e)):dT(e,rT(s,e))}else{if(!mt[f])return a?e:{};s=zT(e,f,o)}}n||(n=new Or);var d=n.get(e);if(d)return d;n.set(e,s),WT(e)?e.forEach(function(v){s.add(za(v,t,r,v,e,n))}):VT(e)&&e.forEach(function(v,g){s.set(g,za(v,t,r,g,e,n))});var p=u?l?yd:sf:l?ds:Cr,k=c?void 0:p(e);return fd(k||e,function(v,g){k&&(g=v,v=e[g]),md(s,g,za(v,t,r,g,e,n))}),s}function sk(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function kj(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 wj(e,t){return t.length<2?e:wl(e,kj(t,0,-1))}var xj=Object.prototype,Sj=xj.hasOwnProperty;function ok(e,t){t=la(t,e);var r=-1,i=t.length;if(!i)return!0;for(;++r<i;){var a=Rn(t[r]);if(a==="__proto__"&&!Sj.call(e,"__proto__")||(a==="constructor"||a==="prototype")&&r<i-1)return!1}var n=wj(e,t);return n==null||delete n[Rn(sk(t))]}function Cj(e){return jn(e)?void 0:e}var Kp=hr?hr.isConcatSpreadable:void 0;function Ej(e){return jt(e)||Qi(e)||!!(Kp&&e&&e[Kp])}function ms(e,t,r,i,a){var n=-1,s=e.length;for(r||(r=Ej),a||(a=[]);++n<s;){var o=e[n];t>0&&r(o)?t>1?ms(o,t-1,r,i,a):gd(a,o):i||(a[a.length]=o)}return a}function of(e){var t=e==null?0:e.length;return t?ms(e,1):[]}function Aj(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 Wp=Math.max;function lk(e,t,r){return t=Wp(t===void 0?e.length-1:t,0),function(){for(var i=arguments,a=-1,n=Wp(i.length-t,0),s=Array(n);++a<n;)s[a]=i[t+a];a=-1;for(var o=Array(t+1);++a<t;)o[a]=i[a];return o[t]=r(s),Aj(e,this,o)}}function Oj(e){return function(){return e}}function Cl(e){return e}var _j=Xo?function(e,t){return Xo(e,"toString",{configurable:!0,enumerable:!1,value:Oj(t),writable:!0})}:Cl,Pj=800,Ij=16,Tj=Date.now;function jj(e){var t=0,r=0;return function(){var i=Tj(),a=Ij-(i-r);if(r=i,a>0){if(++t>=Pj)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var uk=jj(_j);function ck(e){return uk(lk(e,void 0,of),e+"")}var Rj=1,Nj=2,Fj=4,Ya=ck(function(e,t){var r={};if(e==null)return r;var i=!1;t=oa(t,function(n){return n=la(n,e),i||(i=n.length>1),n}),ua(e,yd(e),r),i&&(r=za(r,Rj|Nj|Fj,Cj));for(var a=t.length;a--;)ok(r,t[a]);return r});function Qo(e,t){if(nt in e&&ld.equal(e[nt],t))return e;for(const r of Object.values(e))if(Array.isArray(r)){for(const i of r)if(Ue(i)){const a=Qo(i,t);if(a!==void 0)return a}}else if(Ue(r)){const i=Qo(r,t);if(i!==void 0)return i}}function lf(e,t){const r=ae(e,nt,t);let i=e;at in i&&(i={...i,[at]:ld.resolve(r,i[at])});for(const[a,n]of Object.entries(i))Array.isArray(n)?i={...i,[a]:n.map(s=>Ue(s)?lf(s,r):s)}:Ue(n)&&(i={...i,[a]:lf(n,r)});return i}function bd(e,t){const r=t[e];return[Ya(t,[e]),r]}function fk(e,t={},r=[],i=ae(t,[nt])){const a=e||"";let n,s=i;if(a.startsWith("#")){const l=decodeURIComponent(a.substring(1));s===void 0||nt in t&&t[nt]===s?n=_u.get(t,l):t[Ta]===Fo&&(n=Qo(t,s.replace(/\/$/,"")),n!==void 0&&(n=_u.get(n,l)))}else if(t[Ta]===Fo){const l=s?ld.resolve(s,a):a,[u,...c]=l.replace(/#\/?$/,"").split("#");n=Qo(t,u.replace(/\/$/,"")),n!==void 0&&(s=n[nt],wt(c)||(n=_u.get(n,decodeURIComponent(c.join("#")))))}if(n===void 0)throw new Error(`Could not find a definition for ${e}.`);const o=n[at];if(o){if(r.includes(o)){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]=bd(at,n),c=fk(u,t,[...r,a],s);return Object.keys(l).length>0?t[Ta]===h_||t[Ta]===Fo?{[Hr]:[l,c]}:{...l,...c}:c}return n}function Xa(e,t={},r=ae(t,[nt])){return fk(e,t,[],r)}var Dj=Object.prototype,Mj=Dj.hasOwnProperty;function Lj(e,t){return e!=null&&Mj.call(e,t)}function dk(e,t,r){t=la(t,e);for(var i=-1,a=t.length,n=!1;++i<a;){var s=Rn(t[i]);if(!(n=e!=null&&r(e,s)))break;e=e[s]}return n||++i!=a?n:(a=e==null?0:e.length,!!a&&ud(a)&&Sl(s,a)&&(jt(e)||Qi(e)))}function qe(e,t){return e!=null&&dk(e,t,Lj)}var qj="[object String]";function Nn(e){return typeof e=="string"||!jt(e)&&gr(e)&&on(e)==qj}function yr(e){let t;const r=ae(e,f_);return Nn(r)?t=r:r!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}var $j=1/0;function zj(e){var t=e==null?0:e.length;return t?ms(e,$j):[]}function uf(e,t,r){(r!==void 0&&!cs(e[t],r)||r===void 0&&!(t in e))&&dd(e,t,r)}function Uj(e){return function(t,r,i){for(var a=-1,n=Object(t),s=i(t),o=s.length;o--;){var l=s[++a];if(r(n[l],l,n)===!1)break}return t}}var mk=Uj();function Za(e){return gr(e)&&xi(e)}function cf(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Bj(e){return ua(e,ds(e))}function Vj(e,t,r,i,a,n,s){var o=cf(e,r),l=cf(t,r),u=s.get(l);if(u){uf(e,r,u);return}var c=n?n(o,l,r+"",e,t,s):void 0,f=c===void 0;if(f){var m=jt(l),d=!m&&ci(l),p=!m&&!d&&fs(l);c=l,m||d||p?jt(o)?c=o:Za(o)?c=pd(o):d?(f=!1,c=Yb(l,!0)):p?(f=!1,c=ek(l,!0)):c=[]:jn(l)||Qi(l)?(c=o,Qi(o)?c=Bj(o):(!Ue(o)||us(o))&&(c=rk(l))):f=!1}f&&(s.set(l,c),a(c,l,i,n,s),s.delete(l)),uf(e,r,c)}function pk(e,t,r,i,a){e!==t&&mk(t,function(n,s){if(a||(a=new Or),Ue(n))Vj(e,t,s,r,pk,i,a);else{var o=i?i(cf(e,s),n,s+"",e,t,a):void 0;o===void 0&&(o=n),uf(e,s,o)}},ds)}function El(e,t){return uk(lk(e,t,Cl),e+"")}function Hj(e,t,r){if(!Ue(r))return!1;var i=typeof t;return(i=="number"?xi(r)&&Sl(t,r.length):i=="string"&&t in r)?cs(r[t],e):!1}function Kj(e){return El(function(t,r){var i=-1,a=r.length,n=a>1?r[a-1]:void 0,s=a>2?r[2]:void 0;for(n=e.length>3&&typeof n=="function"?(a--,n):void 0,s&&Hj(r[0],r[1],s)&&(n=a<3?void 0:n,a=1),t=Object(t);++i<a;){var o=r[i];o&&e(t,o,i,n)}return t})}var Wj=Kj(function(e,t,r){pk(e,t,r)});function kd(e,t,r,i){if(!Ue(e))return e;t=la(t,e);for(var a=-1,n=t.length,s=n-1,o=e;o!=null&&++a<n;){var l=Rn(t[a]),u=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(a!=s){var c=o[l];u=i?i(c,l,o):void 0,u===void 0&&(u=Ue(c)?c:Sl(t[a+1])?[]:{})}md(o,l,u),o=o[l]}return e}function lt(e,t,r){return e==null?e:kd(e,t,r)}function hk(e){return typeof e=="function"?e:Cl}var Gj=/\s/;function Jj(e){for(var t=e.length;t--&&Gj.test(e.charAt(t)););return t}var Yj=/^\s+/;function Xj(e){return e&&e.slice(0,Jj(e)+1).replace(Yj,"")}var Gp=NaN,Zj=/^[-+]0x[0-9a-f]+$/i,Qj=/^0b[01]+$/i,eR=/^0o[0-7]+$/i,tR=parseInt;function rR(e){if(typeof e=="number")return e;if(ls(e))return Gp;if(Ue(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ue(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Xj(e);var r=Qj.test(e);return r||eR.test(e)?tR(e.slice(2),r?2:8):Zj.test(e)?Gp:+e}var Jp=1/0,nR=17976931348623157e292;function iR(e){if(!e)return e===0?e:0;if(e=rR(e),e===Jp||e===-Jp){var t=e<0?-1:1;return t*nR}return e===e?e:0}function gk(e){var t=iR(e),r=t%1;return t===t?r?t-r:t:0}var aR=9007199254740991,Iu=4294967295,sR=Math.min;function yk(e,t){if(e=gk(e),e<1||e>aR)return[];var r=Iu,i=sR(e,Iu);t=hk(t),e-=Iu;for(var a=Wb(i,t);++r<e;)t(r);return a}function vk(e,t){return e&&mk(e,t,Cr)}var oR="__lodash_hash_undefined__";function lR(e){return this.__data__.set(e,oR),this}function uR(e){return this.__data__.has(e)}function fi(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new un;++t<r;)this.add(e[t])}fi.prototype.add=fi.prototype.push=lR;fi.prototype.has=uR;function cR(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 Qa(e,t){return e.has(t)}var fR=1,dR=2;function bk(e,t,r,i,a,n){var s=r&fR,o=e.length,l=t.length;if(o!=l&&!(s&&l>o))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&dR?new fi:void 0;for(n.set(e,t),n.set(t,e);++f<o;){var p=e[f],k=t[f];if(i)var v=s?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(!cR(t,function(g,b){if(!Qa(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 mR(e){var t=-1,r=Array(e.size);return e.forEach(function(i,a){r[++t]=[a,i]}),r}function wd(e){var t=-1,r=Array(e.size);return e.forEach(function(i){r[++t]=i}),r}var pR=1,hR=2,gR="[object Boolean]",yR="[object Date]",vR="[object Error]",bR="[object Map]",kR="[object Number]",wR="[object RegExp]",xR="[object Set]",SR="[object String]",CR="[object Symbol]",ER="[object ArrayBuffer]",AR="[object DataView]",Yp=hr?hr.prototype:void 0,Tu=Yp?Yp.valueOf:void 0;function OR(e,t,r,i,a,n,s){switch(r){case AR:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ER:return!(e.byteLength!=t.byteLength||!n(new Zo(e),new Zo(t)));case gR:case yR:case kR:return cs(+e,+t);case vR:return e.name==t.name&&e.message==t.message;case wR:case SR:return e==t+"";case bR:var o=mR;case xR:var l=i&pR;if(o||(o=wd),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;i|=hR,s.set(e,t);var c=bk(o(e),o(t),i,a,n,s);return s.delete(e),c;case CR:if(Tu)return Tu.call(e)==Tu.call(t)}return!1}var _R=1,PR=Object.prototype,IR=PR.hasOwnProperty;function TR(e,t,r,i,a,n){var s=r&_R,o=sf(e),l=o.length,u=sf(t),c=u.length;if(l!=c&&!s)return!1;for(var f=l;f--;){var m=o[f];if(!(s?m in t:IR.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=s;++f<l;){m=o[f];var g=e[m],b=t[m];if(i)var w=s?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 C=e.constructor,h=t.constructor;C!=h&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof h=="function"&&h instanceof h)&&(k=!1)}return n.delete(e),n.delete(t),k}var jR=1,Xp="[object Arguments]",Zp="[object Array]",Ds="[object Object]",RR=Object.prototype,Qp=RR.hasOwnProperty;function NR(e,t,r,i,a,n){var s=jt(e),o=jt(t),l=s?Zp:cr(e),u=o?Zp:cr(t);l=l==Xp?Ds:l,u=u==Xp?Ds:u;var c=l==Ds,f=u==Ds,m=l==u;if(m&&ci(e)){if(!ci(t))return!1;s=!0,c=!1}if(m&&!c)return n||(n=new Or),s||fs(e)?bk(e,t,r,i,a,n):OR(e,t,l,r,i,a,n);if(!(r&jR)){var d=c&&Qp.call(e,"__wrapped__"),p=f&&Qp.call(t,"__wrapped__");if(d||p){var k=d?e.value():e,v=p?t.value():t;return n||(n=new Or),a(k,v,r,i,n)}}return m?(n||(n=new Or),TR(e,t,r,i,a,n)):!1}function Al(e,t,r,i,a){return e===t?!0:e==null||t==null||!gr(e)&&!gr(t)?e!==e&&t!==t:NR(e,t,r,i,Al,a)}var FR=1,DR=2;function MR(e,t,r,i){var a=r.length,n=a;if(e==null)return!n;for(e=Object(e);a--;){var s=r[a];if(s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<n;){s=r[a];var o=s[0],l=e[o],u=s[1];if(s[2]){if(l===void 0&&!(o in e))return!1}else{var c=new Or,f;if(!(f===void 0?Al(u,l,FR|DR,i,c):f))return!1}}return!0}function kk(e){return e===e&&!Ue(e)}function LR(e){for(var t=Cr(e),r=t.length;r--;){var i=t[r],a=e[i];t[r]=[i,a,kk(a)]}return t}function wk(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function qR(e){var t=LR(e);return t.length==1&&t[0][2]?wk(t[0][0],t[0][1]):function(r){return r===e||MR(r,e,t)}}function $R(e,t){return e!=null&&t in Object(e)}function xk(e,t){return e!=null&&dk(e,t,$R)}var zR=1,UR=2;function BR(e,t){return ad(e)&&kk(t)?wk(Rn(e),t):function(r){var i=ae(r,e);return i===void 0&&i===t?xk(r,e):Al(t,i,zR|UR)}}function VR(e){return function(t){return t==null?void 0:t[e]}}function HR(e){return function(t){return wl(t,e)}}function KR(e){return ad(e)?VR(Rn(e)):HR(e)}function xd(e){return typeof e=="function"?e:e==null?Cl:typeof e=="object"?jt(e)?BR(e[0],e[1]):qR(e):KR(e)}function WR(e,t,r){var i=jt(e),a=i||ci(e)||fs(e);if(t=xd(t),r==null){var n=e&&e.constructor;a?r=i?new n:[]:Ue(e)?r=us(n)?tk(vl(e)):{}:r={}}return(a?fd:vk)(e,function(s,o,l){return t(r,s,o,l)}),r}function GR(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 JR(e){return e!==e}function YR(e,t,r){for(var i=r-1,a=e.length;++i<a;)if(e[i]===t)return i;return-1}function Sk(e,t,r){return t===t?YR(e,t,r):GR(e,JR,r)}function Sd(e,t){var r=e==null?0:e.length;return!!r&&Sk(e,t,0)>-1}function Do(){}var XR=1/0,ZR=Hi&&1/wd(new Hi([,-0]))[1]==XR?function(e){return new Hi(e)}:Do,QR=200;function Ck(e,t,r){var i=-1,a=Sd,n=e.length,s=!0,o=[],l=o;if(n>=QR){var u=ZR(e);if(u)return wd(u);s=!1,a=Qa,l=new fi}else l=o;e:for(;++i<n;){var c=e[i],f=c;if(c=c!==0?c:0,s&&f===f){for(var m=l.length;m--;)if(l[m]===f)continue e;o.push(c)}else a(l,f,r)||(l!==o&&l.push(f),o.push(c))}return o}function Ek(e){return e&&e.length?Ck(e):[]}function es(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 eN=El(function(e){return Ck(ms(e,1,Za,!0))});function vr(e){let{type:t}=e;return!t&&e.const?es(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 s=e?e[n]:{},o=t[n];return e&&n in e&&be(o)?a[n]=an(s,o):e&&t&&(vr(e)==="object"||vr(t)==="object")&&n===Pb&&Array.isArray(s)&&Array.isArray(o)?a[n]=eN(s,o):a[n]=o,a},r);for(const a of Object.getOwnPropertySymbols(t))i[a]=t[a];return i}var tN="[object Number]";function Ak(e){return typeof e=="number"||gr(e)&&on(e)==tN}function Ok(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 s=t[n],o=ae(s,[ze,r],{});if(o.type!=="object"&&o.type!=="array"&&(o.const===a||!((i=o.enum)===null||i===void 0)&&i.includes(a)))return n}}}function el(e,t,r,i,a){if(t===void 0)return 0;const n=Ok(t,r,a);if(Ak(n))return n;for(let s=0;s<r.length;s+=1){const o=r[s];if(a&&qe(o,[ze,a])){const l=ae(t,a),u=ae(o,[ze,a],{});if(e.isValid(u,l,i))return s}else if(o[ze]){const l={anyOf:Object.keys(o[ze]).map(c=>({required:[c]}))};let u;if(o.anyOf){const{...c}=o;c.allOf?c.allOf=c.allOf.slice():c.allOf=[],c.allOf.push(l),u=c}else u={...o,...l};if(delete u.required,e.isValid(u,t,i))return s}else if(e.isValid(o,t,i))return s}return 0}const rN=Object.prototype;function ja(e){for(const t in e)if(rN.hasOwnProperty.call(e,t))return!1;return!0}const nN=["array","boolean","integer","null","number","object","string"];new Set(nN);const iN=["$defs","definitions","properties","patternProperties","dependencies"];new Set(iN);const aN=["items","allOf","oneOf","anyOf"];new Set(aN);const sN=["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"];new Set(sN);function Mo(e){return typeof e=="object"}function qr(e){return Mo(e)?ja(e):e===!0}function $i(e,t){return e<t?-1:e>t?1:0}function ju(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 oN(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 eh(e){return e.length===0}function Ru(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 _k(e,{threshold:t=12}={}){return r=>{const i=r.length;if(i===0)return r;if(i<=t){const s=[];let o=0;e:for(let l=0;l<i;l++){const u=r[l];for(let c=0;c<o;c++)if(e(u,s[c])===0)continue e;o=s.push(u)}return s}const a=r.slice().sort(e);let n=0;for(let s=1;s<i;s++)e(a[n],a[s])!==0&&++n!==s&&(a[n]=a[s]);return a.length=n+1,a}}function lN(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 s=[...t].sort(e),o=[...r].sort(e);let l=0,u=0;for(;l<a&&u<n;){const c=e(s[l],o[u]);c===0?((i.length===0||e(i[i.length-1],s[l])!==0)&&i.push(s[l]),l++,u++):c<0?l++:u++}return i}}function uN(e,t){return r=>{if(e.has(r))return e.get(r);const i=t(r);return e.set(r,i),i}}const th=uN,Pk=()=>0,cN=e=>e===void 0,fN=e=>typeof e!="object",rh={boolean:0,number:1,string:2};function dN(e,t){const r=typeof e,i=typeof t;return r===i?$i(e,t):rh[r]-rh[i]}function mN(e,t){const r=e.length;if(r===0)return t;const i=t.length;if(i===0)return e;if(i>r){const s=e;e=t,t=s}const a=new Set(e),n=t.length;for(let s=0;s<n;s++){const o=t[s];a.has(o)||e.push(o)}return e}function Ol(e,t,r=Pk){return(i,a)=>e(i)?e(a)?r(i,a):-1:e(a)?1:t(i,a)}function Mi(e){return Ol(cN,e)}function bn(e,t){return Ol(r=>r===void 0||e(r),t)}function Nu(e,t){return Ol(Array.isArray,e,t)}const At=Mi($i),Fu=bn(e=>e===0,(e,t)=>e-t);function pN({deduplicationCache:e=new WeakMap,sortedKeysCache:t=new WeakMap}={}){const r=th(t,k=>Object.keys(k).sort());function i(k){return(v,g)=>{const b=r(v),w=r(g),C=Math.min(b.length,w.length);for(let h=0;h<C;h++){const y=$i(b[h],w[h]);if(y!==0)return y}if(b.length!==w.length)return b.length-w.length;for(let h=0;h<C;h++){const y=b[h],S=k(v[y],g[y]);if(S!==0)return S}return 0}}function a(k){const v=Ru(k),g=th(e,_k(k,{threshold:0}));return(b,w)=>v(g(b),g(w))}const n=a($i);function s(k,v){if(Mo(k)){if(Mo(v)){const g=Object.keys(k),b=Object.keys(v),w=mN(g,b),C=w.length;for(let h=0;h<C;h++){const y=w[h];if(k[y]===v[y])continue;const A=(p[y]??o)(k[y],v[y]);if(A!==0)return A}return 0}return v===!0&&ja(k)?0:1}return Mo(v)?k===!0&&ja(v)?0:-1:$i(k,v)}const o=Mi(u),l=Ol(fN,Nu(i(o),Ru(u)),dN);function u(k,v){return k===null?-1:v===null?1:l(k,v)}const c=Mi(s),f=bn(ja,i(c)),m=Mi(a(s)),d=bn(qr,s),p={$id:At,$comment:At,$defs:f,$ref:At,$schema:At,const:o,contains:c,contentEncoding:At,contentMediaType:At,default:o,definitions:f,description:At,else:c,examples:o,exclusiveMaximum:At,exclusiveMinimum:At,format:At,if:c,maximum:At,maxItems:At,maxLength:At,maxProperties:At,minimum:At,multipleOf:At,not:c,pattern:At,propertyNames:c,readOnly:At,then:c,title:At,writeOnly:At,uniqueItems:bn(k=>k===!1,Pk),minLength:Fu,minItems:Fu,minProperties:Fu,required:bn(eh,n),enum:bn(eh,a(u)),type:Mi((k,v)=>{const g=Array.isArray(k),b=Array.isArray(v);return!g&&!b?$i(k,v):n(g?k:[k],b?v:[v])}),items:bn(k=>!Array.isArray(k)&&qr(k),Nu(s,Ru(s))),anyOf:m,allOf:m,oneOf:m,properties:f,patternProperties:f,additionalProperties:d,additionalItems:d,dependencies:bn(ja,i(Mi(Nu(s,n))))};return{compareSchemaValues:u,compareSchemaDefinitions:s}}function nh(e){return e}const Ik=(e,t)=>e?Ik(t%e,e):t,hN=(e,t)=>Math.abs(e*t)/Ik(e,t);function gN(e,t){return e===t?e:`(?=.*(?:${e}))(?=.*(?:${t}))`}function Du(e,t,r){const i=e.length,a=t.length;if(i>0&&a>0)for(let n=0;n<i;n++){const s=e[n];for(let o=0;o<a;o++)r(s,t[o])}}function Mu(e,t){return e||t}function ih(e){return(t,r)=>{const i={...t},a=Object.keys(r),n=a.length;for(let s=0;s<n;s++){const o=a[s];i[o]=t[o]===void 0?r[o]:e(t[o],r[o])}return i}}function yN(e){const t=new Map;for(const r of e)for(const i of r[0])t.set(i,r[1]);return t}function Gn(e,t,r){r===void 0||qr(r)?delete e[t]:e[t]=r}const vN=["properties","patternProperties","additionalProperties"];function ah(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 sh=[[],[]];function oh(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 s=n.schema;if(s===!1)return!0;e.push(s)}return!1}const bN=["items","additionalItems"],kN=["if","then","else"];function lh(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 Lu(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 Jn(e,t,r){return[e,t,r]}function wN(e){const t=new Map;for(const[r,i,a]of e){const n=s=>{if(!a(s))throw new Error(`Schema keys '${r}' and '${i}' are conflicting (${r}: ${JSON.stringify(s[r])}, ${i}: ${JSON.stringify(s[i])})`)};for(const s of[[r,i],[i,r]]){let o=t.get(s[0]);o===void 0&&(o=[],t.set(s[0],o)),o.push({oppositeKey:s[1],check:n})}}return t}const xN=[Jn("minimum","maximum",e=>e.maximum>=e.minimum),Jn("exclusiveMinimum","maximum",e=>e.maximum>e.exclusiveMinimum),Jn("minimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.minimum),Jn("exclusiveMinimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.exclusiveMinimum),Jn("minLength","maxLength",e=>e.maxLength>=e.minLength),Jn("minItems","maxItems",e=>e.maxItems>=e.minItems),Jn("minProperties","maxProperties",e=>e.maxProperties>=e.minProperties)];function SN({mergePatterns:e=gN,isSubRegExp:t=Object.is,intersectJson:r=oN,deduplicateJsonSchemaDef:i=nh,defaultMerger:a=nh,assigners:n=[],checks:s=xN,mergers:o}={}){function l(C){const h=C.length;let y=C[0];for(let S=1;S<h;S++){const A=g(y,C[S]);if(A===!1)return!1;qr(A)||(y=A)}return y}function u(C,h,y,S,A,_,x){if(C.length=0,y===!1)return!1;if(C.push(y),A!==void 0){if(A===!1)return!1;C.push(A)}if(oh(C,h,_))return!1;const O=C.length<2;if(x===!1){if(O)return;if(oh(C,h,S))return!1}else O&&x!==void 0&&C.push(x);return C.length===1?C[0]:l(C)}function c(C,h,y,S,A,_){const x=y.length;if(x>0&&A!==!1)if(_)Object.assign(C,h);else for(let E=0;E<x;E++){const O=y[E];S.has(O)||(C[O]=g(h[O],A))}return C}const f=(C,{properties:h={},patternProperties:y,additionalProperties:S=!0},{properties:A={},patternProperties:_,additionalProperties:x=!0})=>{const E=qr(S),O=qr(x);if(E&&O)return Gn(C,"properties",b(h,A)),Gn(C,"patternProperties",y&&_?b(y,_):y??_),delete C.additionalProperties,C;const R=g(S,x);Gn(C,"additionalProperties",R);const T={},D=Object.keys(h),L=D.length,[J,X]=y?ah(y):sh,[Z,P]=_?ah(_):sh,F=[],z=new Set,I=O?void 0:x;for(let K=0;K<L;K++){const Y=D[K];z.add(Y);const $=u(F,Y,h[Y],J,A[Y],Z,I);$!==void 0&&(T[Y]=$)}const N=Object.keys(A),M=N.length,U=E?void 0:S;for(let K=0;K<M;K++){const Y=N[K];if(z.has(Y))continue;const $=u(F,Y,A[Y],Z,void 0,J,U);$!==void 0&&(T[Y]=$)}Gn(C,"properties",T);let V={};const H=new Set;return X.length>0&&P.length>0&&Du(X,P,(K,Y)=>{t(K,Y)&&H.add(K),t(Y,K)&&H.add(Y),V[e(K,Y)]=g(y[K],_[Y])}),V=c(V,y,X,H,x,O),V=c(V,_,P,H,S,E),Gn(C,"patternProperties",V),C},m=(C,{items:h=[],additionalItems:y},{items:S=[],additionalItems:A})=>{const _=Array.isArray(h),x=Array.isArray(S),E=[];if(C.items=E,_&&x){const[O,R,T]=h.length<S.length?[h.length,y,S]:[S.length,A,h];let D=0;for(;D<O;D++)E.push(g(h[D],S[D]));if(R===!1)C.additionalItems=!1;else{const L=R===void 0||qr(R);for(;D<T.length;D++)E.push(L?T[D]:g(T[D],R));Gn(C,"additionalItems",y!==void 0&&A!==void 0?g(y,A):y??A)}}else if(_||x){const[O,R,T]=_?[h,S,y]:[S,h,A];Gn(C,"additionalItems",T&&g(T,R));for(let D=0;D<O.length;D++)E.push(g(O[D],R))}else delete C.additionalItems,C.items=g(h,S);return C},d=(C,h,y)=>{lh(C,h);const S=lh({},y);return C.allOf===void 0?C.allOf=[S]:C.allOf=C.allOf.concat(S),C};function p(C,h){const y=[];if(Du(C,h,(S,A)=>{try{y.push(g(S,A))}catch{}}),y.length===0)throw new Error(`No valid schema combinations could be produced for "${JSON.stringify(C)}" and "${JSON.stringify(h)}"; the merged result is empty`);return i(y)}const k=yN([[vN,f],[bN,m],[kN,d],...n]),v=wN(s);function g(C,h){if(C===!1||h===!1)return!1;if(qr(C))return qr(h)?!0:h;if(qr(h))return C;let y={...C};const S=new Set,A=new Set,_=Reflect.ownKeys(h),x=_.length;for(let E=0;E<x;E++){const O=_[E],R=h[O];if(R===void 0)continue;const T=v.get(O);if(T!==void 0){const X=T.length;for(let Z=0;Z<X;Z++){const P=T[Z];C[P.oppositeKey]!==void 0&&A.add(P.check)}}const D=C[O];if(D===void 0){y[O]=R;continue}const L=k.get(O);if(L){S.add(L);continue}const J=w[O]??a;y[O]=J(D,R)}for(const E of S)y=E(y,C,h);for(const E of A)E(y);return y}const b=ih(g),w={$id:a,$ref:a,$schema:a,$comment:a,$defs:b,definitions:b,type:(C,h)=>{if(C===h)return C;const y=Array.isArray(C),S=Array.isArray(h);if(!y&&!S){const A=Lu(C,h);if(A!==void 0)return A}else if(y||S){const A=new Set;if(y&&S)Du(C,h,(x,E)=>{const O=Lu(x,E);O!==void 0&&A.add(O)});else{const x=y?C:h,E=y?h:C,O=x.length;for(let R=0;R<O;R++){const T=Lu(E,x[R]);T!==void 0&&A.add(T)}}const _=A.size;if(_===1)return A.values().next().value;if(_>1)return Array.from(A)}throw new Error(`It is not possible to create an intersection of the following incompatible types: ${C.toString()}, ${h.toString()}`)},default:a,description:a,title:a,const:a,format:a,contentEncoding:a,contentMediaType:a,not:(C,h)=>{const y=i([C,h]);return y.length===1?y[0]:{anyOf:y}},pattern:e,readOnly:Mu,writeOnly:Mu,enum:(C,h)=>{const y=r(C,h);if(y.length===0)throw new Error(`Intersection of the following enums is empty: "${JSON.stringify(C)}", "${JSON.stringify(h)}"`);return y},anyOf:p,oneOf:p,allOf:(C,h)=>i(C.concat(h)),propertyNames:g,contains:g,dependencies:ih((C,h)=>Array.isArray(C)?Array.isArray(h)?ju(C,h):g(h,{required:C}):Array.isArray(h)?g(C,{required:h}):g(C,h)),examples:(C,h)=>{if(!Array.isArray(C)||!Array.isArray(h))throw new Error(`Value of the 'examples' field should be an array, but got "${JSON.stringify(C)}" and "${JSON.stringify(h)}"`);return ju(C,h)},multipleOf:(C,h)=>{let y=1;for(;!Number.isInteger(C)||!Number.isInteger(h);)y*=10,C*=10,h*=10;return hN(C,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:Mu,required:ju,...o};return{mergeSchemaDefinitions:g,mergeArrayOfSchemaDefinitions:l}}function CN(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 s=a.length-1;s>=0;s--)r.push(a[s])}return t}function EN(e){return t=>e(CN(t))}const{compareSchemaDefinitions:AN,compareSchemaValues:ON}=pN(),{mergeArrayOfSchemaDefinitions:_N}=SN({intersectJson:lN(ON),deduplicateJsonSchemaDef:_k(AN)}),Tk=EN(_N);function Ft(e,t,r={},i,a,n=!1){return Ur(e,t,r,i,void 0,void 0,a,n)[0]}function jk(e){return typeof e!="boolean"?e:e?{}:{not:{}}}function PN(e,t,r,i,a,n,s){const{if:o,then:l,else:u,...c}=t,f=e.isValid(o,n||{},r);let m=[c],d=[];if(i){if(l&&typeof l!="boolean"){const p=l;d=d.concat(Ur(e,p,r,n,i,a,s))}if(u&&typeof u!="boolean"){const p=u;d=d.concat(Ur(e,p,r,n,i,a,s))}}else{const p=f?l:u;if(p!==void 0){const k=jk(p);d=d.concat(Ur(e,k,r,n,i,a,s))}}return d.length&&(m=d.map(p=>an(c,p))),m.flatMap(p=>Ur(e,p,r,n,i,a,s))}function Rk(e){return e.reduce((r,i)=>i.length>1?i.flatMap(a=>yk(r.length,n=>[...r[n]].concat(a))):(r.forEach(a=>a.push(i[0])),r),[[]])}function Nk(e,t){return Object.keys(e.patternProperties).filter(r=>RegExp(r).test(t)).reduce((r,i)=>(lt(r,[i],e.patternProperties[i]),r),{})}function IN(e,t,r,i,a,n,s,o){const l=Fk(e,t,r,i,a,n,s,o);if(l.length>1||l[0]!==t)return l;if(ed in t)return Mk(e,t,r,i,a,n,s).flatMap(c=>Ur(e,c,r,n,i,a,s));if(Hr in t&&Array.isArray(t[Hr])){const u=t.allOf.map(f=>Ur(e,f,r,n,i,a,s));return Rk(u).map(f=>({...t,allOf:f}))}return[t]}function Fk(e,t,r,i,a,n,s,o){const l=En(t,r,a,void 0,o);return l!==t?Ur(e,l,r,n,i,a,s,o):[t]}function En(e,t,r,i,a,n=!1){if(!be(e))return e;let s=e,o=i;if(at in s){const{$ref:l,...u}=s;if(r.includes(l))return n?{...s,[rd]:!0}:s;r.push(l),s={...Xa(l,t,o),...u,[No]:l},nt in s&&(o=s[nt])}if(ze in s){const l=[],u=WR(s[ze],(c,f,m)=>{const d=[...r];c[m]=En(f,t,d,o,a,!a),l.push(d)},{});Wj(r,Ek(zj(l))),s={...s,[ze]:u}}if(Zi in s&&!Array.isArray(s.items)&&typeof s.items!="boolean"&&(s={...s,items:En(s.items,t,r,o,a)}),a){let l,u;Le in e&&Array.isArray(e[Le])?(l=Le,u=s[Le]):Ae in e&&Array.isArray(e[Ae])&&(l=Ae,u=s[Ae]),l&&u&&(s={...s,[l]:u.map(c=>En(c,t,r,o,a))})}return $e(e,s)?e:s}function TN(e,t,r,i,a){const n={...t,properties:{...t.properties}},s=i&&be(i)?i:{};return Object.keys(s).forEach(o=>{if(!(o in n.properties)){if(Qc in n){const l=Nk(n,o);if(!wt(l)){n.properties[o]=Ft(e,{[Hr]:Object.values(l)},r,ae(s,[o]),a),n.properties[o][Sn]=!0;return}}if(qi in n&&n.additionalProperties!==!1){let l;typeof n.additionalProperties!="boolean"?at in n.additionalProperties?l=Ft(e,{[at]:ae(n.additionalProperties,[at])},r,ae(s,[o]),a):"type"in n.additionalProperties?l={...n.additionalProperties}:Le in n.additionalProperties||Ae in n.additionalProperties?l={type:"object",...n.additionalProperties}:l={type:es(ae(s,[o]))}:l={type:es(ae(s,[o]))},n.properties[o]=l,n.properties[o][Sn]=!0}else n.properties[o]={type:"null"},n.properties[o][Sn]=!0}}),n}function jN(e){return Tk(e)}function Ur(e,t,r,i,a=!1,n=[],s,o){return be(t)?IN(e,t,r,a,n,i,s,o).flatMap(u=>{var c;let f=u;if(td in f)return PN(e,f,r,a,n,i,s);if(Hr 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=s?s(f):jN(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&&Qc in f&&(f=Object.keys(f.properties).reduce((d,p)=>{const k=Nk(d,p);return wt(k)||(d.properties[p]=Ft(e,{allOf:[d.properties[p],...Object.values(k)]},r,ae(i,[p]),s)),d},{...f,properties:{...f.properties}})),Qc in f||qi in f&&f.additionalProperties!==!1?TN(e,f,r,i,s):f}):[{}]}function RN(e,t,r,i,a){let n;const{oneOf:s,anyOf:o,...l}=t;if(Array.isArray(s)?n=s:Array.isArray(o)&&(n=o),n){const u=a===void 0&&i?{}:a,c=yr(t);n=n.map(m=>En(m,r,[]));const f=el(e,u,n,r,c);if(i){const m=Dk(n,!1,r);return el(e,u,m,r,c),n.map(d=>an(l,d))}return[an(l,n[f])]}return[t]}function Dk(e,t=!1,r){return e.map(i=>{if(!be(i))return jk(i);const a=t&&r?En(i,r,[]):i;return a.additionalProperties===!1?{...a,additionalProperties:!0}:a})}function Mk(e,t,r,i,a,n,s){const{dependencies:o,...l}=t;return RN(e,l,r,i,n).flatMap(c=>Lk(e,o,c,r,i,a,n,s))}function Lk(e,t,r,i,a,n,s,o){let l=[r];for(const u in t)if((a||ae(s,[u])!==void 0)&&(!r.properties||u in r.properties)){const[c,f]=bd(u,t);return Array.isArray(f)?l[0]=NN(r,f):be(f)&&(l=FN(e,r,i,u,f,a,n,s,o)),l.flatMap(m=>Lk(e,c,m,i,a,n,s,o))}return l}function NN(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 FN(e,t,r,i,a,n,s,o,l){return Ur(e,a,r,o,n,s,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]:Fk(e,v,r,n,s,o));return Rk(p).flatMap(v=>DN(e,d,r,i,v,n,s,o,l))})}function DN(e,t,r,i,a,n,s,o,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,o,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]=bd(i,f.properties),d={...f,properties:m};return Ur(e,d,r,o,n,s,l).map(k=>an(t,k))})}function Ra(e,t,r,i,a,n={},s){if(Array.isArray(r[a])){const l=yr(r)||i,u=r[a].map(f=>Ft(e,f,t,n,s)),c=ae(n,l);if(c!==void 0)return u.find(f=>$e(ae(f,[ze,l,li],ae(f,[ze,l,Kt])),c))}}function qk(e,t,r,i,a){let n=r;if(qe(r,at)&&(n=Ft(e,r,t,void 0,a)),wt(i))return n;const s=Array.isArray(i)?[...i]:i.split("."),[o,...l]=s;if(o!==void 0&&o!==""&&qe(n,o))return n=ae(n,o),qk(e,t,n,l,a)}function Lo(e,t,r,i,a,n){const s=qk(e,t,r,i,n);return s===void 0?a:s}const uh={title:"!@#$_UNKNOWN_$#@!"};function MN(e,t,r,i,a={},n){const s=Array.isArray(i)?[...i]:i.split(".");let o=r;const l=s.pop(),u=String(l);s.length&&s.forEach(d=>{o=Lo(e,t,o,[ze,d],{},n),qe(o,Ae)?o=Ra(e,t,o,u,Ae,ae(a,d),n):qe(o,Le)&&(o=Ra(e,t,o,u,Le,ae(a,d),n))}),qe(o,Ae)?o=Ra(e,t,o,u,Ae,a,n):qe(o,Le)&&(o=Ra(e,t,o,u,Le,a,n));let c=Lo(e,t,o,[ze,l],uh,n);c===uh&&(c=void 0);const f=Lo(e,t,o,Pb,[],n);let m;return c&&Array.isArray(f)&&(m=f.includes(u)),{field:c,isRequired:m}}function LN(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 qN(e,t){return function(r,i){if(r==null)return r;if(!xi(r))return e(r,i);for(var a=r.length,n=-1,s=Object(r);++n<a&&i(s[n],n,s)!==!1;);return r}}var $k=qN(vk);function $N(e,t,r,i,a){return a(e,function(n,s,o){r=i?(i=!1,n):t(r,n,s,o)}),r}function zN(e,t,r){var i=jt(e)?LN:$N,a=arguments.length<3;return i(e,xd(t),r,a,$k)}const UN={type:"object",$id:c_,properties:{__not_really_there__:{type:"number"}}};function ff(e,t,r,i,a){let n=0;return r&&(Ue(r.properties)?n+=zN(r.properties,(s,o,l)=>{const u=ae(i,l);if(typeof o=="boolean")return s;if(qe(o,at)){const c=Ft(e,o,t,u,a);return s+ff(e,t,c,u||{},a)}if((qe(o,Ae)||qe(o,Le))&&u){const c=qe(o,Ae)?Ae:Le,f=yr(o);return s+ta(e,t,u,ae(o,c),-1,f,a)}if(o.type==="object"){const c=Ue(u)?1:0;return s+c+ff(e,t,o,u,a)}if(o.type===es(u)){let c=s+1;return o.default?c+=u===o.default?1:-1:o.const&&(c+=u===o.const?1:-1),c}return s},0):Nn(r.type)&&r.type===es(i)&&(n+=1)),n}function ta(e,t,r,i,a=-1,n,s){const o=i.map(m=>En(m,t,[])),l=Ok(r,i,n);if(Ak(l))return l;const u=o.reduce((m,d,p)=>(el(e,r,[UN,d],t,n)===1&&m.push(p),m),[]);if(u.length===1)return u[0];u.length||yk(o.length,m=>u.push(m));const c=new Set,{bestIndex:f}=u.reduce((m,d)=>{const{bestScore:p}=m,k=o[d],v=ff(e,t,k,r,s);return c.add(v),v>p?{bestIndex:d,bestScore:v}:m},{bestIndex:a,bestScore:0});return c.size===1&&a>=0?a:f}function zk(e){const t=e[Kt],r=vr(e);return be(t)&&Nn(t==null?void 0:t.$data)&&r!=="object"&&r!=="array"}function Uk(e){return Array.isArray(e.enum)&&e.enum.length===1||Kt in e}function Cd(e){return Array.isArray(e.items)&&e.items.every(t=>be(t))}function ra(e){return e==null}function ts(e,t,r=!1,i=!1,a=!1){if(Array.isArray(t)){const n=Array.isArray(e)?e:[],s=a?n:t,o=a?t:n,l=s.map((u,c)=>o[c]!==void 0?ts(n[c],t[c],r,i,a):u);return(r||a)&&l.length<o.length&&l.push(...o.slice(l.length)),l}if(be(t)){const n=Object.assign({},e);return Object.keys(t).reduce((s,o)=>{var l;const u=ae(t,o),c=be(e)&&o in e,f=o in t,m=(l=ae(e,o))!==null&&l!==void 0?l:{},d=c&&be(m)&&Object.values(m).some(v=>be(v)),p=c&&be(ae(e,o)),k=f&&be(u);return p&&k&&!d?(s[o]={...ae(e,o),...u},s):(s[o]=ts(ae(e,o),u,r,i,a&&(c||!f)),n)},n)}return i&&(e!==void 0&&ra(t)||typeof t=="number"&&Number.isNaN(t))||a&&!ra(t)?e:t}function Fn(e,t,r=!1){return Object.keys(t).reduce((i,a)=>{const n=e?e[a]:{},s=t[a];if(e&&a in e&&be(s))i[a]=Fn(n,s,r);else if(r&&Array.isArray(n)&&Array.isArray(s)){let o=s;r==="preventDuplicates"&&(o=s.reduce((l,u)=>(n.includes(u)||l.push(u),l),[])),i[a]=n.concat(o)}else i[a]=s;return i},{...e})}function BN(e){if(u_ in e&&Array.isArray(e.enum)&&e.enum.length===1)return e.enum[0];if(Kt in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function VN(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 s=r.get(String(n));return s?[s]:[]})}function di(e,t){if(e.enum){let n,s;if(t){const{enumNames:l,enumOrder:u}=me(t);n=l,s=u}let o=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 s&&(o=VN(o,s)),o}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=yr(e);if(t){const{optionsSchemaSelector:n=a}=me(t);a=n}return r==null?void 0:r.map((n,s)=>{var o,l,u;const{title:c}=me(i==null?void 0:i[s]),f=n;let m,d=c;if(a){const p=ae(f,[ze,a],{});m=ae(p,li,ae(p,Kt)),d=(l=(o=d??(p==null?void 0:p.title))!==null&&o!==void 0?o:f.title)!==null&&l!==void 0?l:String(m)}else m=BN(f),d=(u=d??f.title)!==null&&u!==void 0?u:String(m);return{schema:f,label:d,value:m}})}function _l(e,t,r={},i){const a=Ft(e,t,r,void 0,i),n=a.oneOf||a.anyOf;return Array.isArray(a.enum)?!0:Array.isArray(n)?n.every(s=>typeof s!="boolean"&&Uk(s)):!1}function Ed(e,t,r,i){return!t.uniqueItems||!t.items||typeof t.items=="boolean"?!1:_l(e,t.items,r,i)}const HN=["string","number","integer","boolean","null"];var na;(function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"})(na||(na={}));function qu(e,t=na.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!==na.Ignore&&be(e.additionalItems)?e.additionalItems:{}}function Bk(e,t){const{default:r,type:i}=e;return Array.isArray(i)&&i.includes("null")&&wt(t)&&r===null?null:t}function ch(e,t,r,i,a,n=[],s={},o=!1,l=!1){const{emptyObjectFields:u="populateAllDefaults"}=s;if(i===!0||o)e[t]=r;else if(i==="excludeObjectChildren")(l&&r!==void 0||!be(r)||!wt(r))&&(e[t]=r);else if(u!=="skipDefaults"){const c=a===void 0?n.includes(t):a;be(r)?u==="skipEmptyDefaults"?wt(r)||(e[t]=r):(!wt(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 An(e,t,r={}){const{parentDefaults:i,rawFormData:a,rootSchema:n={},includeUndefinedValues:s=!1,_recurseList:o=[],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=o;if(p[Kt]!==void 0&&(l==null?void 0:l.constAsDefaults)!=="never"&&!zk(p))k=p[Kt];else if(be(k)&&be(p.default)&&!p[Le]&&!p[Ae]&&!p[at])v?k=Fn(p.default,k):k=Fn(k,p.default);else if(li in p&&!v&&!p[Le]&&!p[Ae]&&!p[at])k=p.default;else if(at in p){const y=p[at];o.includes(y)||(w=o.concat(y),g=Xa(y,n));const S=a===void 0||be(a)&&wt(a);g&&!k&&S&&(k=p.default),f&&g&&!be(a)&&(d=a)}else if(ed in p){const y={...fh(e,p,r,k),...d};[g]=Mk(e,p,n,!1,[],y,u)}else if(Cd(p)&&!v)k=p.items.map((y,S)=>An(e,y,{rootSchema:n,includeUndefinedValues:s,_recurseList:o,experimental_defaultFormStateBehavior:l,experimental_customMergeAllOf:u,parentDefaults:Array.isArray(i)?i[S]:void 0,rawFormData:d,required:c,shouldMergeDefaultsIntoFormData:f}));else if(Ae in p){const{oneOf:y,...S}=p;if(y.length===0)return;const A=yr(p),{type:_="null"}=S;!Array.isArray(_)&&HN.includes(_)&&(b==null?void 0:b.constAsDefaults)==="skipOneOf"&&(b={...b,constAsDefaults:"never"}),g=y[ta(e,n,a??p.default,y,0,A,u)],g=an(S,g)}else if(Le in p){const{anyOf:y,...S}=p;if(y.length===0)return;const A=yr(p);g=y[ta(e,n,a??p.default,y,0,A,u)],g=an(S,g)}if(g)return An(e,g,{rootSchema:n,includeUndefinedValues:s,_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 C=fh(e,p,r,k);let h=C??k;if(f){const{arrayMinItems:y={}}=l||{},{mergeExtraDefaults:S}=y,A=Ad(e,p,n,a,l,u);(!be(a)||Hr in p)&&(h=ts(h,A,S,!0))}return h}function Ad(e,t,r,i,a,n){const s=(a==null?void 0:a.allOf)==="populateDefaults"&&Hr in t,o=s?Ft(e,t,r,i,n):t,l=!Uk(o)&&_l(e,o,r,n);let u=i;if(l){const f=di(o);u=(f==null?void 0:f.some(d=>$e(d.value,i)))?i:void 0}return o[Kt]&&(a==null?void 0:a.constAsDefaults)==="always"?u=o.const:be(u)&&be(o.properties)&&(u=Object.keys(o.properties).reduce((f,m)=>{const d=ae(o,[ze,m],{});return m in f&&(s||be(d)&&Hr in d)&&(f[m]=Ad(e,d,r,ae(f,m),a,n)),f},{...u})),u}function KN(e,t,{rawFormData:r,rootSchema:i={},includeUndefinedValues:a=!1,_recurseList:n=[],experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,required:l,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c}={},f){{const m=be(r)?r:{},d=t,k=(s==null?void 0:s.allOf)==="populateDefaults"&&Hr in d||(s==null?void 0:s.emptyObjectFields)!=="skipEmptyDefaults"&&td in d?Ft(e,d,i,m,o):d,v=k[Kt],g=Object.keys(k.properties||{}).reduce((b,w)=>{var C;const h=ae(k,[ze,w],{}),y=be(v)&&v[w]!==void 0,S=(be(h)&&Kt in h||y)&&(s==null?void 0:s.constAsDefaults)!=="never"&&!zk(h),A=An(e,h,{rootSchema:i,_recurseList:n,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,includeUndefinedValues:a===!0,parentDefaults:ae(f,[w]),rawFormData:ae(m,[w]),required:(C=k.required)===null||C===void 0?void 0:C.includes(w),shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c});return ch(b,w,A,a,l,k.required,s,S,(h==null?void 0:h.type)==="null"),b},{});if(k.additionalProperties&&!c){const b=be(k.additionalProperties)?k.additionalProperties:{},w=new Set,C=[];Object.keys(m).filter(h=>!k.properties||!k.properties[h]).forEach(h=>{w.add(h),C.push(h)}),be(f)&&C.length===0&&Object.keys(f).filter(h=>!k.properties||!k.properties[h]).forEach(h=>w.add(h)),w.forEach(h=>{var y;const S=An(e,b,{rootSchema:i,_recurseList:n,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,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});ch(g,h,S,a,l,C)})}return Bk(t,g)}}function WN(e,t,{rawFormData:r,rootSchema:i={},_recurseList:a=[],experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,required:o,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",C=g==="requiredOnly",h=g==="all"||!w&&!C,y=(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(p)&&(p=p.map((E,O)=>{const R=qu(k,na.Fallback,O),T=Array.isArray(r)?r[O]:void 0;return An(e,R,{rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,parentDefaults:E,rawFormData:T,required:o,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c})})),Array.isArray(r)){const E=qu(k);if(w)p=r;else{const O=r.map((T,D)=>An(e,E,{rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,rawFormData:T,parentDefaults:ae(p,[D]),required:o,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c}));p=ts(p,O,(C&&o||h)&&b)}}const _=Array.isArray(p)?p.length:0;if(w)return u&&!o?p:p??A;if(C&&!o)return p||void 0;let x;if(!k.minItems||Ed(e,k,i,s)||y(e,k,i)||k.minItems<=_)x=p||!o&&!l?p:A;else{const E=p||[],O=qu(k,na.Invert),R=O.default,T=Array.from({length:k.minItems-_},()=>An(e,O,{parentDefaults:R,rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,required:o,shouldMergeDefaultsIntoFormData:u}));x=E.concat(T)}return Bk(t,x)}function fh(e,t,r={},i){switch(vr(t)){case"object":return KN(e,t,r,i);case"array":return WN(e,t,r,i);default:return}}function Vk(e,t,r,i,a=!1,n,s,o){if(!be(t))throw new Error(`Invalid schema: ${t}`);const l=Ft(e,t,i,r,s),u=An(e,l,{rootSchema:i,includeUndefinedValues:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,rawFormData:r,shouldMergeDefaultsIntoFormData:!0,initialDefaultsGenerated:o,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=Ad(e,l,i??l,r,n,s);return ts(u,m,!0,f,!0)}return u}function Hk(e={}){return"widget"in me(e)&&me(e).widget!=="hidden"}function Kk(e,t,r={},i,a){if(r[id]==="files")return!0;if(t.items){const n=Ft(e,t.items,i,void 0,a);return n.type==="string"&&n.format==="data-url"}return!1}function GN(e,t,r={},i,a,n){const s=me(r,a),{label:o=!0}=s;let l=!!o;if(l){const u=vr(t),c=!!t[Sn];u==="array"&&(l=c||Ed(e,t,i,n)||Kk(e,t,r,i,n)||Hk(r)),u==="object"&&(l=c),u==="boolean"&&r&&!r[id]&&(l=!1),r!=null&&r[m_]&&(l=!1)}return l}function Wk(e,t,r){for(var i=-1,a=t.length,n={};++i<a;){var s=t[i],o=wl(e,s);r(o,s)&&kd(n,la(s,e),o)}return n}function JN(e,t){return Wk(e,t,function(r,i){return xk(e,i)})}var Gk=ck(function(e,t){return e==null?{}:JN(e,t)});function YN(e,t){if(t.length===0&&typeof e!="object")return e;const r=Gk(e,t);return Array.isArray(e)?Object.keys(r).map(i=>r[i]):r}function XN(e,t){const r=(a,n)=>typeof a!="object"||wt(a)||n&&!wt(a),i=(a,n=[],s=[[]])=>{const o=Object.keys(a);return o.forEach(l=>{const u=a[l];if(typeof u=="object"){const c=s.map(f=>[...f,l]);u[nd]&&u[Ro]!==""?n.push(u[Ro]):i(u,n,c)}else l===Ro&&u!==""&&s.forEach(c=>{const f=ae(t,c),m=o.length===1;(r(f,m)||Array.isArray(f)&&f.every(d=>r(d,m)))&&n.push(c)})}),n};return i(e)}function Jk(e){return ra(e)||e===""?!0:Array.isArray(e)?e.length===0:be(e)?Object.values(e).every(Jk):!1}function ZN(e,t){return t?t(e):Tk(e)}function QN(e,t,r={},i,a){function n(p){return be(p)}function s(p){return be(p)}function o(p,k,v){var g;const{properties:b,additionalProperties:w,patternProperties:C,propertyNames:h}=p,y=new Set((g=p.required)!==null&&g!==void 0?g:[]);function S(_,x,E,O=!1){var R;const T=d(x,E,v[_]);if(!O&&be(T)){let D=s(x)?x:{};D.$ref!==void 0&&(D=Xa(D.$ref,r));const L=new Set((R=D.required)!==null&&R!==void 0?R:[]);if(Object.entries(T).every(([X,Z])=>!L.has(X)&&Jk(Z)))return}T!==void 0&&(v[_]=T)}if(b!==void 0)for(const[_,x]of Object.entries(b))S(_,x,k[_],y.has(_));let A;if(C!==void 0){A=[];const _=Object.entries(C).map(([E,O])=>[new RegExp(E),O]),x=new Set(Object.keys(b??{}));for(const[E,O]of Object.entries(k))if(!x.has(E)){const R=_.find(([T])=>T.test(E));R===void 0?A.push(E):S(E,R[1],O)}}if(w!==void 0&&w!==!1){const _=w;if(A!==void 0)for(const x of A)S(x,_,k[x]);else{const x=new Set(Object.keys(b??{}));for(const[E,O]of Object.entries(k))x.has(E)||S(E,_,O)}}if(h!==void 0)for(const[_,x]of Object.entries(k))v[_]=x;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=(s(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)||_l(e,k,r,a))return g;const b=Dk(p,!0,r),w=ta(e,r,v,b,0,yr(k),a),C=p[w],h=be(C)?En(C,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,C]of Object.entries(g))w in k&&!Array.isArray(C)&&(b=d(C,k,b));return b}function d(p,k,v){if(k===void 0||p===!1)return;if(p===!0||wt(p))return k;let g=p;const{$ref:b,allOf:w}=g;if(b!==void 0)return d(Xa(b,r),k,v);if(w){g=ZN(g,a);const y=g.allOf;if(y)for(let S=0;S<y.length;S++)v=d(y[S],k,v)}let C=f(g,k,c(g.oneOf,g,k,v));const h=vr(g);if(h==="object"){if(!n(k))return;C=o(g,k,n(C)?C:{})}else if(h==="array"){if(!Array.isArray(k))return;C=l(g,k,Array.isArray(C)?C:[])}else C===void 0&&(C=k);return m(g,k,u(g,k,C))}return d(t,i)}const or=Symbol("no Value");function Yk(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=>Kt in i?i[Kt]:Array.isArray(i.enum)&&i.enum.length===1?i.enum[0]:or).filter(i=>i!==or);return r.length>0?r:void 0}function eF(e,t){const r=Yk(e);if(!r||r.some(a=>$e(a,t)))return or;const i=ae(e,li,or);return i!==or&&r.some(a=>$e(a,i))?i:r.length===1?r[0]:void 0}function df(e,t,r,i,a={},n){let s;if(qe(r,ze)){const o={};if(qe(i,ze)){const c=ae(i,ze,{});Object.keys(c).forEach(f=>{qe(a,f)&&(o[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],{});qe(m,at)&&(m=Ft(e,m,t,f,n)),qe(d,at)&&(d=Ft(e,d,t,f,n));const p=ae(m,"type"),k=ae(d,"type");if(!p||p===k)if(qe(o,c)&&delete o[c],k==="object"||k==="array"&&Array.isArray(f)){const v=df(e,t,d,m,f,n);(v!==void 0||k==="array")&&(u[c]=v)}else{const v=ae(d,li,or),g=ae(m,li,or);v!==or&&v!==f&&(g===f?o[c]=v:ae(d,"readOnly")===!0&&(o[c]=void 0));const b=ae(d,Kt,or),w=ae(m,Kt,or);if(b!==or&&b!==f&&(o[c]=w===f?b:void 0),qe(a,c)){const C=eF(d,f);C!==or&&(o[c]=C)}}}),s={...typeof a=="string"||Array.isArray(a)?void 0:a,...o,...u}}else if(ae(i,"type")==="array"&&ae(r,"type")==="array"&&Array.isArray(a)){let o=ae(i,"items"),l=ae(r,"items");if(typeof o=="object"&&typeof l=="object"&&!Array.isArray(o)&&!Array.isArray(l)){qe(o,at)&&(o=Ft(e,o,t,a,n)),qe(l,at)&&(l=Ft(e,l,t,a,n));const u=ae(o,"type"),c=ae(l,"type");if(!u||u===c){const f=ae(r,"maxItems",-1);if(c==="object")s=a.reduce((m,d)=>{const p=df(e,t,l,o,d,n);return p!==void 0&&(f<0||m.length<f)&&m.push(p),m},[]);else{const m=Yk(l),d=m?a.filter(p=>m.some(k=>$e(k,p))):a;s=f>0&&d.length>f?d.slice(0,f):d}}}else typeof o=="boolean"&&typeof l=="boolean"&&o===l&&(s=a)}return s}function kn(e,t,r,i,a,n=[],s){if(at in t||ed in t||Hr in t||td in t){const l=Ft(e,t,i,a,s);if(n.findIndex(c=>$e(c,l))===-1)return kn(e,l,r,i,a,n.concat(l),s)}let o={[Ro]:r.replace(/^\./,"")};if(Ae in t||Le in t){const l=Ae in t?t.oneOf:t.anyOf,u=yr(t),c=ta(e,i,a,l,0,u,s),f=l[c];o={...o,...kn(e,f,r,i,a,n,s)}}if(qi in t&&t[qi]!==!1){lt(o,nd,!0);const l=Ue(t[qi])?t[qi]:{},u=ae(t,ze,{});for(const c of Object.keys(a??{}))c in u||(o[c]=kn(e,l,`${r}.${c}`,i,ae(a,[c]),n,s))}if(Zi in t&&Array.isArray(a)){const{items:l,additionalItems:u}=t;Array.isArray(l)?a.forEach((c,f)=>{l[f]?o[f]=kn(e,l[f],`${r}.${f}`,i,c,n,s):u?o[f]=kn(e,u,`${r}.${f}`,i,c,n,s):console.warn(`Unable to generate path schema for "${r}.${f}". No schema defined for it`)}):a.forEach((c,f)=>{o[f]=kn(e,l,`${r}.${f}`,i,c,n,s)})}else if(ze in t)for(const l in t.properties){const u=ae(t,[ze,l],{});o[l]=kn(e,u,`${r}.${l}`,i,ae(a,[l]),n,s)}return o}function tF(e,t,r="",i,a,n){return kn(e,t,r,i,a,void 0,n)}class rF{constructor(t,r,i,a){(r==null?void 0:r[Ta])===Fo?this.rootSchema=lf(r,ae(r,nt,"#")):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||!$e(this.rootSchema,r)||!$e(this.experimental_defaultFormStateBehavior,i)||this.experimental_customMergeAllOf!==a}findFieldInSchema(t,r,i){return MN(this.validator,this.rootSchema,t,r,i,this.experimental_customMergeAllOf)}findSelectedOptionInXxxOf(t,r,i,a){return Ra(this.validator,this.rootSchema,t,r,i,a,this.experimental_customMergeAllOf)}getDefaultFormState(t,r,i=!1,a){return Vk(this.validator,t,r,this.rootSchema,i,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf,a)}getDisplayLabel(t,r,i){return GN(this.validator,t,r,this.rootSchema,i,this.experimental_customMergeAllOf)}getClosestMatchingOption(t,r,i,a){return ta(this.validator,this.rootSchema,t,r,i,a,this.experimental_customMergeAllOf)}getFirstMatchingOption(t,r,i){return el(this.validator,t,r,this.rootSchema,i)}getFromSchema(t,r,i){return Lo(this.validator,this.rootSchema,t,r,i,this.experimental_customMergeAllOf)}isFilesArray(t,r){return Kk(this.validator,t,r,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(t){return Ed(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(t){return _l(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}omitExtraData(t,r){return QN(this.validator,t,this.rootSchema,r)}retrieveSchema(t,r,i){return Ft(this.validator,t,this.rootSchema,r,this.experimental_customMergeAllOf,i)}sanitizeDataForNewSchema(t,r,i){return df(this.validator,this.rootSchema,t,r,i,this.experimental_customMergeAllOf)}toPathSchema(t,r,i){return tF(this.validator,t,r,this.rootSchema,i,this.experimental_customMergeAllOf)}}function nF(e,t,r={},i){return new rF(e,t,r,i)}function iF(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,[s,...o]=a.split(";"),l=s||"",u=decodeURI(((t=o.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 wn(e,t){let r=String(e);for(;r.length<t;)r=`0${r}`;return r}function Xk(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,s=r?a+t:t;if(n>s)return Xk(t,e).reverse();const o=[];for(let l=n;l<=s;l+=1)o.push({value:l,label:wn(l,2)});return o}function aF(e,t){let r=e;if(Array.isArray(t)){const i=r.split(/(%\d)/);t.forEach((a,n)=>{const s=i.findIndex(o=>o===`%${n+1}`);s>=0&&(i[s]=a)}),r=i.join("")}return r}function sF(e,t){return aF(e,t)}function Pl(e,t=[],r){if(Array.isArray(e))return e.map(n=>Pl(n,t)).filter(n=>n!==void 0);const i=e===""||e===null?-1:Number(e),a=t[i];return a?a.value:r}function Zk(e,t,r=[]){const i=Pl(e,r);return Array.isArray(t)?t.filter(a=>!$e(a,i)):$e(i,t)?void 0:t}function ca(e,t){return Array.isArray(t)?t.some(r=>$e(r,e)):$e(t,e)}function Qk(e,t=[],r=!1){const i=t.map((a,n)=>ca(a.value,e)?String(n):void 0).filter(a=>typeof a<"u");return r?i:i[0]}function oF(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 s=Qk(e,t,r);return typeof s>"u"?a:s}function e1(e,t,r=[]){const i=Pl(e,r);if(!ra(i)){const a=r.findIndex(o=>i===o.value),n=r.map(({value:o})=>o);return t.slice(0,a).concat(i,t.slice(a)).sort((o,l)=>+(n.indexOf(o)>n.indexOf(l)))}return t}function dh(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 _r(e,t,r="indexed",i){return r!=="realValue"?Pl(e,t,i):Array.isArray(e)?e.map(a=>dh(a,t,i)):dh(e,t,i)}function ps(e,t,r="indexed"){return r!=="realValue"?String(t):ra(e)?"":String(typeof e=="object"?t:e)}var lF=1,uF=4;function tl(e){return za(e,lF|uF)}function cF(e,t,r,i){return i=typeof i=="function"?i:void 0,e==null?e:kd(e,t,r,i)}class t1{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={},cF(this.errorSchema,t,i,Object)),i}resetAllErrors(t){return this.errorSchema=t?tl(t):{},this}addErrors(t,r){const i=this.getOrCreateErrorBlock(r);let a=ae(i,Nt);return Array.isArray(a)||(a=[],i[Nt]=a),Array.isArray(t)?lt(i,Nt,[...new Set([...a,...t])]):lt(i,Nt,[...new Set([...a,t])]),this}setErrors(t,r){const i=this.getOrCreateErrorBlock(r),a=Array.isArray(t)?[...new Set([...t])]:[t];return lt(i,Nt,a),this}clearErrors(t){const r=this.getOrCreateErrorBlock(t);return lt(r,Nt,[]),this}}var fF=200;function dF(e,t,r,i){var a=-1,n=Sd,s=!0,o=e.length,l=[],u=t.length;if(!o)return l;t.length>=fF&&(n=Qa,s=!1,t=new fi(t));e:for(;++a<o;){var c=e[a],f=c;if(c=c!==0?c:0,s&&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 mF=El(function(e,t){return Za(e)?dF(e,ms(t,1,Za,!0)):[]});function pF(e,t){if(e==null)return{};var r=oa(yd(e),function(i){return[i]});return t=xd(t),Wk(e,r,function(i,a){return t(i,a[0])})}function mh(e,t){const r=jn(e),i=jn(t);if(e===t||!r&&!i)return[];if(r&&!i)return Cr(e);if(!r&&i)return Cr(t);const a=Cr(pF(e,(s,o)=>!$e(s,ae(t,o)))),n=mF(Cr(t),Cr(e));return[...a,...n]}function hF(e,t,r=[1900,new Date().getFullYear()+2],i="YMD"){const{day:a,month:n,year:s,hour:o,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:s},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:o},{type:"minute",range:[0,59],value:l},{type:"second",range:[0,59],value:u}),d}function gF(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 yF(e,t,r={},i=!0){const a={type:t||"text",...gF(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 hs(e){var t;return(t=e==null?void 0:e.optionValueFormat)!==null&&t!==void 0?t:"indexed"}const ph={props:{disabled:!1},submitText:"Submit",norender:!1};function Od(e={}){const t=me(e);if(t!=null&&t[Jo]){const r=t[Jo];return{...ph,...r}}return ph}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 vF=0;function r1(e){var t=++vF;return od(e)+t}function _d(){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,r1("test-id-")),e.get(r)}})}var Ms={exports:{}},et={};/**
58
+ */var gp;function g_(){return gp||(gp=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n="",s=0;s<arguments.length;s++){var o=arguments[s];o&&(n=a(n,i(o)))}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 s="";for(var o in n)t.call(n,o)&&n[o]&&(s=a(s,o));return s}function a(n,s){return s?n?n+" "+s:n+s:n}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Ou)),Ou.exports}var y_=g_();const tn=Kr(y_);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 v_(e){return e.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),be(e.additionalItems)}function Rb(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 yp(e){if(e==="")return;if(e===null)return null;const t=Rb(),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 En=Symbol("__additional_property"),zi="additionalProperties",Hr="allOf",Le="anyOf",Wt="const",ci="default",ad="dependencies",b_="enum",Nt="__errors",nt="$id",sd="if",ea="items",k_="_$junk_option_schema_id$_",Mo="$name",Ae="oneOf",af="patternProperties",ze="properties",_u="readonly",Nb="required",Qo="submitButtonOptions",at="$ref",Lo=Symbol("__rjsf_ref"),od=Symbol("__rjsf_ref_cycle"),Na="$schema",Fb="root",Db="_",w_=["discriminator","propertyName"],vp="formContext",x_="layoutGridLookupMap",Mb="__rjsf",ld=`${Mb}_additionalProperties`,Lb=`${Mb}_rootSchema`,S_="ui:field",ud="ui:widget",An="ui:options",sf="ui:globalOptions",C_="ui:definitions",E_="https://json-schema.org/draft/2019-09/schema",qo="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===ud&&be(a)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):i===An&&be(a)?{...r,...a}:{...r,[i.substring(3)]:a}},{...t}):{...t}}function qb(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 $b=typeof global=="object"&&global&&global.Object===Object&&global,A_=typeof self=="object"&&self&&self.Object===Object&&self,Yr=$b||A_||Function("return this")(),hr=Yr.Symbol,zb=Object.prototype,O_=zb.hasOwnProperty,__=zb.toString,Ca=hr?hr.toStringTag:void 0;function P_(e){var t=O_.call(e,Ca),r=e[Ca];try{e[Ca]=void 0;var i=!0}catch{}var a=__.call(e);return i&&(t?e[Ca]=r:delete e[Ca]),a}var I_=Object.prototype,T_=I_.toString;function j_(e){return T_.call(e)}var R_="[object Null]",N_="[object Undefined]",bp=hr?hr.toStringTag:void 0;function on(e){return e==null?e===void 0?N_:R_:bp&&bp in Object(e)?P_(e):j_(e)}function Ub(e,t){return function(r){return e(t(r))}}var Sl=Ub(Object.getPrototypeOf,Object);function gr(e){return e!=null&&typeof e=="object"}var F_="[object Object]",D_=Function.prototype,M_=Object.prototype,Bb=D_.toString,L_=M_.hasOwnProperty,q_=Bb.call(Object);function Nn(e){if(!gr(e)||on(e)!=F_)return!1;var t=Sl(e);if(t===null)return!0;var r=L_.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Bb.call(r)==q_}function of(e){const t={[Nt]:[],addError(r){this[Nt].push(r)}};if(Array.isArray(e))return e.reduce((r,i,a)=>({...r,[a]:of(i)}),t);if(Nn(e)){const r=e;return Object.keys(r).reduce((i,a)=>({...i,[a]:of(r[a])}),t)}return t}var jt=Array.isArray,$_="[object Symbol]";function fs(e){return typeof e=="symbol"||gr(e)&&on(e)==$_}var z_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,U_=/^\w*$/;function cd(e,t){if(jt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||fs(e)?!0:U_.test(e)||!z_.test(e)||t!=null&&e in Object(t)}function Ue(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var B_="[object AsyncFunction]",V_="[object Function]",H_="[object GeneratorFunction]",W_="[object Proxy]";function ds(e){if(!Ue(e))return!1;var t=on(e);return t==V_||t==H_||t==B_||t==W_}var Pu=Yr["__core-js_shared__"],kp=(function(){var e=/[^.]+$/.exec(Pu&&Pu.keys&&Pu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function K_(e){return!!kp&&kp in e}var G_=Function.prototype,J_=G_.toString;function wi(e){if(e!=null){try{return J_.call(e)}catch{}try{return e+""}catch{}}return""}var Y_=/[\\^$.*+?()[\]{}|]/g,X_=/^\[object .+?Constructor\]$/,Z_=Function.prototype,Q_=Object.prototype,eP=Z_.toString,tP=Q_.hasOwnProperty,rP=RegExp("^"+eP.call(tP).replace(Y_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function nP(e){if(!Ue(e)||K_(e))return!1;var t=ds(e)?rP:X_;return t.test(wi(e))}function iP(e,t){return e==null?void 0:e[t]}function xi(e,t){var r=iP(e,t);return nP(r)?r:void 0}var Xa=xi(Object,"create");function aP(){this.__data__=Xa?Xa(null):{},this.size=0}function sP(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var oP="__lodash_hash_undefined__",lP=Object.prototype,uP=lP.hasOwnProperty;function cP(e){var t=this.__data__;if(Xa){var r=t[e];return r===oP?void 0:r}return uP.call(t,e)?t[e]:void 0}var fP=Object.prototype,dP=fP.hasOwnProperty;function mP(e){var t=this.__data__;return Xa?t[e]!==void 0:dP.call(t,e)}var pP="__lodash_hash_undefined__";function hP(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Xa&&t===void 0?pP:t,this}function fi(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])}}fi.prototype.clear=aP;fi.prototype.delete=sP;fi.prototype.get=cP;fi.prototype.has=mP;fi.prototype.set=hP;function gP(){this.__data__=[],this.size=0}function ms(e,t){return e===t||e!==e&&t!==t}function Cl(e,t){for(var r=e.length;r--;)if(ms(e[r][0],t))return r;return-1}var yP=Array.prototype,vP=yP.splice;function bP(e){var t=this.__data__,r=Cl(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():vP.call(t,r,1),--this.size,!0}function kP(e){var t=this.__data__,r=Cl(t,e);return r<0?void 0:t[r][1]}function wP(e){return Cl(this.__data__,e)>-1}function xP(e,t){var r=this.__data__,i=Cl(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function ln(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])}}ln.prototype.clear=gP;ln.prototype.delete=bP;ln.prototype.get=kP;ln.prototype.has=wP;ln.prototype.set=xP;var Za=xi(Yr,"Map");function SP(){this.size=0,this.__data__={hash:new fi,map:new(Za||ln),string:new fi}}function CP(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function El(e,t){var r=e.__data__;return CP(t)?r[typeof t=="string"?"string":"hash"]:r.map}function EP(e){var t=El(this,e).delete(e);return this.size-=t?1:0,t}function AP(e){return El(this,e).get(e)}function OP(e){return El(this,e).has(e)}function _P(e,t){var r=El(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function un(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])}}un.prototype.clear=SP;un.prototype.delete=EP;un.prototype.get=AP;un.prototype.has=OP;un.prototype.set=_P;var PP="Expected a function";function fd(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(PP);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 s=e.apply(this,i);return r.cache=n.set(a,s)||n,s};return r.cache=new(fd.Cache||un),r}fd.Cache=un;var IP=500;function TP(e){var t=fd(e,function(i){return r.size===IP&&r.clear(),i}),r=t.cache;return t}var jP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,RP=/\\(\\)?/g,Vb=TP(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(jP,function(r,i,a,n){t.push(a?n.replace(RP,"$1"):i||r)}),t});function ua(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 wp=hr?hr.prototype:void 0,xp=wp?wp.toString:void 0;function Hb(e){if(typeof e=="string")return e;if(jt(e))return ua(e,Hb)+"";if(fs(e))return xp?xp.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function dd(e){return e==null?"":Hb(e)}function ca(e,t){return jt(e)?e:cd(e,t)?[e]:Vb(dd(e))}function Fn(e){if(typeof e=="string"||fs(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Al(e,t){t=ca(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[Fn(t[r++])];return r&&r==i?e:void 0}function ae(e,t,r){var i=e==null?void 0:Al(e,t);return i===void 0?r:i}const{getOwnPropertyNames:Sp,getOwnPropertySymbols:NP}=Object,{hasOwnProperty:FP}=Object.prototype;function Iu(e,t){return function(i,a,n){return e(i,a,n)&&t(i,a,n)}}function Ls(e){return function(r,i,a){if(!r||!i||typeof r!="object"||typeof i!="object")return e(r,i,a);const{cache:n}=a,s=n.get(r),o=n.get(i);if(s&&o)return s===i&&o===r;n.set(r,i),n.set(i,r);const l=e(r,i,a);return n.delete(r),n.delete(i),l}}function Cp(e){const t=NP(e);return t.length?Sp(e).concat(t):Sp(e)}const DP=Object.hasOwn||((e,t)=>FP.call(e,t)),MP="__v",LP="__o",qP="_owner",{getOwnPropertyDescriptor:Ep,keys:Ap}=Object,Si=Object.is||function(t,r){return t===r?t!==0||1/t===1/r:t!==t&&r!==r};function $P(e,t){return e===t}function zP(e,t){return e.byteLength===t.byteLength&&el(new Uint8Array(e),new Uint8Array(t))}function UP(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 BP(e,t){return e.byteLength===t.byteLength&&el(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function VP(e,t){return Si(e.getTime(),t.getTime())}function HP(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Op(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 s,o,l=0;for(;(s=n.next())&&!s.done;){const u=t.entries();let c=0,f=0;for(;(o=u.next())&&!o.done;){if(a[f]){f++;continue}const m=s.value,d=o.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 WP(e,t,r){const i=Ap(e);let a=i.length;if(Ap(t).length!==a)return!1;for(;a-- >0;)if(!Wb(e,t,r,i[a]))return!1;return!0}function Ea(e,t,r){const i=Cp(e);let a=i.length;if(Cp(t).length!==a)return!1;let n,s,o;for(;a-- >0;)if(n=i[a],!Wb(e,t,r,n)||(s=Ep(e,n),o=Ep(t,n),(s||o)&&(!s||!o||s.configurable!==o.configurable||s.enumerable!==o.enumerable||s.writable!==o.writable)))return!1;return!0}function KP(e,t){return Si(e.valueOf(),t.valueOf())}function GP(e,t){return e.source===t.source&&e.flags===t.flags}function _p(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 s,o;for(;(s=n.next())&&!s.done;){const l=t.values();let u=0,c=0;for(;(o=l.next())&&!o.done;){if(!a[c]&&r.equals(s.value,o.value,s.value,o.value,e,t,r)){u=a[c]=1;break}c++}if(!u)return!1}return!0}function el(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 JP(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 Wb(e,t,r,i){return(i===qP||i===LP||i===MP)&&(e.$$typeof||t.$$typeof)?!0:DP(t,i)&&r.equals(e[i],t[i],i,i,e,t,r)}const YP=Object.prototype.toString;function XP(e){const t=tI(e),{areArraysEqual:r,areDatesEqual:i,areFunctionsEqual:a,areMapsEqual:n,areNumbersEqual:s,areObjectsEqual:o,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"?s(m,d,p):k==="function"?a(m,d,p):!1;const v=m.constructor;if(v!==d.constructor)return!1;if(v===Object)return o(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=YP.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 ZP({circular:e,createCustomConfig:t,strict:r}){let i={areArrayBuffersEqual:zP,areArraysEqual:r?Ea:UP,areDataViewsEqual:BP,areDatesEqual:VP,areErrorsEqual:HP,areFunctionsEqual:$P,areMapsEqual:r?Iu(Op,Ea):Op,areNumbersEqual:Si,areObjectsEqual:r?Ea:WP,arePrimitiveWrappersEqual:KP,areRegExpsEqual:GP,areSetsEqual:r?Iu(_p,Ea):_p,areTypedArraysEqual:r?Iu(el,Ea):el,areUrlsEqual:JP,getUnsupportedCustomComparator:void 0};if(t&&(i=Object.assign({},i,t(i))),e){const a=Ls(i.areArraysEqual),n=Ls(i.areMapsEqual),s=Ls(i.areObjectsEqual),o=Ls(i.areSetsEqual);i=Object.assign({},i,{areArraysEqual:a,areMapsEqual:n,areObjectsEqual:s,areSetsEqual:o})}return i}function QP(e){return function(t,r,i,a,n,s,o){return e(t,r,o)}}function eI({circular:e,comparator:t,createState:r,equals:i,strict:a}){if(r)return function(o,l){const{cache:u=e?new WeakMap:void 0,meta:c}=r();return t(o,l,{cache:u,equals:i,meta:c,strict:a})};if(e)return function(o,l){return t(o,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(o,l){return t(o,l,n)}}function tI({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:i,areErrorsEqual:a,areFunctionsEqual:n,areMapsEqual:s,areNumbersEqual:o,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]":o,"[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]":s,"[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}}cn();cn({strict:!0});cn({circular:!0});cn({circular:!0,strict:!0});cn({createInternalComparator:()=>Si});cn({strict:!0,createInternalComparator:()=>Si});cn({circular:!0,createInternalComparator:()=>Si});cn({circular:!0,createInternalComparator:()=>Si,strict:!0});function cn(e={}){const{circular:t=!1,createInternalComparator:r,createState:i,strict:a=!1}=e,n=ZP(e),s=XP(n),o=r?r(s):QP(s);return eI({circular:t,comparator:s,createState:i,equals:o,strict:a})}const $e=cn({circular:!0,createCustomConfig:()=>({areFunctionsEqual(e,t){return typeof t=="function"}})});var Aa={exports:{}},Tu,Pp;function Kb(){if(Pp)return Tu;Pp=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 s(C){let E="",O=0,R=0;for(R=0;R<C.length;R++)if(O=C[R].charCodeAt(0),O!==48){if(!(O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102))return"";E+=C[R];break}for(R+=1;R<C.length;R++){if(O=C[R].charCodeAt(0),!(O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102))return"";E+=C[R]}return E}const o=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function l(C){return C.length=0,!0}function u(C,E,O){if(C.length){const R=s(C);if(R!=="")E.push(R);else return O.error=!0,!1;C.length=0}return!0}function c(C){let E=0;const O={error:!1,address:"",zone:""},R=[],T=[];let D=!1,L=!1,H=u;for(let Y=0;Y<C.length;Y++){const Z=C[Y];if(!(Z==="["||Z==="]"))if(Z===":"){if(D===!0&&(L=!0),!H(T,R,O))break;if(++E>7){O.error=!0;break}Y>0&&C[Y-1]===":"&&(D=!0),R.push(":");continue}else if(Z==="%"){if(!H(T,R,O))break;H=l}else{T.push(Z);continue}}return T.length&&(H===l?O.zone=T.join(""):L?R.push(T.join("")):R.push(s(T))),O.address=R.join(""),O}function f(C){if(m(C,":")<2)return{host:C,isIPV6:!1};const E=c(C);if(E.error)return{host:C,isIPV6:!1};{let O=E.address,R=E.address;return E.zone&&(O+="%"+E.zone,R+="%25"+E.zone),{host:O,isIPV6:!0,escapedHost:R}}}function m(C,E){let O=0;for(let R=0;R<C.length;R++)C[R]===E&&O++;return O}function d(C){let E=C;const O=[];let R=-1,T=0;for(;T=E.length;){if(T===1){if(E===".")break;if(E==="/"){O.push("/");break}else{O.push(E);break}}else if(T===2){if(E[0]==="."){if(E[1]===".")break;if(E[1]==="/"){E=E.slice(2);continue}}else if(E[0]==="/"&&E[1]==="."){O.push("/");break}}else if(T===3&&E==="/.."){O.length!==0&&O.pop(),O.push("/");break}if(E[0]==="."){if(E[1]==="."){if(E[2]==="/"){E=E.slice(3);continue}}else if(E[1]==="/"){E=E.slice(2);continue}}else if(E[0]==="/"&&E[1]==="."){if(E[2]==="/"){E=E.slice(2);continue}else if(E[2]==="."&&E[3]==="/"){E=E.slice(3),O.length!==0&&O.pop();continue}}if((R=E.indexOf("/",1))===-1){O.push(E);break}else O.push(E.slice(0,R)),E=E.slice(R)}return O.join("")}const p={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},k=/[@/?#:]/g,v=/[@/?#]/g;function g(C,E){const O=E?v:k;return O.lastIndex=0,C.replace(O,R=>p[R])}function b(C,E=!1){if(C.indexOf("%")===-1)return C;let O="";for(let R=0;R<C.length;R++){if(C[R]==="%"&&R+2<C.length){const T=C.slice(R+1,R+3);if(r(T)){const D=T.toUpperCase(),L=String.fromCharCode(parseInt(D,16));E&&i(L)?O+=L:O+="%"+D,R+=2;continue}}O+=C[R]}return O}const w=new Array(256);{const C="0123456789ABCDEF";for(let E=0;E<256;E++)w[E]="%"+C[E>>4]+C[E&15]}function x(C){return C>=48&&C<=57||C>=65&&C<=90||C>=97&&C<=122||C===42||C===43||C===45||C===46||C===47||C===64||C===95}function h(C){return C<2048?w[192|C>>6]+w[128|C&63]:C<65536?w[224|C>>12]+w[128|C>>6&63]+w[128|C&63]:w[240|C>>18]+w[128|C>>12&63]+w[128|C>>6&63]+w[128|C&63]}function y(C){let E="";for(let O=0;O<C.length;O++){const R=C[O];if(R==="%"&&O+2<C.length){const T=C.slice(O+1,O+3);if(r(T)){const D=T.toUpperCase(),L=String.fromCharCode(parseInt(D,16));L!=="."&&i(L)?E+=L:E+="%"+D,O+=2;continue}}if(a(R))E+=R;else{const T=C.charCodeAt(O);if(T<128)E+=x(T)?R:w[T];else if(T<55296||T>57343)E+=h(T);else if(T<=56319&&O+1<C.length){const D=C.charCodeAt(O+1);D>=56320&&D<=57343?(E+=h(65536+(T-55296<<10)+(D-56320)),O++):E+=h(65533)}else E+=h(65533)}}return E}function S(C){let E="";for(let O=0;O<C.length;O++){const R=C[O];if(R==="%"&&O+2<C.length){const T=C.slice(O+1,O+3);if(r(T)){const D=T.toUpperCase(),L=String.fromCharCode(parseInt(D,16));i(L)?E+=L:E+="%"+D,O+=2;continue}}if(n(R))E+=R;else{const T=C.charCodeAt(O);if(T<128)E+=x(T)?R:w[T];else if(T<55296||T>57343)E+=h(T);else if(T<=56319&&O+1<C.length){const D=C.charCodeAt(O+1);D>=56320&&D<=57343?(E+=h(65536+(T-55296<<10)+(D-56320)),O++):E+=h(65533)}else E+=h(65533)}}return E}function A(C){let E="";for(let O=0;O<C.length;O++){const R=C[O];if(R==="%"&&O+2<C.length){const D=C.slice(O+1,O+3);if(r(D)){E+="%"+D.toUpperCase(),O+=2;continue}}const T=C.charCodeAt(O);if(T<128)E+=x(T)?R:w[T];else if(T<55296||T>57343)E+=h(T);else if(T<=56319&&O+1<C.length){const D=C.charCodeAt(O+1);D>=56320&&D<=57343?(E+=h(65536+(T-55296<<10)+(D-56320)),O++):E+=h(65533)}else E+=h(65533)}return E}function _(C){const E=[];if(C.userinfo!==void 0&&(E.push(C.userinfo),E.push("@")),C.host!==void 0){let O=unescape(C.host);if(!t(O)){const R=f(O);R.isIPV6===!0?O=`[${R.escapedHost}]`:O=g(O,!1)}E.push(O)}return(typeof C.port=="number"||typeof C.port=="string")&&(E.push(":"),E.push(String(C.port))),E.length?E.join(""):void 0}return Tu={nonSimpleDomain:o,recomposeAuthority:_,reescapeHostDelimiters:g,normalizePercentEncoding:b,normalizePathEncoding:y,normalizeQueryFragmentEncoding:S,escapePreservingEscapes:A,removeDotSegments:d,isIPv4:t,isUUID:e,normalizeIPv6:f,stringArrayToHexStripped:s},Tu}var ju,Ip;function rI(){if(Ip)return ju;Ip=1;const{isUUID:e}=Kb(),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 s(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 o(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,S]=h.resourceName.split("?");h.path=y&&y!=="/"?y:void 0,h.query=S,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 S=h.path.match(t);if(S){const A=y.scheme||h.scheme||"urn";h.nid=S[1].toLowerCase(),h.nss=S[2];const _=`${A}:${y.nid||h.nid}`,C=x(_);h.path=void 0,C&&(h=C.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 S=y.scheme||h.scheme||"urn",A=h.nid.toLowerCase(),_=`${S}:${y.nid||A}`,C=x(_);C&&(h=C.serialize(h,y));const E=h,O=h.nss;return E.path=`${A||y.nid}:${O}`,y.skipEscape=!0,E}function f(h,y){const S=h;return S.uuid=S.nss,S.nss=void 0,!y.tolerant&&(!S.uuid||!e(S.uuid))&&(S.error=S.error||"UUID is not valid."),S}function m(h){const y=h;return y.nss=(h.uuid||"").toLowerCase(),y}const d={scheme:"http",domainHost:!0,parse:n,serialize:s},p={scheme:"https",domainHost:d.domainHost,parse:n,serialize:s},k={scheme:"ws",domainHost:!0,parse:o,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 x(h){return h&&(w[h]||w[h.toLowerCase()])||void 0}return ju={wsIsSecure:a,SCHEMES:w,isValidSchemeName:i,getSchemeHandler:x},ju}var Tp;function nI(){if(Tp)return Aa.exports;Tp=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:i,normalizePathEncoding:a,normalizeQueryFragmentEncoding:n,escapePreservingEscapes:s,reescapeHostDelimiters:o,isIPv4:l,nonSimpleDomain:u}=Kb(),{SCHEMES:c,getSchemeHandler:f}=rI();function m(E,O){return typeof E=="string"?E=S(E,O):typeof E=="object"&&(E=y(v(E,O),O)),E}function d(E,O,R){const T=R?Object.assign({scheme:"null"},R):{scheme:"null"},{parsed:D,malformedAuthorityOrPort:L}=h(E,T),{parsed:H,malformedAuthorityOrPort:Y}=h(O,T);if(L||Y)throw new Error(D.error||H.error||"URI is malformed.");const Z=p(D,H,T,!0);return T.skipEscape=!0,v(Z,T)}function p(E,O,R,T){const D={};return T||(E=y(v(E,R),R),O=y(v(O,R),R)),R=R||{},!R.tolerant&&O.scheme?(D.scheme=O.scheme,D.userinfo=O.userinfo,D.host=O.host,D.port=O.port,D.path=t(O.path||""),D.query=O.query):(O.userinfo!==void 0||O.host!==void 0||O.port!==void 0?(D.userinfo=O.userinfo,D.host=O.host,D.port=O.port,D.path=t(O.path||""),D.query=O.query):(O.path?(O.path[0]==="/"?D.path=t(O.path):((E.userinfo!==void 0||E.host!==void 0||E.port!==void 0)&&!E.path?D.path="/"+O.path:E.path?D.path=E.path.slice(0,E.path.lastIndexOf("/")+1)+O.path:D.path=O.path,D.path=t(D.path)),D.query=O.query):(D.path=E.path,O.query!==void 0?D.query=O.query:D.query=E.query),D.userinfo=E.userinfo,D.host=E.host,D.port=E.port),D.scheme=E.scheme),D.fragment=O.fragment,D}function k(E,O,R){const T=_(E,R),D=_(O,R);return T!==void 0&&D!==void 0&&T.toLowerCase()===D.toLowerCase()}function v(E,O){const R={host:E.host,scheme:E.scheme,userinfo:E.userinfo,port:E.port,path:E.path,query:E.query,nid:E.nid,nss:E.nss,uuid:E.uuid,fragment:E.fragment,reference:E.reference,resourceName:E.resourceName,secure:E.secure,error:""},T=Object.assign({},O),D=[],L=f(T.scheme||R.scheme);L&&L.serialize&&L.serialize(R,T),R.path!==void 0&&(T.skipEscape?R.path=i(R.path):(R.path=s(R.path),R.scheme!==void 0&&(R.path=R.path.split("%3A").join(":")))),T.reference!=="suffix"&&R.scheme&&D.push(R.scheme,":");const H=r(R);if(H!==void 0&&(T.reference!=="suffix"&&D.push("//"),D.push(H),R.path&&R.path[0]!=="/"&&D.push("/")),R.path!==void 0){let Y=R.path;!T.absolutePath&&(!L||!L.absolutePath)&&(Y=t(Y)),H===void 0&&Y[0]==="/"&&Y[1]==="/"&&(Y="/%2F"+Y.slice(2)),D.push(Y)}return R.query!==void 0&&D.push("?",R.query),R.fragment!==void 0&&D.push("#",R.fragment),D.join("")}const g=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,b=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,w=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function x(E,O){if(O[2]!==void 0&&E.path&&E.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof E.port=="number"&&(E.port<0||E.port>65535))return"URI port is malformed."}function h(E,O){const R=Object.assign({},O),T={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let D=!1,L=!1;R.reference==="suffix"&&(R.scheme?E=R.scheme+":"+E:E="//"+E);const H=E.match(b);H!==null&&H[1].indexOf("\\")!==-1&&(T.error="URI authority must not contain a literal backslash.",D=!0);const Y=E.match(w);if(Y!==null){const P=Y[1],F=P.replace(/[\t\n\r]/g,"");F.length>=2&&(F.slice(0,2)!=="//"?(T.error=T.error||"URI authority must not contain a literal backslash.",D=!0):P.length!==F.length&&(T.error=T.error||"URI authority introducer must not contain whitespace.",D=!0))}const Z=E.match(g);if(Z){T.scheme=Z[1]===void 0?void 0:Z[1].toLowerCase(),T.userinfo=Z[3],T.host=Z[4],T.port=parseInt(Z[5],10),T.path=Z[6]||"",T.query=Z[7],T.fragment=Z[8],isNaN(T.port)&&(T.port=Z[5]);const P=x(T,Z);if(P!==void 0&&(T.error=T.error||P,D=!0),T.host)if(l(T.host)===!1){const I=e(T.host);T.host=I.host.toLowerCase(),L=I.isIPV6}else L=!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",R.reference&&R.reference!=="suffix"&&R.reference!==T.reference&&(T.error=T.error||"URI is not a "+R.reference+" reference.");const F=f(R.scheme||T.scheme);if(!R.unicodeSupport&&(!F||!F.unicodeSupport)&&T.host&&(R.domainHost||F&&F.domainHost)&&L===!1&&u(T.host))try{T.host=new URL("http://"+T.host).hostname}catch(z){T.error=T.error||"Host's domain name can not be converted to ASCII: "+z}(!F||F&&!F.skipNormalize)&&(E.indexOf("%")!==-1&&(T.scheme!==void 0&&(T.scheme=unescape(T.scheme)),T.host!==void 0&&(T.host=o(unescape(T.host),L))),T.path&&(T.path=a(T.path)),T.query&&(T.query=n(T.query)),T.fragment&&(T.fragment=n(T.fragment))),F&&F.parse&&F.parse(T,R)}else T.error=T.error||"URI can not be parsed.";return{parsed:T,malformedAuthorityOrPort:D}}function y(E,O){return h(E,O).parsed}function S(E,O){return A(E,O).normalized}function A(E,O){const{parsed:R,malformedAuthorityOrPort:T}=h(E,O);return{normalized:T?E:v(R,O),malformedAuthorityOrPort:T}}function _(E,O){if(typeof E=="string"){const{normalized:R,malformedAuthorityOrPort:T}=A(E,O);return T?void 0:R}if(typeof E=="object")return v(E,O)}const C={SCHEMES:c,normalize:m,resolve:d,resolveComponent:p,equal:k,serialize:v,parse:y};return Aa.exports=C,Aa.exports.default=C,Aa.exports.fastUri=C,Aa.exports}var iI=nI();const md=Kr(iI);var Oa={},jp;function aI(){if(jp)return Oa;jp=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 s(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 o(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 s(f,c)},set:function(f,m){return o(f,c,m)}}}return Oa.get=s,Oa.set=o,Oa.compile=l,Oa}var sI=aI();const Ru=Kr(sI);var oI=Object.prototype;function Ol(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||oI;return e===r}var lI=Ub(Object.keys,Object),uI=Object.prototype,cI=uI.hasOwnProperty;function Gb(e){if(!Ol(e))return lI(e);var t=[];for(var r in Object(e))cI.call(e,r)&&r!="constructor"&&t.push(r);return t}var lf=xi(Yr,"DataView"),uf=xi(Yr,"Promise"),Ki=xi(Yr,"Set"),cf=xi(Yr,"WeakMap"),Rp="[object Map]",fI="[object Object]",Np="[object Promise]",Fp="[object Set]",Dp="[object WeakMap]",Mp="[object DataView]",dI=wi(lf),mI=wi(Za),pI=wi(uf),hI=wi(Ki),gI=wi(cf),cr=on;(lf&&cr(new lf(new ArrayBuffer(1)))!=Mp||Za&&cr(new Za)!=Rp||uf&&cr(uf.resolve())!=Np||Ki&&cr(new Ki)!=Fp||cf&&cr(new cf)!=Dp)&&(cr=function(e){var t=on(e),r=t==fI?e.constructor:void 0,i=r?wi(r):"";if(i)switch(i){case dI:return Mp;case mI:return Rp;case pI:return Np;case hI:return Fp;case gI:return Dp}return t});var yI="[object Arguments]";function Lp(e){return gr(e)&&on(e)==yI}var Jb=Object.prototype,vI=Jb.hasOwnProperty,bI=Jb.propertyIsEnumerable,ta=Lp((function(){return arguments})())?Lp:function(e){return gr(e)&&vI.call(e,"callee")&&!bI.call(e,"callee")},kI=9007199254740991;function pd(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=kI}function Ci(e){return e!=null&&pd(e.length)&&!ds(e)}function wI(){return!1}var Yb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qp=Yb&&typeof module=="object"&&module&&!module.nodeType&&module,xI=qp&&qp.exports===Yb,$p=xI?Yr.Buffer:void 0,SI=$p?$p.isBuffer:void 0,di=SI||wI,CI="[object Arguments]",EI="[object Array]",AI="[object Boolean]",OI="[object Date]",_I="[object Error]",PI="[object Function]",II="[object Map]",TI="[object Number]",jI="[object Object]",RI="[object RegExp]",NI="[object Set]",FI="[object String]",DI="[object WeakMap]",MI="[object ArrayBuffer]",LI="[object DataView]",qI="[object Float32Array]",$I="[object Float64Array]",zI="[object Int8Array]",UI="[object Int16Array]",BI="[object Int32Array]",VI="[object Uint8Array]",HI="[object Uint8ClampedArray]",WI="[object Uint16Array]",KI="[object Uint32Array]",ht={};ht[qI]=ht[$I]=ht[zI]=ht[UI]=ht[BI]=ht[VI]=ht[HI]=ht[WI]=ht[KI]=!0;ht[CI]=ht[EI]=ht[MI]=ht[AI]=ht[LI]=ht[OI]=ht[_I]=ht[PI]=ht[II]=ht[TI]=ht[jI]=ht[RI]=ht[NI]=ht[FI]=ht[DI]=!1;function GI(e){return gr(e)&&pd(e.length)&&!!ht[on(e)]}function hd(e){return function(t){return e(t)}}var Xb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ba=Xb&&typeof module=="object"&&module&&!module.nodeType&&module,JI=Ba&&Ba.exports===Xb,Nu=JI&&$b.process,ra=(function(){try{var e=Ba&&Ba.require&&Ba.require("util").types;return e||Nu&&Nu.binding&&Nu.binding("util")}catch{}})(),zp=ra&&ra.isTypedArray,ps=zp?hd(zp):GI,YI="[object Map]",XI="[object Set]",ZI=Object.prototype,QI=ZI.hasOwnProperty;function wt(e){if(e==null)return!0;if(Ci(e)&&(jt(e)||typeof e=="string"||typeof e.splice=="function"||di(e)||ps(e)||ta(e)))return!e.length;var t=cr(e);if(t==YI||t==XI)return!e.size;if(Ol(e))return!Gb(e).length;for(var r in e)if(QI.call(e,r))return!1;return!0}function eT(){this.__data__=new ln,this.size=0}function tT(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function rT(e){return this.__data__.get(e)}function nT(e){return this.__data__.has(e)}var iT=200;function aT(e,t){var r=this.__data__;if(r instanceof ln){var i=r.__data__;if(!Za||i.length<iT-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new un(i)}return r.set(e,t),this.size=r.size,this}function Or(e){var t=this.__data__=new ln(e);this.size=t.size}Or.prototype.clear=eT;Or.prototype.delete=tT;Or.prototype.get=rT;Or.prototype.has=nT;Or.prototype.set=aT;function gd(e,t){for(var r=-1,i=e==null?0:e.length;++r<i&&t(e[r],r,e)!==!1;);return e}var tl=(function(){try{var e=xi(Object,"defineProperty");return e({},"",{}),e}catch{}})();function yd(e,t,r){t=="__proto__"&&tl?tl(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var sT=Object.prototype,oT=sT.hasOwnProperty;function vd(e,t,r){var i=e[t];(!(oT.call(e,t)&&ms(i,r))||r===void 0&&!(t in e))&&yd(e,t,r)}function fa(e,t,r,i){var a=!r;r||(r={});for(var n=-1,s=t.length;++n<s;){var o=t[n],l=void 0;l===void 0&&(l=e[o]),a?yd(r,o,l):vd(r,o,l)}return r}function Zb(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var lT=9007199254740991,uT=/^(?:0|[1-9]\d*)$/;function _l(e,t){var r=typeof e;return t=t??lT,!!t&&(r=="number"||r!="symbol"&&uT.test(e))&&e>-1&&e%1==0&&e<t}var cT=Object.prototype,fT=cT.hasOwnProperty;function Qb(e,t){var r=jt(e),i=!r&&ta(e),a=!r&&!i&&di(e),n=!r&&!i&&!a&&ps(e),s=r||i||a||n,o=s?Zb(e.length,String):[],l=o.length;for(var u in e)(t||fT.call(e,u))&&!(s&&(u=="length"||a&&(u=="offset"||u=="parent")||n&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||_l(u,l)))&&o.push(u);return o}function Cr(e){return Ci(e)?Qb(e):Gb(e)}function dT(e,t){return e&&fa(t,Cr(t),e)}function mT(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var pT=Object.prototype,hT=pT.hasOwnProperty;function gT(e){if(!Ue(e))return mT(e);var t=Ol(e),r=[];for(var i in e)i=="constructor"&&(t||!hT.call(e,i))||r.push(i);return r}function hs(e){return Ci(e)?Qb(e,!0):gT(e)}function yT(e,t){return e&&fa(t,hs(t),e)}var ek=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Up=ek&&typeof module=="object"&&module&&!module.nodeType&&module,vT=Up&&Up.exports===ek,Bp=vT?Yr.Buffer:void 0,Vp=Bp?Bp.allocUnsafe:void 0;function tk(e,t){if(t)return e.slice();var r=e.length,i=Vp?Vp(r):new e.constructor(r);return e.copy(i),i}function bd(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}function bT(e,t){for(var r=-1,i=e==null?0:e.length,a=0,n=[];++r<i;){var s=e[r];t(s,r,e)&&(n[a++]=s)}return n}function rk(){return[]}var kT=Object.prototype,wT=kT.propertyIsEnumerable,Hp=Object.getOwnPropertySymbols,kd=Hp?function(e){return e==null?[]:(e=Object(e),bT(Hp(e),function(t){return wT.call(e,t)}))}:rk;function xT(e,t){return fa(e,kd(e),t)}function wd(e,t){for(var r=-1,i=t.length,a=e.length;++r<i;)e[a+r]=t[r];return e}var ST=Object.getOwnPropertySymbols,nk=ST?function(e){for(var t=[];e;)wd(t,kd(e)),e=Sl(e);return t}:rk;function CT(e,t){return fa(e,nk(e),t)}function ik(e,t,r){var i=t(e);return jt(e)?i:wd(i,r(e))}function ff(e){return ik(e,Cr,kd)}function xd(e){return ik(e,hs,nk)}var ET=Object.prototype,AT=ET.hasOwnProperty;function OT(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&AT.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var rl=Yr.Uint8Array;function Sd(e){var t=new e.constructor(e.byteLength);return new rl(t).set(new rl(e)),t}function _T(e,t){var r=t?Sd(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var PT=/\w*$/;function IT(e){var t=new e.constructor(e.source,PT.exec(e));return t.lastIndex=e.lastIndex,t}var Wp=hr?hr.prototype:void 0,Kp=Wp?Wp.valueOf:void 0;function TT(e){return Kp?Object(Kp.call(e)):{}}function ak(e,t){var r=t?Sd(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var jT="[object Boolean]",RT="[object Date]",NT="[object Map]",FT="[object Number]",DT="[object RegExp]",MT="[object Set]",LT="[object String]",qT="[object Symbol]",$T="[object ArrayBuffer]",zT="[object DataView]",UT="[object Float32Array]",BT="[object Float64Array]",VT="[object Int8Array]",HT="[object Int16Array]",WT="[object Int32Array]",KT="[object Uint8Array]",GT="[object Uint8ClampedArray]",JT="[object Uint16Array]",YT="[object Uint32Array]";function XT(e,t,r){var i=e.constructor;switch(t){case $T:return Sd(e);case jT:case RT:return new i(+e);case zT:return _T(e,r);case UT:case BT:case VT:case HT:case WT:case KT:case GT:case JT:case YT:return ak(e,r);case NT:return new i;case FT:case LT:return new i(e);case DT:return IT(e);case MT:return new i;case qT:return TT(e)}}var Gp=Object.create,sk=(function(){function e(){}return function(t){if(!Ue(t))return{};if(Gp)return Gp(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function ok(e){return typeof e.constructor=="function"&&!Ol(e)?sk(Sl(e)):{}}var ZT="[object Map]";function QT(e){return gr(e)&&cr(e)==ZT}var Jp=ra&&ra.isMap,ej=Jp?hd(Jp):QT,tj="[object Set]";function rj(e){return gr(e)&&cr(e)==tj}var Yp=ra&&ra.isSet,nj=Yp?hd(Yp):rj,ij=1,aj=2,sj=4,lk="[object Arguments]",oj="[object Array]",lj="[object Boolean]",uj="[object Date]",cj="[object Error]",uk="[object Function]",fj="[object GeneratorFunction]",dj="[object Map]",mj="[object Number]",ck="[object Object]",pj="[object RegExp]",hj="[object Set]",gj="[object String]",yj="[object Symbol]",vj="[object WeakMap]",bj="[object ArrayBuffer]",kj="[object DataView]",wj="[object Float32Array]",xj="[object Float64Array]",Sj="[object Int8Array]",Cj="[object Int16Array]",Ej="[object Int32Array]",Aj="[object Uint8Array]",Oj="[object Uint8ClampedArray]",_j="[object Uint16Array]",Pj="[object Uint32Array]",mt={};mt[lk]=mt[oj]=mt[bj]=mt[kj]=mt[lj]=mt[uj]=mt[wj]=mt[xj]=mt[Sj]=mt[Cj]=mt[Ej]=mt[dj]=mt[mj]=mt[ck]=mt[pj]=mt[hj]=mt[gj]=mt[yj]=mt[Aj]=mt[Oj]=mt[_j]=mt[Pj]=!0;mt[cj]=mt[uk]=mt[vj]=!1;function Va(e,t,r,i,a,n){var s,o=t&ij,l=t&aj,u=t&sj;if(r&&(s=a?r(e,i,a,n):r(e)),s!==void 0)return s;if(!Ue(e))return e;var c=jt(e);if(c){if(s=OT(e),!o)return bd(e,s)}else{var f=cr(e),m=f==uk||f==fj;if(di(e))return tk(e,o);if(f==ck||f==lk||m&&!a){if(s=l||m?{}:ok(e),!o)return l?CT(e,yT(s,e)):xT(e,dT(s,e))}else{if(!mt[f])return a?e:{};s=XT(e,f,o)}}n||(n=new Or);var d=n.get(e);if(d)return d;n.set(e,s),nj(e)?e.forEach(function(v){s.add(Va(v,t,r,v,e,n))}):ej(e)&&e.forEach(function(v,g){s.set(g,Va(v,t,r,g,e,n))});var p=u?l?xd:ff:l?hs:Cr,k=c?void 0:p(e);return gd(k||e,function(v,g){k&&(g=v,v=e[g]),vd(s,g,Va(v,t,r,g,e,n))}),s}function fk(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function Ij(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 Tj(e,t){return t.length<2?e:Al(e,Ij(t,0,-1))}var jj=Object.prototype,Rj=jj.hasOwnProperty;function dk(e,t){t=ca(t,e);var r=-1,i=t.length;if(!i)return!0;for(;++r<i;){var a=Fn(t[r]);if(a==="__proto__"&&!Rj.call(e,"__proto__")||(a==="constructor"||a==="prototype")&&r<i-1)return!1}var n=Tj(e,t);return n==null||delete n[Fn(fk(t))]}function Nj(e){return Nn(e)?void 0:e}var Xp=hr?hr.isConcatSpreadable:void 0;function Fj(e){return jt(e)||ta(e)||!!(Xp&&e&&e[Xp])}function gs(e,t,r,i,a){var n=-1,s=e.length;for(r||(r=Fj),a||(a=[]);++n<s;){var o=e[n];t>0&&r(o)?t>1?gs(o,t-1,r,i,a):wd(a,o):i||(a[a.length]=o)}return a}function df(e){var t=e==null?0:e.length;return t?gs(e,1):[]}function Dj(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 Zp=Math.max;function mk(e,t,r){return t=Zp(t===void 0?e.length-1:t,0),function(){for(var i=arguments,a=-1,n=Zp(i.length-t,0),s=Array(n);++a<n;)s[a]=i[t+a];a=-1;for(var o=Array(t+1);++a<t;)o[a]=i[a];return o[t]=r(s),Dj(e,this,o)}}function Mj(e){return function(){return e}}function Pl(e){return e}var Lj=tl?function(e,t){return tl(e,"toString",{configurable:!0,enumerable:!1,value:Mj(t),writable:!0})}:Pl,qj=800,$j=16,zj=Date.now;function Uj(e){var t=0,r=0;return function(){var i=zj(),a=$j-(i-r);if(r=i,a>0){if(++t>=qj)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var pk=Uj(Lj);function hk(e){return pk(mk(e,void 0,df),e+"")}var Bj=1,Vj=2,Hj=4,Qa=hk(function(e,t){var r={};if(e==null)return r;var i=!1;t=ua(t,function(n){return n=ca(n,e),i||(i=n.length>1),n}),fa(e,xd(e),r),i&&(r=Va(r,Bj|Vj|Hj,Nj));for(var a=t.length;a--;)dk(r,t[a]);return r});function nl(e,t){if(nt in e&&md.equal(e[nt],t))return e;for(const r of Object.values(e))if(Array.isArray(r)){for(const i of r)if(Ue(i)){const a=nl(i,t);if(a!==void 0)return a}}else if(Ue(r)){const i=nl(r,t);if(i!==void 0)return i}}function mf(e,t){const r=ae(e,nt,t);let i=e;at in i&&(i={...i,[at]:md.resolve(r,i[at])});for(const[a,n]of Object.entries(i))Array.isArray(n)?i={...i,[a]:n.map(s=>Ue(s)?mf(s,r):s)}:Ue(n)&&(i={...i,[a]:mf(n,r)});return i}function Cd(e,t){const r=t[e];return[Qa(t,[e]),r]}function gk(e,t={},r=[],i=ae(t,[nt])){const a=e||"";let n,s=i;if(a.startsWith("#")){const l=decodeURIComponent(a.substring(1));s===void 0||nt in t&&t[nt]===s?n=Ru.get(t,l):t[Na]===qo&&(n=nl(t,s.replace(/\/$/,"")),n!==void 0&&(n=Ru.get(n,l)))}else if(t[Na]===qo){const l=s?md.resolve(s,a):a,[u,...c]=l.replace(/#\/?$/,"").split("#");n=nl(t,u.replace(/\/$/,"")),n!==void 0&&(s=n[nt],wt(c)||(n=Ru.get(n,decodeURIComponent(c.join("#")))))}if(n===void 0)throw new Error(`Could not find a definition for ${e}.`);const o=n[at];if(o){if(r.includes(o)){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]=Cd(at,n),c=gk(u,t,[...r,a],s);return Object.keys(l).length>0?t[Na]===E_||t[Na]===qo?{[Hr]:[l,c]}:{...l,...c}:c}return n}function es(e,t={},r=ae(t,[nt])){return gk(e,t,[],r)}var Wj=Object.prototype,Kj=Wj.hasOwnProperty;function Gj(e,t){return e!=null&&Kj.call(e,t)}function yk(e,t,r){t=ca(t,e);for(var i=-1,a=t.length,n=!1;++i<a;){var s=Fn(t[i]);if(!(n=e!=null&&r(e,s)))break;e=e[s]}return n||++i!=a?n:(a=e==null?0:e.length,!!a&&pd(a)&&_l(s,a)&&(jt(e)||ta(e)))}function qe(e,t){return e!=null&&yk(e,t,Gj)}var Jj="[object String]";function Dn(e){return typeof e=="string"||!jt(e)&&gr(e)&&on(e)==Jj}function yr(e){let t;const r=ae(e,w_);return Dn(r)?t=r:r!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}var Yj=1/0;function Xj(e){var t=e==null?0:e.length;return t?gs(e,Yj):[]}function pf(e,t,r){(r!==void 0&&!ms(e[t],r)||r===void 0&&!(t in e))&&yd(e,t,r)}function Zj(e){return function(t,r,i){for(var a=-1,n=Object(t),s=i(t),o=s.length;o--;){var l=s[++a];if(r(n[l],l,n)===!1)break}return t}}var vk=Zj();function ts(e){return gr(e)&&Ci(e)}function hf(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Qj(e){return fa(e,hs(e))}function eR(e,t,r,i,a,n,s){var o=hf(e,r),l=hf(t,r),u=s.get(l);if(u){pf(e,r,u);return}var c=n?n(o,l,r+"",e,t,s):void 0,f=c===void 0;if(f){var m=jt(l),d=!m&&di(l),p=!m&&!d&&ps(l);c=l,m||d||p?jt(o)?c=o:ts(o)?c=bd(o):d?(f=!1,c=tk(l,!0)):p?(f=!1,c=ak(l,!0)):c=[]:Nn(l)||ta(l)?(c=o,ta(o)?c=Qj(o):(!Ue(o)||ds(o))&&(c=ok(l))):f=!1}f&&(s.set(l,c),a(c,l,i,n,s),s.delete(l)),pf(e,r,c)}function bk(e,t,r,i,a){e!==t&&vk(t,function(n,s){if(a||(a=new Or),Ue(n))eR(e,t,s,r,bk,i,a);else{var o=i?i(hf(e,s),n,s+"",e,t,a):void 0;o===void 0&&(o=n),pf(e,s,o)}},hs)}function Il(e,t){return pk(mk(e,t,Pl),e+"")}function tR(e,t,r){if(!Ue(r))return!1;var i=typeof t;return(i=="number"?Ci(r)&&_l(t,r.length):i=="string"&&t in r)?ms(r[t],e):!1}function rR(e){return Il(function(t,r){var i=-1,a=r.length,n=a>1?r[a-1]:void 0,s=a>2?r[2]:void 0;for(n=e.length>3&&typeof n=="function"?(a--,n):void 0,s&&tR(r[0],r[1],s)&&(n=a<3?void 0:n,a=1),t=Object(t);++i<a;){var o=r[i];o&&e(t,o,i,n)}return t})}var nR=rR(function(e,t,r){bk(e,t,r)});function Ed(e,t,r,i){if(!Ue(e))return e;t=ca(t,e);for(var a=-1,n=t.length,s=n-1,o=e;o!=null&&++a<n;){var l=Fn(t[a]),u=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(a!=s){var c=o[l];u=i?i(c,l,o):void 0,u===void 0&&(u=Ue(c)?c:_l(t[a+1])?[]:{})}vd(o,l,u),o=o[l]}return e}function lt(e,t,r){return e==null?e:Ed(e,t,r)}function kk(e){return typeof e=="function"?e:Pl}var iR=/\s/;function aR(e){for(var t=e.length;t--&&iR.test(e.charAt(t)););return t}var sR=/^\s+/;function oR(e){return e&&e.slice(0,aR(e)+1).replace(sR,"")}var Qp=NaN,lR=/^[-+]0x[0-9a-f]+$/i,uR=/^0b[01]+$/i,cR=/^0o[0-7]+$/i,fR=parseInt;function dR(e){if(typeof e=="number")return e;if(fs(e))return Qp;if(Ue(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ue(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=oR(e);var r=uR.test(e);return r||cR.test(e)?fR(e.slice(2),r?2:8):lR.test(e)?Qp:+e}var eh=1/0,mR=17976931348623157e292;function pR(e){if(!e)return e===0?e:0;if(e=dR(e),e===eh||e===-eh){var t=e<0?-1:1;return t*mR}return e===e?e:0}function wk(e){var t=pR(e),r=t%1;return t===t?r?t-r:t:0}var hR=9007199254740991,Fu=4294967295,gR=Math.min;function xk(e,t){if(e=wk(e),e<1||e>hR)return[];var r=Fu,i=gR(e,Fu);t=kk(t),e-=Fu;for(var a=Zb(i,t);++r<e;)t(r);return a}function Sk(e,t){return e&&vk(e,t,Cr)}var yR="__lodash_hash_undefined__";function vR(e){return this.__data__.set(e,yR),this}function bR(e){return this.__data__.has(e)}function mi(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new un;++t<r;)this.add(e[t])}mi.prototype.add=mi.prototype.push=vR;mi.prototype.has=bR;function kR(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 rs(e,t){return e.has(t)}var wR=1,xR=2;function Ck(e,t,r,i,a,n){var s=r&wR,o=e.length,l=t.length;if(o!=l&&!(s&&l>o))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&xR?new mi:void 0;for(n.set(e,t),n.set(t,e);++f<o;){var p=e[f],k=t[f];if(i)var v=s?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(!kR(t,function(g,b){if(!rs(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 SR(e){var t=-1,r=Array(e.size);return e.forEach(function(i,a){r[++t]=[a,i]}),r}function Ad(e){var t=-1,r=Array(e.size);return e.forEach(function(i){r[++t]=i}),r}var CR=1,ER=2,AR="[object Boolean]",OR="[object Date]",_R="[object Error]",PR="[object Map]",IR="[object Number]",TR="[object RegExp]",jR="[object Set]",RR="[object String]",NR="[object Symbol]",FR="[object ArrayBuffer]",DR="[object DataView]",th=hr?hr.prototype:void 0,Du=th?th.valueOf:void 0;function MR(e,t,r,i,a,n,s){switch(r){case DR:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case FR:return!(e.byteLength!=t.byteLength||!n(new rl(e),new rl(t)));case AR:case OR:case IR:return ms(+e,+t);case _R:return e.name==t.name&&e.message==t.message;case TR:case RR:return e==t+"";case PR:var o=SR;case jR:var l=i&CR;if(o||(o=Ad),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;i|=ER,s.set(e,t);var c=Ck(o(e),o(t),i,a,n,s);return s.delete(e),c;case NR:if(Du)return Du.call(e)==Du.call(t)}return!1}var LR=1,qR=Object.prototype,$R=qR.hasOwnProperty;function zR(e,t,r,i,a,n){var s=r&LR,o=ff(e),l=o.length,u=ff(t),c=u.length;if(l!=c&&!s)return!1;for(var f=l;f--;){var m=o[f];if(!(s?m in t:$R.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=s;++f<l;){m=o[f];var g=e[m],b=t[m];if(i)var w=s?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 x=e.constructor,h=t.constructor;x!=h&&"constructor"in e&&"constructor"in t&&!(typeof x=="function"&&x instanceof x&&typeof h=="function"&&h instanceof h)&&(k=!1)}return n.delete(e),n.delete(t),k}var UR=1,rh="[object Arguments]",nh="[object Array]",qs="[object Object]",BR=Object.prototype,ih=BR.hasOwnProperty;function VR(e,t,r,i,a,n){var s=jt(e),o=jt(t),l=s?nh:cr(e),u=o?nh:cr(t);l=l==rh?qs:l,u=u==rh?qs:u;var c=l==qs,f=u==qs,m=l==u;if(m&&di(e)){if(!di(t))return!1;s=!0,c=!1}if(m&&!c)return n||(n=new Or),s||ps(e)?Ck(e,t,r,i,a,n):MR(e,t,l,r,i,a,n);if(!(r&UR)){var d=c&&ih.call(e,"__wrapped__"),p=f&&ih.call(t,"__wrapped__");if(d||p){var k=d?e.value():e,v=p?t.value():t;return n||(n=new Or),a(k,v,r,i,n)}}return m?(n||(n=new Or),zR(e,t,r,i,a,n)):!1}function Tl(e,t,r,i,a){return e===t?!0:e==null||t==null||!gr(e)&&!gr(t)?e!==e&&t!==t:VR(e,t,r,i,Tl,a)}var HR=1,WR=2;function KR(e,t,r,i){var a=r.length,n=a;if(e==null)return!n;for(e=Object(e);a--;){var s=r[a];if(s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<n;){s=r[a];var o=s[0],l=e[o],u=s[1];if(s[2]){if(l===void 0&&!(o in e))return!1}else{var c=new Or,f;if(!(f===void 0?Tl(u,l,HR|WR,i,c):f))return!1}}return!0}function Ek(e){return e===e&&!Ue(e)}function GR(e){for(var t=Cr(e),r=t.length;r--;){var i=t[r],a=e[i];t[r]=[i,a,Ek(a)]}return t}function Ak(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function JR(e){var t=GR(e);return t.length==1&&t[0][2]?Ak(t[0][0],t[0][1]):function(r){return r===e||KR(r,e,t)}}function YR(e,t){return e!=null&&t in Object(e)}function Ok(e,t){return e!=null&&yk(e,t,YR)}var XR=1,ZR=2;function QR(e,t){return cd(e)&&Ek(t)?Ak(Fn(e),t):function(r){var i=ae(r,e);return i===void 0&&i===t?Ok(r,e):Tl(t,i,XR|ZR)}}function eN(e){return function(t){return t==null?void 0:t[e]}}function tN(e){return function(t){return Al(t,e)}}function rN(e){return cd(e)?eN(Fn(e)):tN(e)}function Od(e){return typeof e=="function"?e:e==null?Pl:typeof e=="object"?jt(e)?QR(e[0],e[1]):JR(e):rN(e)}function nN(e,t,r){var i=jt(e),a=i||di(e)||ps(e);if(t=Od(t),r==null){var n=e&&e.constructor;a?r=i?new n:[]:Ue(e)?r=ds(n)?sk(Sl(e)):{}:r={}}return(a?gd:Sk)(e,function(s,o,l){return t(r,s,o,l)}),r}function iN(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 aN(e){return e!==e}function sN(e,t,r){for(var i=r-1,a=e.length;++i<a;)if(e[i]===t)return i;return-1}function _k(e,t,r){return t===t?sN(e,t,r):iN(e,aN,r)}function _d(e,t){var r=e==null?0:e.length;return!!r&&_k(e,t,0)>-1}function $o(){}var oN=1/0,lN=Ki&&1/Ad(new Ki([,-0]))[1]==oN?function(e){return new Ki(e)}:$o,uN=200;function Pk(e,t,r){var i=-1,a=_d,n=e.length,s=!0,o=[],l=o;if(n>=uN){var u=lN(e);if(u)return Ad(u);s=!1,a=rs,l=new mi}else l=o;e:for(;++i<n;){var c=e[i],f=c;if(c=c!==0?c:0,s&&f===f){for(var m=l.length;m--;)if(l[m]===f)continue e;o.push(c)}else a(l,f,r)||(l!==o&&l.push(f),o.push(c))}return o}function Ik(e){return e&&e.length?Pk(e):[]}function ns(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 cN=Il(function(e){return Pk(gs(e,1,ts,!0))});function vr(e){let{type:t}=e;return!t&&e.const?ns(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 s=e?e[n]:{},o=t[n];return e&&n in e&&be(o)?a[n]=an(s,o):e&&t&&(vr(e)==="object"||vr(t)==="object")&&n===Nb&&Array.isArray(s)&&Array.isArray(o)?a[n]=cN(s,o):a[n]=o,a},r);for(const a of Object.getOwnPropertySymbols(t))i[a]=t[a];return i}var fN="[object Number]";function Tk(e){return typeof e=="number"||gr(e)&&on(e)==fN}function jk(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 s=t[n],o=ae(s,[ze,r],{});if(o.type!=="object"&&o.type!=="array"&&(o.const===a||!((i=o.enum)===null||i===void 0)&&i.includes(a)))return n}}}function il(e,t,r,i,a){if(t===void 0)return 0;const n=jk(t,r,a);if(Tk(n))return n;for(let s=0;s<r.length;s+=1){const o=r[s];if(a&&qe(o,[ze,a])){const l=ae(t,a),u=ae(o,[ze,a],{});if(e.isValid(u,l,i))return s}else if(o[ze]){const l={anyOf:Object.keys(o[ze]).map(c=>({required:[c]}))};let u;if(o.anyOf){const{...c}=o;c.allOf?c.allOf=c.allOf.slice():c.allOf=[],c.allOf.push(l),u=c}else u={...o,...l};if(delete u.required,e.isValid(u,t,i))return s}else if(e.isValid(o,t,i))return s}return 0}const dN=Object.prototype;function Fa(e){for(const t in e)if(dN.hasOwnProperty.call(e,t))return!1;return!0}const mN=["array","boolean","integer","null","number","object","string"];new Set(mN);const pN=["$defs","definitions","properties","patternProperties","dependencies"];new Set(pN);const hN=["items","allOf","oneOf","anyOf"];new Set(hN);const gN=["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"];new Set(gN);function zo(e){return typeof e=="object"}function qr(e){return zo(e)?Fa(e):e===!0}function Ui(e,t){return e<t?-1:e>t?1:0}function Mu(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 yN(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 ah(e){return e.length===0}function Lu(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 Rk(e,{threshold:t=12}={}){return r=>{const i=r.length;if(i===0)return r;if(i<=t){const s=[];let o=0;e:for(let l=0;l<i;l++){const u=r[l];for(let c=0;c<o;c++)if(e(u,s[c])===0)continue e;o=s.push(u)}return s}const a=r.slice().sort(e);let n=0;for(let s=1;s<i;s++)e(a[n],a[s])!==0&&++n!==s&&(a[n]=a[s]);return a.length=n+1,a}}function vN(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 s=[...t].sort(e),o=[...r].sort(e);let l=0,u=0;for(;l<a&&u<n;){const c=e(s[l],o[u]);c===0?((i.length===0||e(i[i.length-1],s[l])!==0)&&i.push(s[l]),l++,u++):c<0?l++:u++}return i}}function bN(e,t){return r=>{if(e.has(r))return e.get(r);const i=t(r);return e.set(r,i),i}}const sh=bN,Nk=()=>0,kN=e=>e===void 0,wN=e=>typeof e!="object",oh={boolean:0,number:1,string:2};function xN(e,t){const r=typeof e,i=typeof t;return r===i?Ui(e,t):oh[r]-oh[i]}function SN(e,t){const r=e.length;if(r===0)return t;const i=t.length;if(i===0)return e;if(i>r){const s=e;e=t,t=s}const a=new Set(e),n=t.length;for(let s=0;s<n;s++){const o=t[s];a.has(o)||e.push(o)}return e}function jl(e,t,r=Nk){return(i,a)=>e(i)?e(a)?r(i,a):-1:e(a)?1:t(i,a)}function qi(e){return jl(kN,e)}function wn(e,t){return jl(r=>r===void 0||e(r),t)}function qu(e,t){return jl(Array.isArray,e,t)}const At=qi(Ui),$u=wn(e=>e===0,(e,t)=>e-t);function CN({deduplicationCache:e=new WeakMap,sortedKeysCache:t=new WeakMap}={}){const r=sh(t,k=>Object.keys(k).sort());function i(k){return(v,g)=>{const b=r(v),w=r(g),x=Math.min(b.length,w.length);for(let h=0;h<x;h++){const y=Ui(b[h],w[h]);if(y!==0)return y}if(b.length!==w.length)return b.length-w.length;for(let h=0;h<x;h++){const y=b[h],S=k(v[y],g[y]);if(S!==0)return S}return 0}}function a(k){const v=Lu(k),g=sh(e,Rk(k,{threshold:0}));return(b,w)=>v(g(b),g(w))}const n=a(Ui);function s(k,v){if(zo(k)){if(zo(v)){const g=Object.keys(k),b=Object.keys(v),w=SN(g,b),x=w.length;for(let h=0;h<x;h++){const y=w[h];if(k[y]===v[y])continue;const A=(p[y]??o)(k[y],v[y]);if(A!==0)return A}return 0}return v===!0&&Fa(k)?0:1}return zo(v)?k===!0&&Fa(v)?0:-1:Ui(k,v)}const o=qi(u),l=jl(wN,qu(i(o),Lu(u)),xN);function u(k,v){return k===null?-1:v===null?1:l(k,v)}const c=qi(s),f=wn(Fa,i(c)),m=qi(a(s)),d=wn(qr,s),p={$id:At,$comment:At,$defs:f,$ref:At,$schema:At,const:o,contains:c,contentEncoding:At,contentMediaType:At,default:o,definitions:f,description:At,else:c,examples:o,exclusiveMaximum:At,exclusiveMinimum:At,format:At,if:c,maximum:At,maxItems:At,maxLength:At,maxProperties:At,minimum:At,multipleOf:At,not:c,pattern:At,propertyNames:c,readOnly:At,then:c,title:At,writeOnly:At,uniqueItems:wn(k=>k===!1,Nk),minLength:$u,minItems:$u,minProperties:$u,required:wn(ah,n),enum:wn(ah,a(u)),type:qi((k,v)=>{const g=Array.isArray(k),b=Array.isArray(v);return!g&&!b?Ui(k,v):n(g?k:[k],b?v:[v])}),items:wn(k=>!Array.isArray(k)&&qr(k),qu(s,Lu(s))),anyOf:m,allOf:m,oneOf:m,properties:f,patternProperties:f,additionalProperties:d,additionalItems:d,dependencies:wn(Fa,i(qi(qu(s,n))))};return{compareSchemaValues:u,compareSchemaDefinitions:s}}function lh(e){return e}const Fk=(e,t)=>e?Fk(t%e,e):t,EN=(e,t)=>Math.abs(e*t)/Fk(e,t);function AN(e,t){return e===t?e:`(?=.*(?:${e}))(?=.*(?:${t}))`}function zu(e,t,r){const i=e.length,a=t.length;if(i>0&&a>0)for(let n=0;n<i;n++){const s=e[n];for(let o=0;o<a;o++)r(s,t[o])}}function Uu(e,t){return e||t}function uh(e){return(t,r)=>{const i={...t},a=Object.keys(r),n=a.length;for(let s=0;s<n;s++){const o=a[s];i[o]=t[o]===void 0?r[o]:e(t[o],r[o])}return i}}function ON(e){const t=new Map;for(const r of e)for(const i of r[0])t.set(i,r[1]);return t}function Yn(e,t,r){r===void 0||qr(r)?delete e[t]:e[t]=r}const _N=["properties","patternProperties","additionalProperties"];function ch(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 fh=[[],[]];function dh(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 s=n.schema;if(s===!1)return!0;e.push(s)}return!1}const PN=["items","additionalItems"],IN=["if","then","else"];function mh(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 Bu(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 Xn(e,t,r){return[e,t,r]}function TN(e){const t=new Map;for(const[r,i,a]of e){const n=s=>{if(!a(s))throw new Error(`Schema keys '${r}' and '${i}' are conflicting (${r}: ${JSON.stringify(s[r])}, ${i}: ${JSON.stringify(s[i])})`)};for(const s of[[r,i],[i,r]]){let o=t.get(s[0]);o===void 0&&(o=[],t.set(s[0],o)),o.push({oppositeKey:s[1],check:n})}}return t}const jN=[Xn("minimum","maximum",e=>e.maximum>=e.minimum),Xn("exclusiveMinimum","maximum",e=>e.maximum>e.exclusiveMinimum),Xn("minimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.minimum),Xn("exclusiveMinimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.exclusiveMinimum),Xn("minLength","maxLength",e=>e.maxLength>=e.minLength),Xn("minItems","maxItems",e=>e.maxItems>=e.minItems),Xn("minProperties","maxProperties",e=>e.maxProperties>=e.minProperties)];function RN({mergePatterns:e=AN,isSubRegExp:t=Object.is,intersectJson:r=yN,deduplicateJsonSchemaDef:i=lh,defaultMerger:a=lh,assigners:n=[],checks:s=jN,mergers:o}={}){function l(x){const h=x.length;let y=x[0];for(let S=1;S<h;S++){const A=g(y,x[S]);if(A===!1)return!1;qr(A)||(y=A)}return y}function u(x,h,y,S,A,_,C){if(x.length=0,y===!1)return!1;if(x.push(y),A!==void 0){if(A===!1)return!1;x.push(A)}if(dh(x,h,_))return!1;const O=x.length<2;if(C===!1){if(O)return;if(dh(x,h,S))return!1}else O&&C!==void 0&&x.push(C);return x.length===1?x[0]:l(x)}function c(x,h,y,S,A,_){const C=y.length;if(C>0&&A!==!1)if(_)Object.assign(x,h);else for(let E=0;E<C;E++){const O=y[E];S.has(O)||(x[O]=g(h[O],A))}return x}const f=(x,{properties:h={},patternProperties:y,additionalProperties:S=!0},{properties:A={},patternProperties:_,additionalProperties:C=!0})=>{const E=qr(S),O=qr(C);if(E&&O)return Yn(x,"properties",b(h,A)),Yn(x,"patternProperties",y&&_?b(y,_):y??_),delete x.additionalProperties,x;const R=g(S,C);Yn(x,"additionalProperties",R);const T={},D=Object.keys(h),L=D.length,[H,Y]=y?ch(y):fh,[Z,P]=_?ch(_):fh,F=[],z=new Set,I=O?void 0:C;for(let K=0;K<L;K++){const X=D[K];z.add(X);const $=u(F,X,h[X],H,A[X],Z,I);$!==void 0&&(T[X]=$)}const N=Object.keys(A),M=N.length,B=E?void 0:S;for(let K=0;K<M;K++){const X=N[K];if(z.has(X))continue;const $=u(F,X,A[X],Z,void 0,H,B);$!==void 0&&(T[X]=$)}Yn(x,"properties",T);let V={};const W=new Set;return Y.length>0&&P.length>0&&zu(Y,P,(K,X)=>{t(K,X)&&W.add(K),t(X,K)&&W.add(X),V[e(K,X)]=g(y[K],_[X])}),V=c(V,y,Y,W,C,O),V=c(V,_,P,W,S,E),Yn(x,"patternProperties",V),x},m=(x,{items:h=[],additionalItems:y},{items:S=[],additionalItems:A})=>{const _=Array.isArray(h),C=Array.isArray(S),E=[];if(x.items=E,_&&C){const[O,R,T]=h.length<S.length?[h.length,y,S]:[S.length,A,h];let D=0;for(;D<O;D++)E.push(g(h[D],S[D]));if(R===!1)x.additionalItems=!1;else{const L=R===void 0||qr(R);for(;D<T.length;D++)E.push(L?T[D]:g(T[D],R));Yn(x,"additionalItems",y!==void 0&&A!==void 0?g(y,A):y??A)}}else if(_||C){const[O,R,T]=_?[h,S,y]:[S,h,A];Yn(x,"additionalItems",T&&g(T,R));for(let D=0;D<O.length;D++)E.push(g(O[D],R))}else delete x.additionalItems,x.items=g(h,S);return x},d=(x,h,y)=>{mh(x,h);const S=mh({},y);return x.allOf===void 0?x.allOf=[S]:x.allOf=x.allOf.concat(S),x};function p(x,h){const y=[];if(zu(x,h,(S,A)=>{try{y.push(g(S,A))}catch{}}),y.length===0)throw new Error(`No valid schema combinations could be produced for "${JSON.stringify(x)}" and "${JSON.stringify(h)}"; the merged result is empty`);return i(y)}const k=ON([[_N,f],[PN,m],[IN,d],...n]),v=TN(s);function g(x,h){if(x===!1||h===!1)return!1;if(qr(x))return qr(h)?!0:h;if(qr(h))return x;let y={...x};const S=new Set,A=new Set,_=Reflect.ownKeys(h),C=_.length;for(let E=0;E<C;E++){const O=_[E],R=h[O];if(R===void 0)continue;const T=v.get(O);if(T!==void 0){const Y=T.length;for(let Z=0;Z<Y;Z++){const P=T[Z];x[P.oppositeKey]!==void 0&&A.add(P.check)}}const D=x[O];if(D===void 0){y[O]=R;continue}const L=k.get(O);if(L){S.add(L);continue}const H=w[O]??a;y[O]=H(D,R)}for(const E of S)y=E(y,x,h);for(const E of A)E(y);return y}const b=uh(g),w={$id:a,$ref:a,$schema:a,$comment:a,$defs:b,definitions:b,type:(x,h)=>{if(x===h)return x;const y=Array.isArray(x),S=Array.isArray(h);if(!y&&!S){const A=Bu(x,h);if(A!==void 0)return A}else if(y||S){const A=new Set;if(y&&S)zu(x,h,(C,E)=>{const O=Bu(C,E);O!==void 0&&A.add(O)});else{const C=y?x:h,E=y?h:x,O=C.length;for(let R=0;R<O;R++){const T=Bu(E,C[R]);T!==void 0&&A.add(T)}}const _=A.size;if(_===1)return A.values().next().value;if(_>1)return Array.from(A)}throw new Error(`It is not possible to create an intersection of the following incompatible types: ${x.toString()}, ${h.toString()}`)},default:a,description:a,title:a,const:a,format:a,contentEncoding:a,contentMediaType:a,not:(x,h)=>{const y=i([x,h]);return y.length===1?y[0]:{anyOf:y}},pattern:e,readOnly:Uu,writeOnly:Uu,enum:(x,h)=>{const y=r(x,h);if(y.length===0)throw new Error(`Intersection of the following enums is empty: "${JSON.stringify(x)}", "${JSON.stringify(h)}"`);return y},anyOf:p,oneOf:p,allOf:(x,h)=>i(x.concat(h)),propertyNames:g,contains:g,dependencies:uh((x,h)=>Array.isArray(x)?Array.isArray(h)?Mu(x,h):g(h,{required:x}):Array.isArray(h)?g(x,{required:h}):g(x,h)),examples:(x,h)=>{if(!Array.isArray(x)||!Array.isArray(h))throw new Error(`Value of the 'examples' field should be an array, but got "${JSON.stringify(x)}" and "${JSON.stringify(h)}"`);return Mu(x,h)},multipleOf:(x,h)=>{let y=1;for(;!Number.isInteger(x)||!Number.isInteger(h);)y*=10,x*=10,h*=10;return EN(x,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:Uu,required:Mu,...o};return{mergeSchemaDefinitions:g,mergeArrayOfSchemaDefinitions:l}}function NN(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 s=a.length-1;s>=0;s--)r.push(a[s])}return t}function FN(e){return t=>e(NN(t))}const{compareSchemaDefinitions:DN,compareSchemaValues:MN}=CN(),{mergeArrayOfSchemaDefinitions:LN}=RN({intersectJson:vN(MN),deduplicateJsonSchemaDef:Rk(DN)}),Dk=FN(LN);function Ft(e,t,r={},i,a,n=!1){return Ur(e,t,r,i,void 0,void 0,a,n)[0]}function Mk(e){return typeof e!="boolean"?e:e?{}:{not:{}}}function qN(e,t,r,i,a,n,s){const{if:o,then:l,else:u,...c}=t,f=e.isValid(o,n||{},r);let m=[c],d=[];if(i){if(l&&typeof l!="boolean"){const p=l;d=d.concat(Ur(e,p,r,n,i,a,s))}if(u&&typeof u!="boolean"){const p=u;d=d.concat(Ur(e,p,r,n,i,a,s))}}else{const p=f?l:u;if(p!==void 0){const k=Mk(p);d=d.concat(Ur(e,k,r,n,i,a,s))}}return d.length&&(m=d.map(p=>an(c,p))),m.flatMap(p=>Ur(e,p,r,n,i,a,s))}function Lk(e){return e.reduce((r,i)=>i.length>1?i.flatMap(a=>xk(r.length,n=>[...r[n]].concat(a))):(r.forEach(a=>a.push(i[0])),r),[[]])}function qk(e,t){return Object.keys(e.patternProperties).filter(r=>RegExp(r).test(t)).reduce((r,i)=>(lt(r,[i],e.patternProperties[i]),r),{})}function $N(e,t,r,i,a,n,s,o){const l=$k(e,t,r,i,a,n,s,o);if(l.length>1||l[0]!==t)return l;if(ad in t)return Uk(e,t,r,i,a,n,s).flatMap(c=>Ur(e,c,r,n,i,a,s));if(Hr in t&&Array.isArray(t[Hr])){const u=t.allOf.map(f=>Ur(e,f,r,n,i,a,s));return Lk(u).map(f=>({...t,allOf:f}))}return[t]}function $k(e,t,r,i,a,n,s,o){const l=On(t,r,a,void 0,o);return l!==t?Ur(e,l,r,n,i,a,s,o):[t]}function On(e,t,r,i,a,n=!1){if(!be(e))return e;let s=e,o=i;if(at in s){const{$ref:l,...u}=s;if(r.includes(l))return n?{...s,[od]:!0}:s;r.push(l),s={...es(l,t,o),...u,[Lo]:l},nt in s&&(o=s[nt])}if(ze in s){const l=[],u=nN(s[ze],(c,f,m)=>{const d=[...r];c[m]=On(f,t,d,o,a,!a),l.push(d)},{});nR(r,Ik(Xj(l))),s={...s,[ze]:u}}if(ea in s&&!Array.isArray(s.items)&&typeof s.items!="boolean"&&(s={...s,items:On(s.items,t,r,o,a)}),a){let l,u;Le in e&&Array.isArray(e[Le])?(l=Le,u=s[Le]):Ae in e&&Array.isArray(e[Ae])&&(l=Ae,u=s[Ae]),l&&u&&(s={...s,[l]:u.map(c=>On(c,t,r,o,a))})}return $e(e,s)?e:s}function zN(e,t,r,i,a){const n={...t,properties:{...t.properties}},s=i&&be(i)?i:{};return Object.keys(s).forEach(o=>{if(!(o in n.properties)){if(af in n){const l=qk(n,o);if(!wt(l)){n.properties[o]=Ft(e,{[Hr]:Object.values(l)},r,ae(s,[o]),a),n.properties[o][En]=!0;return}}if(zi in n&&n.additionalProperties!==!1){let l;typeof n.additionalProperties!="boolean"?at in n.additionalProperties?l=Ft(e,{[at]:ae(n.additionalProperties,[at])},r,ae(s,[o]),a):"type"in n.additionalProperties?l={...n.additionalProperties}:Le in n.additionalProperties||Ae in n.additionalProperties?l={type:"object",...n.additionalProperties}:l={type:ns(ae(s,[o]))}:l={type:ns(ae(s,[o]))},n.properties[o]=l,n.properties[o][En]=!0}else n.properties[o]={type:"null"},n.properties[o][En]=!0}}),n}function UN(e){return Dk(e)}function Ur(e,t,r,i,a=!1,n=[],s,o){return be(t)?$N(e,t,r,a,n,i,s,o).flatMap(u=>{var c;let f=u;if(sd in f)return qN(e,f,r,a,n,i,s);if(Hr 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=s?s(f):UN(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&&af in f&&(f=Object.keys(f.properties).reduce((d,p)=>{const k=qk(d,p);return wt(k)||(d.properties[p]=Ft(e,{allOf:[d.properties[p],...Object.values(k)]},r,ae(i,[p]),s)),d},{...f,properties:{...f.properties}})),af in f||zi in f&&f.additionalProperties!==!1?zN(e,f,r,i,s):f}):[{}]}function BN(e,t,r,i,a){let n;const{oneOf:s,anyOf:o,...l}=t;if(Array.isArray(s)?n=s:Array.isArray(o)&&(n=o),n){const u=a===void 0&&i?{}:a,c=yr(t);n=n.map(m=>On(m,r,[]));const f=il(e,u,n,r,c);if(i){const m=zk(n,!1,r);return il(e,u,m,r,c),n.map(d=>an(l,d))}return[an(l,n[f])]}return[t]}function zk(e,t=!1,r){return e.map(i=>{if(!be(i))return Mk(i);const a=t&&r?On(i,r,[]):i;return a.additionalProperties===!1?{...a,additionalProperties:!0}:a})}function Uk(e,t,r,i,a,n,s){const{dependencies:o,...l}=t;return BN(e,l,r,i,n).flatMap(c=>Bk(e,o,c,r,i,a,n,s))}function Bk(e,t,r,i,a,n,s,o){let l=[r];for(const u in t)if((a||ae(s,[u])!==void 0)&&(!r.properties||u in r.properties)){const[c,f]=Cd(u,t);return Array.isArray(f)?l[0]=VN(r,f):be(f)&&(l=HN(e,r,i,u,f,a,n,s,o)),l.flatMap(m=>Bk(e,c,m,i,a,n,s,o))}return l}function VN(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 HN(e,t,r,i,a,n,s,o,l){return Ur(e,a,r,o,n,s,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]:$k(e,v,r,n,s,o));return Lk(p).flatMap(v=>WN(e,d,r,i,v,n,s,o,l))})}function WN(e,t,r,i,a,n,s,o,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,o,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]=Cd(i,f.properties),d={...f,properties:m};return Ur(e,d,r,o,n,s,l).map(k=>an(t,k))})}function Da(e,t,r,i,a,n={},s){if(Array.isArray(r[a])){const l=yr(r)||i,u=r[a].map(f=>Ft(e,f,t,n,s)),c=ae(n,l);if(c!==void 0)return u.find(f=>$e(ae(f,[ze,l,ci],ae(f,[ze,l,Wt])),c))}}function Vk(e,t,r,i,a){let n=r;if(qe(r,at)&&(n=Ft(e,r,t,void 0,a)),wt(i))return n;const s=Array.isArray(i)?[...i]:i.split("."),[o,...l]=s;if(o!==void 0&&o!==""&&qe(n,o))return n=ae(n,o),Vk(e,t,n,l,a)}function Uo(e,t,r,i,a,n){const s=Vk(e,t,r,i,n);return s===void 0?a:s}const ph={title:"!@#$_UNKNOWN_$#@!"};function KN(e,t,r,i,a={},n){const s=Array.isArray(i)?[...i]:i.split(".");let o=r;const l=s.pop(),u=String(l);s.length&&s.forEach(d=>{o=Uo(e,t,o,[ze,d],{},n),qe(o,Ae)?o=Da(e,t,o,u,Ae,ae(a,d),n):qe(o,Le)&&(o=Da(e,t,o,u,Le,ae(a,d),n))}),qe(o,Ae)?o=Da(e,t,o,u,Ae,a,n):qe(o,Le)&&(o=Da(e,t,o,u,Le,a,n));let c=Uo(e,t,o,[ze,l],ph,n);c===ph&&(c=void 0);const f=Uo(e,t,o,Nb,[],n);let m;return c&&Array.isArray(f)&&(m=f.includes(u)),{field:c,isRequired:m}}function GN(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 JN(e,t){return function(r,i){if(r==null)return r;if(!Ci(r))return e(r,i);for(var a=r.length,n=-1,s=Object(r);++n<a&&i(s[n],n,s)!==!1;);return r}}var Hk=JN(Sk);function YN(e,t,r,i,a){return a(e,function(n,s,o){r=i?(i=!1,n):t(r,n,s,o)}),r}function XN(e,t,r){var i=jt(e)?GN:YN,a=arguments.length<3;return i(e,Od(t),r,a,Hk)}const ZN={type:"object",$id:k_,properties:{__not_really_there__:{type:"number"}}};function gf(e,t,r,i,a){let n=0;return r&&(Ue(r.properties)?n+=XN(r.properties,(s,o,l)=>{const u=ae(i,l);if(typeof o=="boolean")return s;if(qe(o,at)){const c=Ft(e,o,t,u,a);return s+gf(e,t,c,u||{},a)}if((qe(o,Ae)||qe(o,Le))&&u){const c=qe(o,Ae)?Ae:Le,f=yr(o);return s+na(e,t,u,ae(o,c),-1,f,a)}if(o.type==="object"){const c=Ue(u)?1:0;return s+c+gf(e,t,o,u,a)}if(o.type===ns(u)){let c=s+1;return o.default?c+=u===o.default?1:-1:o.const&&(c+=u===o.const?1:-1),c}return s},0):Dn(r.type)&&r.type===ns(i)&&(n+=1)),n}function na(e,t,r,i,a=-1,n,s){const o=i.map(m=>On(m,t,[])),l=jk(r,i,n);if(Tk(l))return l;const u=o.reduce((m,d,p)=>(il(e,r,[ZN,d],t,n)===1&&m.push(p),m),[]);if(u.length===1)return u[0];u.length||xk(o.length,m=>u.push(m));const c=new Set,{bestIndex:f}=u.reduce((m,d)=>{const{bestScore:p}=m,k=o[d],v=gf(e,t,k,r,s);return c.add(v),v>p?{bestIndex:d,bestScore:v}:m},{bestIndex:a,bestScore:0});return c.size===1&&a>=0?a:f}function Wk(e){const t=e[Wt],r=vr(e);return be(t)&&Dn(t==null?void 0:t.$data)&&r!=="object"&&r!=="array"}function Kk(e){return Array.isArray(e.enum)&&e.enum.length===1||Wt in e}function Pd(e){return Array.isArray(e.items)&&e.items.every(t=>be(t))}function ia(e){return e==null}function is(e,t,r=!1,i=!1,a=!1){if(Array.isArray(t)){const n=Array.isArray(e)?e:[],s=a?n:t,o=a?t:n,l=s.map((u,c)=>o[c]!==void 0?is(n[c],t[c],r,i,a):u);return(r||a)&&l.length<o.length&&l.push(...o.slice(l.length)),l}if(be(t)){const n=Object.assign({},e);return Object.keys(t).reduce((s,o)=>{var l;const u=ae(t,o),c=be(e)&&o in e,f=o in t,m=(l=ae(e,o))!==null&&l!==void 0?l:{},d=c&&be(m)&&Object.values(m).some(v=>be(v)),p=c&&be(ae(e,o)),k=f&&be(u);return p&&k&&!d?(s[o]={...ae(e,o),...u},s):(s[o]=is(ae(e,o),u,r,i,a&&(c||!f)),n)},n)}return i&&(e!==void 0&&ia(t)||typeof t=="number"&&Number.isNaN(t))||a&&!ia(t)?e:t}function Mn(e,t,r=!1){return Object.keys(t).reduce((i,a)=>{const n=e?e[a]:{},s=t[a];if(e&&a in e&&be(s))i[a]=Mn(n,s,r);else if(r&&Array.isArray(n)&&Array.isArray(s)){let o=s;r==="preventDuplicates"&&(o=s.reduce((l,u)=>(n.includes(u)||l.push(u),l),[])),i[a]=n.concat(o)}else i[a]=s;return i},{...e})}function QN(e){if(b_ in e&&Array.isArray(e.enum)&&e.enum.length===1)return e.enum[0];if(Wt in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function eF(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 s=r.get(String(n));return s?[s]:[]})}function pi(e,t){if(e.enum){let n,s;if(t){const{enumNames:l,enumOrder:u}=me(t);n=l,s=u}let o=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 s&&(o=eF(o,s)),o}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=yr(e);if(t){const{optionsSchemaSelector:n=a}=me(t);a=n}return r==null?void 0:r.map((n,s)=>{var o,l,u;const{title:c}=me(i==null?void 0:i[s]),f=n;let m,d=c;if(a){const p=ae(f,[ze,a],{});m=ae(p,ci,ae(p,Wt)),d=(l=(o=d??(p==null?void 0:p.title))!==null&&o!==void 0?o:f.title)!==null&&l!==void 0?l:String(m)}else m=QN(f),d=(u=d??f.title)!==null&&u!==void 0?u:String(m);return{schema:f,label:d,value:m}})}function Rl(e,t,r={},i){const a=Ft(e,t,r,void 0,i),n=a.oneOf||a.anyOf;return Array.isArray(a.enum)?!0:Array.isArray(n)?n.every(s=>typeof s!="boolean"&&Kk(s)):!1}function Id(e,t,r,i){return!t.uniqueItems||!t.items||typeof t.items=="boolean"?!1:Rl(e,t.items,r,i)}const tF=["string","number","integer","boolean","null"];var aa;(function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"})(aa||(aa={}));function Vu(e,t=aa.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!==aa.Ignore&&be(e.additionalItems)?e.additionalItems:{}}function Gk(e,t){const{default:r,type:i}=e;return Array.isArray(i)&&i.includes("null")&&wt(t)&&r===null?null:t}function hh(e,t,r,i,a,n=[],s={},o=!1,l=!1){const{emptyObjectFields:u="populateAllDefaults"}=s;if(i===!0||o)e[t]=r;else if(i==="excludeObjectChildren")(l&&r!==void 0||!be(r)||!wt(r))&&(e[t]=r);else if(u!=="skipDefaults"){const c=a===void 0?n.includes(t):a;be(r)?u==="skipEmptyDefaults"?wt(r)||(e[t]=r):(!wt(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 _n(e,t,r={}){const{parentDefaults:i,rawFormData:a,rootSchema:n={},includeUndefinedValues:s=!1,_recurseList:o=[],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=o;if(p[Wt]!==void 0&&(l==null?void 0:l.constAsDefaults)!=="never"&&!Wk(p))k=p[Wt];else if(be(k)&&be(p.default)&&!p[Le]&&!p[Ae]&&!p[at])v?k=Mn(p.default,k):k=Mn(k,p.default);else if(ci in p&&!v&&!p[Le]&&!p[Ae]&&!p[at])k=p.default;else if(at in p){const y=p[at];o.includes(y)||(w=o.concat(y),g=es(y,n));const S=a===void 0||be(a)&&wt(a);g&&!k&&S&&(k=p.default),f&&g&&!be(a)&&(d=a)}else if(ad in p){const y={...gh(e,p,r,k),...d};[g]=Uk(e,p,n,!1,[],y,u)}else if(Pd(p)&&!v)k=p.items.map((y,S)=>_n(e,y,{rootSchema:n,includeUndefinedValues:s,_recurseList:o,experimental_defaultFormStateBehavior:l,experimental_customMergeAllOf:u,parentDefaults:Array.isArray(i)?i[S]:void 0,rawFormData:d,required:c,shouldMergeDefaultsIntoFormData:f}));else if(Ae in p){const{oneOf:y,...S}=p;if(y.length===0)return;const A=yr(p),{type:_="null"}=S;!Array.isArray(_)&&tF.includes(_)&&(b==null?void 0:b.constAsDefaults)==="skipOneOf"&&(b={...b,constAsDefaults:"never"}),g=y[na(e,n,a??p.default,y,0,A,u)],g=an(S,g)}else if(Le in p){const{anyOf:y,...S}=p;if(y.length===0)return;const A=yr(p);g=y[na(e,n,a??p.default,y,0,A,u)],g=an(S,g)}if(g)return _n(e,g,{rootSchema:n,includeUndefinedValues:s,_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 x=gh(e,p,r,k);let h=x??k;if(f){const{arrayMinItems:y={}}=l||{},{mergeExtraDefaults:S}=y,A=Td(e,p,n,a,l,u);(!be(a)||Hr in p)&&(h=is(h,A,S,!0))}return h}function Td(e,t,r,i,a,n){const s=(a==null?void 0:a.allOf)==="populateDefaults"&&Hr in t,o=s?Ft(e,t,r,i,n):t,l=!Kk(o)&&Rl(e,o,r,n);let u=i;if(l){const f=pi(o);u=(f==null?void 0:f.some(d=>$e(d.value,i)))?i:void 0}return o[Wt]&&(a==null?void 0:a.constAsDefaults)==="always"?u=o.const:be(u)&&be(o.properties)&&(u=Object.keys(o.properties).reduce((f,m)=>{const d=ae(o,[ze,m],{});return m in f&&(s||be(d)&&Hr in d)&&(f[m]=Td(e,d,r,ae(f,m),a,n)),f},{...u})),u}function rF(e,t,{rawFormData:r,rootSchema:i={},includeUndefinedValues:a=!1,_recurseList:n=[],experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,required:l,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c}={},f){{const m=be(r)?r:{},d=t,k=(s==null?void 0:s.allOf)==="populateDefaults"&&Hr in d||(s==null?void 0:s.emptyObjectFields)!=="skipEmptyDefaults"&&sd in d?Ft(e,d,i,m,o):d,v=k[Wt],g=Object.keys(k.properties||{}).reduce((b,w)=>{var x;const h=ae(k,[ze,w],{}),y=be(v)&&v[w]!==void 0,S=(be(h)&&Wt in h||y)&&(s==null?void 0:s.constAsDefaults)!=="never"&&!Wk(h),A=_n(e,h,{rootSchema:i,_recurseList:n,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,includeUndefinedValues:a===!0,parentDefaults:ae(f,[w]),rawFormData:ae(m,[w]),required:(x=k.required)===null||x===void 0?void 0:x.includes(w),shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c});return hh(b,w,A,a,l,k.required,s,S,(h==null?void 0:h.type)==="null"),b},{});if(k.additionalProperties&&!c){const b=be(k.additionalProperties)?k.additionalProperties:{},w=new Set,x=[];Object.keys(m).filter(h=>!k.properties||!k.properties[h]).forEach(h=>{w.add(h),x.push(h)}),be(f)&&x.length===0&&Object.keys(f).filter(h=>!k.properties||!k.properties[h]).forEach(h=>w.add(h)),w.forEach(h=>{var y;const S=_n(e,b,{rootSchema:i,_recurseList:n,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,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});hh(g,h,S,a,l,x)})}return Gk(t,g)}}function nF(e,t,{rawFormData:r,rootSchema:i={},_recurseList:a=[],experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,required:o,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",x=g==="requiredOnly",h=g==="all"||!w&&!x,y=(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(p)&&(p=p.map((E,O)=>{const R=Vu(k,aa.Fallback,O),T=Array.isArray(r)?r[O]:void 0;return _n(e,R,{rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,parentDefaults:E,rawFormData:T,required:o,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c})})),Array.isArray(r)){const E=Vu(k);if(w)p=r;else{const O=r.map((T,D)=>_n(e,E,{rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,rawFormData:T,parentDefaults:ae(p,[D]),required:o,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c}));p=is(p,O,(x&&o||h)&&b)}}const _=Array.isArray(p)?p.length:0;if(w)return u&&!o?p:p??A;if(x&&!o)return p||void 0;let C;if(!k.minItems||Id(e,k,i,s)||y(e,k,i)||k.minItems<=_)C=p||!o&&!l?p:A;else{const E=p||[],O=Vu(k,aa.Invert),R=O.default,T=Array.from({length:k.minItems-_},()=>_n(e,O,{parentDefaults:R,rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,required:o,shouldMergeDefaultsIntoFormData:u}));C=E.concat(T)}return Gk(t,C)}function gh(e,t,r={},i){switch(vr(t)){case"object":return rF(e,t,r,i);case"array":return nF(e,t,r,i);default:return}}function Jk(e,t,r,i,a=!1,n,s,o){if(!be(t))throw new Error(`Invalid schema: ${t}`);const l=Ft(e,t,i,r,s),u=_n(e,l,{rootSchema:i,includeUndefinedValues:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,rawFormData:r,shouldMergeDefaultsIntoFormData:!0,initialDefaultsGenerated:o,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=Td(e,l,i??l,r,n,s);return is(u,m,!0,f,!0)}return u}function Yk(e={}){return"widget"in me(e)&&me(e).widget!=="hidden"}function Xk(e,t,r={},i,a){if(r[ud]==="files")return!0;if(t.items){const n=Ft(e,t.items,i,void 0,a);return n.type==="string"&&n.format==="data-url"}return!1}function iF(e,t,r={},i,a,n){const s=me(r,a),{label:o=!0}=s;let l=!!o;if(l){const u=vr(t),c=!!t[En];u==="array"&&(l=c||Id(e,t,i,n)||Xk(e,t,r,i,n)||Yk(r)),u==="object"&&(l=c),u==="boolean"&&r&&!r[ud]&&(l=!1),r!=null&&r[S_]&&(l=!1)}return l}function Zk(e,t,r){for(var i=-1,a=t.length,n={};++i<a;){var s=t[i],o=Al(e,s);r(o,s)&&Ed(n,ca(s,e),o)}return n}function aF(e,t){return Zk(e,t,function(r,i){return Ok(e,i)})}var Qk=hk(function(e,t){return e==null?{}:aF(e,t)});function sF(e,t){if(t.length===0&&typeof e!="object")return e;const r=Qk(e,t);return Array.isArray(e)?Object.keys(r).map(i=>r[i]):r}function oF(e,t){const r=(a,n)=>typeof a!="object"||wt(a)||n&&!wt(a),i=(a,n=[],s=[[]])=>{const o=Object.keys(a);return o.forEach(l=>{const u=a[l];if(typeof u=="object"){const c=s.map(f=>[...f,l]);u[ld]&&u[Mo]!==""?n.push(u[Mo]):i(u,n,c)}else l===Mo&&u!==""&&s.forEach(c=>{const f=ae(t,c),m=o.length===1;(r(f,m)||Array.isArray(f)&&f.every(d=>r(d,m)))&&n.push(c)})}),n};return i(e)}function e1(e){return ia(e)||e===""?!0:Array.isArray(e)?e.length===0:be(e)?Object.values(e).every(e1):!1}function lF(e,t){return t?t(e):Dk(e)}function uF(e,t,r={},i,a){function n(p){return be(p)}function s(p){return be(p)}function o(p,k,v){var g;const{properties:b,additionalProperties:w,patternProperties:x,propertyNames:h}=p,y=new Set((g=p.required)!==null&&g!==void 0?g:[]);function S(_,C,E,O=!1){var R;const T=d(C,E,v[_]);if(!O&&be(T)){let D=s(C)?C:{};D.$ref!==void 0&&(D=es(D.$ref,r));const L=new Set((R=D.required)!==null&&R!==void 0?R:[]);if(Object.entries(T).every(([Y,Z])=>!L.has(Y)&&e1(Z)))return}T!==void 0&&(v[_]=T)}if(b!==void 0)for(const[_,C]of Object.entries(b))S(_,C,k[_],y.has(_));let A;if(x!==void 0){A=[];const _=Object.entries(x).map(([E,O])=>[new RegExp(E),O]),C=new Set(Object.keys(b??{}));for(const[E,O]of Object.entries(k))if(!C.has(E)){const R=_.find(([T])=>T.test(E));R===void 0?A.push(E):S(E,R[1],O)}}if(w!==void 0&&w!==!1){const _=w;if(A!==void 0)for(const C of A)S(C,_,k[C]);else{const C=new Set(Object.keys(b??{}));for(const[E,O]of Object.entries(k))C.has(E)||S(E,_,O)}}if(h!==void 0)for(const[_,C]of Object.entries(k))v[_]=C;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=(s(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)||Rl(e,k,r,a))return g;const b=zk(p,!0,r),w=na(e,r,v,b,0,yr(k),a),x=p[w],h=be(x)?On(x,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,x]of Object.entries(g))w in k&&!Array.isArray(x)&&(b=d(x,k,b));return b}function d(p,k,v){if(k===void 0||p===!1)return;if(p===!0||wt(p))return k;let g=p;const{$ref:b,allOf:w}=g;if(b!==void 0)return d(es(b,r),k,v);if(w){g=lF(g,a);const y=g.allOf;if(y)for(let S=0;S<y.length;S++)v=d(y[S],k,v)}let x=f(g,k,c(g.oneOf,g,k,v));const h=vr(g);if(h==="object"){if(!n(k))return;x=o(g,k,n(x)?x:{})}else if(h==="array"){if(!Array.isArray(k))return;x=l(g,k,Array.isArray(x)?x:[])}else x===void 0&&(x=k);return m(g,k,u(g,k,x))}return d(t,i)}const or=Symbol("no Value");function t1(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=>Wt in i?i[Wt]:Array.isArray(i.enum)&&i.enum.length===1?i.enum[0]:or).filter(i=>i!==or);return r.length>0?r:void 0}function cF(e,t){const r=t1(e);if(!r||r.some(a=>$e(a,t)))return or;const i=ae(e,ci,or);return i!==or&&r.some(a=>$e(a,i))?i:r.length===1?r[0]:void 0}function yf(e,t,r,i,a={},n){let s;if(qe(r,ze)){const o={};if(qe(i,ze)){const c=ae(i,ze,{});Object.keys(c).forEach(f=>{qe(a,f)&&(o[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],{});qe(m,at)&&(m=Ft(e,m,t,f,n)),qe(d,at)&&(d=Ft(e,d,t,f,n));const p=ae(m,"type"),k=ae(d,"type");if(!p||p===k)if(qe(o,c)&&delete o[c],k==="object"||k==="array"&&Array.isArray(f)){const v=yf(e,t,d,m,f,n);(v!==void 0||k==="array")&&(u[c]=v)}else{const v=ae(d,ci,or),g=ae(m,ci,or);v!==or&&v!==f&&(g===f?o[c]=v:ae(d,"readOnly")===!0&&(o[c]=void 0));const b=ae(d,Wt,or),w=ae(m,Wt,or);if(b!==or&&b!==f&&(o[c]=w===f?b:void 0),qe(a,c)){const x=cF(d,f);x!==or&&(o[c]=x)}}}),s={...typeof a=="string"||Array.isArray(a)?void 0:a,...o,...u}}else if(ae(i,"type")==="array"&&ae(r,"type")==="array"&&Array.isArray(a)){let o=ae(i,"items"),l=ae(r,"items");if(typeof o=="object"&&typeof l=="object"&&!Array.isArray(o)&&!Array.isArray(l)){qe(o,at)&&(o=Ft(e,o,t,a,n)),qe(l,at)&&(l=Ft(e,l,t,a,n));const u=ae(o,"type"),c=ae(l,"type");if(!u||u===c){const f=ae(r,"maxItems",-1);if(c==="object")s=a.reduce((m,d)=>{const p=yf(e,t,l,o,d,n);return p!==void 0&&(f<0||m.length<f)&&m.push(p),m},[]);else{const m=t1(l),d=m?a.filter(p=>m.some(k=>$e(k,p))):a;s=f>0&&d.length>f?d.slice(0,f):d}}}else typeof o=="boolean"&&typeof l=="boolean"&&o===l&&(s=a)}return s}function xn(e,t,r,i,a,n=[],s){if(at in t||ad in t||Hr in t||sd in t){const l=Ft(e,t,i,a,s);if(n.findIndex(c=>$e(c,l))===-1)return xn(e,l,r,i,a,n.concat(l),s)}let o={[Mo]:r.replace(/^\./,"")};if(Ae in t||Le in t){const l=Ae in t?t.oneOf:t.anyOf,u=yr(t),c=na(e,i,a,l,0,u,s),f=l[c];o={...o,...xn(e,f,r,i,a,n,s)}}if(zi in t&&t[zi]!==!1){lt(o,ld,!0);const l=Ue(t[zi])?t[zi]:{},u=ae(t,ze,{});for(const c of Object.keys(a??{}))c in u||(o[c]=xn(e,l,`${r}.${c}`,i,ae(a,[c]),n,s))}if(ea in t&&Array.isArray(a)){const{items:l,additionalItems:u}=t;Array.isArray(l)?a.forEach((c,f)=>{l[f]?o[f]=xn(e,l[f],`${r}.${f}`,i,c,n,s):u?o[f]=xn(e,u,`${r}.${f}`,i,c,n,s):console.warn(`Unable to generate path schema for "${r}.${f}". No schema defined for it`)}):a.forEach((c,f)=>{o[f]=xn(e,l,`${r}.${f}`,i,c,n,s)})}else if(ze in t)for(const l in t.properties){const u=ae(t,[ze,l],{});o[l]=xn(e,u,`${r}.${l}`,i,ae(a,[l]),n,s)}return o}function fF(e,t,r="",i,a,n){return xn(e,t,r,i,a,void 0,n)}class dF{constructor(t,r,i,a){(r==null?void 0:r[Na])===qo?this.rootSchema=mf(r,ae(r,nt,"#")):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||!$e(this.rootSchema,r)||!$e(this.experimental_defaultFormStateBehavior,i)||this.experimental_customMergeAllOf!==a}findFieldInSchema(t,r,i){return KN(this.validator,this.rootSchema,t,r,i,this.experimental_customMergeAllOf)}findSelectedOptionInXxxOf(t,r,i,a){return Da(this.validator,this.rootSchema,t,r,i,a,this.experimental_customMergeAllOf)}getDefaultFormState(t,r,i=!1,a){return Jk(this.validator,t,r,this.rootSchema,i,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf,a)}getDisplayLabel(t,r,i){return iF(this.validator,t,r,this.rootSchema,i,this.experimental_customMergeAllOf)}getClosestMatchingOption(t,r,i,a){return na(this.validator,this.rootSchema,t,r,i,a,this.experimental_customMergeAllOf)}getFirstMatchingOption(t,r,i){return il(this.validator,t,r,this.rootSchema,i)}getFromSchema(t,r,i){return Uo(this.validator,this.rootSchema,t,r,i,this.experimental_customMergeAllOf)}isFilesArray(t,r){return Xk(this.validator,t,r,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(t){return Id(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(t){return Rl(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}omitExtraData(t,r){return uF(this.validator,t,this.rootSchema,r)}retrieveSchema(t,r,i){return Ft(this.validator,t,this.rootSchema,r,this.experimental_customMergeAllOf,i)}sanitizeDataForNewSchema(t,r,i){return yf(this.validator,this.rootSchema,t,r,i,this.experimental_customMergeAllOf)}toPathSchema(t,r,i){return fF(this.validator,t,r,this.rootSchema,i,this.experimental_customMergeAllOf)}}function mF(e,t,r={},i){return new dF(e,t,r,i)}function pF(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,[s,...o]=a.split(";"),l=s||"",u=decodeURI(((t=o.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 Sn(e,t){let r=String(e);for(;r.length<t;)r=`0${r}`;return r}function r1(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,s=r?a+t:t;if(n>s)return r1(t,e).reverse();const o=[];for(let l=n;l<=s;l+=1)o.push({value:l,label:Sn(l,2)});return o}function hF(e,t){let r=e;if(Array.isArray(t)){const i=r.split(/(%\d)/);t.forEach((a,n)=>{const s=i.findIndex(o=>o===`%${n+1}`);s>=0&&(i[s]=a)}),r=i.join("")}return r}function gF(e,t){return hF(e,t)}function Nl(e,t=[],r){if(Array.isArray(e))return e.map(n=>Nl(n,t)).filter(n=>n!==void 0);const i=e===""||e===null?-1:Number(e),a=t[i];return a?a.value:r}function n1(e,t,r=[]){const i=Nl(e,r);return Array.isArray(t)?t.filter(a=>!$e(a,i)):$e(i,t)?void 0:t}function da(e,t){return Array.isArray(t)?t.some(r=>$e(r,e)):$e(t,e)}function i1(e,t=[],r=!1){const i=t.map((a,n)=>da(a.value,e)?String(n):void 0).filter(a=>typeof a<"u");return r?i:i[0]}function yF(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 s=i1(e,t,r);return typeof s>"u"?a:s}function a1(e,t,r=[]){const i=Nl(e,r);if(!ia(i)){const a=r.findIndex(o=>i===o.value),n=r.map(({value:o})=>o);return t.slice(0,a).concat(i,t.slice(a)).sort((o,l)=>+(n.indexOf(o)>n.indexOf(l)))}return t}function yh(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 _r(e,t,r="indexed",i){return r!=="realValue"?Nl(e,t,i):Array.isArray(e)?e.map(a=>yh(a,t,i)):yh(e,t,i)}function ys(e,t,r="indexed"){return r!=="realValue"?String(t):ia(e)?"":String(typeof e=="object"?t:e)}var vF=1,bF=4;function al(e){return Va(e,vF|bF)}function kF(e,t,r,i){return i=typeof i=="function"?i:void 0,e==null?e:Ed(e,t,r,i)}class s1{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={},kF(this.errorSchema,t,i,Object)),i}resetAllErrors(t){return this.errorSchema=t?al(t):{},this}addErrors(t,r){const i=this.getOrCreateErrorBlock(r);let a=ae(i,Nt);return Array.isArray(a)||(a=[],i[Nt]=a),Array.isArray(t)?lt(i,Nt,[...new Set([...a,...t])]):lt(i,Nt,[...new Set([...a,t])]),this}setErrors(t,r){const i=this.getOrCreateErrorBlock(r),a=Array.isArray(t)?[...new Set([...t])]:[t];return lt(i,Nt,a),this}clearErrors(t){const r=this.getOrCreateErrorBlock(t);return lt(r,Nt,[]),this}}var wF=200;function xF(e,t,r,i){var a=-1,n=_d,s=!0,o=e.length,l=[],u=t.length;if(!o)return l;t.length>=wF&&(n=rs,s=!1,t=new mi(t));e:for(;++a<o;){var c=e[a],f=c;if(c=c!==0?c:0,s&&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 SF=Il(function(e,t){return ts(e)?xF(e,gs(t,1,ts,!0)):[]});function CF(e,t){if(e==null)return{};var r=ua(xd(e),function(i){return[i]});return t=Od(t),Zk(e,r,function(i,a){return t(i,a[0])})}function vh(e,t){const r=Nn(e),i=Nn(t);if(e===t||!r&&!i)return[];if(r&&!i)return Cr(e);if(!r&&i)return Cr(t);const a=Cr(CF(e,(s,o)=>!$e(s,ae(t,o)))),n=SF(Cr(t),Cr(e));return[...a,...n]}function EF(e,t,r=[1900,new Date().getFullYear()+2],i="YMD"){const{day:a,month:n,year:s,hour:o,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:s},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:o},{type:"minute",range:[0,59],value:l},{type:"second",range:[0,59],value:u}),d}function AF(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 OF(e,t,r={},i=!0){const a={type:t||"text",...AF(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 vs(e){var t;return(t=e==null?void 0:e.optionValueFormat)!==null&&t!==void 0?t:"indexed"}const bh={props:{disabled:!1},submitText:"Submit",norender:!1};function jd(e={}){const t=me(e);if(t!=null&&t[Qo]){const r=t[Qo];return{...bh,...r}}return bh}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 _F=0;function o1(e){var t=++_F;return dd(e)+t}function Rd(){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,o1("test-id-")),e.get(r)}})}var $s={exports:{}},et={};/**
60
60
  * @license React
61
61
  * react-is.production.min.js
62
62
  *
@@ -64,7 +64,7 @@ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var q=$(V,Y,N,M,U+"."+Y,
64
64
  *
65
65
  * This source code is licensed under the MIT license found in the
66
66
  * LICENSE file in the root directory of this source tree.
67
- */var hh;function bF(){if(hh)return et;hh=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"),s=Symbol.for("react.context"),o=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 o:case s:case l:case m:case f:case n:return v;default:return g}}case t:return g}}}return et.ContextConsumer=s,et.ContextProvider=n,et.Element=e,et.ForwardRef=l,et.Fragment=r,et.Lazy=m,et.Memo=f,et.Portal=t,et.Profiler=a,et.StrictMode=i,et.Suspense=u,et.SuspenseList=c,et.isAsyncMode=function(){return!1},et.isConcurrentMode=function(){return!1},et.isContextConsumer=function(v){return k(v)===s},et.isContextProvider=function(v){return k(v)===n},et.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},et.isForwardRef=function(v){return k(v)===l},et.isFragment=function(v){return k(v)===r},et.isLazy=function(v){return k(v)===m},et.isMemo=function(v){return k(v)===f},et.isPortal=function(v){return k(v)===t},et.isProfiler=function(v){return k(v)===a},et.isStrictMode=function(v){return k(v)===i},et.isSuspense=function(v){return k(v)===u},et.isSuspenseList=function(v){return k(v)===c},et.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===s||v.$$typeof===l||v.$$typeof===p||v.getModuleId!==void 0)},et.typeOf=k,et}var tt={};/**
67
+ */var kh;function PF(){if(kh)return et;kh=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"),s=Symbol.for("react.context"),o=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 o:case s:case l:case m:case f:case n:return v;default:return g}}case t:return g}}}return et.ContextConsumer=s,et.ContextProvider=n,et.Element=e,et.ForwardRef=l,et.Fragment=r,et.Lazy=m,et.Memo=f,et.Portal=t,et.Profiler=a,et.StrictMode=i,et.Suspense=u,et.SuspenseList=c,et.isAsyncMode=function(){return!1},et.isConcurrentMode=function(){return!1},et.isContextConsumer=function(v){return k(v)===s},et.isContextProvider=function(v){return k(v)===n},et.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},et.isForwardRef=function(v){return k(v)===l},et.isFragment=function(v){return k(v)===r},et.isLazy=function(v){return k(v)===m},et.isMemo=function(v){return k(v)===f},et.isPortal=function(v){return k(v)===t},et.isProfiler=function(v){return k(v)===a},et.isStrictMode=function(v){return k(v)===i},et.isSuspense=function(v){return k(v)===u},et.isSuspenseList=function(v){return k(v)===c},et.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===s||v.$$typeof===l||v.$$typeof===p||v.getModuleId!==void 0)},et.typeOf=k,et}var tt={};/**
68
68
  * @license React
69
69
  * react-is.development.js
70
70
  *
@@ -72,19 +72,19 @@ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var q=$(V,Y,N,M,U+"."+Y,
72
72
  *
73
73
  * This source code is licensed under the MIT license found in the
74
74
  * LICENSE file in the root directory of this source tree.
75
- */var gh;function kF(){return gh||(gh=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"),s=Symbol.for("react.context"),o=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 C(W){return!!(typeof W=="string"||typeof W=="function"||W===r||W===a||b||W===i||W===u||W===c||g||W===d||p||k||v||typeof W=="object"&&W!==null&&(W.$$typeof===m||W.$$typeof===f||W.$$typeof===n||W.$$typeof===s||W.$$typeof===l||W.$$typeof===w||W.getModuleId!==void 0))}function h(W){if(typeof W=="object"&&W!==null){var ie=W.$$typeof;switch(ie){case e:var re=W.type;switch(re){case r:case a:case i:case u:case c:return re;default:var ue=re&&re.$$typeof;switch(ue){case o:case s:case l:case m:case f:case n:return ue;default:return ie}}case t:return ie}}}var y=s,S=n,A=e,_=l,x=r,E=m,O=f,R=t,T=a,D=i,L=u,J=c,X=!1,Z=!1;function P(W){return X||(X=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function F(W){return Z||(Z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function z(W){return h(W)===s}function I(W){return h(W)===n}function N(W){return typeof W=="object"&&W!==null&&W.$$typeof===e}function M(W){return h(W)===l}function U(W){return h(W)===r}function V(W){return h(W)===m}function H(W){return h(W)===f}function K(W){return h(W)===t}function Y(W){return h(W)===a}function $(W){return h(W)===i}function q(W){return h(W)===u}function G(W){return h(W)===c}tt.ContextConsumer=y,tt.ContextProvider=S,tt.Element=A,tt.ForwardRef=_,tt.Fragment=x,tt.Lazy=E,tt.Memo=O,tt.Portal=R,tt.Profiler=T,tt.StrictMode=D,tt.Suspense=L,tt.SuspenseList=J,tt.isAsyncMode=P,tt.isConcurrentMode=F,tt.isContextConsumer=z,tt.isContextProvider=I,tt.isElement=N,tt.isForwardRef=M,tt.isFragment=U,tt.isLazy=V,tt.isMemo=H,tt.isPortal=K,tt.isProfiler=Y,tt.isStrictMode=$,tt.isSuspense=q,tt.isSuspenseList=G,tt.isValidElementType=C,tt.typeOf=h})()),tt}var yh;function wF(){return yh||(yh=1,process.env.NODE_ENV==="production"?Ms.exports=bF():Ms.exports=kF()),Ms.exports}var xF=wF();const vh=Wr(xF),$u={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 SF(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})=>j.jsx(e,{options:{...i,...a},...n}),lt(e,"MergedWidget",r)}return r}function Kr(e,t,r={}){const i=vr(e);if(typeof t=="function"||t&&vh.isForwardRef(B.createElement(t))||vh.isMemo(t))return SF(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 Kr(e,a,r)}if(typeof i=="string"){if(!(i in $u))throw new Error(`No widget for type '${i}' in schema: ${JSON.stringify(e)}`);if(t in $u[i]){const a=r[$u[i][t]];return Kr(e,a,r)}}throw new Error(`No widget '${t}' for type '${i}' in schema: ${JSON.stringify(e)}`)}function n1(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 i1(e){const t=new Set;return JSON.stringify(e,(r,i)=>(t.add(r),i)),JSON.stringify(e,Array.from(t).sort())}function fr(e){return n1(i1(e))}function CF(e){return n1(i1(e))}function EF(e,t,r={}){try{return Kr(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`${Nn(e)?e:e[nt]}__${t}`}function zn(e){return Si(e,"description")}function Pd(e){return Si(e,"error")}function Id(e){return Si(e,"examples")}function Td(e){return Si(e,"help")}function Il(e){return Si(e,"title")}function Rr(e,t=!1){const r=t?` ${Id(e)}`:"";return`${Pd(e)} ${zn(e)} ${Td(e)}${r}`}function Tl(e,t){return`${e}-${t}`}function ir(e,t){return Si(e,t)}function zu(e,t){return Si(e,`optional${t}`)}function fa(e){return!ra(e)&&(!Ue(e)||Array.isArray(e)||!wt(e))}function AF(e,t){const{rootSchema:r,schemaUtils:i}=e;if($e(t,r))return!0;if(at in r){const a=i.retrieveSchema(r);return $e(t,a)}return!1}function OF(e,t,r){return t?r:e}function _F(e){return e?new Date(e).toJSON():void 0}function PF(e,t,r,i=!1){!i&&Array.isArray(r)&&t.default!==void 0&&Qk(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 jd(e,t,r){const i=[d_];return qe(e,mp)&&i.unshift(mp),ae(e,[...i,t],r)}function IF(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]),s=r(n),o=e.filter(c=>!s[c]),l=n.indexOf("*");if(l===-1){if(o.length)throw new Error(`uiSchema order list does not contain ${i(o)}`);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,...o),u}function Uu(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 TF(e,t,r){var i,a;const n=(i=e[No])!==null&&i!==void 0?i:e[at],s=r.uiSchemaDefinitions,o=n&&s?s[n]:void 0;let l;if(o?!t||wt(t)?l={...o}:l=Fn(o,t):l=t||{},s){let u=e;if(n&&e[at]&&!e[No])try{u=Xa(n,r.rootSchema)}catch(c){return console.warn(`could not resolve $ref in resolveUiSchema:
76
- `,c),l}for(const c of[Ae,Le]){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[No])!==null&&a!==void 0?a:v==null?void 0:v[at];if(g&&g in s){const b=d[k]||{};d[k]=Fn(s[g],b),p=!0}}p&&(l[c]=d)}}}return l}function Ua(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 Ua(e.anyOf[0]);if(((i=e.oneOf)===null||i===void 0?void 0:i.length)===1)return Ua(e.oneOf[0]);if(e.allOf){const a=n=>Ua(n);return e.allOf.some(a)}return!1}function jF({hideLabel:e,id:t,multiple:r,options:i,registry:a,uiSchema:n,value:s}){var o,l;if(r||e)return null;const{label:u=!0}=me(n,a.globalUiOptions);if(!u)return null;const c=(o=i.enumOptions)===null||o===void 0?void 0:o.find(({value:d})=>ca(d,s)),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 j.jsx(m,{id:zn(t),description:f,schema:c.schema,uiSchema:n,registry:a})}function mf(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 RF(e,t,r,i="customDeep"){if(i==="always")return!0;if(i==="shallow"){const{props:s,state:o}=e;return!mf(s,t)||!mf(o,r)}const{props:a,state:n}=e;return!$e(a,t)||!$e(n,r)}function bh(e){const t=Ek(e.map(r=>Ue(r)?vr(r):void 0).flat().filter(r=>r!==void 0));return t.length===1?t[0]:t}function gs(e,t,r,i){const{enableOptionalDataFieldForType:a=[]}=me(i,e.globalUiOptions);let n;return Le in t&&Array.isArray(t[Le])?n=bh(t[Le]):Ae in t&&Array.isArray(t[Ae])?n=bh(t[Ae]):n=vr(t),!AF(e,t)&&!r&&!!n&&!Array.isArray(n)&&!!a.find(s=>s===n)}function kh(e,t=!0){const{year:r,month:i,day:a,hour:n=0,minute:s=0,second:o=0}=e,l=Date.UTC(r,i-1,a,n,s,o),u=new Date(l).toJSON();return t?u:u.slice(0,10)}function Rd(e,t=[]){if(!e)return[];let r=[];return Nt in e&&(r=r.concat(e[Nt].map(i=>{const a=`.${t.join(".")}`;return{property:a,message:i,stack:`${a} ${i}`}}))),Object.keys(e).reduce((i,a)=>{if(a!==Nt){const n=e[a];if(jn(n))return i.concat(Rd(n,[...t,a]))}return i},r)}function a1(e){return jt(e)?oa(e,Rn):ls(e)?[e]:pd(qb(od(e)))}function NF(e){const t=new t1;return e.length&&e.forEach(r=>{const{property:i,message:a}=r,n=i==="."?[]:a1(i);n.length>0&&n[0]===""&&n.splice(0,1),a&&t.addErrors(a,n)}),t.ErrorSchema}function Tr(e,t,r,i){const a=Array.isArray(r)?r:r==null?void 0:r.path,n=e===""?[]:[e],s=a?a.concat(...n):n,o=[t.idPrefix,...s].join(t.idSeparator);let l;return t.nameGenerator&&s.length>0&&(l=t.nameGenerator(s,t.idPrefix,i)),{path:s,[nt]:o,...l!==void 0&&{name:l}}}function s1(e){return Object.keys(e).reduce((t,r)=>{if(r==="addError")return t;const i=e[r];return jn(i)?{...t,[r]:s1(i)}:{...t,[r]:i}},{})}function FF(e){return Object.values(e).every(t=>t!==-1)}function DF(e){const{className:t="form-control",type:r,range:i,value:a,select:n,rootId:s,name:o,disabled:l,readonly:u,autofocus:c,registry:f,onBlur:m,onFocus:d}=e,p=`${s}_${r}`,{SelectWidget:k}=f.widgets,v=B.useCallback(g=>n(r,g),[n,r]);return j.jsx(k,{schema:{type:"integer"},id:p,name:o,className:t,options:{enumOptions:Xk(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":Rr(s)})}function MF(e){const{time:t=!1,disabled:r=!1,readonly:i=!1,options:a,onChange:n,value:s}=e,[o,l]=B.useState(Uu(s,t));B.useEffect(()=>{l(Uu(s,t))},[t,s]);const u=B.useCallback((d,p)=>{const k={...o,[d]:typeof p>"u"?-1:p};FF(k)?n(kh(k,t)):l(k)},[o,n,t]),c=B.useCallback(d=>{d.preventDefault(),!(r||i)&&n(void 0)},[r,i,n]),f=B.useCallback(d=>{if(d.preventDefault(),r||i)return;const p=Uu(new Date().toJSON(),t);n(kh(p,t))},[r,i,t,n]);return{elements:B.useMemo(()=>hF(o,t,a.yearsRange,a.format),[o,t,a.yearsRange,a.format]),handleChange:u,handleClear:c,handleSetNow:f}}function da(e){const t=B.useRef(e);return $e(e,t.current)||(t.current=e),t.current}function LF(e,t){return e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}async function qF(e){const{name:t,size:r,type:i}=e;return new Promise((a,n)=>{const s=new window.FileReader;s.onerror=n,s.onload=o=>{var l;typeof((l=o.target)===null||l===void 0?void 0:l.result)=="string"?a({dataURL:LF(o.target.result,t),name:t,size:r,type:i}):a({dataURL:null,name:t,size:r,type:i})},s.readAsDataURL(e)})}async function $F(e){return Promise.all(Array.from(e).map(qF))}function wh(e){return e.reduce((t,r)=>{if(!r)return t;try{const{blob:i,name:a}=iF(r);return[...t,{dataURL:r,name:a,size:i.size,type:i.type}]}catch{return t}},[])}function zF(e,t,r=!1){const i=B.useMemo(()=>r&&e?Array.isArray(e)?e:[e]:[],[e,r]),a=B.useMemo(()=>Array.isArray(e)?wh(e):wh([e||""]),[e]),n=B.useCallback(async o=>{const u=(await $F(o)).map(c=>c.dataURL||null);t(r?i.concat(...u):u[0])},[i,r,t]),s=B.useCallback(o=>{if(r){const l=i.filter((u,c)=>c!==o);t(l)}else t(void 0)},[i,r,t]);return{filesInfo:a,handleChange:n,handleRemove:s}}function UF(e){if(!e)return"";const t=new Date(e),r=wn(t.getFullYear(),4),i=wn(t.getMonth()+1,2),a=wn(t.getDate(),2),n=wn(t.getHours(),2),s=wn(t.getMinutes(),2),o=wn(t.getSeconds(),2),l=wn(t.getMilliseconds(),3);return`${r}-${i}-${a}T${n}:${s}:${o}.${l}`}function Na(e,t,r=!1){if(!t)return e;const{errors:i,errorSchema:a}=e;let n=Rd(t),s=t;return wt(a)||(s=Fn(a,t,r?"preventDuplicates":!0),n=[...i].concat(n)),{errorSchema:s,errors:n}}function BF(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]=Rb+i:t[r]=Nd(i)}return e}function VF(e){return e.map(t=>Nd(t))}function Nd(e){return Array.isArray(e)?VF([...e]):Ue(e)?BF({...e}):e}var _e;(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)"})(_e||(_e={}));function HF(e,t){var r=jt(e)?fd:$k;return r(e,hk(t))}function KF(e,t="none"){return t==="all"?e:e.reduce((r,i)=>{const{message:a,schemaPath:n}=i,s=t!=="anyOf"?n==null?void 0:n.indexOf(`/${Le}/`):void 0,o=t!=="oneOf"?n==null?void 0:n.indexOf(`/${Ae}/`):void 0;let l;return s&&s>=0?l=n==null?void 0:n.substring(0,s):o&&o>=0&&(l=n==null?void 0:n.substring(0,o)),(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 WF(e=[],t,r,i){const a=e.map(n=>{var s;const{instancePath:o,keyword:l,params:u,schemaPath:c,parentSchema:f,...m}=n;let{message:d=""}=m,p=o.replace(/\//g,"."),k=`${p} ${d}`.trim(),v="";const g=[...((s=u.deps)===null||s===void 0?void 0:s.split(", "))||[],u.missingProperty,u.property].filter(b=>b);if(g.length>0)g.forEach(b=>{const w=p?`${p}.${b}`:b;let C=me(ae(t,w.replace(/^\./,""))).title;if(C===void 0){const h=c.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([b]);C=me(ae(t,h)).title}if(C===void 0){const h=p.replace(/^\./,"").split(".").filter(Boolean);C=ae(t,[...h,b,"title"])}if(C)d=d.replace(`'${b}'`,`'${C}'`),v=C;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),S=[];for(const _ of y)S.push(ze,_);S.push(ze,b,"title");const A=ae(i,S);A&&(d=d.replace(`'${b}'`,`'${A}'`),v=A)}}}),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 KF(a,r)}function GF(e,t,r,i,a,n,s,o){const{validationError:l}=t;let u=WF(t.errors,s,o,i);l&&(u=[...u,{stack:l.message}]),typeof n=="function"&&(u=n(u,s));let c=NF(u);if(l&&(c={...c,$schema:{__errors:[l.message]}}),typeof a!="function")return{errors:u,errorSchema:c};const f=Vk(e,i,r,i,!0),m=a(f,tf(f),s,c),d=s1(m);return Na({errors:u,errorSchema:c},d)}var Ls={exports:{}},Bu={},Zr={},Yn={},Vu={},Hu={},Ku={},xh;function rl(){return xh||(xh=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,C)=>`${w}${C}`,"")}get names(){var b;return(b=this._names)!==null&&b!==void 0?b:this._names=this._items.reduce((w,C)=>(C instanceof r&&(w[C.str]=(w[C.str]||0)+1),w),{})}}e._Code=i,e.nil=new i("");function a(g,...b){const w=[g[0]];let C=0;for(;C<b.length;)o(w,b[C]),w.push(g[++C]);return new i(w)}e._=a;const n=new i("+");function s(g,...b){const w=[d(g[0])];let C=0;for(;C<b.length;)w.push(n),o(w,b[C]),w.push(n,d(g[++C]));return l(w),new i(w)}e.str=s;function o(g,b){b instanceof i?g.push(...b._items):b instanceof r?g.push(b):g.push(f(b))}e.addCodeArg=o;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:s`${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})(Ku)),Ku}var Wu={},Sh;function Ch(){return Sh||(Sh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=rl();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 s=(0,t._)`\n`;class o extends a{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts={...u,_n:u.lines?s: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=o})(Wu)),Wu}var Eh;function Ne(){return Eh||(Eh=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=rl(),r=Ch();var i=rl();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=Ch();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(N,M){return this}}class s extends n{constructor(N,M,U){super(),this.varKind=N,this.name=M,this.rhs=U}render({es5:N,_n:M}){const U=N?r.varKinds.var:this.varKind,V=this.rhs===void 0?"":` = ${this.rhs}`;return`${U} ${this.name}${V};`+M}optimizeNames(N,M){if(N[this.name.str])return this.rhs&&(this.rhs=T(this.rhs,N,M)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class o extends n{constructor(N,M,U){super(),this.lhs=N,this.rhs=M,this.sideEffects=U}render({_n:N}){return`${this.lhs} = ${this.rhs};`+N}optimizeNames(N,M){if(!(this.lhs instanceof t.Name&&!N[this.lhs.str]&&!this.sideEffects))return this.rhs=T(this.rhs,N,M),this}get names(){const N=this.lhs instanceof t.Name?{}:{...this.lhs.names};return R(N,this.rhs)}}class l extends o{constructor(N,M,U,V){super(N,U,V),this.op=M}render({_n:N}){return`${this.lhs} ${this.op}= ${this.rhs};`+N}}class u extends n{constructor(N){super(),this.label=N,this.names={}}render({_n:N}){return`${this.label}:`+N}}class c 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 m extends n{constructor(N){super(),this.code=N}render({_n:N}){return`${this.code};`+N}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(N,M){return this.code=T(this.code,N,M),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((M,U)=>M+U.render(N),"")}optimizeNodes(){const{nodes:N}=this;let M=N.length;for(;M--;){const U=N[M].optimizeNodes();Array.isArray(U)?N.splice(M,1,...U):U?N[M]=U:N.splice(M,1)}return N.length>0?this:void 0}optimizeNames(N,M){const{nodes:U}=this;let V=U.length;for(;V--;){const H=U[V];H.optimizeNames(N,M)||(D(N,H.names),U.splice(V,1))}return U.length>0?this:void 0}get names(){return this.nodes.reduce((N,M)=>O(N,M.names),{})}}class p extends d{render(N){return"{"+N._n+super.render(N)+"}"+N._n}}class k extends d{}class v extends p{}v.kind="else";class g extends p{constructor(N,M){super(M),this.condition=N}render(N){let M=`if(${this.condition})`+super.render(N);return this.else&&(M+="else "+this.else.render(N)),M}optimizeNodes(){super.optimizeNodes();const N=this.condition;if(N===!0)return this.nodes;let M=this.else;if(M){const U=M.optimizeNodes();M=this.else=Array.isArray(U)?new v(U):U}if(M)return N===!1?M instanceof g?M:M.nodes:this.nodes.length?this:new g(L(N),M instanceof g?[M]:M.nodes);if(!(N===!1||!this.nodes.length))return this}optimizeNames(N,M){var U;if(this.else=(U=this.else)===null||U===void 0?void 0:U.optimizeNames(N,M),!!(super.optimizeNames(N,M)||this.else))return this.condition=T(this.condition,N,M),this}get names(){const N=super.names;return R(N,this.condition),this.else&&O(N,this.else.names),N}}g.kind="if";class b extends p{}b.kind="for";class w extends b{constructor(N){super(),this.iteration=N}render(N){return`for(${this.iteration})`+super.render(N)}optimizeNames(N,M){if(super.optimizeNames(N,M))return this.iteration=T(this.iteration,N,M),this}get names(){return O(super.names,this.iteration.names)}}class C extends b{constructor(N,M,U,V){super(),this.varKind=N,this.name=M,this.from=U,this.to=V}render(N){const M=N.es5?r.varKinds.var:this.varKind,{name:U,from:V,to:H}=this;return`for(${M} ${U}=${V}; ${U}<${H}; ${U}++)`+super.render(N)}get names(){const N=R(super.names,this.from);return R(N,this.to)}}class h extends b{constructor(N,M,U,V){super(),this.loop=N,this.varKind=M,this.name=U,this.iterable=V}render(N){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(N)}optimizeNames(N,M){if(super.optimizeNames(N,M))return this.iterable=T(this.iterable,N,M),this}get names(){return O(super.names,this.iterable.names)}}class y extends p{constructor(N,M,U){super(),this.name=N,this.args=M,this.async=U}render(N){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(N)}}y.kind="func";class S extends d{render(N){return"return "+super.render(N)}}S.kind="return";class A extends p{render(N){let M="try"+super.render(N);return this.catch&&(M+=this.catch.render(N)),this.finally&&(M+=this.finally.render(N)),M}optimizeNodes(){var N,M;return super.optimizeNodes(),(N=this.catch)===null||N===void 0||N.optimizeNodes(),(M=this.finally)===null||M===void 0||M.optimizeNodes(),this}optimizeNames(N,M){var U,V;return super.optimizeNames(N,M),(U=this.catch)===null||U===void 0||U.optimizeNames(N,M),(V=this.finally)===null||V===void 0||V.optimizeNames(N,M),this}get names(){const N=super.names;return this.catch&&O(N,this.catch.names),this.finally&&O(N,this.finally.names),N}}class _ extends p{constructor(N){super(),this.error=N}render(N){return`catch(${this.error})`+super.render(N)}}_.kind="catch";class x extends p{render(N){return"finally"+super.render(N)}}x.kind="finally";class E{constructor(N,M={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...M,_n:M.lines?`
77
- `:""},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,M){const U=this._extScope.value(N,M);return(this._values[U.prefix]||(this._values[U.prefix]=new Set)).add(U),U}getScopeValue(N,M){return this._extScope.getValue(N,M)}scopeRefs(N){return this._extScope.scopeRefs(N,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(N,M,U,V){const H=this._scope.toName(M);return U!==void 0&&V&&(this._constants[H.str]=U),this._leafNode(new s(N,H,U)),H}const(N,M,U){return this._def(r.varKinds.const,N,M,U)}let(N,M,U){return this._def(r.varKinds.let,N,M,U)}var(N,M,U){return this._def(r.varKinds.var,N,M,U)}assign(N,M,U){return this._leafNode(new o(N,M,U))}add(N,M){return this._leafNode(new l(N,e.operators.ADD,M))}code(N){return typeof N=="function"?N():N!==t.nil&&this._leafNode(new m(N)),this}object(...N){const M=["{"];for(const[U,V]of N)M.length>1&&M.push(","),M.push(U),(U!==V||this.opts.es5)&&(M.push(":"),(0,t.addCodeArg)(M,V));return M.push("}"),new t._Code(M)}if(N,M,U){if(this._blockNode(new g(N)),M&&U)this.code(M).else().code(U).endIf();else if(M)this.code(M).endIf();else if(U)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(N){return this._elseNode(new g(N))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(g,v)}_for(N,M){return this._blockNode(N),M&&this.code(M).endFor(),this}for(N,M){return this._for(new w(N),M)}forRange(N,M,U,V,H=this.opts.es5?r.varKinds.var:r.varKinds.let){const K=this._scope.toName(N);return this._for(new C(H,K,M,U),()=>V(K))}forOf(N,M,U,V=r.varKinds.const){const H=this._scope.toName(N);if(this.opts.es5){const K=M instanceof t.Name?M:this.var("_arr",M);return this.forRange("_i",0,(0,t._)`${K}.length`,Y=>{this.var(H,(0,t._)`${K}[${Y}]`),U(H)})}return this._for(new h("of",V,H,M),()=>U(H))}forIn(N,M,U,V=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(N,(0,t._)`Object.keys(${M})`,U);const H=this._scope.toName(N);return this._for(new h("in",V,H,M),()=>U(H))}endFor(){return this._endBlockNode(b)}label(N){return this._leafNode(new u(N))}break(N){return this._leafNode(new c(N))}return(N){const M=new S;if(this._blockNode(M),this.code(N),M.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(N,M,U){if(!M&&!U)throw new Error('CodeGen: "try" without "catch" and "finally"');const V=new A;if(this._blockNode(V),this.code(N),M){const H=this.name("e");this._currNode=V.catch=new _(H),M(H)}return U&&(this._currNode=V.finally=new x,this.code(U)),this._endBlockNode(_,x)}throw(N){return this._leafNode(new f(N))}block(N,M){return this._blockStarts.push(this._nodes.length),N&&this.code(N).endBlock(M),this}endBlock(N){const M=this._blockStarts.pop();if(M===void 0)throw new Error("CodeGen: not in self-balancing block");const U=this._nodes.length-M;if(U<0||N!==void 0&&U!==N)throw new Error(`CodeGen: wrong number of nodes: ${U} vs ${N} expected`);return this._nodes.length=M,this}func(N,M=t.nil,U,V){return this._blockNode(new y(N,M,U)),V&&this.code(V).endFunc(),this}endFunc(){return this._endBlockNode(y)}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,M){const U=this._currNode;if(U instanceof N||M&&U instanceof M)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${M?`${N.kind}/${M.kind}`:N.kind}"`)}_elseNode(N){const M=this._currNode;if(!(M instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=M.else=N,this}get _root(){return this._nodes[0]}get _currNode(){const N=this._nodes;return N[N.length-1]}set _currNode(N){const M=this._nodes;M[M.length-1]=N}}e.CodeGen=E;function O(I,N){for(const M in N)I[M]=(I[M]||0)+(N[M]||0);return I}function R(I,N){return N instanceof t._CodeOrName?O(I,N.names):I}function T(I,N,M){if(I instanceof t.Name)return U(I);if(!V(I))return I;return new t._Code(I._items.reduce((H,K)=>(K instanceof t.Name&&(K=U(K)),K instanceof t._Code?H.push(...K._items):H.push(K),H),[]));function U(H){const K=M[H.str];return K===void 0||N[H.str]!==1?H:(delete N[H.str],K)}function V(H){return H instanceof t._Code&&H._items.some(K=>K instanceof t.Name&&N[K.str]===1&&M[K.str]!==void 0)}}function D(I,N){for(const M in N)I[M]=(I[M]||0)-(N[M]||0)}function L(I){return typeof I=="boolean"||typeof I=="number"||I===null?!I:(0,t._)`!${z(I)}`}e.not=L;const J=F(e.operators.AND);function X(...I){return I.reduce(J)}e.and=X;const Z=F(e.operators.OR);function P(...I){return I.reduce(Z)}e.or=P;function F(I){return(N,M)=>N===t.nil?M:M===t.nil?N:(0,t._)`${z(N)} ${I} ${z(M)}`}function z(I){return I instanceof t.Name?I:(0,t._)`(${I})`}})(Hu)),Hu}var Ie={},Ah;function We(){if(Ah)return Ie;Ah=1,Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.checkStrictMode=Ie.getErrorPath=Ie.Type=Ie.useFunc=Ie.setEvaluated=Ie.evaluatedPropsToName=Ie.mergeEvaluated=Ie.eachItem=Ie.unescapeJsonPointer=Ie.escapeJsonPointer=Ie.escapeFragment=Ie.unescapeFragment=Ie.schemaRefOrVal=Ie.schemaHasRulesButRef=Ie.schemaHasRules=Ie.checkUnknownRules=Ie.alwaysValidSchema=Ie.toHash=void 0;const e=Ne(),t=rl();function r(h){const y={};for(const S of h)y[S]=!0;return y}Ie.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))}Ie.alwaysValidSchema=i;function a(h,y=h.schema){const{opts:S,self:A}=h;if(!S.strictSchema||typeof y=="boolean")return;const _=A.RULES.keywords;for(const x in y)_[x]||C(h,`unknown keyword: "${x}"`)}Ie.checkUnknownRules=a;function n(h,y){if(typeof h=="boolean")return!h;for(const S in h)if(y[S])return!0;return!1}Ie.schemaHasRules=n;function s(h,y){if(typeof h=="boolean")return!h;for(const S in h)if(S!=="$ref"&&y.all[S])return!0;return!1}Ie.schemaHasRulesButRef=s;function o({topSchemaRef:h,schemaPath:y},S,A,_){if(!_){if(typeof S=="number"||typeof S=="boolean")return S;if(typeof S=="string")return(0,e._)`${S}`}return(0,e._)`${h}${y}${(0,e.getProperty)(A)}`}Ie.schemaRefOrVal=o;function l(h){return f(decodeURIComponent(h))}Ie.unescapeFragment=l;function u(h){return encodeURIComponent(c(h))}Ie.escapeFragment=u;function c(h){return typeof h=="number"?`${h}`:h.replace(/~/g,"~0").replace(/\//g,"~1")}Ie.escapeJsonPointer=c;function f(h){return h.replace(/~1/g,"/").replace(/~0/g,"~")}Ie.unescapeJsonPointer=f;function m(h,y){if(Array.isArray(h))for(const S of h)y(S);else y(h)}Ie.eachItem=m;function d({mergeNames:h,mergeToName:y,mergeValues:S,resultToName:A}){return(_,x,E,O)=>{const R=E===void 0?x:E instanceof e.Name?(x instanceof e.Name?h(_,x,E):y(_,x,E),E):x instanceof e.Name?(y(_,E,x),x):S(x,E);return O===e.Name&&!(R instanceof e.Name)?A(_,R):R}}Ie.mergeEvaluated={props:d({mergeNames:(h,y,S)=>h.if((0,e._)`${S} !== true && ${y} !== undefined`,()=>{h.if((0,e._)`${y} === true`,()=>h.assign(S,!0),()=>h.assign(S,(0,e._)`${S} || {}`).code((0,e._)`Object.assign(${S}, ${y})`))}),mergeToName:(h,y,S)=>h.if((0,e._)`${S} !== true`,()=>{y===!0?h.assign(S,!0):(h.assign(S,(0,e._)`${S} || {}`),k(h,S,y))}),mergeValues:(h,y)=>h===!0?!0:{...h,...y},resultToName:p}),items:d({mergeNames:(h,y,S)=>h.if((0,e._)`${S} !== true && ${y} !== undefined`,()=>h.assign(S,(0,e._)`${y} === true ? true : ${S} > ${y} ? ${S} : ${y}`)),mergeToName:(h,y,S)=>h.if((0,e._)`${S} !== true`,()=>h.assign(S,y===!0?!0:(0,e._)`${S} > ${y} ? ${S} : ${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 S=h.var("props",(0,e._)`{}`);return y!==void 0&&k(h,S,y),S}Ie.evaluatedPropsToName=p;function k(h,y,S){Object.keys(S).forEach(A=>h.assign((0,e._)`${y}${(0,e.getProperty)(A)}`,!0))}Ie.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))})}Ie.useFunc=g;var b;(function(h){h[h.Num=0]="Num",h[h.Str=1]="Str"})(b||(Ie.Type=b={}));function w(h,y,S){if(h instanceof e.Name){const A=y===b.Num;return S?A?(0,e._)`"[" + ${h} + "]"`:(0,e._)`"['" + ${h} + "']"`:A?(0,e._)`"/" + ${h}`:(0,e._)`"/" + ${h}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return S?(0,e.getProperty)(h).toString():"/"+c(h)}Ie.getErrorPath=w;function C(h,y,S=h.opts.strictSchema){if(S){if(y=`strict mode: ${y}`,S===!0)throw new Error(y);h.self.logger.warn(y)}}return Ie.checkStrictMode=C,Ie}var qs={},Oh;function Un(){if(Oh)return qs;Oh=1,Object.defineProperty(qs,"__esModule",{value:!0});const e=Ne(),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 _h;function jl(){return _h||(_h=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=Ne(),r=We(),i=Un();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:C}=v,{gen:h,compositeRule:y,allErrors:S}=C,A=f(v,g,b);w??(y||S)?l(h,A):u(C,(0,t._)`[${A}]`)}e.reportError=a;function n(v,g=e.keywordError,b){const{it:w}=v,{gen:C,compositeRule:h,allErrors:y}=w,S=f(v,g,b);l(C,S),h||y||u(w,i.default.vErrors)}e.reportExtraError=n;function s(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=s;function o({gen:v,keyword:g,schemaValue:b,data:w,errsCount:C,it:h}){if(C===void 0)throw new Error("ajv implementation error");const y=v.name("err");v.forRange("i",C,i.default.errors,S=>{v.const(y,(0,t._)`${i.default.vErrors}[${S}]`),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=o;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:C}=v;C.$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:C}=v,h=[d(C,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 C=w?g:(0,t.str)`${g}/${v}`;return b&&(C=(0,t.str)`${C}${(0,r.getErrorPath)(b,r.Type.Str)}`),[c.schemaPath,C]}function k(v,{params:g,message:b},w){const{keyword:C,data:h,schemaValue:y,it:S}=v,{opts:A,propertyName:_,topSchemaRef:x,schemaPath:E}=S;w.push([c.keyword,C],[c.params,typeof g=="function"?g(v):g||(0,t._)`{}`]),A.messages&&w.push([c.message,typeof b=="function"?b(v):b]),A.verbose&&w.push([c.schema,y],[c.parentSchema,(0,t._)`${x}${E}`],[i.default.data,h]),_&&w.push([c.propertyName,_])}})(Vu)),Vu}var Ph;function JF(){if(Ph)return Yn;Ph=1,Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.boolOrEmptySchema=Yn.topBoolOrEmptySchema=void 0;const e=jl(),t=Ne(),r=Un(),i={message:"boolean schema is false"};function a(o){const{gen:l,schema:u,validateName:c}=o;u===!1?s(o,!1):typeof u=="object"&&u.$async===!0?l.return(r.default.data):(l.assign((0,t._)`${c}.errors`,null),l.return(!0))}Yn.topBoolOrEmptySchema=a;function n(o,l){const{gen:u,schema:c}=o;c===!1?(u.var(l,!1),s(o)):u.var(l,!0)}Yn.boolOrEmptySchema=n;function s(o,l){const{gen:u,data:c}=o,f={gen:u,keyword:"false schema",data:c,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:o};(0,e.reportError)(f,i,void 0,l)}return Yn}var Rt={},Xn={},Ih;function o1(){if(Ih)return Xn;Ih=1,Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.getRules=Xn.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)}Xn.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 Xn.getRules=i,Xn}var Qr={},Th;function l1(){if(Th)return Qr;Th=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.shouldUseRule=Qr.shouldUseGroup=Qr.schemaHasRulesForType=void 0;function e({schema:i,self:a},n){const s=a.RULES.types[n];return s&&s!==!0&&t(i,s)}Qr.schemaHasRulesForType=e;function t(i,a){return a.rules.some(n=>r(i,n))}Qr.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(s=>i[s]!==void 0))}return Qr.shouldUseRule=r,Qr}var jh;function nl(){if(jh)return Rt;jh=1,Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.reportTypeError=Rt.checkDataTypes=Rt.checkDataType=Rt.coerceAndCheckDataType=Rt.getJSONTypes=Rt.getSchemaTypes=Rt.DataType=void 0;const e=o1(),t=l1(),r=jl(),i=Ne(),a=We();var n;(function(b){b[b.Correct=0]="Correct",b[b.Wrong=1]="Wrong"})(n||(Rt.DataType=n={}));function s(b){const w=o(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}Rt.getSchemaTypes=s;function o(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(","))}Rt.getJSONTypes=o;function l(b,w){const{gen:C,data:h,opts:y}=b,S=c(w,y.coerceTypes),A=w.length>0&&!(S.length===0&&w.length===1&&(0,t.schemaHasRulesForType)(b,w[0]));if(A){const _=p(w,h,y.strictNumbers,n.Wrong);C.if(_,()=>{S.length?f(b,w,S):v(b)})}return A}Rt.coerceAndCheckDataType=l;const u=new Set(["string","number","integer","boolean","null"]);function c(b,w){return w?b.filter(C=>u.has(C)||w==="array"&&C==="array"):[]}function f(b,w,C){const{gen:h,data:y,opts:S}=b,A=h.let("dataType",(0,i._)`typeof ${y}`),_=h.let("coerced",(0,i._)`undefined`);S.coerceTypes==="array"&&h.if((0,i._)`${A} == 'object' && Array.isArray(${y}) && ${y}.length == 1`,()=>h.assign(y,(0,i._)`${y}[0]`).assign(A,(0,i._)`typeof ${y}`).if(p(w,y,S.strictNumbers),()=>h.assign(_,y))),h.if((0,i._)`${_} !== undefined`);for(const E of C)(u.has(E)||E==="array"&&S.coerceTypes==="array")&&x(E);h.else(),v(b),h.endIf(),h.if((0,i._)`${_} !== undefined`,()=>{h.assign(y,_),m(b,_)});function x(E){switch(E){case"string":h.elseIf((0,i._)`${A} == "number" || ${A} == "boolean"`).assign(_,(0,i._)`"" + ${y}`).elseIf((0,i._)`${y} === null`).assign(_,(0,i._)`""`);return;case"number":h.elseIf((0,i._)`${A} == "boolean" || ${y} === null
75
+ */var wh;function IF(){return wh||(wh=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"),s=Symbol.for("react.context"),o=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 x(G){return!!(typeof G=="string"||typeof G=="function"||G===r||G===a||b||G===i||G===u||G===c||g||G===d||p||k||v||typeof G=="object"&&G!==null&&(G.$$typeof===m||G.$$typeof===f||G.$$typeof===n||G.$$typeof===s||G.$$typeof===l||G.$$typeof===w||G.getModuleId!==void 0))}function h(G){if(typeof G=="object"&&G!==null){var ie=G.$$typeof;switch(ie){case e:var re=G.type;switch(re){case r:case a:case i:case u:case c:return re;default:var ue=re&&re.$$typeof;switch(ue){case o:case s:case l:case m:case f:case n:return ue;default:return ie}}case t:return ie}}}var y=s,S=n,A=e,_=l,C=r,E=m,O=f,R=t,T=a,D=i,L=u,H=c,Y=!1,Z=!1;function P(G){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function F(G){return Z||(Z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function z(G){return h(G)===s}function I(G){return h(G)===n}function N(G){return typeof G=="object"&&G!==null&&G.$$typeof===e}function M(G){return h(G)===l}function B(G){return h(G)===r}function V(G){return h(G)===m}function W(G){return h(G)===f}function K(G){return h(G)===t}function X(G){return h(G)===a}function $(G){return h(G)===i}function q(G){return h(G)===u}function J(G){return h(G)===c}tt.ContextConsumer=y,tt.ContextProvider=S,tt.Element=A,tt.ForwardRef=_,tt.Fragment=C,tt.Lazy=E,tt.Memo=O,tt.Portal=R,tt.Profiler=T,tt.StrictMode=D,tt.Suspense=L,tt.SuspenseList=H,tt.isAsyncMode=P,tt.isConcurrentMode=F,tt.isContextConsumer=z,tt.isContextProvider=I,tt.isElement=N,tt.isForwardRef=M,tt.isFragment=B,tt.isLazy=V,tt.isMemo=W,tt.isPortal=K,tt.isProfiler=X,tt.isStrictMode=$,tt.isSuspense=q,tt.isSuspenseList=J,tt.isValidElementType=x,tt.typeOf=h})()),tt}var xh;function TF(){return xh||(xh=1,process.env.NODE_ENV==="production"?$s.exports=PF():$s.exports=IF()),$s.exports}var jF=TF();const Sh=Kr(jF),Hu={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 RF(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})=>j.jsx(e,{options:{...i,...a},...n}),lt(e,"MergedWidget",r)}return r}function Wr(e,t,r={}){const i=vr(e);if(typeof t=="function"||t&&Sh.isForwardRef(U.createElement(t))||Sh.isMemo(t))return RF(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 Wr(e,a,r)}if(typeof i=="string"){if(!(i in Hu))throw new Error(`No widget for type '${i}' in schema: ${JSON.stringify(e)}`);if(t in Hu[i]){const a=r[Hu[i][t]];return Wr(e,a,r)}}throw new Error(`No widget '${t}' for type '${i}' in schema: ${JSON.stringify(e)}`)}function l1(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 u1(e){const t=new Set;return JSON.stringify(e,(r,i)=>(t.add(r),i)),JSON.stringify(e,Array.from(t).sort())}function fr(e){return l1(u1(e))}function NF(e){return l1(u1(e))}function FF(e,t,r={}){try{return Wr(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 Ei(e,t){return`${Dn(e)?e:e[nt]}__${t}`}function Bn(e){return Ei(e,"description")}function Nd(e){return Ei(e,"error")}function Fd(e){return Ei(e,"examples")}function Dd(e){return Ei(e,"help")}function Fl(e){return Ei(e,"title")}function Rr(e,t=!1){const r=t?` ${Fd(e)}`:"";return`${Nd(e)} ${Bn(e)} ${Dd(e)}${r}`}function Dl(e,t){return`${e}-${t}`}function ir(e,t){return Ei(e,t)}function Wu(e,t){return Ei(e,`optional${t}`)}function ma(e){return!ia(e)&&(!Ue(e)||Array.isArray(e)||!wt(e))}function DF(e,t){const{rootSchema:r,schemaUtils:i}=e;if($e(t,r))return!0;if(at in r){const a=i.retrieveSchema(r);return $e(t,a)}return!1}function MF(e,t,r){return t?r:e}function LF(e){return e?new Date(e).toJSON():void 0}function qF(e,t,r,i=!1){!i&&Array.isArray(r)&&t.default!==void 0&&i1(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 Md(e,t,r){const i=[x_];return qe(e,vp)&&i.unshift(vp),ae(e,[...i,t],r)}function $F(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]),s=r(n),o=e.filter(c=>!s[c]),l=n.indexOf("*");if(l===-1){if(o.length)throw new Error(`uiSchema order list does not contain ${i(o)}`);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,...o),u}function Ku(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 zF(e,t,r){var i,a;const n=(i=e[Lo])!==null&&i!==void 0?i:e[at],s=r.uiSchemaDefinitions,o=n&&s?s[n]:void 0;let l;if(o?!t||wt(t)?l={...o}:l=Mn(o,t):l=t||{},s){let u=e;if(n&&e[at]&&!e[Lo])try{u=es(n,r.rootSchema)}catch(c){return console.warn(`could not resolve $ref in resolveUiSchema:
76
+ `,c),l}for(const c of[Ae,Le]){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[Lo])!==null&&a!==void 0?a:v==null?void 0:v[at];if(g&&g in s){const b=d[k]||{};d[k]=Mn(s[g],b),p=!0}}p&&(l[c]=d)}}}return l}function Ha(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 Ha(e.anyOf[0]);if(((i=e.oneOf)===null||i===void 0?void 0:i.length)===1)return Ha(e.oneOf[0]);if(e.allOf){const a=n=>Ha(n);return e.allOf.some(a)}return!1}function UF({hideLabel:e,id:t,multiple:r,options:i,registry:a,uiSchema:n,value:s}){var o,l;if(r||e)return null;const{label:u=!0}=me(n,a.globalUiOptions);if(!u)return null;const c=(o=i.enumOptions)===null||o===void 0?void 0:o.find(({value:d})=>da(d,s)),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 j.jsx(m,{id:Bn(t),description:f,schema:c.schema,uiSchema:n,registry:a})}function vf(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 BF(e,t,r,i="customDeep"){if(i==="always")return!0;if(i==="shallow"){const{props:s,state:o}=e;return!vf(s,t)||!vf(o,r)}const{props:a,state:n}=e;return!$e(a,t)||!$e(n,r)}function Ch(e){const t=Ik(e.map(r=>Ue(r)?vr(r):void 0).flat().filter(r=>r!==void 0));return t.length===1?t[0]:t}function bs(e,t,r,i){const{enableOptionalDataFieldForType:a=[]}=me(i,e.globalUiOptions);let n;return Le in t&&Array.isArray(t[Le])?n=Ch(t[Le]):Ae in t&&Array.isArray(t[Ae])?n=Ch(t[Ae]):n=vr(t),!DF(e,t)&&!r&&!!n&&!Array.isArray(n)&&!!a.find(s=>s===n)}function Eh(e,t=!0){const{year:r,month:i,day:a,hour:n=0,minute:s=0,second:o=0}=e,l=Date.UTC(r,i-1,a,n,s,o),u=new Date(l).toJSON();return t?u:u.slice(0,10)}function Ld(e,t=[]){if(!e)return[];let r=[];return Nt in e&&(r=r.concat(e[Nt].map(i=>{const a=`.${t.join(".")}`;return{property:a,message:i,stack:`${a} ${i}`}}))),Object.keys(e).reduce((i,a)=>{if(a!==Nt){const n=e[a];if(Nn(n))return i.concat(Ld(n,[...t,a]))}return i},r)}function c1(e){return jt(e)?ua(e,Fn):fs(e)?[e]:bd(Vb(dd(e)))}function VF(e){const t=new s1;return e.length&&e.forEach(r=>{const{property:i,message:a}=r,n=i==="."?[]:c1(i);n.length>0&&n[0]===""&&n.splice(0,1),a&&t.addErrors(a,n)}),t.ErrorSchema}function Tr(e,t,r,i){const a=Array.isArray(r)?r:r==null?void 0:r.path,n=e===""?[]:[e],s=a?a.concat(...n):n,o=[t.idPrefix,...s].join(t.idSeparator);let l;return t.nameGenerator&&s.length>0&&(l=t.nameGenerator(s,t.idPrefix,i)),{path:s,[nt]:o,...l!==void 0&&{name:l}}}function f1(e){return Object.keys(e).reduce((t,r)=>{if(r==="addError")return t;const i=e[r];return Nn(i)?{...t,[r]:f1(i)}:{...t,[r]:i}},{})}function HF(e){return Object.values(e).every(t=>t!==-1)}function WF(e){const{className:t="form-control",type:r,range:i,value:a,select:n,rootId:s,name:o,disabled:l,readonly:u,autofocus:c,registry:f,onBlur:m,onFocus:d}=e,p=`${s}_${r}`,{SelectWidget:k}=f.widgets,v=U.useCallback(g=>n(r,g),[n,r]);return j.jsx(k,{schema:{type:"integer"},id:p,name:o,className:t,options:{enumOptions:r1(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":Rr(s)})}function KF(e){const{time:t=!1,disabled:r=!1,readonly:i=!1,options:a,onChange:n,value:s}=e,[o,l]=U.useState(Ku(s,t));U.useEffect(()=>{l(Ku(s,t))},[t,s]);const u=U.useCallback((d,p)=>{const k={...o,[d]:typeof p>"u"?-1:p};HF(k)?n(Eh(k,t)):l(k)},[o,n,t]),c=U.useCallback(d=>{d.preventDefault(),!(r||i)&&n(void 0)},[r,i,n]),f=U.useCallback(d=>{if(d.preventDefault(),r||i)return;const p=Ku(new Date().toJSON(),t);n(Eh(p,t))},[r,i,t,n]);return{elements:U.useMemo(()=>EF(o,t,a.yearsRange,a.format),[o,t,a.yearsRange,a.format]),handleChange:u,handleClear:c,handleSetNow:f}}function pa(e){const t=U.useRef(e);return $e(e,t.current)||(t.current=e),t.current}function GF(e,t){return e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}async function JF(e){const{name:t,size:r,type:i}=e;return new Promise((a,n)=>{const s=new window.FileReader;s.onerror=n,s.onload=o=>{var l;typeof((l=o.target)===null||l===void 0?void 0:l.result)=="string"?a({dataURL:GF(o.target.result,t),name:t,size:r,type:i}):a({dataURL:null,name:t,size:r,type:i})},s.readAsDataURL(e)})}async function YF(e){return Promise.all(Array.from(e).map(JF))}function Ah(e){return e.reduce((t,r)=>{if(!r)return t;try{const{blob:i,name:a}=pF(r);return[...t,{dataURL:r,name:a,size:i.size,type:i.type}]}catch{return t}},[])}function XF(e,t,r=!1){const i=U.useMemo(()=>r&&e?Array.isArray(e)?e:[e]:[],[e,r]),a=U.useMemo(()=>Array.isArray(e)?Ah(e):Ah([e||""]),[e]),n=U.useCallback(async o=>{const u=(await YF(o)).map(c=>c.dataURL||null);t(r?i.concat(...u):u[0])},[i,r,t]),s=U.useCallback(o=>{if(r){const l=i.filter((u,c)=>c!==o);t(l)}else t(void 0)},[i,r,t]);return{filesInfo:a,handleChange:n,handleRemove:s}}function ZF(e){if(!e)return"";const t=new Date(e),r=Sn(t.getFullYear(),4),i=Sn(t.getMonth()+1,2),a=Sn(t.getDate(),2),n=Sn(t.getHours(),2),s=Sn(t.getMinutes(),2),o=Sn(t.getSeconds(),2),l=Sn(t.getMilliseconds(),3);return`${r}-${i}-${a}T${n}:${s}:${o}.${l}`}function Ma(e,t,r=!1){if(!t)return e;const{errors:i,errorSchema:a}=e;let n=Ld(t),s=t;return wt(a)||(s=Mn(a,t,r?"preventDuplicates":!0),n=[...i].concat(n)),{errorSchema:s,errors:n}}function QF(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]=Lb+i:t[r]=qd(i)}return e}function eD(e){return e.map(t=>qd(t))}function qd(e){return Array.isArray(e)?eD([...e]):Ue(e)?QF({...e}):e}var _e;(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)"})(_e||(_e={}));function tD(e,t){var r=jt(e)?gd:Hk;return r(e,kk(t))}function rD(e,t="none"){return t==="all"?e:e.reduce((r,i)=>{const{message:a,schemaPath:n}=i,s=t!=="anyOf"?n==null?void 0:n.indexOf(`/${Le}/`):void 0,o=t!=="oneOf"?n==null?void 0:n.indexOf(`/${Ae}/`):void 0;let l;return s&&s>=0?l=n==null?void 0:n.substring(0,s):o&&o>=0&&(l=n==null?void 0:n.substring(0,o)),(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 nD(e=[],t,r,i){const a=e.map(n=>{var s;const{instancePath:o,keyword:l,params:u,schemaPath:c,parentSchema:f,...m}=n;let{message:d=""}=m,p=o.replace(/\//g,"."),k=`${p} ${d}`.trim(),v="";const g=[...((s=u.deps)===null||s===void 0?void 0:s.split(", "))||[],u.missingProperty,u.property].filter(b=>b);if(g.length>0)g.forEach(b=>{const w=p?`${p}.${b}`:b;let x=me(ae(t,w.replace(/^\./,""))).title;if(x===void 0){const h=c.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([b]);x=me(ae(t,h)).title}if(x===void 0){const h=p.replace(/^\./,"").split(".").filter(Boolean);x=ae(t,[...h,b,"title"])}if(x)d=d.replace(`'${b}'`,`'${x}'`),v=x;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),S=[];for(const _ of y)S.push(ze,_);S.push(ze,b,"title");const A=ae(i,S);A&&(d=d.replace(`'${b}'`,`'${A}'`),v=A)}}}),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 rD(a,r)}function iD(e,t,r,i,a,n,s,o){const{validationError:l}=t;let u=nD(t.errors,s,o,i);l&&(u=[...u,{stack:l.message}]),typeof n=="function"&&(u=n(u,s));let c=VF(u);if(l&&(c={...c,$schema:{__errors:[l.message]}}),typeof a!="function")return{errors:u,errorSchema:c};const f=Jk(e,i,r,i,!0),m=a(f,of(f),s,c),d=f1(m);return Ma({errors:u,errorSchema:c},d)}var zs={exports:{}},Gu={},Zr={},Zn={},Ju={},Yu={},Xu={},Oh;function sl(){return Oh||(Oh=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,x)=>`${w}${x}`,"")}get names(){var b;return(b=this._names)!==null&&b!==void 0?b:this._names=this._items.reduce((w,x)=>(x instanceof r&&(w[x.str]=(w[x.str]||0)+1),w),{})}}e._Code=i,e.nil=new i("");function a(g,...b){const w=[g[0]];let x=0;for(;x<b.length;)o(w,b[x]),w.push(g[++x]);return new i(w)}e._=a;const n=new i("+");function s(g,...b){const w=[d(g[0])];let x=0;for(;x<b.length;)w.push(n),o(w,b[x]),w.push(n,d(g[++x]));return l(w),new i(w)}e.str=s;function o(g,b){b instanceof i?g.push(...b._items):b instanceof r?g.push(b):g.push(f(b))}e.addCodeArg=o;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:s`${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})(Xu)),Xu}var Zu={},_h;function Ph(){return _h||(_h=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=sl();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 s=(0,t._)`\n`;class o extends a{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts={...u,_n:u.lines?s: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=o})(Zu)),Zu}var Ih;function Ne(){return Ih||(Ih=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=sl(),r=Ph();var i=sl();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=Ph();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(N,M){return this}}class s extends n{constructor(N,M,B){super(),this.varKind=N,this.name=M,this.rhs=B}render({es5:N,_n:M}){const B=N?r.varKinds.var:this.varKind,V=this.rhs===void 0?"":` = ${this.rhs}`;return`${B} ${this.name}${V};`+M}optimizeNames(N,M){if(N[this.name.str])return this.rhs&&(this.rhs=T(this.rhs,N,M)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class o extends n{constructor(N,M,B){super(),this.lhs=N,this.rhs=M,this.sideEffects=B}render({_n:N}){return`${this.lhs} = ${this.rhs};`+N}optimizeNames(N,M){if(!(this.lhs instanceof t.Name&&!N[this.lhs.str]&&!this.sideEffects))return this.rhs=T(this.rhs,N,M),this}get names(){const N=this.lhs instanceof t.Name?{}:{...this.lhs.names};return R(N,this.rhs)}}class l extends o{constructor(N,M,B,V){super(N,B,V),this.op=M}render({_n:N}){return`${this.lhs} ${this.op}= ${this.rhs};`+N}}class u extends n{constructor(N){super(),this.label=N,this.names={}}render({_n:N}){return`${this.label}:`+N}}class c 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 m extends n{constructor(N){super(),this.code=N}render({_n:N}){return`${this.code};`+N}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(N,M){return this.code=T(this.code,N,M),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((M,B)=>M+B.render(N),"")}optimizeNodes(){const{nodes:N}=this;let M=N.length;for(;M--;){const B=N[M].optimizeNodes();Array.isArray(B)?N.splice(M,1,...B):B?N[M]=B:N.splice(M,1)}return N.length>0?this:void 0}optimizeNames(N,M){const{nodes:B}=this;let V=B.length;for(;V--;){const W=B[V];W.optimizeNames(N,M)||(D(N,W.names),B.splice(V,1))}return B.length>0?this:void 0}get names(){return this.nodes.reduce((N,M)=>O(N,M.names),{})}}class p extends d{render(N){return"{"+N._n+super.render(N)+"}"+N._n}}class k extends d{}class v extends p{}v.kind="else";class g extends p{constructor(N,M){super(M),this.condition=N}render(N){let M=`if(${this.condition})`+super.render(N);return this.else&&(M+="else "+this.else.render(N)),M}optimizeNodes(){super.optimizeNodes();const N=this.condition;if(N===!0)return this.nodes;let M=this.else;if(M){const B=M.optimizeNodes();M=this.else=Array.isArray(B)?new v(B):B}if(M)return N===!1?M instanceof g?M:M.nodes:this.nodes.length?this:new g(L(N),M instanceof g?[M]:M.nodes);if(!(N===!1||!this.nodes.length))return this}optimizeNames(N,M){var B;if(this.else=(B=this.else)===null||B===void 0?void 0:B.optimizeNames(N,M),!!(super.optimizeNames(N,M)||this.else))return this.condition=T(this.condition,N,M),this}get names(){const N=super.names;return R(N,this.condition),this.else&&O(N,this.else.names),N}}g.kind="if";class b extends p{}b.kind="for";class w extends b{constructor(N){super(),this.iteration=N}render(N){return`for(${this.iteration})`+super.render(N)}optimizeNames(N,M){if(super.optimizeNames(N,M))return this.iteration=T(this.iteration,N,M),this}get names(){return O(super.names,this.iteration.names)}}class x extends b{constructor(N,M,B,V){super(),this.varKind=N,this.name=M,this.from=B,this.to=V}render(N){const M=N.es5?r.varKinds.var:this.varKind,{name:B,from:V,to:W}=this;return`for(${M} ${B}=${V}; ${B}<${W}; ${B}++)`+super.render(N)}get names(){const N=R(super.names,this.from);return R(N,this.to)}}class h extends b{constructor(N,M,B,V){super(),this.loop=N,this.varKind=M,this.name=B,this.iterable=V}render(N){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(N)}optimizeNames(N,M){if(super.optimizeNames(N,M))return this.iterable=T(this.iterable,N,M),this}get names(){return O(super.names,this.iterable.names)}}class y extends p{constructor(N,M,B){super(),this.name=N,this.args=M,this.async=B}render(N){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(N)}}y.kind="func";class S extends d{render(N){return"return "+super.render(N)}}S.kind="return";class A extends p{render(N){let M="try"+super.render(N);return this.catch&&(M+=this.catch.render(N)),this.finally&&(M+=this.finally.render(N)),M}optimizeNodes(){var N,M;return super.optimizeNodes(),(N=this.catch)===null||N===void 0||N.optimizeNodes(),(M=this.finally)===null||M===void 0||M.optimizeNodes(),this}optimizeNames(N,M){var B,V;return super.optimizeNames(N,M),(B=this.catch)===null||B===void 0||B.optimizeNames(N,M),(V=this.finally)===null||V===void 0||V.optimizeNames(N,M),this}get names(){const N=super.names;return this.catch&&O(N,this.catch.names),this.finally&&O(N,this.finally.names),N}}class _ extends p{constructor(N){super(),this.error=N}render(N){return`catch(${this.error})`+super.render(N)}}_.kind="catch";class C extends p{render(N){return"finally"+super.render(N)}}C.kind="finally";class E{constructor(N,M={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...M,_n:M.lines?`
77
+ `:""},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,M){const B=this._extScope.value(N,M);return(this._values[B.prefix]||(this._values[B.prefix]=new Set)).add(B),B}getScopeValue(N,M){return this._extScope.getValue(N,M)}scopeRefs(N){return this._extScope.scopeRefs(N,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(N,M,B,V){const W=this._scope.toName(M);return B!==void 0&&V&&(this._constants[W.str]=B),this._leafNode(new s(N,W,B)),W}const(N,M,B){return this._def(r.varKinds.const,N,M,B)}let(N,M,B){return this._def(r.varKinds.let,N,M,B)}var(N,M,B){return this._def(r.varKinds.var,N,M,B)}assign(N,M,B){return this._leafNode(new o(N,M,B))}add(N,M){return this._leafNode(new l(N,e.operators.ADD,M))}code(N){return typeof N=="function"?N():N!==t.nil&&this._leafNode(new m(N)),this}object(...N){const M=["{"];for(const[B,V]of N)M.length>1&&M.push(","),M.push(B),(B!==V||this.opts.es5)&&(M.push(":"),(0,t.addCodeArg)(M,V));return M.push("}"),new t._Code(M)}if(N,M,B){if(this._blockNode(new g(N)),M&&B)this.code(M).else().code(B).endIf();else if(M)this.code(M).endIf();else if(B)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(N){return this._elseNode(new g(N))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(g,v)}_for(N,M){return this._blockNode(N),M&&this.code(M).endFor(),this}for(N,M){return this._for(new w(N),M)}forRange(N,M,B,V,W=this.opts.es5?r.varKinds.var:r.varKinds.let){const K=this._scope.toName(N);return this._for(new x(W,K,M,B),()=>V(K))}forOf(N,M,B,V=r.varKinds.const){const W=this._scope.toName(N);if(this.opts.es5){const K=M instanceof t.Name?M:this.var("_arr",M);return this.forRange("_i",0,(0,t._)`${K}.length`,X=>{this.var(W,(0,t._)`${K}[${X}]`),B(W)})}return this._for(new h("of",V,W,M),()=>B(W))}forIn(N,M,B,V=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(N,(0,t._)`Object.keys(${M})`,B);const W=this._scope.toName(N);return this._for(new h("in",V,W,M),()=>B(W))}endFor(){return this._endBlockNode(b)}label(N){return this._leafNode(new u(N))}break(N){return this._leafNode(new c(N))}return(N){const M=new S;if(this._blockNode(M),this.code(N),M.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(N,M,B){if(!M&&!B)throw new Error('CodeGen: "try" without "catch" and "finally"');const V=new A;if(this._blockNode(V),this.code(N),M){const W=this.name("e");this._currNode=V.catch=new _(W),M(W)}return B&&(this._currNode=V.finally=new C,this.code(B)),this._endBlockNode(_,C)}throw(N){return this._leafNode(new f(N))}block(N,M){return this._blockStarts.push(this._nodes.length),N&&this.code(N).endBlock(M),this}endBlock(N){const M=this._blockStarts.pop();if(M===void 0)throw new Error("CodeGen: not in self-balancing block");const B=this._nodes.length-M;if(B<0||N!==void 0&&B!==N)throw new Error(`CodeGen: wrong number of nodes: ${B} vs ${N} expected`);return this._nodes.length=M,this}func(N,M=t.nil,B,V){return this._blockNode(new y(N,M,B)),V&&this.code(V).endFunc(),this}endFunc(){return this._endBlockNode(y)}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,M){const B=this._currNode;if(B instanceof N||M&&B instanceof M)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${M?`${N.kind}/${M.kind}`:N.kind}"`)}_elseNode(N){const M=this._currNode;if(!(M instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=M.else=N,this}get _root(){return this._nodes[0]}get _currNode(){const N=this._nodes;return N[N.length-1]}set _currNode(N){const M=this._nodes;M[M.length-1]=N}}e.CodeGen=E;function O(I,N){for(const M in N)I[M]=(I[M]||0)+(N[M]||0);return I}function R(I,N){return N instanceof t._CodeOrName?O(I,N.names):I}function T(I,N,M){if(I instanceof t.Name)return B(I);if(!V(I))return I;return new t._Code(I._items.reduce((W,K)=>(K instanceof t.Name&&(K=B(K)),K instanceof t._Code?W.push(...K._items):W.push(K),W),[]));function B(W){const K=M[W.str];return K===void 0||N[W.str]!==1?W:(delete N[W.str],K)}function V(W){return W instanceof t._Code&&W._items.some(K=>K instanceof t.Name&&N[K.str]===1&&M[K.str]!==void 0)}}function D(I,N){for(const M in N)I[M]=(I[M]||0)-(N[M]||0)}function L(I){return typeof I=="boolean"||typeof I=="number"||I===null?!I:(0,t._)`!${z(I)}`}e.not=L;const H=F(e.operators.AND);function Y(...I){return I.reduce(H)}e.and=Y;const Z=F(e.operators.OR);function P(...I){return I.reduce(Z)}e.or=P;function F(I){return(N,M)=>N===t.nil?M:M===t.nil?N:(0,t._)`${z(N)} ${I} ${z(M)}`}function z(I){return I instanceof t.Name?I:(0,t._)`(${I})`}})(Yu)),Yu}var Ie={},Th;function Ke(){if(Th)return Ie;Th=1,Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.checkStrictMode=Ie.getErrorPath=Ie.Type=Ie.useFunc=Ie.setEvaluated=Ie.evaluatedPropsToName=Ie.mergeEvaluated=Ie.eachItem=Ie.unescapeJsonPointer=Ie.escapeJsonPointer=Ie.escapeFragment=Ie.unescapeFragment=Ie.schemaRefOrVal=Ie.schemaHasRulesButRef=Ie.schemaHasRules=Ie.checkUnknownRules=Ie.alwaysValidSchema=Ie.toHash=void 0;const e=Ne(),t=sl();function r(h){const y={};for(const S of h)y[S]=!0;return y}Ie.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))}Ie.alwaysValidSchema=i;function a(h,y=h.schema){const{opts:S,self:A}=h;if(!S.strictSchema||typeof y=="boolean")return;const _=A.RULES.keywords;for(const C in y)_[C]||x(h,`unknown keyword: "${C}"`)}Ie.checkUnknownRules=a;function n(h,y){if(typeof h=="boolean")return!h;for(const S in h)if(y[S])return!0;return!1}Ie.schemaHasRules=n;function s(h,y){if(typeof h=="boolean")return!h;for(const S in h)if(S!=="$ref"&&y.all[S])return!0;return!1}Ie.schemaHasRulesButRef=s;function o({topSchemaRef:h,schemaPath:y},S,A,_){if(!_){if(typeof S=="number"||typeof S=="boolean")return S;if(typeof S=="string")return(0,e._)`${S}`}return(0,e._)`${h}${y}${(0,e.getProperty)(A)}`}Ie.schemaRefOrVal=o;function l(h){return f(decodeURIComponent(h))}Ie.unescapeFragment=l;function u(h){return encodeURIComponent(c(h))}Ie.escapeFragment=u;function c(h){return typeof h=="number"?`${h}`:h.replace(/~/g,"~0").replace(/\//g,"~1")}Ie.escapeJsonPointer=c;function f(h){return h.replace(/~1/g,"/").replace(/~0/g,"~")}Ie.unescapeJsonPointer=f;function m(h,y){if(Array.isArray(h))for(const S of h)y(S);else y(h)}Ie.eachItem=m;function d({mergeNames:h,mergeToName:y,mergeValues:S,resultToName:A}){return(_,C,E,O)=>{const R=E===void 0?C:E instanceof e.Name?(C instanceof e.Name?h(_,C,E):y(_,C,E),E):C instanceof e.Name?(y(_,E,C),C):S(C,E);return O===e.Name&&!(R instanceof e.Name)?A(_,R):R}}Ie.mergeEvaluated={props:d({mergeNames:(h,y,S)=>h.if((0,e._)`${S} !== true && ${y} !== undefined`,()=>{h.if((0,e._)`${y} === true`,()=>h.assign(S,!0),()=>h.assign(S,(0,e._)`${S} || {}`).code((0,e._)`Object.assign(${S}, ${y})`))}),mergeToName:(h,y,S)=>h.if((0,e._)`${S} !== true`,()=>{y===!0?h.assign(S,!0):(h.assign(S,(0,e._)`${S} || {}`),k(h,S,y))}),mergeValues:(h,y)=>h===!0?!0:{...h,...y},resultToName:p}),items:d({mergeNames:(h,y,S)=>h.if((0,e._)`${S} !== true && ${y} !== undefined`,()=>h.assign(S,(0,e._)`${y} === true ? true : ${S} > ${y} ? ${S} : ${y}`)),mergeToName:(h,y,S)=>h.if((0,e._)`${S} !== true`,()=>h.assign(S,y===!0?!0:(0,e._)`${S} > ${y} ? ${S} : ${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 S=h.var("props",(0,e._)`{}`);return y!==void 0&&k(h,S,y),S}Ie.evaluatedPropsToName=p;function k(h,y,S){Object.keys(S).forEach(A=>h.assign((0,e._)`${y}${(0,e.getProperty)(A)}`,!0))}Ie.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))})}Ie.useFunc=g;var b;(function(h){h[h.Num=0]="Num",h[h.Str=1]="Str"})(b||(Ie.Type=b={}));function w(h,y,S){if(h instanceof e.Name){const A=y===b.Num;return S?A?(0,e._)`"[" + ${h} + "]"`:(0,e._)`"['" + ${h} + "']"`:A?(0,e._)`"/" + ${h}`:(0,e._)`"/" + ${h}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return S?(0,e.getProperty)(h).toString():"/"+c(h)}Ie.getErrorPath=w;function x(h,y,S=h.opts.strictSchema){if(S){if(y=`strict mode: ${y}`,S===!0)throw new Error(y);h.self.logger.warn(y)}}return Ie.checkStrictMode=x,Ie}var Us={},jh;function Vn(){if(jh)return Us;jh=1,Object.defineProperty(Us,"__esModule",{value:!0});const e=Ne(),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 Us.default=t,Us}var Rh;function Ml(){return Rh||(Rh=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=Ne(),r=Ke(),i=Vn();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:x}=v,{gen:h,compositeRule:y,allErrors:S}=x,A=f(v,g,b);w??(y||S)?l(h,A):u(x,(0,t._)`[${A}]`)}e.reportError=a;function n(v,g=e.keywordError,b){const{it:w}=v,{gen:x,compositeRule:h,allErrors:y}=w,S=f(v,g,b);l(x,S),h||y||u(w,i.default.vErrors)}e.reportExtraError=n;function s(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=s;function o({gen:v,keyword:g,schemaValue:b,data:w,errsCount:x,it:h}){if(x===void 0)throw new Error("ajv implementation error");const y=v.name("err");v.forRange("i",x,i.default.errors,S=>{v.const(y,(0,t._)`${i.default.vErrors}[${S}]`),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=o;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:x}=v;x.$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:x}=v,h=[d(x,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 x=w?g:(0,t.str)`${g}/${v}`;return b&&(x=(0,t.str)`${x}${(0,r.getErrorPath)(b,r.Type.Str)}`),[c.schemaPath,x]}function k(v,{params:g,message:b},w){const{keyword:x,data:h,schemaValue:y,it:S}=v,{opts:A,propertyName:_,topSchemaRef:C,schemaPath:E}=S;w.push([c.keyword,x],[c.params,typeof g=="function"?g(v):g||(0,t._)`{}`]),A.messages&&w.push([c.message,typeof b=="function"?b(v):b]),A.verbose&&w.push([c.schema,y],[c.parentSchema,(0,t._)`${C}${E}`],[i.default.data,h]),_&&w.push([c.propertyName,_])}})(Ju)),Ju}var Nh;function aD(){if(Nh)return Zn;Nh=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.boolOrEmptySchema=Zn.topBoolOrEmptySchema=void 0;const e=Ml(),t=Ne(),r=Vn(),i={message:"boolean schema is false"};function a(o){const{gen:l,schema:u,validateName:c}=o;u===!1?s(o,!1):typeof u=="object"&&u.$async===!0?l.return(r.default.data):(l.assign((0,t._)`${c}.errors`,null),l.return(!0))}Zn.topBoolOrEmptySchema=a;function n(o,l){const{gen:u,schema:c}=o;c===!1?(u.var(l,!1),s(o)):u.var(l,!0)}Zn.boolOrEmptySchema=n;function s(o,l){const{gen:u,data:c}=o,f={gen:u,keyword:"false schema",data:c,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:o};(0,e.reportError)(f,i,void 0,l)}return Zn}var Rt={},Qn={},Fh;function d1(){if(Fh)return Qn;Fh=1,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.getRules=Qn.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)}Qn.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 Qn.getRules=i,Qn}var Qr={},Dh;function m1(){if(Dh)return Qr;Dh=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.shouldUseRule=Qr.shouldUseGroup=Qr.schemaHasRulesForType=void 0;function e({schema:i,self:a},n){const s=a.RULES.types[n];return s&&s!==!0&&t(i,s)}Qr.schemaHasRulesForType=e;function t(i,a){return a.rules.some(n=>r(i,n))}Qr.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(s=>i[s]!==void 0))}return Qr.shouldUseRule=r,Qr}var Mh;function ol(){if(Mh)return Rt;Mh=1,Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.reportTypeError=Rt.checkDataTypes=Rt.checkDataType=Rt.coerceAndCheckDataType=Rt.getJSONTypes=Rt.getSchemaTypes=Rt.DataType=void 0;const e=d1(),t=m1(),r=Ml(),i=Ne(),a=Ke();var n;(function(b){b[b.Correct=0]="Correct",b[b.Wrong=1]="Wrong"})(n||(Rt.DataType=n={}));function s(b){const w=o(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}Rt.getSchemaTypes=s;function o(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(","))}Rt.getJSONTypes=o;function l(b,w){const{gen:x,data:h,opts:y}=b,S=c(w,y.coerceTypes),A=w.length>0&&!(S.length===0&&w.length===1&&(0,t.schemaHasRulesForType)(b,w[0]));if(A){const _=p(w,h,y.strictNumbers,n.Wrong);x.if(_,()=>{S.length?f(b,w,S):v(b)})}return A}Rt.coerceAndCheckDataType=l;const u=new Set(["string","number","integer","boolean","null"]);function c(b,w){return w?b.filter(x=>u.has(x)||w==="array"&&x==="array"):[]}function f(b,w,x){const{gen:h,data:y,opts:S}=b,A=h.let("dataType",(0,i._)`typeof ${y}`),_=h.let("coerced",(0,i._)`undefined`);S.coerceTypes==="array"&&h.if((0,i._)`${A} == 'object' && Array.isArray(${y}) && ${y}.length == 1`,()=>h.assign(y,(0,i._)`${y}[0]`).assign(A,(0,i._)`typeof ${y}`).if(p(w,y,S.strictNumbers),()=>h.assign(_,y))),h.if((0,i._)`${_} !== undefined`);for(const E of x)(u.has(E)||E==="array"&&S.coerceTypes==="array")&&C(E);h.else(),v(b),h.endIf(),h.if((0,i._)`${_} !== undefined`,()=>{h.assign(y,_),m(b,_)});function C(E){switch(E){case"string":h.elseIf((0,i._)`${A} == "number" || ${A} == "boolean"`).assign(_,(0,i._)`"" + ${y}`).elseIf((0,i._)`${y} === null`).assign(_,(0,i._)`""`);return;case"number":h.elseIf((0,i._)`${A} == "boolean" || ${y} === null
78
78
  || (${A} == "string" && ${y} && ${y} == +${y})`).assign(_,(0,i._)`+${y}`);return;case"integer":h.elseIf((0,i._)`${A} === "boolean" || ${y} === null
79
79
  || (${A} === "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._)`${A} === "string" || ${A} === "number"
80
- || ${A} === "boolean" || ${y} === null`).assign(_,(0,i._)`[${y}]`)}}}function m({gen:b,parentData:w,parentDataProperty:C},h){b.if((0,i._)`${w} !== undefined`,()=>b.assign((0,i._)`${w}[${C}]`,h))}function d(b,w,C,h=n.Correct){const y=h===n.Correct?i.operators.EQ:i.operators.NEQ;let S;switch(b){case"null":return(0,i._)`${w} ${y} null`;case"array":S=(0,i._)`Array.isArray(${w})`;break;case"object":S=(0,i._)`${w} && typeof ${w} == "object" && !Array.isArray(${w})`;break;case"integer":S=A((0,i._)`!(${w} % 1) && !isNaN(${w})`);break;case"number":S=A();break;default:return(0,i._)`typeof ${w} ${y} ${b}`}return h===n.Correct?S:(0,i.not)(S);function A(_=i.nil){return(0,i.and)((0,i._)`typeof ${w} == "number"`,_,C?(0,i._)`isFinite(${w})`:i.nil)}}Rt.checkDataType=d;function p(b,w,C,h){if(b.length===1)return d(b[0],w,C,h);let y;const S=(0,a.toHash)(b);if(S.array&&S.object){const A=(0,i._)`typeof ${w} != "object"`;y=S.null?A:(0,i._)`!${w} || ${A}`,delete S.null,delete S.array,delete S.object}else y=i.nil;S.number&&delete S.integer;for(const A in S)y=(0,i.and)(y,d(A,w,C,h));return y}Rt.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)}Rt.reportTypeError=v;function g(b){const{gen:w,data:C,schema:h}=b,y=(0,a.schemaRefOrVal)(b,h,"type");return{gen:w,keyword:"type",data:C,schema:h.type,schemaCode:y,schemaValue:y,parentSchema:h,params:{},it:b}}return Rt}var Aa={},Rh;function YF(){if(Rh)return Aa;Rh=1,Object.defineProperty(Aa,"__esModule",{value:!0}),Aa.assignDefaults=void 0;const e=Ne(),t=We();function r(a,n){const{properties:s,items:o}=a.schema;if(n==="object"&&s)for(const l in s)i(a,l,s[l].default);else n==="array"&&Array.isArray(o)&&o.forEach((l,u)=>i(a,u,l.default))}Aa.assignDefaults=r;function i(a,n,s){const{gen:o,compositeRule:l,data:u,opts:c}=a;if(s===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} === ""`),o.if(m,(0,e._)`${f} = ${(0,e.stringify)(s)}`)}return Aa}var wr={},it={},Nh;function Nr(){if(Nh)return it;Nh=1,Object.defineProperty(it,"__esModule",{value:!0}),it.validateUnion=it.validateArray=it.usePattern=it.callValidateCode=it.schemaProperties=it.allSchemaProperties=it.noPropertyInData=it.propertyInData=it.isOwnProperty=it.hasPropFunc=it.reportMissingProp=it.checkMissingProp=it.checkReportMissingProp=void 0;const e=Ne(),t=We(),r=Un(),i=We();function a(b,w){const{gen:C,data:h,it:y}=b;C.if(c(C,h,w,y.opts.ownProperties),()=>{b.setParams({missingProperty:(0,e._)`${w}`},!0),b.error()})}it.checkReportMissingProp=a;function n({gen:b,data:w,it:{opts:C}},h,y){return(0,e.or)(...h.map(S=>(0,e.and)(c(b,w,S,C.ownProperties),(0,e._)`${y} = ${S}`)))}it.checkMissingProp=n;function s(b,w){b.setParams({missingProperty:w},!0),b.error()}it.reportMissingProp=s;function o(b){return b.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}it.hasPropFunc=o;function l(b,w,C){return(0,e._)`${o(b)}.call(${w}, ${C})`}it.isOwnProperty=l;function u(b,w,C,h){const y=(0,e._)`${w}${(0,e.getProperty)(C)} !== undefined`;return h?(0,e._)`${y} && ${l(b,w,C)}`:y}it.propertyInData=u;function c(b,w,C,h){const y=(0,e._)`${w}${(0,e.getProperty)(C)} === undefined`;return h?(0,e.or)(y,(0,e.not)(l(b,w,C))):y}it.noPropertyInData=c;function f(b){return b?Object.keys(b).filter(w=>w!=="__proto__"):[]}it.allSchemaProperties=f;function m(b,w){return f(w).filter(C=>!(0,t.alwaysValidSchema)(b,w[C]))}it.schemaProperties=m;function d({schemaCode:b,data:w,it:{gen:C,topSchemaRef:h,schemaPath:y,errorPath:S},it:A},_,x,E){const O=E?(0,e._)`${b}, ${w}, ${h}${y}`:w,R=[[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&&R.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const T=(0,e._)`${O}, ${C.object(...R)}`;return x!==e.nil?(0,e._)`${_}.call(${x}, ${T})`:(0,e._)`${_}(${T})`}it.callValidateCode=d;const p=(0,e._)`new RegExp`;function k({gen:b,it:{opts:w}},C){const h=w.unicodeRegExp?"u":"",{regExp:y}=w.code,S=y(C,h);return b.scopeValue("pattern",{key:S.toString(),ref:S,code:(0,e._)`${y.code==="new RegExp"?p:(0,i.useFunc)(b,y)}(${C}, ${h})`})}it.usePattern=k;function v(b){const{gen:w,data:C,keyword:h,it:y}=b,S=w.name("valid");if(y.allErrors){const _=w.let("valid",!0);return A(()=>w.assign(_,!1)),_}return w.var(S,!0),A(()=>w.break()),S;function A(_){const x=w.const("len",(0,e._)`${C}.length`);w.forRange("i",0,x,E=>{b.subschema({keyword:h,dataProp:E,dataPropType:t.Type.Num},S),w.if((0,e.not)(S),_)})}}it.validateArray=v;function g(b){const{gen:w,schema:C,keyword:h,it:y}=b;if(!Array.isArray(C))throw new Error("ajv implementation error");if(C.some(x=>(0,t.alwaysValidSchema)(y,x))&&!y.opts.unevaluated)return;const A=w.let("valid",!1),_=w.name("_valid");w.block(()=>C.forEach((x,E)=>{const O=b.subschema({keyword:h,schemaProp:E,compositeRule:!0},_);w.assign(A,(0,e._)`${A} || ${_}`),b.mergeValidEvaluated(O,_)||w.if((0,e.not)(A))})),b.result(A,()=>b.reset(),()=>b.error(!0))}return it.validateUnion=g,it}var Fh;function XF(){if(Fh)return wr;Fh=1,Object.defineProperty(wr,"__esModule",{value:!0}),wr.validateKeywordUsage=wr.validSchemaType=wr.funcKeywordCode=wr.macroKeywordCode=void 0;const e=Ne(),t=Un(),r=Nr(),i=jl();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),C=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:C,compositeRule:!0},h),m.pass(h,()=>m.error(!0))}wr.macroKeywordCode=a;function n(m,d){var p;const{gen:k,keyword:v,schema:g,parentSchema:b,$data:w,it:C}=m;l(C,d);const h=!w&&d.compile?d.compile.call(C.self,g,b,C):d.validate,y=u(k,v,h),S=k.let("valid");m.block$data(S,A),m.ok((p=d.valid)!==null&&p!==void 0?p:S);function A(){if(d.errors===!1)E(),d.modifying&&s(m),O(()=>m.error());else{const R=d.async?_():x();d.modifying&&s(m),O(()=>o(m,R))}}function _(){const R=k.let("ruleErrs",null);return k.try(()=>E((0,e._)`await `),T=>k.assign(S,!1).if((0,e._)`${T} instanceof ${C.ValidationError}`,()=>k.assign(R,(0,e._)`${T}.errors`),()=>k.throw(T))),R}function x(){const R=(0,e._)`${y}.errors`;return k.assign(R,null),E(e.nil),R}function E(R=d.async?(0,e._)`await `:e.nil){const T=C.opts.passContext?t.default.this:t.default.self,D=!("compile"in d&&!w||d.schema===!1);k.assign(S,(0,e._)`${R}${(0,r.callValidateCode)(m,y,T,D)}`,d.modifying)}function O(R){var T;k.if((0,e.not)((T=d.valid)!==null&&T!==void 0?T:S),R)}}wr.funcKeywordCode=n;function s(m){const{gen:d,data:p,it:k}=m;d.if(k.parentData,()=>d.assign(p,(0,e._)`${k.parentData}[${k.parentDataProperty}]`))}function o(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")}wr.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 C=`keyword "${g}" value is invalid at path "${k}": `+p.errorsText(v.validateSchema.errors);if(d.validateSchema==="log")p.logger.error(C);else throw new Error(C)}}return wr.validateKeywordUsage=f,wr}var en={},Dh;function ZF(){if(Dh)return en;Dh=1,Object.defineProperty(en,"__esModule",{value:!0}),en.extendSubschemaMode=en.extendSubschemaData=en.getSubschema=void 0;const e=Ne(),t=We();function r(n,{keyword:s,schemaProp:o,schema:l,schemaPath:u,errSchemaPath:c,topSchemaRef:f}){if(s!==void 0&&l!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(s!==void 0){const m=n.schema[s];return o===void 0?{schema:m,schemaPath:(0,e._)`${n.schemaPath}${(0,e.getProperty)(s)}`,errSchemaPath:`${n.errSchemaPath}/${s}`}:{schema:m[o],schemaPath:(0,e._)`${n.schemaPath}${(0,e.getProperty)(s)}${(0,e.getProperty)(o)}`,errSchemaPath:`${n.errSchemaPath}/${s}/${(0,t.escapeFragment)(o)}`}}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')}en.getSubschema=r;function i(n,s,{dataProp:o,dataPropType:l,data:u,dataTypes:c,propertyName:f}){if(u!==void 0&&o!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:m}=s;if(o!==void 0){const{errorPath:p,dataPathArr:k,opts:v}=s,g=m.let("data",(0,e._)`${s.data}${(0,e.getProperty)(o)}`,!0);d(g),n.errorPath=(0,e.str)`${p}${(0,t.getErrorPath)(o,l,v.jsPropertySyntax)}`,n.parentDataProperty=(0,e._)`${o}`,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=s.dataLevel+1,n.dataTypes=[],s.definedProperties=new Set,n.parentData=s.data,n.dataNames=[...s.dataNames,p]}}en.extendSubschemaData=i;function a(n,{jtdDiscriminator:s,jtdMetadata:o,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=s,n.jtdMetadata=o}return en.extendSubschemaMode=a,en}var Ut={},Gu,Mh;function u1(){return Mh||(Mh=1,Gu=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 s=n[a];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r}),Gu}var Ju={exports:{}},Lh;function QF(){if(Lh)return Ju.exports;Lh=1;var e=Ju.exports=function(i,a,n){typeof a=="function"&&(n=a,a={}),n=a.cb||n;var s=typeof n=="function"?n:n.pre||function(){},o=n.post||function(){};t(a,s,o,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,s,o,l,u,c,f,m){if(s&&typeof s=="object"&&!Array.isArray(s)){a(s,o,l,u,c,f,m);for(var d in s){var p=s[d];if(Array.isArray(p)){if(d in e.arrayKeywords)for(var k=0;k<p.length;k++)t(i,a,n,p[k],o+"/"+d+"/"+k,l,o,d,s,k)}else if(d in e.propsKeywords){if(p&&typeof p=="object")for(var v in p)t(i,a,n,p[v],o+"/"+d+"/"+r(v),l,o,d,s,v)}else(d in e.keywords||i.allKeys&&!(d in e.skipKeywords))&&t(i,a,n,p,o+"/"+d,l,o,d,s)}n(s,o,l,u,c,f,m)}}function r(i){return i.replace(/~/g,"~0").replace(/\//g,"~1")}return Ju.exports}var qh;function Rl(){if(qh)return Ut;qh=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.getSchemaRefs=Ut.resolveUrl=Ut.normalizeId=Ut._getFullPath=Ut.getFullPath=Ut.inlineRef=void 0;const e=We(),t=u1(),r=QF(),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?!s(k):v?o(k)<=v:!1}Ut.inlineRef=a;const n=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(k){for(const v in k){if(n.has(v))return!0;const g=k[v];if(Array.isArray(g)&&g.some(s)||typeof g=="object"&&s(g))return!0}return!1}function o(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+=o(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)}Ut.getFullPath=l;function u(k,v){return k.serialize(v).split("#")[0]+"#"}Ut._getFullPath=u;const c=/#\/?$/;function f(k){return k?k.replace(c,""):""}Ut.normalizeId=f;function m(k,v,g){return g=f(g),k.resolve(v,g)}Ut.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),C={"":w},h=l(b,w,!1),y={},S=new Set;return r(k,{allKeys:!0},(x,E,O,R)=>{if(R===void 0)return;const T=h+E;let D=C[R];typeof x[g]=="string"&&(D=L.call(this,x[g])),J.call(this,x.$anchor),J.call(this,x.$dynamicAnchor),C[E]=D;function L(X){const Z=this.opts.uriResolver.resolve;if(X=f(D?Z(D,X):X),S.has(X))throw _(X);S.add(X);let P=this.refs[X];return typeof P=="string"&&(P=this.refs[P]),typeof P=="object"?A(x,P.schema,X):X!==f(T)&&(X[0]==="#"?(A(x,y[X],X),y[X]=x):this.refs[X]=T),X}function J(X){if(typeof X=="string"){if(!d.test(X))throw new Error(`invalid anchor "${X}"`);L.call(this,`#${X}`)}}}),y;function A(x,E,O){if(E!==void 0&&!t(x,E))throw _(O)}function _(x){return new Error(`reference "${x}" resolves to more than one schema`)}}return Ut.getSchemaRefs=p,Ut}var $h;function Nl(){if($h)return Zr;$h=1,Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.getData=Zr.KeywordCxt=Zr.validateFunctionCode=void 0;const e=JF(),t=nl(),r=l1(),i=nl(),a=YF(),n=XF(),s=ZF(),o=Ne(),l=Un(),u=Rl(),c=We(),f=jl();function m($){if(h($)&&(S($),C($))){v($);return}d($,()=>(0,e.topBoolOrEmptySchema)($))}Zr.validateFunctionCode=m;function d({gen:$,validateName:q,schema:G,schemaEnv:W,opts:ie},re){ie.code.es5?$.func(q,(0,o._)`${l.default.data}, ${l.default.valCxt}`,W.$async,()=>{$.code((0,o._)`"use strict"; ${b(G,ie)}`),k($,ie),$.code(re)}):$.func(q,(0,o._)`${l.default.data}, ${p(ie)}`,W.$async,()=>$.code(b(G,ie)).code(re))}function p($){return(0,o._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${$.dynamicRef?(0,o._)`, ${l.default.dynamicAnchors}={}`:o.nil}}={}`}function k($,q){$.if(l.default.valCxt,()=>{$.var(l.default.instancePath,(0,o._)`${l.default.valCxt}.${l.default.instancePath}`),$.var(l.default.parentData,(0,o._)`${l.default.valCxt}.${l.default.parentData}`),$.var(l.default.parentDataProperty,(0,o._)`${l.default.valCxt}.${l.default.parentDataProperty}`),$.var(l.default.rootData,(0,o._)`${l.default.valCxt}.${l.default.rootData}`),q.dynamicRef&&$.var(l.default.dynamicAnchors,(0,o._)`${l.default.valCxt}.${l.default.dynamicAnchors}`)},()=>{$.var(l.default.instancePath,(0,o._)`""`),$.var(l.default.parentData,(0,o._)`undefined`),$.var(l.default.parentDataProperty,(0,o._)`undefined`),$.var(l.default.rootData,l.default.data),q.dynamicRef&&$.var(l.default.dynamicAnchors,(0,o._)`{}`)})}function v($){const{schema:q,opts:G,gen:W}=$;d($,()=>{G.$comment&&q.$comment&&R($),x($),W.let(l.default.vErrors,null),W.let(l.default.errors,0),G.unevaluated&&g($),A($),T($)})}function g($){const{gen:q,validateName:G}=$;$.evaluated=q.const("evaluated",(0,o._)`${G}.evaluated`),q.if((0,o._)`${$.evaluated}.dynamicProps`,()=>q.assign((0,o._)`${$.evaluated}.props`,(0,o._)`undefined`)),q.if((0,o._)`${$.evaluated}.dynamicItems`,()=>q.assign((0,o._)`${$.evaluated}.items`,(0,o._)`undefined`))}function b($,q){const G=typeof $=="object"&&$[q.schemaId];return G&&(q.code.source||q.code.process)?(0,o._)`/*# sourceURL=${G} */`:o.nil}function w($,q){if(h($)&&(S($),C($))){y($,q);return}(0,e.boolOrEmptySchema)($,q)}function C({schema:$,self:q}){if(typeof $=="boolean")return!$;for(const G in $)if(q.RULES.all[G])return!0;return!1}function h($){return typeof $.schema!="boolean"}function y($,q){const{schema:G,gen:W,opts:ie}=$;ie.$comment&&G.$comment&&R($),E($),O($);const re=W.const("_errs",l.default.errors);A($,re),W.var(q,(0,o._)`${re} === ${l.default.errors}`)}function S($){(0,c.checkUnknownRules)($),_($)}function A($,q){if($.opts.jtd)return L($,[],!1,q);const G=(0,t.getSchemaTypes)($.schema),W=(0,t.coerceAndCheckDataType)($,G);L($,G,!W,q)}function _($){const{schema:q,errSchemaPath:G,opts:W,self:ie}=$;q.$ref&&W.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(q,ie.RULES)&&ie.logger.warn(`$ref: keywords ignored in schema at path "${G}"`)}function x($){const{schema:q,opts:G}=$;q.default!==void 0&&G.useDefaults&&G.strictSchema&&(0,c.checkStrictMode)($,"default is ignored in the schema root")}function E($){const q=$.schema[$.opts.schemaId];q&&($.baseId=(0,u.resolveUrl)($.opts.uriResolver,$.baseId,q))}function O($){if($.schema.$async&&!$.schemaEnv.$async)throw new Error("async schema in sync schema")}function R({gen:$,schemaEnv:q,schema:G,errSchemaPath:W,opts:ie}){const re=G.$comment;if(ie.$comment===!0)$.code((0,o._)`${l.default.self}.logger.log(${re})`);else if(typeof ie.$comment=="function"){const ue=(0,o.str)`${W}/$comment`,ye=$.scopeValue("root",{ref:q.root});$.code((0,o._)`${l.default.self}.opts.$comment(${re}, ${ue}, ${ye}.schema)`)}}function T($){const{gen:q,schemaEnv:G,validateName:W,ValidationError:ie,opts:re}=$;G.$async?q.if((0,o._)`${l.default.errors} === 0`,()=>q.return(l.default.data),()=>q.throw((0,o._)`new ${ie}(${l.default.vErrors})`)):(q.assign((0,o._)`${W}.errors`,l.default.vErrors),re.unevaluated&&D($),q.return((0,o._)`${l.default.errors} === 0`))}function D({gen:$,evaluated:q,props:G,items:W}){G instanceof o.Name&&$.assign((0,o._)`${q}.props`,G),W instanceof o.Name&&$.assign((0,o._)`${q}.items`,W)}function L($,q,G,W){const{gen:ie,schema:re,data:ue,allErrors:ye,opts:we,self:ke}=$,{RULES:Pe}=ke;if(re.$ref&&(we.ignoreKeywordsWithRef||!(0,c.schemaHasRulesButRef)(re,Pe))){ie.block(()=>V($,"$ref",Pe.all.$ref.definition));return}we.jtd||X($,q),ie.block(()=>{for(const Ve of Pe.rules)de(Ve);de(Pe.post)});function de(Ve){(0,r.shouldUseGroup)(re,Ve)&&(Ve.type?(ie.if((0,i.checkDataType)(Ve.type,ue,we.strictNumbers)),J($,Ve),q.length===1&&q[0]===Ve.type&&G&&(ie.else(),(0,i.reportTypeError)($)),ie.endIf()):J($,Ve),ye||ie.if((0,o._)`${l.default.errors} === ${W||0}`))}}function J($,q){const{gen:G,schema:W,opts:{useDefaults:ie}}=$;ie&&(0,a.assignDefaults)($,q.type),G.block(()=>{for(const re of q.rules)(0,r.shouldUseRule)(W,re)&&V($,re.keyword,re.definition,q.type)})}function X($,q){$.schemaEnv.meta||!$.opts.strictTypes||(Z($,q),$.opts.allowUnionTypes||P($,q),F($,$.dataTypes))}function Z($,q){if(q.length){if(!$.dataTypes.length){$.dataTypes=q;return}q.forEach(G=>{I($.dataTypes,G)||M($,`type "${G}" not allowed by context "${$.dataTypes.join(",")}"`)}),N($,q)}}function P($,q){q.length>1&&!(q.length===2&&q.includes("null"))&&M($,"use allowUnionTypes to allow union type keyword")}function F($,q){const G=$.self.RULES.all;for(const W in G){const ie=G[W];if(typeof ie=="object"&&(0,r.shouldUseRule)($.schema,ie)){const{type:re}=ie.definition;re.length&&!re.some(ue=>z(q,ue))&&M($,`missing type "${re.join(",")}" for keyword "${W}"`)}}}function z($,q){return $.includes(q)||q==="number"&&$.includes("integer")}function I($,q){return $.includes(q)||q==="integer"&&$.includes("number")}function N($,q){const G=[];for(const W of $.dataTypes)I(q,W)?G.push(W):q.includes("integer")&&W==="number"&&G.push("integer");$.dataTypes=G}function M($,q){const G=$.schemaEnv.baseId+$.errSchemaPath;q+=` at "${G}" (strictTypes)`,(0,c.checkStrictMode)($,q,$.opts.strictTypes)}class U{constructor(q,G,W){if((0,n.validateKeywordUsage)(q,G,W),this.gen=q.gen,this.allErrors=q.allErrors,this.keyword=W,this.data=q.data,this.schema=q.schema[W],this.$data=G.$data&&q.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,c.schemaRefOrVal)(q,this.schema,W,this.$data),this.schemaType=G.schemaType,this.parentSchema=q.schema,this.params={},this.it=q,this.def=G,this.$data)this.schemaCode=q.gen.const("vSchema",Y(this.$data,q));else if(this.schemaCode=this.schemaValue,!(0,n.validSchemaType)(this.schema,G.schemaType,G.allowUndefined))throw new Error(`${W} value must be ${JSON.stringify(G.schemaType)}`);("code"in G?G.trackErrors:G.errors!==!1)&&(this.errsCount=q.gen.const("_errs",l.default.errors))}result(q,G,W){this.failResult((0,o.not)(q),G,W)}failResult(q,G,W){this.gen.if(q),W?W():this.error(),G?(this.gen.else(),G(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(q,G){this.failResult((0,o.not)(q),void 0,G)}fail(q){if(q===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(q),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(q){if(!this.$data)return this.fail(q);const{schemaCode:G}=this;this.fail((0,o._)`${G} !== undefined && (${(0,o.or)(this.invalid$data(),q)})`)}error(q,G,W){if(G){this.setParams(G),this._error(q,W),this.setParams({});return}this._error(q,W)}_error(q,G){(q?f.reportExtraError:f.reportError)(this,this.def.error,G)}$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(q){this.allErrors||this.gen.if(q)}setParams(q,G){G?Object.assign(this.params,q):this.params=q}block$data(q,G,W=o.nil){this.gen.block(()=>{this.check$data(q,W),G()})}check$data(q=o.nil,G=o.nil){if(!this.$data)return;const{gen:W,schemaCode:ie,schemaType:re,def:ue}=this;W.if((0,o.or)((0,o._)`${ie} === undefined`,G)),q!==o.nil&&W.assign(q,!0),(re.length||ue.validateSchema)&&(W.elseIf(this.invalid$data()),this.$dataError(),q!==o.nil&&W.assign(q,!1)),W.else()}invalid$data(){const{gen:q,schemaCode:G,schemaType:W,def:ie,it:re}=this;return(0,o.or)(ue(),ye());function ue(){if(W.length){if(!(G instanceof o.Name))throw new Error("ajv implementation error");const we=Array.isArray(W)?W:[W];return(0,o._)`${(0,i.checkDataTypes)(we,G,re.opts.strictNumbers,i.DataType.Wrong)}`}return o.nil}function ye(){if(ie.validateSchema){const we=q.scopeValue("validate$data",{ref:ie.validateSchema});return(0,o._)`!${we}(${G})`}return o.nil}}subschema(q,G){const W=(0,s.getSubschema)(this.it,q);(0,s.extendSubschemaData)(W,this.it,q),(0,s.extendSubschemaMode)(W,q);const ie={...this.it,...W,items:void 0,props:void 0};return w(ie,G),ie}mergeEvaluated(q,G){const{it:W,gen:ie}=this;W.opts.unevaluated&&(W.props!==!0&&q.props!==void 0&&(W.props=c.mergeEvaluated.props(ie,q.props,W.props,G)),W.items!==!0&&q.items!==void 0&&(W.items=c.mergeEvaluated.items(ie,q.items,W.items,G)))}mergeValidEvaluated(q,G){const{it:W,gen:ie}=this;if(W.opts.unevaluated&&(W.props!==!0||W.items!==!0))return ie.if(G,()=>this.mergeEvaluated(q,o.Name)),!0}}Zr.KeywordCxt=U;function V($,q,G,W){const ie=new U($,G,q);"code"in G?G.code(ie,W):ie.$data&&G.validate?(0,n.funcKeywordCode)(ie,G):"macro"in G?(0,n.macroKeywordCode)(ie,G):(G.compile||G.validate)&&(0,n.funcKeywordCode)(ie,G)}const H=/^\/(?:[^~]|~0|~1)*$/,K=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Y($,{dataLevel:q,dataNames:G,dataPathArr:W}){let ie,re;if($==="")return l.default.rootData;if($[0]==="/"){if(!H.test($))throw new Error(`Invalid JSON-pointer: ${$}`);ie=$,re=l.default.rootData}else{const ke=K.exec($);if(!ke)throw new Error(`Invalid JSON-pointer: ${$}`);const Pe=+ke[1];if(ie=ke[2],ie==="#"){if(Pe>=q)throw new Error(we("property/index",Pe));return W[q-Pe]}if(Pe>q)throw new Error(we("data",Pe));if(re=G[q-Pe],!ie)return re}let ue=re;const ye=ie.split("/");for(const ke of ye)ke&&(re=(0,o._)`${re}${(0,o.getProperty)((0,c.unescapeJsonPointer)(ke))}`,ue=(0,o._)`${ue} && ${re}`);return ue;function we(ke,Pe){return`Cannot access ${ke} ${Pe} levels up, current level is ${q}`}}return Zr.getData=Y,Zr}var $s={},zh;function Fd(){if(zh)return $s;zh=1,Object.defineProperty($s,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return $s.default=e,$s}var zs={},Uh;function Fl(){if(Uh)return zs;Uh=1,Object.defineProperty(zs,"__esModule",{value:!0});const e=Rl();class t extends Error{constructor(i,a,n,s){super(s||`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 zs.default=t,zs}var er={},Bh;function Dd(){if(Bh)return er;Bh=1,Object.defineProperty(er,"__esModule",{value:!0}),er.resolveSchema=er.getCompilingSchema=er.resolveRef=er.compileSchema=er.SchemaEnv=void 0;const e=Ne(),t=Fd(),r=Un(),i=Rl(),a=We(),n=Nl();class s{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={}}}er.SchemaEnv=s;function o(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:C}=this.opts.code,{ownProperties:h}=this.opts,y=new e.CodeGen(this.scope,{es5:w,lines:C,ownProperties:h});let S;v.$async&&(S=y.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const A=y.scopeName("validate");v.validateName=A;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: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 x;try{this._compilations.add(v),(0,n.validateFunctionCode)(_),y.optimize(this.opts.code.optimize);const E=y.toString();x=`${y.scopeRefs(r.default.scope)}return ${E}`,this.opts.code.process&&(x=this.opts.code.process(x,v));const R=new Function(`${r.default.self}`,`${r.default.scope}`,x)(this,this.scope.get());if(this.scope.value(A,{ref:R}),R.errors=null,R.schema=v.schema,R.schemaEnv=v,v.$async&&(R.$async=!0),this.opts.code.source===!0&&(R.source={validateName:A,validateCode:E,scopeValues:y._values}),this.opts.unevaluated){const{props:T,items:D}=_;R.evaluated={props:T instanceof e.Name?void 0:T,items:D instanceof e.Name?void 0:D,dynamicProps:T instanceof e.Name,dynamicItems:D instanceof e.Name},R.source&&(R.source.evaluated=(0,e.stringify)(R.evaluated))}return v.validate=R,v}catch(E){throw delete v.validate,delete v.validateName,x&&this.logger.error("Error compiling schema, function code:",x),E}finally{this._compilations.delete(v)}}er.compileSchema=o;function l(v,g,b){var w;b=(0,i.resolveUrl)(this.opts.uriResolver,g,b);const C=v.refs[b];if(C)return C;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:S}=this.opts;y&&(h=new s({schema:y,schemaId:S,root:v,baseId:g}))}if(h!==void 0)return v.refs[b]=u.call(this,h)}er.resolveRef=l;function u(v){return(0,i.inlineRef)(v.schema,this.opts.inlineRefs)?v.schema:v.validate?v:o.call(this,v)}function c(v){for(const g of this._compilations)if(f(g,v))return g}er.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 C=(0,i.getFullPath)(this.opts.uriResolver,v.baseId,void 0);if(Object.keys(v.schema).length>0&&w===C)return k.call(this,b,v);const h=(0,i.normalizeId)(w),y=this.refs[h]||this.schemas[h];if(typeof y=="string"){const S=d.call(this,v,y);return typeof(S==null?void 0:S.schema)!="object"?void 0:k.call(this,b,S)}if(typeof(y==null?void 0:y.schema)=="object"){if(y.validate||o.call(this,y),h===(0,i.normalizeId)(g)){const{schema:S}=y,{schemaId:A}=this.opts,_=S[A];return _&&(C=(0,i.resolveUrl)(this.opts.uriResolver,C,_)),new s({schema:S,schemaId:A,root:v,baseId:C})}return k.call(this,b,y)}}er.resolveSchema=d;const p=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function k(v,{baseId:g,schema:b,root:w}){var C;if(((C=v.fragment)===null||C===void 0?void 0:C[0])!=="/")return;for(const S of v.fragment.slice(1).split("/")){if(typeof b=="boolean")return;const A=b[(0,a.unescapeFragment)(S)];if(A===void 0)return;b=A;const _=typeof b=="object"&&b[this.opts.schemaId];!p.has(S)&&_&&(g=(0,i.resolveUrl)(this.opts.uriResolver,g,_))}let h;if(typeof b!="boolean"&&b.$ref&&!(0,a.schemaHasRulesButRef)(b,this.RULES)){const S=(0,i.resolveUrl)(this.opts.uriResolver,g,b.$ref);h=d.call(this,w,S)}const{schemaId:y}=this.opts;if(h=h||new s({schema:b,schemaId:y,root:w,baseId:g}),h.schema!==h.root.schema)return h}return er}const eD="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",tD="Meta-schema for $data reference (JSON AnySchema extension proposal)",rD="object",nD=["$data"],iD={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},aD=!1,sD={$id:eD,description:tD,type:rD,required:nD,properties:iD,additionalProperties:aD};var Us={},Oa={exports:{}},Yu,Vh;function c1(){if(Vh)return Yu;Vh=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="",S=0,A=0;for(A=0;A<h.length;A++)if(S=h[A].charCodeAt(0),S!==48){if(!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";y+=h[A];break}for(A+=1;A<h.length;A++){if(S=h[A].charCodeAt(0),!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";y+=h[A]}return y}const s=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function o(h){return h.length=0,!0}function l(h,y,S){if(h.length){const A=n(h);if(A!=="")y.push(A);else return S.error=!0,!1;h.length=0}return!0}function u(h){let y=0;const S={error:!1,address:"",zone:""},A=[],_=[];let x=!1,E=!1,O=l;for(let R=0;R<h.length;R++){const T=h[R];if(!(T==="["||T==="]"))if(T===":"){if(x===!0&&(E=!0),!O(_,A,S))break;if(++y>7){S.error=!0;break}R>0&&h[R-1]===":"&&(x=!0),A.push(":");continue}else if(T==="%"){if(!O(_,A,S))break;O=o}else{_.push(T);continue}}return _.length&&(O===o?S.zone=_.join(""):E?A.push(_.join("")):A.push(n(_))),S.address=A.join(""),S}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 S=y.address,A=y.address;return y.zone&&(S+="%"+y.zone,A+="%25"+y.zone),{host:S,isIPV6:!0,escapedHost:A}}}function f(h,y){let S=0;for(let A=0;A<h.length;A++)h[A]===y&&S++;return S}function m(h){let y=h;const S=[];let A=-1,_=0;for(;_=y.length;){if(_===1){if(y===".")break;if(y==="/"){S.push("/");break}else{S.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]==="/")){S.push("/");break}}else if(_===3&&y==="/.."){S.length!==0&&S.pop(),S.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),S.length!==0&&S.pop();continue}}if((A=y.indexOf("/",1))===-1){S.push(y);break}else S.push(y.slice(0,A)),y=y.slice(A)}return S.join("")}const d={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},p=/[@/?#:]/g,k=/[@/?#]/g;function v(h,y){const S=y?k:p;return S.lastIndex=0,h.replace(S,A=>d[A])}function g(h,y=!1){if(h.indexOf("%")===-1)return h;let S="";for(let A=0;A<h.length;A++){if(h[A]==="%"&&A+2<h.length){const _=h.slice(A+1,A+3);if(r(_)){const x=_.toUpperCase(),E=String.fromCharCode(parseInt(x,16));y&&i(E)?S+=E:S+="%"+x,A+=2;continue}}S+=h[A]}return S}function b(h){let y="";for(let S=0;S<h.length;S++){if(h[S]==="%"&&S+2<h.length){const A=h.slice(S+1,S+3);if(r(A)){const _=A.toUpperCase(),x=String.fromCharCode(parseInt(_,16));x!=="."&&i(x)?y+=x:y+="%"+_,S+=2;continue}}a(h[S])?y+=h[S]:y+=escape(h[S])}return y}function w(h){let y="";for(let S=0;S<h.length;S++){if(h[S]==="%"&&S+2<h.length){const A=h.slice(S+1,S+3);if(r(A)){y+="%"+A.toUpperCase(),S+=2;continue}}y+=escape(h[S])}return y}function C(h){const y=[];if(h.userinfo!==void 0&&(y.push(h.userinfo),y.push("@")),h.host!==void 0){let S=unescape(h.host);if(!t(S)){const A=c(S);A.isIPV6===!0?S=`[${A.escapedHost}]`:S=v(S,!1)}y.push(S)}return(typeof h.port=="number"||typeof h.port=="string")&&(y.push(":"),y.push(String(h.port))),y.length?y.join(""):void 0}return Yu={nonSimpleDomain:s,recomposeAuthority:C,reescapeHostDelimiters:v,normalizePercentEncoding:g,normalizePathEncoding:b,escapePreservingEscapes:w,removeDotSegments:m,isIPv4:t,isUUID:e,normalizeIPv6:c,stringArrayToHexStripped:n},Yu}var Xu,Hh;function oD(){if(Hh)return Xu;Hh=1;const{isUUID:e}=c1(),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 s(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 o(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,S]=h.resourceName.split("?");h.path=y&&y!=="/"?y:void 0,h.query=S,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 S=h.path.match(t);if(S){const A=y.scheme||h.scheme||"urn";h.nid=S[1].toLowerCase(),h.nss=S[2];const _=`${A}:${y.nid||h.nid}`,x=C(_);h.path=void 0,x&&(h=x.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 S=y.scheme||h.scheme||"urn",A=h.nid.toLowerCase(),_=`${S}:${y.nid||A}`,x=C(_);x&&(h=x.serialize(h,y));const E=h,O=h.nss;return E.path=`${A||y.nid}:${O}`,y.skipEscape=!0,E}function f(h,y){const S=h;return S.uuid=S.nss,S.nss=void 0,!y.tolerant&&(!S.uuid||!e(S.uuid))&&(S.error=S.error||"UUID is not valid."),S}function m(h){const y=h;return y.nss=(h.uuid||"").toLowerCase(),y}const d={scheme:"http",domainHost:!0,parse:n,serialize:s},p={scheme:"https",domainHost:d.domainHost,parse:n,serialize:s},k={scheme:"ws",domainHost:!0,parse:o,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 C(h){return h&&(w[h]||w[h.toLowerCase()])||void 0}return Xu={wsIsSecure:a,SCHEMES:w,isValidSchemeName:i,getSchemeHandler:C},Xu}var Kh;function lD(){if(Kh)return Oa.exports;Kh=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:i,normalizePathEncoding:a,escapePreservingEscapes:n,reescapeHostDelimiters:s,isIPv4:o,nonSimpleDomain:l}=c1(),{SCHEMES:u,getSchemeHandler:c}=oD();function f(A,_){return typeof A=="string"?A=C(A,_):typeof A=="object"&&(A=w(k(A,_),_)),A}function m(A,_,x){const E=x?Object.assign({scheme:"null"},x):{scheme:"null"},O=d(w(A,E),w(_,E),E,!0);return E.skipEscape=!0,k(O,E)}function d(A,_,x,E){const O={};return E||(A=w(k(A,x),x),_=w(k(_,x),x)),x=x||{},!x.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):((A.userinfo!==void 0||A.host!==void 0||A.port!==void 0)&&!A.path?O.path="/"+_.path:A.path?O.path=A.path.slice(0,A.path.lastIndexOf("/")+1)+_.path:O.path=_.path,O.path=t(O.path)),O.query=_.query):(O.path=A.path,_.query!==void 0?O.query=_.query:O.query=A.query),O.userinfo=A.userinfo,O.host=A.host,O.port=A.port),O.scheme=A.scheme),O.fragment=_.fragment,O}function p(A,_,x){const E=y(A,x),O=y(_,x);return E!==void 0&&O!==void 0&&E.toLowerCase()===O.toLowerCase()}function k(A,_){const x={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:""},E=Object.assign({},_),O=[],R=c(E.scheme||x.scheme);R&&R.serialize&&R.serialize(x,E),x.path!==void 0&&(E.skipEscape?x.path=i(x.path):(x.path=n(x.path),x.scheme!==void 0&&(x.path=x.path.split("%3A").join(":")))),E.reference!=="suffix"&&x.scheme&&O.push(x.scheme,":");const T=r(x);if(T!==void 0&&(E.reference!=="suffix"&&O.push("//"),O.push(T),x.path&&x.path[0]!=="/"&&O.push("/")),x.path!==void 0){let D=x.path;!E.absolutePath&&(!R||!R.absolutePath)&&(D=t(D)),T===void 0&&D[0]==="/"&&D[1]==="/"&&(D="/%2F"+D.slice(2)),O.push(D)}return x.query!==void 0&&O.push("?",x.query),x.fragment!==void 0&&O.push("#",x.fragment),O.join("")}const v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function g(A,_){if(_[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,_){const x=Object.assign({},_),E={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let O=!1,R=!1;x.reference==="suffix"&&(x.scheme?A=x.scheme+":"+A:A="//"+A);const T=A.match(v);if(T){E.scheme=T[1],E.userinfo=T[3],E.host=T[4],E.port=parseInt(T[5],10),E.path=T[6]||"",E.query=T[7],E.fragment=T[8],isNaN(E.port)&&(E.port=T[5]);const D=g(E,T);if(D!==void 0&&(E.error=E.error||D,O=!0),E.host)if(o(E.host)===!1){const X=e(E.host);E.host=X.host.toLowerCase(),R=X.isIPV6}else R=!0;E.scheme===void 0&&E.userinfo===void 0&&E.host===void 0&&E.port===void 0&&E.query===void 0&&!E.path?E.reference="same-document":E.scheme===void 0?E.reference="relative":E.fragment===void 0?E.reference="absolute":E.reference="uri",x.reference&&x.reference!=="suffix"&&x.reference!==E.reference&&(E.error=E.error||"URI is not a "+x.reference+" reference.");const L=c(x.scheme||E.scheme);if(!x.unicodeSupport&&(!L||!L.unicodeSupport)&&E.host&&(x.domainHost||L&&L.domainHost)&&R===!1&&l(E.host))try{E.host=URL.domainToASCII(E.host.toLowerCase())}catch(J){E.error=E.error||"Host's domain name can not be converted to ASCII: "+J}if((!L||L&&!L.skipNormalize)&&(A.indexOf("%")!==-1&&(E.scheme!==void 0&&(E.scheme=unescape(E.scheme)),E.host!==void 0&&(E.host=s(unescape(E.host),R))),E.path&&(E.path=a(E.path)),E.fragment))try{E.fragment=encodeURI(decodeURIComponent(E.fragment))}catch{E.error=E.error||"URI malformed"}L&&L.parse&&L.parse(E,x)}else E.error=E.error||"URI can not be parsed.";return{parsed:E,malformedAuthorityOrPort:O}}function w(A,_){return b(A,_).parsed}function C(A,_){return h(A,_).normalized}function h(A,_){const{parsed:x,malformedAuthorityOrPort:E}=b(A,_);return{normalized:E?A:k(x,_),malformedAuthorityOrPort:E}}function y(A,_){if(typeof A=="string"){const{normalized:x,malformedAuthorityOrPort:E}=h(A,_);return E?void 0:x}if(typeof A=="object")return k(A,_)}const S={SCHEMES:u,normalize:f,resolve:m,resolveComponent:d,equal:p,serialize:k,parse:w};return Oa.exports=S,Oa.exports.default=S,Oa.exports.fastUri=S,Oa.exports}var Wh;function uD(){if(Wh)return Us;Wh=1,Object.defineProperty(Us,"__esModule",{value:!0});const e=lD();return e.code='require("ajv/dist/runtime/uri").default',Us.default=e,Us}var Gh;function cD(){return Gh||(Gh=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=Nl();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Ne();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=Fd(),a=Fl(),n=o1(),s=Dd(),o=Ne(),l=Rl(),u=nl(),c=We(),f=sD,m=uD(),d=(P,F)=>new RegExp(P,F);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 F,z,I,N,M,U,V,H,K,Y,$,q,G,W,ie,re,ue,ye,we,ke,Pe,de,Ve,st,ve;const Q=P.strict,ee=(F=P.code)===null||F===void 0?void 0:F.optimize,te=ee===!0||ee===void 0?1:ee||0,pe=(I=(z=P.code)===null||z===void 0?void 0:z.regExp)!==null&&I!==void 0?I:d,ce=(N=P.uriResolver)!==null&&N!==void 0?N:m.default;return{strictSchema:(U=(M=P.strictSchema)!==null&&M!==void 0?M:Q)!==null&&U!==void 0?U:!0,strictNumbers:(H=(V=P.strictNumbers)!==null&&V!==void 0?V:Q)!==null&&H!==void 0?H:!0,strictTypes:(Y=(K=P.strictTypes)!==null&&K!==void 0?K:Q)!==null&&Y!==void 0?Y:"log",strictTuples:(q=($=P.strictTuples)!==null&&$!==void 0?$:Q)!==null&&q!==void 0?q:"log",strictRequired:(W=(G=P.strictRequired)!==null&&G!==void 0?G:Q)!==null&&W!==void 0?W:!1,code:P.code?{...P.code,optimize:te,regExp:pe}:{optimize:te,regExp:pe},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:(we=P.inlineRefs)!==null&&we!==void 0?we:!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:(Ve=P.validateFormats)!==null&&Ve!==void 0?Ve:!0,unicodeRegExp:(st=P.unicodeRegExp)!==null&&st!==void 0?st:!0,int32range:(ve=P.int32range)!==null&&ve!==void 0?ve:!0,uriResolver:ce}}class C{constructor(F={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,F=this.opts={...F,...w(F)};const{es5:z,lines:I}=this.opts.code;this.scope=new o.ValueScope({scope:{},prefixes:k,es5:z,lines:I}),this.logger=O(F.logger);const N=F.validateFormats;F.validateFormats=!1,this.RULES=(0,n.getRules)(),h.call(this,v,F,"NOT SUPPORTED"),h.call(this,g,F,"DEPRECATED","warn"),this._metaOpts=x.call(this),F.formats&&A.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),F.keywords&&_.call(this,F.keywords),typeof F.meta=="object"&&this.addMetaSchema(F.meta),S.call(this),F.validateFormats=N}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:F,meta:z,schemaId:I}=this.opts;let N=f;I==="id"&&(N={...f},N.id=N.$id,delete N.$id),z&&F&&this.addMetaSchema(N,N[I],!1)}defaultMeta(){const{meta:F,schemaId:z}=this.opts;return this.opts.defaultMeta=typeof F=="object"?F[z]||F:void 0}validate(F,z){let I;if(typeof F=="string"){if(I=this.getSchema(F),!I)throw new Error(`no schema with key or ref "${F}"`)}else I=this.compile(F);const N=I(z);return"$async"in I||(this.errors=I.errors),N}compile(F,z){const I=this._addSchema(F,z);return I.validate||this._compileSchemaEnv(I)}compileAsync(F,z){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:I}=this.opts;return N.call(this,F,z);async function N(Y,$){await M.call(this,Y.$schema);const q=this._addSchema(Y,$);return q.validate||U.call(this,q)}async function M(Y){Y&&!this.getSchema(Y)&&await N.call(this,{$ref:Y},!0)}async function U(Y){try{return this._compileSchemaEnv(Y)}catch($){if(!($ instanceof a.default))throw $;return V.call(this,$),await H.call(this,$.missingSchema),U.call(this,Y)}}function V({missingSchema:Y,missingRef:$}){if(this.refs[Y])throw new Error(`AnySchema ${Y} is loaded but ${$} cannot be resolved`)}async function H(Y){const $=await K.call(this,Y);this.refs[Y]||await M.call(this,$.$schema),this.refs[Y]||this.addSchema($,Y,z)}async function K(Y){const $=this._loading[Y];if($)return $;try{return await(this._loading[Y]=I(Y))}finally{delete this._loading[Y]}}}addSchema(F,z,I,N=this.opts.validateSchema){if(Array.isArray(F)){for(const U of F)this.addSchema(U,void 0,I,N);return this}let M;if(typeof F=="object"){const{schemaId:U}=this.opts;if(M=F[U],M!==void 0&&typeof M!="string")throw new Error(`schema ${U} must be string`)}return z=(0,l.normalizeId)(z||M),this._checkUnique(z),this.schemas[z]=this._addSchema(F,I,z,N,!0),this}addMetaSchema(F,z,I=this.opts.validateSchema){return this.addSchema(F,z,!0,I),this}validateSchema(F,z){if(typeof F=="boolean")return!0;let I;if(I=F.$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 N=this.validate(I,F);if(!N&&z){const M="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(M);else throw new Error(M)}return N}getSchema(F){let z;for(;typeof(z=y.call(this,F))=="string";)F=z;if(z===void 0){const{schemaId:I}=this.opts,N=new s.SchemaEnv({schema:{},schemaId:I});if(z=s.resolveSchema.call(this,N,F),!z)return;this.refs[F]=z}return z.validate||this._compileSchemaEnv(z)}removeSchema(F){if(F instanceof RegExp)return this._removeAllSchemas(this.schemas,F),this._removeAllSchemas(this.refs,F),this;switch(typeof F){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const z=y.call(this,F);return typeof z=="object"&&this._cache.delete(z.schema),delete this.schemas[F],delete this.refs[F],this}case"object":{const z=F;this._cache.delete(z);let I=F[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(F){for(const z of F)this.addKeyword(z);return this}addKeyword(F,z){let I;if(typeof F=="string")I=F,typeof z=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),z.keyword=I);else if(typeof F=="object"&&z===void 0){if(z=F,I=z.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,z),!z)return(0,c.eachItem)(I,M=>D.call(this,M)),this;J.call(this,z);const N={...z,type:(0,u.getJSONTypes)(z.type),schemaType:(0,u.getJSONTypes)(z.schemaType)};return(0,c.eachItem)(I,N.type.length===0?M=>D.call(this,M,N):M=>N.type.forEach(U=>D.call(this,M,N,U))),this}getKeyword(F){const z=this.RULES.all[F];return typeof z=="object"?z.definition:!!z}removeKeyword(F){const{RULES:z}=this;delete z.keywords[F],delete z.all[F];for(const I of z.rules){const N=I.rules.findIndex(M=>M.keyword===F);N>=0&&I.rules.splice(N,1)}return this}addFormat(F,z){return typeof z=="string"&&(z=new RegExp(z)),this.formats[F]=z,this}errorsText(F=this.errors,{separator:z=", ",dataVar:I="data"}={}){return!F||F.length===0?"No errors":F.map(N=>`${I}${N.instancePath} ${N.message}`).reduce((N,M)=>N+z+M)}$dataMetaSchema(F,z){const I=this.RULES.all;F=JSON.parse(JSON.stringify(F));for(const N of z){const M=N.split("/").slice(1);let U=F;for(const V of M)U=U[V];for(const V in I){const H=I[V];if(typeof H!="object")continue;const{$data:K}=H.definition,Y=U[V];K&&Y&&(U[V]=Z(Y))}}return F}_removeAllSchemas(F,z){for(const I in F){const N=F[I];(!z||z.test(I))&&(typeof N=="string"?delete F[I]:N&&!N.meta&&(this._cache.delete(N.schema),delete F[I]))}}_addSchema(F,z,I,N=this.opts.validateSchema,M=this.opts.addUsedSchema){let U;const{schemaId:V}=this.opts;if(typeof F=="object")U=F[V];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof F!="boolean")throw new Error("schema must be object or boolean")}let H=this._cache.get(F);if(H!==void 0)return H;I=(0,l.normalizeId)(U||I);const K=l.getSchemaRefs.call(this,F,I);return H=new s.SchemaEnv({schema:F,schemaId:V,meta:z,baseId:I,localRefs:K}),this._cache.set(H.schema,H),M&&!I.startsWith("#")&&(I&&this._checkUnique(I),this.refs[I]=H),N&&this.validateSchema(F,!0),H}_checkUnique(F){if(this.schemas[F]||this.refs[F])throw new Error(`schema with key or id "${F}" already exists`)}_compileSchemaEnv(F){if(F.meta?this._compileMetaSchema(F):s.compileSchema.call(this,F),!F.validate)throw new Error("ajv implementation error");return F.validate}_compileMetaSchema(F){const z=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,F)}finally{this.opts=z}}}C.ValidationError=i.default,C.MissingRefError=a.default,e.default=C;function h(P,F,z,I="error"){for(const N in P){const M=N;M in F&&this.logger[I](`${z}: option ${N}. ${P[M]}`)}}function y(P){return P=(0,l.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 F in P)this.addSchema(P[F],F)}function A(){for(const P in this.opts.formats){const F=this.opts.formats[P];F&&this.addFormat(P,F)}}function _(P){if(Array.isArray(P)){this.addVocabulary(P);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const F in P){const z=P[F];z.keyword||(z.keyword=F),this.addKeyword(z)}}function x(){const P={...this.opts};for(const F of p)delete P[F];return P}const E={log(){},warn(){},error(){}};function O(P){if(P===!1)return E;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 R=/^[a-z_$][a-z0-9_$:-]*$/i;function T(P,F){const{RULES:z}=this;if((0,c.eachItem)(P,I=>{if(z.keywords[I])throw new Error(`Keyword ${I} is already defined`);if(!R.test(I))throw new Error(`Keyword ${I} has invalid name`)}),!!F&&F.$data&&!("code"in F||"validate"in F))throw new Error('$data keyword must have "code" or "validate" function')}function D(P,F,z){var I;const N=F==null?void 0:F.post;if(z&&N)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:M}=this;let U=N?M.post:M.rules.find(({type:H})=>H===z);if(U||(U={type:z,rules:[]},M.rules.push(U)),M.keywords[P]=!0,!F)return;const V={keyword:P,definition:{...F,type:(0,u.getJSONTypes)(F.type),schemaType:(0,u.getJSONTypes)(F.schemaType)}};F.before?L.call(this,U,V,F.before):U.rules.push(V),M.all[P]=V,(I=F.implements)===null||I===void 0||I.forEach(H=>this.addKeyword(H))}function L(P,F,z){const I=P.rules.findIndex(N=>N.keyword===z);I>=0?P.rules.splice(I,0,F):(P.rules.push(F),this.logger.warn(`rule ${z} is not defined`))}function J(P){let{metaSchema:F}=P;F!==void 0&&(P.$data&&this.opts.$data&&(F=Z(F)),P.validateSchema=this.compile(F,!0))}const X={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Z(P){return{anyOf:[P,X]}}})(Bu)),Bu}var Bs={},Vs={},Hs={},Jh;function fD(){if(Jh)return Hs;Jh=1,Object.defineProperty(Hs,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Hs.default=e,Hs}var gn={},Yh;function dD(){if(Yh)return gn;Yh=1,Object.defineProperty(gn,"__esModule",{value:!0}),gn.callRef=gn.getValidate=void 0;const e=Fl(),t=Nr(),r=Ne(),i=Un(),a=Dd(),n=We(),s={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 C();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 C(){if(p===b)return l(u,k,p,p.$async);const S=c.scopeValue("root",{ref:b});return l(u,(0,r._)`${S}.validate`,b,b.$async)}function h(S){const A=o(u,S);l(u,A,S,S.$async)}function y(S){const A=c.scopeValue("schema",v.code.source===!0?{ref:S,code:(0,r.stringify)(S)}:{ref:S}),_=c.name("valid"),x=u.subschema({schema:S,dataTypes:[],schemaPath:r.nil,topSchemaRef:A,errSchemaPath:f},_);u.mergeEvaluated(x),u.ok(_)}}};function o(u,c){const{gen:f}=u;return c.validate?f.scopeValue("validate",{ref:c.validate}):(0,r._)`${f.scopeValue("wrapper",{ref:c})}.validate`}gn.getValidate=o;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():C();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)(u,c,b)}`),y(c),k||d.assign(S,!0)},A=>{d.if((0,r._)`!(${A} instanceof ${p.ValidationError})`,()=>d.throw(A)),h(A),k||d.assign(S,!1)}),u.ok(S)}function C(){u.result((0,t.callValidateCode)(u,c,b),()=>y(c),()=>h(c))}function h(S){const A=(0,r._)`${S}.errors`;d.assign(i.default.vErrors,(0,r._)`${i.default.vErrors} === null ? ${A} : ${i.default.vErrors}.concat(${A})`),d.assign(i.default.errors,(0,r._)`${i.default.vErrors}.length`)}function y(S){var A;if(!p.opts.unevaluated)return;const _=(A=f==null?void 0:f.validate)===null||A===void 0?void 0:A.evaluated;if(p.props!==!0)if(_&&!_.dynamicProps)_.props!==void 0&&(p.props=n.mergeEvaluated.props(d,_.props,p.props));else{const x=d.var("props",(0,r._)`${S}.evaluated.props`);p.props=n.mergeEvaluated.props(d,x,p.props,r.Name)}if(p.items!==!0)if(_&&!_.dynamicItems)_.items!==void 0&&(p.items=n.mergeEvaluated.items(d,_.items,p.items));else{const x=d.var("items",(0,r._)`${S}.evaluated.items`);p.items=n.mergeEvaluated.items(d,x,p.items,r.Name)}}}return gn.callRef=l,gn.default=s,gn}var Xh;function mD(){if(Xh)return Vs;Xh=1,Object.defineProperty(Vs,"__esModule",{value:!0});const e=fD(),t=dD(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Vs.default=r,Vs}var Ks={},Ws={},Zh;function pD(){if(Zh)return Ws;Zh=1,Object.defineProperty(Ws,"__esModule",{value:!0});const e=Ne(),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:s})=>(0,e.str)`must be ${r[n].okStr} ${s}`,params:({keyword:n,schemaCode:s})=>(0,e._)`{comparison: ${r[n].okStr}, limit: ${s}}`},a={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:i,code(n){const{keyword:s,data:o,schemaCode:l}=n;n.fail$data((0,e._)`${o} ${r[s].fail} ${l} || isNaN(${o})`)}};return Ws.default=a,Ws}var Gs={},Qh;function hD(){if(Qh)return Gs;Qh=1,Object.defineProperty(Gs,"__esModule",{value:!0});const e=Ne(),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:s,it:o}=i,l=o.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._)`(${s} === 0 || (${u} = ${n}/${s}, ${c}))`)}};return Gs.default=r,Gs}var Js={},Ys={},eg;function gD(){if(eg)return Ys;eg=1,Object.defineProperty(Ys,"__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 Ys.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Ys}var tg;function yD(){if(tg)return Js;tg=1,Object.defineProperty(Js,"__esModule",{value:!0});const e=Ne(),t=We(),r=gD(),a={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:s}){const o=n==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${s} characters`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:s,data:o,schemaCode:l,it:u}=n,c=s==="maxLength"?e.operators.GT:e.operators.LT,f=u.opts.unicode===!1?(0,e._)`${o}.length`:(0,e._)`${(0,t.useFunc)(n.gen,r.default)}(${o})`;n.fail$data((0,e._)`${f} ${c} ${l}`)}};return Js.default=a,Js}var Xs={},rg;function vD(){if(rg)return Xs;rg=1,Object.defineProperty(Xs,"__esModule",{value:!0});const e=Nr(),t=We(),r=Ne(),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:s,data:o,$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)(s,d),k=s.let("valid");s.try(()=>s.assign(k,(0,r._)`${p}(${c}, ${m}).test(${o})`),()=>s.assign(k,!1)),n.fail$data((0,r._)`!${k}`)}else{const d=(0,e.usePattern)(n,u);n.fail$data((0,r._)`!${d}.test(${o})`)}}};return Xs.default=a,Xs}var Zs={},ng;function bD(){if(ng)return Zs;ng=1,Object.defineProperty(Zs,"__esModule",{value:!0});const e=Ne(),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:s}=i,o=a==="maxProperties"?e.operators.GT:e.operators.LT;i.fail$data((0,e._)`Object.keys(${n}).length ${o} ${s}`)}};return Zs.default=r,Zs}var Qs={},ig;function kD(){if(ig)return Qs;ig=1,Object.defineProperty(Qs,"__esModule",{value:!0});const e=Nr(),t=Ne(),r=We(),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:s,schema:o,schemaCode:l,data:u,$data:c,it:f}=n,{opts:m}=f;if(!c&&o.length===0)return;const d=o.length>=m.loopRequired;if(f.allErrors?p():k(),m.strictRequired){const b=n.parentSchema.properties,{definedProperties:w}=n.it;for(const C of o)if((b==null?void 0:b[C])===void 0&&!w.has(C)){const h=f.schemaEnv.baseId+f.errSchemaPath,y=`required property "${C}" 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 o)(0,e.checkReportMissingProp)(n,b)}function k(){const b=s.let("missing");if(d||c){const w=s.let("valid",!0);n.block$data(w,()=>g(b,w)),n.ok(w)}else s.if((0,e.checkMissingProp)(n,o,b)),(0,e.reportMissingProp)(n,b),s.else()}function v(){s.forOf("prop",l,b=>{n.setParams({missingProperty:b}),s.if((0,e.noPropertyInData)(s,u,b,m.ownProperties),()=>n.error())})}function g(b,w){n.setParams({missingProperty:b}),s.forOf(b,l,()=>{s.assign(w,(0,e.propertyInData)(s,u,b,m.ownProperties)),s.if((0,t.not)(w),()=>{n.error(),s.break()})},t.nil)}}};return Qs.default=a,Qs}var eo={},ag;function wD(){if(ag)return eo;ag=1,Object.defineProperty(eo,"__esModule",{value:!0});const e=Ne(),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:s}=i,o=a==="maxItems"?e.operators.GT:e.operators.LT;i.fail$data((0,e._)`${n}.length ${o} ${s}`)}};return eo.default=r,eo}var to={},ro={},sg;function Md(){if(sg)return ro;sg=1,Object.defineProperty(ro,"__esModule",{value:!0});const e=u1();return e.code='require("ajv/dist/runtime/equal").default',ro.default=e,ro}var og;function xD(){if(og)return to;og=1,Object.defineProperty(to,"__esModule",{value:!0});const e=nl(),t=Ne(),r=We(),i=Md(),n={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:s,j:o}})=>(0,t.str)`must NOT have duplicate items (items ## ${o} and ${s} are identical)`,params:({params:{i:s,j:o}})=>(0,t._)`{i: ${s}, j: ${o}}`},code(s){const{gen:o,data:l,$data:u,schema:c,parentSchema:f,schemaCode:m,it:d}=s;if(!u&&!c)return;const p=o.let("valid"),k=f.items?(0,e.getSchemaTypes)(f.items):[];s.block$data(p,v,(0,t._)`${m} === false`),s.ok(p);function v(){const C=o.let("i",(0,t._)`${l}.length`),h=o.let("j");s.setParams({i:C,j:h}),o.assign(p,!0),o.if((0,t._)`${C} > 1`,()=>(g()?b:w)(C,h))}function g(){return k.length>0&&!k.some(C=>C==="object"||C==="array")}function b(C,h){const y=o.name("item"),S=(0,e.checkDataTypes)(k,y,d.opts.strictNumbers,e.DataType.Wrong),A=o.const("indices",(0,t._)`{}`);o.for((0,t._)`;${C}--;`,()=>{o.let(y,(0,t._)`${l}[${C}]`),o.if(S,(0,t._)`continue`),k.length>1&&o.if((0,t._)`typeof ${y} == "string"`,(0,t._)`${y} += "_"`),o.if((0,t._)`typeof ${A}[${y}] == "number"`,()=>{o.assign(h,(0,t._)`${A}[${y}]`),s.error(),o.assign(p,!1).break()}).code((0,t._)`${A}[${y}] = ${C}`)})}function w(C,h){const y=(0,r.useFunc)(o,i.default),S=o.name("outer");o.label(S).for((0,t._)`;${C}--;`,()=>o.for((0,t._)`${h} = ${C}; ${h}--;`,()=>o.if((0,t._)`${y}(${l}[${C}], ${l}[${h}])`,()=>{s.error(),o.assign(p,!1).break(S)})))}}};return to.default=n,to}var no={},lg;function SD(){if(lg)return no;lg=1,Object.defineProperty(no,"__esModule",{value:!0});const e=Ne(),t=We(),r=Md(),a={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:n})=>(0,e._)`{allowedValue: ${n}}`},code(n){const{gen:s,data:o,$data:l,schemaCode:u,schema:c}=n;l||c&&typeof c=="object"?n.fail$data((0,e._)`!${(0,t.useFunc)(s,r.default)}(${o}, ${u})`):n.fail((0,e._)`${c} !== ${o}`)}};return no.default=a,no}var io={},ug;function CD(){if(ug)return io;ug=1,Object.defineProperty(io,"__esModule",{value:!0});const e=Ne(),t=We(),r=Md(),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:s,data:o,$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)(s,r.default));let k;if(m||l)k=s.let("valid"),n.block$data(k,v);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const b=s.const("vSchema",c);k=(0,e.or)(...u.map((w,C)=>g(b,C)))}n.pass(k);function v(){s.assign(k,!1),s.forOf("v",c,b=>s.if((0,e._)`${p()}(${o}, ${b})`,()=>s.assign(k,!0).break()))}function g(b,w){const C=u[w];return typeof C=="object"&&C!==null?(0,e._)`${p()}(${o}, ${b}[${w}])`:(0,e._)`${o} === ${C}`}}};return io.default=a,io}var cg;function ED(){if(cg)return Ks;cg=1,Object.defineProperty(Ks,"__esModule",{value:!0});const e=pD(),t=hD(),r=yD(),i=vD(),a=bD(),n=kD(),s=wD(),o=xD(),l=SD(),u=CD(),c=[e.default,t.default,r.default,i.default,a.default,n.default,s.default,o.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},l.default,u.default];return Ks.default=c,Ks}var ao={},Ti={},fg;function f1(){if(fg)return Ti;fg=1,Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.validateAdditionalItems=void 0;const e=Ne(),t=We(),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:s,it:o}=n,{items:l}=s;if(!Array.isArray(l)){(0,t.checkStrictMode)(o,'"additionalItems" is ignored when "items" is not an array of schemas');return}a(n,l)}};function a(n,s){const{gen:o,schema:l,data:u,keyword:c,it:f}=n;f.items=!0;const m=o.const("len",(0,e._)`${u}.length`);if(l===!1)n.setParams({len:s.length}),n.pass((0,e._)`${m} <= ${s.length}`);else if(typeof l=="object"&&!(0,t.alwaysValidSchema)(f,l)){const p=o.var("valid",(0,e._)`${m} <= ${s.length}`);o.if((0,e.not)(p),()=>d(p)),n.ok(p)}function d(p){o.forRange("i",s.length,m,k=>{n.subschema({keyword:c,dataProp:k,dataPropType:t.Type.Num},p),f.allErrors||o.if((0,e.not)(p),()=>o.break())})}}return Ti.validateAdditionalItems=a,Ti.default=i,Ti}var so={},ji={},dg;function d1(){if(dg)return ji;dg=1,Object.defineProperty(ji,"__esModule",{value:!0}),ji.validateTuple=void 0;const e=Ne(),t=We(),r=Nr(),i={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(n){const{schema:s,it:o}=n;if(Array.isArray(s))return a(n,"additionalItems",s);o.items=!0,!(0,t.alwaysValidSchema)(o,s)&&n.ok((0,r.validateArray)(n))}};function a(n,s,o=n.schema){const{gen:l,parentSchema:u,data:c,keyword:f,it:m}=n;k(u),m.opts.unevaluated&&o.length&&m.items!==!0&&(m.items=t.mergeEvaluated.items(l,o.length,m.items));const d=l.name("valid"),p=l.const("len",(0,e._)`${c}.length`);o.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=o.length,C=w===v.minItems&&(w===v.maxItems||v[s]===!1);if(g.strictTuples&&!C){const h=`"${f}" is ${w}-tuple, but minItems or maxItems/${s} are not specified or different at path "${b}"`;(0,t.checkStrictMode)(m,h,g.strictTuples)}}}return ji.validateTuple=a,ji.default=i,ji}var mg;function AD(){if(mg)return so;mg=1,Object.defineProperty(so,"__esModule",{value:!0});const e=d1(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return so.default=t,so}var oo={},pg;function OD(){if(pg)return oo;pg=1,Object.defineProperty(oo,"__esModule",{value:!0});const e=Ne(),t=We(),r=Nr(),i=f1(),n={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:s}})=>(0,e.str)`must NOT have more than ${s} items`,params:({params:{len:s}})=>(0,e._)`{limit: ${s}}`},code(s){const{schema:o,parentSchema:l,it:u}=s,{prefixItems:c}=l;u.items=!0,!(0,t.alwaysValidSchema)(u,o)&&(c?(0,i.validateAdditionalItems)(s,c):s.ok((0,r.validateArray)(s)))}};return oo.default=n,oo}var lo={},hg;function _D(){if(hg)return lo;hg=1,Object.defineProperty(lo,"__esModule",{value:!0});const e=Ne(),t=We(),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:s,parentSchema:o,data:l,it:u}=a;let c,f;const{minContains:m,maxContains:d}=o;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,s)){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"),C=n.let("count",0);g(w,()=>n.if(w,()=>b(C)))}function g(w,C){n.forRange("i",0,p,h=>{a.subschema({keyword:"contains",dataProp:h,dataPropType:t.Type.Num,compositeRule:!0},w),C()})}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 lo.default=i,lo}var Zu={},gg;function PD(){return gg||(gg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Ne(),r=We(),i=Nr();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},
80
+ || ${A} === "boolean" || ${y} === null`).assign(_,(0,i._)`[${y}]`)}}}function m({gen:b,parentData:w,parentDataProperty:x},h){b.if((0,i._)`${w} !== undefined`,()=>b.assign((0,i._)`${w}[${x}]`,h))}function d(b,w,x,h=n.Correct){const y=h===n.Correct?i.operators.EQ:i.operators.NEQ;let S;switch(b){case"null":return(0,i._)`${w} ${y} null`;case"array":S=(0,i._)`Array.isArray(${w})`;break;case"object":S=(0,i._)`${w} && typeof ${w} == "object" && !Array.isArray(${w})`;break;case"integer":S=A((0,i._)`!(${w} % 1) && !isNaN(${w})`);break;case"number":S=A();break;default:return(0,i._)`typeof ${w} ${y} ${b}`}return h===n.Correct?S:(0,i.not)(S);function A(_=i.nil){return(0,i.and)((0,i._)`typeof ${w} == "number"`,_,x?(0,i._)`isFinite(${w})`:i.nil)}}Rt.checkDataType=d;function p(b,w,x,h){if(b.length===1)return d(b[0],w,x,h);let y;const S=(0,a.toHash)(b);if(S.array&&S.object){const A=(0,i._)`typeof ${w} != "object"`;y=S.null?A:(0,i._)`!${w} || ${A}`,delete S.null,delete S.array,delete S.object}else y=i.nil;S.number&&delete S.integer;for(const A in S)y=(0,i.and)(y,d(A,w,x,h));return y}Rt.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)}Rt.reportTypeError=v;function g(b){const{gen:w,data:x,schema:h}=b,y=(0,a.schemaRefOrVal)(b,h,"type");return{gen:w,keyword:"type",data:x,schema:h.type,schemaCode:y,schemaValue:y,parentSchema:h,params:{},it:b}}return Rt}var _a={},Lh;function sD(){if(Lh)return _a;Lh=1,Object.defineProperty(_a,"__esModule",{value:!0}),_a.assignDefaults=void 0;const e=Ne(),t=Ke();function r(a,n){const{properties:s,items:o}=a.schema;if(n==="object"&&s)for(const l in s)i(a,l,s[l].default);else n==="array"&&Array.isArray(o)&&o.forEach((l,u)=>i(a,u,l.default))}_a.assignDefaults=r;function i(a,n,s){const{gen:o,compositeRule:l,data:u,opts:c}=a;if(s===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} === ""`),o.if(m,(0,e._)`${f} = ${(0,e.stringify)(s)}`)}return _a}var wr={},it={},qh;function Nr(){if(qh)return it;qh=1,Object.defineProperty(it,"__esModule",{value:!0}),it.validateUnion=it.validateArray=it.usePattern=it.callValidateCode=it.schemaProperties=it.allSchemaProperties=it.noPropertyInData=it.propertyInData=it.isOwnProperty=it.hasPropFunc=it.reportMissingProp=it.checkMissingProp=it.checkReportMissingProp=void 0;const e=Ne(),t=Ke(),r=Vn(),i=Ke();function a(b,w){const{gen:x,data:h,it:y}=b;x.if(c(x,h,w,y.opts.ownProperties),()=>{b.setParams({missingProperty:(0,e._)`${w}`},!0),b.error()})}it.checkReportMissingProp=a;function n({gen:b,data:w,it:{opts:x}},h,y){return(0,e.or)(...h.map(S=>(0,e.and)(c(b,w,S,x.ownProperties),(0,e._)`${y} = ${S}`)))}it.checkMissingProp=n;function s(b,w){b.setParams({missingProperty:w},!0),b.error()}it.reportMissingProp=s;function o(b){return b.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}it.hasPropFunc=o;function l(b,w,x){return(0,e._)`${o(b)}.call(${w}, ${x})`}it.isOwnProperty=l;function u(b,w,x,h){const y=(0,e._)`${w}${(0,e.getProperty)(x)} !== undefined`;return h?(0,e._)`${y} && ${l(b,w,x)}`:y}it.propertyInData=u;function c(b,w,x,h){const y=(0,e._)`${w}${(0,e.getProperty)(x)} === undefined`;return h?(0,e.or)(y,(0,e.not)(l(b,w,x))):y}it.noPropertyInData=c;function f(b){return b?Object.keys(b).filter(w=>w!=="__proto__"):[]}it.allSchemaProperties=f;function m(b,w){return f(w).filter(x=>!(0,t.alwaysValidSchema)(b,w[x]))}it.schemaProperties=m;function d({schemaCode:b,data:w,it:{gen:x,topSchemaRef:h,schemaPath:y,errorPath:S},it:A},_,C,E){const O=E?(0,e._)`${b}, ${w}, ${h}${y}`:w,R=[[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&&R.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const T=(0,e._)`${O}, ${x.object(...R)}`;return C!==e.nil?(0,e._)`${_}.call(${C}, ${T})`:(0,e._)`${_}(${T})`}it.callValidateCode=d;const p=(0,e._)`new RegExp`;function k({gen:b,it:{opts:w}},x){const h=w.unicodeRegExp?"u":"",{regExp:y}=w.code,S=y(x,h);return b.scopeValue("pattern",{key:S.toString(),ref:S,code:(0,e._)`${y.code==="new RegExp"?p:(0,i.useFunc)(b,y)}(${x}, ${h})`})}it.usePattern=k;function v(b){const{gen:w,data:x,keyword:h,it:y}=b,S=w.name("valid");if(y.allErrors){const _=w.let("valid",!0);return A(()=>w.assign(_,!1)),_}return w.var(S,!0),A(()=>w.break()),S;function A(_){const C=w.const("len",(0,e._)`${x}.length`);w.forRange("i",0,C,E=>{b.subschema({keyword:h,dataProp:E,dataPropType:t.Type.Num},S),w.if((0,e.not)(S),_)})}}it.validateArray=v;function g(b){const{gen:w,schema:x,keyword:h,it:y}=b;if(!Array.isArray(x))throw new Error("ajv implementation error");if(x.some(C=>(0,t.alwaysValidSchema)(y,C))&&!y.opts.unevaluated)return;const A=w.let("valid",!1),_=w.name("_valid");w.block(()=>x.forEach((C,E)=>{const O=b.subschema({keyword:h,schemaProp:E,compositeRule:!0},_);w.assign(A,(0,e._)`${A} || ${_}`),b.mergeValidEvaluated(O,_)||w.if((0,e.not)(A))})),b.result(A,()=>b.reset(),()=>b.error(!0))}return it.validateUnion=g,it}var $h;function oD(){if($h)return wr;$h=1,Object.defineProperty(wr,"__esModule",{value:!0}),wr.validateKeywordUsage=wr.validSchemaType=wr.funcKeywordCode=wr.macroKeywordCode=void 0;const e=Ne(),t=Vn(),r=Nr(),i=Ml();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),x=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:x,compositeRule:!0},h),m.pass(h,()=>m.error(!0))}wr.macroKeywordCode=a;function n(m,d){var p;const{gen:k,keyword:v,schema:g,parentSchema:b,$data:w,it:x}=m;l(x,d);const h=!w&&d.compile?d.compile.call(x.self,g,b,x):d.validate,y=u(k,v,h),S=k.let("valid");m.block$data(S,A),m.ok((p=d.valid)!==null&&p!==void 0?p:S);function A(){if(d.errors===!1)E(),d.modifying&&s(m),O(()=>m.error());else{const R=d.async?_():C();d.modifying&&s(m),O(()=>o(m,R))}}function _(){const R=k.let("ruleErrs",null);return k.try(()=>E((0,e._)`await `),T=>k.assign(S,!1).if((0,e._)`${T} instanceof ${x.ValidationError}`,()=>k.assign(R,(0,e._)`${T}.errors`),()=>k.throw(T))),R}function C(){const R=(0,e._)`${y}.errors`;return k.assign(R,null),E(e.nil),R}function E(R=d.async?(0,e._)`await `:e.nil){const T=x.opts.passContext?t.default.this:t.default.self,D=!("compile"in d&&!w||d.schema===!1);k.assign(S,(0,e._)`${R}${(0,r.callValidateCode)(m,y,T,D)}`,d.modifying)}function O(R){var T;k.if((0,e.not)((T=d.valid)!==null&&T!==void 0?T:S),R)}}wr.funcKeywordCode=n;function s(m){const{gen:d,data:p,it:k}=m;d.if(k.parentData,()=>d.assign(p,(0,e._)`${k.parentData}[${k.parentDataProperty}]`))}function o(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")}wr.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 x=`keyword "${g}" value is invalid at path "${k}": `+p.errorsText(v.validateSchema.errors);if(d.validateSchema==="log")p.logger.error(x);else throw new Error(x)}}return wr.validateKeywordUsage=f,wr}var en={},zh;function lD(){if(zh)return en;zh=1,Object.defineProperty(en,"__esModule",{value:!0}),en.extendSubschemaMode=en.extendSubschemaData=en.getSubschema=void 0;const e=Ne(),t=Ke();function r(n,{keyword:s,schemaProp:o,schema:l,schemaPath:u,errSchemaPath:c,topSchemaRef:f}){if(s!==void 0&&l!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(s!==void 0){const m=n.schema[s];return o===void 0?{schema:m,schemaPath:(0,e._)`${n.schemaPath}${(0,e.getProperty)(s)}`,errSchemaPath:`${n.errSchemaPath}/${s}`}:{schema:m[o],schemaPath:(0,e._)`${n.schemaPath}${(0,e.getProperty)(s)}${(0,e.getProperty)(o)}`,errSchemaPath:`${n.errSchemaPath}/${s}/${(0,t.escapeFragment)(o)}`}}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')}en.getSubschema=r;function i(n,s,{dataProp:o,dataPropType:l,data:u,dataTypes:c,propertyName:f}){if(u!==void 0&&o!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:m}=s;if(o!==void 0){const{errorPath:p,dataPathArr:k,opts:v}=s,g=m.let("data",(0,e._)`${s.data}${(0,e.getProperty)(o)}`,!0);d(g),n.errorPath=(0,e.str)`${p}${(0,t.getErrorPath)(o,l,v.jsPropertySyntax)}`,n.parentDataProperty=(0,e._)`${o}`,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=s.dataLevel+1,n.dataTypes=[],s.definedProperties=new Set,n.parentData=s.data,n.dataNames=[...s.dataNames,p]}}en.extendSubschemaData=i;function a(n,{jtdDiscriminator:s,jtdMetadata:o,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=s,n.jtdMetadata=o}return en.extendSubschemaMode=a,en}var Ut={},Qu,Uh;function p1(){return Uh||(Uh=1,Qu=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 s=n[a];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r}),Qu}var ec={exports:{}},Bh;function uD(){if(Bh)return ec.exports;Bh=1;var e=ec.exports=function(i,a,n){typeof a=="function"&&(n=a,a={}),n=a.cb||n;var s=typeof n=="function"?n:n.pre||function(){},o=n.post||function(){};t(a,s,o,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,s,o,l,u,c,f,m){if(s&&typeof s=="object"&&!Array.isArray(s)){a(s,o,l,u,c,f,m);for(var d in s){var p=s[d];if(Array.isArray(p)){if(d in e.arrayKeywords)for(var k=0;k<p.length;k++)t(i,a,n,p[k],o+"/"+d+"/"+k,l,o,d,s,k)}else if(d in e.propsKeywords){if(p&&typeof p=="object")for(var v in p)t(i,a,n,p[v],o+"/"+d+"/"+r(v),l,o,d,s,v)}else(d in e.keywords||i.allKeys&&!(d in e.skipKeywords))&&t(i,a,n,p,o+"/"+d,l,o,d,s)}n(s,o,l,u,c,f,m)}}function r(i){return i.replace(/~/g,"~0").replace(/\//g,"~1")}return ec.exports}var Vh;function Ll(){if(Vh)return Ut;Vh=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.getSchemaRefs=Ut.resolveUrl=Ut.normalizeId=Ut._getFullPath=Ut.getFullPath=Ut.inlineRef=void 0;const e=Ke(),t=p1(),r=uD(),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?!s(k):v?o(k)<=v:!1}Ut.inlineRef=a;const n=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(k){for(const v in k){if(n.has(v))return!0;const g=k[v];if(Array.isArray(g)&&g.some(s)||typeof g=="object"&&s(g))return!0}return!1}function o(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+=o(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)}Ut.getFullPath=l;function u(k,v){return k.serialize(v).split("#")[0]+"#"}Ut._getFullPath=u;const c=/#\/?$/;function f(k){return k?k.replace(c,""):""}Ut.normalizeId=f;function m(k,v,g){return g=f(g),k.resolve(v,g)}Ut.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),x={"":w},h=l(b,w,!1),y={},S=new Set;return r(k,{allKeys:!0},(C,E,O,R)=>{if(R===void 0)return;const T=h+E;let D=x[R];typeof C[g]=="string"&&(D=L.call(this,C[g])),H.call(this,C.$anchor),H.call(this,C.$dynamicAnchor),x[E]=D;function L(Y){const Z=this.opts.uriResolver.resolve;if(Y=f(D?Z(D,Y):Y),S.has(Y))throw _(Y);S.add(Y);let P=this.refs[Y];return typeof P=="string"&&(P=this.refs[P]),typeof P=="object"?A(C,P.schema,Y):Y!==f(T)&&(Y[0]==="#"?(A(C,y[Y],Y),y[Y]=C):this.refs[Y]=T),Y}function H(Y){if(typeof Y=="string"){if(!d.test(Y))throw new Error(`invalid anchor "${Y}"`);L.call(this,`#${Y}`)}}}),y;function A(C,E,O){if(E!==void 0&&!t(C,E))throw _(O)}function _(C){return new Error(`reference "${C}" resolves to more than one schema`)}}return Ut.getSchemaRefs=p,Ut}var Hh;function ql(){if(Hh)return Zr;Hh=1,Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.getData=Zr.KeywordCxt=Zr.validateFunctionCode=void 0;const e=aD(),t=ol(),r=m1(),i=ol(),a=sD(),n=oD(),s=lD(),o=Ne(),l=Vn(),u=Ll(),c=Ke(),f=Ml();function m($){if(h($)&&(S($),x($))){v($);return}d($,()=>(0,e.topBoolOrEmptySchema)($))}Zr.validateFunctionCode=m;function d({gen:$,validateName:q,schema:J,schemaEnv:G,opts:ie},re){ie.code.es5?$.func(q,(0,o._)`${l.default.data}, ${l.default.valCxt}`,G.$async,()=>{$.code((0,o._)`"use strict"; ${b(J,ie)}`),k($,ie),$.code(re)}):$.func(q,(0,o._)`${l.default.data}, ${p(ie)}`,G.$async,()=>$.code(b(J,ie)).code(re))}function p($){return(0,o._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${$.dynamicRef?(0,o._)`, ${l.default.dynamicAnchors}={}`:o.nil}}={}`}function k($,q){$.if(l.default.valCxt,()=>{$.var(l.default.instancePath,(0,o._)`${l.default.valCxt}.${l.default.instancePath}`),$.var(l.default.parentData,(0,o._)`${l.default.valCxt}.${l.default.parentData}`),$.var(l.default.parentDataProperty,(0,o._)`${l.default.valCxt}.${l.default.parentDataProperty}`),$.var(l.default.rootData,(0,o._)`${l.default.valCxt}.${l.default.rootData}`),q.dynamicRef&&$.var(l.default.dynamicAnchors,(0,o._)`${l.default.valCxt}.${l.default.dynamicAnchors}`)},()=>{$.var(l.default.instancePath,(0,o._)`""`),$.var(l.default.parentData,(0,o._)`undefined`),$.var(l.default.parentDataProperty,(0,o._)`undefined`),$.var(l.default.rootData,l.default.data),q.dynamicRef&&$.var(l.default.dynamicAnchors,(0,o._)`{}`)})}function v($){const{schema:q,opts:J,gen:G}=$;d($,()=>{J.$comment&&q.$comment&&R($),C($),G.let(l.default.vErrors,null),G.let(l.default.errors,0),J.unevaluated&&g($),A($),T($)})}function g($){const{gen:q,validateName:J}=$;$.evaluated=q.const("evaluated",(0,o._)`${J}.evaluated`),q.if((0,o._)`${$.evaluated}.dynamicProps`,()=>q.assign((0,o._)`${$.evaluated}.props`,(0,o._)`undefined`)),q.if((0,o._)`${$.evaluated}.dynamicItems`,()=>q.assign((0,o._)`${$.evaluated}.items`,(0,o._)`undefined`))}function b($,q){const J=typeof $=="object"&&$[q.schemaId];return J&&(q.code.source||q.code.process)?(0,o._)`/*# sourceURL=${J} */`:o.nil}function w($,q){if(h($)&&(S($),x($))){y($,q);return}(0,e.boolOrEmptySchema)($,q)}function x({schema:$,self:q}){if(typeof $=="boolean")return!$;for(const J in $)if(q.RULES.all[J])return!0;return!1}function h($){return typeof $.schema!="boolean"}function y($,q){const{schema:J,gen:G,opts:ie}=$;ie.$comment&&J.$comment&&R($),E($),O($);const re=G.const("_errs",l.default.errors);A($,re),G.var(q,(0,o._)`${re} === ${l.default.errors}`)}function S($){(0,c.checkUnknownRules)($),_($)}function A($,q){if($.opts.jtd)return L($,[],!1,q);const J=(0,t.getSchemaTypes)($.schema),G=(0,t.coerceAndCheckDataType)($,J);L($,J,!G,q)}function _($){const{schema:q,errSchemaPath:J,opts:G,self:ie}=$;q.$ref&&G.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(q,ie.RULES)&&ie.logger.warn(`$ref: keywords ignored in schema at path "${J}"`)}function C($){const{schema:q,opts:J}=$;q.default!==void 0&&J.useDefaults&&J.strictSchema&&(0,c.checkStrictMode)($,"default is ignored in the schema root")}function E($){const q=$.schema[$.opts.schemaId];q&&($.baseId=(0,u.resolveUrl)($.opts.uriResolver,$.baseId,q))}function O($){if($.schema.$async&&!$.schemaEnv.$async)throw new Error("async schema in sync schema")}function R({gen:$,schemaEnv:q,schema:J,errSchemaPath:G,opts:ie}){const re=J.$comment;if(ie.$comment===!0)$.code((0,o._)`${l.default.self}.logger.log(${re})`);else if(typeof ie.$comment=="function"){const ue=(0,o.str)`${G}/$comment`,ye=$.scopeValue("root",{ref:q.root});$.code((0,o._)`${l.default.self}.opts.$comment(${re}, ${ue}, ${ye}.schema)`)}}function T($){const{gen:q,schemaEnv:J,validateName:G,ValidationError:ie,opts:re}=$;J.$async?q.if((0,o._)`${l.default.errors} === 0`,()=>q.return(l.default.data),()=>q.throw((0,o._)`new ${ie}(${l.default.vErrors})`)):(q.assign((0,o._)`${G}.errors`,l.default.vErrors),re.unevaluated&&D($),q.return((0,o._)`${l.default.errors} === 0`))}function D({gen:$,evaluated:q,props:J,items:G}){J instanceof o.Name&&$.assign((0,o._)`${q}.props`,J),G instanceof o.Name&&$.assign((0,o._)`${q}.items`,G)}function L($,q,J,G){const{gen:ie,schema:re,data:ue,allErrors:ye,opts:we,self:ke}=$,{RULES:Pe}=ke;if(re.$ref&&(we.ignoreKeywordsWithRef||!(0,c.schemaHasRulesButRef)(re,Pe))){ie.block(()=>V($,"$ref",Pe.all.$ref.definition));return}we.jtd||Y($,q),ie.block(()=>{for(const Ve of Pe.rules)de(Ve);de(Pe.post)});function de(Ve){(0,r.shouldUseGroup)(re,Ve)&&(Ve.type?(ie.if((0,i.checkDataType)(Ve.type,ue,we.strictNumbers)),H($,Ve),q.length===1&&q[0]===Ve.type&&J&&(ie.else(),(0,i.reportTypeError)($)),ie.endIf()):H($,Ve),ye||ie.if((0,o._)`${l.default.errors} === ${G||0}`))}}function H($,q){const{gen:J,schema:G,opts:{useDefaults:ie}}=$;ie&&(0,a.assignDefaults)($,q.type),J.block(()=>{for(const re of q.rules)(0,r.shouldUseRule)(G,re)&&V($,re.keyword,re.definition,q.type)})}function Y($,q){$.schemaEnv.meta||!$.opts.strictTypes||(Z($,q),$.opts.allowUnionTypes||P($,q),F($,$.dataTypes))}function Z($,q){if(q.length){if(!$.dataTypes.length){$.dataTypes=q;return}q.forEach(J=>{I($.dataTypes,J)||M($,`type "${J}" not allowed by context "${$.dataTypes.join(",")}"`)}),N($,q)}}function P($,q){q.length>1&&!(q.length===2&&q.includes("null"))&&M($,"use allowUnionTypes to allow union type keyword")}function F($,q){const J=$.self.RULES.all;for(const G in J){const ie=J[G];if(typeof ie=="object"&&(0,r.shouldUseRule)($.schema,ie)){const{type:re}=ie.definition;re.length&&!re.some(ue=>z(q,ue))&&M($,`missing type "${re.join(",")}" for keyword "${G}"`)}}}function z($,q){return $.includes(q)||q==="number"&&$.includes("integer")}function I($,q){return $.includes(q)||q==="integer"&&$.includes("number")}function N($,q){const J=[];for(const G of $.dataTypes)I(q,G)?J.push(G):q.includes("integer")&&G==="number"&&J.push("integer");$.dataTypes=J}function M($,q){const J=$.schemaEnv.baseId+$.errSchemaPath;q+=` at "${J}" (strictTypes)`,(0,c.checkStrictMode)($,q,$.opts.strictTypes)}class B{constructor(q,J,G){if((0,n.validateKeywordUsage)(q,J,G),this.gen=q.gen,this.allErrors=q.allErrors,this.keyword=G,this.data=q.data,this.schema=q.schema[G],this.$data=J.$data&&q.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,c.schemaRefOrVal)(q,this.schema,G,this.$data),this.schemaType=J.schemaType,this.parentSchema=q.schema,this.params={},this.it=q,this.def=J,this.$data)this.schemaCode=q.gen.const("vSchema",X(this.$data,q));else if(this.schemaCode=this.schemaValue,!(0,n.validSchemaType)(this.schema,J.schemaType,J.allowUndefined))throw new Error(`${G} value must be ${JSON.stringify(J.schemaType)}`);("code"in J?J.trackErrors:J.errors!==!1)&&(this.errsCount=q.gen.const("_errs",l.default.errors))}result(q,J,G){this.failResult((0,o.not)(q),J,G)}failResult(q,J,G){this.gen.if(q),G?G():this.error(),J?(this.gen.else(),J(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(q,J){this.failResult((0,o.not)(q),void 0,J)}fail(q){if(q===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(q),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(q){if(!this.$data)return this.fail(q);const{schemaCode:J}=this;this.fail((0,o._)`${J} !== undefined && (${(0,o.or)(this.invalid$data(),q)})`)}error(q,J,G){if(J){this.setParams(J),this._error(q,G),this.setParams({});return}this._error(q,G)}_error(q,J){(q?f.reportExtraError:f.reportError)(this,this.def.error,J)}$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(q){this.allErrors||this.gen.if(q)}setParams(q,J){J?Object.assign(this.params,q):this.params=q}block$data(q,J,G=o.nil){this.gen.block(()=>{this.check$data(q,G),J()})}check$data(q=o.nil,J=o.nil){if(!this.$data)return;const{gen:G,schemaCode:ie,schemaType:re,def:ue}=this;G.if((0,o.or)((0,o._)`${ie} === undefined`,J)),q!==o.nil&&G.assign(q,!0),(re.length||ue.validateSchema)&&(G.elseIf(this.invalid$data()),this.$dataError(),q!==o.nil&&G.assign(q,!1)),G.else()}invalid$data(){const{gen:q,schemaCode:J,schemaType:G,def:ie,it:re}=this;return(0,o.or)(ue(),ye());function ue(){if(G.length){if(!(J instanceof o.Name))throw new Error("ajv implementation error");const we=Array.isArray(G)?G:[G];return(0,o._)`${(0,i.checkDataTypes)(we,J,re.opts.strictNumbers,i.DataType.Wrong)}`}return o.nil}function ye(){if(ie.validateSchema){const we=q.scopeValue("validate$data",{ref:ie.validateSchema});return(0,o._)`!${we}(${J})`}return o.nil}}subschema(q,J){const G=(0,s.getSubschema)(this.it,q);(0,s.extendSubschemaData)(G,this.it,q),(0,s.extendSubschemaMode)(G,q);const ie={...this.it,...G,items:void 0,props:void 0};return w(ie,J),ie}mergeEvaluated(q,J){const{it:G,gen:ie}=this;G.opts.unevaluated&&(G.props!==!0&&q.props!==void 0&&(G.props=c.mergeEvaluated.props(ie,q.props,G.props,J)),G.items!==!0&&q.items!==void 0&&(G.items=c.mergeEvaluated.items(ie,q.items,G.items,J)))}mergeValidEvaluated(q,J){const{it:G,gen:ie}=this;if(G.opts.unevaluated&&(G.props!==!0||G.items!==!0))return ie.if(J,()=>this.mergeEvaluated(q,o.Name)),!0}}Zr.KeywordCxt=B;function V($,q,J,G){const ie=new B($,J,q);"code"in J?J.code(ie,G):ie.$data&&J.validate?(0,n.funcKeywordCode)(ie,J):"macro"in J?(0,n.macroKeywordCode)(ie,J):(J.compile||J.validate)&&(0,n.funcKeywordCode)(ie,J)}const W=/^\/(?:[^~]|~0|~1)*$/,K=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function X($,{dataLevel:q,dataNames:J,dataPathArr:G}){let ie,re;if($==="")return l.default.rootData;if($[0]==="/"){if(!W.test($))throw new Error(`Invalid JSON-pointer: ${$}`);ie=$,re=l.default.rootData}else{const ke=K.exec($);if(!ke)throw new Error(`Invalid JSON-pointer: ${$}`);const Pe=+ke[1];if(ie=ke[2],ie==="#"){if(Pe>=q)throw new Error(we("property/index",Pe));return G[q-Pe]}if(Pe>q)throw new Error(we("data",Pe));if(re=J[q-Pe],!ie)return re}let ue=re;const ye=ie.split("/");for(const ke of ye)ke&&(re=(0,o._)`${re}${(0,o.getProperty)((0,c.unescapeJsonPointer)(ke))}`,ue=(0,o._)`${ue} && ${re}`);return ue;function we(ke,Pe){return`Cannot access ${ke} ${Pe} levels up, current level is ${q}`}}return Zr.getData=X,Zr}var Bs={},Wh;function $d(){if(Wh)return Bs;Wh=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={},Kh;function $l(){if(Kh)return Vs;Kh=1,Object.defineProperty(Vs,"__esModule",{value:!0});const e=Ll();class t extends Error{constructor(i,a,n,s){super(s||`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 er={},Gh;function zd(){if(Gh)return er;Gh=1,Object.defineProperty(er,"__esModule",{value:!0}),er.resolveSchema=er.getCompilingSchema=er.resolveRef=er.compileSchema=er.SchemaEnv=void 0;const e=Ne(),t=$d(),r=Vn(),i=Ll(),a=Ke(),n=ql();class s{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={}}}er.SchemaEnv=s;function o(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:x}=this.opts.code,{ownProperties:h}=this.opts,y=new e.CodeGen(this.scope,{es5:w,lines:x,ownProperties:h});let S;v.$async&&(S=y.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const A=y.scopeName("validate");v.validateName=A;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: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 C;try{this._compilations.add(v),(0,n.validateFunctionCode)(_),y.optimize(this.opts.code.optimize);const E=y.toString();C=`${y.scopeRefs(r.default.scope)}return ${E}`,this.opts.code.process&&(C=this.opts.code.process(C,v));const R=new Function(`${r.default.self}`,`${r.default.scope}`,C)(this,this.scope.get());if(this.scope.value(A,{ref:R}),R.errors=null,R.schema=v.schema,R.schemaEnv=v,v.$async&&(R.$async=!0),this.opts.code.source===!0&&(R.source={validateName:A,validateCode:E,scopeValues:y._values}),this.opts.unevaluated){const{props:T,items:D}=_;R.evaluated={props:T instanceof e.Name?void 0:T,items:D instanceof e.Name?void 0:D,dynamicProps:T instanceof e.Name,dynamicItems:D instanceof e.Name},R.source&&(R.source.evaluated=(0,e.stringify)(R.evaluated))}return v.validate=R,v}catch(E){throw delete v.validate,delete v.validateName,C&&this.logger.error("Error compiling schema, function code:",C),E}finally{this._compilations.delete(v)}}er.compileSchema=o;function l(v,g,b){var w;b=(0,i.resolveUrl)(this.opts.uriResolver,g,b);const x=v.refs[b];if(x)return x;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:S}=this.opts;y&&(h=new s({schema:y,schemaId:S,root:v,baseId:g}))}if(h!==void 0)return v.refs[b]=u.call(this,h)}er.resolveRef=l;function u(v){return(0,i.inlineRef)(v.schema,this.opts.inlineRefs)?v.schema:v.validate?v:o.call(this,v)}function c(v){for(const g of this._compilations)if(f(g,v))return g}er.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 x=(0,i.getFullPath)(this.opts.uriResolver,v.baseId,void 0);if(Object.keys(v.schema).length>0&&w===x)return k.call(this,b,v);const h=(0,i.normalizeId)(w),y=this.refs[h]||this.schemas[h];if(typeof y=="string"){const S=d.call(this,v,y);return typeof(S==null?void 0:S.schema)!="object"?void 0:k.call(this,b,S)}if(typeof(y==null?void 0:y.schema)=="object"){if(y.validate||o.call(this,y),h===(0,i.normalizeId)(g)){const{schema:S}=y,{schemaId:A}=this.opts,_=S[A];return _&&(x=(0,i.resolveUrl)(this.opts.uriResolver,x,_)),new s({schema:S,schemaId:A,root:v,baseId:x})}return k.call(this,b,y)}}er.resolveSchema=d;const p=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function k(v,{baseId:g,schema:b,root:w}){var x;if(((x=v.fragment)===null||x===void 0?void 0:x[0])!=="/")return;for(const S of v.fragment.slice(1).split("/")){if(typeof b=="boolean")return;const A=b[(0,a.unescapeFragment)(S)];if(A===void 0)return;b=A;const _=typeof b=="object"&&b[this.opts.schemaId];!p.has(S)&&_&&(g=(0,i.resolveUrl)(this.opts.uriResolver,g,_))}let h;if(typeof b!="boolean"&&b.$ref&&!(0,a.schemaHasRulesButRef)(b,this.RULES)){const S=(0,i.resolveUrl)(this.opts.uriResolver,g,b.$ref);h=d.call(this,w,S)}const{schemaId:y}=this.opts;if(h=h||new s({schema:b,schemaId:y,root:w,baseId:g}),h.schema!==h.root.schema)return h}return er}const cD="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",fD="Meta-schema for $data reference (JSON AnySchema extension proposal)",dD="object",mD=["$data"],pD={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},hD=!1,gD={$id:cD,description:fD,type:dD,required:mD,properties:pD,additionalProperties:hD};var Hs={},Pa={exports:{}},tc,Jh;function h1(){if(Jh)return tc;Jh=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="",S=0,A=0;for(A=0;A<h.length;A++)if(S=h[A].charCodeAt(0),S!==48){if(!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";y+=h[A];break}for(A+=1;A<h.length;A++){if(S=h[A].charCodeAt(0),!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";y+=h[A]}return y}const s=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function o(h){return h.length=0,!0}function l(h,y,S){if(h.length){const A=n(h);if(A!=="")y.push(A);else return S.error=!0,!1;h.length=0}return!0}function u(h){let y=0;const S={error:!1,address:"",zone:""},A=[],_=[];let C=!1,E=!1,O=l;for(let R=0;R<h.length;R++){const T=h[R];if(!(T==="["||T==="]"))if(T===":"){if(C===!0&&(E=!0),!O(_,A,S))break;if(++y>7){S.error=!0;break}R>0&&h[R-1]===":"&&(C=!0),A.push(":");continue}else if(T==="%"){if(!O(_,A,S))break;O=o}else{_.push(T);continue}}return _.length&&(O===o?S.zone=_.join(""):E?A.push(_.join("")):A.push(n(_))),S.address=A.join(""),S}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 S=y.address,A=y.address;return y.zone&&(S+="%"+y.zone,A+="%25"+y.zone),{host:S,isIPV6:!0,escapedHost:A}}}function f(h,y){let S=0;for(let A=0;A<h.length;A++)h[A]===y&&S++;return S}function m(h){let y=h;const S=[];let A=-1,_=0;for(;_=y.length;){if(_===1){if(y===".")break;if(y==="/"){S.push("/");break}else{S.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]==="/")){S.push("/");break}}else if(_===3&&y==="/.."){S.length!==0&&S.pop(),S.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),S.length!==0&&S.pop();continue}}if((A=y.indexOf("/",1))===-1){S.push(y);break}else S.push(y.slice(0,A)),y=y.slice(A)}return S.join("")}const d={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},p=/[@/?#:]/g,k=/[@/?#]/g;function v(h,y){const S=y?k:p;return S.lastIndex=0,h.replace(S,A=>d[A])}function g(h,y=!1){if(h.indexOf("%")===-1)return h;let S="";for(let A=0;A<h.length;A++){if(h[A]==="%"&&A+2<h.length){const _=h.slice(A+1,A+3);if(r(_)){const C=_.toUpperCase(),E=String.fromCharCode(parseInt(C,16));y&&i(E)?S+=E:S+="%"+C,A+=2;continue}}S+=h[A]}return S}function b(h){let y="";for(let S=0;S<h.length;S++){if(h[S]==="%"&&S+2<h.length){const A=h.slice(S+1,S+3);if(r(A)){const _=A.toUpperCase(),C=String.fromCharCode(parseInt(_,16));C!=="."&&i(C)?y+=C:y+="%"+_,S+=2;continue}}a(h[S])?y+=h[S]:y+=escape(h[S])}return y}function w(h){let y="";for(let S=0;S<h.length;S++){if(h[S]==="%"&&S+2<h.length){const A=h.slice(S+1,S+3);if(r(A)){y+="%"+A.toUpperCase(),S+=2;continue}}y+=escape(h[S])}return y}function x(h){const y=[];if(h.userinfo!==void 0&&(y.push(h.userinfo),y.push("@")),h.host!==void 0){let S=unescape(h.host);if(!t(S)){const A=c(S);A.isIPV6===!0?S=`[${A.escapedHost}]`:S=v(S,!1)}y.push(S)}return(typeof h.port=="number"||typeof h.port=="string")&&(y.push(":"),y.push(String(h.port))),y.length?y.join(""):void 0}return tc={nonSimpleDomain:s,recomposeAuthority:x,reescapeHostDelimiters:v,normalizePercentEncoding:g,normalizePathEncoding:b,escapePreservingEscapes:w,removeDotSegments:m,isIPv4:t,isUUID:e,normalizeIPv6:c,stringArrayToHexStripped:n},tc}var rc,Yh;function yD(){if(Yh)return rc;Yh=1;const{isUUID:e}=h1(),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 s(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 o(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,S]=h.resourceName.split("?");h.path=y&&y!=="/"?y:void 0,h.query=S,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 S=h.path.match(t);if(S){const A=y.scheme||h.scheme||"urn";h.nid=S[1].toLowerCase(),h.nss=S[2];const _=`${A}:${y.nid||h.nid}`,C=x(_);h.path=void 0,C&&(h=C.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 S=y.scheme||h.scheme||"urn",A=h.nid.toLowerCase(),_=`${S}:${y.nid||A}`,C=x(_);C&&(h=C.serialize(h,y));const E=h,O=h.nss;return E.path=`${A||y.nid}:${O}`,y.skipEscape=!0,E}function f(h,y){const S=h;return S.uuid=S.nss,S.nss=void 0,!y.tolerant&&(!S.uuid||!e(S.uuid))&&(S.error=S.error||"UUID is not valid."),S}function m(h){const y=h;return y.nss=(h.uuid||"").toLowerCase(),y}const d={scheme:"http",domainHost:!0,parse:n,serialize:s},p={scheme:"https",domainHost:d.domainHost,parse:n,serialize:s},k={scheme:"ws",domainHost:!0,parse:o,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 x(h){return h&&(w[h]||w[h.toLowerCase()])||void 0}return rc={wsIsSecure:a,SCHEMES:w,isValidSchemeName:i,getSchemeHandler:x},rc}var Xh;function vD(){if(Xh)return Pa.exports;Xh=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:i,normalizePathEncoding:a,escapePreservingEscapes:n,reescapeHostDelimiters:s,isIPv4:o,nonSimpleDomain:l}=h1(),{SCHEMES:u,getSchemeHandler:c}=yD();function f(A,_){return typeof A=="string"?A=x(A,_):typeof A=="object"&&(A=w(k(A,_),_)),A}function m(A,_,C){const E=C?Object.assign({scheme:"null"},C):{scheme:"null"},O=d(w(A,E),w(_,E),E,!0);return E.skipEscape=!0,k(O,E)}function d(A,_,C,E){const O={};return E||(A=w(k(A,C),C),_=w(k(_,C),C)),C=C||{},!C.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):((A.userinfo!==void 0||A.host!==void 0||A.port!==void 0)&&!A.path?O.path="/"+_.path:A.path?O.path=A.path.slice(0,A.path.lastIndexOf("/")+1)+_.path:O.path=_.path,O.path=t(O.path)),O.query=_.query):(O.path=A.path,_.query!==void 0?O.query=_.query:O.query=A.query),O.userinfo=A.userinfo,O.host=A.host,O.port=A.port),O.scheme=A.scheme),O.fragment=_.fragment,O}function p(A,_,C){const E=y(A,C),O=y(_,C);return E!==void 0&&O!==void 0&&E.toLowerCase()===O.toLowerCase()}function k(A,_){const C={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:""},E=Object.assign({},_),O=[],R=c(E.scheme||C.scheme);R&&R.serialize&&R.serialize(C,E),C.path!==void 0&&(E.skipEscape?C.path=i(C.path):(C.path=n(C.path),C.scheme!==void 0&&(C.path=C.path.split("%3A").join(":")))),E.reference!=="suffix"&&C.scheme&&O.push(C.scheme,":");const T=r(C);if(T!==void 0&&(E.reference!=="suffix"&&O.push("//"),O.push(T),C.path&&C.path[0]!=="/"&&O.push("/")),C.path!==void 0){let D=C.path;!E.absolutePath&&(!R||!R.absolutePath)&&(D=t(D)),T===void 0&&D[0]==="/"&&D[1]==="/"&&(D="/%2F"+D.slice(2)),O.push(D)}return C.query!==void 0&&O.push("?",C.query),C.fragment!==void 0&&O.push("#",C.fragment),O.join("")}const v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function g(A,_){if(_[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,_){const C=Object.assign({},_),E={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let O=!1,R=!1;C.reference==="suffix"&&(C.scheme?A=C.scheme+":"+A:A="//"+A);const T=A.match(v);if(T){E.scheme=T[1],E.userinfo=T[3],E.host=T[4],E.port=parseInt(T[5],10),E.path=T[6]||"",E.query=T[7],E.fragment=T[8],isNaN(E.port)&&(E.port=T[5]);const D=g(E,T);if(D!==void 0&&(E.error=E.error||D,O=!0),E.host)if(o(E.host)===!1){const Y=e(E.host);E.host=Y.host.toLowerCase(),R=Y.isIPV6}else R=!0;E.scheme===void 0&&E.userinfo===void 0&&E.host===void 0&&E.port===void 0&&E.query===void 0&&!E.path?E.reference="same-document":E.scheme===void 0?E.reference="relative":E.fragment===void 0?E.reference="absolute":E.reference="uri",C.reference&&C.reference!=="suffix"&&C.reference!==E.reference&&(E.error=E.error||"URI is not a "+C.reference+" reference.");const L=c(C.scheme||E.scheme);if(!C.unicodeSupport&&(!L||!L.unicodeSupport)&&E.host&&(C.domainHost||L&&L.domainHost)&&R===!1&&l(E.host))try{E.host=URL.domainToASCII(E.host.toLowerCase())}catch(H){E.error=E.error||"Host's domain name can not be converted to ASCII: "+H}if((!L||L&&!L.skipNormalize)&&(A.indexOf("%")!==-1&&(E.scheme!==void 0&&(E.scheme=unescape(E.scheme)),E.host!==void 0&&(E.host=s(unescape(E.host),R))),E.path&&(E.path=a(E.path)),E.fragment))try{E.fragment=encodeURI(decodeURIComponent(E.fragment))}catch{E.error=E.error||"URI malformed"}L&&L.parse&&L.parse(E,C)}else E.error=E.error||"URI can not be parsed.";return{parsed:E,malformedAuthorityOrPort:O}}function w(A,_){return b(A,_).parsed}function x(A,_){return h(A,_).normalized}function h(A,_){const{parsed:C,malformedAuthorityOrPort:E}=b(A,_);return{normalized:E?A:k(C,_),malformedAuthorityOrPort:E}}function y(A,_){if(typeof A=="string"){const{normalized:C,malformedAuthorityOrPort:E}=h(A,_);return E?void 0:C}if(typeof A=="object")return k(A,_)}const S={SCHEMES:u,normalize:f,resolve:m,resolveComponent:d,equal:p,serialize:k,parse:w};return Pa.exports=S,Pa.exports.default=S,Pa.exports.fastUri=S,Pa.exports}var Zh;function bD(){if(Zh)return Hs;Zh=1,Object.defineProperty(Hs,"__esModule",{value:!0});const e=vD();return e.code='require("ajv/dist/runtime/uri").default',Hs.default=e,Hs}var Qh;function kD(){return Qh||(Qh=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=ql();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Ne();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=$d(),a=$l(),n=d1(),s=zd(),o=Ne(),l=Ll(),u=ol(),c=Ke(),f=gD,m=bD(),d=(P,F)=>new RegExp(P,F);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 F,z,I,N,M,B,V,W,K,X,$,q,J,G,ie,re,ue,ye,we,ke,Pe,de,Ve,st,ve;const Q=P.strict,ee=(F=P.code)===null||F===void 0?void 0:F.optimize,te=ee===!0||ee===void 0?1:ee||0,pe=(I=(z=P.code)===null||z===void 0?void 0:z.regExp)!==null&&I!==void 0?I:d,ce=(N=P.uriResolver)!==null&&N!==void 0?N:m.default;return{strictSchema:(B=(M=P.strictSchema)!==null&&M!==void 0?M:Q)!==null&&B!==void 0?B:!0,strictNumbers:(W=(V=P.strictNumbers)!==null&&V!==void 0?V:Q)!==null&&W!==void 0?W:!0,strictTypes:(X=(K=P.strictTypes)!==null&&K!==void 0?K:Q)!==null&&X!==void 0?X:"log",strictTuples:(q=($=P.strictTuples)!==null&&$!==void 0?$:Q)!==null&&q!==void 0?q:"log",strictRequired:(G=(J=P.strictRequired)!==null&&J!==void 0?J:Q)!==null&&G!==void 0?G:!1,code:P.code?{...P.code,optimize:te,regExp:pe}:{optimize:te,regExp:pe},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:(we=P.inlineRefs)!==null&&we!==void 0?we:!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:(Ve=P.validateFormats)!==null&&Ve!==void 0?Ve:!0,unicodeRegExp:(st=P.unicodeRegExp)!==null&&st!==void 0?st:!0,int32range:(ve=P.int32range)!==null&&ve!==void 0?ve:!0,uriResolver:ce}}class x{constructor(F={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,F=this.opts={...F,...w(F)};const{es5:z,lines:I}=this.opts.code;this.scope=new o.ValueScope({scope:{},prefixes:k,es5:z,lines:I}),this.logger=O(F.logger);const N=F.validateFormats;F.validateFormats=!1,this.RULES=(0,n.getRules)(),h.call(this,v,F,"NOT SUPPORTED"),h.call(this,g,F,"DEPRECATED","warn"),this._metaOpts=C.call(this),F.formats&&A.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),F.keywords&&_.call(this,F.keywords),typeof F.meta=="object"&&this.addMetaSchema(F.meta),S.call(this),F.validateFormats=N}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:F,meta:z,schemaId:I}=this.opts;let N=f;I==="id"&&(N={...f},N.id=N.$id,delete N.$id),z&&F&&this.addMetaSchema(N,N[I],!1)}defaultMeta(){const{meta:F,schemaId:z}=this.opts;return this.opts.defaultMeta=typeof F=="object"?F[z]||F:void 0}validate(F,z){let I;if(typeof F=="string"){if(I=this.getSchema(F),!I)throw new Error(`no schema with key or ref "${F}"`)}else I=this.compile(F);const N=I(z);return"$async"in I||(this.errors=I.errors),N}compile(F,z){const I=this._addSchema(F,z);return I.validate||this._compileSchemaEnv(I)}compileAsync(F,z){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:I}=this.opts;return N.call(this,F,z);async function N(X,$){await M.call(this,X.$schema);const q=this._addSchema(X,$);return q.validate||B.call(this,q)}async function M(X){X&&!this.getSchema(X)&&await N.call(this,{$ref:X},!0)}async function B(X){try{return this._compileSchemaEnv(X)}catch($){if(!($ instanceof a.default))throw $;return V.call(this,$),await W.call(this,$.missingSchema),B.call(this,X)}}function V({missingSchema:X,missingRef:$}){if(this.refs[X])throw new Error(`AnySchema ${X} is loaded but ${$} cannot be resolved`)}async function W(X){const $=await K.call(this,X);this.refs[X]||await M.call(this,$.$schema),this.refs[X]||this.addSchema($,X,z)}async function K(X){const $=this._loading[X];if($)return $;try{return await(this._loading[X]=I(X))}finally{delete this._loading[X]}}}addSchema(F,z,I,N=this.opts.validateSchema){if(Array.isArray(F)){for(const B of F)this.addSchema(B,void 0,I,N);return this}let M;if(typeof F=="object"){const{schemaId:B}=this.opts;if(M=F[B],M!==void 0&&typeof M!="string")throw new Error(`schema ${B} must be string`)}return z=(0,l.normalizeId)(z||M),this._checkUnique(z),this.schemas[z]=this._addSchema(F,I,z,N,!0),this}addMetaSchema(F,z,I=this.opts.validateSchema){return this.addSchema(F,z,!0,I),this}validateSchema(F,z){if(typeof F=="boolean")return!0;let I;if(I=F.$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 N=this.validate(I,F);if(!N&&z){const M="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(M);else throw new Error(M)}return N}getSchema(F){let z;for(;typeof(z=y.call(this,F))=="string";)F=z;if(z===void 0){const{schemaId:I}=this.opts,N=new s.SchemaEnv({schema:{},schemaId:I});if(z=s.resolveSchema.call(this,N,F),!z)return;this.refs[F]=z}return z.validate||this._compileSchemaEnv(z)}removeSchema(F){if(F instanceof RegExp)return this._removeAllSchemas(this.schemas,F),this._removeAllSchemas(this.refs,F),this;switch(typeof F){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const z=y.call(this,F);return typeof z=="object"&&this._cache.delete(z.schema),delete this.schemas[F],delete this.refs[F],this}case"object":{const z=F;this._cache.delete(z);let I=F[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(F){for(const z of F)this.addKeyword(z);return this}addKeyword(F,z){let I;if(typeof F=="string")I=F,typeof z=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),z.keyword=I);else if(typeof F=="object"&&z===void 0){if(z=F,I=z.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,z),!z)return(0,c.eachItem)(I,M=>D.call(this,M)),this;H.call(this,z);const N={...z,type:(0,u.getJSONTypes)(z.type),schemaType:(0,u.getJSONTypes)(z.schemaType)};return(0,c.eachItem)(I,N.type.length===0?M=>D.call(this,M,N):M=>N.type.forEach(B=>D.call(this,M,N,B))),this}getKeyword(F){const z=this.RULES.all[F];return typeof z=="object"?z.definition:!!z}removeKeyword(F){const{RULES:z}=this;delete z.keywords[F],delete z.all[F];for(const I of z.rules){const N=I.rules.findIndex(M=>M.keyword===F);N>=0&&I.rules.splice(N,1)}return this}addFormat(F,z){return typeof z=="string"&&(z=new RegExp(z)),this.formats[F]=z,this}errorsText(F=this.errors,{separator:z=", ",dataVar:I="data"}={}){return!F||F.length===0?"No errors":F.map(N=>`${I}${N.instancePath} ${N.message}`).reduce((N,M)=>N+z+M)}$dataMetaSchema(F,z){const I=this.RULES.all;F=JSON.parse(JSON.stringify(F));for(const N of z){const M=N.split("/").slice(1);let B=F;for(const V of M)B=B[V];for(const V in I){const W=I[V];if(typeof W!="object")continue;const{$data:K}=W.definition,X=B[V];K&&X&&(B[V]=Z(X))}}return F}_removeAllSchemas(F,z){for(const I in F){const N=F[I];(!z||z.test(I))&&(typeof N=="string"?delete F[I]:N&&!N.meta&&(this._cache.delete(N.schema),delete F[I]))}}_addSchema(F,z,I,N=this.opts.validateSchema,M=this.opts.addUsedSchema){let B;const{schemaId:V}=this.opts;if(typeof F=="object")B=F[V];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof F!="boolean")throw new Error("schema must be object or boolean")}let W=this._cache.get(F);if(W!==void 0)return W;I=(0,l.normalizeId)(B||I);const K=l.getSchemaRefs.call(this,F,I);return W=new s.SchemaEnv({schema:F,schemaId:V,meta:z,baseId:I,localRefs:K}),this._cache.set(W.schema,W),M&&!I.startsWith("#")&&(I&&this._checkUnique(I),this.refs[I]=W),N&&this.validateSchema(F,!0),W}_checkUnique(F){if(this.schemas[F]||this.refs[F])throw new Error(`schema with key or id "${F}" already exists`)}_compileSchemaEnv(F){if(F.meta?this._compileMetaSchema(F):s.compileSchema.call(this,F),!F.validate)throw new Error("ajv implementation error");return F.validate}_compileMetaSchema(F){const z=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,F)}finally{this.opts=z}}}x.ValidationError=i.default,x.MissingRefError=a.default,e.default=x;function h(P,F,z,I="error"){for(const N in P){const M=N;M in F&&this.logger[I](`${z}: option ${N}. ${P[M]}`)}}function y(P){return P=(0,l.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 F in P)this.addSchema(P[F],F)}function A(){for(const P in this.opts.formats){const F=this.opts.formats[P];F&&this.addFormat(P,F)}}function _(P){if(Array.isArray(P)){this.addVocabulary(P);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const F in P){const z=P[F];z.keyword||(z.keyword=F),this.addKeyword(z)}}function C(){const P={...this.opts};for(const F of p)delete P[F];return P}const E={log(){},warn(){},error(){}};function O(P){if(P===!1)return E;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 R=/^[a-z_$][a-z0-9_$:-]*$/i;function T(P,F){const{RULES:z}=this;if((0,c.eachItem)(P,I=>{if(z.keywords[I])throw new Error(`Keyword ${I} is already defined`);if(!R.test(I))throw new Error(`Keyword ${I} has invalid name`)}),!!F&&F.$data&&!("code"in F||"validate"in F))throw new Error('$data keyword must have "code" or "validate" function')}function D(P,F,z){var I;const N=F==null?void 0:F.post;if(z&&N)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:M}=this;let B=N?M.post:M.rules.find(({type:W})=>W===z);if(B||(B={type:z,rules:[]},M.rules.push(B)),M.keywords[P]=!0,!F)return;const V={keyword:P,definition:{...F,type:(0,u.getJSONTypes)(F.type),schemaType:(0,u.getJSONTypes)(F.schemaType)}};F.before?L.call(this,B,V,F.before):B.rules.push(V),M.all[P]=V,(I=F.implements)===null||I===void 0||I.forEach(W=>this.addKeyword(W))}function L(P,F,z){const I=P.rules.findIndex(N=>N.keyword===z);I>=0?P.rules.splice(I,0,F):(P.rules.push(F),this.logger.warn(`rule ${z} is not defined`))}function H(P){let{metaSchema:F}=P;F!==void 0&&(P.$data&&this.opts.$data&&(F=Z(F)),P.validateSchema=this.compile(F,!0))}const Y={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Z(P){return{anyOf:[P,Y]}}})(Gu)),Gu}var Ws={},Ks={},Gs={},eg;function wD(){if(eg)return Gs;eg=1,Object.defineProperty(Gs,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Gs.default=e,Gs}var gn={},tg;function xD(){if(tg)return gn;tg=1,Object.defineProperty(gn,"__esModule",{value:!0}),gn.callRef=gn.getValidate=void 0;const e=$l(),t=Nr(),r=Ne(),i=Vn(),a=zd(),n=Ke(),s={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 x();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 x(){if(p===b)return l(u,k,p,p.$async);const S=c.scopeValue("root",{ref:b});return l(u,(0,r._)`${S}.validate`,b,b.$async)}function h(S){const A=o(u,S);l(u,A,S,S.$async)}function y(S){const A=c.scopeValue("schema",v.code.source===!0?{ref:S,code:(0,r.stringify)(S)}:{ref:S}),_=c.name("valid"),C=u.subschema({schema:S,dataTypes:[],schemaPath:r.nil,topSchemaRef:A,errSchemaPath:f},_);u.mergeEvaluated(C),u.ok(_)}}};function o(u,c){const{gen:f}=u;return c.validate?f.scopeValue("validate",{ref:c.validate}):(0,r._)`${f.scopeValue("wrapper",{ref:c})}.validate`}gn.getValidate=o;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():x();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)(u,c,b)}`),y(c),k||d.assign(S,!0)},A=>{d.if((0,r._)`!(${A} instanceof ${p.ValidationError})`,()=>d.throw(A)),h(A),k||d.assign(S,!1)}),u.ok(S)}function x(){u.result((0,t.callValidateCode)(u,c,b),()=>y(c),()=>h(c))}function h(S){const A=(0,r._)`${S}.errors`;d.assign(i.default.vErrors,(0,r._)`${i.default.vErrors} === null ? ${A} : ${i.default.vErrors}.concat(${A})`),d.assign(i.default.errors,(0,r._)`${i.default.vErrors}.length`)}function y(S){var A;if(!p.opts.unevaluated)return;const _=(A=f==null?void 0:f.validate)===null||A===void 0?void 0:A.evaluated;if(p.props!==!0)if(_&&!_.dynamicProps)_.props!==void 0&&(p.props=n.mergeEvaluated.props(d,_.props,p.props));else{const C=d.var("props",(0,r._)`${S}.evaluated.props`);p.props=n.mergeEvaluated.props(d,C,p.props,r.Name)}if(p.items!==!0)if(_&&!_.dynamicItems)_.items!==void 0&&(p.items=n.mergeEvaluated.items(d,_.items,p.items));else{const C=d.var("items",(0,r._)`${S}.evaluated.items`);p.items=n.mergeEvaluated.items(d,C,p.items,r.Name)}}}return gn.callRef=l,gn.default=s,gn}var rg;function SD(){if(rg)return Ks;rg=1,Object.defineProperty(Ks,"__esModule",{value:!0});const e=wD(),t=xD(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Ks.default=r,Ks}var Js={},Ys={},ng;function CD(){if(ng)return Ys;ng=1,Object.defineProperty(Ys,"__esModule",{value:!0});const e=Ne(),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:s})=>(0,e.str)`must be ${r[n].okStr} ${s}`,params:({keyword:n,schemaCode:s})=>(0,e._)`{comparison: ${r[n].okStr}, limit: ${s}}`},a={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:i,code(n){const{keyword:s,data:o,schemaCode:l}=n;n.fail$data((0,e._)`${o} ${r[s].fail} ${l} || isNaN(${o})`)}};return Ys.default=a,Ys}var Xs={},ig;function ED(){if(ig)return Xs;ig=1,Object.defineProperty(Xs,"__esModule",{value:!0});const e=Ne(),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:s,it:o}=i,l=o.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._)`(${s} === 0 || (${u} = ${n}/${s}, ${c}))`)}};return Xs.default=r,Xs}var Zs={},Qs={},ag;function AD(){if(ag)return Qs;ag=1,Object.defineProperty(Qs,"__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 Qs.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Qs}var sg;function OD(){if(sg)return Zs;sg=1,Object.defineProperty(Zs,"__esModule",{value:!0});const e=Ne(),t=Ke(),r=AD(),a={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:s}){const o=n==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${s} characters`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:s,data:o,schemaCode:l,it:u}=n,c=s==="maxLength"?e.operators.GT:e.operators.LT,f=u.opts.unicode===!1?(0,e._)`${o}.length`:(0,e._)`${(0,t.useFunc)(n.gen,r.default)}(${o})`;n.fail$data((0,e._)`${f} ${c} ${l}`)}};return Zs.default=a,Zs}var eo={},og;function _D(){if(og)return eo;og=1,Object.defineProperty(eo,"__esModule",{value:!0});const e=Nr(),t=Ke(),r=Ne(),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:s,data:o,$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)(s,d),k=s.let("valid");s.try(()=>s.assign(k,(0,r._)`${p}(${c}, ${m}).test(${o})`),()=>s.assign(k,!1)),n.fail$data((0,r._)`!${k}`)}else{const d=(0,e.usePattern)(n,u);n.fail$data((0,r._)`!${d}.test(${o})`)}}};return eo.default=a,eo}var to={},lg;function PD(){if(lg)return to;lg=1,Object.defineProperty(to,"__esModule",{value:!0});const e=Ne(),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:s}=i,o=a==="maxProperties"?e.operators.GT:e.operators.LT;i.fail$data((0,e._)`Object.keys(${n}).length ${o} ${s}`)}};return to.default=r,to}var ro={},ug;function ID(){if(ug)return ro;ug=1,Object.defineProperty(ro,"__esModule",{value:!0});const e=Nr(),t=Ne(),r=Ke(),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:s,schema:o,schemaCode:l,data:u,$data:c,it:f}=n,{opts:m}=f;if(!c&&o.length===0)return;const d=o.length>=m.loopRequired;if(f.allErrors?p():k(),m.strictRequired){const b=n.parentSchema.properties,{definedProperties:w}=n.it;for(const x of o)if((b==null?void 0:b[x])===void 0&&!w.has(x)){const h=f.schemaEnv.baseId+f.errSchemaPath,y=`required property "${x}" 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 o)(0,e.checkReportMissingProp)(n,b)}function k(){const b=s.let("missing");if(d||c){const w=s.let("valid",!0);n.block$data(w,()=>g(b,w)),n.ok(w)}else s.if((0,e.checkMissingProp)(n,o,b)),(0,e.reportMissingProp)(n,b),s.else()}function v(){s.forOf("prop",l,b=>{n.setParams({missingProperty:b}),s.if((0,e.noPropertyInData)(s,u,b,m.ownProperties),()=>n.error())})}function g(b,w){n.setParams({missingProperty:b}),s.forOf(b,l,()=>{s.assign(w,(0,e.propertyInData)(s,u,b,m.ownProperties)),s.if((0,t.not)(w),()=>{n.error(),s.break()})},t.nil)}}};return ro.default=a,ro}var no={},cg;function TD(){if(cg)return no;cg=1,Object.defineProperty(no,"__esModule",{value:!0});const e=Ne(),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:s}=i,o=a==="maxItems"?e.operators.GT:e.operators.LT;i.fail$data((0,e._)`${n}.length ${o} ${s}`)}};return no.default=r,no}var io={},ao={},fg;function Ud(){if(fg)return ao;fg=1,Object.defineProperty(ao,"__esModule",{value:!0});const e=p1();return e.code='require("ajv/dist/runtime/equal").default',ao.default=e,ao}var dg;function jD(){if(dg)return io;dg=1,Object.defineProperty(io,"__esModule",{value:!0});const e=ol(),t=Ne(),r=Ke(),i=Ud(),n={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:s,j:o}})=>(0,t.str)`must NOT have duplicate items (items ## ${o} and ${s} are identical)`,params:({params:{i:s,j:o}})=>(0,t._)`{i: ${s}, j: ${o}}`},code(s){const{gen:o,data:l,$data:u,schema:c,parentSchema:f,schemaCode:m,it:d}=s;if(!u&&!c)return;const p=o.let("valid"),k=f.items?(0,e.getSchemaTypes)(f.items):[];s.block$data(p,v,(0,t._)`${m} === false`),s.ok(p);function v(){const x=o.let("i",(0,t._)`${l}.length`),h=o.let("j");s.setParams({i:x,j:h}),o.assign(p,!0),o.if((0,t._)`${x} > 1`,()=>(g()?b:w)(x,h))}function g(){return k.length>0&&!k.some(x=>x==="object"||x==="array")}function b(x,h){const y=o.name("item"),S=(0,e.checkDataTypes)(k,y,d.opts.strictNumbers,e.DataType.Wrong),A=o.const("indices",(0,t._)`{}`);o.for((0,t._)`;${x}--;`,()=>{o.let(y,(0,t._)`${l}[${x}]`),o.if(S,(0,t._)`continue`),k.length>1&&o.if((0,t._)`typeof ${y} == "string"`,(0,t._)`${y} += "_"`),o.if((0,t._)`typeof ${A}[${y}] == "number"`,()=>{o.assign(h,(0,t._)`${A}[${y}]`),s.error(),o.assign(p,!1).break()}).code((0,t._)`${A}[${y}] = ${x}`)})}function w(x,h){const y=(0,r.useFunc)(o,i.default),S=o.name("outer");o.label(S).for((0,t._)`;${x}--;`,()=>o.for((0,t._)`${h} = ${x}; ${h}--;`,()=>o.if((0,t._)`${y}(${l}[${x}], ${l}[${h}])`,()=>{s.error(),o.assign(p,!1).break(S)})))}}};return io.default=n,io}var so={},mg;function RD(){if(mg)return so;mg=1,Object.defineProperty(so,"__esModule",{value:!0});const e=Ne(),t=Ke(),r=Ud(),a={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:n})=>(0,e._)`{allowedValue: ${n}}`},code(n){const{gen:s,data:o,$data:l,schemaCode:u,schema:c}=n;l||c&&typeof c=="object"?n.fail$data((0,e._)`!${(0,t.useFunc)(s,r.default)}(${o}, ${u})`):n.fail((0,e._)`${c} !== ${o}`)}};return so.default=a,so}var oo={},pg;function ND(){if(pg)return oo;pg=1,Object.defineProperty(oo,"__esModule",{value:!0});const e=Ne(),t=Ke(),r=Ud(),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:s,data:o,$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)(s,r.default));let k;if(m||l)k=s.let("valid"),n.block$data(k,v);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const b=s.const("vSchema",c);k=(0,e.or)(...u.map((w,x)=>g(b,x)))}n.pass(k);function v(){s.assign(k,!1),s.forOf("v",c,b=>s.if((0,e._)`${p()}(${o}, ${b})`,()=>s.assign(k,!0).break()))}function g(b,w){const x=u[w];return typeof x=="object"&&x!==null?(0,e._)`${p()}(${o}, ${b}[${w}])`:(0,e._)`${o} === ${x}`}}};return oo.default=a,oo}var hg;function FD(){if(hg)return Js;hg=1,Object.defineProperty(Js,"__esModule",{value:!0});const e=CD(),t=ED(),r=OD(),i=_D(),a=PD(),n=ID(),s=TD(),o=jD(),l=RD(),u=ND(),c=[e.default,t.default,r.default,i.default,a.default,n.default,s.default,o.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},l.default,u.default];return Js.default=c,Js}var lo={},Ri={},gg;function g1(){if(gg)return Ri;gg=1,Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.validateAdditionalItems=void 0;const e=Ne(),t=Ke(),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:s,it:o}=n,{items:l}=s;if(!Array.isArray(l)){(0,t.checkStrictMode)(o,'"additionalItems" is ignored when "items" is not an array of schemas');return}a(n,l)}};function a(n,s){const{gen:o,schema:l,data:u,keyword:c,it:f}=n;f.items=!0;const m=o.const("len",(0,e._)`${u}.length`);if(l===!1)n.setParams({len:s.length}),n.pass((0,e._)`${m} <= ${s.length}`);else if(typeof l=="object"&&!(0,t.alwaysValidSchema)(f,l)){const p=o.var("valid",(0,e._)`${m} <= ${s.length}`);o.if((0,e.not)(p),()=>d(p)),n.ok(p)}function d(p){o.forRange("i",s.length,m,k=>{n.subschema({keyword:c,dataProp:k,dataPropType:t.Type.Num},p),f.allErrors||o.if((0,e.not)(p),()=>o.break())})}}return Ri.validateAdditionalItems=a,Ri.default=i,Ri}var uo={},Ni={},yg;function y1(){if(yg)return Ni;yg=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.validateTuple=void 0;const e=Ne(),t=Ke(),r=Nr(),i={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(n){const{schema:s,it:o}=n;if(Array.isArray(s))return a(n,"additionalItems",s);o.items=!0,!(0,t.alwaysValidSchema)(o,s)&&n.ok((0,r.validateArray)(n))}};function a(n,s,o=n.schema){const{gen:l,parentSchema:u,data:c,keyword:f,it:m}=n;k(u),m.opts.unevaluated&&o.length&&m.items!==!0&&(m.items=t.mergeEvaluated.items(l,o.length,m.items));const d=l.name("valid"),p=l.const("len",(0,e._)`${c}.length`);o.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=o.length,x=w===v.minItems&&(w===v.maxItems||v[s]===!1);if(g.strictTuples&&!x){const h=`"${f}" is ${w}-tuple, but minItems or maxItems/${s} are not specified or different at path "${b}"`;(0,t.checkStrictMode)(m,h,g.strictTuples)}}}return Ni.validateTuple=a,Ni.default=i,Ni}var vg;function DD(){if(vg)return uo;vg=1,Object.defineProperty(uo,"__esModule",{value:!0});const e=y1(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return uo.default=t,uo}var co={},bg;function MD(){if(bg)return co;bg=1,Object.defineProperty(co,"__esModule",{value:!0});const e=Ne(),t=Ke(),r=Nr(),i=g1(),n={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:s}})=>(0,e.str)`must NOT have more than ${s} items`,params:({params:{len:s}})=>(0,e._)`{limit: ${s}}`},code(s){const{schema:o,parentSchema:l,it:u}=s,{prefixItems:c}=l;u.items=!0,!(0,t.alwaysValidSchema)(u,o)&&(c?(0,i.validateAdditionalItems)(s,c):s.ok((0,r.validateArray)(s)))}};return co.default=n,co}var fo={},kg;function LD(){if(kg)return fo;kg=1,Object.defineProperty(fo,"__esModule",{value:!0});const e=Ne(),t=Ke(),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:s,parentSchema:o,data:l,it:u}=a;let c,f;const{minContains:m,maxContains:d}=o;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,s)){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"),x=n.let("count",0);g(w,()=>n.if(w,()=>b(x)))}function g(w,x){n.forRange("i",0,p,h=>{a.subschema({keyword:"contains",dataProp:h,dataPropType:t.Type.Num,compositeRule:!0},w),x()})}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 fo.default=i,fo}var nc={},wg;function qD(){return wg||(wg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Ne(),r=Ke(),i=Nr();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},
81
81
  missingProperty: ${f},
82
82
  depsCount: ${u},
83
- deps: ${c}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[u,c]=n(l);s(l,u),o(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 s(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=s;function o(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=o,e.default=a})(Zu)),Zu}var uo={},yg;function ID(){if(yg)return uo;yg=1,Object.defineProperty(uo,"__esModule",{value:!0});const e=Ne(),t=We(),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:s,data:o,it:l}=a;if((0,t.alwaysValidSchema)(l,s))return;const u=n.name("valid");n.forIn("key",o,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 uo.default=i,uo}var co={},vg;function m1(){if(vg)return co;vg=1,Object.defineProperty(co,"__esModule",{value:!0});const e=Nr(),t=Ne(),r=Un(),i=We(),n={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:s})=>(0,t._)`{additionalProperty: ${s.additionalProperty}}`},code(s){const{gen:o,schema:l,parentSchema:u,data:c,errsCount:f,it:m}=s;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(),s.ok((0,t._)`${f} === ${r.default.errors}`);function g(){o.forIn("key",c,y=>{!k.length&&!v.length?C(y):o.if(b(y),()=>C(y))})}function b(y){let S;if(k.length>8){const A=(0,i.schemaRefOrVal)(m,u.properties,"properties");S=(0,e.isOwnProperty)(o,A,y)}else k.length?S=(0,t.or)(...k.map(A=>(0,t._)`${y} === ${A}`)):S=t.nil;return v.length&&(S=(0,t.or)(S,...v.map(A=>(0,t._)`${(0,e.usePattern)(s,A)}.test(${y})`))),(0,t.not)(S)}function w(y){o.code((0,t._)`delete ${c}[${y}]`)}function C(y){if(p.removeAdditional==="all"||p.removeAdditional&&l===!1){w(y);return}if(l===!1){s.setParams({additionalProperty:y}),s.error(),d||o.break();return}if(typeof l=="object"&&!(0,i.alwaysValidSchema)(m,l)){const S=o.name("valid");p.removeAdditional==="failing"?(h(y,S,!1),o.if((0,t.not)(S),()=>{s.reset(),w(y)})):(h(y,S),d||o.if((0,t.not)(S),()=>o.break()))}}function h(y,S,A){const _={keyword:"additionalProperties",dataProp:y,dataPropType:i.Type.Str};A===!1&&Object.assign(_,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(_,S)}}};return co.default=n,co}var fo={},bg;function TD(){if(bg)return fo;bg=1,Object.defineProperty(fo,"__esModule",{value:!0});const e=Nl(),t=Nr(),r=We(),i=m1(),a={keyword:"properties",type:"object",schemaType:"object",code(n){const{gen:s,schema:o,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)(o);for(const v of f)c.definedProperties.add(v);c.opts.unevaluated&&f.length&&c.props!==!0&&(c.props=r.mergeEvaluated.props(s,(0,r.toHash)(f),c.props));const m=f.filter(v=>!(0,r.alwaysValidSchema)(c,o[v]));if(m.length===0)return;const d=s.name("valid");for(const v of m)p(v)?k(v):(s.if((0,t.propertyInData)(s,u,v,c.opts.ownProperties)),k(v),c.allErrors||s.else().var(d,!0),s.endIf()),n.it.definedProperties.add(v),n.ok(d);function p(v){return c.opts.useDefaults&&!c.compositeRule&&o[v].default!==void 0}function k(v){n.subschema({keyword:"properties",schemaProp:v,dataProp:v},d)}}};return fo.default=a,fo}var mo={},kg;function jD(){if(kg)return mo;kg=1,Object.defineProperty(mo,"__esModule",{value:!0});const e=Nr(),t=Ne(),r=We(),i=We(),a={keyword:"patternProperties",type:"object",schemaType:"object",code(n){const{gen:s,schema:o,data:l,parentSchema:u,it:c}=n,{opts:f}=c,m=(0,e.allSchemaProperties)(o),d=m.filter(C=>(0,r.alwaysValidSchema)(c,o[C]));if(m.length===0||d.length===m.length&&(!c.opts.unevaluated||c.props===!0))return;const p=f.strictSchema&&!f.allowMatchingProperties&&u.properties,k=s.name("valid");c.props!==!0&&!(c.props instanceof t.Name)&&(c.props=(0,i.evaluatedPropsToName)(s,c.props));const{props:v}=c;g();function g(){for(const C of m)p&&b(C),c.allErrors?w(C):(s.var(k,!0),w(C),s.if(k))}function b(C){for(const h in p)new RegExp(C).test(h)&&(0,r.checkStrictMode)(c,`property ${h} matches pattern ${C} (use allowMatchingProperties)`)}function w(C){s.forIn("key",l,h=>{s.if((0,t._)`${(0,e.usePattern)(n,C)}.test(${h})`,()=>{const y=d.includes(C);y||n.subschema({keyword:"patternProperties",schemaProp:C,dataProp:h,dataPropType:i.Type.Str},k),c.opts.unevaluated&&v!==!0?s.assign((0,t._)`${v}[${h}]`,!0):!y&&!c.allErrors&&s.if((0,t.not)(k),()=>s.break())})})}}};return mo.default=a,mo}var po={},wg;function RD(){if(wg)return po;wg=1,Object.defineProperty(po,"__esModule",{value:!0});const e=We(),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 s=i.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),r.failResult(s,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return po.default=t,po}var ho={},xg;function ND(){if(xg)return ho;xg=1,Object.defineProperty(ho,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Nr().validateUnion,error:{message:"must match a schema in anyOf"}};return ho.default=t,ho}var go={},Sg;function FD(){if(Sg)return go;Sg=1,Object.defineProperty(go,"__esModule",{value:!0});const e=Ne(),t=We(),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:s,parentSchema:o,it:l}=a;if(!Array.isArray(s))throw new Error("ajv implementation error");if(l.opts.discriminator&&o.discriminator)return;const u=s,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 go.default=i,go}var yo={},Cg;function DD(){if(Cg)return yo;Cg=1,Object.defineProperty(yo,"__esModule",{value:!0});const e=We(),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 s=i.name("valid");a.forEach((o,l)=>{if((0,e.alwaysValidSchema)(n,o))return;const u=r.subschema({keyword:"allOf",schemaProp:l},s);r.ok(s),r.mergeEvaluated(u)})}};return yo.default=t,yo}var vo={},Eg;function MD(){if(Eg)return vo;Eg=1,Object.defineProperty(vo,"__esModule",{value:!0});const e=Ne(),t=We(),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:s,parentSchema:o,it:l}=n;o.then===void 0&&o.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=s.let("valid",!0),m=s.name("_valid");if(d(),n.reset(),u&&c){const k=s.let("ifClause");n.setParams({ifClause:k}),s.if(m,p("then",k),p("else",k))}else u?s.if(m,p("then")):s.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);s.assign(f,m),n.mergeValidEvaluated(g,f),v?s.assign(v,(0,e._)`${k}`):n.setParams({ifClause:k})}}}};function a(n,s){const o=n.schema[s];return o!==void 0&&!(0,t.alwaysValidSchema)(n,o)}return vo.default=i,vo}var bo={},Ag;function LD(){if(Ag)return bo;Ag=1,Object.defineProperty(bo,"__esModule",{value:!0});const e=We(),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 bo.default=t,bo}var Og;function qD(){if(Og)return ao;Og=1,Object.defineProperty(ao,"__esModule",{value:!0});const e=f1(),t=AD(),r=d1(),i=OD(),a=_D(),n=PD(),s=ID(),o=m1(),l=TD(),u=jD(),c=RD(),f=ND(),m=FD(),d=DD(),p=MD(),k=LD();function v(g=!1){const b=[c.default,f.default,m.default,d.default,p.default,k.default,s.default,o.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 ao.default=v,ao}var ko={},wo={},_g;function $D(){if(_g)return wo;_g=1,Object.defineProperty(wo,"__esModule",{value:!0});const e=Ne(),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:s,$data:o,schema:l,schemaCode:u,it:c}=i,{opts:f,errSchemaPath:m,schemaEnv:d,self:p}=c;if(!f.validateFormats)return;o?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"),C=n.let("format");n.if((0,e._)`typeof ${b} == "object" && !(${b} instanceof RegExp)`,()=>n.assign(w,(0,e._)`${b}.type || "string"`).assign(C,(0,e._)`${b}.validate`),()=>n.assign(w,(0,e._)`"string"`).assign(C,b)),i.fail$data((0,e.or)(h(),y()));function h(){return f.strictSchema===!1?e.nil:(0,e._)`${u} && !${C}`}function y(){const S=d.$async?(0,e._)`(${b}.async ? await ${C}(${s}) : ${C}(${s}))`:(0,e._)`${C}(${s})`,A=(0,e._)`(typeof ${C} == "function" ? ${S} : ${C}.test(${s}))`;return(0,e._)`${C} && ${C} !== true && ${w} === ${a} && !${A}`}}function v(){const g=p.formats[l];if(!g){h();return}if(g===!0)return;const[b,w,C]=y(g);b===a&&i.pass(S());function h(){if(f.strictSchema===!1){p.logger.warn(A());return}throw new Error(A());function A(){return`unknown format "${l}" ignored in schema at path "${m}"`}}function y(A){const _=A instanceof RegExp?(0,e.regexpCode)(A):f.code.formats?(0,e._)`${f.code.formats}${(0,e.getProperty)(l)}`:void 0,x=n.scopeValue("formats",{key:l,ref:A,code:_});return typeof A=="object"&&!(A instanceof RegExp)?[A.type||"string",A.validate,(0,e._)`${x}.validate`]:["string",A,x]}function S(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!d.$async)throw new Error("async format in sync schema");return(0,e._)`await ${C}(${s})`}return typeof w=="function"?(0,e._)`${C}(${s})`:(0,e._)`${C}.test(${s})`}}}};return wo.default=r,wo}var Pg;function zD(){if(Pg)return ko;Pg=1,Object.defineProperty(ko,"__esModule",{value:!0});const t=[$D().default];return ko.default=t,ko}var Zn={},Ig;function UD(){return Ig||(Ig=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.contentVocabulary=Zn.metadataVocabulary=void 0,Zn.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Zn.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Zn}var Tg;function BD(){if(Tg)return Bs;Tg=1,Object.defineProperty(Bs,"__esModule",{value:!0});const e=mD(),t=ED(),r=qD(),i=zD(),a=UD(),n=[e.default,t.default,(0,r.default)(),i.default,a.metadataVocabulary,a.contentVocabulary];return Bs.default=n,Bs}var xo={},_a={},jg;function VD(){if(jg)return _a;jg=1,Object.defineProperty(_a,"__esModule",{value:!0}),_a.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(_a.DiscrError=e={})),_a}var Rg;function HD(){if(Rg)return xo;Rg=1,Object.defineProperty(xo,"__esModule",{value:!0});const e=Ne(),t=VD(),r=Dd(),i=Fl(),a=We(),s={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:o,tagName:l}})=>o===t.DiscrError.Tag?`tag "${l}" must be string`:`value of tag "${l}" must be in oneOf`,params:({params:{discrError:o,tag:l,tagName:u}})=>(0,e._)`{error: ${o}, tag: ${u}, tagValue: ${l}}`},code(o){const{gen:l,data:u,schema:c,parentSchema:f,it:m}=o,{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(),()=>o.error(!1,{discrError:t.DiscrError.Tag,tag:v,tagName:p})),o.ok(k);function g(){const C=w();l.if(!1);for(const h in C)l.elseIf((0,e._)`${v} === ${h}`),l.assign(k,b(C[h]));l.else(),o.error(!1,{discrError:t.DiscrError.Mapping,tag:v,tagName:p}),l.endIf()}function b(C){const h=l.name("valid"),y=o.subschema({keyword:"oneOf",schemaProp:C},h);return o.mergeEvaluated(y,e.Name),h}function w(){var C;const h={},y=A(f);let S=!0;for(let E=0;E<d.length;E++){let O=d[E];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 R=(C=O==null?void 0:O.properties)===null||C===void 0?void 0:C[p];if(typeof R!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${p}"`);S=S&&(y||A(O)),_(R,E)}if(!S)throw new Error(`discriminator: "${p}" must be required`);return h;function A({required:E}){return Array.isArray(E)&&E.includes(p)}function _(E,O){if(E.const)x(E.const,O);else if(E.enum)for(const R of E.enum)x(R,O);else throw new Error(`discriminator: "properties/${p}" must have "const" or "enum"`)}function x(E,O){if(typeof E!="string"||E in h)throw new Error(`discriminator: "${p}" values must be unique strings`);h[E]=O}}}};return xo.default=s,xo}const KD="http://json-schema.org/draft-07/schema#",WD="http://json-schema.org/draft-07/schema#",GD="Core schema meta-schema",JD={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:[]}},YD=["object","boolean"],XD={$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:"#"}},ZD={$schema:KD,$id:WD,title:GD,definitions:JD,type:YD,properties:XD,default:!0};var Ng;function p1(){return Ng||(Ng=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=cD(),i=BD(),a=HD(),n=ZD,s=["/properties"],o="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,s):n;this.addMetaSchema(p,o,!1),this.refs["http://json-schema.org/schema"]=o}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(o)?o:void 0)}}t.Ajv=l,e.exports=t=l,e.exports.Ajv=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var u=Nl();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var c=Ne();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=Fd();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var m=Fl();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return m.default}})})(Ls,Ls.exports)),Ls.exports}var QD=p1();const eM=Wr(QD);var So={exports:{}},Qu={},Fg;function tM(){return Fg||(Fg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(_,x){return{validate:_,compare:x}}e.fullFormats={date:t(n,s),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: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:g,int32:{type:"number",validate:C},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$/,s),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 x=i.exec(_);if(!x)return!1;const E=+x[1],O=+x[2],R=+x[3];return O>=1&&O<=12&&R>=1&&R<=(O===2&&r(E)?29:a[O])}function s(_,x){if(_&&x)return _>x?1:_<x?-1:0}const o=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function l(_,x){const E=o.exec(_);if(!E)return!1;const O=+E[1],R=+E[2],T=+E[3],D=E[5];return(O<=23&&R<=59&&T<=59||O===23&&R===59&&T===60)&&(!x||D!=="")}function u(_,x){if(!(_&&x))return;const E=o.exec(_),O=o.exec(x);if(E&&O)return _=E[1]+E[2]+E[3]+(E[4]||""),x=O[1]+O[2]+O[3]+(O[4]||""),_>x?1:_<x?-1:0}const c=/t|\s/i;function f(_){const x=_.split(c);return x.length===2&&n(x[0])&&l(x[1],!0)}function m(_,x){if(!(_&&x))return;const[E,O]=_.split(c),[R,T]=x.split(c),D=s(E,R);if(D!==void 0)return D||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 C(_){return Number.isInteger(_)&&_<=w&&_>=b}function h(_){return Number.isInteger(_)}function y(){return!0}const S=/[^\\]\\Z/;function A(_){if(S.test(_))return!1;try{return new RegExp(_),!0}catch{return!1}}})(Qu)),Qu}var ec={},Dg;function rM(){return Dg||(Dg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=p1(),r=Ne(),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:o,schemaCode:l})=>r.str`should be ${a[o].okStr} ${l}`,params:({keyword:o,schemaCode:l})=>r._`{comparison: ${a[o].okStr}, limit: ${l}}`};e.formatLimitDefinition={keyword:Object.keys(a),type:"string",schemaType:"string",$data:!0,error:n,code(o){const{gen:l,data:u,schemaCode:c,keyword:f,it:m}=o,{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}),C=l.const("fmt",r._`${w}[${k.schemaCode}]`);o.fail$data(r.or(r._`typeof ${C} != "object"`,r._`${C} instanceof RegExp`,r._`typeof ${C}.compare != "function"`,b(C)))}function g(){const w=k.schema,C=p.formats[w];if(!C||C===!0)return;if(typeof C!="object"||C instanceof RegExp||typeof C.compare!="function")throw new Error(`"${f}": format "${w}" does not define "compare" function`);const h=l.scopeValue("formats",{key:w,ref:C,code:d.code.formats?r._`${d.code.formats}${r.getProperty(w)}`:void 0});o.fail$data(b(h))}function b(w){return r._`${w}.compare(${u}, ${c}) ${a[f].fail} 0`}},dependencies:["format"]};const s=o=>(o.addKeyword(e.formatLimitDefinition),o);e.default=s})(ec)),ec}var Mg;function nM(){return Mg||(Mg=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=tM(),i=rM(),a=Ne(),n=new a.Name("fullFormats"),s=new a.Name("fastFormats"),o=(u,c={keywords:!0})=>{if(Array.isArray(c))return l(u,c,r.fullFormats,n),u;const[f,m]=c.mode==="fast"?[r.fastFormats,s]:[r.fullFormats,n],d=c.formats||r.formatNames;return l(u,d,f,m),c.keywords&&i.default(u),u};o.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=o,Object.defineProperty(t,"__esModule",{value:!0}),t.default=o})(So,So.exports)),So.exports}var iM=nM();const Lg=Wr(iM),aM={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},sM=/^(#?([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*\)))$/,oM=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function lM(e,t,r={},i,a=eM,n){let s=new a({...aM,...r});return i?Lg(s,i):i!==!1&&Lg(s),s.addFormat("data-url",oM),s.addFormat("color",sM),s.addKeyword(nd),Array.isArray(e)&&s.addMetaSchema(e),Ue(t)&&Object.keys(t).forEach(o=>{s.addFormat(o,t[o])}),n&&(s=n(s)),s}class uM{constructor(t,r){this.hasRegisteredRootSchema=!1;const{additionalMetaSchemas:i,customFormats:a,ajvOptionsOverrides:n,ajvFormatOptions:s,AjvClass:o,extenderFn:l,suppressDuplicateFiltering:u}=t;this.ajv=lM(i,a,n,s,o,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,s;try{t[nt]&&(s=this.ajv.getSchema(t[nt])),s===void 0&&(s=this.ajv.compile(t)),s(r)}catch(l){n=l}let o;return s&&(typeof this.localizer=="function"&&(((i=s.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(s.errors),((a=s.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(", "))})),o=s.errors||void 0,s.errors=null),{errors:o,validationError:n}}validateFormData(t,r,i,a,n){const s=this.rawValidation(r,t);return GF(this,s,t,r,i,a,n,this.suppressDuplicateFiltering)}handleSchemaUpdate(t){var r,i;if(this.lastSeenRootSchema===t&&this.hasRegisteredRootSchema)return;const a=(r=t[nt])!==null&&r!==void 0?r:Rb;this.ajv.getSchema(a)===void 0?this.ajv.addSchema(t,a):$e(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=Nd(t),s=(a=n[nt])!==null&&a!==void 0?a:CF(n);let o;return o=this.ajv.getSchema(s),o===void 0&&(o=this.ajv.addSchema(n,s).getSchema(s)||this.ajv.compile(n)),o(r)}catch(n){return console.warn("Error encountered compiling schema:",n),!1}}}function qo(e={},t){return new uM(e,t)}qo();var tc,qg;function cM(){return qg||(qg=1,tc=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}}),tc}var rc,$g;function fM(){return $g||($g=1,rc=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}}),rc}var nc,zg;function dM(){return zg||(zg=1,nc=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}}),nc}var ic,Ug;function mM(){return Ug||(Ug=1,ic=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}}),ic}var ac,Bg;function pM(){return Bg||(Bg=1,ac=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}}),ac}var sc,Vg;function hM(){return Vg||(Vg=1,sc=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}}),sc}var oc,Hg;function gM(){return Hg||(Hg=1,oc=function(t){if(t&&t.length)for(const n of t){let s;switch(n.keyword){case"additionalItems":case"items":s="";var a=n.params.limit;s+="saa sisältää enintään "+a,a==1?s+=":n elementin":s+=" elementtiä";break;case"additionalProperties":s="ei saa sisältää ylimääräisiä ominaisuuksia";break;case"anyOf":s='täytyy vastata "anyOf" skeemaa';break;case"const":s="täytyy olla yhtä kuin vakio";break;case"contains":s="täytyy sisältää kelvollinen elementti";break;case"dependencies":case"dependentRequired":s="";var a=n.params.depsCount;s+="täytyy sisältää "+n.params.deps+" ominaisuu",a==1?s+="s":s+="det",s+=" kun "+n.params.property+"-ominaisuus on läsnä";break;case"discriminator":switch(n.params.error){case"tag":s='tunniste "'+n.params.tag+'" täytyy olla merkkijono';break;case"mapping":s='tunnisteen "'+n.params.tag+'" arvon muoto pitää olla oneOf';break;default:s='täytyy läpäistä "'+n.keyword+'" avainsanatarkistus'}break;case"enum":s="täytyy olla yhtä kuin jokin sallituista arvoista";break;case"false schema":s="boolean skeema on väärä";break;case"format":s='täytyy vastata muotoa "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="täytyy olla "+r;break;case"formatMinimum":case"formatExclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="täytyy olla "+r;break;case"if":s='täytyy vastata "'+n.params.failingKeyword+'" skeemaa';break;case"maximum":case"exclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="täytyy olla "+r;break;case"maxItems":s="";var a=n.params.limit;s+="tulee sisältää enintään "+a+" ",a==1?s+="elementti":s+="elementtiä";break;case"maxLength":s="";var a=n.params.limit;s+="ei saa olla pidempi kuin "+a+" merkki",a!=1&&(s+="ä");break;case"maxProperties":s="";var a=n.params.limit;s+="tulee sisältää enintään "+a+" ",a==1?s+="ominaisuus":s+="ominaisuutta";break;case"minimum":case"exclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="täytyy olla "+r;break;case"minItems":s="";var a=n.params.limit;s+="tulee sisältää vähintään "+a+" ",a==1?s+="elementti":s+="elementtiä";break;case"minLength":s="";var a=n.params.limit;s+="ei saa olla lyhyempi kuin "+a+" merkki",a!=1&&(s+="ä");break;case"minProperties":s="";var a=n.params.limit;s+="tulee sisältää vähintään "+a+" ",a==1?s+="ominaisuus":s+="ominaisuutta";break;case"multipleOf":s="täytyy olla moninkertainen: "+n.params.multipleOf;break;case"not":s='ei saa olla hyväksytty skeeman "not" mukaan';break;case"oneOf":s='täytyy vastata täsmälleen yhtä "oneOf" -kohdassa määriteltyä skeemaa';break;case"pattern":s='täytyy vastata muotoa "'+n.params.pattern+'"';break;case"patternRequired":s='täytyy sisältää ominaisuus joka vastaa kaavaa "'+n.params.missingPattern+'"';break;case"propertyNames":s="ominaisuuden nimi on virheellinen";break;case"required":s="täytyy sisältää vaadittu ominaisuus "+n.params.missingProperty;break;case"type":s="";var i=n.params.type;s+="täytyy olla ",i=="number"?s+="numero":i=="integer"?s+="kokonaisluku":i=="string"?s+="merkkijono":i=="boolean"?s+="boolean":s+=i;break;case"unevaluatedItems":s="";var a=n.params.len;s+="ei saa olla enemmän kuin "+a+" elementti",a!=1&&(s+="ä");break;case"unevaluatedProperties":s="ei saa sisältää arvioimattomia ominaisuuksia";break;case"uniqueItems":s="ei saa sisältää duplikaatteja (elementit ## "+n.params.j+" ja "+n.params.i+" ovat identtiset)";break;default:s='täytyy läpäistä "'+n.keyword+'" avainsanatarkistus'}n.message=s}}),oc}var lc,Kg;function yM(){return Kg||(Kg=1,lc=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}}),lc}var uc,Wg;function vM(){return Wg||(Wg=1,uc=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}}),uc}var cc,Gg;function bM(){return Gg||(Gg=1,cc=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}}),cc}var fc,Jg;function kM(){return Jg||(Jg=1,fc=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}}),fc}var dc,Yg;function wM(){return Yg||(Yg=1,dc=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}}),dc}var mc,Xg;function xM(){return Xg||(Xg=1,mc=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}}),mc}var pc,Zg;function SM(){return Zg||(Zg=1,pc=function(t){if(t&&t.length)for(const n of t){let s;switch(n.keyword){case"additionalItems":case"items":s="";var a=n.params.limit;s+="kan ikke ha mer enn "+a+" element",a!=1&&(s+="er");break;case"additionalProperties":s="kan ikke ha flere egenskaper";break;case"anyOf":s='må samsvare med et schema i "anyOf"';break;case"const":s="må være lik konstanten";break;case"contains":s="må inneholde et gyldig element";break;case"dependencies":case"dependentRequired":s="";var a=n.params.depsCount;s+="må ha egenskapen",a!=1&&(s+="e"),s+=" "+n.params.deps+" når egenskapen "+n.params.property+" er angitt";break;case"discriminator":switch(n.params.error){case"tag":s='tag "'+n.params.tag+'" must be string';break;case"mapping":s='value of tag "'+n.params.tag+'" must be in oneOf';break;default:s="må samsvare med valideringen for "+n.keyword}break;case"enum":s="må være lik en av de forhåndsdefinerte verdiene";break;case"false schema":s="boolsk schema er usannt";break;case"format":s='må stemme overens med formatet "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="må være "+r;break;case"formatMinimum":case"formatExclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="må være "+r;break;case"if":s='must match "'+n.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="må være "+r;break;case"maxItems":s="";var a=n.params.limit;s+="kan ikke ha fler enn "+a+" element",a!=1&&(s+="er");break;case"maxLength":s="";var a=n.params.limit;s+="kan ikke være lengre enn "+a+" tegn";break;case"maxProperties":s="";var a=n.params.limit;s+="kan ikke ha mer enn "+a+" egenskap",a!=1&&(s+="er");break;case"minimum":case"exclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="må være "+r;break;case"minItems":s="";var a=n.params.limit;s+="kan ikke ha færre enn "+a+" element",a!=1&&(s+="er");break;case"minLength":s="";var a=n.params.limit;s+="kan ikke være kortere enn "+a+" tegn";break;case"minProperties":s="";var a=n.params.limit;s+="kan ikke ha mindre enn "+a+" egenskap",a!=1&&(s+="er");break;case"multipleOf":s="må være et multiplum av "+n.params.multipleOf;break;case"not":s='kan ikke samsvare med schema i "not"';break;case"oneOf":s='må samsvare med nøyaktig ett schema i "oneOf"';break;case"pattern":s='må samsvare med mønsteret "'+n.params.pattern+'"';break;case"patternRequired":s='må ha en egenskap som samsvarer med mønsteret "'+n.params.missingPattern;break;case"propertyNames":s="egenskapen med navnet '",n.params.propertyNameout+="' er ugyldig";break;case"required":s="må ha den påkrevde egenskapen "+n.params.missingProperty;break;case"type":s="";var i=n.params.type;s+="må være ",i=="number"?s+="et tall":i=="integer"?s+="et heltall":i=="string"?s+="en streng":i=="boolean"?s+="ja eller nei":s+=i;break;case"unevaluatedItems":s="";var a=n.params.len;s+="must NOT have more than "+a+" item",a!=1&&(s+="s");break;case"unevaluatedProperties":s="must NOT have unevaluated properties";break;case"uniqueItems":s="kan ikke ha duplikate elemeneter (elementene ## "+n.params.j+" og "+n.params.i+" er identiske)";break;default:s="må samsvare med valideringen for "+n.keyword}n.message=s}}),pc}var hc,Qg;function CM(){return Qg||(Qg=1,hc=function(t){if(t&&t.length)for(const n of t){let s;switch(n.keyword){case"additionalItems":case"items":s="";var a=n.params.limit;s+="mag niet meer dan "+a+" item",a!=1&&(s+="s"),s+=" bevatten";break;case"additionalProperties":s="mag geen extra eigenschappen bevatten";break;case"anyOf":s='moet overeenkomen met een schema in "anyOf"';break;case"const":s="moet gelijk zijn aan constante";break;case"contains":s="moet een geldig item bevatten";break;case"dependencies":case"dependentRequired":s="";var a=n.params.depsCount;s+="moet de eigenschap",a!=1&&(s+="pen"),s+=" "+n.params.deps+" bevatten als "+n.params.property+" is gedefinieerd";break;case"discriminator":switch(n.params.error){case"tag":s='tag "'+n.params.tag+'" moet een tekenreeks zijn';break;case"mapping":s='de waarde van het veld "'+n.params.tag+'" moet voorkomen in de oneOf';break;default:s='moet sleutelwoord validatie "'+n.keyword+'" doorstaan'}break;case"enum":s="moet overeenkomen met één van de voorgedefinieerde waarden";break;case"false schema":s="boolean schema is fout";break;case"format":s='moet overeenkomen met het volgende formaat: "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="moet "+r+" zijn";break;case"formatMinimum":case"formatExclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="moet "+r+" zijn";break;case"if":s='moet overeenkomen met "'+n.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="moet "+r+" zijn";break;case"maxItems":s="";var a=n.params.limit;s+="mag niet meer dan "+a+" item",a!=1&&(s+="s"),s+=" bevatten";break;case"maxLength":s="";var a=n.params.limit;s+="mag niet langer dan "+a+" karakter",a!=1&&(s+="s"),s+=" zijn";break;case"maxProperties":s="";var a=n.params.limit;s+="mag niet meer dan "+a+" eigenschap",a!=1&&(s+="pen"),s+=" bevatten";break;case"minimum":case"exclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="moet "+r+" zijn";break;case"minItems":s="";var a=n.params.limit;s+="mag niet minder dan "+a+" item",a!=1&&(s+="s"),s+=" bevatten";break;case"minLength":s="";var a=n.params.limit;s+="mag niet korter dan "+a+" karakter",a!=1&&(s+="s"),s+=" zijn";break;case"minProperties":s="";var a=n.params.limit;s+="mag niet minder dan "+a+" eigenschap",a!=1&&(s+="pen"),s+=" bevatten";break;case"multipleOf":s="moet een veelvoud van "+n.params.multipleOf+" zijn";break;case"not":s='mag niet overeenkomen met een schema in "not"';break;case"oneOf":s='moet overeenkomen met één schema in "oneOf"';break;case"pattern":s='moet overeenkomen met het volgende patroon: "'+n.params.pattern+'"';break;case"patternRequired":s='moet een eigenschap bevatten die overeenkomt met het pattroon: "'+n.params.missingPattern+'"';break;case"propertyNames":s="eigenschapnaam is ongeldig";break;case"required":s="moet de eigenschap "+n.params.missingProperty+" bevatten";break;case"type":s="";var i=n.params.type;s+="moet een ",i=="number"?s+="nummer":i=="integer"?s+="geheel getal":i=="string"?s+="tekenreeks":i=="boolean"&&(s+="ja of nee waarde"),s+=" ("+i+") bevatten";break;case"unevaluatedItems":s="";var a=n.params.len;s+="mag niet meer dan "+a+" item",a!=1&&(s+="s"),s+=" bevatten";break;case"unevaluatedProperties":s="mag geen ongecontroleerde eigenschappen bevatten";break;case"uniqueItems":s="mag geen gedupliceerde items bevatten (items ## "+n.params.j+" en "+n.params.i+" zijn identiek)";break;default:s='moet sleutelwoord validatie "'+n.keyword+'" doorstaan'}n.message=s}}),hc}var gc,ey;function EM(){return ey||(ey=1,gc=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}}),gc}var yc,ty;function AM(){return ty||(ty=1,yc=function(t){if(t&&t.length)for(const n of t){let s;switch(n.keyword){case"additionalItems":case"items":s="não são permitidos itens adicionais (mais do que "+a+")";break;case"additionalProperties":s="não são permitidas propriedades adicionais";break;case"anyOf":s='os dados não correspondem a nenhum schema de "anyOf"';break;case"const":s="deve ser igual à constante";break;case"contains":s="deve conter um item válido";break;case"dependencies":case"dependentRequired":s="";var a=n.params.depsCount;s+=" deve ter propriedade",a!=1&&(s+="s"),s+=" "+n.params.deps+" quando a propriedade "+n.params.property+" estiver presente";break;case"discriminator":switch(n.params.error){case"tag":s='a tag "'+n.params.tag+'" deve ser uma string';break;case"mapping":s='o valor da tag "'+n.params.tag+'" deve estar no oneOf';break;default:s='deve passar a validação da keyword "'+n.keyword+'"'}break;case"enum":s="deve ser igual a um dos valores permitidos";break;case"false schema":s='o schema booleano é "false"';break;case"format":s='deve corresponder ao formato "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="deve ser "+r;break;case"formatMinimum":case"formatExclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="deve ser "+r;break;case"if":s='deve corresponder ao schema "'+n.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="deve ser "+r;break;case"maxItems":s="";var a=n.params.limit;s+="não deve ter mais que "+a+" elemento",a!=1&&(s+="s");break;case"maxLength":s="";var a=n.params.limit;s+="não deve ser maior que "+a+" caracter",a!=1&&(s+="es");break;case"maxProperties":s="";var a=n.params.limit;s+="não deve ter mais que "+a+" propriedade",a!=1&&(s+="s");break;case"minimum":case"exclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="deve ser "+r;break;case"minItems":s="";var a=n.params.limit;s+="não deve ter menos que "+a+" elemento",a!=1&&(s+="s");break;case"minLength":s="";var a=n.params.limit;s+="não deve ser mais curta que "+a+" caracter",a!=1&&(s+="es");break;case"minProperties":s="";var a=n.params.limit;s+="não deve ter menos que "+a+" propriedade",a!=1&&(s+="s");break;case"multipleOf":s="deve ser múltiplo de "+n.params.multipleOf;break;case"not":s='não deve ser valido segundo o schema em "not"';break;case"oneOf":s='deve corresponder exatamente com um schema em "oneOf"';break;case"pattern":s='deve corresponder ao padrão "'+n.params.pattern+'"';break;case"patternRequired":s='deve ter a propriedade correspondente ao padrão "'+n.params.missingPattern+'"';break;case"propertyNames":s="o nome da propriedade é inválido";break;case"required":s="deve ter a propriedade obrigatória "+n.params.missingProperty;break;case"type":s="";var i=n.params.type;s+="deve ser ",i=="number"?s+="um número":i=="integer"?s+="um número inteiro":i=="string"?s+="um texto":i=="boolean"?s+="um booleano":s+=i;break;case"unevaluatedItems":s="";var a=n.params.len;s+="não pode possuir mais que "+a+" ",a==1?s+="item":s+="itens";break;case"unevaluatedProperties":s="não pode possuir propridades não avaliadas";break;case"uniqueItems":s="não deve ter itens duplicados (os itens ## "+n.params.j+" e "+n.params.i+" são idênticos)";break;default:s='deve passar a validação da keyword "'+n.keyword+'"'}n.message=s}}),yc}var vc,ry;function OM(){return ry||(ry=1,vc=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}}),vc}var bc,ny;function _M(){return ny||(ny=1,bc=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}}),bc}var kc,iy;function PM(){return iy||(iy=1,kc=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}}),kc}var wc,ay;function IM(){return ay||(ay=1,wc=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}}),wc}var xc,sy;function TM(){return sy||(sy=1,xc=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}}),xc}var Sc,oy;function jM(){return oy||(oy=1,Sc=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}}),Sc}var Cc,ly;function RM(){return ly||(ly=1,Cc={en:cM(),ar:fM(),ca:dM(),cs:mM(),de:pM(),es:hM(),fi:gM(),fr:yM(),hu:vM(),id:bM(),it:kM(),ja:wM(),ko:xM(),nb:SM(),nl:CM(),pl:EM(),"pt-BR":AM(),ru:OM(),sk:_M(),sv:PM(),th:IM(),zh:TM(),"zh-TW":jM()}),Cc}var NM=RM();const Pa=Wr(NM),Co={flex:1,paddingLeft:6,paddingRight:6};function FM(e){const{disabled:t,hasCopy:r,hasMoveDown:i,hasMoveUp:a,hasRemove:n,fieldPathId:s,onCopyItem:o,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 j.jsxs("div",{className:"d-flex flex-row",children:[(a||i)&&j.jsx("div",{className:"m-0 p-0",children:j.jsx(v,{id:ir(s,"moveUp"),className:"rjsf-array-item-move-up",style:Co,disabled:t||f||!a,onClick:c,uiSchema:d,registry:m})}),(a||i)&&j.jsx("div",{className:"m-0 p-0",children:j.jsx(k,{id:ir(s,"moveDown"),className:"rjsf-array-item-move-down",style:Co,disabled:t||f||!i,onClick:u,uiSchema:d,registry:m})}),r&&j.jsx("div",{className:"m-0 p-0",children:j.jsx(p,{id:ir(s,"copy"),className:"rjsf-array-item-copy",style:Co,disabled:t||f,onClick:o,uiSchema:d,registry:m})}),n&&j.jsx("div",{className:"m-0 p-0",children:j.jsx(g,{id:ir(s,"remove"),className:"rjsf-array-item-remove",style:Co,disabled:t||f,onClick:l,uiSchema:d,registry:m})})]})}function DM(e){const{children:t,buttonsProps:r,hasToolbar:i,registry:a,uiSchema:n}=e,s=me(n),o=ge("ArrayFieldItemButtonsTemplate",a,s);return j.jsx("div",{children:j.jsxs("div",{className:"row mb-2 d-flex align-items-center",children:[j.jsx("div",{className:i?"col-9 col-lg-9":"col-12",children:t}),i&&j.jsx("div",{className:"col-3 col-lg-3 py-4",children:j.jsx(o,{...r})})]})})}function MM(e){const{canAdd:t,disabled:r,fieldPathId:i,items:a,optionalDataControl:n,onAddClick:s,readonly:o,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=!o&&!r;return j.jsx("div",{children:j.jsx("div",{className:"row p-0 m-0",children:j.jsxs("div",{className:"col p-0 m-0",children:[j.jsx(p,{fieldPathId:i,title:d.title||f,required:u,schema:c,uiSchema:m,registry:l,optionalDataControl:g?n:void 0}),j.jsx(k,{fieldPathId:i,description:d.description||c.description,schema:c,uiSchema:m,registry:l}),g?void 0:n,j.jsxs("div",{className:"container-fluid p-0 m-0",children:[a,t&&j.jsxs("div",{className:"row mt-2",children:[j.jsx("div",{className:"col-9"}),j.jsx("div",{className:"col-3 py-4",children:j.jsx(v,{id:ir(i,"add"),className:"rjsf-array-item-add",onClick:s,disabled:r||o,uiSchema:m,registry:l})})]})]})]})})})}const ys={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},LM=()=>j.jsx("svg",{...ys,children:j.jsx("path",{d:"M8 13V3M3.5 7.5L8 3l4.5 4.5"})}),qM=()=>j.jsx("svg",{...ys,children:j.jsx("path",{d:"M8 3v10M3.5 8.5L8 13l4.5-4.5"})}),$M=()=>j.jsxs("svg",{...ys,children:[j.jsx("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.5"}),j.jsx("path",{d:"M10.5 2.5h-7a1 1 0 0 0-1 1v7"})]}),h1=()=>j.jsx("svg",{...ys,children:j.jsx("path",{d:"M3.5 8h9"})}),zM=()=>j.jsx("svg",{...ys,children:j.jsx("path",{d:"M8 3.5v9M3.5 8h9"})});function ma({iconType:e,icon:t,className:r,uiSchema:i,registry:a,variant:n="light",...s}){return j.jsx("button",{type:"button",className:`btn btn-${n} btn-sm ${r||""}`.trim(),...s,children:t})}function UM(e){const{translateString:t}=e.registry;return j.jsx(ma,{title:t(_e.CopyButton),...e,icon:j.jsx($M,{})})}function BM(e){const{translateString:t}=e.registry;return j.jsx(ma,{title:t(_e.MoveUpButton),...e,icon:j.jsx(LM,{})})}function VM(e){const{translateString:t}=e.registry;return j.jsx(ma,{title:t(_e.MoveDownButton),...e,icon:j.jsx(qM,{})})}function HM(e){const{translateString:t}=e.registry;return j.jsx(ma,{title:t(_e.RemoveButton),...e,variant:"danger",icon:j.jsx(h1,{})})}function KM(e){const{translateString:t}=e.registry;return j.jsx(ma,{title:t(_e.ClearButton),...e,icon:j.jsx(h1,{})})}function WM({className:e,...t}){const{translateString:r}=t.registry;return j.jsx(ma,{...t,variant:"primary",className:`ml-1 ${e||""}`.trim(),style:{width:"100%"},title:r(_e.AddItemButton),icon:j.jsx(zM,{})})}function GM({uiSchema:e}){const{submitText:t,norender:r,props:i={}}=Od(e);return r?null:j.jsx("div",{children:j.jsx("button",{type:"submit",...i,className:`btn btn-primary ${i.className||""}`.trim(),children:t})})}const JM={SubmitButton:GM,AddButton:WM,CopyButton:UM,MoveDownButton:VM,MoveUpButton:BM,RemoveButton:HM,ClearButton:KM};function YM({id:e,description:t}){return t?j.jsx("div",{children:j.jsx("div",{id:e,className:"mb-3",children:typeof t=="string"?j.jsx(Ir,{children:t}):t})}):null}function XM({errors:e=[],fieldPathId:t}){return e.length===0?null:j.jsx("ul",{className:"list-group",id:Pd(t),children:e.filter(Boolean).map((r,i)=>j.jsx("li",{className:"list-group-item border-0 m-0 p-0",children:j.jsx("small",{className:"m-0 text-danger",children:typeof r=="string"?j.jsx(Ir,{children:r}):r})},`${r}-${i}`))})}function ZM({fieldPathId:e,help:t,hasErrors:r}){return t?j.jsx("small",{className:`form-text ${r?"text-danger":"text-muted"}`,id:Td(e),children:t}):null}function QM(e){var g,b;const{id:t,children:r,displayLabel:i,rawErrors:a=[],errors:n,help:s,rawDescription:o,hidden:l,label:u,required:c,schema:f,uiSchema:m,registry:d}=e,p=me(m),k=ge("WrapIfAdditionalTemplate",d,p);if(l)return j.jsx("div",{className:"hidden",children:r});const v=a.length>0;return j.jsxs(j.Fragment,{children:[((g=f==null?void 0:f.markdown)==null?void 0:g.before)&&j.jsx("div",{className:"fcode-form-markdown",children:j.jsx(Yc,{children:f.markdown.before})}),j.jsx(k,{...e,children:j.jsxs("div",{className:"form-group",children:[i&&j.jsxs("label",{className:`form-label${v?" text-danger":""}`,htmlFor:t,children:[j.jsx(Ir,{components:{p:"span"},children:u}),c?"*":null]}),r,i&&o&&j.jsx("small",{className:`form-text ${v?"text-danger":"text-muted"}`,children:j.jsx(Ir,{children:o})}),n,s]})}),((b=f==null?void 0:f.markdown)==null?void 0:b.after)&&j.jsx("div",{className:"fcode-form-markdown",children:j.jsx(Yc,{children:f.markdown.after})})]})}function eL(e){const{description:t,disabled:r,formData:i,fieldPathId:a,onAddProperty:n,optionalDataControl:s,properties:o,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&&o.length===0)return null;const w=!l&&!r;return j.jsxs(j.Fragment,{children:[m&&j.jsx(k,{id:Il(a),title:m,required:c,schema:f,uiSchema:d,registry:u,optionalDataControl:w?s:void 0}),t&&j.jsx(v,{id:zn(a),description:t,schema:f,uiSchema:d,registry:u}),w?void 0:s,j.jsxs("div",{className:"container-fluid p-0",children:[o.map(C=>j.jsx("div",{className:`row mb-2${C.hidden?" d-none":""}`,children:j.jsx("div",{className:"col-12",children:C.content})},C.name)),Nb(f,d,i)&&j.jsx("div",{className:"row",children:j.jsx("div",{className:"col-3 py-4",children:j.jsx(g,{id:ir(a,"add"),className:"rjsf-object-property-expand",onClick:n,disabled:r||l,uiSchema:d,registry:u})})})]})]})}function tL({id:e,title:t,uiSchema:r,optionalDataControl:i}){const a=me(r);return j.jsxs("div",{id:e,className:"my-1",children:[j.jsx("h5",{children:j.jsx(Ir,{children:a.title||t})}),j.jsx("hr",{className:"border-0",style:{height:"1px"}}),i]})}function rL(e){const{id:t,classNames:r,style:i,disabled:a,label:n,onKeyRenameBlur:s,onRemoveProperty:o,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=Sn in c,C=[r];!f&&m&&m.length>0&&C.push("has-error has-danger");const h=C.filter(Boolean).join(" ").trim();if(!w)return j.jsx("div",{className:h,style:i,children:d});const y=`${t}-key`;return j.jsx("div",{className:h,style:i,children:j.jsxs("div",{className:"row",children:[j.jsx("div",{className:"col",children:j.jsxs("div",{className:"form-group",children:[j.jsx("label",{className:"form-label",htmlFor:y,children:g(_e.KeyLabel,[n])}),j.jsx("input",{className:"form-control",type:"text",id:y,name:y,required:u,disabled:a||l,defaultValue:n,onBlur:l?void 0:s})]})}),j.jsx("div",{className:"col",children:d}),j.jsx("div",{className:"col-auto py-4",children:j.jsx(b,{disabled:a||l,onClick:o,uiSchema:p,registry:k})})]})})}const nL=Object.freeze(Object.defineProperty({__proto__:null,ArrayFieldItemButtonsTemplate:FM,ArrayFieldItemTemplate:DM,ArrayFieldTemplate:MM,ButtonTemplates:JM,DescriptionFieldTemplate:YM,FieldErrorTemplate:XM,FieldHelpTemplate:ZM,FieldTemplate:QM,ObjectFieldTemplate:eL,TitleFieldTemplate:tL,WrapIfAdditionalTemplate:rL},Symbol.toStringTag,{value:"Module"}));function iL({schema:e,uiSchema:t,options:r,id:i,value:a,disabled:n,readonly:s,label:o,hideLabel:l,autofocus:u=!1,onBlur:c,onFocus:f,onChange:m,registry:d}){const p=ge("DescriptionFieldTemplate",d,r),k=Ua(e),v=B.useCallback(y=>m(y.target.checked),[m]),g=B.useCallback(y=>c(i,y.target.checked),[c,i]),b=B.useCallback(y=>f(i,y.target.checked),[f,i]),h=me(t).widget==="checkbox"?void 0:r.description??e.description;return j.jsxs("div",{className:`checkbox ${n||s?"disabled":""}`.trim(),children:[!l&&h&&j.jsx(p,{id:zn(i),description:h,schema:e,uiSchema:t,registry:d}),j.jsxs("div",{className:"form-check",children:[j.jsx("input",{type:"checkbox",className:"form-check-input",id:i,name:i,checked:typeof a>"u"?!1:a,required:k,disabled:n||s,autoFocus:u,onChange:v,onBlur:g,onFocus:b,"aria-describedby":Rr(i)}),!l&&!!o&&j.jsx("label",{className:"form-check-label",htmlFor:i,children:j.jsx(Ir,{components:{p:"span"},children:o})})]})]})}function aL({id:e,disabled:t,options:r,value:i,autofocus:a=!1,readonly:n,required:s,onChange:o,onBlur:l,onFocus:u}){const{inline:c=!1,enumOptions:f,enumDisabled:m,emptyValue:d}=r,p=hs(r),k=Array.isArray(i)?i:[i],v=B.useCallback(({target:b})=>l(e,_r(b==null?void 0:b.value,f,p,d)),[l,e,f,d,p]),g=B.useCallback(({target:b})=>u(e,_r(b==null?void 0:b.value,f,p,d)),[u,e,f,d,p]);return j.jsx("div",{id:e,children:Array.isArray(f)&&f.map((b,w)=>{const C=ca(b.value,k),h=Array.isArray(m)&&m.includes(b.value),y=Tl(e,w),S=A=>{A.target.checked?o(e1(w,k,f)):o(Zk(w,k,f))};return j.jsxs("div",{className:`custom-control custom-checkbox bg-transparent border-0${c?" custom-control-inline":""}`,children:[j.jsx("input",{type:"checkbox",className:"custom-control-input",id:y,name:e,checked:C,value:ps(b.value,w,p),required:s,disabled:t||h||n,autoFocus:a&&w===0,onChange:S,onBlur:v,onFocus:g,"aria-describedby":Rr(e)}),j.jsx("label",{className:"custom-control-label",htmlFor:y,children:j.jsx(Ir,{components:{p:"span"},children:b.label})})]},String(b.value))})})}function sL({options:e,value:t,required:r,disabled:i,readonly:a,autofocus:n=!1,onBlur:s,onFocus:o,onChange:l,id:u}){const{enumOptions:c,enumDisabled:f,inline:m,emptyValue:d}=e,p=hs(e),k=B.useCallback(({target:g})=>s(u,_r(g==null?void 0:g.value,c,p,d)),[s,c,d,u,p]),v=B.useCallback(({target:g})=>o(u,_r(g==null?void 0:g.value,c,p,d)),[o,c,d,u,p]);return j.jsx("div",{id:u,role:"radiogroup",children:Array.isArray(c)&&c.map((g,b)=>{const w=ca(g.value,t),C=Array.isArray(f)&&f.includes(g.value),h=Tl(u,b);return j.jsxs("div",{className:`form-check${m?" form-check-inline":""}`,children:[j.jsx("input",{type:"radio",className:"form-check-input",id:h,name:u,checked:w,value:ps(g.value,b,p),required:r,disabled:i||C||a,autoFocus:n&&b===0,onChange:()=>l(g.value),onBlur:k,onFocus:v,"aria-describedby":Rr(u)}),j.jsx("label",{className:"form-check-label",htmlFor:h,children:j.jsx(Ir,{components:{p:"span"},children:g.label})})]},String(g.value))})})}const oL=5;function lL({id:e,options:t,placeholder:r,value:i,required:a,disabled:n,readonly:s,autofocus:o=!1,onChange:l,onBlur:u,onFocus:c}){const f=B.useCallback(({target:{value:p}})=>l(p===""?t.emptyValue:p),[l,t.emptyValue]),m=B.useCallback(({target:p})=>u(e,p==null?void 0:p.value),[u,e]),d=B.useCallback(({target:p})=>c(e,p==null?void 0:p.value),[c,e]);return j.jsx("textarea",{id:e,name:e,className:"form-control",value:i??"",placeholder:r,required:a,disabled:n,readOnly:s,autoFocus:o,rows:t.rows||oL,onChange:f,onBlur:m,onFocus:d,"aria-describedby":Rr(e)})}const uL=Object.freeze(Object.defineProperty({__proto__:null,CheckboxWidget:iL,CheckboxesWidget:aL,RadioWidget:sL,TextareaWidget:lL},Symbol.toStringTag,{value:"Module"})),uy={templates:nL,widgets:uL},cL=e=>e==="{}"?`{
83
+ deps: ${c}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[u,c]=n(l);s(l,u),o(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 s(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=s;function o(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=o,e.default=a})(nc)),nc}var mo={},xg;function $D(){if(xg)return mo;xg=1,Object.defineProperty(mo,"__esModule",{value:!0});const e=Ne(),t=Ke(),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:s,data:o,it:l}=a;if((0,t.alwaysValidSchema)(l,s))return;const u=n.name("valid");n.forIn("key",o,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 mo.default=i,mo}var po={},Sg;function v1(){if(Sg)return po;Sg=1,Object.defineProperty(po,"__esModule",{value:!0});const e=Nr(),t=Ne(),r=Vn(),i=Ke(),n={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:s})=>(0,t._)`{additionalProperty: ${s.additionalProperty}}`},code(s){const{gen:o,schema:l,parentSchema:u,data:c,errsCount:f,it:m}=s;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(),s.ok((0,t._)`${f} === ${r.default.errors}`);function g(){o.forIn("key",c,y=>{!k.length&&!v.length?x(y):o.if(b(y),()=>x(y))})}function b(y){let S;if(k.length>8){const A=(0,i.schemaRefOrVal)(m,u.properties,"properties");S=(0,e.isOwnProperty)(o,A,y)}else k.length?S=(0,t.or)(...k.map(A=>(0,t._)`${y} === ${A}`)):S=t.nil;return v.length&&(S=(0,t.or)(S,...v.map(A=>(0,t._)`${(0,e.usePattern)(s,A)}.test(${y})`))),(0,t.not)(S)}function w(y){o.code((0,t._)`delete ${c}[${y}]`)}function x(y){if(p.removeAdditional==="all"||p.removeAdditional&&l===!1){w(y);return}if(l===!1){s.setParams({additionalProperty:y}),s.error(),d||o.break();return}if(typeof l=="object"&&!(0,i.alwaysValidSchema)(m,l)){const S=o.name("valid");p.removeAdditional==="failing"?(h(y,S,!1),o.if((0,t.not)(S),()=>{s.reset(),w(y)})):(h(y,S),d||o.if((0,t.not)(S),()=>o.break()))}}function h(y,S,A){const _={keyword:"additionalProperties",dataProp:y,dataPropType:i.Type.Str};A===!1&&Object.assign(_,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(_,S)}}};return po.default=n,po}var ho={},Cg;function zD(){if(Cg)return ho;Cg=1,Object.defineProperty(ho,"__esModule",{value:!0});const e=ql(),t=Nr(),r=Ke(),i=v1(),a={keyword:"properties",type:"object",schemaType:"object",code(n){const{gen:s,schema:o,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)(o);for(const v of f)c.definedProperties.add(v);c.opts.unevaluated&&f.length&&c.props!==!0&&(c.props=r.mergeEvaluated.props(s,(0,r.toHash)(f),c.props));const m=f.filter(v=>!(0,r.alwaysValidSchema)(c,o[v]));if(m.length===0)return;const d=s.name("valid");for(const v of m)p(v)?k(v):(s.if((0,t.propertyInData)(s,u,v,c.opts.ownProperties)),k(v),c.allErrors||s.else().var(d,!0),s.endIf()),n.it.definedProperties.add(v),n.ok(d);function p(v){return c.opts.useDefaults&&!c.compositeRule&&o[v].default!==void 0}function k(v){n.subschema({keyword:"properties",schemaProp:v,dataProp:v},d)}}};return ho.default=a,ho}var go={},Eg;function UD(){if(Eg)return go;Eg=1,Object.defineProperty(go,"__esModule",{value:!0});const e=Nr(),t=Ne(),r=Ke(),i=Ke(),a={keyword:"patternProperties",type:"object",schemaType:"object",code(n){const{gen:s,schema:o,data:l,parentSchema:u,it:c}=n,{opts:f}=c,m=(0,e.allSchemaProperties)(o),d=m.filter(x=>(0,r.alwaysValidSchema)(c,o[x]));if(m.length===0||d.length===m.length&&(!c.opts.unevaluated||c.props===!0))return;const p=f.strictSchema&&!f.allowMatchingProperties&&u.properties,k=s.name("valid");c.props!==!0&&!(c.props instanceof t.Name)&&(c.props=(0,i.evaluatedPropsToName)(s,c.props));const{props:v}=c;g();function g(){for(const x of m)p&&b(x),c.allErrors?w(x):(s.var(k,!0),w(x),s.if(k))}function b(x){for(const h in p)new RegExp(x).test(h)&&(0,r.checkStrictMode)(c,`property ${h} matches pattern ${x} (use allowMatchingProperties)`)}function w(x){s.forIn("key",l,h=>{s.if((0,t._)`${(0,e.usePattern)(n,x)}.test(${h})`,()=>{const y=d.includes(x);y||n.subschema({keyword:"patternProperties",schemaProp:x,dataProp:h,dataPropType:i.Type.Str},k),c.opts.unevaluated&&v!==!0?s.assign((0,t._)`${v}[${h}]`,!0):!y&&!c.allErrors&&s.if((0,t.not)(k),()=>s.break())})})}}};return go.default=a,go}var yo={},Ag;function BD(){if(Ag)return yo;Ag=1,Object.defineProperty(yo,"__esModule",{value:!0});const e=Ke(),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 s=i.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),r.failResult(s,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return yo.default=t,yo}var vo={},Og;function VD(){if(Og)return vo;Og=1,Object.defineProperty(vo,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Nr().validateUnion,error:{message:"must match a schema in anyOf"}};return vo.default=t,vo}var bo={},_g;function HD(){if(_g)return bo;_g=1,Object.defineProperty(bo,"__esModule",{value:!0});const e=Ne(),t=Ke(),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:s,parentSchema:o,it:l}=a;if(!Array.isArray(s))throw new Error("ajv implementation error");if(l.opts.discriminator&&o.discriminator)return;const u=s,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 bo.default=i,bo}var ko={},Pg;function WD(){if(Pg)return ko;Pg=1,Object.defineProperty(ko,"__esModule",{value:!0});const e=Ke(),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 s=i.name("valid");a.forEach((o,l)=>{if((0,e.alwaysValidSchema)(n,o))return;const u=r.subschema({keyword:"allOf",schemaProp:l},s);r.ok(s),r.mergeEvaluated(u)})}};return ko.default=t,ko}var wo={},Ig;function KD(){if(Ig)return wo;Ig=1,Object.defineProperty(wo,"__esModule",{value:!0});const e=Ne(),t=Ke(),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:s,parentSchema:o,it:l}=n;o.then===void 0&&o.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=s.let("valid",!0),m=s.name("_valid");if(d(),n.reset(),u&&c){const k=s.let("ifClause");n.setParams({ifClause:k}),s.if(m,p("then",k),p("else",k))}else u?s.if(m,p("then")):s.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);s.assign(f,m),n.mergeValidEvaluated(g,f),v?s.assign(v,(0,e._)`${k}`):n.setParams({ifClause:k})}}}};function a(n,s){const o=n.schema[s];return o!==void 0&&!(0,t.alwaysValidSchema)(n,o)}return wo.default=i,wo}var xo={},Tg;function GD(){if(Tg)return xo;Tg=1,Object.defineProperty(xo,"__esModule",{value:!0});const e=Ke(),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 xo.default=t,xo}var jg;function JD(){if(jg)return lo;jg=1,Object.defineProperty(lo,"__esModule",{value:!0});const e=g1(),t=DD(),r=y1(),i=MD(),a=LD(),n=qD(),s=$D(),o=v1(),l=zD(),u=UD(),c=BD(),f=VD(),m=HD(),d=WD(),p=KD(),k=GD();function v(g=!1){const b=[c.default,f.default,m.default,d.default,p.default,k.default,s.default,o.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 lo.default=v,lo}var So={},Co={},Rg;function YD(){if(Rg)return Co;Rg=1,Object.defineProperty(Co,"__esModule",{value:!0});const e=Ne(),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:s,$data:o,schema:l,schemaCode:u,it:c}=i,{opts:f,errSchemaPath:m,schemaEnv:d,self:p}=c;if(!f.validateFormats)return;o?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"),x=n.let("format");n.if((0,e._)`typeof ${b} == "object" && !(${b} instanceof RegExp)`,()=>n.assign(w,(0,e._)`${b}.type || "string"`).assign(x,(0,e._)`${b}.validate`),()=>n.assign(w,(0,e._)`"string"`).assign(x,b)),i.fail$data((0,e.or)(h(),y()));function h(){return f.strictSchema===!1?e.nil:(0,e._)`${u} && !${x}`}function y(){const S=d.$async?(0,e._)`(${b}.async ? await ${x}(${s}) : ${x}(${s}))`:(0,e._)`${x}(${s})`,A=(0,e._)`(typeof ${x} == "function" ? ${S} : ${x}.test(${s}))`;return(0,e._)`${x} && ${x} !== true && ${w} === ${a} && !${A}`}}function v(){const g=p.formats[l];if(!g){h();return}if(g===!0)return;const[b,w,x]=y(g);b===a&&i.pass(S());function h(){if(f.strictSchema===!1){p.logger.warn(A());return}throw new Error(A());function A(){return`unknown format "${l}" ignored in schema at path "${m}"`}}function y(A){const _=A instanceof RegExp?(0,e.regexpCode)(A):f.code.formats?(0,e._)`${f.code.formats}${(0,e.getProperty)(l)}`:void 0,C=n.scopeValue("formats",{key:l,ref:A,code:_});return typeof A=="object"&&!(A instanceof RegExp)?[A.type||"string",A.validate,(0,e._)`${C}.validate`]:["string",A,C]}function S(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!d.$async)throw new Error("async format in sync schema");return(0,e._)`await ${x}(${s})`}return typeof w=="function"?(0,e._)`${x}(${s})`:(0,e._)`${x}.test(${s})`}}}};return Co.default=r,Co}var Ng;function XD(){if(Ng)return So;Ng=1,Object.defineProperty(So,"__esModule",{value:!0});const t=[YD().default];return So.default=t,So}var ei={},Fg;function ZD(){return Fg||(Fg=1,Object.defineProperty(ei,"__esModule",{value:!0}),ei.contentVocabulary=ei.metadataVocabulary=void 0,ei.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],ei.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),ei}var Dg;function QD(){if(Dg)return Ws;Dg=1,Object.defineProperty(Ws,"__esModule",{value:!0});const e=SD(),t=FD(),r=JD(),i=XD(),a=ZD(),n=[e.default,t.default,(0,r.default)(),i.default,a.metadataVocabulary,a.contentVocabulary];return Ws.default=n,Ws}var Eo={},Ia={},Mg;function eM(){if(Mg)return Ia;Mg=1,Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Ia.DiscrError=e={})),Ia}var Lg;function tM(){if(Lg)return Eo;Lg=1,Object.defineProperty(Eo,"__esModule",{value:!0});const e=Ne(),t=eM(),r=zd(),i=$l(),a=Ke(),s={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:o,tagName:l}})=>o===t.DiscrError.Tag?`tag "${l}" must be string`:`value of tag "${l}" must be in oneOf`,params:({params:{discrError:o,tag:l,tagName:u}})=>(0,e._)`{error: ${o}, tag: ${u}, tagValue: ${l}}`},code(o){const{gen:l,data:u,schema:c,parentSchema:f,it:m}=o,{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(),()=>o.error(!1,{discrError:t.DiscrError.Tag,tag:v,tagName:p})),o.ok(k);function g(){const x=w();l.if(!1);for(const h in x)l.elseIf((0,e._)`${v} === ${h}`),l.assign(k,b(x[h]));l.else(),o.error(!1,{discrError:t.DiscrError.Mapping,tag:v,tagName:p}),l.endIf()}function b(x){const h=l.name("valid"),y=o.subschema({keyword:"oneOf",schemaProp:x},h);return o.mergeEvaluated(y,e.Name),h}function w(){var x;const h={},y=A(f);let S=!0;for(let E=0;E<d.length;E++){let O=d[E];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 R=(x=O==null?void 0:O.properties)===null||x===void 0?void 0:x[p];if(typeof R!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${p}"`);S=S&&(y||A(O)),_(R,E)}if(!S)throw new Error(`discriminator: "${p}" must be required`);return h;function A({required:E}){return Array.isArray(E)&&E.includes(p)}function _(E,O){if(E.const)C(E.const,O);else if(E.enum)for(const R of E.enum)C(R,O);else throw new Error(`discriminator: "properties/${p}" must have "const" or "enum"`)}function C(E,O){if(typeof E!="string"||E in h)throw new Error(`discriminator: "${p}" values must be unique strings`);h[E]=O}}}};return Eo.default=s,Eo}const rM="http://json-schema.org/draft-07/schema#",nM="http://json-schema.org/draft-07/schema#",iM="Core schema meta-schema",aM={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:[]}},sM=["object","boolean"],oM={$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:"#"}},lM={$schema:rM,$id:nM,title:iM,definitions:aM,type:sM,properties:oM,default:!0};var qg;function b1(){return qg||(qg=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=kD(),i=QD(),a=tM(),n=lM,s=["/properties"],o="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,s):n;this.addMetaSchema(p,o,!1),this.refs["http://json-schema.org/schema"]=o}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(o)?o:void 0)}}t.Ajv=l,e.exports=t=l,e.exports.Ajv=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var u=ql();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var c=Ne();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=$d();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var m=$l();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return m.default}})})(zs,zs.exports)),zs.exports}var uM=b1();const cM=Kr(uM);var Ao={exports:{}},ic={},$g;function fM(){return $g||($g=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(_,C){return{validate:_,compare:C}}e.fullFormats={date:t(n,s),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: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:g,int32:{type:"number",validate:x},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$/,s),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 C=i.exec(_);if(!C)return!1;const E=+C[1],O=+C[2],R=+C[3];return O>=1&&O<=12&&R>=1&&R<=(O===2&&r(E)?29:a[O])}function s(_,C){if(_&&C)return _>C?1:_<C?-1:0}const o=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function l(_,C){const E=o.exec(_);if(!E)return!1;const O=+E[1],R=+E[2],T=+E[3],D=E[5];return(O<=23&&R<=59&&T<=59||O===23&&R===59&&T===60)&&(!C||D!=="")}function u(_,C){if(!(_&&C))return;const E=o.exec(_),O=o.exec(C);if(E&&O)return _=E[1]+E[2]+E[3]+(E[4]||""),C=O[1]+O[2]+O[3]+(O[4]||""),_>C?1:_<C?-1:0}const c=/t|\s/i;function f(_){const C=_.split(c);return C.length===2&&n(C[0])&&l(C[1],!0)}function m(_,C){if(!(_&&C))return;const[E,O]=_.split(c),[R,T]=C.split(c),D=s(E,R);if(D!==void 0)return D||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 x(_){return Number.isInteger(_)&&_<=w&&_>=b}function h(_){return Number.isInteger(_)}function y(){return!0}const S=/[^\\]\\Z/;function A(_){if(S.test(_))return!1;try{return new RegExp(_),!0}catch{return!1}}})(ic)),ic}var ac={},zg;function dM(){return zg||(zg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=b1(),r=Ne(),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:o,schemaCode:l})=>r.str`should be ${a[o].okStr} ${l}`,params:({keyword:o,schemaCode:l})=>r._`{comparison: ${a[o].okStr}, limit: ${l}}`};e.formatLimitDefinition={keyword:Object.keys(a),type:"string",schemaType:"string",$data:!0,error:n,code(o){const{gen:l,data:u,schemaCode:c,keyword:f,it:m}=o,{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}),x=l.const("fmt",r._`${w}[${k.schemaCode}]`);o.fail$data(r.or(r._`typeof ${x} != "object"`,r._`${x} instanceof RegExp`,r._`typeof ${x}.compare != "function"`,b(x)))}function g(){const w=k.schema,x=p.formats[w];if(!x||x===!0)return;if(typeof x!="object"||x instanceof RegExp||typeof x.compare!="function")throw new Error(`"${f}": format "${w}" does not define "compare" function`);const h=l.scopeValue("formats",{key:w,ref:x,code:d.code.formats?r._`${d.code.formats}${r.getProperty(w)}`:void 0});o.fail$data(b(h))}function b(w){return r._`${w}.compare(${u}, ${c}) ${a[f].fail} 0`}},dependencies:["format"]};const s=o=>(o.addKeyword(e.formatLimitDefinition),o);e.default=s})(ac)),ac}var Ug;function mM(){return Ug||(Ug=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=fM(),i=dM(),a=Ne(),n=new a.Name("fullFormats"),s=new a.Name("fastFormats"),o=(u,c={keywords:!0})=>{if(Array.isArray(c))return l(u,c,r.fullFormats,n),u;const[f,m]=c.mode==="fast"?[r.fastFormats,s]:[r.fullFormats,n],d=c.formats||r.formatNames;return l(u,d,f,m),c.keywords&&i.default(u),u};o.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=o,Object.defineProperty(t,"__esModule",{value:!0}),t.default=o})(Ao,Ao.exports)),Ao.exports}var pM=mM();const Bg=Kr(pM),hM={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},gM=/^(#?([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*\)))$/,yM=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function vM(e,t,r={},i,a=cM,n){let s=new a({...hM,...r});return i?Bg(s,i):i!==!1&&Bg(s),s.addFormat("data-url",yM),s.addFormat("color",gM),s.addKeyword(ld),Array.isArray(e)&&s.addMetaSchema(e),Ue(t)&&Object.keys(t).forEach(o=>{s.addFormat(o,t[o])}),n&&(s=n(s)),s}class bM{constructor(t,r){this.hasRegisteredRootSchema=!1;const{additionalMetaSchemas:i,customFormats:a,ajvOptionsOverrides:n,ajvFormatOptions:s,AjvClass:o,extenderFn:l,suppressDuplicateFiltering:u}=t;this.ajv=vM(i,a,n,s,o,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,s;try{t[nt]&&(s=this.ajv.getSchema(t[nt])),s===void 0&&(s=this.ajv.compile(t)),s(r)}catch(l){n=l}let o;return s&&(typeof this.localizer=="function"&&(((i=s.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(s.errors),((a=s.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(", "))})),o=s.errors||void 0,s.errors=null),{errors:o,validationError:n}}validateFormData(t,r,i,a,n){const s=this.rawValidation(r,t);return iD(this,s,t,r,i,a,n,this.suppressDuplicateFiltering)}handleSchemaUpdate(t){var r,i;if(this.lastSeenRootSchema===t&&this.hasRegisteredRootSchema)return;const a=(r=t[nt])!==null&&r!==void 0?r:Lb;this.ajv.getSchema(a)===void 0?this.ajv.addSchema(t,a):$e(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=qd(t),s=(a=n[nt])!==null&&a!==void 0?a:NF(n);let o;return o=this.ajv.getSchema(s),o===void 0&&(o=this.ajv.addSchema(n,s).getSchema(s)||this.ajv.compile(n)),o(r)}catch(n){return console.warn("Error encountered compiling schema:",n),!1}}}function Bo(e={},t){return new bM(e,t)}Bo();var sc,Vg;function kM(){return Vg||(Vg=1,sc=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}}),sc}var oc,Hg;function wM(){return Hg||(Hg=1,oc=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}}),oc}var lc,Wg;function xM(){return Wg||(Wg=1,lc=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}}),lc}var uc,Kg;function SM(){return Kg||(Kg=1,uc=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}}),uc}var cc,Gg;function CM(){return Gg||(Gg=1,cc=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}}),cc}var fc,Jg;function EM(){return Jg||(Jg=1,fc=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}}),fc}var dc,Yg;function AM(){return Yg||(Yg=1,dc=function(t){if(t&&t.length)for(const n of t){let s;switch(n.keyword){case"additionalItems":case"items":s="";var a=n.params.limit;s+="saa sisältää enintään "+a,a==1?s+=":n elementin":s+=" elementtiä";break;case"additionalProperties":s="ei saa sisältää ylimääräisiä ominaisuuksia";break;case"anyOf":s='täytyy vastata "anyOf" skeemaa';break;case"const":s="täytyy olla yhtä kuin vakio";break;case"contains":s="täytyy sisältää kelvollinen elementti";break;case"dependencies":case"dependentRequired":s="";var a=n.params.depsCount;s+="täytyy sisältää "+n.params.deps+" ominaisuu",a==1?s+="s":s+="det",s+=" kun "+n.params.property+"-ominaisuus on läsnä";break;case"discriminator":switch(n.params.error){case"tag":s='tunniste "'+n.params.tag+'" täytyy olla merkkijono';break;case"mapping":s='tunnisteen "'+n.params.tag+'" arvon muoto pitää olla oneOf';break;default:s='täytyy läpäistä "'+n.keyword+'" avainsanatarkistus'}break;case"enum":s="täytyy olla yhtä kuin jokin sallituista arvoista";break;case"false schema":s="boolean skeema on väärä";break;case"format":s='täytyy vastata muotoa "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="täytyy olla "+r;break;case"formatMinimum":case"formatExclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="täytyy olla "+r;break;case"if":s='täytyy vastata "'+n.params.failingKeyword+'" skeemaa';break;case"maximum":case"exclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="täytyy olla "+r;break;case"maxItems":s="";var a=n.params.limit;s+="tulee sisältää enintään "+a+" ",a==1?s+="elementti":s+="elementtiä";break;case"maxLength":s="";var a=n.params.limit;s+="ei saa olla pidempi kuin "+a+" merkki",a!=1&&(s+="ä");break;case"maxProperties":s="";var a=n.params.limit;s+="tulee sisältää enintään "+a+" ",a==1?s+="ominaisuus":s+="ominaisuutta";break;case"minimum":case"exclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="täytyy olla "+r;break;case"minItems":s="";var a=n.params.limit;s+="tulee sisältää vähintään "+a+" ",a==1?s+="elementti":s+="elementtiä";break;case"minLength":s="";var a=n.params.limit;s+="ei saa olla lyhyempi kuin "+a+" merkki",a!=1&&(s+="ä");break;case"minProperties":s="";var a=n.params.limit;s+="tulee sisältää vähintään "+a+" ",a==1?s+="ominaisuus":s+="ominaisuutta";break;case"multipleOf":s="täytyy olla moninkertainen: "+n.params.multipleOf;break;case"not":s='ei saa olla hyväksytty skeeman "not" mukaan';break;case"oneOf":s='täytyy vastata täsmälleen yhtä "oneOf" -kohdassa määriteltyä skeemaa';break;case"pattern":s='täytyy vastata muotoa "'+n.params.pattern+'"';break;case"patternRequired":s='täytyy sisältää ominaisuus joka vastaa kaavaa "'+n.params.missingPattern+'"';break;case"propertyNames":s="ominaisuuden nimi on virheellinen";break;case"required":s="täytyy sisältää vaadittu ominaisuus "+n.params.missingProperty;break;case"type":s="";var i=n.params.type;s+="täytyy olla ",i=="number"?s+="numero":i=="integer"?s+="kokonaisluku":i=="string"?s+="merkkijono":i=="boolean"?s+="boolean":s+=i;break;case"unevaluatedItems":s="";var a=n.params.len;s+="ei saa olla enemmän kuin "+a+" elementti",a!=1&&(s+="ä");break;case"unevaluatedProperties":s="ei saa sisältää arvioimattomia ominaisuuksia";break;case"uniqueItems":s="ei saa sisältää duplikaatteja (elementit ## "+n.params.j+" ja "+n.params.i+" ovat identtiset)";break;default:s='täytyy läpäistä "'+n.keyword+'" avainsanatarkistus'}n.message=s}}),dc}var mc,Xg;function OM(){return Xg||(Xg=1,mc=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}}),mc}var pc,Zg;function _M(){return Zg||(Zg=1,pc=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}}),pc}var hc,Qg;function PM(){return Qg||(Qg=1,hc=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}}),hc}var gc,ey;function IM(){return ey||(ey=1,gc=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}}),gc}var yc,ty;function TM(){return ty||(ty=1,yc=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}}),yc}var vc,ry;function jM(){return ry||(ry=1,vc=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}}),vc}var bc,ny;function RM(){return ny||(ny=1,bc=function(t){if(t&&t.length)for(const n of t){let s;switch(n.keyword){case"additionalItems":case"items":s="";var a=n.params.limit;s+="kan ikke ha mer enn "+a+" element",a!=1&&(s+="er");break;case"additionalProperties":s="kan ikke ha flere egenskaper";break;case"anyOf":s='må samsvare med et schema i "anyOf"';break;case"const":s="må være lik konstanten";break;case"contains":s="må inneholde et gyldig element";break;case"dependencies":case"dependentRequired":s="";var a=n.params.depsCount;s+="må ha egenskapen",a!=1&&(s+="e"),s+=" "+n.params.deps+" når egenskapen "+n.params.property+" er angitt";break;case"discriminator":switch(n.params.error){case"tag":s='tag "'+n.params.tag+'" must be string';break;case"mapping":s='value of tag "'+n.params.tag+'" must be in oneOf';break;default:s="må samsvare med valideringen for "+n.keyword}break;case"enum":s="må være lik en av de forhåndsdefinerte verdiene";break;case"false schema":s="boolsk schema er usannt";break;case"format":s='må stemme overens med formatet "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="må være "+r;break;case"formatMinimum":case"formatExclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="må være "+r;break;case"if":s='must match "'+n.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="må være "+r;break;case"maxItems":s="";var a=n.params.limit;s+="kan ikke ha fler enn "+a+" element",a!=1&&(s+="er");break;case"maxLength":s="";var a=n.params.limit;s+="kan ikke være lengre enn "+a+" tegn";break;case"maxProperties":s="";var a=n.params.limit;s+="kan ikke ha mer enn "+a+" egenskap",a!=1&&(s+="er");break;case"minimum":case"exclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="må være "+r;break;case"minItems":s="";var a=n.params.limit;s+="kan ikke ha færre enn "+a+" element",a!=1&&(s+="er");break;case"minLength":s="";var a=n.params.limit;s+="kan ikke være kortere enn "+a+" tegn";break;case"minProperties":s="";var a=n.params.limit;s+="kan ikke ha mindre enn "+a+" egenskap",a!=1&&(s+="er");break;case"multipleOf":s="må være et multiplum av "+n.params.multipleOf;break;case"not":s='kan ikke samsvare med schema i "not"';break;case"oneOf":s='må samsvare med nøyaktig ett schema i "oneOf"';break;case"pattern":s='må samsvare med mønsteret "'+n.params.pattern+'"';break;case"patternRequired":s='må ha en egenskap som samsvarer med mønsteret "'+n.params.missingPattern;break;case"propertyNames":s="egenskapen med navnet '",n.params.propertyNameout+="' er ugyldig";break;case"required":s="må ha den påkrevde egenskapen "+n.params.missingProperty;break;case"type":s="";var i=n.params.type;s+="må være ",i=="number"?s+="et tall":i=="integer"?s+="et heltall":i=="string"?s+="en streng":i=="boolean"?s+="ja eller nei":s+=i;break;case"unevaluatedItems":s="";var a=n.params.len;s+="must NOT have more than "+a+" item",a!=1&&(s+="s");break;case"unevaluatedProperties":s="must NOT have unevaluated properties";break;case"uniqueItems":s="kan ikke ha duplikate elemeneter (elementene ## "+n.params.j+" og "+n.params.i+" er identiske)";break;default:s="må samsvare med valideringen for "+n.keyword}n.message=s}}),bc}var kc,iy;function NM(){return iy||(iy=1,kc=function(t){if(t&&t.length)for(const n of t){let s;switch(n.keyword){case"additionalItems":case"items":s="";var a=n.params.limit;s+="mag niet meer dan "+a+" item",a!=1&&(s+="s"),s+=" bevatten";break;case"additionalProperties":s="mag geen extra eigenschappen bevatten";break;case"anyOf":s='moet overeenkomen met een schema in "anyOf"';break;case"const":s="moet gelijk zijn aan constante";break;case"contains":s="moet een geldig item bevatten";break;case"dependencies":case"dependentRequired":s="";var a=n.params.depsCount;s+="moet de eigenschap",a!=1&&(s+="pen"),s+=" "+n.params.deps+" bevatten als "+n.params.property+" is gedefinieerd";break;case"discriminator":switch(n.params.error){case"tag":s='tag "'+n.params.tag+'" moet een tekenreeks zijn';break;case"mapping":s='de waarde van het veld "'+n.params.tag+'" moet voorkomen in de oneOf';break;default:s='moet sleutelwoord validatie "'+n.keyword+'" doorstaan'}break;case"enum":s="moet overeenkomen met één van de voorgedefinieerde waarden";break;case"false schema":s="boolean schema is fout";break;case"format":s='moet overeenkomen met het volgende formaat: "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="moet "+r+" zijn";break;case"formatMinimum":case"formatExclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="moet "+r+" zijn";break;case"if":s='moet overeenkomen met "'+n.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="moet "+r+" zijn";break;case"maxItems":s="";var a=n.params.limit;s+="mag niet meer dan "+a+" item",a!=1&&(s+="s"),s+=" bevatten";break;case"maxLength":s="";var a=n.params.limit;s+="mag niet langer dan "+a+" karakter",a!=1&&(s+="s"),s+=" zijn";break;case"maxProperties":s="";var a=n.params.limit;s+="mag niet meer dan "+a+" eigenschap",a!=1&&(s+="pen"),s+=" bevatten";break;case"minimum":case"exclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="moet "+r+" zijn";break;case"minItems":s="";var a=n.params.limit;s+="mag niet minder dan "+a+" item",a!=1&&(s+="s"),s+=" bevatten";break;case"minLength":s="";var a=n.params.limit;s+="mag niet korter dan "+a+" karakter",a!=1&&(s+="s"),s+=" zijn";break;case"minProperties":s="";var a=n.params.limit;s+="mag niet minder dan "+a+" eigenschap",a!=1&&(s+="pen"),s+=" bevatten";break;case"multipleOf":s="moet een veelvoud van "+n.params.multipleOf+" zijn";break;case"not":s='mag niet overeenkomen met een schema in "not"';break;case"oneOf":s='moet overeenkomen met één schema in "oneOf"';break;case"pattern":s='moet overeenkomen met het volgende patroon: "'+n.params.pattern+'"';break;case"patternRequired":s='moet een eigenschap bevatten die overeenkomt met het pattroon: "'+n.params.missingPattern+'"';break;case"propertyNames":s="eigenschapnaam is ongeldig";break;case"required":s="moet de eigenschap "+n.params.missingProperty+" bevatten";break;case"type":s="";var i=n.params.type;s+="moet een ",i=="number"?s+="nummer":i=="integer"?s+="geheel getal":i=="string"?s+="tekenreeks":i=="boolean"&&(s+="ja of nee waarde"),s+=" ("+i+") bevatten";break;case"unevaluatedItems":s="";var a=n.params.len;s+="mag niet meer dan "+a+" item",a!=1&&(s+="s"),s+=" bevatten";break;case"unevaluatedProperties":s="mag geen ongecontroleerde eigenschappen bevatten";break;case"uniqueItems":s="mag geen gedupliceerde items bevatten (items ## "+n.params.j+" en "+n.params.i+" zijn identiek)";break;default:s='moet sleutelwoord validatie "'+n.keyword+'" doorstaan'}n.message=s}}),kc}var wc,ay;function FM(){return ay||(ay=1,wc=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}}),wc}var xc,sy;function DM(){return sy||(sy=1,xc=function(t){if(t&&t.length)for(const n of t){let s;switch(n.keyword){case"additionalItems":case"items":s="não são permitidos itens adicionais (mais do que "+a+")";break;case"additionalProperties":s="não são permitidas propriedades adicionais";break;case"anyOf":s='os dados não correspondem a nenhum schema de "anyOf"';break;case"const":s="deve ser igual à constante";break;case"contains":s="deve conter um item válido";break;case"dependencies":case"dependentRequired":s="";var a=n.params.depsCount;s+=" deve ter propriedade",a!=1&&(s+="s"),s+=" "+n.params.deps+" quando a propriedade "+n.params.property+" estiver presente";break;case"discriminator":switch(n.params.error){case"tag":s='a tag "'+n.params.tag+'" deve ser uma string';break;case"mapping":s='o valor da tag "'+n.params.tag+'" deve estar no oneOf';break;default:s='deve passar a validação da keyword "'+n.keyword+'"'}break;case"enum":s="deve ser igual a um dos valores permitidos";break;case"false schema":s='o schema booleano é "false"';break;case"format":s='deve corresponder ao formato "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="deve ser "+r;break;case"formatMinimum":case"formatExclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="deve ser "+r;break;case"if":s='deve corresponder ao schema "'+n.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="deve ser "+r;break;case"maxItems":s="";var a=n.params.limit;s+="não deve ter mais que "+a+" elemento",a!=1&&(s+="s");break;case"maxLength":s="";var a=n.params.limit;s+="não deve ser maior que "+a+" caracter",a!=1&&(s+="es");break;case"maxProperties":s="";var a=n.params.limit;s+="não deve ter mais que "+a+" propriedade",a!=1&&(s+="s");break;case"minimum":case"exclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="deve ser "+r;break;case"minItems":s="";var a=n.params.limit;s+="não deve ter menos que "+a+" elemento",a!=1&&(s+="s");break;case"minLength":s="";var a=n.params.limit;s+="não deve ser mais curta que "+a+" caracter",a!=1&&(s+="es");break;case"minProperties":s="";var a=n.params.limit;s+="não deve ter menos que "+a+" propriedade",a!=1&&(s+="s");break;case"multipleOf":s="deve ser múltiplo de "+n.params.multipleOf;break;case"not":s='não deve ser valido segundo o schema em "not"';break;case"oneOf":s='deve corresponder exatamente com um schema em "oneOf"';break;case"pattern":s='deve corresponder ao padrão "'+n.params.pattern+'"';break;case"patternRequired":s='deve ter a propriedade correspondente ao padrão "'+n.params.missingPattern+'"';break;case"propertyNames":s="o nome da propriedade é inválido";break;case"required":s="deve ter a propriedade obrigatória "+n.params.missingProperty;break;case"type":s="";var i=n.params.type;s+="deve ser ",i=="number"?s+="um número":i=="integer"?s+="um número inteiro":i=="string"?s+="um texto":i=="boolean"?s+="um booleano":s+=i;break;case"unevaluatedItems":s="";var a=n.params.len;s+="não pode possuir mais que "+a+" ",a==1?s+="item":s+="itens";break;case"unevaluatedProperties":s="não pode possuir propridades não avaliadas";break;case"uniqueItems":s="não deve ter itens duplicados (os itens ## "+n.params.j+" e "+n.params.i+" são idênticos)";break;default:s='deve passar a validação da keyword "'+n.keyword+'"'}n.message=s}}),xc}var Sc,oy;function MM(){return oy||(oy=1,Sc=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}}),Sc}var Cc,ly;function LM(){return ly||(ly=1,Cc=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}}),Cc}var Ec,uy;function qM(){return uy||(uy=1,Ec=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}}),Ec}var Ac,cy;function $M(){return cy||(cy=1,Ac=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}}),Ac}var Oc,fy;function zM(){return fy||(fy=1,Oc=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}}),Oc}var _c,dy;function UM(){return dy||(dy=1,_c=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}}),_c}var Pc,my;function BM(){return my||(my=1,Pc={en:kM(),ar:wM(),ca:xM(),cs:SM(),de:CM(),es:EM(),fi:AM(),fr:OM(),hu:_M(),id:PM(),it:IM(),ja:TM(),ko:jM(),nb:RM(),nl:NM(),pl:FM(),"pt-BR":DM(),ru:MM(),sk:LM(),sv:qM(),th:$M(),zh:zM(),"zh-TW":UM()}),Pc}var VM=BM();const Ta=Kr(VM),Oo={flex:1,paddingLeft:6,paddingRight:6};function HM(e){const{disabled:t,hasCopy:r,hasMoveDown:i,hasMoveUp:a,hasRemove:n,fieldPathId:s,onCopyItem:o,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 j.jsxs("div",{className:"d-flex flex-row",children:[(a||i)&&j.jsx("div",{className:"m-0 p-0",children:j.jsx(v,{id:ir(s,"moveUp"),className:"rjsf-array-item-move-up",style:Oo,disabled:t||f||!a,onClick:c,uiSchema:d,registry:m})}),(a||i)&&j.jsx("div",{className:"m-0 p-0",children:j.jsx(k,{id:ir(s,"moveDown"),className:"rjsf-array-item-move-down",style:Oo,disabled:t||f||!i,onClick:u,uiSchema:d,registry:m})}),r&&j.jsx("div",{className:"m-0 p-0",children:j.jsx(p,{id:ir(s,"copy"),className:"rjsf-array-item-copy",style:Oo,disabled:t||f,onClick:o,uiSchema:d,registry:m})}),n&&j.jsx("div",{className:"m-0 p-0",children:j.jsx(g,{id:ir(s,"remove"),className:"rjsf-array-item-remove",style:Oo,disabled:t||f,onClick:l,uiSchema:d,registry:m})})]})}function WM(e){const{children:t,buttonsProps:r,hasToolbar:i,registry:a,uiSchema:n}=e,s=me(n),o=ge("ArrayFieldItemButtonsTemplate",a,s);return j.jsx("div",{children:j.jsxs("div",{className:"row mb-2 d-flex align-items-center",children:[j.jsx("div",{className:i?"col-9 col-lg-9":"col-12",children:t}),i&&j.jsx("div",{className:"col-3 col-lg-3 py-4",children:j.jsx(o,{...r})})]})})}function KM(e){const{canAdd:t,disabled:r,fieldPathId:i,items:a,optionalDataControl:n,onAddClick:s,readonly:o,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=!o&&!r;return j.jsx("div",{children:j.jsx("div",{className:"row p-0 m-0",children:j.jsxs("div",{className:"col p-0 m-0",children:[j.jsx(p,{fieldPathId:i,title:d.title||f,required:u,schema:c,uiSchema:m,registry:l,optionalDataControl:g?n:void 0}),j.jsx(k,{fieldPathId:i,description:d.description||c.description,schema:c,uiSchema:m,registry:l}),g?void 0:n,j.jsxs("div",{className:"container-fluid p-0 m-0",children:[a,t&&j.jsxs("div",{className:"row mt-2",children:[j.jsx("div",{className:"col-9"}),j.jsx("div",{className:"col-3 py-4",children:j.jsx(v,{id:ir(i,"add"),className:"rjsf-array-item-add",onClick:s,disabled:r||o,uiSchema:m,registry:l})})]})]})]})})})}const ks={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},GM=()=>j.jsx("svg",{...ks,children:j.jsx("path",{d:"M8 13V3M3.5 7.5L8 3l4.5 4.5"})}),JM=()=>j.jsx("svg",{...ks,children:j.jsx("path",{d:"M8 3v10M3.5 8.5L8 13l4.5-4.5"})}),YM=()=>j.jsxs("svg",{...ks,children:[j.jsx("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.5"}),j.jsx("path",{d:"M10.5 2.5h-7a1 1 0 0 0-1 1v7"})]}),k1=()=>j.jsx("svg",{...ks,children:j.jsx("path",{d:"M3.5 8h9"})}),XM=()=>j.jsx("svg",{...ks,children:j.jsx("path",{d:"M8 3.5v9M3.5 8h9"})});function ha({iconType:e,icon:t,className:r,uiSchema:i,registry:a,variant:n="light",...s}){return j.jsx("button",{type:"button",className:`btn btn-${n} btn-sm ${r||""}`.trim(),...s,children:t})}function ZM(e){const{translateString:t}=e.registry;return j.jsx(ha,{title:t(_e.CopyButton),...e,icon:j.jsx(YM,{})})}function QM(e){const{translateString:t}=e.registry;return j.jsx(ha,{title:t(_e.MoveUpButton),...e,icon:j.jsx(GM,{})})}function eL(e){const{translateString:t}=e.registry;return j.jsx(ha,{title:t(_e.MoveDownButton),...e,icon:j.jsx(JM,{})})}function tL(e){const{translateString:t}=e.registry;return j.jsx(ha,{title:t(_e.RemoveButton),...e,variant:"danger",icon:j.jsx(k1,{})})}function rL(e){const{translateString:t}=e.registry;return j.jsx(ha,{title:t(_e.ClearButton),...e,icon:j.jsx(k1,{})})}function nL({className:e,...t}){const{translateString:r}=t.registry;return j.jsx(ha,{...t,variant:"primary",className:`ml-1 ${e||""}`.trim(),style:{width:"100%"},title:r(_e.AddItemButton),icon:j.jsx(XM,{})})}function iL({uiSchema:e}){const{submitText:t,norender:r,props:i={}}=jd(e);return r?null:j.jsx("div",{children:j.jsx("button",{type:"submit",...i,className:`btn btn-primary ${i.className||""}`.trim(),children:t})})}const aL={SubmitButton:iL,AddButton:nL,CopyButton:ZM,MoveDownButton:eL,MoveUpButton:QM,RemoveButton:tL,ClearButton:rL};function sL({id:e,description:t}){return t?j.jsx("div",{children:j.jsx("div",{id:e,className:"mb-3",children:typeof t=="string"?j.jsx(Ir,{children:t}):t})}):null}function oL({errors:e=[],fieldPathId:t}){return e.length===0?null:j.jsx("ul",{className:"list-group",id:Nd(t),children:e.filter(Boolean).map((r,i)=>j.jsx("li",{className:"list-group-item border-0 m-0 p-0",children:j.jsx("small",{className:"m-0 text-danger",children:typeof r=="string"?j.jsx(Ir,{children:r}):r})},`${r}-${i}`))})}function lL({fieldPathId:e,help:t,hasErrors:r}){return t?j.jsx("small",{className:`form-text ${r?"text-danger":"text-muted"}`,id:Dd(e),children:t}):null}function uL(e){var g,b;const{id:t,children:r,displayLabel:i,rawErrors:a=[],errors:n,help:s,rawDescription:o,hidden:l,label:u,required:c,schema:f,uiSchema:m,registry:d}=e,p=me(m),k=ge("WrapIfAdditionalTemplate",d,p);if(l)return j.jsx("div",{className:"hidden",children:r});const v=a.length>0;return j.jsxs(j.Fragment,{children:[((g=f==null?void 0:f.markdown)==null?void 0:g.before)&&j.jsx("div",{className:"fcode-form-markdown",children:j.jsx(tf,{children:f.markdown.before})}),j.jsx(k,{...e,children:j.jsxs("div",{className:"form-group",children:[i&&j.jsxs("label",{className:`form-label${v?" text-danger":""}`,htmlFor:t,children:[j.jsx(Ir,{components:{p:"span"},children:u}),c?"*":null]}),r,i&&o&&j.jsx("small",{className:`form-text ${v?"text-danger":"text-muted"}`,children:j.jsx(Ir,{children:o})}),n,s]})}),((b=f==null?void 0:f.markdown)==null?void 0:b.after)&&j.jsx("div",{className:"fcode-form-markdown",children:j.jsx(tf,{children:f.markdown.after})})]})}function cL(e){const{description:t,disabled:r,formData:i,fieldPathId:a,onAddProperty:n,optionalDataControl:s,properties:o,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&&o.length===0)return null;const w=!l&&!r;return j.jsxs(j.Fragment,{children:[m&&j.jsx(k,{id:Fl(a),title:m,required:c,schema:f,uiSchema:d,registry:u,optionalDataControl:w?s:void 0}),t&&j.jsx(v,{id:Bn(a),description:t,schema:f,uiSchema:d,registry:u}),w?void 0:s,j.jsxs("div",{className:"container-fluid p-0",children:[o.map(x=>j.jsx("div",{className:`row mb-2${x.hidden?" d-none":""}`,children:j.jsx("div",{className:"col-12",children:x.content})},x.name)),qb(f,d,i)&&j.jsx("div",{className:"row",children:j.jsx("div",{className:"col-3 py-4",children:j.jsx(g,{id:ir(a,"add"),className:"rjsf-object-property-expand",onClick:n,disabled:r||l,uiSchema:d,registry:u})})})]})]})}function fL({id:e,title:t,uiSchema:r,optionalDataControl:i}){const a=me(r);return j.jsxs("div",{id:e,className:"my-1",children:[j.jsx("h5",{children:j.jsx(Ir,{children:a.title||t})}),j.jsx("hr",{className:"border-0",style:{height:"1px"}}),i]})}function dL(e){const{id:t,classNames:r,style:i,disabled:a,label:n,onKeyRenameBlur:s,onRemoveProperty:o,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=En in c,x=[r];!f&&m&&m.length>0&&x.push("has-error has-danger");const h=x.filter(Boolean).join(" ").trim();if(!w)return j.jsx("div",{className:h,style:i,children:d});const y=`${t}-key`;return j.jsx("div",{className:h,style:i,children:j.jsxs("div",{className:"row",children:[j.jsx("div",{className:"col",children:j.jsxs("div",{className:"form-group",children:[j.jsx("label",{className:"form-label",htmlFor:y,children:g(_e.KeyLabel,[n])}),j.jsx("input",{className:"form-control",type:"text",id:y,name:y,required:u,disabled:a||l,defaultValue:n,onBlur:l?void 0:s})]})}),j.jsx("div",{className:"col",children:d}),j.jsx("div",{className:"col-auto py-4",children:j.jsx(b,{disabled:a||l,onClick:o,uiSchema:p,registry:k})})]})})}const mL=Object.freeze(Object.defineProperty({__proto__:null,ArrayFieldItemButtonsTemplate:HM,ArrayFieldItemTemplate:WM,ArrayFieldTemplate:KM,ButtonTemplates:aL,DescriptionFieldTemplate:sL,FieldErrorTemplate:oL,FieldHelpTemplate:lL,FieldTemplate:uL,ObjectFieldTemplate:cL,TitleFieldTemplate:fL,WrapIfAdditionalTemplate:dL},Symbol.toStringTag,{value:"Module"}));function pL({schema:e,uiSchema:t,options:r,id:i,value:a,disabled:n,readonly:s,label:o,hideLabel:l,autofocus:u=!1,onBlur:c,onFocus:f,onChange:m,registry:d}){const p=ge("DescriptionFieldTemplate",d,r),k=Ha(e),v=U.useCallback(y=>m(y.target.checked),[m]),g=U.useCallback(y=>c(i,y.target.checked),[c,i]),b=U.useCallback(y=>f(i,y.target.checked),[f,i]),h=me(t).widget==="checkbox"?void 0:r.description??e.description;return j.jsxs("div",{className:`checkbox ${n||s?"disabled":""}`.trim(),children:[!l&&h&&j.jsx(p,{id:Bn(i),description:h,schema:e,uiSchema:t,registry:d}),j.jsxs("div",{className:"form-check",children:[j.jsx("input",{type:"checkbox",className:"form-check-input",id:i,name:i,checked:typeof a>"u"?!1:a,required:k,disabled:n||s,autoFocus:u,onChange:v,onBlur:g,onFocus:b,"aria-describedby":Rr(i)}),!l&&!!o&&j.jsx("label",{className:"form-check-label",htmlFor:i,children:j.jsx(Ir,{components:{p:"span"},children:o})})]})]})}function hL({id:e,disabled:t,options:r,value:i,autofocus:a=!1,readonly:n,required:s,onChange:o,onBlur:l,onFocus:u}){const{inline:c=!1,enumOptions:f,enumDisabled:m,emptyValue:d}=r,p=vs(r),k=Array.isArray(i)?i:[i],v=U.useCallback(({target:b})=>l(e,_r(b==null?void 0:b.value,f,p,d)),[l,e,f,d,p]),g=U.useCallback(({target:b})=>u(e,_r(b==null?void 0:b.value,f,p,d)),[u,e,f,d,p]);return j.jsx("div",{id:e,children:Array.isArray(f)&&f.map((b,w)=>{const x=da(b.value,k),h=Array.isArray(m)&&m.includes(b.value),y=Dl(e,w),S=A=>{A.target.checked?o(a1(w,k,f)):o(n1(w,k,f))};return j.jsxs("div",{className:`custom-control custom-checkbox bg-transparent border-0${c?" custom-control-inline":""}`,children:[j.jsx("input",{type:"checkbox",className:"custom-control-input",id:y,name:e,checked:x,value:ys(b.value,w,p),required:s,disabled:t||h||n,autoFocus:a&&w===0,onChange:S,onBlur:v,onFocus:g,"aria-describedby":Rr(e)}),j.jsx("label",{className:"custom-control-label",htmlFor:y,children:j.jsx(Ir,{components:{p:"span"},children:b.label})})]},String(b.value))})})}function gL({options:e,value:t,required:r,disabled:i,readonly:a,autofocus:n=!1,onBlur:s,onFocus:o,onChange:l,id:u}){const{enumOptions:c,enumDisabled:f,inline:m,emptyValue:d}=e,p=vs(e),k=U.useCallback(({target:g})=>s(u,_r(g==null?void 0:g.value,c,p,d)),[s,c,d,u,p]),v=U.useCallback(({target:g})=>o(u,_r(g==null?void 0:g.value,c,p,d)),[o,c,d,u,p]);return j.jsx("div",{id:u,role:"radiogroup",children:Array.isArray(c)&&c.map((g,b)=>{const w=da(g.value,t),x=Array.isArray(f)&&f.includes(g.value),h=Dl(u,b);return j.jsxs("div",{className:`form-check${m?" form-check-inline":""}`,children:[j.jsx("input",{type:"radio",className:"form-check-input",id:h,name:u,checked:w,value:ys(g.value,b,p),required:r,disabled:i||x||a,autoFocus:n&&b===0,onChange:()=>l(g.value),onBlur:k,onFocus:v,"aria-describedby":Rr(u)}),j.jsx("label",{className:"form-check-label",htmlFor:h,children:j.jsx(Ir,{components:{p:"span"},children:g.label})})]},String(g.value))})})}const yL=5;function vL({id:e,options:t,placeholder:r,value:i,required:a,disabled:n,readonly:s,autofocus:o=!1,onChange:l,onBlur:u,onFocus:c}){const f=U.useCallback(({target:{value:p}})=>l(p===""?t.emptyValue:p),[l,t.emptyValue]),m=U.useCallback(({target:p})=>u(e,p==null?void 0:p.value),[u,e]),d=U.useCallback(({target:p})=>c(e,p==null?void 0:p.value),[c,e]);return j.jsx("textarea",{id:e,name:e,className:"form-control",value:i??"",placeholder:r,required:a,disabled:n,readOnly:s,autoFocus:o,rows:t.rows||yL,onChange:f,onBlur:m,onFocus:d,"aria-describedby":Rr(e)})}const bL=Object.freeze(Object.defineProperty({__proto__:null,CheckboxWidget:pL,CheckboxesWidget:hL,RadioWidget:gL,TextareaWidget:vL},Symbol.toStringTag,{value:"Module"})),py={templates:mL,widgets:bL},kL=e=>e==="{}"?`{
84
84
 
85
- }`:e,fL=e=>{const{onChange:t,onBlur:r,onFocus:i,fieldPathId:a,schema:{title:n,description:s},formData:o,readonly:l,disabled:u}=e,c=B.useRef(null),[f,m]=B.useState(cL(JSON.stringify(o||{},null,2))),d=B.useCallback(b=>{m(b.target.value)},[t]),p=B.useCallback(function(b){c.current&&b.key=="Tab"&&b.preventDefault()},[]),k=B.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=B.useCallback(b=>{i(a.$id,b.target.value)},[i,a]),g=f||JSON.stringify(o,null,2)||"{}";return j.jsxs("div",{className:"form-group",children:[n&&j.jsx("label",{className:"form-label",htmlFor:a.$id,children:n}),j.jsxs("div",{className:"wrapper",children:[j.jsx("textarea",{id:a.$id,ref:c,rows:g.split(`
86
- `).length,value:g,className:tn(["form-control","textarea"]),onChange:d,onKeyDown:p,onFocus:v,onBlur:k,readOnly:l,disabled:u}),j.jsx("div",{className:"shadow",children:f})]}),j.jsx("small",{className:"text-muted form-text",children:j.jsx(Ir,{children:s})})]})},dL=e=>{const{fieldPathId:t,onChange:r,schema:{title:i,description:a},disabled:n}=e;return j.jsxs("div",{className:"form-group",children:[j.jsx("div",{className:"wrapper",children:j.jsx("button",{id:t.$id,type:"submit",className:"btn btn-primary",onClick:()=>{r(!0,t.path)},disabled:n,children:i})}),j.jsx("small",{className:"text-muted form-text",children:j.jsx(Ir,{children:a})})]})};function cy(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 mL(e){if(Array.isArray(e))return e}function pL(e,t,r){return(t=wL(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hL(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,a,n,s,o=[],l=!0,u=!1;try{if(n=(r=r.call(e)).next,t!==0)for(;!(l=(i=n.call(r)).done)&&(o.push(i.value),o.length!==t);l=!0);}catch(c){u=!0,a=c}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw a}}return o}}function gL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
87
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fy(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 dy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fy(Object(r),!0).forEach(function(i){pL(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fy(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function yL(e,t){if(e==null)return{};var r,i,a=vL(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 vL(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 bL(e,t){return mL(e)||hL(e,t)||xL(e,t)||gL()}function kL(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 wL(e){var t=kL(e,"string");return typeof t=="symbol"?t:t+""}function xL(e,t){if(e){if(typeof e=="string")return cy(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)?cy(e,t):void 0}}function SL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function my(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 py(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?my(Object(r),!0).forEach(function(i){SL(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):my(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function CL(){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 Fa(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 s=arguments.length,o=new Array(s),l=0;l<s;l++)o[l]=arguments[l];return t.apply(r,[].concat(a,o))}}}function il(e){return{}.toString.call(e).includes("Object")}function EL(e){return!Object.keys(e).length}function rs(e){return typeof e=="function"}function AL(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function OL(e,t){return il(t)||On("changeType"),Object.keys(t).some(function(r){return!AL(e,r)})&&On("changeField"),t}function _L(e){rs(e)||On("selectorType")}function PL(e){rs(e)||il(e)||On("handlerType"),il(e)&&Object.values(e).some(function(t){return!rs(t)})&&On("handlersType")}function IL(e){e||On("initialIsRequired"),il(e)||On("initialType"),EL(e)&&On("initialContent")}function TL(e,t){throw new Error(e[t]||e.default)}var jL={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"},On=Fa(TL)(jL),Eo={changes:OL,selector:_L,handler:PL,initial:IL};function RL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Eo.initial(e),Eo.handler(t);var r={current:e},i=Fa(DL)(r,t),a=Fa(FL)(r),n=Fa(Eo.changes)(e),s=Fa(NL)(r);function o(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return Eo.selector(u),u(r.current)}function l(u){CL(i,a,n,s)(u)}return[o,l]}function NL(e,t){return rs(t)?t(e.current):t}function FL(e,t){return e.current=py(py({},e.current),t),t}function DL(e,t,r){return rs(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 ML={create:RL},LL={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function qL(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 s=arguments.length,o=new Array(s),l=0;l<s;l++)o[l]=arguments[l];return t.apply(r,[].concat(a,o))}}}function $L(e){return{}.toString.call(e).includes("Object")}function zL(e){return e||hy("configIsRequired"),$L(e)||hy("configType"),e.urls?(UL(),{paths:{vs:e.urls.monacoBase}}):e}function UL(){console.warn(g1.deprecation)}function BL(e,t){throw new Error(e[t]||e.default)}var g1={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!
85
+ }`:e,wL=e=>{const{onChange:t,onBlur:r,onFocus:i,fieldPathId:a,schema:{title:n,description:s},formData:o,readonly:l,disabled:u}=e,c=U.useRef(null),[f,m]=U.useState(kL(JSON.stringify(o||{},null,2))),d=U.useCallback(b=>{m(b.target.value)},[t]),p=U.useCallback(function(b){c.current&&b.key=="Tab"&&b.preventDefault()},[]),k=U.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=U.useCallback(b=>{i(a.$id,b.target.value)},[i,a]),g=f||JSON.stringify(o,null,2)||"{}";return j.jsxs("div",{className:"form-group",children:[n&&j.jsx("label",{className:"form-label",htmlFor:a.$id,children:n}),j.jsxs("div",{className:"wrapper",children:[j.jsx("textarea",{id:a.$id,ref:c,rows:g.split(`
86
+ `).length,value:g,className:tn(["form-control","textarea"]),onChange:d,onKeyDown:p,onFocus:v,onBlur:k,readOnly:l,disabled:u}),j.jsx("div",{className:"shadow",children:f})]}),j.jsx("small",{className:"text-muted form-text",children:j.jsx(Ir,{children:s})})]})},xL=e=>{const{fieldPathId:t,onChange:r,schema:{title:i,description:a},disabled:n}=e;return j.jsxs("div",{className:"form-group",children:[j.jsx("div",{className:"wrapper",children:j.jsx("button",{id:t.$id,type:"submit",className:"btn btn-primary",onClick:()=>{r(!0,t.path)},disabled:n,children:i})}),j.jsx("small",{className:"text-muted form-text",children:j.jsx(Ir,{children:a})})]})};function hy(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 SL(e){if(Array.isArray(e))return e}function CL(e,t,r){return(t=TL(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EL(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,a,n,s,o=[],l=!0,u=!1;try{if(n=(r=r.call(e)).next,t!==0)for(;!(l=(i=n.call(r)).done)&&(o.push(i.value),o.length!==t);l=!0);}catch(c){u=!0,a=c}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw a}}return o}}function AL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
87
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gy(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 yy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gy(Object(r),!0).forEach(function(i){CL(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gy(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function OL(e,t){if(e==null)return{};var r,i,a=_L(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 _L(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 PL(e,t){return SL(e)||EL(e,t)||jL(e,t)||AL()}function IL(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 TL(e){var t=IL(e,"string");return typeof t=="symbol"?t:t+""}function jL(e,t){if(e){if(typeof e=="string")return hy(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)?hy(e,t):void 0}}function RL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vy(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 by(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vy(Object(r),!0).forEach(function(i){RL(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vy(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function NL(){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 La(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 s=arguments.length,o=new Array(s),l=0;l<s;l++)o[l]=arguments[l];return t.apply(r,[].concat(a,o))}}}function ll(e){return{}.toString.call(e).includes("Object")}function FL(e){return!Object.keys(e).length}function as(e){return typeof e=="function"}function DL(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ML(e,t){return ll(t)||Pn("changeType"),Object.keys(t).some(function(r){return!DL(e,r)})&&Pn("changeField"),t}function LL(e){as(e)||Pn("selectorType")}function qL(e){as(e)||ll(e)||Pn("handlerType"),ll(e)&&Object.values(e).some(function(t){return!as(t)})&&Pn("handlersType")}function $L(e){e||Pn("initialIsRequired"),ll(e)||Pn("initialType"),FL(e)&&Pn("initialContent")}function zL(e,t){throw new Error(e[t]||e.default)}var UL={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"},Pn=La(zL)(UL),_o={changes:ML,selector:LL,handler:qL,initial:$L};function BL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_o.initial(e),_o.handler(t);var r={current:e},i=La(WL)(r,t),a=La(HL)(r),n=La(_o.changes)(e),s=La(VL)(r);function o(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return _o.selector(u),u(r.current)}function l(u){NL(i,a,n,s)(u)}return[o,l]}function VL(e,t){return as(t)?t(e.current):t}function HL(e,t){return e.current=by(by({},e.current),t),t}function WL(e,t,r){return as(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 KL={create:BL},GL={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function JL(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 s=arguments.length,o=new Array(s),l=0;l<s;l++)o[l]=arguments[l];return t.apply(r,[].concat(a,o))}}}function YL(e){return{}.toString.call(e).includes("Object")}function XL(e){return e||ky("configIsRequired"),YL(e)||ky("configType"),e.urls?(ZL(),{paths:{vs:e.urls.monacoBase}}):e}function ZL(){console.warn(w1.deprecation)}function QL(e,t){throw new Error(e[t]||e.default)}var w1={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!
88
88
  You are using deprecated way of configuration.
89
89
 
90
90
  Instead of using
@@ -93,53 +93,53 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
93
93
  monaco.config({ paths: { vs: '...' } })
94
94
 
95
95
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
96
- `},hy=qL(BL)(g1),VL={config:zL},HL=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,s){return s(n)},a)}};function y1(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],y1(e[r],t[r]))}),dy(dy({},e),t)}var KL={type:"cancelation",msg:"operation is manually canceled"};function Ec(e){var t=!1,r=new Promise(function(i,a){e.then(function(n){return t?a(KL):i(n)}),e.catch(a)});return r.cancel=function(){return t=!0},r}var WL=["monaco"],GL=ML.create({config:LL,isInitialized:!1,resolve:null,reject:null,monaco:null}),v1=bL(GL,2),vs=v1[0],Dl=v1[1];function JL(e){var t=VL.config(e),r=t.monaco,i=yL(t,WL);Dl(function(a){return{config:y1(a.config,i),monaco:r}})}function YL(){var e=vs(function(t){var r=t.monaco,i=t.isInitialized,a=t.resolve;return{monaco:r,isInitialized:i,resolve:a}});if(!e.isInitialized){if(Dl({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Ec(Ac);if(window.monaco&&window.monaco.editor)return b1(window.monaco),e.resolve(window.monaco),Ec(Ac);HL(XL,QL)(e2)}return Ec(Ac)}function XL(e){return document.body.appendChild(e)}function ZL(e){var t=document.createElement("script");return e&&(t.src=e),t}function QL(e){var t=vs(function(i){var a=i.config,n=i.reject;return{config:a,reject:n}}),r=ZL("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function e2(){var e=vs(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;b1(i),e.resolve(i)},function(r){e.reject(r)})}function b1(e){vs().monaco||Dl({monaco:e})}function t2(){return vs(function(e){var t=e.monaco;return t})}var Ac=new Promise(function(e,t){return Dl({resolve:e,reject:t})}),al={config:JL,init:YL,__getMonacoInstance:t2},r2={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Oc=r2,n2={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},i2=n2;function a2({children:e}){return B.createElement("div",{style:i2.container},e)}var s2=a2,o2=s2;function l2({width:e,height:t,isEditorReady:r,loading:i,_ref:a,className:n,wrapperProps:s}){return B.createElement("section",{style:{...Oc.wrapper,width:e,height:t},...s},!r&&B.createElement(o2,null,i),B.createElement("div",{ref:a,style:{...Oc.fullWidth,...!r&&Oc.hide},className:n}))}var u2=l2,k1=B.memo(u2);function c2(e){B.useEffect(e,[])}var Ld=c2;function f2(e,t,r=!0){let i=B.useRef(!0);B.useEffect(i.current||!r?()=>{i.current=!1}:e,t)}var nr=f2;function Ba(){}function zi(e,t,r,i){return d2(e,i)||m2(e,t,r,i)}function d2(e,t){return e.editor.getModel(w1(e,t))}function m2(e,t,r,i){return e.editor.createModel(t,r,i?w1(e,i):void 0)}function w1(e,t){return e.Uri.parse(t)}function p2({original:e,modified:t,language:r,originalLanguage:i,modifiedLanguage:a,originalModelPath:n,modifiedModelPath:s,keepCurrentOriginalModel:o=!1,keepCurrentModifiedModel:l=!1,theme:u="light",loading:c="Loading...",options:f={},height:m="100%",width:d="100%",className:p,wrapperProps:k={},beforeMount:v=Ba,onMount:g=Ba}){let[b,w]=B.useState(!1),[C,h]=B.useState(!0),y=B.useRef(null),S=B.useRef(null),A=B.useRef(null),_=B.useRef(g),x=B.useRef(v),E=B.useRef(!1);Ld(()=>{let D=al.init();return D.then(L=>(S.current=L)&&h(!1)).catch(L=>(L==null?void 0:L.type)!=="cancelation"&&console.error("Monaco initialization: error:",L)),()=>y.current?T():D.cancel()}),nr(()=>{if(y.current&&S.current){let D=y.current.getOriginalEditor(),L=zi(S.current,e||"",i||r||"text",n||"");L!==D.getModel()&&D.setModel(L)}},[n],b),nr(()=>{if(y.current&&S.current){let D=y.current.getModifiedEditor(),L=zi(S.current,t||"",a||r||"text",s||"");L!==D.getModel()&&D.setModel(L)}},[s],b),nr(()=>{let D=y.current.getModifiedEditor();D.getOption(S.current.editor.EditorOption.readOnly)?D.setValue(t||""):t!==D.getValue()&&(D.executeEdits("",[{range:D.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),D.pushUndoStop())},[t],b),nr(()=>{var D,L;(L=(D=y.current)==null?void 0:D.getModel())==null||L.original.setValue(e||"")},[e],b),nr(()=>{let{original:D,modified:L}=y.current.getModel();S.current.editor.setModelLanguage(D,i||r||"text"),S.current.editor.setModelLanguage(L,a||r||"text")},[r,i,a],b),nr(()=>{var D;(D=S.current)==null||D.editor.setTheme(u)},[u],b),nr(()=>{var D;(D=y.current)==null||D.updateOptions(f)},[f],b);let O=B.useCallback(()=>{var J;if(!S.current)return;x.current(S.current);let D=zi(S.current,e||"",i||r||"text",n||""),L=zi(S.current,t||"",a||r||"text",s||"");(J=y.current)==null||J.setModel({original:D,modified:L})},[r,t,a,e,i,n,s]),R=B.useCallback(()=>{var D;!E.current&&A.current&&(y.current=S.current.editor.createDiffEditor(A.current,{automaticLayout:!0,...f}),O(),(D=S.current)==null||D.editor.setTheme(u),w(!0),E.current=!0)},[f,u,O]);B.useEffect(()=>{b&&_.current(y.current,S.current)},[b]),B.useEffect(()=>{!C&&!b&&R()},[C,b,R]);function T(){var L,J,X,Z;let D=(L=y.current)==null?void 0:L.getModel();o||((J=D==null?void 0:D.original)==null||J.dispose()),l||((X=D==null?void 0:D.modified)==null||X.dispose()),(Z=y.current)==null||Z.dispose()}return B.createElement(k1,{width:d,height:m,isEditorReady:b,loading:c,_ref:A,className:p,wrapperProps:k})}var h2=p2;B.memo(h2);function g2(){let[e,t]=B.useState(al.__getMonacoInstance());return Ld(()=>{let r;return e||(r=al.init(),r.then(i=>{t(i)})),()=>r==null?void 0:r.cancel()}),e}var y2=g2;function v2(e){let t=B.useRef();return B.useEffect(()=>{t.current=e},[e]),t.current}var b2=v2,Ao=new Map;function k2({defaultValue:e,defaultLanguage:t,defaultPath:r,value:i,language:a,path:n,theme:s="light",line:o,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=Ba,onMount:b=Ba,onChange:w,onValidate:C=Ba}){let[h,y]=B.useState(!1),[S,A]=B.useState(!0),_=B.useRef(null),x=B.useRef(null),E=B.useRef(null),O=B.useRef(b),R=B.useRef(g),T=B.useRef(),D=B.useRef(i),L=b2(n),J=B.useRef(!1),X=B.useRef(!1);Ld(()=>{let F=al.init();return F.then(z=>(_.current=z)&&A(!1)).catch(z=>(z==null?void 0:z.type)!=="cancelation"&&console.error("Monaco initialization: error:",z)),()=>x.current?P():F.cancel()}),nr(()=>{var z,I,N,M;let F=zi(_.current,e||i||"",t||a||"",n||r||"");F!==((z=x.current)==null?void 0:z.getModel())&&(f&&Ao.set(L,(I=x.current)==null?void 0:I.saveViewState()),(N=x.current)==null||N.setModel(F),f&&((M=x.current)==null||M.restoreViewState(Ao.get(n))))},[n],h),nr(()=>{var F;(F=x.current)==null||F.updateOptions(u)},[u],h),nr(()=>{!x.current||i===void 0||(x.current.getOption(_.current.editor.EditorOption.readOnly)?x.current.setValue(i):i!==x.current.getValue()&&(X.current=!0,x.current.executeEdits("",[{range:x.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),x.current.pushUndoStop(),X.current=!1))},[i],h),nr(()=>{var z,I;let F=(z=x.current)==null?void 0:z.getModel();F&&a&&((I=_.current)==null||I.editor.setModelLanguage(F,a))},[a],h),nr(()=>{var F;o!==void 0&&((F=x.current)==null||F.revealLine(o))},[o],h),nr(()=>{var F;(F=_.current)==null||F.editor.setTheme(s)},[s],h);let Z=B.useCallback(()=>{var F;if(!(!E.current||!_.current)&&!J.current){R.current(_.current);let z=n||r,I=zi(_.current,i||e||"",t||a||"",z||"");x.current=(F=_.current)==null?void 0:F.editor.create(E.current,{model:I,automaticLayout:!0,...u},c),f&&x.current.restoreViewState(Ao.get(z)),_.current.editor.setTheme(s),o!==void 0&&x.current.revealLine(o),y(!0),J.current=!0}},[e,t,r,i,a,n,u,c,f,s,o]);B.useEffect(()=>{h&&O.current(x.current,_.current)},[h]),B.useEffect(()=>{!S&&!h&&Z()},[S,h,Z]),D.current=i,B.useEffect(()=>{var F,z;h&&w&&((F=T.current)==null||F.dispose(),T.current=(z=x.current)==null?void 0:z.onDidChangeModelContent(I=>{X.current||w(x.current.getValue(),I)}))},[h,w]),B.useEffect(()=>{if(h){let F=_.current.editor.onDidChangeMarkers(z=>{var N;let I=(N=x.current.getModel())==null?void 0:N.uri;if(I&&z.find(M=>M.path===I.path)){let M=_.current.editor.getModelMarkers({resource:I});C==null||C(M)}});return()=>{F==null||F.dispose()}}return()=>{}},[h,C]);function P(){var F,z;(F=T.current)==null||F.dispose(),m?f&&Ao.set(n,x.current.saveViewState()):(z=x.current.getModel())==null||z.dispose(),x.current.dispose()}return B.createElement(k1,{width:d,height:p,isEditorReady:h,loading:l,_ref:E,className:k,wrapperProps:v})}var w2=k2,x2=B.memo(w2),S2=x2;const C2="vs-dark",E2=!0,A2=[{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"}],O2={"editor.foreground":"#f8f8f2","editor.background":"#282a36","editor.selectionBackground":"#2c303c","editor.lineHighlightBackground":"#2c303c","editorCursor.foreground":"#f8f8f0","editorWhitespace.foreground":"#3B3A32","editorIndentGuide.activeBackground":"#9D550FB0","editor.selectionHighlightBorder":"#222218"},_2={base:C2,inherit:E2,rules:A2,colors:O2},P2=e=>{const{fieldPathId:t,schema:{title:r,description:i},uiSchema:{"ui:options":a={}}={},formData:n,readonly:s,disabled:o,onChange:l,...u}=e,{language:c="html",height:f="20vh",width:m="100%",theme:d="dracula",...p}=a,k=y2();B.useEffect(()=>{k&&k.editor.defineTheme("dracula",_2)});const v=B.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=B.useMemo(()=>c==="json"?JSON.stringify(n,null,2):n,[n]);return j.jsxs("div",{className:"form-group",children:[r&&j.jsx("label",{className:"form-label",htmlFor:t.$id,children:r}),j.jsx("div",{className:"wrapper",children:j.jsx(S2,{id:t.$id,className:tn(["form-control","source-code"]),theme:d,width:m,height:f,defaultLanguage:c,defaultValue:g,onChange:v,options:{fontFamily:"JetBrains Mono",fontLigatures:!0,readOnly:o||s,tabSize:2,minimap:{enabled:!1},...p},...u})}),j.jsx("small",{className:"text-muted form-text",children:j.jsx(Ir,{children:i})})]})},I2=()=>j.jsx("svg",{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,children:j.jsx("path",{d:"M3 8.5l3 3 7-7"})}),T2=({id:e,status:t,label:r,disabled:i,errorMessage:a,onClick:n})=>j.jsxs(j.Fragment,{children:[j.jsxs("button",{id:e,type:"button",className:`btn fcode-oauth-button ${t==="connected"?"btn-light is-connected":"btn-primary"}${t==="pending"?" is-pending":""}`,"aria-busy":t==="pending",disabled:i,onClick:n,children:[t==="connected"&&j.jsx(I2,{}),r]}),a&&j.jsx("p",{className:"fcode-oauth-error text-danger",role:"alert",children:a})]}),x1={ConnectControl:T2},gy=["none","submit","reload"],yy={width:600,height:700},j2=3e3,Ki=e=>console.warn(`"ui:widget: oauth" ${e}.`),R2=e=>e.includes("{{")||e.includes("&#x2F;")||e.includes("&amp;"),N2=e=>e==null||e===""?(Ki('has no "authorizationUrl"; the connect button is disabled'),null):O0(e)?R2(e)?(Ki('"authorizationUrl" still carries Mustache syntax or HTML entities — inject the URL with {"$ref": "#/variables/x"} rather than {{x}}; the connect button is disabled'),null):e:(Ki(`"authorizationUrl" must be an absolute http(s) URL, got ${JSON.stringify(e)}; the connect button is disabled`),null),_c=(e,t)=>typeof e=="string"&&e.trim()?e:t,Pc=(e,t,r,i,a)=>{if(e===void 0)return r;const n=Number(e);return Number.isFinite(n)?Math.min(a,Math.max(i,Math.round(n))):(Ki(`"${t}" must be a number; using ${r}`),r)},F2=e=>e===void 0?"none":gy.includes(e)?e:(Ki(`"onComplete" must be one of ${gy.join(", ")}, got ${JSON.stringify(e)}; using "none"`),"none"),D2=e=>{const t=Array.isArray(e.type)?e.type[0]:e.type;return t==="boolean"||t==="string"||t==="object"?t:(Ki(`expects a boolean, string or object property, got type ${JSON.stringify(t)}; treating the value as a string`),"string")},M2=(e,t)=>{const r=e??{},i=r.popup??{};return{authorizationUrl:N2(r.authorizationUrl),connectLabel:_c(r.connectLabel,"Connect"),connectedLabel:_c(r.connectedLabel,"Connected"),pendingLabel:_c(r.pendingLabel,"Waiting for authorization…"),onComplete:F2(r.onComplete),popup:{width:Pc(i.width,"popup.width",yy.width,200,2e3),height:Pc(i.height,"popup.height",yy.height,200,2e3)},closeDelay:Pc(r.closeDelay,"closeDelay",j2,0,6e4),valueKind:D2(t)}},vy="connected",L2=(e,t)=>e==="boolean"?!0:e==="object"?Object.fromEntries(Object.entries(t.params).filter(([r])=>r!=="status"&&r!=="message")):typeof t.value=="string"&&t.value?t.value:(console.warn(`"ui:widget: oauth" completed without a "value" parameter; using "${vy}" so the field is not left empty.`),vy),q2=500,$2=["__proto__","constructor","prototype"],z2=e=>{const t={};if(e&&typeof e=="object"&&!Array.isArray(e))for(const[r,i]of Object.entries(e))typeof i=="string"&&!$2.includes(r)&&(t[r]=i);return t},U2=e=>{if(!e||typeof e!="object")return!1;const t=e;return t.source==="fcode-forms"&&t.type==="oauth-completed"&&(t.status==="success"||t.status==="error")},B2=(e,t)=>{const r=Math.max(0,window.screenX+(window.outerWidth-e)/2),i=Math.max(0,window.screenY+(window.outerHeight-t)/2);return`popup=yes,width=${e},height=${t},left=${Math.round(r)},top=${Math.round(i)}`},V2=({url:e,name:t,width:r,height:i,closeDelay:a,pollInterval:n=q2,onResult:s})=>{const o=window.open(e,t,B2(r,i));if(!o)return s({status:"blocked"}),null;let l=!1,u;const c=()=>{window.removeEventListener("message",d),u!==void 0&&(clearInterval(u),u=void 0)},f=p=>{l||(l=!0,c(),s(p))},m=()=>{try{o.close()}catch{}},d=p=>{if(p.source!==o||!U2(p.data))return;const{status:k,value:v,message:g}=p.data;setTimeout(m,a),f({status:k,...typeof v=="string"&&{value:v},...typeof g=="string"&&{message:g},params:z2(p.data.params)})};return window.addEventListener("message",d),u=setInterval(()=>{o.closed&&f({status:"cancelled"})},n),{focus:()=>{try{o.focus()}catch{}},dispose:()=>{l=!0,c()}}},H2=(e,t,r)=>{const[i,a]=B.useState(!1),n=B.useRef(null),s=B.useRef(r);s.current=r,B.useEffect(()=>()=>{var l;return(l=n.current)==null?void 0:l.dispose()},[]);const o=B.useCallback(l=>{if(l==null||l.preventDefault(),!!e.authorizationUrl){if(n.current){n.current.focus();return}a(!0),n.current=V2({url:e.authorizationUrl,name:`fcode-oauth-${t}`,width:e.popup.width,height:e.popup.height,closeDelay:e.closeDelay,onResult:u=>{n.current=null,a(!1),s.current(u)}})}},[e,t]);return{pending:i,start:o}},K2="The authorization window was blocked. Allow pop-ups for this site and try again.",W2="The authorization could not be completed.",G2=e=>e!=null&&e!==""&&e!==!1,S1=({id:e,schema:t,uiOptions:r,registry:i,value:a,onChange:n,disabled:s=!1,readonly:o=!1})=>{var A,_;const l=B.useMemo(()=>M2(r,t),[r,t]),u=i.formContext??{},{ConnectControl:c}=((A=u.fcode)==null?void 0:A.oauth)??x1,f=(_=u.fcode)==null?void 0:_.reloadFormSpecs,m=B.useRef(null),[d,p]=B.useState(),[k,v]=B.useState(null),g=G2(a),b=B.useCallback(()=>{f?f():console.warn('"ui:widget: oauth" asks for "onComplete: reload", but this form is not rendered by FcodeForm; nothing to reload.')},[f]),w=B.useCallback(x=>{switch(x.status){case"success":p(void 0),n(L2(l.valueKind,{...x})),v(l.onComplete);break;case"error":p(x.message||W2),f==null||f();break;case"blocked":p(K2);break;case"cancelled":l.onComplete==="reload"&&b();break}},[l,n,b,f]),{pending:C,start:h}=H2(l,e,w);B.useEffect(()=>{var x,E;!k||!g||(k==="submit"?(E=(x=m.current)==null?void 0:x.closest("form"))==null||E.requestSubmit():k==="reload"&&b(),v(null))},[k,g,b]);const y=g?"connected":C?"pending":"idle",S=y==="connected"?l.connectedLabel:y==="pending"?l.pendingLabel:l.connectLabel;return j.jsx("div",{className:"fcode-oauth",id:e,"data-status":y,ref:m,children:j.jsx(c,{id:`${e}__button`,status:y,label:S,disabled:s||o||g||!l.authorizationUrl,errorMessage:g?void 0:d,onClick:h})})},J2=e=>{const{fieldPathId:t,schema:r,uiSchema:i,registry:a,formData:n,onChange:s,disabled:o,readonly:l,required:u}=e,c=me(i),f=ge("TitleFieldTemplate",a,c),m=ge("DescriptionFieldTemplate",a,c),d=c.title??r.title,p=c.description??r.description;return j.jsxs("div",{className:"fcode-oauth-field",children:[d&&j.jsx(f,{id:`${t.$id}__title`,title:d,required:u,schema:r,uiSchema:i,registry:a}),p&&j.jsx(m,{id:`${t.$id}__description`,description:p,schema:r,uiSchema:i,registry:a}),j.jsx(S1,{id:t.$id,schema:r,uiOptions:c,registry:a,value:n,onChange:k=>s(k,t.path),disabled:o,readonly:l})]})},Y2=Object.freeze(Object.defineProperty({__proto__:null,button:dL,json:fL,oauth:J2,sourceCode:P2},Symbol.toStringTag,{value:"Module"}));function X2(e,t){return e==null?!0:ok(e,t)}function pf(){return r1("rjsf-array-item-")}function by(e){return Array.isArray(e)?e.map(t=>({key:pf(),item:t})):[]}function C1(e){return Array.isArray(e)?e.map(t=>t.item):[]}function Z2(e){return Array.isArray(e.type)?!e.type.includes("null"):e.type!=="null"}function E1(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 A1(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 Q2(e,t){const{schemaUtils:r,globalFormOptions:i}=e;let a=t.items;return i.useFallbackUiForUnsupportedType&&!a?a={}:Cd(t)&&l_(t)&&(a=t.additionalItems),r.getDefaultFormState(a)}function eq(e){const{schema:t,fieldPathId:r,uiSchema:i,formData:a=[],disabled:n=!1,readonly:s=!1,autofocus:o=!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,C=g.retrieveSchema(t.items,a),h=(i==null?void 0:i.items)??i,y=di(C,h),{widget:S="select",title:A,..._}=me(i,w),x=Kr(t,S,v),E=A??t.title??p,O=g.getDisplayLabel(t,i,w),R=da(Tr("",b,r,!0));return j.jsx(x,{id:R[nt],name:p,multiple:!0,onChange:k,onBlur:c,onFocus:f,options:{..._,enumOptions:y},schema:t,uiSchema:i,registry:m,value:a,disabled:n,readonly:s,required:l,label:E,hideLabel:!O,placeholder:u,autofocus:o,rawErrors:d,htmlName:R.name})}function tq(e){const{schema:t,fieldPathId:r,uiSchema:i,disabled:a=!1,readonly:n=!1,autofocus:s=!1,required:o=!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:C}=d,{widget:h,title:y,...S}=me(i,C),A=Kr(t,h,g),_=y??t.title??k,x=b.getDisplayLabel(t,i,C),E=da(Tr("",w,r,!0));return j.jsx(A,{id:E[nt],name:k,multiple:!0,onChange:v,onBlur:c,onFocus:f,options:S,schema:t,uiSchema:i,registry:d,value:m,disabled:a,readonly:n,hideError:l,required:o,label:_,hideLabel:!x,placeholder:u,autofocus:s,rawErrors:p,htmlName:E.name})}function rq(e){const{schema:t,uiSchema:r,fieldPathId:i,name:a,disabled:n=!1,readonly:s=!1,autofocus:o=!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:C,...h}=me(r,b),y=Kr(t,w,k),S=C??t.title??a,A=v.getDisplayLabel(t,r,b),_=da(Tr("",g,i,!0));return j.jsx(y,{options:h,id:_[nt],name:a,multiple:!0,onChange:p,onBlur:u,onFocus:c,schema:t,uiSchema:r,value:m,disabled:n,readonly:s,required:l,registry:f,autofocus:o,rawErrors:d,label:S,hideLabel:!A,htmlName:_.name})}function nq(e){const{itemKey:t,index:r,name:i,disabled:a,hideError:n,readonly:s,registry:o,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:C,onFocus:h,onChange:y,rawErrors:S,totalItems:A,title:_,handleAddItem:x,handleCopyItem:E,handleRemoveItem:O,handleReorderItems:R}=e,{schemaUtils:T,fields:{ArraySchemaField:D,SchemaField:L},globalUiOptions:J,globalFormOptions:X}=o,Z=B.useMemo(()=>T.retrieveSchema(p,k),[T,p,k]),P=B.useMemo(()=>Tr(r,X,g),[r,X,g]),F=D||L,z=ge("ArrayFieldItemTemplate",o,l),I=T.getDisplayLabel(Z,v,J),{description:N}=me(v),M=!!N||!!Z.description,{orderable:U=!0,removable:V=!0,copyable:H=!1}=l,K={moveUp:U&&m,moveDown:U&&d,copy:H&&c,remove:V&&f,toolbar:!1};K.toolbar=Object.keys(K).some(re=>K[re]);const Y=B.useCallback(re=>{x(re,r+1)},[x,r]),$=B.useCallback(re=>{E(re,r)},[E,r]),q=B.useCallback(re=>{O(re,r)},[O,r]),G=B.useCallback(re=>{R(re,r,r-1)},[R,r]),W=B.useCallback(re=>{R(re,r,r+1)},[R,r]),ie={children:j.jsx(F,{name:i,title:_,index:r,schema:Z,uiSchema:v,formData:k,errorSchema:b,fieldPathId:P,required:Z2(Z),onChange:y,onBlur:C,onFocus:h,registry:o,disabled:a,readonly:s,hideError:n,autofocus:w,rawErrors:S}),buttonsProps:{fieldPathId:P,disabled:a,readonly:s,canAdd:c,hasCopy:K.copy,hasMoveUp:K.moveUp,hasMoveDown:K.moveDown,hasRemove:K.remove,index:r,totalItems:A,onAddItem:Y,onCopyItem:$,onRemoveItem:q,onMoveUpItem:G,onMoveDownItem:W,registry:o,schema:Z,uiSchema:v},itemKey:t,className:"rjsf-array-item",disabled:a,hasToolbar:K.toolbar,index:r,totalItems:A,readonly:s,registry:o,schema:Z,uiSchema:v,parentUiSchema:u,displayLabel:I,hasDescription:M};return j.jsx(z,{...ie})}const O1=B.memo(nq);function iq(e){const{schema:t,uiSchema:r={},errorSchema:i,fieldPathId:a,formData:n,name:s,title:o,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:C,handleRemoveItem:h,handleReorderItems:y}=e,S=t.title||o||s,{schemaUtils:A,fields:_,formContext:x,globalUiOptions:E}=d,{OptionalDataControlsField:O}=_,R=B.useMemo(()=>me(r,E),[r,E]),T=B.useMemo(()=>Ue(t.items)?t.items:{},[t.items]),D=B.useMemo(()=>A.retrieveSchema(T),[A,T]),L=B.useMemo(()=>C1(b),[b]),J=gs(d,t,f,r),X=fa(n),Z=B.useMemo(()=>E1(d,t,L,r)&&(!J||X),[d,t,L,r,J,X]),P=X?b:[],F=J?" rjsf-optional-array-field":"",z=e.childFieldPathId??a,I=J?j.jsx(O,{...e,fieldPathId:z}):void 0,N={canAdd:Z,items:P.map((U,V)=>{const{key:H,item:K}=U,Y=K,$=i?i[V]:void 0,q=A1(r,K,V,x),G={itemKey:H,index:V,name:s&&`${s}-${V}`,registry:d,uiOptions:R,parentUiSchema:r,hideError:m,readonly:u,disabled:l,required:f,title:S?`${S}-${V+1}`:void 0,canAdd:Z,canMoveUp:V>0,canMoveDown:V<L.length-1,rawItemSchema:T,parentFieldPathId:z,itemErrorSchema:$,itemData:Y,itemUiSchema:q,autofocus:c&&V===0,onBlur:p,onFocus:k,rawErrors:v,totalItems:b.length,handleAddItem:w,handleCopyItem:C,handleRemoveItem:h,handleReorderItems:y,onChange:g};return j.jsx(O1,{...G},H)}),className:`rjsf-field rjsf-field-array rjsf-field-array-of-${D.type}${F}`,disabled:l,fieldPathId:a,uiSchema:r,onAddClick:w,readonly:u,required:f,schema:t,title:S,formData:L,rawErrors:v,registry:d,optionalDataControl:I},M=ge("ArrayFieldTemplate",d,R);return j.jsx(M,{...N})}function aq(e){const{schema:t,uiSchema:r={},formData:i,errorSchema:a,fieldPathId:n,name:s,title:o,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:C,handleRemoveItem:h,handleReorderItems:y}=e;let{formData:S=[]}=e;const A=t.title||o||s,{fields:_,formContext:x,globalUiOptions:E}=d,O=B.useMemo(()=>me(r,E),[r,E]),{OptionalDataControlsField:R}=_,T=gs(d,t,f,r),D=fa(i),L=B.useMemo(()=>Ue(t.items)?t.items:[],[t.items]),J=Ue(t.additionalItems),X=e.childFieldPathId??n;S.length<L.length&&(S=S.concat(new Array(L.length-S.length)));const Z=D?g:[],P=T?" rjsf-optional-array-field":"",F=T?j.jsx(R,{...e,fieldPathId:X}):void 0,z=E1(d,t,S,r)&&J&&(!T||D),I={canAdd:z,className:`rjsf-field rjsf-field-array rjsf-field-array-fixed-items${P}`,disabled:l,fieldPathId:n,formData:i,items:Z.map((M,U)=>{const{key:V,item:H}=M,K=H,Y=U>=L.length,$=(Y&&Ue(t.additionalItems)?t.additionalItems:L[U])||{};let q;Y?q=r.additionalItems:Array.isArray(r.items)?q=r.items[U]:q=A1(r,H,U,x);const G=a?a[U]:void 0,W={index:U,itemKey:V,name:s&&`${s}-${U}`,registry:d,uiOptions:O,parentUiSchema:r,hideError:m,readonly:u,disabled:l,required:f,title:A?`${A}-${U+1}`:void 0,canAdd:z,canRemove:Y,canMoveUp:U>=L.length+1,canMoveDown:Y&&U<S.length-1,rawItemSchema:$,itemData:K,itemUiSchema:q,parentFieldPathId:X,itemErrorSchema:G,autofocus:c&&U===0,onBlur:p,onFocus:k,rawErrors:v,totalItems:g.length,onChange:b,handleAddItem:w,handleCopyItem:C,handleRemoveItem:h,handleReorderItems:y};return j.jsx(O1,{...W},V)}),onAddClick:w,readonly:u,required:f,registry:d,schema:t,uiSchema:r,title:A,errorSchema:a,rawErrors:v,optionalDataControl:F},N=ge("ArrayFieldTemplate",d,O);return j.jsx(N,{...I})}function sq(e=[]){const t=B.useMemo(()=>fr(e),[e]),[r,i]=B.useState(()=>({formDataHash:t,keyedFormData:by(e)}));let{keyedFormData:a,formDataHash:n}=r;if(t!==n){const o=Array.isArray(e)?e:[],l=a||[];a=o.length===l.length?l.map((u,c)=>({key:u.key,item:o[c]})):by(o),n=t,i({formDataHash:n,keyedFormData:a})}const s=B.useCallback(o=>{const l=C1(o),u=fr(l);return i({formDataHash:u,keyedFormData:o}),l},[]);return{keyedFormData:a,updateKeyedFormData:s}}function oq(e){const{schema:t,uiSchema:r,errorSchema:i,fieldPathId:a,registry:n,formData:s,onChange:o}=e,{globalFormOptions:l,schemaUtils:u,translateString:c}=n,{keyedFormData:f,updateKeyedFormData:m}=sq(s),d=B.useRef(f);d.current=f;const p=B.useRef(i);p.current=i;const k=e.childFieldPathId??a,v=B.useCallback((A,_)=>{A&&A.preventDefault();let x;if(p.current){x={};for(const R of Object.keys(p.current)){const T=parseInt(R,10);_===void 0||T<_?lt(x,[T],p.current[T]):T>=_&&lt(x,[T+1],p.current[T])}}const E={key:pf(),item:Q2(n,t)},O=[...d.current];_!==void 0?O.splice(_,0,E):O.push(E),o(m(O),k.path,x)},[n,t,o,m,k]),g=B.useCallback((A,_)=>{A&&A.preventDefault();let x;if(p.current){x={};for(const R of Object.keys(p.current)){const T=parseInt(R,10);T<=_?lt(x,[T],p.current[T]):T>_&&lt(x,[T+1],p.current[T])}}const E={key:pf(),item:tl(d.current[_].item)},O=[...d.current];_!==void 0?O.splice(_+1,0,E):O.push(E),o(m(O),k.path,x)},[o,m,k]),b=B.useCallback((A,_)=>{A&&A.preventDefault();let x;if(p.current){x={};for(const O of Object.keys(p.current)){const R=parseInt(O,10);R<_?lt(x,[R],p.current[R]):R>_&&lt(x,[R-1],p.current[R])}}const E=d.current.filter((O,R)=>R!==_);o(m(E),k.path,x)},[o,m,k]),w=B.useCallback((A,_,x)=>{A&&(A.preventDefault(),A.currentTarget.blur());let E;if(p.current){E={};for(const T of Object.keys(p.current)){const D=parseInt(T,10);D===_?lt(E,[x],p.current[_]):D===x?lt(E,[_],p.current[x]):lt(E,[T],p.current[D])}}function O(){const T=d.current.slice();return T.splice(_,1),T.splice(x,0,d.current[_]),T}const R=O();o(m(R),k.path,E)},[o,m,k]),C=B.useCallback((A,_,x,E)=>{const O=typeof _.at(-1)=="number";o(O&&A===void 0?null:A,_,x,E)},[o]),h=B.useCallback(A=>{o(A,k.path,void 0,k==null?void 0:k[nt])},[o,k]),y={...e,formData:s,fieldPathId:k,onSelectChange:h},S={...e,handleAddItem:v,handleCopyItem:g,handleRemoveItem:b,handleReorderItems:w,keyedFormData:f,onChange:C};if(!(Zi in t)){if(!l.useFallbackUiForUnsupportedType){const _=me(r),x=ge("UnsupportedFieldTemplate",n,_);return j.jsx(x,{schema:t,fieldPathId:a,reason:c(_e.MissingItems),registry:n})}const A={...t,[Zi]:{type:void 0}};y.schema=A,S.schema=A}return u.isMultiSelect(y.schema)?j.jsx(eq,{...y}):Hk(r)?j.jsx(tq,{...y}):Cd(y.schema)?j.jsx(aq,{...S}):u.isFilesArray(y.schema,r)?j.jsx(rq,{...y}):j.jsx(iq,{...S})}function lq(e){const{schema:t,name:r,uiSchema:i,fieldPathId:a,formData:n,registry:s,required:o,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:C}=s,{widget:h="checkbox",title:y,label:S=!0,enumNames:A,..._}=me(i,C),x=Kr(t,h,b),E=w(_e.YesLabel),O=w(_e.NoLabel);let R;const T=y??g??m??r;if(Array.isArray(t.oneOf))R=di({oneOf:t.oneOf.map(L=>{if(Ue(L))return{...L,title:L.title||(L.const===!0?E:O)}}).filter(L=>L)},i);else{const L=t.enum??[!0,!1];!A&&L.length===2&&L.every(J=>typeof J=="boolean")?R=[{value:L[0],label:L[0]?E:O},{value:L[1],label:L[1]?E:O}]:R=di({enum:L},i)}const D=B.useCallback((L,J,X)=>d(L,a.path,J,X),[d,a]);return j.jsx(x,{options:{..._,enumOptions:R},schema:t,uiSchema:i,id:a.$id,name:r,onChange:D,onFocus:p,onBlur:k,label:T,hideLabel:!S,value:n,required:o,disabled:l,readonly:u,hideError:c,registry:s,autofocus:f,rawErrors:v,htmlName:a.name})}function uq(e){const[t,r]=B.useState(!1),{name:i,registry:a,schema:n,uiSchema:s,fieldPathId:o}=e,{globalUiOptions:l}=a,u=me(s,l),c=ge("CyclicSchemaExpandTemplate",a,u);if(!t)return j.jsx(c,{registry:a,schema:n,uiSchema:s,name:i,fieldPathId:o,onExpand:()=>r(!0)});const{fields:f}=a,{SchemaField:m}=f;return j.jsx(m,{...e,schema:{...n,[rd]:!1}})}function cq(e){return{type:"string",enum:["string","number","boolean","object","array"],default:"string",title:e}}function fq(e){const t=typeof e;return t==="string"||t==="number"||t==="boolean"?t:t==="object"?Array.isArray(e)?"array":"object":"string"}function dq(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 mq(e){const{id:t,formData:r,displayLabel:i=!0,schema:a,name:n,uiSchema:s,required:o,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,C]=B.useState(fq(r)),h=me(s),y=da(Tr("__internal_type_selector",b,d)),S=v(_e.Type),A=B.useMemo(()=>cq(S),[S]),_=O=>{O!=null&&(C(O),p(dq(r,O),d.path,k,t))};if(!b.useFallbackUiForUnsupportedType){const{reason:O=v(_e.UnknownFieldType,[String(a.type)])}=e,R=ge("UnsupportedFieldTemplate",m,h);return j.jsx(R,{schema:a,fieldPathId:d,reason:O,registry:m})}const x=ge("FallbackFieldTemplate",m,h),{SchemaField:E}=g;return j.jsx(x,{schema:a,registry:m,typeSelector:j.jsx(E,{fieldPathId:y,name:`${n}__fallback_type`,schema:A,formData:w,onChange:_,onBlur:c,onFocus:f,registry:m,hideLabel:!i,disabled:l,readonly:u,required:o},r?fr(r):"__empty__"),schemaField:j.jsx(E,{...e,schema:{type:w,title:v(_e.Value),...w==="object"&&{additionalProperties:!0}}})})}function pq(e,t){return oa(t,function(r){return e[r]})}function hq(e){return e==null?[]:pq(e,Cr(e))}var gq=Math.max;function yq(e,t,r,i){e=xi(e)?e:hq(e),r=r?gk(r):0;var a=e.length;return r<0&&(r=gq(a+r,0)),Nn(e)?r<=a&&e.indexOf(t,r)>-1:!!a&&Sk(e,t,r)>-1}var vq=Math.min;function bq(e,t,r){for(var i=Sd,a=e[0].length,n=e.length,s=n,o=Array(n),l=1/0,u=[];s--;){var c=e[s];l=vq(c.length,l),o[s]=a>=120&&c.length>=120?new fi(s&&c):void 0}c=e[0];var f=-1,m=o[0];e:for(;++f<a&&u.length<l;){var d=c[f],p=d;if(d=d!==0?d:0,!(m?Qa(m,p):i(u,p))){for(s=n;--s;){var k=o[s];if(!(k?Qa(k,p):i(e[s],p)))continue e}m&&m.push(p),u.push(d)}}return u}function kq(e){return Za(e)?e:[]}var ky=El(function(e){var t=oa(e,kq);return t.length&&t[0]===e[0]?bq(t):[]});function wq(e,t){return Al(e,t)}function _1(e){return e===void 0}var Br;(function(e){e.ROW="ui:row",e.COLUMN="ui:col",e.COLUMNS="ui:columns",e.CONDITION="ui:condition"})(Br||(Br={}));var Va;(function(e){e.ALL="all",e.SOME="some",e.NONE="none"})(Va||(Va={}));const xq=/^\$lookup=(.+)/,Ic="layoutGrid";function wy(e,t){return e??t}function Sq(e){return/^\d+?$/.test(e)}const _n=_d();function Cq(e,t,r,i,a){const n=ae(r,[ef],{}),s=ae(r,e),o={...ae(s,[Cn],{}),...t,...n},l={...s};wt(o)||lt(l,[Cn],o),wt(n)||lt(l,[ef],n);let{readonly:u}=me(l);return(a===!0||_1(u)&&i===!0)&&(u=!0,qe(o,Su)?lt(l,[Cn,Su],!0):lt(l,`ui:${Su}`,!0)),{fieldUiSchema:l,uiReadonly:u}}function Eq(e,t,r="$0m3tH1nG Un3xP3cT3d"){const i=of([t]).sort(),a=of([r]).sort();switch(e){case Va.ALL:return wq(i,a);case Va.SOME:return ky(i,a).length>0;case Va.NONE:return ky(i,a).length===0;default:return!1}}function Ml(e,t,r){let i={},a=e[t];if(jn(a)){const{children:n,className:s,...o}=a;if(a=n,s){const u=s.split(" ").map(c=>jd(r,c,c)).join(" ");i={...o,className:u}}else i=o}if(!Array.isArray(a))throw new TypeError(`Expected array for "${t}" in ${JSON.stringify(e)}`);return{children:a,gridProps:i}}function xy(e,t,r){let i,a=t;if(Sq(r)&&e&&(e==null?void 0:e.type)==="array"&&qe(e,Zi)){const n=Number(r),s=e[Zi];Array.isArray(s)?n>s.length?i=sk(s):i=s[n]:i=s,a={[nt]:t[nt],path:[...t.path.slice(0,t.path.length-1),n]}}return{rawSchema:i,fieldPathId:a}}function Aq(e,t,r,i,a){const{schemaUtils:n,globalFormOptions:s}=e;let o=r,l=a;const u=t.split("."),c=u.pop();let f=n.retrieveSchema(o,i),m=i,d=f.readOnly;u.forEach(v=>{if(l=Tr(v,s,l),qe(f,ze))o=ae(f,[ze,v],{});else if(f&&(qe(f,Ae)||qe(f,Le))){const g=qe(f,Ae)?Ae:Le,b=n.findSelectedOptionInXxxOf(f,v,g,m);o=ae(b,[ze,v],{})}else{const g=xy(f,l,v);o=g.rawSchema??{},l=g.fieldPathId}m=ae(m,v,{}),f=n.retrieveSchema(o,m),d=wy(f.readOnly,d)});let p,k=!1;if(wt(f)&&(f=void 0),f&&c){if(f&&(qe(f,Ae)||qe(f,Le))){const g=qe(f,Ae)?Ae:Le;f=n.findSelectedOptionInXxxOf(f,c,g,m)}l=Tr(c,s,l),k=f!==void 0&&Array.isArray(f.required)&&yq(f.required,c);const v=xy(f,l,c);if(v.rawSchema?(f=v.rawSchema,l=v.fieldPathId):(f=ae(f,[ze,c]),f=f&&n.retrieveSchema(f)),d=wy(f==null?void 0:f.readOnly,d),f&&(qe(f,Ae)||qe(f,Le))){const g=qe(f,Ae)?Ae:Le,b=yr(f);p={options:f[g],hasDiscriminator:!!b}}}return{schema:f,isRequired:k,isReadonly:d,optionsInfo:p,fieldPathId:l}}function Oq(e,t){let r=e;return Nn(r)&&(r=jd(t,r)),us(r)?r:null}function _q(e,t){let r,i=null,a={},n;if(Nn(t)||_1(t))r=t??"";else{const{name:s="",render:o,...l}=t;r=s,a=l,wt(a)||HF(a,(u,c)=>{if(Nn(u)){const f=xq.exec(u);if(Array.isArray(f)&&f.length>1){const m=f[1];a[c]=jd(e,m,m)}}}),i=Oq(o,e),!s&&i&&(n=j.jsx(i,{...l,"data-testid":_n.uiComponent}))}return{name:r,UIComponent:i,uiProps:a,rendered:n}}function Ll(e){const{childrenLayoutGridSchemaId:t,...r}=e,{registry:i,schema:a,formData:n}=r,{schemaUtils:s}=i,o=s.retrieveSchema(a,n);return t.map(l=>B.createElement(qd,{...r,key:`layoutGrid-${fr(l)}`,schema:o,layoutGridSchema:l}))}function Pq(e){const{layoutGridSchema:t,...r}=e,{formData:i,registry:a}=r,{children:n,gridProps:s}=Ml(t,Br.CONDITION,a),{operator:o,field:l="",value:u}=s,c=ae(i,l,null);return Eq(o,c,u)?j.jsx(Ll,{...r,childrenLayoutGridSchemaId:n}):null}function Iq(e){const{layoutGridSchema:t,...r}=e,{registry:i,uiSchema:a}=r,{children:n,gridProps:s}=Ml(t,Br.COLUMN,i),o=me(a),l=ge("GridTemplate",i,o);return j.jsx(l,{column:!0,"data-testid":_n.col,...s,children:j.jsx(Ll,{...r,childrenLayoutGridSchemaId:n})})}function Tq(e){const{layoutGridSchema:t,...r}=e,{registry:i,uiSchema:a}=r,{children:n,gridProps:s}=Ml(t,Br.COLUMNS,i),o=me(a),l=ge("GridTemplate",i,o);return n.map(u=>j.jsx(l,{column:!0,"data-testid":_n.col,...s,children:j.jsx(Ll,{...r,childrenLayoutGridSchemaId:[u]})},`column-${fr(u)}`))}function jq(e){const{layoutGridSchema:t,...r}=e,{registry:i,uiSchema:a}=r,{children:n,gridProps:s}=Ml(t,Br.ROW,i),o=me(a),l=ge("GridTemplate",i,o);return j.jsx(l,{...s,"data-testid":_n.row,children:j.jsx(Ll,{...r,childrenLayoutGridSchemaId:n})})}function Rq(e){const{gridSchema:t,schema:r,uiSchema:i,errorSchema:a,fieldPathId:n,onBlur:s,onFocus:o,formData:l,readonly:u,registry:c,layoutGridSchema:f,...m}=e,{onChange:d}=m,{fields:p}=c,{SchemaField:k,LayoutMultiSchemaField:v}=p,g=_q(c,t),{name:b,UIComponent:w,uiProps:C}=g,{schema:h,isRequired:y,isReadonly:S,optionsInfo:A,fieldPathId:_}=Aq(c,b,r,l,n),x=da(_);if(g.rendered)return g.rendered;if(h){const E=A!=null&&A.hasDiscriminator?v:k,{fieldUiSchema:O,uiReadonly:R}=Cq(b,C,i,S,u);return j.jsx(E,{"data-testid":A!=null&&A.hasDiscriminator?_n.layoutMultiSchemaField:_n.field,...m,name:b,required:y,readonly:R,schema:h,uiSchema:O,errorSchema:ae(a,b),fieldPathId:x,formData:ae(l,b),onChange:d,onBlur:s,onFocus:o,options:A==null?void 0:A.options,registry:c})}return w?j.jsx(w,{"data-testid":_n.uiComponent,...m,name:b,required:y,formData:l,readOnly:!!S||u,errorSchema:a,uiSchema:i,schema:r,fieldPathId:n,onBlur:s,onFocus:o,registry:c,...C}):null}function qd(e){const{uiSchema:t}=e;let{layoutGridSchema:r}=e;const i=me(t);if(!r&&Ic in i&&Ue(i[Ic])&&(r=i[Ic]),Ue(r)){if(Br.ROW in r)return j.jsx(jq,{...e,layoutGridSchema:r});if(Br.COLUMN in r)return j.jsx(Iq,{...e,layoutGridSchema:r});if(Br.COLUMNS in r)return j.jsx(Tq,{...e,layoutGridSchema:r});if(Br.CONDITION in r)return j.jsx(Pq,{...e,layoutGridSchema:r})}return j.jsx(Rq,{...e,gridSchema:r})}qd.TEST_IDS=_n;function Nq(e){const{fieldPathId:t,title:r,schema:i,uiSchema:a,required:n,registry:s,name:o}=e,l=me(a,s.globalUiOptions),{title:u}=l,{title:c}=i,f=u||r||c||o;if(!f)return null;const m=ge("TitleFieldTemplate",s,l);return j.jsx(m,{id:Il(t),title:f,required:n,schema:i,uiSchema:a,registry:s})}function Tc(e,t,r){const i="!@#!@$@#$!@$#";return e.map(({schema:n})=>n).find(n=>{const s=ae(n,[ze,t]);return ae(s,li,ae(s,Kt,i))===r})}function Sy(e,t,r,i,a){const n=t.map(l=>r.retrieveSchema(l,a));let s=e;qe(e,Ae)?s={...e,[Ae]:n}:qe(e,Le)&&(s={...e,[Le]:n});const o=di(s,i);if(!o)throw new Error(`No enumOptions were computed from the schema ${JSON.stringify(s)}`);return o}function Fq(e){var q;const{name:t,baseType:r,disabled:i=!1,formData:a,fieldPathId:n,onBlur:s,onChange:o,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:C}=c,[h,y]=B.useState(Sy(m,l,w,f,a)),S=ae(n,nt),A=yr(m),_=ge("FieldErrorTemplate",c,l),x=ge("FieldTemplate",c,l),E=fr(m),O=fr(l),R=f?fr(f):"",T=a?fr(a):"";B.useEffect(()=>{y(Sy(m,l,w,f,a))},[E,O,w,R,T]);const{widget:D=A?"radio":"select",title:L="",placeholder:J="",optionsSchemaSelector:X=A,hideError:Z,...P}=me(f);if(!X)throw new Error("No selector field provided for the LayoutMultiSchemaField");const F=ae(a,X);let z=ae((q=h[0])==null?void 0:q.schema,[ze,X],{});const I=Tc(h,X,F);z=z!=null&&z.type?z:{...z,type:(I==null?void 0:I.type)||r};const N=Kr(z,D,b),M=Z===void 0?g:!!Z,U=ae(v,[Nt],[]),V=Ya(v,[Nt]),H=w.getDisplayLabel(m,f,C),K=G=>{if(i||p)return;const W=Tc(h,X,G),ie=Tc(h,X,F);let re=w.sanitizeDataForNewSchema(W,ie,a);re&&W&&(re=w.getDefaultFormState(W,re,"excludeObjectChildren")),re&&lt(re,X,G),o(re,n.path,void 0,S)},Y={enumOptions:h,...P},$=!M&&U.length>0?j.jsx(_,{fieldPathId:n,schema:m,errors:U,registry:c}):void 0;return j.jsx(x,{fieldPathId:n,id:S,schema:m,label:(L||m.title)??"",disabled:i||Array.isArray(h)&&wt(h),uiSchema:f,required:k,readonly:!!p,registry:c,displayLabel:H,errors:$,onChange:o,onKeyRename:Do,onKeyRenameBlur:Do,onRemoveProperty:Do,children:j.jsx(N,{id:S,name:t,schema:m,label:(L||m.title)??"",disabled:i||Array.isArray(h)&&wt(h),uiSchema:f,autofocus:d,readonly:p,required:k,registry:c,multiple:!1,rawErrors:U,hideError:M,hideLabel:!H,errorSchema:V,placeholder:J,onChange:K,onBlur:s,onFocus:u,value:F,options:Y,htmlName:n.name})})}function Cy(e){const{name:t,disabled:r=!1,errorSchema:i={},formData:a,fieldPathId:n,onBlur:s,onChange:o,onFocus:l,options:u,readonly:c,registry:f,required:m=!1,schema:d,uiSchema:p}=e,{schemaUtils:k}=f,v=fr(a??null),g=B.useMemo(()=>u.map(re=>k.retrieveSchema(re,a)),[u,k,v]),[b,w]=B.useState(()=>{const re=yr(d);return k.getClosestMatchingOption(a,g,0,re)}),C=B.useRef(!1),h=B.useRef(a),y=B.useRef(n.$id);B.useEffect(()=>{const re=h.current,ue=y.current;if(h.current=a,y.current=n.$id,!$e(a,re)&&n.$id===ue){if(C.current){C.current=!1;return}const ye=yr(d),we=k.getClosestMatchingOption(a,g,b,ye);we!==b&&w(we)}});const S=`${n.$id}${d.oneOf?"__oneof_select":"__anyof_select"}`,A=B.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,we=b>=0?g[b]:void 0;let ke=k.sanitizeDataForNewSchema(ye,we,a);ye&&(ke=k.getDefaultFormState(ye,ke,"excludeObjectChildren")),w(ue),C.current=!0,o(ke,n.path,void 0,S)},[b,g,r,c,k,a,n,o,S]),{widgets:_,fields:x,translateString:E,globalUiOptions:O}=f,{SchemaField:R}=x,T=ge("MultiSchemaFieldTemplate",f,O),D=gs(f,d,m,p),L=fa(a),{widget:J="select",placeholder:X,autofocus:Z,autocomplete:P,title:F=d.title,...z}=me(p,O),I=Kr({type:"number"},J,_),N=ae(i,Nt,[]),M=Ya(i,[Nt]),U=k.getDisplayLabel(d,p,O),V=b>=0&&g[b]||null;let H;if(V){const{required:re,type:ue}=d,ye={};re&&(ye.required=re),ue!==void 0&&!("type"in V)&&(ye.type=ue),H=Object.keys(ye).length>0?an(ye,V):V}let K=[];Ae in d&&p&&Ae in p?Array.isArray(p[Ae])?K=p[Ae]:console.warn(`uiSchema.oneOf is not an array for "${F||t}"`):Le in d&&p&&Le in p&&(Array.isArray(p[Le])?K=p[Le]:console.warn(`uiSchema.anyOf is not an array for "${F||t}"`));let Y=p;b>=0&&K.length>b&&(Y=K[b]);const $=F?_e.TitleOptionPrefix:_e.OptionPrefix,q=F?[F]:[],G=g.map((re,ue)=>{const{title:ye=re.title}=me(K[ue]);return{label:ye||E($,q.concat(String(ue+1))),value:ue}}),W=!D||L?j.jsx(I,{id:S,name:`${t}${d.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:A,onBlur:s,onFocus:l,disabled:r||wt(G),multiple:!1,rawErrors:N,errorSchema:M,value:b>=0?b:void 0,options:{enumOptions:G,...z},registry:f,placeholder:X,autocomplete:P,autofocus:Z,label:F??t,hideLabel:!U,readonly:c}):void 0,ie=H&&H.type!=="null"&&j.jsx(R,{...e,schema:H,uiSchema:Y})||null;return j.jsx(T,{schema:d,registry:f,uiSchema:p,selector:W,optionSchemaField:ie})}function Dq(e){const{formData:t,onChange:r,fieldPathId:i}=e;return B.useEffect(()=>{t===void 0&&r(null,i.path)},[i,t,r]),null}const Mq=/\.([0-9]*0)*$/,Lq=/[0.]0*$/;function qq(e){const{registry:t,onChange:r,formData:i,value:a}=e,[n,s]=B.useState(a),{StringField:o}=t.fields,l=_b(),u=l==="."?"\\.":l;let c=i;const f=B.useCallback((d,p,k,v)=>{s(d);const g=typeof d=="string"?d.replace(l,"."):d,b=`${g}`.startsWith(".")?`0${g}`:g,w=typeof b=="string"&&Mq.exec(b)?dp(b.replace(Lq,"")):dp(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)?di(d,p):void 0)?"select":"text",{widget:b=g}=me(p);b!=="radio"&&b!=="select"&&b!=="hidden"&&(m=String(c).replace(".",l))}return j.jsx(o,{...e,formData:m,onChange:f})}var Oo;function $q(e){if(!Oo){if(typeof document>"u")return;Oo=document.createElement("textarea")}var t=`&${e};`;Oo.innerHTML=t;var r=Oo.value;return r===t?void 0:r}var se=32,le=9,Dn=13,fe=10,Je=96,_t=126,vt=91,fn=94,Re=62,br=35,hf=37,Oe=45,dr=61,Tt=92,xt=42,gt=95,rt=60,P1=64,jr=93,Wt=33,ql=38,qt=58,gf=70,mi=102,sl=104,si=119,Wi=116,yf=112,I1=115,zq=160,Uq=12,Bq=44,ol=59,pa=63,mr=46,yt=47,pi=39,hi=34,Mn=43,It=124,gi=123,$d=125,Er=40,Pr=41,Vq=78,Hq=110,Kq=79,Wq=111,T1=120,j1=88,vf=30,Te=48,je=57,xe=65,Ee=90,Xe=97,ut=122,$l=128,Sr=32,Gq={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=Gq;function Jq(e){if(!Ay(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]!==`
96
+ `},ky=JL(QL)(w1),e2={config:XL},t2=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,s){return s(n)},a)}};function x1(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],x1(e[r],t[r]))}),yy(yy({},e),t)}var r2={type:"cancelation",msg:"operation is manually canceled"};function Ic(e){var t=!1,r=new Promise(function(i,a){e.then(function(n){return t?a(r2):i(n)}),e.catch(a)});return r.cancel=function(){return t=!0},r}var n2=["monaco"],i2=KL.create({config:GL,isInitialized:!1,resolve:null,reject:null,monaco:null}),S1=PL(i2,2),ws=S1[0],zl=S1[1];function a2(e){var t=e2.config(e),r=t.monaco,i=OL(t,n2);zl(function(a){return{config:x1(a.config,i),monaco:r}})}function s2(){var e=ws(function(t){var r=t.monaco,i=t.isInitialized,a=t.resolve;return{monaco:r,isInitialized:i,resolve:a}});if(!e.isInitialized){if(zl({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Ic(Tc);if(window.monaco&&window.monaco.editor)return C1(window.monaco),e.resolve(window.monaco),Ic(Tc);t2(o2,u2)(c2)}return Ic(Tc)}function o2(e){return document.body.appendChild(e)}function l2(e){var t=document.createElement("script");return e&&(t.src=e),t}function u2(e){var t=ws(function(i){var a=i.config,n=i.reject;return{config:a,reject:n}}),r=l2("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function c2(){var e=ws(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;C1(i),e.resolve(i)},function(r){e.reject(r)})}function C1(e){ws().monaco||zl({monaco:e})}function f2(){return ws(function(e){var t=e.monaco;return t})}var Tc=new Promise(function(e,t){return zl({resolve:e,reject:t})}),ul={config:a2,init:s2,__getMonacoInstance:f2},d2={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},jc=d2,m2={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},p2=m2;function h2({children:e}){return U.createElement("div",{style:p2.container},e)}var g2=h2,y2=g2;function v2({width:e,height:t,isEditorReady:r,loading:i,_ref:a,className:n,wrapperProps:s}){return U.createElement("section",{style:{...jc.wrapper,width:e,height:t},...s},!r&&U.createElement(y2,null,i),U.createElement("div",{ref:a,style:{...jc.fullWidth,...!r&&jc.hide},className:n}))}var b2=v2,E1=U.memo(b2);function k2(e){U.useEffect(e,[])}var Bd=k2;function w2(e,t,r=!0){let i=U.useRef(!0);U.useEffect(i.current||!r?()=>{i.current=!1}:e,t)}var nr=w2;function Wa(){}function Bi(e,t,r,i){return x2(e,i)||S2(e,t,r,i)}function x2(e,t){return e.editor.getModel(A1(e,t))}function S2(e,t,r,i){return e.editor.createModel(t,r,i?A1(e,i):void 0)}function A1(e,t){return e.Uri.parse(t)}function C2({original:e,modified:t,language:r,originalLanguage:i,modifiedLanguage:a,originalModelPath:n,modifiedModelPath:s,keepCurrentOriginalModel:o=!1,keepCurrentModifiedModel:l=!1,theme:u="light",loading:c="Loading...",options:f={},height:m="100%",width:d="100%",className:p,wrapperProps:k={},beforeMount:v=Wa,onMount:g=Wa}){let[b,w]=U.useState(!1),[x,h]=U.useState(!0),y=U.useRef(null),S=U.useRef(null),A=U.useRef(null),_=U.useRef(g),C=U.useRef(v),E=U.useRef(!1);Bd(()=>{let D=ul.init();return D.then(L=>(S.current=L)&&h(!1)).catch(L=>(L==null?void 0:L.type)!=="cancelation"&&console.error("Monaco initialization: error:",L)),()=>y.current?T():D.cancel()}),nr(()=>{if(y.current&&S.current){let D=y.current.getOriginalEditor(),L=Bi(S.current,e||"",i||r||"text",n||"");L!==D.getModel()&&D.setModel(L)}},[n],b),nr(()=>{if(y.current&&S.current){let D=y.current.getModifiedEditor(),L=Bi(S.current,t||"",a||r||"text",s||"");L!==D.getModel()&&D.setModel(L)}},[s],b),nr(()=>{let D=y.current.getModifiedEditor();D.getOption(S.current.editor.EditorOption.readOnly)?D.setValue(t||""):t!==D.getValue()&&(D.executeEdits("",[{range:D.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),D.pushUndoStop())},[t],b),nr(()=>{var D,L;(L=(D=y.current)==null?void 0:D.getModel())==null||L.original.setValue(e||"")},[e],b),nr(()=>{let{original:D,modified:L}=y.current.getModel();S.current.editor.setModelLanguage(D,i||r||"text"),S.current.editor.setModelLanguage(L,a||r||"text")},[r,i,a],b),nr(()=>{var D;(D=S.current)==null||D.editor.setTheme(u)},[u],b),nr(()=>{var D;(D=y.current)==null||D.updateOptions(f)},[f],b);let O=U.useCallback(()=>{var H;if(!S.current)return;C.current(S.current);let D=Bi(S.current,e||"",i||r||"text",n||""),L=Bi(S.current,t||"",a||r||"text",s||"");(H=y.current)==null||H.setModel({original:D,modified:L})},[r,t,a,e,i,n,s]),R=U.useCallback(()=>{var D;!E.current&&A.current&&(y.current=S.current.editor.createDiffEditor(A.current,{automaticLayout:!0,...f}),O(),(D=S.current)==null||D.editor.setTheme(u),w(!0),E.current=!0)},[f,u,O]);U.useEffect(()=>{b&&_.current(y.current,S.current)},[b]),U.useEffect(()=>{!x&&!b&&R()},[x,b,R]);function T(){var L,H,Y,Z;let D=(L=y.current)==null?void 0:L.getModel();o||((H=D==null?void 0:D.original)==null||H.dispose()),l||((Y=D==null?void 0:D.modified)==null||Y.dispose()),(Z=y.current)==null||Z.dispose()}return U.createElement(E1,{width:d,height:m,isEditorReady:b,loading:c,_ref:A,className:p,wrapperProps:k})}var E2=C2;U.memo(E2);function A2(){let[e,t]=U.useState(ul.__getMonacoInstance());return Bd(()=>{let r;return e||(r=ul.init(),r.then(i=>{t(i)})),()=>r==null?void 0:r.cancel()}),e}var O2=A2;function _2(e){let t=U.useRef();return U.useEffect(()=>{t.current=e},[e]),t.current}var P2=_2,Po=new Map;function I2({defaultValue:e,defaultLanguage:t,defaultPath:r,value:i,language:a,path:n,theme:s="light",line:o,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=Wa,onMount:b=Wa,onChange:w,onValidate:x=Wa}){let[h,y]=U.useState(!1),[S,A]=U.useState(!0),_=U.useRef(null),C=U.useRef(null),E=U.useRef(null),O=U.useRef(b),R=U.useRef(g),T=U.useRef(),D=U.useRef(i),L=P2(n),H=U.useRef(!1),Y=U.useRef(!1);Bd(()=>{let F=ul.init();return F.then(z=>(_.current=z)&&A(!1)).catch(z=>(z==null?void 0:z.type)!=="cancelation"&&console.error("Monaco initialization: error:",z)),()=>C.current?P():F.cancel()}),nr(()=>{var z,I,N,M;let F=Bi(_.current,e||i||"",t||a||"",n||r||"");F!==((z=C.current)==null?void 0:z.getModel())&&(f&&Po.set(L,(I=C.current)==null?void 0:I.saveViewState()),(N=C.current)==null||N.setModel(F),f&&((M=C.current)==null||M.restoreViewState(Po.get(n))))},[n],h),nr(()=>{var F;(F=C.current)==null||F.updateOptions(u)},[u],h),nr(()=>{!C.current||i===void 0||(C.current.getOption(_.current.editor.EditorOption.readOnly)?C.current.setValue(i):i!==C.current.getValue()&&(Y.current=!0,C.current.executeEdits("",[{range:C.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),C.current.pushUndoStop(),Y.current=!1))},[i],h),nr(()=>{var z,I;let F=(z=C.current)==null?void 0:z.getModel();F&&a&&((I=_.current)==null||I.editor.setModelLanguage(F,a))},[a],h),nr(()=>{var F;o!==void 0&&((F=C.current)==null||F.revealLine(o))},[o],h),nr(()=>{var F;(F=_.current)==null||F.editor.setTheme(s)},[s],h);let Z=U.useCallback(()=>{var F;if(!(!E.current||!_.current)&&!H.current){R.current(_.current);let z=n||r,I=Bi(_.current,i||e||"",t||a||"",z||"");C.current=(F=_.current)==null?void 0:F.editor.create(E.current,{model:I,automaticLayout:!0,...u},c),f&&C.current.restoreViewState(Po.get(z)),_.current.editor.setTheme(s),o!==void 0&&C.current.revealLine(o),y(!0),H.current=!0}},[e,t,r,i,a,n,u,c,f,s,o]);U.useEffect(()=>{h&&O.current(C.current,_.current)},[h]),U.useEffect(()=>{!S&&!h&&Z()},[S,h,Z]),D.current=i,U.useEffect(()=>{var F,z;h&&w&&((F=T.current)==null||F.dispose(),T.current=(z=C.current)==null?void 0:z.onDidChangeModelContent(I=>{Y.current||w(C.current.getValue(),I)}))},[h,w]),U.useEffect(()=>{if(h){let F=_.current.editor.onDidChangeMarkers(z=>{var N;let I=(N=C.current.getModel())==null?void 0:N.uri;if(I&&z.find(M=>M.path===I.path)){let M=_.current.editor.getModelMarkers({resource:I});x==null||x(M)}});return()=>{F==null||F.dispose()}}return()=>{}},[h,x]);function P(){var F,z;(F=T.current)==null||F.dispose(),m?f&&Po.set(n,C.current.saveViewState()):(z=C.current.getModel())==null||z.dispose(),C.current.dispose()}return U.createElement(E1,{width:d,height:p,isEditorReady:h,loading:l,_ref:E,className:k,wrapperProps:v})}var T2=I2,j2=U.memo(T2),R2=j2;const N2="vs-dark",F2=!0,D2=[{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"}],M2={"editor.foreground":"#f8f8f2","editor.background":"#282a36","editor.selectionBackground":"#2c303c","editor.lineHighlightBackground":"#2c303c","editorCursor.foreground":"#f8f8f0","editorWhitespace.foreground":"#3B3A32","editorIndentGuide.activeBackground":"#9D550FB0","editor.selectionHighlightBorder":"#222218"},L2={base:N2,inherit:F2,rules:D2,colors:M2},q2=e=>{const{fieldPathId:t,schema:{title:r,description:i},uiSchema:{"ui:options":a={}}={},formData:n,readonly:s,disabled:o,onChange:l,...u}=e,{language:c="html",height:f="20vh",width:m="100%",theme:d="dracula",...p}=a,k=O2();U.useEffect(()=>{k&&k.editor.defineTheme("dracula",L2)});const v=U.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=U.useMemo(()=>c==="json"?JSON.stringify(n,null,2):n,[n]);return j.jsxs("div",{className:"form-group",children:[r&&j.jsx("label",{className:"form-label",htmlFor:t.$id,children:r}),j.jsx("div",{className:"wrapper",children:j.jsx(R2,{id:t.$id,className:tn(["form-control","source-code"]),theme:d,width:m,height:f,defaultLanguage:c,defaultValue:g,onChange:v,options:{fontFamily:"JetBrains Mono",fontLigatures:!0,readOnly:o||s,tabSize:2,minimap:{enabled:!1},...p},...u})}),j.jsx("small",{className:"text-muted form-text",children:j.jsx(Ir,{children:i})})]})},$2=()=>j.jsx("svg",{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,children:j.jsx("path",{d:"M3 8.5l3 3 7-7"})}),z2=({id:e,status:t,label:r,disabled:i,errorMessage:a,onClick:n})=>j.jsxs(j.Fragment,{children:[j.jsxs("button",{id:e,type:"button",className:`btn fcode-oauth-button ${t==="connected"?"btn-light is-connected":"btn-primary"}${t==="pending"?" is-pending":""}`,"aria-busy":t==="pending",disabled:i,onClick:n,children:[t==="connected"&&j.jsx($2,{}),r]}),a&&j.jsx("p",{className:"fcode-oauth-error text-danger",role:"alert",children:a})]}),O1={ConnectControl:z2},wy=["none","submit","reload"],xy={width:600,height:700},U2=3e3,Gi=e=>console.warn(`"ui:widget: oauth" ${e}.`),B2=e=>e.includes("{{")||e.includes("&#x2F;")||e.includes("&amp;"),V2=e=>e==null||e===""?(Gi('has no "authorizationUrl"; the connect button is disabled'),null):M0(e)?B2(e)?(Gi('"authorizationUrl" still carries Mustache syntax or HTML entities — inject the URL with {"$ref": "#/variables/x"} rather than {{x}}; the connect button is disabled'),null):e:(Gi(`"authorizationUrl" must be an absolute http(s) URL, got ${JSON.stringify(e)}; the connect button is disabled`),null),Rc=(e,t)=>typeof e=="string"&&e.trim()?e:t,Nc=(e,t,r,i,a)=>{if(e===void 0)return r;const n=Number(e);return Number.isFinite(n)?Math.min(a,Math.max(i,Math.round(n))):(Gi(`"${t}" must be a number; using ${r}`),r)},H2=e=>e===void 0?"none":wy.includes(e)?e:(Gi(`"onComplete" must be one of ${wy.join(", ")}, got ${JSON.stringify(e)}; using "none"`),"none"),W2=e=>{const t=Array.isArray(e.type)?e.type[0]:e.type;return t==="boolean"||t==="string"||t==="object"?t:(Gi(`expects a boolean, string or object property, got type ${JSON.stringify(t)}; treating the value as a string`),"string")},K2=(e,t)=>{const r=e??{},i=r.popup??{};return{authorizationUrl:V2(r.authorizationUrl),connectLabel:Rc(r.connectLabel,"Connect"),connectedLabel:Rc(r.connectedLabel,"Connected"),pendingLabel:Rc(r.pendingLabel,"Waiting for authorization…"),onComplete:H2(r.onComplete),popup:{width:Nc(i.width,"popup.width",xy.width,200,2e3),height:Nc(i.height,"popup.height",xy.height,200,2e3)},closeDelay:Nc(r.closeDelay,"closeDelay",U2,0,6e4),valueKind:W2(t)}},Sy="connected",G2=(e,t)=>e==="boolean"?!0:e==="object"?Object.fromEntries(Object.entries(t.params).filter(([r])=>r!=="status"&&r!=="message"&&r!=="state")):typeof t.value=="string"&&t.value?t.value:(console.warn(`"ui:widget: oauth" completed without a "value" parameter; using "${Sy}" so the field is not left empty.`),Sy),J2=500,Y2=1500,X2=8e3,_1="fcode-forms:oauth",P1=()=>typeof BroadcastChannel>"u"?null:new BroadcastChannel(_1),I1=e=>{try{return new URL(e).searchParams.get("state")}catch{return null}},T1=(e,t)=>{if(t.size===0)return!0;const r=e.params,i=r&&typeof r=="object"&&!Array.isArray(r)?r.state:void 0;return typeof i=="string"&&t.has(i)},Z2=["__proto__","constructor","prototype"],Q2=e=>{const t={};if(e&&typeof e=="object"&&!Array.isArray(e))for(const[r,i]of Object.entries(e))typeof i=="string"&&!Z2.includes(r)&&(t[r]=i);return t},cl=e=>{if(!e||typeof e!="object")return!1;const t=e;return t.source==="fcode-forms"&&t.type==="oauth-completed"&&(t.status==="success"||t.status==="error")},j1=e=>({status:e.status,...typeof e.value=="string"&&{value:e.value},...typeof e.message=="string"&&{message:e.message},params:Q2(e.params)}),eq=(e,t)=>{const r=Math.max(0,window.screenX+(window.outerWidth-e)/2),i=Math.max(0,window.screenY+(window.outerHeight-t)/2);return`popup=yes,width=${e},height=${t},left=${Math.round(r)},top=${Math.round(i)}`},tq=({url:e,name:t,width:r,height:i,closeDelay:a,pollInterval:n=J2,onResult:s})=>{const o=window.open(e,t,eq(r,i));if(!o)return s({status:"blocked"}),null;const l=P1(),u=I1(e),c=new Set(u?[u]:[]),f=Date.now();let m=!1,d,p;const k=()=>{window.removeEventListener("message",w),l==null||l.removeEventListener("message",x),l==null||l.close(),d!==void 0&&(clearInterval(d),d=void 0),p!==void 0&&(clearTimeout(p),p=void 0)},v=h=>{m||(m=!0,k(),s(h))},g=()=>{try{o.close()}catch{}},b=h=>{setTimeout(g,a),v(j1(h))},w=h=>{h.source!==o||!cl(h.data)||b(h.data)},x=h=>{cl(h.data)&&T1(h.data,c)&&b(h.data)};return window.addEventListener("message",w),l==null||l.addEventListener("message",x),d=setInterval(()=>{if(o.closed&&p===void 0){const h=l!==null&&Date.now()-f<X2;d!==void 0&&(clearInterval(d),d=void 0),p=setTimeout(()=>v({status:"cancelled",...h&&{possiblySevered:!0}}),Y2)}},n),{focus:()=>{try{o.focus()}catch{}},dispose:()=>{m=!0,k()}}},rq="/sdk/oauth-relay.html";let Io=0,yn=null,vn=null,ja=null;const nq=()=>{},iq=()=>typeof window<"u"&&typeof document<"u"&&typeof BroadcastChannel<"u",aq=e=>{if(!iq()||!e||e===window.location.origin)return nq;if(!yn){vn=new BroadcastChannel(_1),ja=i=>{i.origin===e&&(!yn||i.source!==yn.contentWindow||cl(i.data)&&(vn==null||vn.postMessage(i.data)))},window.addEventListener("message",ja);const r=document.createElement("iframe");r.setAttribute("aria-hidden","true"),r.setAttribute("tabindex","-1"),r.title="Factorial Code OAuth relay",r.style.display="none",r.src=`${e}${rq}?parentOrigin=${encodeURIComponent(window.location.origin)}`,document.body.appendChild(r),yn=r}Io+=1;let t=!1;return()=>{t||(t=!0,Io-=1,Io<=0&&(ja&&(window.removeEventListener("message",ja),ja=null),yn==null||yn.remove(),yn=null,vn==null||vn.close(),vn=null,Io=0))}},sq=(e,t,r)=>{const[i,a]=U.useState(!1),n=U.useRef(null),s=U.useRef(r);s.current=r,U.useEffect(()=>()=>{var l;return(l=n.current)==null?void 0:l.dispose()},[]);const o=U.useCallback(l=>{if(l==null||l.preventDefault(),!!e.authorizationUrl){if(n.current){n.current.focus();return}a(!0),n.current=tq({url:e.authorizationUrl,name:`fcode-oauth-${t}`,width:e.popup.width,height:e.popup.height,closeDelay:e.closeDelay,onResult:u=>{n.current=null,a(!1),s.current(u)}})}},[e,t]);return{pending:i,start:o}},oq="The authorization window was blocked. Allow pop-ups for this site and try again.",lq="The authorization could not be completed.",uq=300*1e3,cq=1e3,fq=250,dq=e=>e!=null&&e!==""&&e!==!1,R1=({id:e,schema:t,uiOptions:r,registry:i,value:a,onChange:n,disabled:s=!1,readonly:o=!1})=>{var D,L;const l=U.useMemo(()=>K2(r,t),[r,t]),u=i.formContext??{},{ConnectControl:c}=((D=u.fcode)==null?void 0:D.oauth)??O1,f=(L=u.fcode)==null?void 0:L.reloadFormSpecs,m=U.useRef(null),[d,p]=U.useState(),[k,v]=U.useState(null),[g,b]=U.useState(!1),w=dq(a);U.useEffect(()=>{if(!g)return;const H=setTimeout(()=>b(!1),uq);return()=>clearTimeout(H)},[g]),U.useEffect(()=>{if(!g)return;let H;const Y=setInterval(()=>{if(!document.hasFocus()){H=void 0;return}H??(H=Date.now()),Date.now()-H>=cq&&b(!1)},fq);return()=>clearInterval(Y)},[g]);const x=U.useCallback(H=>{f?f(H):console.warn('"ui:widget: oauth" asks for "onComplete: reload", but this form is not rendered by FcodeForm; nothing to reload.')},[f]),h=U.useCallback(H=>{switch(H.status){case"success":p(void 0),b(!1),n(G2(l.valueKind,{...H})),v(l.onComplete);break;case"error":p(H.message||lq),b(!1),f==null||f();break;case"blocked":p(oq),b(!1);break;case"cancelled":H.possiblySevered&&b(!0),l.onComplete==="reload"&&x(H.possiblySevered?{silent:!0}:void 0);break}},[l,n,x,f]),{pending:y,start:S}=sq(l,e,h),A=U.useRef(!1),_=U.useRef(new Set),C=U.useRef({pending:y,connected:w,onResult:h});C.current={pending:y,connected:w,onResult:h};const E=U.useMemo(()=>{if(!l.authorizationUrl)return null;try{return new URL(l.authorizationUrl).origin}catch{return null}},[l.authorizationUrl]);U.useEffect(()=>{if(E)return aq(E)},[E]),U.useEffect(()=>{const H=P1();if(!H)return;const Y=Z=>{const P=C.current;!A.current||P.pending||P.connected||!cl(Z.data)||!T1(Z.data,_.current)||P.onResult(j1(Z.data))};return H.addEventListener("message",Y),()=>{H.removeEventListener("message",Y),H.close()}},[]);const O=U.useCallback(H=>{if(A.current=!0,l.authorizationUrl){const Y=I1(l.authorizationUrl);Y&&_.current.add(Y)}S(H)},[S,l.authorizationUrl]);U.useEffect(()=>{var H,Y;!k||!w||(k==="submit"?(Y=(H=m.current)==null?void 0:H.closest("form"))==null||Y.requestSubmit():k==="reload"&&x(),v(null))},[k,w,x]);const R=w?"connected":y||g?"pending":"idle",T=R==="connected"?l.connectedLabel:R==="pending"?l.pendingLabel:l.connectLabel;return j.jsx("div",{className:"fcode-oauth",id:e,"data-status":R,ref:m,children:j.jsx(c,{id:`${e}__button`,status:R,label:T,disabled:s||o||w||!l.authorizationUrl,errorMessage:w?void 0:d,onClick:O})})},mq=e=>{const{fieldPathId:t,schema:r,uiSchema:i,registry:a,formData:n,onChange:s,disabled:o,readonly:l,required:u}=e,c=me(i),f=ge("TitleFieldTemplate",a,c),m=ge("DescriptionFieldTemplate",a,c),d=c.title??r.title,p=c.description??r.description;return j.jsxs("div",{className:"fcode-oauth-field",children:[d&&j.jsx(f,{id:`${t.$id}__title`,title:d,required:u,schema:r,uiSchema:i,registry:a}),p&&j.jsx(m,{id:`${t.$id}__description`,description:p,schema:r,uiSchema:i,registry:a}),j.jsx(R1,{id:t.$id,schema:r,uiOptions:c,registry:a,value:n,onChange:k=>s(k,t.path),disabled:o,readonly:l})]})},pq=Object.freeze(Object.defineProperty({__proto__:null,button:xL,json:wL,oauth:mq,sourceCode:q2},Symbol.toStringTag,{value:"Module"}));function hq(e,t){return e==null?!0:dk(e,t)}function bf(){return o1("rjsf-array-item-")}function Cy(e){return Array.isArray(e)?e.map(t=>({key:bf(),item:t})):[]}function N1(e){return Array.isArray(e)?e.map(t=>t.item):[]}function gq(e){return Array.isArray(e.type)?!e.type.includes("null"):e.type!=="null"}function F1(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 D1(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 yq(e,t){const{schemaUtils:r,globalFormOptions:i}=e;let a=t.items;return i.useFallbackUiForUnsupportedType&&!a?a={}:Pd(t)&&v_(t)&&(a=t.additionalItems),r.getDefaultFormState(a)}function vq(e){const{schema:t,fieldPathId:r,uiSchema:i,formData:a=[],disabled:n=!1,readonly:s=!1,autofocus:o=!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,x=g.retrieveSchema(t.items,a),h=(i==null?void 0:i.items)??i,y=pi(x,h),{widget:S="select",title:A,..._}=me(i,w),C=Wr(t,S,v),E=A??t.title??p,O=g.getDisplayLabel(t,i,w),R=pa(Tr("",b,r,!0));return j.jsx(C,{id:R[nt],name:p,multiple:!0,onChange:k,onBlur:c,onFocus:f,options:{..._,enumOptions:y},schema:t,uiSchema:i,registry:m,value:a,disabled:n,readonly:s,required:l,label:E,hideLabel:!O,placeholder:u,autofocus:o,rawErrors:d,htmlName:R.name})}function bq(e){const{schema:t,fieldPathId:r,uiSchema:i,disabled:a=!1,readonly:n=!1,autofocus:s=!1,required:o=!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:x}=d,{widget:h,title:y,...S}=me(i,x),A=Wr(t,h,g),_=y??t.title??k,C=b.getDisplayLabel(t,i,x),E=pa(Tr("",w,r,!0));return j.jsx(A,{id:E[nt],name:k,multiple:!0,onChange:v,onBlur:c,onFocus:f,options:S,schema:t,uiSchema:i,registry:d,value:m,disabled:a,readonly:n,hideError:l,required:o,label:_,hideLabel:!C,placeholder:u,autofocus:s,rawErrors:p,htmlName:E.name})}function kq(e){const{schema:t,uiSchema:r,fieldPathId:i,name:a,disabled:n=!1,readonly:s=!1,autofocus:o=!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:x,...h}=me(r,b),y=Wr(t,w,k),S=x??t.title??a,A=v.getDisplayLabel(t,r,b),_=pa(Tr("",g,i,!0));return j.jsx(y,{options:h,id:_[nt],name:a,multiple:!0,onChange:p,onBlur:u,onFocus:c,schema:t,uiSchema:r,value:m,disabled:n,readonly:s,required:l,registry:f,autofocus:o,rawErrors:d,label:S,hideLabel:!A,htmlName:_.name})}function wq(e){const{itemKey:t,index:r,name:i,disabled:a,hideError:n,readonly:s,registry:o,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:x,onFocus:h,onChange:y,rawErrors:S,totalItems:A,title:_,handleAddItem:C,handleCopyItem:E,handleRemoveItem:O,handleReorderItems:R}=e,{schemaUtils:T,fields:{ArraySchemaField:D,SchemaField:L},globalUiOptions:H,globalFormOptions:Y}=o,Z=U.useMemo(()=>T.retrieveSchema(p,k),[T,p,k]),P=U.useMemo(()=>Tr(r,Y,g),[r,Y,g]),F=D||L,z=ge("ArrayFieldItemTemplate",o,l),I=T.getDisplayLabel(Z,v,H),{description:N}=me(v),M=!!N||!!Z.description,{orderable:B=!0,removable:V=!0,copyable:W=!1}=l,K={moveUp:B&&m,moveDown:B&&d,copy:W&&c,remove:V&&f,toolbar:!1};K.toolbar=Object.keys(K).some(re=>K[re]);const X=U.useCallback(re=>{C(re,r+1)},[C,r]),$=U.useCallback(re=>{E(re,r)},[E,r]),q=U.useCallback(re=>{O(re,r)},[O,r]),J=U.useCallback(re=>{R(re,r,r-1)},[R,r]),G=U.useCallback(re=>{R(re,r,r+1)},[R,r]),ie={children:j.jsx(F,{name:i,title:_,index:r,schema:Z,uiSchema:v,formData:k,errorSchema:b,fieldPathId:P,required:gq(Z),onChange:y,onBlur:x,onFocus:h,registry:o,disabled:a,readonly:s,hideError:n,autofocus:w,rawErrors:S}),buttonsProps:{fieldPathId:P,disabled:a,readonly:s,canAdd:c,hasCopy:K.copy,hasMoveUp:K.moveUp,hasMoveDown:K.moveDown,hasRemove:K.remove,index:r,totalItems:A,onAddItem:X,onCopyItem:$,onRemoveItem:q,onMoveUpItem:J,onMoveDownItem:G,registry:o,schema:Z,uiSchema:v},itemKey:t,className:"rjsf-array-item",disabled:a,hasToolbar:K.toolbar,index:r,totalItems:A,readonly:s,registry:o,schema:Z,uiSchema:v,parentUiSchema:u,displayLabel:I,hasDescription:M};return j.jsx(z,{...ie})}const M1=U.memo(wq);function xq(e){const{schema:t,uiSchema:r={},errorSchema:i,fieldPathId:a,formData:n,name:s,title:o,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:x,handleRemoveItem:h,handleReorderItems:y}=e,S=t.title||o||s,{schemaUtils:A,fields:_,formContext:C,globalUiOptions:E}=d,{OptionalDataControlsField:O}=_,R=U.useMemo(()=>me(r,E),[r,E]),T=U.useMemo(()=>Ue(t.items)?t.items:{},[t.items]),D=U.useMemo(()=>A.retrieveSchema(T),[A,T]),L=U.useMemo(()=>N1(b),[b]),H=bs(d,t,f,r),Y=ma(n),Z=U.useMemo(()=>F1(d,t,L,r)&&(!H||Y),[d,t,L,r,H,Y]),P=Y?b:[],F=H?" rjsf-optional-array-field":"",z=e.childFieldPathId??a,I=H?j.jsx(O,{...e,fieldPathId:z}):void 0,N={canAdd:Z,items:P.map((B,V)=>{const{key:W,item:K}=B,X=K,$=i?i[V]:void 0,q=D1(r,K,V,C),J={itemKey:W,index:V,name:s&&`${s}-${V}`,registry:d,uiOptions:R,parentUiSchema:r,hideError:m,readonly:u,disabled:l,required:f,title:S?`${S}-${V+1}`:void 0,canAdd:Z,canMoveUp:V>0,canMoveDown:V<L.length-1,rawItemSchema:T,parentFieldPathId:z,itemErrorSchema:$,itemData:X,itemUiSchema:q,autofocus:c&&V===0,onBlur:p,onFocus:k,rawErrors:v,totalItems:b.length,handleAddItem:w,handleCopyItem:x,handleRemoveItem:h,handleReorderItems:y,onChange:g};return j.jsx(M1,{...J},W)}),className:`rjsf-field rjsf-field-array rjsf-field-array-of-${D.type}${F}`,disabled:l,fieldPathId:a,uiSchema:r,onAddClick:w,readonly:u,required:f,schema:t,title:S,formData:L,rawErrors:v,registry:d,optionalDataControl:I},M=ge("ArrayFieldTemplate",d,R);return j.jsx(M,{...N})}function Sq(e){const{schema:t,uiSchema:r={},formData:i,errorSchema:a,fieldPathId:n,name:s,title:o,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:x,handleRemoveItem:h,handleReorderItems:y}=e;let{formData:S=[]}=e;const A=t.title||o||s,{fields:_,formContext:C,globalUiOptions:E}=d,O=U.useMemo(()=>me(r,E),[r,E]),{OptionalDataControlsField:R}=_,T=bs(d,t,f,r),D=ma(i),L=U.useMemo(()=>Ue(t.items)?t.items:[],[t.items]),H=Ue(t.additionalItems),Y=e.childFieldPathId??n;S.length<L.length&&(S=S.concat(new Array(L.length-S.length)));const Z=D?g:[],P=T?" rjsf-optional-array-field":"",F=T?j.jsx(R,{...e,fieldPathId:Y}):void 0,z=F1(d,t,S,r)&&H&&(!T||D),I={canAdd:z,className:`rjsf-field rjsf-field-array rjsf-field-array-fixed-items${P}`,disabled:l,fieldPathId:n,formData:i,items:Z.map((M,B)=>{const{key:V,item:W}=M,K=W,X=B>=L.length,$=(X&&Ue(t.additionalItems)?t.additionalItems:L[B])||{};let q;X?q=r.additionalItems:Array.isArray(r.items)?q=r.items[B]:q=D1(r,W,B,C);const J=a?a[B]:void 0,G={index:B,itemKey:V,name:s&&`${s}-${B}`,registry:d,uiOptions:O,parentUiSchema:r,hideError:m,readonly:u,disabled:l,required:f,title:A?`${A}-${B+1}`:void 0,canAdd:z,canRemove:X,canMoveUp:B>=L.length+1,canMoveDown:X&&B<S.length-1,rawItemSchema:$,itemData:K,itemUiSchema:q,parentFieldPathId:Y,itemErrorSchema:J,autofocus:c&&B===0,onBlur:p,onFocus:k,rawErrors:v,totalItems:g.length,onChange:b,handleAddItem:w,handleCopyItem:x,handleRemoveItem:h,handleReorderItems:y};return j.jsx(M1,{...G},V)}),onAddClick:w,readonly:u,required:f,registry:d,schema:t,uiSchema:r,title:A,errorSchema:a,rawErrors:v,optionalDataControl:F},N=ge("ArrayFieldTemplate",d,O);return j.jsx(N,{...I})}function Cq(e=[]){const t=U.useMemo(()=>fr(e),[e]),[r,i]=U.useState(()=>({formDataHash:t,keyedFormData:Cy(e)}));let{keyedFormData:a,formDataHash:n}=r;if(t!==n){const o=Array.isArray(e)?e:[],l=a||[];a=o.length===l.length?l.map((u,c)=>({key:u.key,item:o[c]})):Cy(o),n=t,i({formDataHash:n,keyedFormData:a})}const s=U.useCallback(o=>{const l=N1(o),u=fr(l);return i({formDataHash:u,keyedFormData:o}),l},[]);return{keyedFormData:a,updateKeyedFormData:s}}function Eq(e){const{schema:t,uiSchema:r,errorSchema:i,fieldPathId:a,registry:n,formData:s,onChange:o}=e,{globalFormOptions:l,schemaUtils:u,translateString:c}=n,{keyedFormData:f,updateKeyedFormData:m}=Cq(s),d=U.useRef(f);d.current=f;const p=U.useRef(i);p.current=i;const k=e.childFieldPathId??a,v=U.useCallback((A,_)=>{A&&A.preventDefault();let C;if(p.current){C={};for(const R of Object.keys(p.current)){const T=parseInt(R,10);_===void 0||T<_?lt(C,[T],p.current[T]):T>=_&&lt(C,[T+1],p.current[T])}}const E={key:bf(),item:yq(n,t)},O=[...d.current];_!==void 0?O.splice(_,0,E):O.push(E),o(m(O),k.path,C)},[n,t,o,m,k]),g=U.useCallback((A,_)=>{A&&A.preventDefault();let C;if(p.current){C={};for(const R of Object.keys(p.current)){const T=parseInt(R,10);T<=_?lt(C,[T],p.current[T]):T>_&&lt(C,[T+1],p.current[T])}}const E={key:bf(),item:al(d.current[_].item)},O=[...d.current];_!==void 0?O.splice(_+1,0,E):O.push(E),o(m(O),k.path,C)},[o,m,k]),b=U.useCallback((A,_)=>{A&&A.preventDefault();let C;if(p.current){C={};for(const O of Object.keys(p.current)){const R=parseInt(O,10);R<_?lt(C,[R],p.current[R]):R>_&&lt(C,[R-1],p.current[R])}}const E=d.current.filter((O,R)=>R!==_);o(m(E),k.path,C)},[o,m,k]),w=U.useCallback((A,_,C)=>{A&&(A.preventDefault(),A.currentTarget.blur());let E;if(p.current){E={};for(const T of Object.keys(p.current)){const D=parseInt(T,10);D===_?lt(E,[C],p.current[_]):D===C?lt(E,[_],p.current[C]):lt(E,[T],p.current[D])}}function O(){const T=d.current.slice();return T.splice(_,1),T.splice(C,0,d.current[_]),T}const R=O();o(m(R),k.path,E)},[o,m,k]),x=U.useCallback((A,_,C,E)=>{const O=typeof _.at(-1)=="number";o(O&&A===void 0?null:A,_,C,E)},[o]),h=U.useCallback(A=>{o(A,k.path,void 0,k==null?void 0:k[nt])},[o,k]),y={...e,formData:s,fieldPathId:k,onSelectChange:h},S={...e,handleAddItem:v,handleCopyItem:g,handleRemoveItem:b,handleReorderItems:w,keyedFormData:f,onChange:x};if(!(ea in t)){if(!l.useFallbackUiForUnsupportedType){const _=me(r),C=ge("UnsupportedFieldTemplate",n,_);return j.jsx(C,{schema:t,fieldPathId:a,reason:c(_e.MissingItems),registry:n})}const A={...t,[ea]:{type:void 0}};y.schema=A,S.schema=A}return u.isMultiSelect(y.schema)?j.jsx(vq,{...y}):Yk(r)?j.jsx(bq,{...y}):Pd(y.schema)?j.jsx(Sq,{...S}):u.isFilesArray(y.schema,r)?j.jsx(kq,{...y}):j.jsx(xq,{...S})}function Aq(e){const{schema:t,name:r,uiSchema:i,fieldPathId:a,formData:n,registry:s,required:o,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:x}=s,{widget:h="checkbox",title:y,label:S=!0,enumNames:A,..._}=me(i,x),C=Wr(t,h,b),E=w(_e.YesLabel),O=w(_e.NoLabel);let R;const T=y??g??m??r;if(Array.isArray(t.oneOf))R=pi({oneOf:t.oneOf.map(L=>{if(Ue(L))return{...L,title:L.title||(L.const===!0?E:O)}}).filter(L=>L)},i);else{const L=t.enum??[!0,!1];!A&&L.length===2&&L.every(H=>typeof H=="boolean")?R=[{value:L[0],label:L[0]?E:O},{value:L[1],label:L[1]?E:O}]:R=pi({enum:L},i)}const D=U.useCallback((L,H,Y)=>d(L,a.path,H,Y),[d,a]);return j.jsx(C,{options:{..._,enumOptions:R},schema:t,uiSchema:i,id:a.$id,name:r,onChange:D,onFocus:p,onBlur:k,label:T,hideLabel:!S,value:n,required:o,disabled:l,readonly:u,hideError:c,registry:s,autofocus:f,rawErrors:v,htmlName:a.name})}function Oq(e){const[t,r]=U.useState(!1),{name:i,registry:a,schema:n,uiSchema:s,fieldPathId:o}=e,{globalUiOptions:l}=a,u=me(s,l),c=ge("CyclicSchemaExpandTemplate",a,u);if(!t)return j.jsx(c,{registry:a,schema:n,uiSchema:s,name:i,fieldPathId:o,onExpand:()=>r(!0)});const{fields:f}=a,{SchemaField:m}=f;return j.jsx(m,{...e,schema:{...n,[od]:!1}})}function _q(e){return{type:"string",enum:["string","number","boolean","object","array"],default:"string",title:e}}function Pq(e){const t=typeof e;return t==="string"||t==="number"||t==="boolean"?t:t==="object"?Array.isArray(e)?"array":"object":"string"}function Iq(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 Tq(e){const{id:t,formData:r,displayLabel:i=!0,schema:a,name:n,uiSchema:s,required:o,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,x]=U.useState(Pq(r)),h=me(s),y=pa(Tr("__internal_type_selector",b,d)),S=v(_e.Type),A=U.useMemo(()=>_q(S),[S]),_=O=>{O!=null&&(x(O),p(Iq(r,O),d.path,k,t))};if(!b.useFallbackUiForUnsupportedType){const{reason:O=v(_e.UnknownFieldType,[String(a.type)])}=e,R=ge("UnsupportedFieldTemplate",m,h);return j.jsx(R,{schema:a,fieldPathId:d,reason:O,registry:m})}const C=ge("FallbackFieldTemplate",m,h),{SchemaField:E}=g;return j.jsx(C,{schema:a,registry:m,typeSelector:j.jsx(E,{fieldPathId:y,name:`${n}__fallback_type`,schema:A,formData:w,onChange:_,onBlur:c,onFocus:f,registry:m,hideLabel:!i,disabled:l,readonly:u,required:o},r?fr(r):"__empty__"),schemaField:j.jsx(E,{...e,schema:{type:w,title:v(_e.Value),...w==="object"&&{additionalProperties:!0}}})})}function jq(e,t){return ua(t,function(r){return e[r]})}function Rq(e){return e==null?[]:jq(e,Cr(e))}var Nq=Math.max;function Fq(e,t,r,i){e=Ci(e)?e:Rq(e),r=r?wk(r):0;var a=e.length;return r<0&&(r=Nq(a+r,0)),Dn(e)?r<=a&&e.indexOf(t,r)>-1:!!a&&_k(e,t,r)>-1}var Dq=Math.min;function Mq(e,t,r){for(var i=_d,a=e[0].length,n=e.length,s=n,o=Array(n),l=1/0,u=[];s--;){var c=e[s];l=Dq(c.length,l),o[s]=a>=120&&c.length>=120?new mi(s&&c):void 0}c=e[0];var f=-1,m=o[0];e:for(;++f<a&&u.length<l;){var d=c[f],p=d;if(d=d!==0?d:0,!(m?rs(m,p):i(u,p))){for(s=n;--s;){var k=o[s];if(!(k?rs(k,p):i(e[s],p)))continue e}m&&m.push(p),u.push(d)}}return u}function Lq(e){return ts(e)?e:[]}var Ey=Il(function(e){var t=ua(e,Lq);return t.length&&t[0]===e[0]?Mq(t):[]});function qq(e,t){return Tl(e,t)}function L1(e){return e===void 0}var Br;(function(e){e.ROW="ui:row",e.COLUMN="ui:col",e.COLUMNS="ui:columns",e.CONDITION="ui:condition"})(Br||(Br={}));var Ka;(function(e){e.ALL="all",e.SOME="some",e.NONE="none"})(Ka||(Ka={}));const $q=/^\$lookup=(.+)/,Fc="layoutGrid";function Ay(e,t){return e??t}function zq(e){return/^\d+?$/.test(e)}const In=Rd();function Uq(e,t,r,i,a){const n=ae(r,[sf],{}),s=ae(r,e),o={...ae(s,[An],{}),...t,...n},l={...s};wt(o)||lt(l,[An],o),wt(n)||lt(l,[sf],n);let{readonly:u}=me(l);return(a===!0||L1(u)&&i===!0)&&(u=!0,qe(o,_u)?lt(l,[An,_u],!0):lt(l,`ui:${_u}`,!0)),{fieldUiSchema:l,uiReadonly:u}}function Bq(e,t,r="$0m3tH1nG Un3xP3cT3d"){const i=df([t]).sort(),a=df([r]).sort();switch(e){case Ka.ALL:return qq(i,a);case Ka.SOME:return Ey(i,a).length>0;case Ka.NONE:return Ey(i,a).length===0;default:return!1}}function Ul(e,t,r){let i={},a=e[t];if(Nn(a)){const{children:n,className:s,...o}=a;if(a=n,s){const u=s.split(" ").map(c=>Md(r,c,c)).join(" ");i={...o,className:u}}else i=o}if(!Array.isArray(a))throw new TypeError(`Expected array for "${t}" in ${JSON.stringify(e)}`);return{children:a,gridProps:i}}function Oy(e,t,r){let i,a=t;if(zq(r)&&e&&(e==null?void 0:e.type)==="array"&&qe(e,ea)){const n=Number(r),s=e[ea];Array.isArray(s)?n>s.length?i=fk(s):i=s[n]:i=s,a={[nt]:t[nt],path:[...t.path.slice(0,t.path.length-1),n]}}return{rawSchema:i,fieldPathId:a}}function Vq(e,t,r,i,a){const{schemaUtils:n,globalFormOptions:s}=e;let o=r,l=a;const u=t.split("."),c=u.pop();let f=n.retrieveSchema(o,i),m=i,d=f.readOnly;u.forEach(v=>{if(l=Tr(v,s,l),qe(f,ze))o=ae(f,[ze,v],{});else if(f&&(qe(f,Ae)||qe(f,Le))){const g=qe(f,Ae)?Ae:Le,b=n.findSelectedOptionInXxxOf(f,v,g,m);o=ae(b,[ze,v],{})}else{const g=Oy(f,l,v);o=g.rawSchema??{},l=g.fieldPathId}m=ae(m,v,{}),f=n.retrieveSchema(o,m),d=Ay(f.readOnly,d)});let p,k=!1;if(wt(f)&&(f=void 0),f&&c){if(f&&(qe(f,Ae)||qe(f,Le))){const g=qe(f,Ae)?Ae:Le;f=n.findSelectedOptionInXxxOf(f,c,g,m)}l=Tr(c,s,l),k=f!==void 0&&Array.isArray(f.required)&&Fq(f.required,c);const v=Oy(f,l,c);if(v.rawSchema?(f=v.rawSchema,l=v.fieldPathId):(f=ae(f,[ze,c]),f=f&&n.retrieveSchema(f)),d=Ay(f==null?void 0:f.readOnly,d),f&&(qe(f,Ae)||qe(f,Le))){const g=qe(f,Ae)?Ae:Le,b=yr(f);p={options:f[g],hasDiscriminator:!!b}}}return{schema:f,isRequired:k,isReadonly:d,optionsInfo:p,fieldPathId:l}}function Hq(e,t){let r=e;return Dn(r)&&(r=Md(t,r)),ds(r)?r:null}function Wq(e,t){let r,i=null,a={},n;if(Dn(t)||L1(t))r=t??"";else{const{name:s="",render:o,...l}=t;r=s,a=l,wt(a)||tD(a,(u,c)=>{if(Dn(u)){const f=$q.exec(u);if(Array.isArray(f)&&f.length>1){const m=f[1];a[c]=Md(e,m,m)}}}),i=Hq(o,e),!s&&i&&(n=j.jsx(i,{...l,"data-testid":In.uiComponent}))}return{name:r,UIComponent:i,uiProps:a,rendered:n}}function Bl(e){const{childrenLayoutGridSchemaId:t,...r}=e,{registry:i,schema:a,formData:n}=r,{schemaUtils:s}=i,o=s.retrieveSchema(a,n);return t.map(l=>U.createElement(Vd,{...r,key:`layoutGrid-${fr(l)}`,schema:o,layoutGridSchema:l}))}function Kq(e){const{layoutGridSchema:t,...r}=e,{formData:i,registry:a}=r,{children:n,gridProps:s}=Ul(t,Br.CONDITION,a),{operator:o,field:l="",value:u}=s,c=ae(i,l,null);return Bq(o,c,u)?j.jsx(Bl,{...r,childrenLayoutGridSchemaId:n}):null}function Gq(e){const{layoutGridSchema:t,...r}=e,{registry:i,uiSchema:a}=r,{children:n,gridProps:s}=Ul(t,Br.COLUMN,i),o=me(a),l=ge("GridTemplate",i,o);return j.jsx(l,{column:!0,"data-testid":In.col,...s,children:j.jsx(Bl,{...r,childrenLayoutGridSchemaId:n})})}function Jq(e){const{layoutGridSchema:t,...r}=e,{registry:i,uiSchema:a}=r,{children:n,gridProps:s}=Ul(t,Br.COLUMNS,i),o=me(a),l=ge("GridTemplate",i,o);return n.map(u=>j.jsx(l,{column:!0,"data-testid":In.col,...s,children:j.jsx(Bl,{...r,childrenLayoutGridSchemaId:[u]})},`column-${fr(u)}`))}function Yq(e){const{layoutGridSchema:t,...r}=e,{registry:i,uiSchema:a}=r,{children:n,gridProps:s}=Ul(t,Br.ROW,i),o=me(a),l=ge("GridTemplate",i,o);return j.jsx(l,{...s,"data-testid":In.row,children:j.jsx(Bl,{...r,childrenLayoutGridSchemaId:n})})}function Xq(e){const{gridSchema:t,schema:r,uiSchema:i,errorSchema:a,fieldPathId:n,onBlur:s,onFocus:o,formData:l,readonly:u,registry:c,layoutGridSchema:f,...m}=e,{onChange:d}=m,{fields:p}=c,{SchemaField:k,LayoutMultiSchemaField:v}=p,g=Wq(c,t),{name:b,UIComponent:w,uiProps:x}=g,{schema:h,isRequired:y,isReadonly:S,optionsInfo:A,fieldPathId:_}=Vq(c,b,r,l,n),C=pa(_);if(g.rendered)return g.rendered;if(h){const E=A!=null&&A.hasDiscriminator?v:k,{fieldUiSchema:O,uiReadonly:R}=Uq(b,x,i,S,u);return j.jsx(E,{"data-testid":A!=null&&A.hasDiscriminator?In.layoutMultiSchemaField:In.field,...m,name:b,required:y,readonly:R,schema:h,uiSchema:O,errorSchema:ae(a,b),fieldPathId:C,formData:ae(l,b),onChange:d,onBlur:s,onFocus:o,options:A==null?void 0:A.options,registry:c})}return w?j.jsx(w,{"data-testid":In.uiComponent,...m,name:b,required:y,formData:l,readOnly:!!S||u,errorSchema:a,uiSchema:i,schema:r,fieldPathId:n,onBlur:s,onFocus:o,registry:c,...x}):null}function Vd(e){const{uiSchema:t}=e;let{layoutGridSchema:r}=e;const i=me(t);if(!r&&Fc in i&&Ue(i[Fc])&&(r=i[Fc]),Ue(r)){if(Br.ROW in r)return j.jsx(Yq,{...e,layoutGridSchema:r});if(Br.COLUMN in r)return j.jsx(Gq,{...e,layoutGridSchema:r});if(Br.COLUMNS in r)return j.jsx(Jq,{...e,layoutGridSchema:r});if(Br.CONDITION in r)return j.jsx(Kq,{...e,layoutGridSchema:r})}return j.jsx(Xq,{...e,gridSchema:r})}Vd.TEST_IDS=In;function Zq(e){const{fieldPathId:t,title:r,schema:i,uiSchema:a,required:n,registry:s,name:o}=e,l=me(a,s.globalUiOptions),{title:u}=l,{title:c}=i,f=u||r||c||o;if(!f)return null;const m=ge("TitleFieldTemplate",s,l);return j.jsx(m,{id:Fl(t),title:f,required:n,schema:i,uiSchema:a,registry:s})}function Dc(e,t,r){const i="!@#!@$@#$!@$#";return e.map(({schema:n})=>n).find(n=>{const s=ae(n,[ze,t]);return ae(s,ci,ae(s,Wt,i))===r})}function _y(e,t,r,i,a){const n=t.map(l=>r.retrieveSchema(l,a));let s=e;qe(e,Ae)?s={...e,[Ae]:n}:qe(e,Le)&&(s={...e,[Le]:n});const o=pi(s,i);if(!o)throw new Error(`No enumOptions were computed from the schema ${JSON.stringify(s)}`);return o}function Qq(e){var q;const{name:t,baseType:r,disabled:i=!1,formData:a,fieldPathId:n,onBlur:s,onChange:o,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:x}=c,[h,y]=U.useState(_y(m,l,w,f,a)),S=ae(n,nt),A=yr(m),_=ge("FieldErrorTemplate",c,l),C=ge("FieldTemplate",c,l),E=fr(m),O=fr(l),R=f?fr(f):"",T=a?fr(a):"";U.useEffect(()=>{y(_y(m,l,w,f,a))},[E,O,w,R,T]);const{widget:D=A?"radio":"select",title:L="",placeholder:H="",optionsSchemaSelector:Y=A,hideError:Z,...P}=me(f);if(!Y)throw new Error("No selector field provided for the LayoutMultiSchemaField");const F=ae(a,Y);let z=ae((q=h[0])==null?void 0:q.schema,[ze,Y],{});const I=Dc(h,Y,F);z=z!=null&&z.type?z:{...z,type:(I==null?void 0:I.type)||r};const N=Wr(z,D,b),M=Z===void 0?g:!!Z,B=ae(v,[Nt],[]),V=Qa(v,[Nt]),W=w.getDisplayLabel(m,f,x),K=J=>{if(i||p)return;const G=Dc(h,Y,J),ie=Dc(h,Y,F);let re=w.sanitizeDataForNewSchema(G,ie,a);re&&G&&(re=w.getDefaultFormState(G,re,"excludeObjectChildren")),re&&lt(re,Y,J),o(re,n.path,void 0,S)},X={enumOptions:h,...P},$=!M&&B.length>0?j.jsx(_,{fieldPathId:n,schema:m,errors:B,registry:c}):void 0;return j.jsx(C,{fieldPathId:n,id:S,schema:m,label:(L||m.title)??"",disabled:i||Array.isArray(h)&&wt(h),uiSchema:f,required:k,readonly:!!p,registry:c,displayLabel:W,errors:$,onChange:o,onKeyRename:$o,onKeyRenameBlur:$o,onRemoveProperty:$o,children:j.jsx(N,{id:S,name:t,schema:m,label:(L||m.title)??"",disabled:i||Array.isArray(h)&&wt(h),uiSchema:f,autofocus:d,readonly:p,required:k,registry:c,multiple:!1,rawErrors:B,hideError:M,hideLabel:!W,errorSchema:V,placeholder:H,onChange:K,onBlur:s,onFocus:u,value:F,options:X,htmlName:n.name})})}function Py(e){const{name:t,disabled:r=!1,errorSchema:i={},formData:a,fieldPathId:n,onBlur:s,onChange:o,onFocus:l,options:u,readonly:c,registry:f,required:m=!1,schema:d,uiSchema:p}=e,{schemaUtils:k}=f,v=fr(a??null),g=U.useMemo(()=>u.map(re=>k.retrieveSchema(re,a)),[u,k,v]),[b,w]=U.useState(()=>{const re=yr(d);return k.getClosestMatchingOption(a,g,0,re)}),x=U.useRef(!1),h=U.useRef(a),y=U.useRef(n.$id);U.useEffect(()=>{const re=h.current,ue=y.current;if(h.current=a,y.current=n.$id,!$e(a,re)&&n.$id===ue){if(x.current){x.current=!1;return}const ye=yr(d),we=k.getClosestMatchingOption(a,g,b,ye);we!==b&&w(we)}});const S=`${n.$id}${d.oneOf?"__oneof_select":"__anyof_select"}`,A=U.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,we=b>=0?g[b]:void 0;let ke=k.sanitizeDataForNewSchema(ye,we,a);ye&&(ke=k.getDefaultFormState(ye,ke,"excludeObjectChildren")),w(ue),x.current=!0,o(ke,n.path,void 0,S)},[b,g,r,c,k,a,n,o,S]),{widgets:_,fields:C,translateString:E,globalUiOptions:O}=f,{SchemaField:R}=C,T=ge("MultiSchemaFieldTemplate",f,O),D=bs(f,d,m,p),L=ma(a),{widget:H="select",placeholder:Y,autofocus:Z,autocomplete:P,title:F=d.title,...z}=me(p,O),I=Wr({type:"number"},H,_),N=ae(i,Nt,[]),M=Qa(i,[Nt]),B=k.getDisplayLabel(d,p,O),V=b>=0&&g[b]||null;let W;if(V){const{required:re,type:ue}=d,ye={};re&&(ye.required=re),ue!==void 0&&!("type"in V)&&(ye.type=ue),W=Object.keys(ye).length>0?an(ye,V):V}let K=[];Ae in d&&p&&Ae in p?Array.isArray(p[Ae])?K=p[Ae]:console.warn(`uiSchema.oneOf is not an array for "${F||t}"`):Le in d&&p&&Le in p&&(Array.isArray(p[Le])?K=p[Le]:console.warn(`uiSchema.anyOf is not an array for "${F||t}"`));let X=p;b>=0&&K.length>b&&(X=K[b]);const $=F?_e.TitleOptionPrefix:_e.OptionPrefix,q=F?[F]:[],J=g.map((re,ue)=>{const{title:ye=re.title}=me(K[ue]);return{label:ye||E($,q.concat(String(ue+1))),value:ue}}),G=!D||L?j.jsx(I,{id:S,name:`${t}${d.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:A,onBlur:s,onFocus:l,disabled:r||wt(J),multiple:!1,rawErrors:N,errorSchema:M,value:b>=0?b:void 0,options:{enumOptions:J,...z},registry:f,placeholder:Y,autocomplete:P,autofocus:Z,label:F??t,hideLabel:!B,readonly:c}):void 0,ie=W&&W.type!=="null"&&j.jsx(R,{...e,schema:W,uiSchema:X})||null;return j.jsx(T,{schema:d,registry:f,uiSchema:p,selector:G,optionSchemaField:ie})}function e$(e){const{formData:t,onChange:r,fieldPathId:i}=e;return U.useEffect(()=>{t===void 0&&r(null,i.path)},[i,t,r]),null}const t$=/\.([0-9]*0)*$/,r$=/[0.]0*$/;function n$(e){const{registry:t,onChange:r,formData:i,value:a}=e,[n,s]=U.useState(a),{StringField:o}=t.fields,l=Rb(),u=l==="."?"\\.":l;let c=i;const f=U.useCallback((d,p,k,v)=>{s(d);const g=typeof d=="string"?d.replace(l,"."):d,b=`${g}`.startsWith(".")?`0${g}`:g,w=typeof b=="string"&&t$.exec(b)?yp(b.replace(r$,"")):yp(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)?pi(d,p):void 0)?"select":"text",{widget:b=g}=me(p);b!=="radio"&&b!=="select"&&b!=="hidden"&&(m=String(c).replace(".",l))}return j.jsx(o,{...e,formData:m,onChange:f})}var To;function i$(e){if(!To){if(typeof document>"u")return;To=document.createElement("textarea")}var t=`&${e};`;To.innerHTML=t;var r=To.value;return r===t?void 0:r}var se=32,le=9,Ln=13,fe=10,Je=96,_t=126,vt=91,fn=94,Re=62,br=35,kf=37,Oe=45,dr=61,Tt=92,xt=42,gt=95,rt=60,q1=64,jr=93,Kt=33,Vl=38,qt=58,wf=70,hi=102,fl=104,li=119,Ji=116,xf=112,$1=115,a$=160,s$=12,o$=44,dl=59,ga=63,mr=46,yt=47,gi=39,yi=34,qn=43,It=124,vi=123,Hd=125,Er=40,Pr=41,l$=78,u$=110,c$=79,f$=111,z1=120,U1=88,Sf=30,Te=48,je=57,xe=65,Ee=90,Xe=97,ut=122,Hl=128,Sr=32,d$={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=d$;function m$(e){if(!Ty(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]!==`
97
97
  `)return null;t++;let r=!1;for(;t<e.length;){let i=t;for(;t<e.length&&e[t]!==`
98
98
  `&&e[t]!=="\r";)t++;if(t>=e.length)break;let a=t;if(e[t]==="\r"&&t++,t<e.length&&e[t]===`
99
- `&&t++,Ay(e,"---",i))return{endPos:t,hasValidYaml:r};if(!r){let n=s$(e,i,a);if(n<a){let s=e.charCodeAt(n);if(s>=Xe&&s<=ut||s>=xe&&s<=Ee||s>=Te&&s<=je||s===gt){for(n++;n<a&&(s=e.charCodeAt(n),s>=Xe&&s<=ut||s>=xe&&s<=Ee||s>=Te&&s<=je||s===gt||s===Oe||s===mr);)n++;n<a&&e.charCodeAt(n)===qt&&(n++,n>=a?r=!0:(s=e.charCodeAt(n),(s===se||s===le)&&(r=!0)))}}}}return null}var Yq=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,Xq={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"},Zq={};function R1(e){if(!e)return Zq;var t={};for(var r in e){var i=r.toLowerCase(),a=Xq[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 Qq=/(\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 Pn(e){return e.indexOf("&")===-1?e:e.replace(Yq,(t,r)=>{var i=$q(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 Ey=/(javascript|vbscript|data(?!:image)):/i;function nn(e){if(Ey.test(e))return null;if(e.indexOf("%")===-1)return e;try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(Ey.test(t))return null}catch{return null}return e}var Mt={},Vt,Pt;for(Vt=[192,193,194,195,196,197,224,225,226,227,228,229,230,198],Pt=0;Pt<Vt.length;Pt++)Mt[Vt[Pt]]="a";for(Mt[231]=Mt[199]="c",Mt[240]=Mt[208]="d",Vt=[200,201,202,203,233,232,234,235],Pt=0;Pt<Vt.length;Pt++)Mt[Vt[Pt]]="e";for(Vt=[207,239,206,238,205,237,204,236],Pt=0;Pt<Vt.length;Pt++)Mt[Vt[Pt]]="i";for(Mt[209]=Mt[241]="n",Vt=[248,216,339,338,213,245,212,244,211,243,210,242],Pt=0;Pt<Vt.length;Pt++)Mt[Vt[Pt]]="o";for(Vt=[220,252,219,251,218,250,217,249],Pt=0;Pt<Vt.length;Pt++)Mt[Vt[Pt]]="u";Mt[376]=Mt[255]=Mt[221]=Mt[253]="y";function yi(e){for(var t="",r=-1,i=e.length,a=0;a<i;a++){var n=e.charCodeAt(a);if(n>=Xe&&n<=ut||n>=Te&&n<=je){r<0&&(r=a);continue}if(n>=xe&&n<=Ee){r>=0&&(t+=e.slice(r,a),r=-1),t+=String.fromCharCode(n+Sr);continue}if(n===se||n===Oe){r>=0&&(t+=e.slice(r,a),r=-1),t+="-";continue}r>=0&&(t+=e.slice(r,a),r=-1);var s=Mt[n];s&&(t+=s)}return r>=0&&(t+=e.slice(r)),t}function Ay(e,t,r){return e.startsWith(t,r)}var Oy=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 bs(e){let t=e.toLowerCase();if(Oy.has(t))return!0;let r=t.indexOf(":");return r!==-1?(t=t.slice(r+1),Oy.has(t)):!1}var ii=1,_y=2,Ui=4,Py=8,e$=16,xr=32,yn=64,t$=(()=>{var e=new Uint8Array(128),t;for(e[le]=ii,e[fe]=ii|_y,e[Uq]=ii,e[Dn]=ii|_y,e[se]=ii,t=Wt;t<=yt;t++)e[t]=Ui;for(t=qt;t<=P1;t++)e[t]=Ui;for(t=vt;t<=Je;t++)e[t]=Ui;for(t=gi;t<=_t;t++)e[t]=Ui;for(t=Te;t<=je;t++)e[t]=e$;for(t=xe;t<=Ee;t++)e[t]=Py;for(t=Xe;t<=ut;t++)e[t]=Py;return e})(),r$=/[\p{P}\p{S}]/u,n$=new RegExp("\\p{Zs}","u"),Qn=[];function i$(e){var t=e.indexOf("\r"),r=e.indexOf("\0");if(t===-1&&r===-1)return e;var i=e.length;Qn.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 s=e.charCodeAt(n);s===Dn?(a<n&&Qn.push(e.slice(a,n)),n+1<i&&e.charCodeAt(n+1)===fe&&n++,Qn.push(`
100
- `),a=n+1):s===0&&(a<n&&Qn.push(e.slice(a,n)),Qn.push("�"),a=n+1)}return a<i&&Qn.push(e.slice(a)),Qn.join("")}function a$(e){return e.replace(/>\s+</g,"><").replace(/\n+/g," ").trim()}function s$(e,t,r){let i=r??e.length;for(;t<i&&(e[t]===" "||e[t]===" ");)t++;return t}function N1(e){if(!e)return!1;for(var t in e)return!0;return!1}function o$(e){return{attrs:{},children:[{type:ne.text,text:e}],c:!0,type:ne.htmlBlock,tag:"header"}}var l$=/^\n+/;function u$(e){for(var t=e.length;t>0&&(e[t-1]===`
101
- `||e[t-1]==="\r");)t--;return`${e.slice(0,t).replace(l$,"")}
99
+ `&&t++,Ty(e,"---",i))return{endPos:t,hasValidYaml:r};if(!r){let n=C$(e,i,a);if(n<a){let s=e.charCodeAt(n);if(s>=Xe&&s<=ut||s>=xe&&s<=Ee||s>=Te&&s<=je||s===gt){for(n++;n<a&&(s=e.charCodeAt(n),s>=Xe&&s<=ut||s>=xe&&s<=Ee||s>=Te&&s<=je||s===gt||s===Oe||s===mr);)n++;n<a&&e.charCodeAt(n)===qt&&(n++,n>=a?r=!0:(s=e.charCodeAt(n),(s===se||s===le)&&(r=!0)))}}}}return null}var p$=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,h$={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"},g$={};function B1(e){if(!e)return g$;var t={};for(var r in e){var i=r.toLowerCase(),a=h$[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 y$=/(\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 Tn(e){return e.indexOf("&")===-1?e:e.replace(p$,(t,r)=>{var i=i$(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 Iy=/(javascript|vbscript|data(?!:image)):/i;function nn(e){if(Iy.test(e))return null;if(e.indexOf("%")===-1)return e;try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(Iy.test(t))return null}catch{return null}return e}var Mt={},Vt,Pt;for(Vt=[192,193,194,195,196,197,224,225,226,227,228,229,230,198],Pt=0;Pt<Vt.length;Pt++)Mt[Vt[Pt]]="a";for(Mt[231]=Mt[199]="c",Mt[240]=Mt[208]="d",Vt=[200,201,202,203,233,232,234,235],Pt=0;Pt<Vt.length;Pt++)Mt[Vt[Pt]]="e";for(Vt=[207,239,206,238,205,237,204,236],Pt=0;Pt<Vt.length;Pt++)Mt[Vt[Pt]]="i";for(Mt[209]=Mt[241]="n",Vt=[248,216,339,338,213,245,212,244,211,243,210,242],Pt=0;Pt<Vt.length;Pt++)Mt[Vt[Pt]]="o";for(Vt=[220,252,219,251,218,250,217,249],Pt=0;Pt<Vt.length;Pt++)Mt[Vt[Pt]]="u";Mt[376]=Mt[255]=Mt[221]=Mt[253]="y";function bi(e){for(var t="",r=-1,i=e.length,a=0;a<i;a++){var n=e.charCodeAt(a);if(n>=Xe&&n<=ut||n>=Te&&n<=je){r<0&&(r=a);continue}if(n>=xe&&n<=Ee){r>=0&&(t+=e.slice(r,a),r=-1),t+=String.fromCharCode(n+Sr);continue}if(n===se||n===Oe){r>=0&&(t+=e.slice(r,a),r=-1),t+="-";continue}r>=0&&(t+=e.slice(r,a),r=-1);var s=Mt[n];s&&(t+=s)}return r>=0&&(t+=e.slice(r)),t}function Ty(e,t,r){return e.startsWith(t,r)}var jy=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 xs(e){let t=e.toLowerCase();if(jy.has(t))return!0;let r=t.indexOf(":");return r!==-1?(t=t.slice(r+1),jy.has(t)):!1}var si=1,Ry=2,Vi=4,Ny=8,v$=16,xr=32,bn=64,b$=(()=>{var e=new Uint8Array(128),t;for(e[le]=si,e[fe]=si|Ry,e[s$]=si,e[Ln]=si|Ry,e[se]=si,t=Kt;t<=yt;t++)e[t]=Vi;for(t=qt;t<=q1;t++)e[t]=Vi;for(t=vt;t<=Je;t++)e[t]=Vi;for(t=vi;t<=_t;t++)e[t]=Vi;for(t=Te;t<=je;t++)e[t]=v$;for(t=xe;t<=Ee;t++)e[t]=Ny;for(t=Xe;t<=ut;t++)e[t]=Ny;return e})(),k$=/[\p{P}\p{S}]/u,w$=new RegExp("\\p{Zs}","u"),ti=[];function x$(e){var t=e.indexOf("\r"),r=e.indexOf("\0");if(t===-1&&r===-1)return e;var i=e.length;ti.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 s=e.charCodeAt(n);s===Ln?(a<n&&ti.push(e.slice(a,n)),n+1<i&&e.charCodeAt(n+1)===fe&&n++,ti.push(`
100
+ `),a=n+1):s===0&&(a<n&&ti.push(e.slice(a,n)),ti.push("�"),a=n+1)}return a<i&&ti.push(e.slice(a)),ti.join("")}function S$(e){return e.replace(/>\s+</g,"><").replace(/\n+/g," ").trim()}function C$(e,t,r){let i=r??e.length;for(;t<i&&(e[t]===" "||e[t]===" ");)t++;return t}function V1(e){if(!e)return!1;for(var t in e)return!0;return!1}function E$(e){return{attrs:{},children:[{type:ne.text,text:e}],c:!0,type:ne.htmlBlock,tag:"header"}}var A$=/^\n+/;function O$(e){for(var t=e.length;t>0&&(e[t-1]===`
101
+ `||e[t-1]==="\r");)t--;return`${e.slice(0,t).replace(A$,"")}
102
102
 
103
- `}function Bi(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(Bi):[]}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(Bi)}]:[e]}function F1(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()}>`,s=a.toLowerCase().indexOf(n);if(s!==-1){var o=a.slice(s+n.length).replace(/<\/[a-z][a-z0-9-]*\s*>/gi,"");o.trim()&&(i=!0)}}i||(r.c=!1)}"children"in e[t]&&e[t].children&&F1(e[t].children)}}function c$(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 s=a[n];if(s.type===ne.htmlSelfClosing&&s.a&&s.tag.toLowerCase()===t){var o=e.slice(0,r);n>0&&o.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:o,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 f$(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 Iy(e,t,r,i){var a;return t===void 0?a=f$(r):a=t.length>0&&t.charCodeAt(0)>se?` ${t}`:t,`<${e}${a}${i}`}function Ty(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 s=e;return s.a?{kind:"literal",literal:s.h||n}:s.m?{kind:"literal",literal:s.m}:{kind:"literal",literal:Iy(t,a,e.attrs," />")}}var o=Iy(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:o,close:n}:{kind:"literal",literal:i.j};if(i.c&&!u)return{kind:"literal",literal:o+(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:o,close:n};c+=m.text}return{kind:"literal",literal:o+c+n}}var d=i.e||"";return d&&d.indexOf(n)!==-1?{kind:"literal",literal:o+d}:{kind:"literal",literal:o+d+n}}function d$(e,t,r){var i=[],a=e,n=r;if(a&&i.push(a),Array.isArray(t))for(var s=0;s<t.length;s++)i.push(t[s]);else t!=null&&i.push(t);n&&i.push(n);for(var o=[],l=0;l<i.length;l++){var u=i[l];typeof u=="string"&&o.length>0&&typeof o.at(-1)=="string"?o[o.length-1]=o.at(-1)+u:o.push(u)}return o}function Li(e){return e==null||e.tagfilter!==!1}function m$(e,t,r,i){var a=t(e,r,i);return a===null?null:h$(a)}function p$(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 bf(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 h$(e){for(var t=!1,r=0;r<e.length;r++){var i=e.charCodeAt(r);if(i<=se||i===hi||i===hf||i===rt||i===Re||i===vt||i===Tt||i===jr||i===fn||i===Je||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),s=e.charCodeAt(r+2);if((n>=Te&&n<=je||n>=xe&&n<=gf||n>=Xe&&n<=mi)&&(s>=Te&&s<=je||s>=xe&&s<=gf||s>=Xe&&s<=mi)){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 o=e.charCodeAt(r+1);if(o>=56320&&o<=57343){a+=encodeURI(e[r]+e[r+1]),r++;continue}}a+=e[r];continue}a+=encodeURI(e[r])}return a}function g$(...e){return e.filter(Boolean).join(" ")}var y$=new Set(["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"]),ll=/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi;function jy(e){return y$.has(e.toLowerCase())}function v$(e){return ll.lastIndex=0,ll.test(e)}function Ry(e){return ll.lastIndex=0,e.replace(ll,(t,r,i,a)=>`&lt;${r}${i}${a}`)}function zd(e,t){var r=e||{},i=r.slugify,a;if(i){var n=i;a=s=>n(s,yi)}else a=yi;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||nn,slugify:a,tagfilter:Li(r)}}var b$=/^<([a-zA-Z][a-zA-Z0-9-]*)\s[^>]*>/,k$=/^<[A-Z]/,kf=["script","pre","style","textarea"],ks=new Set(kf),w$=/<(?:pre|script|style|textarea)\b/i,Ny=/<(?:pre|script|style|textarea)\b/iy,jc=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m,Fy=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/im,D1=new Uint8Array(128);(()=>{for(var e=[Je,xt,gt,_t,dr,vt,Wt,rt,Tt,ql,fe,sl,si,mi],t=0;t<e.length;t++)D1[e[t]]=1})();var Dy=/([a-zA-Z_][a-zA-Z0-9_-]*)=(?:"([^"]*)"|'([^']*)')/g;function x$(e){return ks.has(e)}function S$(e){return w$.test(e)}function M1(e,t,r){for(var i=t,a=r;i<a&&(e.charCodeAt(i)===se||e.charCodeAt(i)===le);)i++;if(i>=a)return!1;e.charCodeAt(i)===It&&i++;for(var n=0;i<a;){for(;i<a&&(e.charCodeAt(i)===se||e.charCodeAt(i)===le);)i++;if(i>=a)break;if(e.charCodeAt(i)===It&&n>0){for(var s=i+1;s<a&&(e.charCodeAt(s)===se||e.charCodeAt(s)===le);)s++;if(s>=a)return!0}if(e.charCodeAt(i)===qt&&i++,i>=a||e.charCodeAt(i)!==Oe)return!1;for(;i<a&&e.charCodeAt(i)===Oe;)i++;for(i<a&&e.charCodeAt(i)===qt&&i++,n++;i<a&&(e.charCodeAt(i)===se||e.charCodeAt(i)===le);)i++;if(i<a)if(e.charCodeAt(i)===It)i++;else return!1}return n>0}var C$=/[\u0000-\u001F\u007F]/g,E$={action:1,background:1,cite:1,data:1,formaction:1,href:1,longdesc:1,poster:1,src:1,"xlink:href":1},A$=/&#(x[0-9a-f]+|[0-9]+);?/gi;function O$(e){return e.indexOf("&#")===-1?e:e.replace(A$,(t,r)=>{var i=r.charCodeAt(0)===T1||r.charCodeAt(0)===j1?Number.parseInt(r.slice(1),16):Number.parseInt(r,10);return i>0&&i<=1114111?String.fromCodePoint(i):t})}function _$(e,t,r){if(r&&t.charCodeAt(0)===gi)return!1;var i=e.charCodeAt(0),a=e.charCodeAt(1);if((i===Wq||i===Kq)&&(a===Hq||a===Vq))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(E$[n]===1){var s=O$(Pn(t));if(nn(s)===null)return!0;var o=s.replace(C$,"");return o!==s&&nn(o)===null}return!1}function wf(e){return"<"+(e.f?"/":"")+e.tag+e.g+e.b+(e.n?e.r?" />":"/>":">")}function My(e,t,r,i){for(var a=[],n=t,s=0;s<i.length;s+=2){var o=i[s];if(o>n){var l=e.slice(n,o).trim();l&&a.push(l)}n=i[s+1]}if(n<r){var u=e.slice(n,r).trim();u&&a.push(u)}return a.join(" ")}function zr(e,t){if(e.charCodeAt(t)!==rt)return null;let r=t+1,i=e.length,a=!1;e.charCodeAt(r)===yt&&(r++,a=!0);let n=r,s=e.charCodeAt(r);if(!(s>=Xe&&s<=ut||s>=xe&&s<=Ee))return null;for(;r<i&&(e.charCodeAt(r)>=Xe&&e.charCodeAt(r)<=ut||e.charCodeAt(r)>=xe&&e.charCodeAt(r)<=Ee||e.charCodeAt(r)>=Te&&e.charCodeAt(r)<=je||e.charCodeAt(r)===Oe);)r++;let o=e.slice(n,r);if(!o)return null;let l=o.charCodeAt(0),u=l>=xe&&l<=Ee||o.indexOf("-")!==-1,c=r;for(;r<i&&(e.charCodeAt(r)===se||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!==Re&&m!==yt)return null}let d=r,p={},k=!1;for(var v=null;r<i;){let R=e.charCodeAt(r);if(R===Re){let T=v?My(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:o}}if(R===se||R===le||R===fe){r++;continue}if(R===yt&&r+1<i&&e.charCodeAt(r+1)===Re){k=r>d&&e.charCodeAt(r-1)===se;let T=v?My(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:o}}var g=r,b=e.charCodeAt(r);if(!(b>=Xe&&b<=ut||b>=xe&&b<=Ee||b===gt||b===qt))return null;for(r++;r<i;){var w=e.charCodeAt(r);if(w>=Xe&&w<=ut||w>=xe&&w<=Ee||w>=Te&&w<=je||w===gt||w===mr||w===qt||w===Oe)r++;else break}for(var C=e.slice(g,r),h=r;r<i&&(e.charCodeAt(r)===se||e.charCodeAt(r)===le);)r++;var y,S;if(e.charCodeAt(r)===dr){for(r++;r<i&&(e.charCodeAt(r)===se||e.charCodeAt(r)===le);)r++;var A=e.charCodeAt(r);if(A===hi||A===pi){r++;for(var _=r;r<i&&e.charCodeAt(r)!==A;)r++;if(r>=i)return null;if(y=e.slice(_,r),r++,r<i){var x=e.charCodeAt(r);if(x!==se&&x!==le&&x!==fe&&x!==Re&&x!==yt)return null}S=r}else if(A===gi){var E=1,_=r;for(r++;r<i&&E>0;){var w=e.charCodeAt(r);w===gi?E++:w===$d&&E--,r++}y=e.slice(_,r),S=r}else{for(var _=r;r<i;){var O=e.charCodeAt(r);if(O===se||O===le||O===Re||O===fe||O===hi||O===pi||O===dr||O===rt||O===Je)break;r++}if(r===_)return null;y=e.slice(_,r),S=r}}else y="",S=h;_$(C,y,u)?(v===null&&(v=[]),v.push(g,S)):p[C]=y}return null}function rr(e){var t=e.indexOf("<");if(t===-1)return e;for(var r="",i=0,a=!1;t!==-1;){var n=zr(e,t);n?(n.q&&(r+=e.slice(i,t)+wf(n),i=n.end,a=!0),t=e.indexOf("<",n.end)):t=e.indexOf("<",t+1)}return a?r+e.slice(i):e}function P$(e,t,r){if(!r.optimizeForStreaming&&e.indexOf("[")===-1)return!1;for(var i=0,a=e.length,n=!1,s=!1;i<a;){for(var o=e.indexOf(`
104
- `,i),l=o<0?a:o,u=i,c=0;u<l&&c<4;)if(e.charCodeAt(u)===se)c++,u++;else if(e.charCodeAt(u)===le)c+=4,u++;else break;if(u>=l){n=!1,i=o<0?a:o+1;continue}if(c<4){var f=e.charCodeAt(u);if(f===Je||f===_t){for(var m=f,d=0,p=u;p<l&&e.charCodeAt(p)===m;)d++,p++;if(d>=3){var k=!0;if(m===Je){for(var v=p;v<l;v++)if(e.charCodeAt(v)===Je){k=!1;break}}if(k){n=!1;for(var g=o<0?a:o+1;g<a;){for(var b=g,w=0;b<a&&w<4;){var C=e.charCodeAt(b);if(C===se)w++,b++;else if(C===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)===se||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,s=!0);continue}}}}for(var y=u;y<l&&e.charCodeAt(y)===Re;){y++,y<l&&e.charCodeAt(y)===se&&y++;for(var S=0;y<l&&S<4;)if(e.charCodeAt(y)===se)S++,y++;else if(e.charCodeAt(y)===le)S+=4,y++;else break;if(S>=4)break;n=!1}if(!n&&c<4&&y<l&&e.charCodeAt(y)===vt&&!(y+1<a&&e.charCodeAt(y+1)===fn)){var A=L1(e,y,t);if(A){i=A,n=!1;continue}}var _=e.charCodeAt(u);if(_===br&&c<4)n=!1;else if(c<4&&(_===Oe||_===xt||_===gt)){for(var x=u,E=0;x<l;){var O=e.charCodeAt(x);if(O===_)E++;else if(O!==se&&O!==le)break;x++}n=!(E>=3&&x>=l)}else n=!0;i=o<0?a:o+1}return s}function L1(e,t,r){let i=e.length;if(e.charCodeAt(t)!==vt)return null;let a=t+1<i&&e.charCodeAt(t+1)===fn,n=t+1;for(;n<i;){var s=e.charCodeAt(n);if(s===jr){n++;break}if(s===vt)return null;s===Tt&&n+1<i&&n++,n++}if(n>i||e.charCodeAt(n-1)!==jr)return null;let o=e.slice(t+1,n-1);if(o.length>999)return null;let l=$o(o);if(!l||n>=i||e.charCodeAt(n)!==qt)return null;n++;let u=!1;for(;n<i;){let R=e.charCodeAt(n);if(R===se||R===le)n++;else if(R===fe&&!u)u=!0,n++;else break}if(a){let R=e.indexOf(`
103
+ `}function Hi(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(Hi):[]}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(Hi)}]:[e]}function H1(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()}>`,s=a.toLowerCase().indexOf(n);if(s!==-1){var o=a.slice(s+n.length).replace(/<\/[a-z][a-z0-9-]*\s*>/gi,"");o.trim()&&(i=!0)}}i||(r.c=!1)}"children"in e[t]&&e[t].children&&H1(e[t].children)}}function _$(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 s=a[n];if(s.type===ne.htmlSelfClosing&&s.a&&s.tag.toLowerCase()===t){var o=e.slice(0,r);n>0&&o.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:o,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 P$(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 Fy(e,t,r,i){var a;return t===void 0?a=P$(r):a=t.length>0&&t.charCodeAt(0)>se?` ${t}`:t,`<${e}${a}${i}`}function Dy(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 s=e;return s.a?{kind:"literal",literal:s.h||n}:s.m?{kind:"literal",literal:s.m}:{kind:"literal",literal:Fy(t,a,e.attrs," />")}}var o=Fy(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:o,close:n}:{kind:"literal",literal:i.j};if(i.c&&!u)return{kind:"literal",literal:o+(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:o,close:n};c+=m.text}return{kind:"literal",literal:o+c+n}}var d=i.e||"";return d&&d.indexOf(n)!==-1?{kind:"literal",literal:o+d}:{kind:"literal",literal:o+d+n}}function I$(e,t,r){var i=[],a=e,n=r;if(a&&i.push(a),Array.isArray(t))for(var s=0;s<t.length;s++)i.push(t[s]);else t!=null&&i.push(t);n&&i.push(n);for(var o=[],l=0;l<i.length;l++){var u=i[l];typeof u=="string"&&o.length>0&&typeof o.at(-1)=="string"?o[o.length-1]=o.at(-1)+u:o.push(u)}return o}function $i(e){return e==null||e.tagfilter!==!1}function T$(e,t,r,i){var a=t(e,r,i);return a===null?null:R$(a)}function j$(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 Cf(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 R$(e){for(var t=!1,r=0;r<e.length;r++){var i=e.charCodeAt(r);if(i<=se||i===yi||i===kf||i===rt||i===Re||i===vt||i===Tt||i===jr||i===fn||i===Je||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===kf&&r+2<e.length){var n=e.charCodeAt(r+1),s=e.charCodeAt(r+2);if((n>=Te&&n<=je||n>=xe&&n<=wf||n>=Xe&&n<=hi)&&(s>=Te&&s<=je||s>=xe&&s<=wf||s>=Xe&&s<=hi)){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 o=e.charCodeAt(r+1);if(o>=56320&&o<=57343){a+=encodeURI(e[r]+e[r+1]),r++;continue}}a+=e[r];continue}a+=encodeURI(e[r])}return a}function N$(...e){return e.filter(Boolean).join(" ")}var F$=new Set(["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"]),ml=/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi;function My(e){return F$.has(e.toLowerCase())}function D$(e){return ml.lastIndex=0,ml.test(e)}function Ly(e){return ml.lastIndex=0,e.replace(ml,(t,r,i,a)=>`&lt;${r}${i}${a}`)}function Wd(e,t){var r=e||{},i=r.slugify,a;if(i){var n=i;a=s=>n(s,bi)}else a=bi;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||nn,slugify:a,tagfilter:$i(r)}}var M$=/^<([a-zA-Z][a-zA-Z0-9-]*)\s[^>]*>/,L$=/^<[A-Z]/,Ef=["script","pre","style","textarea"],Ss=new Set(Ef),q$=/<(?:pre|script|style|textarea)\b/i,qy=/<(?:pre|script|style|textarea)\b/iy,Mc=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m,$y=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/im,W1=new Uint8Array(128);(()=>{for(var e=[Je,xt,gt,_t,dr,vt,Kt,rt,Tt,Vl,fe,fl,li,hi],t=0;t<e.length;t++)W1[e[t]]=1})();var zy=/([a-zA-Z_][a-zA-Z0-9_-]*)=(?:"([^"]*)"|'([^']*)')/g;function $$(e){return Ss.has(e)}function z$(e){return q$.test(e)}function K1(e,t,r){for(var i=t,a=r;i<a&&(e.charCodeAt(i)===se||e.charCodeAt(i)===le);)i++;if(i>=a)return!1;e.charCodeAt(i)===It&&i++;for(var n=0;i<a;){for(;i<a&&(e.charCodeAt(i)===se||e.charCodeAt(i)===le);)i++;if(i>=a)break;if(e.charCodeAt(i)===It&&n>0){for(var s=i+1;s<a&&(e.charCodeAt(s)===se||e.charCodeAt(s)===le);)s++;if(s>=a)return!0}if(e.charCodeAt(i)===qt&&i++,i>=a||e.charCodeAt(i)!==Oe)return!1;for(;i<a&&e.charCodeAt(i)===Oe;)i++;for(i<a&&e.charCodeAt(i)===qt&&i++,n++;i<a&&(e.charCodeAt(i)===se||e.charCodeAt(i)===le);)i++;if(i<a)if(e.charCodeAt(i)===It)i++;else return!1}return n>0}var U$=/[\u0000-\u001F\u007F]/g,B$={action:1,background:1,cite:1,data:1,formaction:1,href:1,longdesc:1,poster:1,src:1,"xlink:href":1},V$=/&#(x[0-9a-f]+|[0-9]+);?/gi;function H$(e){return e.indexOf("&#")===-1?e:e.replace(V$,(t,r)=>{var i=r.charCodeAt(0)===z1||r.charCodeAt(0)===U1?Number.parseInt(r.slice(1),16):Number.parseInt(r,10);return i>0&&i<=1114111?String.fromCodePoint(i):t})}function W$(e,t,r){if(r&&t.charCodeAt(0)===vi)return!1;var i=e.charCodeAt(0),a=e.charCodeAt(1);if((i===f$||i===c$)&&(a===u$||a===l$))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(B$[n]===1){var s=H$(Tn(t));if(nn(s)===null)return!0;var o=s.replace(U$,"");return o!==s&&nn(o)===null}return!1}function Af(e){return"<"+(e.f?"/":"")+e.tag+e.g+e.b+(e.n?e.r?" />":"/>":">")}function Uy(e,t,r,i){for(var a=[],n=t,s=0;s<i.length;s+=2){var o=i[s];if(o>n){var l=e.slice(n,o).trim();l&&a.push(l)}n=i[s+1]}if(n<r){var u=e.slice(n,r).trim();u&&a.push(u)}return a.join(" ")}function zr(e,t){if(e.charCodeAt(t)!==rt)return null;let r=t+1,i=e.length,a=!1;e.charCodeAt(r)===yt&&(r++,a=!0);let n=r,s=e.charCodeAt(r);if(!(s>=Xe&&s<=ut||s>=xe&&s<=Ee))return null;for(;r<i&&(e.charCodeAt(r)>=Xe&&e.charCodeAt(r)<=ut||e.charCodeAt(r)>=xe&&e.charCodeAt(r)<=Ee||e.charCodeAt(r)>=Te&&e.charCodeAt(r)<=je||e.charCodeAt(r)===Oe);)r++;let o=e.slice(n,r);if(!o)return null;let l=o.charCodeAt(0),u=l>=xe&&l<=Ee||o.indexOf("-")!==-1,c=r;for(;r<i&&(e.charCodeAt(r)===se||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!==Re&&m!==yt)return null}let d=r,p={},k=!1;for(var v=null;r<i;){let R=e.charCodeAt(r);if(R===Re){let T=v?Uy(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:o}}if(R===se||R===le||R===fe){r++;continue}if(R===yt&&r+1<i&&e.charCodeAt(r+1)===Re){k=r>d&&e.charCodeAt(r-1)===se;let T=v?Uy(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:o}}var g=r,b=e.charCodeAt(r);if(!(b>=Xe&&b<=ut||b>=xe&&b<=Ee||b===gt||b===qt))return null;for(r++;r<i;){var w=e.charCodeAt(r);if(w>=Xe&&w<=ut||w>=xe&&w<=Ee||w>=Te&&w<=je||w===gt||w===mr||w===qt||w===Oe)r++;else break}for(var x=e.slice(g,r),h=r;r<i&&(e.charCodeAt(r)===se||e.charCodeAt(r)===le);)r++;var y,S;if(e.charCodeAt(r)===dr){for(r++;r<i&&(e.charCodeAt(r)===se||e.charCodeAt(r)===le);)r++;var A=e.charCodeAt(r);if(A===yi||A===gi){r++;for(var _=r;r<i&&e.charCodeAt(r)!==A;)r++;if(r>=i)return null;if(y=e.slice(_,r),r++,r<i){var C=e.charCodeAt(r);if(C!==se&&C!==le&&C!==fe&&C!==Re&&C!==yt)return null}S=r}else if(A===vi){var E=1,_=r;for(r++;r<i&&E>0;){var w=e.charCodeAt(r);w===vi?E++:w===Hd&&E--,r++}y=e.slice(_,r),S=r}else{for(var _=r;r<i;){var O=e.charCodeAt(r);if(O===se||O===le||O===Re||O===fe||O===yi||O===gi||O===dr||O===rt||O===Je)break;r++}if(r===_)return null;y=e.slice(_,r),S=r}}else y="",S=h;W$(x,y,u)?(v===null&&(v=[]),v.push(g,S)):p[x]=y}return null}function rr(e){var t=e.indexOf("<");if(t===-1)return e;for(var r="",i=0,a=!1;t!==-1;){var n=zr(e,t);n?(n.q&&(r+=e.slice(i,t)+Af(n),i=n.end,a=!0),t=e.indexOf("<",n.end)):t=e.indexOf("<",t+1)}return a?r+e.slice(i):e}function K$(e,t,r){if(!r.optimizeForStreaming&&e.indexOf("[")===-1)return!1;for(var i=0,a=e.length,n=!1,s=!1;i<a;){for(var o=e.indexOf(`
104
+ `,i),l=o<0?a:o,u=i,c=0;u<l&&c<4;)if(e.charCodeAt(u)===se)c++,u++;else if(e.charCodeAt(u)===le)c+=4,u++;else break;if(u>=l){n=!1,i=o<0?a:o+1;continue}if(c<4){var f=e.charCodeAt(u);if(f===Je||f===_t){for(var m=f,d=0,p=u;p<l&&e.charCodeAt(p)===m;)d++,p++;if(d>=3){var k=!0;if(m===Je){for(var v=p;v<l;v++)if(e.charCodeAt(v)===Je){k=!1;break}}if(k){n=!1;for(var g=o<0?a:o+1;g<a;){for(var b=g,w=0;b<a&&w<4;){var x=e.charCodeAt(b);if(x===se)w++,b++;else if(x===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)===se||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,s=!0);continue}}}}for(var y=u;y<l&&e.charCodeAt(y)===Re;){y++,y<l&&e.charCodeAt(y)===se&&y++;for(var S=0;y<l&&S<4;)if(e.charCodeAt(y)===se)S++,y++;else if(e.charCodeAt(y)===le)S+=4,y++;else break;if(S>=4)break;n=!1}if(!n&&c<4&&y<l&&e.charCodeAt(y)===vt&&!(y+1<a&&e.charCodeAt(y+1)===fn)){var A=G1(e,y,t);if(A){i=A,n=!1;continue}}var _=e.charCodeAt(u);if(_===br&&c<4)n=!1;else if(c<4&&(_===Oe||_===xt||_===gt)){for(var C=u,E=0;C<l;){var O=e.charCodeAt(C);if(O===_)E++;else if(O!==se&&O!==le)break;C++}n=!(E>=3&&C>=l)}else n=!0;i=o<0?a:o+1}return s}function G1(e,t,r){let i=e.length;if(e.charCodeAt(t)!==vt)return null;let a=t+1<i&&e.charCodeAt(t+1)===fn,n=t+1;for(;n<i;){var s=e.charCodeAt(n);if(s===jr){n++;break}if(s===vt)return null;s===Tt&&n+1<i&&n++,n++}if(n>i||e.charCodeAt(n-1)!==jr)return null;let o=e.slice(t+1,n-1);if(o.length>999)return null;let l=Vo(o);if(!l||n>=i||e.charCodeAt(n)!==qt)return null;n++;let u=!1;for(;n<i;){let R=e.charCodeAt(n);if(R===se||R===le)n++;else if(R===fe&&!u)u=!0,n++;else break}if(a){let R=e.indexOf(`
105
105
  `,n),T=R<0?i:R,D=e.slice(n,T).trim();return r[l]={target:D,title:void 0},R<0?i:R+1}var c;if(n<i&&e.charCodeAt(n)===rt){n++;for(var f=n;n<i&&e.charCodeAt(n)!==Re&&e.charCodeAt(n)!==fe;)e.charCodeAt(n)===Tt&&n+1<i&&n++,n++;if(n>=i||e.charCodeAt(n)!==Re)return null;c=e.slice(f,n),n++;for(var m=e.indexOf(`
106
- `,n),d=m<0?i:m,p=n;p<d&&(e.charCodeAt(p)===se||e.charCodeAt(p)===le);)p++;if(p<d){if(p===n)return null;var k=e.charCodeAt(p);if(k!==hi&&k!==pi&&k!==Er)return null}}else{for(var f=n,v=0;n<i;){var s=e.charCodeAt(n);if(s===Er)v++;else if(s===Pr){if(v===0)break;v--}else{if(s===se||s===le||s===fe)break;s===Tt&&n+1<i&&n++}n++}if(c=e.slice(f,n),!c)return null}for(;n<i&&(e.charCodeAt(n)===se||e.charCodeAt(n)===le);)n++;var g=e.indexOf(`
107
- `,n),b=g<0?i:g,w,C=!1,h=n,y=n;if(n===b&&n<i)for(y=n+1;y<i&&(e.charCodeAt(y)===se||e.charCodeAt(y)===le);)y++;if(y<i){var S=e.charCodeAt(y);if(S===hi||S===pi||S===Er){for(var A=S===Er?41:S,_=y+1,x=_;_<i;){var E=e.charCodeAt(_);if(E===A){for(var O=_+1;O<i&&(e.charCodeAt(O)===se||e.charCodeAt(O)===le);)O++;(O>=i||e.charCodeAt(O)===fe)&&(w=e.slice(x,_),C=!0,h=O<i?O+1:i);break}if(E===Tt&&_+1<i){_+=2;continue}if(E===fe&&_+1<i&&e.charCodeAt(_+1)===fe)break;_++}if(!C&&y===n)return null}}if(C)return r[l]||(r[l]={target:Pn(Gi(c)),title:w===void 0?w:Pn(Gi(w))}),h;for(;n<b&&(e.charCodeAt(n)===se||e.charCodeAt(n)===le);)n++;return n<b?null:(r[l]||(r[l]={target:Pn(Gi(c)),title:w}),g<0?i:g+1)}var Xt=new Uint8Array(t$);for(Xt[br]|=xr,Xt[Re]|=xr,Xt[Oe]|=xr|yn,Xt[Mn]|=xr,Xt[xt]|=xr|yn,Xt[gt]|=xr|yn,Xt[Je]|=xr|yn,Xt[_t]|=xr|yn,Xt[rt]|=xr|yn,Xt[vt]|=yn,Xt[Wt]|=yn,Xt[It]|=xr,_o=Te;_o<=je;_o++)Xt[_o]|=xr;var _o;function Ly(e){if(e.indexOf("[")<0&&e.indexOf("]")<0)return!1;for(var t=0;t<e.length;t++){if(e.charCodeAt(t)===Tt){t++;continue}if(e.charCodeAt(t)===vt||e.charCodeAt(t)===jr)return!0}return!1}function $o(e){for(var t=e.length,r=!0,i=t>0,a=0;a<t;a++){var n=e.charCodeAt(a);if(n===se){if(r){i=!1;break}r=!0}else if(n<33||n>126||n>=xe&&n<=Ee){i=!1;break}else r=!1}if(i&&!r)return e;var s=e.replace(/\s+/g," ").trim();return s.indexOf("ẞ")!==-1?s.replace(/\u1E9E/g,"ss").toLowerCase():s.toLowerCase()}function Ud(e){return e<$l?Xt[e]:e===zq?ii:0}function Gi(e){return e.indexOf("\\")===-1?e:e.replace(/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,"$1")}var xf=null,Sf=-1,zo=-1;function Ye(e,t){if(t>=Sf&&t<=zo&&e===xf)return zo;var r=e.indexOf(`
108
- `,t),i=r<0?e.length:r;return xf=e,Sf=t,zo=i,i}function De(e,t){let r=Ye(e,t);return r<e.length?r+1:r}function ns(e,t,r){for(;t<r;){let i=e.charCodeAt(t);if(i!==se&&i!==le)break;t++}return t}function qy(e,t){let r=De(e,t);for(;r<e.length;){let i=Ye(e,r);if(Ht(e,r,i))return r;r=De(e,r)}return e.length}function Ln(e,t,r,i){let a=0;for(;t+a<r&&e.charCodeAt(t+a)===i;)a++;return a}var Ge=0,Ke=0;function Ct(e,t,r){for(Ge=0,Ke=0;t+Ke<r;){let i=e.charCodeAt(t+Ke);if(i===le)Ge+=4-Ge%4;else if(i===se)Ge++;else break;Ke++}}function Ht(e,t,r){return ns(e,t,r)>=r}function I$(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 T$(e,t,r,i){let a=Ye(e,t);if(Ct(e,t,a),Ge>3)return null;let n=t+Ke;if(e.charCodeAt(n)!==br)return null;let s=Ln(e,n,a,35);if(s<1||s>6||(n+=s,n<a&&e.charCodeAt(n)!==se&&e.charCodeAt(n)!==le))return null;n=ns(e,n,a);for(var o=a;o>n&&e.charCodeAt(o-1)===se;)o--;for(var l=o;o>n&&e.charCodeAt(o-1)===br;)o--;if(o<l)if(o===n||e.charCodeAt(o-1)===se)for(;o>n&&e.charCodeAt(o-1)===se;)o--;else o=l;let u=e.slice(n,o),c=Ji(u,!1,r,i);return{node:{type:ne.heading,level:s,children:c,id:""},end:De(e,a)}}function j$(e,t,r){var i=e.charCodeAt(t);if(i!==dr&&i!==Oe)return!1;for(var a=t;a<r&&e.charCodeAt(a)===i;)a++;for(;a<r&&(e.charCodeAt(a)===se||e.charCodeAt(a)===le);)a++;return a>=r}function In(e,t){let r=Ye(e,t);if(Ct(e,t,r),Ge>3)return null;let i=t+Ke,a=e.charCodeAt(i);if(a!==Oe&&a!==xt&&a!==gt)return null;let n=0;for(;i<r;){let s=e.charCodeAt(i);if(s===a)n++;else if(s!==se&&s!==le)return null;i++}return n<3?null:{node:{type:ne.breakThematic},end:De(e,r)}}var $y=0,zy=0,Uy="";function R$(e,t,r){let i=Ye(e,t);if(Ct(e,t,i),Ge>3)return null;let a=Ge,n=t+Ke,s=e.charCodeAt(n);if(s!==Je&&s!==_t)return null;let o=Ln(e,n,i,s);if(o<3)return null;n+=o;let l=ns(e,n,i),u=i;if(s===Je){for(let T=l;T<i;T++)if(e.charCodeAt(T)===Je)return null}for(;u>l&&(e.charCodeAt(u-1)===se||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=Gi(f);var p;if(m){Dy.lastIndex=0;for(var k;(k=Dy.exec(m))!=null;)p||(p={}),p[k[1]]=k[2]===void 0?k[3]:k[2]}let v=De(e,i),g=e.length,b=e.length;var w;s===$y&&o===zy?w=Uy:(w=String.fromCharCode(s).repeat(o),$y=s,zy=o,Uy=w);for(var C=v;C<e.length;){var h=e.indexOf(w,C);if(h===-1)break;for(var y=h,S=0;y>0&&S<4&&e.charCodeAt(y-1)===se;)y--,S++;if(S<=3&&(y===0||e.charCodeAt(y-1)===fe)){for(var A=h+o;A<e.length&&e.charCodeAt(A)===s;)A++;var _=Ye(e,A);if(Ht(e,A,_)){g=y,b=De(e,_);break}}C=h+1}var x;if(a===0)x=g>v&&e.charCodeAt(g-1)===fe?e.slice(v,g-1):e.slice(v,g);else{x="";for(var E=v;E<g;){var O=Ye(e,E);Ct(e,E,O);var R=Math.min(Ke,a);x+=`${e.slice(E+R,O)}
109
- `,E=De(e,O)}x.length>0&&x.charCodeAt(x.length-1)===fe&&(x=x.slice(0,-1))}return{node:{type:ne.codeBlock,lang:f||void 0,text:x,infoString:m||void 0,attrs:p},end:b}}function By(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="",s=4;s<i;s++)n+=" ";return n+e.slice(a,r)}function N$(e,t){let r=Ye(e,t);if(Ct(e,t,r),Ge<4)return null;let i="",a=t;for(;a<e.length;){let m=Ye(e,a);if(Ct(e,a,m),Ht(e,a,m)){for(var n=`${By(e,a,m)}
110
- `,s=De(e,m);s<e.length;){var o=Ye(e,s);if(Ht(e,s,o)){n+=`${By(e,s,o)}
106
+ `,n),d=m<0?i:m,p=n;p<d&&(e.charCodeAt(p)===se||e.charCodeAt(p)===le);)p++;if(p<d){if(p===n)return null;var k=e.charCodeAt(p);if(k!==yi&&k!==gi&&k!==Er)return null}}else{for(var f=n,v=0;n<i;){var s=e.charCodeAt(n);if(s===Er)v++;else if(s===Pr){if(v===0)break;v--}else{if(s===se||s===le||s===fe)break;s===Tt&&n+1<i&&n++}n++}if(c=e.slice(f,n),!c)return null}for(;n<i&&(e.charCodeAt(n)===se||e.charCodeAt(n)===le);)n++;var g=e.indexOf(`
107
+ `,n),b=g<0?i:g,w,x=!1,h=n,y=n;if(n===b&&n<i)for(y=n+1;y<i&&(e.charCodeAt(y)===se||e.charCodeAt(y)===le);)y++;if(y<i){var S=e.charCodeAt(y);if(S===yi||S===gi||S===Er){for(var A=S===Er?41:S,_=y+1,C=_;_<i;){var E=e.charCodeAt(_);if(E===A){for(var O=_+1;O<i&&(e.charCodeAt(O)===se||e.charCodeAt(O)===le);)O++;(O>=i||e.charCodeAt(O)===fe)&&(w=e.slice(C,_),x=!0,h=O<i?O+1:i);break}if(E===Tt&&_+1<i){_+=2;continue}if(E===fe&&_+1<i&&e.charCodeAt(_+1)===fe)break;_++}if(!x&&y===n)return null}}if(x)return r[l]||(r[l]={target:Tn(Yi(c)),title:w===void 0?w:Tn(Yi(w))}),h;for(;n<b&&(e.charCodeAt(n)===se||e.charCodeAt(n)===le);)n++;return n<b?null:(r[l]||(r[l]={target:Tn(Yi(c)),title:w}),g<0?i:g+1)}var Xt=new Uint8Array(b$);for(Xt[br]|=xr,Xt[Re]|=xr,Xt[Oe]|=xr|bn,Xt[qn]|=xr,Xt[xt]|=xr|bn,Xt[gt]|=xr|bn,Xt[Je]|=xr|bn,Xt[_t]|=xr|bn,Xt[rt]|=xr|bn,Xt[vt]|=bn,Xt[Kt]|=bn,Xt[It]|=xr,jo=Te;jo<=je;jo++)Xt[jo]|=xr;var jo;function By(e){if(e.indexOf("[")<0&&e.indexOf("]")<0)return!1;for(var t=0;t<e.length;t++){if(e.charCodeAt(t)===Tt){t++;continue}if(e.charCodeAt(t)===vt||e.charCodeAt(t)===jr)return!0}return!1}function Vo(e){for(var t=e.length,r=!0,i=t>0,a=0;a<t;a++){var n=e.charCodeAt(a);if(n===se){if(r){i=!1;break}r=!0}else if(n<33||n>126||n>=xe&&n<=Ee){i=!1;break}else r=!1}if(i&&!r)return e;var s=e.replace(/\s+/g," ").trim();return s.indexOf("ẞ")!==-1?s.replace(/\u1E9E/g,"ss").toLowerCase():s.toLowerCase()}function Kd(e){return e<Hl?Xt[e]:e===a$?si:0}function Yi(e){return e.indexOf("\\")===-1?e:e.replace(/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,"$1")}var Of=null,_f=-1,Ho=-1;function Ye(e,t){if(t>=_f&&t<=Ho&&e===Of)return Ho;var r=e.indexOf(`
108
+ `,t),i=r<0?e.length:r;return Of=e,_f=t,Ho=i,i}function De(e,t){let r=Ye(e,t);return r<e.length?r+1:r}function ss(e,t,r){for(;t<r;){let i=e.charCodeAt(t);if(i!==se&&i!==le)break;t++}return t}function Vy(e,t){let r=De(e,t);for(;r<e.length;){let i=Ye(e,r);if(Ht(e,r,i))return r;r=De(e,r)}return e.length}function $n(e,t,r,i){let a=0;for(;t+a<r&&e.charCodeAt(t+a)===i;)a++;return a}var Ge=0,We=0;function Ct(e,t,r){for(Ge=0,We=0;t+We<r;){let i=e.charCodeAt(t+We);if(i===le)Ge+=4-Ge%4;else if(i===se)Ge++;else break;We++}}function Ht(e,t,r){return ss(e,t,r)>=r}function G$(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 J$(e,t,r,i){let a=Ye(e,t);if(Ct(e,t,a),Ge>3)return null;let n=t+We;if(e.charCodeAt(n)!==br)return null;let s=$n(e,n,a,35);if(s<1||s>6||(n+=s,n<a&&e.charCodeAt(n)!==se&&e.charCodeAt(n)!==le))return null;n=ss(e,n,a);for(var o=a;o>n&&e.charCodeAt(o-1)===se;)o--;for(var l=o;o>n&&e.charCodeAt(o-1)===br;)o--;if(o<l)if(o===n||e.charCodeAt(o-1)===se)for(;o>n&&e.charCodeAt(o-1)===se;)o--;else o=l;let u=e.slice(n,o),c=Xi(u,!1,r,i);return{node:{type:ne.heading,level:s,children:c,id:""},end:De(e,a)}}function Y$(e,t,r){var i=e.charCodeAt(t);if(i!==dr&&i!==Oe)return!1;for(var a=t;a<r&&e.charCodeAt(a)===i;)a++;for(;a<r&&(e.charCodeAt(a)===se||e.charCodeAt(a)===le);)a++;return a>=r}function jn(e,t){let r=Ye(e,t);if(Ct(e,t,r),Ge>3)return null;let i=t+We,a=e.charCodeAt(i);if(a!==Oe&&a!==xt&&a!==gt)return null;let n=0;for(;i<r;){let s=e.charCodeAt(i);if(s===a)n++;else if(s!==se&&s!==le)return null;i++}return n<3?null:{node:{type:ne.breakThematic},end:De(e,r)}}var Hy=0,Wy=0,Ky="";function X$(e,t,r){let i=Ye(e,t);if(Ct(e,t,i),Ge>3)return null;let a=Ge,n=t+We,s=e.charCodeAt(n);if(s!==Je&&s!==_t)return null;let o=$n(e,n,i,s);if(o<3)return null;n+=o;let l=ss(e,n,i),u=i;if(s===Je){for(let T=l;T<i;T++)if(e.charCodeAt(T)===Je)return null}for(;u>l&&(e.charCodeAt(u-1)===se||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=Yi(f);var p;if(m){zy.lastIndex=0;for(var k;(k=zy.exec(m))!=null;)p||(p={}),p[k[1]]=k[2]===void 0?k[3]:k[2]}let v=De(e,i),g=e.length,b=e.length;var w;s===Hy&&o===Wy?w=Ky:(w=String.fromCharCode(s).repeat(o),Hy=s,Wy=o,Ky=w);for(var x=v;x<e.length;){var h=e.indexOf(w,x);if(h===-1)break;for(var y=h,S=0;y>0&&S<4&&e.charCodeAt(y-1)===se;)y--,S++;if(S<=3&&(y===0||e.charCodeAt(y-1)===fe)){for(var A=h+o;A<e.length&&e.charCodeAt(A)===s;)A++;var _=Ye(e,A);if(Ht(e,A,_)){g=y,b=De(e,_);break}}x=h+1}var C;if(a===0)C=g>v&&e.charCodeAt(g-1)===fe?e.slice(v,g-1):e.slice(v,g);else{C="";for(var E=v;E<g;){var O=Ye(e,E);Ct(e,E,O);var R=Math.min(We,a);C+=`${e.slice(E+R,O)}
109
+ `,E=De(e,O)}C.length>0&&C.charCodeAt(C.length-1)===fe&&(C=C.slice(0,-1))}return{node:{type:ne.codeBlock,lang:f||void 0,text:C,infoString:m||void 0,attrs:p},end:b}}function Gy(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="",s=4;s<i;s++)n+=" ";return n+e.slice(a,r)}function Z$(e,t){let r=Ye(e,t);if(Ct(e,t,r),Ge<4)return null;let i="",a=t;for(;a<e.length;){let m=Ye(e,a);if(Ct(e,a,m),Ht(e,a,m)){for(var n=`${Gy(e,a,m)}
110
+ `,s=De(e,m);s<e.length;){var o=Ye(e,s);if(Ht(e,s,o)){n+=`${Gy(e,s,o)}
111
111
  `,s=De(e,o);continue}Ct(e,s,o),Ge>=4&&(i+=n,a=s);break}if(a!==s)break;continue}if(Ge<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}
112
- `,a=De(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 F$(e,t,r,i){let a=Ye(e,t);if(Ct(e,t,a),Ge>3)return null;let n=t+Ke;if(e.charCodeAt(n)!==Re)return null;let s="",o=t,l,u=!1,c=!1,f=!1;for(;o<e.length;){let L=Ye(e,o);Ct(e,o,L);let J=o+Ke;if(e.charCodeAt(J)===Re){let X=J+1;var m=Ge+1,d=!1;if(X<L){var p=e.charCodeAt(X);p===se?(X++,m++,d=!0):p===le&&(d=!0)}for(var k="",v=!1,g=X;g<L;g++)if(e.charCodeAt(g)===le){v=!0;break}if(v){var b=m;if(d&&X<L&&e.charCodeAt(X)===le){for(var w=4-b%4,C=0;C<w-1;C++)k+=" ";b+=w,X++}for(var h=X;h<L;h++)if(e.charCodeAt(h)===le){for(var y=4-b%4,S=0;S<y;S++)k+=" ";b+=y}else k+=e[h],b++}else k=e.slice(X,L);if(!(s||l)){let Z=k.match(/^\[!([A-Za-z]+)\]\s*$/);if(Z){l=Z[1].toUpperCase(),o=De(e,L);continue}}s+=`${k}
113
- `;var A=k.trimStart();A.startsWith("```")||A.startsWith("~~~")?f=!f:(k.startsWith(" ")||k.startsWith(" "))&&(f=!0),c=A.length>0,o=De(e,L)}else if(s&&!Ht(e,o,L)&&c){if(Ge<4){var _=o+Ke,x=_<L?e.charCodeAt(_):0;if(x===br||x===Re||x===Je||x===_t||x===rt||(x===Oe||x===xt||x===gt)&&In(e,o)||(x===Oe||x===xt||x===Mn)&&_+1<L&&(e.charCodeAt(_+1)===se||e.charCodeAt(_+1)===le))break;if(x>=Te&&x<=je){for(var E=_;E<L&&e.charCodeAt(E)>=Te&&e.charCodeAt(E)<=je;)E++;if(E<L&&(e.charCodeAt(E)===mr||e.charCodeAt(E)===Pr))break}}if(f)break;s+=`${e.slice(o,L)}
114
- `,u=!0,o=De(e,L)}else break}if(!(s||l))return null;var{inBlockQuote:O,l:R}=r;r.inBlockQuote=!0,u&&(r.l=!0);var T=r.i;r.i=T||!Ht(e,o,e.length);let D=Tn(s||"",r,i);return r.i=T,r.inBlockQuote=O,r.l=R,{node:{type:ne.blockQuote,children:D,alert:l||void 0},end:o}}function q1(e,t,r){for(var i=0,a=t;a<r;a++)e.charCodeAt(a)===le?i+=4-i%4:i++;return i}function vn(e,t,r){if(Ct(e,t,r),Ge>3)return null;var i=t+Ke;if(i>=r)return null;var a=e.charCodeAt(i),n=Ge,s=i,o=i;if(a===Oe||a===xt||a===Mn){if(s=i+1,s<r&&e.charCodeAt(s)!==se&&e.charCodeAt(s)!==le&&e.charCodeAt(s)!==fe)return null}else if(a>=Te&&a<=je){for(;o<r&&o-i<9;){var l=e.charCodeAt(o);if(l<Te||l>je)break;o++}if(o>i&&o<r){var u=e.charCodeAt(o);if(u===mr||u===Pr){if(s=o+1,s<r&&e.charCodeAt(s)!==se&&e.charCodeAt(s)!==le&&e.charCodeAt(s)!==fe)return null}else return null}else return null}else return null;var c=s,f=q1(e,t,s),m=0,d=c,p=f;if(c>=r)return{ordered:a>=Te&&a<=je,marker:a>=Te&&a<=je?e[o]:e[i],start:a>=Te&&a<=je?Number.parseInt(e.slice(i,o),10):void 0,contentStart:c,contentCol:f+1,markerCol:n,isEmpty:!0};for(;d<r&&(e.charCodeAt(d)===se||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<=je,marker:a>=Te&&a<=je?e[o]:e[i],start:a>=Te&&a<=je?Number.parseInt(e.slice(i,o),10):void 0,contentStart:d,contentCol:p,markerCol:n,isEmpty:v}}var Vi=0;function Vy(e,t,r,i){var a=0,n=t;for(Vi=0;n<r&&a<i;){var s=e.charCodeAt(n);if(s===le){var o=4-a%4;if(a+o>i){Vi=a+o-i,n++,a=i;break}a+=o}else if(s===se)a++;else break;n++}return n}function Hy(e,t,r,i){var a=Ye(e,t),n=vn(e,t,a);if(!n)return null;var s=[],o=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=q1(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 C=4-v%4,h=0;h<C;h++)k+=" ";v+=C}else k+=e[w],v++;u=`${k}
112
+ `,a=De(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 Q$(e,t,r,i){let a=Ye(e,t);if(Ct(e,t,a),Ge>3)return null;let n=t+We;if(e.charCodeAt(n)!==Re)return null;let s="",o=t,l,u=!1,c=!1,f=!1;for(;o<e.length;){let L=Ye(e,o);Ct(e,o,L);let H=o+We;if(e.charCodeAt(H)===Re){let Y=H+1;var m=Ge+1,d=!1;if(Y<L){var p=e.charCodeAt(Y);p===se?(Y++,m++,d=!0):p===le&&(d=!0)}for(var k="",v=!1,g=Y;g<L;g++)if(e.charCodeAt(g)===le){v=!0;break}if(v){var b=m;if(d&&Y<L&&e.charCodeAt(Y)===le){for(var w=4-b%4,x=0;x<w-1;x++)k+=" ";b+=w,Y++}for(var h=Y;h<L;h++)if(e.charCodeAt(h)===le){for(var y=4-b%4,S=0;S<y;S++)k+=" ";b+=y}else k+=e[h],b++}else k=e.slice(Y,L);if(!(s||l)){let Z=k.match(/^\[!([A-Za-z]+)\]\s*$/);if(Z){l=Z[1].toUpperCase(),o=De(e,L);continue}}s+=`${k}
113
+ `;var A=k.trimStart();A.startsWith("```")||A.startsWith("~~~")?f=!f:(k.startsWith(" ")||k.startsWith(" "))&&(f=!0),c=A.length>0,o=De(e,L)}else if(s&&!Ht(e,o,L)&&c){if(Ge<4){var _=o+We,C=_<L?e.charCodeAt(_):0;if(C===br||C===Re||C===Je||C===_t||C===rt||(C===Oe||C===xt||C===gt)&&jn(e,o)||(C===Oe||C===xt||C===qn)&&_+1<L&&(e.charCodeAt(_+1)===se||e.charCodeAt(_+1)===le))break;if(C>=Te&&C<=je){for(var E=_;E<L&&e.charCodeAt(E)>=Te&&e.charCodeAt(E)<=je;)E++;if(E<L&&(e.charCodeAt(E)===mr||e.charCodeAt(E)===Pr))break}}if(f)break;s+=`${e.slice(o,L)}
114
+ `,u=!0,o=De(e,L)}else break}if(!(s||l))return null;var{inBlockQuote:O,l:R}=r;r.inBlockQuote=!0,u&&(r.l=!0);var T=r.i;r.i=T||!Ht(e,o,e.length);let D=Rn(s||"",r,i);return r.i=T,r.inBlockQuote=O,r.l=R,{node:{type:ne.blockQuote,children:D,alert:l||void 0},end:o}}function J1(e,t,r){for(var i=0,a=t;a<r;a++)e.charCodeAt(a)===le?i+=4-i%4:i++;return i}function kn(e,t,r){if(Ct(e,t,r),Ge>3)return null;var i=t+We;if(i>=r)return null;var a=e.charCodeAt(i),n=Ge,s=i,o=i;if(a===Oe||a===xt||a===qn){if(s=i+1,s<r&&e.charCodeAt(s)!==se&&e.charCodeAt(s)!==le&&e.charCodeAt(s)!==fe)return null}else if(a>=Te&&a<=je){for(;o<r&&o-i<9;){var l=e.charCodeAt(o);if(l<Te||l>je)break;o++}if(o>i&&o<r){var u=e.charCodeAt(o);if(u===mr||u===Pr){if(s=o+1,s<r&&e.charCodeAt(s)!==se&&e.charCodeAt(s)!==le&&e.charCodeAt(s)!==fe)return null}else return null}else return null}else return null;var c=s,f=J1(e,t,s),m=0,d=c,p=f;if(c>=r)return{ordered:a>=Te&&a<=je,marker:a>=Te&&a<=je?e[o]:e[i],start:a>=Te&&a<=je?Number.parseInt(e.slice(i,o),10):void 0,contentStart:c,contentCol:f+1,markerCol:n,isEmpty:!0};for(;d<r&&(e.charCodeAt(d)===se||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<=je,marker:a>=Te&&a<=je?e[o]:e[i],start:a>=Te&&a<=je?Number.parseInt(e.slice(i,o),10):void 0,contentStart:d,contentCol:p,markerCol:n,isEmpty:v}}var Wi=0;function Jy(e,t,r,i){var a=0,n=t;for(Wi=0;n<r&&a<i;){var s=e.charCodeAt(n);if(s===le){var o=4-a%4;if(a+o>i){Wi=a+o-i,n++,a=i;break}a+=o}else if(s===se)a++;else break;n++}return n}function Yy(e,t,r,i){var a=Ye(e,t),n=kn(e,t,a);if(!n)return null;var s=[],o=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=J1(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 x=4-v%4,h=0;h<x;h++)k+=" ";v+=x}else k+=e[w],v++;u=`${k}
115
115
  `}else u=`${e.slice(n.contentStart,a)}
116
- `}for(o=De(e,a);o<e.length;){var y=Ye(e,o);Ct(e,o,y);var S=e.charCodeAt(o+Ke);if(Ge<l&&(S===Oe||S===xt||S===gt)&&Ge<=3&&In(e,o))break;var A=vn(e,o,y);if(A&&A.ordered===n.ordered&&A.marker===n.marker&&A.markerCol<l){s.push({contentCol:l,raw:u,hasBlankAfter:f,isEmpty:c}),f&&(m=!0),l=A.contentCol,c=A.isEmpty,f=!1,u=A.isEmpty?"":`${e.slice(A.contentStart,y)}
117
- `,o=De(e,y);continue}if(Ht(e,o,y)){var _=Vy(e,o,y,l);if(Vi>0||_<y){for(var x="",E=0;E<Vi;E++)x+=" ";u+=`${x+e.slice(_,y)}
116
+ `}for(o=De(e,a);o<e.length;){var y=Ye(e,o);Ct(e,o,y);var S=e.charCodeAt(o+We);if(Ge<l&&(S===Oe||S===xt||S===gt)&&Ge<=3&&jn(e,o))break;var A=kn(e,o,y);if(A&&A.ordered===n.ordered&&A.marker===n.marker&&A.markerCol<l){s.push({contentCol:l,raw:u,hasBlankAfter:f,isEmpty:c}),f&&(m=!0),l=A.contentCol,c=A.isEmpty,f=!1,u=A.isEmpty?"":`${e.slice(A.contentStart,y)}
117
+ `,o=De(e,y);continue}if(Ht(e,o,y)){var _=Jy(e,o,y,l);if(Wi>0||_<y){for(var C="",E=0;E<Wi;E++)C+=" ";u+=`${C+e.slice(_,y)}
118
118
  `}else u+=`
119
- `;o=De(e,y);for(var O=!1,R=0;R<u.length;R++){var T=u.charCodeAt(R);if(T!==fe&&T!==Dn&&T!==se&&T!==le){O=!0;break}}if(c&&!O)if(o<e.length){var D=Ye(e,o),L=vn(e,o,D);if(!L||L.ordered!==n.ordered||L.marker!==n.marker)break;f=!0}else break;if(o<e.length){var J=Ye(e,o);Ct(e,o,J);var X=e.charCodeAt(o+Ke);if((X===Oe||X===xt||X===gt)&&Ge<=3&&In(e,o))break;var Z=vn(e,o,J);if(Z&&Z.ordered===n.ordered&&Z.marker===n.marker&&Z.markerCol<l){f=!0;continue}if(!Ht(e,o,J)&&Ge<l)break}continue}if(Ge>=l){var P=Vy(e,o,y,l);if(Vi>0){for(var F="",z=l,I=0;I<Vi;I++)F+=" ",z++;for(var N=P;N<y;N++)if(e.charCodeAt(N)===le){for(var M=4-z%4,U=0;U<M;U++)F+=" ";z+=M}else F+=e[N],z++;u+=`${F}
119
+ `;o=De(e,y);for(var O=!1,R=0;R<u.length;R++){var T=u.charCodeAt(R);if(T!==fe&&T!==Ln&&T!==se&&T!==le){O=!0;break}}if(c&&!O)if(o<e.length){var D=Ye(e,o),L=kn(e,o,D);if(!L||L.ordered!==n.ordered||L.marker!==n.marker)break;f=!0}else break;if(o<e.length){var H=Ye(e,o);Ct(e,o,H);var Y=e.charCodeAt(o+We);if((Y===Oe||Y===xt||Y===gt)&&Ge<=3&&jn(e,o))break;var Z=kn(e,o,H);if(Z&&Z.ordered===n.ordered&&Z.marker===n.marker&&Z.markerCol<l){f=!0;continue}if(!Ht(e,o,H)&&Ge<l)break}continue}if(Ge>=l){var P=Jy(e,o,y,l);if(Wi>0){for(var F="",z=l,I=0;I<Wi;I++)F+=" ",z++;for(var N=P;N<y;N++)if(e.charCodeAt(N)===le){for(var M=4-z%4,B=0;B<M;B++)F+=" ";z+=M}else F+=e[N],z++;u+=`${F}
120
120
  `}else u+=`${e.slice(P,y)}
121
- `;o=De(e,y);continue}for(var V=!1,H=0;H<u.length;H++){var K=u.charCodeAt(H);if(K!==fe&&K!==Dn&&K!==se&&K!==le){V=!0;break}}if(!f&&V&&!c){var Y=o+Ke,$=e.charCodeAt(Y),q=$===br||$===Re||$===rt||$===Je||$===_t||($===Oe||$===xt||$===gt||$===Mn)&&(In(e,o)!=null||vn(e,o,y)!=null)||$>=Te&&$<=je&&vn(e,o,y)!=null;if(!q){u+=`${e.slice(Y,y)}
122
- `,o=De(e,y);continue}}break}if(s.push({contentCol:l,raw:u,hasBlankAfter:f,isEmpty:c}),s.length===0)return null;var G=m;if(!G)for(var W=0;W<s.length;W++){if(s[W].hasBlankAfter&&W<s.length-1){G=!0;break}if(!s[W].isEmpty){for(var ie=s[W].raw,re=ie.length,ue=0,ye=!1,we=!1,ke=!1,Pe=!1,de=0,Ve=0,st=-1;ue<re;){var ve=ie.indexOf(`
123
- `,ue);if(ve<0&&(ve=re),Pe){Ct(ie,ue,ve);for(var Q=ie.slice(ue+Ke,ve),ee=0;ee<Q.length&&Q.charCodeAt(ee)===de;)ee++;ee>=Ve&&Q.slice(ee).trim()===""&&(Pe=!1),ue=ve<re?ve+1:re;continue}if(Ht(ie,ue,ve)){st>=0?ke=!0:ye&&(we=!0),ue=ve<re?ve+1:re;continue}if(Ct(ie,ue,ve),st>=0){if(Ge>=st){ue=ve<re?ve+1:re;continue}var te=vn(ie,ue,ve);if(te&&te.markerCol<st&&te.contentCol<=st){ue=ve<re?ve+1:re;continue}if(te){ue=ve<re?ve+1:re;continue}st=-1,ke&&(we=!0,ke=!1)}var pe=ie.slice(ue+Ke,ve),ce=pe.charCodeAt(0);if((ce===Je||ce===_t)&&Ge<=3){for(var ct=0;ct<pe.length&&pe.charCodeAt(ct)===ce;)ct++;if(ct>=3){if(we&&ye){G=!0;break}Pe=!0,de=ce,Ve=ct,ye=!0,ue=ve<re?ve+1:re;continue}}var Fe=Ge<=3?vn(ie,ue,ve):null;if(Fe&&ye){if(we){G=!0;break}st=Fe.contentCol,ke=!1,ue=ve<re?ve+1:re,ye=!0;continue}if(we){G=!0;break}ye=!0,ue=ve<re?ve+1:re}if(G)break}}for(var He=[],bt=0;bt<s.length;bt++){for(var Et=s[bt],ot=Et.raw,kt=ot.length;kt>0&&ot.charCodeAt(kt-1)===fe;)kt--;var pt=kt<ot.length?ot.slice(0,kt):ot,Bn=null;if(pt.length>=3&&pt.charCodeAt(0)===vt){var dn=pt[1];(dn===" "||dn==="x"||dn==="X")&&pt.charCodeAt(2)===jr&&(Bn={type:ne.gfmTask,completed:dn==="x"||dn==="X"},pt=pt.slice(3))}var St;if(Et.isEmpty&&pt.trim()==="")St=[];else if(G){var Vn=r.inList;r.inList=!0;var xs=r.i;r.i=xs||bt!==s.length-1,St=Tn(pt,r,i),r.i=xs,r.inList=Vn}else{var Xr=r.inList;r.inList=!0;var Hn=r.i;if(r.i=Hn||bt!==s.length-1,St=Tn(pt,r,i),r.i=Hn,r.inList=Xr,St.length===1&&St[0].type===ne.paragraph)St=St[0].children;else if(r.p){var mn=[];r.p.push({src:St,dest:mn,unwrap:!0}),St=mn}else{for(var Fr=[],Jt=0;Jt<St.length;Jt++)if(St[Jt].type===ne.paragraph)for(var Dr=St[Jt].children,Ci=0;Ci<Dr.length;Ci++)Fr.push(Dr[Ci]);else Fr.push(St[Jt]);St=Fr}}if(Bn){var Kn=[Bn,{type:ne.text,text:" "}];if(r.p)r.p.push({src:St,dest:Kn,unwrap:!1});else for(var kr=0;kr<St.length;kr++)Kn.push(St[kr]);He.push(Kn)}else He.push(St)}return{node:{type:n.ordered?ne.orderedList:ne.unorderedList,start:n.ordered?n.start:void 0,items:He},end:o}}var ul=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 $r(e,t,r){let i={};for(let[s,o]of Object.entries(e)){let l=s.toLowerCase();if(l==="style"&&typeof o=="string"){let u={},c=[],f=0,m=0;for(let p=0;p<o.length;p++){let k=o.charCodeAt(p);k===Er?f++:k===Pr?f--:k===ol&&f===0&&(c.push(o.slice(m,p)),m=p+1)}m<o.length&&c.push(o.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,C)=>C.toUpperCase());u[b]=g}}),!d&&Object.keys(u).length>0&&(i[s]=u)}else if((l==="href"||l==="src")&&(r!=null&&r.sanitizer)){let u=r.sanitizer(o,t,l);u!=null&&(i[s]=u)}else if(o==="")i[s]=!0;else if(o.length>=2&&o.charCodeAt(0)===gi&&o.charCodeAt(o.length-1)===$d){var a=o.slice(1,-1);if(a.length>0){var n=a.charCodeAt(0);if(n===vt||n===gi)try{i[s]=JSON.parse(a);continue}catch{}}if(a==="true"){i[s]=!0;continue}if(a==="false"){i[s]=!1;continue}if(r!=null&&r.evalUnserializableExpressions)try{i[s]=(0,eval)(`(${a})`);continue}catch{}i[s]=a}else i[s]=o}return i}function xn(e,t,r){let i=t.length;if(i===0)return r;var a=t.charCodeAt(0),n=a>=xe&&a<=Ee||a>=Xe&&a<=ut;if(!n){for(var s=String.fromCharCode(a),o=e.length-i,l=r;l<=o;){var u=e.indexOf(s,l);if(u===-1||u>o)return-1;for(var c=!0,f=1;f<i;f++){var m=e.charCodeAt(u+f),d=t.charCodeAt(f);if(m>=xe&&m<=Ee&&(m+=Sr),d>=xe&&d<=Ee&&(d+=Sr),m!==d){c=!1;break}}if(c)return u;l=u+1}return-1}a>=xe&&a<=Ee&&(a+=Sr);for(let k=r;k<=e.length-i;k++){var p=e.charCodeAt(k);if(p>=xe&&p<=Ee&&(p+=Sr),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>=xe&&b<=Ee&&(b+=Sr),w>=xe&&w<=Ee&&(w+=Sr),b!==w){v=!1;break}}if(v)return k}return-1}function D$(e,t,r){let i=t.length;var a=t.charCodeAt(0);a>=xe&&a<=Ee&&(a+=Sr);for(let s=Math.min(r,e.length-i);s>=0;s--){var n=e.charCodeAt(s);if(n>=xe&&n<=Ee&&(n+=Sr),n!==a)continue;let o=!0;for(let l=1;l<i;l++){let u=e.charCodeAt(s+l),c=t.charCodeAt(l);if(u>=xe&&u<=Ee&&(u+=Sr),c>=xe&&c<=Ee&&(c+=Sr),u!==c){o=!1;break}}if(o)return s}return-1}var cl=-1;function Cf(e,t,r){let i=r.toLowerCase(),a=`<${i}`,n=`</${i}`,s=1,o=t,l=e.length;for(cl=-1;o<l&&s>0;){let f=xn(e,a,o),m=xn(e,n,o);if(m===-1)return-1;if(f!==-1&&f<m){let d=zr(e,f);d?(d.tag.toLowerCase()===i&&!d.f&&!d.n&&!bs(d.tag)&&s++,o=d.end):o=f+1}else{var u=m+n.length,c=u<l?e.charCodeAt(u):62;if((c===Re||c===se||c===le||c===fe)&&(s--,s===0)){cl=m;let d=m+n.length;for(;d<l&&e.charCodeAt(d)!==Re;)d++;return d+1}o=m+1}}return-1}function $1(e,t,r,i){if(i.ignoreHTMLBlocks||i.disableParsingRawHTML)return null;var a=Ye(e,t);if(Ct(e,t,a),Ge>3&&!r.inHTML)return null;var n=t+Ke;if(e.charCodeAt(n)!==rt)return null;var s=e.indexOf(">",n+1);if(s!==-1&&s<a){var o=e.slice(n+1,s);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(o)||/^[^\s@]+@[^\s@]+$/.test(o))return null}var l=M$(e,n);if(l>=1&&l<=5){var u=e.length;if(l===1){for(var c=e.length,f=0;f<kf.length;f++){var m=xn(e,`</${kf[f]}>`,n);m>=0&&m<c&&(c=m)}if(c<e.length){var d=e.indexOf(">",c);u=d>=0?De(e,d+1):e.length}}else{var p=l===2?"-->":l===3?"?>":l===4?">":"]]>",k=e.indexOf(p,n);k>=0&&(u=De(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=zr(e,n),C={},h;w&&!w.f&&(C=$r(w.attrs,g,i),h=w.g+w.b);var y=[],S=g.toLowerCase(),A=`</${S}`,_=xn(v,A,0),x="",E,O,R;if(w!=null&&w.f){R=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=rr(T))}else if(w&&!w.f){var D=w.end-n;if(_===-1){for(var L=v;L.length>0&&L.charCodeAt(L.length-1)===fe;)L=L.slice(0,-1);E=rr(L)}else{var J=D;v.charCodeAt(J)===fe&&J++;for(var X=_;X>J;){var Z=v.charCodeAt(X-1);if(Z!==se&&Z!==le&&Z!==fe&&Z!==Dn)break;X--}var P=v.slice(J,X);P&&(O=rr(P));for(var F=v.slice(_);F.length>0&&F.charCodeAt(F.length-1)===fe;)F=F.slice(0,-1);R=rr(F),x=v.slice(D,_).trim()}}var z=w?w.f:!1;return{node:{type:ne.htmlBlock,tag:g,attrs:C,b:h,children:y,e:O,h:R,j:E,text:x,c:!0,a:z},end:u}}if(l===6||l===7){var I=qy(e,t),N=I<e.length?I:e.length,M=e.slice(n,N),U=I<e.length?De(e,I):e.length,V=zr(e,n);if(V){var H=V.tag,K=H.toLowerCase(),Y=V.f;if(Y){var $=e.slice(V.end,N);return{node:{type:ne.htmlBlock,tag:H,attrs:{},children:[],h:e.slice(n,V.end),e:$?rr($):void 0,text:$,c:!0,a:!0},end:U}}if(V.n||bs(H))return{node:{type:ne.htmlBlock,tag:H,attrs:$r(V.attrs,H,i),b:V.g+V.b,children:[],text:"",c:!1,a:!1},end:V.end<e.length&&e.charCodeAt(V.end)===fe?V.end+1:V.end};var q=r.d||0,G=e.slice(n,N),W=-1,ie=-1,re=!1;if(q<10){for(var ue=`</${K}`,ye=V.end-n,we=1,ke=ye;ke<G.length&&we>0;){var Pe=xn(G,`<${K}`,ke),de=xn(G,ue,ke);if(de===-1)break;if(Pe!==-1&&Pe<de){var Ve=Pe+K.length+1;if(Ve<G.length){var st=G.charCodeAt(Ve);(st===se||st===le||st===fe||st===Re||st===yt)&&we++}ke=Pe+1}else{var ve=de+ue.length;if(ve<G.length){var Q=G.charCodeAt(ve);if((Q===Re||Q===se||Q===le||Q===fe)&&(we--,we===0)){W=de;for(var ee=ve;ee<G.length&&G.charCodeAt(ee)!==Re;)ee++;ie=ee+1;break}}else if(we--,we===0){W=de,ie=G.length;break}ke=de+1}}if(W===-1&&!V.f&&(l===6||V.u)){var te=Cf(e,V.end,K);if(te!==-1){for(var pe=cl,ce=V.end,ct=!1,Fe=!1,He=!1,bt=0,Et=!1,ot=!1,kt=ce;kt<pe;){var pt=e.charCodeAt(kt);if(pt===fe)ot&&(ct=!0),Et||bt++,ot=!0,kt++;else if(pt===se||pt===le)kt++;else{if(!Et&&(Et=!0,bt>=2&&pt===rt)){He=!0;break}if(ot=!1,pt===rt){var Bn=e.charCodeAt(kt+1)|32;if((Bn===yf||Bn===I1||Bn===Wi)&&(Ny.lastIndex=kt,Ny.test(e))){Fe=!0;break}}kt++}}if(ct&&!He&&!Fe){var dn=Ye(e,te);N=dn,U=De(e,dn),G=e.slice(n,N),M=e.slice(n,N),W=pe-n,ie=te-n,re=!0}}}}var St=V.b.indexOf(`
121
+ `;o=De(e,y);continue}for(var V=!1,W=0;W<u.length;W++){var K=u.charCodeAt(W);if(K!==fe&&K!==Ln&&K!==se&&K!==le){V=!0;break}}if(!f&&V&&!c){var X=o+We,$=e.charCodeAt(X),q=$===br||$===Re||$===rt||$===Je||$===_t||($===Oe||$===xt||$===gt||$===qn)&&(jn(e,o)!=null||kn(e,o,y)!=null)||$>=Te&&$<=je&&kn(e,o,y)!=null;if(!q){u+=`${e.slice(X,y)}
122
+ `,o=De(e,y);continue}}break}if(s.push({contentCol:l,raw:u,hasBlankAfter:f,isEmpty:c}),s.length===0)return null;var J=m;if(!J)for(var G=0;G<s.length;G++){if(s[G].hasBlankAfter&&G<s.length-1){J=!0;break}if(!s[G].isEmpty){for(var ie=s[G].raw,re=ie.length,ue=0,ye=!1,we=!1,ke=!1,Pe=!1,de=0,Ve=0,st=-1;ue<re;){var ve=ie.indexOf(`
123
+ `,ue);if(ve<0&&(ve=re),Pe){Ct(ie,ue,ve);for(var Q=ie.slice(ue+We,ve),ee=0;ee<Q.length&&Q.charCodeAt(ee)===de;)ee++;ee>=Ve&&Q.slice(ee).trim()===""&&(Pe=!1),ue=ve<re?ve+1:re;continue}if(Ht(ie,ue,ve)){st>=0?ke=!0:ye&&(we=!0),ue=ve<re?ve+1:re;continue}if(Ct(ie,ue,ve),st>=0){if(Ge>=st){ue=ve<re?ve+1:re;continue}var te=kn(ie,ue,ve);if(te&&te.markerCol<st&&te.contentCol<=st){ue=ve<re?ve+1:re;continue}if(te){ue=ve<re?ve+1:re;continue}st=-1,ke&&(we=!0,ke=!1)}var pe=ie.slice(ue+We,ve),ce=pe.charCodeAt(0);if((ce===Je||ce===_t)&&Ge<=3){for(var ct=0;ct<pe.length&&pe.charCodeAt(ct)===ce;)ct++;if(ct>=3){if(we&&ye){J=!0;break}Pe=!0,de=ce,Ve=ct,ye=!0,ue=ve<re?ve+1:re;continue}}var Fe=Ge<=3?kn(ie,ue,ve):null;if(Fe&&ye){if(we){J=!0;break}st=Fe.contentCol,ke=!1,ue=ve<re?ve+1:re,ye=!0;continue}if(we){J=!0;break}ye=!0,ue=ve<re?ve+1:re}if(J)break}}for(var He=[],bt=0;bt<s.length;bt++){for(var Et=s[bt],ot=Et.raw,kt=ot.length;kt>0&&ot.charCodeAt(kt-1)===fe;)kt--;var pt=kt<ot.length?ot.slice(0,kt):ot,Hn=null;if(pt.length>=3&&pt.charCodeAt(0)===vt){var dn=pt[1];(dn===" "||dn==="x"||dn==="X")&&pt.charCodeAt(2)===jr&&(Hn={type:ne.gfmTask,completed:dn==="x"||dn==="X"},pt=pt.slice(3))}var St;if(Et.isEmpty&&pt.trim()==="")St=[];else if(J){var Wn=r.inList;r.inList=!0;var Es=r.i;r.i=Es||bt!==s.length-1,St=Rn(pt,r,i),r.i=Es,r.inList=Wn}else{var Xr=r.inList;r.inList=!0;var Kn=r.i;if(r.i=Kn||bt!==s.length-1,St=Rn(pt,r,i),r.i=Kn,r.inList=Xr,St.length===1&&St[0].type===ne.paragraph)St=St[0].children;else if(r.p){var mn=[];r.p.push({src:St,dest:mn,unwrap:!0}),St=mn}else{for(var Fr=[],Jt=0;Jt<St.length;Jt++)if(St[Jt].type===ne.paragraph)for(var Dr=St[Jt].children,Ai=0;Ai<Dr.length;Ai++)Fr.push(Dr[Ai]);else Fr.push(St[Jt]);St=Fr}}if(Hn){var Gn=[Hn,{type:ne.text,text:" "}];if(r.p)r.p.push({src:St,dest:Gn,unwrap:!1});else for(var kr=0;kr<St.length;kr++)Gn.push(St[kr]);He.push(Gn)}else He.push(St)}return{node:{type:n.ordered?ne.orderedList:ne.unorderedList,start:n.ordered?n.start:void 0,items:He},end:o}}var pl=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 $r(e,t,r){let i={};for(let[s,o]of Object.entries(e)){let l=s.toLowerCase();if(l==="style"&&typeof o=="string"){let u={},c=[],f=0,m=0;for(let p=0;p<o.length;p++){let k=o.charCodeAt(p);k===Er?f++:k===Pr?f--:k===dl&&f===0&&(c.push(o.slice(m,p)),m=p+1)}m<o.length&&c.push(o.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,x)=>x.toUpperCase());u[b]=g}}),!d&&Object.keys(u).length>0&&(i[s]=u)}else if((l==="href"||l==="src")&&(r!=null&&r.sanitizer)){let u=r.sanitizer(o,t,l);u!=null&&(i[s]=u)}else if(o==="")i[s]=!0;else if(o.length>=2&&o.charCodeAt(0)===vi&&o.charCodeAt(o.length-1)===Hd){var a=o.slice(1,-1);if(a.length>0){var n=a.charCodeAt(0);if(n===vt||n===vi)try{i[s]=JSON.parse(a);continue}catch{}}if(a==="true"){i[s]=!0;continue}if(a==="false"){i[s]=!1;continue}if(r!=null&&r.evalUnserializableExpressions)try{i[s]=(0,eval)(`(${a})`);continue}catch{}i[s]=a}else i[s]=o}return i}function Cn(e,t,r){let i=t.length;if(i===0)return r;var a=t.charCodeAt(0),n=a>=xe&&a<=Ee||a>=Xe&&a<=ut;if(!n){for(var s=String.fromCharCode(a),o=e.length-i,l=r;l<=o;){var u=e.indexOf(s,l);if(u===-1||u>o)return-1;for(var c=!0,f=1;f<i;f++){var m=e.charCodeAt(u+f),d=t.charCodeAt(f);if(m>=xe&&m<=Ee&&(m+=Sr),d>=xe&&d<=Ee&&(d+=Sr),m!==d){c=!1;break}}if(c)return u;l=u+1}return-1}a>=xe&&a<=Ee&&(a+=Sr);for(let k=r;k<=e.length-i;k++){var p=e.charCodeAt(k);if(p>=xe&&p<=Ee&&(p+=Sr),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>=xe&&b<=Ee&&(b+=Sr),w>=xe&&w<=Ee&&(w+=Sr),b!==w){v=!1;break}}if(v)return k}return-1}function ez(e,t,r){let i=t.length;var a=t.charCodeAt(0);a>=xe&&a<=Ee&&(a+=Sr);for(let s=Math.min(r,e.length-i);s>=0;s--){var n=e.charCodeAt(s);if(n>=xe&&n<=Ee&&(n+=Sr),n!==a)continue;let o=!0;for(let l=1;l<i;l++){let u=e.charCodeAt(s+l),c=t.charCodeAt(l);if(u>=xe&&u<=Ee&&(u+=Sr),c>=xe&&c<=Ee&&(c+=Sr),u!==c){o=!1;break}}if(o)return s}return-1}var hl=-1;function Pf(e,t,r){let i=r.toLowerCase(),a=`<${i}`,n=`</${i}`,s=1,o=t,l=e.length;for(hl=-1;o<l&&s>0;){let f=Cn(e,a,o),m=Cn(e,n,o);if(m===-1)return-1;if(f!==-1&&f<m){let d=zr(e,f);d?(d.tag.toLowerCase()===i&&!d.f&&!d.n&&!xs(d.tag)&&s++,o=d.end):o=f+1}else{var u=m+n.length,c=u<l?e.charCodeAt(u):62;if((c===Re||c===se||c===le||c===fe)&&(s--,s===0)){hl=m;let d=m+n.length;for(;d<l&&e.charCodeAt(d)!==Re;)d++;return d+1}o=m+1}}return-1}function Y1(e,t,r,i){if(i.ignoreHTMLBlocks||i.disableParsingRawHTML)return null;var a=Ye(e,t);if(Ct(e,t,a),Ge>3&&!r.inHTML)return null;var n=t+We;if(e.charCodeAt(n)!==rt)return null;var s=e.indexOf(">",n+1);if(s!==-1&&s<a){var o=e.slice(n+1,s);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(o)||/^[^\s@]+@[^\s@]+$/.test(o))return null}var l=tz(e,n);if(l>=1&&l<=5){var u=e.length;if(l===1){for(var c=e.length,f=0;f<Ef.length;f++){var m=Cn(e,`</${Ef[f]}>`,n);m>=0&&m<c&&(c=m)}if(c<e.length){var d=e.indexOf(">",c);u=d>=0?De(e,d+1):e.length}}else{var p=l===2?"-->":l===3?"?>":l===4?">":"]]>",k=e.indexOf(p,n);k>=0&&(u=De(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=zr(e,n),x={},h;w&&!w.f&&(x=$r(w.attrs,g,i),h=w.g+w.b);var y=[],S=g.toLowerCase(),A=`</${S}`,_=Cn(v,A,0),C="",E,O,R;if(w!=null&&w.f){R=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=rr(T))}else if(w&&!w.f){var D=w.end-n;if(_===-1){for(var L=v;L.length>0&&L.charCodeAt(L.length-1)===fe;)L=L.slice(0,-1);E=rr(L)}else{var H=D;v.charCodeAt(H)===fe&&H++;for(var Y=_;Y>H;){var Z=v.charCodeAt(Y-1);if(Z!==se&&Z!==le&&Z!==fe&&Z!==Ln)break;Y--}var P=v.slice(H,Y);P&&(O=rr(P));for(var F=v.slice(_);F.length>0&&F.charCodeAt(F.length-1)===fe;)F=F.slice(0,-1);R=rr(F),C=v.slice(D,_).trim()}}var z=w?w.f:!1;return{node:{type:ne.htmlBlock,tag:g,attrs:x,b:h,children:y,e:O,h:R,j:E,text:C,c:!0,a:z},end:u}}if(l===6||l===7){var I=Vy(e,t),N=I<e.length?I:e.length,M=e.slice(n,N),B=I<e.length?De(e,I):e.length,V=zr(e,n);if(V){var W=V.tag,K=W.toLowerCase(),X=V.f;if(X){var $=e.slice(V.end,N);return{node:{type:ne.htmlBlock,tag:W,attrs:{},children:[],h:e.slice(n,V.end),e:$?rr($):void 0,text:$,c:!0,a:!0},end:B}}if(V.n||xs(W))return{node:{type:ne.htmlBlock,tag:W,attrs:$r(V.attrs,W,i),b:V.g+V.b,children:[],text:"",c:!1,a:!1},end:V.end<e.length&&e.charCodeAt(V.end)===fe?V.end+1:V.end};var q=r.d||0,J=e.slice(n,N),G=-1,ie=-1,re=!1;if(q<10){for(var ue=`</${K}`,ye=V.end-n,we=1,ke=ye;ke<J.length&&we>0;){var Pe=Cn(J,`<${K}`,ke),de=Cn(J,ue,ke);if(de===-1)break;if(Pe!==-1&&Pe<de){var Ve=Pe+K.length+1;if(Ve<J.length){var st=J.charCodeAt(Ve);(st===se||st===le||st===fe||st===Re||st===yt)&&we++}ke=Pe+1}else{var ve=de+ue.length;if(ve<J.length){var Q=J.charCodeAt(ve);if((Q===Re||Q===se||Q===le||Q===fe)&&(we--,we===0)){G=de;for(var ee=ve;ee<J.length&&J.charCodeAt(ee)!==Re;)ee++;ie=ee+1;break}}else if(we--,we===0){G=de,ie=J.length;break}ke=de+1}}if(G===-1&&!V.f&&(l===6||V.u)){var te=Pf(e,V.end,K);if(te!==-1){for(var pe=hl,ce=V.end,ct=!1,Fe=!1,He=!1,bt=0,Et=!1,ot=!1,kt=ce;kt<pe;){var pt=e.charCodeAt(kt);if(pt===fe)ot&&(ct=!0),Et||bt++,ot=!0,kt++;else if(pt===se||pt===le)kt++;else{if(!Et&&(Et=!0,bt>=2&&pt===rt)){He=!0;break}if(ot=!1,pt===rt){var Hn=e.charCodeAt(kt+1)|32;if((Hn===xf||Hn===$1||Hn===Ji)&&(qy.lastIndex=kt,qy.test(e))){Fe=!0;break}}kt++}}if(ct&&!He&&!Fe){var dn=Ye(e,te);N=dn,B=De(e,dn),J=e.slice(n,N),M=e.slice(n,N),G=pe-n,ie=te-n,re=!0}}}}var St=V.b.indexOf(`
124
124
  `)!==-1||V.g.indexOf(`
125
- `)!==-1,Vn=!1;if(W!==-1){var xs=G.slice(ie).trim();Vn=xs.length===0}var Xr=!1,Hn=N,mn=U;if(W!==-1){var Fr=n+ie,Jt=Ye(e,Fr-1);if(Fr<Jt){for(var Dr=Fr;Dr<Jt&&(e.charCodeAt(Dr)===se||e.charCodeAt(Dr)===le);)Dr++;if(Dr<Jt&&e.charCodeAt(Dr)===rt){var Ci=zr(e,Dr);Ci&&!Ci.f&&(Xr=!0,Hn=Fr,mn=Fr,Vn=!0)}}if(!Xr){var Kn=De(e,Jt);if(Kn<N){for(var kr=Kn;kr<N&&(e.charCodeAt(kr)===se||e.charCodeAt(kr)===le);)kr++;if(kr<N&&e.charCodeAt(kr)===rt){var X1=zr(e,kr);X1&&(Xr=!0,Hn=Jt,mn=Kn,Vn=!0)}}}if(!Xr&&r.inHTML){Xr=!0,Hn=Jt,mn=De(e,Jt);var Z1=e.slice(Fr,Jt).trim();Vn=Z1.length===0}}var Ei=[],Qt="";if(W!==-1){Qt=G.slice(V.end-n,W);var Ai=Qt.trim();if(Ai){var{inline:Q1,inHTML:e0,d:t0}=r;r.inHTML=!0,r.d=q+1;var r0=K==="p";if(r0)r.inline=!0,Ei=Ji(Ai,!1,r,i);else{var Kd=Qt.indexOf(`
125
+ `)!==-1,Wn=!1;if(G!==-1){var Es=J.slice(ie).trim();Wn=Es.length===0}var Xr=!1,Kn=N,mn=B;if(G!==-1){var Fr=n+ie,Jt=Ye(e,Fr-1);if(Fr<Jt){for(var Dr=Fr;Dr<Jt&&(e.charCodeAt(Dr)===se||e.charCodeAt(Dr)===le);)Dr++;if(Dr<Jt&&e.charCodeAt(Dr)===rt){var Ai=zr(e,Dr);Ai&&!Ai.f&&(Xr=!0,Kn=Fr,mn=Fr,Wn=!0)}}if(!Xr){var Gn=De(e,Jt);if(Gn<N){for(var kr=Gn;kr<N&&(e.charCodeAt(kr)===se||e.charCodeAt(kr)===le);)kr++;if(kr<N&&e.charCodeAt(kr)===rt){var o0=zr(e,kr);o0&&(Xr=!0,Kn=Jt,mn=Gn,Wn=!0)}}}if(!Xr&&r.inHTML){Xr=!0,Kn=Jt,mn=De(e,Jt);var l0=e.slice(Fr,Jt).trim();Wn=l0.length===0}}var Oi=[],Qt="";if(G!==-1){Qt=J.slice(V.end-n,G);var _i=Qt.trim();if(_i){var{inline:u0,inHTML:c0,d:f0}=r;r.inHTML=!0,r.d=q+1;var d0=K==="p";if(d0)r.inline=!0,Oi=Xi(_i,!1,r,i);else{var Xd=Qt.indexOf(`
126
126
 
127
- `)!==-1,Wd=jc.test(Ai),zl=Fy.test(Ai),n0=Kd||Wd||r.inHTML&&zl,i0=Qt.length>=2&&Qt.charCodeAt(0)===fe&&Qt.charCodeAt(Qt.length-1)===fe&&!Kd;i0&&!Wd&&!zl?Ei=[{type:ne.text,text:Ai}]:n0||zl?(r.inline=!1,Ei=Tn(Qt,r,i)):(r.inline=!0,Ei=Ji(Ai,!1,r,i))}r.inline=Q1,r.inHTML=e0,r.d=t0}}var Gd=!1;if(l===6&&W!==-1&&!r.inHTML&&!St){var a0=/<[a-zA-Z][^>]*>/.test(Qt),s0=Qt.indexOf(`
127
+ `)!==-1,Zd=Mc.test(_i),Wl=$y.test(_i),m0=Xd||Zd||r.inHTML&&Wl,p0=Qt.length>=2&&Qt.charCodeAt(0)===fe&&Qt.charCodeAt(Qt.length-1)===fe&&!Xd;p0&&!Zd&&!Wl?Oi=[{type:ne.text,text:_i}]:m0||Wl?(r.inline=!1,Oi=Rn(Qt,r,i)):(r.inline=!0,Oi=Xi(_i,!1,r,i))}r.inline=u0,r.inHTML=c0,r.d=f0}}var Qd=!1;if(l===6&&G!==-1&&!r.inHTML&&!St){var h0=/<[a-zA-Z][^>]*>/.test(Qt),g0=Qt.indexOf(`
128
128
 
129
- `)!==-1||jc.test(Qt);a0&&!s0&&(Gd=!0)}var o0=!re&&(r.inHTML||l===7||St||!Vn||Gd);if(o0){var ha,Mr,Jd=!1;if(W!==-1&&Xr){var Yd=!1;if(r.inHTML&&ie<G.length){for(var Ss=ie;Ss<G.length&&G.charCodeAt(Ss)!==fe;)Ss++;var Ul=G.slice(ie,Ss).trim();Yd=Ul.length>1&&Ul.charCodeAt(0)===rt&&Ul.charCodeAt(1)!==yt}Mr=Yd?G.slice(V.end-n):Qt,Jd=!0}else(l===7||r.inHTML)&&W!==-1?(Mr=G.slice(V.end-n),Mr.charCodeAt(0)===fe&&(Mr=Mr.slice(1))):Xr?ha=e.slice(n,Hn):St?ha=M:(Mr=G.slice(V.end-n),Mr.charCodeAt(0)===fe&&(Mr=Mr.slice(1)));var Xd=ha!==void 0,Bl=rr(ha===void 0?Mr||"":ha),Zd={type:ne.htmlBlock,tag:H,attrs:$r(V.attrs,H,i),b:V.g+V.b,children:Ei,e:Xd?void 0:Bl,j:Xd?Bl:void 0,text:Bl,c:!0,a:!1};return Jd&&(Zd.x=!0),{node:Zd,end:mn}}var Qd=rr(Qt);return{node:{type:ne.htmlBlock,tag:H,attrs:$r(V.attrs,H,i),b:V.g+V.b,children:Ei,e:re?void 0:Qd,text:Qd,c:!1,a:!1},end:mn}}var Cs=M.match(/^<(\/?)([a-zA-Z][a-zA-Z0-9-]*)/),l0=Cs?Cs[2]:"div",Vl=Cs?Cs[1]==="/":!1,Hl,em,tm,Es="";if(Vl){var Kl=M.indexOf(">");Kl===-1?Hl=M:(Hl=M.slice(0,Kl+1),Es=M.slice(Kl+1),Es&&(em=rr(Es)))}else tm=rr(M);return{node:{type:ne.htmlBlock,tag:l0,attrs:{},children:[],e:em,h:Hl,j:tm,text:Vl?Es:M,c:!0,a:Vl},end:U}}var Dt=zr(e,n);if(!Dt)return null;var pn=Dt.tag,Wl=pn.toLowerCase(),rm=pn.charCodeAt(0),Gl=rm>=xe&&rm<=Ee;if(!(Gl||ul.has(Wl)||ks.has(Wl)||Wl.includes("-")))return null;if(Dt.f)return{node:{type:ne.htmlSelfClosing,tag:pn,attrs:{},h:e.slice(n,Dt.end),a:!0},end:Dt.end};var Oi=Cf(e,Dt.end,pn),ga=[];if(Oi!==-1){var u0=cl,As=e.slice(Dt.end,u0),Os=As.trim();if(Os){var c0=As.indexOf(`
129
+ `)!==-1||Mc.test(Qt);h0&&!g0&&(Qd=!0)}var y0=!re&&(r.inHTML||l===7||St||!Wn||Qd);if(y0){var ya,Mr,em=!1;if(G!==-1&&Xr){var tm=!1;if(r.inHTML&&ie<J.length){for(var As=ie;As<J.length&&J.charCodeAt(As)!==fe;)As++;var Kl=J.slice(ie,As).trim();tm=Kl.length>1&&Kl.charCodeAt(0)===rt&&Kl.charCodeAt(1)!==yt}Mr=tm?J.slice(V.end-n):Qt,em=!0}else(l===7||r.inHTML)&&G!==-1?(Mr=J.slice(V.end-n),Mr.charCodeAt(0)===fe&&(Mr=Mr.slice(1))):Xr?ya=e.slice(n,Kn):St?ya=M:(Mr=J.slice(V.end-n),Mr.charCodeAt(0)===fe&&(Mr=Mr.slice(1)));var rm=ya!==void 0,Gl=rr(ya===void 0?Mr||"":ya),nm={type:ne.htmlBlock,tag:W,attrs:$r(V.attrs,W,i),b:V.g+V.b,children:Oi,e:rm?void 0:Gl,j:rm?Gl:void 0,text:Gl,c:!0,a:!1};return em&&(nm.x=!0),{node:nm,end:mn}}var im=rr(Qt);return{node:{type:ne.htmlBlock,tag:W,attrs:$r(V.attrs,W,i),b:V.g+V.b,children:Oi,e:re?void 0:im,text:im,c:!1,a:!1},end:mn}}var Os=M.match(/^<(\/?)([a-zA-Z][a-zA-Z0-9-]*)/),v0=Os?Os[2]:"div",Jl=Os?Os[1]==="/":!1,Yl,am,sm,_s="";if(Jl){var Xl=M.indexOf(">");Xl===-1?Yl=M:(Yl=M.slice(0,Xl+1),_s=M.slice(Xl+1),_s&&(am=rr(_s)))}else sm=rr(M);return{node:{type:ne.htmlBlock,tag:v0,attrs:{},children:[],e:am,h:Yl,j:sm,text:Jl?_s:M,c:!0,a:Jl},end:B}}var Dt=zr(e,n);if(!Dt)return null;var pn=Dt.tag,Zl=pn.toLowerCase(),om=pn.charCodeAt(0),Ql=om>=xe&&om<=Ee;if(!(Ql||pl.has(Zl)||Ss.has(Zl)||Zl.includes("-")))return null;if(Dt.f)return{node:{type:ne.htmlSelfClosing,tag:pn,attrs:{},h:e.slice(n,Dt.end),a:!0},end:Dt.end};var Pi=Pf(e,Dt.end,pn),va=[];if(Pi!==-1){var b0=hl,Ps=e.slice(Dt.end,b0),Is=Ps.trim();if(Is){var k0=Ps.indexOf(`
130
130
 
131
- `)!==-1,f0=jc.test(Os),d0=Fy.test(Os),m0=r.inline,p0=r.inHTML,h0=r.d;r.inHTML=!0,r.d=(r.d||0)+1,c0||f0||d0?(r.inline=!1,ga=Tn(As,r,i)):(r.inline=!0,ga=Ji(Os,!1,r,i)),r.inline=m0,r.inHTML=p0,r.d=h0}var g0=Ye(e,Oi),y0=e.slice(Oi,g0).trim(),nm=y0?Oi:De(e,Oi),im=Gl?e.slice(n,Oi):e.slice(n,nm);return{node:{type:ne.htmlBlock,tag:pn,attrs:$r(Dt.attrs,pn,i),b:Dt.g+Dt.b,children:ga,j:rr(im),text:Gl?As:im,c:!0,a:!1},end:nm}}var ya=qy(e,Dt.end),v0=ya<e.length?De(e,ya):ya,Jl=e.slice(Dt.end,ya);if(Jl.trim()){var{inline:b0,inHTML:k0,d:w0}=r;r.inline=!1,r.inHTML=!0,r.d=(r.d||0)+1,ga=Tn(Jl,r,i),r.inline=b0,r.inHTML=k0,r.d=w0}var x0=e.slice(Dt.end,ya);return{node:{type:ne.htmlBlock,tag:pn,attrs:$r(Dt.attrs,pn,i),b:Dt.g+Dt.b,children:ga,e:rr(x0),text:Jl,c:!0,a:!1},end:v0}}function M$(e,t){if(e.charCodeAt(t)!==rt)return 0;var r=t+1,i=e.length;if(e.charCodeAt(r)===Wt&&e.charCodeAt(r+1)===Oe&&e.charCodeAt(r+2)===Oe)return 2;if(e.charCodeAt(r)===pa)return 3;if(e.charCodeAt(r)===Wt){var a=e.charCodeAt(r+1);if(a>=xe&&a<=Ee)return 4;if(e.slice(r+1,r+8)==="[CDATA[")return 5}for(var n=e.charCodeAt(r)===yt,s=n?r+1:r,o=s;o<i;){var l=e.charCodeAt(o);if(l>=xe&&l<=Ee||l>=Xe&&l<=ut||l>=Te&&l<=je||l===Oe)o++;else break}if(o===s)return 0;var u=e.slice(s,o);if(ks.has(u.toLowerCase())){if(n)return 0;var c=e.charCodeAt(o);return c===se||c===le||c===Re||c===fe||o>=i?1:0}if(ul.has(u.toLowerCase())){if(n){for(var f=o;f<i&&(e.charCodeAt(f)===se||e.charCodeAt(f)===le);)f++;return f<i&&e.charCodeAt(f)===Re?6:0}var m=o<i?e.charCodeAt(o):-1;return m===se||m===le||m===Re||m===fe||m===yt||m===-1?6:0}if(n){for(var d=o;d<i&&(e.charCodeAt(d)===se||e.charCodeAt(d)===le);)d++;if(d<i&&e.charCodeAt(d)===Re){var p=Ye(e,t),k=e.slice(d+1,p).trim();if(k==="")return 7}}else{var v=Ye(e,t),g=zr(e,t);if(g&&g.end<=v){var b=e.slice(g.end,v).trim();if(b==="")return 7}}return 0}function Ky(e,t,r){for(var i=0,a=e.length;i<a&&(e.charCodeAt(i)===se||e.charCodeAt(i)===le);)i++;for(;a>i&&(e.charCodeAt(a-1)===se||e.charCodeAt(a-1)===le);)a--;i<a&&e.charCodeAt(i)===It&&i++,a>i&&e.charCodeAt(a-1)===It&&(a-2<i||e.charCodeAt(a-2)!==Tt)&&a--;for(var n=[],s=i,o=!1,l=[],u=i;u<a;){var c=e.charCodeAt(u);if(c===Tt&&u+1<a){e.charCodeAt(u+1)===It?(o||(o=!0,l=[]),l.push(e.slice(s,u)),l.push("|"),u+=2,s=u):u+=2;continue}if(c===Je){for(var f=0;u<a&&e.charCodeAt(u)===Je;)f++,u++;for(var m=!1;u<a&&!m;){for(var d=0;u<a&&e.charCodeAt(u)===Je;)d++,u++;d===f?m=!0:d===0&&u++}continue}if(c===It){var p=o?(l.push(e.slice(s,u)),l.join("")):e.slice(s,u);n.push(p.trim()),u++,s=u,o=!1,l=[];continue}u++}var k=o?(l.push(e.slice(s,a)),l.join("")):e.slice(s,a);return n.push(k.trim()),n.map(v=>{var g=v.indexOf("\\|")===-1?v:v.replace(/\\\|/g,"|");return g?Ji(g,!1,t,r):[]})}function Wy(e,t,r,i){let a=Ye(e,t);var n=e.indexOf("|",t);if(n<0||n>=a)return null;let s=De(e,a);if(s>=e.length)return null;let o=Ye(e,s);if(!M1(e,s,o))return null;let l=e.slice(t,a),u=e.slice(s,o);for(var c=[],f=0,m=u.length;f<m&&(u.charCodeAt(f)===se||u.charCodeAt(f)===le);)f++;for(f<m&&u.charCodeAt(f)===It&&f++;f<m;){for(;f<m&&(u.charCodeAt(f)===se||u.charCodeAt(f)===le);)f++;if(f>=m||u.charCodeAt(f)===It)break;var d=u.charCodeAt(f)===qt;for(d&&f++;f<m&&u.charCodeAt(f)===Oe;)f++;var p=f<m&&u.charCodeAt(f)===qt;for(p&&f++,c.push(d&&p?"center":p?"right":d?"left":null);f<m&&(u.charCodeAt(f)===se||u.charCodeAt(f)===le);)f++;f<m&&u.charCodeAt(f)===It&&f++}let k=Ky(l,r,i);if(c.length!==k.length)return null;let v=[],g=De(e,o);for(;g<e.length;){let S=Ye(e,g),A=e.slice(g,S);if(Ht(e,g,S))break;if(Ct(e,g,S),Ge<4){var b=e.charCodeAt(g+Ke);if(b===Re||b===br||(b===Oe||b===xt||b===gt)&&In(e,g))break;if(b===Je||b===_t){for(var w=g+Ke,C=0;w<S&&e.charCodeAt(w)===b;)C++,w++;if(C>=3)break}}v.push(Ky(A,r,i)),g=De(e,S)}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 L$(e,t,r){var i=Ye(e,t);if(Ct(e,t,i),Ge>3)return null;var a=t+Ke;if(e.charCodeAt(a)!==vt)return null;if(a+1<e.length&&e.charCodeAt(a+1)===fn){var n=q$(e,a,r);return n||null}r.refs||(r.refs={});var s=L1(e,a,r.refs);return s===null?null:{node:{type:ne.refCollection},end:s}}function q$(e,t,r){var i=e.length;if(e.charCodeAt(t)!==vt||t+1>=i||e.charCodeAt(t+1)!==fn)return null;for(var a=t+2,n=a;a<i&&e.charCodeAt(a)!==jr;){if(e.charCodeAt(a)===fe)return null;a++}if(a>=i)return null;var s=`^${e.slice(n,a)}`.toLowerCase();if(a++,a>=i||e.charCodeAt(a)!==qt)return null;for(a++;a<i&&(e.charCodeAt(a)===se||e.charCodeAt(a)===le);)a++;if(a<i&&e.charCodeAt(a)===fe)for(a++;a<i&&(e.charCodeAt(a)===se||e.charCodeAt(a)===le);)a++;var o=e.indexOf(`
131
+ `)!==-1,w0=Mc.test(Is),x0=$y.test(Is),S0=r.inline,C0=r.inHTML,E0=r.d;r.inHTML=!0,r.d=(r.d||0)+1,k0||w0||x0?(r.inline=!1,va=Rn(Ps,r,i)):(r.inline=!0,va=Xi(Is,!1,r,i)),r.inline=S0,r.inHTML=C0,r.d=E0}var A0=Ye(e,Pi),O0=e.slice(Pi,A0).trim(),lm=O0?Pi:De(e,Pi),um=Ql?e.slice(n,Pi):e.slice(n,lm);return{node:{type:ne.htmlBlock,tag:pn,attrs:$r(Dt.attrs,pn,i),b:Dt.g+Dt.b,children:va,j:rr(um),text:Ql?Ps:um,c:!0,a:!1},end:lm}}var ba=Vy(e,Dt.end),_0=ba<e.length?De(e,ba):ba,eu=e.slice(Dt.end,ba);if(eu.trim()){var{inline:P0,inHTML:I0,d:T0}=r;r.inline=!1,r.inHTML=!0,r.d=(r.d||0)+1,va=Rn(eu,r,i),r.inline=P0,r.inHTML=I0,r.d=T0}var j0=e.slice(Dt.end,ba);return{node:{type:ne.htmlBlock,tag:pn,attrs:$r(Dt.attrs,pn,i),b:Dt.g+Dt.b,children:va,e:rr(j0),text:eu,c:!0,a:!1},end:_0}}function tz(e,t){if(e.charCodeAt(t)!==rt)return 0;var r=t+1,i=e.length;if(e.charCodeAt(r)===Kt&&e.charCodeAt(r+1)===Oe&&e.charCodeAt(r+2)===Oe)return 2;if(e.charCodeAt(r)===ga)return 3;if(e.charCodeAt(r)===Kt){var a=e.charCodeAt(r+1);if(a>=xe&&a<=Ee)return 4;if(e.slice(r+1,r+8)==="[CDATA[")return 5}for(var n=e.charCodeAt(r)===yt,s=n?r+1:r,o=s;o<i;){var l=e.charCodeAt(o);if(l>=xe&&l<=Ee||l>=Xe&&l<=ut||l>=Te&&l<=je||l===Oe)o++;else break}if(o===s)return 0;var u=e.slice(s,o);if(Ss.has(u.toLowerCase())){if(n)return 0;var c=e.charCodeAt(o);return c===se||c===le||c===Re||c===fe||o>=i?1:0}if(pl.has(u.toLowerCase())){if(n){for(var f=o;f<i&&(e.charCodeAt(f)===se||e.charCodeAt(f)===le);)f++;return f<i&&e.charCodeAt(f)===Re?6:0}var m=o<i?e.charCodeAt(o):-1;return m===se||m===le||m===Re||m===fe||m===yt||m===-1?6:0}if(n){for(var d=o;d<i&&(e.charCodeAt(d)===se||e.charCodeAt(d)===le);)d++;if(d<i&&e.charCodeAt(d)===Re){var p=Ye(e,t),k=e.slice(d+1,p).trim();if(k==="")return 7}}else{var v=Ye(e,t),g=zr(e,t);if(g&&g.end<=v){var b=e.slice(g.end,v).trim();if(b==="")return 7}}return 0}function Xy(e,t,r){for(var i=0,a=e.length;i<a&&(e.charCodeAt(i)===se||e.charCodeAt(i)===le);)i++;for(;a>i&&(e.charCodeAt(a-1)===se||e.charCodeAt(a-1)===le);)a--;i<a&&e.charCodeAt(i)===It&&i++,a>i&&e.charCodeAt(a-1)===It&&(a-2<i||e.charCodeAt(a-2)!==Tt)&&a--;for(var n=[],s=i,o=!1,l=[],u=i;u<a;){var c=e.charCodeAt(u);if(c===Tt&&u+1<a){e.charCodeAt(u+1)===It?(o||(o=!0,l=[]),l.push(e.slice(s,u)),l.push("|"),u+=2,s=u):u+=2;continue}if(c===Je){for(var f=0;u<a&&e.charCodeAt(u)===Je;)f++,u++;for(var m=!1;u<a&&!m;){for(var d=0;u<a&&e.charCodeAt(u)===Je;)d++,u++;d===f?m=!0:d===0&&u++}continue}if(c===It){var p=o?(l.push(e.slice(s,u)),l.join("")):e.slice(s,u);n.push(p.trim()),u++,s=u,o=!1,l=[];continue}u++}var k=o?(l.push(e.slice(s,a)),l.join("")):e.slice(s,a);return n.push(k.trim()),n.map(v=>{var g=v.indexOf("\\|")===-1?v:v.replace(/\\\|/g,"|");return g?Xi(g,!1,t,r):[]})}function Zy(e,t,r,i){let a=Ye(e,t);var n=e.indexOf("|",t);if(n<0||n>=a)return null;let s=De(e,a);if(s>=e.length)return null;let o=Ye(e,s);if(!K1(e,s,o))return null;let l=e.slice(t,a),u=e.slice(s,o);for(var c=[],f=0,m=u.length;f<m&&(u.charCodeAt(f)===se||u.charCodeAt(f)===le);)f++;for(f<m&&u.charCodeAt(f)===It&&f++;f<m;){for(;f<m&&(u.charCodeAt(f)===se||u.charCodeAt(f)===le);)f++;if(f>=m||u.charCodeAt(f)===It)break;var d=u.charCodeAt(f)===qt;for(d&&f++;f<m&&u.charCodeAt(f)===Oe;)f++;var p=f<m&&u.charCodeAt(f)===qt;for(p&&f++,c.push(d&&p?"center":p?"right":d?"left":null);f<m&&(u.charCodeAt(f)===se||u.charCodeAt(f)===le);)f++;f<m&&u.charCodeAt(f)===It&&f++}let k=Xy(l,r,i);if(c.length!==k.length)return null;let v=[],g=De(e,o);for(;g<e.length;){let S=Ye(e,g),A=e.slice(g,S);if(Ht(e,g,S))break;if(Ct(e,g,S),Ge<4){var b=e.charCodeAt(g+We);if(b===Re||b===br||(b===Oe||b===xt||b===gt)&&jn(e,g))break;if(b===Je||b===_t){for(var w=g+We,x=0;w<S&&e.charCodeAt(w)===b;)x++,w++;if(x>=3)break}}v.push(Xy(A,r,i)),g=De(e,S)}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 rz(e,t,r){var i=Ye(e,t);if(Ct(e,t,i),Ge>3)return null;var a=t+We;if(e.charCodeAt(a)!==vt)return null;if(a+1<e.length&&e.charCodeAt(a+1)===fn){var n=nz(e,a,r);return n||null}r.refs||(r.refs={});var s=G1(e,a,r.refs);return s===null?null:{node:{type:ne.refCollection},end:s}}function nz(e,t,r){var i=e.length;if(e.charCodeAt(t)!==vt||t+1>=i||e.charCodeAt(t+1)!==fn)return null;for(var a=t+2,n=a;a<i&&e.charCodeAt(a)!==jr;){if(e.charCodeAt(a)===fe)return null;a++}if(a>=i)return null;var s=`^${e.slice(n,a)}`.toLowerCase();if(a++,a>=i||e.charCodeAt(a)!==qt)return null;for(a++;a<i&&(e.charCodeAt(a)===se||e.charCodeAt(a)===le);)a++;if(a<i&&e.charCodeAt(a)===fe)for(a++;a<i&&(e.charCodeAt(a)===se||e.charCodeAt(a)===le);)a++;var o=e.indexOf(`
132
132
  `,a);o<0&&(o=i);for(var l=e.slice(a,o).trim(),u=o<i?o+1:i;u<i;){var c=Ye(e,u);if(Ct(e,u,c),Ge>=2&&!Ht(e,u,c))l+=`
133
133
  ${e.slice(u,c)}`,u=De(e,c);else if(Ht(e,u,c)){var f=De(e,c);if(f<i){var m=Ye(e,f);if(Ct(e,f,m),Ge>=2){l+=`
134
- `,u=De(e,c);continue}}break}else break}var d=r.refs;return d&&!d[s]&&(d[s]={target:l,title:void 0}),{node:{type:ne.footnote},end:u}}function $$(e,t,r,i){let a=t,n=0,s=0,o=-1;for(;a<e.length;){let R=o>=0?o:Ye(e,a);if(o=-1,Ht(e,a,R))break;if(Ct(e,a,R),Ge<4&&s>0&&!r.l){let D=e.charCodeAt(a+Ke);if(D===dr||D===Oe){let L=a+Ke;for(;L<R&&e.charCodeAt(L)===D;)L++;for(;L<R&&(e.charCodeAt(L)===se||e.charCodeAt(L)===le);)L++;if(L>=R){n=D===dr?1:2,a=De(e,R);break}}}s=R;let T=De(e,R);if(T<e.length){if(e.charCodeAt(T)===vf){var l=Ye(e,T);a=De(e,l),s=l;continue}let D=Ye(e,T);if(o=D,Ct(e,T,D),Ge<4){let L=e.charCodeAt(T+Ke);if(L===Re){a=T;break}if(L===br){for(var u=T+Ke,c=0;u<D&&e.charCodeAt(u)===br&&c<=6;)c++,u++;if(c>=1&&c<=6&&(u>=D||e.charCodeAt(u)===se||e.charCodeAt(u)===le)){a=T;break}}if(L===Je||L===_t){for(var f=T+Ke,m=0;f<D&&e.charCodeAt(f)===L;)m++,f++;if(m>=3){a=T;break}}if(L===rt){var d=T+Ke+1,p=d<D?e.charCodeAt(d):0,k=p===Wt||p===pa;if(!k&&p===yt){for(var v=d+1,g=v;g<D&&(e.charCodeAt(g)>=xe&&e.charCodeAt(g)<=Ee||e.charCodeAt(g)>=Xe&&e.charCodeAt(g)<=ut||e.charCodeAt(g)>=Te&&e.charCodeAt(g)<=je||e.charCodeAt(g)===Oe);)g++;g>v&&(k=ul.has(e.slice(v,g).toLowerCase()))}else if(!k){for(var b=d;b<D&&(e.charCodeAt(b)>=xe&&e.charCodeAt(b)<=Ee||e.charCodeAt(b)>=Xe&&e.charCodeAt(b)<=ut||e.charCodeAt(b)>=Te&&e.charCodeAt(b)<=je||e.charCodeAt(b)===Oe);)b++;if(b>d){var w=e.slice(d,b).toLowerCase();k=ul.has(w)||ks.has(w)}}if(k&&$1(e,T,r,i)){a=T;break}}if(L===Oe||L===xt||L===Mn){let J=T+Ke+1;if(J<D&&(e.charCodeAt(J)===se||e.charCodeAt(J)===le)){var C=ns(e,J,D);if(C<D&&!In(e,T)){a=T;break}}}if(L>=Te&&L<=je){let J=T+Ke;for(;J<D&&e.charCodeAt(J)>=Te&&e.charCodeAt(J)<=je;)J++;if(J<D&&(e.charCodeAt(J)===mr||e.charCodeAt(J)===Pr)&&J-(T+Ke)===1&&e.charCodeAt(T+Ke)===49){var h=J+1;if(h<D&&(e.charCodeAt(h)===se||e.charCodeAt(h)===le)){var y=ns(e,h,D);if(y<D){a=T;break}}}}if(L===It){let J=De(e,D);if(J<e.length){let X=Ye(e,J);if(M1(e,J,X)){a=T;break}}}if((L===Oe||L===xt||L===gt)&&In(e,T)){if(L!==Oe){a=T;break}let J=T+Ke;for(;J<D&&e.charCodeAt(J)===Oe;)J++;for(;J<D&&(e.charCodeAt(J)===se||e.charCodeAt(J)===le);)J++;if(J<D){a=T;break}}}}a=De(e,R)}for(var S=n?s:a;S>t&&(e.charCodeAt(S-1)===fe||e.charCodeAt(S-1)===Dn||e.charCodeAt(S-1)===se||e.charCodeAt(S-1)===le);)S--;for(var A=t;A<S&&(e.charCodeAt(A)===se||e.charCodeAt(A)===le);)A++;if(A>=S)return null;for(var _=!1,x=A;x<S;x++)if(e.charCodeAt(x)===vf){_=!0;break}var E=_?e.slice(A,S).replace(/\u001E/g,""):e.slice(A,S);if(!E)return null;let O=Ji(E,!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 Ji(e,t,r,i){var a=r.t;if(!a){var n=r.k;r.k=t;var s=Vr(e,0,e.length,r,i);return r.k=n,s}var o=[];return a.push({dest:o,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}),o}function z$(e,t,r){if(e.charCodeAt(t)!==Je)return null;let i=Ln(e,t,r,96),a=t+i;for(;a<r;){let n=e.indexOf("`",a);if(n<0||n>=r)return null;let s=Ln(e,n,r,96);if(s===i){let o=e.slice(t+i,n);return o.indexOf(`
135
- `)!==-1&&(o=o.replace(/\n/g," ")),o.length>0&&o[0]===" "&&o.at(-1)===" "&&o.trim().length>0&&(o=o.slice(1,-1)),{node:{type:ne.codeInline,text:o},end:n+s}}a=n+s}return null}function Bd(e,t,r){if(e.charCodeAt(t)!==Je)return t;let i=Ln(e,t,r,96),a=t+i;for(;a<r;){let n=e.indexOf("`",a);if(n<0||n>=r)return t;let s=Ln(e,n,r,96);if(s===i)return n+s;a=n+s}return t}function U$(e,t,r){if(e.charCodeAt(t)!==rt)return t;if(t+1<r&&e.charCodeAt(t+1)===yt){let u=t+2;for(;u<r&&e.charCodeAt(u)!==Re;)u++;return u<r?u+1:t}if(t+3<r&&e.charCodeAt(t+1)===Wt&&e.charCodeAt(t+2)===Oe&&e.charCodeAt(t+3)===Oe){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>=xe&&u<=Ee||u>=Xe&&u<=ut||u>=Te&&u<=je||u===Oe)i++;else break}if(i===a)return t;let n=e.slice(a,i).toLowerCase(),s=!1;for(;i<r;){let u=e.charCodeAt(i);if(u===Re){i++;break}if(u===yt&&i+1<r&&e.charCodeAt(i+1)===Re){i+=2,s=!0;break}if(u===hi||u===pi){var o=u;for(i++;i<r&&e.charCodeAt(i)!==o;)i++;i<r&&i++;continue}if(u===fe)return t;i++}if(s||bs(n))return i;let l=1;for(;i<r&&l>0;)if(e.charCodeAt(i)===rt)if(i+1<r&&e.charCodeAt(i+1)===yt){let u=i+2,c=u;for(;c<r&&(e.charCodeAt(c)>=xe&&e.charCodeAt(c)<=Ee||e.charCodeAt(c)>=Xe&&e.charCodeAt(c)<=ut);)c++;if(e.slice(u,c).toLowerCase()===n){for(;c<r&&e.charCodeAt(c)!==Re;)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)>=xe&&e.charCodeAt(c)<=Ee||e.charCodeAt(c)>=Xe&&e.charCodeAt(c)<=ut);)c++;e.slice(u,c).toLowerCase()===n&&l++,i++}else i++;return i}function B$(e,t,r,i,a){if(e.charCodeAt(t)!==_t||t+1>=r||e.charCodeAt(t+1)!==_t)return null;let n=t+2;for(;n+1<r;){let s=e.charCodeAt(n);if(s===Je){let o=Bd(e,n,r);if(o>n){n=o;continue}}if(s===_t&&e.charCodeAt(n+1)===_t){let o=e.slice(t+2,n),l=Vr(o,0,o.length,i,a);return{node:{type:ne.textFormatted,tag:"del",children:l},end:n+2}}s===Tt&&n+1<r&&n++,n++}return null}function V$(e,t,r,i,a){if(e.charCodeAt(t)!==dr||t+1>=r||e.charCodeAt(t+1)!==dr)return null;let n=t+2;for(;n+1<r;){let s=e.charCodeAt(n);if(s===Je){let o=Bd(e,n,r);if(o>n){n=o;continue}}if(s===dr&&e.charCodeAt(n+1)===dr&&n>t+2){let o=e.slice(t+2,n),l=Vr(o,0,o.length,i,a);return{node:{type:ne.textFormatted,tag:"mark",children:l},end:n+2}}s===Tt&&n+1<r&&n++,n++}return null}function Gy(e,t,r){return e<$l?!!(Ud(e)&Ui):r$.test(t[r])}function Jy(e,t,r){return e<$l?!!(Ud(e)&ii):n$.test(t[r])}function H$(e,t,r){var i=e.charCodeAt(t);if(i!==xt&&i!==gt)return null;var a=Ln(e,t,r,i);if(a===0)return null;var n=t>0?e.charCodeAt(t-1):32,s=t+a<r?e.charCodeAt(t+a):32,o=Jy(n,e,t-1),l=Jy(s,e,t+a),u=t>0?Gy(n,e,t-1):!1,c=t+a<r?Gy(s,e,t+a):!1,f=!l&&(!c||o||u),m=!o&&(!u||l||c),d,p;return i===xt?(d=f,p=m):(d=f&&(!m||u),p=m&&(!f||c)),{len:a,canOpen:d,canClose:p}}function K$(e,t,r,i){if(t.length!==0){for(var a=e.length,n=Array(a),s=null,o=null,l=0;l<a;l++){var u={node:e[l],prev:o,next:null};o?o.next=u:s=u,n[l]=u,o=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===xt?0:1,g=v*6+k.len%3*2+(k.canOpen?1:0),b=m[g]===void 0?-1:m[g],w=-1,C=p-1;C>b;C--){var h=t[C];if(!(!h.active||h.ch!==k.ch||!h.canOpen)&&!((k.canOpen||h.canClose)&&(h.len+k.len)%3===0&&h.len%3!==0)){w=C;break}}if(w<0){m[g]=p-1,!k.canOpen&&(k.active=!1),p++;continue}var y=t[w],S=y.len>=2&&k.len>=2,A=S?2:1;y.len-=A,k.len-=A;var _=c[w],x=c[p],E=_.node,O=x.node;E.text=E.text.slice(0,E.text.length-A),O.text=O.text.slice(A);for(var R=[],T=_.next;T&&T!==x;)R.push(T.node),T=T.next;var D={type:ne.textFormatted,tag:S?"strong":"em",children:R},L={node:D,prev:_,next:x};_.next=L,x.prev=L;for(var J=w+1;J<p;J++)t[J].active=!1;if(y.len===0&&(y.active=!1,E.text==="")){var X=_.prev;L.prev=X,X?X.next=L:s=L}if(k.len===0){if(k.active=!1,O.text===""){var Z=x.next;L.next=Z,Z&&(Z.prev=L)}}else continue;p++}for(var P=0,F=s;F;){var z=F.node;if(z.type===ne.text){var I=z;if(I.text===""){F=F.next;continue}if(P>0&&e[P-1].type===ne.text){e[P-1].text+=I.text,F=F.next;continue}}e[P++]=z,F=F.next}e.length=P}}function Po(e,t,r,i){return t(e,r,i)===null?null:e}var Yy=0,Ef=0,Xy=0,Af=0,Zy=0,Of=0,Rc=0,lr=0;function W$(){return Rc===2147483647&&(Ef=0,Af=0,Of=0,Uo=0,Rc=0),++Rc}var Nc=null,Uo=0,Io=[],Fc=256;function Qy(e,t,r,i,a){var H;let n=e.charCodeAt(t)===Wt,s=n?t+1:t;if(e.charCodeAt(s)!==vt||Af===lr&&s>=Xy)return null;var o=Uo===lr?Nc:null,l=o===null?0:o[s];if(l<0)return null;var u=l;if(l===0){var c=e.indexOf("]",s+1);if(c<0||c>=r)return Xy=s,Af=lr,null;u=s+1;var f=0;Io[f++]=s;for(var m=r-s>=Fc;u<r&&f>0;){var d=e.charCodeAt(u);if(d===Tt&&u+1<r){u+=2;continue}if(d===Je){var p=Bd(e,u,r);if(p>u){u=p;continue}}if(d===rt){var k=z1(e,u,r);if(k){u=k.end;continue}var v=U$(e,u,r);if(v>u){u=v;continue}}if(d===vt)Io[f++]=u;else if(d===jr){var g=Io[--f];o===null&&m&&u-s>=Fc&&(o=Nc=new Int32Array(r),Uo=lr),o!==null&&(o[g]=u+1)}u++}if(f>0){if(o===null&&m&&u-s>=Fc&&(o=Nc=new Int32Array(r),Uo=lr),o!==null)for(;f>0;)o[Io[--f]]=-1;return null}}var b=u-1,w=e.slice(s+1,b),C=u<r?e.charCodeAt(u):0,h=!1;if(C===Er){var y=!0;for(u++;u<r&&(e.charCodeAt(u)===se||e.charCodeAt(u)===fe);)u++;var S="",A=u;if(u<r&&e.charCodeAt(u)===rt){for(u++,A=u;A<r&&e.charCodeAt(A)!==Re;){if(e.charCodeAt(A)===Tt&&A+1<r){A+=2;continue}if(e.charCodeAt(A)===fe){y=!1;break}A++}y&&(A>=r||e.charCodeAt(A)!==Re)&&(y=!1),y&&(S=e.slice(u,A),A++)}else if(y){var _=Ef===lr?Yy:-1;if(_>=0&&u>=_)y=!1;else{for(var x=0,E=!1;A<r;){var O=e.charCodeAt(A);if(O===Tt&&A+1<r){A+=2;continue}if(O===Er)x++;else if(O===Pr){if(E=!0,x===0)break;x--}else if(O===se||O===fe)break;A++}A>=r&&!E&&(_<0||u<_)&&(Yy=u,Ef=lr),S=e.slice(u,A)}}if(y){for(u=A;u<r&&(e.charCodeAt(u)===se||e.charCodeAt(u)===fe);)u++;var R;if(u<r){var T=e.charCodeAt(u);if(T===hi||T===pi||T===Er){var D=T===Er?41:T;u++;for(var L=u;u<r&&e.charCodeAt(u)!==D;)e.charCodeAt(u)===Tt&&u+1<r&&u++,u++;u>=r?y=!1:(R=e.slice(L,u),u++)}}if(y){for(;u<r&&(e.charCodeAt(u)===se||e.charCodeAt(u)===fe);)u++;(u>=r||e.charCodeAt(u)!==Pr)&&(y=!1)}}if(y){if(u++,S=Pn(Gi(S)),R!==void 0&&(R=Pn(Gi(R))),n){var J=Vr(w,0,w.length,i,a),X=fl(J);return{node:{type:ne.image,target:Po(S,(a==null?void 0:a.sanitizer)||nn,"img","src"),alt:X,title:R},end:u}}var Z=i.inAnchor;i.inAnchor=!0;var V=Z?[{type:ne.text,text:w}]:Vr(w,0,w.length,i,a);return i.inAnchor=Z,!i.inAnchor&&_f(V)?null:{node:{type:ne.link,target:Po(S,(a==null?void 0:a.sanitizer)||nn,"a","href"),title:R,children:V},end:u}}u=b+1,h=!0}var P="",F=u;if(!h&&C===vt){var z=u+1;F=z;for(var I=!1;F<r&&e.charCodeAt(F)!==jr;){if(e.charCodeAt(F)===Tt&&F+1<r){F+=2;continue}if(e.charCodeAt(F)===vt){I=!0;break}F++}if(I||F>=r)return null;var N=e.slice(z,F);if(N.trim())P=$o(N);else{if(Ly(w))return null;P=$o(w)}F+=1}else{if(Ly(w))return null;P=$o(w)}var M=(H=i.refs)==null?void 0:H[P];if(!M)return null;if(n)return{node:{type:ne.image,target:Po(M.target,(a==null?void 0:a.sanitizer)||nn,"img","src"),alt:fl(Vr(w,0,w.length,i,a)),title:M.title},end:F};var U=i.inAnchor;i.inAnchor=!0;var V=U?[{type:ne.text,text:w}]:Vr(w,0,w.length,i,a);return i.inAnchor=U,!i.inAnchor&&_f(V)?null:{node:{type:ne.link,target:Po(M.target,(a==null?void 0:a.sanitizer)||nn,"a","href"),title:M.title,children:V},end:F}}function z1(e,t,r){if(e.charCodeAt(t)!==rt)return null;for(var i=t+1;i<r;){var a=e.charCodeAt(i);if(a===Re)break;if(a===se||a===fe||a===Dn||a===rt)return null;i++}if(i>=r||e.charCodeAt(i)!==Re)return null;var n=e.slice(t+1,i),s=n.match(/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^\x00-\x20]*)$/);return s?{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 G$(e,t,r,i){if(e.charCodeAt(t)!==vt||t+1>=r||e.charCodeAt(t+1)!==fn||Of===lr&&t>=Zy)return null;let a=t+2;for(;a<r&&e.charCodeAt(a)!==jr&&e.charCodeAt(a)!==fe;)a++;if(a>=r)return Zy=t,Of=lr,null;if(e.charCodeAt(a)!==jr)return null;let n=e.slice(t+2,a);return n?{node:{type:ne.footnoteReference,target:`#${yi(n)}`,text:n},end:a+1}:null}function J$(e,t,r,i){if(i.disableBareUrls)return null;var a="",n=!1,s=e.charCodeAt(t);if(s===sl||s===72?t+8<=r&&e.charCodeAt(t+1)===Wi&&e.charCodeAt(t+2)===Wi&&e.charCodeAt(t+3)===yf&&(e.charCodeAt(t+4)===I1&&e.charCodeAt(t+5)===qt&&e.charCodeAt(t+6)===yt&&e.charCodeAt(t+7)===yt?a="https://":e.charCodeAt(t+4)===qt&&e.charCodeAt(t+5)===yt&&e.charCodeAt(t+6)===yt&&(a="http://")):s===mi||s===70?t+6<=r&&e.charCodeAt(t+1)===Wi&&e.charCodeAt(t+2)===yf&&e.charCodeAt(t+3)===qt&&e.charCodeAt(t+4)===yt&&e.charCodeAt(t+5)===yt&&(a="ftp://"):(s===si||s===87)&&t+4<=r&&e.charCodeAt(t+1)===si&&e.charCodeAt(t+2)===si&&e.charCodeAt(t+3)===mr&&(a="www.",n=!0),!a)return null;let o=t+a.length;for(;o<r;){let y=e.charCodeAt(o);if(y===se||y===fe||y===le||y===Dn||y===rt||y===Re)break;o++}for(var l=0,u=0,c=t;c<o;c++){var f=e.charCodeAt(c);f===Er?l++:f===Pr&&u++}let m=o;for(;m>t+a.length;){let y=e.charCodeAt(m-1);if(y===mr||y===Bq||y===qt||y===Wt||y===pa||y===Pr||y===xt||y===gt||y===_t){if(y===Pr){if(l>=u)break;u--}m--}else if(y===ol){for(var d=m-2;d>t&&(e.charCodeAt(d)>=xe&&e.charCodeAt(d)<=Ee||e.charCodeAt(d)>=Xe&&e.charCodeAt(d)<=ut||e.charCodeAt(d)>=Te&&e.charCodeAt(d)<=je);)d--;d>=t&&e.charCodeAt(d)===ql?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)===mr)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 C=e.slice(t,m),h=n?`http://${C}`:C;return{node:{type:ne.link,target:h,title:void 0,children:[{type:ne.text,text:C}]},end:m}}function Y$(e,t,r,i){if(i.disableBareUrls)return null;for(var a=t,n=a;a<r;){var s=e.charCodeAt(a);if(s>=xe&&s<=Ee||s>=Xe&&s<=ut||s>=Te&&s<=je||s===mr||s===Wt||s===br||s===36||s===hf||s===ql||s===pi||s===xt||s===Mn||s===yt||s===dr||s===pa||s===fn||s===gt||s===Je||s===gi||s===It||s===$d||s===_t||s===Oe)a++;else break}if(a===n||a>=r||e.charCodeAt(a)!==P1)return null;a++;for(var o=a,l=-1,u=a;a<r;){var s=e.charCodeAt(a);if(s>=xe&&s<=Ee||s>=Xe&&s<=ut||s>=Te&&s<=je)a++;else if((s===Oe||s===gt)&&a>o)a++;else if(s===mr){if(a===o)break;var c=e.charCodeAt(a-1);if(c===Oe||c===gt||a-u>63)break;if(a+1<r){var f=e.charCodeAt(a+1);if(f>=xe&&f<=Ee||f>=Xe&&f<=ut||f>=Te&&f<=je)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>=xe&&m<=Ee||m>=Xe&&m<=ut||m>=Te&&m<=je)||a<=l+1)return null;for(var d=-1,p=l-1;p>=o;p--)if(e.charCodeAt(p)===mr){d=p;break}for(var k=d>=0?d+1:o,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 _f(e){for(var t=0;t<e.length;t++)if(e[t].type===ne.link||"children"in e[t]&&Array.isArray(e[t].children)&&_f(e[t].children))return!0;return!1}function fl(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+=fl(a.children,t):!t&&a.type===ne.image&&(r+=a.alt||"")}return r}function Pf(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=I$(r(fl(n.children,!0)),t)}if("children"in a){var s=a.children;Array.isArray(s)&&Pf(s,t,r)}if((a.type===ne.orderedList||a.type===ne.unorderedList)&&Array.isArray(a.items))for(var o=a.items,l=0;l<o.length;l++)Pf(o[l],t,r)}}function ei(e){return{type:ne.text,text:e}}function X$(e,t,r){var i=t+1;if(i>=r)return-1;if(e.charCodeAt(i)===br){i++;var a=i<r&&(e.charCodeAt(i)===T1||e.charCodeAt(i)===j1);a&&i++;for(var n=i,s=a?6:7;i<r&&i-n<=s;){var o=e.charCodeAt(i),l=o>=Te&&o<=je||a&&(o>=xe&&o<=gf||o>=Xe&&o<=mi);if(!l)break;i++}return i===n||i-n>s?-1:i<r&&e.charCodeAt(i)===ol?i+1:-1}for(var u=i;i<r&&i-u<48;){var c=e.charCodeAt(i);if(c>=xe&&c<=Ee||c>=Xe&&c<=ut||c>=Te&&c<=je){i++;continue}break}return i===u?-1:i<r&&e.charCodeAt(i)===ol?i+1:-1}function Z$(e,t,r,i,a){if(e.charCodeAt(t)!==rt)return null;var n=t+1;if(n>=r)return null;var s=e.charCodeAt(n);if(s===Wt&&n+1<r&&e.charCodeAt(n+1)===Oe&&n+2<r&&e.charCodeAt(n+2)===Oe){var o=n+3;if(o<r&&e.charCodeAt(o)===Re)return{node:{type:ne.htmlComment,text:"",s:!0},end:o+1};if(o+1<r&&e.charCodeAt(o)===Oe&&e.charCodeAt(o+1)===Re)return{node:{type:ne.htmlComment,text:"-",s:!0},end:o+2};var l=e.indexOf("-->",o);return l!==-1&&l<=r-3?{node:{type:ne.htmlComment,text:e.slice(t+4,l),s:!1},end:l+3}:null}if(s===pa){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(s===Wt&&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>=xe&&c<=Ee){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(s===yt){var d=n+1;if(d>=r)return null;var p=e.charCodeAt(d);if(!(p>=xe&&p<=Ee||p>=Xe&&p<=ut))return null;for(d++;d<r;){var k=e.charCodeAt(d);if(k>=xe&&k<=Ee||k>=Xe&&k<=ut||k>=Te&&k<=je||k===Oe)d++;else break}for(;d<r&&(e.charCodeAt(d)===se||e.charCodeAt(d)===le||e.charCodeAt(d)===fe);)d++;if(d<r&&e.charCodeAt(d)===Re){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(!(s>=xe&&s<=Ee||s>=Xe&&s<=ut))return null;var g=zr(e,t);if(!g)return null;var b=g.tag,w=b.toLowerCase(),C=g.n;if(C||bs(b))return{node:{type:ne.htmlSelfClosing,tag:b,attrs:$r(g.attrs,b,a),m:g.q?wf(g):e.slice(t,g.end),a:!1},end:g.end};var h=ks.has(w),y=Cf(e.slice(0,r),g.end,b);if(y===-1)return{node:{type:ne.htmlSelfClosing,tag:b,attrs:$r(g.attrs,b,a),m:g.q?wf(g):e.slice(t,g.end),a:!1},end:g.end};var S=D$(e,`</${w}`,y),A=e.slice(g.end,S);if(h){var _=rr(A);return{node:{type:ne.htmlBlock,tag:b,attrs:$r(g.attrs,b,a),b:g.g+g.b,children:[],e:_||void 0,h:e.slice(S,y),text:_,c:!0,a:!1},end:y}}var x=[],E=A.trim();if(E){var{inAnchor:O,inline:R,k:T}=i;w==="a"&&(i.inAnchor=!0),i.k=!1;var D=E.indexOf(`
134
+ `,u=De(e,c);continue}}break}else break}var d=r.refs;return d&&!d[s]&&(d[s]={target:l,title:void 0}),{node:{type:ne.footnote},end:u}}function iz(e,t,r,i){let a=t,n=0,s=0,o=-1;for(;a<e.length;){let R=o>=0?o:Ye(e,a);if(o=-1,Ht(e,a,R))break;if(Ct(e,a,R),Ge<4&&s>0&&!r.l){let D=e.charCodeAt(a+We);if(D===dr||D===Oe){let L=a+We;for(;L<R&&e.charCodeAt(L)===D;)L++;for(;L<R&&(e.charCodeAt(L)===se||e.charCodeAt(L)===le);)L++;if(L>=R){n=D===dr?1:2,a=De(e,R);break}}}s=R;let T=De(e,R);if(T<e.length){if(e.charCodeAt(T)===Sf){var l=Ye(e,T);a=De(e,l),s=l;continue}let D=Ye(e,T);if(o=D,Ct(e,T,D),Ge<4){let L=e.charCodeAt(T+We);if(L===Re){a=T;break}if(L===br){for(var u=T+We,c=0;u<D&&e.charCodeAt(u)===br&&c<=6;)c++,u++;if(c>=1&&c<=6&&(u>=D||e.charCodeAt(u)===se||e.charCodeAt(u)===le)){a=T;break}}if(L===Je||L===_t){for(var f=T+We,m=0;f<D&&e.charCodeAt(f)===L;)m++,f++;if(m>=3){a=T;break}}if(L===rt){var d=T+We+1,p=d<D?e.charCodeAt(d):0,k=p===Kt||p===ga;if(!k&&p===yt){for(var v=d+1,g=v;g<D&&(e.charCodeAt(g)>=xe&&e.charCodeAt(g)<=Ee||e.charCodeAt(g)>=Xe&&e.charCodeAt(g)<=ut||e.charCodeAt(g)>=Te&&e.charCodeAt(g)<=je||e.charCodeAt(g)===Oe);)g++;g>v&&(k=pl.has(e.slice(v,g).toLowerCase()))}else if(!k){for(var b=d;b<D&&(e.charCodeAt(b)>=xe&&e.charCodeAt(b)<=Ee||e.charCodeAt(b)>=Xe&&e.charCodeAt(b)<=ut||e.charCodeAt(b)>=Te&&e.charCodeAt(b)<=je||e.charCodeAt(b)===Oe);)b++;if(b>d){var w=e.slice(d,b).toLowerCase();k=pl.has(w)||Ss.has(w)}}if(k&&Y1(e,T,r,i)){a=T;break}}if(L===Oe||L===xt||L===qn){let H=T+We+1;if(H<D&&(e.charCodeAt(H)===se||e.charCodeAt(H)===le)){var x=ss(e,H,D);if(x<D&&!jn(e,T)){a=T;break}}}if(L>=Te&&L<=je){let H=T+We;for(;H<D&&e.charCodeAt(H)>=Te&&e.charCodeAt(H)<=je;)H++;if(H<D&&(e.charCodeAt(H)===mr||e.charCodeAt(H)===Pr)&&H-(T+We)===1&&e.charCodeAt(T+We)===49){var h=H+1;if(h<D&&(e.charCodeAt(h)===se||e.charCodeAt(h)===le)){var y=ss(e,h,D);if(y<D){a=T;break}}}}if(L===It){let H=De(e,D);if(H<e.length){let Y=Ye(e,H);if(K1(e,H,Y)){a=T;break}}}if((L===Oe||L===xt||L===gt)&&jn(e,T)){if(L!==Oe){a=T;break}let H=T+We;for(;H<D&&e.charCodeAt(H)===Oe;)H++;for(;H<D&&(e.charCodeAt(H)===se||e.charCodeAt(H)===le);)H++;if(H<D){a=T;break}}}}a=De(e,R)}for(var S=n?s:a;S>t&&(e.charCodeAt(S-1)===fe||e.charCodeAt(S-1)===Ln||e.charCodeAt(S-1)===se||e.charCodeAt(S-1)===le);)S--;for(var A=t;A<S&&(e.charCodeAt(A)===se||e.charCodeAt(A)===le);)A++;if(A>=S)return null;for(var _=!1,C=A;C<S;C++)if(e.charCodeAt(C)===Sf){_=!0;break}var E=_?e.slice(A,S).replace(/\u001E/g,""):e.slice(A,S);if(!E)return null;let O=Xi(E,!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 Xi(e,t,r,i){var a=r.t;if(!a){var n=r.k;r.k=t;var s=Vr(e,0,e.length,r,i);return r.k=n,s}var o=[];return a.push({dest:o,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}),o}function az(e,t,r){if(e.charCodeAt(t)!==Je)return null;let i=$n(e,t,r,96),a=t+i;for(;a<r;){let n=e.indexOf("`",a);if(n<0||n>=r)return null;let s=$n(e,n,r,96);if(s===i){let o=e.slice(t+i,n);return o.indexOf(`
135
+ `)!==-1&&(o=o.replace(/\n/g," ")),o.length>0&&o[0]===" "&&o.at(-1)===" "&&o.trim().length>0&&(o=o.slice(1,-1)),{node:{type:ne.codeInline,text:o},end:n+s}}a=n+s}return null}function Gd(e,t,r){if(e.charCodeAt(t)!==Je)return t;let i=$n(e,t,r,96),a=t+i;for(;a<r;){let n=e.indexOf("`",a);if(n<0||n>=r)return t;let s=$n(e,n,r,96);if(s===i)return n+s;a=n+s}return t}function sz(e,t,r){if(e.charCodeAt(t)!==rt)return t;if(t+1<r&&e.charCodeAt(t+1)===yt){let u=t+2;for(;u<r&&e.charCodeAt(u)!==Re;)u++;return u<r?u+1:t}if(t+3<r&&e.charCodeAt(t+1)===Kt&&e.charCodeAt(t+2)===Oe&&e.charCodeAt(t+3)===Oe){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>=xe&&u<=Ee||u>=Xe&&u<=ut||u>=Te&&u<=je||u===Oe)i++;else break}if(i===a)return t;let n=e.slice(a,i).toLowerCase(),s=!1;for(;i<r;){let u=e.charCodeAt(i);if(u===Re){i++;break}if(u===yt&&i+1<r&&e.charCodeAt(i+1)===Re){i+=2,s=!0;break}if(u===yi||u===gi){var o=u;for(i++;i<r&&e.charCodeAt(i)!==o;)i++;i<r&&i++;continue}if(u===fe)return t;i++}if(s||xs(n))return i;let l=1;for(;i<r&&l>0;)if(e.charCodeAt(i)===rt)if(i+1<r&&e.charCodeAt(i+1)===yt){let u=i+2,c=u;for(;c<r&&(e.charCodeAt(c)>=xe&&e.charCodeAt(c)<=Ee||e.charCodeAt(c)>=Xe&&e.charCodeAt(c)<=ut);)c++;if(e.slice(u,c).toLowerCase()===n){for(;c<r&&e.charCodeAt(c)!==Re;)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)>=xe&&e.charCodeAt(c)<=Ee||e.charCodeAt(c)>=Xe&&e.charCodeAt(c)<=ut);)c++;e.slice(u,c).toLowerCase()===n&&l++,i++}else i++;return i}function oz(e,t,r,i,a){if(e.charCodeAt(t)!==_t||t+1>=r||e.charCodeAt(t+1)!==_t)return null;let n=t+2;for(;n+1<r;){let s=e.charCodeAt(n);if(s===Je){let o=Gd(e,n,r);if(o>n){n=o;continue}}if(s===_t&&e.charCodeAt(n+1)===_t){let o=e.slice(t+2,n),l=Vr(o,0,o.length,i,a);return{node:{type:ne.textFormatted,tag:"del",children:l},end:n+2}}s===Tt&&n+1<r&&n++,n++}return null}function lz(e,t,r,i,a){if(e.charCodeAt(t)!==dr||t+1>=r||e.charCodeAt(t+1)!==dr)return null;let n=t+2;for(;n+1<r;){let s=e.charCodeAt(n);if(s===Je){let o=Gd(e,n,r);if(o>n){n=o;continue}}if(s===dr&&e.charCodeAt(n+1)===dr&&n>t+2){let o=e.slice(t+2,n),l=Vr(o,0,o.length,i,a);return{node:{type:ne.textFormatted,tag:"mark",children:l},end:n+2}}s===Tt&&n+1<r&&n++,n++}return null}function Qy(e,t,r){return e<Hl?!!(Kd(e)&Vi):k$.test(t[r])}function ev(e,t,r){return e<Hl?!!(Kd(e)&si):w$.test(t[r])}function uz(e,t,r){var i=e.charCodeAt(t);if(i!==xt&&i!==gt)return null;var a=$n(e,t,r,i);if(a===0)return null;var n=t>0?e.charCodeAt(t-1):32,s=t+a<r?e.charCodeAt(t+a):32,o=ev(n,e,t-1),l=ev(s,e,t+a),u=t>0?Qy(n,e,t-1):!1,c=t+a<r?Qy(s,e,t+a):!1,f=!l&&(!c||o||u),m=!o&&(!u||l||c),d,p;return i===xt?(d=f,p=m):(d=f&&(!m||u),p=m&&(!f||c)),{len:a,canOpen:d,canClose:p}}function cz(e,t,r,i){if(t.length!==0){for(var a=e.length,n=Array(a),s=null,o=null,l=0;l<a;l++){var u={node:e[l],prev:o,next:null};o?o.next=u:s=u,n[l]=u,o=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===xt?0:1,g=v*6+k.len%3*2+(k.canOpen?1:0),b=m[g]===void 0?-1:m[g],w=-1,x=p-1;x>b;x--){var h=t[x];if(!(!h.active||h.ch!==k.ch||!h.canOpen)&&!((k.canOpen||h.canClose)&&(h.len+k.len)%3===0&&h.len%3!==0)){w=x;break}}if(w<0){m[g]=p-1,!k.canOpen&&(k.active=!1),p++;continue}var y=t[w],S=y.len>=2&&k.len>=2,A=S?2:1;y.len-=A,k.len-=A;var _=c[w],C=c[p],E=_.node,O=C.node;E.text=E.text.slice(0,E.text.length-A),O.text=O.text.slice(A);for(var R=[],T=_.next;T&&T!==C;)R.push(T.node),T=T.next;var D={type:ne.textFormatted,tag:S?"strong":"em",children:R},L={node:D,prev:_,next:C};_.next=L,C.prev=L;for(var H=w+1;H<p;H++)t[H].active=!1;if(y.len===0&&(y.active=!1,E.text==="")){var Y=_.prev;L.prev=Y,Y?Y.next=L:s=L}if(k.len===0){if(k.active=!1,O.text===""){var Z=C.next;L.next=Z,Z&&(Z.prev=L)}}else continue;p++}for(var P=0,F=s;F;){var z=F.node;if(z.type===ne.text){var I=z;if(I.text===""){F=F.next;continue}if(P>0&&e[P-1].type===ne.text){e[P-1].text+=I.text,F=F.next;continue}}e[P++]=z,F=F.next}e.length=P}}function Ro(e,t,r,i){return t(e,r,i)===null?null:e}var tv=0,If=0,rv=0,Tf=0,nv=0,jf=0,Lc=0,lr=0;function fz(){return Lc===2147483647&&(If=0,Tf=0,jf=0,Wo=0,Lc=0),++Lc}var qc=null,Wo=0,No=[],$c=256;function iv(e,t,r,i,a){var W;let n=e.charCodeAt(t)===Kt,s=n?t+1:t;if(e.charCodeAt(s)!==vt||Tf===lr&&s>=rv)return null;var o=Wo===lr?qc:null,l=o===null?0:o[s];if(l<0)return null;var u=l;if(l===0){var c=e.indexOf("]",s+1);if(c<0||c>=r)return rv=s,Tf=lr,null;u=s+1;var f=0;No[f++]=s;for(var m=r-s>=$c;u<r&&f>0;){var d=e.charCodeAt(u);if(d===Tt&&u+1<r){u+=2;continue}if(d===Je){var p=Gd(e,u,r);if(p>u){u=p;continue}}if(d===rt){var k=X1(e,u,r);if(k){u=k.end;continue}var v=sz(e,u,r);if(v>u){u=v;continue}}if(d===vt)No[f++]=u;else if(d===jr){var g=No[--f];o===null&&m&&u-s>=$c&&(o=qc=new Int32Array(r),Wo=lr),o!==null&&(o[g]=u+1)}u++}if(f>0){if(o===null&&m&&u-s>=$c&&(o=qc=new Int32Array(r),Wo=lr),o!==null)for(;f>0;)o[No[--f]]=-1;return null}}var b=u-1,w=e.slice(s+1,b),x=u<r?e.charCodeAt(u):0,h=!1;if(x===Er){var y=!0;for(u++;u<r&&(e.charCodeAt(u)===se||e.charCodeAt(u)===fe);)u++;var S="",A=u;if(u<r&&e.charCodeAt(u)===rt){for(u++,A=u;A<r&&e.charCodeAt(A)!==Re;){if(e.charCodeAt(A)===Tt&&A+1<r){A+=2;continue}if(e.charCodeAt(A)===fe){y=!1;break}A++}y&&(A>=r||e.charCodeAt(A)!==Re)&&(y=!1),y&&(S=e.slice(u,A),A++)}else if(y){var _=If===lr?tv:-1;if(_>=0&&u>=_)y=!1;else{for(var C=0,E=!1;A<r;){var O=e.charCodeAt(A);if(O===Tt&&A+1<r){A+=2;continue}if(O===Er)C++;else if(O===Pr){if(E=!0,C===0)break;C--}else if(O===se||O===fe)break;A++}A>=r&&!E&&(_<0||u<_)&&(tv=u,If=lr),S=e.slice(u,A)}}if(y){for(u=A;u<r&&(e.charCodeAt(u)===se||e.charCodeAt(u)===fe);)u++;var R;if(u<r){var T=e.charCodeAt(u);if(T===yi||T===gi||T===Er){var D=T===Er?41:T;u++;for(var L=u;u<r&&e.charCodeAt(u)!==D;)e.charCodeAt(u)===Tt&&u+1<r&&u++,u++;u>=r?y=!1:(R=e.slice(L,u),u++)}}if(y){for(;u<r&&(e.charCodeAt(u)===se||e.charCodeAt(u)===fe);)u++;(u>=r||e.charCodeAt(u)!==Pr)&&(y=!1)}}if(y){if(u++,S=Tn(Yi(S)),R!==void 0&&(R=Tn(Yi(R))),n){var H=Vr(w,0,w.length,i,a),Y=gl(H);return{node:{type:ne.image,target:Ro(S,(a==null?void 0:a.sanitizer)||nn,"img","src"),alt:Y,title:R},end:u}}var Z=i.inAnchor;i.inAnchor=!0;var V=Z?[{type:ne.text,text:w}]:Vr(w,0,w.length,i,a);return i.inAnchor=Z,!i.inAnchor&&Rf(V)?null:{node:{type:ne.link,target:Ro(S,(a==null?void 0:a.sanitizer)||nn,"a","href"),title:R,children:V},end:u}}u=b+1,h=!0}var P="",F=u;if(!h&&x===vt){var z=u+1;F=z;for(var I=!1;F<r&&e.charCodeAt(F)!==jr;){if(e.charCodeAt(F)===Tt&&F+1<r){F+=2;continue}if(e.charCodeAt(F)===vt){I=!0;break}F++}if(I||F>=r)return null;var N=e.slice(z,F);if(N.trim())P=Vo(N);else{if(By(w))return null;P=Vo(w)}F+=1}else{if(By(w))return null;P=Vo(w)}var M=(W=i.refs)==null?void 0:W[P];if(!M)return null;if(n)return{node:{type:ne.image,target:Ro(M.target,(a==null?void 0:a.sanitizer)||nn,"img","src"),alt:gl(Vr(w,0,w.length,i,a)),title:M.title},end:F};var B=i.inAnchor;i.inAnchor=!0;var V=B?[{type:ne.text,text:w}]:Vr(w,0,w.length,i,a);return i.inAnchor=B,!i.inAnchor&&Rf(V)?null:{node:{type:ne.link,target:Ro(M.target,(a==null?void 0:a.sanitizer)||nn,"a","href"),title:M.title,children:V},end:F}}function X1(e,t,r){if(e.charCodeAt(t)!==rt)return null;for(var i=t+1;i<r;){var a=e.charCodeAt(i);if(a===Re)break;if(a===se||a===fe||a===Ln||a===rt)return null;i++}if(i>=r||e.charCodeAt(i)!==Re)return null;var n=e.slice(t+1,i),s=n.match(/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^\x00-\x20]*)$/);return s?{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 dz(e,t,r,i){if(e.charCodeAt(t)!==vt||t+1>=r||e.charCodeAt(t+1)!==fn||jf===lr&&t>=nv)return null;let a=t+2;for(;a<r&&e.charCodeAt(a)!==jr&&e.charCodeAt(a)!==fe;)a++;if(a>=r)return nv=t,jf=lr,null;if(e.charCodeAt(a)!==jr)return null;let n=e.slice(t+2,a);return n?{node:{type:ne.footnoteReference,target:`#${bi(n)}`,text:n},end:a+1}:null}function mz(e,t,r,i){if(i.disableBareUrls)return null;var a="",n=!1,s=e.charCodeAt(t);if(s===fl||s===72?t+8<=r&&e.charCodeAt(t+1)===Ji&&e.charCodeAt(t+2)===Ji&&e.charCodeAt(t+3)===xf&&(e.charCodeAt(t+4)===$1&&e.charCodeAt(t+5)===qt&&e.charCodeAt(t+6)===yt&&e.charCodeAt(t+7)===yt?a="https://":e.charCodeAt(t+4)===qt&&e.charCodeAt(t+5)===yt&&e.charCodeAt(t+6)===yt&&(a="http://")):s===hi||s===70?t+6<=r&&e.charCodeAt(t+1)===Ji&&e.charCodeAt(t+2)===xf&&e.charCodeAt(t+3)===qt&&e.charCodeAt(t+4)===yt&&e.charCodeAt(t+5)===yt&&(a="ftp://"):(s===li||s===87)&&t+4<=r&&e.charCodeAt(t+1)===li&&e.charCodeAt(t+2)===li&&e.charCodeAt(t+3)===mr&&(a="www.",n=!0),!a)return null;let o=t+a.length;for(;o<r;){let y=e.charCodeAt(o);if(y===se||y===fe||y===le||y===Ln||y===rt||y===Re)break;o++}for(var l=0,u=0,c=t;c<o;c++){var f=e.charCodeAt(c);f===Er?l++:f===Pr&&u++}let m=o;for(;m>t+a.length;){let y=e.charCodeAt(m-1);if(y===mr||y===o$||y===qt||y===Kt||y===ga||y===Pr||y===xt||y===gt||y===_t){if(y===Pr){if(l>=u)break;u--}m--}else if(y===dl){for(var d=m-2;d>t&&(e.charCodeAt(d)>=xe&&e.charCodeAt(d)<=Ee||e.charCodeAt(d)>=Xe&&e.charCodeAt(d)<=ut||e.charCodeAt(d)>=Te&&e.charCodeAt(d)<=je);)d--;d>=t&&e.charCodeAt(d)===Vl?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)===mr)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 x=e.slice(t,m),h=n?`http://${x}`:x;return{node:{type:ne.link,target:h,title:void 0,children:[{type:ne.text,text:x}]},end:m}}function pz(e,t,r,i){if(i.disableBareUrls)return null;for(var a=t,n=a;a<r;){var s=e.charCodeAt(a);if(s>=xe&&s<=Ee||s>=Xe&&s<=ut||s>=Te&&s<=je||s===mr||s===Kt||s===br||s===36||s===kf||s===Vl||s===gi||s===xt||s===qn||s===yt||s===dr||s===ga||s===fn||s===gt||s===Je||s===vi||s===It||s===Hd||s===_t||s===Oe)a++;else break}if(a===n||a>=r||e.charCodeAt(a)!==q1)return null;a++;for(var o=a,l=-1,u=a;a<r;){var s=e.charCodeAt(a);if(s>=xe&&s<=Ee||s>=Xe&&s<=ut||s>=Te&&s<=je)a++;else if((s===Oe||s===gt)&&a>o)a++;else if(s===mr){if(a===o)break;var c=e.charCodeAt(a-1);if(c===Oe||c===gt||a-u>63)break;if(a+1<r){var f=e.charCodeAt(a+1);if(f>=xe&&f<=Ee||f>=Xe&&f<=ut||f>=Te&&f<=je)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>=xe&&m<=Ee||m>=Xe&&m<=ut||m>=Te&&m<=je)||a<=l+1)return null;for(var d=-1,p=l-1;p>=o;p--)if(e.charCodeAt(p)===mr){d=p;break}for(var k=d>=0?d+1:o,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 Rf(e){for(var t=0;t<e.length;t++)if(e[t].type===ne.link||"children"in e[t]&&Array.isArray(e[t].children)&&Rf(e[t].children))return!0;return!1}function gl(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+=gl(a.children,t):!t&&a.type===ne.image&&(r+=a.alt||"")}return r}function Nf(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=G$(r(gl(n.children,!0)),t)}if("children"in a){var s=a.children;Array.isArray(s)&&Nf(s,t,r)}if((a.type===ne.orderedList||a.type===ne.unorderedList)&&Array.isArray(a.items))for(var o=a.items,l=0;l<o.length;l++)Nf(o[l],t,r)}}function ri(e){return{type:ne.text,text:e}}function hz(e,t,r){var i=t+1;if(i>=r)return-1;if(e.charCodeAt(i)===br){i++;var a=i<r&&(e.charCodeAt(i)===z1||e.charCodeAt(i)===U1);a&&i++;for(var n=i,s=a?6:7;i<r&&i-n<=s;){var o=e.charCodeAt(i),l=o>=Te&&o<=je||a&&(o>=xe&&o<=wf||o>=Xe&&o<=hi);if(!l)break;i++}return i===n||i-n>s?-1:i<r&&e.charCodeAt(i)===dl?i+1:-1}for(var u=i;i<r&&i-u<48;){var c=e.charCodeAt(i);if(c>=xe&&c<=Ee||c>=Xe&&c<=ut||c>=Te&&c<=je){i++;continue}break}return i===u?-1:i<r&&e.charCodeAt(i)===dl?i+1:-1}function gz(e,t,r,i,a){if(e.charCodeAt(t)!==rt)return null;var n=t+1;if(n>=r)return null;var s=e.charCodeAt(n);if(s===Kt&&n+1<r&&e.charCodeAt(n+1)===Oe&&n+2<r&&e.charCodeAt(n+2)===Oe){var o=n+3;if(o<r&&e.charCodeAt(o)===Re)return{node:{type:ne.htmlComment,text:"",s:!0},end:o+1};if(o+1<r&&e.charCodeAt(o)===Oe&&e.charCodeAt(o+1)===Re)return{node:{type:ne.htmlComment,text:"-",s:!0},end:o+2};var l=e.indexOf("-->",o);return l!==-1&&l<=r-3?{node:{type:ne.htmlComment,text:e.slice(t+4,l),s:!1},end:l+3}:null}if(s===ga){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(s===Kt&&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>=xe&&c<=Ee){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(s===yt){var d=n+1;if(d>=r)return null;var p=e.charCodeAt(d);if(!(p>=xe&&p<=Ee||p>=Xe&&p<=ut))return null;for(d++;d<r;){var k=e.charCodeAt(d);if(k>=xe&&k<=Ee||k>=Xe&&k<=ut||k>=Te&&k<=je||k===Oe)d++;else break}for(;d<r&&(e.charCodeAt(d)===se||e.charCodeAt(d)===le||e.charCodeAt(d)===fe);)d++;if(d<r&&e.charCodeAt(d)===Re){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(!(s>=xe&&s<=Ee||s>=Xe&&s<=ut))return null;var g=zr(e,t);if(!g)return null;var b=g.tag,w=b.toLowerCase(),x=g.n;if(x||xs(b))return{node:{type:ne.htmlSelfClosing,tag:b,attrs:$r(g.attrs,b,a),m:g.q?Af(g):e.slice(t,g.end),a:!1},end:g.end};var h=Ss.has(w),y=Pf(e.slice(0,r),g.end,b);if(y===-1)return{node:{type:ne.htmlSelfClosing,tag:b,attrs:$r(g.attrs,b,a),m:g.q?Af(g):e.slice(t,g.end),a:!1},end:g.end};var S=ez(e,`</${w}`,y),A=e.slice(g.end,S);if(h){var _=rr(A);return{node:{type:ne.htmlBlock,tag:b,attrs:$r(g.attrs,b,a),b:g.g+g.b,children:[],e:_||void 0,h:e.slice(S,y),text:_,c:!0,a:!1},end:y}}var C=[],E=A.trim();if(E){var{inAnchor:O,inline:R,k:T}=i;w==="a"&&(i.inAnchor=!0),i.k=!1;var D=E.indexOf(`
136
136
 
137
- `)!==-1||/^#{1,6}\s/.test(E);D?(i.inline=!1,x=Tn(E,i,a)):x=Vr(E,0,E.length,i,a),i.inAnchor=O,i.inline=R,i.k=T}return{node:{type:ne.htmlBlock,tag:b,attrs:$r(g.attrs,b,a),b:g.b,children:x,text:rr(A),c:!1,a:!1},end:y}}var Q$=200,Da=0;function Vr(e,t,r,i,a){if(Da++,Da>Q$)return Da--,[{type:ne.text,text:e.slice(t,r)}];var n=lr;lr=W$();let s=i;if(a.optimizeForStreaming){let ee=function(He,bt){for(var Et=1,ot=bt+1;ot<He.length;ot++){var kt=He.charCodeAt(ot);if(kt===vt)Et++;else if(kt===jr&&(Et--,Et===0))return ot}return-1},te=e.slice(t,r),pe=te;for(var o=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===xt?g+1<te.length&&te.charCodeAt(g+1)===xt?(o++,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===_t&&g+1<te.length&&te.charCodeAt(g+1)===_t&&(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]),o%2===1&&m>=0&&w.push([m,2]),l%2===1&&d>=0&&w.push([d,1]),w.sort((He,bt)=>bt[0]-He[0]);for(var C=0;C<w.length;C++){var h=w[C][0],y=w[C][1];te=te.slice(0,h)+te.slice(h+y)}let ce=0,ct=-1;for(let He=0;He<te.length;He++)te.charCodeAt(He)===Je&&(ce++,ct=He);if(ce%2===1&&ct!==-1){let He=!1,bt=-1,Et=0;for(;Et<te.length;)te.charCodeAt(Et)===Je&&(He?(He=!1,bt=-1):(bt=Et,He=!0)),Et++;He&&bt!==-1&&(te=te.slice(0,bt))}for(var S=!0;S;){S=!1;for(var A=-1,_=-1,x=-1,E=!1,O=0;O<te.length;O++){var R=te.charCodeAt(O);if(R===vt&&(O===0||te.charCodeAt(O-1)!==Tt)){var T=O>0&&te.charCodeAt(O-1)===Wt,D=T?O-1:O,L=ee(te,O);if(L===-1)A=D,E=T,_=O+1,x=te.length;else{var J=L+1;if(J>=te.length)A=D,E=T,_=O+1,x=L;else if(te.charCodeAt(J)===Er){var X=te.indexOf(")",J+1);X===-1?(A=D,E=T,_=O+1,x=L,O=te.length):O=X}else if(te.charCodeAt(J)===vt){var Z=te.indexOf("]",J+1);Z===-1?(A=D,E=T,_=O+1,x=L,O=te.length):O=Z}else O=L}}}if(A>=0){var P=E?"":te.slice(_,x);te=te.slice(0,A)+P,S=!0}}let Fe=te.match(/<([A-Z][A-Za-z0-9]*)(?:\s[^>]*)?>([^<]*)$/);if(Fe&&Fe.index!==void 0){var F=Fe[0].length-Fe[2].length,z=F>=2&&Fe[0].charCodeAt(F-2)===yt;if(!z){for(var I=!1,N=0,M=0;M<Fe.index;M++)te.charCodeAt(M)===Je&&N++;if(I=N%2===1,!I){let He=Fe[1];xn(te,`</${He}`,0)===-1&&(te=te.slice(0,Fe.index)+Fe[2])}}}te!==pe&&(e=e.slice(0,t)+te,r=t+te.length)}let U=[];var V=[];let H=t;var K="",Y=a.disableAutoLink||a.disableBareUrls||s.inAnchor?-1:e.indexOf("@",t);for(Y>=r&&(Y=-1);t<r;){let ee=e.charCodeAt(t),te=null;if(ee===Je){if(te=z$(e,t,r),!te){var $=Ln(e,t,r,Je);t+=$-1}}else if(ee===xt||ee===gt){var q=H$(e,t,r);if(q){if(q.canOpen||q.canClose){(K||t>H)&&(U.push(ei(K+e.slice(H,t))),K="");var G=e.slice(t,t+q.len),W=ei(G);V.push({idx:U.length,ch:ee,len:q.len,canOpen:q.canOpen,canClose:q.canClose,active:!0}),U.push(W),t+=q.len,H=t;continue}t+=q.len-1}}else if(ee===_t)te=B$(e,t,r,s,a);else if(ee===dr)te=V$(e,t,r,s,a);else if(ee===vt)t+1<r&&e.charCodeAt(t+1)===fn&&(te=G$(e,t,r)),te||(te=Qy(e,t,r,s,a));else if(ee===Wt&&t+1<r&&e.charCodeAt(t+1)===vt)te=Qy(e,t,r,s,a);else if(ee===rt)te=z1(e,t,r),!(te||a.disableParsingRawHTML||a.ignoreHTMLBlocks)&&(te=Z$(e,t,r,s,a));else if(ee===ql){var ie=X$(e,t,r);if(ie!==-1){var re=e.slice(t,ie),ue=Pn(re);if(ue!==re){K=K+e.slice(H,t)+ue,t=ie,H=ie;continue}}}else if((ee===sl||ee===si||ee===mi)&&!s.inAnchor&&!a.disableAutoLink&&(t===0||e.charCodeAt(t-1)!==rt)){var ye=t+1<r?e.charCodeAt(t+1):0;(ee===sl&&ye===Wi||ee===mi&&ye===Wi||ee===si&&ye===si)&&(te=J$(e,t,r,a))}if(!te&&Y>=0&&Y-t<=64&&!s.inAnchor&&!a.disableAutoLink&&!a.disableBareUrls&&(ee>=xe&&ee<=Ee||ee>=Xe&&ee<=ut||ee>=Te&&ee<=je)&&(te=Y$(e,t,r,a),!te&&t>=Y&&(Y=e.indexOf("@",t+1),Y>=r&&(Y=-1))),ee===fe&&s.k){var we=!1,ke=0;if(t>H&&e.charCodeAt(t-1)===Tt)we=!0,ke=1;else{for(var Pe=0,de=t-1;de>=H&&e.charCodeAt(de)===se;)Pe++,de--;Pe>=2&&(we=!0,ke=Pe)}if(we){for((K||t-ke>H)&&(U.push(ei(K+e.slice(H,t-ke))),K=""),U.push({type:ne.breakLine}),t++;t<r&&e.charCodeAt(t)===se;)t++;H=t;continue}var Ve=t>H&&e.charCodeAt(t-1)===se,st=t+1<r&&e.charCodeAt(t+1)===se;if(Ve||st){for(var ve=t;ve>H&&e.charCodeAt(ve-1)===se;)ve--;for(K+=`${e.slice(H,ve)}
138
- `,t++;t<r&&e.charCodeAt(t)===se;)t++;H=t;continue}}if(te)(K||t>H)&&(U.push(ei(K+e.slice(H,t))),K=""),U.push(te.node),t=te.end,H=t;else{if(ee===Tt&&t+1<r){let pe=e.charCodeAt(t+1);if(Ud(pe)&Ui){(K||t>H)&&(U.push(ei(K+e.slice(H,t))),K=""),U.push(ei(e[t+1])),t+=2,H=t;continue}}if(t++,Y<0||Y-t>64)for(;t<r&&!(Y>=0&&Y-t<=64);){var Q=e.charCodeAt(t);if(Q<$l&&!D1[Q])t++;else break}}}return(K||r>H)&&(U.push(ei(K+e.slice(H,r))),K=""),V.length>0&&K$(U,V),lr=n,Da--,U}var ez=500;function Tn(e,t,r){var i=t.o||0;if(i>ez)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)===It){for(var s=!1,o=n+1;o<a;o++){var l=e.charCodeAt(o);if(l!==se&&l!==le&&l!==It&&l!==qt&&l!==Oe){s=!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)!==It)break;m=p;for(var k=!0,v=!1,g=p;g<d;g++){var b=e.charCodeAt(g);if(b===Oe)v=!0;else if(b!==se&&b!==le&&b!==qt&&b!==It){k=!1;break}}k&&v?(u=!0,c=!0):c||f++,d=p-1}s?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,C=-1,h=-1,y=!1,S=e.length-1;S>=0;S--)if(e.charCodeAt(S)===rt){for(var A=S+1<e.length?e.charCodeAt(S+1):0,_=A>=xe&&A<=Ee||A>=Xe&&A<=ut,x=A===yt&&S+2<e.length&&(e.charCodeAt(S+2)>=xe&&e.charCodeAt(S+2)<=Ee||e.charCodeAt(S+2)>=Xe&&e.charCodeAt(S+2)<=ut),E=A===Wt||A===pa,O=e.length;O>S+1&&e.charCodeAt(O-1)===fe;)O--;var R=S+1>=O;if(_||x||E||R){var T=S+1;if((x||_)&&(T=S+2),_||x)for(;T<e.length;){var D=e.charCodeAt(T);if(D>=xe&&D<=Ee||D>=Xe&&D<=ut||D>=Te&&D<=je)T++;else break}for(var L=_||x?T:S+2;L<e.length&&e.charCodeAt(L)!==Re;)L++;if(L>=e.length)w=S,y=!0;else if((_||x)&&e.charCodeAt(L-1)!==yt){for(var J=!1,X=L+1;X<e.length;X++)if(e.charCodeAt(X)===rt){J=!0;break}J||(w=S,C=T,h=L+1)}}break}if(w>=0){for(var Z=0,P=0;P<w;P++)e.charCodeAt(P)===Je&&Z++;if(Z%2===0)if(y)e=e.slice(0,w);else{var F=e.slice(w+1,C);xn(e,`</${F}`,0)===-1&&(e=e.slice(0,w)+e.slice(h))}}for(var z=e.length;z>0&&e.charCodeAt(z-1)===fe;)z--;if(z>0){for(var I=z;I>0&&e.charCodeAt(I-1)!==fe;)I--;for(var N=I,M=0;N<z&&e.charCodeAt(N)===se&&M<3;)N++,M++;if(I>0&&N<z&&j$(e,N,z)){for(var U=I-1,V=U;V>0&&e.charCodeAt(V-1)!==fe;)V--;Ht(e,V,U)||(e=e.slice(0,I).trimEnd())}}var H=e.length;if(H>0){for(var K=e.lastIndexOf(`
139
- `),Y=K===-1?0:K+1,$=H,q=Y,G=0;q<$&&e.charCodeAt(q)===se&&G<3;)q++,G++;if(q<$){var W=e.charCodeAt(q),ie=!1;if(W===xt||W===Oe||W===Mn){var re=q+1;if(re>=$||e.charCodeAt(re)===se||e.charCodeAt(re)===le){for(var ue=re;ue<$&&(e.charCodeAt(ue)===se||e.charCodeAt(ue)===le);)ue++;ue>=$&&(ie=!0)}}else if(W>=Te&&W<=je){for(var ye=q;ye<$&&e.charCodeAt(ye)>=Te&&e.charCodeAt(ye)<=je;)ye++;if(ye<$&&(e.charCodeAt(ye)===mr||e.charCodeAt(ye)===Pr)){var we=ye+1;if(we>=$||e.charCodeAt(we)===se||e.charCodeAt(we)===le){for(var ke=we;ke<$&&(e.charCodeAt(ke)===se||e.charCodeAt(ke)===le);)ke++;ke>=$&&(ie=!0)}}}ie&&(e=e.slice(0,Y).trimEnd())}}}if(t.inline)return Vr(e,0,e.length,t,r);let Pe=[],de=0,Ve=e.length;if(de===0&&!r.disableFrontmatter&&e.startsWith("---")){let ce=Jq(e);if(ce!=null&&ce.hasValidYaml){if(r.preserveFrontmatter!==!1){let ct=e.slice(0,ce.endPos).trimEnd();Pe.push({type:ne.frontmatter,text:ct})}de=ce.endPos}}for(;de<Ve;){for(var st=e.indexOf(`
137
+ `)!==-1||/^#{1,6}\s/.test(E);D?(i.inline=!1,C=Rn(E,i,a)):C=Vr(E,0,E.length,i,a),i.inAnchor=O,i.inline=R,i.k=T}return{node:{type:ne.htmlBlock,tag:b,attrs:$r(g.attrs,b,a),b:g.b,children:C,text:rr(A),c:!1,a:!1},end:y}}var yz=200,qa=0;function Vr(e,t,r,i,a){if(qa++,qa>yz)return qa--,[{type:ne.text,text:e.slice(t,r)}];var n=lr;lr=fz();let s=i;if(a.optimizeForStreaming){let ee=function(He,bt){for(var Et=1,ot=bt+1;ot<He.length;ot++){var kt=He.charCodeAt(ot);if(kt===vt)Et++;else if(kt===jr&&(Et--,Et===0))return ot}return-1},te=e.slice(t,r),pe=te;for(var o=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===xt?g+1<te.length&&te.charCodeAt(g+1)===xt?(o++,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===_t&&g+1<te.length&&te.charCodeAt(g+1)===_t&&(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]),o%2===1&&m>=0&&w.push([m,2]),l%2===1&&d>=0&&w.push([d,1]),w.sort((He,bt)=>bt[0]-He[0]);for(var x=0;x<w.length;x++){var h=w[x][0],y=w[x][1];te=te.slice(0,h)+te.slice(h+y)}let ce=0,ct=-1;for(let He=0;He<te.length;He++)te.charCodeAt(He)===Je&&(ce++,ct=He);if(ce%2===1&&ct!==-1){let He=!1,bt=-1,Et=0;for(;Et<te.length;)te.charCodeAt(Et)===Je&&(He?(He=!1,bt=-1):(bt=Et,He=!0)),Et++;He&&bt!==-1&&(te=te.slice(0,bt))}for(var S=!0;S;){S=!1;for(var A=-1,_=-1,C=-1,E=!1,O=0;O<te.length;O++){var R=te.charCodeAt(O);if(R===vt&&(O===0||te.charCodeAt(O-1)!==Tt)){var T=O>0&&te.charCodeAt(O-1)===Kt,D=T?O-1:O,L=ee(te,O);if(L===-1)A=D,E=T,_=O+1,C=te.length;else{var H=L+1;if(H>=te.length)A=D,E=T,_=O+1,C=L;else if(te.charCodeAt(H)===Er){var Y=te.indexOf(")",H+1);Y===-1?(A=D,E=T,_=O+1,C=L,O=te.length):O=Y}else if(te.charCodeAt(H)===vt){var Z=te.indexOf("]",H+1);Z===-1?(A=D,E=T,_=O+1,C=L,O=te.length):O=Z}else O=L}}}if(A>=0){var P=E?"":te.slice(_,C);te=te.slice(0,A)+P,S=!0}}let Fe=te.match(/<([A-Z][A-Za-z0-9]*)(?:\s[^>]*)?>([^<]*)$/);if(Fe&&Fe.index!==void 0){var F=Fe[0].length-Fe[2].length,z=F>=2&&Fe[0].charCodeAt(F-2)===yt;if(!z){for(var I=!1,N=0,M=0;M<Fe.index;M++)te.charCodeAt(M)===Je&&N++;if(I=N%2===1,!I){let He=Fe[1];Cn(te,`</${He}`,0)===-1&&(te=te.slice(0,Fe.index)+Fe[2])}}}te!==pe&&(e=e.slice(0,t)+te,r=t+te.length)}let B=[];var V=[];let W=t;var K="",X=a.disableAutoLink||a.disableBareUrls||s.inAnchor?-1:e.indexOf("@",t);for(X>=r&&(X=-1);t<r;){let ee=e.charCodeAt(t),te=null;if(ee===Je){if(te=az(e,t,r),!te){var $=$n(e,t,r,Je);t+=$-1}}else if(ee===xt||ee===gt){var q=uz(e,t,r);if(q){if(q.canOpen||q.canClose){(K||t>W)&&(B.push(ri(K+e.slice(W,t))),K="");var J=e.slice(t,t+q.len),G=ri(J);V.push({idx:B.length,ch:ee,len:q.len,canOpen:q.canOpen,canClose:q.canClose,active:!0}),B.push(G),t+=q.len,W=t;continue}t+=q.len-1}}else if(ee===_t)te=oz(e,t,r,s,a);else if(ee===dr)te=lz(e,t,r,s,a);else if(ee===vt)t+1<r&&e.charCodeAt(t+1)===fn&&(te=dz(e,t,r)),te||(te=iv(e,t,r,s,a));else if(ee===Kt&&t+1<r&&e.charCodeAt(t+1)===vt)te=iv(e,t,r,s,a);else if(ee===rt)te=X1(e,t,r),!(te||a.disableParsingRawHTML||a.ignoreHTMLBlocks)&&(te=gz(e,t,r,s,a));else if(ee===Vl){var ie=hz(e,t,r);if(ie!==-1){var re=e.slice(t,ie),ue=Tn(re);if(ue!==re){K=K+e.slice(W,t)+ue,t=ie,W=ie;continue}}}else if((ee===fl||ee===li||ee===hi)&&!s.inAnchor&&!a.disableAutoLink&&(t===0||e.charCodeAt(t-1)!==rt)){var ye=t+1<r?e.charCodeAt(t+1):0;(ee===fl&&ye===Ji||ee===hi&&ye===Ji||ee===li&&ye===li)&&(te=mz(e,t,r,a))}if(!te&&X>=0&&X-t<=64&&!s.inAnchor&&!a.disableAutoLink&&!a.disableBareUrls&&(ee>=xe&&ee<=Ee||ee>=Xe&&ee<=ut||ee>=Te&&ee<=je)&&(te=pz(e,t,r,a),!te&&t>=X&&(X=e.indexOf("@",t+1),X>=r&&(X=-1))),ee===fe&&s.k){var we=!1,ke=0;if(t>W&&e.charCodeAt(t-1)===Tt)we=!0,ke=1;else{for(var Pe=0,de=t-1;de>=W&&e.charCodeAt(de)===se;)Pe++,de--;Pe>=2&&(we=!0,ke=Pe)}if(we){for((K||t-ke>W)&&(B.push(ri(K+e.slice(W,t-ke))),K=""),B.push({type:ne.breakLine}),t++;t<r&&e.charCodeAt(t)===se;)t++;W=t;continue}var Ve=t>W&&e.charCodeAt(t-1)===se,st=t+1<r&&e.charCodeAt(t+1)===se;if(Ve||st){for(var ve=t;ve>W&&e.charCodeAt(ve-1)===se;)ve--;for(K+=`${e.slice(W,ve)}
138
+ `,t++;t<r&&e.charCodeAt(t)===se;)t++;W=t;continue}}if(te)(K||t>W)&&(B.push(ri(K+e.slice(W,t))),K=""),B.push(te.node),t=te.end,W=t;else{if(ee===Tt&&t+1<r){let pe=e.charCodeAt(t+1);if(Kd(pe)&Vi){(K||t>W)&&(B.push(ri(K+e.slice(W,t))),K=""),B.push(ri(e[t+1])),t+=2,W=t;continue}}if(t++,X<0||X-t>64)for(;t<r&&!(X>=0&&X-t<=64);){var Q=e.charCodeAt(t);if(Q<Hl&&!W1[Q])t++;else break}}}return(K||r>W)&&(B.push(ri(K+e.slice(W,r))),K=""),V.length>0&&cz(B,V),lr=n,qa--,B}var vz=500;function Rn(e,t,r){var i=t.o||0;if(i>vz)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)===It){for(var s=!1,o=n+1;o<a;o++){var l=e.charCodeAt(o);if(l!==se&&l!==le&&l!==It&&l!==qt&&l!==Oe){s=!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)!==It)break;m=p;for(var k=!0,v=!1,g=p;g<d;g++){var b=e.charCodeAt(g);if(b===Oe)v=!0;else if(b!==se&&b!==le&&b!==qt&&b!==It){k=!1;break}}k&&v?(u=!0,c=!0):c||f++,d=p-1}s?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,x=-1,h=-1,y=!1,S=e.length-1;S>=0;S--)if(e.charCodeAt(S)===rt){for(var A=S+1<e.length?e.charCodeAt(S+1):0,_=A>=xe&&A<=Ee||A>=Xe&&A<=ut,C=A===yt&&S+2<e.length&&(e.charCodeAt(S+2)>=xe&&e.charCodeAt(S+2)<=Ee||e.charCodeAt(S+2)>=Xe&&e.charCodeAt(S+2)<=ut),E=A===Kt||A===ga,O=e.length;O>S+1&&e.charCodeAt(O-1)===fe;)O--;var R=S+1>=O;if(_||C||E||R){var T=S+1;if((C||_)&&(T=S+2),_||C)for(;T<e.length;){var D=e.charCodeAt(T);if(D>=xe&&D<=Ee||D>=Xe&&D<=ut||D>=Te&&D<=je)T++;else break}for(var L=_||C?T:S+2;L<e.length&&e.charCodeAt(L)!==Re;)L++;if(L>=e.length)w=S,y=!0;else if((_||C)&&e.charCodeAt(L-1)!==yt){for(var H=!1,Y=L+1;Y<e.length;Y++)if(e.charCodeAt(Y)===rt){H=!0;break}H||(w=S,x=T,h=L+1)}}break}if(w>=0){for(var Z=0,P=0;P<w;P++)e.charCodeAt(P)===Je&&Z++;if(Z%2===0)if(y)e=e.slice(0,w);else{var F=e.slice(w+1,x);Cn(e,`</${F}`,0)===-1&&(e=e.slice(0,w)+e.slice(h))}}for(var z=e.length;z>0&&e.charCodeAt(z-1)===fe;)z--;if(z>0){for(var I=z;I>0&&e.charCodeAt(I-1)!==fe;)I--;for(var N=I,M=0;N<z&&e.charCodeAt(N)===se&&M<3;)N++,M++;if(I>0&&N<z&&Y$(e,N,z)){for(var B=I-1,V=B;V>0&&e.charCodeAt(V-1)!==fe;)V--;Ht(e,V,B)||(e=e.slice(0,I).trimEnd())}}var W=e.length;if(W>0){for(var K=e.lastIndexOf(`
139
+ `),X=K===-1?0:K+1,$=W,q=X,J=0;q<$&&e.charCodeAt(q)===se&&J<3;)q++,J++;if(q<$){var G=e.charCodeAt(q),ie=!1;if(G===xt||G===Oe||G===qn){var re=q+1;if(re>=$||e.charCodeAt(re)===se||e.charCodeAt(re)===le){for(var ue=re;ue<$&&(e.charCodeAt(ue)===se||e.charCodeAt(ue)===le);)ue++;ue>=$&&(ie=!0)}}else if(G>=Te&&G<=je){for(var ye=q;ye<$&&e.charCodeAt(ye)>=Te&&e.charCodeAt(ye)<=je;)ye++;if(ye<$&&(e.charCodeAt(ye)===mr||e.charCodeAt(ye)===Pr)){var we=ye+1;if(we>=$||e.charCodeAt(we)===se||e.charCodeAt(we)===le){for(var ke=we;ke<$&&(e.charCodeAt(ke)===se||e.charCodeAt(ke)===le);)ke++;ke>=$&&(ie=!0)}}}ie&&(e=e.slice(0,X).trimEnd())}}}if(t.inline)return Vr(e,0,e.length,t,r);let Pe=[],de=0,Ve=e.length;if(de===0&&!r.disableFrontmatter&&e.startsWith("---")){let ce=m$(e);if(ce!=null&&ce.hasValidYaml){if(r.preserveFrontmatter!==!1){let ct=e.slice(0,ce.endPos).trimEnd();Pe.push({type:ne.frontmatter,text:ct})}de=ce.endPos}}for(;de<Ve;){for(var st=e.indexOf(`
140
140
  `,de),ve=st<0?Ve:st;de<Ve&&Ht(e,de,ve);)de=ve<Ve?ve+1:ve,de<Ve&&(st=e.indexOf(`
141
- `,de),ve=st<0?Ve:st);if(de>=Ve)break;var Q=e.charCodeAt(de)===vf;Ct(e,de,ve);let ce=null;if(xf=e,Sf=de,zo=ve,!Q&&Ge>=4&&!t.inHTML)ce=N$(e,de);else if(!Q){let ct=de+Ke,Fe=e.charCodeAt(ct);Fe===br?ce=T$(e,de,t,r):Fe===Re?ce=F$(e,de,t,r):Fe===Je||Fe===_t?ce=R$(e,de):Fe===Oe||Fe===xt||Fe===gt?(ce=In(e,de),!ce&&(ce=Hy(e,de,t,r))):Fe===Mn||Fe>=Te&&Fe<=je?ce=Hy(e,de,t,r):Fe===rt?ce=$1(e,de,t,r):Fe===It?ce=Wy(e,de,t,r):Fe===vt&&(ce=L$(e,de,t))}if(!ce){for(var ee=!1,te=de;te<ve;te++)if(e.charCodeAt(te)===It){ee=!0;break}ee&&(ce=Wy(e,de,t,r))}if(ce||(ce=$$(e,de,t,r)),ce)ce.node.type!==ne.refCollection&&Pe.push(ce.node),de=ce.end;else{var pe=e.indexOf(`
142
- `,de);de=pe<0?Ve:pe+1}}return t.o=i,Pe}function tz(e,t,r,i){var a=zr(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(`
141
+ `,de),ve=st<0?Ve:st);if(de>=Ve)break;var Q=e.charCodeAt(de)===Sf;Ct(e,de,ve);let ce=null;if(Of=e,_f=de,Ho=ve,!Q&&Ge>=4&&!t.inHTML)ce=Z$(e,de);else if(!Q){let ct=de+We,Fe=e.charCodeAt(ct);Fe===br?ce=J$(e,de,t,r):Fe===Re?ce=Q$(e,de,t,r):Fe===Je||Fe===_t?ce=X$(e,de):Fe===Oe||Fe===xt||Fe===gt?(ce=jn(e,de),!ce&&(ce=Yy(e,de,t,r))):Fe===qn||Fe>=Te&&Fe<=je?ce=Yy(e,de,t,r):Fe===rt?ce=Y1(e,de,t,r):Fe===It?ce=Zy(e,de,t,r):Fe===vt&&(ce=rz(e,de,t))}if(!ce){for(var ee=!1,te=de;te<ve;te++)if(e.charCodeAt(te)===It){ee=!0;break}ee&&(ce=Zy(e,de,t,r))}if(ce||(ce=iz(e,de,t,r)),ce)ce.node.type!==ne.refCollection&&Pe.push(ce.node),de=ce.end;else{var pe=e.indexOf(`
142
+ `,de);de=pe<0?Ve:pe+1}}return t.o=i,Pe}function bz(e,t,r,i){var a=zr(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(`
143
143
  `)||a.b.includes(`
144
- `),endPos:a.end}:null}function Vd(e,t,r){Da=0,e=i$(e),!t.refs&&(t.refs={}),(r.optimizeForStreaming||t.inline)&&(t.w=P$(e,t.refs,r));var i,a;t.t||(t.t=i=[],t.p=a=[]);let n=Tn(e,t,r);if(i&&a){for(var s=i,o={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<s.length;l++){var u=s[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=Vr(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=o.inline,t.inAnchor=o.inAnchor,t.inHTML=o.inHTML,t.d=o.htmlDepth,t.inList=o.inList,t.inBlockQuote=o.inBlockQuote,t.l=o.noSetext,t.o=o.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,Pf(n,t,r.slugify)}return N1(t.refs)?[{type:ne.refCollection,refs:t.refs},...n]:n}var If;try{Ri=rn.createElement("div"),If=Ri!=null&&typeof Ri=="object"&&"$$typeof"in Ri&&typeof Ri.$$typeof=="symbol"?Ri.$$typeof:Symbol.for("react.transitional.element")}catch{If=Symbol.for("react.transitional.element")}var Ri;function Tf(e,t,r){return{$$typeof:If,type:e,key:r==null?null:String(r),ref:null,props:t,_owner:null,_store:{},_debugStack:null,_debugTask:null}}function sr(e,t){var r={key:e};if(t){var i=R1(t);for(var a in i)r[a]=i[a]}return r}var ev=typeof rn.createContext>"u"?void 0:rn.createContext(void 0);function tv(e,t,r,i,a,n,s,o,l){switch(e.type){case ne.blockQuote:{let g={key:r.key};return e.alert&&(g.className=`markdown-alert-${n(e.alert.toLowerCase(),yi)}`,e.children.unshift(o$(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 o.preserveFrontmatter?i("pre",{key:r.key},e.text):null;case ne.codeBlock:{let g=e.lang?Pn(e.lang):"";var u=e.attrs?R1(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(Li(o)&&jy(g.tag)){var c=Ty(g);return c.kind==="literal"?i("span",{key:r.key},c.literal):i("span",{key:r.key},...d$(c.open,g.children?t(g.children,r):null,c.close))}let b=g.j,w=b!==void 0,C=w?b:g.a?g.e||"":(g.e||"")+(g.h||"");if(C&&g.c){let h=g.tag.toLowerCase(),y=x$(h),S=g.children,A=S!=null&&S.length>0;if(y){let D=w?b:g.e||"",L=Li(o)?Ry(D):D;if(/<[a-z][^>]{0,100}>/i.test(C)){var f=sr(r.key,e.attrs);return f.dangerouslySetInnerHTML={__html:L},l(e.tag,f)}return l(e.tag,sr(r.key,e.attrs),L)}let _=new RegExp(`^<${g.tag}(\\s|>)`,"i");if(A&&!_.test(C)&&Li(o)&&v$(C))return l(e.tag,sr(r.key,e.attrs),t(S,r));if(S$(C)){let D=Li(o)?Ry(C):C;var m=sr(r.key,e.attrs);return m.dangerouslySetInnerHTML={__html:D},l(e.tag,m)}let x=zd({slugify:o.slugify,sanitizer:a,tagfilter:!0}),E=a$(C);if(new RegExp(`^<${g.tag}(\\s[^>]*)?>(\\s*</${g.tag}>)?$`,"i").test(E))return g.children&&g.children.length>0?l(e.tag,sr(r.key,e.attrs),t(g.children,r)):l(e.tag,sr(r.key,e.attrs));let O=Vd(E,{inline:!1,refs:s,inHTML:!1},x);F1(O);let R=g.tag.toLowerCase(),T=w;if(T&&A)return l(e.tag,sr(r.key,e.attrs),t(S,r));if(T)return t(O.flatMap(Bi),r);var d=c$(O,R);if(d.found&&d.afterClose.length>0){var p=d.beforeClose.flatMap(Bi),k=d.afterClose.flatMap(Bi);return Tf(rn.Fragment,{children:[l(e.tag,sr(r.key,e.attrs),t(p,r)),t(k,r)]},r.key)}return l(e.tag,sr(r.key,e.attrs),t(O.flatMap(Bi),r))}return bs(e.tag)?l(e.tag,sr(r.key,e.attrs)):l(e.tag,sr(r.key,e.attrs),e.children?t(e.children,r):"")}case ne.htmlSelfClosing:{let g=e;if(Li(o)&&jy(g.tag)){var v=Ty(g);return i("span",{key:r.key},v.kind==="literal"?v.literal:v.open+(v.close||""))}return l(e.tag,sr(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=m$(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(C,h){return i("td",{key:h,style:g.align[h]===null?{}:{textAlign:g.align[h]}},t(C,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 rz=(e,t,r,i,a,n,s)=>{var o=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 o(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=tv.bind(null,f[v],l,c,t,r,i,a,n,s);g=e(b,f[v],l,c)}else g=tv(f[v],l,c,t,r,i,a,n,s);var w=typeof g=="string";if(k&&typeof g=="string"){var C=p.at(-1);p[p.length-1]=(typeof C=="string"?C:"")+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},nz=(e,t)=>{let r=bf(t,e,void 0);return r?typeof r=="function"||typeof r=="object"&&"render"in r?r:bf(t,`${e}.component`,e):e};function iz(e,t){let r={...t||{}};r.overrides=r.overrides||{};let i=r.slugify||yi,a=r.sanitizer||nn,n=r.createElement,s=N1(r.overrides),o=w=>jf(w,{...r,wrapper:null});function l(w){for(var C in w){var h=w[C];if(typeof h=="string"&&h.length>0&&h.charCodeAt(0)===rt&&(b$.test(h)||k$.test(h)||tz(h,0))){var y=o(h.trim());w[C]=C==="innerHTML"&&Array.isArray(y)?y[0]:y}}}function u(w,C,...h){var y=C||{},S=w;if(s){var A=bf(r.overrides,`${w}.props`,{});S=nz(w,r.overrides),y={...y,...A,className:g$(y.className,A.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),Tf(S,y,_)}return n(S,y,...h)}function c(w,C,...h){return C&&l(C),u(w,C,...h)}let f=zd(r,r.forceInline),m=e[0]&&e[0].type===ne.refCollection?e[0].refs:{},d=rz(r.renderRule,u,a,i,m,r,c),p=d(e,{inline:r.forceInline,refs:m}),k=p$(m);if(k.length>0&&p.push(u("footer",{key:"footer"},k.map(function(w){let C=w.identifier.charCodeAt(0)===fn?w.identifier.slice(1):w.identifier,h=Vd(w.footnote,{inline:!0,refs:m},f);return u("div",{id:i(C,yi),key:w.identifier},`${C}: `,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,Tf(v,b,"outer")}function jf(e="",t={}){let r={...t||{}};r.overrides=r.overrides||{},r.slugify,r.sanitizer;function i(n){let s=r.forceInline||!(r.forceBlock||Qq.test(n)),o=zd(r,s),l=s?n:u$(n),u=Vd(l,{inline:s,refs:a},o);return iz(u,{...r,forceInline:s})}let a={};return i(e)}function az(e){let t=rn.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 s=0;for(var o in r)s++;i=s===a}i||(t.current=e)}return t.current}var ws=({children:e,options:t,...r})=>{if(!(typeof rn.useContext<"u")){let o={...t,overrides:{...t==null?void 0:t.overrides},wrapperProps:{...t==null?void 0:t.wrapperProps,...r}};return jf(e??"",o)}let i=ev?rn.useContext(ev):void 0,a=az(r),n=rn.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]),s=e??"";return rn.useMemo(()=>jf(s,n),[s,n])};const U1=Symbol("remove-this-key"),rv=Symbol("reset");function sz(e,t){return Array.isArray(e.required)&&e.required.includes(t)}function oz(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(_e.NewStringDefault)}}function B1(e){return!!(e!=null&&e[Sn])}function nv(e){return Object.keys(e).filter(t=>B1(e[t]))}function lz(e){const{fieldPathId:t,schema:r,registry:i,uiSchema:a,errorSchema:n,formData:s,onChange:o,onBlur:l,onFocus:u,disabled:c,readonly:f,required:m,hideError:d,propertyName:p,handleKeyRename:k,handleRemoveProperty:v,addedByAdditionalProperties:g}=e,[b,w]=B.useState(!1),{globalFormOptions:C,fields:h}=i,{SchemaField:y}=h,S=da(Tr(p,C,t.path)),A=B.useCallback((O,R,T,D)=>{let L=O;O===void 0&&g&&(L=""),o(L,R,T,D)},[o,g]),_=B.useCallback(O=>{p!==O&&w(!0),k(p,O)},[p,k]),x=B.useCallback(O=>{const{target:{value:R}}=O;_(R)},[_]),E=B.useCallback(()=>{v(p)},[p,v]);return j.jsx(y,{name:p,required:m,schema:r,uiSchema:a,errorSchema:n,fieldPathId:S,formData:s,wasPropertyKeyModified:b,onKeyRename:_,onKeyRenameBlur:x,onRemoveProperty:E,onChange:A,onBlur:l,onFocus:u,registry:i,disabled:c,readonly:f,hideError:d})}const uz=B.memo(lz);function cz(e){const{schema:t,uiSchema:r={},formData:i,errorSchema:a,fieldPathId:n,name:s,required:o=!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:C}=v,h=B.useRef(i);h.current=i;const y=B.useMemo(()=>g.retrieveSchema(t,i,!0),[g,t,i]),S=B.useMemo(()=>me(r,w),[r,w]),A=B.useMemo(()=>y.properties??{},[y.properties]),_=e.childFieldPathId??n,x=B.useRef({previousKey:"",currentKey:void 0}),[E,O]=B.useState(()=>nv(A)),R=B.useMemo(()=>{const V=new Set(nv(A));return Object.keys(A).filter(H=>!V.has(H))},[A]),T=S.title??y.title??k??s,D=S.description??y.description,L=gs(p,y,o,r),J=fa(i);let X=[];const Z=B.useCallback((V,H)=>{const{duplicateKeySuffixSeparator:K="-"}=me(r,w);let Y=0,$=V;for(;qe(H,$);)Y+=1,$=`${V}${K}${Y}`;return $},[r,w]),P=B.useCallback(()=>{if(!(y.additionalProperties||y.patternProperties))return;const V={...i},H=Z("newKey",V);if(y.patternProperties)lt(V,H,null);else{let K,Y,$;if(Ue(y.additionalProperties)){K=y.additionalProperties.type,Y=y.additionalProperties.const,$=y.additionalProperties.default;let G=y.additionalProperties;at in G&&(G=g.retrieveSchema({[at]:G[at]},i),K=G.type,Y=G.const,$=g.getDefaultFormState(G,$)),!K&&(Le in G||Ae in G)&&(K="object")}const q=Y??$??oz(b,K);lt(V,H,q)}x.current.previousKey===H&&(x.current.currentKey=H,x.current.previousKey=Z(H,V)),O(K=>[...K,H]),d(V,_.path)},[i,d,b,g,_,Z,y]),F=B.useCallback((V,H)=>{if(V!==H){const K=h.current,Y=Z(H,K),$={...K},q={[V]:Y},G=Object.keys($).map(ie=>({[Object.hasOwn(q,ie)?q[ie]:ie]:$[ie]})),W=Object.assign({},...G);h.current=W,V!==x.current.currentKey&&(x.current.previousKey=V),x.current.currentKey=Y,O(ie=>ie.map(re=>re===V?Y:re)),d(W,_.path)}},[d,_,Z]),z=B.useCallback(V=>{O(H=>H.filter(K=>K!==V)),d(U1,[..._.path,V])},[d,_]),I=B.useCallback(V=>x.current.currentKey===V?x.current.previousKey:V,[]);if(!L||J)try{const V=new Set(R),H=E.filter(K=>Object.hasOwn(A,K)&&!V.has(K));X=IF([...R,...H],S.order)}catch(V){return j.jsxs("div",{children:[j.jsx("p",{className:"rjsf-config-error",style:{color:"red"},children:j.jsx(ws,{options:{disableParsingRawHTML:!0},children:b(_e.InvalidObjectField,[s||"root",V.message])})}),j.jsx("pre",{children:JSON.stringify(y)})]})}const N=ge("ObjectFieldTemplate",p,S),M=L?j.jsx(C,{...e,fieldPathId:_,schema:y}):void 0,U={title:S.label===!1?"":T,description:S.label===!1?void 0:D,properties:X.map(V=>{var q;const H=B1((q=y.properties)==null?void 0:q[V]),K=H?r.additionalProperties:r[V],Y=me(K).widget==="hidden";return{content:j.jsx(uz,{propertyName:V,required:sz(y,V),schema:ae(y,[ze,V],{}),uiSchema:K,errorSchema:ae(a,[V]),fieldPathId:_,formData:ae(i,[V]),handleKeyRename:F,handleRemoveProperty:z,addedByAdditionalProperties:H,onChange:d,onBlur:f,onFocus:m,registry:p,disabled:l,readonly:u,hideError:c},I(V)),name:V,readonly:u,disabled:l,required:o,hidden:Y}}),readonly:u,disabled:l,required:o,fieldPathId:n,uiSchema:r,errorSchema:a,schema:y,formData:i,registry:p,optionalDataControl:M,className:L?"rjsf-optional-object-field":void 0};return j.jsx(N,{...U,onAddProperty:P})}function fz(e){const{schema:t,uiSchema:r={},formData:i,disabled:a=!1,readonly:n=!1,onChange:s,errorSchema:o,fieldPathId:l,registry:u}=e,{globalUiOptions:c={},schemaUtils:f,translateString:m}=u,d=me(r,c),p=ge("OptionalDataControlsTemplate",u,d),k=fa(i);let v,g,b,w;if(a||n)v=zu(l,"Msg"),g=k?void 0:m(_e.OptionalObjectEmptyMsg);else{const C=k?_e.OptionalObjectRemove:_e.OptionalObjectAdd;g=m(C),k?(v=zu(l,"Remove"),w=()=>s(void 0,l.path,o)):(v=zu(l,"Add"),b=()=>{let h=f.getDefaultFormState(t,i,"excludeObjectChildren");h===void 0&&(h=vr(t)==="array"?[]:{}),s(h,l.path,o)})}return g&&j.jsx(p,{id:v,registry:u,schema:t,uiSchema:r,label:g,onAddClick:b,onRemoveClick:w})}const dz={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function mz(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 s=vr(e),o=Array.isArray(s)?s[0]:s||"",l=e.$id;let u=dz[o];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 pz(e){const{schema:t,fieldPathId:r,uiSchema:i,formData:a,errorSchema:n,name:s,onChange:o,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:C}=g,h=r[nt],y=B.useCallback((ke,Pe,de,Ve)=>o(ke,Pe,de,Ve||h),[h,o]);if(t[rd])return j.jsx(C,{...e});const S=TF(t,i,m),A=me(S,v),_=ge("FieldTemplate",m,A),x=ge("DescriptionFieldTemplate",m,A),E=ge("FieldHelpTemplate",m,A),O=ge("FieldErrorTemplate",m,A),R=p.retrieveSchema(t,a),T=mz(R,A,m),L=!!R.deprecated?A.deprecatedHandling??"label":void 0,J=!!(A.disabled??e.disabled)||L==="disable",X=!!(A.readonly??(e.readonly||e.schema.readOnly||R.readOnly)),Z=A.hideError,P=Z===void 0?e.hideError:!!Z,F=!!(A.autofocus??e.autofocus);if(Object.keys(R).length===0)return null;let z=p.getDisplayLabel(R,S,v);const I=A.field&&A.fieldReplacesAnyOrOneOf===!0;let N,M,U={fieldPathId:r};if((Le in R||Ae in R)&&!I&&!p.isSelect(R)){R[Le]?(N=b,M=R[Le].map(de=>p.retrieveSchema(Ue(de)?de:{},a))):R[Ae]&&(N=w,M=R[Ae].map(de=>p.retrieveSchema(Ue(de)?de:{},a)));const ke=gs(m,R,f,S),Pe=fa(a);z=z&&(!ke||Pe),U={childFieldPathId:r,fieldPathId:Tr("XxxOf",k,r)}}const{__errors:V,...H}=n||{},K=Ya(S,["ui:classNames","classNames","ui:style"]);Cn in K&&(K[Cn]=Ya(K[Cn],["classNames","style"]));const Y=j.jsx(T,{...e,onChange:y,...U,schema:R,uiSchema:K,disabled:J,readonly:X,hideError:P,autofocus:F,errorSchema:H,rawErrors:V}),$=r[nt];let q;d?q=s:q=Sn in R?s:A.title||e.schema.title||R.title||e.title||s,L==="label"&&(q=m.translateString(_e.DeprecatedLabel,[q]));const G=A.description||e.schema.description||R.description||"",{help:W}=A,ie=A.widget==="hidden"||L==="hide",re=["rjsf-field",`rjsf-field-${vr(R)}`];!P&&V&&V.length>0&&re.push("rjsf-field-error"),A.classNames&&re.push(A.classNames);const ue=j.jsx(E,{help:W,fieldPathId:r,schema:R,uiSchema:S,hasErrors:!P&&V&&V.length>0,registry:m}),ye=P||N&&!p.isSelect(R)?void 0:j.jsx(O,{errors:V,errorSchema:n,fieldPathId:r,schema:R,uiSchema:S,registry:m}),we={description:j.jsx(x,{id:zn($),description:G,schema:R,uiSchema:S,registry:m}),rawDescription:G,help:ue,rawHelp:typeof W=="string"?W:void 0,errors:ye,rawErrors:P?void 0:V,fieldPathId:r,id:$,label:q,hidden:ie,onChange:o,onKeyRename:l,onKeyRenameBlur:u,onRemoveProperty:c,required:f,disabled:J,readonly:X,hideError:P,displayLabel:z,classNames:re.join(" ").trim(),style:A.style,formData:a,schema:R,uiSchema:S,registry:m};return j.jsx(_,{...we,children:j.jsxs(j.Fragment,{children:[Y,N&&j.jsx(N,{name:s,disabled:J,readonly:X,hideError:P,errorSchema:n,formData:a,fieldPathId:r,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:M,registry:m,required:f,schema:R,uiSchema:S})]})})}const hz=B.memo(pz,(e,t)=>{const{experimental_componentUpdateStrategy:r="customDeep"}=t.registry.globalFormOptions;return r==="always"?!1:r==="shallow"?mf(e,t):$e(e,t)});function gz(e){const{schema:t,name:r,uiSchema:i,fieldPathId:a,formData:n,required:s,disabled:o=!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:C,globalUiOptions:h}=d,y=C.isSelect(t)?di(t,i):void 0;let S=y?"select":"text";b&&EF(t,b,w)&&(S=b);const{widget:A=S,placeholder:_="",title:x,...E}=me(i),O=C.getDisplayLabel(t,i,h),R=x??v??g??r,T=Kr(t,A,w),D=B.useCallback((L,J,X)=>c(L,a.path,J,X),[c,a]);return j.jsx(T,{options:{...E,enumOptions:y},schema:t,uiSchema:i,id:a.$id,name:r,label:R,hideLabel:!O,hideError:k,value:n,onChange:D,onBlur:f,onFocus:m,required:s,disabled:o,readonly:l,autofocus:u,registry:d,placeholder:_,rawErrors:p,htmlName:a.name})}function yz(){return{AnyOfField:Cy,ArrayField:oq,BooleanField:lq,CyclicSchemaField:uq,FallbackField:mq,LayoutGridField:qd,LayoutHeaderField:Nq,LayoutMultiSchemaField:Fq,NumberField:qq,ObjectField:cz,OneOfField:Cy,OptionalDataControlsField:fz,SchemaField:hz,StringField:gz,NullField:Dq}}function vz(e){const{fieldPathId:t,description:r,registry:i,schema:a,uiSchema:n}=e,s=me(n,i.globalUiOptions),{label:o=!0}=s;if(!r||!o)return null;const l=ge("DescriptionFieldTemplate",i,s);return j.jsx(l,{id:zn(t),description:r,schema:a,uiSchema:n,registry:i})}function bz(e){const{disabled:t,hasCopy:r,hasMoveDown:i,hasMoveUp:a,hasRemove:n,fieldPathId:s,onCopyItem:o,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 j.jsxs(j.Fragment,{children:[(a||i)&&j.jsx(v,{id:ir(s,"moveUp"),className:"rjsf-array-item-move-up",disabled:t||f||!a,onClick:c,uiSchema:d,registry:m}),(a||i)&&j.jsx(k,{id:ir(s,"moveDown"),className:"rjsf-array-item-move-down",disabled:t||f||!i,onClick:u,uiSchema:d,registry:m}),r&&j.jsx(p,{id:ir(s,"copy"),className:"rjsf-array-item-copy",disabled:t||f,onClick:o,uiSchema:d,registry:m}),n&&j.jsx(g,{id:ir(s,"remove"),className:"rjsf-array-item-remove",disabled:t||f,onClick:l,uiSchema:d,registry:m})]})}function kz(e){const{children:t,className:r,buttonsProps:i,displayLabel:a,hasDescription:n,hasToolbar:s,registry:o,uiSchema:l}=e,u=me(l),c=ge("ArrayFieldItemButtonsTemplate",o,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 j.jsxs("div",{className:r,style:d,children:[j.jsx("div",{className:s?"col-xs-9 col-md-10 col-xl-11":"col-xs-12",children:t}),s&&j.jsx("div",{className:"col-xs-3 col-md-2 col-xl-1 array-item-toolbox",children:j.jsx("div",{className:"btn-group",style:p,children:j.jsx(c,{...i,style:f})})})]})}function wz(e){const{canAdd:t,className:r,disabled:i,fieldPathId:a,uiSchema:n,items:s,optionalDataControl:o,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 j.jsxs("fieldset",{className:r,id:a.$id,children:[j.jsx(v,{fieldPathId:a,title:p.title||d,required:f,schema:m,uiSchema:n,registry:c,optionalDataControl:g?o:void 0}),j.jsx(k,{fieldPathId:a,description:p.description||m.description,schema:m,uiSchema:n,registry:c}),g?void 0:o,j.jsx("div",{className:"row array-item-list",children:s}),t&&j.jsx(b,{id:ir(a,"add"),className:"rjsf-array-item-add",onClick:l,disabled:i||u,uiSchema:n,registry:c})]})}function xz(e){const{fieldPathId:t,title:r,schema:i,uiSchema:a,required:n,registry:s,optionalDataControl:o}=e,l=me(a,s.globalUiOptions),{label:u=!0}=l;if(!r||!u)return null;const c=ge("TitleFieldTemplate",s,l);return j.jsx(c,{id:Il(t),title:r,required:n,schema:i,uiSchema:a,registry:s,optionalDataControl:o})}function Sz(e){const{id:t,schema:r}=e,{examples:i,default:a}=r;return Array.isArray(i)?j.jsx("datalist",{id:Id(t),children:i.concat(a!==void 0&&!i.map(String).includes(String(a))?[a]:[]).map(n=>j.jsx("option",{value:n},String(n)))},`datalist_${t}`):null}function Cz(e){const{id:t,name:r,htmlName:i,value:a,readonly:n,disabled:s,autofocus:o,onBlur:l,onFocus:u,onChange:c,onChangeOverride:f,options:m,schema:d,uiSchema:p,registry:k,rawErrors:v,type:g,hideLabel:b,hideError:w,...C}=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={...C,...yF(d,g,m)};let S;y.type==="number"||y.type==="integer"?S=a||a===0?a:"":S=a??"";const A=B.useCallback(({target:{value:O}})=>c(O===""?m.emptyValue:O),[c,m]),_=B.useCallback(({target:O})=>l(t,O==null?void 0:O.value),[l,t]),x=B.useCallback(({target:O})=>u(t,O==null?void 0:O.value),[u,t]),E=B.useCallback(O=>{O.preventDefault(),O.stopPropagation(),c(m.emptyValue??"")},[c,m.emptyValue]);return j.jsxs(j.Fragment,{children:[j.jsx("input",{id:t,name:i||t,className:"form-control",readOnly:n,disabled:s,autoFocus:o,value:S,...y,list:d.examples?Id(t):void 0,onChange:f||A,onBlur:_,onFocus:x,"aria-describedby":Rr(t,!!d.examples)}),m.allowClearTextInputs&&!n&&!s&&S&&j.jsx(h,{registry:k,onClick:E}),j.jsx(Sz,{id:t,schema:d})]})}function Ez(e){const{iconType:t="default",icon:r,className:i,uiSchema:a,registry:n,...s}=e;return j.jsx("button",{type:"button",className:`btn btn-${t} ${i}`,...s,children:j.jsx("i",{className:`glyphicon glyphicon-${r}`})})}const qn=B.memo(Ez);function Az(e){const{registry:{translateString:t}}=e;return j.jsx(qn,{title:t(_e.CopyButton),...e,icon:"copy"})}const Oz=B.memo(Az);function _z(e){const{registry:{translateString:t}}=e;return j.jsx(qn,{title:t(_e.MoveDownButton),...e,icon:"arrow-down"})}const Pz=B.memo(_z);function Iz(e){const{registry:{translateString:t}}=e;return j.jsx(qn,{title:t(_e.MoveUpButton),...e,icon:"arrow-up"})}const Tz=B.memo(Iz);function jz(e){const{registry:{translateString:t}}=e;return j.jsx(qn,{title:t(_e.RemoveButton),...e,iconType:"danger",icon:"remove"})}const Rz=B.memo(jz);function Nz({id:e,className:t,onClick:r,disabled:i,registry:a,...n}){const{translateString:s}=a;return j.jsx(qn,{id:e,iconType:"default",icon:"remove",className:"btn-clear col-xs-12",title:s(_e.ClearButton),onClick:r,disabled:i,registry:a,...n})}const Fz=B.memo(Nz);function Dz({id:e,className:t,onClick:r,disabled:i,registry:a}){const{translateString:n}=a;return j.jsx("div",{className:"row",children:j.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:j.jsx(qn,{id:e,iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:n(_e.AddButton),onClick:r,disabled:i,registry:a})})})}function Mz({uiSchema:e}){const{submitText:t,norender:r,props:i={}}=Od(e);return r?null:j.jsx("div",{children:j.jsx("button",{type:"submit",...i,className:`btn btn-info ${i.className||""}`,children:t})})}function Lz(){return{SubmitButton:Mz,AddButton:Dz,CopyButton:Oz,MoveDownButton:Pz,MoveUpButton:Tz,RemoveButton:Rz,ClearButton:Fz}}function qz(e){const{name:t,fieldPathId:r,registry:i,onExpand:a}=e,{translateString:n}=i,s=`${r[nt]}-button`;return j.jsxs("div",{style:{marginTop:"1rem"},children:[j.jsx("div",{className:"text-danger",children:n(_e.CycleDetected,[t])}),j.jsxs("div",{children:[j.jsx("button",{id:s,type:"button",className:"btn btn-sm btn-warning",onClick:()=>a(r[nt]),children:n(_e.ExpandButton)})," "]})]})}const V1=_d();function H1({description:e,registry:t,uiSchema:r={}}){const{globalUiOptions:i}=t;return me(r,i).enableMarkdownInDescription&&typeof e=="string"?j.jsx(ws,{options:{disableParsingRawHTML:!0},"data-testid":V1.markdown,children:e}):e}H1.TEST_IDS=V1;function $z(e){const{id:t,description:r,registry:i,uiSchema:a}=e;return r?j.jsx("div",{id:t,className:"field-description",children:j.jsx(H1,{description:r,registry:i,uiSchema:a})}):null}function zz({errors:e,registry:t}){const{translateString:r}=t;return j.jsxs("div",{className:"panel panel-danger errors",children:[j.jsx("div",{className:"panel-heading",children:j.jsx("h3",{className:"panel-title",children:r(_e.ErrorsLabel)})}),j.jsx("ul",{className:"list-group",children:e.map((i,a)=>j.jsx("li",{className:"list-group-item text-danger",children:i.stack},a))})]})}function Uz(e){const{schema:t,registry:r,typeSelector:i,schemaField:a}=e,n=ge("MultiSchemaFieldTemplate",r);return j.jsx(n,{selector:i,optionSchemaField:a,schema:t,registry:r})}function Bz(e){const{errors:t=[],fieldPathId:r}=e;if(t.length===0)return null;const i=Pd(r);return j.jsx("div",{children:j.jsx("ul",{id:i,className:"error-detail bs-callout bs-callout-info",children:t.filter(a=>!!a).map((a,n)=>j.jsx("li",{className:"text-danger",children:a},n))})})}const K1=_d();function W1({help:e,registry:t,uiSchema:r={}}){const{globalUiOptions:i}=t;return me(r,i).enableMarkdownInHelp&&typeof e=="string"?j.jsx(ws,{options:{disableParsingRawHTML:!0},"data-testid":K1.markdown,children:e}):e}W1.TEST_IDS=K1;function Vz(e){const{fieldPathId:t,help:r,uiSchema:i,registry:a}=e;return r?j.jsx("div",{id:Td(t),className:"help-block",children:j.jsx(W1,{help:r,registry:a,uiSchema:i})}):null}const Hz="*";function G1(e){const{label:t,required:r,id:i}=e;return t?j.jsxs("label",{className:"control-label",htmlFor:i,children:[t,r&&j.jsx("span",{className:"required",children:Hz})]}):null}function Kz(e){const{id:t,label:r,children:i,errors:a,help:n,description:s,hidden:o,required:l,displayLabel:u,registry:c,uiSchema:f}=e,m=me(f),d=ge("WrapIfAdditionalTemplate",c,m);if(o)return j.jsx("div",{className:"hidden",children:i});const p=m.widget==="checkbox";return j.jsxs(d,{...e,children:[u&&!p&&j.jsx(G1,{label:r,required:l,id:t}),u&&s?s:null,i,a,n]})}function Wz(e){const{children:t,column:r,className:i,...a}=e;return j.jsx("div",{className:i,...a,children:t})}function Gz(e){const{selector:t,optionSchemaField:r}=e;return j.jsxs("div",{className:"panel panel-default panel-body",children:[j.jsx("div",{className:"form-group",children:t}),r]})}function Jz(e){const{className:t,description:r,disabled:i,formData:a,fieldPathId:n,onAddProperty:s,optionalDataControl:o,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:C}}=c.templates;return j.jsxs("fieldset",{className:t,id:n.$id,children:[d&&j.jsx(v,{id:Il(n),title:d,required:f,schema:m,uiSchema:p,registry:c,optionalDataControl:w?o:void 0}),r&&j.jsx(g,{id:zn(n),description:r,schema:m,uiSchema:p,registry:c}),w?void 0:o,l.map(h=>h.content),Nb(m,p,a)&&j.jsx(C,{id:ir(n,"add"),className:"rjsf-object-property-expand",onClick:s,disabled:i||u,uiSchema:p,registry:c})]})}function Yz(e){const{id:t,registry:r,label:i,onAddClick:a,onRemoveClick:n}=e;return a?j.jsx(qn,{id:t,registry:r,icon:"plus",className:"rjsf-add-optional-data btn-sm",onClick:a,title:i}):n?j.jsx(qn,{id:t,registry:r,icon:"remove",className:"rjsf-remove-optional-data btn-sm",onClick:n,title:i}):j.jsx("em",{id:t,children:i})}const Xz="*";function Zz(e){const{id:t,title:r,required:i,optionalDataControl:a}=e;return j.jsxs("legend",{id:t,children:[r,i&&j.jsx("span",{className:"required",children:Xz}),a&&j.jsx("span",{className:"pull-right",style:{marginBottom:"2px"},children:a})]})}function Qz(e){const{schema:t,fieldPathId:r,reason:i,registry:a}=e,{translateString:n}=a;let s=_e.UnsupportedField;const o=[];return r!=null&&r.$id&&(s=_e.UnsupportedFieldWithId,o.push(r.$id)),i&&(s=s===_e.UnsupportedField?_e.UnsupportedFieldWithReason:_e.UnsupportedFieldWithIdAndReason,o.push(i)),j.jsxs("div",{className:"unsupported-field",children:[j.jsx("p",{children:j.jsx(ws,{options:{disableParsingRawHTML:!0},children:n(s,o)})}),t&&j.jsx("pre",{children:JSON.stringify(t,null,2)})]})}function e4(e){const{id:t,classNames:r,style:i,disabled:a,displayLabel:n,label:s,onKeyRenameBlur:o,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:C}=b.ButtonTemplates,h=w(_e.KeyLabel,[s]),y=Sn in m,S=!!u,A=["form-group",r];!d&&p&&p.length>0&&A.push("has-error has-danger");const _=A.join(" ").trim();if(!y)return j.jsx("div",{className:_,style:i,children:k});const x=S?46:26;return j.jsx("div",{className:_,style:i,children:j.jsxs("div",{className:"row",children:[j.jsx("div",{className:"col-xs-5 form-additional",children:j.jsxs("div",{className:"form-group",children:[n&&j.jsx(G1,{label:h,required:f,id:`${t}-key`}),n&&u&&j.jsx("div",{children:" "}),j.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:o,defaultValue:s},s)]})}),j.jsx("div",{className:"form-additional form-group col-xs-5",children:k}),j.jsx("div",{className:"col-xs-2",style:{marginTop:n?`${x}px`:void 0},children:j.jsx(C,{id:ir(t,"remove"),className:"rjsf-object-property-remove btn-block",style:{border:"0"},disabled:a||c,onClick:l,uiSchema:v,registry:g})})]})})}function t4(){return{ArrayFieldDescriptionTemplate:vz,ArrayFieldItemTemplate:kz,ArrayFieldItemButtonsTemplate:bz,ArrayFieldTemplate:wz,ArrayFieldTitleTemplate:xz,ButtonTemplates:Lz(),BaseInputTemplate:Cz,CyclicSchemaExpandTemplate:qz,DescriptionFieldTemplate:$z,ErrorListTemplate:zz,FallbackFieldTemplate:Uz,FieldTemplate:Kz,FieldErrorTemplate:Bz,FieldHelpTemplate:Vz,GridTemplate:Wz,MultiSchemaFieldTemplate:Gz,ObjectFieldTemplate:Jz,OptionalDataControlsTemplate:Yz,TitleFieldTemplate:Zz,UnsupportedFieldTemplate:Qz,WrapIfAdditionalTemplate:e4}}function r4({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return j.jsx(r,{time:e,...t})}function n4(e){const{disabled:t=!1,readonly:r=!1,autofocus:i=!1,options:a,id:n,name:s,registry:o,onBlur:l,onFocus:u}=e,{translateString:c}=o,{elements:f,handleChange:m,handleClear:d,handleSetNow:p}=MF(e);return j.jsxs("ul",{className:"list-inline",children:[f.map((k,v)=>j.jsx("li",{className:"list-inline-item",children:j.jsx(DF,{rootId:n,name:s,select:m,...k,disabled:t,readonly:r,registry:o,onBlur:l,onFocus:u,autofocus:i&&v===0})},v)),(a.hideNowButton!=="undefined"?!a.hideNowButton:!0)&&j.jsx("li",{className:"list-inline-item",children:j.jsx("button",{type:"button",className:"btn btn-info btn-now",onClick:p,children:c(_e.NowLabel)})}),(a.hideClearButton!=="undefined"?!a.hideClearButton:!0)&&j.jsx("li",{className:"list-inline-item",children:j.jsx("button",{type:"button",className:"btn btn-warning btn-clear",onClick:d,children:c(_e.ClearLabel)})})]})}function i4({id:e,disabled:t,options:r,value:i,autofocus:a=!1,readonly:n,onChange:s,onBlur:o,onFocus:l,htmlName:u}){const{inline:c=!1,enumOptions:f,enumDisabled:m,emptyValue:d}=r,p=hs(r),k=Array.isArray(i)?i:[i],v=B.useCallback(({target:b})=>o(e,_r(b==null?void 0:b.value,f,p,d)),[o,e,f,d,p]),g=B.useCallback(({target:b})=>l(e,_r(b==null?void 0:b.value,f,p,d)),[l,e,f,d,p]);return j.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(f)&&f.map((b,w)=>{const C=ca(b.value,k),h=Array.isArray(m)&&m.includes(b.value),y=t||h||n?"disabled":"",S=_=>{_.target.checked?s(e1(w,k,f)):s(Zk(w,k,f))},A=j.jsxs("span",{children:[j.jsx("input",{type:"checkbox",id:Tl(e,w),name:u||e,checked:C,value:ps(b.value,w,p),disabled:t||h||n,autoFocus:a&&w===0,onChange:S,onBlur:v,onFocus:g,"aria-describedby":Rr(e)}),j.jsx("span",{children:b.label})]});return c?j.jsx("label",{className:`checkbox-inline ${y}`,children:A},String(b.value)):j.jsx("div",{className:`checkbox ${y}`,children:j.jsx("label",{children:A})},String(b.value))})})}function a4({schema:e,uiSchema:t,options:r,id:i,value:a,disabled:n,readonly:s,label:o,hideLabel:l,autofocus:u=!1,onBlur:c,onFocus:f,onChange:m,registry:d,htmlName:p}){const k=ge("DescriptionFieldTemplate",d,r),v=Ua(e),g=B.useCallback(S=>m(S.target.checked),[m]),b=B.useCallback(S=>c(i,S.target.checked),[c,i]),w=B.useCallback(S=>f(i,S.target.checked),[f,i]),y=me(t).widget==="checkbox"?void 0:r.description??e.description;return j.jsxs("div",{className:`checkbox ${n||s?"disabled":""}`,children:[!l&&y&&j.jsx(k,{id:zn(i),description:y,schema:e,uiSchema:t,registry:d}),j.jsxs("label",{children:[j.jsx("input",{type:"checkbox",id:i,name:p||i,checked:typeof a>"u"?!1:a,required:v,disabled:n||s,autoFocus:u,onChange:g,onBlur:b,onFocus:w,"aria-describedby":Rr(i)}),OF(j.jsx("span",{children:o}),l)]})]})}function s4(e){const{disabled:t,readonly:r,options:i,registry:a}=e,n=ge("BaseInputTemplate",a,i);return j.jsx(n,{type:"color",...e,disabled:t||r})}function o4(e){const{onChange:t,value:r,options:i,registry:a}=e,n=ge("BaseInputTemplate",a,i);return j.jsx(n,{type:"datetime-local",...e,value:UF(r),onChange:s=>t(_F(s))})}function l4(e){const{onChange:t,options:r,registry:i}=e,a=ge("BaseInputTemplate",i,r),n=B.useCallback(s=>t(s||void 0),[t]);return j.jsx(a,{type:"date",...e,onChange:n})}function u4(e){const{options:t,registry:r}=e,i=ge("BaseInputTemplate",r,t);return j.jsx(i,{type:"email",...e})}function c4({fileInfo:e,registry:t}){const{translateString:r}=t,{dataURL:i,type:a,name:n}=e;if(!i)return null;const s=r(_e.PreviewLabel);return["image/jpeg","image/png"].includes(a)?j.jsx("img",{src:i,alt:s,style:{maxWidth:"100%"},className:"file-preview"}):j.jsxs(j.Fragment,{children:[" ",j.jsx("a",{download:`preview-${n}`,href:i,className:"file-download",children:s})]})}function f4({filesInfo:e,registry:t,preview:r,onRemove:i,options:a}){if(e.length===0)return null;const{translateString:n}=t,{RemoveButton:s}=ge("ButtonTemplates",t,a);return j.jsx("ul",{className:"file-info",children:e.map((o,l)=>{const{name:u,size:c,type:f}=o,m=()=>i(l);return j.jsxs("li",{children:[j.jsx(ws,{children:n(_e.FilesInfo,[u,f,String(c)])}),r&&j.jsx(c4,{fileInfo:o,registry:t}),j.jsx(s,{onClick:m,registry:t})]},l)})})}function d4(e){const{disabled:t,readonly:r,required:i,multiple:a,onChange:n,value:s,options:o,registry:l}=e,{filesInfo:u,handleChange:c,handleRemove:f}=zF(s,n,a),m=ge("BaseInputTemplate",l,o),d=p=>{p.target.files&&c(p.target.files)};return j.jsxs("div",{children:[j.jsx(m,{...e,disabled:t||r,type:"file",required:s?!1:i,onChangeOverride:d,value:"",accept:o.accept?String(o.accept):void 0}),j.jsx(f4,{filesInfo:u,onRemove:f,registry:l,preview:o.filePreview,options:o})]})}function m4({id:e,value:t,htmlName:r}){return j.jsx("input",{type:"hidden",id:e,name:r||e,value:typeof t>"u"?"":t})}function p4(e){const{options:t,registry:r}=e,i=ge("BaseInputTemplate",r,t);return j.jsx(i,{type:"password",...e})}function h4({options:e,value:t,required:r,disabled:i,readonly:a,autofocus:n=!1,onBlur:s,onFocus:o,onChange:l,id:u,htmlName:c}){const{enumOptions:f,enumDisabled:m,inline:d,emptyValue:p}=e,k=hs(e),v=B.useCallback(({target:b})=>s(u,_r(b==null?void 0:b.value,f,k,p)),[s,f,p,u,k]),g=B.useCallback(({target:b})=>o(u,_r(b==null?void 0:b.value,f,k,p)),[o,f,p,u,k]);return j.jsx("div",{className:"field-radio-group",id:u,role:"radiogroup",children:Array.isArray(f)&&f.map((b,w)=>{const C=ca(b.value,t),h=Array.isArray(m)&&m.includes(b.value),y=i||h||a?"disabled":"",S=()=>l(b.value),A=j.jsxs("span",{children:[j.jsx("input",{type:"radio",id:Tl(u,w),checked:C,name:c||u,required:r,value:ps(b.value,w,k),disabled:i||h||a,autoFocus:n&&w===0,onChange:S,onBlur:v,onFocus:g,"aria-describedby":Rr(u)}),j.jsx("span",{children:b.label})]});return d?j.jsx("label",{className:`radio-inline ${y}`,children:A},String(b.value)):j.jsx("div",{className:`radio ${y}`,children:j.jsx("label",{children:A})},String(b.value))})})}function g4(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return j.jsxs("div",{className:"field-range-wrapper",children:[j.jsx(r,{type:"range",...e}),j.jsx("span",{className:"range-view",children:t})]})}function y4({id:e,value:t,required:r,disabled:i,readonly:a,autofocus:n,onChange:s,onFocus:o,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=B.useCallback(C=>{!i&&!a&&s(C)},[s,i,a]),g=B.useCallback(C=>{if(o){const h=Number(C.target.dataset.value);o(e,h)}},[o,e]),b=B.useCallback(C=>{if(l){const h=Number(C.target.dataset.value);l(e,h)}},[l,e]),w=C=>d==="heart"?C?"♥":"♡":C?"★":"☆";return j.jsxs("div",{className:"rating-widget",style:{display:"inline-flex",fontSize:"1.5rem",cursor:i||a?"default":"pointer"},children:[[...Array(p)].map((C,h)=>{const y=k+h,S=y<=t;return j.jsx("span",{onClick:()=>v(y),onKeyDown:A=>(A.key==="Enter"||A.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:S?"#FFD700":"#ccc",padding:"0 0.2rem",transition:"color 0.2s",userSelect:"none"},children:w(S)},h)}),j.jsx("input",{type:"hidden",id:e,name:f||e,value:t||"",required:r,disabled:i||a,"aria-hidden":"true"})]})}function Dc(e,t){return t?Array.from(e.target.options).slice().filter(r=>r.selected).map(r=>r.value):e.target.value}function v4({schema:e,id:t,options:r,value:i,required:a,disabled:n,readonly:s,multiple:o=!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=o?[]:"",C=hs(r),h=B.useCallback(x=>{const E=Dc(x,o);return f(t,_r(E,v,C,b))},[f,t,o,v,b,C]),y=B.useCallback(x=>{const E=Dc(x,o);return c(t,_r(E,v,C,b))},[c,t,o,v,b,C]),S=B.useCallback(x=>{const E=Dc(x,o);return u(_r(E,v,C,b))},[u,o,v,b,C]),A=oF(i,v,o,C,w),_=!o&&e.default===void 0;return PF(t,e,v,o),j.jsxs(j.Fragment,{children:[j.jsx(jF,{id:t,multiple:o,options:r,registry:p,uiSchema:k,value:i}),j.jsxs("select",{id:t,name:d||t,multiple:o,className:"form-control",value:A,required:a,disabled:n||s,autoFocus:l,onBlur:y,onFocus:h,onChange:S,"aria-describedby":Rr(t),children:[_&&j.jsx("option",{value:"",children:m}),Array.isArray(v)&&v.map(({value:x,label:E},O)=>{const R=g&&g.includes(x);return j.jsx("option",{value:ps(x,O,C),disabled:R,children:E},String(x))})]})]})}function b4({id:e,options:t,placeholder:r,value:i,required:a,disabled:n,readonly:s,autofocus:o=!1,onChange:l,onBlur:u,onFocus:c,htmlName:f}){const m=B.useCallback(({target:{value:k}})=>l(k===""?t.emptyValue:k),[l,t.emptyValue]),d=B.useCallback(({target:k})=>u(e,k==null?void 0:k.value),[u,e]),p=B.useCallback(({target:k})=>c(e,k==null?void 0:k.value),[e,c]);return j.jsx("textarea",{id:e,name:f||e,className:"form-control",value:i||"",placeholder:r,required:a,disabled:n,readOnly:s,autoFocus:o,rows:t.rows,onBlur:d,onFocus:p,onChange:m,"aria-describedby":Rr(e)})}function k4(e){const{options:t,registry:r}=e,i=ge("BaseInputTemplate",r,t);return j.jsx(i,{...e})}function w4(e){const{onChange:t,options:r,registry:i}=e,a=ge("BaseInputTemplate",i,r),n=B.useCallback(s=>t(s?`${s}:00`:void 0),[t]);return j.jsx(a,{type:"time",...e,onChange:n})}function x4(e){const{options:t,registry:r}=e,i=ge("BaseInputTemplate",r,t);return j.jsx(i,{type:"number",...e})}function S4(e){const{options:t,registry:r}=e,i=ge("BaseInputTemplate",r,t);return j.jsx(i,{type:"url",...e})}function C4(){return{AltDateWidget:n4,AltDateTimeWidget:r4,CheckboxWidget:a4,CheckboxesWidget:i4,ColorWidget:s4,DateWidget:l4,DateTimeWidget:o4,EmailWidget:u4,FileWidget:d4,HiddenWidget:m4,PasswordWidget:p4,RadioWidget:h4,RangeWidget:g4,RatingWidget:y4,SelectWidget:v4,TextWidget:k4,TextareaWidget:b4,TimeWidget:w4,UpDownWidget:x4,URLWidget:S4}}function E4(){return{fields:yz(),templates:t4(),widgets:C4(),rootSchema:{},formContext:{},translateString:sF,globalFormOptions:{idPrefix:Ib,idSeparator:Tb,useFallbackUiForUnsupportedType:!1}}}function Ni(e,t){return{...Gk(e,["schema","uiSchema","fieldPathId","schemaUtils","formData","edit","errors","errorSchema"]),...t!==void 0&&{status:t}}}let A4=class ni extends B.Component{constructor(r){super(r);zt(this,"formElement");zt(this,"pendingChanges",[]);zt(this,"isProcessingUserChange",!1);zt(this,"getUsedFormData",(r,i)=>YN(r,i));zt(this,"getFieldNames",(r,i)=>XN(r,i));zt(this,"omitExtraData",r=>{const{schema:i,schemaUtils:a}=this.state;return a.omitExtraData(i,r)});zt(this,"setFieldValue",(r,i)=>{const{registry:a}=this.state,n=Array.isArray(r)?r:r.split("."),s=Tr("",a.globalFormOptions,n);this.onChange(i,n,void 0,s[nt])});zt(this,"onChange",(r,i,a,n)=>{this.pendingChanges.push({newValue:r,path:i,newErrorSchema:a,id:n}),this.pendingChanges.length===1&&this.processPendingChange()});zt(this,"reset",()=>{const{formData:r,initialFormData:i=rv,onChange:a}=this.props,o={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(o,()=>a==null?void 0:a(Ni({...this.state,...o})))});zt(this,"onBlur",(r,i)=>{const{onBlur:a,omitExtraData:n,liveOmit:s,liveValidate:o}=this.props;if(a&&a(r,i),n===!0&&s==="onBlur"||o==="onBlur"){const{onChange:l,extraErrors:u}=this.props,{formData:c}=this.state;let f=c,m={formData:f};if(n===!0&&s==="onBlur"&&(f=this.omitExtraData(c),m={formData:f}),o==="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!$e(k,v)});this.setState(m,()=>{l&&d&&l(Ni({...this.state,...m}),r)})}});zt(this,"onFocus",(r,i)=>{const{onFocus:a}=this.props;a&&a(r,i)});zt(this,"onSubmit",r=>{if(r.preventDefault(),r.target!==r.currentTarget)return;r.persist();const{omitExtraData:i,extraErrors:a,noValidate:n,onSubmit:s}=this.props;let{formData:o}=this.state;if(i===!0&&(o=this.omitExtraData(o)),n||this.validateFormWithFormData(o)){const l=a||{},u=a?Rd(a):[];this.setState({formData:o,errors:u,errorSchema:l,schemaValidationErrors:[],schemaValidationErrorSchema:{}},()=>{s&&s(Ni({...this.state,formData:o},"submitted"),r)})}});zt(this,"submit",()=>{if(this.formElement.current){const r=new CustomEvent("submit",{cancelable:!0});r.preventDefault(),this.formElement.current.dispatchEvent(r),this.formElement.current.requestSubmit()}});zt(this,"validateFormWithFormData",r=>{const{extraErrors:i,extraErrorsBlockSubmit:a,focusOnFirstError:n,onError:s}=this.props,{errors:o}=this.state,l=this.validate(r),{errors:u,errorSchema:c}=i?ni.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},()=>{s?s(u):console.error("Form validation failed",u)})):u.length>0?this.setState({errors:u,errorSchema:c,schemaValidationErrors:[],schemaValidationErrorSchema:{}}):o.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,s=i??a;this.state={...this.getStateFromProps(r,s,void 0,void 0,void 0,!0),prevExtraErrors:r.extraErrors},n&&!$e(this.state.formData,s)&&n(Ni(this.state)),this.formElement=B.createRef()}static getDerivedStateFromProps(r,i){if(r.extraErrors!==i.prevExtraErrors){const a={errors:i.schemaValidationErrors||[],errorSchema:i.schemaValidationErrorSchema||{}};let{errors:n,errorSchema:s}=a;return r.extraErrors&&({errors:n,errorSchema:s}=Na(a,r.extraErrors)),i.customErrors&&({errors:n,errorSchema:s}=Na({errors:n,errorSchema:s},i.customErrors.ErrorSchema,!0)),{prevExtraErrors:r.extraErrors,errors:n,errorSchema:s}}return null}getSnapshotBeforeUpdate(r,i){if(!$e(this.props,r)){const a=mh(this.props.formData,r.formData),n=mh(this.props.formData,this.state.formData),s=!$e(r.schema,this.props.schema),o=a.length>0||!$e(r.formData,this.props.formData),l=n.length>0||!$e(this.state.formData,this.props.formData),u=this.getStateFromProps(this.props,this.props.formData,s||o?void 0:this.state.retrievedSchema,s,a,!l),c=!$e(u,i);return{nextState:u,shouldUpdate:c}}return{shouldUpdate:!1}}componentDidUpdate(r,i,a){if(a.shouldUpdate){const{nextState:n}=a,s=!$e(n.formData,this.props.formData),o=this.isProcessingUserChange;if(this.isProcessingUserChange=!1,o&&s)return;s&&!$e(n.formData,i.formData)&&this.props.onChange&&this.props.onChange(Ni(n)),this.setState(n)}}getStateFromProps(r,i,a,n=!1,s=[],o=!1,l=!1){var Z;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=nF(f,c,g,b));const C=w.getRootSchema();let h=i;i===rv?h=void 0:i===void 0&&d&&(h=u.formData);let y,S,A=!1;const _=[];do{y=w.getDefaultFormState(C,h,!1,u.initialDefaultsGenerated);const P=l?fr({formData:y}):"";if(S=this.updateRetrievedSchema(a??w.retrieveSchema(C,y)),l&&!_.includes(P)&&!$e(S,u.retrievedSchema)){const F=w.sanitizeDataForNewSchema(S,u.retrievedSchema,y);if(A=!$e(F,y),A){y=F,h=F;const z=fr({formData:F});A=!_.includes(z),_.push(z)}_.push(P)}else A=!1}while(A);const x=()=>r.noValidate||n?{errors:[],errorSchema:{}}:r.liveValidate?{errors:u.errors||[],errorSchema:u.errorSchema||{}}:{errors:u.schemaValidationErrors||[],errorSchema:u.schemaValidationErrorSchema||{}};let E,O,{schemaValidationErrors:R,schemaValidationErrorSchema:T}=u;if(v&&!o){const P=this.liveValidate(C,w,u.errorSchema,y,void 0,u.customErrors,a,a!==void 0);E=P.errors,O=P.errorSchema,R=P.schemaValidationErrors,T=P.schemaValidationErrorSchema}else{const P=x();if(E=P.errors,O=P.errorSchema,s.length>0&&!v){const z=s.reduce((I,N)=>(I[N]=void 0,I),{});T=Fn(P.errorSchema,z,"preventDuplicates"),O=T}const F=ni.mergeErrors({errorSchema:O,errors:E},r.extraErrors,u.customErrors);E=F.errors,O=F.errorSchema}const D=ni.getRegistry(r,C,w),L=$e(u.registry,D)?u.registry:D,J=u.fieldPathId&&((Z=u.fieldPathId)==null?void 0:Z[nt])===L.globalFormOptions.idPrefix?u.fieldPathId:Tr("",L.globalFormOptions);return{schemaUtils:w,schema:C,uiSchema:m,fieldPathId:J,formData:y,edit:p,errors:E,errorSchema:O,schemaValidationErrors:R,schemaValidationErrorSchema:T,retrievedSchema:S,initialDefaultsGenerated:!0,registry:L}}shouldComponentUpdate(r,i){const{experimental_componentUpdateStrategy:a="customDeep"}=this.props;return RF(this,r,i,a)}validate(r,i=this.state.schema,a,n){const s=a||this.state.schemaUtils,{customValidate:o,transformErrors:l,uiSchema:u}=this.props,c=n??i,f=r?JSON.parse(JSON.stringify(r)):void 0;return s.getValidator().validateFormData(f,c,o,l,u)}renderErrors(r){const{errors:i,errorSchema:a,schema:n,uiSchema:s}=this.state,o=me(s),l=ge("ErrorListTemplate",r,o);return i!=null&&i.length?j.jsx(l,{errors:i,errorSchema:a||{},schema:n,uiSchema:s,registry:r}):null}static mergeErrors(r,i,a){let{errorSchema:n,errors:s}=r;if(i){const o=Na(r,i);n=o.errorSchema,s=o.errors}if(a){const o=Na({errors:s,errorSchema:n},a.ErrorSchema,!0);n=o.errorSchema,s=o.errors}return{errors:s,errorSchema:n}}liveValidate(r,i,a,n,s,o,l,u=!1){const c=this.validate(n,r,i,l),{errors:f}=c;let{errorSchema:m}=c;u&&(m=Fn(a,c.errorSchema,"preventDuplicates"));const d=f,p=m;return{...ni.mergeErrors({errorSchema:m,errors:f},s,o),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:s,omitExtraData:o,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:C,retrievedSchema:h}=this.state,y=b;const S=g.path[0]||"",A=!i||i.length===0||i.length===1&&i[0]===S;let _=A?r:tl(p);const x=be(_)&&Object.keys(_).length>0&&Object.values(_).every(L=>L===void 0),E=p==null,O=x&&E?void 0:_;if(be(_)||Array.isArray(_)){let L=!1;if(r===U1)X2(_,i);else if(!A){let Z=r;if(r===void 0)if(typeof i[i.length-1]=="number")Z=null;else{const{field:F}=k.findFieldInSchema(v,i,p),z=F;!(z&&(Ae in z||Le in z))&&z!==void 0&&(L=!0)}L?lt(_,i,void 0):lt(_,i,Z)}const J=h&&!A&&!be(r)&&!Array.isArray(r)&&!m&&!d,X=this.getStateFromProps(this.props,O,void 0,void 0,void 0,!0,J);_=X.formData,h=X.retrievedSchema,L&&_&&lt(_,i,void 0)}const R=!u&&(c===!0||c==="onChange");let T={formData:_,retrievedSchema:h},D=_;if(o===!0&&(l===!0||l==="onChange")&&(D=this.omitExtraData(_),T={...T,formData:D}),n){const L=A?b:ae(b,i);if(!wt(L))A?y=n:(y=tl(b),lt(y,i,n));else if(C||(C=new t1),A){const J=ae(n,Nt);J&&C.setErrors(J)}else lt(C.ErrorSchema,i,n)}else C&&ae(C.ErrorSchema,[...i,Nt])&&C.clearErrors(i);if(R&&this.pendingChanges.length===1){const L=this.liveValidate(v,k,y,D,s,C,h);T={...T,formData:D,...L,customErrors:C}}else if(!u&&n){const L=ni.mergeErrors({errorSchema:y,errors:w},s,C);T={...T,formData:D,...L,customErrors:C}}this.setState(T,()=>{f&&f(Ni({...this.state,...T}),a),this.pendingChanges.shift(),this.processPendingChange()})}updateRetrievedSchema(r){var a;return $e(r,(a=this.state)==null?void 0:a.retrievedSchema)?this.state.retrievedSchema:r}static getGlobalFormOptions(r){const{uiSchema:i={},experimental_componentUpdateStrategy:a,idSeparator:n=Tb,idPrefix:s=Ib,nameGenerator:o,useFallbackUiForUnsupportedType:l=!1}=r;return{idPrefix:i["ui:rootFieldId"]||s,idSeparator:n,useFallbackUiForUnsupportedType:l,...a!==void 0&&{experimental_componentUpdateStrategy:a},...o!==void 0&&{nameGenerator:o}}}static getRegistry(r,i,a){var m;const{translateString:n,uiSchema:s={}}=r,{fields:o,templates:l,widgets:u,formContext:c,translateString:f}=E4();return{fields:{...o,...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:s[ef],globalFormOptions:ni.getGlobalFormOptions(r),uiSchemaDefinitions:s[p_]??{}}}focusOnError(r){const{idPrefix:i="root",idSeparator:a="_"}=this.props,{property:n}=r,s=a1(n);s[0]===""?s[0]=i:s.unshift(i);const o=s.join(a);let l=this.formElement.current.elements[o];l||(l=this.formElement.current.querySelector(`input[id^="${o}"], button[id^="${o}"]`)),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:s,method:o,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:C,errorSchema:h,fieldPathId:y,registry:S}=this.state,{SchemaField:A}=S.fields,{SubmitButton:_}=S.templates.ButtonTemplates,x=g?n:void 0,E=g||n||"form";let{[Jo]:O={}}=me(w);p&&(O={...O,props:{...O.props,disabled:!0}});const R={[Cn]:{[Jo]:O}};return j.jsxs(E,{className:a||"rjsf",id:i,name:s,method:o,target:l,action:u,autoComplete:c,encType:f,acceptCharset:m,noValidate:d,onSubmit:this.onSubmit,as:x,ref:this.formElement,children:[v==="top"&&this.renderErrors(S),j.jsx(A,{name:"",schema:b,uiSchema:w,errorSchema:h,fieldPathId:y,formData:C,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:S,disabled:p,readonly:k}),r||j.jsx(_,{uiSchema:R,registry:S}),v==="bottom"&&this.renderErrors(S)]})}};const O4=A4,_4=(e,t)=>e.map(r=>{var n,s;const i=(n=r.property)==null?void 0:n.replace(/^\./,""),a=(s=t.properties)==null?void 0:s[i];return a!=null&&a.errorMessage&&a.errorMessage[r.name]&&(r.message=a.errorMessage[r.name]),r}),J1=({id:e,...t})=>{const[r,i]=B.useState(t.formData);return j.jsx(O4,{id:e,idPrefix:`root_${e}`,transformErrors:a=>_4(a,t.schema),...t,formData:r,onChange:a=>{t.onChange&&t.onChange(a);const{schema:n,formData:s}=a;if(n!=null&&n.required&&Array.isArray(n.required))for(const o of n.required){const l=(n.properties||{})[o];l&&l.type==="boolean"&&s[o]===!1&&delete s[o]}i(s)}})},P4=["tabs","sidebar"],iv=e=>console.warn(`Ignoring "ui:steps": ${e}. Rendering a single-page form.`),I4=e=>{const t=e??{};return{layout:P4.includes(t.layout)?t.layout:"tabs",nextLabel:typeof t.nextLabel=="string"?t.nextLabel:"Next",backLabel:typeof t.backLabel=="string"?t.backLabel:"Back"}},T4=(e,t,r,i)=>{const a=e??{};if(!Array.isArray(a.fields))return console.warn(`"ui:steps" step ${t+1} has no "fields" array; dropped.`),null;const n=a.fields.filter(s=>typeof s!="string"||!r.includes(s)?(console.warn(`"ui:steps" step ${t+1} names unknown field "${s}"; dropped.`),!1):i.has(s)?(console.warn(`"ui:steps" step ${t+1} repeats field "${s}"; keeping its first occurrence.`),!1):(i.add(s),!0));return n.length===0?(console.warn(`"ui:steps" step ${t+1} has no usable fields; dropped.`),null):{title:typeof a.title=="string"&&a.title?a.title:`Step ${t+1}`,...typeof a.description=="string"&&a.description&&{description:a.description},fields:n}},j4=(e,t)=>{const r=e==null?void 0:e["ui:steps"];if(!r)return null;if(typeof r!="object"||!Array.isArray(r.steps))return iv('"steps" must be an array'),null;const i=Object.keys(t.properties??{}),a=new Set,n=r.steps.map((o,l)=>T4(o,l,i,a)).filter(o=>!!o);if(n.length<2)return iv("fewer than two usable steps"),null;const s=i.filter(o=>!a.has(o));return s.length>0&&(console.warn(`"ui:steps" leaves fields unassigned (${s.join(", ")}); appending them to the last step.`),n[n.length-1].fields.push(...s)),{config:I4(r.config),steps:n}},R4=({layout:e,items:t,currentIndex:r,onNavigate:i,children:a})=>{const n=t[r];return j.jsxs("div",{className:`fcode-steps fcode-steps-layout-${e}`,children:[j.jsx("ol",{className:"fcode-steps-nav","aria-label":"Form steps",children:t.map(s=>j.jsx("li",{className:"fcode-steps-nav-item",children:j.jsxs("button",{type:"button",className:tn("fcode-steps-item",{"is-completed":s.status==="completed","is-current":s.status==="current","is-upcoming":s.status==="upcoming","has-errors":s.hasErrors}),disabled:!s.clickable,"aria-current":s.status==="current"?"step":void 0,onClick:()=>i(s.index),children:[j.jsx("span",{className:"fcode-steps-item-counter","aria-hidden":"true",children:s.index+1}),j.jsx("span",{className:"fcode-steps-item-title",children:s.title})]})},s.index))}),j.jsxs("div",{className:"fcode-steps-main",children:[n&&j.jsxs("div",{className:"fcode-steps-header",children:[j.jsx("h3",{className:"fcode-steps-title",children:n.title}),n.description&&j.jsx("p",{className:"fcode-steps-description",children:n.description})]}),j.jsx("div",{className:"fcode-steps-panel",children:a})]})]})},N4=({label:e,onClick:t,disabled:r})=>j.jsx("button",{type:"button",className:"btn btn-light fcode-steps-back",disabled:r,onClick:t,children:e}),F4={StepsNavigation:R4,BackButton:N4},dl=(e,t)=>Object.fromEntries(Object.entries(e??{}).filter(([r])=>t.includes(r))),D4=(e,t)=>{const r=e.dependencies??{},i=new Set,a=n=>{Object.keys(n.properties??{}).forEach(s=>i.add(s)),(n.oneOf??[]).forEach(s=>Object.keys((s==null?void 0:s.properties)??{}).forEach(o=>i.add(o)))};for(const n of t){const s=r[n];s&&typeof s=="object"&&!Array.isArray(s)&&a(s)}return t.forEach(n=>i.delete(n)),[...i]},M4=(e,t)=>{const r=e,i=Object.entries(dl(r.dependencies,t)).reduce((a,[n,s])=>{if(Array.isArray(s)){const o=s.filter(l=>t.includes(l));o.length>0&&(a[n]=o)}else a[n]=s;return a},{});return{...e,properties:dl(r.properties,t),...Array.isArray(r.required)&&{required:r.required.filter(a=>t.includes(a))},...r.dependencies&&{dependencies:i}}},L4=(e,t)=>Object.fromEntries(Object.entries(e??{}).filter(([r])=>t.includes(r)||r.startsWith("ui:")&&r!=="ui:steps"&&r!=="ui:submitButtonOptions")),q4=({parsed:e,components:t,...r})=>{var J,X;const{steps:i,config:a}=e,n=r.schema,s=r.uiSchema,[o,l]=B.useState(0),[u,c]=B.useState(0),[f,m]=B.useState({...r.formData??{}}),d=B.useRef({}),p=B.useMemo(()=>i.map(Z=>[...Z.fields,...D4(n,Z.fields)]),[i,n]),k=B.useMemo(()=>i.map((Z,P)=>({schema:M4(n,Z.fields),uiSchema:L4(s,p[P])})),[i,n,s,p]),v=r.extraErrors,g=B.useMemo(()=>p.map(Z=>Z.some(P=>!!v&&P in v)),[p,v]);B.useEffect(()=>{const Z=g.findIndex(Boolean);Z>=0&&l(Z)},[v]),B.useEffect(()=>{d.current=dl(f,p[o])},[o]);const b=(Z,P,F)=>({...Object.fromEntries(Object.entries(Z).filter(([z])=>!p[F].includes(z))),...P}),w=Z=>{m(P=>b(P,d.current,o)),l(Z)},C=r.readonly===!0||r.disabled===!0||(s==null?void 0:s["ui:readonly"])===!0,h=Z=>Z!==o&&(C||Z<=u),y=Z=>{h(Z)&&w(Z)},S=o===i.length-1,A=(Z,P)=>{const F=b(f,Z.formData??{},o);if(m(F),S){r.onSubmit&&r.onSubmit({...Z,formData:F},P);return}l(o+1),c(z=>Math.max(z,o+1))},_=Z=>{d.current=Z.formData??{},r.onChange&&r.onChange(Z)},x=i.map((Z,P)=>({index:P,title:Z.title,description:Z.description,status:P<o?"completed":P===o?"current":"upcoming",clickable:h(P),hasErrors:g[P]})),{StepsNavigation:E,BackButton:O}=t,R=(X=(J=r.templates)==null?void 0:J.ButtonTemplates)==null?void 0:X.SubmitButton,T=Od(s??{}),D={"ui:submitButtonOptions":S?T:{...T,submitText:a.nextLabel,norender:!1}},L={translateString:Z=>Z};return j.jsx(E,{layout:a.layout,items:x,currentIndex:o,onNavigate:y,children:j.jsx(J1,{...r,schema:k[o].schema,uiSchema:k[o].uiSchema,formData:dl(f,p[o]),onChange:_,onSubmit:A,children:j.jsxs("div",{className:"fcode-steps-actions",children:[o>0&&j.jsx(O,{label:a.backLabel,onClick:()=>w(o-1)}),R&&j.jsx(R,{uiSchema:D,registry:L})]})},o)})},$4=({id:e,schema:t,options:r,registry:i,value:a,onChange:n,disabled:s,readonly:o})=>j.jsx(S1,{id:e,schema:t,uiOptions:r,registry:i,value:a,onChange:n,disabled:s,readonly:o}),z4=(e,t)=>({...e,fcode:{...e==null?void 0:e.fcode,oauth:(t==null?void 0:t.oauth)??x1}}),U4=(e,t)=>e&&e in Pa?qo({},Pa[e]):t&&t in Pa?qo({},Pa[t]):qo({},Pa.en),Y1=({id:e,templates:t,widgets:r,fields:i,locale:a,fallbackLocale:n,validator:s,className:o,embedFormOptions:l={},rjsfTheme:u,...c})=>{const{theme:f}=l;cv(l);const m=B.useMemo(()=>U4(a,n),[a,n]),d=B.useMemo(()=>j4(c.uiSchema,c.schema),[c.uiSchema,c.schema]),p=B.useMemo(()=>z4(c.formContext,u),[c.formContext,u]),k={id:e,validator:s||m,className:tn(["fcode-form",o,{[`theme-${f}`]:f}]),fields:{...Y2,...u==null?void 0:u.fields,...i},templates:{...uy.templates,...u==null?void 0:u.templates,...t},widgets:{oauth:$4,...uy.widgets,...u==null?void 0:u.widgets,...r},...c,formContext:p};return d?j.jsx(q4,{parsed:d,components:(u==null?void 0:u.multistep)??F4,...k}):j.jsx(J1,{...k})},av={theme:"light",loadingOverlayDisabled:!1,loadingOverlayContent:"Sending information...",loadingContent:"Loading form...",locale:"en"},Hd=({hostUrl:e="https://code.factorialhr.com/platform",headers:t,team:r,processId:i,processVersion:a,onNextStep:n=ow,onSuccess:s,keepSuccessView:o=!1,onError:l,markdownComponents:u,defaultValues:c={},async:f=!1,disabled:m=!1,readonly:d=!1,options:p,...k})=>{const[v,g]=B.useState({processId:i,steps:[],variables:{...p&&p.variables}}),[b]=D0({hostUrl:e,headers:t,team:r,processId:v.processId,processVersion:a,locale:p==null?void 0:p.locale,async:f}),w=B.useMemo(()=>{const K=ov();return console.log(`Building Factorial Code form with id ${K}`),K},[r,v]),C=B.useMemo(()=>{const K=c||{};return window.location.search?{...K,...Object.fromEntries(new URLSearchParams(window.location.search).entries())}:K},[c]),[h,y]=B.useState(!1),[S,A]=B.useState(C),[_,x]=B.useState({}),[E,O]=B.useState(null),R=B.useCallback(K=>{x({}),y(!0),A(K.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}},...K.formData}).then(({results:Y,resolvedFiles:$})=>{if(A(C),Y.nextProcessId){const q=v.steps;q.push({processId:v.processId,data:{...K.formData,...$},result:Y}),g({processId:Y.nextProcessId,steps:q,variables:{...v.variables,...Y.variables}}),n(Y.nextProcessId,Y);return}Y.redirect&&sw(Y.redirect),s?s(w,Y,K.formData):(console.log(`Form ${w} has been successfully submitted.`),To("fcode-forms-on-submit-success",{formId:w,formSubmittedData:K.formData,processExecutionResult:Y})),(!s||o)&&O({kind:"success",message:Y.message||lw})}).catch(Y=>{Y!=null&&Y.formErrors?x(fw(Y==null?void 0:Y.formErrors)):l?l(w,Y,K.formData):(console.log(`There has been an error submitting the form ${w}`,Y),To("fcode-forms-on-submit-error",{formId:w,error:Y}),O({kind:"error",message:vv(Y)}))}).finally(()=>y(!1))},[w,C,s,o,l,b,v]),{loading:T,reloading:D,formSpecs:L,error:J,reload:X}=M0({hostUrl:e,headers:t,team:r,processId:v.processId,processVersion:a,locale:p==null?void 0:p.locale}),Z={...av,...p};cv(Z);const P=B.useMemo(()=>{var K;return{...k.formContext,fcode:{...(K=k.formContext)==null?void 0:K.fcode,reloadFormSpecs:X}}},[k.formContext,X]);B.useEffect(()=>{J&&(l?l(w,J,{}):(console.log(`There has been an error submitting the form ${w}`,J),To("fcode-forms-on-submit-error",{formId:w,error:J})))},[J]);const F=tn(["fcode-form-wrapper",Z.className]);if(T)return j.jsx("div",{className:tn([F,"fcode-form-loading"]),"data-testid":"fcode-form",children:j.jsx(vm,{active:!0,content:Z.loadingContent,children:j.jsx("div",{className:"fcode-form-outer",children:j.jsx(yv,{})})})});if(J||!L)return j.jsx("div",{className:F,"data-testid":"fcode-form",children:j.jsx("div",{className:"fcode-form-outer",children:j.jsx("p",{className:"fcode-form-error-message","data-testid":"fcode-form-error",children:cw(J)})})});L.schema.embedFormOptions={...av,...L.schema.embedFormOptions,...p,variables:{...L.schema.embedFormOptions&&L.schema.embedFormOptions.variables,...v.variables,...p&&p.variables}};const z=Ob(L),I=Object.keys(z.schema.properties||{}),N=Object.fromEntries(Object.entries(S).filter(([K,Y])=>I.includes(K)));if(E)return j.jsx("div",{className:tn(["fcode-form-wrapper",z.embedFormOptions.className]),"data-testid":"fcode-form",children:j.jsx("div",{className:"fcode-form-outer",children:j.jsx("div",{className:tn(["fcode-form-markdown",E.kind==="success"?"fcode-form-success-message":"fcode-form-error-message"]),"data-testid":`fcode-form-${E.kind}-message`,children:j.jsx(Yc,{components:u,children:E.message})})})});const{loadingOverlayDisabled:M,loadingOverlayContent:U,locale:V,fallbackLocale:H}=z.embedFormOptions;return j.jsx("div",{className:tn(["fcode-form-wrapper",z.embedFormOptions.className]),"data-testid":"fcode-form",children:j.jsx(vm,{active:h||D,content:D?Z.loadingContent:U,disabled:M,children:j.jsx("div",{className:"fcode-form-outer",children:j.jsx(Y1,{id:w,schema:z.schema,uiSchema:z.uiSchema,embedFormOptions:z.embedFormOptions,locale:V,fallbackLocale:H,formData:N,onSubmit:R,noHtml5Validate:!0,disabled:m,readonly:d,showErrorList:!1,extraErrors:_,...k,formContext:P},w)})})})};Hd.displayName="FcodeForm";exports.FcodeForm=Hd;exports.FcodeJsonSchemaForm=Y1;exports.buildId=ov;exports.default=Hd;exports.processFormSpecs=Ob;exports.resolveErrorMessage=vv;
144
+ `),endPos:a.end}:null}function Jd(e,t,r){qa=0,e=x$(e),!t.refs&&(t.refs={}),(r.optimizeForStreaming||t.inline)&&(t.w=K$(e,t.refs,r));var i,a;t.t||(t.t=i=[],t.p=a=[]);let n=Rn(e,t,r);if(i&&a){for(var s=i,o={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<s.length;l++){var u=s[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=Vr(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=o.inline,t.inAnchor=o.inAnchor,t.inHTML=o.inHTML,t.d=o.htmlDepth,t.inList=o.inList,t.inBlockQuote=o.inBlockQuote,t.l=o.noSetext,t.o=o.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,Nf(n,t,r.slugify)}return V1(t.refs)?[{type:ne.refCollection,refs:t.refs},...n]:n}var Ff;try{Fi=rn.createElement("div"),Ff=Fi!=null&&typeof Fi=="object"&&"$$typeof"in Fi&&typeof Fi.$$typeof=="symbol"?Fi.$$typeof:Symbol.for("react.transitional.element")}catch{Ff=Symbol.for("react.transitional.element")}var Fi;function Df(e,t,r){return{$$typeof:Ff,type:e,key:r==null?null:String(r),ref:null,props:t,_owner:null,_store:{},_debugStack:null,_debugTask:null}}function sr(e,t){var r={key:e};if(t){var i=B1(t);for(var a in i)r[a]=i[a]}return r}var av=typeof rn.createContext>"u"?void 0:rn.createContext(void 0);function sv(e,t,r,i,a,n,s,o,l){switch(e.type){case ne.blockQuote:{let g={key:r.key};return e.alert&&(g.className=`markdown-alert-${n(e.alert.toLowerCase(),bi)}`,e.children.unshift(E$(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 o.preserveFrontmatter?i("pre",{key:r.key},e.text):null;case ne.codeBlock:{let g=e.lang?Tn(e.lang):"";var u=e.attrs?B1(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($i(o)&&My(g.tag)){var c=Dy(g);return c.kind==="literal"?i("span",{key:r.key},c.literal):i("span",{key:r.key},...I$(c.open,g.children?t(g.children,r):null,c.close))}let b=g.j,w=b!==void 0,x=w?b:g.a?g.e||"":(g.e||"")+(g.h||"");if(x&&g.c){let h=g.tag.toLowerCase(),y=$$(h),S=g.children,A=S!=null&&S.length>0;if(y){let D=w?b:g.e||"",L=$i(o)?Ly(D):D;if(/<[a-z][^>]{0,100}>/i.test(x)){var f=sr(r.key,e.attrs);return f.dangerouslySetInnerHTML={__html:L},l(e.tag,f)}return l(e.tag,sr(r.key,e.attrs),L)}let _=new RegExp(`^<${g.tag}(\\s|>)`,"i");if(A&&!_.test(x)&&$i(o)&&D$(x))return l(e.tag,sr(r.key,e.attrs),t(S,r));if(z$(x)){let D=$i(o)?Ly(x):x;var m=sr(r.key,e.attrs);return m.dangerouslySetInnerHTML={__html:D},l(e.tag,m)}let C=Wd({slugify:o.slugify,sanitizer:a,tagfilter:!0}),E=S$(x);if(new RegExp(`^<${g.tag}(\\s[^>]*)?>(\\s*</${g.tag}>)?$`,"i").test(E))return g.children&&g.children.length>0?l(e.tag,sr(r.key,e.attrs),t(g.children,r)):l(e.tag,sr(r.key,e.attrs));let O=Jd(E,{inline:!1,refs:s,inHTML:!1},C);H1(O);let R=g.tag.toLowerCase(),T=w;if(T&&A)return l(e.tag,sr(r.key,e.attrs),t(S,r));if(T)return t(O.flatMap(Hi),r);var d=_$(O,R);if(d.found&&d.afterClose.length>0){var p=d.beforeClose.flatMap(Hi),k=d.afterClose.flatMap(Hi);return Df(rn.Fragment,{children:[l(e.tag,sr(r.key,e.attrs),t(p,r)),t(k,r)]},r.key)}return l(e.tag,sr(r.key,e.attrs),t(O.flatMap(Hi),r))}return xs(e.tag)?l(e.tag,sr(r.key,e.attrs)):l(e.tag,sr(r.key,e.attrs),e.children?t(e.children,r):"")}case ne.htmlSelfClosing:{let g=e;if($i(o)&&My(g.tag)){var v=Dy(g);return i("span",{key:r.key},v.kind==="literal"?v.literal:v.open+(v.close||""))}return l(e.tag,sr(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=T$(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(x,h){return i("td",{key:h,style:g.align[h]===null?{}:{textAlign:g.align[h]}},t(x,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 kz=(e,t,r,i,a,n,s)=>{var o=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 o(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=sv.bind(null,f[v],l,c,t,r,i,a,n,s);g=e(b,f[v],l,c)}else g=sv(f[v],l,c,t,r,i,a,n,s);var w=typeof g=="string";if(k&&typeof g=="string"){var x=p.at(-1);p[p.length-1]=(typeof x=="string"?x:"")+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},wz=(e,t)=>{let r=Cf(t,e,void 0);return r?typeof r=="function"||typeof r=="object"&&"render"in r?r:Cf(t,`${e}.component`,e):e};function xz(e,t){let r={...t||{}};r.overrides=r.overrides||{};let i=r.slugify||bi,a=r.sanitizer||nn,n=r.createElement,s=V1(r.overrides),o=w=>Mf(w,{...r,wrapper:null});function l(w){for(var x in w){var h=w[x];if(typeof h=="string"&&h.length>0&&h.charCodeAt(0)===rt&&(M$.test(h)||L$.test(h)||bz(h,0))){var y=o(h.trim());w[x]=x==="innerHTML"&&Array.isArray(y)?y[0]:y}}}function u(w,x,...h){var y=x||{},S=w;if(s){var A=Cf(r.overrides,`${w}.props`,{});S=wz(w,r.overrides),y={...y,...A,className:N$(y.className,A.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),Df(S,y,_)}return n(S,y,...h)}function c(w,x,...h){return x&&l(x),u(w,x,...h)}let f=Wd(r,r.forceInline),m=e[0]&&e[0].type===ne.refCollection?e[0].refs:{},d=kz(r.renderRule,u,a,i,m,r,c),p=d(e,{inline:r.forceInline,refs:m}),k=j$(m);if(k.length>0&&p.push(u("footer",{key:"footer"},k.map(function(w){let x=w.identifier.charCodeAt(0)===fn?w.identifier.slice(1):w.identifier,h=Jd(w.footnote,{inline:!0,refs:m},f);return u("div",{id:i(x,bi),key:w.identifier},`${x}: `,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,Df(v,b,"outer")}function Mf(e="",t={}){let r={...t||{}};r.overrides=r.overrides||{},r.slugify,r.sanitizer;function i(n){let s=r.forceInline||!(r.forceBlock||y$.test(n)),o=Wd(r,s),l=s?n:O$(n),u=Jd(l,{inline:s,refs:a},o);return xz(u,{...r,forceInline:s})}let a={};return i(e)}function Sz(e){let t=rn.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 s=0;for(var o in r)s++;i=s===a}i||(t.current=e)}return t.current}var Cs=({children:e,options:t,...r})=>{if(!(typeof rn.useContext<"u")){let o={...t,overrides:{...t==null?void 0:t.overrides},wrapperProps:{...t==null?void 0:t.wrapperProps,...r}};return Mf(e??"",o)}let i=av?rn.useContext(av):void 0,a=Sz(r),n=rn.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]),s=e??"";return rn.useMemo(()=>Mf(s,n),[s,n])};const Z1=Symbol("remove-this-key"),ov=Symbol("reset");function Cz(e,t){return Array.isArray(e.required)&&e.required.includes(t)}function Ez(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(_e.NewStringDefault)}}function Q1(e){return!!(e!=null&&e[En])}function lv(e){return Object.keys(e).filter(t=>Q1(e[t]))}function Az(e){const{fieldPathId:t,schema:r,registry:i,uiSchema:a,errorSchema:n,formData:s,onChange:o,onBlur:l,onFocus:u,disabled:c,readonly:f,required:m,hideError:d,propertyName:p,handleKeyRename:k,handleRemoveProperty:v,addedByAdditionalProperties:g}=e,[b,w]=U.useState(!1),{globalFormOptions:x,fields:h}=i,{SchemaField:y}=h,S=pa(Tr(p,x,t.path)),A=U.useCallback((O,R,T,D)=>{let L=O;O===void 0&&g&&(L=""),o(L,R,T,D)},[o,g]),_=U.useCallback(O=>{p!==O&&w(!0),k(p,O)},[p,k]),C=U.useCallback(O=>{const{target:{value:R}}=O;_(R)},[_]),E=U.useCallback(()=>{v(p)},[p,v]);return j.jsx(y,{name:p,required:m,schema:r,uiSchema:a,errorSchema:n,fieldPathId:S,formData:s,wasPropertyKeyModified:b,onKeyRename:_,onKeyRenameBlur:C,onRemoveProperty:E,onChange:A,onBlur:l,onFocus:u,registry:i,disabled:c,readonly:f,hideError:d})}const Oz=U.memo(Az);function _z(e){const{schema:t,uiSchema:r={},formData:i,errorSchema:a,fieldPathId:n,name:s,required:o=!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:x}=v,h=U.useRef(i);h.current=i;const y=U.useMemo(()=>g.retrieveSchema(t,i,!0),[g,t,i]),S=U.useMemo(()=>me(r,w),[r,w]),A=U.useMemo(()=>y.properties??{},[y.properties]),_=e.childFieldPathId??n,C=U.useRef({previousKey:"",currentKey:void 0}),[E,O]=U.useState(()=>lv(A)),R=U.useMemo(()=>{const V=new Set(lv(A));return Object.keys(A).filter(W=>!V.has(W))},[A]),T=S.title??y.title??k??s,D=S.description??y.description,L=bs(p,y,o,r),H=ma(i);let Y=[];const Z=U.useCallback((V,W)=>{const{duplicateKeySuffixSeparator:K="-"}=me(r,w);let X=0,$=V;for(;qe(W,$);)X+=1,$=`${V}${K}${X}`;return $},[r,w]),P=U.useCallback(()=>{if(!(y.additionalProperties||y.patternProperties))return;const V={...i},W=Z("newKey",V);if(y.patternProperties)lt(V,W,null);else{let K,X,$;if(Ue(y.additionalProperties)){K=y.additionalProperties.type,X=y.additionalProperties.const,$=y.additionalProperties.default;let J=y.additionalProperties;at in J&&(J=g.retrieveSchema({[at]:J[at]},i),K=J.type,X=J.const,$=g.getDefaultFormState(J,$)),!K&&(Le in J||Ae in J)&&(K="object")}const q=X??$??Ez(b,K);lt(V,W,q)}C.current.previousKey===W&&(C.current.currentKey=W,C.current.previousKey=Z(W,V)),O(K=>[...K,W]),d(V,_.path)},[i,d,b,g,_,Z,y]),F=U.useCallback((V,W)=>{if(V!==W){const K=h.current,X=Z(W,K),$={...K},q={[V]:X},J=Object.keys($).map(ie=>({[Object.hasOwn(q,ie)?q[ie]:ie]:$[ie]})),G=Object.assign({},...J);h.current=G,V!==C.current.currentKey&&(C.current.previousKey=V),C.current.currentKey=X,O(ie=>ie.map(re=>re===V?X:re)),d(G,_.path)}},[d,_,Z]),z=U.useCallback(V=>{O(W=>W.filter(K=>K!==V)),d(Z1,[..._.path,V])},[d,_]),I=U.useCallback(V=>C.current.currentKey===V?C.current.previousKey:V,[]);if(!L||H)try{const V=new Set(R),W=E.filter(K=>Object.hasOwn(A,K)&&!V.has(K));Y=$F([...R,...W],S.order)}catch(V){return j.jsxs("div",{children:[j.jsx("p",{className:"rjsf-config-error",style:{color:"red"},children:j.jsx(Cs,{options:{disableParsingRawHTML:!0},children:b(_e.InvalidObjectField,[s||"root",V.message])})}),j.jsx("pre",{children:JSON.stringify(y)})]})}const N=ge("ObjectFieldTemplate",p,S),M=L?j.jsx(x,{...e,fieldPathId:_,schema:y}):void 0,B={title:S.label===!1?"":T,description:S.label===!1?void 0:D,properties:Y.map(V=>{var q;const W=Q1((q=y.properties)==null?void 0:q[V]),K=W?r.additionalProperties:r[V],X=me(K).widget==="hidden";return{content:j.jsx(Oz,{propertyName:V,required:Cz(y,V),schema:ae(y,[ze,V],{}),uiSchema:K,errorSchema:ae(a,[V]),fieldPathId:_,formData:ae(i,[V]),handleKeyRename:F,handleRemoveProperty:z,addedByAdditionalProperties:W,onChange:d,onBlur:f,onFocus:m,registry:p,disabled:l,readonly:u,hideError:c},I(V)),name:V,readonly:u,disabled:l,required:o,hidden:X}}),readonly:u,disabled:l,required:o,fieldPathId:n,uiSchema:r,errorSchema:a,schema:y,formData:i,registry:p,optionalDataControl:M,className:L?"rjsf-optional-object-field":void 0};return j.jsx(N,{...B,onAddProperty:P})}function Pz(e){const{schema:t,uiSchema:r={},formData:i,disabled:a=!1,readonly:n=!1,onChange:s,errorSchema:o,fieldPathId:l,registry:u}=e,{globalUiOptions:c={},schemaUtils:f,translateString:m}=u,d=me(r,c),p=ge("OptionalDataControlsTemplate",u,d),k=ma(i);let v,g,b,w;if(a||n)v=Wu(l,"Msg"),g=k?void 0:m(_e.OptionalObjectEmptyMsg);else{const x=k?_e.OptionalObjectRemove:_e.OptionalObjectAdd;g=m(x),k?(v=Wu(l,"Remove"),w=()=>s(void 0,l.path,o)):(v=Wu(l,"Add"),b=()=>{let h=f.getDefaultFormState(t,i,"excludeObjectChildren");h===void 0&&(h=vr(t)==="array"?[]:{}),s(h,l.path,o)})}return g&&j.jsx(p,{id:v,registry:u,schema:t,uiSchema:r,label:g,onAddClick:b,onRemoveClick:w})}const Iz={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function Tz(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 s=vr(e),o=Array.isArray(s)?s[0]:s||"",l=e.$id;let u=Iz[o];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 jz(e){const{schema:t,fieldPathId:r,uiSchema:i,formData:a,errorSchema:n,name:s,onChange:o,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:x}=g,h=r[nt],y=U.useCallback((ke,Pe,de,Ve)=>o(ke,Pe,de,Ve||h),[h,o]);if(t[od])return j.jsx(x,{...e});const S=zF(t,i,m),A=me(S,v),_=ge("FieldTemplate",m,A),C=ge("DescriptionFieldTemplate",m,A),E=ge("FieldHelpTemplate",m,A),O=ge("FieldErrorTemplate",m,A),R=p.retrieveSchema(t,a),T=Tz(R,A,m),L=!!R.deprecated?A.deprecatedHandling??"label":void 0,H=!!(A.disabled??e.disabled)||L==="disable",Y=!!(A.readonly??(e.readonly||e.schema.readOnly||R.readOnly)),Z=A.hideError,P=Z===void 0?e.hideError:!!Z,F=!!(A.autofocus??e.autofocus);if(Object.keys(R).length===0)return null;let z=p.getDisplayLabel(R,S,v);const I=A.field&&A.fieldReplacesAnyOrOneOf===!0;let N,M,B={fieldPathId:r};if((Le in R||Ae in R)&&!I&&!p.isSelect(R)){R[Le]?(N=b,M=R[Le].map(de=>p.retrieveSchema(Ue(de)?de:{},a))):R[Ae]&&(N=w,M=R[Ae].map(de=>p.retrieveSchema(Ue(de)?de:{},a)));const ke=bs(m,R,f,S),Pe=ma(a);z=z&&(!ke||Pe),B={childFieldPathId:r,fieldPathId:Tr("XxxOf",k,r)}}const{__errors:V,...W}=n||{},K=Qa(S,["ui:classNames","classNames","ui:style"]);An in K&&(K[An]=Qa(K[An],["classNames","style"]));const X=j.jsx(T,{...e,onChange:y,...B,schema:R,uiSchema:K,disabled:H,readonly:Y,hideError:P,autofocus:F,errorSchema:W,rawErrors:V}),$=r[nt];let q;d?q=s:q=En in R?s:A.title||e.schema.title||R.title||e.title||s,L==="label"&&(q=m.translateString(_e.DeprecatedLabel,[q]));const J=A.description||e.schema.description||R.description||"",{help:G}=A,ie=A.widget==="hidden"||L==="hide",re=["rjsf-field",`rjsf-field-${vr(R)}`];!P&&V&&V.length>0&&re.push("rjsf-field-error"),A.classNames&&re.push(A.classNames);const ue=j.jsx(E,{help:G,fieldPathId:r,schema:R,uiSchema:S,hasErrors:!P&&V&&V.length>0,registry:m}),ye=P||N&&!p.isSelect(R)?void 0:j.jsx(O,{errors:V,errorSchema:n,fieldPathId:r,schema:R,uiSchema:S,registry:m}),we={description:j.jsx(C,{id:Bn($),description:J,schema:R,uiSchema:S,registry:m}),rawDescription:J,help:ue,rawHelp:typeof G=="string"?G:void 0,errors:ye,rawErrors:P?void 0:V,fieldPathId:r,id:$,label:q,hidden:ie,onChange:o,onKeyRename:l,onKeyRenameBlur:u,onRemoveProperty:c,required:f,disabled:H,readonly:Y,hideError:P,displayLabel:z,classNames:re.join(" ").trim(),style:A.style,formData:a,schema:R,uiSchema:S,registry:m};return j.jsx(_,{...we,children:j.jsxs(j.Fragment,{children:[X,N&&j.jsx(N,{name:s,disabled:H,readonly:Y,hideError:P,errorSchema:n,formData:a,fieldPathId:r,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:M,registry:m,required:f,schema:R,uiSchema:S})]})})}const Rz=U.memo(jz,(e,t)=>{const{experimental_componentUpdateStrategy:r="customDeep"}=t.registry.globalFormOptions;return r==="always"?!1:r==="shallow"?vf(e,t):$e(e,t)});function Nz(e){const{schema:t,name:r,uiSchema:i,fieldPathId:a,formData:n,required:s,disabled:o=!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:x,globalUiOptions:h}=d,y=x.isSelect(t)?pi(t,i):void 0;let S=y?"select":"text";b&&FF(t,b,w)&&(S=b);const{widget:A=S,placeholder:_="",title:C,...E}=me(i),O=x.getDisplayLabel(t,i,h),R=C??v??g??r,T=Wr(t,A,w),D=U.useCallback((L,H,Y)=>c(L,a.path,H,Y),[c,a]);return j.jsx(T,{options:{...E,enumOptions:y},schema:t,uiSchema:i,id:a.$id,name:r,label:R,hideLabel:!O,hideError:k,value:n,onChange:D,onBlur:f,onFocus:m,required:s,disabled:o,readonly:l,autofocus:u,registry:d,placeholder:_,rawErrors:p,htmlName:a.name})}function Fz(){return{AnyOfField:Py,ArrayField:Eq,BooleanField:Aq,CyclicSchemaField:Oq,FallbackField:Tq,LayoutGridField:Vd,LayoutHeaderField:Zq,LayoutMultiSchemaField:Qq,NumberField:n$,ObjectField:_z,OneOfField:Py,OptionalDataControlsField:Pz,SchemaField:Rz,StringField:Nz,NullField:e$}}function Dz(e){const{fieldPathId:t,description:r,registry:i,schema:a,uiSchema:n}=e,s=me(n,i.globalUiOptions),{label:o=!0}=s;if(!r||!o)return null;const l=ge("DescriptionFieldTemplate",i,s);return j.jsx(l,{id:Bn(t),description:r,schema:a,uiSchema:n,registry:i})}function Mz(e){const{disabled:t,hasCopy:r,hasMoveDown:i,hasMoveUp:a,hasRemove:n,fieldPathId:s,onCopyItem:o,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 j.jsxs(j.Fragment,{children:[(a||i)&&j.jsx(v,{id:ir(s,"moveUp"),className:"rjsf-array-item-move-up",disabled:t||f||!a,onClick:c,uiSchema:d,registry:m}),(a||i)&&j.jsx(k,{id:ir(s,"moveDown"),className:"rjsf-array-item-move-down",disabled:t||f||!i,onClick:u,uiSchema:d,registry:m}),r&&j.jsx(p,{id:ir(s,"copy"),className:"rjsf-array-item-copy",disabled:t||f,onClick:o,uiSchema:d,registry:m}),n&&j.jsx(g,{id:ir(s,"remove"),className:"rjsf-array-item-remove",disabled:t||f,onClick:l,uiSchema:d,registry:m})]})}function Lz(e){const{children:t,className:r,buttonsProps:i,displayLabel:a,hasDescription:n,hasToolbar:s,registry:o,uiSchema:l}=e,u=me(l),c=ge("ArrayFieldItemButtonsTemplate",o,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 j.jsxs("div",{className:r,style:d,children:[j.jsx("div",{className:s?"col-xs-9 col-md-10 col-xl-11":"col-xs-12",children:t}),s&&j.jsx("div",{className:"col-xs-3 col-md-2 col-xl-1 array-item-toolbox",children:j.jsx("div",{className:"btn-group",style:p,children:j.jsx(c,{...i,style:f})})})]})}function qz(e){const{canAdd:t,className:r,disabled:i,fieldPathId:a,uiSchema:n,items:s,optionalDataControl:o,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 j.jsxs("fieldset",{className:r,id:a.$id,children:[j.jsx(v,{fieldPathId:a,title:p.title||d,required:f,schema:m,uiSchema:n,registry:c,optionalDataControl:g?o:void 0}),j.jsx(k,{fieldPathId:a,description:p.description||m.description,schema:m,uiSchema:n,registry:c}),g?void 0:o,j.jsx("div",{className:"row array-item-list",children:s}),t&&j.jsx(b,{id:ir(a,"add"),className:"rjsf-array-item-add",onClick:l,disabled:i||u,uiSchema:n,registry:c})]})}function $z(e){const{fieldPathId:t,title:r,schema:i,uiSchema:a,required:n,registry:s,optionalDataControl:o}=e,l=me(a,s.globalUiOptions),{label:u=!0}=l;if(!r||!u)return null;const c=ge("TitleFieldTemplate",s,l);return j.jsx(c,{id:Fl(t),title:r,required:n,schema:i,uiSchema:a,registry:s,optionalDataControl:o})}function zz(e){const{id:t,schema:r}=e,{examples:i,default:a}=r;return Array.isArray(i)?j.jsx("datalist",{id:Fd(t),children:i.concat(a!==void 0&&!i.map(String).includes(String(a))?[a]:[]).map(n=>j.jsx("option",{value:n},String(n)))},`datalist_${t}`):null}function Uz(e){const{id:t,name:r,htmlName:i,value:a,readonly:n,disabled:s,autofocus:o,onBlur:l,onFocus:u,onChange:c,onChangeOverride:f,options:m,schema:d,uiSchema:p,registry:k,rawErrors:v,type:g,hideLabel:b,hideError:w,...x}=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={...x,...OF(d,g,m)};let S;y.type==="number"||y.type==="integer"?S=a||a===0?a:"":S=a??"";const A=U.useCallback(({target:{value:O}})=>c(O===""?m.emptyValue:O),[c,m]),_=U.useCallback(({target:O})=>l(t,O==null?void 0:O.value),[l,t]),C=U.useCallback(({target:O})=>u(t,O==null?void 0:O.value),[u,t]),E=U.useCallback(O=>{O.preventDefault(),O.stopPropagation(),c(m.emptyValue??"")},[c,m.emptyValue]);return j.jsxs(j.Fragment,{children:[j.jsx("input",{id:t,name:i||t,className:"form-control",readOnly:n,disabled:s,autoFocus:o,value:S,...y,list:d.examples?Fd(t):void 0,onChange:f||A,onBlur:_,onFocus:C,"aria-describedby":Rr(t,!!d.examples)}),m.allowClearTextInputs&&!n&&!s&&S&&j.jsx(h,{registry:k,onClick:E}),j.jsx(zz,{id:t,schema:d})]})}function Bz(e){const{iconType:t="default",icon:r,className:i,uiSchema:a,registry:n,...s}=e;return j.jsx("button",{type:"button",className:`btn btn-${t} ${i}`,...s,children:j.jsx("i",{className:`glyphicon glyphicon-${r}`})})}const zn=U.memo(Bz);function Vz(e){const{registry:{translateString:t}}=e;return j.jsx(zn,{title:t(_e.CopyButton),...e,icon:"copy"})}const Hz=U.memo(Vz);function Wz(e){const{registry:{translateString:t}}=e;return j.jsx(zn,{title:t(_e.MoveDownButton),...e,icon:"arrow-down"})}const Kz=U.memo(Wz);function Gz(e){const{registry:{translateString:t}}=e;return j.jsx(zn,{title:t(_e.MoveUpButton),...e,icon:"arrow-up"})}const Jz=U.memo(Gz);function Yz(e){const{registry:{translateString:t}}=e;return j.jsx(zn,{title:t(_e.RemoveButton),...e,iconType:"danger",icon:"remove"})}const Xz=U.memo(Yz);function Zz({id:e,className:t,onClick:r,disabled:i,registry:a,...n}){const{translateString:s}=a;return j.jsx(zn,{id:e,iconType:"default",icon:"remove",className:"btn-clear col-xs-12",title:s(_e.ClearButton),onClick:r,disabled:i,registry:a,...n})}const Qz=U.memo(Zz);function e4({id:e,className:t,onClick:r,disabled:i,registry:a}){const{translateString:n}=a;return j.jsx("div",{className:"row",children:j.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:j.jsx(zn,{id:e,iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:n(_e.AddButton),onClick:r,disabled:i,registry:a})})})}function t4({uiSchema:e}){const{submitText:t,norender:r,props:i={}}=jd(e);return r?null:j.jsx("div",{children:j.jsx("button",{type:"submit",...i,className:`btn btn-info ${i.className||""}`,children:t})})}function r4(){return{SubmitButton:t4,AddButton:e4,CopyButton:Hz,MoveDownButton:Kz,MoveUpButton:Jz,RemoveButton:Xz,ClearButton:Qz}}function n4(e){const{name:t,fieldPathId:r,registry:i,onExpand:a}=e,{translateString:n}=i,s=`${r[nt]}-button`;return j.jsxs("div",{style:{marginTop:"1rem"},children:[j.jsx("div",{className:"text-danger",children:n(_e.CycleDetected,[t])}),j.jsxs("div",{children:[j.jsx("button",{id:s,type:"button",className:"btn btn-sm btn-warning",onClick:()=>a(r[nt]),children:n(_e.ExpandButton)})," "]})]})}const e0=Rd();function t0({description:e,registry:t,uiSchema:r={}}){const{globalUiOptions:i}=t;return me(r,i).enableMarkdownInDescription&&typeof e=="string"?j.jsx(Cs,{options:{disableParsingRawHTML:!0},"data-testid":e0.markdown,children:e}):e}t0.TEST_IDS=e0;function i4(e){const{id:t,description:r,registry:i,uiSchema:a}=e;return r?j.jsx("div",{id:t,className:"field-description",children:j.jsx(t0,{description:r,registry:i,uiSchema:a})}):null}function a4({errors:e,registry:t}){const{translateString:r}=t;return j.jsxs("div",{className:"panel panel-danger errors",children:[j.jsx("div",{className:"panel-heading",children:j.jsx("h3",{className:"panel-title",children:r(_e.ErrorsLabel)})}),j.jsx("ul",{className:"list-group",children:e.map((i,a)=>j.jsx("li",{className:"list-group-item text-danger",children:i.stack},a))})]})}function s4(e){const{schema:t,registry:r,typeSelector:i,schemaField:a}=e,n=ge("MultiSchemaFieldTemplate",r);return j.jsx(n,{selector:i,optionSchemaField:a,schema:t,registry:r})}function o4(e){const{errors:t=[],fieldPathId:r}=e;if(t.length===0)return null;const i=Nd(r);return j.jsx("div",{children:j.jsx("ul",{id:i,className:"error-detail bs-callout bs-callout-info",children:t.filter(a=>!!a).map((a,n)=>j.jsx("li",{className:"text-danger",children:a},n))})})}const r0=Rd();function n0({help:e,registry:t,uiSchema:r={}}){const{globalUiOptions:i}=t;return me(r,i).enableMarkdownInHelp&&typeof e=="string"?j.jsx(Cs,{options:{disableParsingRawHTML:!0},"data-testid":r0.markdown,children:e}):e}n0.TEST_IDS=r0;function l4(e){const{fieldPathId:t,help:r,uiSchema:i,registry:a}=e;return r?j.jsx("div",{id:Dd(t),className:"help-block",children:j.jsx(n0,{help:r,registry:a,uiSchema:i})}):null}const u4="*";function i0(e){const{label:t,required:r,id:i}=e;return t?j.jsxs("label",{className:"control-label",htmlFor:i,children:[t,r&&j.jsx("span",{className:"required",children:u4})]}):null}function c4(e){const{id:t,label:r,children:i,errors:a,help:n,description:s,hidden:o,required:l,displayLabel:u,registry:c,uiSchema:f}=e,m=me(f),d=ge("WrapIfAdditionalTemplate",c,m);if(o)return j.jsx("div",{className:"hidden",children:i});const p=m.widget==="checkbox";return j.jsxs(d,{...e,children:[u&&!p&&j.jsx(i0,{label:r,required:l,id:t}),u&&s?s:null,i,a,n]})}function f4(e){const{children:t,column:r,className:i,...a}=e;return j.jsx("div",{className:i,...a,children:t})}function d4(e){const{selector:t,optionSchemaField:r}=e;return j.jsxs("div",{className:"panel panel-default panel-body",children:[j.jsx("div",{className:"form-group",children:t}),r]})}function m4(e){const{className:t,description:r,disabled:i,formData:a,fieldPathId:n,onAddProperty:s,optionalDataControl:o,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:x}}=c.templates;return j.jsxs("fieldset",{className:t,id:n.$id,children:[d&&j.jsx(v,{id:Fl(n),title:d,required:f,schema:m,uiSchema:p,registry:c,optionalDataControl:w?o:void 0}),r&&j.jsx(g,{id:Bn(n),description:r,schema:m,uiSchema:p,registry:c}),w?void 0:o,l.map(h=>h.content),qb(m,p,a)&&j.jsx(x,{id:ir(n,"add"),className:"rjsf-object-property-expand",onClick:s,disabled:i||u,uiSchema:p,registry:c})]})}function p4(e){const{id:t,registry:r,label:i,onAddClick:a,onRemoveClick:n}=e;return a?j.jsx(zn,{id:t,registry:r,icon:"plus",className:"rjsf-add-optional-data btn-sm",onClick:a,title:i}):n?j.jsx(zn,{id:t,registry:r,icon:"remove",className:"rjsf-remove-optional-data btn-sm",onClick:n,title:i}):j.jsx("em",{id:t,children:i})}const h4="*";function g4(e){const{id:t,title:r,required:i,optionalDataControl:a}=e;return j.jsxs("legend",{id:t,children:[r,i&&j.jsx("span",{className:"required",children:h4}),a&&j.jsx("span",{className:"pull-right",style:{marginBottom:"2px"},children:a})]})}function y4(e){const{schema:t,fieldPathId:r,reason:i,registry:a}=e,{translateString:n}=a;let s=_e.UnsupportedField;const o=[];return r!=null&&r.$id&&(s=_e.UnsupportedFieldWithId,o.push(r.$id)),i&&(s=s===_e.UnsupportedField?_e.UnsupportedFieldWithReason:_e.UnsupportedFieldWithIdAndReason,o.push(i)),j.jsxs("div",{className:"unsupported-field",children:[j.jsx("p",{children:j.jsx(Cs,{options:{disableParsingRawHTML:!0},children:n(s,o)})}),t&&j.jsx("pre",{children:JSON.stringify(t,null,2)})]})}function v4(e){const{id:t,classNames:r,style:i,disabled:a,displayLabel:n,label:s,onKeyRenameBlur:o,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:x}=b.ButtonTemplates,h=w(_e.KeyLabel,[s]),y=En in m,S=!!u,A=["form-group",r];!d&&p&&p.length>0&&A.push("has-error has-danger");const _=A.join(" ").trim();if(!y)return j.jsx("div",{className:_,style:i,children:k});const C=S?46:26;return j.jsx("div",{className:_,style:i,children:j.jsxs("div",{className:"row",children:[j.jsx("div",{className:"col-xs-5 form-additional",children:j.jsxs("div",{className:"form-group",children:[n&&j.jsx(i0,{label:h,required:f,id:`${t}-key`}),n&&u&&j.jsx("div",{children:" "}),j.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:o,defaultValue:s},s)]})}),j.jsx("div",{className:"form-additional form-group col-xs-5",children:k}),j.jsx("div",{className:"col-xs-2",style:{marginTop:n?`${C}px`:void 0},children:j.jsx(x,{id:ir(t,"remove"),className:"rjsf-object-property-remove btn-block",style:{border:"0"},disabled:a||c,onClick:l,uiSchema:v,registry:g})})]})})}function b4(){return{ArrayFieldDescriptionTemplate:Dz,ArrayFieldItemTemplate:Lz,ArrayFieldItemButtonsTemplate:Mz,ArrayFieldTemplate:qz,ArrayFieldTitleTemplate:$z,ButtonTemplates:r4(),BaseInputTemplate:Uz,CyclicSchemaExpandTemplate:n4,DescriptionFieldTemplate:i4,ErrorListTemplate:a4,FallbackFieldTemplate:s4,FieldTemplate:c4,FieldErrorTemplate:o4,FieldHelpTemplate:l4,GridTemplate:f4,MultiSchemaFieldTemplate:d4,ObjectFieldTemplate:m4,OptionalDataControlsTemplate:p4,TitleFieldTemplate:g4,UnsupportedFieldTemplate:y4,WrapIfAdditionalTemplate:v4}}function k4({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return j.jsx(r,{time:e,...t})}function w4(e){const{disabled:t=!1,readonly:r=!1,autofocus:i=!1,options:a,id:n,name:s,registry:o,onBlur:l,onFocus:u}=e,{translateString:c}=o,{elements:f,handleChange:m,handleClear:d,handleSetNow:p}=KF(e);return j.jsxs("ul",{className:"list-inline",children:[f.map((k,v)=>j.jsx("li",{className:"list-inline-item",children:j.jsx(WF,{rootId:n,name:s,select:m,...k,disabled:t,readonly:r,registry:o,onBlur:l,onFocus:u,autofocus:i&&v===0})},v)),(a.hideNowButton!=="undefined"?!a.hideNowButton:!0)&&j.jsx("li",{className:"list-inline-item",children:j.jsx("button",{type:"button",className:"btn btn-info btn-now",onClick:p,children:c(_e.NowLabel)})}),(a.hideClearButton!=="undefined"?!a.hideClearButton:!0)&&j.jsx("li",{className:"list-inline-item",children:j.jsx("button",{type:"button",className:"btn btn-warning btn-clear",onClick:d,children:c(_e.ClearLabel)})})]})}function x4({id:e,disabled:t,options:r,value:i,autofocus:a=!1,readonly:n,onChange:s,onBlur:o,onFocus:l,htmlName:u}){const{inline:c=!1,enumOptions:f,enumDisabled:m,emptyValue:d}=r,p=vs(r),k=Array.isArray(i)?i:[i],v=U.useCallback(({target:b})=>o(e,_r(b==null?void 0:b.value,f,p,d)),[o,e,f,d,p]),g=U.useCallback(({target:b})=>l(e,_r(b==null?void 0:b.value,f,p,d)),[l,e,f,d,p]);return j.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(f)&&f.map((b,w)=>{const x=da(b.value,k),h=Array.isArray(m)&&m.includes(b.value),y=t||h||n?"disabled":"",S=_=>{_.target.checked?s(a1(w,k,f)):s(n1(w,k,f))},A=j.jsxs("span",{children:[j.jsx("input",{type:"checkbox",id:Dl(e,w),name:u||e,checked:x,value:ys(b.value,w,p),disabled:t||h||n,autoFocus:a&&w===0,onChange:S,onBlur:v,onFocus:g,"aria-describedby":Rr(e)}),j.jsx("span",{children:b.label})]});return c?j.jsx("label",{className:`checkbox-inline ${y}`,children:A},String(b.value)):j.jsx("div",{className:`checkbox ${y}`,children:j.jsx("label",{children:A})},String(b.value))})})}function S4({schema:e,uiSchema:t,options:r,id:i,value:a,disabled:n,readonly:s,label:o,hideLabel:l,autofocus:u=!1,onBlur:c,onFocus:f,onChange:m,registry:d,htmlName:p}){const k=ge("DescriptionFieldTemplate",d,r),v=Ha(e),g=U.useCallback(S=>m(S.target.checked),[m]),b=U.useCallback(S=>c(i,S.target.checked),[c,i]),w=U.useCallback(S=>f(i,S.target.checked),[f,i]),y=me(t).widget==="checkbox"?void 0:r.description??e.description;return j.jsxs("div",{className:`checkbox ${n||s?"disabled":""}`,children:[!l&&y&&j.jsx(k,{id:Bn(i),description:y,schema:e,uiSchema:t,registry:d}),j.jsxs("label",{children:[j.jsx("input",{type:"checkbox",id:i,name:p||i,checked:typeof a>"u"?!1:a,required:v,disabled:n||s,autoFocus:u,onChange:g,onBlur:b,onFocus:w,"aria-describedby":Rr(i)}),MF(j.jsx("span",{children:o}),l)]})]})}function C4(e){const{disabled:t,readonly:r,options:i,registry:a}=e,n=ge("BaseInputTemplate",a,i);return j.jsx(n,{type:"color",...e,disabled:t||r})}function E4(e){const{onChange:t,value:r,options:i,registry:a}=e,n=ge("BaseInputTemplate",a,i);return j.jsx(n,{type:"datetime-local",...e,value:ZF(r),onChange:s=>t(LF(s))})}function A4(e){const{onChange:t,options:r,registry:i}=e,a=ge("BaseInputTemplate",i,r),n=U.useCallback(s=>t(s||void 0),[t]);return j.jsx(a,{type:"date",...e,onChange:n})}function O4(e){const{options:t,registry:r}=e,i=ge("BaseInputTemplate",r,t);return j.jsx(i,{type:"email",...e})}function _4({fileInfo:e,registry:t}){const{translateString:r}=t,{dataURL:i,type:a,name:n}=e;if(!i)return null;const s=r(_e.PreviewLabel);return["image/jpeg","image/png"].includes(a)?j.jsx("img",{src:i,alt:s,style:{maxWidth:"100%"},className:"file-preview"}):j.jsxs(j.Fragment,{children:[" ",j.jsx("a",{download:`preview-${n}`,href:i,className:"file-download",children:s})]})}function P4({filesInfo:e,registry:t,preview:r,onRemove:i,options:a}){if(e.length===0)return null;const{translateString:n}=t,{RemoveButton:s}=ge("ButtonTemplates",t,a);return j.jsx("ul",{className:"file-info",children:e.map((o,l)=>{const{name:u,size:c,type:f}=o,m=()=>i(l);return j.jsxs("li",{children:[j.jsx(Cs,{children:n(_e.FilesInfo,[u,f,String(c)])}),r&&j.jsx(_4,{fileInfo:o,registry:t}),j.jsx(s,{onClick:m,registry:t})]},l)})})}function I4(e){const{disabled:t,readonly:r,required:i,multiple:a,onChange:n,value:s,options:o,registry:l}=e,{filesInfo:u,handleChange:c,handleRemove:f}=XF(s,n,a),m=ge("BaseInputTemplate",l,o),d=p=>{p.target.files&&c(p.target.files)};return j.jsxs("div",{children:[j.jsx(m,{...e,disabled:t||r,type:"file",required:s?!1:i,onChangeOverride:d,value:"",accept:o.accept?String(o.accept):void 0}),j.jsx(P4,{filesInfo:u,onRemove:f,registry:l,preview:o.filePreview,options:o})]})}function T4({id:e,value:t,htmlName:r}){return j.jsx("input",{type:"hidden",id:e,name:r||e,value:typeof t>"u"?"":t})}function j4(e){const{options:t,registry:r}=e,i=ge("BaseInputTemplate",r,t);return j.jsx(i,{type:"password",...e})}function R4({options:e,value:t,required:r,disabled:i,readonly:a,autofocus:n=!1,onBlur:s,onFocus:o,onChange:l,id:u,htmlName:c}){const{enumOptions:f,enumDisabled:m,inline:d,emptyValue:p}=e,k=vs(e),v=U.useCallback(({target:b})=>s(u,_r(b==null?void 0:b.value,f,k,p)),[s,f,p,u,k]),g=U.useCallback(({target:b})=>o(u,_r(b==null?void 0:b.value,f,k,p)),[o,f,p,u,k]);return j.jsx("div",{className:"field-radio-group",id:u,role:"radiogroup",children:Array.isArray(f)&&f.map((b,w)=>{const x=da(b.value,t),h=Array.isArray(m)&&m.includes(b.value),y=i||h||a?"disabled":"",S=()=>l(b.value),A=j.jsxs("span",{children:[j.jsx("input",{type:"radio",id:Dl(u,w),checked:x,name:c||u,required:r,value:ys(b.value,w,k),disabled:i||h||a,autoFocus:n&&w===0,onChange:S,onBlur:v,onFocus:g,"aria-describedby":Rr(u)}),j.jsx("span",{children:b.label})]});return d?j.jsx("label",{className:`radio-inline ${y}`,children:A},String(b.value)):j.jsx("div",{className:`radio ${y}`,children:j.jsx("label",{children:A})},String(b.value))})})}function N4(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return j.jsxs("div",{className:"field-range-wrapper",children:[j.jsx(r,{type:"range",...e}),j.jsx("span",{className:"range-view",children:t})]})}function F4({id:e,value:t,required:r,disabled:i,readonly:a,autofocus:n,onChange:s,onFocus:o,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=U.useCallback(x=>{!i&&!a&&s(x)},[s,i,a]),g=U.useCallback(x=>{if(o){const h=Number(x.target.dataset.value);o(e,h)}},[o,e]),b=U.useCallback(x=>{if(l){const h=Number(x.target.dataset.value);l(e,h)}},[l,e]),w=x=>d==="heart"?x?"♥":"♡":x?"★":"☆";return j.jsxs("div",{className:"rating-widget",style:{display:"inline-flex",fontSize:"1.5rem",cursor:i||a?"default":"pointer"},children:[[...Array(p)].map((x,h)=>{const y=k+h,S=y<=t;return j.jsx("span",{onClick:()=>v(y),onKeyDown:A=>(A.key==="Enter"||A.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:S?"#FFD700":"#ccc",padding:"0 0.2rem",transition:"color 0.2s",userSelect:"none"},children:w(S)},h)}),j.jsx("input",{type:"hidden",id:e,name:f||e,value:t||"",required:r,disabled:i||a,"aria-hidden":"true"})]})}function zc(e,t){return t?Array.from(e.target.options).slice().filter(r=>r.selected).map(r=>r.value):e.target.value}function D4({schema:e,id:t,options:r,value:i,required:a,disabled:n,readonly:s,multiple:o=!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=o?[]:"",x=vs(r),h=U.useCallback(C=>{const E=zc(C,o);return f(t,_r(E,v,x,b))},[f,t,o,v,b,x]),y=U.useCallback(C=>{const E=zc(C,o);return c(t,_r(E,v,x,b))},[c,t,o,v,b,x]),S=U.useCallback(C=>{const E=zc(C,o);return u(_r(E,v,x,b))},[u,o,v,b,x]),A=yF(i,v,o,x,w),_=!o&&e.default===void 0;return qF(t,e,v,o),j.jsxs(j.Fragment,{children:[j.jsx(UF,{id:t,multiple:o,options:r,registry:p,uiSchema:k,value:i}),j.jsxs("select",{id:t,name:d||t,multiple:o,className:"form-control",value:A,required:a,disabled:n||s,autoFocus:l,onBlur:y,onFocus:h,onChange:S,"aria-describedby":Rr(t),children:[_&&j.jsx("option",{value:"",children:m}),Array.isArray(v)&&v.map(({value:C,label:E},O)=>{const R=g&&g.includes(C);return j.jsx("option",{value:ys(C,O,x),disabled:R,children:E},String(C))})]})]})}function M4({id:e,options:t,placeholder:r,value:i,required:a,disabled:n,readonly:s,autofocus:o=!1,onChange:l,onBlur:u,onFocus:c,htmlName:f}){const m=U.useCallback(({target:{value:k}})=>l(k===""?t.emptyValue:k),[l,t.emptyValue]),d=U.useCallback(({target:k})=>u(e,k==null?void 0:k.value),[u,e]),p=U.useCallback(({target:k})=>c(e,k==null?void 0:k.value),[e,c]);return j.jsx("textarea",{id:e,name:f||e,className:"form-control",value:i||"",placeholder:r,required:a,disabled:n,readOnly:s,autoFocus:o,rows:t.rows,onBlur:d,onFocus:p,onChange:m,"aria-describedby":Rr(e)})}function L4(e){const{options:t,registry:r}=e,i=ge("BaseInputTemplate",r,t);return j.jsx(i,{...e})}function q4(e){const{onChange:t,options:r,registry:i}=e,a=ge("BaseInputTemplate",i,r),n=U.useCallback(s=>t(s?`${s}:00`:void 0),[t]);return j.jsx(a,{type:"time",...e,onChange:n})}function $4(e){const{options:t,registry:r}=e,i=ge("BaseInputTemplate",r,t);return j.jsx(i,{type:"number",...e})}function z4(e){const{options:t,registry:r}=e,i=ge("BaseInputTemplate",r,t);return j.jsx(i,{type:"url",...e})}function U4(){return{AltDateWidget:w4,AltDateTimeWidget:k4,CheckboxWidget:S4,CheckboxesWidget:x4,ColorWidget:C4,DateWidget:A4,DateTimeWidget:E4,EmailWidget:O4,FileWidget:I4,HiddenWidget:T4,PasswordWidget:j4,RadioWidget:R4,RangeWidget:N4,RatingWidget:F4,SelectWidget:D4,TextWidget:L4,TextareaWidget:M4,TimeWidget:q4,UpDownWidget:$4,URLWidget:z4}}function B4(){return{fields:Fz(),templates:b4(),widgets:U4(),rootSchema:{},formContext:{},translateString:gF,globalFormOptions:{idPrefix:Fb,idSeparator:Db,useFallbackUiForUnsupportedType:!1}}}function Di(e,t){return{...Qk(e,["schema","uiSchema","fieldPathId","schemaUtils","formData","edit","errors","errorSchema"]),...t!==void 0&&{status:t}}}let V4=class ai extends U.Component{constructor(r){super(r);zt(this,"formElement");zt(this,"pendingChanges",[]);zt(this,"isProcessingUserChange",!1);zt(this,"getUsedFormData",(r,i)=>sF(r,i));zt(this,"getFieldNames",(r,i)=>oF(r,i));zt(this,"omitExtraData",r=>{const{schema:i,schemaUtils:a}=this.state;return a.omitExtraData(i,r)});zt(this,"setFieldValue",(r,i)=>{const{registry:a}=this.state,n=Array.isArray(r)?r:r.split("."),s=Tr("",a.globalFormOptions,n);this.onChange(i,n,void 0,s[nt])});zt(this,"onChange",(r,i,a,n)=>{this.pendingChanges.push({newValue:r,path:i,newErrorSchema:a,id:n}),this.pendingChanges.length===1&&this.processPendingChange()});zt(this,"reset",()=>{const{formData:r,initialFormData:i=ov,onChange:a}=this.props,o={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(o,()=>a==null?void 0:a(Di({...this.state,...o})))});zt(this,"onBlur",(r,i)=>{const{onBlur:a,omitExtraData:n,liveOmit:s,liveValidate:o}=this.props;if(a&&a(r,i),n===!0&&s==="onBlur"||o==="onBlur"){const{onChange:l,extraErrors:u}=this.props,{formData:c}=this.state;let f=c,m={formData:f};if(n===!0&&s==="onBlur"&&(f=this.omitExtraData(c),m={formData:f}),o==="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!$e(k,v)});this.setState(m,()=>{l&&d&&l(Di({...this.state,...m}),r)})}});zt(this,"onFocus",(r,i)=>{const{onFocus:a}=this.props;a&&a(r,i)});zt(this,"onSubmit",r=>{if(r.preventDefault(),r.target!==r.currentTarget)return;r.persist();const{omitExtraData:i,extraErrors:a,noValidate:n,onSubmit:s}=this.props;let{formData:o}=this.state;if(i===!0&&(o=this.omitExtraData(o)),n||this.validateFormWithFormData(o)){const l=a||{},u=a?Ld(a):[];this.setState({formData:o,errors:u,errorSchema:l,schemaValidationErrors:[],schemaValidationErrorSchema:{}},()=>{s&&s(Di({...this.state,formData:o},"submitted"),r)})}});zt(this,"submit",()=>{if(this.formElement.current){const r=new CustomEvent("submit",{cancelable:!0});r.preventDefault(),this.formElement.current.dispatchEvent(r),this.formElement.current.requestSubmit()}});zt(this,"validateFormWithFormData",r=>{const{extraErrors:i,extraErrorsBlockSubmit:a,focusOnFirstError:n,onError:s}=this.props,{errors:o}=this.state,l=this.validate(r),{errors:u,errorSchema:c}=i?ai.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},()=>{s?s(u):console.error("Form validation failed",u)})):u.length>0?this.setState({errors:u,errorSchema:c,schemaValidationErrors:[],schemaValidationErrorSchema:{}}):o.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,s=i??a;this.state={...this.getStateFromProps(r,s,void 0,void 0,void 0,!0),prevExtraErrors:r.extraErrors},n&&!$e(this.state.formData,s)&&n(Di(this.state)),this.formElement=U.createRef()}static getDerivedStateFromProps(r,i){if(r.extraErrors!==i.prevExtraErrors){const a={errors:i.schemaValidationErrors||[],errorSchema:i.schemaValidationErrorSchema||{}};let{errors:n,errorSchema:s}=a;return r.extraErrors&&({errors:n,errorSchema:s}=Ma(a,r.extraErrors)),i.customErrors&&({errors:n,errorSchema:s}=Ma({errors:n,errorSchema:s},i.customErrors.ErrorSchema,!0)),{prevExtraErrors:r.extraErrors,errors:n,errorSchema:s}}return null}getSnapshotBeforeUpdate(r,i){if(!$e(this.props,r)){const a=vh(this.props.formData,r.formData),n=vh(this.props.formData,this.state.formData),s=!$e(r.schema,this.props.schema),o=a.length>0||!$e(r.formData,this.props.formData),l=n.length>0||!$e(this.state.formData,this.props.formData),u=this.getStateFromProps(this.props,this.props.formData,s||o?void 0:this.state.retrievedSchema,s,a,!l),c=!$e(u,i);return{nextState:u,shouldUpdate:c}}return{shouldUpdate:!1}}componentDidUpdate(r,i,a){if(a.shouldUpdate){const{nextState:n}=a,s=!$e(n.formData,this.props.formData),o=this.isProcessingUserChange;if(this.isProcessingUserChange=!1,o&&s)return;s&&!$e(n.formData,i.formData)&&this.props.onChange&&this.props.onChange(Di(n)),this.setState(n)}}getStateFromProps(r,i,a,n=!1,s=[],o=!1,l=!1){var Z;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=mF(f,c,g,b));const x=w.getRootSchema();let h=i;i===ov?h=void 0:i===void 0&&d&&(h=u.formData);let y,S,A=!1;const _=[];do{y=w.getDefaultFormState(x,h,!1,u.initialDefaultsGenerated);const P=l?fr({formData:y}):"";if(S=this.updateRetrievedSchema(a??w.retrieveSchema(x,y)),l&&!_.includes(P)&&!$e(S,u.retrievedSchema)){const F=w.sanitizeDataForNewSchema(S,u.retrievedSchema,y);if(A=!$e(F,y),A){y=F,h=F;const z=fr({formData:F});A=!_.includes(z),_.push(z)}_.push(P)}else A=!1}while(A);const C=()=>r.noValidate||n?{errors:[],errorSchema:{}}:r.liveValidate?{errors:u.errors||[],errorSchema:u.errorSchema||{}}:{errors:u.schemaValidationErrors||[],errorSchema:u.schemaValidationErrorSchema||{}};let E,O,{schemaValidationErrors:R,schemaValidationErrorSchema:T}=u;if(v&&!o){const P=this.liveValidate(x,w,u.errorSchema,y,void 0,u.customErrors,a,a!==void 0);E=P.errors,O=P.errorSchema,R=P.schemaValidationErrors,T=P.schemaValidationErrorSchema}else{const P=C();if(E=P.errors,O=P.errorSchema,s.length>0&&!v){const z=s.reduce((I,N)=>(I[N]=void 0,I),{});T=Mn(P.errorSchema,z,"preventDuplicates"),O=T}const F=ai.mergeErrors({errorSchema:O,errors:E},r.extraErrors,u.customErrors);E=F.errors,O=F.errorSchema}const D=ai.getRegistry(r,x,w),L=$e(u.registry,D)?u.registry:D,H=u.fieldPathId&&((Z=u.fieldPathId)==null?void 0:Z[nt])===L.globalFormOptions.idPrefix?u.fieldPathId:Tr("",L.globalFormOptions);return{schemaUtils:w,schema:x,uiSchema:m,fieldPathId:H,formData:y,edit:p,errors:E,errorSchema:O,schemaValidationErrors:R,schemaValidationErrorSchema:T,retrievedSchema:S,initialDefaultsGenerated:!0,registry:L}}shouldComponentUpdate(r,i){const{experimental_componentUpdateStrategy:a="customDeep"}=this.props;return BF(this,r,i,a)}validate(r,i=this.state.schema,a,n){const s=a||this.state.schemaUtils,{customValidate:o,transformErrors:l,uiSchema:u}=this.props,c=n??i,f=r?JSON.parse(JSON.stringify(r)):void 0;return s.getValidator().validateFormData(f,c,o,l,u)}renderErrors(r){const{errors:i,errorSchema:a,schema:n,uiSchema:s}=this.state,o=me(s),l=ge("ErrorListTemplate",r,o);return i!=null&&i.length?j.jsx(l,{errors:i,errorSchema:a||{},schema:n,uiSchema:s,registry:r}):null}static mergeErrors(r,i,a){let{errorSchema:n,errors:s}=r;if(i){const o=Ma(r,i);n=o.errorSchema,s=o.errors}if(a){const o=Ma({errors:s,errorSchema:n},a.ErrorSchema,!0);n=o.errorSchema,s=o.errors}return{errors:s,errorSchema:n}}liveValidate(r,i,a,n,s,o,l,u=!1){const c=this.validate(n,r,i,l),{errors:f}=c;let{errorSchema:m}=c;u&&(m=Mn(a,c.errorSchema,"preventDuplicates"));const d=f,p=m;return{...ai.mergeErrors({errorSchema:m,errors:f},s,o),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:s,omitExtraData:o,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:x,retrievedSchema:h}=this.state,y=b;const S=g.path[0]||"",A=!i||i.length===0||i.length===1&&i[0]===S;let _=A?r:al(p);const C=be(_)&&Object.keys(_).length>0&&Object.values(_).every(L=>L===void 0),E=p==null,O=C&&E?void 0:_;if(be(_)||Array.isArray(_)){let L=!1;if(r===Z1)hq(_,i);else if(!A){let Z=r;if(r===void 0)if(typeof i[i.length-1]=="number")Z=null;else{const{field:F}=k.findFieldInSchema(v,i,p),z=F;!(z&&(Ae in z||Le in z))&&z!==void 0&&(L=!0)}L?lt(_,i,void 0):lt(_,i,Z)}const H=h&&!A&&!be(r)&&!Array.isArray(r)&&!m&&!d,Y=this.getStateFromProps(this.props,O,void 0,void 0,void 0,!0,H);_=Y.formData,h=Y.retrievedSchema,L&&_&&lt(_,i,void 0)}const R=!u&&(c===!0||c==="onChange");let T={formData:_,retrievedSchema:h},D=_;if(o===!0&&(l===!0||l==="onChange")&&(D=this.omitExtraData(_),T={...T,formData:D}),n){const L=A?b:ae(b,i);if(!wt(L))A?y=n:(y=al(b),lt(y,i,n));else if(x||(x=new s1),A){const H=ae(n,Nt);H&&x.setErrors(H)}else lt(x.ErrorSchema,i,n)}else x&&ae(x.ErrorSchema,[...i,Nt])&&x.clearErrors(i);if(R&&this.pendingChanges.length===1){const L=this.liveValidate(v,k,y,D,s,x,h);T={...T,formData:D,...L,customErrors:x}}else if(!u&&n){const L=ai.mergeErrors({errorSchema:y,errors:w},s,x);T={...T,formData:D,...L,customErrors:x}}this.setState(T,()=>{f&&f(Di({...this.state,...T}),a),this.pendingChanges.shift(),this.processPendingChange()})}updateRetrievedSchema(r){var a;return $e(r,(a=this.state)==null?void 0:a.retrievedSchema)?this.state.retrievedSchema:r}static getGlobalFormOptions(r){const{uiSchema:i={},experimental_componentUpdateStrategy:a,idSeparator:n=Db,idPrefix:s=Fb,nameGenerator:o,useFallbackUiForUnsupportedType:l=!1}=r;return{idPrefix:i["ui:rootFieldId"]||s,idSeparator:n,useFallbackUiForUnsupportedType:l,...a!==void 0&&{experimental_componentUpdateStrategy:a},...o!==void 0&&{nameGenerator:o}}}static getRegistry(r,i,a){var m;const{translateString:n,uiSchema:s={}}=r,{fields:o,templates:l,widgets:u,formContext:c,translateString:f}=B4();return{fields:{...o,...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:s[sf],globalFormOptions:ai.getGlobalFormOptions(r),uiSchemaDefinitions:s[C_]??{}}}focusOnError(r){const{idPrefix:i="root",idSeparator:a="_"}=this.props,{property:n}=r,s=c1(n);s[0]===""?s[0]=i:s.unshift(i);const o=s.join(a);let l=this.formElement.current.elements[o];l||(l=this.formElement.current.querySelector(`input[id^="${o}"], button[id^="${o}"]`)),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:s,method:o,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:x,errorSchema:h,fieldPathId:y,registry:S}=this.state,{SchemaField:A}=S.fields,{SubmitButton:_}=S.templates.ButtonTemplates,C=g?n:void 0,E=g||n||"form";let{[Qo]:O={}}=me(w);p&&(O={...O,props:{...O.props,disabled:!0}});const R={[An]:{[Qo]:O}};return j.jsxs(E,{className:a||"rjsf",id:i,name:s,method:o,target:l,action:u,autoComplete:c,encType:f,acceptCharset:m,noValidate:d,onSubmit:this.onSubmit,as:C,ref:this.formElement,children:[v==="top"&&this.renderErrors(S),j.jsx(A,{name:"",schema:b,uiSchema:w,errorSchema:h,fieldPathId:y,formData:x,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:S,disabled:p,readonly:k}),r||j.jsx(_,{uiSchema:R,registry:S}),v==="bottom"&&this.renderErrors(S)]})}};const H4=V4,W4=(e,t)=>e.map(r=>{var n,s;const i=(n=r.property)==null?void 0:n.replace(/^\./,""),a=(s=t.properties)==null?void 0:s[i];return a!=null&&a.errorMessage&&a.errorMessage[r.name]&&(r.message=a.errorMessage[r.name]),r}),a0=({id:e,...t})=>{const[r,i]=U.useState(t.formData);return j.jsx(H4,{id:e,idPrefix:`root_${e}`,transformErrors:a=>W4(a,t.schema),...t,formData:r,onChange:a=>{t.onChange&&t.onChange(a);const{schema:n,formData:s}=a;if(n!=null&&n.required&&Array.isArray(n.required))for(const o of n.required){const l=(n.properties||{})[o];l&&l.type==="boolean"&&s[o]===!1&&delete s[o]}i(s)}})},K4=["tabs","sidebar"],uv=e=>console.warn(`Ignoring "ui:steps": ${e}. Rendering a single-page form.`),G4=e=>{const t=e??{};return{layout:K4.includes(t.layout)?t.layout:"tabs",nextLabel:typeof t.nextLabel=="string"?t.nextLabel:"Next",backLabel:typeof t.backLabel=="string"?t.backLabel:"Back"}},J4=(e,t,r,i)=>{const a=e??{};if(!Array.isArray(a.fields))return console.warn(`"ui:steps" step ${t+1} has no "fields" array; dropped.`),null;const n=a.fields.filter(s=>typeof s!="string"||!r.includes(s)?(console.warn(`"ui:steps" step ${t+1} names unknown field "${s}"; dropped.`),!1):i.has(s)?(console.warn(`"ui:steps" step ${t+1} repeats field "${s}"; keeping its first occurrence.`),!1):(i.add(s),!0));return n.length===0?(console.warn(`"ui:steps" step ${t+1} has no usable fields; dropped.`),null):{title:typeof a.title=="string"&&a.title?a.title:`Step ${t+1}`,...typeof a.description=="string"&&a.description&&{description:a.description},fields:n}},Y4=(e,t)=>{const r=e==null?void 0:e["ui:steps"];if(!r)return null;if(typeof r!="object"||!Array.isArray(r.steps))return uv('"steps" must be an array'),null;const i=Object.keys(t.properties??{}),a=new Set,n=r.steps.map((o,l)=>J4(o,l,i,a)).filter(o=>!!o);if(n.length<2)return uv("fewer than two usable steps"),null;const s=i.filter(o=>!a.has(o));return s.length>0&&(console.warn(`"ui:steps" leaves fields unassigned (${s.join(", ")}); appending them to the last step.`),n[n.length-1].fields.push(...s)),{config:G4(r.config),steps:n}},X4=({layout:e,items:t,currentIndex:r,onNavigate:i,children:a})=>{const n=t[r];return j.jsxs("div",{className:`fcode-steps fcode-steps-layout-${e}`,children:[j.jsx("ol",{className:"fcode-steps-nav","aria-label":"Form steps",children:t.map(s=>j.jsx("li",{className:"fcode-steps-nav-item",children:j.jsxs("button",{type:"button",className:tn("fcode-steps-item",{"is-completed":s.status==="completed","is-current":s.status==="current","is-upcoming":s.status==="upcoming","has-errors":s.hasErrors}),disabled:!s.clickable,"aria-current":s.status==="current"?"step":void 0,onClick:()=>i(s.index),children:[j.jsx("span",{className:"fcode-steps-item-counter","aria-hidden":"true",children:s.index+1}),j.jsx("span",{className:"fcode-steps-item-title",children:s.title})]})},s.index))}),j.jsxs("div",{className:"fcode-steps-main",children:[n&&j.jsxs("div",{className:"fcode-steps-header",children:[j.jsx("h3",{className:"fcode-steps-title",children:n.title}),n.description&&j.jsx("p",{className:"fcode-steps-description",children:n.description})]}),j.jsx("div",{className:"fcode-steps-panel",children:a})]})]})},Z4=({label:e,onClick:t,disabled:r})=>j.jsx("button",{type:"button",className:"btn btn-light fcode-steps-back",disabled:r,onClick:t,children:e}),Q4={StepsNavigation:X4,BackButton:Z4},yl=(e,t)=>Object.fromEntries(Object.entries(e??{}).filter(([r])=>t.includes(r))),eU=(e,t)=>{const r=e.dependencies??{},i=new Set,a=n=>{Object.keys(n.properties??{}).forEach(s=>i.add(s)),(n.oneOf??[]).forEach(s=>Object.keys((s==null?void 0:s.properties)??{}).forEach(o=>i.add(o)))};for(const n of t){const s=r[n];s&&typeof s=="object"&&!Array.isArray(s)&&a(s)}return t.forEach(n=>i.delete(n)),[...i]},tU=(e,t)=>{const r=e,i=Object.entries(yl(r.dependencies,t)).reduce((a,[n,s])=>{if(Array.isArray(s)){const o=s.filter(l=>t.includes(l));o.length>0&&(a[n]=o)}else a[n]=s;return a},{});return{...e,properties:yl(r.properties,t),...Array.isArray(r.required)&&{required:r.required.filter(a=>t.includes(a))},...r.dependencies&&{dependencies:i}}},rU=(e,t)=>Object.fromEntries(Object.entries(e??{}).filter(([r])=>t.includes(r)||r.startsWith("ui:")&&r!=="ui:steps"&&r!=="ui:submitButtonOptions")),nU=({parsed:e,components:t,...r})=>{var H,Y;const{steps:i,config:a}=e,n=r.schema,s=r.uiSchema,[o,l]=U.useState(0),[u,c]=U.useState(0),[f,m]=U.useState({...r.formData??{}}),d=U.useRef({}),p=U.useMemo(()=>i.map(Z=>[...Z.fields,...eU(n,Z.fields)]),[i,n]),k=U.useMemo(()=>i.map((Z,P)=>({schema:tU(n,Z.fields),uiSchema:rU(s,p[P])})),[i,n,s,p]),v=r.extraErrors,g=U.useMemo(()=>p.map(Z=>Z.some(P=>!!v&&P in v)),[p,v]);U.useEffect(()=>{const Z=g.findIndex(Boolean);Z>=0&&l(Z)},[v]),U.useEffect(()=>{d.current=yl(f,p[o])},[o]);const b=(Z,P,F)=>({...Object.fromEntries(Object.entries(Z).filter(([z])=>!p[F].includes(z))),...P}),w=Z=>{m(P=>b(P,d.current,o)),l(Z)},x=r.readonly===!0||r.disabled===!0||(s==null?void 0:s["ui:readonly"])===!0,h=Z=>Z!==o&&(x||Z<=u),y=Z=>{h(Z)&&w(Z)},S=o===i.length-1,A=(Z,P)=>{const F=b(f,Z.formData??{},o);if(m(F),S){r.onSubmit&&r.onSubmit({...Z,formData:F},P);return}l(o+1),c(z=>Math.max(z,o+1))},_=Z=>{d.current=Z.formData??{},r.onChange&&r.onChange(Z)},C=i.map((Z,P)=>({index:P,title:Z.title,description:Z.description,status:P<o?"completed":P===o?"current":"upcoming",clickable:h(P),hasErrors:g[P]})),{StepsNavigation:E,BackButton:O}=t,R=(Y=(H=r.templates)==null?void 0:H.ButtonTemplates)==null?void 0:Y.SubmitButton,T=jd(s??{}),D={"ui:submitButtonOptions":S?T:{...T,submitText:a.nextLabel,norender:!1}},L={translateString:Z=>Z};return j.jsx(E,{layout:a.layout,items:C,currentIndex:o,onNavigate:y,children:j.jsx(a0,{...r,schema:k[o].schema,uiSchema:k[o].uiSchema,formData:yl(f,p[o]),onChange:_,onSubmit:A,children:j.jsxs("div",{className:"fcode-steps-actions",children:[o>0&&j.jsx(O,{label:a.backLabel,onClick:()=>w(o-1)}),R&&j.jsx(R,{uiSchema:D,registry:L})]})},o)})},iU=({id:e,schema:t,options:r,registry:i,value:a,onChange:n,disabled:s,readonly:o})=>j.jsx(R1,{id:e,schema:t,uiOptions:r,registry:i,value:a,onChange:n,disabled:s,readonly:o}),aU=(e,t)=>({...e,fcode:{...e==null?void 0:e.fcode,oauth:(t==null?void 0:t.oauth)??O1}}),sU=(e,t)=>e&&e in Ta?Bo({},Ta[e]):t&&t in Ta?Bo({},Ta[t]):Bo({},Ta.en),s0=({id:e,templates:t,widgets:r,fields:i,locale:a,fallbackLocale:n,validator:s,className:o,embedFormOptions:l={},rjsfTheme:u,...c})=>{const{theme:f}=l;hv(l);const m=U.useMemo(()=>sU(a,n),[a,n]),d=U.useMemo(()=>Y4(c.uiSchema,c.schema),[c.uiSchema,c.schema]),p=U.useMemo(()=>aU(c.formContext,u),[c.formContext,u]),k={id:e,validator:s||m,className:tn(["fcode-form",o,{[`theme-${f}`]:f}]),fields:{...pq,...u==null?void 0:u.fields,...i},templates:{...py.templates,...u==null?void 0:u.templates,...t},widgets:{oauth:iU,...py.widgets,...u==null?void 0:u.widgets,...r},...c,formContext:p};return d?j.jsx(nU,{parsed:d,components:(u==null?void 0:u.multistep)??Q4,...k}):j.jsx(a0,{...k})},cv={theme:"light",loadingOverlayDisabled:!1,loadingOverlayContent:"Sending information...",loadingContent:"Loading form...",locale:"en"},Yd=({hostUrl:e="https://code.factorialhr.com/platform",headers:t,team:r,processId:i,processVersion:a,onNextStep:n=yw,onSuccess:s,keepSuccessView:o=!1,onError:l,markdownComponents:u,defaultValues:c={},async:f=!1,disabled:m=!1,readonly:d=!1,options:p,...k})=>{const[v,g]=U.useState({processId:i,steps:[],variables:{...p&&p.variables}}),[b]=W0({hostUrl:e,headers:t,team:r,processId:v.processId,processVersion:a,locale:p==null?void 0:p.locale,async:f}),w=U.useMemo(()=>{const K=dv();return console.log(`Building Factorial Code form with id ${K}`),K},[r,v]),x=U.useMemo(()=>{const K=c||{};return window.location.search?{...K,...Object.fromEntries(new URLSearchParams(window.location.search).entries())}:K},[c]),[h,y]=U.useState(!1),[S,A]=U.useState(x),[_,C]=U.useState({}),[E,O]=U.useState(null),R=U.useCallback(K=>{C({}),y(!0),A(K.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}},...K.formData}).then(({results:X,resolvedFiles:$})=>{if(A(x),X.nextProcessId){const q=v.steps;q.push({processId:v.processId,data:{...K.formData,...$},result:X}),g({processId:X.nextProcessId,steps:q,variables:{...v.variables,...X.variables}}),n(X.nextProcessId,X);return}X.redirect&&gw(X.redirect),s?s(w,X,K.formData):(console.log(`Form ${w} has been successfully submitted.`),Fo("fcode-forms-on-submit-success",{formId:w,formSubmittedData:K.formData,processExecutionResult:X})),(!s||o)&&O({kind:"success",message:X.message||vw})}).catch(X=>{X!=null&&X.formErrors?C(ww(X==null?void 0:X.formErrors)):l?l(w,X,K.formData):(console.log(`There has been an error submitting the form ${w}`,X),Fo("fcode-forms-on-submit-error",{formId:w,error:X}),O({kind:"error",message:Sv(X)}))}).finally(()=>y(!1))},[w,x,s,o,l,b,v]),{loading:T,reloading:D,formSpecs:L,error:H,reload:Y}=K0({hostUrl:e,headers:t,team:r,processId:v.processId,processVersion:a,locale:p==null?void 0:p.locale}),Z={...cv,...p};hv(Z);const P=U.useMemo(()=>{var K;return{...k.formContext,fcode:{...(K=k.formContext)==null?void 0:K.fcode,reloadFormSpecs:Y}}},[k.formContext,Y]);U.useEffect(()=>{H&&(l?l(w,H,{}):(console.log(`There has been an error submitting the form ${w}`,H),Fo("fcode-forms-on-submit-error",{formId:w,error:H})))},[H]);const F=tn(["fcode-form-wrapper",Z.className]);if(T)return j.jsx("div",{className:tn([F,"fcode-form-loading"]),"data-testid":"fcode-form",children:j.jsx(Sm,{active:!0,content:Z.loadingContent,children:j.jsx("div",{className:"fcode-form-outer",children:j.jsx(xv,{})})})});if(H||!L)return j.jsx("div",{className:F,"data-testid":"fcode-form",children:j.jsx("div",{className:"fcode-form-outer",children:j.jsx("p",{className:"fcode-form-error-message","data-testid":"fcode-form-error",children:kw(H)})})});L.schema.embedFormOptions={...cv,...L.schema.embedFormOptions,...p,variables:{...L.schema.embedFormOptions&&L.schema.embedFormOptions.variables,...v.variables,...p&&p.variables}};const z=jb(L),I=Object.keys(z.schema.properties||{}),N=Object.fromEntries(Object.entries(S).filter(([K,X])=>I.includes(K)));if(E)return j.jsx("div",{className:tn(["fcode-form-wrapper",z.embedFormOptions.className]),"data-testid":"fcode-form",children:j.jsx("div",{className:"fcode-form-outer",children:j.jsx("div",{className:tn(["fcode-form-markdown",E.kind==="success"?"fcode-form-success-message":"fcode-form-error-message"]),"data-testid":`fcode-form-${E.kind}-message`,children:j.jsx(tf,{components:u,children:E.message})})})});const{loadingOverlayDisabled:M,loadingOverlayContent:B,locale:V,fallbackLocale:W}=z.embedFormOptions;return j.jsx("div",{className:tn(["fcode-form-wrapper",z.embedFormOptions.className]),"data-testid":"fcode-form",children:j.jsx(Sm,{active:h||D,content:D?Z.loadingContent:B,disabled:M,children:j.jsx("div",{className:"fcode-form-outer",children:j.jsx(s0,{id:w,schema:z.schema,uiSchema:z.uiSchema,embedFormOptions:z.embedFormOptions,locale:V,fallbackLocale:W,formData:N,onSubmit:R,noHtml5Validate:!0,disabled:m,readonly:d,showErrorList:!1,extraErrors:_,...k,formContext:P},w)})})})};Yd.displayName="FcodeForm";exports.FcodeForm=Yd;exports.FcodeJsonSchemaForm=s0;exports.buildId=dv;exports.default=Yd;exports.processFormSpecs=jb;exports.resolveErrorMessage=Sv;
145
145
  //# sourceMappingURL=fcode-form.cjs.js.map